@pipelab/ui 2.0.1-beta.18 → 2.0.1-beta.26
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/assets/Layout-CZu1Y4Q6.css +1 -0
- package/assets/Layout-DEa40xy5.js +559 -0
- package/assets/{accordion-DBTBFLg1.js → accordion-Bims3UDM.js} +3 -3
- package/assets/column-BL1r4P0x.js +763 -0
- package/assets/{editor-CL51bp-d.js → editor-DT6Eyux4.js} +13 -13
- package/assets/{editor-BOMFiSYH.css → editor-h9B-iYjg.css} +1 -1
- package/assets/index-D-cJaOxT.js +281 -0
- package/assets/pages-CkHXpNsr.css +1 -0
- package/assets/pages-DkBCoB7t.js +192 -0
- package/assets/purify-g1tOOzKG.js +3 -0
- package/assets/{radiobutton-Cde1K4jB.js → radiobutton-CMEjerCX.js} +1 -1
- package/assets/{simple-editor-CqzqSqib.js → simple-editor-D2w6ATCh.js} +1 -1
- package/assets/useTour-ChlX-Tm_.js +368 -0
- package/assets/useTour-QEAJLxtI.css +1 -0
- package/assets/useconfirm-BSnWngV-.js +52 -0
- package/assets/usetoast-7I0RTgek.css +1 -0
- package/assets/usetoast-BzemnOip.js +1992 -0
- package/index.html +7 -7
- package/package.json +1 -1
- package/assets/Layout-B1lNzRj9.js +0 -663
- package/assets/Layout-Qqlu6uy0.css +0 -1
- package/assets/column-D7q_1oPa.js +0 -763
- package/assets/index-DHsQae2y.js +0 -6
- package/assets/pages-XPhK3wzd.css +0 -1
- package/assets/pages-iuidRoIo.js +0 -192
- package/assets/purify-C0IDOR8K.js +0 -2
- package/assets/useTour-DqUgdRnH.js +0 -501
- package/assets/useTour-JbHCn35m.css +0 -1
- package/assets/useconfirm-6BubW4wf.js +0 -527
- package/assets/usetoast-DWS76osA.js +0 -1797
- package/assets/usetoast-Qjw9yjKR.css +0 -1
|
@@ -1,501 +0,0 @@
|
|
|
1
|
-
import{A as e,At as t,Dt as n,F as r,G as i,I as a,J as o,L as s,M as c,R as l,T as u,_ as d,d as f,f as p,ft as m,h,i as g,it as _,k as v,kt as y,l as b,p as x,q as S,t as C,u as w,v as T,w as ee,y as E,z as D}from"./_plugin-vue_export-helper-CUG653SX.js";import{$t as O,An as k,B as A,D as j,Ft as te,G as M,In as ne,It as N,K as re,Lt as P,N as ie,Rn as F,Xt as ae,_ as oe,d as se,en as ce,f as le,jn as ue,ln as de,mn as I,pn as L,wn as fe,z as R}from"./usetoast-DWS76osA.js";import{n as pe,r as z}from"./useconfirm-6BubW4wf.js";import{i as me,n as he,r as ge}from"./Layout-B1lNzRj9.js";var _e=[`src`],ve=E({__name:`PluginIcon`,props:{icon:{type:Object,required:!0},width:{type:[String,Number],required:!1,default:`40px`},color:{type:String,required:!1,default:`black`}},setup(e){return(t,r)=>e.icon?e.icon.type===`image`?(c(),x(`img`,{key:1,style:y({width:e.width}),src:e.icon.image},null,12,_e)):e.icon.type===`icon`?(c(),x(`i`,{key:2,style:y({"font-size":e.width,width:e.width,display:`flex`,color:e.color}),class:n({"node-icon":!0,mdi:!0,[e.icon.icon]:!0})},null,6)):p(``,!0):(c(),x(`div`,{key:0,style:y({width:e.width})},null,4))}}),ye=P.extend({name:`togglebutton`,style:`
|
|
2
|
-
.p-togglebutton {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
user-select: none;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
position: relative;
|
|
8
|
-
color: dt('togglebutton.color');
|
|
9
|
-
background: dt('togglebutton.background');
|
|
10
|
-
border: 1px solid dt('togglebutton.border.color');
|
|
11
|
-
padding: dt('togglebutton.padding');
|
|
12
|
-
font-size: 1rem;
|
|
13
|
-
font-family: inherit;
|
|
14
|
-
font-feature-settings: inherit;
|
|
15
|
-
transition:
|
|
16
|
-
background dt('togglebutton.transition.duration'),
|
|
17
|
-
color dt('togglebutton.transition.duration'),
|
|
18
|
-
border-color dt('togglebutton.transition.duration'),
|
|
19
|
-
outline-color dt('togglebutton.transition.duration'),
|
|
20
|
-
box-shadow dt('togglebutton.transition.duration');
|
|
21
|
-
border-radius: dt('togglebutton.border.radius');
|
|
22
|
-
outline-color: transparent;
|
|
23
|
-
font-weight: dt('togglebutton.font.weight');
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.p-togglebutton-content {
|
|
27
|
-
display: inline-flex;
|
|
28
|
-
flex: 1 1 auto;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
gap: dt('togglebutton.gap');
|
|
32
|
-
padding: dt('togglebutton.content.padding');
|
|
33
|
-
background: transparent;
|
|
34
|
-
border-radius: dt('togglebutton.content.border.radius');
|
|
35
|
-
transition:
|
|
36
|
-
background dt('togglebutton.transition.duration'),
|
|
37
|
-
color dt('togglebutton.transition.duration'),
|
|
38
|
-
border-color dt('togglebutton.transition.duration'),
|
|
39
|
-
outline-color dt('togglebutton.transition.duration'),
|
|
40
|
-
box-shadow dt('togglebutton.transition.duration');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {
|
|
44
|
-
background: dt('togglebutton.hover.background');
|
|
45
|
-
color: dt('togglebutton.hover.color');
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.p-togglebutton.p-togglebutton-checked {
|
|
49
|
-
background: dt('togglebutton.checked.background');
|
|
50
|
-
border-color: dt('togglebutton.checked.border.color');
|
|
51
|
-
color: dt('togglebutton.checked.color');
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.p-togglebutton-checked .p-togglebutton-content {
|
|
55
|
-
background: dt('togglebutton.content.checked.background');
|
|
56
|
-
box-shadow: dt('togglebutton.content.checked.shadow');
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.p-togglebutton:focus-visible {
|
|
60
|
-
box-shadow: dt('togglebutton.focus.ring.shadow');
|
|
61
|
-
outline: dt('togglebutton.focus.ring.width') dt('togglebutton.focus.ring.style') dt('togglebutton.focus.ring.color');
|
|
62
|
-
outline-offset: dt('togglebutton.focus.ring.offset');
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.p-togglebutton.p-invalid {
|
|
66
|
-
border-color: dt('togglebutton.invalid.border.color');
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.p-togglebutton:disabled {
|
|
70
|
-
opacity: 1;
|
|
71
|
-
cursor: default;
|
|
72
|
-
background: dt('togglebutton.disabled.background');
|
|
73
|
-
border-color: dt('togglebutton.disabled.border.color');
|
|
74
|
-
color: dt('togglebutton.disabled.color');
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.p-togglebutton-label,
|
|
78
|
-
.p-togglebutton-icon {
|
|
79
|
-
position: relative;
|
|
80
|
-
transition: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.p-togglebutton-icon {
|
|
84
|
-
color: dt('togglebutton.icon.color');
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {
|
|
88
|
-
color: dt('togglebutton.icon.hover.color');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {
|
|
92
|
-
color: dt('togglebutton.icon.checked.color');
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.p-togglebutton:disabled .p-togglebutton-icon {
|
|
96
|
-
color: dt('togglebutton.icon.disabled.color');
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.p-togglebutton-sm {
|
|
100
|
-
padding: dt('togglebutton.sm.padding');
|
|
101
|
-
font-size: dt('togglebutton.sm.font.size');
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.p-togglebutton-sm .p-togglebutton-content {
|
|
105
|
-
padding: dt('togglebutton.content.sm.padding');
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.p-togglebutton-lg {
|
|
109
|
-
padding: dt('togglebutton.lg.padding');
|
|
110
|
-
font-size: dt('togglebutton.lg.font.size');
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.p-togglebutton-lg .p-togglebutton-content {
|
|
114
|
-
padding: dt('togglebutton.content.lg.padding');
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.p-togglebutton-fluid {
|
|
118
|
-
width: 100%;
|
|
119
|
-
}
|
|
120
|
-
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-togglebutton p-component`,{"p-togglebutton-checked":t.active,"p-invalid":t.$invalid,"p-togglebutton-fluid":n.fluid,"p-togglebutton-sm p-inputfield-sm":n.size===`small`,"p-togglebutton-lg p-inputfield-lg":n.size===`large`}]},content:`p-togglebutton-content`,icon:`p-togglebutton-icon`,label:`p-togglebutton-label`}}),be={name:`BaseToggleButton`,extends:oe,props:{onIcon:String,offIcon:String,onLabel:{type:String,default:`Yes`},offLabel:{type:String,default:`No`},readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},size:{type:String,default:null},fluid:{type:Boolean,default:null}},style:ye,provide:function(){return{$pcToggleButton:this,$parentInstance:this}}};function B(e){"@babel/helpers - typeof";return B=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},B(e)}function xe(e,t,n){return(t=Se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){var t=Ce(e,`string`);return B(t)==`symbol`?t:t+``}function Ce(e,t){if(B(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(B(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var we={name:`ToggleButton`,extends:be,inheritAttrs:!1,emits:[`change`],methods:{getPTOptions:function(e){return(e===`root`?this.ptmi:this.ptm)(e,{context:{active:this.active,disabled:this.disabled}})},onChange:function(e){!this.disabled&&!this.readonly&&(this.writeValue(!this.d_value,e),this.$emit(`change`,e))},onBlur:function(e){var t,n;(t=(n=this.formField).onBlur)==null||t.call(n,e)}},computed:{active:function(){return this.d_value===!0},hasLabel:function(){return ce(this.onLabel)&&ce(this.offLabel)},label:function(){return this.hasLabel?this.d_value?this.onLabel:this.offLabel:`\xA0`},dataP:function(){return ue(xe({checked:this.active,invalid:this.$invalid},this.size,this.size))}},directives:{ripple:A}},Te=[`tabindex`,`disabled`,`aria-pressed`,`aria-label`,`aria-labelledby`,`data-p-checked`,`data-p-disabled`,`data-p`],Ee=[`data-p`];function De(e,r,i,s,d,f){var m=l(`ripple`);return o((c(),x(`button`,u({type:`button`,class:e.cx(`root`),tabindex:e.tabindex,disabled:e.disabled,"aria-pressed":e.d_value,onClick:r[0]||=function(){return f.onChange&&f.onChange.apply(f,arguments)},onBlur:r[1]||=function(){return f.onBlur&&f.onBlur.apply(f,arguments)}},f.getPTOptions(`root`),{"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"data-p-checked":f.active,"data-p-disabled":e.disabled,"data-p":f.dataP}),[w(`span`,u({class:e.cx(`content`)},f.getPTOptions(`content`),{"data-p":f.dataP}),[a(e.$slots,`default`,{},function(){return[a(e.$slots,`icon`,{value:e.d_value,class:n(e.cx(`icon`))},function(){return[e.onIcon||e.offIcon?(c(),x(`span`,u({key:0,class:[e.cx(`icon`),e.d_value?e.onIcon:e.offIcon]},f.getPTOptions(`icon`)),null,16)):p(``,!0)]}),w(`span`,u({class:e.cx(`label`)},f.getPTOptions(`label`)),t(f.label),17)]})],16,Ee)],16,Te)),[[m]])}we.render=De;var Oe=P.extend({name:`selectbutton`,style:`
|
|
121
|
-
.p-selectbutton {
|
|
122
|
-
display: inline-flex;
|
|
123
|
-
user-select: none;
|
|
124
|
-
vertical-align: bottom;
|
|
125
|
-
outline-color: transparent;
|
|
126
|
-
border-radius: dt('selectbutton.border.radius');
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.p-selectbutton .p-togglebutton {
|
|
130
|
-
border-radius: 0;
|
|
131
|
-
border-width: 1px 1px 1px 0;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.p-selectbutton .p-togglebutton:focus-visible {
|
|
135
|
-
position: relative;
|
|
136
|
-
z-index: 1;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.p-selectbutton .p-togglebutton:first-child {
|
|
140
|
-
border-inline-start-width: 1px;
|
|
141
|
-
border-start-start-radius: dt('selectbutton.border.radius');
|
|
142
|
-
border-end-start-radius: dt('selectbutton.border.radius');
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.p-selectbutton .p-togglebutton:last-child {
|
|
146
|
-
border-start-end-radius: dt('selectbutton.border.radius');
|
|
147
|
-
border-end-end-radius: dt('selectbutton.border.radius');
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.p-selectbutton.p-invalid {
|
|
151
|
-
outline: 1px solid dt('selectbutton.invalid.border.color');
|
|
152
|
-
outline-offset: 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.p-selectbutton-fluid {
|
|
156
|
-
width: 100%;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.p-selectbutton-fluid .p-togglebutton {
|
|
160
|
-
flex: 1 1 0;
|
|
161
|
-
}
|
|
162
|
-
`,classes:{root:function(e){var t=e.props;return[`p-selectbutton p-component`,{"p-invalid":e.instance.$invalid,"p-selectbutton-fluid":t.fluid}]}}}),ke={name:`BaseSelectButton`,extends:oe,props:{options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,allowEmpty:{type:Boolean,default:!0},dataKey:null,ariaLabelledby:{type:String,default:null},size:{type:String,default:null},fluid:{type:Boolean,default:null}},style:Oe,provide:function(){return{$pcSelectButton:this,$parentInstance:this}}};function Ae(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Ne(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
163
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function je(e){return Fe(e)||Pe(e)||Ne(e)||Me()}function Me(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
164
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(e,t){if(e){if(typeof e==`string`)return Ie(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(e,t):void 0}}function Pe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Fe(e){if(Array.isArray(e))return Ie(e)}function Ie(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Le={name:`SelectButton`,extends:ke,inheritAttrs:!1,emits:[`change`],methods:{getOptionLabel:function(e){return this.optionLabel?O(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?O(e,this.optionValue):e},getOptionRenderKey:function(e){return this.dataKey?O(e,this.dataKey):this.getOptionLabel(e)},isOptionDisabled:function(e){return this.optionDisabled?O(e,this.optionDisabled):!1},isOptionReadonly:function(e){if(this.allowEmpty)return!1;var t=this.isSelected(e);return this.multiple?t&&this.d_value.length===1:t},onOptionSelect:function(e,t,n){var r=this;if(!(this.disabled||this.isOptionDisabled(t)||this.isOptionReadonly(t))){var i=this.isSelected(t),a=this.getOptionValue(t),o;if(this.multiple)if(i){if(o=this.d_value.filter(function(e){return!ae(e,a,r.equalityKey)}),!this.allowEmpty&&o.length===0)return}else o=this.d_value?[].concat(je(this.d_value),[a]):[a];else{if(i&&!this.allowEmpty)return;o=i?null:a}this.writeValue(o,e),this.$emit(`change`,{originalEvent:e,value:o})}},isSelected:function(e){var t=!1,n=this.getOptionValue(e);if(this.multiple){if(this.d_value){var r=Ae(this.d_value),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(ae(a,n,this.equalityKey)){t=!0;break}}}catch(e){r.e(e)}finally{r.f()}}}else t=ae(this.d_value,n,this.equalityKey);return t}},computed:{equalityKey:function(){return this.optionValue?null:this.dataKey},dataP:function(){return ue({invalid:this.$invalid})}},directives:{ripple:A},components:{ToggleButton:we}},Re=[`aria-labelledby`,`data-p`];function ze(e,n,i,o,l,d){var p=s(`ToggleButton`);return c(),x(`div`,u({class:e.cx(`root`),role:`group`,"aria-labelledby":e.ariaLabelledby},e.ptmi(`root`),{"data-p":d.dataP}),[(c(!0),x(g,null,r(e.options,function(n,r){return c(),f(p,{key:d.getOptionRenderKey(n),modelValue:d.isSelected(n),onLabel:d.getOptionLabel(n),offLabel:d.getOptionLabel(n),disabled:e.disabled||d.isOptionDisabled(n),unstyled:e.unstyled,size:e.size,readonly:d.isOptionReadonly(n),onChange:function(e){return d.onOptionSelect(e,n,r)},pt:e.ptm(`pcToggleButton`)},h({_:2},[e.$slots.option?{name:`default`,fn:S(function(){return[a(e.$slots,`option`,{option:n,index:r},function(){return[w(`span`,u({ref_for:!0},e.ptm(`pcToggleButton`).label),t(d.getOptionLabel(n)),17)]})]}),key:`0`}:void 0]),1032,[`modelValue`,`onLabel`,`offLabel`,`disabled`,`unstyled`,`size`,`readonly`,`onChange`,`pt`])}),128))],16,Re)}Le.render=ze;var Be=P.extend({name:`progressbar`,style:`
|
|
165
|
-
.p-progressbar {
|
|
166
|
-
display: block;
|
|
167
|
-
position: relative;
|
|
168
|
-
overflow: hidden;
|
|
169
|
-
height: dt('progressbar.height');
|
|
170
|
-
background: dt('progressbar.background');
|
|
171
|
-
border-radius: dt('progressbar.border.radius');
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.p-progressbar-value {
|
|
175
|
-
margin: 0;
|
|
176
|
-
background: dt('progressbar.value.background');
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.p-progressbar-label {
|
|
180
|
-
color: dt('progressbar.label.color');
|
|
181
|
-
font-size: dt('progressbar.label.font.size');
|
|
182
|
-
font-weight: dt('progressbar.label.font.weight');
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.p-progressbar-determinate .p-progressbar-value {
|
|
186
|
-
height: 100%;
|
|
187
|
-
width: 0%;
|
|
188
|
-
position: absolute;
|
|
189
|
-
display: none;
|
|
190
|
-
display: flex;
|
|
191
|
-
align-items: center;
|
|
192
|
-
justify-content: center;
|
|
193
|
-
overflow: hidden;
|
|
194
|
-
transition: width 1s ease-in-out;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.p-progressbar-determinate .p-progressbar-label {
|
|
198
|
-
display: inline-flex;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.p-progressbar-indeterminate .p-progressbar-value::before {
|
|
202
|
-
content: '';
|
|
203
|
-
position: absolute;
|
|
204
|
-
background: inherit;
|
|
205
|
-
inset-block-start: 0;
|
|
206
|
-
inset-inline-start: 0;
|
|
207
|
-
inset-block-end: 0;
|
|
208
|
-
will-change: inset-inline-start, inset-inline-end;
|
|
209
|
-
animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.p-progressbar-indeterminate .p-progressbar-value::after {
|
|
213
|
-
content: '';
|
|
214
|
-
position: absolute;
|
|
215
|
-
background: inherit;
|
|
216
|
-
inset-block-start: 0;
|
|
217
|
-
inset-inline-start: 0;
|
|
218
|
-
inset-block-end: 0;
|
|
219
|
-
will-change: inset-inline-start, inset-inline-end;
|
|
220
|
-
animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
221
|
-
animation-delay: 1.15s;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
@keyframes p-progressbar-indeterminate-anim {
|
|
225
|
-
0% {
|
|
226
|
-
inset-inline-start: -35%;
|
|
227
|
-
inset-inline-end: 100%;
|
|
228
|
-
}
|
|
229
|
-
60% {
|
|
230
|
-
inset-inline-start: 100%;
|
|
231
|
-
inset-inline-end: -90%;
|
|
232
|
-
}
|
|
233
|
-
100% {
|
|
234
|
-
inset-inline-start: 100%;
|
|
235
|
-
inset-inline-end: -90%;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
@-webkit-keyframes p-progressbar-indeterminate-anim {
|
|
239
|
-
0% {
|
|
240
|
-
inset-inline-start: -35%;
|
|
241
|
-
inset-inline-end: 100%;
|
|
242
|
-
}
|
|
243
|
-
60% {
|
|
244
|
-
inset-inline-start: 100%;
|
|
245
|
-
inset-inline-end: -90%;
|
|
246
|
-
}
|
|
247
|
-
100% {
|
|
248
|
-
inset-inline-start: 100%;
|
|
249
|
-
inset-inline-end: -90%;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
@keyframes p-progressbar-indeterminate-anim-short {
|
|
254
|
-
0% {
|
|
255
|
-
inset-inline-start: -200%;
|
|
256
|
-
inset-inline-end: 100%;
|
|
257
|
-
}
|
|
258
|
-
60% {
|
|
259
|
-
inset-inline-start: 107%;
|
|
260
|
-
inset-inline-end: -8%;
|
|
261
|
-
}
|
|
262
|
-
100% {
|
|
263
|
-
inset-inline-start: 107%;
|
|
264
|
-
inset-inline-end: -8%;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
@-webkit-keyframes p-progressbar-indeterminate-anim-short {
|
|
268
|
-
0% {
|
|
269
|
-
inset-inline-start: -200%;
|
|
270
|
-
inset-inline-end: 100%;
|
|
271
|
-
}
|
|
272
|
-
60% {
|
|
273
|
-
inset-inline-start: 107%;
|
|
274
|
-
inset-inline-end: -8%;
|
|
275
|
-
}
|
|
276
|
-
100% {
|
|
277
|
-
inset-inline-start: 107%;
|
|
278
|
-
inset-inline-end: -8%;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
`,classes:{root:function(e){var t=e.instance;return[`p-progressbar p-component`,{"p-progressbar-determinate":t.determinate,"p-progressbar-indeterminate":t.indeterminate}]},value:`p-progressbar-value`,label:`p-progressbar-label`}}),Ve={name:`ProgressBar`,extends:{name:`BaseProgressBar`,extends:N,props:{value:{type:Number,default:null},mode:{type:String,default:`determinate`},showValue:{type:Boolean,default:!0}},style:Be,provide:function(){return{$pcProgressBar:this,$parentInstance:this}}},inheritAttrs:!1,computed:{progressStyle:function(){return{width:this.value+`%`,display:`flex`}},indeterminate:function(){return this.mode===`indeterminate`},determinate:function(){return this.mode===`determinate`},dataP:function(){return ue({determinate:this.determinate,indeterminate:this.indeterminate})}}},He=[`aria-valuenow`,`data-p`],Ue=[`data-p`],We=[`data-p`],Ge=[`data-p`];function Ke(e,n,r,i,o,s){return c(),x(`div`,u({role:`progressbar`,class:e.cx(`root`),"aria-valuemin":`0`,"aria-valuenow":e.value,"aria-valuemax":`100`,"data-p":s.dataP},e.ptmi(`root`)),[s.determinate?(c(),x(`div`,u({key:0,class:e.cx(`value`),style:s.progressStyle,"data-p":s.dataP},e.ptm(`value`)),[e.value!=null&&e.value!==0&&e.showValue?(c(),x(`div`,u({key:0,class:e.cx(`label`),"data-p":s.dataP},e.ptm(`label`)),[a(e.$slots,`default`,{},function(){return[d(t(e.value+`%`),1)]})],16,We)):p(``,!0)],16,Ue)):s.indeterminate?(c(),x(`div`,u({key:1,class:e.cx(`value`),"data-p":s.dataP},e.ptm(`value`)),null,16,Ge)):p(``,!0)],16,He)}Ve.render=Ke;var qe=P.extend({name:`confirmdialog`,style:`
|
|
282
|
-
.p-confirmdialog .p-dialog-content {
|
|
283
|
-
display: flex;
|
|
284
|
-
align-items: center;
|
|
285
|
-
gap: dt('confirmdialog.content.gap');
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.p-confirmdialog-icon {
|
|
289
|
-
color: dt('confirmdialog.icon.color');
|
|
290
|
-
font-size: dt('confirmdialog.icon.size');
|
|
291
|
-
width: dt('confirmdialog.icon.size');
|
|
292
|
-
height: dt('confirmdialog.icon.size');
|
|
293
|
-
}
|
|
294
|
-
`,classes:{root:`p-confirmdialog`,icon:`p-confirmdialog-icon`,message:`p-confirmdialog-message`,pcRejectButton:`p-confirmdialog-reject-button`,pcAcceptButton:`p-confirmdialog-accept-button`}}),Je={name:`ConfirmDialog`,extends:{name:`BaseConfirmDialog`,extends:N,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},style:qe,provide:function(){return{$pcConfirmDialog:this,$parentInstance:this}}},confirmListener:null,closeListener:null,data:function(){return{visible:!1,confirmation:null}},mounted:function(){var e=this;this.confirmListener=function(t){t&&t.group===e.group&&(e.confirmation=t,e.confirmation.onShow&&e.confirmation.onShow(),e.visible=!0)},this.closeListener=function(){e.visible=!1,e.confirmation=null},z.on(`confirm`,this.confirmListener),z.on(`close`,this.closeListener)},beforeUnmount:function(){z.off(`confirm`,this.confirmListener),z.off(`close`,this.closeListener)},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{appendTo:function(){return this.confirmation?this.confirmation.appendTo:`body`},target:function(){return this.confirmation?this.confirmation.target:null},modal:function(){return this.confirmation?this.confirmation.modal==null?!0:this.confirmation.modal:!0},header:function(){return this.confirmation?this.confirmation.header:null},message:function(){return this.confirmation?this.confirmation.message:null},blockScroll:function(){return this.confirmation?this.confirmation.blockScroll:!0},position:function(){return this.confirmation?this.confirmation.position:null},acceptLabel:function(){if(this.confirmation){var e=this.confirmation;return e.acceptLabel||e.acceptProps?.label||this.$primevue.config.locale.accept}return this.$primevue.config.locale.accept},rejectLabel:function(){if(this.confirmation){var e=this.confirmation;return e.rejectLabel||e.rejectProps?.label||this.$primevue.config.locale.reject}return this.$primevue.config.locale.reject},acceptIcon:function(){var e;return this.confirmation?this.confirmation.acceptIcon:(e=this.confirmation)!=null&&e.acceptProps?this.confirmation.acceptProps.icon:null},rejectIcon:function(){var e;return this.confirmation?this.confirmation.rejectIcon:(e=this.confirmation)!=null&&e.rejectProps?this.confirmation.rejectProps.icon:null},autoFocusAccept:function(){return this.confirmation.defaultFocus===void 0||this.confirmation.defaultFocus===`accept`},autoFocusReject:function(){return this.confirmation.defaultFocus===`reject`},closeOnEscape:function(){return this.confirmation?this.confirmation.closeOnEscape:!0}},components:{Dialog:j,Button:R}};function Ye(e,r,i,o,l,d){var m=s(`Button`),_=s(`Dialog`);return c(),f(_,{visible:l.visible,"onUpdate:visible":[r[2]||=function(e){return l.visible=e},d.onHide],role:`alertdialog`,class:n(e.cx(`root`)),modal:d.modal,header:d.header,blockScroll:d.blockScroll,appendTo:d.appendTo,position:d.position,breakpoints:e.breakpoints,closeOnEscape:d.closeOnEscape,draggable:e.draggable,pt:e.pt,unstyled:e.unstyled},h({default:S(function(){return[e.$slots.container?p(``,!0):(c(),x(g,{key:0},[e.$slots.message?(c(),f(D(e.$slots.message),{key:1,message:l.confirmation},null,8,[`message`])):(c(),x(g,{key:0},[a(e.$slots,`icon`,{},function(){return[e.$slots.icon?(c(),f(D(e.$slots.icon),{key:0,class:n(e.cx(`icon`))},null,8,[`class`])):l.confirmation.icon?(c(),x(`span`,u({key:1,class:[l.confirmation.icon,e.cx(`icon`)]},e.ptm(`icon`)),null,16)):p(``,!0)]}),w(`span`,u({class:e.cx(`message`)},e.ptm(`message`)),t(d.message),17)],64))],64))]}),_:2},[e.$slots.container?{name:`container`,fn:S(function(t){return[a(e.$slots,`container`,{message:l.confirmation,closeCallback:t.closeCallback,acceptCallback:d.accept,rejectCallback:d.reject,initDragCallback:t.initDragCallback})]}),key:`0`}:void 0,e.$slots.container?void 0:{name:`footer`,fn:S(function(){return[T(m,u({class:[e.cx(`pcRejectButton`),l.confirmation.rejectClass],autofocus:d.autoFocusReject,unstyled:e.unstyled,text:l.confirmation.rejectProps?.text||!1,onClick:r[0]||=function(e){return d.reject()}},l.confirmation.rejectProps,{label:d.rejectLabel,pt:e.ptm(`pcRejectButton`)}),h({_:2},[d.rejectIcon||e.$slots.rejecticon?{name:`icon`,fn:S(function(t){return[a(e.$slots,`rejecticon`,{},function(){return[w(`span`,u({class:[d.rejectIcon,t.class]},e.ptm(`pcRejectButton`).icon,{"data-pc-section":`rejectbuttonicon`}),null,16)]})]}),key:`0`}:void 0]),1040,[`class`,`autofocus`,`unstyled`,`text`,`label`,`pt`]),T(m,u({label:d.acceptLabel,class:[e.cx(`pcAcceptButton`),l.confirmation.acceptClass],autofocus:d.autoFocusAccept,unstyled:e.unstyled,onClick:r[1]||=function(e){return d.accept()}},l.confirmation.acceptProps,{pt:e.ptm(`pcAcceptButton`)}),h({_:2},[d.acceptIcon||e.$slots.accepticon?{name:`icon`,fn:S(function(t){return[a(e.$slots,`accepticon`,{},function(){return[w(`span`,u({class:[d.acceptIcon,t.class]},e.ptm(`pcAcceptButton`).icon,{"data-pc-section":`acceptbuttonicon`}),null,16)]})]}),key:`0`}:void 0]),1040,[`label`,`class`,`autofocus`,`unstyled`,`pt`])]}),key:`1`}]),1032,[`visible`,`class`,`modal`,`header`,`blockScroll`,`appendTo`,`position`,`breakpoints`,`closeOnEscape`,`draggable`,`onUpdate:visible`,`pt`,`unstyled`])}Je.render=Ye;var Xe=P.extend({name:`progressspinner`,style:`
|
|
295
|
-
.p-progressspinner {
|
|
296
|
-
position: relative;
|
|
297
|
-
margin: 0 auto;
|
|
298
|
-
width: 100px;
|
|
299
|
-
height: 100px;
|
|
300
|
-
display: inline-block;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.p-progressspinner::before {
|
|
304
|
-
content: '';
|
|
305
|
-
display: block;
|
|
306
|
-
padding-top: 100%;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.p-progressspinner-spin {
|
|
310
|
-
height: 100%;
|
|
311
|
-
transform-origin: center center;
|
|
312
|
-
width: 100%;
|
|
313
|
-
position: absolute;
|
|
314
|
-
top: 0;
|
|
315
|
-
bottom: 0;
|
|
316
|
-
left: 0;
|
|
317
|
-
right: 0;
|
|
318
|
-
margin: auto;
|
|
319
|
-
animation: p-progressspinner-rotate 2s linear infinite;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.p-progressspinner-circle {
|
|
323
|
-
stroke-dasharray: 89, 200;
|
|
324
|
-
stroke-dashoffset: 0;
|
|
325
|
-
stroke: dt('progressspinner.colorOne');
|
|
326
|
-
animation:
|
|
327
|
-
p-progressspinner-dash 1.5s ease-in-out infinite,
|
|
328
|
-
p-progressspinner-color 6s ease-in-out infinite;
|
|
329
|
-
stroke-linecap: round;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
@keyframes p-progressspinner-rotate {
|
|
333
|
-
100% {
|
|
334
|
-
transform: rotate(360deg);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
@keyframes p-progressspinner-dash {
|
|
338
|
-
0% {
|
|
339
|
-
stroke-dasharray: 1, 200;
|
|
340
|
-
stroke-dashoffset: 0;
|
|
341
|
-
}
|
|
342
|
-
50% {
|
|
343
|
-
stroke-dasharray: 89, 200;
|
|
344
|
-
stroke-dashoffset: -35px;
|
|
345
|
-
}
|
|
346
|
-
100% {
|
|
347
|
-
stroke-dasharray: 89, 200;
|
|
348
|
-
stroke-dashoffset: -124px;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
@keyframes p-progressspinner-color {
|
|
352
|
-
100%,
|
|
353
|
-
0% {
|
|
354
|
-
stroke: dt('progressspinner.color.one');
|
|
355
|
-
}
|
|
356
|
-
40% {
|
|
357
|
-
stroke: dt('progressspinner.color.two');
|
|
358
|
-
}
|
|
359
|
-
66% {
|
|
360
|
-
stroke: dt('progressspinner.color.three');
|
|
361
|
-
}
|
|
362
|
-
80%,
|
|
363
|
-
90% {
|
|
364
|
-
stroke: dt('progressspinner.color.four');
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
`,classes:{root:`p-progressspinner`,spin:`p-progressspinner-spin`,circle:`p-progressspinner-circle`}}),Ze={name:`ProgressSpinner`,extends:{name:`BaseProgressSpinner`,extends:N,props:{strokeWidth:{type:String,default:`2`},fill:{type:String,default:`none`},animationDuration:{type:String,default:`2s`}},style:Xe,provide:function(){return{$pcProgressSpinner:this,$parentInstance:this}}},inheritAttrs:!1,computed:{svgStyle:function(){return{"animation-duration":this.animationDuration}}}},Qe=[`fill`,`stroke-width`];function $e(e,t,n,r,i,a){return c(),x(`div`,u({class:e.cx(`root`),role:`progressbar`},e.ptmi(`root`)),[(c(),x(`svg`,u({class:e.cx(`spin`),viewBox:`25 25 50 50`,style:a.svgStyle},e.ptm(`spin`)),[w(`circle`,u({class:e.cx(`circle`),cx:`50`,cy:`50`,r:`20`,fill:e.fill,"stroke-width":e.strokeWidth,strokeMiterlimit:`10`},e.ptm(`circle`)),null,16,Qe)],16))],16)}Ze.render=$e;var et={name:`Dropdown`,extends:le,mounted:function(){console.warn(`Deprecated since v4. Use Select component instead.`)}},V=C(E({__name:`BuildStatusBadge`,props:{status:{},showIcon:{type:Boolean,default:!0},size:{default:`medium`}},setup(e){let r=e,i={running:{class:`status-running`,icon:`pi pi-spin pi-spinner`,text:`Running`,color:`#007bff`,tooltip:`Build is currently in progress`},completed:{class:`status-completed`,icon:`pi pi-check`,text:`Completed`,color:`#28a745`,tooltip:`Build completed successfully`},failed:{class:`status-failed`,icon:`pi pi-times`,text:`Failed`,color:`#dc3545`,tooltip:`Build failed with errors`},cancelled:{class:`status-cancelled`,icon:`pi pi-stop`,text:`Cancelled`,color:`#6c757d`,tooltip:`Build was cancelled`},pending:{class:`status-pending`,icon:`pi pi-clock`,text:`Pending`,color:`#ffc107`,tooltip:`Step is waiting to execute`}},a=b(()=>{let e=i[r.status];return[`build-status-badge`,`status-${r.status}`,`size-${r.size}`,e?.class].filter(Boolean)}),s=b(()=>r.showIcon&&i[r.status]?.icon||``),l=b(()=>i[r.status]?.text||r.status),u=b(()=>i[r.status]?.tooltip||r.status);return(e,r)=>{let i=ie;return o((c(),x(`span`,{class:n([`build-status-badge`,a.value])},[w(`i`,{class:n([s.value,`status-icon`])},null,2),d(` `+t(l.value),1)],2)),[[i,u.value,void 0,{top:!0}]])}}}),[[`__scopeId`,`data-v-a4e0e1a6`]]),tt={class:`item-header`},nt={class:`item-main-info`},rt={class:`project-info`},it={class:`project-name`},at={class:`project-path`},ot={class:`status-and-time`},st={class:`start-time`},ct={class:`item-actions`},lt={key:0,class:`item-expanded`},ut={class:`expanded-content`},dt={class:`info-section`},ft={class:`info-grid`},pt={class:`info-item`},mt={class:`info-item`},ht={class:`info-item`},gt={key:0,class:`info-item`},_t={key:1,class:`info-item`},vt={class:`info-item`},yt={key:0,class:`steps-section`},bt={class:`steps-list`},xt={class:`step-header`},St={class:`step-name`},Ct={class:`step-details`},wt={key:0,class:`step-duration`},Tt={key:1,class:`step-time`},Et={key:0,class:`steps-more`},Dt={key:1,class:`error-section`},Ot={class:`error-content`},kt={class:`error-message`},At={key:0,class:`error-stack`},jt={key:2,class:`metadata-section`},Mt={class:`metadata-content`},Nt=C(E({__name:`BuildHistoryItem`,props:{entry:{},expandable:{type:Boolean,default:!0},showActions:{type:Boolean,default:!0},canDelete:{type:Boolean,default:!1}},emits:[`view-details`,`delete`,`toggle`],setup(e,{emit:i}){let a=e,s=i,l=re(),u=ee(`openUpgradeDialog`),m=_(!1),h=_(!1),v=e=>new Date(e).toLocaleDateString(),y=e=>new Date(e).toLocaleString(),b=e=>new Date(e).toLocaleTimeString(),C=e=>{let t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60);return r>0?`${r}h ${n%60}m`:n>0?`${n}m ${t%60}s`:`${t}s`},E=()=>{a.expandable&&(m.value=!m.value,s(`toggle`,a.entry,m.value))},D=()=>{if(!l.hasBuildHistoryBenefit){u();return}s(`view-details`,a.entry)},O=()=>{s(`delete`,a.entry)};return(e,i)=>{let a=R,s=ie;return c(),x(`div`,{class:n([`build-history-item`,{expanded:m.value,"is-clickable":e.expandable}]),onClick:E},[w(`div`,tt,[w(`div`,nt,[w(`div`,rt,[w(`h4`,it,t(e.entry.projectName),1),w(`span`,at,t(e.entry.projectPath),1)]),w(`div`,ot,[T(V,{status:e.entry.status,size:`medium`},null,8,[`status`]),w(`span`,st,t(v(e.entry.startTime)),1)])]),w(`div`,ct,[e.showActions?o((c(),f(a,{key:0,text:``,severity:`secondary`,size:`small`,onClick:F(D,[`stop`])},{default:S(()=>i[1]||=[w(`i`,{class:`pi pi-eye`},null,-1)]),_:1})),[[s,`View Details`,void 0,{top:!0}]]):p(``,!0),e.showActions&&e.canDelete?o((c(),f(a,{key:1,text:``,severity:`danger`,size:`small`,onClick:F(O,[`stop`])},{default:S(()=>i[2]||=[w(`i`,{class:`pi pi-trash`},null,-1)]),_:1})),[[s,`Delete Entry`,void 0,{top:!0}]]):p(``,!0),e.expandable?(c(),x(`i`,{key:2,class:n([`pi expand-icon`,m.value?`pi-chevron-up`:`pi-chevron-down`])},null,2)):p(``,!0)])]),m.value?(c(),x(`div`,lt,[w(`div`,ut,[w(`div`,dt,[i[9]||=w(`h5`,null,`Build Information`,-1),w(`div`,ft,[w(`div`,pt,[i[3]||=w(`label`,null,`Project ID:`,-1),w(`span`,null,t(e.entry.pipelineId),1)]),w(`div`,mt,[i[4]||=w(`label`,null,`Status:`,-1),T(V,{status:e.entry.status},null,8,[`status`])]),w(`div`,ht,[i[5]||=w(`label`,null,`Started:`,-1),w(`span`,null,t(y(e.entry.startTime)),1)]),e.entry.endTime?(c(),x(`div`,gt,[i[6]||=w(`label`,null,`Ended:`,-1),w(`span`,null,t(y(e.entry.endTime)),1)])):p(``,!0),e.entry.duration?(c(),x(`div`,_t,[i[7]||=w(`label`,null,`Duration:`,-1),w(`span`,null,t(C(e.entry.duration)),1)])):p(``,!0),w(`div`,vt,[i[8]||=w(`label`,null,`Progress:`,-1),w(`span`,null,t(e.entry.completedSteps)+`/`+t(e.entry.totalSteps)+` steps`,1)])])]),e.entry.steps.length>0?(c(),x(`div`,yt,[i[10]||=w(`h5`,null,`Execution Steps`,-1),w(`div`,bt,[(c(!0),x(g,null,r(e.entry.steps.slice(0,h.value?void 0:3),e=>(c(),x(`div`,{key:e.id,class:n([`step-item`,e.status])},[w(`div`,xt,[w(`span`,St,t(e.name),1),T(V,{status:e.status,size:`small`},null,8,[`status`])]),w(`div`,Ct,[e.duration?(c(),x(`span`,wt,t(C(e.duration)),1)):p(``,!0),e.startTime?(c(),x(`span`,Tt,t(b(e.startTime)),1)):p(``,!0)])],2))),128)),e.entry.steps.length>3&&!h.value?(c(),x(`div`,Et,[T(a,{text:``,size:`small`,onClick:i[0]||=F(e=>h.value=!0,[`stop`])},{default:S(()=>[d(` Show `+t(e.entry.steps.length-3)+` more steps... `,1)]),_:1})])):p(``,!0)])])):p(``,!0),e.entry.error?(c(),x(`div`,Dt,[i[12]||=w(`h5`,null,`Error Details`,-1),w(`div`,Ot,[w(`p`,kt,t(e.entry.error.message),1),e.entry.error.stack?(c(),x(`details`,At,[i[11]||=w(`summary`,null,`Stack Trace`,-1),w(`pre`,null,t(e.entry.error.stack),1)])):p(``,!0)])])):p(``,!0),e.entry.metadata?(c(),x(`div`,jt,[i[13]||=w(`h5`,null,`Metadata`,-1),w(`div`,Mt,[w(`pre`,null,t(JSON.stringify(e.entry.metadata,null,2)),1)])])):p(``,!0)])])):p(``,!0)],2)}}}),[[`__scopeId`,`data-v-cff92a78`]]),Pt={class:`build-history-list`},Ft={key:0,class:`loading-state`},It={key:1,class:`error-state`},Lt={class:`error-content`},Rt={key:2,class:`empty-state`},zt={class:`empty-content`},Bt={key:3,class:`history-content`},Vt={class:`list-header`},Ht={class:`results-info`},Ut={class:`results-count`},Wt={class:`view-controls`},Gt={class:`view-mode`},Kt={class:`sort-controls`},qt={key:0,class:`list-view`},Jt={class:`entries-list`},Yt={key:1,class:`grid-view`},Xt={class:`entries-grid`},Zt=C(E({__name:`BuildHistoryList`,props:{entries:{},isLoading:{type:Boolean,default:!1},error:{default:void 0},hasSubscriptionError:{type:Boolean,default:!1},totalCount:{default:0},canDelete:{type:Boolean,default:!1},canStartBuild:{type:Boolean,default:!1}},emits:[`load-more`,`retry-load`,`view-details`,`delete`,`start-build`,`sort-change`,`page-change`],setup(e,{emit:i}){let a=e,s=i,l=re(),u=ee(`openUpgradeDialog`),d=_(`list`),m=_(`startTime`),h=_(`desc`),v=b(()=>a.entries.length>0),y=[{label:`Start Time`,value:`startTime`},{label:`End Time`,value:`endTime`},{label:`Duration`,value:`duration`},{label:`Project Name`,value:`projectName`},{label:`Status`,value:`status`},{label:`Created At`,value:`createdAt`}],C=()=>{s(`retry-load`)},E=()=>{if(!l.hasBuildHistoryBenefit){u();return}s(`start-build`)},D=e=>{s(`view-details`,e)},O=e=>{s(`delete`,e)},k=(e,t)=>{console.log(`Entry toggled:`,e.id,t)},A=()=>{s(`sort-change`,m.value,h.value)},j=()=>{h.value=h.value===`desc`?`asc`:`desc`,s(`sort-change`,m.value,h.value)};return(e,i)=>{let a=Ze,s=R,l=et,u=ie;return c(),x(`div`,Pt,[e.isLoading&&!v.value?(c(),x(`div`,Ft,[T(a),i[3]||=w(`p`,null,`Loading build history...`,-1)])):e.error&&!e.hasSubscriptionError?(c(),x(`div`,It,[i[5]||=w(`i`,{class:`pi pi-exclamation-triangle`},null,-1),w(`div`,Lt,[i[4]||=w(`h4`,null,`Failed to Load Build History`,-1),w(`p`,null,t(e.error),1),T(s,{label:`Retry`,severity:`secondary`,onClick:C})])])):!v.value&&!e.isLoading?(c(),x(`div`,Rt,[i[8]||=w(`i`,{class:`pi pi-history`},null,-1),w(`div`,zt,[i[6]||=w(`h4`,null,`No Build History`,-1),i[7]||=w(`p`,null,`Start a build to see your history here.`,-1),e.canStartBuild?(c(),f(s,{key:0,label:`Start New Build`,severity:`primary`,onClick:E})):p(``,!0)])])):(c(),x(`div`,Bt,[w(`div`,Vt,[w(`div`,Ht,[w(`span`,Ut,` Showing `+t(e.entries.length)+` of `+t(e.totalCount)+` entries `,1),w(`div`,Wt,[w(`div`,Gt,[o((c(),f(s,{text:``,severity:`secondary`,size:`small`,class:n({active:d.value===`list`}),onClick:i[0]||=e=>d.value=`list`},{default:S(()=>i[9]||=[w(`i`,{class:`pi pi-list`},null,-1)]),_:1},8,[`class`])),[[u,`List View`,void 0,{top:!0}]]),o((c(),f(s,{text:``,severity:`secondary`,size:`small`,class:n({active:d.value===`grid`}),onClick:i[1]||=e=>d.value=`grid`},{default:S(()=>i[10]||=[w(`i`,{class:`pi pi-th-large`},null,-1)]),_:1},8,[`class`])),[[u,`Grid View`,void 0,{top:!0}]])])])]),w(`div`,Kt,[i[11]||=w(`label`,{for:`sortBy`},`Sort by:`,-1),T(l,{id:`sortBy`,modelValue:m.value,"onUpdate:modelValue":i[2]||=e=>m.value=e,options:y,"option-label":`label`,"option-value":`value`,class:`sort-dropdown`,onChange:A},null,8,[`modelValue`]),o((c(),f(s,{text:``,severity:`secondary`,size:`small`,onClick:j},{default:S(()=>[w(`i`,{class:n(`pi pi-sort-${h.value===`desc`?`down`:`up`}`)},null,2)]),_:1})),[[u,`Sort ${h.value===`desc`?`Ascending`:`Descending`}`,void 0,{top:!0}]])])]),w(`div`,{class:n([`entries-container`,`view-${d.value}`])},[d.value===`list`?(c(),x(`div`,qt,[w(`div`,Jt,[(c(!0),x(g,null,r(e.entries,t=>(c(),f(Nt,{key:t.id,entry:t,expandable:!0,"show-actions":!0,"can-delete":e.canDelete,onViewDetails:D,onDelete:O,onToggle:k},null,8,[`entry`,`can-delete`]))),128))])])):(c(),x(`div`,Yt,[w(`div`,Xt,[(c(!0),x(g,null,r(e.entries,t=>(c(),x(`div`,{key:t.id,class:`grid-item`},[T(Nt,{entry:t,expandable:!1,"show-actions":!0,"can-delete":e.canDelete,onViewDetails:D,onDelete:O},null,8,[`entry`,`can-delete`])]))),128))])]))],2)]))])}}}),[[`__scopeId`,`data-v-949e4621`]]),Qt=P.extend({name:`tabview`,style:`
|
|
368
|
-
.p-tabview-tablist-container {
|
|
369
|
-
position: relative;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.p-tabview-scrollable > .p-tabview-tablist-container {
|
|
373
|
-
overflow: hidden;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
.p-tabview-tablist-scroll-container {
|
|
377
|
-
overflow-x: auto;
|
|
378
|
-
overflow-y: hidden;
|
|
379
|
-
scroll-behavior: smooth;
|
|
380
|
-
scrollbar-width: none;
|
|
381
|
-
overscroll-behavior: contain auto;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
.p-tabview-tablist-scroll-container::-webkit-scrollbar {
|
|
385
|
-
display: none;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
.p-tabview-tablist {
|
|
389
|
-
display: flex;
|
|
390
|
-
margin: 0;
|
|
391
|
-
padding: 0;
|
|
392
|
-
list-style-type: none;
|
|
393
|
-
flex: 1 1 auto;
|
|
394
|
-
background: dt('tabview.tab.list.background');
|
|
395
|
-
border: 1px solid dt('tabview.tab.list.border.color');
|
|
396
|
-
border-width: 0 0 1px 0;
|
|
397
|
-
position: relative;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.p-tabview-tab-header {
|
|
401
|
-
cursor: pointer;
|
|
402
|
-
user-select: none;
|
|
403
|
-
display: flex;
|
|
404
|
-
align-items: center;
|
|
405
|
-
text-decoration: none;
|
|
406
|
-
position: relative;
|
|
407
|
-
overflow: hidden;
|
|
408
|
-
border-style: solid;
|
|
409
|
-
border-width: 0 0 1px 0;
|
|
410
|
-
border-color: transparent transparent dt('tabview.tab.border.color') transparent;
|
|
411
|
-
color: dt('tabview.tab.color');
|
|
412
|
-
padding: 1rem 1.125rem;
|
|
413
|
-
font-weight: 600;
|
|
414
|
-
border-top-right-radius: dt('border.radius.md');
|
|
415
|
-
border-top-left-radius: dt('border.radius.md');
|
|
416
|
-
transition:
|
|
417
|
-
color dt('tabview.transition.duration'),
|
|
418
|
-
outline-color dt('tabview.transition.duration');
|
|
419
|
-
margin: 0 0 -1px 0;
|
|
420
|
-
outline-color: transparent;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
.p-tabview-tablist-item:not(.p-disabled) .p-tabview-tab-header:focus-visible {
|
|
424
|
-
outline: dt('focus.ring.width') dt('focus.ring.style') dt('focus.ring.color');
|
|
425
|
-
outline-offset: -1px;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
.p-tabview-tablist-item:not(.p-highlight):not(.p-disabled):hover > .p-tabview-tab-header {
|
|
429
|
-
color: dt('tabview.tab.hover.color');
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
.p-tabview-tablist-item.p-highlight > .p-tabview-tab-header {
|
|
433
|
-
color: dt('tabview.tab.active.color');
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
.p-tabview-tab-title {
|
|
437
|
-
line-height: 1;
|
|
438
|
-
white-space: nowrap;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
.p-tabview-next-button,
|
|
442
|
-
.p-tabview-prev-button {
|
|
443
|
-
position: absolute;
|
|
444
|
-
top: 0;
|
|
445
|
-
margin: 0;
|
|
446
|
-
padding: 0;
|
|
447
|
-
z-index: 2;
|
|
448
|
-
height: 100%;
|
|
449
|
-
display: flex;
|
|
450
|
-
align-items: center;
|
|
451
|
-
justify-content: center;
|
|
452
|
-
background: dt('tabview.nav.button.background');
|
|
453
|
-
color: dt('tabview.nav.button.color');
|
|
454
|
-
width: 2.5rem;
|
|
455
|
-
border-radius: 0;
|
|
456
|
-
outline-color: transparent;
|
|
457
|
-
transition:
|
|
458
|
-
color dt('tabview.transition.duration'),
|
|
459
|
-
outline-color dt('tabview.transition.duration');
|
|
460
|
-
box-shadow: dt('tabview.nav.button.shadow');
|
|
461
|
-
border: none;
|
|
462
|
-
cursor: pointer;
|
|
463
|
-
user-select: none;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
.p-tabview-next-button:focus-visible,
|
|
467
|
-
.p-tabview-prev-button:focus-visible {
|
|
468
|
-
outline: dt('focus.ring.width') dt('focus.ring.style') dt('focus.ring.color');
|
|
469
|
-
outline-offset: dt('focus.ring.offset');
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.p-tabview-next-button:hover,
|
|
473
|
-
.p-tabview-prev-button:hover {
|
|
474
|
-
color: dt('tabview.nav.button.hover.color');
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
.p-tabview-prev-button {
|
|
478
|
-
left: 0;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
.p-tabview-next-button {
|
|
482
|
-
right: 0;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
.p-tabview-panels {
|
|
486
|
-
background: dt('tabview.tab.panel.background');
|
|
487
|
-
color: dt('tabview.tab.panel.color');
|
|
488
|
-
padding: 0.875rem 1.125rem 1.125rem 1.125rem;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.p-tabview-ink-bar {
|
|
492
|
-
z-index: 1;
|
|
493
|
-
display: block;
|
|
494
|
-
position: absolute;
|
|
495
|
-
bottom: -1px;
|
|
496
|
-
height: 1px;
|
|
497
|
-
background: dt('tabview.tab.active.border.color');
|
|
498
|
-
transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
499
|
-
}
|
|
500
|
-
`,classes:{root:function(e){return[`p-tabview p-component`,{"p-tabview-scrollable":e.props.scrollable}]},navContainer:`p-tabview-tablist-container`,prevButton:`p-tabview-prev-button`,navContent:`p-tabview-tablist-scroll-container`,nav:`p-tabview-tablist`,tab:{header:function(e){var t=e.instance,n=e.tab,r=e.index;return[`p-tabview-tablist-item`,t.getTabProp(n,`headerClass`),{"p-tabview-tablist-item-active":t.d_activeIndex===r,"p-disabled":t.getTabProp(n,`disabled`)}]},headerAction:`p-tabview-tab-header`,headerTitle:`p-tabview-tab-title`,content:function(e){var t=e.instance,n=e.tab;return[`p-tabview-panel`,t.getTabProp(n,`contentClass`)]}},inkbar:`p-tabview-ink-bar`,nextButton:`p-tabview-next-button`,panelContainer:`p-tabview-panels`}}),$t={name:`TabView`,extends:{name:`BaseTabView`,extends:N,props:{activeIndex:{type:Number,default:0},lazy:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1},prevButtonProps:{type:null,default:null},nextButtonProps:{type:null,default:null},prevIcon:{type:String,default:void 0},nextIcon:{type:String,default:void 0}},style:Qt,provide:function(){return{$pcTabs:void 0,$pcTabView:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`update:activeIndex`,`tab-change`,`tab-click`],data:function(){return{d_activeIndex:this.activeIndex,isPrevButtonDisabled:!0,isNextButtonDisabled:!1}},watch:{activeIndex:function(e){this.d_activeIndex=e,this.scrollInView({index:e})}},mounted:function(){console.warn(`Deprecated since v4. Use Tabs component instead.`),this.updateInkBar(),this.scrollable&&this.updateButtonState()},updated:function(){this.updateInkBar(),this.scrollable&&this.updateButtonState()},methods:{isTabPanel:function(e){return e.type.name===`TabPanel`},isTabActive:function(e){return this.d_activeIndex===e},getTabProp:function(e,t){return e.props?e.props[t]:void 0},getKey:function(e,t){return this.getTabProp(e,`header`)||t},getTabHeaderActionId:function(e){return`${this.$id}_${e}_header_action`},getTabContentId:function(e){return`${this.$id}_${e}_content`},getTabPT:function(e,t,n){var r=this.tabs.length,i={props:e.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:n,count:r,first:n===0,last:n===r-1,active:this.isTabActive(n)}};return u(this.ptm(`tabpanel.${t}`,{tabpanel:i}),this.ptm(`tabpanel.${t}`,i),this.ptmo(this.getTabProp(e,`pt`),t,i))},onScroll:function(e){this.scrollable&&this.updateButtonState(),e.preventDefault()},onPrevButtonClick:function(){var e=this.$refs.content,t=I(e),n=e.scrollLeft-t;e.scrollLeft=n<=0?0:n},onNextButtonClick:function(){var e=this.$refs.content,t=I(e)-this.getVisibleButtonWidths(),n=e.scrollLeft+t,r=e.scrollWidth-t;e.scrollLeft=n>=r?r:n},onTabClick:function(e,t,n){this.changeActiveIndex(e,t,n),this.$emit(`tab-click`,{originalEvent:e,index:n})},onTabKeyDown:function(e,t,n){switch(e.code){case`ArrowLeft`:this.onTabArrowLeftKey(e);break;case`ArrowRight`:this.onTabArrowRightKey(e);break;case`Home`:this.onTabHomeKey(e);break;case`End`:this.onTabEndKey(e);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Enter`:case`NumpadEnter`:case`Space`:this.onTabEnterKey(e,t,n);break}},onTabArrowRightKey:function(e){var t=this.findNextHeaderAction(e.target.parentElement);t?this.changeFocusedTab(e,t):this.onTabHomeKey(e),e.preventDefault()},onTabArrowLeftKey:function(e){var t=this.findPrevHeaderAction(e.target.parentElement);t?this.changeFocusedTab(e,t):this.onTabEndKey(e),e.preventDefault()},onTabHomeKey:function(e){var t=this.findFirstHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onTabEndKey:function(e){var t=this.findLastHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onPageDownKey:function(e){this.scrollInView({index:this.$refs.nav.children.length-2}),e.preventDefault()},onPageUpKey:function(e){this.scrollInView({index:0}),e.preventDefault()},onTabEnterKey:function(e,t,n){this.changeActiveIndex(e,t,n),e.preventDefault()},findNextHeaderAction:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1]?e:e.nextElementSibling;return t?L(t,`data-p-disabled`)||L(t,`data-pc-section`)===`inkbar`?this.findNextHeaderAction(t):k(t,`[data-pc-section="headeraction"]`):null},findPrevHeaderAction:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1]?e:e.previousElementSibling;return t?L(t,`data-p-disabled`)||L(t,`data-pc-section`)===`inkbar`?this.findPrevHeaderAction(t):k(t,`[data-pc-section="headeraction"]`):null},findFirstHeaderAction:function(){return this.findNextHeaderAction(this.$refs.nav.firstElementChild,!0)},findLastHeaderAction:function(){return this.findPrevHeaderAction(this.$refs.nav.lastElementChild,!0)},changeActiveIndex:function(e,t,n){!this.getTabProp(t,`disabled`)&&this.d_activeIndex!==n&&(this.d_activeIndex=n,this.$emit(`update:activeIndex`,n),this.$emit(`tab-change`,{originalEvent:e,index:n}),this.scrollInView({index:n}))},changeFocusedTab:function(e,t){if(t&&(fe(t),this.scrollInView({element:t}),this.selectOnFocus)){var n=parseInt(t.parentElement.dataset.pcIndex,10),r=this.tabs[n];this.changeActiveIndex(e,r,n)}},scrollInView:function(e){var t=e.element,n=e.index,r=n===void 0?-1:n,i=t||this.$refs.nav.children[r];i&&i.scrollIntoView&&i.scrollIntoView({block:`nearest`})},updateInkBar:function(){var e=this.$refs.nav.children[this.d_activeIndex];this.$refs.inkbar.style.width=I(e)+`px`,this.$refs.inkbar.style.left=de(e).left-de(this.$refs.nav).left+`px`},updateButtonState:function(){var e=this.$refs.content,t=e.scrollLeft,n=e.scrollWidth,r=I(e);this.isPrevButtonDisabled=t===0,this.isNextButtonDisabled=parseInt(t)===n-r},getVisibleButtonWidths:function(){var e=this.$refs;return[e.prevBtn,e.nextBtn].reduce(function(e,t){return t?e+I(t):e},0)}},computed:{tabs:function(){var e=this;return this.$slots.default().reduce(function(t,n){return e.isTabPanel(n)?t.push(n):n.children&&n.children instanceof Array&&n.children.forEach(function(n){e.isTabPanel(n)&&t.push(n)}),t},[])},prevButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.previous:void 0},nextButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.next:void 0}},directives:{ripple:A},components:{ChevronLeftIcon:me,ChevronRightIcon:se}};function H(e){"@babel/helpers - typeof";return H=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},H(e)}function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?en(Object(n),!0).forEach(function(t){tn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tn(e,t,n){return(t=nn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nn(e){var t=rn(e,`string`);return H(t)==`symbol`?t:t+``}function rn(e,t){if(H(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(H(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var an=[`tabindex`,`aria-label`],on=[`data-p-active`,`data-p-disabled`,`data-pc-index`],sn=[`id`,`tabindex`,`aria-disabled`,`aria-selected`,`aria-controls`,`onClick`,`onKeydown`],cn=[`tabindex`,`aria-label`],ln=[`id`,`aria-labelledby`,`data-pc-index`,`data-p-active`];function un(e,n,i,s,d,m){var h=l(`ripple`);return c(),x(`div`,u({class:e.cx(`root`),role:`tablist`},e.ptmi(`root`)),[w(`div`,u({class:e.cx(`navContainer`)},e.ptm(`navContainer`)),[e.scrollable&&!d.isPrevButtonDisabled?o((c(),x(`button`,u({key:0,ref:`prevBtn`,type:`button`,class:e.cx(`prevButton`),tabindex:e.tabindex,"aria-label":m.prevButtonAriaLabel,onClick:n[0]||=function(){return m.onPrevButtonClick&&m.onPrevButtonClick.apply(m,arguments)}},U(U({},e.prevButtonProps),e.ptm(`prevButton`)),{"data-pc-group-section":`navbutton`}),[a(e.$slots,`previcon`,{},function(){return[(c(),f(D(e.prevIcon?`span`:`ChevronLeftIcon`),u({"aria-hidden":`true`,class:e.prevIcon},e.ptm(`prevIcon`)),null,16,[`class`]))]})],16,an)),[[h]]):p(``,!0),w(`div`,u({ref:`content`,class:e.cx(`navContent`),onScroll:n[1]||=function(){return m.onScroll&&m.onScroll.apply(m,arguments)}},e.ptm(`navContent`)),[w(`ul`,u({ref:`nav`,class:e.cx(`nav`)},e.ptm(`nav`)),[(c(!0),x(g,null,r(m.tabs,function(n,r){return c(),x(`li`,u({key:m.getKey(n,r),style:m.getTabProp(n,`headerStyle`),class:e.cx(`tab.header`,{tab:n,index:r}),role:`presentation`},{ref_for:!0},U(U(U({},m.getTabProp(n,`headerProps`)),m.getTabPT(n,`root`,r)),m.getTabPT(n,`header`,r)),{"data-pc-name":`tabpanel`,"data-p-active":d.d_activeIndex===r,"data-p-disabled":m.getTabProp(n,`disabled`),"data-pc-index":r}),[o((c(),x(`a`,u({id:m.getTabHeaderActionId(r),class:e.cx(`tab.headerAction`),tabindex:m.getTabProp(n,`disabled`)||!m.isTabActive(r)?-1:e.tabindex,role:`tab`,"aria-disabled":m.getTabProp(n,`disabled`),"aria-selected":m.isTabActive(r),"aria-controls":m.getTabContentId(r),onClick:function(e){return m.onTabClick(e,n,r)},onKeydown:function(e){return m.onTabKeyDown(e,n,r)}},{ref_for:!0},U(U({},m.getTabProp(n,`headerActionProps`)),m.getTabPT(n,`headerAction`,r))),[n.props&&n.props.header?(c(),x(`span`,u({key:0,class:e.cx(`tab.headerTitle`)},{ref_for:!0},m.getTabPT(n,`headerTitle`,r)),t(n.props.header),17)):p(``,!0),n.children&&n.children.header?(c(),f(D(n.children.header),{key:1})):p(``,!0)],16,sn)),[[h]])],16,on)}),128)),w(`li`,u({ref:`inkbar`,class:e.cx(`inkbar`),role:`presentation`,"aria-hidden":`true`},e.ptm(`inkbar`)),null,16)],16)],16),e.scrollable&&!d.isNextButtonDisabled?o((c(),x(`button`,u({key:1,ref:`nextBtn`,type:`button`,class:e.cx(`nextButton`),tabindex:e.tabindex,"aria-label":m.nextButtonAriaLabel,onClick:n[2]||=function(){return m.onNextButtonClick&&m.onNextButtonClick.apply(m,arguments)}},U(U({},e.nextButtonProps),e.ptm(`nextButton`)),{"data-pc-group-section":`navbutton`}),[a(e.$slots,`nexticon`,{},function(){return[(c(),f(D(e.nextIcon?`span`:`ChevronRightIcon`),u({"aria-hidden":`true`,class:e.nextIcon},e.ptm(`nextIcon`)),null,16,[`class`]))]})],16,cn)),[[h]]):p(``,!0)],16),w(`div`,u({class:e.cx(`panelContainer`)},e.ptm(`panelContainer`)),[(c(!0),x(g,null,r(m.tabs,function(t,n){return c(),x(g,{key:m.getKey(t,n)},[!e.lazy||m.isTabActive(n)?o((c(),x(`div`,u({key:0,id:m.getTabContentId(n),style:m.getTabProp(t,`contentStyle`),class:e.cx(`tab.content`,{tab:t}),role:`tabpanel`,"aria-labelledby":m.getTabHeaderActionId(n)},{ref_for:!0},U(U(U({},m.getTabProp(t,`contentProps`)),m.getTabPT(t,`root`,n)),m.getTabPT(t,`content`,n)),{"data-pc-name":`tabpanel`,"data-pc-index":n,"data-p-active":d.d_activeIndex===n}),[(c(),f(D(t)))],16,ln)),[[ne,e.lazy?!0:m.isTabActive(n)]]):p(``,!0)],64)}),128))],16)],16)}$t.render=un;var dn={class:`build-details-modal`},fn={class:`build-overview`},pn={class:`overview-header`},mn={class:`build-title`},hn={class:`build-meta`},gn={class:`meta-item`},_n={class:`meta-item`},vn={key:0,class:`meta-item`},yn={key:1,class:`meta-item`},bn={class:`meta-item`},xn={class:`steps-container`},Sn={key:0,class:`no-steps`},Cn={key:1,class:`steps-timeline`},wn={class:`step-timeline-marker`},Tn={key:0,class:`step-connector`},En={class:`step-timeline-content`},Dn={class:`step-header`},On={class:`step-name`},kn={class:`step-status-info`},An={key:0,class:`step-duration`},jn={class:`step-details`},Mn={class:`step-timing`},Nn={key:0,class:`start-time`},Pn={key:1,class:`end-time`},Fn={key:0,class:`step-logs`},In={class:`logs-details`},Ln={class:`logs-content`},Rn={class:`log-time`},zn={class:`log-level`},Bn={class:`log-message`},Vn={key:0,class:`log-source`},Hn={key:1,class:`step-error`},Un={class:`error-details`},Wn={class:`error-summary`},Gn={class:`error-content`},Kn={class:`error-message`},qn={key:0,class:`error-stack`},Jn={key:1,class:`error-metadata`},Yn={key:2,class:`step-output`},Xn={class:`output-details`},Zn={class:`output-content`},Qn={class:`logs-container`},$n={key:0,class:`no-logs`},er={key:1,class:`logs-list`},tr={class:`log-time`},nr={class:`log-level`},rr={class:`log-message`},ir={key:0,class:`log-source`},ar={class:`error-container`},or={class:`error-header`},sr={class:`error-content`},cr={class:`error-message`},lr={key:0,class:`error-stack`},ur={key:1,class:`error-metadata`},dr={class:`metadata-container`},fr={key:0,class:`no-metadata`},pr={key:1,class:`metadata-content`},mr={class:`modal-actions`},hr=C(E({__name:`BuildDetailsModal`,props:{entry:{},visible:{type:Boolean},canDelete:{type:Boolean,default:!1},canRetry:{type:Boolean,default:!1}},emits:[`hide`,`retry`,`delete`],setup(e,{emit:i}){let a=e,o=i,s=e=>new Date(e).toLocaleString(),l=e=>new Date(e).toLocaleTimeString(),u=e=>{let t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60);return r>0?`${r}h ${n%60}m`:n>0?`${n}m ${t%60}s`:`${t}s`},m=e=>({pending:`pi pi-clock`,running:`pi pi-spin pi-spinner`,completed:`pi pi-check`,failed:`pi pi-times`,cancelled:`pi pi-stop`})[e]||`pi pi-circle`,h=()=>{o(`hide`)},_=()=>{o(`hide`)},v=()=>{a.entry&&o(`retry`,a.entry)},y=()=>{a.entry&&o(`delete`,a.entry)};return(e,i)=>{let a=ge,o=$t,b=R,C=j;return c(),f(C,{visible:e.visible,modal:``,header:`Build Details - ${e.entry?.projectName||`Unknown`}`,style:{width:`90vw`,maxWidth:`1200px`},closable:!0,"onUpdate:visible":_},{default:S(()=>[w(`div`,dn,[w(`div`,fn,[w(`div`,pn,[w(`div`,mn,[w(`h3`,null,t(e.entry.projectName),1),T(V,{status:e.entry.status,size:`large`},null,8,[`status`])]),w(`div`,hn,[w(`div`,gn,[i[0]||=w(`label`,null,`Project ID:`,-1),w(`span`,null,t(e.entry.pipelineId),1)]),w(`div`,_n,[i[1]||=w(`label`,null,`Started:`,-1),w(`span`,null,t(s(e.entry.startTime)),1)]),e.entry.endTime?(c(),x(`div`,vn,[i[2]||=w(`label`,null,`Ended:`,-1),w(`span`,null,t(s(e.entry.endTime)),1)])):p(``,!0),e.entry.duration?(c(),x(`div`,yn,[i[3]||=w(`label`,null,`Duration:`,-1),w(`span`,null,t(u(e.entry.duration)),1)])):p(``,!0),w(`div`,bn,[i[4]||=w(`label`,null,`Progress:`,-1),w(`span`,null,t(e.entry.completedSteps)+`/`+t(e.entry.totalSteps)+` steps`,1)])])])]),T(o,{class:`details-tabs`},{default:S(()=>[T(a,{value:`steps`,header:`Execution Steps`},{default:S(()=>[w(`div`,xn,[e.entry.steps.length===0?(c(),x(`div`,Sn,i[5]||=[w(`p`,null,`No execution steps available.`,-1)])):(c(),x(`div`,Cn,[(c(!0),x(g,null,r(e.entry.steps,(a,o)=>(c(),x(`div`,{key:a.id,class:n([`step-timeline-item`,a.status])},[w(`div`,wn,[w(`i`,{class:n([m(a.status),`step-icon`])},null,2),o<e.entry.steps.length-1?(c(),x(`div`,Tn)):p(``,!0)]),w(`div`,En,[w(`div`,Dn,[w(`h4`,On,t(a.name),1),w(`div`,kn,[T(V,{status:a.status,size:`small`},null,8,[`status`]),a.duration?(c(),x(`span`,An,t(u(a.duration)),1)):p(``,!0)])]),w(`div`,jn,[w(`div`,Mn,[a.startTime?(c(),x(`span`,Nn,` Started: `+t(l(a.startTime)),1)):p(``,!0),a.endTime?(c(),x(`span`,Pn,` Ended: `+t(l(a.endTime)),1)):p(``,!0)]),a.logs.length>0?(c(),x(`div`,Fn,[w(`details`,In,[w(`summary`,null,`View Logs (`+t(a.logs.length)+` entries)`,1),w(`div`,Ln,[(c(!0),x(g,null,r(a.logs,e=>(c(),x(`div`,{key:e.id,class:n([`log-entry`,`log-${e.level}`])},[w(`span`,Rn,t(l(e.timestamp)),1),w(`span`,zn,t(e.level.toUpperCase()),1),w(`span`,Bn,t(e.message),1),e.source?(c(),x(`span`,Vn,`(`+t(e.source)+`)`,1)):p(``,!0)],2))),128))])])])):p(``,!0),a.error?(c(),x(`div`,Hn,[w(`details`,Un,[w(`summary`,Wn,[i[6]||=w(`i`,{class:`pi pi-exclamation-triangle`},null,-1),d(` Error: `+t(a.error.message),1)]),w(`div`,Gn,[w(`p`,Kn,t(a.error.message),1),a.error.stack?(c(),x(`div`,qn,[i[7]||=w(`h6`,null,`Stack Trace:`,-1),w(`pre`,null,t(a.error.stack),1)])):p(``,!0),a.error.code?(c(),x(`div`,Jn,[w(`small`,null,[i[8]||=w(`strong`,null,`Error Code:`,-1),d(` `+t(a.error.code),1)])])):p(``,!0)])])])):p(``,!0),a.output?(c(),x(`div`,Yn,[w(`details`,Xn,[i[9]||=w(`summary`,null,`Step Output`,-1),w(`div`,Zn,[w(`pre`,null,t(JSON.stringify(a.output,null,2)),1)])])])):p(``,!0)])])],2))),128))]))])]),_:1}),T(a,{value:`logs`,header:`Build Logs`},{default:S(()=>[w(`div`,Qn,[e.entry.logs.length===0?(c(),x(`div`,$n,i[10]||=[w(`p`,null,`No build logs available.`,-1)])):(c(),x(`div`,er,[(c(!0),x(g,null,r(e.entry.logs,e=>(c(),x(`div`,{key:e.id,class:n([`log-entry`,`log-${e.level}`])},[w(`span`,tr,t(l(e.timestamp)),1),w(`span`,nr,t(e.level.toUpperCase()),1),w(`span`,rr,t(e.message),1),e.source?(c(),x(`span`,ir,`(`+t(e.source)+`)`,1)):p(``,!0)],2))),128))]))])]),_:1}),e.entry.error?(c(),f(a,{key:0,value:`error`,header:`Error Details`},{default:S(()=>[w(`div`,ar,[w(`div`,or,[i[11]||=w(`h4`,null,`Build Error`,-1),T(V,{status:`failed`,size:`medium`})]),w(`div`,sr,[w(`div`,cr,[i[12]||=w(`strong`,null,`Message:`,-1),w(`p`,null,t(e.entry.error.message),1)]),e.entry.error.stack?(c(),x(`div`,lr,[i[13]||=w(`strong`,null,`Stack Trace:`,-1),w(`pre`,null,t(e.entry.error.stack),1)])):p(``,!0),e.entry.error.code?(c(),x(`div`,ur,[i[14]||=w(`strong`,null,`Error Code:`,-1),d(` `+t(e.entry.error.code),1)])):p(``,!0)])])]),_:1})):p(``,!0),T(a,{value:`metadata`,header:`Metadata`},{default:S(()=>[w(`div`,dr,[e.entry.metadata?(c(),x(`div`,pr,[w(`pre`,null,t(JSON.stringify(e.entry.metadata,null,2)),1)])):(c(),x(`div`,fr,i[15]||=[w(`p`,null,`No metadata available.`,-1)]))])]),_:1})]),_:1}),w(`div`,mr,[T(b,{label:`Close`,severity:`secondary`,onClick:h}),e.canRetry&&e.entry.status===`failed`?(c(),f(b,{key:0,label:`Retry Build`,severity:`info`,onClick:v})):p(``,!0),e.canDelete?(c(),f(b,{key:1,label:`Delete Entry`,severity:`danger`,onClick:y})):p(``,!0)])])]),_:1},8,[`visible`,`header`])}}}),[[`__scopeId`,`data-v-310416ee`]]),gr={class:`build-history-dialog`},_r={key:0,class:`loading-state`},vr={key:1,class:`main-content`},yr={key:2,class:`unauthorized-state`},br={class:`unauthorized-actions`},xr={class:`export-dialog`},Sr={class:`export-status`},Cr=C(E({__name:`BuildHistoryDialog`,props:{visible:{type:Boolean},pipelineId:{}},emits:[`hide`,`update:visible`],setup(n,{emit:r}){let a=n,o=r,s=pe(),l=he(),u=re(),d=ee(`openUpgradeDialog`),p=_(null),h=_(!1),g=_(!1),y=_(0),C=_(``),E=b(()=>l.storageInfo?.totalEntries||0),D=e=>{p.value=e,h.value=!0},O=()=>{h.value=!1,p.value=null},k=async e=>{s.require({message:`Are you sure you want to delete the build history entry for "${e.projectName}"?`,header:`Delete Build History Entry`,icon:`pi pi-exclamation-triangle`,accept:async()=>{try{await l.deleteEntry(e.id)}catch(e){console.error(`Failed to delete entry:`,e)}}})},A=async e=>{O(),console.log(`Retrying build for entry:`,e.id),s.require({message:`Retry build functionality would start a new build for "${e.projectName}". This feature is not yet implemented.`,header:`Retry Build`,icon:`pi pi-info-circle`,accept:()=>{}})},te=()=>{o(`update:visible`,!1)},M=async()=>{if(console.log(`buildHistoryStore.canUseHistory`,l.canUseHistory),l.canUseHistory)try{let e={pipelineId:a.pipelineId||void 0};console.log(`query`,e),await l.loadEntries(e)}catch(e){console.error(`Failed to load build history after auth change:`,e)}};return i(()=>a.visible,e=>{e&&M()}),i(()=>a.pipelineId,()=>{a.visible&&M()}),u.onSubscriptionChanged(async({subscriptions:e})=>{a.visible&&M()}),v(()=>{a.visible&&M()}),e(()=>{p.value=null}),(e,n)=>{let r=Ze,i=R,a=Je,o=Ve,s=j;return c(),f(s,{visible:e.visible,modal:``,header:`Build History`,style:{width:`90vw`,height:`80vh`},closable:!0,"onUpdate:visible":n[2]||=t=>e.$emit(`update:visible`,!1)},{default:S(()=>[w(`div`,gr,[m(u).isLoadingSubscriptions?(c(),x(`div`,_r,[T(r),n[3]||=w(`p`,null,`Loading build history...`,-1)])):m(l).canUseHistory?(c(),x(`div`,vr,[T(Zt,{entries:m(l).entries,"is-loading":m(l).isLoading,error:m(l).error,"total-count":E.value,"can-delete":!0,"can-start-build":!0,onViewDetails:D,onDelete:k,onStartBuild:te},null,8,[`entries`,`is-loading`,`error`,`total-count`])])):(c(),x(`div`,yr,[n[4]||=w(`div`,{class:`unauthorized-icon`},[w(`i`,{class:`pi pi-lock`})],-1),n[5]||=w(`h3`,null,`Premium Feature`,-1),n[6]||=w(`p`,null,`Build history tracking is available with a premium subscription.`,-1),w(`div`,br,[T(i,{label:`Upgrade to Access`,severity:`primary`,onClick:m(d)},null,8,[`onClick`]),T(i,{label:`Close`,severity:`secondary`,onClick:n[0]||=t=>e.$emit(`update:visible`,!1)})])])),T(hr,{entry:p.value,visible:h.value,"can-delete":!0,"can-retry":!0,onHide:O,onRetry:A,onDelete:k},null,8,[`entry`,`visible`]),T(a),T(s,{visible:g.value,"onUpdate:visible":n[1]||=e=>g.value=e,modal:``,header:`Export Build History`,style:{width:`400px`},closable:!0},{default:S(()=>[w(`div`,xr,[n[7]||=w(`p`,null,`Exporting build history data...`,-1),T(o,{value:y.value,"show-value":!0},null,8,[`value`]),w(`p`,Sr,t(C.value),1)])]),_:1},8,[`visible`])])]),_:1},8,[`visible`])}}}),[[`__scopeId`,`data-v-676482fa`]]),wr={},Tr;function Er(e={}){wr={animate:!0,allowClose:!0,overlayClickBehavior:`close`,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:[`next`,`previous`,`close`],disableButtons:[],overlayColor:`#000`,...e}}function W(e){return e?wr[e]:wr}function Dr(e){Tr=e}function G(){return Tr}var K={};function q(e,t){K[e]=t}function J(e){var t;(t=K[e])==null||t.call(K)}function Or(){K={}}function Y(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function kr(e){let t=`a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])`;return e.flatMap(e=>{let n=e.matches(t),r=Array.from(e.querySelectorAll(t));return[...n?[e]:[],...r]}).filter(e=>getComputedStyle(e).pointerEvents!==`none`&&Nr(e))}function Ar(e){if(!e||Mr(e))return;let t=W(`smoothScroll`),n=e.offsetHeight>window.innerHeight;e.scrollIntoView({behavior:!t||jr(e)?`auto`:`smooth`,inline:`center`,block:n?`start`:`center`})}function jr(e){if(!e||!e.parentElement)return;let t=e.parentElement;return t.scrollHeight>t.clientHeight}function Mr(e){let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function Nr(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}var X={};function Z(e,t){X[e]=t}function Q(e){return e?X[e]:X}function Pr(){X={}}function Fr(e,t,n,r){let i=Q(`__activeStagePosition`),a=i||n.getBoundingClientRect(),o=r.getBoundingClientRect();i={x:Y(e,a.x,o.x-a.x,t),y:Y(e,a.y,o.y-a.y,t),width:Y(e,a.width,o.width-a.width,t),height:Y(e,a.height,o.height-a.height,t)},zr(i),Z(`__activeStagePosition`,i)}function Ir(e){if(!e)return;let t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};Z(`__activeStagePosition`,n),zr(n)}function Lr(){let e=Q(`__activeStagePosition`),t=Q(`__overlaySvg`);if(!e)return;if(!t){console.warn(`No stage svg found.`);return}let n=window.innerWidth,r=window.innerHeight;t.setAttribute(`viewBox`,`0 0 ${n} ${r}`)}function Rr(e){let t=Br(e);document.body.appendChild(t),Xr(t,e=>{e.target.tagName===`path`&&J(`overlayClick`)}),Z(`__overlaySvg`,t)}function zr(e){let t=Q(`__overlaySvg`);if(!t){Rr(e);return}let n=t.firstElementChild;if(n?.tagName!==`path`)throw Error(`no path element found in stage svg`);n.setAttribute(`d`,Vr(e))}function Br(e){let t=window.innerWidth,n=window.innerHeight,r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);r.classList.add(`driver-overlay`,`driver-overlay-animated`),r.setAttribute(`viewBox`,`0 0 ${t} ${n}`),r.setAttribute(`xmlSpace`,`preserve`),r.setAttribute(`xmlnsXlink`,`http://www.w3.org/1999/xlink`),r.setAttribute(`version`,`1.1`),r.setAttribute(`preserveAspectRatio`,`xMinYMin slice`),r.style.fillRule=`evenodd`,r.style.clipRule=`evenodd`,r.style.strokeLinejoin=`round`,r.style.strokeMiterlimit=`2`,r.style.zIndex=`10000`,r.style.position=`fixed`,r.style.top=`0`,r.style.left=`0`,r.style.width=`100%`,r.style.height=`100%`;let i=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return i.setAttribute(`d`,Vr(e)),i.style.fill=W(`overlayColor`)||`rgb(0,0,0)`,i.style.opacity=`${W(`overlayOpacity`)}`,i.style.pointerEvents=`auto`,i.style.cursor=`auto`,r.appendChild(i),r}function Vr(e){let t=window.innerWidth,n=window.innerHeight,r=W(`stagePadding`)||0,i=W(`stageRadius`)||0,a=e.width+r*2,o=e.height+r*2,s=Math.min(i,a/2,o/2),c=Math.floor(Math.max(s,0)),l=e.x-r+c,u=e.y-r,d=a-c*2,f=o-c*2;return`M${t},0L0,0L0,${n}L${t},${n}L${t},0Z
|
|
501
|
-
M${l},${u} h${d} a${c},${c} 0 0 1 ${c},${c} v${f} a${c},${c} 0 0 1 -${c},${c} h-${d} a${c},${c} 0 0 1 -${c},-${c} v-${f} a${c},${c} 0 0 1 ${c},-${c} z`}function Hr(){let e=Q(`__overlaySvg`);e&&e.remove()}function Ur(){let e=document.getElementById(`driver-dummy-element`);if(e)return e;let t=document.createElement(`div`);return t.id=`driver-dummy-element`,t.style.width=`0`,t.style.height=`0`,t.style.pointerEvents=`none`,t.style.opacity=`0`,t.style.position=`fixed`,t.style.top=`50%`,t.style.left=`50%`,document.body.appendChild(t),t}function Wr(e){let{element:t}=e,n=typeof t==`function`?t():typeof t==`string`?document.querySelector(t):t;n||=Ur(),Kr(n,e)}function Gr(){let e=Q(`__activeElement`),t=Q(`__activeStep`);e&&(Ir(e),Lr(),ii(e,t))}function Kr(e,t){let n=Date.now(),r=Q(`__activeStep`),i=Q(`__activeElement`)||e,a=!i||i===e,o=e.id===`driver-dummy-element`,s=i.id===`driver-dummy-element`,c=W(`animate`),l=t.onHighlightStarted||W(`onHighlightStarted`),u=t?.onHighlighted||W(`onHighlighted`),d=r?.onDeselected||W(`onDeselected`),f=W(),p=Q();!a&&d&&d(s?void 0:i,r,{config:f,state:p,driver:G()}),l&&l(o?void 0:e,t,{config:f,state:p,driver:G()});let m=!a&&c,h=!1;$r(),Z(`previousStep`,r),Z(`previousElement`,i),Z(`activeStep`,t),Z(`activeElement`,e);let g=()=>{if(Q(`__transitionCallback`)!==g)return;let a=Date.now()-n,s=400-a<=400/2;t.popover&&s&&!h&&m&&(ei(e,t),h=!0),W(`animate`)&&a<400?Fr(a,400,i,e):(Ir(e),u&&u(o?void 0:e,t,{config:W(),state:Q(),driver:G()}),Z(`__transitionCallback`,void 0),Z(`__previousStep`,r),Z(`__previousElement`,i),Z(`__activeStep`,t),Z(`__activeElement`,e)),window.requestAnimationFrame(g)};Z(`__transitionCallback`,g),window.requestAnimationFrame(g),Ar(e),!m&&t.popover&&ei(e,t),i.classList.remove(`driver-active-element`,`driver-no-interaction`),i.removeAttribute(`aria-haspopup`),i.removeAttribute(`aria-expanded`),i.removeAttribute(`aria-controls`),(t.disableActiveInteraction??W(`disableActiveInteraction`))&&e.classList.add(`driver-no-interaction`),e.classList.add(`driver-active-element`),e.setAttribute(`aria-haspopup`,`dialog`),e.setAttribute(`aria-expanded`,`true`),e.setAttribute(`aria-controls`,`driver-popover-content`)}function qr(){var e;(e=document.getElementById(`driver-dummy-element`))==null||e.remove(),document.querySelectorAll(`.driver-active-element`).forEach(e=>{e.classList.remove(`driver-active-element`,`driver-no-interaction`),e.removeAttribute(`aria-haspopup`),e.removeAttribute(`aria-expanded`),e.removeAttribute(`aria-controls`)})}function $(){let e=Q(`__resizeTimeout`);e&&window.cancelAnimationFrame(e),Z(`__resizeTimeout`,window.requestAnimationFrame(Gr))}function Jr(e){if(!Q(`isInitialized`)||!(e.key===`Tab`||e.keyCode===9))return;let t=Q(`__activeElement`),n=Q(`popover`)?.wrapper,r=kr([...n?[n]:[],...t?[t]:[]]),i=r[0],a=r[r.length-1];e.preventDefault(),e.shiftKey?(r[r.indexOf(document.activeElement)-1]||a)?.focus():(r[r.indexOf(document.activeElement)+1]||i)?.focus()}function Yr(e){var t;((t=W(`allowKeyboardControl`))==null||t)&&(e.key===`Escape`?J(`escapePress`):e.key===`ArrowRight`?J(`arrowRightPress`):e.key===`ArrowLeft`&&J(`arrowLeftPress`))}function Xr(e,t,n){let r=(t,r)=>{let i=t.target;e.contains(i)&&((!n||n(i))&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),r?.(t))};document.addEventListener(`pointerdown`,r,!0),document.addEventListener(`mousedown`,r,!0),document.addEventListener(`pointerup`,r,!0),document.addEventListener(`mouseup`,r,!0),document.addEventListener(`click`,e=>{r(e,t)},!0)}function Zr(){window.addEventListener(`keyup`,Yr,!1),window.addEventListener(`keydown`,Jr,!1),window.addEventListener(`resize`,$),window.addEventListener(`scroll`,$)}function Qr(){window.removeEventListener(`keyup`,Yr),window.removeEventListener(`resize`,$),window.removeEventListener(`scroll`,$)}function $r(){let e=Q(`popover`);e&&(e.wrapper.style.display=`none`)}function ei(e,t){let n=Q(`popover`);n&&document.body.removeChild(n.wrapper),n=oi(),document.body.appendChild(n.wrapper);let{title:r,description:i,showButtons:a,disableButtons:o,showProgress:s,nextBtnText:c=W(`nextBtnText`)||`Next →`,prevBtnText:l=W(`prevBtnText`)||`← Previous`,progressText:u=W(`progressText`)||`{current} of {total}`}=t.popover||{};n.nextButton.innerHTML=c,n.previousButton.innerHTML=l,n.progress.innerHTML=u,r?(n.title.innerHTML=r,n.title.style.display=`block`):n.title.style.display=`none`,i?(n.description.innerHTML=i,n.description.style.display=`block`):n.description.style.display=`none`;let d=a||W(`showButtons`),f=s||W(`showProgress`)||!1,p=d?.includes(`next`)||d?.includes(`previous`)||f;n.closeButton.style.display=d.includes(`close`)?`block`:`none`,p?(n.footer.style.display=`flex`,n.progress.style.display=f?`block`:`none`,n.nextButton.style.display=d.includes(`next`)?`block`:`none`,n.previousButton.style.display=d.includes(`previous`)?`block`:`none`):n.footer.style.display=`none`;let m=o||W(`disableButtons`)||[];m!=null&&m.includes(`next`)&&(n.nextButton.disabled=!0,n.nextButton.classList.add(`driver-popover-btn-disabled`)),m!=null&&m.includes(`previous`)&&(n.previousButton.disabled=!0,n.previousButton.classList.add(`driver-popover-btn-disabled`)),m!=null&&m.includes(`close`)&&(n.closeButton.disabled=!0,n.closeButton.classList.add(`driver-popover-btn-disabled`));let h=n.wrapper;h.style.display=`block`,h.style.left=``,h.style.top=``,h.style.bottom=``,h.style.right=``,h.id=`driver-popover-content`,h.setAttribute(`role`,`dialog`),h.setAttribute(`aria-labelledby`,`driver-popover-title`),h.setAttribute(`aria-describedby`,`driver-popover-description`);let g=n.arrow;g.className=`driver-popover-arrow`,h.className=`driver-popover ${t.popover?.popoverClass||W(`popoverClass`)||``}`.trim(),Xr(n.wrapper,n=>{let r=n.target,i=t.popover?.onNextClick||W(`onNextClick`),a=t.popover?.onPrevClick||W(`onPrevClick`),o=t.popover?.onCloseClick||W(`onCloseClick`);if(r.closest(`.driver-popover-next-btn`))return i?i(e,t,{config:W(),state:Q(),driver:G()}):J(`nextClick`);if(r.closest(`.driver-popover-prev-btn`))return a?a(e,t,{config:W(),state:Q(),driver:G()}):J(`prevClick`);if(r.closest(`.driver-popover-close-btn`))return o?o(e,t,{config:W(),state:Q(),driver:G()}):J(`closeClick`)},e=>!(n!=null&&n.description.contains(e))&&!(n!=null&&n.title.contains(e))&&typeof e.className==`string`&&e.className.includes(`driver-popover`)),Z(`popover`,n);let _=t.popover?.onPopoverRender||W(`onPopoverRender`);_&&_(n,{config:W(),state:Q(),driver:G()}),ii(e,t),Ar(h);let v=kr([h,...e.classList.contains(`driver-dummy-element`)?[]:[e]]);v.length>0&&v[0].focus()}function ti(){let e=Q(`popover`);if(!(e!=null&&e.wrapper))return;let t=e.wrapper.getBoundingClientRect(),n=W(`stagePadding`)||0,r=W(`popoverOffset`)||0;return{width:t.width+n+r,height:t.height+n+r,realWidth:t.width,realHeight:t.height}}function ni(e,t){let{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:a}=t;return e===`start`?Math.max(Math.min(n.top-i,window.innerHeight-r.realHeight-a.width),a.width):e===`end`?Math.max(Math.min(n.top-r?.realHeight+n.height+i,window.innerHeight-r?.realHeight-a.width),a.width):e===`center`?Math.max(Math.min(n.top+n.height/2-r?.realHeight/2,window.innerHeight-r?.realHeight-a.width),a.width):0}function ri(e,t){let{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:a}=t;return e===`start`?Math.max(Math.min(n.left-i,window.innerWidth-r.realWidth-a.width),a.width):e===`end`?Math.max(Math.min(n.left-r?.realWidth+n.width+i,window.innerWidth-r?.realWidth-a.width),a.width):e===`center`?Math.max(Math.min(n.left+n.width/2-r?.realWidth/2,window.innerWidth-r?.realWidth-a.width),a.width):0}function ii(e,t){let n=Q(`popover`);if(!n)return;let{align:r=`start`,side:i=`left`}=t?.popover||{},a=r,o=e.id===`driver-dummy-element`?`over`:i,s=W(`stagePadding`)||0,c=ti(),l=n.arrow.getBoundingClientRect(),u=e.getBoundingClientRect(),d=u.top-c.height,f=d>=0,p=window.innerHeight-(u.bottom+c.height),m=p>=0,h=u.left-c.width,g=h>=0,_=window.innerWidth-(u.right+c.width),v=_>=0,y=!f&&!m&&!g&&!v,b=o;if(o===`top`&&f?v=g=m=!1:o===`bottom`&&m?v=g=f=!1:o===`left`&&g?v=f=m=!1:o===`right`&&v&&(g=f=m=!1),o===`over`){let e=window.innerWidth/2-c.realWidth/2,t=window.innerHeight/2-c.realHeight/2;n.wrapper.style.left=`${e}px`,n.wrapper.style.right=`auto`,n.wrapper.style.top=`${t}px`,n.wrapper.style.bottom=`auto`}else if(y){let e=window.innerWidth/2-c?.realWidth/2;n.wrapper.style.left=`${e}px`,n.wrapper.style.right=`auto`,n.wrapper.style.bottom=`10px`,n.wrapper.style.top=`auto`}else if(g){let e=Math.min(h,window.innerWidth-c?.realWidth-l.width),t=ni(a,{elementDimensions:u,popoverDimensions:c,popoverPadding:s,popoverArrowDimensions:l});n.wrapper.style.left=`${e}px`,n.wrapper.style.top=`${t}px`,n.wrapper.style.bottom=`auto`,n.wrapper.style.right=`auto`,b=`left`}else if(v){let e=Math.min(_,window.innerWidth-c?.realWidth-l.width),t=ni(a,{elementDimensions:u,popoverDimensions:c,popoverPadding:s,popoverArrowDimensions:l});n.wrapper.style.right=`${e}px`,n.wrapper.style.top=`${t}px`,n.wrapper.style.bottom=`auto`,n.wrapper.style.left=`auto`,b=`right`}else if(f){let e=Math.min(d,window.innerHeight-c.realHeight-l.width),t=ri(a,{elementDimensions:u,popoverDimensions:c,popoverPadding:s,popoverArrowDimensions:l});n.wrapper.style.top=`${e}px`,n.wrapper.style.left=`${t}px`,n.wrapper.style.bottom=`auto`,n.wrapper.style.right=`auto`,b=`top`}else if(m){let e=Math.min(p,window.innerHeight-c?.realHeight-l.width),t=ri(a,{elementDimensions:u,popoverDimensions:c,popoverPadding:s,popoverArrowDimensions:l});n.wrapper.style.left=`${t}px`,n.wrapper.style.bottom=`${e}px`,n.wrapper.style.top=`auto`,n.wrapper.style.right=`auto`,b=`bottom`}y?n.arrow.classList.add(`driver-popover-arrow-none`):ai(a,b,e)}function ai(e,t,n){let r=Q(`popover`);if(!r)return;let i=n.getBoundingClientRect(),a=ti(),o=r.arrow,s=a.width,c=window.innerWidth,l=i.width,u=i.left,d=a.height,f=window.innerHeight,p=i.top,m=i.height;o.className=`driver-popover-arrow`;let h=t,g=e;if(t===`top`?(u+l<=0?(h=`right`,g=`end`):u+l-s<=0&&(h=`top`,g=`start`),u>=c?(h=`left`,g=`end`):u+s>=c&&(h=`top`,g=`end`)):t===`bottom`?(u+l<=0?(h=`right`,g=`start`):u+l-s<=0&&(h=`bottom`,g=`start`),u>=c?(h=`left`,g=`start`):u+s>=c&&(h=`bottom`,g=`end`)):t===`left`?(p+m<=0?(h=`bottom`,g=`end`):p+m-d<=0&&(h=`left`,g=`start`),p>=f?(h=`top`,g=`end`):p+d>=f&&(h=`left`,g=`end`)):t===`right`&&(p+m<=0?(h=`bottom`,g=`start`):p+m-d<=0&&(h=`right`,g=`start`),p>=f?(h=`top`,g=`start`):p+d>=f&&(h=`right`,g=`end`)),!h)o.classList.add(`driver-popover-arrow-none`);else{o.classList.add(`driver-popover-arrow-side-${h}`),o.classList.add(`driver-popover-arrow-align-${g}`);let e=n.getBoundingClientRect(),i=o.getBoundingClientRect(),a=W(`stagePadding`)||0,s=e.left-a<window.innerWidth&&e.right+a>0&&e.top-a<window.innerHeight&&e.bottom+a>0;t===`bottom`&&s&&(i.x>e.x&&i.x+i.width<e.x+e.width?r.wrapper.style.transform=`translateY(0)`:(o.classList.remove(`driver-popover-arrow-align-${g}`),o.classList.add(`driver-popover-arrow-none`),r.wrapper.style.transform=`translateY(-${a/2}px)`))}}function oi(){let e=document.createElement(`div`);e.classList.add(`driver-popover`);let t=document.createElement(`div`);t.classList.add(`driver-popover-arrow`);let n=document.createElement(`header`);n.id=`driver-popover-title`,n.classList.add(`driver-popover-title`),n.style.display=`none`,n.innerText=`Popover Title`;let r=document.createElement(`div`);r.id=`driver-popover-description`,r.classList.add(`driver-popover-description`),r.style.display=`none`,r.innerText=`Popover description is here`;let i=document.createElement(`button`);i.type=`button`,i.classList.add(`driver-popover-close-btn`),i.setAttribute(`aria-label`,`Close`),i.innerHTML=`×`;let a=document.createElement(`footer`);a.classList.add(`driver-popover-footer`);let o=document.createElement(`span`);o.classList.add(`driver-popover-progress-text`),o.innerText=``;let s=document.createElement(`span`);s.classList.add(`driver-popover-navigation-btns`);let c=document.createElement(`button`);c.type=`button`,c.classList.add(`driver-popover-prev-btn`),c.innerHTML=`← Previous`;let l=document.createElement(`button`);return l.type=`button`,l.classList.add(`driver-popover-next-btn`),l.innerHTML=`Next →`,s.appendChild(c),s.appendChild(l),a.appendChild(o),a.appendChild(s),e.appendChild(i),e.appendChild(t),e.appendChild(n),e.appendChild(r),e.appendChild(a),{wrapper:e,arrow:t,title:n,description:r,footer:a,previousButton:c,nextButton:l,closeButton:i,footerButtons:s,progress:o}}function si(){var e;let t=Q(`popover`);t&&((e=t.wrapper.parentElement)==null||e.removeChild(t.wrapper))}function ci(e={}){Er(e);function t(){W(`allowClose`)&&u()}function n(){let e=W(`overlayClickBehavior`);if(W(`allowClose`)&&e===`close`){u();return}if(typeof e==`function`){let t=Q(`__activeStep`);e(Q(`__activeElement`),t,{config:W(),state:Q(),driver:G()});return}e===`nextStep`&&r()}function r(){let e=Q(`activeIndex`),t=W(`steps`)||[];if(e===void 0)return;let n=e+1;t[n]?l(n):u()}function i(){let e=Q(`activeIndex`),t=W(`steps`)||[];if(e===void 0)return;let n=e-1;t[n]?l(n):u()}function a(e){(W(`steps`)||[])[e]?l(e):u()}function o(){if(Q(`__transitionCallback`))return;let e=Q(`activeIndex`),t=Q(`__activeStep`),n=Q(`__activeElement`);if(e===void 0||t===void 0||Q(`activeIndex`)===void 0)return;let r=t.popover?.onPrevClick||W(`onPrevClick`);if(r)return r(n,t,{config:W(),state:Q(),driver:G()});i()}function s(){if(Q(`__transitionCallback`))return;let e=Q(`activeIndex`),t=Q(`__activeStep`),n=Q(`__activeElement`);if(e===void 0||t===void 0)return;let i=t.popover?.onNextClick||W(`onNextClick`);if(i)return i(n,t,{config:W(),state:Q(),driver:G()});r()}function c(){Q(`isInitialized`)||(Z(`isInitialized`,!0),document.body.classList.add(`driver-active`,W(`animate`)?`driver-fade`:`driver-simple`),Zr(),q(`overlayClick`,n),q(`escapePress`,t),q(`arrowLeftPress`,o),q(`arrowRightPress`,s))}function l(e=0){let t=W(`steps`);if(!t){console.error(`No steps to drive through`),u();return}if(!t[e]){u();return}Z(`__activeOnDestroyed`,document.activeElement),Z(`activeIndex`,e);let n=t[e],r=t[e+1],i=t[e-1],a=n.popover?.doneBtnText||W(`doneBtnText`)||`Done`,o=W(`allowClose`),s=n.popover?.showProgress===void 0?W(`showProgress`):n.popover?.showProgress,c=(n.popover?.progressText||W(`progressText`)||`{{current}} of {{total}}`).replace(`{{current}}`,`${e+1}`).replace(`{{total}}`,`${t.length}`),d=n.popover?.showButtons||W(`showButtons`),f=[`next`,`previous`,...o?[`close`]:[]].filter(e=>!(d!=null&&d.length)||d.includes(e)),p=n.popover?.onNextClick||W(`onNextClick`),m=n.popover?.onPrevClick||W(`onPrevClick`),h=n.popover?.onCloseClick||W(`onCloseClick`);Wr({...n,popover:{showButtons:f,nextBtnText:r?void 0:a,disableButtons:[...i?[]:[`previous`]],showProgress:s,progressText:c,onNextClick:p||(()=>{r?l(e+1):u()}),onPrevClick:m||(()=>{l(e-1)}),onCloseClick:h||(()=>{u()}),...n?.popover||{}}})}function u(e=!0){let t=Q(`__activeElement`),n=Q(`__activeStep`),r=Q(`__activeOnDestroyed`),i=W(`onDestroyStarted`);if(e&&i){i(!t||t?.id===`driver-dummy-element`?void 0:t,n,{config:W(),state:Q(),driver:G()});return}let a=n?.onDeselected||W(`onDeselected`),o=W(`onDestroyed`);if(document.body.classList.remove(`driver-active`,`driver-fade`,`driver-simple`),Qr(),si(),qr(),Hr(),Or(),Pr(),t&&n){let e=t.id===`driver-dummy-element`;a&&a(e?void 0:t,n,{config:W(),state:Q(),driver:G()}),o&&o(e?void 0:t,n,{config:W(),state:Q(),driver:G()})}r&&r.focus()}let d={isActive:()=>Q(`isInitialized`)||!1,refresh:$,drive:(e=0)=>{c(),l(e)},setConfig:Er,setSteps:e=>{Pr(),Er({...W(),steps:e})},getConfig:W,getState:Q,getActiveIndex:()=>Q(`activeIndex`),isFirstStep:()=>Q(`activeIndex`)===0,isLastStep:()=>{let e=W(`steps`)||[],t=Q(`activeIndex`);return t!==void 0&&t===e.length-1},getActiveStep:()=>Q(`activeStep`),getActiveElement:()=>Q(`activeElement`),getPreviousElement:()=>Q(`previousElement`),getPreviousStep:()=>Q(`previousStep`),moveNext:r,movePrevious:i,moveTo:a,hasNextStep:()=>{let e=W(`steps`)||[],t=Q(`activeIndex`);return t!==void 0&&!!e[t+1]},hasPreviousStep:()=>{let e=W(`steps`)||[],t=Q(`activeIndex`);return t!==void 0&&!!e[t-1]},highlight:e=>{c(),Wr({...e,popover:e.popover?{showButtons:[],showProgress:!1,progressText:``,...e.popover}:void 0})},destroy:()=>{u(!1)}};return Dr(d),d}function li(e){let t=M(),{settings:n}=te(t),{updateSettings:r}=t;return{startTour:(t,i=!1)=>{let a=ci({showProgress:!0,steps:t,onHighlighted:(i,a,{state:o})=>{let s={...n.value.tours};s[e]={step:o.activeIndex,completed:o.activeIndex===t.length-1},r({...n.value,tours:s})}}),o=n.value.tours[e]?.step??0;a.drive(i?0:o)},isCompleted:()=>n.value.tours[e]?.completed??!1}}export{ve as a,Le as i,Cr as n,Je as r,li as t};
|