@prozorro/prozorro-ui 0.0.20-beta → 0.0.22-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-BCwbAC62.js → Color-FRDS63T2-6aBdyiuv.js} +1 -1
- package/dist/app/assets/{Colors.stories-CtzTTuaw.js → Colors.stories-CbSt8XQe.js} +1 -1
- package/dist/app/assets/{DocsRenderer-LL677BLK-DKKPj_O9.js → DocsRenderer-LL677BLK-6tfXX0JW.js} +5 -5
- package/dist/app/assets/{Grid.stories-jNLiuP5v.js → Grid.stories-CakNb0op.js} +1 -1
- package/dist/app/assets/{PzAccordion-BE5pfsji.js → PzAccordion-CyhF3vrW.js} +1 -1
- package/dist/app/assets/{PzAccordion.stories-CmwUyxgn.js → PzAccordion.stories-BtHeDjnC.js} +1 -1
- package/dist/app/assets/{PzAccordionTable.stories-CuWPb-K3.js → PzAccordionTable.stories-BzdI25tQ.js} +1 -1
- package/dist/app/assets/{PzArrayClamp.stories-CFGb8iDZ.js → PzArrayClamp.stories-mfaPl6QT.js} +1 -1
- package/dist/app/assets/{PzBreadcrumb.stories-CbMCWY_D.js → PzBreadcrumb.stories-5pED6MbA.js} +1 -1
- package/dist/app/assets/{PzBtn-B6FfMKnt.js → PzBtn--P8Njic2.js} +1 -1
- package/dist/app/assets/{PzBtn.stories-CB3V5RIg.js → PzBtn.stories-BloDPLDd.js} +1 -1
- package/dist/app/assets/{PzCheckbox-DOo3G1X1.js → PzCheckbox-CIOF5f7v.js} +1 -1
- package/dist/app/assets/{PzCheckbox.stories-DidDblqz.js → PzCheckbox.stories-k05fKUq-.js} +1 -1
- package/dist/app/assets/{PzCheckboxGroup.stories-x2GASZVJ.js → PzCheckboxGroup.stories-GXssU_KF.js} +1 -1
- package/dist/app/assets/{PzCopyToClipboard.stories-194irny1.js → PzCopyToClipboard.stories-Cd0S4WYD.js} +1 -1
- package/dist/app/assets/{PzDate-nABPu9YL.js → PzDate-B7hPI7Q3.js} +1 -1
- package/dist/app/assets/{PzDate.stories-COyd-5io.js → PzDate.stories-ccdtH9D3.js} +1 -1
- package/dist/app/assets/{PzDateRange.stories-DfskPbOd.js → PzDateRange.stories-Byxe_LF6.js} +1 -1
- package/dist/app/assets/{PzDomHandler.stories-DsM3ECo5.js → PzDomHandler.stories-DTPsqP3D.js} +1 -1
- package/dist/app/assets/{PzDropdown.stories-CZuAeRbp.js → PzDropdown.stories-Dy4xZj6e.js} +1 -1
- package/dist/app/assets/{PzFileInput.stories-BL0Tc3gt.js → PzFileInput.stories-D7u2hSIb.js} +1 -1
- package/dist/app/assets/{PzGrid.stories-BOBFdUIq.js → PzGrid.stories-9K7x4-pB.js} +1 -1
- package/dist/app/assets/{PzHint-4Fot3oSD.js → PzHint-Wb0RB7Lx.js} +1 -1
- package/dist/app/assets/{PzHint.stories-CglItPHb.js → PzHint.stories-DXRosZwB.js} +1 -1
- package/dist/app/assets/{PzIcon-poIOHVO1.js → PzIcon-CYs6UFeE.js} +1 -1
- package/dist/app/assets/{PzIcon.stories-D3H69ZNb.js → PzIcon.stories-BpgCaKPZ.js} +1 -1
- package/dist/app/assets/{PzImage.stories-Dr5q7WPt.js → PzImage.stories-CTKRQIx2.js} +1 -1
- package/dist/app/assets/{PzImageInput.stories-C_IwemtR.js → PzImageInput.stories-C71DpHpd.js} +1 -1
- package/dist/app/assets/{PzInfoBlockLayout.stories-CAul1FJQ.js → PzInfoBlockLayout.stories-D8eyNrQ7.js} +1 -1
- package/dist/app/assets/{PzInfoHint-m4sypHCu.js → PzInfoHint-De8cIVvs.js} +1 -1
- package/dist/app/assets/{PzInfoHint.stories-Bp-VVeGv.js → PzInfoHint.stories-Dq7R4cZ2.js} +1 -1
- package/dist/app/assets/{PzInput.stories-CSv2zeeK.js → PzInput.stories-CbXlgLYc.js} +1 -1
- package/dist/app/assets/{PzInputDate.stories-C5N12fHj.js → PzInputDate.stories-C1KSGmnL.js} +1 -1
- package/dist/app/assets/{PzInputNumber.stories-BWMl9xMs.js → PzInputNumber.stories-3cVpmAmg.js} +1 -1
- package/dist/app/assets/{PzKeyValue.stories-DBdiUEg8.js → PzKeyValue.stories-CmZZbetY.js} +1 -1
- package/dist/app/assets/{PzLabel-BAPh5yk-.js → PzLabel-Br2_1fb_.js} +1 -1
- package/dist/app/assets/{PzLabel.stories-Ha9WPtao.js → PzLabel.stories-CyLcx_BX.js} +1 -1
- package/dist/app/assets/{PzLink-Q1NpV_QJ.js → PzLink-DWYIVUyJ.js} +1 -1
- package/dist/app/assets/{PzLink.stories-hIyGbNoM.js → PzLink.stories-B-wjcc4Z.js} +1 -1
- package/dist/app/assets/{PzListNav.stories-D7q3d-8H.js → PzListNav.stories-DLrcV7Ho.js} +1 -1
- package/dist/app/assets/{PzLoader.stories-BI9WG9-O.js → PzLoader.stories-DofaFqcc.js} +1 -1
- package/dist/app/assets/{PzModal.stories-BG9V1Q5u.js → PzModal.stories-D8HhgcHY.js} +1 -1
- package/dist/app/assets/{PzMultiSelect.stories-C19obsVM.js → PzMultiSelect.stories-Bezkbund.js} +1 -1
- package/dist/app/assets/{PzNav.stories-C5O8_B-7.js → PzNav.stories-CbUsVvld.js} +1 -1
- package/dist/app/assets/{PzNumberFormat.stories-CbaBSOl1.js → PzNumberFormat.stories-C8oseRJD.js} +1 -1
- package/dist/app/assets/{PzPagination-isThZsEU.js → PzPagination-CSj9u4uL.js} +1 -1
- package/dist/app/assets/{PzPagination.stories-BvCbYxR9.js → PzPagination.stories-vM0MIRGY.js} +1 -1
- package/dist/app/assets/{PzPriceFormat.stories-Btgv2UfV.js → PzPriceFormat.stories-Cb2DDG5m.js} +1 -1
- package/dist/app/assets/{PzRadioGroup.stories-BDptT0Zt.js → PzRadioGroup.stories-C-m2gn8Y.js} +1 -1
- package/dist/app/assets/{PzRouterLink.stories-D10ABe6z.js → PzRouterLink.stories-BOY6Gc5_.js} +1 -1
- package/dist/app/assets/{PzScrollTo.stories-BJlLBIwI.js → PzScrollTo.stories-DculbUGF.js} +1 -1
- package/dist/app/assets/{PzSearchResultItemLayout-DPNsOBqN.css → PzSearchResultItemLayout-Jge49SHp.css} +1 -1
- package/dist/app/assets/PzSearchResultItemLayout.stories-B6uKlbDb.js +113 -0
- package/dist/app/assets/{PzSelect-Dvm9WLeL.js → PzSelect-CPrfPSlT.js} +1 -1
- package/dist/app/assets/{PzSelect.stories-CFfqe1eq.js → PzSelect.stories-BrcidHQn.js} +1 -1
- package/dist/app/assets/{PzSkeleton-Bf3tDBUe.js → PzSkeleton-DZ3Db0hQ.js} +1 -1
- package/dist/app/assets/{PzSkeleton.stories-C1EGR_pz.js → PzSkeleton.stories-CiF84MBY.js} +1 -1
- package/dist/app/assets/{PzStatus-QcYI0uS9.js → PzStatus-BH-NGMST.js} +1 -1
- package/dist/app/assets/{PzStatus.stories-DMUAfPRV.js → PzStatus.stories-DBffgKwC.js} +1 -1
- package/dist/app/assets/{PzTable-CmJiR0G9.js → PzTable-CxIrZiEz.js} +1 -1
- package/dist/app/assets/{PzTable.stories-CaJjJF9B.js → PzTable.stories-CMUDT7oF.js} +1 -1
- package/dist/app/assets/{PzTabs.stories-DoOhgnnG.js → PzTabs.stories-CNy47gLd.js} +1 -1
- package/dist/app/assets/{PzTag-DQn6tX-W.js → PzTag-Car_Cjwk.js} +1 -1
- package/dist/app/assets/{PzTag.stories-BeTLgPu9.js → PzTag.stories-Bpk5H1U3.js} +1 -1
- package/dist/app/assets/{PzText-uPzrIzSU.css → PzText-CnLVfvPw.css} +1 -1
- package/dist/app/assets/PzText-icV27wTp.js +1 -0
- package/dist/app/assets/{PzText.stories-DnRec827.js → PzText.stories-BLMO_w0u.js} +2 -2
- package/dist/app/assets/{PzTextClamp.stories-DfWH1f4J.js → PzTextClamp.stories-CLLwwfDi.js} +1 -1
- package/dist/app/assets/{PzTextarea.stories-CCqwYmNv.js → PzTextarea.stories-C1oy87pL.js} +1 -1
- package/dist/app/assets/{PzValidatorXSS.stories-CinnvE3j.js → PzValidatorXSS.stories-Duuf0ySb.js} +1 -1
- package/dist/app/assets/{Spacing.stories-BDxnAaOa.js → Spacing.stories-CBsrGYKH.js} +1 -1
- package/dist/app/assets/{Typography.stories-CjEk87CA.js → Typography.stories-Cwol1aGN.js} +1 -1
- package/dist/app/assets/{WithTooltip-65CFNBJE-CbbvshsF.js → WithTooltip-65CFNBJE-DTQRF3XU.js} +1 -1
- package/dist/app/assets/{floating-vue-Xnl0QKgi.js → floating-vue-Cd9zZvnL.js} +1 -1
- package/dist/app/assets/{floating-vue-SZH28boQ.js → floating-vue-DdvvASf4.js} +1 -1
- package/dist/app/assets/{formatter-EIJCOSYU-p1Msusj6.js → formatter-EIJCOSYU-B0gEKcua.js} +1 -1
- package/dist/app/assets/{iframe-yhLt8Lok.js → iframe-C2pB1MTP.js} +3 -3
- package/dist/app/assets/{index-DW75gAYJ.js → index-C9V6BhOG.js} +1 -1
- package/dist/app/assets/{syntaxhighlighter-OH4MV7E3-DdpEs6av.js → syntaxhighlighter-OH4MV7E3-BHs7gmaw.js} +1 -1
- package/dist/app/iframe.html +1 -1
- package/dist/app/project.json +1 -1
- package/dist/components/Form/PzFileInput/PzFileInput.vue.d.ts +1 -1
- package/dist/components/Form/PzImageInput/PzImageInput.vue.d.ts +1 -1
- package/dist/components/Form/PzInput/PzInput.vue.d.ts +1 -1
- package/dist/components/Form/PzInputDate/PzInputDate.vue.d.ts +1 -1
- package/dist/components/Form/PzInputNumber/PzInputNumber.vue.d.ts +1 -1
- package/dist/components/Form/PzLabel/PzLabel.vue.d.ts +1 -1
- package/dist/components/Form/PzMultiSelect/PzMultiSelect.vue.d.ts +1 -1
- package/dist/components/Form/PzSelect/PzSelect.vue.d.ts +1 -1
- package/dist/components/Form/PzTextarea/PzTextarea.vue.d.ts +1 -1
- package/dist/components/Layouts/PzSearchResultItemLayout/PzSearchResultItemLayout.vue.d.ts +1 -0
- package/dist/components/Layouts/PzSearchResultItemLayout/types.d.ts +1 -0
- package/dist/components/Text/PzText/PzText.vue.d.ts +2 -1
- package/dist/components/Text/PzText/types.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/prozorro-ui.cjs +5 -5
- package/dist/prozorro-ui.js +53 -47
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/app/assets/PzSearchResultItemLayout.stories-BEoAgmcx.js +0 -112
- package/dist/app/assets/PzText-OlPU47Sz.js +0 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import{P as d}from"./PzText-icV27wTp.js";import{d as m,y,A as h,n as z,z as f,g as v,o as g,q as s,B as i}from"./iframe-C2pB1MTP.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";const x={class:"pz-search-result-item-layout-surface"},S={class:"pz-search-result-item-layout-grid"},L={class:"pz-search-result-item-layout-main"},_={class:"pz-search-result-item-layout-aside"},r=m({name:"PzSearchResultItemLayout",__name:"PzSearchResultItemLayout",props:{as:{default:"li"},desktopColumns:{default:"minmax(0, 1fr) minmax(240px, 292px)"}},setup(e){const t=e,o=v(()=>({"--pz-search-result-item-layout-columns-lg":t.desktopColumns}));return(l,A)=>(g(),y(f(t.as),{class:"pz-search-result-item-layout",style:z(o.value)},{default:h(()=>[s("div",x,[s("div",S,[s("div",L,[i(l.$slots,"first-col",{},void 0,!0)]),s("div",_,[i(l.$slots,"second-col",{},void 0,!0)])])])]),_:3},8,["style"]))}}),c=b(r,[["__scopeId","data-v-702edb8b"]]);r.__docgenInfo=Object.assign({displayName:r.name??r.__name},{name:"PzSearchResultItemLayout",exportName:"default",displayName:"PzSearchResultItemLayout",description:"",tags:{},props:[{name:"as",required:!1,type:{name:"PzSearchResultItemLayoutTag"},defaultValue:{func:!1,value:'"li"'}},{name:"desktopColumns",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'"minmax(0, 1fr) minmax(240px, 292px)"'}}],slots:[{name:"first-col"},{name:"second-col"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Layouts/PzSearchResultItemLayout/PzSearchResultItemLayout.vue"]});const I=["li","article","div"],P=[{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"}]}]}],k=e=>`<template>
|
|
2
|
+
<PzSearchResultItemLayout ${[e.as&&e.as!=="li"?`as="${e.as}"`:null,e.desktopColumns&&e.desktopColumns!=="minmax(0, 1fr) minmax(240px, 292px)"?`desktop-columns="${e.desktopColumns}"`:null].filter(o=>!!o).join(" ")}>
|
|
3
|
+
<template #first-col>
|
|
4
|
+
<a href="#">Result title</a>
|
|
5
|
+
<p>Status or secondary line</p>
|
|
6
|
+
<p>Organization or supporting copy</p>
|
|
7
|
+
<p>ID: UA-000000-00-00-000000-a</p>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<template #second-col>
|
|
11
|
+
<div>
|
|
12
|
+
<span>Очікувана вартість</span>
|
|
13
|
+
<strong>4 830,00 UAH</strong>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
</PzSearchResultItemLayout>
|
|
17
|
+
</template>`,R={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)=>k(t.args??R.args)}}},args:{as:"li",desktopColumns:"minmax(0, 1fr) minmax(240px, 292px)"},argTypes:{as:{control:"select",options:I,description:"HTML tag used for the outer wrapper."},desktopColumns:{control:"text",description:"CSS value for desktop grid columns at the `lg` breakpoint, for example `2fr 1fr` or `minmax(0, 1fr) minmax(320px, 380px)`."}},render:e=>({components:{pzSearchResultItemLayout:c,pzText:d},setup(){return{args:e,searchResultGroups:P}},template:`
|
|
18
|
+
<section class="pz-search-result-layout-story">
|
|
19
|
+
<div class="pz-search-result-layout-story-hero">
|
|
20
|
+
<div>
|
|
21
|
+
<span class="pz-search-result-layout-story-eyebrow">Component API</span>
|
|
22
|
+
<pz-text variant="h4-bold">Search results with an adaptive metrics rail</pz-text>
|
|
23
|
+
</div>
|
|
24
|
+
<span class="pz-search-result-layout-story-chip">{{ args.as }}</span>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="pz-search-result-layout-story-board">
|
|
28
|
+
<section
|
|
29
|
+
v-for="group in searchResultGroups"
|
|
30
|
+
:key="group.id"
|
|
31
|
+
class="pz-search-result-layout-story-group"
|
|
32
|
+
>
|
|
33
|
+
<div class="pz-search-result-layout-story-group-header">
|
|
34
|
+
<div>
|
|
35
|
+
<span class="pz-search-result-layout-story-group-kicker">{{ group.eyebrow }}</span>
|
|
36
|
+
<pz-text variant="h4-bold">{{ group.title }}</pz-text>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<button
|
|
40
|
+
type="button"
|
|
41
|
+
class="pz-search-result-layout-story-sort"
|
|
42
|
+
>
|
|
43
|
+
Сортування:
|
|
44
|
+
<span>{{ group.sortLabel }}</span>
|
|
45
|
+
</button>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<p class="pz-search-result-layout-story-result-label">{{ group.resultLabel }}</p>
|
|
49
|
+
|
|
50
|
+
<component
|
|
51
|
+
:is="args.as === 'li' ? 'ul' : 'div'"
|
|
52
|
+
class="pz-search-result-layout-story-list"
|
|
53
|
+
>
|
|
54
|
+
<pz-search-result-item-layout
|
|
55
|
+
v-for="card in group.cards"
|
|
56
|
+
:key="card.id"
|
|
57
|
+
:as="args.as"
|
|
58
|
+
:desktop-columns="args.desktopColumns"
|
|
59
|
+
>
|
|
60
|
+
<template #first-col>
|
|
61
|
+
<div class="pz-search-result-layout-story-main">
|
|
62
|
+
<a
|
|
63
|
+
href="#"
|
|
64
|
+
class="pz-search-result-layout-story-title"
|
|
65
|
+
>
|
|
66
|
+
{{ card.title }}
|
|
67
|
+
</a>
|
|
68
|
+
|
|
69
|
+
<p class="pz-search-result-layout-story-status">{{ card.status }}</p>
|
|
70
|
+
|
|
71
|
+
<p
|
|
72
|
+
v-if="card.subtitle"
|
|
73
|
+
class="pz-search-result-layout-story-subtitle"
|
|
74
|
+
>
|
|
75
|
+
{{ card.subtitle }}
|
|
76
|
+
</p>
|
|
77
|
+
|
|
78
|
+
<p
|
|
79
|
+
v-if="card.organization"
|
|
80
|
+
class="pz-search-result-layout-story-organization"
|
|
81
|
+
>
|
|
82
|
+
{{ card.organization }}
|
|
83
|
+
</p>
|
|
84
|
+
|
|
85
|
+
<p class="pz-search-result-layout-story-identifier">{{ card.identifier }}</p>
|
|
86
|
+
</div>
|
|
87
|
+
</template>
|
|
88
|
+
|
|
89
|
+
<template #second-col>
|
|
90
|
+
<div class="pz-search-result-layout-story-aside">
|
|
91
|
+
<div
|
|
92
|
+
v-for="metric in card.metrics"
|
|
93
|
+
:key="metric.id"
|
|
94
|
+
class="pz-search-result-layout-story-metric"
|
|
95
|
+
>
|
|
96
|
+
<span class="pz-search-result-layout-story-metric-label">{{ metric.label }}</span>
|
|
97
|
+
<strong
|
|
98
|
+
class="pz-search-result-layout-story-metric-value"
|
|
99
|
+
:class="{
|
|
100
|
+
'pz-search-result-layout-story-metric-value-success': metric.accent === 'success',
|
|
101
|
+
}"
|
|
102
|
+
>
|
|
103
|
+
{{ metric.value }}
|
|
104
|
+
</strong>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</template>
|
|
108
|
+
</pz-search-result-item-layout>
|
|
109
|
+
</component>
|
|
110
|
+
</section>
|
|
111
|
+
</div>
|
|
112
|
+
</section>
|
|
113
|
+
`})},a={};var u,n,p;a.parameters={...a.parameters,docs:{...(u=a.parameters)==null?void 0:u.docs,source:{originalSource:"{}",...(p=(n=a.parameters)==null?void 0:n.docs)==null?void 0:p.source}}};const T=["Playground"];export{a as Playground,T as __namedExportsOrder,R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as O,e as m,u as f,A as p,v as d,n as S,f as b,g as s,o as g,q as v,F as $,x as I,B as V,C as P,t as _,r as A,I as D}from"./iframe-
|
|
1
|
+
import{d as O,e as m,u as f,A as p,v as d,n as S,f as b,g as s,o as g,q as v,F as $,x as I,B as V,C as P,t as _,r as A,I as D}from"./iframe-C2pB1MTP.js";import{u as L}from"./index-C9V6BhOG.js";import{k as T}from"./floating-vue-DdvvASf4.js";import{l as q}from"./lodash-CdDiHlzQ.js";import{_ as W}from"./PzIcon-CYs6UFeE.js";import{P as R}from"./PzLabel-Br2_1fb_.js";import{_ as j}from"./_plugin-vue_export-helper-DlAUqK2U.js";const M=6,Z=["id"],G=["id","disabled","aria-controls","aria-expanded","aria-label"],H={class:"pz-select-trigger-text"},J=["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,N=x,y=A(null),{width:k}=L(y),i=s(()=>a.options.find(e=>q.isEqual(e.value,a.modelValue))),u=s(()=>a.variant==="field"),B=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}),E=s(()=>{const e=Math.round(k.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)}`,w=e=>({option:e,selected:c(e.value),disabled:!!e.disabled}),F=(e,r)=>{N("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(T),{class:"pz-select-dropdown",theme:"dropdown",placement:"bottom-start",container:"#"+l.name,distance:d(M),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",H,[V(e.$slots,"selected",{option:i.value,placeholder:a.placeholder},()=>[P(_(B.value),1)],!0)]),f(d(W),{name:"expand_more",size:"20",class:"pz-select-trigger-icon"})],10,G)]),popper:p(({hide:n})=>[v("div",{id:l.name+"-menu",class:"pz-select-menu",style:S(E.value),role:"listbox","aria-labelledby":l.name+"-trigger"},[(g(!0),m($,null,I(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",D({ref_for:!0},w(t)),()=>[P(_(t.label),1)],!0)],10,K))),128))],12,J)]),_:3},8,["container","distance","disabled"])]),_:3},8,["label","for","required","disabled"])],14,Z))}}),se=j(o,[["__scopeId","data-v-c794c950"]]);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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,w as S}from"./iframe-
|
|
1
|
+
import{r as t,w as S}from"./iframe-C2pB1MTP.js";import{_ as h}from"./PzIcon-CYs6UFeE.js";import{P as b}from"./PzText-icV27wTp.js";import{P as n}from"./PzSelect-CPrfPSlT.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-C9V6BhOG.js";import"./floating-vue-DdvvASf4.js";import"./lodash-CdDiHlzQ.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./PzLabel-Br2_1fb_.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
2
|
<PzSelect
|
|
3
3
|
v-model="value"
|
|
4
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(" ")}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s,e as l,n as o,f as r,g as i,o as u}from"./iframe-
|
|
1
|
+
import{d as s,e as l,n as o,f as r,g as i,o as u}from"./iframe-C2pB1MTP.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 r}from"./PzText-
|
|
1
|
+
import{P as r}from"./PzText-icV27wTp.js";import{P as t}from"./PzSkeleton-DZ3Db0hQ.js";import"./iframe-C2pB1MTP.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">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as o,y as r,A as p,f as u,z as l,g as i,o as c,q as d,B as m}from"./iframe-
|
|
1
|
+
import{d as o,y as r,A as p,f as u,z as l,g as i,o as c,q as d,B as m}from"./iframe-C2pB1MTP.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";const z=["auction-progress","auction-waiting","auction-success"],_={class:"pz-status__label"},s=o({name:"PzStatus",__name:"PzStatus",props:{variant:{default:"progress"},as:{default:"span"},typography:{}},setup(t){const a=t,e=i(()=>[`pz-status--${a.variant}`,a.typography?`pz-typography--${a.typography}`:null,{"pz-status--gradient":z.includes(a.variant)}]);return(n,y)=>(c(),r(l(a.as),{class:u(["pz-status",e.value])},{default:p(()=>[d("span",_,[m(n.$slots,"default",{},void 0,!0)])]),_:3},8,["class"]))}}),P=f(s,[["__scopeId","data-v-7325e2b7"]]);s.__docgenInfo=Object.assign({displayName:s.name??s.__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"'}},{name:"typography",required:!1,type:{name:"PzTextVariant"}}],slots:[{name:"default"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Display/PzStatus/PzStatus.vue"]});export{P};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as l}from"./PzText-
|
|
1
|
+
import{P as l}from"./PzText-icV27wTp.js";import{p as c}from"./configs-B15JgQZ-.js";import{P as s}from"./PzStatus-BH-NGMST.js";import"./iframe-C2pB1MTP.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const p=["inactive","hidden","active","monitoring","disabled","progress","auction-progress","auction-waiting","auction-success"],d=["span","div","li"],v=[{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:"Порушення усунуто"}],u=[{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:"Текст"}],m=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>`,g={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)=>m(i.args??g.args)}}},args:{variant:"progress",as:"span",typography:void 0,label:"Очікує розгляду"},argTypes:{variant:{control:"select",options:p,description:"Semantic status variant."},as:{control:"select",options:d,description:"HTML tag used for the wrapper."},typography:{control:"select",options:[void 0,...c],description:"Overrides typography using a PzText variant."},label:{control:"text",description:"Slot content preview text.",table:{category:"Slots"}}},render:t=>({components:{pzStatus:s,pzText:l},setup(){return{args:t,statusReferenceItems:v,statusPaletteItems:u}},template:`
|
|
4
4
|
<div class="pz-status-story">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as z,o as a,e as t,f as N,q as d,t as _,y as b,v as h,p as y,B as v,F as i,C as E,g as D,E as L,x as p,n as g,H as q,A as F,I as x}from"./iframe-
|
|
1
|
+
import{d as z,o as a,e as t,f as N,q as d,t as _,y as b,v as h,p as y,B as v,F as i,C as E,g as D,E as L,x as p,n as g,H as q,A as F,I as x}from"./iframe-C2pB1MTP.js";import{l as A}from"./lodash-CdDiHlzQ.js";import{P as B}from"./PzInfoHint-De8cIVvs.js";import{_ as P}from"./_plugin-vue_export-helper-DlAUqK2U.js";const I="—",$={class:"pz-table-data__title"},W=["innerHTML"],c=z({name:"PzTableData",__name:"PzTableData",props:{column:{},data:{default:void 0},defaultValue:{},isBold:{type:Boolean,default:!1}},setup(e){const u=e,s=D(()=>A.get(u.data,u.column.key)||u.defaultValue);return(o,T)=>{var n;return a(),t("td",{class:N(["pz-table-data",{"pz-table-data--bold":e.isBold}])},[d("p",$,[d("span",null,_(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(_(s.value),1)],64))],!0)],2)}}}),w=P(c,[["__scopeId","data-v-1c0872b9"]]);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=z({name:"PzTableHead",__name:"PzTableHead",props:{column:{}},setup(e){return(u,s)=>{var o;return a(),t("th",S,[d("span",null,_(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-c4688b62"]]);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=z({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))},q({_:2},[T(r.key)?{name:"default",fn:F(H=>[v(n.$slots,r.key,x({ref_for:!0},H),void 0,!0)]),key:"0"}:void 0]),1032,["column","data","default-value","is-bold","style"]))),128))]))),128))])])]))}}),Q=P(f,[["__scopeId","data-v-9e87d17d"]]);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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as T}from"./PzLink-
|
|
1
|
+
import{P as T}from"./PzLink-DWYIVUyJ.js";import{P}from"./PzTag-Car_Cjwk.js";import{P as l}from"./PzText-icV27wTp.js";import{P as a,a as i}from"./PzTable-CxIrZiEz.js";import"./iframe-C2pB1MTP.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-CdDiHlzQ.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./PzInfoHint-De8cIVvs.js";import"./PzIcon-CYs6UFeE.js";import"./PzHint-Wb0RB7Lx.js";import"./floating-vue-DdvvASf4.js";import"./floating-vue-Cd9zZvnL.js";const S=[{id:"name",name:"Назва",key:"name",colWidth:22},{id:"classification",name:"Класифікатор та його відповідний код",key:"classification",colWidth:30},{id:"quantity",name:"Кількість/Одиниці виміру",key:"quantity",colWidth:14},{id:"deliveryLocation",name:"Місце поставки",key:"deliveryLocation",colWidth:18},{id:"deliveryDate",name:"Дата поставки",key:"deliveryDate",colWidth:16}],k=[{id:"item-1",name:"Швидкозшивач пласт. E31509, 31511",classification:"ДК 021:2015: 30190000-7 — Офісне устаткування та приладдя різне",quantity:"100 штука",deliveryLocation:"79025, Україна, Львівська область, Львів, вул.Левандівська, будинок 17-В",deliveryDate:"до 30 грудня 2026"},{id:"item-2",name:"Ручка масляна, 0,7мм, PT-195, Piano",classification:"ДК 021:2015: 30190000-7 — Офісне устаткування та приладдя різне",quantity:"150 штука",deliveryLocation:"79025, Україна, Львівська область, Львів, вул.Левандівська, будинок 17-В",deliveryDate:"до 30 грудня 2026"},{id:"item-3",name:"Папка А4 КОШЕНЯ 34,527,51см, верт. 2 ручки",classification:"ДК 021:2015: 30190000-7 — Офісне устаткування та приладдя різне",quantity:"30 штука",deliveryLocation:"79025, Україна, Львівська область, Львів, вул.Левандівська, будинок 17-В",deliveryDate:"до 30 грудня 2026"}],w=[{id:"name",name:"Назва",key:"name",colWidth:18},{id:"classification",name:"Класифікатор та його відповідний код",key:"classification",colWidth:24},{id:"quantity",name:"Кількість/Одиниці виміру",key:"quantity",colWidth:14},{id:"price",name:"Ціна за одиницю",key:"price",colWidth:14},{id:"deliveryLocation",name:"Місце поставки",key:"deliveryLocation",colWidth:18},{id:"deliveryDate",name:"Дата поставки",key:"deliveryDate",colWidth:12}],x=k.map(t=>({...t,price:null})),W=[{id:"event",name:"Подія",key:"event",colWidth:18},{id:"type",name:"Тип",key:"type",colWidth:18},{id:"reason",name:"Підстава",key:"reason",colWidth:18},{id:"period",name:"Період, (днів)",key:"period",colWidth:16},{id:"daysType",name:"Тип днів",key:"daysType",colWidth:15},{id:"amount",name:"Розмір, (%)",key:"amount",colWidth:15}],C=[{id:"payment-1",event:"Оплата",type:"Пiсляоплата",reason:"поставка товару",period:10,daysType:"робочі",amount:100},{id:"payment-2",event:"Поставка",type:"Одноразова поставка",reason:"подання заявки",period:10,daysType:"робочі",amount:100}],L=[{id:"supplier",name:"Постачальник",key:"supplier",colWidth:28},{id:"contractId",name:"Договір",key:"contractId",colWidth:20},{id:"amount",name:"Сума",key:"amount",colWidth:18},{id:"status",name:"Статус",key:"statusLabel",colWidth:18},{id:"updatedAt",name:"Оновлено",key:"updatedAt",colWidth:16}],D=[{id:"contract-01",supplier:{name:"ТОВ «Офіс-Постач»",href:"https://prozorro.gov.ua"},contractId:"UA-2026-04-17-000001",amount:128340.5,status:"active",statusLabel:"Активний",updatedAt:"17.04.2026"},{id:"contract-02",supplier:{name:"ФОП Іваненко Ірина",href:"https://prozorro.gov.ua"},contractId:"UA-2026-04-17-000002",amount:68400,status:"hidden",statusLabel:"Очікує підтвердження",updatedAt:"16.04.2026"}],A=`<template>
|
|
2
2
|
<PzTable
|
|
3
3
|
:config="config"
|
|
4
4
|
:data="data"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as T}from"./PzText-
|
|
1
|
+
import{P as T}from"./PzText-icV27wTp.js";import{d as q,a5 as f,w as Q,a6 as G,$ as J,W as X,a7 as Y,e as m,B as F,r as Z,o as u,j as K,h as tt,q as _,F as at,x as st,n as et,f as w,a3 as nt,g as rt,t as pt,a8 as P}from"./iframe-C2pB1MTP.js";import{_ as M}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";const ot=["","light"];var r=(t=>(t.INIT_TAB="init-tab",t.TABS_STATE="tabs-state",t.REMOVE_TAB="remove-tab",t))(r||{});const it={class:"pz-tab"},x=q({name:"PzTab",__name:"PzTab",props:{name:{default:"Tab"},selected:{type:Boolean,default:!1},id:{default:void 0}},setup(t){const a=t,p=K(),i=Z(!1),o=f(r.REMOVE_TAB,void 0),s=f(r.TABS_STATE,void 0),e=f(r.INIT_TAB,void 0),n={get id(){return a.id??`pz-tab-${(p==null?void 0:p.uid)??a.name}`},get name(){return a.name}};return Q(()=>s==null?void 0:s.activeTab,z=>{i.value=a.name===z}),G(()=>{e==null||e(n),i.value=a.selected}),J(()=>o==null?void 0:o(n)),(z,mt)=>X((u(),m("div",it,[F(z.$slots,"default",{},void 0,!0)],512)),[[Y,i.value]])}}),h=M(x,[["__scopeId","data-v-2374460d"]]);x.__docgenInfo=Object.assign({displayName:x.name??x.__name},{name:"PzTab",exportName:"default",displayName:"PzTab",description:"",tags:{},props:[{name:"name",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'"Tab"'}},{name:"selected",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"id",required:!1,type:{name:"string"},defaultValue:{func:!1,value:"undefined"}}],slots:[{name:"default"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Layouts/PzTabs/PzTab.vue"]});const lt={class:"pz-tabs__nav"},zt=["onClick"],bt={class:"pz-tabs__content"},g=q({name:"PzTabs",__name:"PzTabs",props:{skin:{default:""},maxWidth:{default:""}},setup(t){const a=nt({tabs:[],activeTab:""}),p=t,i=rt(()=>p.skin?`pz-tabs--${p.skin}`:"");P(r.TABS_STATE,a),P(r.INIT_TAB,s=>a.tabs.push(s)),P(r.REMOVE_TAB,s=>{a.tabs=a.tabs.filter(e=>e.id!==s.id),o()}),tt(()=>o());const o=()=>{var e;const[{name:s}={name:""}]=a.tabs.filter(({selected:n})=>n);a.activeTab=s||((e=a.tabs[0])==null?void 0:e.name)||""};return(s,e)=>(u(),m("div",{class:w(["pz-tabs",i.value]),style:et({maxWidth:t.maxWidth})},[_("ul",lt,[(u(!0),m(at,null,st(a.tabs,n=>(u(),m("li",{key:n.id,class:w(["pz-tabs__item",{active:a.activeTab===n.name}]),onClick:z=>a.activeTab=n.name||""},pt(n.name),11,zt))),128))]),_("div",bt,[F(s.$slots,"default",{},void 0,!0)])],6))}}),l=M(g,[["__scopeId","data-v-88e033ce"]]);g.__docgenInfo=Object.assign({displayName:g.name??g.__name},{name:"PzTabs",exportName:"default",displayName:"PzTabs",description:"",tags:{},props:[{name:"skin",required:!1,type:{name:"PzTabsSkin"},defaultValue:{func:!1,value:'""'}},{name:"maxWidth",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}}],slots:[{name:"default"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Layouts/PzTabs/PzTabs.vue"]});const dt=t=>[t.skin?`skin="${t.skin}"`:null,t.maxWidth?`max-width="${t.maxWidth}"`:null].filter(a=>!!a).join(" "),ct=t=>`<template>
|
|
2
2
|
<PzTabs ${dt(t)}>
|
|
3
3
|
<PzTab name="${t.currentEditionLabel}" selected>
|
|
4
4
|
Current content
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,y as p,A as i,f,z as u,o as t,e as n,B as o,p as r,q as c}from"./iframe-
|
|
1
|
+
import{d as l,y as p,A as i,f,z as u,o as t,e as n,B as o,p as r,q as c}from"./iframe-C2pB1MTP.js";import{_ as m}from"./_plugin-vue_export-helper-DlAUqK2U.js";const d={key:0,class:"pz-tag-prefix"},g={class:"pz-tag-label"},y={key:1,class:"pz-tag-suffix"},s=l({name:"PzTag",__name:"PzTag",props:{variant:{default:"grey"},as:{default:"span"},typography:{}},setup(e){return(a,z)=>(t(),p(u(e.as),{class:f(["pz-tag",[`pz-tag--${e.variant}`,e.typography?`pz-typography--${e.typography}`:null]])},{default:i(()=>[a.$slots.prefix?(t(),n("span",d,[o(a.$slots,"prefix",{},void 0,!0)])):r("",!0),c("span",g,[o(a.$slots,"default",{},void 0,!0)]),a.$slots.suffix?(t(),n("span",y,[o(a.$slots,"suffix",{},void 0,!0)])):r("",!0)]),_:3},8,["class"]))}}),T=m(s,[["__scopeId","data-v-231a6572"]]);s.__docgenInfo=Object.assign({displayName:s.name??s.__name},{name:"PzTag",exportName:"default",displayName:"PzTag",description:"",tags:{},props:[{name:"variant",required:!1,type:{name:"PzTagVariant"},defaultValue:{func:!1,value:'"grey"'}},{name:"as",required:!1,type:{name:"PzTagTag"},defaultValue:{func:!1,value:'"span"'}},{name:"typography",required:!1,type:{name:"PzTextVariant"}}],slots:[{name:"prefix"},{name:"default"},{name:"suffix"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Display/PzTag/PzTag.vue"]});export{T as P};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as c}from"./PzIcon-
|
|
1
|
+
import{_ as c}from"./PzIcon-CYs6UFeE.js";import{P as g}from"./PzText-icV27wTp.js";import{p as d}from"./configs-B15JgQZ-.js";import{P as o}from"./PzTag-Car_Cjwk.js";import"./iframe-C2pB1MTP.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const m=["grey","blue","green","red","grey-light"],f=["span","div","li"],v=[{variant:"grey",label:"Neutral"},{variant:"grey-light",label:"Neutral light"},{variant:"blue",label:"Information"},{variant:"green",label:"Verified"},{variant:"red",label:"Important"}],y=t=>{const e=[t.variant!=="grey"?`variant="${t.variant}"`:null,t.as!=="span"?`as="${t.as}"`:null].filter(l=>!!l).join(" "),n=t.showPrefix?`
|
|
2
2
|
<template #prefix>
|
|
3
3
|
<PzIcon name="sell" size="12" />
|
|
4
4
|
</template>`:"",p=t.showSuffix?`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pz-text[data-v-
|
|
1
|
+
.pz-text[data-v-2680fad4]{margin:0;padding:0}.pz-text--h1-bold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-44)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 700));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}@media (max-width: 575.98px){.pz-text--h1-bold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-24)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 700));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}}.pz-text--h1-regular[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-44)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}@media (max-width: 575.98px){.pz-text--h1-regular[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-24)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}}.pz-text--h2-bold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-32)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 700));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}@media (max-width: 575.98px){.pz-text--h2-bold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-20)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 700));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}}.pz-text--h3-bold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-24)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 700));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}@media (max-width: 575.98px){.pz-text--h3-bold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-18)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 700));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}}.pz-text--h3-regular[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-24)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}@media (max-width: 575.98px){.pz-text--h3-regular[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-18)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}}.pz-text--h4-regular[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-18)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}@media (max-width: 575.98px){.pz-text--h4-regular[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-16)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}}.pz-text--h4-semibold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-18)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 600));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}@media (max-width: 575.98px){.pz-text--h4-semibold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-16)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 600));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}}.pz-text--h4-bold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-18)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 700));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}@media (max-width: 575.98px){.pz-text--h4-bold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-16)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 700));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}}.pz-text--subtitle[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-16)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 600));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}.pz-text--body-regular[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-14)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}.pz-text--body-semibold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-14)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 600));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}.pz-text--body-bold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-14)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 700));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}.pz-text--capitalized[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-14)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5));text-transform:uppercase;letter-spacing:.05em}.pz-text--hint[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-14)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5));color:var(--pz-color-text-secondary)}.pz-text--line-through[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-14)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5));text-decoration:line-through}.pz-text--small-regular[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-12)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}.pz-text--small-semibold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-12)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 600));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}.pz-text--small-bold[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-12)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 700));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}.pz-text--link[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-14)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5));color:var(--pz-color-text-link);text-decoration:underline;cursor:pointer}.pz-text--link[data-v-2680fad4]:hover{color:var(--pz-color-text-link-hover)}.pz-text--document[data-v-2680fad4]{overflow-wrap:break-word;font-size:var(--pz-text-font-size, var(--pz-typography-font-size, var(--pz-font-size-14)));font-weight:var(--pz-text-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-line-height, var(--pz-typography-line-height, 1.5))}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as n,y as r,f as d,z as p,g as u,A as i,o as m,B as c}from"./iframe-C2pB1MTP.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";const e=n({name:"PzText",__name:"PzText",props:{variant:{default:"body-regular"},as:{default:void 0}},setup(a){const t={"h1-bold":"h1","h1-regular":"h1","h2-bold":"h2","h3-bold":"h3","h3-regular":"h3","h4-regular":"h4","h4-semibold":"h4","h4-bold":"h4",subtitle:"p","body-regular":"p","body-semibold":"p","body-bold":"p",capitalized:"span",hint:"span","line-through":"span","small-regular":"span","small-semibold":"span","small-bold":"span",link:"a",document:"p"},s=a,l=u(()=>s.as??t[s.variant]??"span");return(o,h)=>(m(),r(p(l.value),{class:d(["pz-text",`pz-text--${a.variant}`])},{default:i(()=>[c(o.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),g=f(e,[["__scopeId","data-v-2680fad4"]]);e.__docgenInfo=Object.assign({displayName:e.name??e.__name},{name:"PzText",exportName:"default",displayName:"PzText",description:"",tags:{},props:[{name:"variant",required:!1,type:{name:"PzTextVariant"},defaultValue:{func:!1,value:'"body-regular"'}},{name:"as",required:!1,type:{name:"PzTextTag"},defaultValue:{func:!1,value:"undefined"}}],slots:[{name:"default"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Text/PzText/PzText.vue"]});export{g as P};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{a as De,p as Pe}from"./configs-B15JgQZ-.js";import{P as R}from"./PzText-
|
|
1
|
+
import{a as De,p as Pe}from"./configs-B15JgQZ-.js";import{P as R}from"./PzText-icV27wTp.js";import"./iframe-C2pB1MTP.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const $e=r=>r.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),Ee={title:"Components/Text/PzText",component:R,parameters:{prototype:{caption:"Text component",note:"Component-level playground for semantic tag overrides and text variant rendering."},docs:{description:{component:"Vue text primitive for rendering the shared typography variants. Use `Foundation/Typography` for the full type-scale reference and `Components/Text/PzText` for the component API."},source:{transform:(r,e)=>{const a=e.args??{};return`<template>
|
|
2
2
|
<PzText ${[a.variant?`variant="${a.variant}"`:null,a.as?`as="${a.as}"`:null,a.content?`content="${a.content}"`:null].filter(Boolean).join(" ")} />
|
|
3
|
-
</template>`}}}},args:{variant:"body-regular",content:"Every procurement notice should stay readable across dense interfaces and long-form content."},argTypes:{variant:{control:"select",options:Pe,description:"Text style variant from the Design System."},as:{control:"select",options:De,description:"HTML tag to render. Defaults to a semantic tag based on variant."},content:{control:"text",description:"Text content.",table:{category:"Slots"}}},render:r=>({components:{pzText:R},setup(){const e=$e(r.variant);return{args:r,currentLabel:e}},template:`
|
|
3
|
+
</template>`}}}},args:{variant:"body-regular",content:"Every procurement notice should stay readable across dense interfaces and long-form content."},argTypes:{variant:{control:"select",options:Pe,description:"Text style variant from the Design System."},as:{control:"select",options:De,description:"HTML tag to render. Defaults to a semantic tag based on variant."},content:{control:"text",description:"Text content.",table:{category:"Slots"}}},render:r=>({components:{pzText:R},setup(){const e=$e(r.variant??"body-regular");return{args:r,currentLabel:e}},template:`
|
|
4
4
|
<section class="pz-text-demo">
|
|
5
5
|
<div class="pz-text-demo-header">
|
|
6
6
|
<div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as se,a3 as xe,w as x,a4 as fe,h as _e,o as q,e as ge,q as U,B as H,v as g,n as he,r as C,g as v,i as X,y as Y,A as G,f as ve,Y as ze,C as ye,t as be,p as we}from"./iframe-yhLt8Lok.js";import{P as oe}from"./PzText-OlPU47Sz.js";import{p as Ce}from"./configs-B15JgQZ-.js";import{P as Le}from"./PzBtn-B6FfMKnt.js";import{_ as Te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";var R=null;function Se(e){return R||(R=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){return setTimeout(a,16)}).bind(window)),R(e)}var N=null;function Pe(e){N||(N=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(a){clearTimeout(a)}).bind(window)),N(e)}function Ee(e){var a=document.createElement("style");return a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(a),a}function z(e,a){a===void 0&&(a={});var t=document.createElement(e);return Object.keys(a).forEach(function(r){t[r]=a[r]}),t}function ie(e,a,t){var r=window.getComputedStyle(e,null)||{display:"none"};return r[a]}function O(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var a=e;a!==document;){if(ie(a,"display")==="none")return{detached:!1,rendered:!1};a=a.parentNode}return{detached:!1,rendered:!0}}var ke='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',A=0,L=null;function Re(e,a){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=He.bind(e));var t=e.__resize_listeners__;if(!t){if(e.__resize_listeners__=[],window.ResizeObserver){var r=e.offsetWidth,i=e.offsetHeight,o=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===r&&e.offsetHeight===i)||S(e)}),n=O(e),p=n.detached,d=n.rendered;e.__resize_observer_triggered__=p===!1&&d===!1,e.__resize_observer__=o,o.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){S(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(A||(L=Ee(ke)),Oe(e),e.__resize_rendered__=O(e).rendered,window.MutationObserver){var l=new MutationObserver(e.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=l}}e.__resize_listeners__.push(a),A++}function Ne(e,a){var t=e.__resize_listeners__;if(t){if(a&&t.splice(t.indexOf(a),1),!t.length||!a){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",B),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--A&&L&&L.parentNode.removeChild(L)}}function qe(e){var a=e.__resize_last__,t=a.width,r=a.height,i=e.offsetWidth,o=e.offsetHeight;return i!==t||o!==r?{width:i,height:o}:null}function He(){var e=O(this),a=e.rendered,t=e.detached;a!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(F(this),this.addEventListener("scroll",B,!0)),this.__resize_rendered__=a,S(this))}function B(){var e=this;F(this),this.__resize_raf__&&Pe(this.__resize_raf__),this.__resize_raf__=Se(function(){var a=qe(e);a&&(e.__resize_last__=a,S(e))})}function S(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(a){a.call(e,e)})}function Oe(e){var a=ie(e,"position");(!a||a==="static")&&(e.style.position="relative"),e.__resize_old_position__=a,e.__resize_last__={};var t=z("div",{className:"resize-triggers"}),r=z("div",{className:"resize-expand-trigger"}),i=z("div"),o=z("div",{className:"resize-contract-trigger"});r.appendChild(i),t.appendChild(r),t.appendChild(o),e.appendChild(t),e.__resize_triggers__={triggers:t,expand:r,expandChild:i,contract:o},F(e),e.addEventListener("scroll",B,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function F(e){var a=e.__resize_triggers__,t=a.expand,r=a.expandChild,i=a.contract,o=i.scrollWidth,n=i.scrollHeight,p=t.offsetWidth,d=t.offsetHeight,l=t.scrollWidth,f=t.scrollHeight;i.scrollLeft=o,i.scrollTop=n,r.style.width=p+1+"px",r.style.height=d+1+"px",t.scrollLeft=l,t.scrollTop=f}const Ae=["aria-label"];var le=se({__name:"text-clamp",props:{text:{type:String,required:!0},maxHeight:{type:[String,Number],required:!1},maxLines:{type:Number,required:!1},expanded:{type:Boolean,required:!1,default:!1},location:{type:String,required:!1,default:"end"},ellipsis:{type:String,required:!1,default:"…"},autoResize:{type:Boolean,required:!1,default:!1}},emits:["clamp-change","update:expanded"],setup(e,{emit:a}){const t=e,r=C(null),i=C(null),o=C(null),n=xe({offset:0,localExpanded:!!t.expanded,unregisterResizeCallback:null}),p=v(()=>{if(!n.localExpanded&&t.maxHeight)return typeof(t==null?void 0:t.maxHeight)=="number"?`${t==null?void 0:t.maxHeight}px`:t==null?void 0:t.maxHeight}),d=()=>{o.value&&(o.value.textContent=ue.value)},l=()=>{n.localExpanded||(d(),(h()||c.value)&&E())},f=()=>{t.text&&(n.offset=t.text.length,V(),t.autoResize&&r.value&&(Re(r.value,l),n.unregisterResizeCallback=()=>{r.value&&Ne(r.value,l)}),l())},V=()=>{var s;(s=n.unregisterResizeCallback)==null||s.call(n)},h=()=>!(!t.maxLines&&!t.maxHeight)&&!!r.value&&(!!(t.maxLines&&P()>t.maxLines)||!!(t.maxHeight&&r.value.scrollHeight>r.value.offsetHeight)),P=()=>i.value?Object.keys(Array.prototype.slice.call(i.value.getClientRects()).reduce((s,{top:u,bottom:_})=>{const m=`${u}/${_}`;return s[m]||(s[m]=!0),s},{})).length:0,E=(...s)=>{const[u=0,_=n.offset]=s;if(_-u<=3)return void de();const m=Math.floor((_+u)/2);k(m),h()?E(u,m):E(m,_)},k=s=>{n.offset=s,d()},de=()=>{pe(),ce()},pe=()=>{for(;(!h()||P()<2)&&n.offset<t.text.length;)j(1)},ce=()=>{for(;h()&&P()>1&&n.offset>0;)j(-1)},j=s=>{k(n.offset+s)},c=v(()=>!!t.text&&n.offset!==t.text.length);x(()=>c.value,s=>{setTimeout(()=>{a("clamp-change",s)},0)},{immediate:!0});const ue=v(()=>c.value?me.value:t.text),me=v(()=>{if(t.location==="start")return t.ellipsis+(t.text.slice(-n.offset)||"").trim();if(t.location==="middle"){const s=Math.floor(n.offset/2);return(t.text.slice(0,s)||"").trim()+t.ellipsis+(t.text.slice(-s)||"").trim()}return(t.text.slice(0,n.offset)||"").trim()+t.ellipsis}),D=()=>{n.localExpanded=!0},W=()=>{n.localExpanded=!1},I=()=>{n.localExpanded=!n.localExpanded};return x(()=>t.expanded,s=>{n.localExpanded=s}),x(()=>n.localExpanded,s=>{s?k(t.text.length):l(),t.expanded!==s&&a("update:expanded",s)}),x(()=>[t.maxLines,t.maxHeight,t.ellipsis,t.location,c.value].join(),()=>{X(()=>{l()})}),x(()=>[t.text,t.autoResize].join(),()=>{X(()=>{f()})}),fe(()=>{V()}),_e(()=>{f()}),(s,u)=>(q(),ge("div",{ref_key:"textClampRef",ref:r,class:"text-clamp",style:he({overflow:"hidden",maxHeight:g(p)})},[U("span",{ref_key:"contentRef",ref:i},[H(s.$slots,"before",{expand:D,collapse:W,toggle:I,clamped:g(c),expanded:n.localExpanded}),U("span",{ref_key:"textRef",ref:o,"aria-label":e.text},null,8,Ae),H(s.$slots,"after",{expand:D,collapse:W,toggle:I,clamped:g(c),expanded:n.localExpanded})],512)],4))}});le.__file="package/text-clamp.vue";const Me=e=>(e.install=function(a){a.component(e.__name,e)},e),$e=Me(le),Be=3,Fe="... ",T=se({name:"PzTextClamp",__name:"PzTextClamp",props:{text:{},maxContentLines:{default:Be},clampPostfix:{default:Fe},btnClass:{default:""},autoResize:{type:Boolean,default:!0},expanded:{type:Boolean,default:!1},expandLabel:{default:"Show more"},collapseLabel:{default:"Collapse"},typography:{}},emits:["update:expanded","clamp-change"],setup(e,{emit:a}){const t=a,r=o=>{t("update:expanded",o)},i=o=>{t("clamp-change",o)};return(o,n)=>(q(),Y(g($e),{text:e.text,"max-lines":e.maxContentLines,ellipsis:e.clampPostfix,expanded:e.expanded,"auto-resize":e.autoResize,class:ve(["pz-text-clamp",e.typography?`pz-typography--${e.typography}`:null]),"onUpdate:expanded":r,onClampChange:i},{after:G(({toggle:p,expanded:d,clamped:l})=>[H(o.$slots,"toggle",{toggle:p,expanded:d,clamped:l},()=>[l||d?(q(),Y(g(Le),{key:0,variant:"transparent",type:"button",typography:e.typography??"body-regular",class:"pz-text-clamp__btn",onClick:ze(p,["stop"])},{default:G(()=>[ye(be(d?e.collapseLabel:e.expandLabel),1)]),_:2},1032,["typography","onClick"])):we("",!0)],!0)]),_:3},8,["text","max-lines","ellipsis","expanded","auto-resize","class"]))}}),M=Te(T,[["__scopeId","data-v-82381675"]]);T.__docgenInfo=Object.assign({displayName:T.name??T.__name},{name:"PzTextClamp",exportName:"default",displayName:"PzTextClamp",description:"",tags:{},props:[{name:"text",required:!0,type:{name:"string"}},{name:"maxContentLines",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"MAX_CONTENT_LINES"}},{name:"clampPostfix",required:!1,type:{name:"string"},defaultValue:{func:!1,value:"DEFAULT_CLAMP_POSTFIX"}},{name:"btnClass",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"autoResize",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"expanded",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"expandLabel",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'"Show more"'}},{name:"collapseLabel",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'"Collapse"'}},{name:"typography",required:!1,type:{name:"PzTextVariant"}}],events:[{name:"update:expanded",type:{names:["boolean"]}},{name:"clamp-change",type:{names:["boolean"]}}],slots:[{name:"toggle",scoped:!0,bindings:[{name:"toggle",title:"binding"},{name:"expanded",title:"binding"},{name:"clamped",title:"binding"}]}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Text/PzTextClamp/PzTextClamp.vue"]});const $=[{kicker:"News teaser",title:"Two lines with default toggle",text:"The procurement framework for recovery projects should remain readable even when editors add dense context, supporting details, and legal clarifications into a single preview paragraph.",maxContentLines:2},{kicker:"Tender summary",title:"Three lines with longer body copy",text:"Prozorro teams often need the first block of text to stay compact inside cards, while still giving visitors a way to reveal the full explanation, deadlines, and rationale without leaving the page context.",maxContentLines:3},{kicker:"Always expanded",title:"Controlled expanded state",text:"This example starts opened to show that the wrapper supports v-model style control through update:expanded and still keeps the same text treatment as the collapsed variant.",maxContentLines:2,expanded:!0}],Ve=e=>`<template>
|
|
1
|
+
import{d as se,a3 as xe,w as x,a4 as fe,h as _e,o as q,e as ge,q as U,B as H,v as g,n as he,r as C,g as v,i as X,y as Y,A as G,f as ve,Y as ze,C as ye,t as be,p as we}from"./iframe-C2pB1MTP.js";import{P as oe}from"./PzText-icV27wTp.js";import{p as Ce}from"./configs-B15JgQZ-.js";import{P as Le}from"./PzBtn--P8Njic2.js";import{_ as Te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";var R=null;function Se(e){return R||(R=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){return setTimeout(a,16)}).bind(window)),R(e)}var N=null;function Pe(e){N||(N=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(a){clearTimeout(a)}).bind(window)),N(e)}function Ee(e){var a=document.createElement("style");return a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(a),a}function z(e,a){a===void 0&&(a={});var t=document.createElement(e);return Object.keys(a).forEach(function(r){t[r]=a[r]}),t}function ie(e,a,t){var r=window.getComputedStyle(e,null)||{display:"none"};return r[a]}function O(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var a=e;a!==document;){if(ie(a,"display")==="none")return{detached:!1,rendered:!1};a=a.parentNode}return{detached:!1,rendered:!0}}var ke='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',A=0,L=null;function Re(e,a){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=He.bind(e));var t=e.__resize_listeners__;if(!t){if(e.__resize_listeners__=[],window.ResizeObserver){var r=e.offsetWidth,i=e.offsetHeight,o=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===r&&e.offsetHeight===i)||S(e)}),n=O(e),p=n.detached,d=n.rendered;e.__resize_observer_triggered__=p===!1&&d===!1,e.__resize_observer__=o,o.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){S(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(A||(L=Ee(ke)),Oe(e),e.__resize_rendered__=O(e).rendered,window.MutationObserver){var l=new MutationObserver(e.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=l}}e.__resize_listeners__.push(a),A++}function Ne(e,a){var t=e.__resize_listeners__;if(t){if(a&&t.splice(t.indexOf(a),1),!t.length||!a){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",B),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--A&&L&&L.parentNode.removeChild(L)}}function qe(e){var a=e.__resize_last__,t=a.width,r=a.height,i=e.offsetWidth,o=e.offsetHeight;return i!==t||o!==r?{width:i,height:o}:null}function He(){var e=O(this),a=e.rendered,t=e.detached;a!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(F(this),this.addEventListener("scroll",B,!0)),this.__resize_rendered__=a,S(this))}function B(){var e=this;F(this),this.__resize_raf__&&Pe(this.__resize_raf__),this.__resize_raf__=Se(function(){var a=qe(e);a&&(e.__resize_last__=a,S(e))})}function S(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(a){a.call(e,e)})}function Oe(e){var a=ie(e,"position");(!a||a==="static")&&(e.style.position="relative"),e.__resize_old_position__=a,e.__resize_last__={};var t=z("div",{className:"resize-triggers"}),r=z("div",{className:"resize-expand-trigger"}),i=z("div"),o=z("div",{className:"resize-contract-trigger"});r.appendChild(i),t.appendChild(r),t.appendChild(o),e.appendChild(t),e.__resize_triggers__={triggers:t,expand:r,expandChild:i,contract:o},F(e),e.addEventListener("scroll",B,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function F(e){var a=e.__resize_triggers__,t=a.expand,r=a.expandChild,i=a.contract,o=i.scrollWidth,n=i.scrollHeight,p=t.offsetWidth,d=t.offsetHeight,l=t.scrollWidth,f=t.scrollHeight;i.scrollLeft=o,i.scrollTop=n,r.style.width=p+1+"px",r.style.height=d+1+"px",t.scrollLeft=l,t.scrollTop=f}const Ae=["aria-label"];var le=se({__name:"text-clamp",props:{text:{type:String,required:!0},maxHeight:{type:[String,Number],required:!1},maxLines:{type:Number,required:!1},expanded:{type:Boolean,required:!1,default:!1},location:{type:String,required:!1,default:"end"},ellipsis:{type:String,required:!1,default:"…"},autoResize:{type:Boolean,required:!1,default:!1}},emits:["clamp-change","update:expanded"],setup(e,{emit:a}){const t=e,r=C(null),i=C(null),o=C(null),n=xe({offset:0,localExpanded:!!t.expanded,unregisterResizeCallback:null}),p=v(()=>{if(!n.localExpanded&&t.maxHeight)return typeof(t==null?void 0:t.maxHeight)=="number"?`${t==null?void 0:t.maxHeight}px`:t==null?void 0:t.maxHeight}),d=()=>{o.value&&(o.value.textContent=ue.value)},l=()=>{n.localExpanded||(d(),(h()||c.value)&&E())},f=()=>{t.text&&(n.offset=t.text.length,V(),t.autoResize&&r.value&&(Re(r.value,l),n.unregisterResizeCallback=()=>{r.value&&Ne(r.value,l)}),l())},V=()=>{var s;(s=n.unregisterResizeCallback)==null||s.call(n)},h=()=>!(!t.maxLines&&!t.maxHeight)&&!!r.value&&(!!(t.maxLines&&P()>t.maxLines)||!!(t.maxHeight&&r.value.scrollHeight>r.value.offsetHeight)),P=()=>i.value?Object.keys(Array.prototype.slice.call(i.value.getClientRects()).reduce((s,{top:u,bottom:_})=>{const m=`${u}/${_}`;return s[m]||(s[m]=!0),s},{})).length:0,E=(...s)=>{const[u=0,_=n.offset]=s;if(_-u<=3)return void de();const m=Math.floor((_+u)/2);k(m),h()?E(u,m):E(m,_)},k=s=>{n.offset=s,d()},de=()=>{pe(),ce()},pe=()=>{for(;(!h()||P()<2)&&n.offset<t.text.length;)j(1)},ce=()=>{for(;h()&&P()>1&&n.offset>0;)j(-1)},j=s=>{k(n.offset+s)},c=v(()=>!!t.text&&n.offset!==t.text.length);x(()=>c.value,s=>{setTimeout(()=>{a("clamp-change",s)},0)},{immediate:!0});const ue=v(()=>c.value?me.value:t.text),me=v(()=>{if(t.location==="start")return t.ellipsis+(t.text.slice(-n.offset)||"").trim();if(t.location==="middle"){const s=Math.floor(n.offset/2);return(t.text.slice(0,s)||"").trim()+t.ellipsis+(t.text.slice(-s)||"").trim()}return(t.text.slice(0,n.offset)||"").trim()+t.ellipsis}),D=()=>{n.localExpanded=!0},W=()=>{n.localExpanded=!1},I=()=>{n.localExpanded=!n.localExpanded};return x(()=>t.expanded,s=>{n.localExpanded=s}),x(()=>n.localExpanded,s=>{s?k(t.text.length):l(),t.expanded!==s&&a("update:expanded",s)}),x(()=>[t.maxLines,t.maxHeight,t.ellipsis,t.location,c.value].join(),()=>{X(()=>{l()})}),x(()=>[t.text,t.autoResize].join(),()=>{X(()=>{f()})}),fe(()=>{V()}),_e(()=>{f()}),(s,u)=>(q(),ge("div",{ref_key:"textClampRef",ref:r,class:"text-clamp",style:he({overflow:"hidden",maxHeight:g(p)})},[U("span",{ref_key:"contentRef",ref:i},[H(s.$slots,"before",{expand:D,collapse:W,toggle:I,clamped:g(c),expanded:n.localExpanded}),U("span",{ref_key:"textRef",ref:o,"aria-label":e.text},null,8,Ae),H(s.$slots,"after",{expand:D,collapse:W,toggle:I,clamped:g(c),expanded:n.localExpanded})],512)],4))}});le.__file="package/text-clamp.vue";const Me=e=>(e.install=function(a){a.component(e.__name,e)},e),$e=Me(le),Be=3,Fe="... ",T=se({name:"PzTextClamp",__name:"PzTextClamp",props:{text:{},maxContentLines:{default:Be},clampPostfix:{default:Fe},btnClass:{default:""},autoResize:{type:Boolean,default:!0},expanded:{type:Boolean,default:!1},expandLabel:{default:"Show more"},collapseLabel:{default:"Collapse"},typography:{}},emits:["update:expanded","clamp-change"],setup(e,{emit:a}){const t=a,r=o=>{t("update:expanded",o)},i=o=>{t("clamp-change",o)};return(o,n)=>(q(),Y(g($e),{text:e.text,"max-lines":e.maxContentLines,ellipsis:e.clampPostfix,expanded:e.expanded,"auto-resize":e.autoResize,class:ve(["pz-text-clamp",e.typography?`pz-typography--${e.typography}`:null]),"onUpdate:expanded":r,onClampChange:i},{after:G(({toggle:p,expanded:d,clamped:l})=>[H(o.$slots,"toggle",{toggle:p,expanded:d,clamped:l},()=>[l||d?(q(),Y(g(Le),{key:0,variant:"transparent",type:"button",typography:e.typography??"body-regular",class:"pz-text-clamp__btn",onClick:ze(p,["stop"])},{default:G(()=>[ye(be(d?e.collapseLabel:e.expandLabel),1)]),_:2},1032,["typography","onClick"])):we("",!0)],!0)]),_:3},8,["text","max-lines","ellipsis","expanded","auto-resize","class"]))}}),M=Te(T,[["__scopeId","data-v-82381675"]]);T.__docgenInfo=Object.assign({displayName:T.name??T.__name},{name:"PzTextClamp",exportName:"default",displayName:"PzTextClamp",description:"",tags:{},props:[{name:"text",required:!0,type:{name:"string"}},{name:"maxContentLines",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"MAX_CONTENT_LINES"}},{name:"clampPostfix",required:!1,type:{name:"string"},defaultValue:{func:!1,value:"DEFAULT_CLAMP_POSTFIX"}},{name:"btnClass",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"autoResize",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"expanded",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"expandLabel",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'"Show more"'}},{name:"collapseLabel",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'"Collapse"'}},{name:"typography",required:!1,type:{name:"PzTextVariant"}}],events:[{name:"update:expanded",type:{names:["boolean"]}},{name:"clamp-change",type:{names:["boolean"]}}],slots:[{name:"toggle",scoped:!0,bindings:[{name:"toggle",title:"binding"},{name:"expanded",title:"binding"},{name:"clamped",title:"binding"}]}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Text/PzTextClamp/PzTextClamp.vue"]});const $=[{kicker:"News teaser",title:"Two lines with default toggle",text:"The procurement framework for recovery projects should remain readable even when editors add dense context, supporting details, and legal clarifications into a single preview paragraph.",maxContentLines:2},{kicker:"Tender summary",title:"Three lines with longer body copy",text:"Prozorro teams often need the first block of text to stay compact inside cards, while still giving visitors a way to reveal the full explanation, deadlines, and rationale without leaving the page context.",maxContentLines:3},{kicker:"Always expanded",title:"Controlled expanded state",text:"This example starts opened to show that the wrapper supports v-model style control through update:expanded and still keeps the same text treatment as the collapsed variant.",maxContentLines:2,expanded:!0}],Ve=e=>`<template>
|
|
2
2
|
<PzTextClamp ${[`text="${e.text}"`,e.maxContentLines!==3?`:max-content-lines="${e.maxContentLines}"`:null,e.clampPostfix!=="... "?`clamp-postfix="${e.clampPostfix}"`:null,e.expandLabel!=="Show more"?`expand-label="${e.expandLabel}"`:null,e.collapseLabel!=="Collapse"?`collapse-label="${e.collapseLabel}"`:null,e.expanded?':expanded="true"':null].filter(t=>!!t).join(" ")} />
|
|
3
3
|
</template>`,je=()=>`<template>
|
|
4
4
|
<PzTextClamp
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as q,U as P,e as n,u as _,A as T,v as M,f as x,V as b,o as d,W as S,q as B,Z as $,t as u,p as v,g as k,r,w as N}from"./iframe-
|
|
1
|
+
import{d as q,U as P,e as n,u as _,A as T,v as M,f as x,V as b,o as d,W as S,q as B,Z as $,t as u,p as v,g as k,r,w as N}from"./iframe-C2pB1MTP.js";import{P as C}from"./PzText-icV27wTp.js";import{P as I}from"./PzLabel-Br2_1fb_.js";import{_ as F}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";const j={key:0,class:"pz-textarea-wrap"},A=["id","placeholder","disabled","maxlength","required","rows"],D={key:0,class:"pz-textarea-counter"},U=["id"],E={key:2,class:"pz-textarea-error"},c=q({name:"PzTextarea",__name:"PzTextarea",props:b({name:{},modelValue:{},label:{default:""},placeholder:{default:""},errorMessage:{default:""},counted:{type:Boolean,default:!1},maxSize:{default:1e3},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},rows:{default:4}},{modelValue:{default:""},modelModifiers:{}}),emits:b(["focus","blur","update:modelValue"],["update:modelValue"]),setup(e,{emit:l}){const a=e,i=l,o=P(e,"modelValue"),m=k(()=>o.value.length);return(f,t)=>(d(),n("div",{class:x(["pz-textarea",{error:!!a.errorMessage,disabled:a.disabled}])},[_(M(I),{label:a.label,for:a.name,required:a.required,disabled:a.disabled},{default:T(()=>[a.editable?(d(),n("span",j,[S(B("textarea",{id:a.name,"onUpdate:modelValue":t[0]||(t[0]=s=>o.value=s),placeholder:a.placeholder,disabled:a.disabled,maxlength:a.counted?a.maxSize:void 0,required:a.required,rows:a.rows,class:x(["pz-textarea-control",{"pz-textarea-control--counted":a.counted}]),onBlur:t[1]||(t[1]=s=>i("blur")),onFocus:t[2]||(t[2]=s=>i("focus"))},null,42,A),[[$,o.value]]),a.counted?(d(),n("span",D,u(m.value)+"/"+u(a.maxSize),1)):v("",!0)])):(d(),n("div",{key:1,id:a.name,class:"pz-textarea-readonly"},u(o.value),9,U)),a.errorMessage?(d(),n("span",E,u(a.errorMessage),1)):v("",!0)]),_:1},8,["label","for","required","disabled"])],2))}}),z=F(c,[["__scopeId","data-v-2c726136"]]);c.__docgenInfo=Object.assign({displayName:c.name??c.__name},{name:"PzTextarea",exportName:"default",displayName:"PzTextarea",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:"placeholder",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"errorMessage",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"counted",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"maxSize",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"1000"}},{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:"rows",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"4"}}],events:[{name:"focus"},{name:"blur"},{name:"update:modelValue",type:{names:["string"]}}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Form/PzTextarea/PzTextarea.vue"]});const w=2,L=e=>`<template>
|
|
2
2
|
<PzTextarea
|
|
3
3
|
v-model="value"
|
|
4
4
|
${[`name="${e.name}"`,e.label?`label="${e.label}"`:null,e.placeholder?`placeholder="${e.placeholder}"`:null,e.required?':required="true"':null,e.disabled?':disabled="true"':null,e.editable===!1?':editable="false"':null,e.counted?':counted="true"':null,e.maxSize?`:max-size="${e.maxSize}"`:null,e.rows&&e.rows!==w?`:rows="${e.rows}"`:null,e.errorMessage?`error-message="${e.errorMessage}"`:null].filter(a=>!!a).join(" ")}
|
package/dist/app/assets/{PzValidatorXSS.stories-CinnvE3j.js → PzValidatorXSS.stories-Duuf0ySb.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,g as z}from"./iframe-
|
|
1
|
+
import{r as c,g as z}from"./iframe-C2pB1MTP.js";import{P as u}from"./PzText-icV27wTp.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";class s{static validQuery(t){const i={};return Object.keys(t).forEach(e=>{const a=t[e];Array.isArray(a)?i[e]=a.map(n=>s.validString(n)):i[e]=s.validString(a)}),i}static validString(t){return t==null?"":String(t).replace(/<[^>]*>/gim,"").trim()}}const m=o=>`<script setup lang="ts">
|
|
2
2
|
import { PzValidatorXSS } from "@prozorro/prozorro-ui";
|
|
3
3
|
|
|
4
4
|
const input = "${o.testInput}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as n}from"./PzText-
|
|
1
|
+
import{P as n}from"./PzText-icV27wTp.js";import"./iframe-C2pB1MTP.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const p=[{token:"4",value:"4px",variable:"--pz-space-4",utility:"pz-m-4 / pz-p-4",note:"Gap between a title and its supporting text."},{token:"8",value:"8px",variable:"--pz-space-8",utility:"pz-m-8 / pz-p-8",note:"Gap between dependent text rows."},{token:"16",value:"16px",variable:"--pz-space-16",utility:"pz-m-16 / pz-p-16",note:"Spacing for title blocks, table content, and link groups."},{token:"20",value:"20px",variable:"--pz-space-20",utility:"pz-m-20 / pz-p-20",note:"Gap between equal elements."},{token:"24",value:"24px",variable:"--pz-space-24",utility:"pz-m-24 / pz-p-24",note:"Spacing for docs, dividers, and tab padding."},{token:"32",value:"32px",variable:"--pz-space-32",utility:"pz-m-32 / pz-p-32",note:"Inset from content to nested background edges."},{token:"40",value:"40px",variable:"--pz-space-40",utility:"pz-m-40 / pz-p-40",note:"Large inset inside nested content areas."},{token:"44",value:"44px",variable:"--pz-space-44",utility:"pz-m-44 / pz-p-44",note:"Gap between a header and content in cabinet layouts."},{token:"60",value:"60px",variable:"--pz-space-60",utility:"pz-m-60 / pz-p-60",note:"Gap between equal large blocks."}],s=[{title:"Margin utilities",note:"Outer spacing",items:[{name:".pz-m-*",description:"Margin on all sides."},{name:".pz-mt-* / .pz-mr-* / .pz-mb-* / .pz-ml-*",description:"Single-side margin utilities."},{name:".pz-mx-* / .pz-my-*",description:"Inline and block axis margin utilities."},{name:".pz-m-auto / .pz-mx-auto / .pz-my-auto",description:"Auto alignment helpers."}]},{title:"Padding utilities",note:"Inner spacing",items:[{name:".pz-p-*",description:"Padding on all sides."},{name:".pz-pt-* / .pz-pr-* / .pz-pb-* / .pz-pl-*",description:"Single-side padding utilities."},{name:".pz-px-* / .pz-py-*",description:"Inline and block axis padding utilities."}]}],o=[{name:"sm",prefix:".pz-{prop}-sm-{value}",minWidth:"≥ 576px",description:"Small viewports and up."},{name:"md",prefix:".pz-{prop}-md-{value}",minWidth:"≥ 768px",description:"Tablet breakpoint and up."},{name:"lg",prefix:".pz-{prop}-lg-{value}",minWidth:"≥ 1024px",description:"Large viewports and up."},{name:"xl",prefix:".pz-{prop}-xl-{value}",minWidth:"≥ 1200px",description:"Desktop breakpoint and up."},{name:"xxl",prefix:".pz-{prop}-xxl-{value}",minWidth:"≥ 1400px",description:"Wide displays and up."}],u={title:"Foundation/Spacing",parameters:{prototype:{caption:"Spacing scale",note:"Spacing token and utility reference for margin and padding helpers."},docs:{description:{component:"Spacing foundation for `@prozorro/prozorro-ui`. The utility module emits `pz-m-*` and `pz-p-*` classes backed by the shared `--pz-space-*` token scale aligned with the visible Figma spacing board."}}},render:()=>({components:{pzText:n},setup(){return{spacingTokens:p,utilityGroups:s,spacingBreakpoints:o}},template:`
|
|
2
2
|
<div class="spacing-foundation">
|
|
3
3
|
<section class="spacing-foundation-board">
|
|
4
4
|
<header class="spacing-foundation-hero">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as p}from"./PzText-
|
|
1
|
+
import{P as p}from"./PzText-icV27wTp.js";import"./iframe-C2pB1MTP.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const a=[{variant:"h1-bold",label:"Headline Bold 1",spec:"44px / 700 / 1.5"},{variant:"h1-regular",label:"Headline Regular 1",spec:"44px / 400 / 1.5"},{variant:"h2-bold",label:"Headline Bold 2",spec:"32px / 700 / 1.5"},{variant:"h3-bold",label:"Headline Bold 3",spec:"24px / 700 / 1.5"},{variant:"h3-regular",label:"Headline Regular 3",spec:"24px / 400 / 1.5"},{variant:"h4-regular",label:"Headline Regular 4",spec:"18px / 400 / 1.5"},{variant:"h4-semibold",label:"Headline Semibold 4",spec:"18px / 600 / 1.5"},{variant:"h4-bold",label:"Headline Bold 4",spec:"18px / 700 / 1.5"},{variant:"subtitle",label:"Subtitle",spec:"16px / 600 / 1.5"},{variant:"body-regular",label:"Body text regular",spec:"14px / 400 / 1.5"},{variant:"body-semibold",label:"Body text semibold",spec:"14px / 600 / 1.5"},{variant:"body-bold",label:"Body text bold",spec:"14px / 700 / 1.5"},{variant:"capitalized",label:"Capitalized text",spec:"14px / 400 / uppercase"},{variant:"hint",label:"Hint text",spec:"14px / 400 / muted"},{variant:"line-through",label:"Archived value",spec:"14px / 400 / strike"},{variant:"small-regular",label:"Small text regular",spec:"12px / 400 / 1.5"},{variant:"small-semibold",label:"Small text semibold",spec:"12px / 600 / 1.5"},{variant:"small-bold",label:"Small text bold",spec:"12px / 700 / 1.5"},{variant:"link",label:"Review procurement details",spec:"14px / 400 / underline"},{variant:"document",label:"Document text",spec:"14px / 400 / default"}],t=8,r=15,n=[{title:"Headlines",description:"Primary hierarchy for pages, sections and table headers.",items:a.slice(0,t)},{title:"Reading text",description:"Core editorial styles for descriptions, summaries and UI copy.",items:a.slice(t,r)},{title:"Utility styles",description:"Compact text styles for metadata, helpers and document references.",items:a.slice(r)}],x={title:"Foundation/Typography",parameters:{prototype:{caption:"Typography reference",note:"Foundation board for validating hierarchy, weight, and text semantics against the shared design-system scale."},docs:{description:{component:"Typography foundation reference. Use this page to review the full type scale and variant grouping; use `Components/Text/PzText` for the component API."}}},args:{variant:"body-regular",content:"Every procurement notice should stay readable across dense interfaces and long-form content."},render:o=>({components:{pzText:p},setup(){return{args:o,typographyReferenceGroups:n}},template:`
|
|
2
2
|
<div class="pz-text-board">
|
|
3
3
|
<section class="pz-text-board-hero">
|
|
4
4
|
<div class="pz-text-board-hero-copy">
|