@polyv/answer-card-ui-launch 2.1.0-rc-20260312.1 → 2.1.0
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/index.cjs.js +1 -1
- package/index.es.js +2 -2
- package/index.umd.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -1047,4 +1047,4 @@ ${Cn(r)}`),o}})}function s2(e){const t=Object.keys(e),r=t.filter(i=>{var n;retur
|
|
|
1047
1047
|
/>
|
|
1048
1048
|
</g>
|
|
1049
1049
|
</svg>
|
|
1050
|
-
`),F0=()=>ee($({},ol()),{value:{type:Boolean,default:!0}}),V0={input:e=>!0,close:()=>!0};var yn=(e=>(e.Card="card",e.Template="template",e))(yn||{}),xn=(e=>(e.Default="default",e.Quick="quick",e))(xn||{});const q0=e=>{const{props:t,emit:r}=e,o=c.ref("card"),i=c.ref(""),n=c.ref(),a=c.ref(re.Draft),s=c.ref(0),l=c.ref("default"),u=c.ref(!1),p=c.ref(!1),d=c.computed({get:()=>!!t.value,set:y=>{r("input",y),y||(u.value=!1,i.value="",n.value=void 0,a.value=re.Draft,s.value=0,l.value="default",p.value=!1,r("close"))}});function m(){d.value=!0}function f(){d.value=!1}function g(y,_="default"){m(),typeof y=="string"?(i.value=y,n.value=void 0,a.value=re.Draft,s.value=0,l.value=_):(i.value=y.question.questionId,n.value=y.question,a.value=y.status,s.value=y.submittedCount,l.value=y.question.isQuickQuestion?"quick":"default"),u.value=!0}function h(){u.value=!1,l.value="default"}function b(){m(),p.value=!0}function v(){p.value=!1}return{visible:d,activeTab:o,currentQuestionId:i,currentQuestion:n,currentLaunchStatus:a,currentSubmittedCount:s,currentDetailMode:l,detailVisible:u,quickVisible:p,openPanel:m,closePanel:f,openDetail:g,closeDetail:h,openQuick:b,closeQuick:v}},$$=c.defineComponent({__name:"answer-card-launch-panel",props:F0(),emits:V0,setup(e,{expose:t,emit:r}){const o=e,{$t:i}=je();dO();const{visible:n,activeTab:a,currentQuestionId:s,currentQuestion:l,currentLaunchStatus:u,currentSubmittedCount:p,currentDetailMode:d,detailVisible:m,quickVisible:f,openPanel:g,closePanel:h,openDetail:b,openQuick:v}=q0({props:o,emit:r}),y=c.ref(),_=c.ref(),C=c.computed(()=>d.value===xn.Quick);c.watch(()=>a.value,k=>j(this,null,function*(){var M,I,E,A;if(k===yn.Template){yield(I=(M=_.value)==null?void 0:M.refreshList)==null?void 0:I.call(M);return}yield(A=(E=y.value)==null?void 0:E.refreshList)==null?void 0:A.call(E)}));function x(k){var M;if(!(!m.value||!s.value)){if(!k){if(((M=l.value)==null?void 0:M.questionId)===s.value&&l.value.isQuickQuestion){u.value=re.Send;return}l.value=void 0,u.value=re.Draft,p.value=0;return}l.value=k.question,u.value=k.status,p.value=k.submittedCount}}function S(k){if(!m.value||!s.value)return;const M=k.find(I=>I.question.questionId===s.value);x(M)}function P(){return j(this,null,function*(){var M,I,E,A;yield(I=(M=y.value)==null?void 0:M.refreshList)==null?void 0:I.call(M);const k=(A=(E=y.value)==null?void 0:E.getCardById)==null?void 0:A.call(E,s.value);x(k)})}function L(k){return j(this,null,function*(){var I,E;yield P();const M=(E=(I=y.value)==null?void 0:I.getCardById)==null?void 0:E.call(I,k);b(M||k,xn.Quick)})}function Q(){var k,M;(M=(k=_.value)==null?void 0:k.refreshList)==null||M.call(k)}function T(k){const M=k.target;M!=null&&M.closest(".plv-ial-answer-panel__body")||k.preventDefault()}return t({openPanel:g,refreshCardList:P,refreshTemplateList:Q,openDetail:b,openQuick:v,closePanel:h}),Qt(Bo.OpenPanel,()=>{g()}),Qt(Bo.OpenQuickAnswer,()=>{v()}),Qt(Bo.RefreshCardList,()=>{P()}),Qt(Bo.RefreshTemplateList,()=>{Q()}),{__sfc:!0,props:o,emit:r,$t:i,visible:n,activeTab:a,currentQuestionId:s,currentQuestion:l,currentLaunchStatus:u,currentSubmittedCount:p,currentDetailMode:d,detailVisible:m,quickVisible:f,openPanel:g,closePanel:h,openDetail:b,openQuick:v,listRef:y,templateRef:_,showQuickDetail:C,syncDetailCard:x,onCardListRefresh:S,refreshCardList:P,onQuickSent:L,refreshTemplateList:Q,onPanelWheel:T,PwcButton:Be,PwcPopup:ut,AnswerCardLaunchDetail:P0,AnswerCardLaunchQuickDetail:I0,AnswerCardLaunchList:g0,AnswerCardLaunchQuick:z0,AnswerCardTemplateList:B0,QuestionnaireIconMobileQuick:R$,LaunchPanelTab:yn}}});var B$=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",[r(o.PwcPopup,{staticClass:"plv-ial-answer-panel-popup",attrs:{"show-header":!1,width:"","show-modal":!0,"body-height-percent":.65,"show-scrollbar":!1,background:"#F7F8FA"},model:{value:o.visible,callback:function(i){o.visible=i},expression:"visible"}},[r("div",{staticClass:"plv-ial-answer-panel",on:{wheel:o.onPanelWheel}},[r("div",{staticClass:"plv-ial-answer-panel__header"},[r(o.PwcButton,{staticClass:"plv-ial-answer-panel__tab",class:{"plv-ial-answer-panel__tab--active":o.activeTab===o.LaunchPanelTab.Card},attrs:{link:"",type:"ordinary"},on:{click:function(i){o.activeTab=o.LaunchPanelTab.Card}}},[t._v(" "+t._s(o.$t("answerCardLaunch.panel.cardTab"))+" ")]),r(o.PwcButton,{staticClass:"plv-ial-answer-panel__tab",class:{"plv-ial-answer-panel__tab--active":o.activeTab===o.LaunchPanelTab.Template},attrs:{link:"",type:"ordinary"},on:{click:function(i){o.activeTab=o.LaunchPanelTab.Template}}},[t._v(" "+t._s(o.$t("answerCardLaunch.panel.templateTab"))+" ")]),r(o.PwcButton,{staticClass:"plv-ial-answer-panel__close",attrs:{link:"",type:"ordinary"},on:{click:o.closePanel}},[t._v("×")])],1),r("div",{staticClass:"plv-ial-answer-panel__body"},[r(o.AnswerCardLaunchList,{directives:[{name:"show",rawName:"v-show",value:o.activeTab===o.LaunchPanelTab.Card,expression:"activeTab === LaunchPanelTab.Card"}],ref:"listRef",attrs:{"answer-card-target":o.props.answerCardTarget,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{"view-detail":o.openDetail,refresh:o.onCardListRefresh}}),r(o.AnswerCardTemplateList,{directives:[{name:"show",rawName:"v-show",value:o.activeTab===o.LaunchPanelTab.Template,expression:"activeTab === LaunchPanelTab.Template"}],ref:"templateRef",attrs:{"answer-card-target":o.props.answerCardTarget}})],1),o.activeTab===o.LaunchPanelTab.Card?r(o.PwcButton,{staticClass:"plv-ial-answer-panel__quick-btn",on:{click:o.openQuick}},[r(o.QuestionnaireIconMobileQuick),t._v(" "+t._s(o.$t("answerCardLaunch.panel.quickButton"))+" ")],1):t._e()],1)]),o.showQuickDetail?r(o.AnswerCardLaunchQuickDetail,{attrs:{"answer-card-target":o.props.answerCardTarget,"question-id":o.currentQuestionId,question:o.currentQuestion,"launch-status":o.currentLaunchStatus,"launch-submitted-count":o.currentSubmittedCount,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{start:o.refreshCardList},model:{value:o.detailVisible,callback:function(i){o.detailVisible=i},expression:"detailVisible"}}):r(o.AnswerCardLaunchDetail,{attrs:{"answer-card-target":o.props.answerCardTarget,"question-id":o.currentQuestionId,question:o.currentQuestion,"launch-status":o.currentLaunchStatus,"launch-submitted-count":o.currentSubmittedCount,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer,"default-limit-duration":o.props.defaultLimitDuration},on:{start:o.refreshCardList},model:{value:o.detailVisible,callback:function(i){o.detailVisible=i},expression:"detailVisible"}}),r(o.AnswerCardLaunchQuick,{attrs:{"answer-card-target":o.props.answerCardTarget,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{sent:o.onQuickSent},model:{value:o.quickVisible,callback:function(i){o.quickVisible=i},expression:"quickVisible"}})],1)},F$=[],V$=Le($$,B$,F$,!1,null,null);const q$=V$.exports;exports.AnswerCardLaunchDetail=P0;exports.AnswerCardLaunchList=g0;exports.AnswerCardLaunchPanel=q$;exports.AnswerCardLaunchQuick=z0;exports.AnswerCardLaunchQuickDetail=I0;exports.AnswerCardTemplateList=B0;exports.LaunchDetailMode=xn;exports.LaunchPanelTab=yn;exports.LaunchQuestionType=$e;exports.LaunchStatus=re;exports.QuickDetailStatus=Xo;exports.answerCardLaunchDetailEmits=L0;exports.answerCardLaunchDetailProps=S0;exports.answerCardLaunchListEmits=f0;exports.answerCardLaunchListProps=d0;exports.answerCardLaunchPanelEmits=V0;exports.answerCardLaunchPanelProps=F0;exports.answerCardLaunchProps=ol;exports.answerCardLaunchQuickDetailEmits=Q0;exports.answerCardLaunchQuickDetailProps=T0;exports.answerCardLaunchQuickEmits=A0;exports.answerCardLaunchQuickProps=M0;exports.answerCardTemplateListEmits=R0;exports.answerCardTemplateListProps=O0;exports.buildOptionLetters=qn;exports.buildStartSetting=jn;exports.formatQuestionTitle=l0;exports.getQuestionLaunchStatus=il;exports.getQuestionTypeLabel=Vn;exports.resolveLaunchStatus=nl;exports.uiAnswerCardLaunchEvents=Bo;exports.useAnswerCardLaunchBase=pO;exports.useAnswerCardLaunchDetail=k0;exports.useAnswerCardLaunchList=m0;exports.useAnswerCardLaunchPanel=q0;exports.useAnswerCardLaunchQuick=D0;exports.useAnswerCardLaunchQuickDetail=E0;exports.useAnswerCardTemplateList=$0;console.log("%c@polyv/answer-card-ui-launch","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0
|
|
1050
|
+
`),F0=()=>ee($({},ol()),{value:{type:Boolean,default:!0}}),V0={input:e=>!0,close:()=>!0};var yn=(e=>(e.Card="card",e.Template="template",e))(yn||{}),xn=(e=>(e.Default="default",e.Quick="quick",e))(xn||{});const q0=e=>{const{props:t,emit:r}=e,o=c.ref("card"),i=c.ref(""),n=c.ref(),a=c.ref(re.Draft),s=c.ref(0),l=c.ref("default"),u=c.ref(!1),p=c.ref(!1),d=c.computed({get:()=>!!t.value,set:y=>{r("input",y),y||(u.value=!1,i.value="",n.value=void 0,a.value=re.Draft,s.value=0,l.value="default",p.value=!1,r("close"))}});function m(){d.value=!0}function f(){d.value=!1}function g(y,_="default"){m(),typeof y=="string"?(i.value=y,n.value=void 0,a.value=re.Draft,s.value=0,l.value=_):(i.value=y.question.questionId,n.value=y.question,a.value=y.status,s.value=y.submittedCount,l.value=y.question.isQuickQuestion?"quick":"default"),u.value=!0}function h(){u.value=!1,l.value="default"}function b(){m(),p.value=!0}function v(){p.value=!1}return{visible:d,activeTab:o,currentQuestionId:i,currentQuestion:n,currentLaunchStatus:a,currentSubmittedCount:s,currentDetailMode:l,detailVisible:u,quickVisible:p,openPanel:m,closePanel:f,openDetail:g,closeDetail:h,openQuick:b,closeQuick:v}},$$=c.defineComponent({__name:"answer-card-launch-panel",props:F0(),emits:V0,setup(e,{expose:t,emit:r}){const o=e,{$t:i}=je();dO();const{visible:n,activeTab:a,currentQuestionId:s,currentQuestion:l,currentLaunchStatus:u,currentSubmittedCount:p,currentDetailMode:d,detailVisible:m,quickVisible:f,openPanel:g,closePanel:h,openDetail:b,openQuick:v}=q0({props:o,emit:r}),y=c.ref(),_=c.ref(),C=c.computed(()=>d.value===xn.Quick);c.watch(()=>a.value,k=>j(this,null,function*(){var M,I,E,A;if(k===yn.Template){yield(I=(M=_.value)==null?void 0:M.refreshList)==null?void 0:I.call(M);return}yield(A=(E=y.value)==null?void 0:E.refreshList)==null?void 0:A.call(E)}));function x(k){var M;if(!(!m.value||!s.value)){if(!k){if(((M=l.value)==null?void 0:M.questionId)===s.value&&l.value.isQuickQuestion){u.value=re.Send;return}l.value=void 0,u.value=re.Draft,p.value=0;return}l.value=k.question,u.value=k.status,p.value=k.submittedCount}}function S(k){if(!m.value||!s.value)return;const M=k.find(I=>I.question.questionId===s.value);x(M)}function P(){return j(this,null,function*(){var M,I,E,A;yield(I=(M=y.value)==null?void 0:M.refreshList)==null?void 0:I.call(M);const k=(A=(E=y.value)==null?void 0:E.getCardById)==null?void 0:A.call(E,s.value);x(k)})}function L(k){return j(this,null,function*(){var I,E;yield P();const M=(E=(I=y.value)==null?void 0:I.getCardById)==null?void 0:E.call(I,k);b(M||k,xn.Quick)})}function Q(){var k,M;(M=(k=_.value)==null?void 0:k.refreshList)==null||M.call(k)}function T(k){const M=k.target;M!=null&&M.closest(".plv-ial-answer-panel__body")||k.preventDefault()}return t({openPanel:g,refreshCardList:P,refreshTemplateList:Q,openDetail:b,openQuick:v,closePanel:h}),Qt(Bo.OpenPanel,()=>{g()}),Qt(Bo.OpenQuickAnswer,()=>{v()}),Qt(Bo.RefreshCardList,()=>{P()}),Qt(Bo.RefreshTemplateList,()=>{Q()}),{__sfc:!0,props:o,emit:r,$t:i,visible:n,activeTab:a,currentQuestionId:s,currentQuestion:l,currentLaunchStatus:u,currentSubmittedCount:p,currentDetailMode:d,detailVisible:m,quickVisible:f,openPanel:g,closePanel:h,openDetail:b,openQuick:v,listRef:y,templateRef:_,showQuickDetail:C,syncDetailCard:x,onCardListRefresh:S,refreshCardList:P,onQuickSent:L,refreshTemplateList:Q,onPanelWheel:T,PwcButton:Be,PwcPopup:ut,AnswerCardLaunchDetail:P0,AnswerCardLaunchQuickDetail:I0,AnswerCardLaunchList:g0,AnswerCardLaunchQuick:z0,AnswerCardTemplateList:B0,QuestionnaireIconMobileQuick:R$,LaunchPanelTab:yn}}});var B$=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",[r(o.PwcPopup,{staticClass:"plv-ial-answer-panel-popup",attrs:{"show-header":!1,width:"","show-modal":!0,"body-height-percent":.65,"show-scrollbar":!1,background:"#F7F8FA"},model:{value:o.visible,callback:function(i){o.visible=i},expression:"visible"}},[r("div",{staticClass:"plv-ial-answer-panel",on:{wheel:o.onPanelWheel}},[r("div",{staticClass:"plv-ial-answer-panel__header"},[r(o.PwcButton,{staticClass:"plv-ial-answer-panel__tab",class:{"plv-ial-answer-panel__tab--active":o.activeTab===o.LaunchPanelTab.Card},attrs:{link:"",type:"ordinary"},on:{click:function(i){o.activeTab=o.LaunchPanelTab.Card}}},[t._v(" "+t._s(o.$t("answerCardLaunch.panel.cardTab"))+" ")]),r(o.PwcButton,{staticClass:"plv-ial-answer-panel__tab",class:{"plv-ial-answer-panel__tab--active":o.activeTab===o.LaunchPanelTab.Template},attrs:{link:"",type:"ordinary"},on:{click:function(i){o.activeTab=o.LaunchPanelTab.Template}}},[t._v(" "+t._s(o.$t("answerCardLaunch.panel.templateTab"))+" ")]),r(o.PwcButton,{staticClass:"plv-ial-answer-panel__close",attrs:{link:"",type:"ordinary"},on:{click:o.closePanel}},[t._v("×")])],1),r("div",{staticClass:"plv-ial-answer-panel__body"},[r(o.AnswerCardLaunchList,{directives:[{name:"show",rawName:"v-show",value:o.activeTab===o.LaunchPanelTab.Card,expression:"activeTab === LaunchPanelTab.Card"}],ref:"listRef",attrs:{"answer-card-target":o.props.answerCardTarget,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{"view-detail":o.openDetail,refresh:o.onCardListRefresh}}),r(o.AnswerCardTemplateList,{directives:[{name:"show",rawName:"v-show",value:o.activeTab===o.LaunchPanelTab.Template,expression:"activeTab === LaunchPanelTab.Template"}],ref:"templateRef",attrs:{"answer-card-target":o.props.answerCardTarget}})],1),o.activeTab===o.LaunchPanelTab.Card?r(o.PwcButton,{staticClass:"plv-ial-answer-panel__quick-btn",on:{click:o.openQuick}},[r(o.QuestionnaireIconMobileQuick),t._v(" "+t._s(o.$t("answerCardLaunch.panel.quickButton"))+" ")],1):t._e()],1)]),o.showQuickDetail?r(o.AnswerCardLaunchQuickDetail,{attrs:{"answer-card-target":o.props.answerCardTarget,"question-id":o.currentQuestionId,question:o.currentQuestion,"launch-status":o.currentLaunchStatus,"launch-submitted-count":o.currentSubmittedCount,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{start:o.refreshCardList},model:{value:o.detailVisible,callback:function(i){o.detailVisible=i},expression:"detailVisible"}}):r(o.AnswerCardLaunchDetail,{attrs:{"answer-card-target":o.props.answerCardTarget,"question-id":o.currentQuestionId,question:o.currentQuestion,"launch-status":o.currentLaunchStatus,"launch-submitted-count":o.currentSubmittedCount,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer,"default-limit-duration":o.props.defaultLimitDuration},on:{start:o.refreshCardList},model:{value:o.detailVisible,callback:function(i){o.detailVisible=i},expression:"detailVisible"}}),r(o.AnswerCardLaunchQuick,{attrs:{"answer-card-target":o.props.answerCardTarget,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{sent:o.onQuickSent},model:{value:o.quickVisible,callback:function(i){o.quickVisible=i},expression:"quickVisible"}})],1)},F$=[],V$=Le($$,B$,F$,!1,null,null);const q$=V$.exports;exports.AnswerCardLaunchDetail=P0;exports.AnswerCardLaunchList=g0;exports.AnswerCardLaunchPanel=q$;exports.AnswerCardLaunchQuick=z0;exports.AnswerCardLaunchQuickDetail=I0;exports.AnswerCardTemplateList=B0;exports.LaunchDetailMode=xn;exports.LaunchPanelTab=yn;exports.LaunchQuestionType=$e;exports.LaunchStatus=re;exports.QuickDetailStatus=Xo;exports.answerCardLaunchDetailEmits=L0;exports.answerCardLaunchDetailProps=S0;exports.answerCardLaunchListEmits=f0;exports.answerCardLaunchListProps=d0;exports.answerCardLaunchPanelEmits=V0;exports.answerCardLaunchPanelProps=F0;exports.answerCardLaunchProps=ol;exports.answerCardLaunchQuickDetailEmits=Q0;exports.answerCardLaunchQuickDetailProps=T0;exports.answerCardLaunchQuickEmits=A0;exports.answerCardLaunchQuickProps=M0;exports.answerCardTemplateListEmits=R0;exports.answerCardTemplateListProps=O0;exports.buildOptionLetters=qn;exports.buildStartSetting=jn;exports.formatQuestionTitle=l0;exports.getQuestionLaunchStatus=il;exports.getQuestionTypeLabel=Vn;exports.resolveLaunchStatus=nl;exports.uiAnswerCardLaunchEvents=Bo;exports.useAnswerCardLaunchBase=pO;exports.useAnswerCardLaunchDetail=k0;exports.useAnswerCardLaunchList=m0;exports.useAnswerCardLaunchPanel=q0;exports.useAnswerCardLaunchQuick=D0;exports.useAnswerCardLaunchQuickDetail=E0;exports.useAnswerCardTemplateList=$0;console.log("%c@polyv/answer-card-ui-launch","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0]","[buildTime: 2026-03-13 02:39:43]");
|
package/index.es.js
CHANGED
|
@@ -30463,8 +30463,8 @@ const pF = aF.exports;
|
|
|
30463
30463
|
console.log(
|
|
30464
30464
|
"%c@polyv/answer-card-ui-launch",
|
|
30465
30465
|
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
30466
|
-
"[version: 2.1.0
|
|
30467
|
-
"[buildTime: 2026-03-
|
|
30466
|
+
"[version: 2.1.0]",
|
|
30467
|
+
"[buildTime: 2026-03-13 02:39:43]"
|
|
30468
30468
|
);
|
|
30469
30469
|
export {
|
|
30470
30470
|
T$ as AnswerCardLaunchDetail,
|
package/index.umd.js
CHANGED
|
@@ -1047,4 +1047,4 @@ ${Ri(r)}`),o}})}function o2(e){const t=Object.keys(e),r=t.filter(i=>{var a;retur
|
|
|
1047
1047
|
/>
|
|
1048
1048
|
</g>
|
|
1049
1049
|
</svg>
|
|
1050
|
-
`),q0=()=>te($({},ll()),{value:{type:Boolean,default:!0}}),j0={input:e=>!0,close:()=>!0};var Ya=(e=>(e.Card="card",e.Template="template",e))(Ya||{}),Ga=(e=>(e.Default="default",e.Quick="quick",e))(Ga||{});const U0=e=>{const{props:t,emit:r}=e,o=c.ref("card"),i=c.ref(""),a=c.ref(),n=c.ref(oe.Draft),s=c.ref(0),l=c.ref("default"),u=c.ref(!1),p=c.ref(!1),d=c.computed({get:()=>!!t.value,set:y=>{r("input",y),y||(u.value=!1,i.value="",a.value=void 0,n.value=oe.Draft,s.value=0,l.value="default",p.value=!1,r("close"))}});function m(){d.value=!0}function f(){d.value=!1}function g(y,_="default"){m(),typeof y=="string"?(i.value=y,a.value=void 0,n.value=oe.Draft,s.value=0,l.value=_):(i.value=y.question.questionId,a.value=y.question,n.value=y.status,s.value=y.submittedCount,l.value=y.question.isQuickQuestion?"quick":"default"),u.value=!0}function h(){u.value=!1,l.value="default"}function b(){m(),p.value=!0}function v(){p.value=!1}return{visible:d,activeTab:o,currentQuestionId:i,currentQuestion:a,currentLaunchStatus:n,currentSubmittedCount:s,currentDetailMode:l,detailVisible:u,quickVisible:p,openPanel:m,closePanel:f,openDetail:g,closeDetail:h,openQuick:b,closeQuick:v}},w$=c.defineComponent({__name:"answer-card-launch-panel",props:q0(),emits:j0,setup(e,{expose:t,emit:r}){const o=e,{$t:i}=We();rO();const{visible:a,activeTab:n,currentQuestionId:s,currentQuestion:l,currentLaunchStatus:u,currentSubmittedCount:p,currentDetailMode:d,detailVisible:m,quickVisible:f,openPanel:g,closePanel:h,openDetail:b,openQuick:v}=U0({props:o,emit:r}),y=c.ref(),_=c.ref(),C=c.computed(()=>d.value===Ga.Quick);c.watch(()=>n.value,k=>j(this,null,function*(){var M,I,E,A;if(k===Ya.Template){yield(I=(M=_.value)==null?void 0:M.refreshList)==null?void 0:I.call(M);return}yield(A=(E=y.value)==null?void 0:E.refreshList)==null?void 0:A.call(E)}));function x(k){var M;if(!(!m.value||!s.value)){if(!k){if(((M=l.value)==null?void 0:M.questionId)===s.value&&l.value.isQuickQuestion){u.value=oe.Send;return}l.value=void 0,u.value=oe.Draft,p.value=0;return}l.value=k.question,u.value=k.status,p.value=k.submittedCount}}function S(k){if(!m.value||!s.value)return;const M=k.find(I=>I.question.questionId===s.value);x(M)}function P(){return j(this,null,function*(){var M,I,E,A;yield(I=(M=y.value)==null?void 0:M.refreshList)==null?void 0:I.call(M);const k=(A=(E=y.value)==null?void 0:E.getCardById)==null?void 0:A.call(E,s.value);x(k)})}function L(k){return j(this,null,function*(){var I,E;yield P();const M=(E=(I=y.value)==null?void 0:I.getCardById)==null?void 0:E.call(I,k);b(M||k,Ga.Quick)})}function Q(){var k,M;(M=(k=_.value)==null?void 0:k.refreshList)==null||M.call(k)}function T(k){const M=k.target;M!=null&&M.closest(".plv-ial-answer-panel__body")||k.preventDefault()}return t({openPanel:g,refreshCardList:P,refreshTemplateList:Q,openDetail:b,openQuick:v,closePanel:h}),zt(Mi.OpenPanel,()=>{g()}),zt(Mi.OpenQuickAnswer,()=>{v()}),zt(Mi.RefreshCardList,()=>{P()}),zt(Mi.RefreshTemplateList,()=>{Q()}),{__sfc:!0,props:o,emit:r,$t:i,visible:a,activeTab:n,currentQuestionId:s,currentQuestion:l,currentLaunchStatus:u,currentSubmittedCount:p,currentDetailMode:d,detailVisible:m,quickVisible:f,openPanel:g,closePanel:h,openDetail:b,openQuick:v,listRef:y,templateRef:_,showQuickDetail:C,syncDetailCard:x,onCardListRefresh:S,refreshCardList:P,onQuickSent:L,refreshTemplateList:Q,onPanelWheel:T,PwcButton:Be,PwcPopup:nt,AnswerCardLaunchDetail:Q0,AnswerCardLaunchQuickDetail:A0,AnswerCardLaunchList:v0,AnswerCardLaunchQuick:R0,AnswerCardTemplateList:V0,QuestionnaireIconMobileQuick:v$,LaunchPanelTab:Ya}}});var b$=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",[r(o.PwcPopup,{staticClass:"plv-ial-answer-panel-popup",attrs:{"show-header":!1,width:"","show-modal":!0,"body-height-percent":.65,"show-scrollbar":!1,background:"#F7F8FA"},model:{value:o.visible,callback:function(i){o.visible=i},expression:"visible"}},[r("div",{staticClass:"plv-ial-answer-panel",on:{wheel:o.onPanelWheel}},[r("div",{staticClass:"plv-ial-answer-panel__header"},[r(o.PwcButton,{staticClass:"plv-ial-answer-panel__tab",class:{"plv-ial-answer-panel__tab--active":o.activeTab===o.LaunchPanelTab.Card},attrs:{link:"",type:"ordinary"},on:{click:function(i){o.activeTab=o.LaunchPanelTab.Card}}},[t._v(" "+t._s(o.$t("answerCardLaunch.panel.cardTab"))+" ")]),r(o.PwcButton,{staticClass:"plv-ial-answer-panel__tab",class:{"plv-ial-answer-panel__tab--active":o.activeTab===o.LaunchPanelTab.Template},attrs:{link:"",type:"ordinary"},on:{click:function(i){o.activeTab=o.LaunchPanelTab.Template}}},[t._v(" "+t._s(o.$t("answerCardLaunch.panel.templateTab"))+" ")]),r(o.PwcButton,{staticClass:"plv-ial-answer-panel__close",attrs:{link:"",type:"ordinary"},on:{click:o.closePanel}},[t._v("×")])],1),r("div",{staticClass:"plv-ial-answer-panel__body"},[r(o.AnswerCardLaunchList,{directives:[{name:"show",rawName:"v-show",value:o.activeTab===o.LaunchPanelTab.Card,expression:"activeTab === LaunchPanelTab.Card"}],ref:"listRef",attrs:{"answer-card-target":o.props.answerCardTarget,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{"view-detail":o.openDetail,refresh:o.onCardListRefresh}}),r(o.AnswerCardTemplateList,{directives:[{name:"show",rawName:"v-show",value:o.activeTab===o.LaunchPanelTab.Template,expression:"activeTab === LaunchPanelTab.Template"}],ref:"templateRef",attrs:{"answer-card-target":o.props.answerCardTarget}})],1),o.activeTab===o.LaunchPanelTab.Card?r(o.PwcButton,{staticClass:"plv-ial-answer-panel__quick-btn",on:{click:o.openQuick}},[r(o.QuestionnaireIconMobileQuick),t._v(" "+t._s(o.$t("answerCardLaunch.panel.quickButton"))+" ")],1):t._e()],1)]),o.showQuickDetail?r(o.AnswerCardLaunchQuickDetail,{attrs:{"answer-card-target":o.props.answerCardTarget,"question-id":o.currentQuestionId,question:o.currentQuestion,"launch-status":o.currentLaunchStatus,"launch-submitted-count":o.currentSubmittedCount,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{start:o.refreshCardList},model:{value:o.detailVisible,callback:function(i){o.detailVisible=i},expression:"detailVisible"}}):r(o.AnswerCardLaunchDetail,{attrs:{"answer-card-target":o.props.answerCardTarget,"question-id":o.currentQuestionId,question:o.currentQuestion,"launch-status":o.currentLaunchStatus,"launch-submitted-count":o.currentSubmittedCount,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer,"default-limit-duration":o.props.defaultLimitDuration},on:{start:o.refreshCardList},model:{value:o.detailVisible,callback:function(i){o.detailVisible=i},expression:"detailVisible"}}),r(o.AnswerCardLaunchQuick,{attrs:{"answer-card-target":o.props.answerCardTarget,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{sent:o.onQuickSent},model:{value:o.quickVisible,callback:function(i){o.quickVisible=i},expression:"quickVisible"}})],1)},_$=[],y$=Le(w$,b$,_$,!1,null,null);const x$=y$.exports;ee.AnswerCardLaunchDetail=Q0,ee.AnswerCardLaunchList=v0,ee.AnswerCardLaunchPanel=x$,ee.AnswerCardLaunchQuick=R0,ee.AnswerCardLaunchQuickDetail=A0,ee.AnswerCardTemplateList=V0,ee.LaunchDetailMode=Ga,ee.LaunchPanelTab=Ya,ee.LaunchQuestionType=qe,ee.LaunchStatus=oe,ee.QuickDetailStatus=Ii,ee.answerCardLaunchDetailEmits=P0,ee.answerCardLaunchDetailProps=k0,ee.answerCardLaunchListEmits=m0,ee.answerCardLaunchListProps=f0,ee.answerCardLaunchPanelEmits=j0,ee.answerCardLaunchPanelProps=q0,ee.answerCardLaunchProps=ll,ee.answerCardLaunchQuickDetailEmits=I0,ee.answerCardLaunchQuickDetailProps=E0,ee.answerCardLaunchQuickEmits=z0,ee.answerCardLaunchQuickProps=D0,ee.answerCardTemplateListEmits=B0,ee.answerCardTemplateListProps=$0,ee.buildOptionLetters=qa,ee.buildStartSetting=ja,ee.formatQuestionTitle=c0,ee.getQuestionLaunchStatus=cl,ee.getQuestionTypeLabel=Va,ee.resolveLaunchStatus=ul,ee.uiAnswerCardLaunchEvents=Mi,ee.useAnswerCardLaunchBase=tO,ee.useAnswerCardLaunchDetail=T0,ee.useAnswerCardLaunchList=h0,ee.useAnswerCardLaunchPanel=U0,ee.useAnswerCardLaunchQuick=O0,ee.useAnswerCardLaunchQuickDetail=M0,ee.useAnswerCardTemplateList=F0,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/answer-card-ui-launch","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0
|
|
1050
|
+
`),q0=()=>te($({},ll()),{value:{type:Boolean,default:!0}}),j0={input:e=>!0,close:()=>!0};var Ya=(e=>(e.Card="card",e.Template="template",e))(Ya||{}),Ga=(e=>(e.Default="default",e.Quick="quick",e))(Ga||{});const U0=e=>{const{props:t,emit:r}=e,o=c.ref("card"),i=c.ref(""),a=c.ref(),n=c.ref(oe.Draft),s=c.ref(0),l=c.ref("default"),u=c.ref(!1),p=c.ref(!1),d=c.computed({get:()=>!!t.value,set:y=>{r("input",y),y||(u.value=!1,i.value="",a.value=void 0,n.value=oe.Draft,s.value=0,l.value="default",p.value=!1,r("close"))}});function m(){d.value=!0}function f(){d.value=!1}function g(y,_="default"){m(),typeof y=="string"?(i.value=y,a.value=void 0,n.value=oe.Draft,s.value=0,l.value=_):(i.value=y.question.questionId,a.value=y.question,n.value=y.status,s.value=y.submittedCount,l.value=y.question.isQuickQuestion?"quick":"default"),u.value=!0}function h(){u.value=!1,l.value="default"}function b(){m(),p.value=!0}function v(){p.value=!1}return{visible:d,activeTab:o,currentQuestionId:i,currentQuestion:a,currentLaunchStatus:n,currentSubmittedCount:s,currentDetailMode:l,detailVisible:u,quickVisible:p,openPanel:m,closePanel:f,openDetail:g,closeDetail:h,openQuick:b,closeQuick:v}},w$=c.defineComponent({__name:"answer-card-launch-panel",props:q0(),emits:j0,setup(e,{expose:t,emit:r}){const o=e,{$t:i}=We();rO();const{visible:a,activeTab:n,currentQuestionId:s,currentQuestion:l,currentLaunchStatus:u,currentSubmittedCount:p,currentDetailMode:d,detailVisible:m,quickVisible:f,openPanel:g,closePanel:h,openDetail:b,openQuick:v}=U0({props:o,emit:r}),y=c.ref(),_=c.ref(),C=c.computed(()=>d.value===Ga.Quick);c.watch(()=>n.value,k=>j(this,null,function*(){var M,I,E,A;if(k===Ya.Template){yield(I=(M=_.value)==null?void 0:M.refreshList)==null?void 0:I.call(M);return}yield(A=(E=y.value)==null?void 0:E.refreshList)==null?void 0:A.call(E)}));function x(k){var M;if(!(!m.value||!s.value)){if(!k){if(((M=l.value)==null?void 0:M.questionId)===s.value&&l.value.isQuickQuestion){u.value=oe.Send;return}l.value=void 0,u.value=oe.Draft,p.value=0;return}l.value=k.question,u.value=k.status,p.value=k.submittedCount}}function S(k){if(!m.value||!s.value)return;const M=k.find(I=>I.question.questionId===s.value);x(M)}function P(){return j(this,null,function*(){var M,I,E,A;yield(I=(M=y.value)==null?void 0:M.refreshList)==null?void 0:I.call(M);const k=(A=(E=y.value)==null?void 0:E.getCardById)==null?void 0:A.call(E,s.value);x(k)})}function L(k){return j(this,null,function*(){var I,E;yield P();const M=(E=(I=y.value)==null?void 0:I.getCardById)==null?void 0:E.call(I,k);b(M||k,Ga.Quick)})}function Q(){var k,M;(M=(k=_.value)==null?void 0:k.refreshList)==null||M.call(k)}function T(k){const M=k.target;M!=null&&M.closest(".plv-ial-answer-panel__body")||k.preventDefault()}return t({openPanel:g,refreshCardList:P,refreshTemplateList:Q,openDetail:b,openQuick:v,closePanel:h}),zt(Mi.OpenPanel,()=>{g()}),zt(Mi.OpenQuickAnswer,()=>{v()}),zt(Mi.RefreshCardList,()=>{P()}),zt(Mi.RefreshTemplateList,()=>{Q()}),{__sfc:!0,props:o,emit:r,$t:i,visible:a,activeTab:n,currentQuestionId:s,currentQuestion:l,currentLaunchStatus:u,currentSubmittedCount:p,currentDetailMode:d,detailVisible:m,quickVisible:f,openPanel:g,closePanel:h,openDetail:b,openQuick:v,listRef:y,templateRef:_,showQuickDetail:C,syncDetailCard:x,onCardListRefresh:S,refreshCardList:P,onQuickSent:L,refreshTemplateList:Q,onPanelWheel:T,PwcButton:Be,PwcPopup:nt,AnswerCardLaunchDetail:Q0,AnswerCardLaunchQuickDetail:A0,AnswerCardLaunchList:v0,AnswerCardLaunchQuick:R0,AnswerCardTemplateList:V0,QuestionnaireIconMobileQuick:v$,LaunchPanelTab:Ya}}});var b$=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",[r(o.PwcPopup,{staticClass:"plv-ial-answer-panel-popup",attrs:{"show-header":!1,width:"","show-modal":!0,"body-height-percent":.65,"show-scrollbar":!1,background:"#F7F8FA"},model:{value:o.visible,callback:function(i){o.visible=i},expression:"visible"}},[r("div",{staticClass:"plv-ial-answer-panel",on:{wheel:o.onPanelWheel}},[r("div",{staticClass:"plv-ial-answer-panel__header"},[r(o.PwcButton,{staticClass:"plv-ial-answer-panel__tab",class:{"plv-ial-answer-panel__tab--active":o.activeTab===o.LaunchPanelTab.Card},attrs:{link:"",type:"ordinary"},on:{click:function(i){o.activeTab=o.LaunchPanelTab.Card}}},[t._v(" "+t._s(o.$t("answerCardLaunch.panel.cardTab"))+" ")]),r(o.PwcButton,{staticClass:"plv-ial-answer-panel__tab",class:{"plv-ial-answer-panel__tab--active":o.activeTab===o.LaunchPanelTab.Template},attrs:{link:"",type:"ordinary"},on:{click:function(i){o.activeTab=o.LaunchPanelTab.Template}}},[t._v(" "+t._s(o.$t("answerCardLaunch.panel.templateTab"))+" ")]),r(o.PwcButton,{staticClass:"plv-ial-answer-panel__close",attrs:{link:"",type:"ordinary"},on:{click:o.closePanel}},[t._v("×")])],1),r("div",{staticClass:"plv-ial-answer-panel__body"},[r(o.AnswerCardLaunchList,{directives:[{name:"show",rawName:"v-show",value:o.activeTab===o.LaunchPanelTab.Card,expression:"activeTab === LaunchPanelTab.Card"}],ref:"listRef",attrs:{"answer-card-target":o.props.answerCardTarget,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{"view-detail":o.openDetail,refresh:o.onCardListRefresh}}),r(o.AnswerCardTemplateList,{directives:[{name:"show",rawName:"v-show",value:o.activeTab===o.LaunchPanelTab.Template,expression:"activeTab === LaunchPanelTab.Template"}],ref:"templateRef",attrs:{"answer-card-target":o.props.answerCardTarget}})],1),o.activeTab===o.LaunchPanelTab.Card?r(o.PwcButton,{staticClass:"plv-ial-answer-panel__quick-btn",on:{click:o.openQuick}},[r(o.QuestionnaireIconMobileQuick),t._v(" "+t._s(o.$t("answerCardLaunch.panel.quickButton"))+" ")],1):t._e()],1)]),o.showQuickDetail?r(o.AnswerCardLaunchQuickDetail,{attrs:{"answer-card-target":o.props.answerCardTarget,"question-id":o.currentQuestionId,question:o.currentQuestion,"launch-status":o.currentLaunchStatus,"launch-submitted-count":o.currentSubmittedCount,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{start:o.refreshCardList},model:{value:o.detailVisible,callback:function(i){o.detailVisible=i},expression:"detailVisible"}}):r(o.AnswerCardLaunchDetail,{attrs:{"answer-card-target":o.props.answerCardTarget,"question-id":o.currentQuestionId,question:o.currentQuestion,"launch-status":o.currentLaunchStatus,"launch-submitted-count":o.currentSubmittedCount,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer,"default-limit-duration":o.props.defaultLimitDuration},on:{start:o.refreshCardList},model:{value:o.detailVisible,callback:function(i){o.detailVisible=i},expression:"detailVisible"}}),r(o.AnswerCardLaunchQuick,{attrs:{"answer-card-target":o.props.answerCardTarget,"can-start":o.props.canStart,"cant-start-tips":o.props.cantStartTips,"default-limit-time-answer":o.props.defaultLimitTimeAnswer},on:{sent:o.onQuickSent},model:{value:o.quickVisible,callback:function(i){o.quickVisible=i},expression:"quickVisible"}})],1)},_$=[],y$=Le(w$,b$,_$,!1,null,null);const x$=y$.exports;ee.AnswerCardLaunchDetail=Q0,ee.AnswerCardLaunchList=v0,ee.AnswerCardLaunchPanel=x$,ee.AnswerCardLaunchQuick=R0,ee.AnswerCardLaunchQuickDetail=A0,ee.AnswerCardTemplateList=V0,ee.LaunchDetailMode=Ga,ee.LaunchPanelTab=Ya,ee.LaunchQuestionType=qe,ee.LaunchStatus=oe,ee.QuickDetailStatus=Ii,ee.answerCardLaunchDetailEmits=P0,ee.answerCardLaunchDetailProps=k0,ee.answerCardLaunchListEmits=m0,ee.answerCardLaunchListProps=f0,ee.answerCardLaunchPanelEmits=j0,ee.answerCardLaunchPanelProps=q0,ee.answerCardLaunchProps=ll,ee.answerCardLaunchQuickDetailEmits=I0,ee.answerCardLaunchQuickDetailProps=E0,ee.answerCardLaunchQuickEmits=z0,ee.answerCardLaunchQuickProps=D0,ee.answerCardTemplateListEmits=B0,ee.answerCardTemplateListProps=$0,ee.buildOptionLetters=qa,ee.buildStartSetting=ja,ee.formatQuestionTitle=c0,ee.getQuestionLaunchStatus=cl,ee.getQuestionTypeLabel=Va,ee.resolveLaunchStatus=ul,ee.uiAnswerCardLaunchEvents=Mi,ee.useAnswerCardLaunchBase=tO,ee.useAnswerCardLaunchDetail=T0,ee.useAnswerCardLaunchList=h0,ee.useAnswerCardLaunchPanel=U0,ee.useAnswerCardLaunchQuick=O0,ee.useAnswerCardLaunchQuickDetail=M0,ee.useAnswerCardTemplateList=F0,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/answer-card-ui-launch","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0]","[buildTime: 2026-03-13 02:39:37]");
|