@prozorro/prozorro-ui 0.0.8 → 0.0.10-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-NkJWwZpV.js +1 -0
- package/dist/app/assets/{Colors.stories-B6EPF0nC.js → Colors.stories-BYTBLsDR.js} +1 -1
- package/dist/app/assets/{DocsRenderer-LL677BLK-6m2x0Slf.js → DocsRenderer-LL677BLK-DT0XE5RB.js} +24 -24
- package/dist/app/assets/{Grid.stories-DCpTvq1h.js → Grid.stories-B3nKsUwh.js} +1 -1
- package/dist/app/assets/PzAccordion-CTihyZc5.js +1 -0
- package/dist/app/assets/PzAccordion-ChXTPL78.css +1 -0
- package/dist/app/assets/PzAccordion-DoVx3poA.css +1 -0
- package/dist/app/assets/PzAccordion.stories-cOAYUrCJ.js +322 -0
- package/dist/app/assets/PzAccordionTable-C4g8Fidf.css +1 -0
- package/dist/app/assets/PzAccordionTable.stories-CVSn3lrC.js +275 -0
- package/dist/app/assets/{PzArrayClamp-K4ObvvOV.css → PzArrayClamp-BwD8ES1E.css} +1 -1
- package/dist/app/assets/{PzArrayClamp.stories-DYjTyM_w.js → PzArrayClamp.stories-Btd9xMHi.js} +5 -5
- package/dist/app/assets/{PzBreadcrumb-Dcs3weae.css → PzBreadcrumb-BrcWtMgd.css} +1 -1
- package/dist/app/assets/{PzBreadcrumb.stories-b4V3GARM.js → PzBreadcrumb.stories-D54RjRCg.js} +5 -5
- package/dist/app/assets/{PzBtn-Brjbpw1b.js → PzBtn-Bz2NPCiD.js} +1 -1
- package/dist/app/assets/{PzBtn-L_RpjK-U.css → PzBtn-DTsLZ9Cu.css} +1 -1
- package/dist/app/assets/{PzBtn.stories-Bu5qPhtp.js → PzBtn.stories-xnSEsakq.js} +1 -1
- package/dist/app/assets/PzCheckbox-AjI7DN-X.css +1 -0
- package/dist/app/assets/PzCheckbox-BchdSe0N.css +1 -0
- package/dist/app/assets/PzCheckbox-DDIj_TyE.js +1 -0
- package/dist/app/assets/PzCheckbox.stories-RN07sGno.js +62 -0
- package/dist/app/assets/PzCheckboxGroup-BbrrL6mA.css +1 -0
- package/dist/app/assets/PzCheckboxGroup.stories-KogRihCz.js +115 -0
- package/dist/app/assets/PzDomHandler-BU7iMNnt.js +1 -0
- package/dist/app/assets/{PzDomHandler.stories-DqW3Mfem.js → PzDomHandler.stories-DAp97pdG.js} +5 -5
- package/dist/app/assets/{PzDropdown-BnwR1ooa.css → PzDropdown-Bi4TxZrx.css} +1 -1
- package/dist/app/assets/{PzDropdown.stories-CPjzWBvH.js → PzDropdown.stories-eClrzbYq.js} +3 -3
- package/dist/app/assets/PzFileInput-BLs8VTxo.css +1 -0
- package/dist/app/assets/PzFileInput.stories-Dg6-KAun.js +124 -0
- package/dist/app/assets/{PzGrid.stories-C1Y3nz5O.js → PzGrid.stories-DLm_q1Lw.js} +1 -1
- package/dist/app/assets/PzHint-BhuDfy-l.js +1 -0
- package/dist/app/assets/PzHint-CGRWH9yl.css +1 -0
- package/dist/app/assets/{PzHint.stories-B6l3Ocr8.js → PzHint.stories-C2oiTVIN.js} +1 -1
- package/dist/app/assets/{PzIcon-Don8TXO3.js → PzIcon-DTWQGv5c.js} +1 -1
- package/dist/app/assets/{PzIcon.stories-DE4e2be_.js → PzIcon.stories-CT6OA9PM.js} +1 -1
- package/dist/app/assets/{PzImage-BNrbMHP9.css → PzImage-ByW3gCC2.css} +1 -1
- package/dist/app/assets/{PzImage.stories-DoGwhzIO.js → PzImage.stories-BJL_3ef9.js} +2 -2
- package/dist/app/assets/PzImageInput-BPKv0nfg.css +1 -0
- package/dist/app/assets/PzImageInput.stories-CTksIxMS.js +109 -0
- package/dist/app/assets/PzInfoBlockLayout-DbFWjWZn.css +1 -0
- package/dist/app/assets/PzInfoBlockLayout.stories-BBkiY-o7.js +248 -0
- package/dist/app/assets/PzInfoHint-C-UyP8PR.js +1 -0
- package/dist/app/assets/PzInfoHint-CWG8xkDj.css +1 -0
- package/dist/app/assets/{PzInfoHint-CtK7BZOs.css → PzInfoHint-Da02XLY2.css} +1 -1
- package/dist/app/assets/PzInfoHint.stories-6f6FePkY.js +38 -0
- package/dist/app/assets/PzInput-DWypQ6XY.css +1 -0
- package/dist/app/assets/PzInput.stories-Bm_5Kj-P.js +57 -0
- package/dist/app/assets/PzInputDate-C9KHzAYp.css +1 -0
- package/dist/app/assets/PzInputDate.stories-Ccqq1p1p.js +55 -0
- package/dist/app/assets/PzInputNumber-CDixvL0g.css +1 -0
- package/dist/app/assets/PzInputNumber.stories-DAQYW2cJ.js +54 -0
- package/dist/app/assets/PzKeyValue-RiKE-e9c.css +1 -0
- package/dist/app/assets/PzKeyValue.stories-BrV9VQaC.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-jmQOAHGo.js +1 -0
- package/dist/app/assets/PzLabel.stories-DvN_0fOj.js +119 -0
- package/dist/app/assets/{PzLink-CLsit3uW.css → PzLink-BzhNa3ur.css} +1 -1
- package/dist/app/assets/PzLink-CwtmibRx.js +1 -0
- package/dist/app/assets/{PzLink.stories-D1DLILnY.js → PzLink.stories-BnY0IvI7.js} +3 -3
- package/dist/app/assets/{PzModal-X71wpoOT.css → PzModal-Ck4FnyKm.css} +1 -1
- package/dist/app/assets/{PzModal.stories-GJIUTcxR.js → PzModal.stories-Bq5YuGJo.js} +3 -3
- package/dist/app/assets/{PzNav-DRAXqlz0.css → PzNav-BCqeyJHD.css} +1 -1
- package/dist/app/assets/{PzNav.stories-vqArvp6y.js → PzNav.stories-5KiqcPrd.js} +7 -7
- package/dist/app/assets/PzNumberFormat-D5xYsZ3A.js +1 -0
- package/dist/app/assets/PzNumberFormat.stories-QyheTXgc.js +57 -0
- package/dist/app/assets/{PzPagination-DJVeW9lu.css → PzPagination-07CphuYh.css} +1 -1
- package/dist/app/assets/{PzPagination.stories-D-kZtPzf.js → PzPagination.stories-D_qRevIg.js} +1 -1
- package/dist/app/assets/PzPriceFormat.stories-Clj4FRWT.js +89 -0
- package/dist/app/assets/PzRadioGroup-CZC3ssDh.css +1 -0
- package/dist/app/assets/PzRadioGroup.stories-o8HE47Hq.js +130 -0
- package/dist/app/assets/{PzRouterLink.stories-CRcNmODE.js → PzRouterLink.stories-Dc_EnCBz.js} +3 -3
- package/dist/app/assets/{PzScrollTo.stories-C0m8oG4O.js → PzScrollTo.stories-4BSDyJ2p.js} +4 -4
- package/dist/app/assets/PzSearchResultItemLayout-B3s9Usmb.css +1 -0
- package/dist/app/assets/PzSearchResultItemLayout.stories-QRI-A0Zi.js +112 -0
- package/dist/app/assets/PzSkeleton-0INQyyC6.css +1 -0
- package/dist/app/assets/PzSkeleton-BMyhdGXq.js +1 -0
- package/dist/app/assets/PzSkeleton-i88RYFSk.css +1 -0
- package/dist/app/assets/PzSkeleton.stories-Djp-bBqZ.js +39 -0
- package/dist/app/assets/PzStatus-B5X_PK3m.css +1 -0
- package/dist/app/assets/{PzStatus-DlvKjmG7.css → PzStatus-B_H5z0YP.css} +1 -1
- package/dist/app/assets/PzStatus-rctea0Gb.js +1 -0
- package/dist/app/assets/{PzStatus.stories-u5QAVco_.js → PzStatus.stories-BZ2XwRJs.js} +4 -4
- package/dist/app/assets/PzTable-BNMYmoRd.css +1 -0
- package/dist/app/assets/PzTable-CzfehTN7.js +1 -0
- package/dist/app/assets/PzTable-DFFqGC19.css +1 -0
- package/dist/app/assets/PzTable.stories-C76ZN_A5.js +353 -0
- package/dist/app/assets/{PzTabs-Cko9ewqz.css → PzTabs-Dqx9m4Y3.css} +1 -1
- package/dist/app/assets/{PzTabs.stories-CEoVVF4Z.js → PzTabs.stories-DHf6EZU7.js} +11 -11
- package/dist/app/assets/PzTag-CKddmHDs.css +1 -0
- package/dist/app/assets/{PzTag-rwtmuhv6.css → PzTag-C_iRJRZc.css} +1 -1
- package/dist/app/assets/PzTag-DudHfisQ.js +1 -0
- package/dist/app/assets/{PzTag.stories-B2WKURWu.js → PzTag.stories-BIrmr98f.js} +6 -6
- package/dist/app/assets/{PzText-LfRr6NF7.js → PzText-BOcxbzaG.js} +1 -1
- package/dist/app/assets/PzText-mQOOz4_d.css +1 -0
- package/dist/app/assets/{PzText.stories-CJhqWJtS.js → PzText.stories-Cr6TBVe6.js} +1 -1
- package/dist/app/assets/{PzTextClamp-BnSHv0R0.css → PzTextClamp-Cdoumv-M.css} +1 -1
- package/dist/app/assets/{PzTextClamp.stories-B-2pPs9u.js → PzTextClamp.stories-CR0IRYLS.js} +2 -2
- package/dist/app/assets/PzTextarea-27aRIiRI.css +1 -0
- package/dist/app/assets/PzTextarea.stories--ghqzz2f.js +73 -0
- package/dist/app/assets/{PzValidatorXSS.stories-DqA_mla7.js → PzValidatorXSS.stories-zCaJ6Q__.js} +1 -1
- package/dist/app/assets/{Spacing.stories-55zVSJ08.js → Spacing.stories-Dzeg7Tfn.js} +1 -1
- package/dist/app/assets/{Typography.stories-DEgPTqUk.js → Typography.stories-GZEYS8Ny.js} +1 -1
- package/dist/app/assets/WithTooltip-65CFNBJE-C0efi5Yj.js +9 -0
- package/dist/app/assets/_commonjsHelpers-Cpj98o6Y.js +1 -0
- package/dist/app/assets/configs-CZIaFchr.js +1 -0
- package/dist/app/assets/configs-DshpCAYO.js +1 -0
- package/dist/app/assets/{floating-vue-ydzBnlRK.js → floating-vue-D0dcONsr.js} +1 -1
- package/dist/app/assets/formatter-EIJCOSYU-Noau93iy.js +1 -0
- package/dist/app/assets/{iframe-XnrfGA2g.js → iframe-Ckq2fQkL.js} +180 -180
- package/dist/app/assets/isArray-DPUC7i9_.js +1 -0
- package/dist/app/assets/lodash-CdDiHlzQ.js +27 -0
- package/dist/app/assets/syntaxhighlighter-OH4MV7E3-ByOORGJm.js +6 -0
- package/dist/app/iframe.html +1 -1
- package/dist/app/index.json +1 -1
- package/dist/app/project.json +1 -1
- package/dist/components/{PzLink → Actions/PzLink}/configs.d.ts +1 -1
- package/dist/components/Data/PzAccordionTable/PzAccordionTable.vue.d.ts +43 -0
- package/dist/components/Data/PzAccordionTable/constants.d.ts +4 -0
- package/dist/components/Data/PzAccordionTable/index.d.ts +2 -0
- package/dist/components/Data/PzAccordionTable/types.d.ts +28 -0
- package/dist/components/Data/PzTable/PzTable.vue.d.ts +24 -0
- package/dist/components/Data/PzTable/PzTableData.vue.d.ts +25 -0
- package/dist/components/Data/PzTable/PzTableHead.vue.d.ts +3 -0
- package/dist/components/Data/PzTable/constants.d.ts +1 -0
- package/dist/components/Data/PzTable/index.d.ts +4 -0
- package/dist/components/Data/PzTable/types.d.ts +35 -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/PzSkeleton/PzSkeleton.vue.d.ts +8 -0
- package/dist/components/Display/PzSkeleton/index.d.ts +2 -0
- package/dist/components/Display/PzSkeleton/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/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/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 +30 -0
- package/dist/components/Layouts/PzAccordion/PzAccordion.vue.d.ts +33 -0
- package/dist/components/Layouts/PzAccordion/PzAccordionContent.vue.d.ts +21 -0
- package/dist/components/Layouts/PzAccordion/configs.d.ts +4 -0
- package/dist/components/Layouts/PzAccordion/index.d.ts +3 -0
- package/dist/components/Layouts/PzAccordion/types.d.ts +21 -0
- package/dist/components/{PzGrid → Layouts/PzGrid}/configs.d.ts +1 -1
- package/dist/components/Layouts/PzInfoBlockLayout/PzInfoBlockLayout.vue.d.ts +24 -0
- package/dist/components/Layouts/PzInfoBlockLayout/index.d.ts +2 -0
- package/dist/components/Layouts/PzInfoBlockLayout/types.d.ts +6 -0
- package/dist/components/Layouts/PzSearchResultItemLayout/PzSearchResultItemLayout.vue.d.ts +21 -0
- package/dist/components/Layouts/PzSearchResultItemLayout/index.d.ts +2 -0
- package/dist/components/Layouts/PzSearchResultItemLayout/types.d.ts +4 -0
- package/dist/index.d.ts +38 -19
- package/dist/package.json +8 -2
- package/dist/prozorro-ui.cjs +27 -1
- package/dist/prozorro-ui.js +7898 -2108
- 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 +8 -2
- package/dist/app/assets/Color-FRDS63T2-C5bQ2Iuy.js +0 -1
- package/dist/app/assets/PzHint-BwKGDkUu.js +0 -1
- package/dist/app/assets/PzHint-kEBemRXE.css +0 -1
- package/dist/app/assets/PzInfoHint.stories-CWDV-k9d.js +0 -38
- package/dist/app/assets/PzLink-BkfNrG4H.js +0 -1
- package/dist/app/assets/PzText-DsC8c6AJ.css +0 -1
- package/dist/app/assets/WithTooltip-65CFNBJE-D3ytr0gE.js +0 -9
- package/dist/app/assets/formatter-EIJCOSYU-Ca5EM9Pa.js +0 -1
- package/dist/app/assets/syntaxhighlighter-OH4MV7E3-meijqKce.js +0 -6
- 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 +2 -2
- 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 +3 -3
- 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/{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 +1 -1
- 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/{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/{PzGrid → Layouts/PzGrid}/PzGrid.vue.d.ts +2 -2
- package/dist/components/{PzGrid → Layouts/PzGrid}/PzGridItem.vue.d.ts +1 -1
- 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/{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 +2 -2
- 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 +0 -0
- /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 +0 -0
- /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,109 @@
|
|
|
1
|
+
import{d as H,w as k,e as b,q,j as B,y as V,f as G,g as u,o as f,p as z,i as J,u as K,t as P,m as y,r as s}from"./iframe-Ckq2fQkL.js";import{_ as Q,P as X}from"./PzText-BOcxbzaG.js";import{P as Y}from"./PzBtn-Bz2NPCiD.js";import{_ as Z}from"./PzIcon-DTWQGv5c.js";import{P as ee}from"./PzLabel-jmQOAHGo.js";import{c as C,d as x}from"./configs-CZIaFchr.js";import"./preload-helper-C1FmrZbK.js";const ae={class:"pz-image-input-wrap"},te={key:1,class:"pz-image-input-preview"},le=["src","alt"],ie=["aria-label"],ne=["id","name","accept","disabled"],re={class:"pz-image-input-helper"},se={key:0,class:"pz-image-input-error"},I=H({name:"PzImageInput",__name:"PzImageInput",props:{name:{},modelValue:{default:null},label:{default:""},extensions:{default:()=>[...x.acceptedExtensions]},maxSizeBytes:{default:x.maxSizeBytes},imageWidth:{default:x.imageWidth},imageHeight:{default:x.imageHeight},textConfig:{default:()=>({...C})},previewUrl:{default:""},errorMessage:{default:""},hasServerValidations:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0}},emits:["focus","blur","update:modelValue"],setup(e,{emit:o}){const a=e,m=o,v=s(null),p=s(""),c=s(""),d=u(()=>a.textConfig??C),E=u(()=>a.modelValue instanceof File),j=u(()=>!!a.previewUrl),U=u(()=>E.value||j.value),M=u(()=>p.value||a.previewUrl||""),T=u(()=>a.extensions.join(",")),w=u(()=>a.errorMessage||c.value);k(()=>a.modelValue,t=>{t instanceof File||(p.value="")});const F=()=>{var t;(t=v.value)==null||t.click()},N=(t,l,n)=>new Promise(i=>{if(!l&&!n){i(!0);return}const r=URL.createObjectURL(t),g=new Image;g.onload=()=>{URL.revokeObjectURL(r);const W=!l||g.naturalWidth===l,_=!n||g.naturalHeight===n;i(W&&_)},g.onerror=()=>{URL.revokeObjectURL(r),i(!1)},g.src=r}),A=t=>new Promise((l,n)=>{const i=new FileReader;i.onload=()=>{l(typeof i.result=="string"?i.result:"")},i.onerror=()=>n(i.error),i.readAsDataURL(t)}),$=async t=>{if(a.hasServerValidations)return"";const l=t.name.toLowerCase();return a.extensions.some(r=>l.endsWith(r.toLowerCase()))?t.size>a.maxSizeBytes?d.value.fileTooLargeMessage:await N(t,a.imageWidth,a.imageHeight)?"":d.value.invalidDimensionsMessage:d.value.invalidExtensionMessage},O=async t=>{var r;const l=t.target,n=(r=l.files)==null?void 0:r[0];if(l.value="",c.value="",!n)return;const i=await $(n);if(i){c.value=i,p.value="",a.modelValue instanceof File&&m("update:modelValue",null);return}p.value=await A(n),m("update:modelValue",n)};return(t,l)=>(f(),b("div",{class:G(["pz-image-input",{error:!!w.value,disabled:e.disabled}])},[q(V(ee),{label:e.label,for:e.name,required:e.required,disabled:e.disabled},{default:B(()=>[z("div",ae,[e.editable&&!U.value?(f(),J(V(Y),{key:0,variant:"primary-outline",type:"button",disabled:e.disabled,onClick:F},{default:B(()=>[K(P(d.value.buttonLabel),1)]),_:1},8,["disabled"])):y("",!0),U.value?(f(),b("div",te,[z("img",{src:M.value,alt:e.label||d.value.buttonLabel,class:"pz-image-input-preview-img"},null,8,le),e.editable&&!e.disabled?(f(),b("button",{key:0,type:"button",class:"pz-image-input-preview-edit","aria-label":d.value.editButtonLabel,onClick:F},[q(V(Z),{name:"edit",size:"16"})],8,ie)):y("",!0)])):y("",!0),z("input",{id:e.name,ref_key:"imageInputRef",ref:v,class:"pz-image-input-native",type:"file",name:e.name,accept:T.value,disabled:e.disabled||!e.editable,onChange:O,onFocus:l[0]||(l[0]=n=>m("focus")),onBlur:l[1]||(l[1]=n=>m("blur"))},null,40,ne)]),z("span",re,P(d.value.helperText),1),w.value?(f(),b("span",se,P(w.value),1)):y("",!0)]),_:1},8,["label","for","required","disabled"])],2))}}),D=Q(I,[["__scopeId","data-v-cdfa2165"]]);I.__docgenInfo=Object.assign({displayName:I.name??I.__name},{name:"PzImageInput",exportName:"default",displayName:"PzImageInput",description:"",tags:{},props:[{name:"name",required:!0,type:{name:"string"}},{name:"modelValue",required:!1,type:{name:"PzImageInputValue"},defaultValue:{func:!1,value:"null"}},{name:"label",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"extensions",required:!1,type:{name:"Array",elements:[{name:"string"}]},defaultValue:{func:!1,value:"() => [...pzFormImageUploadRules.acceptedExtensions]"}},{name:"maxSizeBytes",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"pzFormImageUploadRules.maxSizeBytes"}},{name:"imageWidth",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"pzFormImageUploadRules.imageWidth"}},{name:"imageHeight",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"pzFormImageUploadRules.imageHeight"}},{name:"textConfig",required:!1,type:{name:"PzFormImageInputTextConfig"},defaultValue:{func:!1,value:"() => ({ ...pzFormImageUploadTexts })"}},{name:"previewUrl",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"errorMessage",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"hasServerValidations",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{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"}}],events:[{name:"focus"},{name:"blur"},{name:"update:modelValue",type:{names:["PzImageInputValue"]}}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Form/PzImageInput/PzImageInput.vue"]});const oe=e=>`<template>
|
|
2
|
+
<PzImageInput
|
|
3
|
+
v-model="image"
|
|
4
|
+
${[`name="${e.name}"`,e.label?`label="${e.label}"`:null,e.previewUrl?`preview-url="${e.previewUrl}"`: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.hasServerValidations?':has-server-validations="true"':null].filter(a=>!!a).join(" ")}
|
|
5
|
+
/>
|
|
6
|
+
</template>`,de="data:image/svg+xml;utf8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20800%20800'%3E%3Crect%20width%3D'800'%20height%3D'800'%20fill%3D'%23E7F1FF'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20dominant-baseline%3D'middle'%20text-anchor%3D'middle'%20fill%3D'%231B4DAF'%20font-family%3D'Arial'%20font-size%3D'96'%3EPreview%20800%C3%97800%3C%2Ftext%3E%3C%2Fsvg%3E",ue={title:"Components/Form/PzImageInput",component:D,parameters:{docs:{description:{component:"Use `PzImageInput` to collect a single image. It validates the picked file against extension, size and expected dimensions (defaults 800×800 px, .png/.jpg/.jpeg, up to 1 МБ) and renders a preview with a replace action. Pass `previewUrl` to pre-fill the preview from an existing URL and `textConfig` to override the labels/messages for reuse in other projects."},source:{transform:(e,o)=>oe(o.args??ue.args)}}},args:{name:"pz-image-input-story",label:"Логотип",modelValue:null,previewUrl:"",errorMessage:"",hasServerValidations:!1,required:!1,disabled:!1,editable:!0},argTypes:{name:{control:"text",description:"Native input `id`/`name`."},label:{control:"text",description:"Текст лейбла над полем."},previewUrl:{control:"text",description:"URL існуючого зображення для попереднього перегляду."},errorMessage:{control:"text",description:"Зовнішнє повідомлення про помилку; вмикає error-стан."},hasServerValidations:{control:"boolean",description:"Прапорець, що сигналізує про наявність серверних помилок валідації; текст передається через `errorMessage`."},required:{control:"boolean",description:"Позначає поле як обов'язкове."},disabled:{control:"boolean",description:"Блокує взаємодію з контролом."},editable:{control:"boolean",description:"Коли `false`, приховує кнопки додавання та редагування — компонент працює у режимі прев'ю."}},render:e=>({components:{pzImageInput:D,pzText:X},setup(){const o=s(e.modelValue??null),a=s(null),m=s(null),v=s(null),p=s(null);return k(()=>e.modelValue,c=>{o.value=c??null}),{args:e,image:o,defaultImage:a,errorImage:m,disabledImage:v,customImage:p,samplePreviewUrl:de}},template:`
|
|
7
|
+
<div style="display: flex; flex-direction: column; gap: var(--pz-space-24); max-width: 560px;">
|
|
8
|
+
<section>
|
|
9
|
+
<pz-text variant="h4-bold">API компонента</pz-text>
|
|
10
|
+
<div style="margin-top: var(--pz-space-16);">
|
|
11
|
+
<pz-image-input
|
|
12
|
+
v-model="image"
|
|
13
|
+
:name="args.name"
|
|
14
|
+
:label="args.label"
|
|
15
|
+
:preview-url="args.previewUrl"
|
|
16
|
+
:required="args.required"
|
|
17
|
+
:disabled="args.disabled"
|
|
18
|
+
:editable="args.editable"
|
|
19
|
+
:error-message="args.errorMessage"
|
|
20
|
+
:has-server-validations="args.hasServerValidations"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
</section>
|
|
24
|
+
|
|
25
|
+
<section>
|
|
26
|
+
<pz-text variant="h4-bold">Порожній стан</pz-text>
|
|
27
|
+
<div style="margin-top: var(--pz-space-16);">
|
|
28
|
+
<pz-image-input
|
|
29
|
+
v-model="defaultImage"
|
|
30
|
+
name="image-default"
|
|
31
|
+
label="Завантажте зображення"
|
|
32
|
+
/>
|
|
33
|
+
</div>
|
|
34
|
+
</section>
|
|
35
|
+
|
|
36
|
+
<section>
|
|
37
|
+
<pz-text variant="h4-bold">З попередньо завантаженим зображенням</pz-text>
|
|
38
|
+
<div style="margin-top: var(--pz-space-16);">
|
|
39
|
+
<pz-image-input
|
|
40
|
+
name="image-preview"
|
|
41
|
+
label="Логотип організації"
|
|
42
|
+
:preview-url="samplePreviewUrl"
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
</section>
|
|
46
|
+
|
|
47
|
+
<section>
|
|
48
|
+
<pz-text variant="h4-bold">Стани</pz-text>
|
|
49
|
+
<div style="display: flex; flex-direction: column; gap: var(--pz-space-16); margin-top: var(--pz-space-16);">
|
|
50
|
+
<pz-image-input
|
|
51
|
+
v-model="errorImage"
|
|
52
|
+
name="image-error"
|
|
53
|
+
label="Помилка"
|
|
54
|
+
error-message="Поле обов'язкове для заповнення"
|
|
55
|
+
required
|
|
56
|
+
/>
|
|
57
|
+
<pz-image-input
|
|
58
|
+
name="image-server-errors"
|
|
59
|
+
label="Серверна валідація"
|
|
60
|
+
:preview-url="samplePreviewUrl"
|
|
61
|
+
:has-server-validations="true"
|
|
62
|
+
error-message="Сервер відхилив зображення: розмір перевищує ліміт."
|
|
63
|
+
/>
|
|
64
|
+
<pz-image-input
|
|
65
|
+
v-model="disabledImage"
|
|
66
|
+
name="image-disabled"
|
|
67
|
+
label="Недоступне поле"
|
|
68
|
+
disabled
|
|
69
|
+
/>
|
|
70
|
+
<pz-image-input
|
|
71
|
+
name="image-readonly"
|
|
72
|
+
label="Readonly (editable=false)"
|
|
73
|
+
:preview-url="samplePreviewUrl"
|
|
74
|
+
:editable="false"
|
|
75
|
+
/>
|
|
76
|
+
</div>
|
|
77
|
+
</section>
|
|
78
|
+
|
|
79
|
+
<section>
|
|
80
|
+
<pz-text variant="h4-bold">Власні обмеження</pz-text>
|
|
81
|
+
<div style="margin-top: var(--pz-space-16);">
|
|
82
|
+
<pz-image-input
|
|
83
|
+
v-model="customImage"
|
|
84
|
+
name="image-custom"
|
|
85
|
+
label="PNG/JPG, до 2 МБ, будь-який розмір"
|
|
86
|
+
:max-size-bytes="2 * 1024 * 1024"
|
|
87
|
+
:image-width="0"
|
|
88
|
+
:image-height="0"
|
|
89
|
+
:text-config="{
|
|
90
|
+
buttonLabel: 'Завантажити банер',
|
|
91
|
+
helperText: 'Допустимі формати .png, .jpg, .jpeg до 2 МБ',
|
|
92
|
+
invalidExtensionMessage: 'Підтримуються лише .png, .jpg, .jpeg',
|
|
93
|
+
fileTooLargeMessage: 'Файл перевищує 2 МБ',
|
|
94
|
+
invalidDimensionsMessage: 'Некоректні розміри зображення',
|
|
95
|
+
editButtonLabel: 'Замінити банер',
|
|
96
|
+
}"
|
|
97
|
+
/>
|
|
98
|
+
</div>
|
|
99
|
+
</section>
|
|
100
|
+
</div>
|
|
101
|
+
`})},h={parameters:{docs:{description:{story:"Інтерактивний приклад `PzImageInput` з порожнім станом, прев'ю з `previewUrl`, readonly, disabled, помилками та власними правилами валідації."}}}};var L,R,S;h.parameters={...h.parameters,docs:{...(L=h.parameters)==null?void 0:L.docs,source:{originalSource:`{
|
|
102
|
+
parameters: {
|
|
103
|
+
docs: {
|
|
104
|
+
description: {
|
|
105
|
+
story: "Інтерактивний приклад \`PzImageInput\` з порожнім станом, прев'ю з \`previewUrl\`, readonly, disabled, помилками та власними правилами валідації."
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}`,...(S=(R=h.parameters)==null?void 0:R.docs)==null?void 0:S.source}}};const ze=["Playground"];export{h as Playground,ze as __namedExportsOrder,ue as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pz-info-block-layout-story{display:grid;gap:var(--pz-space-24)}.pz-info-block-layout-story-hero,.pz-info-block-layout-story-group{padding:var(--pz-space-24);border:1px solid color-mix(in srgb,var(--pz-color-grey-40) 58%,transparent);border-radius:28px;background:linear-gradient(180deg,color-mix(in srgb,var(--pz-color-white) 98%,transparent),color-mix(in srgb,var(--pz-color-grey-40) 10%,var(--pz-color-white))),linear-gradient(135deg,color-mix(in srgb,var(--pz-color-blue-50) 4%,transparent),transparent 46%);box-shadow:0 18px 60px color-mix(in srgb,var(--pz-color-black-90) 8%,transparent),inset 0 1px color-mix(in srgb,var(--pz-color-white) 96%,transparent)}.pz-info-block-layout-story-group-muted{background:linear-gradient(180deg,color-mix(in srgb,#dbe8e2 72%,var(--pz-color-white)),color-mix(in srgb,#edf4f0 86%,var(--pz-color-white))),linear-gradient(135deg,color-mix(in srgb,#6f9a8e 8%,transparent),transparent 44%)}.pz-info-block-layout-story-hero,.pz-info-block-layout-story-group-header{display:flex;align-items:start;justify-content:space-between;gap:var(--pz-space-16)}.pz-info-block-layout-story-board,.pz-info-block-layout-story-gallery,.pz-info-block-layout-story-stack{display:grid;gap:var(--pz-space-24)}.pz-info-block-layout-story-surface{padding:clamp(24px,3vw,36px);border:1px solid color-mix(in srgb,var(--pz-color-grey-40) 54%,transparent);border-radius:28px;background:color-mix(in srgb,var(--pz-color-white) 96%,transparent);box-shadow:inset 0 1px color-mix(in srgb,var(--pz-color-white) 98%,transparent),0 20px 60px color-mix(in srgb,var(--pz-color-black-90) 8%,transparent)}.pz-info-block-layout-story-eyebrow,.pz-info-block-layout-story-group-kicker,.pz-info-block-layout-story-chip{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.pz-info-block-layout-story-eyebrow,.pz-info-block-layout-story-group-kicker{color:var(--pz-color-text-link-hover)}.pz-info-block-layout-story-chip{padding:10px 14px;border-radius:999px;background:color-mix(in srgb,var(--pz-color-blue-50) 10%,transparent);color:var(--pz-color-text-link-hover)}.pz-info-block-layout-story-badge{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding-inline:10px;border-radius:999px;background:color-mix(in srgb,var(--pz-color-blue-50) 14%,transparent);color:var(--pz-color-text-link-hover);font-size:13px;font-weight:700}.pz-info-block-layout-story-helper-link{display:inline-flex;align-items:start;gap:var(--pz-space-8);color:var(--pz-color-text-secondary);font-size:clamp(16px,1.35vw,18px);font-style:italic;line-height:1.45;text-decoration:none}.pz-info-block-layout-story-helper-link:hover{color:var(--pz-color-text-link-hover)}.pz-info-block-layout-story-helper-link .pz-icon{margin-top:2px;--pz-icon-color: currentcolor}.pz-info-block-layout-story-info-list{display:grid;gap:var(--pz-space-20)}.pz-info-block-layout-story-info-row{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1fr);gap:24px;align-items:start}.pz-info-block-layout-story-info-label{display:flex;align-items:center;gap:12px;min-width:0;color:var(--pz-color-text-primary);font-size:14px;font-weight:700;line-height:1.45}.pz-info-block-layout-story-info-label:after{flex:1;min-width:24px;border-bottom:1px dotted color-mix(in srgb,var(--pz-color-grey-40) 90%,transparent);content:""}.pz-info-block-layout-story-info-value{display:grid;gap:6px;min-width:0;color:var(--pz-color-text-primary);font-size:clamp(15px,1.25vw,17px);line-height:1.45}.pz-info-block-layout-story-inline-link{color:var(--pz-color-text-link);text-decoration:none}.pz-info-block-layout-story-inline-link:hover{color:var(--pz-color-text-link-hover);text-decoration:underline}.pz-info-block-layout-story-table-wrap{overflow-x:auto}.pz-info-block-layout-story-table{width:100%;border-collapse:collapse}.pz-info-block-layout-story-table th,.pz-info-block-layout-story-table td{padding:18px 14px;text-align:left;vertical-align:top;color:var(--pz-color-text-primary);font-size:14px;line-height:1.45}.pz-info-block-layout-story-table th{font-size:13px;font-weight:700}.pz-info-block-layout-story-table thead tr{border-bottom:1px solid color-mix(in srgb,var(--pz-color-grey-40) 64%,transparent)}.pz-info-block-layout-story-table tbody tr+tr{border-top:1px solid color-mix(in srgb,var(--pz-color-grey-40) 48%,transparent)}@media (width <= 1024px){.pz-info-block-layout-story-hero,.pz-info-block-layout-story-group-header,.pz-info-block-layout-story-info-row{grid-template-columns:1fr;flex-direction:column}.pz-info-block-layout-story-info-label:after{display:none}}@media (width <= 640px){.pz-info-block-layout-story-hero,.pz-info-block-layout-story-group,.pz-info-block-layout-story-surface{padding:20px;border-radius:22px}.pz-info-block-layout-story-helper-link{font-size:16px}.pz-info-block-layout-story-table th,.pz-info-block-layout-story-table td{padding:14px 10px;font-size:13px}}.pz-info-block-layout[data-v-ad6e2a06]{--pz-info-block-layout-content-margin-top: var(--pz-space-24);min-width:0}.pz-info-block-layout-header[data-v-ad6e2a06]{display:flex;flex-direction:column;align-items:start;gap:var(--pz-space-16)}@media (min-width: 1024px){.pz-info-block-layout-header[data-v-ad6e2a06]{flex-direction:row;justify-content:space-between}}.pz-info-block-layout-actions[data-v-ad6e2a06]{min-width:0;flex-shrink:0}.pz-info-block-layout-helper[data-v-ad6e2a06]{min-width:0;margin-top:var(--pz-space-12)}.pz-info-block-layout-content[data-v-ad6e2a06]{min-width:0;margin-top:var(--pz-info-block-layout-content-margin-top)}.pz-info-block-layout-content.tight[data-v-ad6e2a06]{--pz-info-block-layout-content-margin-top: var(--pz-space-12)}@media (min-width: 1024px){.pz-info-block-layout-content.tight[data-v-ad6e2a06]{--pz-info-block-layout-content-margin-top: var(--pz-space-20)}}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import{_ as b}from"./PzIcon-DTWQGv5c.js";import{P as f,_ as h}from"./PzText-BOcxbzaG.js";import{d as k,e as s,p as r,q as z,j as w,y as g,l as t,m as c,f as x,o as l,u as _,t as I}from"./iframe-Ckq2fQkL.js";import"./preload-helper-C1FmrZbK.js";const C={class:"pz-info-block-layout"},P={class:"pz-info-block-layout-header"},T={key:0,class:"pz-info-block-layout-actions"},B={key:0,class:"pz-info-block-layout-helper"},i=k({name:"PzInfoBlockLayout",__name:"PzInfoBlockLayout",props:{title:{},titleClass:{default:""},mode:{default:""}},setup(e){return(o,n)=>(l(),s("section",C,[r("div",P,[z(g(f),{variant:"h4-bold"},{default:w(()=>[t(o.$slots,"title",{},()=>[_(I(e.title),1)],!0)]),_:3}),o.$slots.right_section?(l(),s("div",T,[t(o.$slots,"right_section",{},void 0,!0)])):c("",!0)]),o.$slots.heading?(l(),s("div",B,[t(o.$slots,"heading",{},void 0,!0)])):c("",!0),r("div",{class:x(["pz-info-block-layout-content",{mode:e.mode}])},[t(o.$slots,"default",{},void 0,!0)],2)]))}}),d=h(i,[["__scopeId","data-v-ad6e2a06"]]);i.__docgenInfo=Object.assign({displayName:i.name??i.__name},{name:"PzInfoBlockLayout",exportName:"default",displayName:"PzInfoBlockLayout",description:"",tags:{},props:[{name:"title",required:!1,type:{name:"string"}},{name:"titleClass",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"mode",required:!1,type:{name:"PzInfoBlockLayoutMode"},defaultValue:{func:!1,value:'""'}},{name:"spacing",defaultValue:{func:!1,value:"undefined"}}],slots:[{name:"title"},{name:"right_section"},{name:"heading"},{name:"default"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Layouts/PzInfoBlockLayout/PzInfoBlockLayout.vue"]});const L=["","tight"],A=[{id:"preview-name",label:"Name",parts:[{id:"preview-name-text",text:"Test Division Organization (AUTOMATION)"}]},{id:"preview-code",label:"EDRPOU code",parts:[{id:"preview-code-text",text:"60100000"}]},{id:"preview-location",label:"Location",parts:[{id:"preview-location-text",text:"00601, Україна, м. Київ, Вулиця, будинок, квартира"}]}],R=[{id:"customer-name",label:"Name",parts:[{id:"customer-name-text",text:"Test Division Organization (AUTOMATION)"}]},{id:"customer-edrpou",label:"EDRPOU code",parts:[{id:"customer-edrpou-text",text:"60100000"}]},{id:"customer-location",label:"Location",parts:[{id:"customer-location-text",text:"00601, Україна, м. Київ, Вулиця, будинок, квартира"}]},{id:"customer-category",label:"Category",parts:[{id:"customer-category-text",text:"A legal entity that operates in one or more specific business areas"}]},{id:"customer-contact",label:"Contact person",parts:[{id:"customer-contact-name",text:"divisionAdminSNMD divisionAdminFNMD"},{id:"customer-contact-phone",text:"380500000000",href:"tel:+380500000000"},{id:"customer-contact-mail",text:"divisionAdmin@division.com",href:"mailto:divisionAdmin@division.com"}]}],N=[{id:"purchase-subject",label:"Type of subject of purchase",parts:[{id:"purchase-subject-text",text:"services"}]},{id:"purchase-code",label:"Classifier and its corresponding code",parts:[{id:"purchase-code-text",text:"ДК 021:2015: 33190000-8 — Медичне обладнання та вироби медичного призначення різні"}]}],O=[{id:"purchase-name",label:"Name"},{id:"purchase-classifier",label:"Classifier and code"},{id:"purchase-quantity",label:"Quantity/Units of measurement"},{id:"purchase-location",label:"Delivery location"},{id:"purchase-date",label:"Delivery date"}],S=[{id:"purchase-row-1",cells:["i-9d86f099 Летіти гроші яблуко боєць благати заклад.","ДК 021:2015: 33193100-0 — Автомобілі для інвалідів та інвалідні візки","3.51879 кубічний метр на годину","69446, Україна, Київська область, Фастів, Улюблений, 66","from 9 June 2026 to 14 June 2026"]},{id:"purchase-row-2",cells:["i-0fb3a80e Постійний якесь білизна розводити мета виконувати.","ДК 021:2015: 33196200-2 — Пристрої для людей з обмеженими можливостями","15.97218 гігагерц","89498, Україна, Чернівецька область, Чернівці, Курінна, 131","from 9 June 2026 to 14 June 2026"]}],$=[{id:"delivery-event",label:"Подія"},{id:"delivery-type",label:"Тип"},{id:"delivery-basis",label:"Підстава"},{id:"delivery-period",label:"Період, (днів)"},{id:"delivery-day-type",label:"Тип днів"},{id:"delivery-amount",label:"Розмір, (%)"}],D=[{id:"delivery-row-1",cells:["Financing","Postpayments","signing the contract","306","calendar","100"]},{id:"delivery-row-2",cells:["Delivery","Recurring delivery","submitting payment","67","calendar","100"]}],j=e=>{const o=[`title="${e.title}"`,e.titleClass?`title-class="${e.titleClass}"`:null,e.mode?`mode="${e.mode}"`:null].filter(v=>!!v).join(`
|
|
2
|
+
`),n=e.showHelper?`
|
|
3
|
+
<template #heading>
|
|
4
|
+
<a href="#" class="custom-helper-link">
|
|
5
|
+
<PzIcon name="open_in_new" size="20" />
|
|
6
|
+
${e.helperText??"How to check the customer before participating in the tender"}
|
|
7
|
+
</a>
|
|
8
|
+
</template>`:"",m=e.showActions?`
|
|
9
|
+
<template #right_section>
|
|
10
|
+
<span class="custom-badge">0</span>
|
|
11
|
+
</template>`:"";return`<template>
|
|
12
|
+
<PzInfoBlockLayout
|
|
13
|
+
${o}
|
|
14
|
+
>${m}${n}
|
|
15
|
+
<div class="custom-info-list">
|
|
16
|
+
<div class="custom-info-row">
|
|
17
|
+
<span>Name</span>
|
|
18
|
+
<span>Test Division Organization (AUTOMATION)</span>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="custom-info-row">
|
|
21
|
+
<span>EDRPOU code</span>
|
|
22
|
+
<span>60100000</span>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</PzInfoBlockLayout>
|
|
26
|
+
</template>`},H={title:"Components/Layouts/PzInfoBlockLayout",component:d,parameters:{prototype:{caption:"Info block layout",note:"Section-level layout for procurement detail pages. It owns heading rhythm, helper/action slots, and content spacing while inner rows, tables, and business semantics stay outside the component."},docs:{description:{component:"Use `PzInfoBlockLayout` as a generic information section shell. It provides a title row, optional right-side actions through `right_section`, optional helper content through `heading`, and a content area with default or tight spacing."},source:{transform:(e,o)=>j(o.args??H.args)}}},args:{title:"Customer information",titleClass:"",mode:"",showActions:!1,showHelper:!0,helperText:"How to check the customer before participating in the tender"},argTypes:{title:{control:"text",description:"Primary section heading."},titleClass:{control:"text",description:"Additional class for the title element."},mode:{control:"inline-radio",options:L,description:"Content spacing mode. Use `tight` for denser sections."},showActions:{control:"boolean",description:"Shows the `right_section` slot in the live preview.",table:{category:"Slots"}},showHelper:{control:"boolean",description:"Shows the `heading` slot in the live preview.",table:{category:"Slots"}},helperText:{control:"text",description:"Helper link copy used in the live preview.",table:{category:"Slots"}}},render:e=>({components:{pzIcon:b,pzInfoBlockLayout:d,pzText:f},setup(){return{args:e,customerInfoRows:R,deliveryColumns:$,deliveryRows:D,previewRows:A,purchaseColumns:O,purchaseInfoRows:N,purchaseRows:S}},template:`
|
|
27
|
+
<section class="pz-info-block-layout-story">
|
|
28
|
+
<div class="pz-info-block-layout-story-hero">
|
|
29
|
+
<div>
|
|
30
|
+
<span class="pz-info-block-layout-story-eyebrow">Component API</span>
|
|
31
|
+
<pz-text variant="h4-bold">Information sections with helper and data content</pz-text>
|
|
32
|
+
</div>
|
|
33
|
+
<span class="pz-info-block-layout-story-chip">{{ args.mode || 'default' }}</span>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div class="pz-info-block-layout-story-board">
|
|
37
|
+
<section class="pz-info-block-layout-story-surface">
|
|
38
|
+
<pz-info-block-layout
|
|
39
|
+
:title="args.title"
|
|
40
|
+
:title-class="args.titleClass"
|
|
41
|
+
:mode="args.mode"
|
|
42
|
+
>
|
|
43
|
+
<template v-if="args.showActions" #right_section>
|
|
44
|
+
<span class="pz-info-block-layout-story-badge">0</span>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<template v-if="args.showHelper" #heading>
|
|
48
|
+
<a
|
|
49
|
+
href="#"
|
|
50
|
+
class="pz-info-block-layout-story-helper-link"
|
|
51
|
+
>
|
|
52
|
+
<pz-icon name="open_in_new" size="20" />
|
|
53
|
+
<span>{{ args.helperText }}</span>
|
|
54
|
+
</a>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<div class="pz-info-block-layout-story-info-list">
|
|
58
|
+
<div
|
|
59
|
+
v-for="row in previewRows"
|
|
60
|
+
:key="row.id"
|
|
61
|
+
class="pz-info-block-layout-story-info-row"
|
|
62
|
+
>
|
|
63
|
+
<div class="pz-info-block-layout-story-info-label">
|
|
64
|
+
{{ row.label }}:
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div class="pz-info-block-layout-story-info-value">
|
|
68
|
+
<span
|
|
69
|
+
v-for="part in row.parts"
|
|
70
|
+
:key="part.id"
|
|
71
|
+
>
|
|
72
|
+
{{ part.text }}
|
|
73
|
+
</span>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</pz-info-block-layout>
|
|
78
|
+
</section>
|
|
79
|
+
|
|
80
|
+
<section class="pz-info-block-layout-story-gallery">
|
|
81
|
+
<div class="pz-info-block-layout-story-group">
|
|
82
|
+
<div class="pz-info-block-layout-story-group-header">
|
|
83
|
+
<div>
|
|
84
|
+
<span class="pz-info-block-layout-story-group-kicker">Reference 01</span>
|
|
85
|
+
<pz-text variant="h4-bold">Key-value customer block</pz-text>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
<pz-info-block-layout title="Customer information">
|
|
90
|
+
<template #helper>
|
|
91
|
+
<a
|
|
92
|
+
href="#"
|
|
93
|
+
class="pz-info-block-layout-story-helper-link"
|
|
94
|
+
>
|
|
95
|
+
<pz-icon name="open_in_new" size="20" />
|
|
96
|
+
<span>How to check the customer before participating in the tender</span>
|
|
97
|
+
</a>
|
|
98
|
+
</template>
|
|
99
|
+
|
|
100
|
+
<div class="pz-info-block-layout-story-info-list">
|
|
101
|
+
<div
|
|
102
|
+
v-for="row in customerInfoRows"
|
|
103
|
+
:key="row.id"
|
|
104
|
+
class="pz-info-block-layout-story-info-row"
|
|
105
|
+
>
|
|
106
|
+
<div class="pz-info-block-layout-story-info-label">
|
|
107
|
+
{{ row.label }}:
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<div class="pz-info-block-layout-story-info-value">
|
|
111
|
+
<template
|
|
112
|
+
v-for="part in row.parts"
|
|
113
|
+
:key="part.id"
|
|
114
|
+
>
|
|
115
|
+
<a
|
|
116
|
+
v-if="part.href"
|
|
117
|
+
:href="part.href"
|
|
118
|
+
class="pz-info-block-layout-story-inline-link"
|
|
119
|
+
>
|
|
120
|
+
{{ part.text }}
|
|
121
|
+
</a>
|
|
122
|
+
<span v-else>{{ part.text }}</span>
|
|
123
|
+
</template>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</pz-info-block-layout>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<div class="pz-info-block-layout-story-group pz-info-block-layout-story-group-muted">
|
|
131
|
+
<div class="pz-info-block-layout-story-group-header">
|
|
132
|
+
<div>
|
|
133
|
+
<span class="pz-info-block-layout-story-group-kicker">Reference 02</span>
|
|
134
|
+
<pz-text variant="h4-bold">Mixed block with subject rows and purchase table</pz-text>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
<pz-info-block-layout title="Tender documentation">
|
|
139
|
+
<template #helper>
|
|
140
|
+
<a
|
|
141
|
+
href="#"
|
|
142
|
+
class="pz-info-block-layout-story-helper-link"
|
|
143
|
+
>
|
|
144
|
+
<pz-icon name="open_in_new" size="20" />
|
|
145
|
+
<span>How a bidder can influence the quality of tender documents</span>
|
|
146
|
+
</a>
|
|
147
|
+
</template>
|
|
148
|
+
|
|
149
|
+
<div class="pz-info-block-layout-story-stack">
|
|
150
|
+
<pz-text variant="h4-bold">Information on the subject of purchase</pz-text>
|
|
151
|
+
|
|
152
|
+
<div class="pz-info-block-layout-story-info-list">
|
|
153
|
+
<div
|
|
154
|
+
v-for="row in purchaseInfoRows"
|
|
155
|
+
:key="row.id"
|
|
156
|
+
class="pz-info-block-layout-story-info-row"
|
|
157
|
+
>
|
|
158
|
+
<div class="pz-info-block-layout-story-info-label">
|
|
159
|
+
{{ row.label }}:
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
<div class="pz-info-block-layout-story-info-value">
|
|
163
|
+
<span
|
|
164
|
+
v-for="part in row.parts"
|
|
165
|
+
:key="part.id"
|
|
166
|
+
>
|
|
167
|
+
{{ part.text }}
|
|
168
|
+
</span>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
|
|
173
|
+
<div class="pz-info-block-layout-story-table-wrap">
|
|
174
|
+
<table class="pz-info-block-layout-story-table">
|
|
175
|
+
<thead>
|
|
176
|
+
<tr>
|
|
177
|
+
<th
|
|
178
|
+
v-for="column in purchaseColumns"
|
|
179
|
+
:key="column.id"
|
|
180
|
+
>
|
|
181
|
+
{{ column.label }}
|
|
182
|
+
</th>
|
|
183
|
+
</tr>
|
|
184
|
+
</thead>
|
|
185
|
+
<tbody>
|
|
186
|
+
<tr
|
|
187
|
+
v-for="row in purchaseRows"
|
|
188
|
+
:key="row.id"
|
|
189
|
+
>
|
|
190
|
+
<td
|
|
191
|
+
v-for="(cell, index) in row.cells"
|
|
192
|
+
:key="row.id + '-' + index"
|
|
193
|
+
>
|
|
194
|
+
{{ cell }}
|
|
195
|
+
</td>
|
|
196
|
+
</tr>
|
|
197
|
+
</tbody>
|
|
198
|
+
</table>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
</pz-info-block-layout>
|
|
202
|
+
</div>
|
|
203
|
+
|
|
204
|
+
<div class="pz-info-block-layout-story-group pz-info-block-layout-story-group-muted">
|
|
205
|
+
<div class="pz-info-block-layout-story-group-header">
|
|
206
|
+
<div>
|
|
207
|
+
<span class="pz-info-block-layout-story-group-kicker">Reference 03</span>
|
|
208
|
+
<pz-text variant="h4-bold">Dense table section for delivery terms</pz-text>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
<pz-info-block-layout
|
|
213
|
+
title="Terms of delivery and payment"
|
|
214
|
+
mode="tight"
|
|
215
|
+
>
|
|
216
|
+
<div class="pz-info-block-layout-story-table-wrap">
|
|
217
|
+
<table class="pz-info-block-layout-story-table">
|
|
218
|
+
<thead>
|
|
219
|
+
<tr>
|
|
220
|
+
<th
|
|
221
|
+
v-for="column in deliveryColumns"
|
|
222
|
+
:key="column.id"
|
|
223
|
+
>
|
|
224
|
+
{{ column.label }}
|
|
225
|
+
</th>
|
|
226
|
+
</tr>
|
|
227
|
+
</thead>
|
|
228
|
+
<tbody>
|
|
229
|
+
<tr
|
|
230
|
+
v-for="row in deliveryRows"
|
|
231
|
+
:key="row.id"
|
|
232
|
+
>
|
|
233
|
+
<td
|
|
234
|
+
v-for="(cell, index) in row.cells"
|
|
235
|
+
:key="row.id + '-' + index"
|
|
236
|
+
>
|
|
237
|
+
{{ cell }}
|
|
238
|
+
</td>
|
|
239
|
+
</tr>
|
|
240
|
+
</tbody>
|
|
241
|
+
</table>
|
|
242
|
+
</div>
|
|
243
|
+
</pz-info-block-layout>
|
|
244
|
+
</div>
|
|
245
|
+
</section>
|
|
246
|
+
</div>
|
|
247
|
+
</section>
|
|
248
|
+
`})},a={};var p,u,y;a.parameters={...a.parameters,docs:{...(p=a.parameters)==null?void 0:p.docs,source:{originalSource:"{}",...(y=(u=a.parameters)==null?void 0:u.docs)==null?void 0:y.source}}};const E=["Playground"];export{a as Playground,E as __namedExportsOrder,H as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as i,i as p,j as r,o as n,p as s,q as c,e as o,s as m,t as l,u as f,F as u}from"./iframe-Ckq2fQkL.js";import{_ as d}from"./PzIcon-DTWQGv5c.js";import{P as _}from"./PzHint-BhuDfy-l.js";import{_ as P}from"./PzText-BOcxbzaG.js";const z={type:"button","aria-label":"Information",class:"pz-info-hint-trigger"},a=i({name:"PzInfoHint",__name:"PzInfoHint",props:{infoContent:{},wrapperClass:{default:""},containerWrapperClass:{default:""},placement:{default:"top"}},setup(e){return(C,I)=>(n(),p(_,{"wrapper-class":e.wrapperClass,"container-wrapper-class":e.containerWrapperClass,placement:e.placement,theme:"dark-tooltip"},{content:r(()=>[(n(!0),o(u,null,m(e.infoContent,t=>(n(),o("p",{key:t.id},[s("b",null,l(t.title??""),1),f(" "+l(t.text??""),1)]))),128))]),default:r(()=>[s("button",z,[c(d,{name:"help",size:"16",class:"pz-info-hint-icon"})])]),_:1},8,["wrapper-class","container-wrapper-class","placement"]))}}),h=P(a,[["__scopeId","data-v-d7b247cb"]]);a.__docgenInfo=Object.assign({displayName:a.name??a.__name},{name:"PzInfoHint",exportName:"default",displayName:"PzInfoHint",description:"",tags:{},props:[{name:"infoContent",required:!0,type:{name:"Array",elements:[{name:"PzInfoHintContent"}]}},{name:"wrapperClass",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"containerWrapperClass",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"placement",required:!1,type:{name:"Placement"},defaultValue:{func:!1,value:'"top"'}}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Popups/PzInfoHint/PzInfoHint.vue"]});export{h as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pz-info-hint-trigger[data-v-d7b247cb]{display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;cursor:pointer}.pz-info-hint-trigger[data-v-d7b247cb]:focus-visible{outline:2px solid var(--pz-color-blue-50);outline-offset:2px;border-radius:999px}.pz-info-hint-icon[data-v-d7b247cb]{display:block}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pz-info-hint-story{display:grid;gap:20px;max-width:760px}.pz-info-hint-story-header{display:flex;justify-content:space-between;gap:16px;align-items:start}.pz-info-hint-story-eyebrow,.pz-info-hint-story-chip{display:inline-flex;align-items:center;width:fit-content;padding:6px 10px;border-radius:999px;background:color-mix(in srgb,var(--pz-color-blue-10) 90%,var(--pz-color-white));color:var(--pz-color-text-link-hover);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.pz-info-hint-story-preview,.pz-info-hint-story-card{padding:24px;border:1px solid color-mix(in srgb,var(--pz-color-grey-30) 72%,transparent);border-radius:24px;background:linear-gradient(180deg,var(--pz-color-white),color-mix(in srgb,var(--pz-color-grey-20) 84%,var(--pz-color-white)));box-shadow:0 18px 60px color-mix(in srgb,var(--pz-color-black-90) 8%,transparent)}.pz-info-hint-story-gallery{display:grid;gap:12px}.pz-info-hint-story-card{display:grid;gap:6px}.pz-info-hint-story-label{margin:0;color:var(--pz-color-text-link-hover);font-size:12px;font-weight:700;text-transform:uppercase}.pz-info-hint-story-copy{margin:0;color:var(--pz-color-text-secondary);line-height:1.6}
|
|
1
|
+
.pz-info-hint-story{display:grid;gap:20px;max-width:760px}.pz-info-hint-story-header{display:flex;justify-content:space-between;gap:16px;align-items:start}.pz-info-hint-story-eyebrow,.pz-info-hint-story-chip{display:inline-flex;align-items:center;width:fit-content;padding:6px 10px;border-radius:999px;background:color-mix(in srgb,var(--pz-color-blue-10) 90%,var(--pz-color-white));color:var(--pz-color-text-link-hover);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.pz-info-hint-story-preview,.pz-info-hint-story-card{padding:24px;border:1px solid color-mix(in srgb,var(--pz-color-grey-30) 72%,transparent);border-radius:24px;background:linear-gradient(180deg,var(--pz-color-white),color-mix(in srgb,var(--pz-color-grey-20) 84%,var(--pz-color-white)));box-shadow:0 18px 60px color-mix(in srgb,var(--pz-color-black-90) 8%,transparent)}.pz-info-hint-story-gallery{display:grid;gap:12px}.pz-info-hint-story-card{display:grid;gap:6px}.pz-info-hint-story-label{margin:0;color:var(--pz-color-text-link-hover);font-size:12px;font-weight:700;text-transform:uppercase}.pz-info-hint-story-copy{margin:0;color:var(--pz-color-text-secondary);line-height:1.6}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import{P as a}from"./PzText-BOcxbzaG.js";import{P as e}from"./PzInfoHint-C-UyP8PR.js";import"./iframe-Ckq2fQkL.js";import"./preload-helper-C1FmrZbK.js";import"./PzIcon-DTWQGv5c.js";import"./PzHint-BhuDfy-l.js";import"./floating-vue-D0dcONsr.js";const o=[{id:"deadline",title:"Deadline",text:"Shown in local time and aligned with the procurement schedule."},{id:"contact",title:"Contact",text:"Responsible contact details stay visible near the request label."}],p=()=>`<template>
|
|
2
|
+
<PzInfoHint
|
|
3
|
+
:info-content="[
|
|
4
|
+
{ id: 'deadline', title: 'Deadline', text: 'Shown in local time and aligned with the procurement schedule.' },
|
|
5
|
+
{ id: 'contact', title: 'Contact', text: 'Responsible contact details stay visible near the request label.' },
|
|
6
|
+
]"
|
|
7
|
+
/>
|
|
8
|
+
</template>`,y={title:"Components/Popups/PzInfoHint",component:e,parameters:{prototype:{caption:"Info hint component",note:"Specialized helper that composes the shared tooltip shell with the design-system help icon and structured info rows."},docs:{description:{component:"Use `PzInfoHint` for structured helper text that needs a consistent help icon. It renders each row from `infoContent` inside the shared `PzHint` wrapper and defaults to the dark tooltip theme."},source:{transform:p}}},args:{infoContent:o,wrapperClass:"",containerWrapperClass:"",placement:"top"},argTypes:{infoContent:{control:!1,description:"Structured rows shown inside the popper.",table:{category:"Slots"}},wrapperClass:{control:"text",description:"Additional class applied to the popper wrapper."},containerWrapperClass:{control:"text",description:"Additional class applied to the outer trigger container."},placement:{control:"select",options:["top","top-start"],description:"Tooltip placement relative to the trigger."}},render:s=>({components:{pzInfoHint:e,pzText:a},setup(){return{args:s,infoHintItems:o}},template:`
|
|
9
|
+
<section class="pz-info-hint-story">
|
|
10
|
+
<div class="pz-info-hint-story-header">
|
|
11
|
+
<div>
|
|
12
|
+
<span class="pz-info-hint-story-eyebrow">Component API</span>
|
|
13
|
+
<pz-text variant="h4-bold">Structured info hint</pz-text>
|
|
14
|
+
</div>
|
|
15
|
+
<span class="pz-info-hint-story-chip">{{ args.placement }}</span>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div class="pz-info-hint-story-preview">
|
|
19
|
+
<pz-info-hint
|
|
20
|
+
:info-content="args.infoContent"
|
|
21
|
+
:wrapper-class="args.wrapperClass"
|
|
22
|
+
:container-wrapper-class="args.containerWrapperClass"
|
|
23
|
+
:placement="args.placement"
|
|
24
|
+
/>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="pz-info-hint-story-gallery">
|
|
28
|
+
<article
|
|
29
|
+
v-for="item in infoHintItems"
|
|
30
|
+
:key="item.id"
|
|
31
|
+
class="pz-info-hint-story-card"
|
|
32
|
+
>
|
|
33
|
+
<p class="pz-info-hint-story-label">{{ item.title }}</p>
|
|
34
|
+
<p class="pz-info-hint-story-copy">{{ item.text }}</p>
|
|
35
|
+
</article>
|
|
36
|
+
</div>
|
|
37
|
+
</section>
|
|
38
|
+
`})},t={};var n,i,r;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:"{}",...(r=(i=t.parameters)==null?void 0:i.docs)==null?void 0:r.source}}};const z=["Playground"];export{t as Playground,z as __namedExportsOrder,y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pz-input[data-v-7696acd3]{--pz-input-background: var(--pz-color-white);--pz-input-border: var(--pz-color-grey-30);--pz-input-text: var(--pz-color-text-primary);--pz-input-placeholder: var(--pz-color-grey-50);--pz-input-icon-color: var(--pz-color-grey-50);position:relative;display:block;color:var(--pz-input-text);font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-input-wrap[data-v-7696acd3]{position:relative;display:block}.pz-input-control[data-v-7696acd3]{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-border);background-color:var(--pz-input-background);color:var(--pz-input-text);font:inherit}.pz-input-control[data-v-7696acd3]:focus{outline:2px solid var(--pz-color-blue-30);outline-offset:0}.pz-input-control[data-v-7696acd3]::placeholder{color:var(--pz-input-placeholder)}.pz-input-control[data-v-7696acd3]:disabled{--pz-input-background: transparent;--pz-input-text: var(--pz-color-grey-40);--pz-input-placeholder: var(--pz-color-grey-40);cursor:default}.pz-input-control--with-icon[data-v-7696acd3]{padding-right:var(--pz-space-32)}.pz-input-control--counted[data-v-7696acd3]{padding-right:var(--pz-space-60)}.pz-input-readonly[data-v-7696acd3]{display:block;margin:0;padding:0;color:var(--pz-color-text-secondary);-webkit-user-select:none;user-select:none}.pz-input-icon[data-v-7696acd3]{position:absolute;bottom:var(--pz-space-8);right:var(--pz-space-4);font-size:var(--pz-font-size-20);color:var(--pz-input-icon-color)}.pz-input-counter[data-v-7696acd3]{position:absolute;top:50%;right:var(--pz-space-8);transform:translateY(-50%);color:var(--pz-input-icon-color);font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-input-error[data-v-7696acd3]{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.light .pz-input-control[data-v-7696acd3]{padding-top:var(--pz-space-12);padding-bottom:var(--pz-space-12);border-color:var(--pz-color-blue-30)}.pz-input.error .pz-input-control[data-v-7696acd3]{border-color:var(--pz-color-red-50)}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import{d as q,L as w,e as d,q as S,j as P,y as b,f as y,M as h,o as i,p as k,N as I,O as M,t as u,i as B,m,r as l,w as L}from"./iframe-Ckq2fQkL.js";import{_ as $,P as C}from"./PzText-BOcxbzaG.js";import{_ as N}from"./PzIcon-DTWQGv5c.js";import{P as D}from"./PzLabel-jmQOAHGo.js";import"./preload-helper-C1FmrZbK.js";const O={class:"pz-input-wrap"},T=["id","placeholder","disabled","maxlength","type","required"],j=["id"],F={key:3,class:"pz-input-counter"},E={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)=>(i(),d("div",{class:y(["pz-input",{light:e.isLightSkin,error:e.errorMessage,disabled:e.disabled}])},[S(b(D),{label:e.label,for:e.name,required:e.required,disabled:e.disabled},{default:P(()=>{var s;return[k("span",O,[e.editable?I((i(),d("input",{key:0,id:e.name,"onUpdate:modelValue":a[0]||(a[0]=r=>o.value=r),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]=r=>n("blur")),onFocus:a[2]||(a[2]=r=>n("focus"))},null,42,T)),[[M,o.value]]):(i(),d("span",{key:1,id:e.name,class:"pz-input-readonly"},u(o.value),9,j)),e.icon?(i(),B(b(N),{key:2,name:e.icon,class:"pz-input-icon"},null,8,["name"])):m("",!0),e.counted?(i(),d("span",F,u(((s=o.value)==null?void 0:s.length)||0)+"/"+u(e.maxSize),1)):m("",!0)]),e.errorMessage?(i(),d("span",E,u(e.errorMessage),1)):m("",!0)]}),_:1},8,["label","for","required","disabled"])],2))}}),v=$(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 A=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>`,U={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)=>A(t.args??U.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:C},setup(){const t=l(e.modelValue??""),n=l(""),o=l(""),f=l(""),a=l(""),s=l(""),r=l("");return L(()=>e.modelValue,V=>{t.value=V??""}),{args:e,value:t,sharedValue:n,defaultValue:o,requiredValue:f,countedValue:a,iconValue:s,errorValue:r}},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 K=["Playground"];export{c as Playground,K as __namedExportsOrder,U 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 Y,L as $,e as i,q as h,j as B,y,f as g,M as x,o as s,P as C,t as z,m as L,r as t,J as T,w as N}from"./iframe-Ckq2fQkL.js";import{_ as O,P as R}from"./PzText-BOcxbzaG.js";import{_ as E}from"./PzIcon-DTWQGv5c.js";import{P as F}from"./PzLabel-jmQOAHGo.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"],J=["id"],U={key:2,class:"pz-input-date-error"},p=Y({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=$(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(F),{label:e.label,for:e.name,required:e.required,disabled:e.disabled},{default:B(()=>[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(E),{name:a.value?"close":"event",class:g(["pz-input-date-icon",{"pz-input-date-icon--clear":a.value}]),onClick:C(S,["prevent"])},null,8,["name","class"])])):(s(),i("span",{key:1,id:e.name,class:"pz-input-date-readonly"},z(c(a.value)),9,J)),e.errorMessage?(s(),i("span",U,z(e.errorMessage),1)):L("",!0)]),_:1},8,["label","for","required","disabled"])],2))}}),V=O(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:R},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 ee=["Playground"];export{m as Playground,ee as __namedExportsOrder,H as default};
|