@prozorro/prozorro-ui 0.0.10-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.
Files changed (153) hide show
  1. package/dist/app/assets/{Color-FRDS63T2-NkJWwZpV.js → Color-FRDS63T2-DeJ6boVB.js} +1 -1
  2. package/dist/app/assets/{Colors.stories-BYTBLsDR.js → Colors.stories-GBcoNXc7.js} +3 -3
  3. package/dist/app/assets/{DocsRenderer-LL677BLK-DT0XE5RB.js → DocsRenderer-LL677BLK-P1omigwk.js} +71 -71
  4. package/dist/app/assets/{Grid.stories-B3nKsUwh.js → Grid.stories-DoLbqWtw.js} +23 -2
  5. package/dist/app/assets/PzAccordion-B8uG5LU8.js +1 -0
  6. package/dist/app/assets/{PzAccordion.stories-cOAYUrCJ.js → PzAccordion.stories-CzEbkA1U.js} +2 -2
  7. package/dist/app/assets/PzAccordionTable.stories-CWSrb6Rz.js +275 -0
  8. package/dist/app/assets/{PzArrayClamp.stories-Btd9xMHi.js → PzArrayClamp.stories-DXt6cxXy.js} +4 -4
  9. package/dist/app/assets/{PzBreadcrumb.stories-D54RjRCg.js → PzBreadcrumb.stories-BYy2AFV5.js} +5 -5
  10. package/dist/app/assets/PzBtn-lJz7FmKO.js +1 -0
  11. package/dist/app/assets/{PzBtn.stories-xnSEsakq.js → PzBtn.stories-u2aA2xzz.js} +2 -2
  12. package/dist/app/assets/PzCheckbox-xcF_sDjQ.js +1 -0
  13. package/dist/app/assets/{PzCheckbox.stories-RN07sGno.js → PzCheckbox.stories-DeiqBONq.js} +4 -4
  14. package/dist/app/assets/{PzCheckboxGroup.stories-KogRihCz.js → PzCheckboxGroup.stories-Dc1lNYrg.js} +3 -3
  15. package/dist/app/assets/PzClamp-0zNrPrFL.css +1 -0
  16. package/dist/app/assets/PzClamp.stories-ChyM4wQP.js +1 -0
  17. package/dist/app/assets/PzCopyToClipboard-DYvP-lFq.css +1 -0
  18. package/dist/app/assets/PzCopyToClipboard.stories-BvTs8-Qo.js +45 -0
  19. package/dist/app/assets/PzDate-DzxkQx_5.css +1 -0
  20. package/dist/app/assets/PzDate.stories-CbNYXli-.js +116 -0
  21. package/dist/app/assets/{PzDomHandler.stories-DAp97pdG.js → PzDomHandler.stories-CNFqxouB.js} +3 -3
  22. package/dist/app/assets/{PzDropdown.stories-eClrzbYq.js → PzDropdown.stories-BIwEAqmm.js} +3 -3
  23. package/dist/app/assets/{PzFileInput.stories-Dg6-KAun.js → PzFileInput.stories-B4xxW_sF.js} +4 -4
  24. package/dist/app/assets/{PzGrid.stories-DLm_q1Lw.js → PzGrid.stories-DIiTYcYP.js} +3 -3
  25. package/dist/app/assets/PzHint-Djl4-X3l.js +1 -0
  26. package/dist/app/assets/{PzHint.stories-C2oiTVIN.js → PzHint.stories-DqZpSfmZ.js} +2 -2
  27. package/dist/app/assets/{PzIcon-DTWQGv5c.js → PzIcon-BNwLASSZ.js} +1 -1
  28. package/dist/app/assets/{PzIcon.stories-CT6OA9PM.js → PzIcon.stories-CPbH32o0.js} +2 -2
  29. package/dist/app/assets/{PzImage.stories-BJL_3ef9.js → PzImage.stories-DaDmEHw0.js} +3 -3
  30. package/dist/app/assets/{PzImageInput.stories-CTksIxMS.js → PzImageInput.stories-CqBH8e63.js} +4 -4
  31. package/dist/app/assets/{PzInfoBlockLayout.stories-BBkiY-o7.js → PzInfoBlockLayout.stories-9CCtPFO-.js} +3 -3
  32. package/dist/app/assets/PzInfoHint-CbH3ypH1.js +1 -0
  33. package/dist/app/assets/{PzInfoHint.stories-6f6FePkY.js → PzInfoHint.stories-jwokRQkS.js} +3 -3
  34. package/dist/app/assets/{PzInput.stories-Bm_5Kj-P.js → PzInput.stories-BINq-o4I.js} +3 -3
  35. package/dist/app/assets/{PzInputDate.stories-Ccqq1p1p.js → PzInputDate.stories-CCdrBEY7.js} +3 -3
  36. package/dist/app/assets/{PzInputNumber.stories-DAQYW2cJ.js → PzInputNumber.stories-I4-WO1id.js} +3 -3
  37. package/dist/app/assets/{PzKeyValue.stories-BrV9VQaC.js → PzKeyValue.stories-DtyWU98t.js} +4 -4
  38. package/dist/app/assets/PzLabel-Coa549nk.js +1 -0
  39. package/dist/app/assets/{PzLabel.stories-DvN_0fOj.js → PzLabel.stories-DMxqqqgC.js} +3 -3
  40. package/dist/app/assets/PzLink-BlhtooDh.js +1 -0
  41. package/dist/app/assets/{PzLink.stories-BnY0IvI7.js → PzLink.stories-Cc_7lCaq.js} +2 -2
  42. package/dist/app/assets/PzListNav-DRMKw6wp.css +1 -0
  43. package/dist/app/assets/PzListNav.stories-BTZ7YDz-.js +37 -0
  44. package/dist/app/assets/PzLoader-J7_Govh3.css +1 -0
  45. package/dist/app/assets/PzLoader.stories-4iPgw47o.js +9 -0
  46. package/dist/app/assets/{PzModal.stories-Bq5YuGJo.js → PzModal.stories-COv27-JY.js} +4 -4
  47. package/dist/app/assets/PzMultiSelect-DeX8aBEQ.css +1 -0
  48. package/dist/app/assets/PzMultiSelect.stories-DqKbYF9e.js +453 -0
  49. package/dist/app/assets/{PzNav.stories-5KiqcPrd.js → PzNav.stories-8SxncW0m.js} +2 -2
  50. package/dist/app/assets/{PzNumberFormat.stories-QyheTXgc.js → PzNumberFormat.stories-CDG6_Sk8.js} +2 -2
  51. package/dist/app/assets/PzPagination-D9MVz0_M.js +1 -0
  52. package/dist/app/assets/PzPagination-k9D0Hxrx.css +1 -0
  53. package/dist/app/assets/{PzPagination-07CphuYh.css → PzPagination-ohvV8gN-.css} +1 -1
  54. package/dist/app/assets/PzPagination.stories-DNvwL2lG.js +83 -0
  55. package/dist/app/assets/{PzPriceFormat.stories-Clj4FRWT.js → PzPriceFormat.stories-C-p8Sb5s.js} +2 -2
  56. package/dist/app/assets/{PzRadioGroup.stories-o8HE47Hq.js → PzRadioGroup.stories-DC2poHLC.js} +3 -3
  57. package/dist/app/assets/{PzRouterLink.stories-Dc_EnCBz.js → PzRouterLink.stories-DzGN2JP5.js} +2 -2
  58. package/dist/app/assets/{PzScrollTo.stories-4BSDyJ2p.js → PzScrollTo.stories-Bx37NsA6.js} +2 -2
  59. package/dist/app/assets/{PzSearchResultItemLayout.stories-QRI-A0Zi.js → PzSearchResultItemLayout.stories-vkVys3LL.js} +3 -3
  60. package/dist/app/assets/PzSelect-BwhRsTZd.css +1 -0
  61. package/dist/app/assets/PzSelect-CrTXtlds.js +1 -0
  62. package/dist/app/assets/PzSelect-Del6HRlD.css +1 -0
  63. package/dist/app/assets/PzSelect.stories-5MWUfKeM.js +292 -0
  64. package/dist/app/assets/PzSkeleton-Fcc0OCQj.js +1 -0
  65. package/dist/app/assets/{PzSkeleton.stories-Djp-bBqZ.js → PzSkeleton.stories-q1l5sP1S.js} +2 -2
  66. package/dist/app/assets/PzStatus-cmEVvisl.js +1 -0
  67. package/dist/app/assets/{PzStatus.stories-BZ2XwRJs.js → PzStatus.stories-CkZ6lYqY.js} +2 -2
  68. package/dist/app/assets/PzTable-wM00v3b7.js +1 -0
  69. package/dist/app/assets/{PzTable.stories-C76ZN_A5.js → PzTable.stories-CGODSdZ2.js} +3 -3
  70. package/dist/app/assets/{PzTabs.stories-DHf6EZU7.js → PzTabs.stories-C5h0sXNa.js} +5 -5
  71. package/dist/app/assets/PzTag-9D_K2A9q.js +1 -0
  72. package/dist/app/assets/{PzTag.stories-BIrmr98f.js → PzTag.stories-E9YuXCey.js} +2 -2
  73. package/dist/app/assets/PzText-LkAZaPCW.js +1 -0
  74. package/dist/app/assets/{PzText.stories-Cr6TBVe6.js → PzText.stories-DICYEnSM.js} +8 -8
  75. package/dist/app/assets/PzTextClamp.stories-BveyeWba.js +149 -0
  76. package/dist/app/assets/{PzTextarea.stories--ghqzz2f.js → PzTextarea.stories-BtHMdHUF.js} +3 -3
  77. package/dist/app/assets/{PzValidatorXSS.stories-zCaJ6Q__.js → PzValidatorXSS.stories-B7ussB1u.js} +3 -3
  78. package/dist/app/assets/{Spacing-B5TnfKCB.css → Spacing-DDiZ9XB6.css} +1 -1
  79. package/dist/app/assets/{Spacing.stories-Dzeg7Tfn.js → Spacing.stories-IeHBLcii.js} +29 -2
  80. package/dist/app/assets/Typography.stories-DigE2FGD.js +47 -0
  81. package/dist/app/assets/{WithTooltip-65CFNBJE-C0efi5Yj.js → WithTooltip-65CFNBJE-CARy1qAy.js} +2 -2
  82. package/dist/app/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
  83. package/dist/app/assets/floating-vue-B4YMiR3n.js +1 -0
  84. package/dist/app/assets/floating-vue-BXOYXd0R.js +1 -0
  85. package/dist/app/assets/{formatter-EIJCOSYU-Noau93iy.js → formatter-EIJCOSYU-AVmvplX0.js} +1 -1
  86. package/dist/app/assets/iframe-4qk0Ss25.css +1 -0
  87. package/dist/app/assets/{iframe-Ckq2fQkL.js → iframe-DbWuH5mz.js} +134 -134
  88. package/dist/app/assets/index-LkANHSb5.js +1 -0
  89. package/dist/app/assets/{syntaxhighlighter-OH4MV7E3-ByOORGJm.js → syntaxhighlighter-OH4MV7E3-DKud-BAu.js} +3 -3
  90. package/dist/app/assets/text-clamp.esm-BLa2P3lJ.js +1 -0
  91. package/dist/app/iframe.html +81 -76
  92. package/dist/app/index.json +1 -1
  93. package/dist/app/project.json +1 -1
  94. package/dist/app/sb-manager/globals-runtime.js +1 -1
  95. package/dist/components/Actions/PzCopyToClipboard/PzCopyToClipboard.vue.d.ts +33 -0
  96. package/dist/components/Actions/PzCopyToClipboard/index.d.ts +2 -0
  97. package/dist/components/Actions/PzCopyToClipboard/types.d.ts +17 -0
  98. package/dist/components/Actions/PzLink/configs.d.ts +1 -1
  99. package/dist/components/Display/PzClamp/PzClamp.vue.d.ts +8 -0
  100. package/dist/components/Display/PzClamp/index.d.ts +2 -0
  101. package/dist/components/Display/PzClamp/types.d.ts +7 -0
  102. package/dist/components/Display/PzDate/PzDate.vue.d.ts +5 -0
  103. package/dist/components/Display/PzDate/index.d.ts +2 -0
  104. package/dist/components/Display/PzDate/types.d.ts +5 -0
  105. package/dist/components/Display/PzLoader/PzLoader.vue.d.ts +7 -0
  106. package/dist/components/Display/PzLoader/index.d.ts +2 -0
  107. package/dist/components/Display/PzLoader/types.d.ts +6 -0
  108. package/dist/components/Form/PzInput/PzInput.vue.d.ts +1 -1
  109. package/dist/components/Form/PzMultiSelect/PzMultiSelect.vue.d.ts +44 -0
  110. package/dist/components/Form/PzMultiSelect/constants.d.ts +1 -0
  111. package/dist/components/Form/PzMultiSelect/index.d.ts +2 -0
  112. package/dist/components/Form/PzMultiSelect/types.d.ts +22 -0
  113. package/dist/components/Form/PzSelect/PzSelect.vue.d.ts +42 -0
  114. package/dist/components/Form/PzSelect/configs.d.ts +1 -0
  115. package/dist/components/Form/PzSelect/constants.d.ts +1 -0
  116. package/dist/components/Form/PzSelect/index.d.ts +2 -0
  117. package/dist/components/Form/PzSelect/types.d.ts +22 -0
  118. package/dist/components/Form/shared/types.d.ts +7 -0
  119. package/dist/components/Navigation/PzListNav/PzListNav.vue.d.ts +15 -0
  120. package/dist/components/Navigation/PzListNav/index.d.ts +4 -0
  121. package/dist/components/Navigation/PzListNav/types.d.ts +9 -0
  122. package/dist/components/Navigation/shared/configs.d.ts +2 -0
  123. package/dist/components/Navigation/shared/constants.d.ts +8 -0
  124. package/dist/components/Popups/PzHint/PzHint.vue.d.ts +1 -1
  125. package/dist/components/Popups/PzInfoHint/PzInfoHint.vue.d.ts +1 -1
  126. package/dist/components/Popups/PzModal/PzModal.vue.d.ts +1 -1
  127. package/dist/components/Text/PzArrayClamp/PzArrayClamp.vue.d.ts +1 -1
  128. package/dist/components/Text/PzTextClamp/PzTextClamp.vue.d.ts +3 -3
  129. package/dist/index.d.ts +7 -0
  130. package/dist/package.json +1 -1
  131. package/dist/prozorro-ui.cjs +15 -15
  132. package/dist/prozorro-ui.js +8605 -7885
  133. package/dist/style.css +1 -1
  134. package/package.json +1 -1
  135. package/src/styles/_spacing.scss +30 -4
  136. package/dist/app/assets/PzAccordion-CTihyZc5.js +0 -1
  137. package/dist/app/assets/PzAccordionTable.stories-CVSn3lrC.js +0 -275
  138. package/dist/app/assets/PzBtn-Bz2NPCiD.js +0 -1
  139. package/dist/app/assets/PzCheckbox-DDIj_TyE.js +0 -1
  140. package/dist/app/assets/PzHint-BhuDfy-l.js +0 -1
  141. package/dist/app/assets/PzInfoHint-C-UyP8PR.js +0 -1
  142. package/dist/app/assets/PzLabel-jmQOAHGo.js +0 -1
  143. package/dist/app/assets/PzLink-CwtmibRx.js +0 -1
  144. package/dist/app/assets/PzPagination.stories-D_qRevIg.js +0 -83
  145. package/dist/app/assets/PzSkeleton-BMyhdGXq.js +0 -1
  146. package/dist/app/assets/PzStatus-rctea0Gb.js +0 -1
  147. package/dist/app/assets/PzTable-CzfehTN7.js +0 -1
  148. package/dist/app/assets/PzTag-DudHfisQ.js +0 -1
  149. package/dist/app/assets/PzText-BOcxbzaG.js +0 -1
  150. package/dist/app/assets/PzTextClamp.stories-CR0IRYLS.js +0 -149
  151. package/dist/app/assets/Typography.stories-GZEYS8Ny.js +0 -47
  152. package/dist/app/assets/floating-vue-D0dcONsr.js +0 -1
  153. package/dist/app/assets/iframe-B97zFSkg.css +0 -1
@@ -1,4 +1,4 @@
1
- import{l as p}from"./lodash-CdDiHlzQ.js";import{P as c}from"./PzText-BOcxbzaG.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-Ckq2fQkL.js";import"./preload-helper-C1FmrZbK.js";const n=100;class o{static minPriceStep(t,r){return!t||r===void 0?0:r/t}static multiplyByHundredPercent(t){if(!p.isNumber(t)&&p.isEmpty(t))return"";const r=parseFloat(t)*n;return`${Math.round(r*n)/n}%`}}const y={title:"Utilities/PzPriceFormat",parameters:{docs:{description:{component:"The `PzPriceFormat` static class provides common utilities for rendering pricing values such as minimum steps or formatting decimal percents into percent strings."}}}},i={render:()=>({components:{pzText:c},setup(){return{minPriceExamples:[{value:1e3,step:10,description:"Value 1000, minimal step 10"},{value:50,step:2,description:"Value 50, step 2"},{value:0,step:5,description:"Zero value"}].map(e=>({...e,result:o.minPriceStep(e.value,e.step)})),percentExamples:[{value:.12345,description:"Standard fractional"},{value:1,description:"Complete ratio"},{value:"0.55",description:"String fractional"}].map(e=>({...e,result:o.multiplyByHundredPercent(e.value)}))}},template:`
1
+ import{l as p}from"./lodash-CdDiHlzQ.js";import{P as c}from"./PzText-LkAZaPCW.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-DbWuH5mz.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const n=100;class o{static minPriceStep(t,r){return!t||r===void 0?0:r/t}static multiplyByHundredPercent(t){if(!p.isNumber(t)&&p.isEmpty(t))return"";const r=parseFloat(t)*n;return`${Math.round(r*n)/n}%`}}const P={title:"Utilities/PzPriceFormat",parameters:{docs:{description:{component:"The `PzPriceFormat` static class provides common utilities for rendering pricing values such as minimum steps or formatting decimal percents into percent strings."}}}},i={render:()=>({components:{pzText:c},setup(){return{minPriceExamples:[{value:1e3,step:10,description:"Value 1000, minimal step 10"},{value:50,step:2,description:"Value 50, step 2"},{value:0,step:5,description:"Zero value"}].map(e=>({...e,result:o.minPriceStep(e.value,e.step)})),percentExamples:[{value:.12345,description:"Standard fractional"},{value:1,description:"Complete ratio"},{value:"0.55",description:"String fractional"}].map(e=>({...e,result:o.multiplyByHundredPercent(e.value)}))}},template:`
2
2
  <div style="display: flex; flex-direction: column; gap: 24px;">
3
3
  <section>
4
4
  <pz-text variant="h4-semibold">minPriceStep</pz-text>
@@ -86,4 +86,4 @@ import{l as p}from"./lodash-CdDiHlzQ.js";import{P as c}from"./PzText-BOcxbzaG.js
86
86
  </div>
87
87
  \`
88
88
  })
89
- }`,...(l=(a=i.parameters)==null?void 0:a.docs)==null?void 0:l.source}}};const P=["Usage"];export{i as Usage,P as __namedExportsOrder,y as default};
89
+ }`,...(l=(a=i.parameters)==null?void 0:a.docs)==null?void 0:l.source}}};const z=["Usage"];export{i as Usage,z as __namedExportsOrder,P as default};
@@ -1,4 +1,4 @@
1
- import{d as w,e as n,F as k,s as S,f as b,o as i,p,l as g,u as _,t as C,A as v,m as R,r as f,w as O}from"./iframe-Ckq2fQkL.js";import{P as $}from"./PzLabel-jmQOAHGo.js";import{_ as L,P as B}from"./PzText-BOcxbzaG.js";import"./preload-helper-C1FmrZbK.js";const N=["aria-disabled"],q=["for"],A=["id","name","value","checked","disabled","onChange"],F={class:"pz-radio-group-label"},I={key:0,class:"pz-radio-group-content"},c=w({name:"PzRadioGroup",__name:"PzRadioGroup",props:{modelValue:{type:[String,Number,Boolean],default:void 0},name:{},disabled:{type:Boolean,default:!1},mode:{default:"default"},options:{default:()=>[]},optionClass:{default:""}},emits:["update:modelValue"],setup(e,{emit:s}){const l=e,m=s,V=o=>Object.is(l.modelValue,o),G=o=>m("update:modelValue",o),T=(o,d)=>o.id??`${l.name}-${String(d+1)}`,t=(o,d)=>({option:o,value:o.value,checked:V(o.value),disabled:!!(l.disabled||o.disabled),id:T(o,d),name:l.name});return(o,d)=>(i(),n("div",{class:b(["pz-radio-group",e.mode]),"aria-disabled":e.disabled,role:"radiogroup"},[(i(!0),n(k,null,S(e.options,(a,r)=>(i(),n("label",{key:t(a,r).id,class:b(["pz-radio-group-option",[e.optionClass,{disabled:t(a,r).disabled}]]),for:t(a,r).id},[p("input",{id:t(a,r).id,name:e.name,value:String(a.value),checked:t(a,r).checked,disabled:t(a,r).disabled,type:"radio",class:"pz-radio-group-input",onChange:U=>G(a.value)},null,40,A),d[0]||(d[0]=p("span",{class:"pz-radio-group-control","aria-hidden":"true"},[p("span",{class:"pz-radio-group-dot"})],-1)),p("span",F,[g(o.$slots,"default",v({ref_for:!0},t(a,r)),()=>[_(C(a.label),1)],!0)]),o.$slots.content&&t(a,r).checked?(i(),n("div",I,[g(o.$slots,"content",v({ref_for:!0},t(a,r)),void 0,!0)])):R("",!0)],10,q))),128))],10,N))}}),z=L(c,[["__scopeId","data-v-1a5a6243"]]);c.__docgenInfo=Object.assign({displayName:c.name??c.__name},{name:"PzRadioGroup",exportName:"default",displayName:"PzRadioGroup",description:"",tags:{},props:[{name:"modelValue",required:!1,type:{name:"PzRadioGroupValue"},defaultValue:{func:!1,value:"undefined"}},{name:"name",required:!0,type:{name:"string"}},{name:"disabled",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"mode",required:!1,type:{name:"union",elements:[{name:'"default"'},{name:'"accordion"'}]},defaultValue:{func:!1,value:'"default"'}},{name:"options",required:!0,type:{name:"Array",elements:[{name:"PzRadioGroupOption"}]},defaultValue:{func:!1,value:"() => []"}},{name:"optionClass",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}}],slots:[{name:"default",scoped:!0,bindings:[]},{name:"content",scoped:!0,bindings:[]}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Form/PzRadioGroup/PzRadioGroup.vue"]});const y=[{label:"Text radiobutton",value:"one"},{label:"Text radiobutton",value:"two"},{label:"Text radiobutton",value:"three"},{label:"Text radiobutton",value:"four"}],j=[{label:"Text radiobutton",value:"one"},{label:"Text checkboxText checkboxText checkbox",value:"two"},{label:"Text radiobutton",value:"three"},{label:"Text radiobutton",value:"four"},{label:"Text radiobutton",value:"five"}],D=e=>{const s=[`name="${e.name}"`,e.mode!=="default"?`mode="${e.mode}"`:null,e.disabled?':disabled="true"':null].filter(l=>!!l).join(" ");return`<template>
1
+ import{d as w,e as i,F as k,z as S,f as b,o as n,k as p,l as g,E as _,t as C,J as v,D as R,r as f,w as O}from"./iframe-DbWuH5mz.js";import{P as $}from"./PzLabel-Coa549nk.js";import{P as L}from"./PzText-LkAZaPCW.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";const N=["aria-disabled"],q=["for"],A=["id","name","value","checked","disabled","onChange"],F={class:"pz-radio-group-label"},I={key:0,class:"pz-radio-group-content"},c=w({name:"PzRadioGroup",__name:"PzRadioGroup",props:{modelValue:{type:[String,Number,Boolean],default:void 0},name:{},disabled:{type:Boolean,default:!1},mode:{default:"default"},options:{default:()=>[]},optionClass:{default:""}},emits:["update:modelValue"],setup(e,{emit:s}){const l=e,m=s,V=o=>Object.is(l.modelValue,o),G=o=>m("update:modelValue",o),T=(o,d)=>o.id??`${l.name}-${String(d+1)}`,t=(o,d)=>({option:o,value:o.value,checked:V(o.value),disabled:!!(l.disabled||o.disabled),id:T(o,d),name:l.name});return(o,d)=>(n(),i("div",{class:b(["pz-radio-group",e.mode]),"aria-disabled":e.disabled,role:"radiogroup"},[(n(!0),i(k,null,S(e.options,(a,r)=>(n(),i("label",{key:t(a,r).id,class:b(["pz-radio-group-option",[e.optionClass,{disabled:t(a,r).disabled}]]),for:t(a,r).id},[p("input",{id:t(a,r).id,name:e.name,value:String(a.value),checked:t(a,r).checked,disabled:t(a,r).disabled,type:"radio",class:"pz-radio-group-input",onChange:J=>G(a.value)},null,40,A),d[0]||(d[0]=p("span",{class:"pz-radio-group-control","aria-hidden":"true"},[p("span",{class:"pz-radio-group-dot"})],-1)),p("span",F,[g(o.$slots,"default",v({ref_for:!0},t(a,r)),()=>[_(C(a.label),1)],!0)]),o.$slots.content&&t(a,r).checked?(n(),i("div",I,[g(o.$slots,"content",v({ref_for:!0},t(a,r)),void 0,!0)])):R("",!0)],10,q))),128))],10,N))}}),z=B(c,[["__scopeId","data-v-1a5a6243"]]);c.__docgenInfo=Object.assign({displayName:c.name??c.__name},{name:"PzRadioGroup",exportName:"default",displayName:"PzRadioGroup",description:"",tags:{},props:[{name:"modelValue",required:!1,type:{name:"PzRadioGroupValue"},defaultValue:{func:!1,value:"undefined"}},{name:"name",required:!0,type:{name:"string"}},{name:"disabled",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"mode",required:!1,type:{name:"union",elements:[{name:'"default"'},{name:'"accordion"'}]},defaultValue:{func:!1,value:'"default"'}},{name:"options",required:!0,type:{name:"Array",elements:[{name:"PzRadioGroupOption"}]},defaultValue:{func:!1,value:"() => []"}},{name:"optionClass",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}}],slots:[{name:"default",scoped:!0,bindings:[]},{name:"content",scoped:!0,bindings:[]}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Form/PzRadioGroup/PzRadioGroup.vue"]});const y=[{label:"Text radiobutton",value:"one"},{label:"Text radiobutton",value:"two"},{label:"Text radiobutton",value:"three"},{label:"Text radiobutton",value:"four"}],j=[{label:"Text radiobutton",value:"one"},{label:"Text checkboxText checkboxText checkbox",value:"two"},{label:"Text radiobutton",value:"three"},{label:"Text radiobutton",value:"four"},{label:"Text radiobutton",value:"five"}],D=e=>{const s=[`name="${e.name}"`,e.mode!=="default"?`mode="${e.mode}"`:null,e.disabled?':disabled="true"':null].filter(l=>!!l).join(" ");return`<template>
2
2
  <PzLabel label="${e.heading}">
3
3
  <PzRadioGroup
4
4
  v-model="selectedValue"
@@ -18,7 +18,7 @@ const options = [
18
18
  ];
19
19
 
20
20
  const selectedValue = ref("two");
21
- <\/script>`},E={title:"Components/Form/PzRadioGroup",component:z,parameters:{docs:{description:{component:"Use `PzRadioGroup` for single-choice lists backed by one primitive `value`. The component keeps the legacy accordion content pattern, but aligns the API and styling with the current `Pz*` form controls."},source:{transform:(e,s)=>D(s.args??E.args)}}},args:{heading:"Назва поля",modelValue:"two",options:y,name:"radio-group-story",mode:"default",disabled:!1,optionClass:""},argTypes:{modelValue:{control:!1,description:"Selected option value."},options:{control:!1,description:"Array of radio options with `label`, `value`, and optional `disabled`/`id`."},name:{control:"text",description:"Shared native input name."},mode:{control:"inline-radio",options:["default","accordion"],description:"Default stacked list or separated accordion-style list."},disabled:{control:"boolean",description:"Disables every option in the group."},optionClass:{control:"text",description:"Optional additional class applied to each option wrapper."},heading:{control:"text",description:"Story-only field label shown through `PzLabel`.",table:{category:"Story"}}},render:e=>({components:{pzLabel:$,pzRadioGroup:z,pzText:B},setup(){const s=f(e.modelValue),l=f("two");return O(()=>e.modelValue,m=>{s.value=m}),{args:e,accordionValue:l,longLabelOptions:j,radioOptions:y,selectedValue:s}},template:`
21
+ <\/script>`},E={title:"Components/Form/PzRadioGroup",component:z,parameters:{docs:{description:{component:"Use `PzRadioGroup` for single-choice lists backed by one primitive `value`. The component keeps the legacy accordion content pattern, but aligns the API and styling with the current `Pz*` form controls."},source:{transform:(e,s)=>D(s.args??E.args)}}},args:{heading:"Назва поля",modelValue:"two",options:y,name:"radio-group-story",mode:"default",disabled:!1,optionClass:""},argTypes:{modelValue:{control:!1,description:"Selected option value."},options:{control:!1,description:"Array of radio options with `label`, `value`, and optional `disabled`/`id`."},name:{control:"text",description:"Shared native input name."},mode:{control:"inline-radio",options:["default","accordion"],description:"Default stacked list or separated accordion-style list."},disabled:{control:"boolean",description:"Disables every option in the group."},optionClass:{control:"text",description:"Optional additional class applied to each option wrapper."},heading:{control:"text",description:"Story-only field label shown through `PzLabel`.",table:{category:"Story"}}},render:e=>({components:{pzLabel:$,pzRadioGroup:z,pzText:L},setup(){const s=f(e.modelValue),l=f("two");return O(()=>e.modelValue,m=>{s.value=m}),{args:e,accordionValue:l,longLabelOptions:j,radioOptions:y,selectedValue:s}},template:`
22
22
  <div class="pz-radio-group-story">
23
23
  <section class="pz-radio-group-story-board">
24
24
  <div class="pz-radio-group-story-header">
@@ -127,4 +127,4 @@ const selectedValue = ref("two");
127
127
  }
128
128
  }
129
129
  }
130
- }`,...(x=(P=u.parameters)==null?void 0:P.docs)==null?void 0:x.source}}};const M=["Playground"];export{u as Playground,M as __namedExportsOrder,E as default};
130
+ }`,...(x=(P=u.parameters)==null?void 0:P.docs)==null?void 0:x.source}}};const Q=["Playground"];export{u as Playground,Q as __namedExportsOrder,E as default};
@@ -1,4 +1,4 @@
1
- import{d as g,x as v,i as k,j as n,y as s,R as z,o as y,q as x,z as P,l as u,A as w,g as R,B as _}from"./iframe-Ckq2fQkL.js";import{p as L,a as S}from"./configs-DshpCAYO.js";import{_ as V}from"./PzIcon-DTWQGv5c.js";import{P as A}from"./PzText-BOcxbzaG.js";import{P as T}from"./PzLink-CwtmibRx.js";import"./preload-helper-C1FmrZbK.js";const l=g({name:"PzRouterLink",inheritAttrs:!1,__name:"PzRouterLink",props:{to:{},replace:{type:Boolean,default:!1},variant:{default:"primary"},target:{default:"_self"},rel:{default:void 0},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!0},bold:{type:Boolean,default:!1},italic:{type:Boolean,default:!1},lineThrough:{type:Boolean,default:!1}},setup(e){const t=e,o=v(),r=(a,p)=>{t.disabled||t.target!=="_self"||p(a)};return(a,p)=>(y(),k(s(z),{custom:"",to:t.to,replace:t.replace},{default:n(({href:m,navigate:h})=>[x(s(T),w(s(o),{href:m,variant:t.variant,target:t.target,rel:t.rel,disabled:t.disabled,inline:t.inline,bold:t.bold,italic:t.italic,"line-through":t.lineThrough,onClick:b=>r(b,h)}),P({default:n(()=>[u(a.$slots,"default")]),_:2},[a.$slots.prefix?{name:"prefix",fn:n(()=>[u(a.$slots,"prefix")]),key:"0"}:void 0,a.$slots.suffix?{name:"suffix",fn:n(()=>[u(a.$slots,"suffix")]),key:"1"}:void 0]),1040,["href","variant","target","rel","disabled","inline","bold","italic","line-through","onClick"])]),_:3},8,["to","replace"]))}});l.__docgenInfo=Object.assign({displayName:l.name??l.__name},{name:"PzRouterLink",exportName:"default",displayName:"PzRouterLink",description:"",tags:{},props:[{name:"to",required:!0,type:{name:"PzRouterLinkTo"}},{name:"replace",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"variant",defaultValue:{func:!1,value:'"primary"'}},{name:"target",defaultValue:{func:!1,value:'"_self"'}},{name:"rel",defaultValue:{func:!1,value:"undefined"}},{name:"disabled",defaultValue:{func:!1,value:"false"}},{name:"inline",defaultValue:{func:!1,value:"true"}},{name:"bold",defaultValue:{func:!1,value:"false"}},{name:"italic",defaultValue:{func:!1,value:"false"}},{name:"lineThrough",defaultValue:{func:!1,value:"false"}}],slots:[{name:"prefix"},{name:"default"},{name:"suffix"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Actions/PzRouterLink/PzRouterLink.vue"]});const $=e=>{const o=[`to="${typeof e.to=="string"?e.to:JSON.stringify(e.to)}"`,e.variant!=="primary"?`variant="${e.variant}"`:null,e.target!=="_self"?`target="${e.target}"`:null,e.disabled?':disabled="true"':null,e.inline===!1?':inline="false"':null,e.bold?':bold="true"':null,e.italic?':italic="true"':null,e.lineThrough?':line-through="true"':null,e.replace?':replace="true"':null].filter(a=>!!a).join(" "),r=[e.showPrefix?` <template #prefix>
1
+ import{d as g,H as v,A as k,C as n,u as s,R as z,o as y,y as x,I as P,l as u,J as w,g as R,K as _}from"./iframe-DbWuH5mz.js";import{p as L,a as S}from"./configs-DshpCAYO.js";import{_ as V}from"./PzIcon-BNwLASSZ.js";import{P as A}from"./PzText-LkAZaPCW.js";import{P as T}from"./PzLink-BlhtooDh.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const l=g({name:"PzRouterLink",inheritAttrs:!1,__name:"PzRouterLink",props:{to:{},replace:{type:Boolean,default:!1},variant:{default:"primary"},target:{default:"_self"},rel:{default:void 0},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!0},bold:{type:Boolean,default:!1},italic:{type:Boolean,default:!1},lineThrough:{type:Boolean,default:!1}},setup(e){const t=e,o=v(),r=(a,p)=>{t.disabled||t.target!=="_self"||p(a)};return(a,p)=>(y(),k(s(z),{custom:"",to:t.to,replace:t.replace},{default:n(({href:m,navigate:h})=>[x(s(T),w(s(o),{href:m,variant:t.variant,target:t.target,rel:t.rel,disabled:t.disabled,inline:t.inline,bold:t.bold,italic:t.italic,"line-through":t.lineThrough,onClick:b=>r(b,h)}),P({default:n(()=>[u(a.$slots,"default")]),_:2},[a.$slots.prefix?{name:"prefix",fn:n(()=>[u(a.$slots,"prefix")]),key:"0"}:void 0,a.$slots.suffix?{name:"suffix",fn:n(()=>[u(a.$slots,"suffix")]),key:"1"}:void 0]),1040,["href","variant","target","rel","disabled","inline","bold","italic","line-through","onClick"])]),_:3},8,["to","replace"]))}});l.__docgenInfo=Object.assign({displayName:l.name??l.__name},{name:"PzRouterLink",exportName:"default",displayName:"PzRouterLink",description:"",tags:{},props:[{name:"to",required:!0,type:{name:"PzRouterLinkTo"}},{name:"replace",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"variant",defaultValue:{func:!1,value:'"primary"'}},{name:"target",defaultValue:{func:!1,value:'"_self"'}},{name:"rel",defaultValue:{func:!1,value:"undefined"}},{name:"disabled",defaultValue:{func:!1,value:"false"}},{name:"inline",defaultValue:{func:!1,value:"true"}},{name:"bold",defaultValue:{func:!1,value:"false"}},{name:"italic",defaultValue:{func:!1,value:"false"}},{name:"lineThrough",defaultValue:{func:!1,value:"false"}}],slots:[{name:"prefix"},{name:"default"},{name:"suffix"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Actions/PzRouterLink/PzRouterLink.vue"]});const $=e=>{const o=[`to="${typeof e.to=="string"?e.to:JSON.stringify(e.to)}"`,e.variant!=="primary"?`variant="${e.variant}"`:null,e.target!=="_self"?`target="${e.target}"`:null,e.disabled?':disabled="true"':null,e.inline===!1?':inline="false"':null,e.bold?':bold="true"':null,e.italic?':italic="true"':null,e.lineThrough?':line-through="true"':null,e.replace?':replace="true"':null].filter(a=>!!a).join(" "),r=[e.showPrefix?` <template #prefix>
2
2
  <PzIcon name="arrow_back" size="16" />
3
3
  </template>`:null,` ${e.label}`,e.showSuffix?` <template #suffix>
4
4
  <PzIcon name="arrow_forward" size="16" />
@@ -51,4 +51,4 @@ ${r.join(`
51
51
  </div>
52
52
  </section>
53
53
  </div>
54
- `})},i={};var c,f,d;i.parameters={...i.parameters,docs:{...(c=i.parameters)==null?void 0:c.docs,source:{originalSource:"{}",...(d=(f=i.parameters)==null?void 0:f.docs)==null?void 0:d.source}}};const U=["Playground"];export{i as Playground,U as __namedExportsOrder,B as default};
54
+ `})},i={};var c,f,d;i.parameters={...i.parameters,docs:{...(c=i.parameters)==null?void 0:c.docs,source:{originalSource:"{}",...(d=(f=i.parameters)==null?void 0:f.docs)==null?void 0:d.source}}};const J=["Playground"];export{i as Playground,J as __namedExportsOrder,B as default};
@@ -1,4 +1,4 @@
1
- import{r as a,w as p,T as y}from"./iframe-Ckq2fQkL.js";import{P as f}from"./PzText-BOcxbzaG.js";import"./preload-helper-C1FmrZbK.js";const g=["auto","instant","smooth"],b=2e3,z="pz-scroll-to-highlight",S="smooth",c=t=>typeof t=="number"?{offsetTop:t}:t??{},m=t=>{if(typeof window>"u"||typeof document>"u")return null;if(typeof t=="number")return t;const o=typeof t=="string"?document.querySelector(t):t instanceof HTMLElement?t:null;return o?window.scrollY+o.getBoundingClientRect().top:null},d=(t,o)=>{if(!t||typeof window>"u")return;const s=o.highlightClassName??z,e=o.highlightDuration??b;s&&(t.classList.add(s),window.setTimeout(()=>{t.classList.remove(s)},e))};class r{static moveById(o,s){if(typeof document>"u")return!1;const e=document.getElementById(o);if(!e)return!1;const n=r.moveToElement(e,s);return n&&d(e,c(s)),n}static moveToTop(o){return r.moveTo(0,o)}static moveTo(o,s){if(typeof window>"u")return!1;const e=c(s);return window.scrollTo({top:Math.max(o-(e.offsetTop??0),0),left:0,behavior:e.behavior??S}),!0}static moveByQuerySelector(o,s){if(typeof document>"u")return!1;const e=document.querySelector(o);if(!e)return!1;const n=r.moveToElement(e,s);return n&&d(e,c(s)),n}static moveToElement(o,s){const e=m(o);return e===null?!1:r.moveTo(e,s)}static move(o,s){const e=m(o);return e===null?!1:r.moveTo(e,s)}}const T=24,P="100vh",x=t=>{const o=[t.behavior!=="smooth"?`behavior: "${t.behavior}"`:null,t.offsetTop!==T?`offsetTop: ${t.offsetTop}`:null].filter(e=>!!e).join(", ");return`<script setup lang="ts">
1
+ import{r as a,w as p,a0 as y}from"./iframe-DbWuH5mz.js";import{P as f}from"./PzText-LkAZaPCW.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const g=["auto","instant","smooth"],b=2e3,z="pz-scroll-to-highlight",S="smooth",c=t=>typeof t=="number"?{offsetTop:t}:t??{},m=t=>{if(typeof window>"u"||typeof document>"u")return null;if(typeof t=="number")return t;const o=typeof t=="string"?document.querySelector(t):t instanceof HTMLElement?t:null;return o?window.scrollY+o.getBoundingClientRect().top:null},d=(t,o)=>{if(!t||typeof window>"u")return;const s=o.highlightClassName??z,e=o.highlightDuration??b;s&&(t.classList.add(s),window.setTimeout(()=>{t.classList.remove(s)},e))};class r{static moveById(o,s){if(typeof document>"u")return!1;const e=document.getElementById(o);if(!e)return!1;const n=r.moveToElement(e,s);return n&&d(e,c(s)),n}static moveToTop(o){return r.moveTo(0,o)}static moveTo(o,s){if(typeof window>"u")return!1;const e=c(s);return window.scrollTo({top:Math.max(o-(e.offsetTop??0),0),left:0,behavior:e.behavior??S}),!0}static moveByQuerySelector(o,s){if(typeof document>"u")return!1;const e=document.querySelector(o);if(!e)return!1;const n=r.moveToElement(e,s);return n&&d(e,c(s)),n}static moveToElement(o,s){const e=m(o);return e===null?!1:r.moveTo(e,s)}static move(o,s){const e=m(o);return e===null?!1:r.moveTo(e,s)}}const T=24,P="100vh",x=t=>{const o=[t.behavior!=="smooth"?`behavior: "${t.behavior}"`:null,t.offsetTop!==T?`offsetTop: ${t.offsetTop}`:null].filter(e=>!!e).join(", ");return`<script setup lang="ts">
2
2
  import { PzScrollTo } from "@prozorro/prozorro-ui";
3
3
 
4
4
  const scrollToTenderDocuments = (): void => {
@@ -78,4 +78,4 @@ const scrollToTenderDocuments = (): void => {
78
78
  </article>
79
79
  </section>
80
80
  </div>
81
- `})},i={};var u,h,v;i.parameters={...i.parameters,docs:{...(u=i.parameters)==null?void 0:u.docs,source:{originalSource:"{}",...(v=(h=i.parameters)==null?void 0:h.docs)==null?void 0:v.source}}};const O=["Playground"];export{i as Playground,O as __namedExportsOrder,L as default};
81
+ `})},i={};var u,h,v;i.parameters={...i.parameters,docs:{...(u=i.parameters)==null?void 0:u.docs,source:{originalSource:"{}",...(v=(h=i.parameters)==null?void 0:h.docs)==null?void 0:v.source}}};const D=["Playground"];export{i as Playground,D as __namedExportsOrder,L as default};
@@ -1,4 +1,4 @@
1
- import{_ as p,P as d}from"./PzText-BOcxbzaG.js";import{d as m,i as y,j as h,k as z,o as v,p as a,l}from"./iframe-Ckq2fQkL.js";import"./preload-helper-C1FmrZbK.js";const g={class:"pz-search-result-item-layout-surface"},b={class:"pz-search-result-item-layout-grid"},f={class:"pz-search-result-item-layout-main"},L={class:"pz-search-result-item-layout-aside"},o=m({name:"PzSearchResultItemLayout",__name:"PzSearchResultItemLayout",props:{as:{default:"li"}},setup(e){const t=e;return(s,R)=>(v(),y(z(t.as),{class:"pz-search-result-item-layout"},{default:h(()=>[a("div",g,[a("div",b,[a("div",f,[l(s.$slots,"first-col",{},void 0,!0)]),a("div",L,[l(s.$slots,"second-col",{},void 0,!0)])])])]),_:3}))}}),c=p(o,[["__scopeId","data-v-6b699261"]]);o.__docgenInfo=Object.assign({displayName:o.name??o.__name},{name:"PzSearchResultItemLayout",exportName:"default",displayName:"PzSearchResultItemLayout",description:"",tags:{},props:[{name:"as",required:!1,type:{name:"PzSearchResultItemLayoutTag"},defaultValue:{func:!1,value:'"li"'}}],slots:[{name:"first-col"},{name:"second-col"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Layouts/PzSearchResultItemLayout/PzSearchResultItemLayout.vue"]});const _=["li","article","div"],I=[{id:"tenders",eyebrow:"Procurement results",title:"Tender search",resultLabel:"Знайдено більше 10 000 закупівель",sortLabel:"за замовчуванням",cards:[{id:"tender-1",title:"Вогнегасник ВП-5(з)",status:"Завершена",organization:'ДЕРЖАВНА УСТАНОВА "ЛУЦЬКИЙ СЛІДЧИЙ ІЗОЛЯТОР" • Луцьк',identifier:"ID: UA-2026-04-16-007213-a",metrics:[{id:"budget",label:"Очікувана вартість",value:"4 830,00 UAH",accent:"success"}]},{id:"tender-2",title:'Електрична енергія, без розподілу (постачальник "останньої надії")',status:"Підготовка угоди",organization:"Ратнівський дитячий садок №2 Ратнівської селищної ради • Ковельський р-н, селище міського типу Ратне",identifier:"ID: UA-2026-04-16-007209-a",metrics:[{id:"budget",label:"Очікувана вартість",value:"54 741,16 UAH",accent:"success"}]}]},{id:"qualifications",eyebrow:"Selection results",title:"Framework selection search",resultLabel:"Знайдено 470 відборів",sortLabel:"за замовчуванням",cards:[{id:"selection-1",title:"33730000-6 Офтальмологічні вироби та коригувальні лінзи",status:"Активний до 5 бер. 23:00",organization:"",identifier:"ID: UA-F-2026-04-06-000001",metrics:[{id:"clarification",label:"Уточнення до:",value:"20 квіт. 23:00"},{id:"published",label:"Оголошено:",value:"6 квіт. 2026"}]},{id:"selection-2",title:"33650000-1 Загальні протиінфекційні засоби для системного застосування",status:"Активний до 13 лют. 23:00",organization:"",identifier:"ID: UA-F-2026-03-17-000001",metrics:[{id:"clarification",label:"Уточнення до:",value:"31 бер. 23:00"},{id:"published",label:"Оголошено:",value:"17 бер. 2026"}]}]},{id:"plans",eyebrow:"Planning results",title:"Annual plan search",resultLabel:"Знайдено більше 10 000 планів",sortLabel:"за замовчуванням",cards:[{id:"plan-1",title:"ДК 021:2015 по коду: 22460000-2 Рекламні матеріали, каталоги товарів та посібники",status:"22460000-2: Рекламні матеріали, каталоги товарів та посібники",organization:"Державний ліцей з посиленою військово-фізичною підготовкою «Слобожанський»",identifier:"ID: UA-P-2026-04-16-009442-a",metrics:[{id:"budget",label:"Планова сума закупівлі",value:"700,00 UAH",accent:"success"},{id:"date",label:"Планова дата",value:"березень 2026"}]},{id:"plan-2",title:"Членський внесок за 2026 рік",status:"98100000-4: Послуги членських організацій",organization:"Ганнівська сільська рада Новоукраїнського району Кіровоградської області",identifier:"ID: UA-P-2026-04-16-009435-a",metrics:[{id:"budget",label:"Планова сума закупівлі",value:"3 572,00 UAH",accent:"success"},{id:"date",label:"Планова дата",value:"квітень 2026"}]}]}],S=e=>`<template>
1
+ import{P as p}from"./PzText-LkAZaPCW.js";import{d,A as m,C as y,B as h,o as z,k as a,l}from"./iframe-DbWuH5mz.js";import{_ as v}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";const g={class:"pz-search-result-item-layout-surface"},b={class:"pz-search-result-item-layout-grid"},f={class:"pz-search-result-item-layout-main"},L={class:"pz-search-result-item-layout-aside"},o=d({name:"PzSearchResultItemLayout",__name:"PzSearchResultItemLayout",props:{as:{default:"li"}},setup(e){const t=e;return(s,R)=>(z(),m(h(t.as),{class:"pz-search-result-item-layout"},{default:y(()=>[a("div",g,[a("div",b,[a("div",f,[l(s.$slots,"first-col",{},void 0,!0)]),a("div",L,[l(s.$slots,"second-col",{},void 0,!0)])])])]),_:3}))}}),c=v(o,[["__scopeId","data-v-6b699261"]]);o.__docgenInfo=Object.assign({displayName:o.name??o.__name},{name:"PzSearchResultItemLayout",exportName:"default",displayName:"PzSearchResultItemLayout",description:"",tags:{},props:[{name:"as",required:!1,type:{name:"PzSearchResultItemLayoutTag"},defaultValue:{func:!1,value:'"li"'}}],slots:[{name:"first-col"},{name:"second-col"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Layouts/PzSearchResultItemLayout/PzSearchResultItemLayout.vue"]});const _=["li","article","div"],I=[{id:"tenders",eyebrow:"Procurement results",title:"Tender search",resultLabel:"Знайдено більше 10 000 закупівель",sortLabel:"за замовчуванням",cards:[{id:"tender-1",title:"Вогнегасник ВП-5(з)",status:"Завершена",organization:'ДЕРЖАВНА УСТАНОВА "ЛУЦЬКИЙ СЛІДЧИЙ ІЗОЛЯТОР" • Луцьк',identifier:"ID: UA-2026-04-16-007213-a",metrics:[{id:"budget",label:"Очікувана вартість",value:"4 830,00 UAH",accent:"success"}]},{id:"tender-2",title:'Електрична енергія, без розподілу (постачальник "останньої надії")',status:"Підготовка угоди",organization:"Ратнівський дитячий садок №2 Ратнівської селищної ради • Ковельський р-н, селище міського типу Ратне",identifier:"ID: UA-2026-04-16-007209-a",metrics:[{id:"budget",label:"Очікувана вартість",value:"54 741,16 UAH",accent:"success"}]}]},{id:"qualifications",eyebrow:"Selection results",title:"Framework selection search",resultLabel:"Знайдено 470 відборів",sortLabel:"за замовчуванням",cards:[{id:"selection-1",title:"33730000-6 Офтальмологічні вироби та коригувальні лінзи",status:"Активний до 5 бер. 23:00",organization:"",identifier:"ID: UA-F-2026-04-06-000001",metrics:[{id:"clarification",label:"Уточнення до:",value:"20 квіт. 23:00"},{id:"published",label:"Оголошено:",value:"6 квіт. 2026"}]},{id:"selection-2",title:"33650000-1 Загальні протиінфекційні засоби для системного застосування",status:"Активний до 13 лют. 23:00",organization:"",identifier:"ID: UA-F-2026-03-17-000001",metrics:[{id:"clarification",label:"Уточнення до:",value:"31 бер. 23:00"},{id:"published",label:"Оголошено:",value:"17 бер. 2026"}]}]},{id:"plans",eyebrow:"Planning results",title:"Annual plan search",resultLabel:"Знайдено більше 10 000 планів",sortLabel:"за замовчуванням",cards:[{id:"plan-1",title:"ДК 021:2015 по коду: 22460000-2 Рекламні матеріали, каталоги товарів та посібники",status:"22460000-2: Рекламні матеріали, каталоги товарів та посібники",organization:"Державний ліцей з посиленою військово-фізичною підготовкою «Слобожанський»",identifier:"ID: UA-P-2026-04-16-009442-a",metrics:[{id:"budget",label:"Планова сума закупівлі",value:"700,00 UAH",accent:"success"},{id:"date",label:"Планова дата",value:"березень 2026"}]},{id:"plan-2",title:"Членський внесок за 2026 рік",status:"98100000-4: Послуги членських організацій",organization:"Ганнівська сільська рада Новоукраїнського району Кіровоградської області",identifier:"ID: UA-P-2026-04-16-009435-a",metrics:[{id:"budget",label:"Планова сума закупівлі",value:"3 572,00 UAH",accent:"success"},{id:"date",label:"Планова дата",value:"квітень 2026"}]}]}],S=e=>`<template>
2
2
  <PzSearchResultItemLayout ${[e.as&&e.as!=="li"?`as="${e.as}"`:null].filter(s=>!!s).join(" ")}>
3
3
  <template #first-col>
4
4
  <a href="#">Result title</a>
@@ -14,7 +14,7 @@ import{_ as p,P as d}from"./PzText-BOcxbzaG.js";import{d as m,i as y,j as h,k as
14
14
  </div>
15
15
  </template>
16
16
  </PzSearchResultItemLayout>
17
- </template>`,P={title:"Components/Layouts/PzSearchResultItemLayout",component:c,parameters:{prototype:{caption:"Search result item layout",note:"Search-list card shell for procurement, selection, and planning results. The component owns spacing, card surface, and responsive column rhythm while consumers compose the inner content through slots."},docs:{description:{component:"Use `PzSearchResultItemLayout` as a structural primitive for search results with a wide content area and a compact metrics column. Fill the content through the `first-col` and `second-col` slots."},source:{transform:(e,t)=>S(t.args??P.args)}}},args:{as:"li"},argTypes:{as:{control:"select",options:_,description:"HTML tag used for the outer wrapper."}},render:e=>({components:{pzSearchResultItemLayout:c,pzText:d},setup(){return{args:e,searchResultGroups:I}},template:`
17
+ </template>`,P={title:"Components/Layouts/PzSearchResultItemLayout",component:c,parameters:{prototype:{caption:"Search result item layout",note:"Search-list card shell for procurement, selection, and planning results. The component owns spacing, card surface, and responsive column rhythm while consumers compose the inner content through slots."},docs:{description:{component:"Use `PzSearchResultItemLayout` as a structural primitive for search results with a wide content area and a compact metrics column. Fill the content through the `first-col` and `second-col` slots."},source:{transform:(e,t)=>S(t.args??P.args)}}},args:{as:"li"},argTypes:{as:{control:"select",options:_,description:"HTML tag used for the outer wrapper."}},render:e=>({components:{pzSearchResultItemLayout:c,pzText:p},setup(){return{args:e,searchResultGroups:I}},template:`
18
18
  <section class="pz-search-result-layout-story">
19
19
  <div class="pz-search-result-layout-story-hero">
20
20
  <div>
@@ -109,4 +109,4 @@ import{_ as p,P as d}from"./PzText-BOcxbzaG.js";import{d as m,i as y,j as h,k as
109
109
  </section>
110
110
  </div>
111
111
  </section>
112
- `})},r={};var i,u,n;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:"{}",...(n=(u=r.parameters)==null?void 0:u.docs)==null?void 0:n.source}}};const x=["Playground"];export{r as Playground,x as __namedExportsOrder,P as default};
112
+ `})},r={};var i,u,n;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:"{}",...(n=(u=r.parameters)==null?void 0:u.docs)==null?void 0:n.source}}};const k=["Playground"];export{r as Playground,k as __namedExportsOrder,P as default};
@@ -0,0 +1 @@
1
+ .pz-select-story{display:grid;gap:var(--pz-space-24)}.pz-select-story-board,.pz-select-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-select-story-header{display:flex;align-items:start;justify-content:space-between;gap:var(--pz-space-16)}.pz-select-story-eyebrow,.pz-select-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-select-story-preview{display:grid;gap:var(--pz-space-20);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-select-story-stack{display:grid;gap:var(--pz-space-20);max-width:720px}.pz-select-story-inline-row{display:flex;align-items:center;gap:var(--pz-space-8);flex-wrap:wrap}.pz-select-story-value{color:var(--pz-color-text-secondary);font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-select-story-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--pz-space-16)}.pz-select-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-select-story-note{color:var(--pz-color-text-secondary);font-size:var(--pz-font-size-12);font-weight:400;line-height:1.5}.pz-select-story-inline-card{align-content:start;min-height:220px}.pz-select-story-field-card{min-height:220px}.pz-select-story-disabled-card{background:linear-gradient(180deg,color-mix(in srgb,var(--pz-color-grey-20) 84%,var(--pz-color-white)),color-mix(in srgb,var(--pz-color-white) 98%,transparent))}@media (width <= 768px){.pz-select-story-grid{grid-template-columns:1fr}.pz-select-story-header{flex-direction:column}.pz-select-story-preview{min-height:auto}}
@@ -0,0 +1 @@
1
+ import{d as O,e as m,y as f,C as p,u as d,n as S,f as b,g as s,o as g,k as v,F as $,z as D,l as V,E as P,t as _,r as I,J as L}from"./iframe-DbWuH5mz.js";import{u as T}from"./index-LkANHSb5.js";import{k as W}from"./floating-vue-B4YMiR3n.js";import{l as q}from"./lodash-CdDiHlzQ.js";import{_ as A}from"./PzIcon-BNwLASSZ.js";import{P as R}from"./PzLabel-Coa549nk.js";import{_ as j}from"./_plugin-vue_export-helper-DlAUqK2U.js";const J=6,M=["id"],Z=["id","disabled","aria-controls","aria-expanded","aria-label"],G={class:"pz-select-trigger-text"},H=["id","aria-labelledby"],K=["id","aria-selected","disabled","onClick"],o=O({name:"PzSelect",__name:"PzSelect",props:{name:{},options:{},modelValue:{type:[String,Number,Boolean],default:void 0},label:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},variant:{default:"field"},width:{default:void 0}},emits:["update:modelValue"],setup(l,{emit:x}){const a=l,k=x,y=I(null),{width:E}=T(y),i=s(()=>a.options.find(e=>q.isEqual(e.value,a.modelValue))),u=s(()=>a.variant==="field"),N=s(()=>{var e;return((e=i.value)==null?void 0:e.label)??a.placeholder}),C=s(()=>{var e;return a.label||((e=i.value)==null?void 0:e.label)||a.placeholder||a.name}),w=s(()=>{const e=Math.round(E.value);return!e||!u.value?{}:{inlineSize:`${String(e)}px`}}),c=e=>q.isEqual(e,a.modelValue),h=(e,r)=>e.id??`${a.name}-trigger-option-${String(r+1)}`,B=e=>({option:e,selected:c(e.value),disabled:!!e.disabled}),F=(e,r)=>{k("update:modelValue",e),r()};return(e,r)=>(g(),m("div",{id:l.name,class:b(["pz-select",{"is-field":u.value,"is-inline":!u.value}]),style:S({width:l.width})},[f(d(R),{label:a.label,for:l.name+"-trigger",required:a.required,disabled:a.disabled},{default:p(()=>[f(d(W),{class:"pz-select-dropdown",theme:"dropdown",placement:"bottom-start",container:"#"+l.name,distance:d(J),disabled:a.disabled},{default:p(({shown:n})=>[v("button",{id:l.name+"-trigger",ref_key:"triggerRef",ref:y,type:"button",class:b(["pz-select-trigger",{"is-open":n,"is-placeholder":!i.value}]),disabled:a.disabled,"aria-controls":l.name+"-menu","aria-expanded":n?"true":"false","aria-haspopup":"listbox","aria-label":a.label?void 0:C.value},[v("span",G,[V(e.$slots,"selected",{option:i.value,placeholder:a.placeholder},()=>[P(_(N.value),1)],!0)]),f(d(A),{name:"expand_more",size:"20",class:"pz-select-trigger-icon"})],10,Z)]),popper:p(({hide:n})=>[v("div",{id:l.name+"-menu",class:"pz-select-menu",style:S(w.value),role:"listbox","aria-labelledby":l.name+"-trigger"},[(g(!0),m($,null,D(a.options,(t,z)=>(g(),m("button",{id:h(t,z),key:h(t,z),type:"button",role:"option",class:b(["pz-select-option",{"is-active":c(t.value),"is-disabled":t.disabled}]),"aria-selected":c(t.value)?"true":"false",disabled:t.disabled,onClick:Q=>F(t.value,n)},[V(e.$slots,"default",L({ref_for:!0},B(t)),()=>[P(_(t.label),1)],!0)],10,K))),128))],12,H)]),_:3},8,["container","distance","disabled"])]),_:3},8,["label","for","required","disabled"])],14,M))}}),se=j(o,[["__scopeId","data-v-7b81ee27"]]);o.__docgenInfo=Object.assign({displayName:o.name??o.__name},{name:"PzSelect",exportName:"default",displayName:"PzSelect",description:"",tags:{},props:[{name:"name",required:!0,type:{name:"string"}},{name:"options",required:!0,type:{name:"Array",elements:[{name:"PzFormSelectOption"}]}},{name:"modelValue",required:!1,type:{name:"PzFormSelectValue"},defaultValue:{func:!1,value:"undefined"}},{name:"label",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"placeholder",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"disabled",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"required",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"variant",required:!1,type:{name:"PzSelectVariant"},defaultValue:{func:!1,value:'"field"'}},{name:"width",required:!1,type:{name:"string"},defaultValue:{func:!1,value:"undefined"}}],slots:[{name:"selected",scoped:!0,bindings:[{name:"option",title:"binding"},{name:"placeholder",title:"binding"}]},{name:"default",scoped:!0,bindings:[]}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Form/PzSelect/PzSelect.vue"]});export{se as P};
@@ -0,0 +1 @@
1
+ .pz-select[data-v-7b81ee27]{width:100%}.pz-select.is-inline[data-v-7b81ee27]{width:fit-content;max-width:100%}.pz-select.is-inline[data-v-7b81ee27] .pz-label{display:inline-flex;align-items:center;flex-wrap:wrap;gap:var(--pz-space-4);width:auto;max-width:100%}.pz-select.is-inline[data-v-7b81ee27] .pz-label-caption{color:var(--pz-color-text-secondary);font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-select-dropdown[data-v-7b81ee27]{width:100%}.pz-select.is-inline .pz-select-dropdown[data-v-7b81ee27]{width:auto;max-width:100%}.pz-select-trigger[data-v-7b81ee27]{display:inline-flex;align-items:center;justify-content:space-between;gap:var(--pz-space-8);width:100%;min-width:0;padding:10px var(--pz-space-12);border:1px solid var(--pz-color-blue-30);border-radius:5px;background:var(--pz-color-background-primary);color:var(--pz-color-text-primary);text-align:left;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,color .16s ease,background-color .16s ease;font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-select-trigger[data-v-7b81ee27]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--pz-color-button-primary) 16%,transparent)}.pz-select-trigger[data-v-7b81ee27]:disabled{cursor:not-allowed}.pz-select-trigger-text[data-v-7b81ee27]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pz-select-trigger-icon[data-v-7b81ee27]{flex:0 0 auto;color:inherit;transition:transform .16s ease}.pz-select-trigger.is-open .pz-select-trigger-icon[data-v-7b81ee27]{transform:rotate(180deg)}.pz-select-menu[data-v-7b81ee27]{display:flex;flex-direction:column;inline-size:100%;max-inline-size:100%}.pz-select-option[data-v-7b81ee27]{display:flex;align-items:center;width:100%;min-width:0;padding:6px var(--pz-space-16);border:0;border-radius:0;background:transparent;color:var(--pz-color-text-primary);text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer;transition:background-color .16s ease,color .16s ease,font-weight .16s ease;font-size:var(--pz-font-size-14);font-weight:400;line-height:1.5}.pz-select-option[data-v-7b81ee27]:not(.is-active,.is-disabled):hover,.pz-select-option[data-v-7b81ee27]:not(.is-active,.is-disabled):focus-visible{background:var(--pz-color-blue-10);outline:none}.pz-select-option.is-active[data-v-7b81ee27]{background:var(--pz-color-blue-10);color:var(--pz-color-text-link-hover);font-size:var(--pz-font-size-14);font-weight:600;line-height:1.5}.pz-select-option.is-disabled[data-v-7b81ee27]{color:var(--pz-color-text-secondary);cursor:not-allowed}.pz-select.is-field .pz-select-trigger.is-placeholder[data-v-7b81ee27]{color:var(--pz-color-text-secondary)}.pz-select.is-field .pz-select-trigger[data-v-7b81ee27]:disabled{background:color-mix(in srgb,var(--pz-color-grey-20) 75%,var(--pz-color-white));color:var(--pz-color-text-secondary)}.pz-select.is-inline .pz-select-trigger[data-v-7b81ee27]{width:auto;max-width:100%;padding:0;border:0;border-radius:0;background:transparent;color:var(--pz-color-text-link);box-shadow:none}.pz-select.is-inline .pz-select-trigger[data-v-7b81ee27]:not(:disabled):hover,.pz-select.is-inline .pz-select-trigger[data-v-7b81ee27]:focus-visible{color:var(--pz-color-text-link-hover)}.pz-select.is-inline .pz-select-trigger.is-placeholder[data-v-7b81ee27]{color:var(--pz-color-text-link)}.pz-select.is-inline .pz-select-trigger[data-v-7b81ee27]:disabled{color:var(--pz-color-text-link-disabled)}.pz-select.is-inline .pz-select-menu[data-v-7b81ee27]{min-inline-size:168px}.pz-select .v-popper__inner{padding:0;border-radius:3px;border-color:var(--pz-color-blue-30);box-shadow:0 1px 8px #677b9359}
@@ -0,0 +1,292 @@
1
+ import{r as t,w as S}from"./iframe-DbWuH5mz.js";import{_ as h}from"./PzIcon-BNwLASSZ.js";import{P as b}from"./PzText-LkAZaPCW.js";import{P as n}from"./PzSelect-CrTXtlds.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-LkANHSb5.js";import"./floating-vue-B4YMiR3n.js";import"./lodash-CdDiHlzQ.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./PzLabel-Coa549nk.js";const O=["field","inline"],i=[{label:"Option 0",value:0},{label:"Option 1",value:1},{label:"Option 2",value:2},{label:"Option 3",value:3},{label:"Option 4",value:4},{label:"Option 5",value:5},{label:"Option 6",value:6},{label:"Option 7",value:7},{label:"Option 8",value:8},{label:"Option 9",value:9}],V=[{label:"Чернетка",value:"draft"},{label:"Активний тендер",value:"active"},{label:"Архів",value:"archive"}],P=[{label:"Пропозиція з коротким формулюванням",value:"short"},{label:"Пропозиція з довшою назвою для перевірки перенесення і ширини меню",value:"long"},{label:"Недоступний варіант",value:"disabled",disabled:!0}],r=3,k=e=>`<template>
2
+ <PzSelect
3
+ v-model="value"
4
+ ${[`name="${e.name}"`,e.label?`label="${e.label}"`:null,e.placeholder?`placeholder="${e.placeholder}"`:null,e.variant!=="field"?`variant="${e.variant}"`:null,e.required?':required="true"':null,e.disabled?':disabled="true"':null].filter(a=>!!a).join(" ")}
5
+ :options="options"
6
+ />
7
+ </template>
8
+
9
+ <script setup lang="ts">
10
+ import { ref } from "vue";
11
+
12
+ const options = [
13
+ { label: "Option 0", value: 0 },
14
+ { label: "Option 1", value: 1 },
15
+ { label: "Option 2", value: 2 },
16
+ ];
17
+
18
+ const value = ref(1);
19
+ <\/script>`,C={title:"Components/Form/PzSelect",component:n,parameters:{prototype:{caption:"Select component",note:"Refactored from the old app-level select into a public `PzSelect` with two preserved visual variants: boxed field and inline trigger."},docs:{description:{component:"Use `PzSelect` for single-choice dropdowns backed by primitive `value`s. The component replaces the old `config`/`slug` naming with `options`/`value`, keeps the two existing visual treatments as `field` and `inline`, and sizes its menu from the trigger width with `@vueuse/core`. Supports a default scoped slot for custom option rendering and a named `#selected` slot for custom trigger display."},source:{transform:(e,l)=>k(l.args??C.args)}}},args:{name:"pz-select-story",label:"Select",modelValue:3,options:i,placeholder:"enter value",required:!1,disabled:!1,variant:"field",width:void 0},argTypes:{name:{control:"text",description:"Stable field name used to derive trigger and menu ids."},label:{control:"text",description:"Visible label. For `inline`, it is rendered on the left of the trigger."},options:{control:!1,description:"Array of options with `label`, `value`, and optional `disabled` or `id`."},modelValue:{control:!1,description:"Currently selected primitive option value."},placeholder:{control:"text",description:"Text shown when no option is selected."},variant:{control:"inline-radio",options:O,description:"Boxed field or compact inline trigger."},required:{control:"boolean",description:"Adds the required indicator to the label."},disabled:{control:"boolean",description:"Disables the trigger and prevents the menu from opening."},width:{control:"text",description:"Optional explicit width applied to the component root."}},render:e=>({components:{pzSelect:n,pzText:b,pzIcon:h},setup(){const l=t(e.modelValue),a=t(void 0),z=t(r),f=t("active"),y=t(r),g=t(void 0),x=t("active");return S(()=>e.modelValue,w=>{l.value=w}),{args:e,denseOptions:P,fieldValue:z,filterValue:f,inlineValue:a,procurementOptions:i,slotInlineValue:x,slotOptionValue:y,slotSelectedValue:g,statusOptions:V,value:l}},template:`
20
+ <div class="pz-select-story">
21
+ <section class="pz-select-story-board">
22
+ <div class="pz-select-story-header">
23
+ <div>
24
+ <span class="pz-select-story-eyebrow">Component API</span>
25
+ <pz-text variant="h4-bold">Single select with preserved inline and field presentations</pz-text>
26
+ </div>
27
+
28
+ <span class="pz-select-story-chip">value-based API</span>
29
+ </div>
30
+
31
+ <div class="pz-select-story-preview">
32
+ <div class="pz-select-story-stack">
33
+ <div class="pz-select-story-inline-row">
34
+ <pz-select
35
+ v-model="value"
36
+ :name="args.name + '-inline-demo'"
37
+ label="Select:"
38
+ placeholder="enter value"
39
+ variant="inline"
40
+ :options="args.options"
41
+ />
42
+
43
+ <span class="pz-select-story-value">value: {{ value ?? "" }}</span>
44
+ </div>
45
+
46
+ <pz-select
47
+ v-model="value"
48
+ :name="args.name"
49
+ :label="args.label"
50
+ :placeholder="args.placeholder"
51
+ :variant="args.variant"
52
+ :required="args.required"
53
+ :disabled="args.disabled"
54
+ :options="args.options"
55
+ :width="args.width"
56
+ />
57
+
58
+ <span class="pz-select-story-value">Current selected value: {{ value ?? "empty" }}</span>
59
+ </div>
60
+ </div>
61
+ </section>
62
+
63
+ <section class="pz-select-story-gallery">
64
+ <div class="pz-select-story-header">
65
+ <div>
66
+ <span class="pz-select-story-eyebrow">Patterns</span>
67
+ <pz-text variant="h4-bold">Usage example, density checks, and disabled state</pz-text>
68
+ </div>
69
+ </div>
70
+
71
+ <div class="pz-select-story-grid">
72
+ <article class="pz-select-story-card pz-select-story-inline-card">
73
+ <pz-select
74
+ v-model="inlineValue"
75
+ name="pz-select-inline-card"
76
+ label="Select:"
77
+ placeholder="enter value"
78
+ variant="inline"
79
+ :options="procurementOptions"
80
+ />
81
+
82
+ <span class="pz-select-story-note">
83
+ Inline mode keeps the label and trigger on one line, matching the compact filter pattern from the reference screenshots.
84
+ </span>
85
+ </article>
86
+
87
+ <article class="pz-select-story-card pz-select-story-field-card">
88
+ <pz-select
89
+ v-model="fieldValue"
90
+ name="pz-select-field-card"
91
+ label="Select"
92
+ placeholder="enter value"
93
+ :options="procurementOptions"
94
+ />
95
+
96
+ <span class="pz-select-story-note">
97
+ Field mode follows the rest of the form library: full-width trigger, muted placeholder, and dropdown width tied to the control.
98
+ </span>
99
+ </article>
100
+
101
+ <article class="pz-select-story-card">
102
+ <pz-text variant="body-semibold">Usage in a real filter row</pz-text>
103
+
104
+ <pz-select
105
+ v-model="filterValue"
106
+ name="pz-select-filter-card"
107
+ label="Статус:"
108
+ variant="inline"
109
+ :options="statusOptions"
110
+ />
111
+
112
+ <span class="pz-select-story-note">
113
+ A realistic example: compact inline select for page-level filters where the selected status should stay visible without a boxed field.
114
+ </span>
115
+ </article>
116
+
117
+ <article class="pz-select-story-card pz-select-story-disabled-card">
118
+ <pz-select
119
+ model-value="disabled"
120
+ name="pz-select-dense-card"
121
+ label="Варіант з довгими назвами"
122
+ placeholder="Оберіть значення"
123
+ :options="denseOptions"
124
+ disabled
125
+ />
126
+
127
+ <span class="pz-select-story-note">
128
+ Demonstrates long labels, disabled styling, and an unavailable option in the shared value-first option model.
129
+ </span>
130
+ </article>
131
+ </div>
132
+ </section>
133
+
134
+ <section class="pz-select-story-gallery">
135
+ <div class="pz-select-story-header">
136
+ <div>
137
+ <span class="pz-select-story-eyebrow">Slots</span>
138
+ <pz-text variant="h4-bold">Custom option and trigger rendering via scoped slots</pz-text>
139
+ </div>
140
+ <span class="pz-select-story-chip">scoped slots</span>
141
+ </div>
142
+
143
+ <div class="pz-select-story-grid">
144
+ <article class="pz-select-story-card">
145
+ <pz-text variant="body-semibold">#default slot — custom option row</pz-text>
146
+
147
+ <pz-select
148
+ v-model="slotOptionValue"
149
+ name="pz-select-slot-option"
150
+ label="With check icon"
151
+ placeholder="Choose an option"
152
+ :options="procurementOptions"
153
+ >
154
+ <template #default="{ option, selected }">
155
+ <pz-icon v-if="selected" name="check" size="16" />
156
+ <span style="flex:1">{{ option.label }}</span>
157
+ </template>
158
+ </pz-select>
159
+
160
+ <span class="pz-select-story-note">
161
+ The default slot receives <code>{ option, selected, disabled }</code> and replaces the option row content. Open the dropdown to see the checkmark next to the active item.
162
+ </span>
163
+ </article>
164
+
165
+ <article class="pz-select-story-card">
166
+ <pz-text variant="body-semibold">#selected slot — custom trigger text</pz-text>
167
+
168
+ <pz-select
169
+ v-model="slotSelectedValue"
170
+ name="pz-select-slot-selected"
171
+ label="With custom trigger"
172
+ placeholder="Choose a status"
173
+ :options="statusOptions"
174
+ >
175
+ <template #selected="{ option, placeholder }">
176
+ <span v-if="option" style="font-weight:600">→ {{ option.label }}</span>
177
+ <span v-else style="font-style:italic">{{ placeholder }}</span>
178
+ </template>
179
+ </pz-select>
180
+
181
+ <span class="pz-select-story-note">
182
+ The <code>#selected</code> slot receives <code>{ option, placeholder }</code> and controls the trigger button content. Here it renders an arrow prefix when a value is chosen and italic text when empty.
183
+ </span>
184
+ </article>
185
+
186
+ <article class="pz-select-story-card">
187
+ <pz-text variant="body-semibold">Both slots — inline variant</pz-text>
188
+
189
+ <div class="pz-select-story-inline-row">
190
+ <pz-select
191
+ v-model="slotInlineValue"
192
+ name="pz-select-slot-inline"
193
+ label="Status:"
194
+ variant="inline"
195
+ :options="statusOptions"
196
+ >
197
+ <template #selected="{ option, placeholder }">
198
+ <span>{{ option ? '● ' + option.label : placeholder }}</span>
199
+ </template>
200
+
201
+ <template #default="{ option, selected }">
202
+ <span style="flex:1">{{ option.label }}</span>
203
+ <pz-icon v-if="selected" name="check" size="16" />
204
+ </template>
205
+ </pz-select>
206
+ </div>
207
+
208
+ <span class="pz-select-story-note">
209
+ Both slots work in the inline variant. The <code>#selected</code> slot prepends a bullet to the active label; the <code>#default</code> slot adds a trailing checkmark inside the menu.
210
+ </span>
211
+ </article>
212
+ </div>
213
+ </section>
214
+ </div>
215
+ `})},o={parameters:{docs:{description:{story:"Interactive story for the refactored select. The preview shows the same `value` state in both variants, and the gallery documents filter usage, long labels, and disabled behavior."}}}},s={parameters:{docs:{description:{story:"PzSelect exposes a default scoped slot for each option row (`{ option, selected, disabled }`) and a named `#selected` slot for the trigger display (`{ option, placeholder }`). Both slots fall back to default rendering when unused."}}},render:()=>({components:{pzSelect:n,pzText:b,pzIcon:h},setup(){return{value:t(r),procurementOptions:i}},template:`
216
+ <div style="display:flex;flex-direction:column;gap:24px;max-width:320px">
217
+ <pz-text variant="body-semibold">Custom option slot + custom selected slot</pz-text>
218
+
219
+ <pz-select
220
+ v-model="value"
221
+ name="slots-demo"
222
+ label="Custom slots"
223
+ placeholder="Choose an option"
224
+ :options="procurementOptions"
225
+ >
226
+ <template #selected="{ option, placeholder }">
227
+ <span style="font-weight:600">{{ option ? option.label : placeholder }}</span>
228
+ </template>
229
+
230
+ <template #default="{ option, selected }">
231
+ <span style="flex:1">{{ option.label }}</span>
232
+ <pz-icon v-if="selected" name="check" size="16" />
233
+ </template>
234
+ </pz-select>
235
+
236
+ <span>Selected value: {{ value ?? "empty" }}</span>
237
+ </div>
238
+ `})};var p,c,d;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`{
239
+ parameters: {
240
+ docs: {
241
+ description: {
242
+ story: "Interactive story for the refactored select. The preview shows the same \`value\` state in both variants, and the gallery documents filter usage, long labels, and disabled behavior."
243
+ }
244
+ }
245
+ }
246
+ }`,...(d=(c=o.parameters)==null?void 0:c.docs)==null?void 0:d.source}}};var u,m,v;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`{
247
+ parameters: {
248
+ docs: {
249
+ description: {
250
+ story: "PzSelect exposes a default scoped slot for each option row (\`{ option, selected, disabled }\`) and a named \`#selected\` slot for the trigger display (\`{ option, placeholder }\`). Both slots fall back to default rendering when unused."
251
+ }
252
+ }
253
+ },
254
+ render: () => ({
255
+ components: {
256
+ pzSelect: PzSelect,
257
+ pzText: PzText,
258
+ pzIcon: PzIcon
259
+ },
260
+ setup() {
261
+ const value = ref<PzFormSelectValue | undefined>(defaultFieldValue);
262
+ return {
263
+ value,
264
+ procurementOptions
265
+ };
266
+ },
267
+ template: \`
268
+ <div style="display:flex;flex-direction:column;gap:24px;max-width:320px">
269
+ <pz-text variant="body-semibold">Custom option slot + custom selected slot</pz-text>
270
+
271
+ <pz-select
272
+ v-model="value"
273
+ name="slots-demo"
274
+ label="Custom slots"
275
+ placeholder="Choose an option"
276
+ :options="procurementOptions"
277
+ >
278
+ <template #selected="{ option, placeholder }">
279
+ <span style="font-weight:600">{{ option ? option.label : placeholder }}</span>
280
+ </template>
281
+
282
+ <template #default="{ option, selected }">
283
+ <span style="flex:1">{{ option.label }}</span>
284
+ <pz-icon v-if="selected" name="check" size="16" />
285
+ </template>
286
+ </pz-select>
287
+
288
+ <span>Selected value: {{ value ?? "empty" }}</span>
289
+ </div>
290
+ \`
291
+ })
292
+ }`,...(v=(m=s.parameters)==null?void 0:m.docs)==null?void 0:v.source}}};const j=["Playground","WithSlots"];export{o as Playground,s as WithSlots,j as __namedExportsOrder,C as default};
@@ -0,0 +1 @@
1
+ import{d as s,e as l,n as o,f as r,g as i,o as u}from"./iframe-DbWuH5mz.js";import{_ as d}from"./_plugin-vue_export-helper-DlAUqK2U.js";const e=s({name:"PzSkeleton",__name:"PzSkeleton",props:{width:{default:"100%"},height:{default:"16px"},radius:{default:"8px"},animated:{type:Boolean,default:!0}},setup(t){const a=t,n=i(()=>({width:a.width,height:a.height,borderRadius:a.radius}));return(p,m)=>(u(),l("div",{class:r(["pz-skeleton",{"pz-skeleton--static":!t.animated}]),style:o(n.value),"aria-hidden":"true"},null,6))}}),h=d(e,[["__scopeId","data-v-f3a7d77e"]]);e.__docgenInfo=Object.assign({displayName:e.name??e.__name},{name:"PzSkeleton",exportName:"default",displayName:"PzSkeleton",description:"",tags:{},props:[{name:"width",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'"100%"'}},{name:"height",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'"16px"'}},{name:"radius",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'"8px"'}},{name:"animated",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Display/PzSkeleton/PzSkeleton.vue"]});export{h as P};
@@ -1,4 +1,4 @@
1
- import{P as n}from"./PzText-BOcxbzaG.js";import{P as t}from"./PzSkeleton-BMyhdGXq.js";import"./iframe-Ckq2fQkL.js";import"./preload-helper-C1FmrZbK.js";const c={title:"Components/Display/PzSkeleton",component:t,parameters:{prototype:{caption:"PzSkeleton",note:"Reusable loading placeholder for lines, blocks, and lightweight preview cards. Used by `PzAccordion` as the default loading surface."},docs:{description:{component:"Use `PzSkeleton` for loading placeholders. Control its dimensions through `width`, `height`, and `radius`, and disable shimmer with `animated=false` when a static placeholder is preferred."}}},args:{width:"240px",height:"24px",radius:"8px",animated:!0},argTypes:{width:{control:"text",description:"Skeleton width."},height:{control:"text",description:"Skeleton height."},radius:{control:"text",description:"Border radius."},animated:{control:"boolean",description:"Enables the shimmer animation."}},render:a=>({components:{pzSkeleton:t,pzText:n},setup(){return{args:a}},template:`
1
+ import{P as r}from"./PzText-LkAZaPCW.js";import{P as t}from"./PzSkeleton-Fcc0OCQj.js";import"./iframe-DbWuH5mz.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const h={title:"Components/Display/PzSkeleton",component:t,parameters:{prototype:{caption:"PzSkeleton",note:"Reusable loading placeholder for lines, blocks, and lightweight preview cards. Used by `PzAccordion` as the default loading surface."},docs:{description:{component:"Use `PzSkeleton` for loading placeholders. Control its dimensions through `width`, `height`, and `radius`, and disable shimmer with `animated=false` when a static placeholder is preferred."}}},args:{width:"240px",height:"24px",radius:"8px",animated:!0},argTypes:{width:{control:"text",description:"Skeleton width."},height:{control:"text",description:"Skeleton height."},radius:{control:"text",description:"Border radius."},animated:{control:"boolean",description:"Enables the shimmer animation."}},render:a=>({components:{pzSkeleton:t,pzText:r},setup(){return{args:a}},template:`
2
2
  <div class="pz-skeleton-story">
3
3
  <section class="pz-skeleton-story-board">
4
4
  <div class="pz-skeleton-story-header">
@@ -36,4 +36,4 @@ import{P as n}from"./PzText-BOcxbzaG.js";import{P as t}from"./PzSkeleton-BMyhdGX
36
36
  </div>
37
37
  </section>
38
38
  </div>
39
- `})},e={};var s,o,i;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(i=(o=e.parameters)==null?void 0:o.docs)==null?void 0:i.source}}};const h=["Playground"];export{e as Playground,h as __namedExportsOrder,c as default};
39
+ `})},e={};var s,o,i;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(i=(o=e.parameters)==null?void 0:o.docs)==null?void 0:i.source}}};const m=["Playground"];export{e as Playground,m as __namedExportsOrder,h as default};
@@ -0,0 +1 @@
1
+ import{d as o,A as r,C as u,f as l,B as c,g as i,o as p,k as d,l as m}from"./iframe-DbWuH5mz.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";const _=["auction-progress","auction-waiting","auction-success"],z={class:"pz-status__label"},a=o({name:"PzStatus",__name:"PzStatus",props:{variant:{default:"progress"},as:{default:"span"}},setup(t){const s=t,e=i(()=>[`pz-status--${s.variant}`,{"pz-status--gradient":_.includes(s.variant)}]);return(n,v)=>(p(),r(c(s.as),{class:l(["pz-status",e.value])},{default:u(()=>[d("span",z,[m(n.$slots,"default",{},void 0,!0)])]),_:3},8,["class"]))}}),g=f(a,[["__scopeId","data-v-63f04bd2"]]);a.__docgenInfo=Object.assign({displayName:a.name??a.__name},{name:"PzStatus",exportName:"default",displayName:"PzStatus",description:"",tags:{},props:[{name:"variant",required:!1,type:{name:"PzStatusVariant"},defaultValue:{func:!1,value:'"progress"'}},{name:"as",required:!1,type:{name:"PzStatusTag"},defaultValue:{func:!1,value:'"span"'}}],slots:[{name:"default"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Display/PzStatus/PzStatus.vue"]});export{g as P};
@@ -1,4 +1,4 @@
1
- import{P as l}from"./PzText-BOcxbzaG.js";import{P as s}from"./PzStatus-rctea0Gb.js";import"./iframe-Ckq2fQkL.js";import"./preload-helper-C1FmrZbK.js";const c=["inactive","hidden","active","monitoring","disabled","progress","auction-progress","auction-waiting","auction-success"],d=["span","div","li"],p=[{id:"hidden-review",variant:"hidden",label:"Очікує розгляду"},{id:"monitoring-accepted",variant:"monitoring",label:"Прийнято до розгляду"},{id:"inactive-without-review",variant:"inactive",label:"Залишено без розгляду"},{id:"inactive-stopped",variant:"inactive",label:"Розгляд припинено"},{id:"inactive-rejected",variant:"inactive",label:"Відмовлено в задоволенні"},{id:"active-satisfied",variant:"active",label:"Задоволено"},{id:"inactive-withdrawn",variant:"inactive",label:"Відкликано"},{id:"inactive-cancelled",variant:"inactive",label:"Скасовано"},{id:"active-fixed",variant:"active",label:"Порушення усунуто"}],v=[{id:"palette-hidden",variant:"hidden",label:"Текст"},{id:"palette-inactive",variant:"inactive",label:"Текст"},{id:"palette-active",variant:"active",label:"Текст"},{id:"palette-monitoring",variant:"monitoring",label:"Текст"},{id:"palette-disabled",variant:"disabled",label:"Текст"}],u=t=>`<template>
1
+ import{P as l}from"./PzText-LkAZaPCW.js";import{P as s}from"./PzStatus-cmEVvisl.js";import"./iframe-DbWuH5mz.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const c=["inactive","hidden","active","monitoring","disabled","progress","auction-progress","auction-waiting","auction-success"],d=["span","div","li"],p=[{id:"hidden-review",variant:"hidden",label:"Очікує розгляду"},{id:"monitoring-accepted",variant:"monitoring",label:"Прийнято до розгляду"},{id:"inactive-without-review",variant:"inactive",label:"Залишено без розгляду"},{id:"inactive-stopped",variant:"inactive",label:"Розгляд припинено"},{id:"inactive-rejected",variant:"inactive",label:"Відмовлено в задоволенні"},{id:"active-satisfied",variant:"active",label:"Задоволено"},{id:"inactive-withdrawn",variant:"inactive",label:"Відкликано"},{id:"inactive-cancelled",variant:"inactive",label:"Скасовано"},{id:"active-fixed",variant:"active",label:"Порушення усунуто"}],v=[{id:"palette-hidden",variant:"hidden",label:"Текст"},{id:"palette-inactive",variant:"inactive",label:"Текст"},{id:"palette-active",variant:"active",label:"Текст"},{id:"palette-monitoring",variant:"monitoring",label:"Текст"},{id:"palette-disabled",variant:"disabled",label:"Текст"}],u=t=>`<template>
2
2
  <PzStatus ${[t.variant!=="progress"?`variant="${t.variant}"`:null,t.as!=="span"?`as="${t.as}"`:null].filter(o=>!!o).join(" ")}>${t.label}</PzStatus>
3
3
  </template>`,m={title:"Components/Display/PzStatus",component:s,parameters:{prototype:{caption:"Status component",note:"Aligned with Figma node 76:1113: compact filled badges with 3px radius, white label text, optional indicator, and multiline support."},docs:{description:{component:"Use `PzStatus` for semantic state labels. The component matches the design-system badge treatment from Figma and keeps semantic color variants, including gradient auction states."},source:{transform:(t,i)=>u(i.args??m.args)}}},args:{variant:"progress",as:"span",label:"Очікує розгляду"},argTypes:{variant:{control:"select",options:c,description:"Semantic status variant."},as:{control:"select",options:d,description:"HTML tag used for the wrapper."},label:{control:"text",description:"Slot content preview text.",table:{category:"Slots"}}},render:t=>({components:{pzStatus:s,pzText:l},setup(){return{args:t,statusReferenceItems:p,statusPaletteItems:v}},template:`
4
4
  <div class="pz-status-story">
@@ -92,4 +92,4 @@ import{P as l}from"./PzText-BOcxbzaG.js";import{P as s}from"./PzStatus-rctea0Gb.
92
92
  </div>
93
93
  </section>
94
94
  </div>
95
- `})},a={};var e,n,r;a.parameters={...a.parameters,docs:{...(e=a.parameters)==null?void 0:e.docs,source:{originalSource:"{}",...(r=(n=a.parameters)==null?void 0:n.docs)==null?void 0:r.source}}};const h=["Playground"];export{a as Playground,h as __namedExportsOrder,m as default};
95
+ `})},a={};var e,n,r;a.parameters={...a.parameters,docs:{...(e=a.parameters)==null?void 0:e.docs,source:{originalSource:"{}",...(r=(n=a.parameters)==null?void 0:n.docs)==null?void 0:r.source}}};const f=["Playground"];export{a as Playground,f as __namedExportsOrder,m as default};
@@ -0,0 +1 @@
1
+ import{d as _,o as a,e as t,f as D,k as d,t as z,A as b,u as h,D as y,l as v,F as i,E,g as H,G as L,z as p,n as g,I as F,C as q,J as A}from"./iframe-DbWuH5mz.js";import{l as x}from"./lodash-CdDiHlzQ.js";import{P as B}from"./PzInfoHint-CbH3ypH1.js";import{_ as P}from"./_plugin-vue_export-helper-DlAUqK2U.js";const I="—",$={class:"pz-table-data__title"},W=["innerHTML"],c=_({name:"PzTableData",__name:"PzTableData",props:{column:{},data:{default:void 0},defaultValue:{},isBold:{type:Boolean,default:!1}},setup(e){const u=e,s=H(()=>x.get(u.data,u.column.key)||u.defaultValue);return(o,T)=>{var n;return a(),t("td",{class:D(["pz-table-data",{"pz-table-data--bold":e.isBold}])},[d("p",$,[d("span",null,z(e.column.mobileName||e.column.name),1),(n=e.column.infoContent)!=null&&n.length?(a(),b(h(B),{key:0,"info-content":e.column.infoContent},null,8,["info-content"])):y("",!0)]),v(o.$slots,"default",{data:e.data,column:e.column,value:s.value},()=>[e.column.isContentHtml?(a(),t("span",{key:0,innerHTML:String(s.value)},null,8,W)):(a(),t(i,{key:1},[E(z(s.value),1)],64))],!0)],2)}}}),w=P(c,[["__scopeId","data-v-0c3a26db"]]);c.__docgenInfo=Object.assign({displayName:c.name??c.__name},{name:"PzTableData",exportName:"default",displayName:"PzTableData",description:"",tags:{},props:[{name:"column",required:!0,type:{name:"PzTableColumn"}},{name:"data",required:!1,type:{name:"PzTableRow"},defaultValue:{func:!1,value:"undefined"}},{name:"defaultValue",required:!0,type:{name:"string"}},{name:"isBold",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],slots:[{name:"default",scoped:!0,bindings:[{name:"data",title:"binding"},{name:"column",title:"binding"},{name:"value",title:"binding"}]}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Data/PzTable/PzTableData.vue"]});const S={class:"pz-table-head",scope:"col"},m=_({name:"PzTableHead",__name:"PzTableHead",props:{column:{}},setup(e){return(u,s)=>{var o;return a(),t("th",S,[d("span",null,z(e.column.name),1),(o=e.column.infoContent)!=null&&o.length?(a(),b(h(B),{key:0,"info-content":e.column.infoContent,class:"pz-table-head__hint"},null,8,["info-content"])):y("",!0)])}}}),j=P(m,[["__scopeId","data-v-b0c91dea"]]);m.__docgenInfo=Object.assign({displayName:m.name??m.__name},{name:"PzTableHead",exportName:"default",displayName:"PzTableHead",description:"",tags:{},props:[{name:"column",required:!0,type:{name:"PzTableColumn"}}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Data/PzTable/PzTableHead.vue"]});const M={class:"pz-table-wrap"},U={class:"pz-table"},O={key:0,class:"pz-table__head"},R={class:"pz-table__row pz-table__row--head"},Y=100,f=_({name:"PzTable",__name:"PzTable",props:{config:{},data:{},defaultValue:{default:I},visibleHeader:{type:Boolean,default:!0},isBoldFirstColumn:{type:Boolean,default:!0}},setup(e){const u=L(),s=e,o=({colWidth:n})=>({width:s.config.some(({colWidth:l})=>!!l)?`${n}%`:`${Math.floor(Y/s.config.length)}%`}),T=n=>!!u[n];return(n,C)=>(a(),t("div",M,[d("table",U,[e.visibleHeader?(a(),t("thead",O,[d("tr",R,[(a(!0),t(i,null,p(e.config,l=>(a(),b(j,{key:l.id,column:l,style:g(o(l))},null,8,["column","style"]))),128))])])):y("",!0),d("tbody",null,[(a(!0),t(i,null,p(e.data,(l,k)=>(a(),t("tr",{key:l.id??k,class:"pz-table__row"},[(a(!0),t(i,null,p(e.config,(r,V)=>(a(),b(w,{key:r.id,column:r,data:l,"default-value":e.defaultValue,"is-bold":e.isBoldFirstColumn&&V===0,style:g(o(r))},F({_:2},[T(r.key)?{name:"default",fn:q(N=>[v(n.$slots,r.key,A({ref_for:!0},N),void 0,!0)]),key:"0"}:void 0]),1032,["column","data","default-value","is-bold","style"]))),128))]))),128))])])]))}}),Q=P(f,[["__scopeId","data-v-d142680c"]]);f.__docgenInfo=Object.assign({displayName:f.name??f.__name},{name:"PzTable",exportName:"default",displayName:"PzTable",description:"",tags:{},props:[{name:"config",required:!0,type:{name:"Array",elements:[{name:"PzTableColumn"}]}},{name:"data",required:!0,type:{name:"Array",elements:[{name:"PzTableRow"}]}},{name:"defaultValue",required:!1,type:{name:"string"},defaultValue:{func:!1,value:"PZ_TABLE_DEFAULT_EMPTY_VALUE"}},{name:"visibleHeader",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isBoldFirstColumn",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}}],slots:[{name:"column.key",scoped:!0,bindings:[{name:"name",title:"binding"}]}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Data/PzTable/PzTable.vue"]});export{Q as P,I as a,j as b,w as c};