@prozorro/prozorro-ui 0.0.9-beta → 0.0.11-beta
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/app/assets/{Color-FRDS63T2-DlPAsSuC.js → Color-FRDS63T2-DeJ6boVB.js} +1 -1
- package/dist/app/assets/{Colors.stories-7e9Kvci_.js → Colors.stories-GBcoNXc7.js} +3 -3
- package/dist/app/assets/{DocsRenderer-LL677BLK-Bjj1XNYP.js → DocsRenderer-LL677BLK-P1omigwk.js} +71 -71
- package/dist/app/assets/{Grid.stories-CDiFrqKQ.js → Grid.stories-DoLbqWtw.js} +23 -2
- package/dist/app/assets/PzAccordion-B8uG5LU8.js +1 -0
- package/dist/app/assets/PzAccordion-DoVx3poA.css +1 -0
- package/dist/app/assets/{PzAccordion.stories-DxsYsHwE.js → PzAccordion.stories-CzEbkA1U.js} +2 -2
- package/dist/app/assets/{PzAccordionTable-CsabBugL.css → PzAccordionTable-C4g8Fidf.css} +1 -1
- package/dist/app/assets/PzAccordionTable.stories-CWSrb6Rz.js +275 -0
- package/dist/app/assets/{PzArrayClamp-K4ObvvOV.css → PzArrayClamp-BwD8ES1E.css} +1 -1
- package/dist/app/assets/{PzArrayClamp.stories-BYdoVxPw.js → PzArrayClamp.stories-DXt6cxXy.js} +6 -6
- package/dist/app/assets/{PzBreadcrumb-Dcs3weae.css → PzBreadcrumb-BrcWtMgd.css} +1 -1
- package/dist/app/assets/{PzBreadcrumb.stories-DwATLRI2.js → PzBreadcrumb.stories-BYy2AFV5.js} +6 -6
- package/dist/app/assets/{PzBtn-L_RpjK-U.css → PzBtn-DTsLZ9Cu.css} +1 -1
- package/dist/app/assets/PzBtn-lJz7FmKO.js +1 -0
- package/dist/app/assets/{PzBtn.stories-BRV1I_nf.js → PzBtn.stories-u2aA2xzz.js} +2 -2
- package/dist/app/assets/PzCheckbox-AjI7DN-X.css +1 -0
- package/dist/app/assets/PzCheckbox-BchdSe0N.css +1 -0
- package/dist/app/assets/PzCheckbox-xcF_sDjQ.js +1 -0
- package/dist/app/assets/PzCheckbox.stories-DeiqBONq.js +62 -0
- package/dist/app/assets/PzCheckboxGroup-BbrrL6mA.css +1 -0
- package/dist/app/assets/PzCheckboxGroup.stories-Dc1lNYrg.js +115 -0
- package/dist/app/assets/PzClamp-0zNrPrFL.css +1 -0
- package/dist/app/assets/PzClamp.stories-ChyM4wQP.js +1 -0
- package/dist/app/assets/PzCopyToClipboard-DYvP-lFq.css +1 -0
- package/dist/app/assets/PzCopyToClipboard.stories-BvTs8-Qo.js +45 -0
- package/dist/app/assets/PzDate-DzxkQx_5.css +1 -0
- package/dist/app/assets/PzDate.stories-CbNYXli-.js +116 -0
- package/dist/app/assets/PzDomHandler-BU7iMNnt.js +1 -0
- package/dist/app/assets/{PzDomHandler.stories-C0SwIaVU.js → PzDomHandler.stories-CNFqxouB.js} +5 -5
- package/dist/app/assets/{PzDropdown-BnwR1ooa.css → PzDropdown-Bi4TxZrx.css} +1 -1
- package/dist/app/assets/{PzDropdown.stories-gi6eGhLV.js → PzDropdown.stories-BIwEAqmm.js} +3 -3
- package/dist/app/assets/PzFileInput-BLs8VTxo.css +1 -0
- package/dist/app/assets/PzFileInput.stories-B4xxW_sF.js +124 -0
- package/dist/app/assets/{PzGrid.stories-v8QLnTB3.js → PzGrid.stories-DIiTYcYP.js} +3 -3
- package/dist/app/assets/PzHint-CGRWH9yl.css +1 -0
- package/dist/app/assets/PzHint-Djl4-X3l.js +1 -0
- package/dist/app/assets/{PzHint.stories-YkWa41IH.js → PzHint.stories-DqZpSfmZ.js} +2 -2
- package/dist/app/assets/{PzIcon-Drlqf9PC.js → PzIcon-BNwLASSZ.js} +1 -1
- package/dist/app/assets/{PzIcon.stories-DAJBWawA.js → PzIcon.stories-CPbH32o0.js} +2 -2
- package/dist/app/assets/{PzImage-BNrbMHP9.css → PzImage-ByW3gCC2.css} +1 -1
- package/dist/app/assets/{PzImage.stories-CuPnUuRv.js → PzImage.stories-DaDmEHw0.js} +2 -2
- package/dist/app/assets/PzImageInput-BPKv0nfg.css +1 -0
- package/dist/app/assets/PzImageInput.stories-CqBH8e63.js +109 -0
- package/dist/app/assets/{PzInfoBlockLayout-5bxpq9bJ.css → PzInfoBlockLayout-DbFWjWZn.css} +1 -1
- package/dist/app/assets/{PzInfoBlockLayout.stories-Bv_9N16u.js → PzInfoBlockLayout.stories-9CCtPFO-.js} +3 -3
- package/dist/app/assets/PzInfoHint-CWG8xkDj.css +1 -0
- package/dist/app/assets/PzInfoHint-CbH3ypH1.js +1 -0
- package/dist/app/assets/{PzInfoHint.stories-8e7rIcBj.js → PzInfoHint.stories-jwokRQkS.js} +3 -3
- package/dist/app/assets/PzInput-DWypQ6XY.css +1 -0
- package/dist/app/assets/PzInput.stories-BINq-o4I.js +57 -0
- package/dist/app/assets/PzInputDate-C9KHzAYp.css +1 -0
- package/dist/app/assets/PzInputDate.stories-CCdrBEY7.js +55 -0
- package/dist/app/assets/PzInputNumber-CDixvL0g.css +1 -0
- package/dist/app/assets/PzInputNumber.stories-I4-WO1id.js +54 -0
- package/dist/app/assets/PzKeyValue-RiKE-e9c.css +1 -0
- package/dist/app/assets/PzKeyValue.stories-DtyWU98t.js +270 -0
- package/dist/app/assets/PzLabel-BQF7sPao.css +1 -0
- package/dist/app/assets/PzLabel-CNUgfkly.css +1 -0
- package/dist/app/assets/PzLabel-Coa549nk.js +1 -0
- package/dist/app/assets/PzLabel.stories-DMxqqqgC.js +119 -0
- package/dist/app/assets/PzLink-BlhtooDh.js +1 -0
- package/dist/app/assets/{PzLink-CLsit3uW.css → PzLink-BzhNa3ur.css} +1 -1
- package/dist/app/assets/{PzLink.stories-RRRT37UH.js → PzLink.stories-Cc_7lCaq.js} +2 -2
- package/dist/app/assets/PzListNav-DRMKw6wp.css +1 -0
- package/dist/app/assets/PzListNav.stories-BTZ7YDz-.js +37 -0
- package/dist/app/assets/PzLoader-J7_Govh3.css +1 -0
- package/dist/app/assets/PzLoader.stories-4iPgw47o.js +9 -0
- package/dist/app/assets/{PzModal-X71wpoOT.css → PzModal-Ck4FnyKm.css} +1 -1
- package/dist/app/assets/{PzModal.stories-j0FW0OcM.js → PzModal.stories-COv27-JY.js} +4 -4
- package/dist/app/assets/PzMultiSelect-DeX8aBEQ.css +1 -0
- package/dist/app/assets/PzMultiSelect.stories-DqKbYF9e.js +453 -0
- package/dist/app/assets/{PzNav-DRAXqlz0.css → PzNav-BCqeyJHD.css} +1 -1
- package/dist/app/assets/{PzNav.stories-BPTRR62X.js → PzNav.stories-8SxncW0m.js} +6 -6
- package/dist/app/assets/PzNumberFormat-D5xYsZ3A.js +1 -0
- package/dist/app/assets/PzNumberFormat.stories-CDG6_Sk8.js +57 -0
- package/dist/app/assets/PzPagination-D9MVz0_M.js +1 -0
- package/dist/app/assets/PzPagination-k9D0Hxrx.css +1 -0
- package/dist/app/assets/{PzPagination-DJVeW9lu.css → PzPagination-ohvV8gN-.css} +1 -1
- package/dist/app/assets/PzPagination.stories-DNvwL2lG.js +83 -0
- package/dist/app/assets/PzPriceFormat.stories-C-p8Sb5s.js +89 -0
- package/dist/app/assets/PzRadioGroup-CZC3ssDh.css +1 -0
- package/dist/app/assets/PzRadioGroup.stories-DC2poHLC.js +130 -0
- package/dist/app/assets/{PzRouterLink.stories-BcMmoayC.js → PzRouterLink.stories-DzGN2JP5.js} +3 -3
- package/dist/app/assets/{PzScrollTo.stories-Gvacxovn.js → PzScrollTo.stories-Bx37NsA6.js} +4 -4
- package/dist/app/assets/{PzSearchResultItemLayout-DtvZAeWW.css → PzSearchResultItemLayout-B3s9Usmb.css} +1 -1
- package/dist/app/assets/{PzSearchResultItemLayout.stories-B0EKt_OP.js → PzSearchResultItemLayout.stories-vkVys3LL.js} +3 -3
- package/dist/app/assets/PzSelect-BwhRsTZd.css +1 -0
- package/dist/app/assets/PzSelect-CrTXtlds.js +1 -0
- package/dist/app/assets/PzSelect-Del6HRlD.css +1 -0
- package/dist/app/assets/PzSelect.stories-5MWUfKeM.js +292 -0
- package/dist/app/assets/PzSkeleton-Fcc0OCQj.js +1 -0
- package/dist/app/assets/{PzSkeleton-CYVQJkRt.css → PzSkeleton-i88RYFSk.css} +1 -1
- package/dist/app/assets/{PzSkeleton.stories-a9NDBt3Z.js → PzSkeleton.stories-q1l5sP1S.js} +2 -2
- package/dist/app/assets/PzStatus-B5X_PK3m.css +1 -0
- package/dist/app/assets/PzStatus-cmEVvisl.js +1 -0
- package/dist/app/assets/{PzStatus.stories-Dzj8SM95.js → PzStatus.stories-CkZ6lYqY.js} +2 -2
- package/dist/app/assets/PzTable-DFFqGC19.css +1 -0
- package/dist/app/assets/PzTable-wM00v3b7.js +1 -0
- package/dist/app/assets/{PzTable.stories-DcKqkFYa.js → PzTable.stories-CGODSdZ2.js} +5 -5
- package/dist/app/assets/{PzTabs-Cko9ewqz.css → PzTabs-Dqx9m4Y3.css} +1 -1
- package/dist/app/assets/{PzTabs.stories-BqU667nR.js → PzTabs.stories-C5h0sXNa.js} +11 -11
- package/dist/app/assets/PzTag-9D_K2A9q.js +1 -0
- package/dist/app/assets/PzTag-CKddmHDs.css +1 -0
- package/dist/app/assets/{PzTag.stories-bK1-c1pG.js → PzTag.stories-E9YuXCey.js} +2 -2
- package/dist/app/assets/PzText-LkAZaPCW.js +1 -0
- package/dist/app/assets/PzText-mQOOz4_d.css +1 -0
- package/dist/app/assets/{PzText.stories-9Hrvi7P7.js → PzText.stories-DICYEnSM.js} +8 -8
- package/dist/app/assets/{PzTextClamp-BnSHv0R0.css → PzTextClamp-Cdoumv-M.css} +1 -1
- package/dist/app/assets/PzTextClamp.stories-BveyeWba.js +149 -0
- package/dist/app/assets/PzTextarea-27aRIiRI.css +1 -0
- package/dist/app/assets/PzTextarea.stories-BtHMdHUF.js +73 -0
- package/dist/app/assets/{PzValidatorXSS.stories-HZEissEy.js → PzValidatorXSS.stories-B7ussB1u.js} +3 -3
- package/dist/app/assets/{Spacing-B5TnfKCB.css → Spacing-DDiZ9XB6.css} +1 -1
- package/dist/app/assets/{Spacing.stories-Cu5R7R8t.js → Spacing.stories-IeHBLcii.js} +29 -2
- package/dist/app/assets/Typography.stories-DigE2FGD.js +47 -0
- package/dist/app/assets/{WithTooltip-65CFNBJE-BcToq9Uh.js → WithTooltip-65CFNBJE-CARy1qAy.js} +2 -2
- package/dist/app/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
- package/dist/app/assets/configs-CZIaFchr.js +1 -0
- package/dist/app/assets/floating-vue-B4YMiR3n.js +1 -0
- package/dist/app/assets/floating-vue-BXOYXd0R.js +1 -0
- package/dist/app/assets/{formatter-EIJCOSYU-X1jNy3Wo.js → formatter-EIJCOSYU-AVmvplX0.js} +1 -1
- package/dist/app/assets/iframe-4qk0Ss25.css +1 -0
- package/dist/app/assets/{iframe-B7Bddli1.js → iframe-DbWuH5mz.js} +181 -181
- package/dist/app/assets/index-LkANHSb5.js +1 -0
- package/dist/app/assets/isArray-DPUC7i9_.js +1 -0
- package/dist/app/assets/lodash-CdDiHlzQ.js +27 -0
- package/dist/app/assets/{syntaxhighlighter-OH4MV7E3-DpHT8arc.js → syntaxhighlighter-OH4MV7E3-DKud-BAu.js} +3 -3
- package/dist/app/assets/text-clamp.esm-BLa2P3lJ.js +1 -0
- package/dist/app/iframe.html +81 -76
- package/dist/app/index.json +1 -1
- package/dist/app/project.json +1 -1
- package/dist/app/sb-manager/globals-runtime.js +1 -1
- package/dist/components/Actions/PzCopyToClipboard/PzCopyToClipboard.vue.d.ts +33 -0
- package/dist/components/Actions/PzCopyToClipboard/index.d.ts +2 -0
- package/dist/components/Actions/PzCopyToClipboard/types.d.ts +17 -0
- package/dist/components/Actions/PzLink/configs.d.ts +2 -0
- package/dist/components/{PzTable → Data/PzTable}/types.d.ts +1 -1
- package/dist/components/Display/PzClamp/PzClamp.vue.d.ts +8 -0
- package/dist/components/Display/PzClamp/index.d.ts +2 -0
- package/dist/components/Display/PzClamp/types.d.ts +7 -0
- package/dist/components/Display/PzDate/PzDate.vue.d.ts +5 -0
- package/dist/components/Display/PzDate/index.d.ts +2 -0
- package/dist/components/Display/PzDate/types.d.ts +5 -0
- package/dist/components/{PzIcon → Display/PzIcon}/types.d.ts +1 -1
- package/dist/components/Display/PzKeyValue/PzKeyValue.vue.d.ts +28 -0
- package/dist/components/Display/PzKeyValue/index.d.ts +2 -0
- package/dist/components/Display/PzKeyValue/types.d.ts +45 -0
- package/dist/components/Display/PzLoader/PzLoader.vue.d.ts +7 -0
- package/dist/components/Display/PzLoader/index.d.ts +2 -0
- package/dist/components/Display/PzLoader/types.d.ts +6 -0
- package/dist/components/Display/PzStatus/configs.d.ts +2 -0
- package/dist/components/Display/PzTag/configs.d.ts +2 -0
- package/dist/components/Form/PzCheckbox/PzCheckbox.vue.d.ts +28 -0
- package/dist/components/Form/PzCheckbox/index.d.ts +2 -0
- package/dist/components/Form/PzCheckbox/types.d.ts +12 -0
- package/dist/components/Form/PzCheckboxGroup/PzCheckboxGroup.vue.d.ts +35 -0
- package/dist/components/Form/PzCheckboxGroup/index.d.ts +2 -0
- package/dist/components/Form/PzCheckboxGroup/types.d.ts +16 -0
- package/dist/components/Form/PzFileInput/PzFileInput.vue.d.ts +26 -0
- package/dist/components/Form/PzFileInput/index.d.ts +2 -0
- package/dist/components/Form/PzFileInput/types.d.ts +26 -0
- package/dist/components/Form/PzImageInput/PzImageInput.vue.d.ts +27 -0
- package/dist/components/Form/PzImageInput/index.d.ts +2 -0
- package/dist/components/Form/PzImageInput/types.d.ts +26 -0
- package/dist/components/Form/PzInput/PzInput.vue.d.ts +30 -0
- package/dist/components/Form/PzInput/index.d.ts +2 -0
- package/dist/components/Form/PzInput/types.d.ts +17 -0
- package/dist/components/Form/PzInputDate/PzInputDate.vue.d.ts +30 -0
- package/dist/components/Form/PzInputDate/index.d.ts +2 -0
- package/dist/components/Form/PzInputDate/types.d.ts +13 -0
- package/dist/components/Form/PzInputNumber/PzInputNumber.vue.d.ts +26 -0
- package/dist/components/Form/PzInputNumber/index.d.ts +2 -0
- package/dist/components/Form/PzInputNumber/types.d.ts +14 -0
- package/dist/components/Form/PzLabel/PzLabel.vue.d.ts +24 -0
- package/dist/components/Form/PzLabel/index.d.ts +2 -0
- package/dist/components/Form/PzLabel/types.d.ts +6 -0
- package/dist/components/Form/PzMultiSelect/PzMultiSelect.vue.d.ts +44 -0
- package/dist/components/Form/PzMultiSelect/constants.d.ts +1 -0
- package/dist/components/Form/PzMultiSelect/index.d.ts +2 -0
- package/dist/components/Form/PzMultiSelect/types.d.ts +22 -0
- package/dist/components/Form/PzRadioGroup/PzRadioGroup.vue.d.ts +43 -0
- package/dist/components/Form/PzRadioGroup/index.d.ts +2 -0
- package/dist/components/Form/PzRadioGroup/types.d.ts +19 -0
- package/dist/components/Form/PzSelect/PzSelect.vue.d.ts +42 -0
- package/dist/components/Form/PzSelect/configs.d.ts +1 -0
- package/dist/components/Form/PzSelect/constants.d.ts +1 -0
- package/dist/components/Form/PzSelect/index.d.ts +2 -0
- package/dist/components/Form/PzSelect/types.d.ts +22 -0
- package/dist/components/Form/PzTextarea/PzTextarea.vue.d.ts +27 -0
- package/dist/components/Form/PzTextarea/index.d.ts +2 -0
- package/dist/components/Form/PzTextarea/types.d.ts +22 -0
- package/dist/components/Form/shared/configs.d.ts +28 -0
- package/dist/components/Form/shared/types.d.ts +37 -0
- package/dist/components/{PzGrid → Layouts/PzGrid}/configs.d.ts +1 -1
- package/dist/components/Navigation/PzListNav/PzListNav.vue.d.ts +15 -0
- package/dist/components/Navigation/PzListNav/index.d.ts +4 -0
- package/dist/components/Navigation/PzListNav/types.d.ts +9 -0
- package/dist/components/Navigation/shared/configs.d.ts +2 -0
- package/dist/components/Navigation/shared/constants.d.ts +8 -0
- package/dist/index.d.ts +45 -25
- package/dist/package.json +2 -1
- package/dist/prozorro-ui.cjs +16 -16
- package/dist/prozorro-ui.js +9492 -7741
- package/dist/style.css +1 -1
- package/dist/utils/PzNumberFormat/PzNumberFormat.d.ts +13 -0
- package/dist/utils/PzNumberFormat/index.d.ts +2 -0
- package/dist/utils/PzNumberFormat/types.d.ts +1 -0
- package/dist/utils/PzPriceFormat/PzPriceFormat.d.ts +8 -0
- package/dist/utils/PzPriceFormat/index.d.ts +2 -0
- package/dist/utils/PzPriceFormat/types.d.ts +1 -0
- package/package.json +2 -1
- package/src/styles/_spacing.scss +30 -4
- package/dist/app/assets/PzAccordion-DTiV4JOM.js +0 -1
- package/dist/app/assets/PzAccordion-hujlMYpG.css +0 -1
- package/dist/app/assets/PzAccordionTable.stories-DNbpjx54.js +0 -275
- package/dist/app/assets/PzBtn-B24JwTDl.js +0 -1
- package/dist/app/assets/PzHint-D62JWyEp.js +0 -1
- package/dist/app/assets/PzHint-kEBemRXE.css +0 -1
- package/dist/app/assets/PzInfoHint-DUCe-kk0.js +0 -1
- package/dist/app/assets/PzInfoHint-SKNZ9Qnk.css +0 -1
- package/dist/app/assets/PzLink-BU7dMeUw.js +0 -1
- package/dist/app/assets/PzPagination.stories-CFaLbyxd.js +0 -83
- package/dist/app/assets/PzSkeleton-DnpztBv3.js +0 -1
- package/dist/app/assets/PzStatus-KfVGXJ4A.css +0 -1
- package/dist/app/assets/PzStatus-dVlplKB_.js +0 -1
- package/dist/app/assets/PzTable-B73TyHoC.css +0 -1
- package/dist/app/assets/PzTable-BipugQuF.js +0 -27
- package/dist/app/assets/PzTag-Jn6TGUtg.css +0 -1
- package/dist/app/assets/PzTag-jiAX5zAj.js +0 -1
- package/dist/app/assets/PzText-DsC8c6AJ.css +0 -1
- package/dist/app/assets/PzText-Qtpayc5y.js +0 -1
- package/dist/app/assets/PzTextClamp.stories--mMfXCQg.js +0 -149
- package/dist/app/assets/Typography.stories-j9AXuH47.js +0 -47
- package/dist/app/assets/floating-vue-BD2YJLen.js +0 -1
- package/dist/app/assets/iframe-B97zFSkg.css +0 -1
- package/dist/components/PzLink/configs.d.ts +0 -2
- package/dist/components/PzStatus/configs.d.ts +0 -2
- package/dist/components/PzTag/configs.d.ts +0 -2
- package/dist/components/{PzBtn → Actions/PzBtn}/PzBtn.vue.d.ts +1 -1
- package/dist/components/{PzBtn → Actions/PzBtn}/configs.d.ts +0 -0
- package/dist/components/{PzBtn → Actions/PzBtn}/index.d.ts +0 -0
- package/dist/components/{PzBtn → Actions/PzBtn}/types.d.ts +0 -0
- package/dist/components/{PzLink → Actions/PzLink}/PzLink.vue.d.ts +1 -1
- package/dist/components/{PzLink → Actions/PzLink}/constants.d.ts +0 -0
- package/dist/components/{PzLink → Actions/PzLink}/index.d.ts +0 -0
- package/dist/components/{PzLink → Actions/PzLink}/types.d.ts +0 -0
- package/dist/components/{PzRouterLink → Actions/PzRouterLink}/PzRouterLink.vue.d.ts +2 -2
- package/dist/components/{PzRouterLink → Actions/PzRouterLink}/index.d.ts +0 -0
- package/dist/components/{PzRouterLink → Actions/PzRouterLink}/types.d.ts +0 -0
- package/dist/components/{PzAccordionTable → Data/PzAccordionTable}/PzAccordionTable.vue.d.ts +0 -0
- package/dist/components/{PzAccordionTable → Data/PzAccordionTable}/constants.d.ts +0 -0
- package/dist/components/{PzAccordionTable → Data/PzAccordionTable}/index.d.ts +0 -0
- package/dist/components/{PzAccordionTable → Data/PzAccordionTable}/types.d.ts +0 -0
- package/dist/components/{PzTable → Data/PzTable}/PzTable.vue.d.ts +0 -0
- package/dist/components/{PzTable → Data/PzTable}/PzTableData.vue.d.ts +0 -0
- package/dist/components/{PzTable → Data/PzTable}/PzTableHead.vue.d.ts +0 -0
- package/dist/components/{PzTable → Data/PzTable}/constants.d.ts +0 -0
- package/dist/components/{PzTable → Data/PzTable}/index.d.ts +0 -0
- package/dist/components/{PzIcon → Display/PzIcon}/PzIcon.vue.d.ts +1 -1
- package/dist/components/{PzIcon → Display/PzIcon}/configs.d.ts +0 -0
- package/dist/components/{PzIcon → Display/PzIcon}/index.d.ts +0 -0
- package/dist/components/{PzImage → Display/PzImage}/PzImage.vue.d.ts +0 -0
- package/dist/components/{PzImage → Display/PzImage}/configs.d.ts +0 -0
- package/dist/components/{PzImage → Display/PzImage}/index.d.ts +0 -0
- package/dist/components/{PzImage → Display/PzImage}/types.d.ts +0 -0
- package/dist/components/{PzSkeleton → Display/PzSkeleton}/PzSkeleton.vue.d.ts +0 -0
- package/dist/components/{PzSkeleton → Display/PzSkeleton}/index.d.ts +0 -0
- package/dist/components/{PzSkeleton → Display/PzSkeleton}/types.d.ts +0 -0
- package/dist/components/{PzStatus → Display/PzStatus}/PzStatus.vue.d.ts +0 -0
- package/dist/components/{PzStatus → Display/PzStatus}/constants.d.ts +0 -0
- package/dist/components/{PzStatus → Display/PzStatus}/index.d.ts +0 -0
- package/dist/components/{PzStatus → Display/PzStatus}/types.d.ts +0 -0
- package/dist/components/{PzTag → Display/PzTag}/PzTag.vue.d.ts +0 -0
- package/dist/components/{PzTag → Display/PzTag}/index.d.ts +0 -0
- package/dist/components/{PzTag → Display/PzTag}/types.d.ts +0 -0
- package/dist/components/{PzAccordion → Layouts/PzAccordion}/PzAccordion.vue.d.ts +1 -1
- package/dist/components/{PzAccordion → Layouts/PzAccordion}/PzAccordionContent.vue.d.ts +0 -0
- package/dist/components/{PzAccordion → Layouts/PzAccordion}/configs.d.ts +0 -0
- package/dist/components/{PzAccordion → Layouts/PzAccordion}/index.d.ts +0 -0
- package/dist/components/{PzAccordion → Layouts/PzAccordion}/types.d.ts +0 -0
- package/dist/components/{PzGrid → Layouts/PzGrid}/PzGrid.vue.d.ts +2 -2
- package/dist/components/{PzGrid → Layouts/PzGrid}/PzGridItem.vue.d.ts +0 -0
- package/dist/components/{PzGrid → Layouts/PzGrid}/index.d.ts +0 -0
- package/dist/components/{PzGrid → Layouts/PzGrid}/types.d.ts +0 -0
- package/dist/components/{PzInfoBlockLayout → Layouts/PzInfoBlockLayout}/PzInfoBlockLayout.vue.d.ts +0 -0
- package/dist/components/{PzInfoBlockLayout → Layouts/PzInfoBlockLayout}/index.d.ts +0 -0
- package/dist/components/{PzInfoBlockLayout → Layouts/PzInfoBlockLayout}/types.d.ts +0 -0
- package/dist/components/{PzSearchResultItemLayout → Layouts/PzSearchResultItemLayout}/PzSearchResultItemLayout.vue.d.ts +0 -0
- package/dist/components/{PzSearchResultItemLayout → Layouts/PzSearchResultItemLayout}/index.d.ts +0 -0
- package/dist/components/{PzSearchResultItemLayout → Layouts/PzSearchResultItemLayout}/types.d.ts +0 -0
- package/dist/components/{PzTabs → Layouts/PzTabs}/PzTab.vue.d.ts +0 -0
- package/dist/components/{PzTabs → Layouts/PzTabs}/PzTabs.vue.d.ts +0 -0
- package/dist/components/{PzTabs → Layouts/PzTabs}/configs.d.ts +0 -0
- package/dist/components/{PzTabs → Layouts/PzTabs}/constants.d.ts +0 -0
- package/dist/components/{PzTabs → Layouts/PzTabs}/index.d.ts +0 -0
- package/dist/components/{PzTabs → Layouts/PzTabs}/types.d.ts +0 -0
- package/dist/components/{PzBreadcrumb → Navigation/PzBreadcrumb}/PzBreadcrumb.vue.d.ts +0 -0
- package/dist/components/{PzBreadcrumb → Navigation/PzBreadcrumb}/constants.d.ts +0 -0
- package/dist/components/{PzBreadcrumb → Navigation/PzBreadcrumb}/index.d.ts +0 -0
- package/dist/components/{PzBreadcrumb → Navigation/PzBreadcrumb}/types.d.ts +0 -0
- package/dist/components/{PzNav → Navigation/PzNav}/PzNav.vue.d.ts +0 -0
- package/dist/components/{PzNav → Navigation/PzNav}/index.d.ts +0 -0
- package/dist/components/{PzNav → Navigation/PzNav}/types.d.ts +0 -0
- package/dist/components/{PzPagination → Navigation/PzPagination}/PzPagination.vue.d.ts +0 -0
- package/dist/components/{PzPagination → Navigation/PzPagination}/index.d.ts +0 -0
- package/dist/components/{PzPagination → Navigation/PzPagination}/types.d.ts +0 -0
- package/dist/components/{PzDropdown → Popups/PzDropdown}/PzDropdown.vue.d.ts +0 -0
- package/dist/components/{PzDropdown → Popups/PzDropdown}/index.d.ts +0 -0
- package/dist/components/{PzDropdown → Popups/PzDropdown}/types.d.ts +0 -0
- package/dist/components/{PzHint → Popups/PzHint}/PzHint.vue.d.ts +1 -1
- package/dist/components/{PzHint → Popups/PzHint}/index.d.ts +0 -0
- package/dist/components/{PzHint → Popups/PzHint}/types.d.ts +0 -0
- package/dist/components/{PzInfoHint → Popups/PzInfoHint}/PzInfoHint.vue.d.ts +1 -1
- package/dist/components/{PzInfoHint → Popups/PzInfoHint}/index.d.ts +0 -0
- package/dist/components/{PzInfoHint → Popups/PzInfoHint}/types.d.ts +0 -0
- package/dist/components/{PzModal → Popups/PzModal}/PzModal.vue.d.ts +0 -0
- package/dist/components/{PzModal → Popups/PzModal}/configs.d.ts +0 -0
- package/dist/components/{PzModal → Popups/PzModal}/constants.d.ts +0 -0
- package/dist/components/{PzModal → Popups/PzModal}/index.d.ts +0 -0
- package/dist/components/{PzModal → Popups/PzModal}/types.d.ts +0 -0
- package/dist/components/{PzArrayClamp → Text/PzArrayClamp}/PzArrayClamp.vue.d.ts +1 -1
- package/dist/components/{PzArrayClamp → Text/PzArrayClamp}/index.d.ts +0 -0
- package/dist/components/{PzArrayClamp → Text/PzArrayClamp}/types.d.ts +0 -0
- package/dist/components/{PzText → Text/PzText}/PzText.vue.d.ts +0 -0
- package/dist/components/{PzText → Text/PzText}/configs.d.ts +0 -0
- package/dist/components/{PzText → Text/PzText}/index.d.ts +0 -0
- package/dist/components/{PzText → Text/PzText}/types.d.ts +0 -0
- package/dist/components/{PzTextClamp → Text/PzTextClamp}/PzTextClamp.vue.d.ts +3 -3
- /package/dist/components/{PzTextClamp → Text/PzTextClamp}/constants.d.ts +0 -0
- /package/dist/components/{PzTextClamp → Text/PzTextClamp}/index.d.ts +0 -0
- /package/dist/components/{PzTextClamp → Text/PzTextClamp}/types.d.ts +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import{d as q,W as w,e as d,y as S,C as P,u as b,f as y,X as h,o as r,k,Y as I,Z as M,t as s,A as B,D as m,r as l,w as C}from"./iframe-DbWuH5mz.js";import{P as $}from"./PzText-LkAZaPCW.js";import{_ as L}from"./PzIcon-BNwLASSZ.js";import{P as N}from"./PzLabel-Coa549nk.js";import{_ as D}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";const T={class:"pz-input-wrap"},F=["id","placeholder","disabled","maxlength","type","required"],O=["id"],j={key:3,class:"pz-input-counter"},A={key:0,class:"pz-input-error"},p=q({name:"PzInput",__name:"PzInput",props:h({name:{},modelValue:{},label:{default:""},icon:{default:""},inputClass:{default:""},errorMessage:{default:""},placeholder:{default:""},type:{default:"text"},counted:{type:Boolean,default:!1},maxSize:{default:255},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},isLightSkin:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:h(["focus","blur","update:modelValue"],["update:modelValue"]),setup(e,{emit:t}){const n=t,o=w(e,"modelValue");return(f,a)=>(r(),d("div",{class:y(["pz-input",{light:e.isLightSkin,error:e.errorMessage,disabled:e.disabled}])},[S(b(N),{label:e.label,for:e.name,required:e.required,disabled:e.disabled},{default:P(()=>{var u;return[k("span",T,[e.editable?I((r(),d("input",{key:0,id:e.name,"onUpdate:modelValue":a[0]||(a[0]=i=>o.value=i),placeholder:e.placeholder,disabled:e.disabled,maxlength:e.counted?e.maxSize:void 0,type:e.type,required:e.required,class:y(["pz-input-control",[{"pz-input-control--with-icon":e.icon,"pz-input-control--counted":e.counted},e.inputClass]]),onBlur:a[1]||(a[1]=i=>n("blur")),onFocus:a[2]||(a[2]=i=>n("focus"))},null,42,F)),[[M,o.value]]):(r(),d("span",{key:1,id:e.name,class:"pz-input-readonly"},s(o.value),9,O)),e.icon?(r(),B(b(L),{key:2,name:e.icon,class:"pz-input-icon"},null,8,["name"])):m("",!0),e.counted?(r(),d("span",j,s(((u=o.value)==null?void 0:u.length)||0)+"/"+s(e.maxSize),1)):m("",!0)]),e.errorMessage?(r(),d("span",A,s(e.errorMessage),1)):m("",!0)]}),_:1},8,["label","for","required","disabled"])],2))}}),v=D(p,[["__scopeId","data-v-7696acd3"]]);p.__docgenInfo=Object.assign({displayName:p.name??p.__name},{name:"PzInput",exportName:"default",displayName:"PzInput",description:"",tags:{},props:[{name:"name",required:!0,type:{name:"string"}},{name:"modelValue",required:!0,type:{name:"string"}},{name:"label",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"icon",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"inputClass",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"errorMessage",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"placeholder",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"type",required:!1,type:{name:"PzInputType"},defaultValue:{func:!1,value:'"text"'}},{name:"counted",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"maxSize",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"255"}},{name:"required",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"disabled",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"editable",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isLightSkin",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"focus"},{name:"blur"},{name:"update:modelValue",type:{names:["string"]}}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Form/PzInput/PzInput.vue"]});const E=e=>`<template>
|
|
2
|
+
<PzInput
|
|
3
|
+
v-model="value"
|
|
4
|
+
${[`name="${e.name}"`,e.label?`label="${e.label}"`:null,e.placeholder?`placeholder="${e.placeholder}"`:null,e.type&&e.type!=="text"?`type="${e.type}"`:null,e.icon?`icon="${e.icon}"`:null,e.required?':required="true"':null,e.disabled?':disabled="true"':null,e.counted?':counted="true"':null,e.maxSize?`:max-size="${e.maxSize}"`:null,e.errorMessage?`error-message="${e.errorMessage}"`:null,e.isLightSkin?':is-light-skin="true"':null].filter(n=>!!n).join(" ")}
|
|
5
|
+
/>
|
|
6
|
+
</template>`,W={title:"Components/Form/PzInput",component:v,parameters:{docs:{description:{component:"Use `PzInput` for text-based form controls. It wraps a native `<input>` with `PzLabel`, supports icons, character counting, a readonly preview mode, and the standard disabled/error states."},source:{transform:(e,t)=>E(t.args??W.args)}}},args:{name:"pz-input-story",label:"Назва поля",modelValue:"",placeholder:"Введіть значення...",type:"text",errorMessage:"",icon:"",required:!1,disabled:!1,editable:!0,counted:!1,maxSize:255,isLightSkin:!1},argTypes:{name:{control:"text",description:"Native input `id`/`name`."},label:{control:"text",description:"Label text shown above the input."},modelValue:{control:"text",description:"Current value bound via `v-model` (required)."},placeholder:{control:"text",description:"Placeholder shown when the input is empty."},type:{control:"inline-radio",options:["text","email","password"],description:"Native input type."},icon:{control:"text",description:"Optional `PzIcon` name rendered inside the input."},errorMessage:{control:"text",description:"Validation message shown below the input; enables error styling."},required:{control:"boolean",description:"Marks the field as required in the label."},disabled:{control:"boolean",description:"Disables the input and applies muted styling."},editable:{control:"boolean",description:"When false, renders the value as readonly text instead of an input."},counted:{control:"boolean",description:"Shows a `length/maxSize` counter next to the input."},maxSize:{control:"number",description:"Maximum character length used by the counter and `maxlength`. Only enforced when `counted` is true."},isLightSkin:{control:"boolean",description:"Enables the light alternate layout."}},render:e=>({components:{pzInput:v,pzText:$},setup(){const t=l(e.modelValue??""),n=l(""),o=l(""),f=l(""),a=l(""),u=l(""),i=l("");return C(()=>e.modelValue,V=>{t.value=V??""}),{args:e,value:t,sharedValue:n,defaultValue:o,requiredValue:f,countedValue:a,iconValue:u,errorValue:i}},template:`
|
|
7
|
+
<div style="display: flex; flex-direction: column; gap: var(--pz-space-24); max-width: 480px;">
|
|
8
|
+
<section>
|
|
9
|
+
<pz-text variant="h4-bold">Component API</pz-text>
|
|
10
|
+
<div style="margin-top: var(--pz-space-16);">
|
|
11
|
+
<pz-input
|
|
12
|
+
v-model="value"
|
|
13
|
+
:name="args.name"
|
|
14
|
+
:label="args.label"
|
|
15
|
+
:placeholder="args.placeholder"
|
|
16
|
+
:type="args.type"
|
|
17
|
+
:icon="args.icon"
|
|
18
|
+
:error-message="args.errorMessage"
|
|
19
|
+
:required="args.required"
|
|
20
|
+
:disabled="args.disabled"
|
|
21
|
+
:editable="args.editable"
|
|
22
|
+
:counted="args.counted"
|
|
23
|
+
:max-size="args.maxSize"
|
|
24
|
+
:is-light-skin="args.isLightSkin"
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
</section>
|
|
28
|
+
|
|
29
|
+
<section>
|
|
30
|
+
<pz-text variant="h4-bold">Two-way binding</pz-text>
|
|
31
|
+
<div style="display: flex; flex-direction: column; gap: var(--pz-space-8); margin-top: var(--pz-space-16);">
|
|
32
|
+
<pz-input v-model="sharedValue" name="two-way-a" label="Поле A" placeholder="Введіть значення..." />
|
|
33
|
+
<pz-input v-model="sharedValue" name="two-way-b" label="Поле B (таке саме значення)" placeholder="Введіть значення..." />
|
|
34
|
+
<pz-text variant="body-regular">Поточне значення: "{{ sharedValue }}"</pz-text>
|
|
35
|
+
</div>
|
|
36
|
+
</section>
|
|
37
|
+
|
|
38
|
+
<section style="display: flex; flex-direction: column; gap: var(--pz-space-16);">
|
|
39
|
+
<pz-text variant="h4-bold">States</pz-text>
|
|
40
|
+
<pz-input v-model="defaultValue" name="input-default" label="Звичайне поле" placeholder="Введіть значення..." />
|
|
41
|
+
<pz-input v-model="requiredValue" name="input-required" label="Обов'язкове поле" placeholder="Введіть значення..." required />
|
|
42
|
+
<pz-input v-model="countedValue" name="input-counted" label="З лічильником" placeholder="Введіть значення..." counted :max-size="120" />
|
|
43
|
+
<pz-input v-model="iconValue" name="input-icon" label="З іконкою" placeholder="Пошук..." icon="search" />
|
|
44
|
+
<pz-input v-model="errorValue" name="input-error" label="Помилка" placeholder="Введіть значення..." error-message="Поле заповнено некоректно" />
|
|
45
|
+
<pz-input model-value="" name="input-disabled" label="Disabled" placeholder="Недоступно" disabled />
|
|
46
|
+
<pz-input model-value="Текст, який не можна редагувати" name="input-readonly" label="Readonly" :editable="false" />
|
|
47
|
+
</section>
|
|
48
|
+
</div>
|
|
49
|
+
`})},c={parameters:{docs:{description:{story:"Інтерактивний приклад текстового інпуту. Нижче показано two-way binding та базові стани: required, counted, з іконкою, помилка, disabled і readonly."}}}};var z,g,x;c.parameters={...c.parameters,docs:{...(z=c.parameters)==null?void 0:z.docs,source:{originalSource:`{
|
|
50
|
+
parameters: {
|
|
51
|
+
docs: {
|
|
52
|
+
description: {
|
|
53
|
+
story: "Інтерактивний приклад текстового інпуту. Нижче показано two-way binding та базові стани: required, counted, з іконкою, помилка, disabled і readonly."
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}`,...(x=(g=c.parameters)==null?void 0:g.docs)==null?void 0:x.source}}};const H=["Playground"];export{c as Playground,H as __namedExportsOrder,W as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pz-input-date[data-v-5a2e48d2]{--pz-input-date-background: var(--pz-color-white);--pz-input-date-text: var(--pz-color-text-primary);--pz-input-date-placeholder: var(--pz-color-grey-50);position:relative;display:block;color:var(--pz-input-date-text);font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-input-date-wrap[data-v-5a2e48d2]{position:relative;display:block}.pz-input-date-control[data-v-5a2e48d2]{display:block;width:100%;padding:var(--pz-space-8) var(--pz-space-32) var(--pz-space-8) var(--pz-space-12);border-radius:var(--pz-space-4);border:1px solid var(--pz-color-grey-30);background-color:var(--pz-input-date-background);color:var(--pz-input-date-text);font:inherit;cursor:pointer}.pz-input-date-control[data-v-5a2e48d2]:focus{outline:2px solid var(--pz-color-blue-30);outline-offset:0}.pz-input-date-control[data-v-5a2e48d2]::placeholder{color:var(--pz-input-date-placeholder)}.pz-input-date-control[data-v-5a2e48d2]:disabled{--pz-input-date-background: transparent;--pz-input-date-text: var(--pz-color-grey-40);--pz-input-date-placeholder: var(--pz-color-grey-40);cursor:default}.pz-input-date-control[data-v-5a2e48d2]::-webkit-calendar-picker-indicator,.pz-input-date-control[data-v-5a2e48d2]::-webkit-inner-spin-button{display:none}.pz-input-date-readonly[data-v-5a2e48d2]{display:block;margin:0;padding:0;color:var(--pz-color-text-secondary);-webkit-user-select:none;user-select:none}.pz-input-date-icon[data-v-5a2e48d2]{position:absolute;top:50%;right:var(--pz-space-8);transform:translateY(-50%);font-size:var(--pz-font-size-20);color:var(--pz-color-grey-50);cursor:pointer}.pz-input-date-icon--clear[data-v-5a2e48d2]{color:var(--pz-color-text-secondary)}.pz-input-date-error[data-v-5a2e48d2]{display:block;margin-top:var(--pz-space-8);color:var(--pz-color-red-50);font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-input-date.light .pz-input-date-control[data-v-5a2e48d2]{padding-top:var(--pz-space-12);padding-bottom:var(--pz-space-12);border-color:var(--pz-color-blue-30)}.pz-input-date.error .pz-input-date-control[data-v-5a2e48d2]{border-color:var(--pz-color-red-50)}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import{d as C,W as Y,e as i,y as h,C as $,u as y,f as g,X as x,o as s,L as B,t as z,D as L,r as t,m as T,w as N}from"./iframe-DbWuH5mz.js";import{P as O}from"./PzText-LkAZaPCW.js";import{_ as R}from"./PzIcon-BNwLASSZ.js";import{P as E}from"./PzLabel-Coa549nk.js";import{_ as F}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";const j={key:0,class:"pz-input-date-wrap"},A=["id","value","placeholder","disabled","required","min","max"],W=["id","value","placeholder","disabled","required"],U=["id"],X={key:2,class:"pz-input-date-error"},p=C({name:"PzInputDate",__name:"PzInputDate",props:x({name:{},modelValue:{},label:{default:""},errorMessage:{default:""},placeholder:{default:""},min:{default:void 0},max:{default:void 0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},isLightSkin:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:x(["focus","blur","update:modelValue"],["update:modelValue"]),setup(e,{emit:r}){const d=r,a=Y(e,"modelValue"),o=t(!1),f=t(null),u=t(null),b=/^(\d{4})-(\d{2})-(\d{2})$/,c=n=>{if(!n)return"";const l=b.exec(n);return l?`${l[3]}.${l[2]}.${l[1]}`:n},v=async()=>{var n,l;o.value||(o.value=!0,await T(),(n=u.value)==null||n.focus(),(l=u.value)==null||l.showPicker())},I=()=>{d("focus"),v()},D=()=>{v()},M=()=>{o.value=!1,d("blur")},P=n=>{const l=n.target;a.value=l.value||null},S=()=>{if(a.value){a.value=null;return}v()};return(n,l)=>(s(),i("div",{class:g(["pz-input-date",{light:e.isLightSkin,error:e.errorMessage,disabled:e.disabled}])},[h(y(E),{label:e.label,for:e.name,required:e.required,disabled:e.disabled},{default:$(()=>[e.editable?(s(),i("span",j,[o.value?(s(),i("input",{key:0,id:e.name,ref_key:"dateInputRef",ref:u,type:"date",value:a.value??"",placeholder:e.placeholder,disabled:e.disabled,required:e.required,min:e.min,max:e.max,class:"pz-input-date-control",onInput:P,onBlur:M},null,40,A)):(s(),i("input",{key:1,id:e.name,ref_key:"textInputRef",ref:f,type:"text",readonly:"",value:c(a.value),placeholder:e.placeholder,disabled:e.disabled,required:e.required,class:"pz-input-date-control",onFocus:I,onClick:D},null,40,W)),h(y(R),{name:a.value?"close":"event",class:g(["pz-input-date-icon",{"pz-input-date-icon--clear":a.value}]),onClick:B(S,["prevent"])},null,8,["name","class"])])):(s(),i("span",{key:1,id:e.name,class:"pz-input-date-readonly"},z(c(a.value)),9,U)),e.errorMessage?(s(),i("span",X,z(e.errorMessage),1)):L("",!0)]),_:1},8,["label","for","required","disabled"])],2))}}),V=F(p,[["__scopeId","data-v-5a2e48d2"]]);p.__docgenInfo=Object.assign({displayName:p.name??p.__name},{name:"PzInputDate",exportName:"default",displayName:"PzInputDate",description:"",tags:{},props:[{name:"name",required:!0,type:{name:"string"}},{name:"modelValue",required:!0,type:{name:"union",elements:[{name:"string"},{name:"null"}]}},{name:"label",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"errorMessage",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"placeholder",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"min",required:!1,type:{name:"string"},defaultValue:{func:!1,value:"undefined"}},{name:"max",required:!1,type:{name:"string"},defaultValue:{func:!1,value:"undefined"}},{name:"required",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"disabled",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"editable",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isLightSkin",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"focus"},{name:"blur"},{name:"update:modelValue",type:{names:["union"],elements:[{name:"string"},{name:"null"}]}}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Form/PzInputDate/PzInputDate.vue"]});const G=e=>`<template>
|
|
2
|
+
<PzInputDate
|
|
3
|
+
v-model="value"
|
|
4
|
+
${[`name="${e.name}"`,e.label?`label="${e.label}"`:null,e.placeholder?`placeholder="${e.placeholder}"`:null,e.min?`min="${e.min}"`:null,e.max?`max="${e.max}"`:null,e.required?':required="true"':null,e.disabled?':disabled="true"':null,e.editable===!1?':editable="false"':null,e.errorMessage?`error-message="${e.errorMessage}"`:null,e.isLightSkin?':is-light-skin="true"':null].filter(d=>!!d).join(" ")}
|
|
5
|
+
/>
|
|
6
|
+
</template>`,H={title:"Components/Form/PzInputDate",component:V,parameters:{docs:{description:{component:"Use `PzInputDate` for date picking. Blurred values render as `dd.mm.yyyy` text and switch to the native date picker on focus, with a clear/calendar icon toggle. `v-model` operates on ISO `yyyy-mm-dd` strings."},source:{transform:(e,r)=>G(r.args??H.args)}}},args:{name:"pz-input-date-story",label:"Дата",modelValue:"",placeholder:"дд.мм.рррр",errorMessage:"",min:void 0,max:void 0,required:!1,disabled:!1,editable:!0,isLightSkin:!1},argTypes:{name:{control:"text",description:"Native input `id`/`name`."},label:{control:"text",description:"Label text shown above the input."},modelValue:{control:"text",description:"Current ISO-format value (`YYYY-MM-DD`). Required."},placeholder:{control:"text",description:"Placeholder shown when no date is selected."},min:{control:"text",description:"Earliest allowed date (`YYYY-MM-DD`)."},max:{control:"text",description:"Latest allowed date (`YYYY-MM-DD`)."},errorMessage:{control:"text",description:"Validation message shown below the input; enables error styling."},required:{control:"boolean",description:"Marks the field as required in the label."},disabled:{control:"boolean",description:"Disables the input and applies muted styling."},editable:{control:"boolean",description:"When false, blocks focus/picker/clear interactions and keeps the value read-only."},isLightSkin:{control:"boolean",description:"Enables the light alternate layout."}},render:e=>({components:{pzInputDate:V,pzText:O},setup(){const r=t(e.modelValue??""),d=t("2026-04-21"),a=t(""),o=t(""),f=t("2026-04-21"),u=t(""),b=t("");return N(()=>e.modelValue,c=>{r.value=c??""}),{args:e,value:r,sharedValue:d,defaultValue:a,requiredValue:o,presetValue:f,rangeValue:u,errorValue:b}},template:`
|
|
7
|
+
<div style="display: flex; flex-direction: column; gap: var(--pz-space-24); max-width: 480px;">
|
|
8
|
+
<section>
|
|
9
|
+
<pz-text variant="h4-bold">Component API</pz-text>
|
|
10
|
+
<div style="margin-top: var(--pz-space-16);">
|
|
11
|
+
<pz-input-date
|
|
12
|
+
v-model="value"
|
|
13
|
+
:name="args.name"
|
|
14
|
+
:label="args.label"
|
|
15
|
+
:placeholder="args.placeholder"
|
|
16
|
+
:min="args.min"
|
|
17
|
+
:max="args.max"
|
|
18
|
+
:error-message="args.errorMessage"
|
|
19
|
+
:required="args.required"
|
|
20
|
+
:disabled="args.disabled"
|
|
21
|
+
:editable="args.editable"
|
|
22
|
+
:is-light-skin="args.isLightSkin"
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
</section>
|
|
26
|
+
|
|
27
|
+
<section>
|
|
28
|
+
<pz-text variant="h4-bold">Two-way binding</pz-text>
|
|
29
|
+
<div style="display: flex; flex-direction: column; gap: var(--pz-space-8); margin-top: var(--pz-space-16);">
|
|
30
|
+
<pz-input-date v-model="sharedValue" name="two-way-a" label="Поле A" placeholder="дд.мм.рррр" />
|
|
31
|
+
<pz-input-date v-model="sharedValue" name="two-way-b" label="Поле B (таке саме значення)" placeholder="дд.мм.рррр" />
|
|
32
|
+
<pz-text variant="body-regular">Поточне значення (ISO): "{{ sharedValue }}"</pz-text>
|
|
33
|
+
</div>
|
|
34
|
+
</section>
|
|
35
|
+
|
|
36
|
+
<section style="display: flex; flex-direction: column; gap: var(--pz-space-16);">
|
|
37
|
+
<pz-text variant="h4-bold">States</pz-text>
|
|
38
|
+
<pz-input-date v-model="defaultValue" name="date-default" label="Дата" placeholder="дд.мм.рррр" />
|
|
39
|
+
<pz-input-date v-model="requiredValue" name="date-required" label="Обов'язкова дата" placeholder="дд.мм.рррр" required />
|
|
40
|
+
<pz-input-date v-model="presetValue" name="date-value" label="З обраною датою (рендериться як 21.04.2026)" />
|
|
41
|
+
<pz-input-date v-model="rangeValue" name="date-range" label="З обмеженнями: від 2026-01-01 до 2026-12-31" placeholder="дд.мм.рррр" min="2026-01-01" max="2026-12-31" />
|
|
42
|
+
<pz-input-date v-model="errorValue" name="date-error" label="Помилка" placeholder="дд.мм.рррр" error-message="Оберіть дату" />
|
|
43
|
+
<pz-input-date model-value="" name="date-disabled" label="Disabled" placeholder="дд.мм.рррр" disabled />
|
|
44
|
+
<pz-input-date model-value="2026-04-21" name="date-readonly" label="Readonly (editable: false)" :editable="false" />
|
|
45
|
+
</section>
|
|
46
|
+
</div>
|
|
47
|
+
`})},m={parameters:{docs:{description:{story:"Інтерактивний приклад date-інпуту. Блуром показано дату у форматі `дд.мм.рррр`; при фокусі відкривається нативний пікер. Нижче — перевірка two-way binding і базові стани."}}}};var q,k,w;m.parameters={...m.parameters,docs:{...(q=m.parameters)==null?void 0:q.docs,source:{originalSource:`{
|
|
48
|
+
parameters: {
|
|
49
|
+
docs: {
|
|
50
|
+
description: {
|
|
51
|
+
story: "Інтерактивний приклад date-інпуту. Блуром показано дату у форматі \`дд.мм.рррр\`; при фокусі відкривається нативний пікер. Нижче — перевірка two-way binding і базові стани."
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}`,...(w=(k=m.parameters)==null?void 0:k.docs)==null?void 0:w.source}}};const ae=["Playground"];export{m as Playground,ae as __namedExportsOrder,H as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pz-input-number[data-v-b9684845]{--pz-input-number-background: var(--pz-color-white);--pz-input-number-border: var(--pz-color-grey-30);--pz-input-number-text: var(--pz-color-text-primary);--pz-input-number-placeholder: var(--pz-color-grey-50);position:relative;display:block;color:var(--pz-input-number-text);font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-input-number-control[data-v-b9684845]{display:block;width:100%;padding:var(--pz-space-8) var(--pz-space-12);border-radius:var(--pz-space-4);border:1px solid var(--pz-input-number-border);background-color:var(--pz-input-number-background);color:var(--pz-input-number-text);font:inherit}.pz-input-number-control[data-v-b9684845]:focus{outline:2px solid var(--pz-color-blue-30);outline-offset:0}.pz-input-number-control[data-v-b9684845]::placeholder{color:var(--pz-input-number-placeholder)}.pz-input-number-control[data-v-b9684845]:disabled{--pz-input-number-background: transparent;--pz-input-number-text: var(--pz-color-grey-40);--pz-input-number-placeholder: var(--pz-color-grey-40);cursor:default}.pz-input-number-readonly[data-v-b9684845]{display:block;margin:0;padding:0;color:var(--pz-color-text-secondary);-webkit-user-select:none;user-select:none}.pz-input-number-error[data-v-b9684845]{display:block;margin-top:var(--pz-space-8);color:var(--pz-color-red-50);font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-input-number.light .pz-input-number-control[data-v-b9684845]{padding-top:var(--pz-space-12);padding-bottom:var(--pz-space-12);border-color:var(--pz-color-blue-30)}.pz-input-number.error .pz-input-number-control[data-v-b9684845]{border-color:var(--pz-color-red-50)}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import{d as S,W as L,e as i,y as B,C,u as F,f as $,X as z,o as d,t as V,D,g as x,r,w as O}from"./iframe-DbWuH5mz.js";import{P as T}from"./PzText-LkAZaPCW.js";import{P as A}from"./PzLabel-Coa549nk.js";import{P as E}from"./PzNumberFormat-D5xYsZ3A.js";import{_ as j}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";import"./lodash-CdDiHlzQ.js";import"./_commonjsHelpers-Cpj98o6Y.js";const W=["id","value","placeholder","disabled","required"],U=["id"],K={key:2,class:"pz-input-number-error"},p=S({name:"PzInputNumber",__name:"PzInputNumber",props:z({name:{},modelValue:{},label:{default:""},placeholder:{default:""},errorMessage:{default:""},type:{default:"integer"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},isLightSkin:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:z(["focus","blur","update:modelValue"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,u=L(e,"modelValue"),c=x(()=>n.type==="integer"?0:void 0),s=x(()=>new E(u.value??null,c.value).number),b=l=>{const a=l.match(/^-?\d+(\.\d+)?/);return a?a[0]:l},f=l=>{const a=b(l.replace(/\s+/g,""));return a==="-"?a:a!==""?Number(a):null},y=l=>{var h;const a=l.target,g=isFinite(Number(l.key)),k=n.type==="decimal"&&/\./g.test(l.key)&&!/\./g.test(a.value),M=/-/g.test(l.key)&&!/-/g.test(a.value)&&!((h=a.value)!=null&&h.length);g||k||M||l.preventDefault()},I=l=>{const a=l.target;u.value=f(a.value)};return(l,a)=>(d(),i("div",{class:$(["pz-input-number",{light:e.isLightSkin,error:e.errorMessage,disabled:e.disabled}])},[B(F(A),{label:e.label,for:e.name,required:e.required,disabled:e.disabled},{default:C(()=>[e.editable?(d(),i("input",{key:0,id:e.name,value:s.value,placeholder:e.placeholder,disabled:e.disabled,required:e.required,type:"text",class:"pz-input-number-control",onInput:I,onBlur:a[0]||(a[0]=g=>o("blur")),onFocus:a[1]||(a[1]=g=>o("focus")),onKeypress:y},null,40,W)):(d(),i("span",{key:1,id:e.name,class:"pz-input-number-readonly"},V(s.value),9,U)),e.errorMessage?(d(),i("span",K,V(e.errorMessage),1)):D("",!0)]),_:1},8,["label","for","required","disabled"])],2))}}),q=j(p,[["__scopeId","data-v-b9684845"]]);p.__docgenInfo=Object.assign({displayName:p.name??p.__name},{name:"PzInputNumber",exportName:"default",displayName:"PzInputNumber",description:"",tags:{},props:[{name:"name",required:!0,type:{name:"string"}},{name:"modelValue",required:!0,type:{name:"PzInputNumberValue"}},{name:"label",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"placeholder",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"errorMessage",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"type",required:!1,type:{name:"PzInputNumberType"},defaultValue:{func:!1,value:'"integer"'}},{name:"required",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"disabled",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"editable",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isLightSkin",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"focus"},{name:"blur"},{name:"update:modelValue",type:{names:["PzInputNumberValue"]}}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Form/PzInputNumber/PzInputNumber.vue"]});const v=15e5,R=e=>`<template>
|
|
2
|
+
<PzInputNumber
|
|
3
|
+
v-model="value"
|
|
4
|
+
${[`name="${e.name}"`,e.label?`label="${e.label}"`:null,e.placeholder?`placeholder="${e.placeholder}"`:null,e.type&&e.type!=="integer"?`type="${e.type}"`:null,e.required?':required="true"':null,e.disabled?':disabled="true"':null,e.editable===!1?':editable="false"':null,e.errorMessage?`error-message="${e.errorMessage}"`:null,e.isLightSkin?':is-light-skin="true"':null].filter(n=>!!n).join(" ")}
|
|
5
|
+
/>
|
|
6
|
+
</template>`,X={title:"Components/Form/PzInputNumber",component:q,parameters:{docs:{description:{component:"Use `PzInputNumber` for numeric entry. It formats the displayed value via `PzNumberFormat`, accepts only digits (plus optional decimal separator and minus), and emits a `number | null` via `v-model`."},source:{transform:(e,t)=>R(t.args??X.args)}}},args:{name:"pz-input-number-story",label:"Сума",modelValue:"",placeholder:"Введіть число...",type:"integer",errorMessage:"",required:!1,disabled:!1,editable:!0,isLightSkin:!1},argTypes:{name:{control:"text",description:"Native input `id`/`name`."},label:{control:"text",description:"Label text shown above the input."},modelValue:{control:"text",description:"Current numeric value bound via `v-model` (required)."},placeholder:{control:"text",description:"Placeholder shown when the input is empty."},type:{control:"inline-radio",options:["integer","decimal"],description:"`integer` rounds to whole numbers; `decimal` allows one dot separator."},errorMessage:{control:"text",description:"Validation message shown below the input; enables error styling."},required:{control:"boolean",description:"Marks the field as required in the label."},disabled:{control:"boolean",description:"Disables the input and applies muted styling."},editable:{control:"boolean",description:"When false, renders the formatted value as readonly text instead of an input."},isLightSkin:{control:"boolean",description:"Enables the light alternate layout."}},render:e=>({components:{pzInputNumber:q,pzText:T},setup(){const t=r(e.modelValue??""),n=r(v),o=r(""),u=r(""),c=r(v),s=r(""),b=r(""),f=v;return O(()=>e.modelValue,y=>{t.value=y??""}),{args:e,value:t,sharedValue:n,defaultValue:o,decimalValue:u,formattedValue:c,requiredValue:s,errorValue:b,readonlyValue:f}},template:`
|
|
7
|
+
<div style="display: flex; flex-direction: column; gap: var(--pz-space-24); max-width: 480px;">
|
|
8
|
+
<section>
|
|
9
|
+
<pz-text variant="h4-bold">Component API</pz-text>
|
|
10
|
+
<div style="margin-top: var(--pz-space-16);">
|
|
11
|
+
<pz-input-number
|
|
12
|
+
v-model="value"
|
|
13
|
+
:name="args.name"
|
|
14
|
+
:label="args.label"
|
|
15
|
+
:placeholder="args.placeholder"
|
|
16
|
+
:type="args.type"
|
|
17
|
+
:error-message="args.errorMessage"
|
|
18
|
+
:required="args.required"
|
|
19
|
+
:disabled="args.disabled"
|
|
20
|
+
:editable="args.editable"
|
|
21
|
+
:is-light-skin="args.isLightSkin"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
</section>
|
|
25
|
+
|
|
26
|
+
<section>
|
|
27
|
+
<pz-text variant="h4-bold">Two-way binding</pz-text>
|
|
28
|
+
<div style="display: flex; flex-direction: column; gap: var(--pz-space-8); margin-top: var(--pz-space-16);">
|
|
29
|
+
<pz-input-number v-model="sharedValue" name="two-way-a" label="Поле A" placeholder="Введіть число..." />
|
|
30
|
+
<pz-input-number v-model="sharedValue" name="two-way-b" label="Поле B (таке саме значення)" placeholder="Введіть число..." />
|
|
31
|
+
<pz-text variant="body-regular">Поточне значення: "{{ sharedValue }}"</pz-text>
|
|
32
|
+
</div>
|
|
33
|
+
</section>
|
|
34
|
+
|
|
35
|
+
<section style="display: flex; flex-direction: column; gap: var(--pz-space-16);">
|
|
36
|
+
<pz-text variant="h4-bold">States</pz-text>
|
|
37
|
+
<pz-input-number v-model="defaultValue" name="number-default" label="Ціле число" placeholder="Введіть число..." />
|
|
38
|
+
<pz-input-number v-model="decimalValue" name="number-decimal" label="З десятковою частиною" placeholder="0.00" type="decimal" />
|
|
39
|
+
<pz-input-number v-model="formattedValue" name="number-value" label="З форматуванням" />
|
|
40
|
+
<pz-input-number v-model="requiredValue" name="number-required" label="Обов'язкове" placeholder="Введіть число..." required />
|
|
41
|
+
<pz-input-number v-model="errorValue" name="number-error" label="Помилка" placeholder="Введіть число..." error-message="Введіть коректне число" />
|
|
42
|
+
<pz-input-number model-value="" name="number-disabled" label="Disabled" placeholder="Введіть число..." disabled />
|
|
43
|
+
<pz-input-number :model-value="readonlyValue" name="number-readonly" label="Readonly (editable: false)" :editable="false" />
|
|
44
|
+
</section>
|
|
45
|
+
</div>
|
|
46
|
+
`})},m={parameters:{docs:{description:{story:"Інтерактивний приклад числового інпуту. Нижче — перевірка two-way binding та базові стани: integer, decimal, форматування, required, помилка, disabled, readonly."}}}};var N,P,w;m.parameters={...m.parameters,docs:{...(N=m.parameters)==null?void 0:N.docs,source:{originalSource:`{
|
|
47
|
+
parameters: {
|
|
48
|
+
docs: {
|
|
49
|
+
description: {
|
|
50
|
+
story: "Інтерактивний приклад числового інпуту. Нижче — перевірка two-way binding та базові стани: integer, decimal, форматування, required, помилка, disabled, readonly."
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}`,...(w=(P=m.parameters)==null?void 0:P.docs)==null?void 0:w.source}}};const ae=["Playground"];export{m as Playground,ae as __namedExportsOrder,X as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pz-key-value-story{display:grid;gap:var(--pz-space-24)}.pz-key-value-story-board{display:grid;gap:var(--pz-space-16);padding:var(--pz-space-24);border:1px solid color-mix(in srgb,var(--pz-color-grey-30) 72%,transparent);border-radius:var(--pz-space-24);background:radial-gradient(circle at top right,color-mix(in srgb,var(--pz-color-blue-50) 8%,transparent),transparent 34%),linear-gradient(180deg,color-mix(in srgb,var(--pz-color-white) 98%,transparent),color-mix(in srgb,var(--pz-color-grey-20) 90%,var(--pz-color-white)));box-shadow:0 18px 48px color-mix(in srgb,var(--pz-color-black-90) 7%,transparent),inset 0 1px color-mix(in srgb,var(--pz-color-white) 96%,transparent)}.pz-key-value-story-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--pz-space-16)}.pz-key-value-story-copy{display:grid;gap:var(--pz-space-8)}.pz-key-value-story-eyebrow,.pz-key-value-story-chip{display:inline-flex;align-items:center;width:fit-content;padding:var(--pz-space-8) var(--pz-space-16);border-radius:999px;background:color-mix(in srgb,var(--pz-color-blue-10) 92%,var(--pz-color-white));color:var(--pz-color-text-link-hover);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.pz-key-value-story-preview{padding:var(--pz-space-24);border:1px solid color-mix(in srgb,var(--pz-color-grey-30) 74%,transparent);border-radius:var(--pz-space-20);background:color-mix(in srgb,var(--pz-color-white) 96%,transparent);box-shadow:0 12px 32px color-mix(in srgb,var(--pz-color-black-90) 5%,transparent);--pz-key-value-title-width: 180px;--pz-key-value-title-box-width: 100%}.pz-key-value-story-gallery{display:grid;gap:var(--pz-space-24)}@media (width >= 1024px){.pz-key-value-story-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}.pz-key-value-story-tile{display:grid;gap:var(--pz-space-16);padding:var(--pz-space-24);border:1px solid color-mix(in srgb,var(--pz-color-grey-30) 74%,transparent);border-radius:var(--pz-space-20);background:color-mix(in srgb,var(--pz-color-white) 96%,transparent);box-shadow:0 12px 32px color-mix(in srgb,var(--pz-color-black-90) 5%,transparent);--pz-key-value-title-width: 160px;--pz-key-value-title-box-width: 100%}.pz-key-value-story-tile-title{margin:0;color:var(--pz-color-text-primary);font-size:var(--pz-font-size-14);font-weight:700;line-height:1.5}.pz-key-value-story-tile-note{margin:0;color:var(--pz-color-text-secondary);font-size:var(--pz-font-size-12);font-weight:400;line-height:1.5}.pz-key-value-story-link{color:var(--pz-color-text-link);text-decoration:none}.pz-key-value-story-link:hover{color:var(--pz-color-text-link-hover);text-decoration:underline}.pz-key-value[data-v-d25bad20]{--pz-key-value-margin-bottom: var(--pz-space-24);--pz-key-value-item-margin-top: var(--pz-space-20);--pz-key-value-item-overall-margin-top: var(--pz-space-32);--pz-key-value-content-margin-inline-start: var(--pz-space-8);--pz-key-value-content-margin-block-start: var(--pz-space-8);margin-bottom:var(--pz-key-value-margin-bottom)}@media (max-width: 1023.98px){.pz-key-value[data-v-d25bad20]{--pz-key-value-margin-bottom: var(--pz-space-8)}}.pz-key-value[data-v-d25bad20]:empty{margin-bottom:0}.pz-key-value--clear .pz-key-value__title[data-v-d25bad20]:after{display:none}.pz-key-value__item[data-v-d25bad20]{display:flex;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-key-value__item+.pz-key-value__item[data-v-d25bad20]:not(.pz-key-value__item--overall){margin-top:var(--pz-key-value-item-margin-top)}.pz-key-value__item--overall[data-v-d25bad20]{margin-top:var(--pz-key-value-item-overall-margin-top)}@media (max-width: 1023.98px){.pz-key-value__item[data-v-d25bad20]{flex-direction:column}}.pz-key-value__item--overall .pz-key-value__link[data-v-d25bad20]{font-weight:600}.pz-key-value__title[data-v-d25bad20]{width:var(--pz-key-value-title-width);flex:0 0 var(--pz-key-value-title-width);max-width:100%;height:fit-content;position:relative;font-size:inherit;font-weight:600;margin:0;background-color:inherit}.pz-key-value__title-box[data-v-d25bad20]{position:relative;-webkit-box-decoration-break:clone;box-decoration-break:clone;width:var(--pz-key-value-title-box-width);max-width:100%;z-index:2;line-height:1.5;-webkit-hyphens:initial;hyphens:initial;display:inline}.pz-key-value__title[data-v-d25bad20]:after{content:"";display:inline-block;position:absolute;top:-5px;left:0;z-index:0;width:100%;height:100%;border-bottom:1px dotted var(--pz-color-stroke-grey)}@media (max-width: 1023.98px){.pz-key-value__title[data-v-d25bad20]{width:auto;flex:0 0 auto}.pz-key-value__title[data-v-d25bad20]:after{display:none}}.pz-key-value__content[data-v-d25bad20]{margin-left:var(--pz-key-value-content-margin-inline-start);font-size:inherit;white-space:pre-line;display:flex;justify-content:flex-end;flex-direction:column;line-height:1.5}@media (max-width: 1023.98px){.pz-key-value__content[data-v-d25bad20]{margin-left:0;margin-top:var(--pz-key-value-content-margin-block-start)}}.pz-key-value__link[data-v-d25bad20]{display:flex;align-items:center;font-weight:400;color:var(--pz-color-text-link);text-decoration:none}.pz-key-value__link[data-v-d25bad20]:hover{color:var(--pz-color-text-link-hover);text-decoration:underline}.pz-key-value__link span[data-v-d25bad20]{margin-left:var(--pz-space-4)}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import{P as D}from"./PzText-LkAZaPCW.js";import{d as oe,j as ie,e as d,F as R,z as le,r as q,a8 as ce,o as u,k as w,n as V,l as T,E as $,t as E,f as de,D as ue}from"./iframe-DbWuH5mz.js";import{g as pe}from"./_commonjsHelpers-Cpj98o6Y.js";import{i as ye,_ as fe,a as S,b as me,c as ve}from"./isArray-DPUC7i9_.js";import{l as c}from"./lodash-CdDiHlzQ.js";import{P as ge}from"./PzDomHandler-BU7iMNnt.js";import{_ as ke}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";var be=fe,he=ye,ze="[object Symbol]";function xe(e){return typeof e=="symbol"||he(e)&&be(e)==ze}var _=xe,we=S,De=_,Se=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_e=/^\w*$/;function Ce(e,t){if(we(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||De(e)?!0:_e.test(e)||!Se.test(e)||t!=null&&e in Object(t)}var Pe=Ce,ne=me,Ke="Expected a function";function C(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ke);var a=function(){var n=arguments,s=t?t.apply(this,n):n[0],o=a.cache;if(o.has(s))return o.get(s);var l=e.apply(this,n);return a.cache=o.set(s,l)||o,l};return a.cache=new(C.Cache||ne),a}C.Cache=ne;var Re=C,qe=Re,Ve=500;function Te(e){var t=qe(e,function(n){return a.size===Ve&&a.clear(),n}),a=t.cache;return t}var $e=Te,Ee=$e,Ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/\\(\\)?/g,Oe=Ee(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ae,function(a,n,s,o){t.push(s?o.replace(Ne,"$1"):n||a)}),t}),Ie=Oe;function Fe(e,t){for(var a=-1,n=e==null?0:e.length,s=Array(n);++a<n;)s[a]=t(e[a],a,e);return s}var Be=Fe,A=ve,Le=Be,Me=S,We=_,N=A?A.prototype:void 0,O=N?N.toString:void 0;function re(e){if(typeof e=="string")return e;if(Me(e))return Le(e,re)+"";if(We(e))return O?O.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ge=re,je=Ge;function Ue(e){return e==null?"":je(e)}var Ze=Ue,He=S,Xe=Pe,Ye=Ie,Je=Ze;function Qe(e,t){return He(e)?e:Xe(e,t)?[e]:Ye(Je(e))}var et=Qe,tt=_;function at(e){if(typeof e=="string"||tt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var nt=at,rt=et,st=nt;function ot(e,t){t=rt(t,e);for(var a=0,n=t.length;e!=null&&a<n;)e=e[st(t[a++])];return a&&a==n?e:void 0}var it=ot,lt=it;function ct(e,t,a){var n=e==null?void 0:lt(e,t);return n===void 0?a:n}var dt=ct;const ut=pe(dt),pt={ref:"componentRef",class:"pz-key-value"},k=oe({name:"PzKeyValue",__name:"PzKeyValue",props:{config:{},data:{},checkRequired:{type:Boolean,default:!0},flexDirection:{default:"column"},titleStyleClass:{default:""}},setup(e){const t=e,a=q([]),n=q("transparent"),s=ce("componentRef");ie(()=>{t.config.forEach(({key:r})=>{(!l(o(r))||!t.checkRequired)&&a.value.push(r)}),n.value=ge.getParentNearestBackground(s.value)});const o=r=>{const x=ut(c.pickBy(t.data,c.identity),r.split("-"),"");return l(x)?"":x},l=r=>c.isNumber(r)||c.isBoolean(r)?!1:c.isEmpty(r);return(r,x)=>(u(),d("div",pt,[(u(!0),d(R,null,le(e.config,i=>(u(),d(R,null,[a.value.includes(i.key)?(u(),d("div",{key:i.id,class:"pz-key-value__item"},[w("h6",{class:de(["pz-key-value__title",[e.titleStyleClass,i.labelStyleClass]])},[w("span",{class:"pz-key-value__title-box",style:V({backgroundColor:n.value})},[T(r.$slots,`${i.key}_label`,{data:i.labelKey},()=>[$(E(i.labelKey),1)],!0)],4)],2),w("div",{class:"pz-key-value__content",style:V({flexDirection:e.flexDirection})},[T(r.$slots,i.key,{data:o(i.key)},()=>[$(E(o(i.key)),1)],!0)],4)])):ue("",!0)],64))),256))],512))}}),b=ke(k,[["__scopeId","data-v-d25bad20"]]);k.__docgenInfo=Object.assign({displayName:k.name??k.__name},{name:"PzKeyValue",exportName:"default",displayName:"PzKeyValue",description:"",tags:{},props:[{name:"config",required:!0,type:{name:"Array",elements:[{name:"PzKeyValueViewListItem"}]}},{name:"data",required:!0,type:{name:"Record",elements:[{name:"string"},{name:"any"}]}},{name:"checkRequired",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"flexDirection",required:!1,type:{name:"PzKeyValueFlexDirection"},defaultValue:{func:!1,value:'"column"'}},{name:"titleStyleClass",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}}],slots:[{name:"`${item.key}_label`",scoped:!0,bindings:[{name:"name",title:"binding"},{name:"data",title:"binding"}]},{name:"item.key",scoped:!0,bindings:[{name:"name",title:"binding"},{name:"data",title:"binding"}]}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Display/PzKeyValue/PzKeyValue.vue"]});const se=["column","column-reverse","row","row-reverse"],h=[{id:"tender-id",key:"id",labelKey:"Tender ID"},{id:"tender-title",key:"title",labelKey:"Title"},{id:"tender-customer",key:"customer-name",labelKey:"Customer"},{id:"tender-amount",key:"amount",labelKey:"Expected value"},{id:"tender-status",key:"status",labelKey:"Status"},{id:"tender-note",key:"note",labelKey:"Note"}],z={id:"UA-2026-04-17-000123-a",title:"Закупівля медичного обладнання для лікарні №3",customer:{name:'ТОВ "АДМІНІСТРАЦІЯ ЗАКУПІВЕЛЬ"'},amount:"1 250 000,00 UAH",status:"Awaiting offers",note:""},P=[{id:"bid-supplier",key:"supplier",labelKey:"Bidder"},{id:"bid-amount",key:"amount",labelKey:"Amount"},{id:"bid-discount",key:"discount",labelKey:"Discount"},{id:"bid-submitted",key:"submittedAt",labelKey:"Submitted"},{id:"bid-winner",key:"isWinner",labelKey:"Winner"}],K={supplier:'ТОВ "ЕКО ЦЕНТР ПРОЕКТ"',amount:"98 000,00 UAH",discount:0,submittedAt:"17.04.2026 12:39",isWinner:!0},yt=e=>`<template>
|
|
2
|
+
<PzKeyValue
|
|
3
|
+
${[':config="config"',':data="data"',e.flexDirection&&e.flexDirection!=="column"?`flex-direction="${e.flexDirection}"`:null,e.checkRequired===!1?':check-required="false"':null,e.titleStyleClass?`title-style-class="${e.titleStyleClass}"`:null].filter(a=>!!a).join(`
|
|
4
|
+
`)}
|
|
5
|
+
/>
|
|
6
|
+
</template>`,ft={title:"Components/Display/PzKeyValue",component:b,parameters:{prototype:{caption:"Key-value list",note:"Presentational component for pairing labels with dynamic values. Filters empty fields by default and supports dot-notation lookups into the source data."},docs:{description:{component:"Use `PzKeyValue` to render a labelled list of values from a data object. Item order is driven by `config`; values resolve via dot-notation keys (via lodash `get`). Numbers and booleans are always rendered; empty strings/null/undefined are hidden when `checkRequired` is `true` (the default). Each item exposes a matching slot and a `<key>_label` slot for custom rendering."},source:{transform:(e,t)=>yt(t.args??ft.args)}}},args:{config:h,data:z,flexDirection:"column",checkRequired:!0,titleStyleClass:""},argTypes:{config:{control:!1,description:"Ordered list of `{ id, key, labelKey, labelStyleClass? }` entries describing each row.",table:{category:"Props"}},data:{control:!1,description:"Source object. Row values are resolved via lodash `get` on a dash-split key.",table:{category:"Props"}},flexDirection:{control:"inline-radio",options:se,description:"Applied as inline `flex-direction` on each value container.",table:{category:"Props"}},checkRequired:{control:"boolean",description:"When `true`, rows with empty strings / null / undefined are hidden. Numbers and booleans are always shown.",table:{category:"Props"}},titleStyleClass:{control:"text",description:"Extra class applied to every row title.",table:{category:"Props"}}},render:e=>({components:{pzKeyValue:b,pzText:D},setup(){return{args:e}},template:`
|
|
7
|
+
<section class="pz-key-value-story">
|
|
8
|
+
<section class="pz-key-value-story-board">
|
|
9
|
+
<div class="pz-key-value-story-header">
|
|
10
|
+
<div class="pz-key-value-story-copy">
|
|
11
|
+
<span class="pz-key-value-story-eyebrow">Component API</span>
|
|
12
|
+
<pz-text variant="h4-bold">Label / value rows for procurement details</pz-text>
|
|
13
|
+
</div>
|
|
14
|
+
<span class="pz-key-value-story-chip">{{ args.flexDirection }}</span>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<div class="pz-key-value-story-preview">
|
|
18
|
+
<pz-key-value
|
|
19
|
+
:config="args.config"
|
|
20
|
+
:data="args.data"
|
|
21
|
+
:flex-direction="args.flexDirection"
|
|
22
|
+
:check-required="args.checkRequired"
|
|
23
|
+
:title-style-class="args.titleStyleClass"
|
|
24
|
+
/>
|
|
25
|
+
</div>
|
|
26
|
+
</section>
|
|
27
|
+
</section>
|
|
28
|
+
`})},p={},y={args:{config:h,data:z,flexDirection:"column",checkRequired:!0}},f={args:{config:P,data:K,flexDirection:"row",checkRequired:!0}},m={args:{config:h,data:z,flexDirection:"column",checkRequired:!1},parameters:{docs:{description:{story:"`checkRequired: false` renders every row from `config`, even when the corresponding value is empty."}}}},v={args:{config:P,data:K,flexDirection:"column",checkRequired:!0},render:e=>({components:{pzKeyValue:b,pzText:D},setup(){return{args:e}},template:`
|
|
29
|
+
<section class="pz-key-value-story">
|
|
30
|
+
<section class="pz-key-value-story-board">
|
|
31
|
+
<div class="pz-key-value-story-header">
|
|
32
|
+
<div class="pz-key-value-story-copy">
|
|
33
|
+
<span class="pz-key-value-story-eyebrow">Slots</span>
|
|
34
|
+
<pz-text variant="h4-bold">Override value rendering per key</pz-text>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class="pz-key-value-story-preview">
|
|
39
|
+
<pz-key-value
|
|
40
|
+
:config="args.config"
|
|
41
|
+
:data="args.data"
|
|
42
|
+
:flex-direction="args.flexDirection"
|
|
43
|
+
:check-required="args.checkRequired"
|
|
44
|
+
>
|
|
45
|
+
<template #supplier="{ data }">
|
|
46
|
+
<a
|
|
47
|
+
href="#"
|
|
48
|
+
class="pz-key-value-story-link"
|
|
49
|
+
>
|
|
50
|
+
{{ data }}
|
|
51
|
+
</a>
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<template #isWinner="{ data }">
|
|
55
|
+
<span>{{ data ? "Yes" : "No" }}</span>
|
|
56
|
+
</template>
|
|
57
|
+
</pz-key-value>
|
|
58
|
+
</div>
|
|
59
|
+
</section>
|
|
60
|
+
</section>
|
|
61
|
+
`}),parameters:{docs:{description:{story:"Each row exposes a slot named after its `key` and a `<key>_label` slot for the heading. Slot scope forwards the resolved value as `data`."}}}},g={render:()=>({components:{pzKeyValue:b,pzText:D},setup(){return{tenderConfig:h,tenderData:z,bidConfig:P,bidData:K,flexDirectionOptions:se}},template:`
|
|
62
|
+
<section class="pz-key-value-story">
|
|
63
|
+
<section class="pz-key-value-story-gallery">
|
|
64
|
+
<article
|
|
65
|
+
v-for="direction in flexDirectionOptions"
|
|
66
|
+
:key="direction"
|
|
67
|
+
class="pz-key-value-story-tile"
|
|
68
|
+
>
|
|
69
|
+
<div class="pz-key-value-story-copy">
|
|
70
|
+
<span class="pz-key-value-story-eyebrow">flex-direction</span>
|
|
71
|
+
<h4 class="pz-key-value-story-tile-title">{{ direction }}</h4>
|
|
72
|
+
<p class="pz-key-value-story-tile-note">Rendered with tender-style data.</p>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<pz-key-value
|
|
76
|
+
:config="tenderConfig"
|
|
77
|
+
:data="tenderData"
|
|
78
|
+
:flex-direction="direction"
|
|
79
|
+
/>
|
|
80
|
+
</article>
|
|
81
|
+
|
|
82
|
+
<article class="pz-key-value-story-tile">
|
|
83
|
+
<div class="pz-key-value-story-copy">
|
|
84
|
+
<span class="pz-key-value-story-eyebrow">check-required false</span>
|
|
85
|
+
<h4 class="pz-key-value-story-tile-title">Always show rows</h4>
|
|
86
|
+
<p class="pz-key-value-story-tile-note">Empty note field is still rendered.</p>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
<pz-key-value
|
|
90
|
+
:config="tenderConfig"
|
|
91
|
+
:data="tenderData"
|
|
92
|
+
:check-required="false"
|
|
93
|
+
/>
|
|
94
|
+
</article>
|
|
95
|
+
|
|
96
|
+
<article class="pz-key-value-story-tile">
|
|
97
|
+
<div class="pz-key-value-story-copy">
|
|
98
|
+
<span class="pz-key-value-story-eyebrow">winner bid</span>
|
|
99
|
+
<h4 class="pz-key-value-story-tile-title">Falsy-preserving values</h4>
|
|
100
|
+
<p class="pz-key-value-story-tile-note">Zero discount and boolean winner stay visible.</p>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<pz-key-value
|
|
104
|
+
:config="bidConfig"
|
|
105
|
+
:data="bidData"
|
|
106
|
+
/>
|
|
107
|
+
</article>
|
|
108
|
+
</section>
|
|
109
|
+
</section>
|
|
110
|
+
`}),parameters:{docs:{description:{story:"Reference board covering every `flexDirection` value, the `checkRequired: false` fallback, and numeric/boolean preservation."}}}};var I,F,B;p.parameters={...p.parameters,docs:{...(I=p.parameters)==null?void 0:I.docs,source:{originalSource:"{}",...(B=(F=p.parameters)==null?void 0:F.docs)==null?void 0:B.source}}};var L,M,W;y.parameters={...y.parameters,docs:{...(L=y.parameters)==null?void 0:L.docs,source:{originalSource:`{
|
|
111
|
+
args: {
|
|
112
|
+
config: tenderConfig,
|
|
113
|
+
data: tenderData,
|
|
114
|
+
flexDirection: "column",
|
|
115
|
+
checkRequired: true
|
|
116
|
+
}
|
|
117
|
+
}`,...(W=(M=y.parameters)==null?void 0:M.docs)==null?void 0:W.source}}};var G,j,U;f.parameters={...f.parameters,docs:{...(G=f.parameters)==null?void 0:G.docs,source:{originalSource:`{
|
|
118
|
+
args: {
|
|
119
|
+
config: bidConfig,
|
|
120
|
+
data: bidData,
|
|
121
|
+
flexDirection: "row",
|
|
122
|
+
checkRequired: true
|
|
123
|
+
}
|
|
124
|
+
}`,...(U=(j=f.parameters)==null?void 0:j.docs)==null?void 0:U.source}}};var Z,H,X;m.parameters={...m.parameters,docs:{...(Z=m.parameters)==null?void 0:Z.docs,source:{originalSource:`{
|
|
125
|
+
args: {
|
|
126
|
+
config: tenderConfig,
|
|
127
|
+
data: tenderData,
|
|
128
|
+
flexDirection: "column",
|
|
129
|
+
checkRequired: false
|
|
130
|
+
},
|
|
131
|
+
parameters: {
|
|
132
|
+
docs: {
|
|
133
|
+
description: {
|
|
134
|
+
story: "\`checkRequired: false\` renders every row from \`config\`, even when the corresponding value is empty."
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}`,...(X=(H=m.parameters)==null?void 0:H.docs)==null?void 0:X.source}}};var Y,J,Q;v.parameters={...v.parameters,docs:{...(Y=v.parameters)==null?void 0:Y.docs,source:{originalSource:`{
|
|
139
|
+
args: {
|
|
140
|
+
config: bidConfig,
|
|
141
|
+
data: bidData,
|
|
142
|
+
flexDirection: "column",
|
|
143
|
+
checkRequired: true
|
|
144
|
+
},
|
|
145
|
+
render: (args: PzKeyValueStoryArgs) => ({
|
|
146
|
+
components: {
|
|
147
|
+
pzKeyValue: PzKeyValue,
|
|
148
|
+
pzText: PzText
|
|
149
|
+
},
|
|
150
|
+
setup() {
|
|
151
|
+
return {
|
|
152
|
+
args
|
|
153
|
+
};
|
|
154
|
+
},
|
|
155
|
+
template: \`
|
|
156
|
+
<section class="pz-key-value-story">
|
|
157
|
+
<section class="pz-key-value-story-board">
|
|
158
|
+
<div class="pz-key-value-story-header">
|
|
159
|
+
<div class="pz-key-value-story-copy">
|
|
160
|
+
<span class="pz-key-value-story-eyebrow">Slots</span>
|
|
161
|
+
<pz-text variant="h4-bold">Override value rendering per key</pz-text>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
|
|
165
|
+
<div class="pz-key-value-story-preview">
|
|
166
|
+
<pz-key-value
|
|
167
|
+
:config="args.config"
|
|
168
|
+
:data="args.data"
|
|
169
|
+
:flex-direction="args.flexDirection"
|
|
170
|
+
:check-required="args.checkRequired"
|
|
171
|
+
>
|
|
172
|
+
<template #supplier="{ data }">
|
|
173
|
+
<a
|
|
174
|
+
href="#"
|
|
175
|
+
class="pz-key-value-story-link"
|
|
176
|
+
>
|
|
177
|
+
{{ data }}
|
|
178
|
+
</a>
|
|
179
|
+
</template>
|
|
180
|
+
|
|
181
|
+
<template #isWinner="{ data }">
|
|
182
|
+
<span>{{ data ? "Yes" : "No" }}</span>
|
|
183
|
+
</template>
|
|
184
|
+
</pz-key-value>
|
|
185
|
+
</div>
|
|
186
|
+
</section>
|
|
187
|
+
</section>
|
|
188
|
+
\`
|
|
189
|
+
}),
|
|
190
|
+
parameters: {
|
|
191
|
+
docs: {
|
|
192
|
+
description: {
|
|
193
|
+
story: "Each row exposes a slot named after its \`key\` and a \`<key>_label\` slot for the heading. Slot scope forwards the resolved value as \`data\`."
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}`,...(Q=(J=v.parameters)==null?void 0:J.docs)==null?void 0:Q.source}}};var ee,te,ae;g.parameters={...g.parameters,docs:{...(ee=g.parameters)==null?void 0:ee.docs,source:{originalSource:`{
|
|
198
|
+
render: () => ({
|
|
199
|
+
components: {
|
|
200
|
+
pzKeyValue: PzKeyValue,
|
|
201
|
+
pzText: PzText
|
|
202
|
+
},
|
|
203
|
+
setup() {
|
|
204
|
+
return {
|
|
205
|
+
tenderConfig,
|
|
206
|
+
tenderData,
|
|
207
|
+
bidConfig,
|
|
208
|
+
bidData,
|
|
209
|
+
flexDirectionOptions
|
|
210
|
+
};
|
|
211
|
+
},
|
|
212
|
+
template: \`
|
|
213
|
+
<section class="pz-key-value-story">
|
|
214
|
+
<section class="pz-key-value-story-gallery">
|
|
215
|
+
<article
|
|
216
|
+
v-for="direction in flexDirectionOptions"
|
|
217
|
+
:key="direction"
|
|
218
|
+
class="pz-key-value-story-tile"
|
|
219
|
+
>
|
|
220
|
+
<div class="pz-key-value-story-copy">
|
|
221
|
+
<span class="pz-key-value-story-eyebrow">flex-direction</span>
|
|
222
|
+
<h4 class="pz-key-value-story-tile-title">{{ direction }}</h4>
|
|
223
|
+
<p class="pz-key-value-story-tile-note">Rendered with tender-style data.</p>
|
|
224
|
+
</div>
|
|
225
|
+
|
|
226
|
+
<pz-key-value
|
|
227
|
+
:config="tenderConfig"
|
|
228
|
+
:data="tenderData"
|
|
229
|
+
:flex-direction="direction"
|
|
230
|
+
/>
|
|
231
|
+
</article>
|
|
232
|
+
|
|
233
|
+
<article class="pz-key-value-story-tile">
|
|
234
|
+
<div class="pz-key-value-story-copy">
|
|
235
|
+
<span class="pz-key-value-story-eyebrow">check-required false</span>
|
|
236
|
+
<h4 class="pz-key-value-story-tile-title">Always show rows</h4>
|
|
237
|
+
<p class="pz-key-value-story-tile-note">Empty note field is still rendered.</p>
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
<pz-key-value
|
|
241
|
+
:config="tenderConfig"
|
|
242
|
+
:data="tenderData"
|
|
243
|
+
:check-required="false"
|
|
244
|
+
/>
|
|
245
|
+
</article>
|
|
246
|
+
|
|
247
|
+
<article class="pz-key-value-story-tile">
|
|
248
|
+
<div class="pz-key-value-story-copy">
|
|
249
|
+
<span class="pz-key-value-story-eyebrow">winner bid</span>
|
|
250
|
+
<h4 class="pz-key-value-story-tile-title">Falsy-preserving values</h4>
|
|
251
|
+
<p class="pz-key-value-story-tile-note">Zero discount and boolean winner stay visible.</p>
|
|
252
|
+
</div>
|
|
253
|
+
|
|
254
|
+
<pz-key-value
|
|
255
|
+
:config="bidConfig"
|
|
256
|
+
:data="bidData"
|
|
257
|
+
/>
|
|
258
|
+
</article>
|
|
259
|
+
</section>
|
|
260
|
+
</section>
|
|
261
|
+
\`
|
|
262
|
+
}),
|
|
263
|
+
parameters: {
|
|
264
|
+
docs: {
|
|
265
|
+
description: {
|
|
266
|
+
story: "Reference board covering every \`flexDirection\` value, the \`checkRequired: false\` fallback, and numeric/boolean preservation."
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}`,...(ae=(te=g.parameters)==null?void 0:te.docs)==null?void 0:ae.source}}};const wt=["Playground","ColumnLayout","RowLayout","WithoutRequiredFilter","CustomSlots","Gallery"];export{y as ColumnLayout,v as CustomSlots,g as Gallery,p as Playground,f as RowLayout,m as WithoutRequiredFilter,wt as __namedExportsOrder,ft as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pz-label[data-v-97ccbdea]{display:grid;gap:var(--pz-space-8);width:100%;color:var(--pz-color-text-primary)}.pz-label-caption[data-v-97ccbdea]{display:inline-flex;align-items:baseline;gap:var(--pz-space-4);width:fit-content;color:inherit;font-size:var(--pz-font-size-14);font-weight:600;line-height:1.5}.pz-label-required[data-v-97ccbdea]{color:var(--pz-color-red-50)}.pz-label-control[data-v-97ccbdea]{min-width:0}.pz-label.is-disabled[data-v-97ccbdea]{color:var(--pz-color-text-secondary)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pz-label-story{display:grid;gap:var(--pz-space-24)}.pz-label-story-board,.pz-label-story-gallery{display:grid;gap:var(--pz-space-16);padding:var(--pz-space-24);border:1px solid color-mix(in srgb,var(--pz-color-grey-30) 72%,transparent);border-radius:var(--pz-space-24);background:radial-gradient(circle at top right,color-mix(in srgb,var(--pz-color-blue-50) 7%,transparent),transparent 34%),linear-gradient(180deg,color-mix(in srgb,var(--pz-color-white) 98%,transparent),color-mix(in srgb,var(--pz-color-grey-20) 92%,var(--pz-color-white)));box-shadow:0 18px 48px color-mix(in srgb,var(--pz-color-black-90) 7%,transparent),inset 0 1px color-mix(in srgb,var(--pz-color-white) 96%,transparent)}.pz-label-story-header{display:flex;align-items:start;justify-content:space-between;gap:var(--pz-space-16)}.pz-label-story-eyebrow{display:inline-flex;align-items:center;width:fit-content;padding:var(--pz-space-8) var(--pz-space-16);border-radius:999px;background:color-mix(in srgb,var(--pz-color-blue-10) 92%,var(--pz-color-white));color:var(--pz-color-text-link-hover);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.pz-label-story-preview{display:grid;place-items:center;min-height:220px;padding:var(--pz-space-24);border:1px dashed color-mix(in srgb,var(--pz-color-grey-40) 70%,transparent);border-radius:var(--pz-space-20);background:linear-gradient(color-mix(in srgb,var(--pz-color-blue-50) 4%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--pz-color-blue-50) 4%,transparent) 1px,transparent 1px);background-size:28px 28px}.pz-label-story-field{width:min(100%,640px)}.pz-label-story-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--pz-space-16)}.pz-label-story-card{display:grid;gap:var(--pz-space-16);padding:var(--pz-space-20);border:1px solid color-mix(in srgb,var(--pz-color-grey-30) 74%,transparent);border-radius:var(--pz-space-20);background:color-mix(in srgb,var(--pz-color-white) 94%,transparent);box-shadow:0 12px 32px color-mix(in srgb,var(--pz-color-black-90) 5%,transparent)}.pz-label-story-rich-label{display:inline-flex;align-items:baseline;gap:var(--pz-space-8);flex-wrap:wrap}.pz-label-story-rich-label-note{color:var(--pz-color-text-secondary);font-size:var(--pz-font-size-12);font-weight:400}.pz-label-story-note{color:var(--pz-color-text-secondary);font-size:var(--pz-font-size-12);font-weight:400;line-height:1.5}.pz-label-story-input{width:100%;min-height:var(--pz-space-44);padding:var(--pz-space-12) var(--pz-space-16);border:1px solid var(--pz-color-grey-30);border-radius:var(--pz-space-4);background:var(--pz-color-background-primary);color:var(--pz-color-text-primary);font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-label-story-input::placeholder{color:var(--pz-color-grey-40)}.pz-label-story-input:focus-visible{outline:2px solid color-mix(in srgb,var(--pz-color-button-primary) 28%,transparent);outline-offset:2px;border-color:var(--pz-color-blue-30)}.pz-label-story-input:disabled{background:color-mix(in srgb,var(--pz-color-grey-20) 70%,var(--pz-color-white));color:var(--pz-color-text-secondary);cursor:not-allowed}@media (width <= 768px){.pz-label-story-grid{grid-template-columns:1fr}.pz-label-story-header{flex-direction:column}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as i,G as c,e as l,f,l as t,D as n,k as p,g as m,o as s,E as b,t as _}from"./iframe-DbWuH5mz.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";const v=["for"],y={key:0,class:"pz-label-required","aria-hidden":"true"},P={class:"pz-label-control"},a=i({name:"PzLabel",__name:"PzLabel",props:{label:{default:""},for:{default:void 0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(r){const e=r,d=c(),u=m(()=>!!(e.label||d.label));return(o,q)=>(s(),l("div",{class:f(["pz-label",{"is-disabled":e.disabled}])},[u.value?(s(),l("label",{key:0,class:"pz-label-caption",for:e.for},[t(o.$slots,"label",{},()=>[b(_(e.label),1)],!0),e.required?(s(),l("span",y," * ")):n("",!0)],8,v)):n("",!0),p("div",P,[t(o.$slots,"default",{},void 0,!0)])],2))}}),V=z(a,[["__scopeId","data-v-97ccbdea"]]);a.__docgenInfo=Object.assign({displayName:a.name??a.__name},{name:"PzLabel",exportName:"default",displayName:"PzLabel",description:"",tags:{},props:[{name:"label",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"for",required:!1,type:{name:"string"},defaultValue:{func:!1,value:"undefined"}},{name:"required",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"disabled",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],slots:[{name:"label"},{name:"default"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Form/PzLabel/PzLabel.vue"]});export{V as P};
|