@polyv/answer-card-ui-launch 2.2.0-rc-20260402.1 → 2.2.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 CHANGED
@@ -1143,4 +1143,4 @@ ${Pn(r)}`),o}})}function F2(e){const t=Object.keys(e),r=t.filter(i=>{var n;retur
1143
1143
  />
1144
1144
  </g>
1145
1145
  </svg>
1146
- `),x2=()=>J(O({},Cl()),{value:{type:Boolean,default:!0}}),C2={input:e=>!0,close:()=>!0};var Sn=(e=>(e.Card="card",e.Template="template",e))(Sn||{}),kn=(e=>(e.Default="default",e.Quick="quick",e))(kn||{});const L2=e=>{const{props:t,emit:r}=e,o=c.ref("card"),i=c.ref(""),n=c.ref(),a=c.ref(ie.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=ie.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=ie.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}},rq=c.defineComponent({__name:"answer-card-launch-panel",props:x2(),emits:C2,setup(e,{expose:t,emit:r}){const o=e,{$t:i}=je();EB();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}=L2({props:o,emit:r}),y=c.ref(),_=c.ref(),C=c.computed(()=>d.value===kn.Quick);c.watch(()=>a.value,k=>q(this,null,function*(){var M,I,E,A;if(k===Sn.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=ie.Send;return}l.value=void 0,u.value=ie.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 q(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 q(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,kn.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(Ho.OpenPanel,()=>{g()}),zt(Ho.OpenQuickAnswer,()=>{v()}),zt(Ho.RefreshCardList,()=>{P()}),zt(Ho.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:De,PwcPopup:tt,AnswerCardLaunchDetail:c2,AnswerCardLaunchQuickDetail:f2,AnswerCardLaunchList:K0,AnswerCardLaunchQuick:v2,AnswerCardTemplateList:y2,QuestionnaireIconMobileQuick:tq,LaunchPanelTab:Sn}}});var oq=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)},iq=[],nq=Pe(rq,oq,iq,!1,null,null);const aq=nq.exports;exports.AnswerCardLaunchDetail=c2;exports.AnswerCardLaunchList=K0;exports.AnswerCardLaunchPanel=aq;exports.AnswerCardLaunchQuick=v2;exports.AnswerCardLaunchQuickDetail=f2;exports.AnswerCardTemplateList=y2;exports.LaunchDetailMode=kn;exports.LaunchPanelTab=Sn;exports.LaunchQuestionType=Fe;exports.LaunchStatus=ie;exports.QuickDetailStatus=ni;exports.answerCardLaunchDetailEmits=s2;exports.answerCardLaunchDetailProps=a2;exports.answerCardLaunchListEmits=Y0;exports.answerCardLaunchListProps=Z0;exports.answerCardLaunchPanelEmits=C2;exports.answerCardLaunchPanelProps=x2;exports.answerCardLaunchProps=Cl;exports.answerCardLaunchQuickDetailEmits=p2;exports.answerCardLaunchQuickDetailProps=u2;exports.answerCardLaunchQuickEmits=h2;exports.answerCardLaunchQuickProps=m2;exports.answerCardTemplateListEmits=b2;exports.answerCardTemplateListProps=w2;exports.buildOptionLetters=Hn;exports.buildStartSetting=Zn;exports.formatQuestionTitle=j0;exports.getQuestionLaunchStatus=Ll;exports.getQuestionTypeLabel=Wn;exports.resolveLaunchStatus=Sl;exports.uiAnswerCardLaunchEvents=Ho;exports.useAnswerCardLaunchBase=QB;exports.useAnswerCardLaunchDetail=l2;exports.useAnswerCardLaunchList=G0;exports.useAnswerCardLaunchPanel=L2;exports.useAnswerCardLaunchQuick=g2;exports.useAnswerCardLaunchQuickDetail=d2;exports.useAnswerCardTemplateList=_2;console.log("%c@polyv/answer-card-ui-launch","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.2.0-rc-20260402.1]","[buildTime: 2026-04-02 02:17:22]");
1146
+ `),x2=()=>J(O({},Cl()),{value:{type:Boolean,default:!0}}),C2={input:e=>!0,close:()=>!0};var Sn=(e=>(e.Card="card",e.Template="template",e))(Sn||{}),kn=(e=>(e.Default="default",e.Quick="quick",e))(kn||{});const L2=e=>{const{props:t,emit:r}=e,o=c.ref("card"),i=c.ref(""),n=c.ref(),a=c.ref(ie.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=ie.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=ie.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}},rq=c.defineComponent({__name:"answer-card-launch-panel",props:x2(),emits:C2,setup(e,{expose:t,emit:r}){const o=e,{$t:i}=je();EB();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}=L2({props:o,emit:r}),y=c.ref(),_=c.ref(),C=c.computed(()=>d.value===kn.Quick);c.watch(()=>a.value,k=>q(this,null,function*(){var M,I,E,A;if(k===Sn.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=ie.Send;return}l.value=void 0,u.value=ie.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 q(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 q(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,kn.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(Ho.OpenPanel,()=>{g()}),zt(Ho.OpenQuickAnswer,()=>{v()}),zt(Ho.RefreshCardList,()=>{P()}),zt(Ho.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:De,PwcPopup:tt,AnswerCardLaunchDetail:c2,AnswerCardLaunchQuickDetail:f2,AnswerCardLaunchList:K0,AnswerCardLaunchQuick:v2,AnswerCardTemplateList:y2,QuestionnaireIconMobileQuick:tq,LaunchPanelTab:Sn}}});var oq=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)},iq=[],nq=Pe(rq,oq,iq,!1,null,null);const aq=nq.exports;exports.AnswerCardLaunchDetail=c2;exports.AnswerCardLaunchList=K0;exports.AnswerCardLaunchPanel=aq;exports.AnswerCardLaunchQuick=v2;exports.AnswerCardLaunchQuickDetail=f2;exports.AnswerCardTemplateList=y2;exports.LaunchDetailMode=kn;exports.LaunchPanelTab=Sn;exports.LaunchQuestionType=Fe;exports.LaunchStatus=ie;exports.QuickDetailStatus=ni;exports.answerCardLaunchDetailEmits=s2;exports.answerCardLaunchDetailProps=a2;exports.answerCardLaunchListEmits=Y0;exports.answerCardLaunchListProps=Z0;exports.answerCardLaunchPanelEmits=C2;exports.answerCardLaunchPanelProps=x2;exports.answerCardLaunchProps=Cl;exports.answerCardLaunchQuickDetailEmits=p2;exports.answerCardLaunchQuickDetailProps=u2;exports.answerCardLaunchQuickEmits=h2;exports.answerCardLaunchQuickProps=m2;exports.answerCardTemplateListEmits=b2;exports.answerCardTemplateListProps=w2;exports.buildOptionLetters=Hn;exports.buildStartSetting=Zn;exports.formatQuestionTitle=j0;exports.getQuestionLaunchStatus=Ll;exports.getQuestionTypeLabel=Wn;exports.resolveLaunchStatus=Sl;exports.uiAnswerCardLaunchEvents=Ho;exports.useAnswerCardLaunchBase=QB;exports.useAnswerCardLaunchDetail=l2;exports.useAnswerCardLaunchList=G0;exports.useAnswerCardLaunchPanel=L2;exports.useAnswerCardLaunchQuick=g2;exports.useAnswerCardLaunchQuickDetail=d2;exports.useAnswerCardTemplateList=_2;console.log("%c@polyv/answer-card-ui-launch","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.2.0]","[buildTime: 2026-04-03 07:25:07]");
package/index.es.js CHANGED
@@ -33342,8 +33342,8 @@ const Eq = Lq.exports;
33342
33342
  console.log(
33343
33343
  "%c@polyv/answer-card-ui-launch",
33344
33344
  "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
33345
- "[version: 2.2.0-rc-20260402.1]",
33346
- "[buildTime: 2026-04-02 02:17:22]"
33345
+ "[version: 2.2.0]",
33346
+ "[buildTime: 2026-04-03 07:25:06]"
33347
33347
  );
33348
33348
  export {
33349
33349
  WB as AnswerCardLaunchDetail,
package/index.umd.js CHANGED
@@ -1143,4 +1143,4 @@ ${Bi(r)}`),o}})}function B2(e){const t=Object.keys(e),r=t.filter(i=>{var a;retur
1143
1143
  />
1144
1144
  </g>
1145
1145
  </svg>
1146
- `),y2=()=>ee(O({},Tl()),{value:{type:Boolean,default:!0}}),x2={input:e=>!0,close:()=>!0};var Ja=(e=>(e.Card="card",e.Template="template",e))(Ja||{}),Ha=(e=>(e.Default="default",e.Quick="quick",e))(Ha||{});const C2=e=>{const{props:t,emit:r}=e,o=c.ref("card"),i=c.ref(""),a=c.ref(),n=c.ref(ae.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=ae.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=ae.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}},$F=c.defineComponent({__name:"answer-card-launch-panel",props:y2(),emits:x2,setup(e,{expose:t,emit:r}){const o=e,{$t:i}=Ze();xB();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}=C2({props:o,emit:r}),y=c.ref(),_=c.ref(),C=c.computed(()=>d.value===Ha.Quick);c.watch(()=>n.value,k=>q(this,null,function*(){var M,I,E,A;if(k===Ja.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=ae.Send;return}l.value=void 0,u.value=ae.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 q(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 q(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,Ha.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(Di.OpenPanel,()=>{g()}),qt(Di.OpenQuickAnswer,()=>{v()}),qt(Di.RefreshCardList,()=>{P()}),qt(Di.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:Ae,PwcPopup:et,AnswerCardLaunchDetail:l2,AnswerCardLaunchQuickDetail:d2,AnswerCardLaunchList:X0,AnswerCardLaunchQuick:g2,AnswerCardTemplateList:_2,QuestionnaireIconMobileQuick:OF,LaunchPanelTab:Ja}}});var BF=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)},VF=[],FF=Pe($F,BF,VF,!1,null,null);const qF=FF.exports;H.AnswerCardLaunchDetail=l2,H.AnswerCardLaunchList=X0,H.AnswerCardLaunchPanel=qF,H.AnswerCardLaunchQuick=g2,H.AnswerCardLaunchQuickDetail=d2,H.AnswerCardTemplateList=_2,H.LaunchDetailMode=Ha,H.LaunchPanelTab=Ja,H.LaunchQuestionType=Ne,H.LaunchStatus=ae,H.QuickDetailStatus=Ai,H.answerCardLaunchDetailEmits=n2,H.answerCardLaunchDetailProps=a2,H.answerCardLaunchListEmits=Z0,H.answerCardLaunchListProps=W0,H.answerCardLaunchPanelEmits=x2,H.answerCardLaunchPanelProps=y2,H.answerCardLaunchProps=Tl,H.answerCardLaunchQuickDetailEmits=u2,H.answerCardLaunchQuickDetailProps=c2,H.answerCardLaunchQuickEmits=m2,H.answerCardLaunchQuickProps=f2,H.answerCardTemplateListEmits=w2,H.answerCardTemplateListProps=v2,H.buildOptionLetters=Wa,H.buildStartSetting=Za,H.formatQuestionTitle=q0,H.getQuestionLaunchStatus=Ql,H.getQuestionTypeLabel=Ua,H.resolveLaunchStatus=El,H.uiAnswerCardLaunchEvents=Di,H.useAnswerCardLaunchBase=yB,H.useAnswerCardLaunchDetail=s2,H.useAnswerCardLaunchList=Y0,H.useAnswerCardLaunchPanel=C2,H.useAnswerCardLaunchQuick=h2,H.useAnswerCardLaunchQuickDetail=p2,H.useAnswerCardTemplateList=b2,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/answer-card-ui-launch","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.2.0-rc-20260402.1]","[buildTime: 2026-04-02 02:17:16]");
1146
+ `),y2=()=>ee(O({},Tl()),{value:{type:Boolean,default:!0}}),x2={input:e=>!0,close:()=>!0};var Ja=(e=>(e.Card="card",e.Template="template",e))(Ja||{}),Ha=(e=>(e.Default="default",e.Quick="quick",e))(Ha||{});const C2=e=>{const{props:t,emit:r}=e,o=c.ref("card"),i=c.ref(""),a=c.ref(),n=c.ref(ae.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=ae.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=ae.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}},$F=c.defineComponent({__name:"answer-card-launch-panel",props:y2(),emits:x2,setup(e,{expose:t,emit:r}){const o=e,{$t:i}=Ze();xB();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}=C2({props:o,emit:r}),y=c.ref(),_=c.ref(),C=c.computed(()=>d.value===Ha.Quick);c.watch(()=>n.value,k=>q(this,null,function*(){var M,I,E,A;if(k===Ja.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=ae.Send;return}l.value=void 0,u.value=ae.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 q(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 q(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,Ha.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(Di.OpenPanel,()=>{g()}),qt(Di.OpenQuickAnswer,()=>{v()}),qt(Di.RefreshCardList,()=>{P()}),qt(Di.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:Ae,PwcPopup:et,AnswerCardLaunchDetail:l2,AnswerCardLaunchQuickDetail:d2,AnswerCardLaunchList:X0,AnswerCardLaunchQuick:g2,AnswerCardTemplateList:_2,QuestionnaireIconMobileQuick:OF,LaunchPanelTab:Ja}}});var BF=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)},VF=[],FF=Pe($F,BF,VF,!1,null,null);const qF=FF.exports;H.AnswerCardLaunchDetail=l2,H.AnswerCardLaunchList=X0,H.AnswerCardLaunchPanel=qF,H.AnswerCardLaunchQuick=g2,H.AnswerCardLaunchQuickDetail=d2,H.AnswerCardTemplateList=_2,H.LaunchDetailMode=Ha,H.LaunchPanelTab=Ja,H.LaunchQuestionType=Ne,H.LaunchStatus=ae,H.QuickDetailStatus=Ai,H.answerCardLaunchDetailEmits=n2,H.answerCardLaunchDetailProps=a2,H.answerCardLaunchListEmits=Z0,H.answerCardLaunchListProps=W0,H.answerCardLaunchPanelEmits=x2,H.answerCardLaunchPanelProps=y2,H.answerCardLaunchProps=Tl,H.answerCardLaunchQuickDetailEmits=u2,H.answerCardLaunchQuickDetailProps=c2,H.answerCardLaunchQuickEmits=m2,H.answerCardLaunchQuickProps=f2,H.answerCardTemplateListEmits=w2,H.answerCardTemplateListProps=v2,H.buildOptionLetters=Wa,H.buildStartSetting=Za,H.formatQuestionTitle=q0,H.getQuestionLaunchStatus=Ql,H.getQuestionTypeLabel=Ua,H.resolveLaunchStatus=El,H.uiAnswerCardLaunchEvents=Di,H.useAnswerCardLaunchBase=yB,H.useAnswerCardLaunchDetail=s2,H.useAnswerCardLaunchList=Y0,H.useAnswerCardLaunchPanel=C2,H.useAnswerCardLaunchQuick=h2,H.useAnswerCardLaunchQuickDetail=p2,H.useAnswerCardTemplateList=b2,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/answer-card-ui-launch","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.2.0]","[buildTime: 2026-04-03 07:25:00]");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyv/answer-card-ui-launch",
3
- "version": "2.2.0-rc-20260402.1",
3
+ "version": "2.2.0",
4
4
  "main": "./index.es.js",
5
5
  "dependencies": {},
6
6
  "types": "./index.es.d.ts"