@bethinkpl/design-system 26.1.0 → 26.1.2
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/design-system.umd.cjs +18 -18
- package/dist/design-system.umd.cjs.map +1 -1
- package/dist/lib/js/components/Banner/Banner.vue.d.ts +4 -0
- package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +1 -0
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +2 -0
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +1 -0
- package/dist/lib/js/components/Chip/Chip.vue.d.ts +3 -0
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.composables.d.ts +24 -0
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.consts.d.ts +3 -0
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +203 -166
- package/dist/lib/js/components/DatePickers/DatePickerBox/DatePickerBox.vue.d.ts +10 -5
- package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +402 -0
- package/dist/lib/js/components/DatePickers/DateRangePicker/index.d.ts +3 -0
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +7 -0
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +1 -0
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +4 -0
- package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +1 -0
- package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +1 -0
- package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +1 -0
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +4 -1
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +3 -0
- package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +1 -0
- package/dist/lib/js/components/Modal/Modal.vue.d.ts +1 -0
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +4 -0
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +4 -0
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +1 -0
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +4 -0
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +1 -0
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +1 -0
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +1 -0
- package/dist/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue.d.ts +1 -0
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +1 -0
- package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +3 -0
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +1 -0
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +1 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +5 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +5 -0
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +1 -0
- package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +1 -0
- package/dist/lib/js/components/Tile/Tile.vue.d.ts +1 -0
- package/dist/lib/js/components/Toast/Toast.vue.d.ts +576 -0
- package/dist/lib/js/components/Toast/index.d.ts +4 -0
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +1 -0
- package/dist/lib/js/components/Tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/lib/js/icons/fontawesome.d.ts +1 -0
- package/dist/lib/js/index.d.ts +3 -0
- package/docs/assets/{AccessStatus-CZ2wkKUN.js → AccessStatus-BXan1lEc.js} +1 -1
- package/docs/assets/{AccessStatus.stories-DqLttI6G.js → AccessStatus.stories-DxmB8jeD.js} +1 -1
- package/docs/assets/{BadgeScore-Cb8Vr0p3.js → BadgeScore-CJRAekNi.js} +1 -1
- package/docs/assets/{BadgeScore.stories-VUIYoC0K.js → BadgeScore.stories-kqknHhLd.js} +1 -1
- package/docs/assets/{Banner-C_-ztwHr.js → Banner-DeL_mSKv.js} +1 -1
- package/docs/assets/{Banner.stories-DEpqpjNt.js → Banner.stories-DOdH9jC-.js} +1 -1
- package/docs/assets/{BasicRichListItem-CL431QeF.js → BasicRichListItem-D3mhBGPV.js} +1 -1
- package/docs/assets/{BasicRichListItem.stories-DJhpvSDZ.js → BasicRichListItem.stories-C8LkxFbH.js} +2 -2
- package/docs/assets/{BlockadeStatus-D0rB6KRL.js → BlockadeStatus-COz686Yw.js} +1 -1
- package/docs/assets/{BlockedeStatus.stories--W5rj6m4.js → BlockedeStatus.stories-CF5KGt2v.js} +1 -1
- package/docs/assets/{Button-BfC5uvwA.js → Button-B0thvSZc.js} +1 -1
- package/docs/assets/{Button.stories-CI72rNoF.js → Button.stories-t4KLRczd.js} +1 -1
- package/docs/assets/{Card-BNrHU9qb.js → Card-DQn9130w.js} +1 -1
- package/docs/assets/{Card.stories-Tu0NJeHc.js → Card.stories-Bws-4i9c.js} +1 -1
- package/docs/assets/{CardExpandable-CyaYxO0k.js → CardExpandable-DjcLb6gt.js} +1 -1
- package/docs/assets/{CardExpandable.stories-BnMu24tF.js → CardExpandable.stories-DQgT5zfs.js} +1 -1
- package/docs/assets/{Checkbox-Bqk4dEqh.js → Checkbox-D_2ud6Th.js} +1 -1
- package/docs/assets/{Checkbox.stories-D8ttSHbp.js → Checkbox.stories-DwLSbAE5.js} +1 -1
- package/docs/assets/{Chip-DBH11WGD.js → Chip-LprVecVf.js} +1 -1
- package/docs/assets/{Chip.stories-Dd2KHKo0.js → Chip.stories-8NyJdmpb.js} +1 -1
- package/docs/assets/{Color-ERTF36HU-Dpy8vc_W.js → Color-ERTF36HU-Cyv2dVyO.js} +1 -1
- package/docs/assets/{Colors.stories-V9xulpl8.js → Colors.stories-B9f3lzBZ.js} +1 -1
- package/docs/assets/{ColorsThemes.stories-DULXUm6A.js → ColorsThemes.stories-DnjmHl__.js} +1 -1
- package/docs/assets/{ColorsTokensLms.stories-D7S65YJS.js → ColorsTokensLms.stories-BwtJlugM.js} +1 -1
- package/docs/assets/{ColorsTokensPrimaryBodywork.stories-D_vwh3Jq.js → ColorsTokensPrimaryBodywork.stories-C-UIhsfw.js} +1 -1
- package/docs/assets/{ColorsTokensPrimaryWnl.stories-BXkcRNQy.js → ColorsTokensPrimaryWnl.stories-pZHESTNX.js} +1 -1
- package/docs/assets/{CounterToggle-RylBZadb.js → CounterToggle-Bn8GLLo_.js} +1 -1
- package/docs/assets/{CounterToggle.stories-D_-AsS4y.js → CounterToggle.stories-i3F0njw3.js} +1 -1
- package/docs/assets/DatePicker-6bO3iVP5.js +2 -0
- package/docs/assets/{DatePicker.stories-D7a156oj.js → DatePicker.stories-Bm5x2cKf.js} +1 -1
- package/docs/assets/DateRangePicker-C_YxXpGt.js +1 -0
- package/docs/assets/DateRangePicker.stories-Br1hukIR.js +37 -0
- package/docs/assets/{Divider-BPqXVinF.js → Divider-ClNbKvxH.js} +1 -1
- package/docs/assets/{Divider.stories-D-I6wDB1.js → Divider.stories-DjiliY9Q.js} +1 -1
- package/docs/assets/{DocsRenderer-CFRXHY34-C1Auldw2.js → DocsRenderer-CFRXHY34-BXhvFi4s.js} +5 -5
- package/docs/assets/{Drawer-DbwdfqO9.js → Drawer-CPwHZ_w7.js} +1 -1
- package/docs/assets/{Drawer.stories-CA7ckJHC.js → Drawer.stories-COUOUpGR.js} +1 -1
- package/docs/assets/{DrawerContent-BGc6gxGX.js → DrawerContent-D-JrB94m.js} +1 -1
- package/docs/assets/{DrawerContent.stories-DQul9BkA.js → DrawerContent.stories-C01c08bP.js} +1 -1
- package/docs/assets/{DrawerDivider-CtJq0tq6.js → DrawerDivider-glZ2sb5T.js} +1 -1
- package/docs/assets/{DrawerDivider.stories-DM3Aqadb.js → DrawerDivider.stories-KJO8nE32.js} +1 -1
- package/docs/assets/{DrawerHeader-B5vYU2PL.js → DrawerHeader-rPEO3zyc.js} +1 -1
- package/docs/assets/{DrawerHeader.stories-cpfS-wBt.js → DrawerHeader.stories-BPskZz-V.js} +1 -1
- package/docs/assets/{DrawerListItem-0fUrCEXt.js → DrawerListItem-BtTMrhjG.js} +1 -1
- package/docs/assets/{DrawerListItem.stories-CmJW1Uss.js → DrawerListItem.stories-Kr7hSVJR.js} +1 -1
- package/docs/assets/{DrawerListItemGroup-CLrc_eJs.js → DrawerListItemGroup-BJGU_uck.js} +1 -1
- package/docs/assets/{DrawerListItemGroup.stories-bG34xd5v.js → DrawerListItemGroup.stories-CZ93-7rg.js} +1 -1
- package/docs/assets/{DrawerSection-DFvcNR71.js → DrawerSection-CqBCpJHk.js} +1 -1
- package/docs/assets/{DrawerSection.stories-DVELqRM_.js → DrawerSection.stories-DyDGPp7Y.js} +1 -1
- package/docs/assets/{DrawerTile-BJkMh2fU.js → DrawerTile-CwWntL3-.js} +1 -1
- package/docs/assets/{DrawerTile.stories-B8kWqDLf.js → DrawerTile.stories-DI0oJNxW.js} +1 -1
- package/docs/assets/{Dropdown-Dt2QFB2U.js → Dropdown-BFqYgkV7.js} +1 -1
- package/docs/assets/{Dropdown.stories-CDrmWXHI.js → Dropdown.stories-CmVTDgGH.js} +1 -1
- package/docs/assets/{FeatureIcon-B47w4DBU.js → FeatureIcon-CMzReDfy.js} +1 -1
- package/docs/assets/{FeatureIcon.stories-DfNuwkfR.js → FeatureIcon.stories-CmOZL5K8.js} +1 -1
- package/docs/assets/{GroupRichListItem-DSTlJwlb.js → GroupRichListItem-DJlVMVFf.js} +1 -1
- package/docs/assets/{GroupRichListItem.stories-C82L7KHk.js → GroupRichListItem.stories-B1-_fsF-.js} +1 -1
- package/docs/assets/{Icon-6eu_szpS.js → Icon-Daqcn32A.js} +5 -5
- package/docs/assets/{Icon.stories-D0Y2RyrD.js → Icon.stories-LBp3UCCh.js} +1 -1
- package/docs/assets/{IconButton-BO-CETCB.js → IconButton-ClvgQPZ_.js} +1 -1
- package/docs/assets/{IconButton.stories-C6kjifNZ.js → IconButton.stories-OizIRFpI.js} +1 -1
- package/docs/assets/{IconText-DF43QOY-.js → IconText-BSCjAPyJ.js} +1 -1
- package/docs/assets/{IconText.stories-B7IYW_LU.js → IconText.stories-BcJ7D5BW.js} +1 -1
- package/docs/assets/{Image-DjWPx_Cm.js → Image-SUTRVXoX.js} +1 -1
- package/docs/assets/{Image.stories-Cs6xAQBK.js → Image.stories-08ofVHJB.js} +1 -1
- package/docs/assets/{ItemsList-BRCXeyjX.js → ItemsList-MJRUsJOD.js} +1 -1
- package/docs/assets/{LoadingBar-COnzT5gw.js → LoadingBar-Bo6mXGaA.js} +1 -1
- package/docs/assets/{LoadingBar.stories-Bc3-cddz.js → LoadingBar.stories-DeC3pmh8.js} +1 -1
- package/docs/assets/{Modal-Bw0n_JyW.js → Modal-CnSHaffv.js} +1 -1
- package/docs/assets/{Modal.stories-Ba9D4xGC.js → Modal.stories-8Vq2m2VA.js} +1 -1
- package/docs/assets/{ModalDialog-BXp9X1p5.js → ModalDialog-Br9XyAyb.js} +1 -1
- package/docs/assets/{ModalDialog.stories-DfA5ze67.js → ModalDialog.stories-DY-EEkyy.js} +1 -1
- package/docs/assets/{NumberInCircle-2qc4scqu.js → NumberInCircle-CvJAMxEl.js} +1 -1
- package/docs/assets/{NumberInCircle.stories-DEPoFSIH.js → NumberInCircle.stories-CIPheFEZ.js} +1 -1
- package/docs/assets/{OutlineDivider-Bxh-mzNl.js → OutlineDivider-F421Sb92.js} +1 -1
- package/docs/assets/{OutlineDivider.stories-QIoOaFJB.js → OutlineDivider.stories-DOJmAB4N.js} +1 -1
- package/docs/assets/{OutlineItem-BjXpo06D.js → OutlineItem-B3PapuhG.js} +1 -1
- package/docs/assets/{OutlineItem.stories-BUu6aPfL.js → OutlineItem.stories-DrA_pCnx.js} +1 -1
- package/docs/assets/{OutlineSectionHeader-hAHWOzLF.js → OutlineSectionHeader-BTQYgDGK.js} +1 -1
- package/docs/assets/{OutlineSectionHeader.stories-GdEbBs1U.js → OutlineSectionHeader.stories-DAOIEP47.js} +1 -1
- package/docs/assets/{OverlayHeader-BzKvZZD3.js → OverlayHeader-i5OJFCjw.js} +1 -1
- package/docs/assets/{OverlayHeader.stories-DZaoIDUF.js → OverlayHeader.stories-CIi2o9YM.js} +1 -1
- package/docs/assets/{PageHeader-XjqUaNsz.js → PageHeader-ybo14zma.js} +1 -1
- package/docs/assets/{PageHeader.stories-C8lNq9Gy.js → PageHeader.stories-C84k8UsA.js} +1 -1
- package/docs/assets/{Pagination-_AHUDwwL.js → Pagination-CpkhlxKS.js} +1 -1
- package/docs/assets/{Pagination.stories-CMUAHShC.js → Pagination.stories-9yE1j1AT.js} +1 -1
- package/docs/assets/{PopOver-NPXfFzGB.js → PopOver-Bnhr6jSk.js} +1 -1
- package/docs/assets/{PopOver.stories--WLP9ABS.js → PopOver.stories-yqWxKflh.js} +1 -1
- package/docs/assets/{ProgressBar-BiigfDAt.js → ProgressBar-DLFYBwzz.js} +1 -1
- package/docs/assets/{ProgressBar.stories-CaTLfTca.js → ProgressBar.stories-mHQxWzow.js} +1 -1
- package/docs/assets/{ProgressDonutChart-BmTVWpWh.js → ProgressDonutChart-CO2D6WT2.js} +1 -1
- package/docs/assets/{ProgressDonutChart.stories-D_34I_ER.js → ProgressDonutChart.stories-D3I72JCw.js} +1 -1
- package/docs/assets/{RadioButton-BqvATv1T.js → RadioButton-COJplb0H.js} +1 -1
- package/docs/assets/{RadioButton.stories-BpbTcL59.js → RadioButton.stories-CB-ws-FM.js} +1 -1
- package/docs/assets/{RichListItem.stories-C1DOwiaj.js → RichListItem.stories-pbdki9Xk.js} +2 -2
- package/docs/assets/{SectionHeader-BzbLJwTE.js → SectionHeader-BklZ7w6L.js} +1 -1
- package/docs/assets/{SectionHeader.stories-C3Dk3EQq.js → SectionHeader.stories-C5t1XJ22.js} +1 -1
- package/docs/assets/{SectionTitle-BGj1y63i.js → SectionTitle-Bo_ArbM7.js} +1 -1
- package/docs/assets/{SectionTitle.stories-BdUNgJ8M.js → SectionTitle.stories-DWuWduVl.js} +1 -1
- package/docs/assets/{SelectList-CdwgpCxZ.js → SelectList-DWop0yaP.js} +1 -1
- package/docs/assets/{SelectList.stories-CkENU7xp.js → SelectList.stories-Bfo60S0K.js} +1 -1
- package/docs/assets/{SelectListItem-B6bDi3OI.js → SelectListItem-CSkYz5LV.js} +1 -1
- package/docs/assets/{SelectListItem.stories-QbUrayaQ.js → SelectListItem.stories-hRhkXAhJ.js} +1 -1
- package/docs/assets/{SelectListItemDivider-BSD2eI6K.js → SelectListItemDivider-CU5vX-7p.js} +1 -1
- package/docs/assets/{SelectListItemDivider.stories-IhgBxgAM.js → SelectListItemDivider.stories-DSXQ6aee.js} +1 -1
- package/docs/assets/{SelectListItemTile-C_oqRlGz.js → SelectListItemTile-CWTq7Qbi.js} +1 -1
- package/docs/assets/{SelectListItemTile.stories-Dn8gM40T.js → SelectListItemTile.stories-uD0_0N79.js} +1 -1
- package/docs/assets/{SelectListItemToggle-C2Nyl3Jx.js → SelectListItemToggle-D9fo6iYH.js} +1 -1
- package/docs/assets/{SelectListItemToggle.stories-n17klXWd.js → SelectListItemToggle.stories-DUPLVyV1.js} +1 -1
- package/docs/assets/{SelectListSectionTitle-ntTJtQK2.js → SelectListSectionTitle-DKYayu9U.js} +1 -1
- package/docs/assets/{SelectListSectionTitle.stories-DTi_MtTn.js → SelectListSectionTitle.stories-DM4MR7e2.js} +1 -1
- package/docs/assets/{SelectionControl-aaEuqhMt.js → SelectionControl-C6JexBmQ.js} +1 -1
- package/docs/assets/{SelectionTile-Bl618mwa.js → SelectionTile-Chqp6qSv.js} +2 -2
- package/docs/assets/{SelectionTile.stories-C2OiBoE6.js → SelectionTile.stories-fhT9Eanx.js} +1 -1
- package/docs/assets/{Skeleton-yR2iGt-A.js → Skeleton-CMYm0ueF.js} +1 -1
- package/docs/assets/{Skeleton.stories-D8E42zl1.js → Skeleton.stories-CepOvJUE.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded-DyGKPMyP.js → SurveyQuestionOpenEnded-CT6hRs3h.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded.stories-8WgkwYaH.js → SurveyQuestionOpenEnded.stories-Ck3fI5pW.js} +1 -1
- package/docs/assets/{SurveyQuestionScale-Cx65nLcq.js → SurveyQuestionScale-BpNGyACU.js} +1 -1
- package/docs/assets/{SurveyQuestionScale.stories-BWzL4fMZ.js → SurveyQuestionScale.stories-yMuZDFmZ.js} +1 -1
- package/docs/assets/{SurveyToggle-CISyD5gz.js → SurveyToggle-3gXFb5oH.js} +1 -1
- package/docs/assets/{SurveyToggle.stories-TJijEheH.js → SurveyToggle.stories-DErlBwHj.js} +1 -1
- package/docs/assets/{Switch-DkIgraJz.js → Switch-DdvT2o45.js} +1 -1
- package/docs/assets/{Switch.stories-C8PyEPpm.js → Switch.stories-BzNKJgpI.js} +1 -1
- package/docs/assets/{TabItem-Cc0CSUyr.js → TabItem-IuI5xjz1.js} +1 -1
- package/docs/assets/{TabItem.stories-Bh1XNs3q.js → TabItem.stories-g56H3l-h.js} +1 -1
- package/docs/assets/{TextGroup-DrSbeVN2.js → TextGroup-F6Fc0qPD.js} +1 -1
- package/docs/assets/{TextGroup.stories-BnbOUO2B.js → TextGroup.stories-BZSgsAp8.js} +1 -1
- package/docs/assets/{ThreeColumnLayout-NhAT4cZY.js → ThreeColumnLayout-DLip97ZI.js} +1 -1
- package/docs/assets/{ThreeColumnLayout.stories-EL55MOL9.js → ThreeColumnLayout.stories-pCRL0b7M.js} +1 -1
- package/docs/assets/{Tile-DXVTBx8j.js → Tile-Nqx7KGXe.js} +1 -1
- package/docs/assets/{Tile.sb.shared-DAh00AIu.js → Tile.sb.shared-BcarO9-C.js} +1 -1
- package/docs/assets/{Tile.stories-xIzW0_NG.js → Tile.stories-DpCy0xpQ.js} +1 -1
- package/docs/assets/Toast-BrbX1Iwx.js +1 -0
- package/docs/assets/Toast.stories-C5sNU_N7.js +58 -0
- package/docs/assets/{ToggleButton-BCtYIja9.js → ToggleButton-B19B9CsO.js} +1 -1
- package/docs/assets/{ToggleButton.stories-CT0hACpK.js → ToggleButton.stories-MBmynAQa.js} +1 -1
- package/docs/assets/{Tooltip-DrwiSTCm.js → Tooltip-CPu68UXg.js} +1 -1
- package/docs/assets/{Tooltip.stories-CEXpck3_.js → Tooltip.stories-CpUsha-Z.js} +1 -1
- package/docs/assets/{TypographyTokensLms.stories-fssptMKG.js → TypographyTokensLms.stories-CGkGkK-q.js} +1 -1
- package/docs/assets/{TypographyVariables.stories-BhXf4d0y.js → TypographyVariables.stories-BfiRWJuY.js} +1 -1
- package/docs/assets/{Well--SGDk2ZR.js → Well-D7yLLQH0.js} +1 -1
- package/docs/assets/{Well.stories-CASSIsWd.js → Well.stories-e-ci7Apm.js} +1 -1
- package/docs/assets/{entry-preview-DMbhNDVP.js → entry-preview-BJQG7gOd.js} +1 -1
- package/docs/assets/{entry-preview-docs-DJ-4bqb-.js → entry-preview-docs-ivqbfzAL.js} +1 -1
- package/docs/assets/{iframe-D34akK7Z.js → iframe-BlK7x-ax.js} +5 -4
- package/docs/assets/{index-DZvDKoWL.js → index-4wZt4REx.js} +1 -1
- package/docs/assets/{index-DyXJjdHU.js → index-CyKWGGvf.js} +1 -1
- package/docs/assets/{preview-MRHqGPUO.js → preview-BD__Ysj0.js} +2 -2
- package/docs/assets/preview-DBbV3WhG.js +64 -0
- package/docs/assets/{string-CJTX2pVG.js → string-v47y-kFA.js} +1 -1
- package/docs/assets/{vue-popper-BXSsmyj7.js → vue-popper-D-VHfyeL.js} +1 -1
- package/docs/assets/{vue.esm-bundler-DiF7B9b7.js → vue.esm-bundler-CzUSCRPq.js} +1 -1
- package/docs/iframe.html +1 -1
- package/docs/index.json +1 -1
- package/docs/project.json +1 -1
- package/lib/js/components/DatePickers/DatePicker/DatePicker.composables.ts +122 -0
- package/lib/js/components/DatePickers/DatePicker/DatePicker.consts.ts +9 -0
- package/lib/js/components/DatePickers/DatePicker/DatePicker.vue +75 -114
- package/lib/js/components/DatePickers/DatePickerBox/DatePickerBox.vue +128 -41
- package/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.stories.ts +152 -0
- package/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue +229 -0
- package/lib/js/components/DatePickers/DateRangePicker/index.ts +3 -0
- package/lib/js/components/Toast/index.ts +4 -0
- package/lib/js/icons/fontawesome.ts +2 -0
- package/lib/js/index.ts +3 -0
- package/package.json +1 -1
- package/tools/importers/helpers/dates.ts +21 -0
- package/tsconfig.json +1 -0
- package/docs/assets/DatePicker-5MRZAjkX.js +0 -2
- package/docs/assets/Toast.stories-COXItFcC.js +0 -58
- package/docs/assets/preview-DYKWAT5n.js +0 -64
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
+
ref="datePickerRef"
|
|
3
4
|
class="ds-datePicker"
|
|
4
5
|
:class="{ '-ds-box': triggerType === DATE_PICKER_TRIGGER_TYPES.BOX }"
|
|
5
6
|
>
|
|
@@ -22,8 +23,8 @@
|
|
|
22
23
|
class="ds-datePicker__tile"
|
|
23
24
|
:text="text"
|
|
24
25
|
:interactive="isInteractive"
|
|
25
|
-
:color="color"
|
|
26
|
-
:state="state"
|
|
26
|
+
:color="color as TileColors"
|
|
27
|
+
:state="state as TileStates"
|
|
27
28
|
:icon-right="tileIcon"
|
|
28
29
|
:is-icon-right-hidden-on-mobile="isIconHiddenOnMobile"
|
|
29
30
|
:eyebrow-text="eyebrowText"
|
|
@@ -34,18 +35,18 @@
|
|
|
34
35
|
v-else
|
|
35
36
|
:is-interactive="isInteractive"
|
|
36
37
|
:placeholder="placeholder"
|
|
37
|
-
:date="date"
|
|
38
|
-
:icon="icon"
|
|
39
|
-
:
|
|
38
|
+
:start-date="date"
|
|
39
|
+
:start-icon="icon"
|
|
40
|
+
:are-icons-hidden-on-mobile="isIconHiddenOnMobile"
|
|
40
41
|
:state="state"
|
|
41
42
|
:color="color"
|
|
42
|
-
:eyebrow-text="eyebrowText"
|
|
43
|
+
:start-date-eyebrow-text="eyebrowText"
|
|
43
44
|
:is-open="isOpen"
|
|
44
45
|
@click="toggle"
|
|
45
46
|
/>
|
|
46
47
|
|
|
47
48
|
<span v-if="errorMessage" class="ds-datePicker__errorMessage"> {{ errorMessage }} </span>
|
|
48
|
-
<input ref="
|
|
49
|
+
<input ref="flatpickrInputRef" class="ds-datePicker__hiddenInput" />
|
|
49
50
|
</div>
|
|
50
51
|
</template>
|
|
51
52
|
|
|
@@ -117,10 +118,10 @@
|
|
|
117
118
|
</style>
|
|
118
119
|
|
|
119
120
|
<script lang="ts">
|
|
120
|
-
import { defineComponent, PropType, toRaw } from 'vue';
|
|
121
|
+
import { defineComponent, PropType, Ref, ref, toRaw, watch } from 'vue';
|
|
121
122
|
|
|
122
|
-
import DsTile from '../../Tile';
|
|
123
|
-
import { ICONS } from '../../Icons/Icon';
|
|
123
|
+
import DsTile, { TileColors, TileStates } from '../../Tile';
|
|
124
|
+
import { IconItem, ICONS } from '../../Icons/Icon';
|
|
124
125
|
import DatePickerBox from '../DatePickerBox';
|
|
125
126
|
|
|
126
127
|
import {
|
|
@@ -134,23 +135,17 @@ import {
|
|
|
134
135
|
DatePickerTriggerTypes,
|
|
135
136
|
} from './DatePicker.consts';
|
|
136
137
|
import { capitalizeFirstLetter } from '../../../../../tools/importers/helpers/modifiers';
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
[DATE_PICKER_CALENDAR_POSITIONS.BOTTOM_RIGHT]: 'below right',
|
|
143
|
-
[DATE_PICKER_CALENDAR_POSITIONS.BOTTOM]: 'below',
|
|
144
|
-
[DATE_PICKER_CALENDAR_POSITIONS.TOP_LEFT]: 'above left',
|
|
145
|
-
[DATE_PICKER_CALENDAR_POSITIONS.TOP_RIGHT]: 'above right',
|
|
146
|
-
[DATE_PICKER_CALENDAR_POSITIONS.TOP]: 'above',
|
|
147
|
-
};
|
|
138
|
+
import { DatePickerComposablesProps, initFlatpickr } from './DatePicker.composables';
|
|
139
|
+
import {
|
|
140
|
+
localFullDateWithShortMonthName,
|
|
141
|
+
localWeekdayName,
|
|
142
|
+
} from '../../../../../tools/importers/helpers/dates';
|
|
148
143
|
|
|
149
144
|
export default defineComponent({
|
|
150
145
|
name: 'DatePicker',
|
|
151
146
|
components: {
|
|
152
|
-
DatePickerBox,
|
|
153
147
|
DsTile,
|
|
148
|
+
DatePickerBox,
|
|
154
149
|
},
|
|
155
150
|
props: {
|
|
156
151
|
triggerType: {
|
|
@@ -178,32 +173,34 @@ export default defineComponent({
|
|
|
178
173
|
default: false,
|
|
179
174
|
},
|
|
180
175
|
icon: {
|
|
181
|
-
type: [Object, null]
|
|
176
|
+
type: [Object, null] as PropType<IconItem | null>,
|
|
182
177
|
default: ICONS.FA_CALENDAR_DAY,
|
|
183
|
-
|
|
178
|
+
validator(icon) {
|
|
179
|
+
return icon === null || Object.values(ICONS).includes(toRaw(icon));
|
|
180
|
+
},
|
|
184
181
|
},
|
|
185
182
|
isIconHiddenOnMobile: {
|
|
186
183
|
type: Boolean,
|
|
187
184
|
default: false,
|
|
188
185
|
},
|
|
189
|
-
calendarPosition: {
|
|
190
|
-
type: String as PropType<DatePickerCalendarPositions>,
|
|
191
|
-
default: DATE_PICKER_CALENDAR_POSITIONS.BOTTOM_LEFT,
|
|
192
|
-
},
|
|
193
186
|
errorMessage: {
|
|
194
187
|
type: String,
|
|
195
188
|
default: '',
|
|
196
189
|
},
|
|
197
190
|
state: {
|
|
198
|
-
type:
|
|
191
|
+
type: String as PropType<DatePickerStates>,
|
|
199
192
|
default: DATE_PICKER_STATES.DEFAULT,
|
|
200
193
|
},
|
|
201
194
|
color: {
|
|
202
195
|
type: String as PropType<DatePickerColors>,
|
|
203
196
|
default: DATE_PICKER_COLORS.NEUTRAL,
|
|
204
197
|
},
|
|
198
|
+
calendarPosition: {
|
|
199
|
+
type: String as PropType<DatePickerCalendarPositions>,
|
|
200
|
+
default: DATE_PICKER_CALENDAR_POSITIONS.BOTTOM_LEFT,
|
|
201
|
+
},
|
|
205
202
|
disableDates: {
|
|
206
|
-
type: Array
|
|
203
|
+
type: Array as PropType<Array<Date>>,
|
|
207
204
|
default: () => [],
|
|
208
205
|
},
|
|
209
206
|
minDate: {
|
|
@@ -215,117 +212,81 @@ export default defineComponent({
|
|
|
215
212
|
default: null,
|
|
216
213
|
},
|
|
217
214
|
},
|
|
218
|
-
emits: {
|
|
219
|
-
|
|
215
|
+
emits: {
|
|
216
|
+
'update:date': (date: Date) => true,
|
|
217
|
+
},
|
|
218
|
+
setup(
|
|
219
|
+
props: DatePickerComposablesProps & {
|
|
220
|
+
date: Date;
|
|
221
|
+
isInteractive: boolean;
|
|
222
|
+
state: DatePickerStates;
|
|
223
|
+
},
|
|
224
|
+
{ emit },
|
|
225
|
+
) {
|
|
226
|
+
const flatpickrInputRef = ref<HTMLInputElement>() as Ref<HTMLInputElement>;
|
|
227
|
+
const datePickerRef = ref<HTMLDivElement>() as Ref<HTMLDivElement>;
|
|
228
|
+
|
|
229
|
+
const onChange = (event: Array<Date>) => {
|
|
230
|
+
emit('update:date', event[0]);
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
const {
|
|
234
|
+
isOpen,
|
|
235
|
+
toggle: toggleDatePicker,
|
|
236
|
+
createDatePicker,
|
|
237
|
+
} = initFlatpickr({
|
|
238
|
+
props,
|
|
239
|
+
onChange,
|
|
240
|
+
defaultDates: props.date,
|
|
241
|
+
mode: 'single',
|
|
242
|
+
});
|
|
243
|
+
watch([() => props.isInteractive, () => props.state], async () => {
|
|
244
|
+
if (props.isInteractive && props.state === DATE_PICKER_STATES.DEFAULT) {
|
|
245
|
+
await createDatePicker(flatpickrInputRef.value, datePickerRef.value);
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
|
|
220
249
|
return {
|
|
221
|
-
|
|
222
|
-
|
|
250
|
+
flatpickrInputRef,
|
|
251
|
+
datePickerRef,
|
|
252
|
+
isOpen,
|
|
253
|
+
toggleDatePicker,
|
|
254
|
+
createDatePicker,
|
|
255
|
+
DATE_PICKER_CALENDAR_POSITIONS: Object.freeze(DATE_PICKER_CALENDAR_POSITIONS),
|
|
256
|
+
DATE_PICKER_COLORS: Object.freeze(DATE_PICKER_COLORS),
|
|
223
257
|
DATE_PICKER_STATES: Object.freeze(DATE_PICKER_STATES),
|
|
224
258
|
DATE_PICKER_TRIGGER_TYPES: Object.freeze(DATE_PICKER_TRIGGER_TYPES),
|
|
225
259
|
};
|
|
226
260
|
},
|
|
227
261
|
computed: {
|
|
228
|
-
isDatePickerEnabled() {
|
|
229
|
-
return this.isInteractive && this.state === DATE_PICKER_STATES.DEFAULT;
|
|
230
|
-
},
|
|
231
262
|
eyebrowText() {
|
|
232
263
|
if (!this.date || this.state === DATE_PICKER_STATES.LOADING) {
|
|
233
264
|
return '';
|
|
234
265
|
}
|
|
235
|
-
|
|
236
|
-
return capitalizeFirstLetter(
|
|
237
|
-
this.date.toLocaleDateString(undefined, {
|
|
238
|
-
dateStyle: undefined,
|
|
239
|
-
timeStyle: undefined,
|
|
240
|
-
weekday: 'long',
|
|
241
|
-
}),
|
|
242
|
-
);
|
|
266
|
+
return capitalizeFirstLetter(localWeekdayName(this.date));
|
|
243
267
|
},
|
|
244
268
|
text() {
|
|
245
269
|
if (this.state === DATE_PICKER_STATES.LOADING || !this.date) {
|
|
246
270
|
return this.placeholder;
|
|
247
271
|
}
|
|
248
|
-
|
|
249
|
-
return this.date.toLocaleDateString(undefined, {
|
|
250
|
-
dateStyle: 'medium',
|
|
251
|
-
timeStyle: undefined,
|
|
252
|
-
});
|
|
272
|
+
return localFullDateWithShortMonthName(this.date);
|
|
253
273
|
},
|
|
254
274
|
tileIcon() {
|
|
255
275
|
if (!this.icon) {
|
|
256
276
|
return null;
|
|
257
277
|
}
|
|
258
|
-
|
|
259
|
-
return this.isOpen ? ICONS.FA_CHEVRON_UP : this.icon;
|
|
260
|
-
},
|
|
261
|
-
flatpickrConfigString() {
|
|
262
|
-
return [
|
|
263
|
-
this.maxDate,
|
|
264
|
-
this.minDate,
|
|
265
|
-
this.calendarPosition,
|
|
266
|
-
this.date,
|
|
267
|
-
...this.disableDates,
|
|
268
|
-
].concat('|');
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
watch: {
|
|
272
|
-
flatpickrConfigString: {
|
|
273
|
-
handler() {
|
|
274
|
-
this.datePicker?.set({
|
|
275
|
-
position: FLATPICKR_POSITIONS[this.calendarPosition],
|
|
276
|
-
defaultDate: this.date,
|
|
277
|
-
disable: this.disableDates.filter((date) => date instanceof Date),
|
|
278
|
-
minDate: this.minDate,
|
|
279
|
-
maxDate: this.maxDate,
|
|
280
|
-
});
|
|
281
|
-
},
|
|
282
|
-
flush: 'post' as const,
|
|
278
|
+
return this.isOpen.value ? ICONS.FA_CHEVRON_UP : this.icon;
|
|
283
279
|
},
|
|
284
280
|
},
|
|
285
281
|
async mounted() {
|
|
286
|
-
if (this.
|
|
287
|
-
|
|
288
|
-
const { default: flatpickrFunction } = await import('flatpickr');
|
|
289
|
-
|
|
290
|
-
flatpickr = flatpickrFunction;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
const { Polish } = await import('flatpickr/dist/l10n/pl.js');
|
|
294
|
-
|
|
295
|
-
this.datePicker = flatpickr(this.$refs.flatpickrInput, {
|
|
296
|
-
locale: Polish,
|
|
297
|
-
positionElement: this.$el,
|
|
298
|
-
ignoredFocusElements: [this.$el],
|
|
299
|
-
appendTo: this.$el,
|
|
300
|
-
position: FLATPICKR_POSITIONS[this.calendarPosition],
|
|
301
|
-
defaultDate: this.date,
|
|
302
|
-
disable: this.disableDates.filter((date) => date instanceof Date),
|
|
303
|
-
minDate: this.minDate,
|
|
304
|
-
maxDate: this.maxDate,
|
|
305
|
-
onClose: [
|
|
306
|
-
() => {
|
|
307
|
-
this.isOpen = false;
|
|
308
|
-
},
|
|
309
|
-
],
|
|
310
|
-
onOpen: [
|
|
311
|
-
() => {
|
|
312
|
-
this.isOpen = true;
|
|
313
|
-
},
|
|
314
|
-
],
|
|
315
|
-
onChange: (event) => {
|
|
316
|
-
this.$emit('update:date', event[0]);
|
|
317
|
-
},
|
|
318
|
-
});
|
|
282
|
+
if (this.isInteractive && this.state === DATE_PICKER_STATES.DEFAULT) {
|
|
283
|
+
await this.createDatePicker(this.flatpickrInputRef, this.datePickerRef);
|
|
319
284
|
}
|
|
320
285
|
},
|
|
321
|
-
unmounted() {
|
|
322
|
-
this.datePicker?.destroy();
|
|
323
|
-
this.datePicker = null;
|
|
324
|
-
},
|
|
325
286
|
methods: {
|
|
326
287
|
toggle() {
|
|
327
|
-
if (this.
|
|
328
|
-
this.
|
|
288
|
+
if (this.isInteractive && this.state === DATE_PICKER_STATES.DEFAULT) {
|
|
289
|
+
this.toggleDatePicker();
|
|
329
290
|
}
|
|
330
291
|
},
|
|
331
292
|
},
|
|
@@ -10,17 +10,52 @@
|
|
|
10
10
|
'-ds-isOpen': isOpen,
|
|
11
11
|
}"
|
|
12
12
|
>
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
<div
|
|
14
|
+
class="ds-datePickerBox__widthWrapper"
|
|
15
|
+
:class="{ '-ds-has-icon': startIcon, '-ds-iconHiddenOnMobile': areIconsHiddenOnMobile }"
|
|
16
|
+
>
|
|
17
|
+
<div class="ds-datePickerBox__dateWrapper">
|
|
18
|
+
<span v-if="startDateEyebrowText" class="ds-datePickerBox__eyebrow">{{
|
|
19
|
+
startDateEyebrowText
|
|
20
|
+
}}</span>
|
|
21
|
+
<div class="ds-datePickerBox__date">
|
|
22
|
+
<ds-icon
|
|
23
|
+
v-if="startIcon"
|
|
24
|
+
class="ds-datePickerBox__icon"
|
|
25
|
+
:class="{ '-ds-hiddenOnMobile': areIconsHiddenOnMobile }"
|
|
26
|
+
:icon="startIcon"
|
|
27
|
+
:size="ICON_SIZES.XX_SMALL"
|
|
28
|
+
></ds-icon>
|
|
29
|
+
<span class="ds-datePickerBox__dateText">{{ startDateText }}</span>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
23
32
|
</div>
|
|
33
|
+
<template v-if="startDate && endDate">
|
|
34
|
+
<span class="ds-datePickerBox__separator">–</span>
|
|
35
|
+
<div
|
|
36
|
+
class="ds-datePickerBox__widthWrapper -ds-justify-to-end"
|
|
37
|
+
:class="{
|
|
38
|
+
'-ds-has-icon': endIcon,
|
|
39
|
+
'-ds-iconHiddenOnMobile': areIconsHiddenOnMobile,
|
|
40
|
+
}"
|
|
41
|
+
>
|
|
42
|
+
<div class="ds-datePickerBox__dateWrapper">
|
|
43
|
+
<span v-if="endDateEyebrowText" class="ds-datePickerBox__eyebrow">{{
|
|
44
|
+
endDateEyebrowText
|
|
45
|
+
}}</span>
|
|
46
|
+
<div class="ds-datePickerBox__date">
|
|
47
|
+
<ds-icon
|
|
48
|
+
v-if="endIcon"
|
|
49
|
+
class="ds-datePickerBox__icon"
|
|
50
|
+
:class="{ '-ds-hiddenOnMobile': areIconsHiddenOnMobile }"
|
|
51
|
+
:icon="endIcon"
|
|
52
|
+
:size="ICON_SIZES.XX_SMALL"
|
|
53
|
+
></ds-icon>
|
|
54
|
+
<span class="ds-datePickerBox__dateText">{{ endDateText }}</span>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
24
59
|
|
|
25
60
|
<div v-if="state === DATE_PICKER_STATES.LOADING" class="ds-datePickerBox__loader">
|
|
26
61
|
<ds-icon :icon="ICONS.FAD_SPINNER_THIRD" :size="ICON_SIZES.X_SMALL" spinning />
|
|
@@ -53,7 +88,7 @@
|
|
|
53
88
|
color: $color-icon-hovered;
|
|
54
89
|
}
|
|
55
90
|
|
|
56
|
-
#{$self}
|
|
91
|
+
#{$self}__dateWrapper {
|
|
57
92
|
color: $color-date-hovered;
|
|
58
93
|
}
|
|
59
94
|
}
|
|
@@ -64,7 +99,7 @@
|
|
|
64
99
|
color: $color-eyebrow-disabled;
|
|
65
100
|
}
|
|
66
101
|
|
|
67
|
-
#{$self}
|
|
102
|
+
#{$self}__dateWrapper {
|
|
68
103
|
color: $color-date-disabled;
|
|
69
104
|
}
|
|
70
105
|
|
|
@@ -79,7 +114,7 @@
|
|
|
79
114
|
color: $color-icon;
|
|
80
115
|
}
|
|
81
116
|
|
|
82
|
-
#{$self}
|
|
117
|
+
#{$self}__dateWrapper {
|
|
83
118
|
color: $color-date;
|
|
84
119
|
}
|
|
85
120
|
}
|
|
@@ -88,7 +123,7 @@
|
|
|
88
123
|
color: $color-eyebrow;
|
|
89
124
|
}
|
|
90
125
|
|
|
91
|
-
#{$self}
|
|
126
|
+
#{$self}__dateWrapper {
|
|
92
127
|
color: $color-date;
|
|
93
128
|
}
|
|
94
129
|
|
|
@@ -104,16 +139,57 @@
|
|
|
104
139
|
.ds-datePickerBox {
|
|
105
140
|
$self: &;
|
|
106
141
|
|
|
142
|
+
align-items: center;
|
|
107
143
|
border: $border-xs solid transparent;
|
|
144
|
+
column-gap: $space-2xs;
|
|
108
145
|
display: flex;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
min-height: 44px;
|
|
146
|
+
justify-content: space-between;
|
|
147
|
+
min-height: 46px;
|
|
112
148
|
min-width: 76px;
|
|
113
149
|
padding: $space-2xs $space-xs;
|
|
114
150
|
pointer-events: none;
|
|
115
151
|
position: relative;
|
|
116
152
|
|
|
153
|
+
&__dateWrapper {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* setting a width for a component solves a problem with unaligned separators for many boxes in a column
|
|
161
|
+
* 46px comes from the minimum component width, not minimum content width
|
|
162
|
+
* 52px comes from the maximum content width with an icon
|
|
163
|
+
*/
|
|
164
|
+
&__widthWrapper {
|
|
165
|
+
display: inline-flex;
|
|
166
|
+
min-width: 46px;
|
|
167
|
+
|
|
168
|
+
&.-ds-has-icon {
|
|
169
|
+
min-width: 52px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&.-ds-justify-to-end {
|
|
173
|
+
justify-content: flex-end;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&.-ds-iconHiddenOnMobile {
|
|
177
|
+
&.-ds-has-icon {
|
|
178
|
+
min-width: 46px;
|
|
179
|
+
|
|
180
|
+
@media (#{breakpoint-s()}) {
|
|
181
|
+
min-width: 52px;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&__separator {
|
|
188
|
+
@include text-s-default-regular;
|
|
189
|
+
|
|
190
|
+
color: $color-neutral-text-heavy;
|
|
191
|
+
}
|
|
192
|
+
|
|
117
193
|
&.-ds-loading,
|
|
118
194
|
&.-ds-interactive {
|
|
119
195
|
background-color: $color-neutral-background-weak;
|
|
@@ -121,11 +197,6 @@
|
|
|
121
197
|
border-radius: $radius-s;
|
|
122
198
|
}
|
|
123
199
|
|
|
124
|
-
&.-ds-disabled {
|
|
125
|
-
background-color: $color-neutral-background-weak-disabled;
|
|
126
|
-
pointer-events: none;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
200
|
&.-ds-isOpen {
|
|
130
201
|
background-color: $color-neutral-background-medium;
|
|
131
202
|
|
|
@@ -138,7 +209,7 @@
|
|
|
138
209
|
@include info-xs-default-regular;
|
|
139
210
|
}
|
|
140
211
|
|
|
141
|
-
&
|
|
212
|
+
&__date {
|
|
142
213
|
column-gap: $space-4xs;
|
|
143
214
|
display: inline-flex;
|
|
144
215
|
|
|
@@ -147,7 +218,7 @@
|
|
|
147
218
|
user-select: none;
|
|
148
219
|
}
|
|
149
220
|
|
|
150
|
-
&
|
|
221
|
+
&__dateText {
|
|
151
222
|
@include text-s-default-regular;
|
|
152
223
|
}
|
|
153
224
|
|
|
@@ -179,21 +250,23 @@
|
|
|
179
250
|
$color-neutral-text-heavy,
|
|
180
251
|
$color-neutral-icon,
|
|
181
252
|
$color-neutral-icon-hovered,
|
|
182
|
-
$color-neutral-text-heavy,
|
|
253
|
+
$color-neutral-text-heavy-hovered,
|
|
183
254
|
$color-neutral-icon-disabled,
|
|
184
|
-
$color-neutral-text-disabled,
|
|
255
|
+
$color-neutral-text-weak-disabled,
|
|
185
256
|
$color-neutral-text-heavy-disabled,
|
|
186
257
|
$self
|
|
187
258
|
);
|
|
188
259
|
}
|
|
189
260
|
|
|
190
261
|
&:not(.-ds-loading) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
262
|
+
&:not(.-ds-disabled) {
|
|
263
|
+
&.-ds-interactive {
|
|
264
|
+
cursor: pointer;
|
|
265
|
+
pointer-events: all;
|
|
194
266
|
|
|
195
|
-
|
|
196
|
-
|
|
267
|
+
&:hover:not(.-ds-isOpen) {
|
|
268
|
+
background-color: $color-neutral-background-weak-hovered;
|
|
269
|
+
}
|
|
197
270
|
}
|
|
198
271
|
}
|
|
199
272
|
|
|
@@ -223,6 +296,7 @@ import {
|
|
|
223
296
|
DatePickerStates,
|
|
224
297
|
} from '../DatePicker/DatePicker.consts';
|
|
225
298
|
import { defineComponent, PropType, toRaw } from 'vue';
|
|
299
|
+
import { localMonthDayWithShortMonthDay } from '../../../../../tools/importers/helpers/dates';
|
|
226
300
|
|
|
227
301
|
export default defineComponent({
|
|
228
302
|
name: 'DatePickerBox',
|
|
@@ -238,16 +312,25 @@ export default defineComponent({
|
|
|
238
312
|
type: String,
|
|
239
313
|
default: 'Ustaw',
|
|
240
314
|
},
|
|
241
|
-
|
|
315
|
+
startDate: {
|
|
242
316
|
type: Date,
|
|
243
317
|
default: null,
|
|
244
318
|
},
|
|
245
|
-
|
|
319
|
+
endDate: {
|
|
320
|
+
type: Date,
|
|
321
|
+
default: null,
|
|
322
|
+
},
|
|
323
|
+
startIcon: {
|
|
324
|
+
type: Object,
|
|
325
|
+
default: null,
|
|
326
|
+
validate: (icon) => icon === null || Object.values(ICONS).includes(toRaw(icon)),
|
|
327
|
+
},
|
|
328
|
+
endIcon: {
|
|
246
329
|
type: Object,
|
|
247
330
|
default: null,
|
|
248
331
|
validate: (icon) => icon === null || Object.values(ICONS).includes(toRaw(icon)),
|
|
249
332
|
},
|
|
250
|
-
|
|
333
|
+
areIconsHiddenOnMobile: {
|
|
251
334
|
type: Boolean,
|
|
252
335
|
default: false,
|
|
253
336
|
},
|
|
@@ -259,7 +342,11 @@ export default defineComponent({
|
|
|
259
342
|
type: String as PropType<DatePickerColors>,
|
|
260
343
|
default: DATE_PICKER_COLORS.NEUTRAL,
|
|
261
344
|
},
|
|
262
|
-
|
|
345
|
+
startDateEyebrowText: {
|
|
346
|
+
type: String,
|
|
347
|
+
default: '',
|
|
348
|
+
},
|
|
349
|
+
endDateEyebrowText: {
|
|
263
350
|
type: String,
|
|
264
351
|
default: '',
|
|
265
352
|
},
|
|
@@ -277,15 +364,15 @@ export default defineComponent({
|
|
|
277
364
|
};
|
|
278
365
|
},
|
|
279
366
|
computed: {
|
|
280
|
-
|
|
281
|
-
if (this.
|
|
282
|
-
return this.
|
|
283
|
-
month: 'short',
|
|
284
|
-
day: '2-digit',
|
|
285
|
-
});
|
|
367
|
+
startDateText() {
|
|
368
|
+
if (this.startDate) {
|
|
369
|
+
return localMonthDayWithShortMonthDay(this.startDate);
|
|
286
370
|
}
|
|
287
371
|
return this.placeholder;
|
|
288
372
|
},
|
|
373
|
+
endDateText() {
|
|
374
|
+
return localMonthDayWithShortMonthDay(this.endDate);
|
|
375
|
+
},
|
|
289
376
|
},
|
|
290
377
|
});
|
|
291
378
|
</script>
|