@dpa-id-components/dpa-shared-components 20.0.4 → 20.0.5
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/_plugin-vue_export-helper-CCTR5HVY.js +2770 -0
- package/dist/activities-BdgBJTuA.js +17 -0
- package/dist/ai-CRKea4DD.js +17 -0
- package/dist/alert-73LhoiBH.js +17 -0
- package/dist/alert-fill-CtKKZrZO.js +17 -0
- package/dist/alert-octagon-BFcCcEQq.js +30 -0
- package/dist/apps-BcyMOR4e.js +17 -0
- package/dist/archive-CMuBva_u.js +17 -0
- package/dist/arrow-down-WJdG351R.js +17 -0
- package/dist/arrow-left-H5cUyllC.js +17 -0
- package/dist/arrow-nav-left-CvZfWsrk.js +17 -0
- package/dist/arrow-nav-right-CUN92-9v.js +17 -0
- package/dist/arrow-right-Dai72xIp.js +17 -0
- package/dist/arrow-up-D9lAqZA8.js +17 -0
- package/dist/arrowhead-left-SJXGjhbq.js +17 -0
- package/dist/arrowhead-right-BhZbSG2r.js +17 -0
- package/dist/arrowhead-top-BEqJzGKA.js +17 -0
- package/dist/atmo-CZCUnUYN.js +17 -0
- package/dist/audio-CnSs3MVV.js +17 -0
- package/dist/audio-circled-Cku32Yiu.js +14 -0
- package/dist/audio-filled-CVOOatbn.js +14 -0
- package/dist/bag-Cx7iHwPQ.js +14 -0
- package/dist/bell-CwI9Vb62.js +17 -0
- package/dist/bell-fill-D-dFYpLV.js +17 -0
- package/dist/book-B0ailmur.js +17 -0
- package/dist/bookmark-CLdYV4f9.js +19 -0
- package/dist/bookmark-fill-wdEWET5w.js +19 -0
- package/dist/bookmark-outlined-Dd7PyuTU.js +14 -0
- package/dist/box-CfW1bBum.js +17 -0
- package/dist/bulb-K8jFZmfR.js +17 -0
- package/dist/call-CquDMWn4.js +17 -0
- package/dist/camera-CB6fKe82.js +17 -0
- package/dist/check-BBMwdc1e.js +17 -0
- package/dist/checklist-Df5fhkTx.js +17 -0
- package/dist/checkmark-Bk3th8aU.js +17 -0
- package/dist/checkmark-double-JBEWrsse.js +17 -0
- package/dist/chevron-down-Sq-Omasi.js +17 -0
- package/dist/chevron-left-ka3w4LWP.js +17 -0
- package/dist/chevron-right-DmvJo-Nn.js +17 -0
- package/dist/chevron-up-DakU_cBn.js +17 -0
- package/dist/clipboard-DyMMjIVc.js +17 -0
- package/dist/clock-CtkOHG1g.js +17 -0
- package/dist/close-DjFVZt2u.js +17 -0
- package/dist/cloud-save-acm4FjOr.js +17 -0
- package/dist/code-BJgY-9g3.js +17 -0
- package/dist/collapse-CalQPYhZ.js +17 -0
- package/dist/color-palette-DRN9z5Vz.js +12 -0
- package/dist/comment-CWIccK83.js +17 -0
- package/dist/comment-fill-BVza8Jz-.js +17 -0
- package/dist/components/UiAutocomplete/UiAutocomplete.vue.d.ts +1 -3
- package/dist/components/UiDatePicker/UiDatePicker.vue.d.ts +2 -6
- package/dist/copy-Bk8cFSbJ.js +18 -0
- package/dist/copy-link-DOfXU7RD.js +17 -0
- package/dist/delete-DsugmFOu.js +17 -0
- package/dist/download-BeWUwd0y.js +17 -0
- package/dist/dpa-id-Ly2f4-Kw.js +17 -0
- package/dist/dpa-shared-components.js +16034 -46
- package/dist/edit-D69xOR64.js +17 -0
- package/dist/edit-add-C5WDTIjN.js +17 -0
- package/dist/eil-Cb4014LI.js +17 -0
- package/dist/emoji-D72nL3d1.js +17 -0
- package/dist/emoji-add-BrzLAJ3E.js +17 -0
- package/dist/envelope-kda2hV7_.js +15 -0
- package/dist/event-8phFSDv9.js +12 -0
- package/dist/expand-BtinEH3A.js +17 -0
- package/dist/external-link-CNYm-GlZ.js +17 -0
- package/dist/file-BOEeXxXs.js +17 -0
- package/dist/file-pdf-DJaalWDa.js +17 -0
- package/dist/filter-BjVZbhND.js +17 -0
- package/dist/filter-outline-BoEVSezK.js +15 -0
- package/dist/flag-DgOeofob.js +17 -0
- package/dist/flag-fill-BVhHWhiP.js +17 -0
- package/dist/flag-filled-CTSdIBWY.js +17 -0
- package/dist/flag-outline-BgYyW8nX.js +17 -0
- package/dist/flags-CMwN4aB0.js +18 -0
- package/dist/flash-BhAeSS1k.js +17 -0
- package/dist/folder-D79ZQ9RA.js +17 -0
- package/dist/folder-add-Ya2GcM-i.js +17 -0
- package/dist/folder-fill-Ca6bXRw-.js +17 -0
- package/dist/folder-filled-BBR8bJQL.js +17 -0
- package/dist/gallery-CsCgah-Q.js +20 -0
- package/dist/graphic-CZ1VEgbk.js +17 -0
- package/dist/graphic-circled-BYvbiPFv.js +14 -0
- package/dist/graphic-filled-B640yZW1.js +14 -0
- package/dist/graphics-DOD41Q2b.js +20 -0
- package/dist/grid-1-reX52mXX.js +17 -0
- package/dist/grid-2-biGoKZET.js +17 -0
- package/dist/grid-3-B8ccFfrT.js +17 -0
- package/dist/grid-4-CqTE5F_g.js +17 -0
- package/dist/grid-6-DbKV_eBX.js +17 -0
- package/dist/grid-9-CTSAZ4UT.js +17 -0
- package/dist/grid-masonry-9-CKioEJuZ.js +18 -0
- package/dist/grid-masonry-B593q1l6.js +17 -0
- package/dist/help-DiKackos.js +17 -0
- package/dist/home-Do4YF4Dd.js +17 -0
- package/dist/image focus point-C0vK6FzN.js +17 -0
- package/dist/image-BWGxTMMW.js +17 -0
- package/dist/impact-high-DdaQcLOu.js +17 -0
- package/dist/impact-low-zbvAdhZ1.js +17 -0
- package/dist/impact-medium-BhfzSQAK.js +17 -0
- package/dist/impact-very-high-qcPfp2yw.js +17 -0
- package/dist/impact-very-low-Dz86WvEI.js +17 -0
- package/dist/info-9llr8kqZ.js +17 -0
- package/dist/info-fill-DvyOjyX-.js +17 -0
- package/dist/info-filled-c2KLORVR.js +17 -0
- package/dist/label-DRVpH3Zf.js +17 -0
- package/dist/label-filled-CTReJE3_.js +17 -0
- package/dist/language-CaK3obhv.js +17 -0
- package/dist/latest-Bh5w8w2R.js +17 -0
- package/dist/lightbulb-D55X29rD.js +15 -0
- package/dist/list-Dm0wrpKz.js +17 -0
- package/dist/list-search-BWPAGqHW.js +21 -0
- package/dist/lock-Bair96dL.js +17 -0
- package/dist/lock-filled-BNZJ0waC.js +17 -0
- package/dist/mail-Mn2wq1aV.js +17 -0
- package/dist/map-D1irc7wN.js +17 -0
- package/dist/map-outline-B00hms9f.js +17 -0
- package/dist/menu-CVkyyeDW.js +17 -0
- package/dist/minus-B89-4r0W.js +17 -0
- package/dist/more-horizontal-BOq3UKiU.js +17 -0
- package/dist/more-vertical-CJOSDU6R.js +17 -0
- package/dist/move-B7GHCUbm.js +17 -0
- package/dist/move-up-down-Ch8L5sZC.js +17 -0
- package/dist/navigation-BTddw232.js +17 -0
- package/dist/note-BvnqgyHg.js +17 -0
- package/dist/offline-YOyb2Tfr.js +17 -0
- package/dist/package-Ckm27fjL.js +17 -0
- package/dist/paper-plane-BttsgNjZ.js +17 -0
- package/dist/paperplane-BqxbaXXQ.js +17 -0
- package/dist/pause-Du648vV9.js +17 -0
- package/dist/pause-circle-C0ua224p.js +18 -0
- package/dist/pdf-Ddg3TU0B.js +17 -0
- package/dist/pen-CQhBRQVg.js +14 -0
- package/dist/pen-check-BZme3WMH.js +14 -0
- package/dist/people-COXR5CoD.js +17 -0
- package/dist/phone-BauDKm-k.js +17 -0
- package/dist/picture-C3UMrriC.js +17 -0
- package/dist/picture-circled-DBlYCjnY.js +14 -0
- package/dist/picture-filled-O2z4--dy.js +14 -0
- package/dist/picture-gallery-C9c2zcxU.js +15 -0
- package/dist/pin-BMODlehD.js +17 -0
- package/dist/planning-Dtx9YzGr.js +17 -0
- package/dist/play-C5cuKZV0.js +17 -0
- package/dist/play-circle-CL5tEg9v.js +17 -0
- package/dist/play-fill-DSV0DW-T.js +17 -0
- package/dist/plus-DCPlMZXW.js +17 -0
- package/dist/plus-circle-DjR4qFC0.js +17 -0
- package/dist/print-DXBUPTFP.js +17 -0
- package/dist/refresh-BcwO7Jw6.js +17 -0
- package/dist/reset-B1yR8nzO.js +17 -0
- package/dist/responsive-DGZkLyEW.js +18 -0
- package/dist/rubix-thema-CCIj5kn3.js +17 -0
- package/dist/save-DvQxrVk-.js +17 -0
- package/dist/saved-search-BDu5PZQb.js +18 -0
- package/dist/saved-search-fill-BffgdGo8.js +20 -0
- package/dist/search-CXfaMRZ9.js +17 -0
- package/dist/settings-D7xABZln.js +17 -0
- package/dist/share-BQm_gGv6.js +17 -0
- package/dist/share-alternative-C4HzRC3B.js +17 -0
- package/dist/sidebar-CwFxeKOh.js +14 -0
- package/dist/sidebar-fill-BcquZLLX.js +18 -0
- package/dist/slack-CIhJ-_vs.js +17 -0
- package/dist/slider-config-5UwhkENY.js +17 -0
- package/dist/spellcheck-ClGD2dI8.js +17 -0
- package/dist/spinner-Ds5nod21.js +12 -0
- package/dist/standard-view-hRZ2UVqX.js +14 -0
- package/dist/star-DC_rTR6e.js +17 -0
- package/dist/star-fill-B10bjB48.js +17 -0
- package/dist/star-filled-BISydRRE.js +14 -0
- package/dist/stop-D6NZK5EY.js +17 -0
- package/dist/story-B3kiPLs0.js +17 -0
- package/dist/style.css +3 -1
- package/dist/sync-B5v_sNSB.js +17 -0
- package/dist/tasks-COvP7FSq.js +17 -0
- package/dist/text--clKJFHw.js +17 -0
- package/dist/text-circled-hElWfl5W.js +14 -0
- package/dist/text-filled-BpflMH5s.js +14 -0
- package/dist/thumbs-down-BD3Dkcr3.js +18 -0
- package/dist/thumbs-up-A2jkWz64.js +18 -0
- package/dist/thumbs-up-double-Dm7agvTj.js +18 -0
- package/dist/topic-CXey3AGT.js +17 -0
- package/dist/union-DZ2yepXw.js +12 -0
- package/dist/upload-DPdFqQB3.js +17 -0
- package/dist/user-need-divert-me-DF4rOe6s.js +17 -0
- package/dist/user-need-educate-me-ClLznwAg.js +19 -0
- package/dist/user-need-give-me-perspective-BfI5mb08.js +19 -0
- package/dist/user-need-help-me-D-lptTdN.js +17 -0
- package/dist/user-need-touch-me-CikvxxHD.js +19 -0
- package/dist/user-need-update-me-Ua4YV9Bs.js +19 -0
- package/dist/video overlay-cYzYa_B7.js +18 -0
- package/dist/video-CydfS_mz.js +17 -0
- package/dist/video-circled-DcD57AXc.js +14 -0
- package/dist/video-filled-oePCRIdo.js +14 -0
- package/dist/video-rounded-DCwst-WS.js +17 -0
- package/dist/view-CJdB2aJG.js +17 -0
- package/dist/view-off-gIw--Mbm.js +17 -0
- package/dist/volume-up-BhnS1V_P.js +17 -0
- package/package.json +35 -34
- package/dist/activities-BItpQmgu.js +0 -20
- package/dist/ai-Cm-McnBH.js +0 -20
- package/dist/alert-CeNEDpNt.js +0 -20
- package/dist/alert-fill-B0lRoaWM.js +0 -20
- package/dist/alert-octagon-BtQ73AEv.js +0 -31
- package/dist/apps-3kanACUQ.js +0 -20
- package/dist/archive-BljHECFA.js +0 -20
- package/dist/arrow-down-DJrB41KO.js +0 -20
- package/dist/arrow-left-BlUIcxAU.js +0 -20
- package/dist/arrow-nav-left-CcAp6o1c.js +0 -20
- package/dist/arrow-nav-right-ChEgRnxR.js +0 -20
- package/dist/arrow-right-hFJWtGpW.js +0 -20
- package/dist/arrow-up-BoNu3zd0.js +0 -20
- package/dist/arrowhead-left-DzhUups0.js +0 -20
- package/dist/arrowhead-right-hOUHo-YZ.js +0 -20
- package/dist/arrowhead-top-BeOX6ksz.js +0 -20
- package/dist/atmo-BtgYN91U.js +0 -20
- package/dist/audio-CAvvwUTx.js +0 -20
- package/dist/audio-circled-DM6htApH.js +0 -17
- package/dist/audio-filled-BXiHsP80.js +0 -17
- package/dist/bag-BZRsjSsd.js +0 -17
- package/dist/bell-CQCER096.js +0 -20
- package/dist/bell-fill-aChKJgaN.js +0 -20
- package/dist/book-BfrnlAs2.js +0 -20
- package/dist/bookmark-fill-DYBFy3FW.js +0 -22
- package/dist/bookmark-outlined-DOp0JsCL.js +0 -17
- package/dist/bookmark-xnF8plDG.js +0 -22
- package/dist/box-B6Lnf6yN.js +0 -20
- package/dist/bulb-DPa9HFJb.js +0 -20
- package/dist/call-B4640D07.js +0 -20
- package/dist/camera-CyqvGu-X.js +0 -20
- package/dist/check-tjLCS8ah.js +0 -20
- package/dist/checklist-C1vs7uDD.js +0 -20
- package/dist/checkmark-BkHI2bPJ.js +0 -20
- package/dist/checkmark-double-DKplMifO.js +0 -20
- package/dist/chevron-down-B85CwGxm.js +0 -20
- package/dist/chevron-left-C5QInvBD.js +0 -20
- package/dist/chevron-right-B-sgzAMS.js +0 -20
- package/dist/chevron-up-CFbWy45T.js +0 -20
- package/dist/clipboard-erPeA7gV.js +0 -20
- package/dist/clock-HNp3vlXY.js +0 -20
- package/dist/close-CJsVHi5R.js +0 -20
- package/dist/cloud-save-CDIObB0m.js +0 -20
- package/dist/code-BaTx6VgJ.js +0 -20
- package/dist/collapse-Bu-la6pV.js +0 -20
- package/dist/color-palette-5lvAAh6s.js +0 -15
- package/dist/comment-D9LJbeJY.js +0 -20
- package/dist/comment-fill-CQbUt74m.js +0 -20
- package/dist/copy-DHZyUbu5.js +0 -21
- package/dist/copy-link-DC8ws5K6.js +0 -20
- package/dist/delete-CulWxG6U.js +0 -20
- package/dist/download-CY5ylIrl.js +0 -20
- package/dist/dpa-id-DfuiGjf8.js +0 -20
- package/dist/edit-Btq4PiyA.js +0 -20
- package/dist/edit-add-dYbZZg6Z.js +0 -20
- package/dist/eil-BMXQ81LW.js +0 -20
- package/dist/emoji-Dnw_XYtb.js +0 -20
- package/dist/emoji-add-CoqMT2d_.js +0 -20
- package/dist/envelope-C6CaSbaP.js +0 -18
- package/dist/event-Dkhccm3A.js +0 -15
- package/dist/expand-Bv9IkLSc.js +0 -20
- package/dist/external-link-CLEA77I8.js +0 -20
- package/dist/file-DHHTCstj.js +0 -20
- package/dist/file-pdf-C82NVnIR.js +0 -20
- package/dist/filter-RnJPmv5W.js +0 -20
- package/dist/filter-outline-BMhNcOjm.js +0 -18
- package/dist/flag-BGkR4y9r.js +0 -20
- package/dist/flag-fill-Cwp8qe4S.js +0 -20
- package/dist/flag-filled-OAouKGWM.js +0 -20
- package/dist/flag-outline-Csddk9b3.js +0 -20
- package/dist/flags-DJiaaTsJ.js +0 -21
- package/dist/flash-CbboXKSe.js +0 -20
- package/dist/folder-CPN99zt8.js +0 -20
- package/dist/folder-add-B2rylsZk.js +0 -20
- package/dist/folder-fill-D4MUcS9N.js +0 -20
- package/dist/folder-filled-DHorFePq.js +0 -20
- package/dist/gallery-D4khnFKk.js +0 -24
- package/dist/graphic-ZC08BYzB.js +0 -20
- package/dist/graphic-circled-Df_ai6ku.js +0 -17
- package/dist/graphic-filled-BmrVF-pv.js +0 -17
- package/dist/graphics-D0ui2HZx.js +0 -24
- package/dist/grid-1-DeWEtrkk.js +0 -20
- package/dist/grid-2-CuKDAFUl.js +0 -20
- package/dist/grid-3-BLAmNgRJ.js +0 -20
- package/dist/grid-4-woVUU82i.js +0 -20
- package/dist/grid-6-CHRSrKJp.js +0 -20
- package/dist/grid-9-Dfl31Px5.js +0 -20
- package/dist/grid-masonry-9-B3OsdmhD.js +0 -21
- package/dist/grid-masonry-Cg9q2utv.js +0 -20
- package/dist/help-DTdd0ykb.js +0 -20
- package/dist/home-DgxUY3p0.js +0 -20
- package/dist/image focus point-D-_ag0R8.js +0 -20
- package/dist/image-D2o2jVS5.js +0 -20
- package/dist/impact-high-CAymdpYb.js +0 -20
- package/dist/impact-low-B0kQ1t4M.js +0 -20
- package/dist/impact-medium-WQkSUYFE.js +0 -20
- package/dist/impact-very-high-Bax2oVUR.js +0 -20
- package/dist/impact-very-low-BisbtKNk.js +0 -20
- package/dist/index-FTIb4npT.js +0 -17334
- package/dist/info-7KOMvxG9.js +0 -20
- package/dist/info-fill-EhuXRegE.js +0 -20
- package/dist/info-filled-D4JSH75t.js +0 -20
- package/dist/label-BOdJOAEk.js +0 -20
- package/dist/label-filled-BJsmesWI.js +0 -20
- package/dist/language-BvPA9B-P.js +0 -20
- package/dist/latest-Cb0lZ51k.js +0 -20
- package/dist/lightbulb-BhsWvG79.js +0 -18
- package/dist/list-DIA_xSrW.js +0 -20
- package/dist/list-search-Cd5lAh3z.js +0 -24
- package/dist/lock-BjBh9xdV.js +0 -20
- package/dist/lock-filled-Cw1pdiYT.js +0 -20
- package/dist/mail-C5rOL6ma.js +0 -20
- package/dist/map-24b5cjks.js +0 -20
- package/dist/map-outline-Di6SwDbX.js +0 -20
- package/dist/menu-DHsNM25j.js +0 -20
- package/dist/minus-DLLbROT1.js +0 -20
- package/dist/more-horizontal-CECOIkzS.js +0 -20
- package/dist/more-vertical-BynEXacr.js +0 -20
- package/dist/move-KyQyjK1S.js +0 -20
- package/dist/move-up-down-Cl5YMexv.js +0 -20
- package/dist/navigation-BLPUzjIN.js +0 -20
- package/dist/note-xYT6Onhw.js +0 -20
- package/dist/offline-ChQ2GNd-.js +0 -20
- package/dist/package-CmvTfPkU.js +0 -20
- package/dist/paper-plane-D0T_T5k_.js +0 -20
- package/dist/paperplane-CxotJOj1.js +0 -20
- package/dist/pause-DQX0PgeI.js +0 -20
- package/dist/pause-circle-2Lg4OC8Q.js +0 -21
- package/dist/pdf-BYYJ6Zpx.js +0 -20
- package/dist/pen-check-BnVWEQjz.js +0 -17
- package/dist/pen-hayXQXvR.js +0 -17
- package/dist/people-D7JKtqgr.js +0 -20
- package/dist/phone-B263YkYF.js +0 -20
- package/dist/picture-C-5o9qUA.js +0 -20
- package/dist/picture-circled-BfcNmWrH.js +0 -17
- package/dist/picture-filled-CAC9tCtZ.js +0 -17
- package/dist/picture-gallery-DwAT1Un5.js +0 -18
- package/dist/pin-ClEXsc0J.js +0 -20
- package/dist/planning-DOC1SfXc.js +0 -20
- package/dist/play-C0Q_8jaM.js +0 -20
- package/dist/play-circle-D1OKVogh.js +0 -20
- package/dist/play-fill-6ECJcrdN.js +0 -20
- package/dist/plus-C5LYepTU.js +0 -20
- package/dist/plus-circle-DqSgdoYW.js +0 -20
- package/dist/print-BZFLujFQ.js +0 -20
- package/dist/refresh-BDDuB36q.js +0 -20
- package/dist/reset-D7sQDNlF.js +0 -20
- package/dist/responsive-D9hU_U46.js +0 -21
- package/dist/rubix-thema-DwfXRtD3.js +0 -20
- package/dist/save-BaD6lzpj.js +0 -20
- package/dist/saved-search-B2cqEjaa.js +0 -21
- package/dist/saved-search-fill-C1_VogBI.js +0 -23
- package/dist/search-Btkc6aCH.js +0 -20
- package/dist/settings-CV3WEvQP.js +0 -20
- package/dist/share-BLT7lJcU.js +0 -20
- package/dist/share-alternative-B8N-l7ua.js +0 -20
- package/dist/sidebar-B9fZ29fM.js +0 -17
- package/dist/sidebar-fill-DlibY31h.js +0 -21
- package/dist/slack-Bc5o9mQu.js +0 -20
- package/dist/slider-config-CKo8jjgh.js +0 -20
- package/dist/spellcheck-CUIbR59I.js +0 -20
- package/dist/spinner-D8qUAVRx.js +0 -15
- package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +0 -123
- package/dist/src/components/DpaMediaItem/DpaMediaItem.stories.ts +0 -140
- package/dist/src/components/UiAutocomplete/UiAutocomplete.spec.ts +0 -39
- package/dist/src/components/UiAutocomplete/UiAutocomplete.stories.ts +0 -46
- package/dist/src/components/UiBadge/UiBadge.spec.ts +0 -32
- package/dist/src/components/UiBadge/UiBadge.stories.ts +0 -80
- package/dist/src/components/UiButton/UiButton.spec.ts +0 -136
- package/dist/src/components/UiButton/UiButton.stories.ts +0 -57
- package/dist/src/components/UiButtonGroup/UiButtonGroup.spec.ts +0 -16
- package/dist/src/components/UiButtonGroup/UiButtonGroup.stories.ts +0 -50
- package/dist/src/components/UiCard/UiCard.spec.ts +0 -16
- package/dist/src/components/UiCard/UiCard.stories.ts +0 -30
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +0 -67
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.stories.ts +0 -59
- package/dist/src/components/UiCheckbox/UiCheckbox.spec.ts +0 -173
- package/dist/src/components/UiCheckbox/UiCheckbox.stories.ts +0 -99
- package/dist/src/components/UiChip/UiChip.spec.ts +0 -75
- package/dist/src/components/UiChip/UiChip.stories.ts +0 -39
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.spec.ts +0 -21
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.stories.ts +0 -66
- package/dist/src/components/UiColorPicker/UiColorPicker.spec.ts +0 -52
- package/dist/src/components/UiColorPicker/UiColorPicker.stories.ts +0 -44
- package/dist/src/components/UiDatePicker/UiDatePicker.spec.ts +0 -335
- package/dist/src/components/UiDatePicker/UiDatePicker.stories.ts +0 -273
- package/dist/src/components/UiDialog/UiDialog.spec.ts +0 -160
- package/dist/src/components/UiDialog/UiDialog.stories.ts +0 -79
- package/dist/src/components/UiFilterBadge/UiFilterBadge.spec.ts +0 -17
- package/dist/src/components/UiFilterBadge/UiFilterBadge.stories.ts +0 -44
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.spec.ts +0 -41
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.stories.ts +0 -55
- package/dist/src/components/UiFilterButton/UiFilterButton.spec.ts +0 -79
- package/dist/src/components/UiFilterButton/UiFilterButton.stories.ts +0 -88
- package/dist/src/components/UiIcon/IconOverview.stories.vue +0 -23
- package/dist/src/components/UiIcon/UiIcon.spec.ts +0 -56
- package/dist/src/components/UiIcon/UiIcon.stories.ts +0 -48
- package/dist/src/components/UiIconButton/UiIconButton.spec.ts +0 -78
- package/dist/src/components/UiIconButton/UiIconButton.stories.ts +0 -63
- package/dist/src/components/UiInfoContent/UiInfoContent.spec.ts +0 -43
- package/dist/src/components/UiInfoContent/UiInfoContent.stories.ts +0 -56
- package/dist/src/components/UiInput/UiInput.spec.ts +0 -239
- package/dist/src/components/UiInput/UiInput.stories.ts +0 -127
- package/dist/src/components/UiList/UiList.spec.ts +0 -22
- package/dist/src/components/UiList/UiList.stories.ts +0 -64
- package/dist/src/components/UiListItem/UiListItem.spec.ts +0 -99
- package/dist/src/components/UiListItem/UiListItem.stories.ts +0 -83
- package/dist/src/components/UiMenu/UiMenu.spec.ts +0 -319
- package/dist/src/components/UiMenu/UiMenu.stories.ts +0 -634
- package/dist/src/components/UiOverlay/UiOverlay.spec.ts +0 -16
- package/dist/src/components/UiOverlay/UiOverlay.stories.ts +0 -22
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +0 -32
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.stories.ts +0 -39
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.spec.ts +0 -66
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.stories.ts +0 -70
- package/dist/src/components/UiSearchBar/UiSearchBar.spec.ts +0 -82
- package/dist/src/components/UiSearchBar/UiSearchBar.stories.ts +0 -191
- package/dist/src/components/UiSearchInput/UiSearchInput.spec.ts +0 -45
- package/dist/src/components/UiSearchInput/UiSearchInput.stories.ts +0 -61
- package/dist/src/components/UiSection/UiSection.spec.ts +0 -49
- package/dist/src/components/UiSection/UiSection.stories.ts +0 -61
- package/dist/src/components/UiSectionDivider/UiSectionDivider.spec.ts +0 -19
- package/dist/src/components/UiSectionDivider/UiSectionDivider.stories.ts +0 -48
- package/dist/src/components/UiSelect/UIiSelect.spec.ts +0 -102
- package/dist/src/components/UiSelect/UiSelect.stories.ts +0 -94
- package/dist/src/components/UiSimpleInput/UiSimpleInput.spec.ts +0 -58
- package/dist/src/components/UiSimpleInput/UiSimpleInput.stories.ts +0 -53
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.spec.ts +0 -15
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.stories.ts +0 -33
- package/dist/src/components/UiSnackbar/UiSnackbar.spec.ts +0 -63
- package/dist/src/components/UiSnackbar/UiSnackbar.stories.ts +0 -65
- package/dist/src/components/UiSpinner/UiSpinner.spec.ts +0 -30
- package/dist/src/components/UiSpinner/UiSpinner.stories.ts +0 -48
- package/dist/src/components/UiTextButton/UiTextButton.spec.ts +0 -99
- package/dist/src/components/UiTextButton/UiTextButton.stories.ts +0 -60
- package/dist/src/components/UiToggleButton/UiToggleButton.spec.ts +0 -89
- package/dist/src/components/UiToggleButton/UiToggleButton.stories.ts +0 -102
- package/dist/src/components/UiTooltip/UiTooltip.spec.ts +0 -139
- package/dist/src/components/UiTooltip/UiTooltip.stories.ts +0 -107
- package/dist/src/compositions/useBreakpoints/UseBreakpoints.stories.ts +0 -23
- package/dist/src/compositions/useBreakpoints/UseBreakpoints.stories.vue +0 -12
- package/dist/src/utils/index.spec.ts +0 -12
- package/dist/standard-view-Dxki5peq.js +0 -17
- package/dist/star-C1PxgOY0.js +0 -20
- package/dist/star-fill-Cu3OHX26.js +0 -20
- package/dist/star-filled-DwmVr3-K.js +0 -17
- package/dist/stop-a1HFFTYT.js +0 -20
- package/dist/story-cFfb6U5M.js +0 -20
- package/dist/sync-ByhHAcxn.js +0 -20
- package/dist/tailwindPreset.css +0 -126
- package/dist/tasks-WqVhK72A.js +0 -20
- package/dist/text-BQOEfeLD.js +0 -20
- package/dist/text-circled-8j2qlDjm.js +0 -17
- package/dist/text-filled-BmOtGCqw.js +0 -17
- package/dist/thumbs-down-CW3Ywvkl.js +0 -21
- package/dist/thumbs-up-DWPn4wB4.js +0 -21
- package/dist/thumbs-up-double-BGxmp3wM.js +0 -21
- package/dist/topic-Pwsjr-3w.js +0 -20
- package/dist/union-C0vaSL4Q.js +0 -15
- package/dist/upload-vCj_y1u9.js +0 -20
- package/dist/user-need-divert-me-BqXB1SHR.js +0 -20
- package/dist/user-need-educate-me-CcVzldYQ.js +0 -22
- package/dist/user-need-give-me-perspective-YQOka8w_.js +0 -22
- package/dist/user-need-help-me-ZhNnC_tG.js +0 -20
- package/dist/user-need-touch-me-CiRqMVvW.js +0 -22
- package/dist/user-need-update-me-6FCFz2fV.js +0 -22
- package/dist/video overlay-Cm961qqr.js +0 -21
- package/dist/video-Dpca01fw.js +0 -20
- package/dist/video-circled-D8SYUhIb.js +0 -17
- package/dist/video-filled-ejKuMtRA.js +0 -17
- package/dist/video-rounded-CgPpiIhC.js +0 -20
- package/dist/view-CtVEr5Rx.js +0 -20
- package/dist/view-off-BQketQe9.js +0 -20
- package/dist/volume-up-Ds4vlnwd.js +0 -20
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { type ComponentMountingOptions, mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
import UiIconButton from "./UiIconButton.vue";
|
|
5
|
-
|
|
6
|
-
function createWrapper(
|
|
7
|
-
options: ComponentMountingOptions<typeof UiIconButton> = {},
|
|
8
|
-
) {
|
|
9
|
-
return mount(UiIconButton, {
|
|
10
|
-
...options,
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
describe("UiIconButton", () => {
|
|
15
|
-
it("should have no background when color none is taken ", () => {
|
|
16
|
-
const wrapper = createWrapper({
|
|
17
|
-
props: {
|
|
18
|
-
title: "Title",
|
|
19
|
-
iconName: "alert",
|
|
20
|
-
backgroundColor: "none",
|
|
21
|
-
iconColor: "gray",
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
expect(wrapper.classes("bg-blue-default")).toBe(false);
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it("should render small sized button by default", () => {
|
|
29
|
-
const wrapper = createWrapper({
|
|
30
|
-
props: {
|
|
31
|
-
iconName: "alert",
|
|
32
|
-
size: "medium",
|
|
33
|
-
title: "Foo",
|
|
34
|
-
backgroundColor: "none",
|
|
35
|
-
iconColor: "gray",
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
expect(wrapper.classes("h-8")).toBe(true);
|
|
39
|
-
expect(wrapper.classes("w-8")).toBe(true);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
it("should emit a click event when clicked", async () => {
|
|
43
|
-
const wrapper = createWrapper({
|
|
44
|
-
props: {
|
|
45
|
-
title: "Title",
|
|
46
|
-
iconName: "alert",
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
await wrapper.trigger("click");
|
|
51
|
-
|
|
52
|
-
expect(wrapper.emitted().click).toBeTruthy();
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
it("should not emit click event when disabled", async () => {
|
|
56
|
-
const wrapper = createWrapper({
|
|
57
|
-
props: {
|
|
58
|
-
title: "Title",
|
|
59
|
-
iconName: "alert",
|
|
60
|
-
disabled: true,
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
await wrapper.trigger("click");
|
|
65
|
-
expect(wrapper.emitted().click).toBeFalsy();
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
it("should have no hover effect when disabled", async () => {
|
|
69
|
-
const wrapper = createWrapper({
|
|
70
|
-
props: {
|
|
71
|
-
title: "Title",
|
|
72
|
-
iconName: "alert",
|
|
73
|
-
disabled: true,
|
|
74
|
-
},
|
|
75
|
-
});
|
|
76
|
-
expect(wrapper.classes("disabled:hover:bg-none")).toBe(true);
|
|
77
|
-
});
|
|
78
|
-
});
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
-
import { action } from "storybook/actions";
|
|
3
|
-
|
|
4
|
-
import { icons } from "../UiIcon/icons.js";
|
|
5
|
-
import UiIconButton from "./UiIconButton.vue";
|
|
6
|
-
|
|
7
|
-
const meta = {
|
|
8
|
-
title: "Ui/UiIconButton",
|
|
9
|
-
component: UiIconButton,
|
|
10
|
-
argTypes: {
|
|
11
|
-
title: {
|
|
12
|
-
control: "text",
|
|
13
|
-
},
|
|
14
|
-
iconName: {
|
|
15
|
-
control: "select",
|
|
16
|
-
options: Object.keys(icons),
|
|
17
|
-
},
|
|
18
|
-
size: {
|
|
19
|
-
control: "select",
|
|
20
|
-
options: ["small", "medium", "large", "xl"],
|
|
21
|
-
},
|
|
22
|
-
backgroundColor: {
|
|
23
|
-
control: "select",
|
|
24
|
-
options: ["blue", "gray-hover", "none"],
|
|
25
|
-
},
|
|
26
|
-
iconColor: {
|
|
27
|
-
control: "select",
|
|
28
|
-
options: ["blue", "white", "gray"],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
args: {
|
|
32
|
-
title: "Title",
|
|
33
|
-
iconName: "alert",
|
|
34
|
-
size: "large",
|
|
35
|
-
backgroundColor: "blue",
|
|
36
|
-
iconColor: "white",
|
|
37
|
-
},
|
|
38
|
-
render: (args) => ({
|
|
39
|
-
setup() {
|
|
40
|
-
return { args };
|
|
41
|
-
},
|
|
42
|
-
components: { UiIconButton },
|
|
43
|
-
template: "<UiIconButton v-bind='args' @click='action'></UiIconButton>",
|
|
44
|
-
methods: { action: action("click") },
|
|
45
|
-
}),
|
|
46
|
-
} satisfies Meta<typeof UiIconButton>;
|
|
47
|
-
|
|
48
|
-
export default meta;
|
|
49
|
-
type Story = StoryObj<typeof meta>;
|
|
50
|
-
|
|
51
|
-
export const Default: Story = {};
|
|
52
|
-
|
|
53
|
-
export const Menu: Story = {
|
|
54
|
-
args: {
|
|
55
|
-
backgroundColor: "none",
|
|
56
|
-
iconColor: "gray",
|
|
57
|
-
iconName: "more-horizontal",
|
|
58
|
-
size: "large",
|
|
59
|
-
},
|
|
60
|
-
parameters: {
|
|
61
|
-
backgrounds: { default: "white" },
|
|
62
|
-
},
|
|
63
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
import UiInfoContent from "./UiInfoContent.vue";
|
|
5
|
-
|
|
6
|
-
describe("UiInfoContent", () => {
|
|
7
|
-
const wrapper = mount(UiInfoContent, {
|
|
8
|
-
slots: {
|
|
9
|
-
title: "Keine Ergebnisse",
|
|
10
|
-
default: "Das ist ein Test-Text.",
|
|
11
|
-
actions: `<button>Klick mich</button>`,
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
iconBackground: "white",
|
|
15
|
-
iconName: "search",
|
|
16
|
-
iconSize: "xl",
|
|
17
|
-
iconColor: "gray",
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
it("renders slot content for title, text and action content", () => {
|
|
21
|
-
expect(wrapper.find("[data-testid='info-title']").text()).toBe(
|
|
22
|
-
"Keine Ergebnisse",
|
|
23
|
-
);
|
|
24
|
-
expect(wrapper.find("[data-testid='info-text']").text()).toBe(
|
|
25
|
-
"Das ist ein Test-Text.",
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
expect(wrapper.find("button").text()).toBe("Klick mich");
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it("renders correct backgroundColor", () => {
|
|
32
|
-
const iconBackground = wrapper.find("[data-testid='info-icon']");
|
|
33
|
-
expect(iconBackground.classes("bg-white")).toBe(true);
|
|
34
|
-
});
|
|
35
|
-
it("renders correct icon color", () => {
|
|
36
|
-
const iconColor = wrapper.find("[data-testid='info-icon']");
|
|
37
|
-
expect(iconColor.classes("text-gray-400")).toBe(true);
|
|
38
|
-
});
|
|
39
|
-
it("renders correct icon size", () => {
|
|
40
|
-
const iconSize = wrapper.find("[data-testid='icon']");
|
|
41
|
-
expect(iconSize.classes("size-10")).toBe(true);
|
|
42
|
-
});
|
|
43
|
-
});
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
-
|
|
3
|
-
import UiButton from "../UiButton/UiButton.vue";
|
|
4
|
-
import { icons } from "../UiIcon/icons.js";
|
|
5
|
-
import UiInfoContent from "./UiInfoContent.vue";
|
|
6
|
-
|
|
7
|
-
const meta = {
|
|
8
|
-
title: "Ui/UiInfoContent",
|
|
9
|
-
component: UiInfoContent,
|
|
10
|
-
argTypes: {
|
|
11
|
-
iconBackground: {
|
|
12
|
-
control: "select",
|
|
13
|
-
options: ["white", "gray", "green"],
|
|
14
|
-
},
|
|
15
|
-
iconColor: {
|
|
16
|
-
control: "select",
|
|
17
|
-
options: ["gray", "white"],
|
|
18
|
-
},
|
|
19
|
-
iconName: {
|
|
20
|
-
control: "select",
|
|
21
|
-
options: Object.keys(icons),
|
|
22
|
-
},
|
|
23
|
-
iconSize: {
|
|
24
|
-
control: "select",
|
|
25
|
-
options: ["xs", "small", "medium", "large", "xl"],
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
args: {
|
|
29
|
-
iconBackground: "white",
|
|
30
|
-
iconColor: "gray",
|
|
31
|
-
iconName: "search",
|
|
32
|
-
iconSize: "xl",
|
|
33
|
-
},
|
|
34
|
-
render: (args) => ({
|
|
35
|
-
setup() {
|
|
36
|
-
return { args };
|
|
37
|
-
},
|
|
38
|
-
components: { UiInfoContent, UiButton },
|
|
39
|
-
template:
|
|
40
|
-
"<UiInfoContent v-bind='args' class='mx-auto max-w-[657px]'>" +
|
|
41
|
-
"<template #title>" +
|
|
42
|
-
"Keine Ergebnisse" +
|
|
43
|
-
"</template>" +
|
|
44
|
-
"Leider konnten wir keine Ergebnisse finden. Bitte passen Sie Ihre Suchanfrage an oder speichern Sie die Suche trotzdem, um über Treffer informiert zu werden." +
|
|
45
|
-
"<template #actions>" +
|
|
46
|
-
"<UiButton color='blue'>Suche trotzdem speichern</UiButton>" +
|
|
47
|
-
"<UiButton color='gray'>Suche löschen</UiButton>" +
|
|
48
|
-
"</template>" +
|
|
49
|
-
"</UiInfoContent>",
|
|
50
|
-
}),
|
|
51
|
-
} satisfies Meta<typeof UiInfoContent>;
|
|
52
|
-
|
|
53
|
-
export default meta;
|
|
54
|
-
type Story = StoryObj<typeof meta>;
|
|
55
|
-
|
|
56
|
-
export const Default: Story = {};
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import { type ComponentMountingOptions, mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
import UiInput from "./UiInput.vue";
|
|
5
|
-
|
|
6
|
-
function createWrapper(options: ComponentMountingOptions<typeof UiInput> = {}) {
|
|
7
|
-
return mount(UiInput, {
|
|
8
|
-
...options,
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
describe("UiInput", () => {
|
|
13
|
-
it("renders attributes on correct element", () => {
|
|
14
|
-
const wrapper = createWrapper({
|
|
15
|
-
props: {
|
|
16
|
-
id: "id",
|
|
17
|
-
class: "testClass",
|
|
18
|
-
"data-testid": "testId",
|
|
19
|
-
name: "name",
|
|
20
|
-
modelValue: "value",
|
|
21
|
-
placeholder: "placeholder",
|
|
22
|
-
required: "required",
|
|
23
|
-
readonly: true,
|
|
24
|
-
disabled: true,
|
|
25
|
-
"aria-invalid": "true",
|
|
26
|
-
"aria-errormessage": "message",
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
const root = wrapper.find(":first-child");
|
|
31
|
-
expect(root.element.classList.contains("testClass")).toBe(true);
|
|
32
|
-
expect(root.element.getAttribute("data-testid")).toBe("testId");
|
|
33
|
-
|
|
34
|
-
const input = wrapper.find("input");
|
|
35
|
-
expect(input.element.classList.contains("testClass")).toBe(false);
|
|
36
|
-
expect(input.element.getAttribute("data-testid")).not.toBe("testId");
|
|
37
|
-
expect(input.element.getAttribute("id")).toBe("id");
|
|
38
|
-
expect(input.element.getAttribute("name")).toBe("name");
|
|
39
|
-
expect(input.element.getAttribute("placeholder")).toBe("placeholder");
|
|
40
|
-
expect(input.element.hasAttribute("required")).toBe(true);
|
|
41
|
-
expect(input.element.hasAttribute("readonly")).toBe(true);
|
|
42
|
-
expect(input.element.hasAttribute("disabled")).toBe(true);
|
|
43
|
-
expect(input.element.getAttribute("aria-invalid")).toBe("true");
|
|
44
|
-
expect(input.element.getAttribute("aria-errormessage")).toBe("message");
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it("renders the label", async () => {
|
|
48
|
-
const wrapper = createWrapper({
|
|
49
|
-
props: {
|
|
50
|
-
label: "Veröffentlichungsdatum",
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
const label = wrapper.find("label");
|
|
54
|
-
|
|
55
|
-
expect(label.text()).toBe("Veröffentlichungsdatum");
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
it("renders the placeholder", async () => {
|
|
59
|
-
const wrapper = createWrapper({
|
|
60
|
-
props: {
|
|
61
|
-
placeholder: "Beispiel: Merkel",
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
const input = wrapper.find("input");
|
|
65
|
-
expect(input.attributes("placeholder")).toBe("Beispiel: Merkel");
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
it("renders value", async () => {
|
|
69
|
-
const wrapper = createWrapper({
|
|
70
|
-
props: {
|
|
71
|
-
modelValue: "foo",
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
const input = wrapper.find("input");
|
|
75
|
-
expect(input.element.value).toBe("foo");
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
it("emits focus event", async () => {
|
|
79
|
-
const wrapper = createWrapper();
|
|
80
|
-
const input = wrapper.find("input");
|
|
81
|
-
await input.trigger("focus");
|
|
82
|
-
await wrapper.vm.$nextTick();
|
|
83
|
-
expect(wrapper.emitted().focus).toBeTruthy();
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
it("emits blur event", async () => {
|
|
87
|
-
const wrapper = createWrapper();
|
|
88
|
-
const input = wrapper.find("input");
|
|
89
|
-
await input.trigger("blur");
|
|
90
|
-
await wrapper.vm.$nextTick();
|
|
91
|
-
expect(wrapper.emitted().blur).toBeTruthy();
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
it("changes value on input", async () => {
|
|
95
|
-
const wrapper = createWrapper({
|
|
96
|
-
props: {
|
|
97
|
-
modelValue: "foo",
|
|
98
|
-
},
|
|
99
|
-
});
|
|
100
|
-
const input = wrapper.find("input");
|
|
101
|
-
expect(input.element.value).toBe("foo");
|
|
102
|
-
await wrapper.setProps({
|
|
103
|
-
modelValue: "bar",
|
|
104
|
-
});
|
|
105
|
-
expect(input.element.value).toBe("bar");
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
it("renders the info", async () => {
|
|
109
|
-
const wrapper = createWrapper();
|
|
110
|
-
await wrapper.setProps({
|
|
111
|
-
inputStatus: "info",
|
|
112
|
-
infoText: "This is an info example",
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
const div = wrapper.find("input + div");
|
|
116
|
-
|
|
117
|
-
expect(div.text()).toBe("This is an info example");
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
it("renders the warning", async () => {
|
|
121
|
-
const wrapper = createWrapper();
|
|
122
|
-
await wrapper.setProps({
|
|
123
|
-
inputStatus: "warning",
|
|
124
|
-
warningMessage: "This is an warning example",
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
const div = wrapper.find("input + div");
|
|
128
|
-
|
|
129
|
-
expect(div.text()).toBe("This is an warning example");
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
it("renders the error", async () => {
|
|
133
|
-
const wrapper = createWrapper();
|
|
134
|
-
await wrapper.setProps({
|
|
135
|
-
inputStatus: "error",
|
|
136
|
-
errorMessage: "This is an error example",
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
const div = wrapper.find("input + div");
|
|
140
|
-
|
|
141
|
-
expect(div.text()).toBe("This is an error example");
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
it("works without v-model", async () => {
|
|
145
|
-
const wrapper = createWrapper();
|
|
146
|
-
const input = wrapper.find("input");
|
|
147
|
-
expect(input.element.value).toBe("");
|
|
148
|
-
let lastEvent = (wrapper.emitted<string>("update:modelValue") ?? []).at(-1);
|
|
149
|
-
expect(lastEvent).toEqual(undefined);
|
|
150
|
-
|
|
151
|
-
await input.setValue("a");
|
|
152
|
-
expect(input.element.value).toBe("a");
|
|
153
|
-
lastEvent = (wrapper.emitted<string>("update:modelValue") ?? []).at(-1);
|
|
154
|
-
expect(lastEvent).toEqual(["a"]);
|
|
155
|
-
|
|
156
|
-
await input.setValue("ab");
|
|
157
|
-
expect(input.element.value).toBe("ab");
|
|
158
|
-
lastEvent = (wrapper.emitted<string>("update:modelValue") ?? []).at(-1);
|
|
159
|
-
expect(lastEvent).toEqual(["ab"]);
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
it("doesn't undo inputs on blur (bug fix)", async () => {
|
|
163
|
-
const wrapper = createWrapper();
|
|
164
|
-
const input = wrapper.find("input");
|
|
165
|
-
|
|
166
|
-
// Focus the input to trigger an internal mechanism that swaps out styles on the `label` element.
|
|
167
|
-
await input.trigger("focus");
|
|
168
|
-
await input.setValue("ab");
|
|
169
|
-
expect(input.element.value).toBe("ab");
|
|
170
|
-
|
|
171
|
-
// Blur the input to trigger an internal mechanism that swaps out styles on the `label` element (again). This can trigger a bug.
|
|
172
|
-
await input.trigger("blur");
|
|
173
|
-
expect(input.element.value).toBe("ab");
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
it("renders as textarea with isTextarea prop", async () => {
|
|
177
|
-
const wrapper = createWrapper({
|
|
178
|
-
props: {
|
|
179
|
-
isTextarea: true,
|
|
180
|
-
},
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
expect(wrapper.find("textarea").exists()).toBe(true);
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
it("raises/lowers label correctly when making inputs and focusing/blurring the input (bug fix)", async () => {
|
|
187
|
-
const wrapper = createWrapper({ props: { label: "test" } });
|
|
188
|
-
const input = wrapper.find("input");
|
|
189
|
-
const label = wrapper.find("label");
|
|
190
|
-
const isLabelRaisedClassName = "-translate-y-1/2";
|
|
191
|
-
|
|
192
|
-
// Initially, the label is not raised
|
|
193
|
-
expect(label.element.classList.contains(isLabelRaisedClassName)).toBe(
|
|
194
|
-
false,
|
|
195
|
-
);
|
|
196
|
-
|
|
197
|
-
// Upon focusing, the label will be raised
|
|
198
|
-
await input.trigger("focus");
|
|
199
|
-
expect(label.element.classList.contains(isLabelRaisedClassName)).toBe(true);
|
|
200
|
-
|
|
201
|
-
// Making an input keeps the label raised
|
|
202
|
-
input.element.value = "ab";
|
|
203
|
-
await input.trigger("input");
|
|
204
|
-
expect(input.element.value).toBe("ab");
|
|
205
|
-
expect(label.element.classList.contains(isLabelRaisedClassName)).toBe(true);
|
|
206
|
-
|
|
207
|
-
// Blurring the input keeps the label raised because there's now a value
|
|
208
|
-
await input.trigger("blur");
|
|
209
|
-
expect(label.element.classList.contains(isLabelRaisedClassName)).toBe(true);
|
|
210
|
-
|
|
211
|
-
// After focusing, the label is still raised
|
|
212
|
-
await input.trigger("focus");
|
|
213
|
-
expect(label.element.classList.contains(isLabelRaisedClassName)).toBe(true);
|
|
214
|
-
|
|
215
|
-
// Clearing the input but keeping the focus keeps the label raised
|
|
216
|
-
input.element.value = "";
|
|
217
|
-
await input.trigger("input");
|
|
218
|
-
expect(input.element.value).toBe("");
|
|
219
|
-
expect(label.element.classList.contains(isLabelRaisedClassName)).toBe(true);
|
|
220
|
-
|
|
221
|
-
// Blurring the input will eventually lower the label again
|
|
222
|
-
await input.trigger("blur");
|
|
223
|
-
expect(label.element.classList.contains(isLabelRaisedClassName)).toBe(
|
|
224
|
-
false,
|
|
225
|
-
);
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
it("can clear input value by setting modelValue to empty string (bug fix)", async () => {
|
|
229
|
-
const wrapper = createWrapper();
|
|
230
|
-
const input = wrapper.find("input");
|
|
231
|
-
expect(input.element.value).toBe("");
|
|
232
|
-
|
|
233
|
-
await input.setValue("test");
|
|
234
|
-
expect(input.element.value).toBe("test");
|
|
235
|
-
|
|
236
|
-
await wrapper.setProps({ modelValue: "" });
|
|
237
|
-
expect(input.element.value).toBe("");
|
|
238
|
-
});
|
|
239
|
-
});
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
-
import { action } from "storybook/actions";
|
|
3
|
-
|
|
4
|
-
import UiInput from "./UiInput.vue";
|
|
5
|
-
|
|
6
|
-
const meta = {
|
|
7
|
-
title: "Ui/UiInput",
|
|
8
|
-
component: UiInput,
|
|
9
|
-
argTypes: {
|
|
10
|
-
modelValue: { control: "text" },
|
|
11
|
-
type: {
|
|
12
|
-
control: { type: "select" },
|
|
13
|
-
options: ["text", "number", "time", "date", "password", "datetime-local"],
|
|
14
|
-
},
|
|
15
|
-
inputStatus: {
|
|
16
|
-
control: { type: "select" },
|
|
17
|
-
options: ["default", "info", "readonly", "warning", "error"],
|
|
18
|
-
},
|
|
19
|
-
label: { control: "text" },
|
|
20
|
-
placeholder: { control: "text" },
|
|
21
|
-
autofocus: { control: "boolean" },
|
|
22
|
-
chevron: { control: "boolean" },
|
|
23
|
-
disabled: { control: "boolean" },
|
|
24
|
-
isDateTimePicker: { control: "boolean" },
|
|
25
|
-
autocomplete: { control: "text" },
|
|
26
|
-
errorMessage: { control: "text" },
|
|
27
|
-
warningMessage: { control: "text" },
|
|
28
|
-
isTextarea: { control: "boolean" },
|
|
29
|
-
},
|
|
30
|
-
args: {
|
|
31
|
-
modelValue: "",
|
|
32
|
-
type: "text",
|
|
33
|
-
inputStatus: "default",
|
|
34
|
-
label: "",
|
|
35
|
-
placeholder: undefined,
|
|
36
|
-
autofocus: false,
|
|
37
|
-
chevron: false,
|
|
38
|
-
disabled: false,
|
|
39
|
-
isDateTimePicker: false,
|
|
40
|
-
autocomplete: "on",
|
|
41
|
-
errorMessage: "",
|
|
42
|
-
warningMessage: "",
|
|
43
|
-
isTextarea: false,
|
|
44
|
-
},
|
|
45
|
-
render: (args) => ({
|
|
46
|
-
components: { UiInput },
|
|
47
|
-
setup() {
|
|
48
|
-
return { args };
|
|
49
|
-
},
|
|
50
|
-
template: `
|
|
51
|
-
<UiInput
|
|
52
|
-
v-bind="args"
|
|
53
|
-
v-model="args.modelValue"
|
|
54
|
-
@input="input"
|
|
55
|
-
@update:modelValue="update"
|
|
56
|
-
/>`,
|
|
57
|
-
methods: {
|
|
58
|
-
input: action("input"),
|
|
59
|
-
update: action("update:modelValue"),
|
|
60
|
-
},
|
|
61
|
-
}),
|
|
62
|
-
} satisfies Meta<typeof UiInput>;
|
|
63
|
-
|
|
64
|
-
export default meta;
|
|
65
|
-
type Story = StoryObj<typeof meta>;
|
|
66
|
-
|
|
67
|
-
export const Default: Story = {};
|
|
68
|
-
export const WithLabel: Story = { args: { label: "My Label" } };
|
|
69
|
-
export const WithPlaceholder: Story = {
|
|
70
|
-
args: {
|
|
71
|
-
label: "My Label",
|
|
72
|
-
placeholder: "Some placeholder text",
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export const Readonly: Story = {
|
|
77
|
-
args: {
|
|
78
|
-
label: "My Label",
|
|
79
|
-
readonly: true,
|
|
80
|
-
modelValue: "Text value",
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export const WithErrorText: Story = {
|
|
85
|
-
args: {
|
|
86
|
-
label: "Error!",
|
|
87
|
-
inputStatus: "error",
|
|
88
|
-
modelValue: "Text value",
|
|
89
|
-
errorMessage: "Here goes the Error text",
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export const WithWarningText: Story = {
|
|
94
|
-
args: {
|
|
95
|
-
inputStatus: "warning",
|
|
96
|
-
label: "Warnung!",
|
|
97
|
-
modelValue: "Text value",
|
|
98
|
-
warningMessage: "Here goes the warning text",
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export const WithInfoText: Story = {
|
|
103
|
-
args: {
|
|
104
|
-
inputStatus: "info",
|
|
105
|
-
label: "Info!",
|
|
106
|
-
modelValue: "Text value",
|
|
107
|
-
infoText: "Here goes the info text",
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export const WithTypeDateTimeLocal: Story = {
|
|
112
|
-
args: {
|
|
113
|
-
label: "Aufnahmedatum",
|
|
114
|
-
placeholder: "Some placeholder text",
|
|
115
|
-
type: "datetime-local",
|
|
116
|
-
modelValue: "2018-06-12T19:30",
|
|
117
|
-
isDateTimePicker: true,
|
|
118
|
-
},
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
export const Textarea: Story = {
|
|
122
|
-
args: {
|
|
123
|
-
label: "Textarea",
|
|
124
|
-
placeholder: "Some placeholder text",
|
|
125
|
-
isTextarea: true,
|
|
126
|
-
},
|
|
127
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
import UiListItem from "../UiListItem/UiListItem.vue";
|
|
5
|
-
import UiList from "./UiList.vue";
|
|
6
|
-
|
|
7
|
-
describe("UiList", () => {
|
|
8
|
-
it("renders with slot content", () => {
|
|
9
|
-
const wrapper = mount(UiList, {
|
|
10
|
-
slots: {
|
|
11
|
-
default: UiListItem,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
expect(wrapper.classes("border")).toBe(true);
|
|
15
|
-
expect(wrapper.classes("text-base/6")).toBe(true);
|
|
16
|
-
expect(wrapper.classes("focus:outline-hidden")).toBe(true);
|
|
17
|
-
expect(wrapper.classes("sm:text-sm/5")).toBe(true);
|
|
18
|
-
|
|
19
|
-
const listItem = wrapper.findComponent(UiListItem);
|
|
20
|
-
expect(listItem.exists()).toBe(true);
|
|
21
|
-
});
|
|
22
|
-
});
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
-
|
|
3
|
-
import UiListItem from "../UiListItem/UiListItem.vue";
|
|
4
|
-
import UiList from "./UiList.vue";
|
|
5
|
-
|
|
6
|
-
const meta = {
|
|
7
|
-
title: "Ui/UiList",
|
|
8
|
-
component: UiList,
|
|
9
|
-
subcomponents: { UiListItem },
|
|
10
|
-
parameters: {
|
|
11
|
-
backgrounds: { default: "white" },
|
|
12
|
-
},
|
|
13
|
-
} satisfies Meta<typeof UiList>;
|
|
14
|
-
|
|
15
|
-
export default meta;
|
|
16
|
-
type Story = StoryObj<typeof meta>;
|
|
17
|
-
|
|
18
|
-
export const Default: Story = {
|
|
19
|
-
render: (args) => ({
|
|
20
|
-
setup() {
|
|
21
|
-
return { args };
|
|
22
|
-
},
|
|
23
|
-
components: { UiList, UiListItem },
|
|
24
|
-
template:
|
|
25
|
-
"<UiList v-bind='args'>" +
|
|
26
|
-
"<UiListItem>Test 1</UiListItem>" +
|
|
27
|
-
"<UiListItem>Test 2</UiListItem>" +
|
|
28
|
-
"<UiListItem>Test 3</UiListItem>" +
|
|
29
|
-
"<UiListItem>Test 4</UiListItem>" +
|
|
30
|
-
"</UiList>",
|
|
31
|
-
}),
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export const WithCheckboxes: Story = {
|
|
35
|
-
render: (args) => ({
|
|
36
|
-
setup() {
|
|
37
|
-
return { args };
|
|
38
|
-
},
|
|
39
|
-
components: { UiList, UiListItem },
|
|
40
|
-
template:
|
|
41
|
-
"<UiList v-bind='args'>" +
|
|
42
|
-
"<UiListItem checkBoxMenu>Test 1</UiListItem>" +
|
|
43
|
-
"<UiListItem checkBoxMenu>Test 2</UiListItem>" +
|
|
44
|
-
"<UiListItem checkBoxMenu>Test 3</UiListItem>" +
|
|
45
|
-
"<UiListItem checkBoxMenu>Test 4</UiListItem>" +
|
|
46
|
-
"</UiList>",
|
|
47
|
-
}),
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const WithCheckmark: Story = {
|
|
51
|
-
render: (args) => ({
|
|
52
|
-
setup() {
|
|
53
|
-
return { args };
|
|
54
|
-
},
|
|
55
|
-
components: { UiList, UiListItem },
|
|
56
|
-
template:
|
|
57
|
-
"<UiList v-bind='args'>" +
|
|
58
|
-
"<UiListItem selectable selected>Test 1</UiListItem>" +
|
|
59
|
-
"<UiListItem selectable selected>Test 2</UiListItem>" +
|
|
60
|
-
"<UiListItem selectable selected>Test 3</UiListItem>" +
|
|
61
|
-
"<UiListItem selectable selected>Test 4</UiListItem>" +
|
|
62
|
-
"</UiList>",
|
|
63
|
-
}),
|
|
64
|
-
};
|