@bethinkpl/design-system 26.14.3 → 26.14.4
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 +4 -4
- package/dist/design-system.umd.cjs.map +1 -1
- package/dist/lib/js/components/BadgeScore/BadgeScore.vue.d.ts +3 -3
- package/dist/lib/js/components/Banner/Banner.consts.d.ts +4 -0
- package/dist/lib/js/components/Banner/Banner.vue.d.ts +36 -35
- package/dist/lib/js/components/Buttons/Button/Button.consts.d.ts +8 -0
- package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +6 -6
- package/dist/lib/js/components/Buttons/IconButton/IconButton.consts.d.ts +7 -0
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +24 -24
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +3 -3
- package/dist/lib/js/components/Chip/Chip.consts.d.ts +6 -0
- package/dist/lib/js/components/Chip/Chip.vue.d.ts +34 -34
- package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +3 -3
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +24 -22
- package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +3 -3
- package/dist/lib/js/components/Drawer/Drawer.vue.d.ts +2 -2
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +64 -64
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +5 -5
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +32 -32
- package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +33 -33
- package/dist/lib/js/components/Dropdown/Dropdown.consts.d.ts +5 -0
- package/dist/lib/js/components/Dropdown/Dropdown.vue.d.ts +7 -6
- package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +13 -13
- package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +13 -13
- package/dist/lib/js/components/Form/SelectionControl/SelectionControl.vue.d.ts +9 -9
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.consts.d.ts +4 -0
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +31 -31
- package/dist/lib/js/components/Headers/PageHeader/PageHeader.consts.d.ts +3 -0
- package/dist/lib/js/components/Headers/PageHeader/PageHeader.vue.d.ts +4 -2
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.consts.d.ts +2 -0
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +30 -30
- package/dist/lib/js/components/IconText/IconText.consts.d.ts +5 -0
- package/dist/lib/js/components/IconText/IconText.vue.d.ts +8 -8
- package/dist/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue.d.ts +3 -3
- package/dist/lib/js/components/Icons/Icon/Icon.vue.d.ts +3 -3
- package/dist/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue.d.ts +2 -2
- package/dist/lib/js/components/Modal/Modal.vue.d.ts +3 -3
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +38 -38
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +42 -42
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.consts.d.ts +5 -0
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +11 -9
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +52 -52
- package/dist/lib/js/components/ProgressBar/ProgressBar.consts.d.ts +8 -0
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +18 -18
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +7 -7
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +31 -31
- package/dist/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue.d.ts +4 -4
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +28 -28
- package/dist/lib/js/components/SectionTitle/SectionTitle.vue.d.ts +4 -2
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.consts.d.ts +13 -8
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +22 -20
- package/dist/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue.d.ts +33 -33
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +34 -33
- package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +38 -38
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +3 -3
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +3 -3
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestion.consts.d.ts +4 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +34 -33
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +56 -55
- package/dist/lib/js/components/SurveyToggle/SurveyToggle.consts.d.ts +5 -0
- package/dist/lib/js/components/SurveyToggle/SurveyToggle.vue.d.ts +20 -18
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +3 -3
- package/dist/lib/js/components/TabItem/TabItem.vue.d.ts +6 -6
- package/dist/lib/js/components/TextGroup/TextGroup.vue.d.ts +3 -3
- package/dist/lib/js/components/Tile/Tile.consts.d.ts +3 -3
- package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +35 -35
- package/dist/lib/js/components/Tile/Tile.shared.d.ts +7 -8
- package/dist/lib/js/components/Tile/Tile.vue.d.ts +18 -20
- package/dist/lib/js/components/Toast/Toast.vue.d.ts +6 -6
- package/dist/lib/js/components/Toggles/CounterToggle/CounterToggle.consts.d.ts +7 -4
- package/dist/lib/js/components/Toggles/CounterToggle/CounterToggle.vue.d.ts +9 -7
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +12 -13
- package/dist/lib/js/styles/TokenTypes.d.ts +2 -1
- package/docs/assets/{AccessStatus-BKJi9u47.js → AccessStatus-DzMA_dRH.js} +1 -1
- package/docs/assets/{AccessStatus.stories-XvWRutdA.js → AccessStatus.stories--VEkNiy_.js} +1 -1
- package/docs/assets/{Avatar-DUThlKLV.js → Avatar-Ddf_DDf6.js} +1 -1
- package/docs/assets/{Avatar.stories-Dwgdl1h5.js → Avatar.stories-Bw8TMzwN.js} +1 -1
- package/docs/assets/{Badge-DSmH78WU.js → Badge-DsHkKLq5.js} +1 -1
- package/docs/assets/{Badge.stories-D-06ABBo.js → Badge.stories-1MGIb5Ay.js} +1 -1
- package/docs/assets/{BadgeScore-GfZixoUY.js → BadgeScore-DZ7uKkkn.js} +1 -1
- package/docs/assets/{BadgeScore.stories-D3zFKjT2.js → BadgeScore.stories-DyWA-wfY.js} +1 -1
- package/docs/assets/{Banner-DDGfdClH.js → Banner-B73N4KyQ.js} +1 -1
- package/docs/assets/{Banner.stories-DRjfHQB5.js → Banner.stories-DwaPbSL6.js} +1 -1
- package/docs/assets/{BasicRichListItem-B1E5DYkk.js → BasicRichListItem-DOfqex-T.js} +1 -1
- package/docs/assets/{BasicRichListItem.stories-Bwk6-q_S.js → BasicRichListItem.stories-CnWdWdmC.js} +1 -1
- package/docs/assets/{BlockadeStatus-D6w6lZhK.js → BlockadeStatus-BR_7M5Y7.js} +1 -1
- package/docs/assets/{BlockedeStatus.stories-BPVIJ-7M.js → BlockedeStatus.stories-D2j3DGI7.js} +1 -1
- package/docs/assets/Button-DHfR56t4.js +1 -0
- package/docs/assets/{Button.stories-C905FtVz.js → Button.stories-D3Ki6Zf4.js} +1 -1
- package/docs/assets/{CardExpandable-t59MJJJ1.js → CardExpandable-OLKQQ6p3.js} +1 -1
- package/docs/assets/{CardExpandable.stories-GrQybWeN.js → CardExpandable.stories-CZsP04Bx.js} +1 -1
- package/docs/assets/{Checkbox-K_NwPnQU.js → Checkbox-Dw7yhq_D.js} +1 -1
- package/docs/assets/{Checkbox.stories-C5rsfJfn.js → Checkbox.stories-CPr-TvdU.js} +1 -1
- package/docs/assets/{Chip-DmzVP4Nc.js → Chip-CYE9ciB6.js} +1 -1
- package/docs/assets/{Chip.stories-BHVdQEET.js → Chip.stories-DvZRPuZX.js} +1 -1
- package/docs/assets/{Color-ERTF36HU-Zy8s_54Y.js → Color-ERTF36HU-BxTduNqG.js} +1 -1
- package/docs/assets/{Colors.stories-BP3gpSll.js → Colors.stories-DsVCBpMK.js} +1 -1
- package/docs/assets/{ColorsThemes.stories-0-sPp0ge.js → ColorsThemes.stories-CvuM5Lfh.js} +1 -1
- package/docs/assets/{ColorsTokensLms.stories-hGXDsaon.js → ColorsTokensLms.stories-BLf0d4Ej.js} +1 -1
- package/docs/assets/{ColorsTokensPrimaryBodywork.stories-DbuoY06v.js → ColorsTokensPrimaryBodywork.stories-DPROdtqj.js} +1 -1
- package/docs/assets/{ColorsTokensPrimaryWnl.stories-BGrxCgKb.js → ColorsTokensPrimaryWnl.stories-BeDXP0UM.js} +1 -1
- package/docs/assets/{CounterToggle-UTpNPOSH.js → CounterToggle-_K-to0yi.js} +1 -1
- package/docs/assets/{CounterToggle.stories-7sAIDH2d.js → CounterToggle.stories-_CTotmHu.js} +1 -1
- package/docs/assets/{DateBox.stories-DLmMNPBT.js → DateBox.stories-CDMlmmhz.js} +1 -1
- package/docs/assets/DatePicker-D0XaBW1a.js +2 -0
- package/docs/assets/{DatePicker.stories-DHiM_CF1.js → DatePicker.stories-BQG31hVQ.js} +1 -1
- package/docs/assets/{DateRangePicker-DyLp3jfg.js → DateRangePicker-BKwZTPvV.js} +1 -1
- package/docs/assets/{DateRangePicker.stories-Chl7D6cH.js → DateRangePicker.stories-CEnBjdrE.js} +1 -1
- package/docs/assets/{DocsRenderer-CFRXHY34-Mv9wJbYE.js → DocsRenderer-CFRXHY34-TNb7LCKP.js} +5 -5
- package/docs/assets/{Drawer-BAhS1Aex.js → Drawer-SoovlwOt.js} +1 -1
- package/docs/assets/{Drawer.stories-Bgvx4k59.js → Drawer.stories-CEU1F2uA.js} +1 -1
- package/docs/assets/{DrawerHeader-CivXan1m.js → DrawerHeader-DKnj6uGf.js} +1 -1
- package/docs/assets/{DrawerHeader.stories-B-6VXMB_.js → DrawerHeader.stories-BDuVqv88.js} +1 -1
- package/docs/assets/{DrawerListItem-BCPF0NKt.js → DrawerListItem-CTXZN6Bi.js} +1 -1
- package/docs/assets/{DrawerListItem.stories-Cyjmm297.js → DrawerListItem.stories-BEKXtNUK.js} +1 -1
- package/docs/assets/{DrawerListItemGroup.stories-COuFavcC.js → DrawerListItemGroup.stories-COPmhcN6.js} +1 -1
- package/docs/assets/{DrawerSection-B6PrbMVD.js → DrawerSection-CZ_dBYx4.js} +1 -1
- package/docs/assets/{DrawerSection.stories-DUmVgH2v.js → DrawerSection.stories-sLxT7vrO.js} +1 -1
- package/docs/assets/{DrawerTile-CTrRTsz5.js → DrawerTile-DbrnM1Eh.js} +1 -1
- package/docs/assets/{DrawerTile.stories-BVrU34zb.js → DrawerTile.stories-Dw3ao85n.js} +1 -1
- package/docs/assets/{Dropdown-B75bqkCY.js → Dropdown-D0Da3_Op.js} +1 -1
- package/docs/assets/{Dropdown.stories-DHicOtyD.js → Dropdown.stories-D5GXGzlY.js} +1 -1
- package/docs/assets/{FeatureIcon-Zls5aPDA.js → FeatureIcon-BDPyvlSM.js} +1 -1
- package/docs/assets/{FeatureIcon.stories-fkGRpy1k.js → FeatureIcon.stories-BQCkvwda.js} +1 -1
- package/docs/assets/GroupRichListItem-DDOzz7uS.js +1 -0
- package/docs/assets/{GroupRichListItem.stories-BXIoUT_x.js → GroupRichListItem.stories-CyN2evgP.js} +1 -1
- package/docs/assets/{Icon-BPz80dqH.js → Icon-D0llnARZ.js} +1 -1
- package/docs/assets/{Icon.stories-nMGhxKkt.js → Icon.stories-CTnRL9yQ.js} +1 -1
- package/docs/assets/IconButton-BJcODvDg.js +1 -0
- package/docs/assets/{IconButton.stories-D4XVg9xV.js → IconButton.stories-BB7ViPXj.js} +1 -1
- package/docs/assets/{IconText-7zvo_ew8.js → IconText-CHD1e6XV.js} +1 -1
- package/docs/assets/{IconText.stories-WHFYLn8K.js → IconText.stories-C2BRfPpO.js} +1 -1
- package/docs/assets/{ItemsList-D_riVFX-.js → ItemsList-B6NLHoqB.js} +1 -1
- package/docs/assets/{Modal-D7RDnkRT.js → Modal-B4jvsyp2.js} +1 -1
- package/docs/assets/{Modal.stories-DtonpbNd.js → Modal.stories-H0HEhSSX.js} +1 -1
- package/docs/assets/{ModalDialog-D-FrIv9r.js → ModalDialog-B1Fx-Up2.js} +1 -1
- package/docs/assets/{ModalDialog.stories-BO4kM0oI.js → ModalDialog.stories-BjHBYxwN.js} +1 -1
- package/docs/assets/{OutlineItem-DqMRN7G1.js → OutlineItem-zkItoOB5.js} +1 -1
- package/docs/assets/{OutlineItem.stories-wBYF6_YS.js → OutlineItem.stories-B0QRpUCr.js} +1 -1
- package/docs/assets/{OverlayHeader-D3BWUMCs.js → OverlayHeader-BKF2Jxw2.js} +1 -1
- package/docs/assets/{OverlayHeader.stories-D22gEPwS.js → OverlayHeader.stories-DQMarEn0.js} +1 -1
- package/docs/assets/{PageHeader-C5oCP3S2.js → PageHeader-DLJRiCDS.js} +1 -1
- package/docs/assets/{PageHeader.stories-hH9p_VSN.js → PageHeader.stories-BMlnhYYZ.js} +1 -1
- package/docs/assets/{Pagination-xRPA6q3h.js → Pagination-BP-W1sZd.js} +1 -1
- package/docs/assets/{Pagination.stories-_aA1bDru.js → Pagination.stories-D8QusEmL.js} +1 -1
- package/docs/assets/{PopOver-DlmHqZVO.js → PopOver-BPteMd3J.js} +1 -1
- package/docs/assets/{PopOver.stories-BrDXwbSj.js → PopOver.stories-BQ1BTWwk.js} +1 -1
- package/docs/assets/{ProgressBar-DcRQqf-M.js → ProgressBar-CWgk1hV8.js} +1 -1
- package/docs/assets/{ProgressBar.stories-DpjJPck1.js → ProgressBar.stories-CATIctgi.js} +1 -1
- package/docs/assets/{ProgressDonutChart-O1ep3At7.js → ProgressDonutChart-WC2lEAZ8.js} +1 -1
- package/docs/assets/{ProgressDonutChart.stories-DTDXTcvn.js → ProgressDonutChart.stories-DHJbf9Nx.js} +1 -1
- package/docs/assets/{RadioButton-CO43G0Ta.js → RadioButton-DDS7T3bf.js} +1 -1
- package/docs/assets/{RadioButton.stories-BidHbpYh.js → RadioButton.stories-CwIgskB5.js} +1 -1
- package/docs/assets/{RichListItem.stories-bEj3sobC.js → RichListItem.stories-ByYKVXoj.js} +1 -1
- package/docs/assets/{SectionHeader-CwB5neO2.js → SectionHeader-mtDgyTNK.js} +1 -1
- package/docs/assets/{SectionHeader.stories-DU-5pOpU.js → SectionHeader.stories-RUYZcEBs.js} +1 -1
- package/docs/assets/{SectionTitle-BQZh7aFs.js → SectionTitle-_cACyvBA.js} +1 -1
- package/docs/assets/{SectionTitle.stories-BLNC5wZK.js → SectionTitle.stories-CQMtgSgm.js} +1 -1
- package/docs/assets/{SelectList.stories-B8NokTyi.js → SelectList.stories-BL3nuotP.js} +1 -1
- package/docs/assets/{SelectListItem-DPuR0fG2.js → SelectListItem-DorYfEdc.js} +1 -1
- package/docs/assets/{SelectListItem.stories-oxeMJs_v.js → SelectListItem.stories-zmIE8Hys.js} +1 -1
- package/docs/assets/{SelectListItemTile-CWD-7N0p.js → SelectListItemTile-DZDC7P_P.js} +1 -1
- package/docs/assets/{SelectListItemTile.stories-qL9td0K7.js → SelectListItemTile.stories-DKJCFIlt.js} +1 -1
- package/docs/assets/{SelectListItemToggle-Bd5zU5Vc.js → SelectListItemToggle-htk1ZR7a.js} +1 -1
- package/docs/assets/{SelectListItemToggle.stories-DjnspGSK.js → SelectListItemToggle.stories-Bcegqjj2.js} +1 -1
- package/docs/assets/{SelectionControl-Xe-aYMrS.js → SelectionControl-BK_tron5.js} +1 -1
- package/docs/assets/{SelectionTile-BuBzVZpf.js → SelectionTile-zJELYQH1.js} +2 -2
- package/docs/assets/{SelectionTile.stories-Da-1b5iP.js → SelectionTile.stories-DIGebTkW.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded-DUybHAVt.js → SurveyQuestionOpenEnded-BugWE9n5.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded.stories-BgpHtIPu.js → SurveyQuestionOpenEnded.stories-DqpiJnRe.js} +1 -1
- package/docs/assets/{SurveyQuestionScale-I7rmD2z-.js → SurveyQuestionScale-YQUf1B6i.js} +1 -1
- package/docs/assets/{SurveyQuestionScale.stories-D0AleMVQ.js → SurveyQuestionScale.stories-DO5YM6k6.js} +1 -1
- package/docs/assets/SurveyToggle-CAt6qXiD.js +1 -0
- package/docs/assets/{SurveyToggle.stories-Bg752kec.js → SurveyToggle.stories-A44mClL0.js} +1 -1
- package/docs/assets/{Switch-C8il24TP.js → Switch-D_N0-PMC.js} +1 -1
- package/docs/assets/{Switch.stories-LgRcO-ZF.js → Switch.stories-DJmkpiSd.js} +1 -1
- package/docs/assets/TabItem-CRrapLva.js +1 -0
- package/docs/assets/{TabItem.stories-CrJjqpPf.js → TabItem.stories-Dtgi3LM8.js} +1 -1
- package/docs/assets/TextGroup-Bk9VXC2h.js +1 -0
- package/docs/assets/{TextGroup.stories-soggouxN.js → TextGroup.stories-3wH48Kir.js} +1 -1
- package/docs/assets/{ThreeColumnLayout-CFf8NRwP.js → ThreeColumnLayout-CQnFmK7u.js} +1 -1
- package/docs/assets/{ThreeColumnLayout.stories-tcn5IlfD.js → ThreeColumnLayout.stories-DnqRflqN.js} +1 -1
- package/docs/assets/{Tile-DvjxsEPO.js → Tile-CH8oOuWL.js} +1 -1
- package/docs/assets/{Tile.sb.shared-Cl6kkjNS.js → Tile.sb.shared-CWXeuBol.js} +1 -1
- package/docs/assets/{Tile.stories-02ZVx-3c.js → Tile.stories-0cC1E7vK.js} +1 -1
- package/docs/assets/{Toast-DKAzASvr.js → Toast-DCT_C-Jm.js} +1 -1
- package/docs/assets/{Toast.stories-CMk56GoR.js → Toast.stories-DykbV02i.js} +1 -1
- package/docs/assets/{ToggleButton-eR3n1vbs.js → ToggleButton-fcVVisoD.js} +1 -1
- package/docs/assets/{ToggleButton.stories-Bu6_fUaj.js → ToggleButton.stories-CMC9B5O-.js} +1 -1
- package/docs/assets/{Tooltip.stories-DKvJ8iAI.js → Tooltip.stories-BWi1adMD.js} +1 -1
- package/docs/assets/{TypographyTokensLms.stories-DW3gBdun.js → TypographyTokensLms.stories-C7HvPtC9.js} +1 -1
- package/docs/assets/{TypographyVariables.stories-FmiXmx2m.js → TypographyVariables.stories-B1R9WSPD.js} +1 -1
- package/docs/assets/{iframe-B7O_YbfU.js → iframe-BvVXUrhW.js} +33 -33
- package/docs/assets/{index-By8fdPgt.js → index-DlcQIzWq.js} +1 -1
- package/docs/assets/{index-5RZErJTT.js → index-eqI06LoF.js} +1 -1
- package/docs/assets/{preview-C6pVUegQ.js → preview-CnZUp2W_.js} +1 -1
- package/docs/assets/{preview-dRTG5wog.js → preview-DlI-9236.js} +2 -2
- package/docs/assets/{string-CFc0pFCE.js → string-Ct9SAoCE.js} +1 -1
- package/docs/iframe.html +1 -1
- package/docs/project.json +1 -1
- package/lib/js/components/Banner/Banner.consts.ts +6 -0
- package/lib/js/components/Banner/Banner.vue +3 -3
- package/lib/js/components/Buttons/Button/Button.consts.ts +14 -0
- package/lib/js/components/Buttons/Button/Button.vue +1 -1
- package/lib/js/components/Buttons/IconButton/IconButton.consts.ts +11 -0
- package/lib/js/components/Buttons/IconButton/IconButton.vue +14 -8
- package/lib/js/components/Chip/Chip.consts.ts +10 -0
- package/lib/js/components/Chip/Chip.vue +14 -5
- package/lib/js/components/DatePickers/DatePicker/DatePicker.vue +11 -5
- package/lib/js/components/Drawer/Drawer.vue +1 -1
- package/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue +1 -1
- package/lib/js/components/Drawer/DrawerSection/DrawerSection.vue +2 -1
- package/lib/js/components/Dropdown/Dropdown.consts.ts +8 -0
- package/lib/js/components/Dropdown/Dropdown.vue +6 -3
- package/lib/js/components/Form/Checkbox/Checkbox.vue +2 -2
- package/lib/js/components/Form/RadioButton/RadioButton.vue +2 -2
- package/lib/js/components/Form/SelectionControl/SelectionControl.vue +3 -3
- package/lib/js/components/Headers/OverlayHeader/OverlayHeader.consts.ts +6 -0
- package/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue +7 -2
- package/lib/js/components/Headers/PageHeader/PageHeader.consts.ts +4 -0
- package/lib/js/components/Headers/PageHeader/PageHeader.vue +3 -2
- package/lib/js/components/Headers/SectionHeader/SectionHeader.consts.ts +5 -0
- package/lib/js/components/Headers/SectionHeader/SectionHeader.vue +5 -2
- package/lib/js/components/IconText/IconText.consts.ts +8 -0
- package/lib/js/components/IconText/IconText.vue +9 -3
- package/lib/js/components/Icons/Icon/Icon.vue +1 -1
- package/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue +1 -1
- package/lib/js/components/Modals/Modal/Modal.vue +10 -4
- package/lib/js/components/Modals/ModalDialog/ModalDialog.vue +3 -3
- package/lib/js/components/Outline/OutlineItem/OutlineItem.consts.ts +9 -0
- package/lib/js/components/Outline/OutlineItem/OutlineItem.vue +6 -3
- package/lib/js/components/Pagination/Pagination.vue +2 -2
- package/lib/js/components/ProgressBar/ProgressBar.consts.ts +14 -0
- package/lib/js/components/ProgressBar/ProgressBar.vue +13 -8
- package/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue +2 -2
- package/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue +2 -2
- package/lib/js/components/RichList/RichListItem/RichListItem.vue +7 -7
- package/lib/js/components/SectionTitle/SectionTitle.vue +2 -2
- package/lib/js/components/SelectList/SelectListItem/SelectListItem.consts.ts +11 -3
- package/lib/js/components/SelectList/SelectListItem/SelectListItem.vue +6 -3
- package/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue +5 -3
- package/lib/js/components/SurveyQuestions/SurveyQuestion.consts.ts +6 -0
- package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue +2 -2
- package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue +9 -4
- package/lib/js/components/SurveyToggle/SurveyToggle.consts.ts +8 -0
- package/lib/js/components/SurveyToggle/SurveyToggle.vue +9 -6
- package/lib/js/components/TabItem/TabItem.vue +1 -1
- package/lib/js/components/TextGroup/TextGroup.vue +1 -1
- package/lib/js/components/Tile/Tile.consts.ts +3 -3
- package/lib/js/components/Tile/Tile.shared.ts +9 -10
- package/lib/js/components/Toggles/CounterToggle/CounterToggle.consts.ts +5 -1
- package/lib/js/components/Toggles/CounterToggle/CounterToggle.vue +2 -2
- package/lib/js/components/Toggles/ToggleButton/ToggleButton.vue +4 -5
- package/lib/js/styles/ItemsList.vue +9 -2
- package/lib/js/styles/TokenTypes.ts +2 -1
- package/package.json +4 -3
- package/dist/demo.html +0 -1
- package/dist/design-system.umd.js +0 -63093
- package/dist/design-system.umd.js.map +0 -1
- package/dist/lib/js/components/BadgeScore/BadgeScore.spec.d.ts +0 -1
- package/dist/lib/js/components/BadgeScore/BadgeScore.stories.d.ts +0 -14
- package/dist/lib/js/components/Badges/Badge/Badge.consts.d.ts +0 -4
- package/dist/lib/js/components/Badges/Badge/Badge.spec.d.ts +0 -1
- package/dist/lib/js/components/Badges/Badge/Badge.stories.d.ts +0 -5
- package/dist/lib/js/components/Badges/Badge/Badge.vue.d.ts +0 -42
- package/dist/lib/js/components/Badges/Badge/index.d.ts +0 -3
- package/dist/lib/js/components/Badges/BadgeScore/BadgeScore.consts.d.ts +0 -13
- package/dist/lib/js/components/Badges/BadgeScore/BadgeScore.spec.d.ts +0 -1
- package/dist/lib/js/components/Badges/BadgeScore/BadgeScore.stories.d.ts +0 -14
- package/dist/lib/js/components/Badges/BadgeScore/BadgeScore.vue.d.ts +0 -66
- package/dist/lib/js/components/Badges/BadgeScore/index.d.ts +0 -3
- package/dist/lib/js/components/Banner/Banner.stories.d.ts +0 -5
- package/dist/lib/js/components/Buttons/Button/Button.spec.d.ts +0 -1
- package/dist/lib/js/components/Buttons/Button/Button.stories.d.ts +0 -5
- package/dist/lib/js/components/Buttons/IconButton/IconButton.stories.d.ts +0 -10
- package/dist/lib/js/components/Cards/Card/Card.spec.d.ts +0 -1
- package/dist/lib/js/components/Cards/Card/Card.stories.d.ts +0 -5
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.spec.d.ts +0 -1
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.stories.d.ts +0 -5
- package/dist/lib/js/components/Chip/Chip.spec.d.ts +0 -1
- package/dist/lib/js/components/Chip/Chip.stories.d.ts +0 -6
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.stories.d.ts +0 -5
- package/dist/lib/js/components/DatePickers/DatePickerBox/DatePickerBox.vue.d.ts +0 -433
- package/dist/lib/js/components/DatePickers/DatePickerBox/index.d.ts +0 -3
- package/dist/lib/js/components/Divider/Divider.stories.d.ts +0 -5
- package/dist/lib/js/components/Drawer/Drawer.stories.d.ts +0 -5
- package/dist/lib/js/components/Drawer/DrawerContent/DrawerContent.stories.d.ts +0 -5
- package/dist/lib/js/components/Drawer/DrawerDivider/DrawerDivider.stories.d.ts +0 -5
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.stories.d.ts +0 -5
- package/dist/lib/js/components/Drawer/DrawerHeader/index.d.ts +0 -2
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.stories.d.ts +0 -5
- package/dist/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.stories.d.ts +0 -5
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.stories.d.ts +0 -5
- package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.stories.d.ts +0 -5
- package/dist/lib/js/components/Dropdown/Dropdown.stories.d.ts +0 -5
- package/dist/lib/js/components/Form/Checkbox/Checkbox.stories.d.ts +0 -5
- package/dist/lib/js/components/Form/RadioButton/RadioButton.stories.d.ts +0 -5
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.stories.d.ts +0 -5
- package/dist/lib/js/components/Headers/PageHeader/PageHeader.stories.d.ts +0 -5
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.stories.d.ts +0 -5
- package/dist/lib/js/components/IconText/IconText.stories.d.ts +0 -5
- package/dist/lib/js/components/Icons/FeatureIcon/FeatureIcon.stories.d.ts +0 -5
- package/dist/lib/js/components/Icons/Icon/Icon.stories.d.ts +0 -6
- package/dist/lib/js/components/Image/Image.stories.d.ts +0 -5
- package/dist/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.stories.d.ts +0 -5
- package/dist/lib/js/components/LoadingBar/LoadingBar.stories.d.ts +0 -5
- package/dist/lib/js/components/Modal/Modal.spec.d.ts +0 -1
- package/dist/lib/js/components/Modals/Modal/Modal.stories.d.ts +0 -8
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.stories.d.ts +0 -7
- package/dist/lib/js/components/NumberInCircle/NumberInCircle.stories.d.ts +0 -5
- package/dist/lib/js/components/Outline/OutlineDivider/OutlineDivider.stories.d.ts +0 -5
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.stories.d.ts +0 -5
- package/dist/lib/js/components/Outline/OutlineSectionHeader/OutlineSectionHeader.stories.d.ts +0 -5
- package/dist/lib/js/components/OverlayHeader/OverlayHeader.consts.d.ts +0 -7
- package/dist/lib/js/components/OverlayHeader/OverlayHeader.stories.d.ts +0 -5
- package/dist/lib/js/components/OverlayHeader/OverlayHeader.vue.d.ts +0 -257
- package/dist/lib/js/components/OverlayHeader/index.d.ts +0 -3
- package/dist/lib/js/components/Pagination/Pagination.spec.d.ts +0 -1
- package/dist/lib/js/components/Pagination/Pagination.stories.d.ts +0 -5
- package/dist/lib/js/components/Pill/Pill.consts.d.ts +0 -18
- package/dist/lib/js/components/Pill/Pill.spec.d.ts +0 -1
- package/dist/lib/js/components/Pill/Pill.stories.d.ts +0 -5
- package/dist/lib/js/components/Pill/Pill.vue.d.ts +0 -269
- package/dist/lib/js/components/Pill/index.d.ts +0 -3
- package/dist/lib/js/components/PopOver/PopOver.stories.d.ts +0 -6
- package/dist/lib/js/components/ProgressBar/ProgressBar.stories.d.ts +0 -9
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.spec.d.ts +0 -1
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.stories.d.ts +0 -5
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.stories.d.ts +0 -6
- package/dist/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.stories.d.ts +0 -6
- package/dist/lib/js/components/RichList/RichListGroupItem/RichListGroupItem.consts.d.ts +0 -24
- package/dist/lib/js/components/RichList/RichListGroupItem/RichListGroupItem.stories.d.ts +0 -12
- package/dist/lib/js/components/RichList/RichListGroupItem/RichListGroupItem.vue.d.ts +0 -26
- package/dist/lib/js/components/RichList/RichListGroupItem/index.d.ts +0 -3
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.stories.d.ts +0 -6
- package/dist/lib/js/components/RichList/RichListItemBasic/RichListItemBasic.stories.d.ts +0 -5
- package/dist/lib/js/components/RichList/RichListItemBasic/RichListItemBasic.vue.d.ts +0 -72
- package/dist/lib/js/components/RichList/RichListItemBasic/index.d.ts +0 -2
- package/dist/lib/js/components/Ripple/Ripple.consts.d.ts +0 -14
- package/dist/lib/js/components/Ripple/Ripple.stories.d.ts +0 -5
- package/dist/lib/js/components/Ripple/Ripple.vue.d.ts +0 -30
- package/dist/lib/js/components/Ripple/index.d.ts +0 -3
- package/dist/lib/js/components/SectionHeader/SectionHeader.consts.d.ts +0 -4
- package/dist/lib/js/components/SectionHeader/SectionHeader.stories.d.ts +0 -5
- package/dist/lib/js/components/SectionHeader/SectionHeader.vue.d.ts +0 -237
- package/dist/lib/js/components/SectionHeader/index.d.ts +0 -3
- package/dist/lib/js/components/SectionTitle/SectionTitle.stories.d.ts +0 -5
- package/dist/lib/js/components/SelectList/SelectList.stories.d.ts +0 -6
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.stories.d.ts +0 -5
- package/dist/lib/js/components/SelectList/SelectListItemDivider/SelectListItemDivider.stories.d.ts +0 -5
- package/dist/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.stories.d.ts +0 -6
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.stories.d.ts +0 -5
- package/dist/lib/js/components/SelectList/SelectListSectionTitle/SelectListSectionTitle.stories.d.ts +0 -5
- package/dist/lib/js/components/SelectionTile/SelectionTile.stories.d.ts +0 -5
- package/dist/lib/js/components/Skeleton/Skeleton.stories.d.ts +0 -5
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.spec.d.ts +0 -1
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.stories.d.ts +0 -5
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.spec.d.ts +0 -1
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockedeStatus.stories.d.ts +0 -5
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.stories.d.ts +0 -5
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.spec.d.ts +0 -1
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.stories.d.ts +0 -7
- package/dist/lib/js/components/SurveyToggle/SurveyToggle.spec.d.ts +0 -1
- package/dist/lib/js/components/SurveyToggle/SurveyToggle.stories.d.ts +0 -5
- package/dist/lib/js/components/Switch/Switch.stories.d.ts +0 -5
- package/dist/lib/js/components/TabItem/TabItem.spec.d.ts +0 -1
- package/dist/lib/js/components/TabItem/TabItem.stories.d.ts +0 -5
- package/dist/lib/js/components/TextGroup/TextGroup.stories.d.ts +0 -5
- package/dist/lib/js/components/Tile/Tile.spec.d.ts +0 -1
- package/dist/lib/js/components/Tile/Tile.stories.d.ts +0 -6
- package/dist/lib/js/components/Toast/Toast.stories.d.ts +0 -5
- package/dist/lib/js/components/Toggles/CounterToggle/CounterToggle.spec.d.ts +0 -1
- package/dist/lib/js/components/Toggles/CounterToggle/CounterToggle.stories.d.ts +0 -5
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.stories.d.ts +0 -5
- package/dist/lib/js/components/Tooltip/Tooltip.stories.d.ts +0 -7
- package/dist/lib/js/components/Well/Well.stories.d.ts +0 -5
- package/dist/lib/js/styles/Borders/BorderSizes.stories.d.ts +0 -4
- package/dist/lib/js/styles/Colors/Colors.stories.d.ts +0 -5
- package/dist/lib/js/styles/ColorsThemes/ColorsThemes.stories.d.ts +0 -5
- package/dist/lib/js/styles/ColorsTokensLms/ColorsTokensLms.stories.d.ts +0 -5
- package/dist/lib/js/styles/ColorsTokensPrimaryBodywork/ColorsTokensPrimaryBodywork.stories.d.ts +0 -5
- package/dist/lib/js/styles/ColorsTokensPrimaryWnl/ColorsTokensPrimaryWnl.stories.d.ts +0 -5
- package/dist/lib/js/styles/Spacings/Spacings.stories.d.ts +0 -4
- package/dist/lib/js/styles/TypographyTokensLms/TypographyTokensLms.stories.d.ts +0 -5
- package/dist/lib/js/styles/TypographyVariables/TypographyVariables.stories.d.ts +0 -5
- package/dist/lib/js/tests/emptyModule.d.ts +0 -0
- package/dist/lib/js/tests/emptyTransformer.d.ts +0 -0
- package/dist/tools/importers/helpers/modifiers.d.ts +0 -9
- package/dist/tools/importers/helpers/structures.d.ts +0 -68
- package/docs/assets/Button-yeAor0pZ.js +0 -1
- package/docs/assets/DatePicker-DHykkoW4.js +0 -2
- package/docs/assets/GroupRichListItem-onOADtuh.js +0 -1
- package/docs/assets/IconButton-gTykCZIi.js +0 -1
- package/docs/assets/SurveyToggle-BECsKZHH.js +0 -1
- package/docs/assets/TabItem-Cceq5FQB.js +0 -1
- package/docs/assets/TextGroup-D5le3QVY.js +0 -1
|
@@ -344,6 +344,8 @@ import {
|
|
|
344
344
|
SECTION_HEADER_MOBILE_LAYOUTS,
|
|
345
345
|
SECTION_HEADER_SIZES,
|
|
346
346
|
SectionHeaderIconColor,
|
|
347
|
+
SectionHeaderMobileLayout,
|
|
348
|
+
SectionHeaderSize,
|
|
347
349
|
} from './SectionHeader.consts';
|
|
348
350
|
import DsIcon, { ICON_SIZES, IconItem, ICONS } from '../../Icons/Icon';
|
|
349
351
|
import DsIconButton, { ICON_BUTTON_COLORS, ICON_BUTTON_SIZES } from '../../Buttons/IconButton';
|
|
@@ -405,7 +407,7 @@ export default defineComponent({
|
|
|
405
407
|
size: {
|
|
406
408
|
type: String,
|
|
407
409
|
default: SECTION_HEADER_SIZES.MEDIUM,
|
|
408
|
-
validator(size) {
|
|
410
|
+
validator(size: SectionHeaderSize) {
|
|
409
411
|
return Object.values(SECTION_HEADER_SIZES).includes(size);
|
|
410
412
|
},
|
|
411
413
|
},
|
|
@@ -432,7 +434,8 @@ export default defineComponent({
|
|
|
432
434
|
mobileLayout: {
|
|
433
435
|
type: String,
|
|
434
436
|
default: SECTION_HEADER_MOBILE_LAYOUTS.VERTICAL,
|
|
435
|
-
validator: (value) =>
|
|
437
|
+
validator: (value: SectionHeaderMobileLayout) =>
|
|
438
|
+
Object.values(SECTION_HEADER_MOBILE_LAYOUTS).includes(value),
|
|
436
439
|
},
|
|
437
440
|
},
|
|
438
441
|
// TODO fix me when touching this file
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
+
import { Value } from '../../utils/type.utils';
|
|
2
|
+
|
|
1
3
|
export const ICON_TEXT_COLORS = {
|
|
2
4
|
NEUTRAL_WEAK: 'neutralWeak',
|
|
3
5
|
NEUTRAL: 'neutral',
|
|
4
6
|
};
|
|
5
7
|
|
|
8
|
+
export type IconTextColor = Value<typeof ICON_TEXT_COLORS>;
|
|
9
|
+
|
|
6
10
|
export const ICON_TEXT_SIZES = {
|
|
7
11
|
X_SMALL: 'xSmall',
|
|
8
12
|
SMALL: 'small',
|
|
9
13
|
MEDIUM: 'medium',
|
|
10
14
|
};
|
|
11
15
|
|
|
16
|
+
export type IconTextSize = Value<typeof ICON_TEXT_SIZES>;
|
|
17
|
+
|
|
12
18
|
export const ICON_TEXT_STATES = {
|
|
13
19
|
DEFAULT: 'default',
|
|
14
20
|
DISABLED: 'disabled',
|
|
15
21
|
};
|
|
22
|
+
|
|
23
|
+
export type IconTextState = Value<typeof ICON_TEXT_STATES>;
|
|
@@ -122,7 +122,13 @@
|
|
|
122
122
|
|
|
123
123
|
<script lang="ts">
|
|
124
124
|
import Icon, { ICON_SIZES, ICONS } from '../Icons/Icon';
|
|
125
|
-
import {
|
|
125
|
+
import {
|
|
126
|
+
ICON_TEXT_COLORS,
|
|
127
|
+
ICON_TEXT_SIZES,
|
|
128
|
+
ICON_TEXT_STATES,
|
|
129
|
+
IconTextColor,
|
|
130
|
+
IconTextSize,
|
|
131
|
+
} from './IconText.consts';
|
|
126
132
|
import { Value } from '../../utils/type.utils';
|
|
127
133
|
import { defineComponent, toRaw } from 'vue';
|
|
128
134
|
|
|
@@ -135,7 +141,7 @@ export default defineComponent({
|
|
|
135
141
|
color: {
|
|
136
142
|
type: String,
|
|
137
143
|
default: ICON_TEXT_COLORS.NEUTRAL_WEAK,
|
|
138
|
-
validator(color) {
|
|
144
|
+
validator(color: IconTextColor) {
|
|
139
145
|
return Object.values(ICON_TEXT_COLORS).includes(color);
|
|
140
146
|
},
|
|
141
147
|
},
|
|
@@ -159,7 +165,7 @@ export default defineComponent({
|
|
|
159
165
|
size: {
|
|
160
166
|
type: String,
|
|
161
167
|
default: ICON_TEXT_SIZES.X_SMALL,
|
|
162
|
-
validator(size) {
|
|
168
|
+
validator(size: IconTextSize) {
|
|
163
169
|
return Object.values(ICON_TEXT_SIZES).includes(size);
|
|
164
170
|
},
|
|
165
171
|
},
|
|
@@ -209,7 +209,7 @@ export default defineComponent({
|
|
|
209
209
|
rightColumnSize: {
|
|
210
210
|
type: String as PropType<ThreeColumnLayoutRightColumnSize>,
|
|
211
211
|
default: THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE.MEDIUM,
|
|
212
|
-
validator(rightColumnSize) {
|
|
212
|
+
validator(rightColumnSize: ThreeColumnLayoutRightColumnSize) {
|
|
213
213
|
return Object.values(THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE).includes(
|
|
214
214
|
rightColumnSize,
|
|
215
215
|
);
|
|
@@ -50,7 +50,12 @@
|
|
|
50
50
|
id="ds-modal__checkboxInput"
|
|
51
51
|
type="checkbox"
|
|
52
52
|
:checked="false"
|
|
53
|
-
@change="
|
|
53
|
+
@change="
|
|
54
|
+
$emit(
|
|
55
|
+
'checkbox-change',
|
|
56
|
+
($event.target as HTMLInputElement).checked,
|
|
57
|
+
)
|
|
58
|
+
"
|
|
54
59
|
/>
|
|
55
60
|
<label
|
|
56
61
|
for="ds-modal__checkboxInput"
|
|
@@ -323,6 +328,7 @@ import WnlButton, {
|
|
|
323
328
|
BUTTON_ELEVATIONS,
|
|
324
329
|
BUTTON_STATES,
|
|
325
330
|
BUTTON_TYPES,
|
|
331
|
+
ButtonState,
|
|
326
332
|
} from '../../Buttons/Button';
|
|
327
333
|
import WnlIconButton, { ICON_BUTTON_COLORS } from '../../Buttons/IconButton';
|
|
328
334
|
import { defineComponent, toRaw } from 'vue';
|
|
@@ -389,7 +395,7 @@ export default defineComponent({
|
|
|
389
395
|
footerPrimaryButtonState: {
|
|
390
396
|
type: String,
|
|
391
397
|
default: BUTTON_STATES.DEFAULT,
|
|
392
|
-
validator(state) {
|
|
398
|
+
validator(state: ButtonState) {
|
|
393
399
|
return Object.values(BUTTON_STATES).includes(state);
|
|
394
400
|
},
|
|
395
401
|
},
|
|
@@ -407,7 +413,7 @@ export default defineComponent({
|
|
|
407
413
|
footerSecondaryButtonState: {
|
|
408
414
|
type: String,
|
|
409
415
|
default: BUTTON_STATES.DEFAULT,
|
|
410
|
-
validator(state) {
|
|
416
|
+
validator(state: ButtonState) {
|
|
411
417
|
return Object.values(BUTTON_STATES).includes(state);
|
|
412
418
|
},
|
|
413
419
|
},
|
|
@@ -425,7 +431,7 @@ export default defineComponent({
|
|
|
425
431
|
footerTertiaryButtonState: {
|
|
426
432
|
type: String,
|
|
427
433
|
default: BUTTON_STATES.DEFAULT,
|
|
428
|
-
validator(state) {
|
|
434
|
+
validator(state: ButtonState) {
|
|
429
435
|
return Object.values(BUTTON_STATES).includes(state);
|
|
430
436
|
},
|
|
431
437
|
},
|
|
@@ -30,7 +30,7 @@ import { MODAL_HEADER_TITLE_SIZES, MODAL_SIZES } from '../Modal';
|
|
|
30
30
|
import { ICONS } from '../../Icons/Icon';
|
|
31
31
|
import { FEATURE_ICON_COLOR } from '../../Icons/FeatureIcon';
|
|
32
32
|
import { defineComponent, toRaw } from 'vue';
|
|
33
|
-
import { BUTTON_STATES } from '../../Buttons/Button';
|
|
33
|
+
import { BUTTON_STATES, ButtonState } from '../../Buttons/Button';
|
|
34
34
|
|
|
35
35
|
export default defineComponent({
|
|
36
36
|
name: 'ModalDialog',
|
|
@@ -80,7 +80,7 @@ export default defineComponent({
|
|
|
80
80
|
footerPrimaryButtonState: {
|
|
81
81
|
type: String,
|
|
82
82
|
default: BUTTON_STATES.DEFAULT,
|
|
83
|
-
validator(state) {
|
|
83
|
+
validator(state: ButtonState) {
|
|
84
84
|
return Object.values(BUTTON_STATES).includes(state);
|
|
85
85
|
},
|
|
86
86
|
},
|
|
@@ -98,7 +98,7 @@ export default defineComponent({
|
|
|
98
98
|
footerSecondaryButtonState: {
|
|
99
99
|
type: String,
|
|
100
100
|
default: BUTTON_STATES.DEFAULT,
|
|
101
|
-
validator(state) {
|
|
101
|
+
validator(state: ButtonState) {
|
|
102
102
|
return Object.values(BUTTON_STATES).includes(state);
|
|
103
103
|
},
|
|
104
104
|
},
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
+
import { Value } from '../../../utils/type.utils';
|
|
2
|
+
|
|
1
3
|
export const OUTLINE_ITEM_SIZES = {
|
|
2
4
|
SMALL: 'small',
|
|
3
5
|
MEDIUM: 'medium',
|
|
4
6
|
};
|
|
7
|
+
|
|
8
|
+
export type OutlineItemSize = Value<typeof OUTLINE_ITEM_SIZES>;
|
|
9
|
+
|
|
5
10
|
export const OUTLINE_ITEM_STATES = {
|
|
6
11
|
DEFAULT: 'default',
|
|
7
12
|
DISABLED: 'disabled',
|
|
8
13
|
};
|
|
9
14
|
|
|
15
|
+
export type OutlineItemState = Value<typeof OUTLINE_ITEM_STATES>;
|
|
16
|
+
|
|
10
17
|
export const OUTLINE_ITEM_BACKGROUND_COLORS = {
|
|
11
18
|
NEUTRAL_WEAK: 'neutralWeak',
|
|
12
19
|
NEUTRAL: 'neutral',
|
|
13
20
|
};
|
|
21
|
+
|
|
22
|
+
export type OutlineItemBackgroundColor = Value<typeof OUTLINE_ITEM_BACKGROUND_COLORS>;
|
|
@@ -221,6 +221,9 @@ import {
|
|
|
221
221
|
OUTLINE_ITEM_BACKGROUND_COLORS,
|
|
222
222
|
OUTLINE_ITEM_SIZES,
|
|
223
223
|
OUTLINE_ITEM_STATES,
|
|
224
|
+
OutlineItemBackgroundColor,
|
|
225
|
+
OutlineItemSize,
|
|
226
|
+
OutlineItemState,
|
|
224
227
|
} from './OutlineItem.consts';
|
|
225
228
|
|
|
226
229
|
export default defineComponent({
|
|
@@ -232,14 +235,14 @@ export default defineComponent({
|
|
|
232
235
|
size: {
|
|
233
236
|
type: String,
|
|
234
237
|
default: OUTLINE_ITEM_SIZES.SMALL,
|
|
235
|
-
validator(size) {
|
|
238
|
+
validator(size: OutlineItemSize) {
|
|
236
239
|
return Object.values(OUTLINE_ITEM_SIZES).includes(size);
|
|
237
240
|
},
|
|
238
241
|
},
|
|
239
242
|
backgroundColor: {
|
|
240
243
|
type: String,
|
|
241
244
|
default: OUTLINE_ITEM_BACKGROUND_COLORS.NEUTRAL_WEAK,
|
|
242
|
-
validator(color) {
|
|
245
|
+
validator(color: OutlineItemBackgroundColor) {
|
|
243
246
|
return Object.values(OUTLINE_ITEM_BACKGROUND_COLORS).includes(color);
|
|
244
247
|
},
|
|
245
248
|
},
|
|
@@ -284,7 +287,7 @@ export default defineComponent({
|
|
|
284
287
|
state: {
|
|
285
288
|
type: String,
|
|
286
289
|
default: OUTLINE_ITEM_STATES.DEFAULT,
|
|
287
|
-
validator(state) {
|
|
290
|
+
validator(state: OutlineItemState) {
|
|
288
291
|
return Object.values(OUTLINE_ITEM_STATES).includes(state);
|
|
289
292
|
},
|
|
290
293
|
},
|
|
@@ -283,7 +283,7 @@ export default defineComponent({
|
|
|
283
283
|
currentPage: {
|
|
284
284
|
type: Number,
|
|
285
285
|
default: FIRST_PAGE_NUMBER,
|
|
286
|
-
validator(page) {
|
|
286
|
+
validator(page: number) {
|
|
287
287
|
return page > 0;
|
|
288
288
|
},
|
|
289
289
|
},
|
|
@@ -298,7 +298,7 @@ export default defineComponent({
|
|
|
298
298
|
itemsPerPage: {
|
|
299
299
|
type: Number,
|
|
300
300
|
default: PAGINATION_DEFAULT_ITEMS_PER_PAGE,
|
|
301
|
-
validator(itemsPerPage) {
|
|
301
|
+
validator(itemsPerPage: number) {
|
|
302
302
|
return itemsPerPage > 0;
|
|
303
303
|
},
|
|
304
304
|
},
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Value } from '../../utils/type.utils';
|
|
2
|
+
|
|
1
3
|
export const PROGRESS_BAR_RANGE_COLORS = {
|
|
2
4
|
PRIMARY_MEDIUM: 'primaryMedium',
|
|
3
5
|
PRIMARY: 'primary',
|
|
@@ -30,6 +32,8 @@ export const PROGRESS_BAR_RANGE_COLORS = {
|
|
|
30
32
|
FAIL_GHOST: 'failGhost',
|
|
31
33
|
} as const;
|
|
32
34
|
|
|
35
|
+
export type ProgressBarRangeColor = Value<typeof PROGRESS_BAR_RANGE_COLORS>;
|
|
36
|
+
|
|
33
37
|
export const PROGRESS_BAR_BADGE_COLORS = {
|
|
34
38
|
PRIMARY: 'primary',
|
|
35
39
|
NEUTRAL: 'neutral',
|
|
@@ -39,27 +43,37 @@ export const PROGRESS_BAR_BADGE_COLORS = {
|
|
|
39
43
|
FAIL: 'fail',
|
|
40
44
|
} as const;
|
|
41
45
|
|
|
46
|
+
export type ProgressBarBadgeColor = Value<typeof PROGRESS_BAR_BADGE_COLORS>;
|
|
47
|
+
|
|
42
48
|
export const PROGRESS_BAR_SIZES = {
|
|
43
49
|
MEDIUM: 'medium',
|
|
44
50
|
SMALL: 'small',
|
|
45
51
|
XSMALL: 'extra small',
|
|
46
52
|
} as const;
|
|
47
53
|
|
|
54
|
+
export type ProgressBarSize = Value<typeof PROGRESS_BAR_SIZES>;
|
|
55
|
+
|
|
48
56
|
export const PROGRESS_BAR_LABEL_TEXT_SIZES = {
|
|
49
57
|
MEDIUM: 'medium',
|
|
50
58
|
SMALL: 'small',
|
|
51
59
|
} as const;
|
|
52
60
|
|
|
61
|
+
export type ProgressBarLabelTextSize = Value<typeof PROGRESS_BAR_LABEL_TEXT_SIZES>;
|
|
62
|
+
|
|
53
63
|
export const PROGRESS_BAR_RADII = {
|
|
54
64
|
DEFAULT: 'default',
|
|
55
65
|
NONE: 'none',
|
|
56
66
|
};
|
|
57
67
|
|
|
68
|
+
export type ProgressBarRadius = Value<typeof PROGRESS_BAR_RADII>;
|
|
69
|
+
|
|
58
70
|
export const PROGRESS_BAR_LAYOUTS = {
|
|
59
71
|
DEFAULT: 'default',
|
|
60
72
|
COMPACT: 'compact',
|
|
61
73
|
};
|
|
62
74
|
|
|
75
|
+
export type ProgressBarLayout = Value<typeof PROGRESS_BAR_LAYOUTS>;
|
|
76
|
+
|
|
63
77
|
export interface ProgressBarRange {
|
|
64
78
|
color: typeof PROGRESS_BAR_RANGE_COLORS[keyof typeof PROGRESS_BAR_RANGE_COLORS];
|
|
65
79
|
start: number;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
'-ds-medium': labelTextSize === PROGRESS_BAR_LABEL_TEXT_SIZES.MEDIUM,
|
|
13
13
|
'-ds-ellipsis': labelTextEllipsis,
|
|
14
14
|
}"
|
|
15
|
-
:title="labelTextEllipsis ? labelText :
|
|
15
|
+
:title="labelTextEllipsis ? labelText : undefined"
|
|
16
16
|
>
|
|
17
17
|
{{ labelText }}
|
|
18
18
|
</div>
|
|
@@ -312,7 +312,12 @@ import {
|
|
|
312
312
|
PROGRESS_BAR_LAYOUTS,
|
|
313
313
|
PROGRESS_BAR_RADII,
|
|
314
314
|
PROGRESS_BAR_SIZES,
|
|
315
|
+
ProgressBarBadgeColor,
|
|
316
|
+
ProgressBarLabelTextSize,
|
|
317
|
+
ProgressBarLayout,
|
|
318
|
+
ProgressBarRadius,
|
|
315
319
|
ProgressBarRange,
|
|
320
|
+
ProgressBarSize,
|
|
316
321
|
} from './ProgressBar.consts';
|
|
317
322
|
|
|
318
323
|
import DsIcon, { ICON_SIZES, ICONS } from '../Icons/Icon';
|
|
@@ -326,21 +331,21 @@ export default defineComponent({
|
|
|
326
331
|
size: {
|
|
327
332
|
type: String,
|
|
328
333
|
default: PROGRESS_BAR_SIZES.SMALL,
|
|
329
|
-
validator(size) {
|
|
334
|
+
validator(size: ProgressBarSize) {
|
|
330
335
|
return Object.values(PROGRESS_BAR_SIZES).includes(size);
|
|
331
336
|
},
|
|
332
337
|
},
|
|
333
338
|
labelTextSize: {
|
|
334
339
|
type: String,
|
|
335
340
|
default: PROGRESS_BAR_LABEL_TEXT_SIZES.SMALL,
|
|
336
|
-
validator(size) {
|
|
341
|
+
validator(size: ProgressBarLabelTextSize) {
|
|
337
342
|
return Object.values(PROGRESS_BAR_LABEL_TEXT_SIZES).includes(size);
|
|
338
343
|
},
|
|
339
344
|
},
|
|
340
345
|
ranges: {
|
|
341
346
|
type: Array as PropType<Array<ProgressBarRange>>,
|
|
342
347
|
required: true,
|
|
343
|
-
validator(ranges) {
|
|
348
|
+
validator(ranges: Array<ProgressBarRange>) {
|
|
344
349
|
return ranges.every(
|
|
345
350
|
(range: ProgressBarRange) =>
|
|
346
351
|
range.start >= 0 && range.length >= 0 && range.start + range.length <= 100,
|
|
@@ -350,14 +355,14 @@ export default defineComponent({
|
|
|
350
355
|
radius: {
|
|
351
356
|
type: String,
|
|
352
357
|
default: PROGRESS_BAR_RADII.DEFAULT,
|
|
353
|
-
validator(size) {
|
|
358
|
+
validator(size: ProgressBarRadius) {
|
|
354
359
|
return Object.values(PROGRESS_BAR_RADII).includes(size);
|
|
355
360
|
},
|
|
356
361
|
},
|
|
357
362
|
layout: {
|
|
358
363
|
type: String,
|
|
359
364
|
default: PROGRESS_BAR_LAYOUTS.DEFAULT,
|
|
360
|
-
validator(size) {
|
|
365
|
+
validator(size: ProgressBarLayout) {
|
|
361
366
|
return Object.values(PROGRESS_BAR_LAYOUTS).includes(size);
|
|
362
367
|
},
|
|
363
368
|
},
|
|
@@ -384,14 +389,14 @@ export default defineComponent({
|
|
|
384
389
|
badgePosition: {
|
|
385
390
|
type: Number,
|
|
386
391
|
default: null,
|
|
387
|
-
validator(position) {
|
|
392
|
+
validator(position: number) {
|
|
388
393
|
return position >= 0 && position <= 100;
|
|
389
394
|
},
|
|
390
395
|
},
|
|
391
396
|
badgeColor: {
|
|
392
397
|
type: String,
|
|
393
398
|
default: PROGRESS_BAR_BADGE_COLORS.INFO,
|
|
394
|
-
validator(color) {
|
|
399
|
+
validator(color: ProgressBarBadgeColor) {
|
|
395
400
|
return Object.values(PROGRESS_BAR_BADGE_COLORS).includes(color);
|
|
396
401
|
},
|
|
397
402
|
},
|
|
@@ -246,14 +246,14 @@ export default defineComponent({
|
|
|
246
246
|
state: {
|
|
247
247
|
type: String as PropType<ProgressDonutChartState>,
|
|
248
248
|
default: PROGRESS_DONUT_CHART_STATES.DEFAULT,
|
|
249
|
-
validator(state) {
|
|
249
|
+
validator(state: ProgressDonutChartState) {
|
|
250
250
|
return Object.values(PROGRESS_DONUT_CHART_STATES).includes(state);
|
|
251
251
|
},
|
|
252
252
|
},
|
|
253
253
|
ranges: {
|
|
254
254
|
type: Array as PropType<Array<ProgressDonutChartRange>>,
|
|
255
255
|
required: true,
|
|
256
|
-
validator(ranges) {
|
|
256
|
+
validator(ranges: Array<ProgressDonutChartRange>) {
|
|
257
257
|
return ranges.every(
|
|
258
258
|
(range: ProgressDonutChartRange) =>
|
|
259
259
|
range.start >= 0 && range.length >= 0 && range.start + range.length <= 100,
|
|
@@ -109,7 +109,7 @@ export default defineComponent({
|
|
|
109
109
|
borderColor: {
|
|
110
110
|
type: String as PropType<GroupRichListItemBorderColor>,
|
|
111
111
|
default: null,
|
|
112
|
-
validator(borderColor) {
|
|
112
|
+
validator(borderColor: GroupRichListItemBorderColor) {
|
|
113
113
|
return Object.values(GROUP_RICH_LIST_ITEM_BORDER_COLOR).includes(borderColor);
|
|
114
114
|
},
|
|
115
115
|
},
|
|
@@ -120,7 +120,7 @@ export default defineComponent({
|
|
|
120
120
|
backgroundColor: {
|
|
121
121
|
type: String as PropType<GroupRichListItemBackgroundColor>,
|
|
122
122
|
default: GROUP_RICH_LIST_ITEM_BACKGROUND_COLOR.NEUTRAL,
|
|
123
|
-
validator(backgroundColor) {
|
|
123
|
+
validator(backgroundColor: GroupRichListItemBackgroundColor) {
|
|
124
124
|
return Object.values(GROUP_RICH_LIST_ITEM_BACKGROUND_COLOR).includes(
|
|
125
125
|
backgroundColor,
|
|
126
126
|
);
|
|
@@ -536,7 +536,7 @@ export default defineComponent({
|
|
|
536
536
|
size: {
|
|
537
537
|
type: String as PropType<RichListItemSize>,
|
|
538
538
|
default: RICH_LIST_ITEM_SIZE.MEDIUM,
|
|
539
|
-
validator(size) {
|
|
539
|
+
validator(size: RichListItemSize) {
|
|
540
540
|
return Object.values(RICH_LIST_ITEM_SIZE).includes(size);
|
|
541
541
|
},
|
|
542
542
|
},
|
|
@@ -562,7 +562,7 @@ export default defineComponent({
|
|
|
562
562
|
iconColor: {
|
|
563
563
|
type: String as PropType<IconColor>,
|
|
564
564
|
default: null,
|
|
565
|
-
validator(iconColor) {
|
|
565
|
+
validator(iconColor: IconColor) {
|
|
566
566
|
return Object.values(ICON_COLORS).includes(iconColor);
|
|
567
567
|
},
|
|
568
568
|
},
|
|
@@ -573,7 +573,7 @@ export default defineComponent({
|
|
|
573
573
|
borderColor: {
|
|
574
574
|
type: String as PropType<RichListItemBorderColor>,
|
|
575
575
|
default: null,
|
|
576
|
-
validator(borderColor) {
|
|
576
|
+
validator(borderColor: RichListItemBorderColor) {
|
|
577
577
|
return Object.values(RICH_LIST_ITEM_BORDER_COLOR).includes(borderColor);
|
|
578
578
|
},
|
|
579
579
|
},
|
|
@@ -588,15 +588,15 @@ export default defineComponent({
|
|
|
588
588
|
backgroundColor: {
|
|
589
589
|
type: String as PropType<RichListItemBackgroundColor>,
|
|
590
590
|
default: RICH_LIST_ITEM_BACKGROUND_COLOR.NEUTRAL,
|
|
591
|
-
validator(backgroundColor) {
|
|
591
|
+
validator(backgroundColor: RichListItemBackgroundColor) {
|
|
592
592
|
return Object.values(RICH_LIST_ITEM_BACKGROUND_COLOR).includes(backgroundColor);
|
|
593
593
|
},
|
|
594
594
|
},
|
|
595
595
|
elevation: {
|
|
596
596
|
type: String as PropType<RichListItemElevation>,
|
|
597
597
|
default: null,
|
|
598
|
-
validator(
|
|
599
|
-
return Object.values(RICH_LIST_ITEM_ELEVATION).includes(
|
|
598
|
+
validator(elevation: RichListItemElevation) {
|
|
599
|
+
return Object.values(RICH_LIST_ITEM_ELEVATION).includes(elevation);
|
|
600
600
|
},
|
|
601
601
|
},
|
|
602
602
|
hasDraggableHandler: {
|
|
@@ -618,7 +618,7 @@ export default defineComponent({
|
|
|
618
618
|
},
|
|
619
619
|
emits: {
|
|
620
620
|
'icon-click': () => true,
|
|
621
|
-
click: () => true,
|
|
621
|
+
click: (event: Event) => true,
|
|
622
622
|
'update:is-selected': (isSelected: boolean) => true,
|
|
623
623
|
},
|
|
624
624
|
data() {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
<script lang="ts">
|
|
35
35
|
import { defineComponent } from 'vue';
|
|
36
|
-
import { SECTION_TITLE_SIZES } from './SectionTitle.consts';
|
|
36
|
+
import { SECTION_TITLE_SIZES, SectionTitleSize } from './SectionTitle.consts';
|
|
37
37
|
|
|
38
38
|
export default defineComponent({
|
|
39
39
|
name: 'SectionTitle',
|
|
@@ -42,7 +42,7 @@ export default defineComponent({
|
|
|
42
42
|
size: {
|
|
43
43
|
type: String,
|
|
44
44
|
default: SECTION_TITLE_SIZES.XS,
|
|
45
|
-
validator(size) {
|
|
45
|
+
validator(size: SectionTitleSize) {
|
|
46
46
|
return Object.values(SECTION_TITLE_SIZES).includes(size);
|
|
47
47
|
},
|
|
48
48
|
},
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
+
import { Value } from '../../../utils/type.utils';
|
|
2
|
+
|
|
1
3
|
export const SELECT_LIST_ITEM_SELECTION_MODE = {
|
|
2
4
|
SELECT_ONLY: 'selectOnly',
|
|
3
5
|
TOGGLE: 'toggle',
|
|
4
|
-
};
|
|
6
|
+
} as const;
|
|
7
|
+
|
|
8
|
+
export type SelectListItemSelectionMode = Value<typeof SELECT_LIST_ITEM_SELECTION_MODE>;
|
|
5
9
|
|
|
6
10
|
export const SELECT_LIST_ITEM_SIZES = {
|
|
7
11
|
X_SMALL: 'xSmall',
|
|
8
12
|
SMALL: 'small',
|
|
9
13
|
MEDIUM: 'medium',
|
|
10
|
-
};
|
|
14
|
+
} as const;
|
|
15
|
+
|
|
16
|
+
export type SelectListItemSize = Value<typeof SELECT_LIST_ITEM_SIZES>;
|
|
11
17
|
|
|
12
18
|
export const SELECT_LIST_ITEM_STATES = {
|
|
13
19
|
DEFAULT: 'default',
|
|
14
20
|
LOADING: 'loading',
|
|
15
21
|
DISABLED: 'disabled',
|
|
16
|
-
};
|
|
22
|
+
} as const;
|
|
23
|
+
|
|
24
|
+
export type SelectListItemState = Value<typeof SELECT_LIST_ITEM_STATES>;
|
|
@@ -165,6 +165,9 @@ import {
|
|
|
165
165
|
SELECT_LIST_ITEM_SELECTION_MODE,
|
|
166
166
|
SELECT_LIST_ITEM_SIZES,
|
|
167
167
|
SELECT_LIST_ITEM_STATES,
|
|
168
|
+
SelectListItemSelectionMode,
|
|
169
|
+
SelectListItemSize,
|
|
170
|
+
SelectListItemState,
|
|
168
171
|
} from './SelectListItem.consts';
|
|
169
172
|
import DsIcon, { ICON_SIZES, ICONS } from '../../Icons/Icon';
|
|
170
173
|
import { defineComponent, toRaw } from 'vue';
|
|
@@ -201,21 +204,21 @@ export default defineComponent({
|
|
|
201
204
|
selectionMode: {
|
|
202
205
|
type: String,
|
|
203
206
|
default: SELECT_LIST_ITEM_SELECTION_MODE.SELECT_ONLY,
|
|
204
|
-
validator(selectionMode) {
|
|
207
|
+
validator(selectionMode: SelectListItemSelectionMode) {
|
|
205
208
|
return Object.values(SELECT_LIST_ITEM_SELECTION_MODE).includes(selectionMode);
|
|
206
209
|
},
|
|
207
210
|
},
|
|
208
211
|
size: {
|
|
209
212
|
type: String,
|
|
210
213
|
default: SELECT_LIST_ITEM_SIZES.SMALL,
|
|
211
|
-
validator(size) {
|
|
214
|
+
validator(size: SelectListItemSize) {
|
|
212
215
|
return Object.values(SELECT_LIST_ITEM_SIZES).includes(size);
|
|
213
216
|
},
|
|
214
217
|
},
|
|
215
218
|
state: {
|
|
216
219
|
type: String,
|
|
217
220
|
default: SELECT_LIST_ITEM_STATES.DEFAULT,
|
|
218
|
-
validator(state) {
|
|
221
|
+
validator(state: SelectListItemState) {
|
|
219
222
|
return Object.values(SELECT_LIST_ITEM_STATES).includes(state);
|
|
220
223
|
},
|
|
221
224
|
},
|
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
SELECT_LIST_ITEM_SELECTION_MODE,
|
|
15
15
|
SELECT_LIST_ITEM_SIZES,
|
|
16
16
|
SELECT_LIST_ITEM_STATES,
|
|
17
|
+
SelectListItemSize,
|
|
18
|
+
SelectListItemState,
|
|
17
19
|
} from '../SelectListItem/SelectListItem.consts';
|
|
18
20
|
import { IconItem, ICONS } from '../../Icons/Icon';
|
|
19
21
|
import SelectListItem from '../SelectListItem/SelectListItem.vue';
|
|
@@ -54,15 +56,15 @@ export default defineComponent({
|
|
|
54
56
|
size: {
|
|
55
57
|
type: String,
|
|
56
58
|
default: SELECT_LIST_ITEM_SIZES.SMALL,
|
|
57
|
-
validator(size) {
|
|
59
|
+
validator(size: SelectListItemSize) {
|
|
58
60
|
return Object.values(SELECT_LIST_ITEM_SIZES).includes(size);
|
|
59
61
|
},
|
|
60
62
|
},
|
|
61
63
|
state: {
|
|
62
64
|
type: String,
|
|
63
65
|
default: SELECT_LIST_ITEM_STATES.DEFAULT,
|
|
64
|
-
validator(
|
|
65
|
-
return Object.values(SELECT_LIST_ITEM_STATES).includes(
|
|
66
|
+
validator(state: SelectListItemState) {
|
|
67
|
+
return Object.values(SELECT_LIST_ITEM_STATES).includes(state);
|
|
66
68
|
},
|
|
67
69
|
},
|
|
68
70
|
},
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { Value } from '../../utils/type.utils';
|
|
2
|
+
|
|
1
3
|
export const SURVEY_QUESTION_STATES = {
|
|
2
4
|
DEFAULT: 'default',
|
|
3
5
|
DISABLED: 'disabled',
|
|
4
6
|
} as const;
|
|
5
7
|
|
|
8
|
+
export type SurveyQuestionState = Value<typeof SURVEY_QUESTION_STATES>;
|
|
9
|
+
|
|
6
10
|
export const SURVEY_QUESTION_SCALE_CONTAINERS = {
|
|
7
11
|
ONE: 'one',
|
|
8
12
|
TWO: 'two',
|
|
9
13
|
} as const;
|
|
14
|
+
|
|
15
|
+
export type SurveyQuestionScaleContainer = Value<typeof SURVEY_QUESTION_SCALE_CONTAINERS>;
|
package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue
CHANGED
|
@@ -87,7 +87,7 @@ import DsModal from '../../Modal';
|
|
|
87
87
|
import DsButton, { BUTTON_TYPES } from '../../Buttons/Button';
|
|
88
88
|
import IconButton, { ICON_BUTTON_COLORS } from '../../Buttons/IconButton';
|
|
89
89
|
import { ICON_SIZES, ICONS } from '../../Icons/Icon';
|
|
90
|
-
import { SURVEY_QUESTION_STATES } from '../SurveyQuestion.consts';
|
|
90
|
+
import { SURVEY_QUESTION_STATES, SurveyQuestionState } from '../SurveyQuestion.consts';
|
|
91
91
|
import SurveyQuestionTextarea from '../SurveyQuestionTextarea.vue';
|
|
92
92
|
import { randomString } from '../../../utils/string';
|
|
93
93
|
|
|
@@ -118,7 +118,7 @@ export default defineComponent({
|
|
|
118
118
|
state: {
|
|
119
119
|
type: String,
|
|
120
120
|
default: SURVEY_QUESTION_STATES.DEFAULT,
|
|
121
|
-
validator(state) {
|
|
121
|
+
validator(state: SurveyQuestionState) {
|
|
122
122
|
return Object.values(SURVEY_QUESTION_STATES).includes(state);
|
|
123
123
|
},
|
|
124
124
|
},
|
|
@@ -239,7 +239,12 @@ import SurveyToggle, {
|
|
|
239
239
|
SURVEY_TOGGLE_STATES,
|
|
240
240
|
SURVEY_TOGGLE_STATUSES,
|
|
241
241
|
} from '../../SurveyToggle';
|
|
242
|
-
import {
|
|
242
|
+
import {
|
|
243
|
+
SURVEY_QUESTION_SCALE_CONTAINERS,
|
|
244
|
+
SURVEY_QUESTION_STATES,
|
|
245
|
+
SurveyQuestionScaleContainer,
|
|
246
|
+
SurveyQuestionState,
|
|
247
|
+
} from '../SurveyQuestion.consts';
|
|
243
248
|
import SurveyQuestionTextarea from '../';
|
|
244
249
|
import { SurveyQuestionScaleOption } from '../SurveyQuestion.domain';
|
|
245
250
|
import { randomString } from '../../../utils/string';
|
|
@@ -263,14 +268,14 @@ export default defineComponent({
|
|
|
263
268
|
state: {
|
|
264
269
|
type: String,
|
|
265
270
|
default: SURVEY_QUESTION_STATES.DEFAULT,
|
|
266
|
-
validator(state) {
|
|
271
|
+
validator(state: SurveyQuestionState) {
|
|
267
272
|
return Object.values(SURVEY_QUESTION_STATES).includes(state);
|
|
268
273
|
},
|
|
269
274
|
},
|
|
270
275
|
scaleOptions: {
|
|
271
276
|
type: Array as () => Array<SurveyQuestionScaleOption>,
|
|
272
277
|
required: true,
|
|
273
|
-
validator(scaleOptions) {
|
|
278
|
+
validator(scaleOptions: Array<SurveyQuestionScaleOption>) {
|
|
274
279
|
return scaleOptions.every((option) => typeof option === 'object');
|
|
275
280
|
},
|
|
276
281
|
},
|
|
@@ -293,7 +298,7 @@ export default defineComponent({
|
|
|
293
298
|
containers: {
|
|
294
299
|
type: String,
|
|
295
300
|
default: SURVEY_QUESTION_SCALE_CONTAINERS.TWO,
|
|
296
|
-
validator(containers) {
|
|
301
|
+
validator(containers: SurveyQuestionScaleContainer) {
|
|
297
302
|
return Object.values(SURVEY_QUESTION_SCALE_CONTAINERS).includes(containers);
|
|
298
303
|
},
|
|
299
304
|
},
|