@oiz/stzh-components 3.4.0-beta1 → 3.4.0-beta2
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/cjs/{app-globals-1074eba6.js → app-globals-d9805497.js} +2 -2
- package/dist/cjs/{app-globals-1074eba6.js.map → app-globals-d9805497.js.map} +1 -1
- package/dist/cjs/index-92254d32.js +40 -16
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-actions.cjs.entry.js +10 -8
- package/dist/cjs/stzh-actions.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-archivelist.cjs.entry.js +6 -16
- package/dist/cjs/stzh-archivelist.cjs.entry.js.map +1 -1
- package/dist/cjs/{stzh-card_2.cjs.entry.js → stzh-card.cjs.entry.js} +55 -143
- package/dist/cjs/stzh-card.cjs.entry.js.map +1 -0
- package/dist/cjs/{stzh-sortable.cjs.entry.js → stzh-cardlist_2.cjs.entry.js} +92 -1
- package/dist/cjs/stzh-cardlist_2.cjs.entry.js.map +1 -0
- package/dist/cjs/{stzh-checkbox_4.cjs.entry.js → stzh-checkbox_3.cjs.entry.js} +4 -91
- package/dist/cjs/stzh-checkbox_3.cjs.entry.js.map +1 -0
- package/dist/cjs/{stzh-chip_2.cjs.entry.js → stzh-chip.cjs.entry.js} +1 -215
- package/dist/cjs/stzh-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-chipgroup.cjs.entry.js +25 -0
- package/dist/cjs/stzh-chipgroup.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-chipselect.cjs.entry.js +234 -0
- package/dist/cjs/stzh-chipselect.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-dropdown.cjs.entry.js +53 -55
- package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-fieldset.cjs.entry.js +1 -1
- package/dist/cjs/stzh-fieldset.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-geo-ref-data.cjs.entry.js +98 -41
- package/dist/cjs/stzh-geo-ref-data.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +6 -2
- package/dist/cjs/stzh-input.cjs.entry.js.map +1 -1
- package/dist/cjs/{stzh-chipgroup_2.cjs.entry.js → stzh-message.cjs.entry.js} +1 -18
- package/dist/cjs/stzh-message.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-overlay.cjs.entry.js +97 -0
- package/dist/cjs/stzh-overlay.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-pi-teaser.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-teaser.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-poicard.cjs.entry.js +52 -0
- package/dist/cjs/stzh-poicard.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-poilist.cjs.entry.js +122 -0
- package/dist/cjs/stzh-poilist.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-popover.cjs.entry.js +445 -0
- package/dist/cjs/stzh-popover.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-saptcha.cjs.entry.js +10 -9
- package/dist/cjs/stzh-saptcha.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-search.cjs.entry.js +52 -3
- package/dist/cjs/stzh-search.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-section.cjs.entry.js +1 -1
- package/dist/cjs/stzh-section.cjs.entry.js.map +1 -1
- package/dist/cjs/{stzh-popover_2.cjs.entry.js → stzh-text.cjs.entry.js} +1 -438
- package/dist/cjs/stzh-text.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-vbz-connection-finder.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-connection-finder.cjs.entry.js.map +1 -1
- package/dist/collection/assets/i18n/de.json +9 -0
- package/dist/collection/assets/i18n/en.json +9 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/stzh-actions/stzh-actions.css +27 -0
- package/dist/collection/components/stzh-actions/stzh-actions.js +30 -10
- package/dist/collection/components/stzh-actions/stzh-actions.js.map +1 -1
- package/dist/collection/components/stzh-archivelist/stzh-archivelist.css +3 -0
- package/dist/collection/components/stzh-archivelist/stzh-archivelist.js +42 -16
- package/dist/collection/components/stzh-archivelist/stzh-archivelist.js.map +1 -1
- package/dist/collection/components/stzh-archivelist/stzh-archivelist.stories.js +109 -102
- package/dist/collection/components/stzh-card/stzh-card.css +5 -0
- package/dist/collection/components/stzh-card/stzh-card.js +72 -51
- package/dist/collection/components/stzh-card/stzh-card.js.map +1 -1
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.css +5 -0
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.css +8 -8
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.js +13 -1
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.js.map +1 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +11 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +89 -55
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +120 -0
- package/dist/collection/components/stzh-geo-ref-data/stzh-geo-ref-data.css +2 -0
- package/dist/collection/components/stzh-geo-ref-data/stzh-geo-ref-data.js +156 -51
- package/dist/collection/components/stzh-geo-ref-data/stzh-geo-ref-data.js.map +1 -1
- package/dist/collection/components/stzh-geo-ref-data/stzh-geo-ref-data.stories.js +64 -63
- package/dist/collection/components/stzh-input/stzh-input.css +6 -0
- package/dist/collection/components/stzh-input/stzh-input.js +23 -1
- package/dist/collection/components/stzh-input/stzh-input.js.map +1 -1
- package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.css +18 -3
- package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.stories.js +30 -29
- package/dist/collection/components/stzh-poicard/stzh-poicard.css +231 -0
- package/dist/collection/components/stzh-poicard/stzh-poicard.e2e.js +16 -0
- package/dist/collection/components/stzh-poicard/stzh-poicard.e2e.js.map +1 -0
- package/dist/collection/components/stzh-poicard/stzh-poicard.js +86 -0
- package/dist/collection/components/stzh-poicard/stzh-poicard.js.map +1 -0
- package/dist/collection/components/stzh-poicard/stzh-poicard.stories.js +117 -0
- package/dist/collection/components/stzh-poilist/stzh-poilist.css +210 -0
- package/dist/collection/components/stzh-poilist/stzh-poilist.e2e.js +16 -0
- package/dist/collection/components/stzh-poilist/stzh-poilist.e2e.js.map +1 -0
- package/dist/collection/components/stzh-poilist/stzh-poilist.js +181 -0
- package/dist/collection/components/stzh-poilist/stzh-poilist.js.map +1 -0
- package/dist/collection/components/stzh-poilist/stzh-poilist.localization.js +2 -0
- package/dist/collection/components/stzh-poilist/stzh-poilist.localization.js.map +1 -0
- package/dist/collection/components/stzh-poilist/stzh-poilist.stories.js +31 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +31 -16
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +34 -17
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.js.map +1 -1
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.stories.js +3 -0
- package/dist/collection/components/stzh-search/stzh-search.css +4 -4
- package/dist/collection/components/stzh-search/stzh-search.js +122 -2
- package/dist/collection/components/stzh-search/stzh-search.js.map +1 -1
- package/dist/collection/components/stzh-section/stzh-section.css +19 -6
- package/dist/collection/components/stzh-vbz-connection-finder/stzh-vbz-connection-finder.js +1 -1
- package/dist/collection/components/stzh-vbz-connection-finder/stzh-vbz-connection-finder.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/pages/jobsearch/jobsearch.e2e.js +16 -0
- package/dist/collection/pages/jobsearch/jobsearch.e2e.js.map +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-actions.js +12 -9
- package/dist/components/stzh-actions.js.map +1 -1
- package/dist/components/stzh-archivelist.js +20 -22
- package/dist/components/stzh-archivelist.js.map +1 -1
- package/dist/components/stzh-card2.js +55 -51
- package/dist/components/stzh-card2.js.map +1 -1
- package/dist/components/stzh-cardlist2.js +1 -1
- package/dist/components/stzh-cardlist2.js.map +1 -1
- package/dist/components/stzh-chipselect2.js +14 -2
- package/dist/components/stzh-chipselect2.js.map +1 -1
- package/dist/components/stzh-dropdown2.js +55 -55
- package/dist/components/stzh-dropdown2.js.map +1 -1
- package/dist/components/stzh-fieldset.js +1 -1
- package/dist/components/stzh-fieldset.js.map +1 -1
- package/dist/components/stzh-geo-ref-data.js +109 -45
- package/dist/components/stzh-geo-ref-data.js.map +1 -1
- package/dist/components/stzh-input2.js +7 -2
- package/dist/components/stzh-input2.js.map +1 -1
- package/dist/components/stzh-pi-teaser.js +1 -1
- package/dist/components/stzh-pi-teaser.js.map +1 -1
- package/dist/components/stzh-poicard.d.ts +11 -0
- package/dist/components/stzh-poicard.js +8 -0
- package/dist/components/stzh-poicard.js.map +1 -0
- package/dist/components/stzh-poicard2.js +108 -0
- package/dist/components/stzh-poicard2.js.map +1 -0
- package/dist/components/stzh-poilist.d.ts +11 -0
- package/dist/components/stzh-poilist.js +246 -0
- package/dist/components/stzh-poilist.js.map +1 -0
- package/dist/components/stzh-saptcha.js +13 -14
- package/dist/components/stzh-saptcha.js.map +1 -1
- package/dist/components/stzh-search.js +57 -3
- package/dist/components/stzh-search.js.map +1 -1
- package/dist/components/stzh-section.js +1 -1
- package/dist/components/stzh-section.js.map +1 -1
- package/dist/components/stzh-vbz-connection-finder.js +1 -1
- package/dist/components/stzh-vbz-connection-finder.js.map +1 -1
- package/dist/esm/{app-globals-fbb949bd.js → app-globals-ca13b6e3.js} +2 -2
- package/dist/esm/{app-globals-fbb949bd.js.map → app-globals-ca13b6e3.js.map} +1 -1
- package/dist/esm/index-e3050b18.js +40 -16
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-actions.entry.js +10 -8
- package/dist/esm/stzh-actions.entry.js.map +1 -1
- package/dist/esm/stzh-archivelist.entry.js +6 -16
- package/dist/esm/stzh-archivelist.entry.js.map +1 -1
- package/dist/esm/{stzh-card_2.entry.js → stzh-card.entry.js} +56 -143
- package/dist/esm/stzh-card.entry.js.map +1 -0
- package/dist/esm/{stzh-sortable.entry.js → stzh-cardlist_2.entry.js} +92 -2
- package/dist/esm/stzh-cardlist_2.entry.js.map +1 -0
- package/dist/esm/{stzh-checkbox_4.entry.js → stzh-checkbox_3.entry.js} +5 -91
- package/dist/esm/stzh-checkbox_3.entry.js.map +1 -0
- package/dist/esm/{stzh-chip_2.entry.js → stzh-chip.entry.js} +3 -216
- package/dist/esm/stzh-chip.entry.js.map +1 -0
- package/dist/esm/stzh-chipgroup.entry.js +21 -0
- package/dist/esm/stzh-chipgroup.entry.js.map +1 -0
- package/dist/esm/stzh-chipselect.entry.js +230 -0
- package/dist/esm/stzh-chipselect.entry.js.map +1 -0
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-dropdown.entry.js +53 -55
- package/dist/esm/stzh-dropdown.entry.js.map +1 -1
- package/dist/esm/stzh-fieldset.entry.js +1 -1
- package/dist/esm/stzh-fieldset.entry.js.map +1 -1
- package/dist/esm/stzh-geo-ref-data.entry.js +98 -41
- package/dist/esm/stzh-geo-ref-data.entry.js.map +1 -1
- package/dist/esm/stzh-input.entry.js +6 -2
- package/dist/esm/stzh-input.entry.js.map +1 -1
- package/dist/esm/{stzh-chipgroup_2.entry.js → stzh-message.entry.js} +3 -19
- package/dist/esm/stzh-message.entry.js.map +1 -0
- package/dist/esm/stzh-overlay.entry.js +93 -0
- package/dist/esm/stzh-overlay.entry.js.map +1 -0
- package/dist/esm/stzh-pi-teaser.entry.js +1 -1
- package/dist/esm/stzh-pi-teaser.entry.js.map +1 -1
- package/dist/esm/stzh-poicard.entry.js +48 -0
- package/dist/esm/stzh-poicard.entry.js.map +1 -0
- package/dist/esm/stzh-poilist.entry.js +118 -0
- package/dist/esm/stzh-poilist.entry.js.map +1 -0
- package/dist/esm/stzh-popover.entry.js +441 -0
- package/dist/esm/stzh-popover.entry.js.map +1 -0
- package/dist/esm/stzh-saptcha.entry.js +11 -10
- package/dist/esm/stzh-saptcha.entry.js.map +1 -1
- package/dist/esm/stzh-search.entry.js +52 -3
- package/dist/esm/stzh-search.entry.js.map +1 -1
- package/dist/esm/stzh-section.entry.js +1 -1
- package/dist/esm/stzh-section.entry.js.map +1 -1
- package/dist/esm/{stzh-popover_2.entry.js → stzh-text.entry.js} +3 -439
- package/dist/esm/stzh-text.entry.js.map +1 -0
- package/dist/esm/stzh-vbz-connection-finder.entry.js +1 -1
- package/dist/esm/stzh-vbz-connection-finder.entry.js.map +1 -1
- package/dist/stzh-components/assets/i18n/de.json +9 -0
- package/dist/stzh-components/assets/i18n/en.json +9 -0
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/{p-206ec94f.entry.js → p-0846f5a7.entry.js} +2 -2
- package/dist/stzh-components/p-0846f5a7.entry.js.map +1 -0
- package/dist/stzh-components/p-0d092d58.entry.js +2 -0
- package/dist/stzh-components/p-0d092d58.entry.js.map +1 -0
- package/dist/stzh-components/{p-38cd406c.entry.js → p-10c2c688.entry.js} +2 -2
- package/dist/stzh-components/p-10c2c688.entry.js.map +1 -0
- package/dist/stzh-components/{p-23de5712.entry.js → p-1391115f.entry.js} +2 -2
- package/dist/stzh-components/{p-23de5712.entry.js.map → p-1391115f.entry.js.map} +1 -1
- package/dist/stzh-components/p-1b2fb680.entry.js +9 -0
- package/dist/stzh-components/p-1b2fb680.entry.js.map +1 -0
- package/dist/stzh-components/p-1e121c5f.entry.js +2 -0
- package/dist/stzh-components/p-1e121c5f.entry.js.map +1 -0
- package/dist/stzh-components/p-35d842ce.entry.js +2 -0
- package/dist/stzh-components/p-35d842ce.entry.js.map +1 -0
- package/dist/stzh-components/p-3e2b4d92.entry.js +2 -0
- package/dist/stzh-components/p-3e2b4d92.entry.js.map +1 -0
- package/dist/stzh-components/p-47cb71af.entry.js +2 -0
- package/dist/stzh-components/p-47cb71af.entry.js.map +1 -0
- package/dist/stzh-components/p-4e2db8e9.entry.js +8 -0
- package/dist/stzh-components/p-4e2db8e9.entry.js.map +1 -0
- package/dist/stzh-components/{p-cded8c4a.js → p-57caee36.js} +2 -2
- package/dist/stzh-components/p-616ae3be.entry.js +2 -0
- package/dist/stzh-components/p-616ae3be.entry.js.map +1 -0
- package/dist/stzh-components/{p-15d008ea.entry.js → p-72c9db89.entry.js} +3 -3
- package/dist/stzh-components/p-72c9db89.entry.js.map +1 -0
- package/dist/stzh-components/p-7bb2eb4e.entry.js +2 -0
- package/dist/stzh-components/p-7bb2eb4e.entry.js.map +1 -0
- package/dist/stzh-components/p-8c4d543d.entry.js +2 -0
- package/dist/stzh-components/p-8c4d543d.entry.js.map +1 -0
- package/dist/stzh-components/p-9506f599.entry.js +2 -0
- package/dist/stzh-components/p-9506f599.entry.js.map +1 -0
- package/dist/stzh-components/p-9b1267a6.entry.js +2 -0
- package/dist/stzh-components/p-9b1267a6.entry.js.map +1 -0
- package/dist/stzh-components/p-a9216459.entry.js +2 -0
- package/dist/stzh-components/p-a9216459.entry.js.map +1 -0
- package/dist/stzh-components/p-b2920d7f.entry.js +2 -0
- package/dist/stzh-components/p-b2920d7f.entry.js.map +1 -0
- package/dist/stzh-components/p-b6f19446.entry.js +2 -0
- package/dist/stzh-components/p-b6f19446.entry.js.map +1 -0
- package/dist/stzh-components/p-b75800da.entry.js +2 -0
- package/dist/stzh-components/p-b75800da.entry.js.map +1 -0
- package/dist/stzh-components/{p-d058fc1e.entry.js → p-c4bbdbfe.entry.js} +2 -2
- package/dist/stzh-components/p-c4bbdbfe.entry.js.map +1 -0
- package/dist/stzh-components/p-c6504f41.entry.js +2 -0
- package/dist/stzh-components/p-c6504f41.entry.js.map +1 -0
- package/dist/stzh-components/p-d29fd503.entry.js +2 -0
- package/dist/stzh-components/p-d29fd503.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/types/components/stzh-actions/stzh-actions.d.ts +3 -1
- package/dist/types/components/stzh-archivelist/stzh-archivelist.d.ts +4 -0
- package/dist/types/components/stzh-card/stzh-card.d.ts +4 -2
- package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +6 -2
- package/dist/types/components/stzh-geo-ref-data/stzh-geo-ref-data.d.ts +16 -2
- package/dist/types/components/stzh-input/stzh-input.d.ts +2 -0
- package/dist/types/components/stzh-poicard/stzh-poicard.d.ts +14 -0
- package/dist/types/components/stzh-poilist/stzh-poilist.d.ts +31 -0
- package/dist/types/components/stzh-poilist/stzh-poilist.localization.d.ts +10 -0
- package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +5 -4
- package/dist/types/components/stzh-search/stzh-search.d.ts +13 -0
- package/dist/types/components.d.ts +190 -10
- package/dist/types/index.d.ts +28 -0
- package/dist/vscode-data.json +104 -3
- package/package.json +1 -1
- package/dist/cjs/stzh-card_2.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-checkbox_4.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-chip_2.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-chipgroup_2.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-popover_2.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-sortable.cjs.entry.js.map +0 -1
- package/dist/esm/stzh-card_2.entry.js.map +0 -1
- package/dist/esm/stzh-checkbox_4.entry.js.map +0 -1
- package/dist/esm/stzh-chip_2.entry.js.map +0 -1
- package/dist/esm/stzh-chipgroup_2.entry.js.map +0 -1
- package/dist/esm/stzh-popover_2.entry.js.map +0 -1
- package/dist/esm/stzh-sortable.entry.js.map +0 -1
- package/dist/stzh-components/p-12851c24.entry.js +0 -2
- package/dist/stzh-components/p-12851c24.entry.js.map +0 -1
- package/dist/stzh-components/p-15d008ea.entry.js.map +0 -1
- package/dist/stzh-components/p-1b31cd8a.entry.js +0 -2
- package/dist/stzh-components/p-1b31cd8a.entry.js.map +0 -1
- package/dist/stzh-components/p-206ec94f.entry.js.map +0 -1
- package/dist/stzh-components/p-38cd406c.entry.js.map +0 -1
- package/dist/stzh-components/p-50c32fd1.entry.js +0 -2
- package/dist/stzh-components/p-50c32fd1.entry.js.map +0 -1
- package/dist/stzh-components/p-55349f2e.entry.js +0 -2
- package/dist/stzh-components/p-55349f2e.entry.js.map +0 -1
- package/dist/stzh-components/p-9c643610.entry.js +0 -2
- package/dist/stzh-components/p-9c643610.entry.js.map +0 -1
- package/dist/stzh-components/p-9cdd5e6f.entry.js +0 -2
- package/dist/stzh-components/p-9cdd5e6f.entry.js.map +0 -1
- package/dist/stzh-components/p-a672aaea.entry.js +0 -8
- package/dist/stzh-components/p-a672aaea.entry.js.map +0 -1
- package/dist/stzh-components/p-a77b49cb.entry.js +0 -2
- package/dist/stzh-components/p-a77b49cb.entry.js.map +0 -1
- package/dist/stzh-components/p-b509dedd.entry.js +0 -2
- package/dist/stzh-components/p-b509dedd.entry.js.map +0 -1
- package/dist/stzh-components/p-b870c799.entry.js +0 -2
- package/dist/stzh-components/p-b870c799.entry.js.map +0 -1
- package/dist/stzh-components/p-d058fc1e.entry.js.map +0 -1
- package/dist/stzh-components/p-da043311.entry.js +0 -9
- package/dist/stzh-components/p-da043311.entry.js.map +0 -1
- package/dist/stzh-components/p-fb077fd5.entry.js +0 -2
- package/dist/stzh-components/p-fb077fd5.entry.js.map +0 -1
- /package/dist/stzh-components/{p-cded8c4a.js.map → p-57caee36.js.map} +0 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colors
|
|
3
|
+
*/
|
|
4
|
+
/* Signal colors */
|
|
5
|
+
/* Old colors (TODO: cleanup when not needed anymore) */
|
|
6
|
+
/**
|
|
7
|
+
* Base
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Selection
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Flyingfocus
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Icons
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Link
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Text
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Section
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Header
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Footer
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Fieldset
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Progressbar
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Loader
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Table
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Heading
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Text
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* Menu (Item)
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* Form Elements (Input / Checkbox / Radio / Select / Datepicker)
|
|
56
|
+
*/
|
|
57
|
+
/**
|
|
58
|
+
* Popover
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* Tooltips
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
* Dialogs / Popover
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* Overlays
|
|
68
|
+
*/
|
|
69
|
+
/**
|
|
70
|
+
* Accordions
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* Timeline
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* Buttons
|
|
77
|
+
*/
|
|
78
|
+
/**
|
|
79
|
+
* Ratios
|
|
80
|
+
*/
|
|
81
|
+
/**
|
|
82
|
+
* Pagetitle
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* TopnewsMostsearched
|
|
86
|
+
*/
|
|
87
|
+
/**
|
|
88
|
+
* Calendar
|
|
89
|
+
*/
|
|
90
|
+
/**
|
|
91
|
+
* Cta
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* Toasts
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* Box Shadows
|
|
98
|
+
*/
|
|
99
|
+
/**
|
|
100
|
+
* Z-Indexes
|
|
101
|
+
* Inspired by https://www.duetds.com/tokens/#z-index
|
|
102
|
+
*/
|
|
103
|
+
/**
|
|
104
|
+
* Icon sizes
|
|
105
|
+
*/
|
|
106
|
+
/**
|
|
107
|
+
* Grid
|
|
108
|
+
*/
|
|
109
|
+
/**
|
|
110
|
+
* Container
|
|
111
|
+
*/
|
|
112
|
+
/**
|
|
113
|
+
* Breakpoints
|
|
114
|
+
*/
|
|
115
|
+
/**
|
|
116
|
+
* Ratios
|
|
117
|
+
*/
|
|
118
|
+
/**
|
|
119
|
+
* Spaces
|
|
120
|
+
*/
|
|
121
|
+
/**
|
|
122
|
+
* Fonts
|
|
123
|
+
*/
|
|
124
|
+
:host {
|
|
125
|
+
font-family: var(--stzh-font-family-medium);
|
|
126
|
+
font-weight: var(--stzh-font-weight-medium);
|
|
127
|
+
font-style: var(--stzh-font-style-medium);
|
|
128
|
+
color: var(--stzh-base-color);
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
display: block;
|
|
131
|
+
/* default outline value, which will be applied to all elements receiving focus
|
|
132
|
+
the .has-focus class is used by the focus target */
|
|
133
|
+
}
|
|
134
|
+
:host[hidden] {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
:host::-moz-selection {
|
|
138
|
+
color: var(--stzh-selection-color);
|
|
139
|
+
background-color: var(--stzh-selection-background-color);
|
|
140
|
+
}
|
|
141
|
+
:host::selection {
|
|
142
|
+
color: var(--stzh-selection-color);
|
|
143
|
+
background-color: var(--stzh-selection-background-color);
|
|
144
|
+
}
|
|
145
|
+
:host *,
|
|
146
|
+
:host *::before,
|
|
147
|
+
:host *::after {
|
|
148
|
+
box-sizing: border-box;
|
|
149
|
+
text-underline-offset: var(--stzh-link-text-underline-offset);
|
|
150
|
+
text-decoration-thickness: var(--stzh-link-text-decoration-thickness);
|
|
151
|
+
-webkit-text-decoration-skip-ink: var(--stzh-link-text-decoration-skip-ink);
|
|
152
|
+
text-decoration-skip-ink: var(--stzh-link-text-decoration-skip-ink);
|
|
153
|
+
}
|
|
154
|
+
:host .has-focus {
|
|
155
|
+
outline: var(--stzh-flyingfocus-color) solid 0.125rem;
|
|
156
|
+
outline-offset: 0.125rem;
|
|
157
|
+
}
|
|
158
|
+
:host .stzh-fylingfocus-focused {
|
|
159
|
+
outline-style: none !important;
|
|
160
|
+
}
|
|
161
|
+
:host .stzh-fylingfocus-focused::-moz-focus-inner {
|
|
162
|
+
border: 0 !important;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:host {
|
|
166
|
+
--background-color: var(--stzh-color-grey10);
|
|
167
|
+
--hover-background-color: var(--stzh-color-grey20);
|
|
168
|
+
--title-color: var(--stzh-color-primary70);
|
|
169
|
+
--title-hover-color: var(--stzh-color-primary80);
|
|
170
|
+
--title-background-color: var(--stzh-color-secondary20);
|
|
171
|
+
--title-hover-background-color: var(--stzh-color-secondary30);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.stzh-poicard {
|
|
175
|
+
display: block;
|
|
176
|
+
background-color: var(--background-color);
|
|
177
|
+
text-decoration: none;
|
|
178
|
+
height: 100%;
|
|
179
|
+
/* Content */
|
|
180
|
+
/* Content head */
|
|
181
|
+
/* Content Body */
|
|
182
|
+
}
|
|
183
|
+
.stzh-poicard:hover {
|
|
184
|
+
--title-color: var(--title-hover-color);
|
|
185
|
+
--title-background-color: var(--title-hover-background-color);
|
|
186
|
+
--background-color: var(--hover-background-color);
|
|
187
|
+
}
|
|
188
|
+
.stzh-poicard__content {
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
gap: var(--stzh-space-small);
|
|
192
|
+
}
|
|
193
|
+
.stzh-poicard__content-with-icon, .stzh-poicard__content-with-badge {
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
gap: var(--stzh-space-xxsmall);
|
|
197
|
+
}
|
|
198
|
+
.stzh-poicard__content-with-icon stzh-text {
|
|
199
|
+
width: auto;
|
|
200
|
+
--color: var(--stzh-color-primary70);
|
|
201
|
+
}
|
|
202
|
+
.stzh-poicard__content-with-icon stzh-icon {
|
|
203
|
+
--color: var(--stzh-color-primary70);
|
|
204
|
+
}
|
|
205
|
+
.stzh-poicard__content-with-badge stzh-text {
|
|
206
|
+
width: auto;
|
|
207
|
+
--color: var(--stzh-color-grey80);
|
|
208
|
+
}
|
|
209
|
+
.stzh-poicard__content-head {
|
|
210
|
+
display: flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
padding: var(--stzh-space-xsmall) var(--stzh-space-medium) var(--stzh-space-small);
|
|
213
|
+
--color: var(--title-color);
|
|
214
|
+
background-color: var(--title-background-color);
|
|
215
|
+
}
|
|
216
|
+
.stzh-poicard__content-head stzh-icon {
|
|
217
|
+
--color: var(--stzh-color-primary);
|
|
218
|
+
}
|
|
219
|
+
.stzh-poicard__content-title {
|
|
220
|
+
width: 100%;
|
|
221
|
+
--color: var(--stzh-color-grey80);
|
|
222
|
+
}
|
|
223
|
+
.stzh-poicard:hover .stzh-poicard__content-title {
|
|
224
|
+
--color: var(--stzh-color-black);
|
|
225
|
+
}
|
|
226
|
+
.stzh-poicard__content-body {
|
|
227
|
+
padding: var(--stzh-space-xsmall) var(--stzh-space-medium) var(--stzh-space-medium);
|
|
228
|
+
display: flex;
|
|
229
|
+
flex-direction: column;
|
|
230
|
+
gap: var(--stzh-space-xsmall);
|
|
231
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { test } from "@playwright/test";
|
|
2
|
+
import { visualDiff } from "../../../.build/test/utils";
|
|
3
|
+
const URL = "components-poicard";
|
|
4
|
+
const STORIES = ["default"];
|
|
5
|
+
test.describe("poicard", () => {
|
|
6
|
+
STORIES.forEach((storyId) => {
|
|
7
|
+
test(`story ${storyId} visual diff`, async ({ page }) => {
|
|
8
|
+
await visualDiff({
|
|
9
|
+
storyId,
|
|
10
|
+
page,
|
|
11
|
+
url: URL,
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=stzh-poicard.e2e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stzh-poicard.e2e.js","sourceRoot":"","sources":["../../../../src/components/stzh-poicard/stzh-poicard.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,GAAG,GAAG,oBAAoB,CAAC;AAEjC,MAAM,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC;AAE5B,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;EAC5B,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IAC1B,IAAI,CAAC,SAAS,OAAO,cAAc,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;MACtD,MAAM,UAAU,CAAC;QACf,OAAO;QACP,IAAI;QACJ,GAAG,EAAE,GAAG;OACT,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { test } from \"@playwright/test\";\nimport { visualDiff } from \"../../../.build/test/utils\";\n\nconst URL = \"components-poicard\";\n\nconst STORIES = [\"default\"];\n\ntest.describe(\"poicard\", () => {\n STORIES.forEach((storyId) => {\n test(`story ${storyId} visual diff`, async ({ page }) => {\n await visualDiff({\n storyId,\n page,\n url: URL,\n });\n });\n });\n});\n"]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export class StzhPoicard {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.init = () => {
|
|
8
|
+
this.itemWatcher(this.item);
|
|
9
|
+
};
|
|
10
|
+
this.item = "";
|
|
11
|
+
}
|
|
12
|
+
itemWatcher(newValue) {
|
|
13
|
+
if (!newValue) {
|
|
14
|
+
this._item = undefined;
|
|
15
|
+
}
|
|
16
|
+
else if (typeof newValue === "string") {
|
|
17
|
+
try {
|
|
18
|
+
this._item = JSON.parse(newValue);
|
|
19
|
+
}
|
|
20
|
+
catch (e) {
|
|
21
|
+
this._item = undefined;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
this._item = newValue;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
connectedCallback() {
|
|
29
|
+
this.init();
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
const classes = {
|
|
33
|
+
"stzh-poicard": true,
|
|
34
|
+
};
|
|
35
|
+
return (h(Host, null, h("a", { class: classes, href: this._item.url, target: "_blank" }, h("div", { class: "stzh-poicard__content" }, h("div", { class: "stzh-poicard__content-head" }, h("stzh-heading", null, this._item.title)), h("div", { class: "stzh-poicard__content-body" }, this._item.distance && (h("div", { class: "stzh-poicard__content-with-icon" }, h("stzh-icon", { name: "pin" }), h("stzh-text", null, this._item.distance))), this._item.temp && (h("div", { class: "stzh-poicard__content-with-icon" }, h("stzh-icon", { name: "thermometer" }), h("stzh-text", null, this._item.temp))), (this._item.statusMessageContent ||
|
|
36
|
+
this._item.statusMessage) && (h("div", { class: "stzh-poicard__content-with-badge" }, this._item.statusMessage && (h("stzh-text", { size: "milli" }, this._item.statusMessage)), this._item.statusMessageContent && (h("stzh-chip", { variant: "tag", size: "small", inverted: true, icon: "", type: this._item.success ? "default" : "error", label: this._item.statusMessageContent })))))))));
|
|
37
|
+
}
|
|
38
|
+
static get is() { return "stzh-poicard"; }
|
|
39
|
+
static get encapsulation() { return "scoped"; }
|
|
40
|
+
static get originalStyleUrls() {
|
|
41
|
+
return {
|
|
42
|
+
"$": ["stzh-poicard.scss"]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get styleUrls() {
|
|
46
|
+
return {
|
|
47
|
+
"$": ["stzh-poicard.css"]
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static get properties() {
|
|
51
|
+
return {
|
|
52
|
+
"item": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"mutable": false,
|
|
55
|
+
"complexType": {
|
|
56
|
+
"original": "StzhPoiCardItemData | string",
|
|
57
|
+
"resolved": "string | { variant: \"lido\" | \"parking\" | \"iceskating\"; url: string; title: string; distance?: string; temp?: string; statusMessage?: string; statusMessageContent?: string; success?: boolean; }",
|
|
58
|
+
"references": {
|
|
59
|
+
"StzhPoiCardItemData": {
|
|
60
|
+
"location": "import",
|
|
61
|
+
"path": "../../index",
|
|
62
|
+
"id": "src/index.ts::StzhPoiCardItemData"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": "Socialmediastream item"
|
|
71
|
+
},
|
|
72
|
+
"attribute": "item",
|
|
73
|
+
"reflect": false,
|
|
74
|
+
"defaultValue": "\"\""
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
static get elementRef() { return "element"; }
|
|
79
|
+
static get watchers() {
|
|
80
|
+
return [{
|
|
81
|
+
"propName": "item",
|
|
82
|
+
"methodName": "itemWatcher"
|
|
83
|
+
}];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=stzh-poicard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stzh-poicard.js","sourceRoot":"","sources":["../../../../src/components/stzh-poicard/stzh-poicard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGzE;;GAEG;AAMH,MAAM,OAAO,WAAW;;IAsBd,SAAI,GAAG,GAAG,EAAE;MAClB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC;gBApB2C,EAAE;;EAI/C,WAAW,CAAC,QAAsC;IAChD,IAAI,CAAC,QAAQ,EAAE;MACb,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;KACxB;SAAM,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;MACvC,IAAI;QACF,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;OACnC;MAAC,OAAO,CAAC,EAAE;QACV,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;OACxB;KACF;SAAM;MACL,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC;KACvB;EACH,CAAC;EAMD,iBAAiB;IACf,IAAI,CAAC,IAAI,EAAE,CAAC;EACd,CAAC;EAED,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,cAAc,EAAE,IAAI;KACrB,CAAC;IAEF,OAAO,CACL,EAAC,IAAI;MACH,SAAG,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAC,QAAQ;QACtD,WAAK,KAAK,EAAC,uBAAuB;UAChC,WAAK,KAAK,EAAC,4BAA4B;YACrC,wBAAe,IAAI,CAAC,KAAK,CAAC,KAAK,CAAgB,CAC3C;UACN,WAAK,KAAK,EAAC,4BAA4B;YACpC,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,CACtB,WAAK,KAAK,EAAC,iCAAiC;cAC1C,iBAAW,IAAI,EAAC,KAAK,GAAa;cAClC,qBAAY,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAa,CACxC,CACP;YAEA,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAClB,WAAK,KAAK,EAAC,iCAAiC;cAC1C,iBAAW,IAAI,EAAC,aAAa,GAAa;cAC1C,qBAAY,IAAI,CAAC,KAAK,CAAC,IAAI,CAAa,CACpC,CACP;YAEA,CAAC,IAAI,CAAC,KAAK,CAAC,oBAAoB;cAC/B,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAC7B,WAAK,KAAK,EAAC,kCAAkC;cAC1C,IAAI,CAAC,KAAK,CAAC,aAAa,IAAI,CAC3B,iBAAW,IAAI,EAAC,OAAO,IACpB,IAAI,CAAC,KAAK,CAAC,aAAa,CACf,CACb;cACA,IAAI,CAAC,KAAK,CAAC,oBAAoB,IAAI,CAClC,iBACE,OAAO,EAAC,KAAK,EACb,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,IAAI,EACd,IAAI,EAAC,EAAE,EACP,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAC9C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,oBAAoB,GAC3B,CACd,CACG,CACP,CACG,CACF,CACJ,CACC,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\";\nimport { StzhPoiCardItemData } from \"../../index\";\n\n/**\n *\n */\n@Component({\n tag: \"stzh-poicard\",\n styleUrl: \"stzh-poicard.scss\",\n scoped: true,\n})\nexport class StzhPoicard {\n @Element() element: HTMLStzhPoicardElement;\n\n /** Socialmediastream item */\n @Prop() item: StzhPoiCardItemData | string = \"\";\n private _item: StzhPoiCardItemData | undefined;\n\n @Watch(\"item\")\n itemWatcher(newValue: StzhPoiCardItemData | string) {\n if (!newValue) {\n this._item = undefined;\n } else if (typeof newValue === \"string\") {\n try {\n this._item = JSON.parse(newValue);\n } catch (e) {\n this._item = undefined;\n }\n } else {\n this._item = newValue;\n }\n }\n\n private init = () => {\n this.itemWatcher(this.item);\n };\n\n connectedCallback() {\n this.init();\n }\n\n render() {\n const classes = {\n \"stzh-poicard\": true,\n };\n\n return (\n <Host>\n <a class={classes} href={this._item.url} target=\"_blank\">\n <div class=\"stzh-poicard__content\">\n <div class=\"stzh-poicard__content-head\">\n <stzh-heading>{this._item.title}</stzh-heading>\n </div>\n <div class=\"stzh-poicard__content-body\">\n {this._item.distance && (\n <div class=\"stzh-poicard__content-with-icon\">\n <stzh-icon name=\"pin\"></stzh-icon>\n <stzh-text>{this._item.distance}</stzh-text>\n </div>\n )}\n\n {this._item.temp && (\n <div class=\"stzh-poicard__content-with-icon\">\n <stzh-icon name=\"thermometer\"></stzh-icon>\n <stzh-text>{this._item.temp}</stzh-text>\n </div>\n )}\n\n {(this._item.statusMessageContent ||\n this._item.statusMessage) && (\n <div class=\"stzh-poicard__content-with-badge\">\n {this._item.statusMessage && (\n <stzh-text size=\"milli\">\n {this._item.statusMessage}\n </stzh-text>\n )}\n {this._item.statusMessageContent && (\n <stzh-chip\n variant=\"tag\"\n size=\"small\"\n inverted={true}\n icon=\"\"\n type={this._item.success ? \"default\" : \"error\"}\n label={this._item.statusMessageContent}\n ></stzh-chip>\n )}\n </div>\n )}\n </div>\n </div>\n </a>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { createComponentStory } from "../../utils/story-utils";
|
|
2
|
+
import { withActions } from "@storybook/addon-actions/decorator";
|
|
3
|
+
import readme from "./readme.md?raw";
|
|
4
|
+
import { withDesign } from "storybook-addon-designs";
|
|
5
|
+
import { getFigmaLink } from "../../../figma";
|
|
6
|
+
|
|
7
|
+
const COMPONENT_NAME = "stzh-poicard";
|
|
8
|
+
const story = createComponentStory(COMPONENT_NAME);
|
|
9
|
+
|
|
10
|
+
const TEMPLATE = `
|
|
11
|
+
<stzh-poicard></stzh-poicard>
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
title: "Components/Poicard",
|
|
16
|
+
component: COMPONENT_NAME,
|
|
17
|
+
parameters: {
|
|
18
|
+
layout: "padded",
|
|
19
|
+
docs: {
|
|
20
|
+
description: {
|
|
21
|
+
component: readme,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
design: {
|
|
25
|
+
type: "figma",
|
|
26
|
+
url: getFigmaLink("poicard"),
|
|
27
|
+
allowFullscreen: true,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
decorators: [withActions, withDesign],
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const LidoOpen = {
|
|
34
|
+
render: (args) => story(args, TEMPLATE),
|
|
35
|
+
args: {
|
|
36
|
+
item: {
|
|
37
|
+
variant: "lido",
|
|
38
|
+
url: "#",
|
|
39
|
+
title: "Flussbad Au-Höngg",
|
|
40
|
+
temp: "21°C",
|
|
41
|
+
distance: "2700m",
|
|
42
|
+
statusMessageContent: "offen bis 19 uhr",
|
|
43
|
+
success: true,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const LidoClosed = {
|
|
49
|
+
render: (args) => story(args, TEMPLATE),
|
|
50
|
+
args: {
|
|
51
|
+
item: {
|
|
52
|
+
variant: "lido",
|
|
53
|
+
url: "#",
|
|
54
|
+
title: "Flussbad Au-Höngg",
|
|
55
|
+
distance: "2700m",
|
|
56
|
+
temp: "21°C",
|
|
57
|
+
statusMessageContent: "geschlossen",
|
|
58
|
+
success: false,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export const ParkingAvailable = {
|
|
64
|
+
render: (args) => story(args, TEMPLATE),
|
|
65
|
+
args: {
|
|
66
|
+
item: {
|
|
67
|
+
variant: "parking",
|
|
68
|
+
url: "#",
|
|
69
|
+
title: "Parkhaus Urania",
|
|
70
|
+
distance: "2700m",
|
|
71
|
+
statusMessage: "Freie Parkplätze: ",
|
|
72
|
+
statusMessageContent: "585",
|
|
73
|
+
success: true,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const ParkingBusy = {
|
|
79
|
+
render: (args) => story(args, TEMPLATE),
|
|
80
|
+
args: {
|
|
81
|
+
item: {
|
|
82
|
+
variant: "parking",
|
|
83
|
+
url: "#",
|
|
84
|
+
title: "Parkhaus Urania",
|
|
85
|
+
distance: "2700m",
|
|
86
|
+
statusMessage: "Freie Parkplätze: ",
|
|
87
|
+
statusMessageContent: "Keine",
|
|
88
|
+
success: false,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export const IceskatingOpen = {
|
|
94
|
+
render: (args) => story(args, TEMPLATE),
|
|
95
|
+
args: {
|
|
96
|
+
item: {
|
|
97
|
+
url: "#",
|
|
98
|
+
title: "Kunsteisbahn Dolder",
|
|
99
|
+
distance: "1576m",
|
|
100
|
+
statusMessageContent: "offen bis 19 uhr",
|
|
101
|
+
success: true,
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export const IceskatingClosed = {
|
|
107
|
+
render: (args) => story(args, TEMPLATE),
|
|
108
|
+
args: {
|
|
109
|
+
item: {
|
|
110
|
+
url: "#",
|
|
111
|
+
title: "Kunsteisbahn Dolder",
|
|
112
|
+
distance: "1576m",
|
|
113
|
+
statusMessageContent: "geschlossen",
|
|
114
|
+
success: false,
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
};
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colors
|
|
3
|
+
*/
|
|
4
|
+
/* Signal colors */
|
|
5
|
+
/* Old colors (TODO: cleanup when not needed anymore) */
|
|
6
|
+
/**
|
|
7
|
+
* Base
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Selection
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Flyingfocus
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Icons
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Link
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Text
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Section
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Header
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Footer
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Fieldset
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Progressbar
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Loader
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Table
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Heading
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Text
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* Menu (Item)
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* Form Elements (Input / Checkbox / Radio / Select / Datepicker)
|
|
56
|
+
*/
|
|
57
|
+
/**
|
|
58
|
+
* Popover
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* Tooltips
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
* Dialogs / Popover
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* Overlays
|
|
68
|
+
*/
|
|
69
|
+
/**
|
|
70
|
+
* Accordions
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* Timeline
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* Buttons
|
|
77
|
+
*/
|
|
78
|
+
/**
|
|
79
|
+
* Ratios
|
|
80
|
+
*/
|
|
81
|
+
/**
|
|
82
|
+
* Pagetitle
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* TopnewsMostsearched
|
|
86
|
+
*/
|
|
87
|
+
/**
|
|
88
|
+
* Calendar
|
|
89
|
+
*/
|
|
90
|
+
/**
|
|
91
|
+
* Cta
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* Toasts
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* Box Shadows
|
|
98
|
+
*/
|
|
99
|
+
/**
|
|
100
|
+
* Z-Indexes
|
|
101
|
+
* Inspired by https://www.duetds.com/tokens/#z-index
|
|
102
|
+
*/
|
|
103
|
+
/**
|
|
104
|
+
* Icon sizes
|
|
105
|
+
*/
|
|
106
|
+
/**
|
|
107
|
+
* Grid
|
|
108
|
+
*/
|
|
109
|
+
/**
|
|
110
|
+
* Container
|
|
111
|
+
*/
|
|
112
|
+
/**
|
|
113
|
+
* Breakpoints
|
|
114
|
+
*/
|
|
115
|
+
/**
|
|
116
|
+
* Ratios
|
|
117
|
+
*/
|
|
118
|
+
/**
|
|
119
|
+
* Spaces
|
|
120
|
+
*/
|
|
121
|
+
/**
|
|
122
|
+
* Fonts
|
|
123
|
+
*/
|
|
124
|
+
:host {
|
|
125
|
+
font-family: var(--stzh-font-family-medium);
|
|
126
|
+
font-weight: var(--stzh-font-weight-medium);
|
|
127
|
+
font-style: var(--stzh-font-style-medium);
|
|
128
|
+
color: var(--stzh-base-color);
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
display: block;
|
|
131
|
+
/* default outline value, which will be applied to all elements receiving focus
|
|
132
|
+
the .has-focus class is used by the focus target */
|
|
133
|
+
}
|
|
134
|
+
:host[hidden] {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
:host::-moz-selection {
|
|
138
|
+
color: var(--stzh-selection-color);
|
|
139
|
+
background-color: var(--stzh-selection-background-color);
|
|
140
|
+
}
|
|
141
|
+
:host::selection {
|
|
142
|
+
color: var(--stzh-selection-color);
|
|
143
|
+
background-color: var(--stzh-selection-background-color);
|
|
144
|
+
}
|
|
145
|
+
:host *,
|
|
146
|
+
:host *::before,
|
|
147
|
+
:host *::after {
|
|
148
|
+
box-sizing: border-box;
|
|
149
|
+
text-underline-offset: var(--stzh-link-text-underline-offset);
|
|
150
|
+
text-decoration-thickness: var(--stzh-link-text-decoration-thickness);
|
|
151
|
+
-webkit-text-decoration-skip-ink: var(--stzh-link-text-decoration-skip-ink);
|
|
152
|
+
text-decoration-skip-ink: var(--stzh-link-text-decoration-skip-ink);
|
|
153
|
+
}
|
|
154
|
+
:host .has-focus {
|
|
155
|
+
outline: var(--stzh-flyingfocus-color) solid 0.125rem;
|
|
156
|
+
outline-offset: 0.125rem;
|
|
157
|
+
}
|
|
158
|
+
:host .stzh-fylingfocus-focused {
|
|
159
|
+
outline-style: none !important;
|
|
160
|
+
}
|
|
161
|
+
:host .stzh-fylingfocus-focused::-moz-focus-inner {
|
|
162
|
+
border: 0 !important;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.stzh-poilist__header {
|
|
166
|
+
margin-bottom: var(--stzh-space-small);
|
|
167
|
+
display: flex;
|
|
168
|
+
justify-content: space-between;
|
|
169
|
+
align-items: center;
|
|
170
|
+
}
|
|
171
|
+
@media screen and (min-width: 900px) {
|
|
172
|
+
.stzh-poilist__header {
|
|
173
|
+
margin-bottom: var(--stzh-space-medium);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
@media screen and (min-width: 1260px) {
|
|
177
|
+
.stzh-poilist__header {
|
|
178
|
+
margin-bottom: var(--stzh-space-large);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
.stzh-poilist__header stzh-text {
|
|
182
|
+
--color: var(--stzh-color-grey80);
|
|
183
|
+
font-family: var(--stzh-font-family-heavy);
|
|
184
|
+
font-weight: var(--stzh-font-weight-heavy);
|
|
185
|
+
font-style: var(--stzh-font-style-heavy);
|
|
186
|
+
}
|
|
187
|
+
.stzh-poilist__show-more {
|
|
188
|
+
margin-top: var(--stzh-space-xlarge);
|
|
189
|
+
display: grid;
|
|
190
|
+
}
|
|
191
|
+
@media screen and (min-width: 900px) {
|
|
192
|
+
.stzh-poilist__show-more {
|
|
193
|
+
margin-top: var(--stzh-space-xxlarge);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
@media screen and (min-width: 1260px) {
|
|
197
|
+
.stzh-poilist__show-more {
|
|
198
|
+
margin-top: var(--stzh-space-xxxlarge);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
@media screen and (min-width: 600px) {
|
|
202
|
+
.stzh-poilist__show-more {
|
|
203
|
+
justify-content: center;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
.stzh-poilist stzh-dropdown {
|
|
207
|
+
--color: var(--stzh-color-primary90);
|
|
208
|
+
--icon-color: var(--stzh-color-primary90);
|
|
209
|
+
--icon-angle-color: var(--stzh-color-primary90);
|
|
210
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { test } from "@playwright/test";
|
|
2
|
+
import { visualDiff } from "../../../.build/test/utils";
|
|
3
|
+
const URL = "components-poilist";
|
|
4
|
+
const STORIES = ["default"];
|
|
5
|
+
test.describe("poilist", () => {
|
|
6
|
+
STORIES.forEach((storyId) => {
|
|
7
|
+
test(`story ${storyId} visual diff`, async ({ page }) => {
|
|
8
|
+
await visualDiff({
|
|
9
|
+
storyId,
|
|
10
|
+
page,
|
|
11
|
+
url: URL,
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=stzh-poilist.e2e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stzh-poilist.e2e.js","sourceRoot":"","sources":["../../../../src/components/stzh-poilist/stzh-poilist.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,GAAG,GAAG,oBAAoB,CAAC;AAEjC,MAAM,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC;AAE5B,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;EAC5B,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IAC1B,IAAI,CAAC,SAAS,OAAO,cAAc,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;MACtD,MAAM,UAAU,CAAC;QACf,OAAO;QACP,IAAI;QACJ,GAAG,EAAE,GAAG;OACT,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { test } from \"@playwright/test\";\nimport { visualDiff } from \"../../../.build/test/utils\";\n\nconst URL = \"components-poilist\";\n\nconst STORIES = [\"default\"];\n\ntest.describe(\"poilist\", () => {\n STORIES.forEach((storyId) => {\n test(`story ${storyId} visual diff`, async ({ page }) => {\n await visualDiff({\n storyId,\n page,\n url: URL,\n });\n });\n });\n});\n"]}
|