@vendure/admin-ui-plugin 3.5.0-minor-202510201346 → 3.5.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/lib/admin-ui/browser/{chunk-OZ6W4WW6.js → chunk-ID6COZHE.js} +2 -2
- package/lib/admin-ui/browser/{chunk-KXA7N3XJ.js → chunk-JQHNKMFF.js} +2 -2
- package/lib/admin-ui/browser/{chunk-JN4JAHQ5.js → chunk-MI7JGH2L.js} +2 -2
- package/lib/admin-ui/browser/{chunk-OIL3N76D.js → chunk-MJEDJICA.js} +2 -2
- package/lib/admin-ui/browser/{chunk-2ZM5JEOB.js → chunk-MJV2KLNO.js} +2 -2
- package/lib/admin-ui/browser/{chunk-LS4L5BXI.js → chunk-O2BZ6P5Y.js} +2 -2
- package/lib/admin-ui/browser/{chunk-QI7SEWMH.js → chunk-T5DRPMTQ.js} +2 -2
- package/lib/admin-ui/browser/{chunk-QI7SEWMH.js.map → chunk-T5DRPMTQ.js.map} +1 -1
- package/lib/admin-ui/browser/{chunk-MK6EBHKG.js → chunk-TKBDA5IE.js} +2 -2
- package/lib/admin-ui/browser/{chunk-KI3EMVQ2.js → chunk-UPZVMWVC.js} +2 -2
- package/lib/admin-ui/browser/{chunk-RJCXCEFJ.js → chunk-YYJZ5OJZ.js} +2 -2
- package/lib/admin-ui/browser/index.html +1 -1
- package/lib/admin-ui/browser/main-LRFSVWYU.js +2 -0
- package/lib/src/plugin.d.ts +7 -0
- package/lib/src/plugin.js +7 -0
- package/lib/src/plugin.js.map +1 -1
- package/package.json +5 -5
- package/lib/admin-ui/browser/main-3KB2SGMC.js +0 -2
- /package/lib/admin-ui/browser/{chunk-OZ6W4WW6.js.map → chunk-ID6COZHE.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-KXA7N3XJ.js.map → chunk-JQHNKMFF.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-JN4JAHQ5.js.map → chunk-MI7JGH2L.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-OIL3N76D.js.map → chunk-MJEDJICA.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-2ZM5JEOB.js.map → chunk-MJV2KLNO.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-LS4L5BXI.js.map → chunk-O2BZ6P5Y.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-MK6EBHKG.js.map → chunk-TKBDA5IE.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-KI3EMVQ2.js.map → chunk-UPZVMWVC.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-RJCXCEFJ.js.map → chunk-YYJZ5OJZ.js.map} +0 -0
- /package/lib/admin-ui/browser/{main-3KB2SGMC.js.map → main-LRFSVWYU.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ab as Te,Ae as W,Ba as U,Bd as D,Ca as s,Ce as Fe,Da as f,De as Ae,Dg as Ue,Ea as u,Ee as Je,Eg as ae,Fa as $,Fe as Re,Ff as Z,Ge as Me,Hd as Be,Jf as ee,K as _e,La as H,Le as X,Lg as He,Na as he,Nf as te,Of as B,P as ge,Pf as w,Qa as r,Qf as P,Ra as p,Re as Oe,Sa as be,T as R,Tg as qe,U as M,Ua as q,Wa as Ce,Ya as ye,Za as T,Zf as ie,_ as i,a as re,aa as C,ae as I,ca as y,ce as we,da as fe,db as E,dd as Y,de as Pe,eb as xe,ee as je,fd as Ie,fg as ne,ga as ve,ha as d,hb as Se,hd as ke,ia as G,if as k,ja as o,jd as Ee,ld as L,ma as n,n as de,na as a,nb as V,ng as j,oa as _,og as N,pa as x,qa as S,qg as F,s as ce,sa as O,sg as A,ta as b,td as Le,te as Ne,u as ue,ua as g,ub as h,wd as De,xe as Q,ye as z,ze as K}from"./chunk-
|
|
1
|
+
import{Ab as Te,Ae as W,Ba as U,Bd as D,Ca as s,Ce as Fe,Da as f,De as Ae,Dg as Ue,Ea as u,Ee as Je,Eg as ae,Fa as $,Fe as Re,Ff as Z,Ge as Me,Hd as Be,Jf as ee,K as _e,La as H,Le as X,Lg as He,Na as he,Nf as te,Of as B,P as ge,Pf as w,Qa as r,Qf as P,Ra as p,Re as Oe,Sa as be,T as R,Tg as qe,U as M,Ua as q,Wa as Ce,Ya as ye,Za as T,Zf as ie,_ as i,a as re,aa as C,ae as I,ca as y,ce as we,da as fe,db as E,dd as Y,de as Pe,eb as xe,ee as je,fd as Ie,fg as ne,ga as ve,ha as d,hb as Se,hd as ke,ia as G,if as k,ja as o,jd as Ee,ld as L,ma as n,n as de,na as a,nb as V,ng as j,oa as _,og as N,pa as x,qa as S,qg as F,s as ce,sa as O,sg as A,ta as b,td as Le,te as Ne,u as ue,ua as g,ub as h,wd as De,xe as Q,ye as z,ze as K}from"./chunk-T5DRPMTQ.js";var rt=(e,l)=>({"is-success":e,"is-danger":l});function pt(e,l){e&1&&(x(0),s(1),r(2,"translate"),S()),e&2&&(i(),u(" ",p(2,1,"system.health-all-systems-up")," "))}function lt(e,l){e&1&&(s(0),r(1,"translate")),e&2&&u(" ",p(1,1,"system.health-error")," ")}function st(e,l){if(e&1&&(n(0,"div",9)(1,"div",10),_(2,"clr-icon",11),a(),n(3,"div",12),d(4,pt,3,3,"ng-container",13)(5,lt,2,3,"ng-template",null,0,q),n(7,"div",14),s(8),r(9,"translate"),r(10,"async"),r(11,"localeDate"),a()()()),e&2){let t=l.ngIf,m=U(6),c=g();i(2),o("ngClass",he(13,rt,t==="ok",t!=="ok")),G("shape",t==="ok"?"check-circle":"exclamation-circle"),i(2),o("ngIf",t==="ok")("ngIfElse",m),i(4),$(" ",p(9,6,"system.health-last-checked"),": ",be(11,10,p(10,8,c.healthCheckService.lastCheck$),"mediumTime")," ")}}function mt(e,l){e&1&&(x(0),_(1,"clr-icon",17),s(2),r(3,"translate"),S()),e&2&&(i(2),u(" ",p(3,1,"system.health-status-up")," "))}function dt(e,l){e&1&&(_(0,"clr-icon",18),s(1),r(2,"translate")),e&2&&(i(),u(" ",p(2,1,"system.health-status-down")," "))}function ct(e,l){if(e&1&&(n(0,"tr")(1,"td",15),s(2),a(),n(3,"td",15)(4,"vdr-chip",16),d(5,mt,4,3,"ng-container",13)(6,dt,3,3,"ng-template",null,1,q),a()(),n(8,"td",15),s(9),a()()),e&2){let t=l.$implicit,m=U(7);i(2),f(t.key),i(2),o("colorType",t.result.status==="up"?"success":"error"),i(),o("ngIf",t.result.status==="up")("ngIfElse",m),i(4),f(t.result.message)}}var We=(()=>{class e{constructor(t){this.healthCheckService=t}static{this.\u0275fac=function(m){return new(m||e)(C(Oe))}}static{this.\u0275cmp=y({type:e,selectors:[["vdr-health-check"]],standalone:!1,decls:30,vars:18,consts:[["error",""],["down",""],["class","system-status-header",4,"ngIf"],["locationId","system-status"],[1,"btn","btn-secondary",3,"click"],["shape","refresh"],[1,"table"],[1,"left"],[4,"ngFor","ngForOf"],[1,"system-status-header"],[1,"status-icon"],["size","48",3,"ngClass"],[1,"status-detail"],[4,"ngIf","ngIfElse"],[1,"last-checked"],[1,"align-middle","left"],[3,"colorType"],["shape","check-circle"],["shape","exclamation-circle"]],template:function(m,c){m&1&&(n(0,"vdr-page-header"),_(1,"vdr-page-title"),a(),n(2,"vdr-page-body")(3,"vdr-page-block")(4,"vdr-action-bar")(5,"vdr-ab-left"),d(6,st,12,16,"div",2),r(7,"async"),a(),n(8,"vdr-ab-right"),_(9,"vdr-action-bar-items",3),n(10,"button",4),b("click",function(){return c.healthCheckService.refresh()}),_(11,"clr-icon",5),s(12),r(13,"translate"),a()()()(),n(14,"vdr-page-block")(15,"table",6)(16,"thead")(17,"tr")(18,"th",7),s(19),r(20,"translate"),a(),n(21,"th",7),s(22),r(23,"translate"),a(),n(24,"th",7),s(25),r(26,"translate"),a()()(),n(27,"tbody"),d(28,ct,10,5,"tr",8),r(29,"async"),a()()()()),m&2&&(i(6),o("ngIf",p(7,6,c.healthCheckService.status$)),i(6),u(" ",p(13,8,"system.health-refresh")," "),i(7),u(" ",p(20,10,"common.name")," "),i(3),u(" ",p(23,12,"system.health-status")," "),i(3),u(" ",p(26,14,"system.health-message")," "),i(3),o("ngForOf",p(29,16,c.healthCheckService.details$)))},dependencies:[I,Ce,ye,T,P,B,w,k,te,F,A,N,j,E,L,X],styles:[`.system-status-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start}.system-status-header[_ngcontent-%COMP%] .status-detail[_ngcontent-%COMP%]{font-weight:700;margin-inline-end:6px}.system-status-header[_ngcontent-%COMP%] .last-checked[_ngcontent-%COMP%]{font-weight:400;color:var(--color-grey-500)}
|
|
2
2
|
/*# sourceMappingURL=health-check.component-PPMZ7QYE.css.map */`],changeDetection:0})}}return e})();function ut(e,l){if(e&1&&(n(0,"span",3),s(1),r(2,"percent"),a()),e&2){let t=g();i(),u(" ",p(2,1,t.job.progress/100)," ")}}var Xe=(()=>{class e{get iconShape(){switch(this.job.state){case h.COMPLETED:return"check-circle";case h.FAILED:return"exclamation-circle";case h.CANCELLED:return"ban";case h.PENDING:case h.RETRYING:return"hourglass";case h.RUNNING:return"sync"}}get colorType(){switch(this.job.state){case h.COMPLETED:return"success";case h.FAILED:case h.CANCELLED:return"error";case h.PENDING:case h.RETRYING:return"";case h.RUNNING:return"warning"}}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=y({type:e,selectors:[["vdr-job-state-label"]],inputs:{job:"job"},standalone:!1,decls:5,vars:6,consts:[[3,"colorType"],[1,"mr1"],["class","progress",4,"ngIf"],[1,"progress"]],template:function(m,c){m&1&&(n(0,"vdr-chip",0),_(1,"clr-icon",1),s(2),r(3,"titlecase"),d(4,ut,3,3,"span",2),a()),m&2&&(o("colorType",c.colorType),i(),G("shape",c.iconShape),i(),u(" ",p(3,4,c.job.state)," "),i(2),o("ngIf",c.job.state==="RUNNING"))},dependencies:[I,T,k,Se,xe],styles:[`.progress[_ngcontent-%COMP%]{margin-inline-start:3px}clr-icon[_ngcontent-%COMP%]{min-width:12px}
|
|
3
3
|
/*# sourceMappingURL=job-state-label.component-DW5FXGFX.css.map */`],changeDetection:0})}}return e})();var Tt=()=>["DeleteSettings","DeleteSystem"];function It(e,l){e&1&&(x(0),n(1,"vdr-chip"),s(2),r(3,"translate"),a(),S()),e&2&&(i(2),f(p(3,1,"system.all-job-queues")))}function kt(e,l){if(e&1&&(n(0,"vdr-chip",20),s(1),a()),e&2){let t=g().item;o("colorFrom",t.name),i(),f(t.name)}}function Et(e,l){if(e&1&&d(0,It,4,3,"ng-container",19)(1,kt,2,2,"ng-template",null,0,q),e&2){let t=l.item,m=U(2);o("ngIf",t.name==="all")("ngIfElse",m)}}function Lt(e,l){if(e&1&&s(0),e&2){let t=l.item;u(" ",t.id," ")}}function Dt(e,l){if(e&1&&(s(0),r(1,"timeAgo")),e&2){let t=l.item;u(" ",p(1,1,t.createdAt)," ")}}function Bt(e,l){if(e&1&&(n(0,"vdr-chip",20),s(1),a()),e&2){let t=l.item;o("colorFrom",t.queueName),i(),f(t.queueName)}}function wt(e,l){if(e&1&&(n(0,"vdr-dropdown")(1,"button",22),r(2,"translate"),_(3,"clr-icon",23),a(),n(4,"vdr-dropdown-menu")(5,"div",24),_(6,"vdr-object-tree",5),a()()()),e&2){let t=g().item;i(),o("title",p(2,2,"system.job-data")),i(5),o("value",t.data)}}function Pt(e,l){if(e&1&&d(0,wt,7,4,"vdr-dropdown",21),e&2){let t=l.item;o("ngIf",t.data)}}function jt(e,l){if(e&1&&(n(0,"div",27),s(1),a()),e&2){let t=g().item;i(),u("after ",t.attempts," attempts")}}function Nt(e,l){if(e&1&&(n(0,"div",27),s(1),a()),e&2){let t=g().item;i(),$(" attempting ",t.attempts," of ",t.retries+1," ")}}function Ft(e,l){if(e&1&&(_(0,"vdr-job-state-label",25),d(1,jt,2,1,"div",26)(2,Nt,2,2,"div",26)),e&2){let t=l.item;o("job",t),i(),o("ngIf",t.state==="FAILED"),i(),o("ngIf",t.state==="RUNNING"||t.state==="RETRYING")}}function At(e,l){if(e&1&&(s(0),r(1,"duration")),e&2){let t=l.item;u(" ",p(1,1,t.duration)," ")}}function Jt(e,l){if(e&1&&(n(0,"vdr-dropdown")(1,"button",28),_(2,"clr-icon",23),s(3),r(4,"translate"),a(),n(5,"vdr-dropdown-menu")(6,"div",24),_(7,"vdr-object-tree",5),a()()()),e&2){let t=g().item;i(3),u(" ",p(4,2,"system.job-result")," "),i(4),o("value",t.result)}}function Rt(e,l){if(e&1&&(n(0,"vdr-dropdown")(1,"button",29),_(2,"clr-icon",30),s(3),r(4,"translate"),a(),n(5,"vdr-dropdown-menu")(6,"div",24),s(7),a()()()),e&2){let t=g().item;i(3),u(" ",p(4,2,"system.job-error")," "),i(4),u(" ",t.error," ")}}function Mt(e,l){if(e&1){let t=O();n(0,"vdr-dropdown")(1,"button",31),_(2,"clr-icon",32),a(),n(3,"vdr-dropdown-menu",33)(4,"button",34),r(5,"hasPermission"),b("click",function(){R(t);let c=g().item,v=g();return M(v.cancelJob(c.id))}),_(6,"clr-icon",35),s(7),r(8,"translate"),a()()()}e&2&&(i(4),o("disabled",!p(5,2,H(6,Tt))),i(3),u(" ",p(8,4,"common.cancel")," "))}function Ot(e,l){if(e&1&&d(0,Jt,8,4,"vdr-dropdown",21)(1,Rt,8,4,"vdr-dropdown",21)(2,Mt,9,7,"vdr-dropdown",21),e&2){let t=l.item,m=g();o("ngIf",m.hasResult(t)),i(),o("ngIf",t.error),i(),o("ngIf",!t.isSettled&&t.state!=="FAILED")}}var Ze=(()=>{class e extends qe{constructor(t,m,c){super(m,c),this.dataService=t,this.liveUpdate=new D(!0),this.queueFilter=new D("all"),this.stateFilter=new D(""),super.setQueryFn((...v)=>this.dataService.settings.getAllJobs(...v),v=>v.jobs,(v,J)=>{let nt=this.queueFilter.value==="all"?null:{queueName:{eq:this.queueFilter.value}},me=this.stateFilter.value;return{options:{skip:v,take:J,filter:re(re({},nt),me?{state:{eq:me}}:{}),sort:{createdAt:Te.DESC}}}})}ngOnInit(){super.ngOnInit(),ce(5e3,2e3).pipe(_e(this.destroy$),ue(()=>!!this.liveUpdate.value)).subscribe(()=>{this.refresh()}),this.queues$=this.dataService.settings.getJobQueues().mapStream(t=>t.jobQueues).pipe(de(t=>[{name:"all",running:!0},...t]))}hasResult(t){let m=t.result;return m==null?!1:typeof m=="object"?Object.keys(m).length>0:!0}cancelJob(t){this.dataService.settings.cancelJob(t).subscribe(()=>this.refresh())}static{this.\u0275fac=function(m){return new(m||e)(C(Y),C(ke),C(Ie))}}static{this.\u0275cmp=y({type:e,selectors:[["vdr-job-list"]],standalone:!1,features:[ve],decls:67,vars:80,consts:[["others",""],[1,"mr-2"],["type","checkbox","clrCheckbox","","name","live-update",3,"formControl"],["locationId","job-list"],[1,"mr-2",3,"change","addTag","hideSelected","multiple","markFirst","clearable","searchable","formControl"],[3,"value"],["colorType","warning"],["colorType","success"],["colorType","error"],["bindValue","name",3,"change","addTag","items","hideSelected","multiple","markFirst","clearable","searchable","formControl"],["ng-label-tmp","","ng-option-tmp",""],["id","job-list",3,"pageChange","itemsPerPageChange","items","itemsPerPage","totalItems","currentPage"],["id","id",3,"heading"],["id","created-at",3,"heading"],["id","job-queue-name",3,"heading","optional"],["id","job-data",3,"heading","optional"],["id","job-state",3,"heading"],["id","job-duration",3,"heading"],["id","job-result",3,"heading"],[4,"ngIf","ngIfElse"],[3,"colorFrom"],[4,"ngIf"],["vdrDropdownTrigger","",1,"button-small",3,"title"],["shape","details"],[1,"result-detail"],[3,"job"],["class","retry-info",4,"ngIf"],[1,"retry-info"],["vdrDropdownTrigger","",1,"button-small","mr-1"],["vdrDropdownTrigger","",1,"button-small"],["shape","exclamation-circle"],["vdrDropdownTrigger","",1,"icon-button"],["shape","ellipsis-vertical","size","12"],["vdrPosition","bottom-right"],["type","button","vdrDropdownItem","",1,"delete-button",3,"click","disabled"],["shape","ban",1,"is-danger"]],template:function(m,c){m&1&&(n(0,"vdr-page-header"),_(1,"vdr-page-title"),a(),n(2,"vdr-page-body")(3,"vdr-page-block")(4,"vdr-action-bar")(5,"vdr-ab-left")(6,"clr-checkbox-wrapper",1),_(7,"input",2),n(8,"label"),s(9),r(10,"translate"),a()()(),n(11,"vdr-ab-right"),_(12,"vdr-action-bar-items",3),n(13,"ng-select",4),b("change",function(){return c.refresh()}),n(14,"ng-option",5)(15,"vdr-chip"),s(16),r(17,"translate"),a()(),n(18,"ng-option",5)(19,"vdr-chip"),s(20),r(21,"translate"),a()(),n(22,"ng-option",5)(23,"vdr-chip",6),s(24),r(25,"translate"),a()(),n(26,"ng-option",5)(27,"vdr-chip",7),s(28),r(29,"translate"),a()(),n(30,"ng-option",5)(31,"vdr-chip",8),s(32),r(33,"translate"),a()(),n(34,"ng-option",5)(35,"vdr-chip",8),s(36),r(37,"translate"),a()()(),n(38,"ng-select",9),r(39,"async"),b("change",function(){return c.refresh()}),d(40,Et,3,2,"ng-template",10),a()()()(),n(41,"vdr-data-table-2",11),r(42,"async"),r(43,"async"),r(44,"async"),r(45,"async"),b("pageChange",function(J){return c.setPageNumber(J)})("itemsPerPageChange",function(J){return c.setItemsPerPage(J)}),n(46,"vdr-dt2-column",12),r(47,"translate"),d(48,Lt,1,1,"ng-template"),a(),n(49,"vdr-dt2-column",13),r(50,"translate"),d(51,Dt,2,3,"ng-template"),a(),n(52,"vdr-dt2-column",14),r(53,"translate"),d(54,Bt,2,2,"ng-template"),a(),n(55,"vdr-dt2-column",15),r(56,"translate"),d(57,Pt,1,1,"ng-template"),a(),n(58,"vdr-dt2-column",16),r(59,"translate"),d(60,Ft,3,3,"ng-template"),a(),n(61,"vdr-dt2-column",17),r(62,"translate"),d(63,At,2,3,"ng-template"),a(),n(64,"vdr-dt2-column",18),r(65,"translate"),d(66,Ot,3,3,"ng-template"),a()()()),m&2&&(i(7),o("formControl",c.liveUpdate),i(2),f(p(10,42,"common.live-update")),i(4),o("addTag",!1)("hideSelected",!0)("multiple",!1)("markFirst",!1)("clearable",!1)("searchable",!1)("formControl",c.stateFilter),i(),o("value",""),i(2),f(p(17,44,"system.job-state-all")),i(2),o("value","PENDING"),i(2),f(p(21,46,"system.job-state-pending")),i(2),o("value","RUNNING"),i(2),f(p(25,48,"system.job-state-running")),i(2),o("value","COMPLETED"),i(2),f(p(29,50,"system.job-state-completed")),i(2),o("value","FAILED"),i(2),f(p(33,52,"system.job-state-failed")),i(2),o("value","CANCELLED"),i(2),f(p(37,54,"system.job-state-cancelled")),i(2),o("addTag",!1)("items",p(39,56,c.queues$))("hideSelected",!0)("multiple",!1)("markFirst",!1)("clearable",!1)("searchable",!1)("formControl",c.queueFilter),i(3),o("items",p(42,58,c.items$))("itemsPerPage",p(43,60,c.itemsPerPage$))("totalItems",p(44,62,c.totalItems$))("currentPage",p(45,64,c.currentPage$)),i(5),o("heading",p(47,66,"common.id")),i(3),o("heading",p(50,68,"common.created-at")),i(3),o("heading",p(53,70,"system.job-queue-name"))("optional",!1),i(3),o("heading",p(56,72,"system.job-data"))("optional",!1),i(3),o("heading",p(59,74,"system.job-state")),i(3),o("heading",p(62,76,"system.job-duration")),i(3),o("heading",p(65,78,"system.job-result")))},dependencies:[I,we,je,Pe,T,Le,De,Be,Re,Je,Fe,Ae,P,B,w,k,Me,Q,z,K,W,ee,te,ne,ie,F,A,N,j,Xe,E,L,Z,ae,Ue],styles:[`.result-detail[_ngcontent-%COMP%]{margin:0 12px}.retry-info[_ngcontent-%COMP%]{margin-inline-start:6px;color:var(--color-grey-400)}
|
|
4
4
|
/*# sourceMappingURL=job-list.component-EORJPWOH.css.map */`],changeDetection:0})}}return e})();var et=()=>["UpdateSettings","UpdateSystem"];function Ut(e,l){if(e&1&&s(0),e&2){let t=l.item;u(" ",t.id," ")}}function Ht(e,l){if(e&1&&s(0),e&2){let t=l.item;u(" ",t.description," ")}}function qt(e,l){if(e&1&&(n(0,"div",9),s(1),a()),e&2){let t=l.item;i(),f(t.scheduleDescription)}}function Gt(e,l){if(e&1&&(n(0,"span",11),r(1,"localeDate"),s(2),r(3,"timeAgo"),a()),e&2){let t=g().item;o("title",p(1,2,t.lastExecutedAt)),i(2),u(" ",p(3,4,t.lastExecutedAt)," ")}}function $t(e,l){if(e&1&&d(0,Gt,4,6,"span",10),e&2){let t=l.item;o("ngIf",t.lastExecutedAt)}}function Vt(e,l){if(e&1&&(s(0),r(1,"localeDate")),e&2){let t=l.item;u(" ",p(1,1,t.nextExecutionAt)," ")}}function Yt(e,l){if(e&1&&(n(0,"vdr-dropdown")(1,"button",13),_(2,"clr-icon",14),s(3),r(4,"translate"),a(),n(5,"vdr-dropdown-menu")(6,"div",15),_(7,"vdr-object-tree",16),a()()()),e&2){let t=g().item;i(3),u(" ",p(4,2,"system.last-result")," "),i(4),o("value",t.lastResult)}}function Qt(e,l){if(e&1&&d(0,Yt,8,4,"vdr-dropdown",12),e&2){let t=l.item;o("ngIf",t.lastResult)}}function zt(e,l){e&1&&(x(0),n(1,"vdr-chip",17),s(2),r(3,"translate"),a(),S()),e&2&&(i(),o("colorType","success"),i(),f(p(3,2,"common.enabled")))}function Kt(e,l){e&1&&(x(0),n(1,"vdr-chip",17),s(2),r(3,"translate"),a(),S()),e&2&&(i(),o("colorType","warning"),i(),f(p(3,2,"common.disabled")))}function Wt(e,l){if(e&1&&d(0,zt,4,4,"ng-container",12)(1,Kt,4,4,"ng-container",12),e&2){let t=l.item;o("ngIf",t.enabled),i(),o("ngIf",!t.enabled)}}function Xt(e,l){if(e&1){let t=O();n(0,"button",24),r(1,"hasPermission"),b("click",function(){R(t);let c=g(2).item,v=g();return M(v.runTask(c))}),_(2,"clr-icon",25),n(3,"div"),s(4),r(5,"translate"),a()()}e&2&&(o("disabled",!p(1,2,H(6,et))),i(4),u(" ",p(5,4,"system.run-task")," "))}function Zt(e,l){e&1&&(n(0,"div"),s(1),r(2,"translate"),a()),e&2&&(i(),u(" ",p(2,1,"common.disable")," "))}function ei(e,l){e&1&&(n(0,"div"),s(1),r(2,"translate"),a()),e&2&&(i(),u(" ",p(2,1,"common.enable")," "))}function ti(e,l){if(e&1){let t=O();n(0,"vdr-dropdown")(1,"button",18),_(2,"clr-icon",19),a(),n(3,"vdr-dropdown-menu",20),d(4,Xt,6,7,"button",21),n(5,"button",22),r(6,"hasPermission"),b("click",function(){R(t);let c=g().item,v=g();return M(v.toggleEnabled(c))}),_(7,"clr-icon",23),d(8,Zt,3,3,"div",12)(9,ei,3,3,"div",12),a()()()}if(e&2){let t=g().item;i(4),o("ngIf",t.enabled),i(),o("disabled",!p(6,4,H(6,et))),i(3),o("ngIf",t.enabled),i(),o("ngIf",!t.enabled)}}function ii(e,l){if(e&1&&d(0,ti,10,7,"vdr-dropdown",12),e&2){let t=l.item;o("ngIf",!t.isSettled&&t.state!=="FAILED")}}var ni=V`
|
|
@@ -30,4 +30,4 @@ import{Ab as Te,Ae as W,Ba as U,Bd as D,Ca as s,Ce as Fe,Da as f,De as Ae,Dg as
|
|
|
30
30
|
}
|
|
31
31
|
`,tt=(()=>{class e{constructor(t,m){this.dataService=t,this.notificationService=m,this.liveUpdate=new D(!0)}ngOnInit(){this.tasks$=this.dataService.query(ni).mapStream(t=>t.scheduledTasks)}toggleEnabled(t){this.dataService.mutate(ai,{input:{id:t.id,enabled:!t.enabled}}).subscribe()}runTask(t){this.dataService.mutate(oi,{id:t.id}).subscribe(m=>{m.runScheduledTask.success?this.notificationService.success("system.task-will-be-triggered"):this.notificationService.error("system.could-not-trigger-task")})}static{this.\u0275fac=function(m){return new(m||e)(C(Y),C(Ne))}}static{this.\u0275cmp=y({type:e,selectors:[["vdr-scheduled-task-list"]],standalone:!1,decls:32,vars:26,consts:[["id","scheduled-task-list",3,"items"],["id","task-id",3,"heading","optional"],["id","description",3,"heading"],["id","schedule",3,"heading"],["id","last-executed-at",3,"heading"],["id","next-execution-at",3,"heading","hiddenByDefault"],["id","last-result",3,"heading"],["id","enabled",3,"heading"],["id","actions"],[1,""],[3,"title",4,"ngIf"],[3,"title"],[4,"ngIf"],["vdrDropdownTrigger","",1,"button-small","mr-1"],["shape","details"],[1,"result-detail"],[3,"value"],[3,"colorType"],["vdrDropdownTrigger","",1,"icon-button"],["shape","ellipsis-vertical","size","12"],["vdrPosition","bottom-right"],["type","button","class","","vdrDropdownItem","",3,"disabled","click",4,"ngIf"],["type","button","vdrDropdownItem","",1,"delete-button",3,"click","disabled"],["shape","ban",1,"is-danger"],["type","button","vdrDropdownItem","",1,"",3,"click","disabled"],["shape","play",1,""]],template:function(m,c){m&1&&(n(0,"vdr-page-header"),_(1,"vdr-page-title"),a(),n(2,"vdr-page-body")(3,"vdr-page-block")(4,"vdr-action-bar"),_(5,"vdr-ab-left")(6,"vdr-ab-right"),a()(),n(7,"vdr-data-table-2",0),r(8,"async"),n(9,"vdr-dt2-column",1),r(10,"translate"),d(11,Ut,1,1,"ng-template"),a(),n(12,"vdr-dt2-column",2),r(13,"translate"),d(14,Ht,1,1,"ng-template"),a(),n(15,"vdr-dt2-column",3),r(16,"translate"),d(17,qt,2,1,"ng-template"),a(),n(18,"vdr-dt2-column",4),r(19,"translate"),d(20,$t,1,1,"ng-template"),a(),n(21,"vdr-dt2-column",5),r(22,"translate"),d(23,Vt,2,3,"ng-template"),a(),n(24,"vdr-dt2-column",6),r(25,"translate"),d(26,Qt,1,1,"ng-template"),a(),n(27,"vdr-dt2-column",7),r(28,"translate"),d(29,Wt,2,2,"ng-template"),a(),n(30,"vdr-dt2-column",8),d(31,ii,1,1,"ng-template"),a()()()),m&2&&(i(7),o("items",p(8,10,c.tasks$)),i(2),o("heading",p(10,12,"system.task-id"))("optional",!1),i(3),o("heading",p(13,14,"common.description")),i(3),o("heading",p(16,16,"system.schedule")),i(3),o("heading",p(19,18,"system.last-executed-at")),i(3),o("heading",p(22,20,"system.next-execution-at"))("hiddenByDefault",!0),i(3),o("heading",p(25,22,"system.last-result")),i(3),o("heading",p(28,24,"common.enabled")))},dependencies:[I,T,P,B,w,k,Q,z,K,W,ee,ne,ie,F,A,N,j,E,L,Z,ae,X],styles:[`.result-detail[_ngcontent-%COMP%]{margin:0 12px}.retry-info[_ngcontent-%COMP%]{margin-inline-start:6px;color:var(--color-grey-400)}
|
|
32
32
|
/*# sourceMappingURL=scheduled-task-list.component-FCGVY4SU.css.map */`],changeDetection:0})}}return e})();var it=[{path:"jobs",component:Ze,data:{breadcrumb:"breadcrumb.job-queue"}},{path:"system-status",component:We,data:{breadcrumb:"breadcrumb.system-status"}},{path:"scheduled-tasks",component:tt,data:{breadcrumb:"breadcrumb.scheduled-tasks"}}];var Ji=(()=>{class e{static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275mod=fe({type:e})}static{this.\u0275inj=ge({imports:[He,Ee.forChild(it)]})}}return e})();export{ni as GET_SCHEDULED_TASKS_LIST,We as HealthCheckComponent,Ze as JobListComponent,Xe as JobStateLabelComponent,tt as ScheduledTaskListComponent,Ji as SystemModule,it as systemRoutes};
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
33
|
+
//# sourceMappingURL=chunk-TKBDA5IE.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{Ad as Z,Be as ie,Ca as l,Da as w,Dd as q,Ea as h,Ed as J,Ge as re,Ha as _,Ia as M,Ja as P,Lg as ae,Ma as T,O as k,P as U,Pe as b,Q as y,Qa as c,Ra as m,Sa as R,Wd as K,Z as u,Za as B,Ze as oe,_ as r,aa as d,ca as L,ce as Q,da as A,db as z,de as Y,ee as $,ha as C,hd as O,ja as p,jd as V,la as E,ld as W,ma as o,mb as N,n as S,na as a,nd as x,oa as I,qe as ee,rd as F,re as ne,se as te,ta as j,td as D,ua as f,ud as G,wd as H,xd as X}from"./chunk-QI7SEWMH.js";var de=t=>({brand:t});function he(t,v){if(t&1&&(o(0,"p",20),l(1," Photo by "),o(2,"a",21),l(3),a(),l(4," on "),o(5,"a",21),l(6,"Unsplash"),a()()),t&2){let e=f();r(2),p("href",e.imageCreatorUrl,u),r(),w(e.imageCreator),r(2),p("href",e.imageUnsplashUrl,u)}}function ue(t,v){if(t&1&&(o(0,"p",22),l(1),a()),t&2){let e=f();r(),w(e.imageLocation)}}function Ce(t,v){if(t&1&&I(0,"img",23),t&2){let e=f();p("src",e.imageUrl,u)("alt",e.imageUrl)}}function fe(t,v){t&1&&I(0,"img",24)}var ge=(()=>{class t{constructor(e,i,n,s){this.authService=e,this.router=i,this.httpClient=n,this.localizationService=s,this.username="",this.password="",this.rememberMe=!1,this.version=ie,this.brand=x().brand,this.hideVendureBranding=x().hideVendureBranding,this.customImageUrl=x().loginImageUrl,this.imageUrl="",this.imageUnsplashUrl="",this.imageLocation="",this.imageCreator="",this.imageCreatorUrl="",this.customImageUrl?this.imageUrl=this.customImageUrl:this.loadImage()}ngOnInit(){this.direction$=this.localizationService.direction$}logIn(){this.errorMessage=void 0,this.authService.logIn(this.username,this.password,this.rememberMe).subscribe(e=>{switch(e.__typename){case"CurrentUser":let i=this.getRedirectRoute();this.router.navigateByUrl(i||"/");break;case"InvalidCredentialsError":case"NativeAuthStrategyError":this.errorMessage=e.message;break}})}loadImage(){this.httpClient.get("https://login-image.vendure.io").toPromise().then(e=>{this.updateImage(e)})}updateImage(e){let i=e.user,n=e.location;this.imageUrl=e.urls.regular+"?utm_source=Vendure+Login+Image&utm_medium=referral",this.imageCreator=i.name,this.imageLocation=n.name,this.imageCreatorUrl=i.links.html+"?utm_source=Vendure+Login+Image&utm_medium=referral",this.imageUnsplashUrl=e.links.html}getRedirectRoute(){let e,i=new RegExp(`${oe}=(.*)`);try{let n=window.location.search.match(i);n&&1<n.length&&(e=atob(decodeURIComponent(n[1])))}catch{}return e}static{this.\u0275fac=function(i){return new(i||t)(d(b),d(O),d(N),d(F))}}static{this.\u0275cmp=L({type:t,selectors:[["vdr-login"]],standalone:!1,decls:36,vars:37,consts:[[1,"login-wrapper",3,"dir"],[1,"login-wrapper-inner"],[1,"login-wrapper-image"],[1,"login-wrapper-image-content"],[1,"login-wrapper-image-title"],[1,"login-wrapper-image-copyright"],["class","creator",4,"ngIf"],["class","location",4,"ngIf"],[3,"src","alt",4,"ngIf"],[1,"login-wrapper-form"],[1,"login-title"],[1,"login-form"],[1,"login-group"],["type","text","name","username","id","login_username",1,"username",3,"ngModelChange","ngModel","placeholder"],["name","password","type","password","id","login_password",1,"password",3,"ngModelChange","ngModel","placeholder"],[1,"login-error",3,"clrAlertType","clrAlertClosable"],[1,"alert-text"],["type","checkbox","clrCheckbox","","id","rememberme","name","rememberme",3,"ngModelChange","ngModel"],["type","submit",1,"button","primary","login-button",3,"click","disabled"],["class","login-wrapper-logo","src","assets/logo-login.webp",4,"ngIf"],[1,"creator"],["target","_blank",3,"href"],[1,"location"],[3,"src","alt"],["src","assets/logo-login.webp",1,"login-wrapper-logo"]],template:function(i,n){i&1&&(o(0,"div",0),c(1,"async"),o(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4),l(6),c(7,"translate"),a(),o(8,"div",5),C(9,he,7,3,"p",6)(10,ue,2,1,"p",7),a()(),C(11,Ce,1,2,"img",8),a(),o(12,"div",9)(13,"p",10),l(14),c(15,"translate"),a(),o(16,"form",11)(17,"div",12)(18,"input",13),c(19,"translate"),P("ngModelChange",function(g){return M(n.username,g)||(n.username=g),g}),a(),o(20,"input",14),c(21,"translate"),P("ngModelChange",function(g){return M(n.password,g)||(n.password=g),g}),a(),o(22,"clr-alert",15)(23,"clr-alert-item")(24,"span",16),l(25),a()()(),o(26,"clr-checkbox-wrapper")(27,"input",17),P("ngModelChange",function(g){return M(n.rememberMe,g)||(n.rememberMe=g),g}),a(),o(28,"label"),l(29),c(30,"translate"),a()(),o(31,"div")(32,"button",18),j("click",function(){return n.logIn()}),l(33),c(34,"translate"),a()()()()(),C(35,fe,1,0,"img",19),a()()),i&2&&(p("dir",m(1,20,n.direction$)),r(6),h(" ",m(7,22,"common.login-image-title")," "),r(3),p("ngIf",n.imageCreator),r(),p("ngIf",n.imageLocation),r(),p("ngIf",n.imageUrl),r(3),h(" ",R(15,24,"common.login-title",T(35,de,n.hideVendureBranding?n.brand:"Vendure"))," "),r(4),_("ngModel",n.username),p("placeholder",m(19,27,"common.username")),r(2),_("ngModel",n.password),p("placeholder",m(21,29,"common.password")),r(2),E("visible",n.errorMessage),p("clrAlertType","danger")("clrAlertClosable",!1),r(3),h(" ",n.errorMessage," "),r(2),_("ngModel",n.rememberMe),r(2),w(m(30,31,"common.remember-me")),r(3),p("disabled",!n.username||!n.password),r(),h(" ",m(34,33,"common.login")," "),r(2),p("ngIf",!n.hideVendureBranding))},dependencies:[ee,ne,te,Q,$,Y,B,J,G,D,H,X,q,Z,K,re,z,W],styles:[`.login-wrapper[_ngcontent-%COMP%]{background:var(--color-weight-100);background-image:none;height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%]{background:var(--login-wrapper-inner-bg);width:1120px;height:590px;display:flex;justify-content:flex-start;align-items:stretch;position:relative;border-radius:var(--border-radius);border:1px solid var(--color-weight-150);overflow:hidden}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%]{flex-direction:column;height:auto;width:100%}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%]{height:100%;flex-grow:1;position:relative}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%]{height:300px}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:100%;object-fit:cover;object-position:center;position:relative;z-index:1}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;left:0;bottom:0;z-index:10;background:#020024;background:linear-gradient(180deg,#02002400,#000000bf);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:30px}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-title[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;color:#fff;margin-bottom:20px}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-title[_ngcontent-%COMP%]{font-size:1.2rem}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-copyright[_ngcontent-%COMP%]{opacity:.8}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-copyright[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.6rem;color:#fff;margin:0!important}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:underline}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%]{height:100%;width:400px;padding:40px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;box-shadow:0 20px 25px #0000001a;overflow:hidden;flex-shrink:0}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%]{height:auto;width:100%;padding:20px}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.2rem;margin-bottom:20px;color:var(--color-weight-600)}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-group[_ngcontent-%COMP%] input.username[_ngcontent-%COMP%], .login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-group[_ngcontent-%COMP%] input.password[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:15px;padding:12px 16px!important;background:#fff;font-size:14px;line-height:22px;color:#52667a;outline:none;-webkit-appearance:none}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{width:100%!important;margin-top:20px!important}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-logo[_ngcontent-%COMP%]{width:60px;height:auto;position:absolute;right:20px;top:20px}.login-button[_ngcontent-%COMP%]{width:100%;margin-top:var(--space-unit);justify-content:center}.version[_ngcontent-%COMP%]{flex:1;flex-grow:1;display:flex;align-items:flex-end;justify-content:center;color:var(--color-grey-300)}.version[_ngcontent-%COMP%] span[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{margin-inline-start:5px}.login-error[_ngcontent-%COMP%]{max-height:0;overflow:hidden;display:block}.login-error.visible[_ngcontent-%COMP%]{max-height:46px;transition:max-height .2s;animation:_ngcontent-%COMP%_shake .82s cubic-bezier(.36,.07,.19,.97) both;animation-delay:.2s;transform:translateZ(0);backface-visibility:hidden;perspective:1000px}@keyframes _ngcontent-%COMP%_shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.login-wrapper[dir=rtl][_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-logo[_ngcontent-%COMP%]{right:auto;left:20px}.login-wrapper[dir=rtl][_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%]{left:auto;right:0}
|
|
1
|
+
import{Ad as Z,Be as ie,Ca as l,Da as w,Dd as q,Ea as h,Ed as J,Ge as re,Ha as _,Ia as M,Ja as P,Lg as ae,Ma as T,O as k,P as U,Pe as b,Q as y,Qa as c,Ra as m,Sa as R,Wd as K,Z as u,Za as B,Ze as oe,_ as r,aa as d,ca as L,ce as Q,da as A,db as z,de as Y,ee as $,ha as C,hd as O,ja as p,jd as V,la as E,ld as W,ma as o,mb as N,n as S,na as a,nd as x,oa as I,qe as ee,rd as F,re as ne,se as te,ta as j,td as D,ua as f,ud as G,wd as H,xd as X}from"./chunk-T5DRPMTQ.js";var de=t=>({brand:t});function he(t,v){if(t&1&&(o(0,"p",20),l(1," Photo by "),o(2,"a",21),l(3),a(),l(4," on "),o(5,"a",21),l(6,"Unsplash"),a()()),t&2){let e=f();r(2),p("href",e.imageCreatorUrl,u),r(),w(e.imageCreator),r(2),p("href",e.imageUnsplashUrl,u)}}function ue(t,v){if(t&1&&(o(0,"p",22),l(1),a()),t&2){let e=f();r(),w(e.imageLocation)}}function Ce(t,v){if(t&1&&I(0,"img",23),t&2){let e=f();p("src",e.imageUrl,u)("alt",e.imageUrl)}}function fe(t,v){t&1&&I(0,"img",24)}var ge=(()=>{class t{constructor(e,i,n,s){this.authService=e,this.router=i,this.httpClient=n,this.localizationService=s,this.username="",this.password="",this.rememberMe=!1,this.version=ie,this.brand=x().brand,this.hideVendureBranding=x().hideVendureBranding,this.customImageUrl=x().loginImageUrl,this.imageUrl="",this.imageUnsplashUrl="",this.imageLocation="",this.imageCreator="",this.imageCreatorUrl="",this.customImageUrl?this.imageUrl=this.customImageUrl:this.loadImage()}ngOnInit(){this.direction$=this.localizationService.direction$}logIn(){this.errorMessage=void 0,this.authService.logIn(this.username,this.password,this.rememberMe).subscribe(e=>{switch(e.__typename){case"CurrentUser":let i=this.getRedirectRoute();this.router.navigateByUrl(i||"/");break;case"InvalidCredentialsError":case"NativeAuthStrategyError":this.errorMessage=e.message;break}})}loadImage(){this.httpClient.get("https://login-image.vendure.io").toPromise().then(e=>{this.updateImage(e)})}updateImage(e){let i=e.user,n=e.location;this.imageUrl=e.urls.regular+"?utm_source=Vendure+Login+Image&utm_medium=referral",this.imageCreator=i.name,this.imageLocation=n.name,this.imageCreatorUrl=i.links.html+"?utm_source=Vendure+Login+Image&utm_medium=referral",this.imageUnsplashUrl=e.links.html}getRedirectRoute(){let e,i=new RegExp(`${oe}=(.*)`);try{let n=window.location.search.match(i);n&&1<n.length&&(e=atob(decodeURIComponent(n[1])))}catch{}return e}static{this.\u0275fac=function(i){return new(i||t)(d(b),d(O),d(N),d(F))}}static{this.\u0275cmp=L({type:t,selectors:[["vdr-login"]],standalone:!1,decls:36,vars:37,consts:[[1,"login-wrapper",3,"dir"],[1,"login-wrapper-inner"],[1,"login-wrapper-image"],[1,"login-wrapper-image-content"],[1,"login-wrapper-image-title"],[1,"login-wrapper-image-copyright"],["class","creator",4,"ngIf"],["class","location",4,"ngIf"],[3,"src","alt",4,"ngIf"],[1,"login-wrapper-form"],[1,"login-title"],[1,"login-form"],[1,"login-group"],["type","text","name","username","id","login_username",1,"username",3,"ngModelChange","ngModel","placeholder"],["name","password","type","password","id","login_password",1,"password",3,"ngModelChange","ngModel","placeholder"],[1,"login-error",3,"clrAlertType","clrAlertClosable"],[1,"alert-text"],["type","checkbox","clrCheckbox","","id","rememberme","name","rememberme",3,"ngModelChange","ngModel"],["type","submit",1,"button","primary","login-button",3,"click","disabled"],["class","login-wrapper-logo","src","assets/logo-login.webp",4,"ngIf"],[1,"creator"],["target","_blank",3,"href"],[1,"location"],[3,"src","alt"],["src","assets/logo-login.webp",1,"login-wrapper-logo"]],template:function(i,n){i&1&&(o(0,"div",0),c(1,"async"),o(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4),l(6),c(7,"translate"),a(),o(8,"div",5),C(9,he,7,3,"p",6)(10,ue,2,1,"p",7),a()(),C(11,Ce,1,2,"img",8),a(),o(12,"div",9)(13,"p",10),l(14),c(15,"translate"),a(),o(16,"form",11)(17,"div",12)(18,"input",13),c(19,"translate"),P("ngModelChange",function(g){return M(n.username,g)||(n.username=g),g}),a(),o(20,"input",14),c(21,"translate"),P("ngModelChange",function(g){return M(n.password,g)||(n.password=g),g}),a(),o(22,"clr-alert",15)(23,"clr-alert-item")(24,"span",16),l(25),a()()(),o(26,"clr-checkbox-wrapper")(27,"input",17),P("ngModelChange",function(g){return M(n.rememberMe,g)||(n.rememberMe=g),g}),a(),o(28,"label"),l(29),c(30,"translate"),a()(),o(31,"div")(32,"button",18),j("click",function(){return n.logIn()}),l(33),c(34,"translate"),a()()()()(),C(35,fe,1,0,"img",19),a()()),i&2&&(p("dir",m(1,20,n.direction$)),r(6),h(" ",m(7,22,"common.login-image-title")," "),r(3),p("ngIf",n.imageCreator),r(),p("ngIf",n.imageLocation),r(),p("ngIf",n.imageUrl),r(3),h(" ",R(15,24,"common.login-title",T(35,de,n.hideVendureBranding?n.brand:"Vendure"))," "),r(4),_("ngModel",n.username),p("placeholder",m(19,27,"common.username")),r(2),_("ngModel",n.password),p("placeholder",m(21,29,"common.password")),r(2),E("visible",n.errorMessage),p("clrAlertType","danger")("clrAlertClosable",!1),r(3),h(" ",n.errorMessage," "),r(2),_("ngModel",n.rememberMe),r(2),w(m(30,31,"common.remember-me")),r(3),p("disabled",!n.username||!n.password),r(),h(" ",m(34,33,"common.login")," "),r(2),p("ngIf",!n.hideVendureBranding))},dependencies:[ee,ne,te,Q,$,Y,B,J,G,D,H,X,q,Z,K,re,z,W],styles:[`.login-wrapper[_ngcontent-%COMP%]{background:var(--color-weight-100);background-image:none;height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%]{background:var(--login-wrapper-inner-bg);width:1120px;height:590px;display:flex;justify-content:flex-start;align-items:stretch;position:relative;border-radius:var(--border-radius);border:1px solid var(--color-weight-150);overflow:hidden}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%]{flex-direction:column;height:auto;width:100%}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%]{height:100%;flex-grow:1;position:relative}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%]{height:300px}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:100%;object-fit:cover;object-position:center;position:relative;z-index:1}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;left:0;bottom:0;z-index:10;background:#020024;background:linear-gradient(180deg,#02002400,#000000bf);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:30px}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-title[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;color:#fff;margin-bottom:20px}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-title[_ngcontent-%COMP%]{font-size:1.2rem}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-copyright[_ngcontent-%COMP%]{opacity:.8}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-copyright[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.6rem;color:#fff;margin:0!important}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:underline}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%]{height:100%;width:400px;padding:40px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;box-shadow:0 20px 25px #0000001a;overflow:hidden;flex-shrink:0}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%]{height:auto;width:100%;padding:20px}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.2rem;margin-bottom:20px;color:var(--color-weight-600)}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-group[_ngcontent-%COMP%] input.username[_ngcontent-%COMP%], .login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-group[_ngcontent-%COMP%] input.password[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:15px;padding:12px 16px!important;background:#fff;font-size:14px;line-height:22px;color:#52667a;outline:none;-webkit-appearance:none}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{width:100%!important;margin-top:20px!important}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-logo[_ngcontent-%COMP%]{width:60px;height:auto;position:absolute;right:20px;top:20px}.login-button[_ngcontent-%COMP%]{width:100%;margin-top:var(--space-unit);justify-content:center}.version[_ngcontent-%COMP%]{flex:1;flex-grow:1;display:flex;align-items:flex-end;justify-content:center;color:var(--color-grey-300)}.version[_ngcontent-%COMP%] span[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{margin-inline-start:5px}.login-error[_ngcontent-%COMP%]{max-height:0;overflow:hidden;display:block}.login-error.visible[_ngcontent-%COMP%]{max-height:46px;transition:max-height .2s;animation:_ngcontent-%COMP%_shake .82s cubic-bezier(.36,.07,.19,.97) both;animation-delay:.2s;transform:translateZ(0);backface-visibility:hidden;perspective:1000px}@keyframes _ngcontent-%COMP%_shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.login-wrapper[dir=rtl][_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-logo[_ngcontent-%COMP%]{right:auto;left:20px}.login-wrapper[dir=rtl][_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%]{left:auto;right:0}
|
|
2
2
|
/*# sourceMappingURL=login.component-6SNVXFGV.css.map */`]})}}return t})();var le=(()=>{class t{constructor(e,i){this.router=e,this.authService=i}canActivate(e){return this.authService.checkAuthenticatedStatus().pipe(S(i=>(i&&this.router.navigate(["/"]),!i)))}static{this.\u0275fac=function(i){return new(i||t)(y(O),y(b))}}static{this.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ce=[{path:"",component:ge,pathMatch:"full",canActivate:[le]}];var Be=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=A({type:t})}static{this.\u0275inj=U({imports:[ae,V.forChild(ce)]})}}return t})();export{ge as LoginComponent,le as LoginGuard,Be as LoginModule,ce as loginRoutes};
|
|
3
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
//# sourceMappingURL=chunk-UPZVMWVC.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$e as Z,$f as st,$g as _t,Ae as Ue,Af as Ye,Ba as ae,Bf as ze,Ca as f,Cf as Ze,Da as F,Ea as C,Ed as Fe,Ef as et,Fd as Be,Ff as tt,Ge,He as qe,Id as De,Jd as ke,Jg as Q,Kd as Te,Kg as lt,La as me,Ld as xe,Le as je,Lf as it,Lg as W,Ma as se,Mf as R,Nf as $,Of as M,P as ne,Pd as Ie,Pf as U,Pg as dt,Q as Y,Qa as a,Qd as Le,Qf as G,Qg as ct,Ra as s,Sa as D,T as b,U as y,Ua as pe,Ub as de,Ud as Se,Ug as ut,Va as le,Vb as ce,Vf as ot,Vg as gt,Wb as ue,Wf as nt,Xb as ge,Xf as rt,Ya as L,Za as S,Zc as O,Zf as at,Zg as ft,_ as n,_f as mt,_g as Ct,a as K,aa as B,ae as V,af as He,ah as ht,b as X,bh as vt,ca as x,ce as Ee,ch as bt,da as re,db as E,dd as fe,de as we,ee as Oe,ef as Qe,ff as We,fg as pt,ga as I,gd as Ce,ha as u,id as _e,if as Je,ja as r,jd as he,jg as q,kf as Ke,ld as N,ma as p,n as T,na as l,nb as A,ng as j,o as te,oa as g,p as ie,sa as P,ta as v,td as ve,te as Ne,ua as _,ud as be,ug as H,vd as ye,vg as ee,wb as z,wd as Pe,we as Ve,xd as Ae,xe as Re,y as oe,ye as $e,zb as w,ze as Me,zf as Xe}from"./chunk-
|
|
1
|
+
import{$e as Z,$f as st,$g as _t,Ae as Ue,Af as Ye,Ba as ae,Bf as ze,Ca as f,Cf as Ze,Da as F,Ea as C,Ed as Fe,Ef as et,Fd as Be,Ff as tt,Ge,He as qe,Id as De,Jd as ke,Jg as Q,Kd as Te,Kg as lt,La as me,Ld as xe,Le as je,Lf as it,Lg as W,Ma as se,Mf as R,Nf as $,Of as M,P as ne,Pd as Ie,Pf as U,Pg as dt,Q as Y,Qa as a,Qd as Le,Qf as G,Qg as ct,Ra as s,Sa as D,T as b,U as y,Ua as pe,Ub as de,Ud as Se,Ug as ut,Va as le,Vb as ce,Vf as ot,Vg as gt,Wb as ue,Wf as nt,Xb as ge,Xf as rt,Ya as L,Za as S,Zc as O,Zf as at,Zg as ft,_ as n,_f as mt,_g as Ct,a as K,aa as B,ae as V,af as He,ah as ht,b as X,bh as vt,ca as x,ce as Ee,ch as bt,da as re,db as E,dd as fe,de as we,ee as Oe,ef as Qe,ff as We,fg as pt,ga as I,gd as Ce,ha as u,id as _e,if as Je,ja as r,jd as he,jg as q,kf as Ke,ld as N,ma as p,n as T,na as l,nb as A,ng as j,o as te,oa as g,p as ie,sa as P,ta as v,td as ve,te as Ne,ua as _,ud as be,ug as H,vd as ye,vg as ee,wb as z,wd as Pe,we as Ve,xd as Ae,xe as Re,y as oe,ye as $e,zb as w,ze as Me,zf as Xe}from"./chunk-T5DRPMTQ.js";function $t(t,m){if(t&1){let e=P();p(0,"button",27),v("click",function(){b(e);let i=_();return y(i.create())}),f(1),a(2,"translate"),l()}if(t&2){let e=_();r("disabled",!e.saveButtonEnabled()),n(),C(" ",s(2,2,"common.create")," ")}}function Mt(t,m){if(t&1){let e=P();p(0,"button",27),v("click",function(){b(e);let i=_(2);return y(i.save())}),f(1),a(2,"translate"),l()}if(t&2){let e=_(2);r("disabled",!e.saveButtonEnabled()),n(),C(" ",s(2,2,"common.update")," ")}}function Ut(t,m){t&1&&u(0,Mt,3,4,"button",28),t&2&&r("vdrIfPermissions","UpdatePromotion")}function Gt(t,m){t&1&&(p(0,"vdr-card")(1,"clr-toggle-wrapper"),g(2,"input",29),p(3,"label"),f(4),a(5,"translate"),l()()()),t&2&&(n(4),F(s(5,1,"common.enabled")))}function qt(t,m){if(t&1&&(p(0,"vdr-card"),g(1,"vdr-page-entity-info",30),l()),t&2){let e=m.ngIf;n(),r("entity",e)}}function jt(t,m){if(t&1&&(p(0,"vdr-card",31),a(1,"translate"),g(2,"vdr-tabbed-custom-fields",32),a(3,"hasPermission"),l()),t&2){let e=_();r("title",s(1,4,"common.custom-fields")),n(2),r("customFields",e.customFields)("customFieldsFormGroup",e.detailForm.get("customFields"))("readonly",!s(3,6,"UpdatePromotion"))}}function Ht(t,m){if(t&1){let e=P();p(0,"div")(1,"vdr-configurable-input",33),a(2,"hasPermission"),v("remove",function(i){b(e);let d=_();return y(d.removeCondition(i))}),l()()}if(t&2){let e=m.$implicit,o=m.index,i=_();n(),r("position",o)("readonly",!s(2,5,"UpdatePromotion"))("operation",e)("operationDefinition",i.getConditionDefinition(e))("formControlName",o)}}function Qt(t,m){if(t&1){let e=P();p(0,"button",38),v("click",function(){let i=b(e).$implicit,d=_(2);return y(d.addCondition(i))}),f(1),l()}if(t&2){let e=m.$implicit;n(),C(" ",e.description," ")}}function Wt(t,m){if(t&1&&(p(0,"vdr-dropdown")(1,"button",34),g(2,"clr-icon",35),f(3),a(4,"translate"),l(),p(5,"vdr-dropdown-menu",36),u(6,Qt,2,1,"button",37),l()()),t&2){let e=_();n(3),C(" ",s(4,2,"marketing.add-condition")," "),n(3),r("ngForOf",e.getAvailableConditions())}}function Jt(t,m){if(t&1){let e=P();p(0,"div")(1,"vdr-configurable-input",39),a(2,"hasPermission"),v("remove",function(i){b(e);let d=_();return y(d.removeAction(i))}),l()()}if(t&2){let e=m.$implicit,o=m.index,i=_();n(),r("position",o)("operation",e)("readonly",!s(2,5,"UpdatePromotion"))("operationDefinition",i.getActionDefinition(e))("formControlName",o)}}function Kt(t,m){if(t&1){let e=P();p(0,"button",38),v("click",function(){let i=b(e).$implicit,d=_(2);return y(d.addAction(i))}),f(1),l()}if(t&2){let e=m.$implicit;n(),C(" ",e.description," ")}}function Xt(t,m){if(t&1&&(p(0,"vdr-dropdown")(1,"button",34),g(2,"clr-icon",35),f(3),a(4,"translate"),l(),p(5,"vdr-dropdown-menu",36),u(6,Kt,2,1,"button",37),l()()),t&2){let e=_();n(3),C(" ",s(4,2,"marketing.add-action")," "),n(3),r("ngForOf",e.getAvailableActions())}}var Oi=A`
|
|
2
2
|
query GetPromotionDetail($id: ID!) {
|
|
3
3
|
promotion(id: $id) {
|
|
4
4
|
...Promotion
|
|
@@ -32,4 +32,4 @@ import{$e as Z,$f as st,$g as _t,Ae as Ue,Af as Ye,Ba as ae,Bf as ze,Ca as f,Cf
|
|
|
32
32
|
${O}
|
|
33
33
|
`,kt=(()=>{class t extends ut{constructor(){super(),this.dataTableListId="promotion-list",this.customFields=this.getCustomFieldConfig("Promotion"),this.filters=this.createFilterCollection().addIdFilter().addDateFilters().addFilters([{name:"startsAt",type:{kind:"dateRange"},label:"marketing.starts-at",filterField:"startsAt"},{name:"endsAt",type:{kind:"dateRange"},label:"marketing.ends-at",filterField:"endsAt"},{name:"enabled",type:{kind:"boolean"},label:"common.enabled",filterField:"enabled"},{name:"name",type:{kind:"text"},label:"common.name",filterField:"name"},{name:"couponCode",type:{kind:"text"},label:"marketing.coupon-code",filterField:"couponCode"},{name:"desc",type:{kind:"text"},label:"common.description",filterField:"description"},{name:"perCustomerUsageLimit",type:{kind:"number"},label:"marketing.per-customer-limit",filterField:"perCustomerUsageLimit"},{name:"usageLimit",type:{kind:"number"},label:"marketing.usage-limit",filterField:"usageLimit"}]).addCustomFieldFilters(this.customFields).connectToRoute(this.route),this.sorts=this.createSortCollection().defaultSort("createdAt","DESC").addSorts([{name:"createdAt"},{name:"updatedAt"},{name:"startsAt"},{name:"endsAt"},{name:"name"},{name:"couponCode"},{name:"perCustomerUsageLimit"},{name:"usageLimit"}]).addCustomFieldSorts(this.customFields).connectToRoute(this.route),super.configure({document:ge,getItems:e=>e.promotions,setVariables:(e,o)=>this.createQueryOptions(e,o,this.searchTermControl.value),refreshListOnChanges:[this.filters.valueChanges,this.sorts.valueChanges]})}createQueryOptions(e,o,i){let d=this.filters.createFilterInput(),c=this.sorts.createSortInput(),h=z.AND;return i&&(d.couponCode={contains:i},d.name={contains:i},h=z.OR),{options:{skip:e,take:o,filter:d,filterOperator:h,sort:c}}}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["vdr-promotion-list"]],standalone:!1,features:[I],decls:49,vars:72,consts:[[3,"languageCodeChange","availableLanguageCodes","currentLanguageCode"],["locationId","promotion-list"],["class","btn btn-primary",3,"routerLink",4,"vdrIfPermissions"],[3,"pageChange","itemsPerPageChange","visibleColumnsChange","id","items","itemsPerPage","totalItems","currentPage","filters"],["locationId","promotion-list",3,"hostComponent","selectionManager"],[3,"searchTermControl","searchTermPlaceholder"],["id","id",3,"heading","hiddenByDefault"],["id","created-at",3,"heading","hiddenByDefault","sort"],["id","updated-at",3,"heading","hiddenByDefault","sort"],["id","name",3,"heading","optional","sort"],["id","enabled",3,"heading"],["id","coupon-code",3,"heading","sort"],["id","starts-at",3,"heading","sort"],["id","ends-at",3,"heading","sort"],["id","per-customer-limit",3,"heading","sort","hiddenByDefault"],["id","usage-limit",3,"heading","sort","hiddenByDefault"],[3,"customField","sorts",4,"ngFor","ngForOf"],[1,"btn","btn-primary",3,"routerLink"],["shape","plus"],[1,"button-ghost",3,"routerLink"],["shape","arrow right"],["colorType","success",4,"ngIf"],["colorType","warning",4,"ngIf"],["colorType","success"],["colorType","warning"],[3,"customField","sorts"]],template:function(o,i){o&1&&(p(0,"vdr-page-block")(1,"vdr-action-bar")(2,"vdr-ab-left")(3,"vdr-language-selector",0),a(4,"async"),a(5,"async"),v("languageCodeChange",function(c){return i.setLanguage(c)}),l()(),p(6,"vdr-ab-right"),g(7,"vdr-action-bar-items",1),u(8,Zt,4,5,"a",2),g(9,"vdr-action-bar-dropdown-menu",1),l()()(),p(10,"vdr-data-table-2",3),a(11,"async"),a(12,"async"),a(13,"async"),a(14,"async"),v("pageChange",function(c){return i.setPageNumber(c)})("itemsPerPageChange",function(c){return i.setItemsPerPage(c)})("visibleColumnsChange",function(c){return i.setVisibleColumns(c)}),g(15,"vdr-bulk-action-menu",4)(16,"vdr-dt2-search",5),a(17,"translate"),p(18,"vdr-dt2-column",6),a(19,"translate"),u(20,ei,1,1,"ng-template"),l(),p(21,"vdr-dt2-column",7),a(22,"translate"),u(23,ti,2,4,"ng-template"),l(),p(24,"vdr-dt2-column",8),a(25,"translate"),u(26,ii,2,4,"ng-template"),l(),p(27,"vdr-dt2-column",9),a(28,"translate"),u(29,oi,4,4,"ng-template"),l(),p(30,"vdr-dt2-column",10),a(31,"translate"),u(32,ai,2,2,"ng-template"),l(),p(33,"vdr-dt2-column",11),a(34,"translate"),u(35,mi,1,1,"ng-template"),l(),p(36,"vdr-dt2-column",12),a(37,"translate"),u(38,si,2,4,"ng-template"),l(),p(39,"vdr-dt2-column",13),a(40,"translate"),u(41,pi,2,4,"ng-template"),l(),p(42,"vdr-dt2-column",14),a(43,"translate"),u(44,li,1,1,"ng-template"),l(),p(45,"vdr-dt2-column",15),a(46,"translate"),u(47,di,1,1,"ng-template"),l(),u(48,ci,1,2,"vdr-dt2-custom-field-column",16),l()),o&2&&(n(3),r("availableLanguageCodes",s(4,38,i.availableLanguages$))("currentLanguageCode",s(5,40,i.contentLanguage$)),n(5),r("vdrIfPermissions","CreatePromotion"),n(2),r("id",i.dataTableListId)("items",s(11,42,i.items$))("itemsPerPage",s(12,44,i.itemsPerPage$))("totalItems",s(13,46,i.totalItems$))("currentPage",s(14,48,i.currentPage$))("filters",i.filters),n(5),r("hostComponent",i)("selectionManager",i.selectionManager),n(),r("searchTermControl",i.searchTermControl)("searchTermPlaceholder",s(17,50,"marketing.search-by-name-or-coupon-code")),n(2),r("heading",s(19,52,"common.id"))("hiddenByDefault",!0),n(3),r("heading",s(22,54,"common.created-at"))("hiddenByDefault",!0)("sort",i.sorts.get("createdAt")),n(3),r("heading",s(25,56,"common.updated-at"))("hiddenByDefault",!0)("sort",i.sorts.get("updatedAt")),n(3),r("heading",s(28,58,"common.name"))("optional",!1)("sort",i.sorts.get("name")),n(3),r("heading",s(31,60,"common.enabled")),n(3),r("heading",s(34,62,"marketing.coupon-code"))("sort",i.sorts.get("couponCode")),n(3),r("heading",s(37,64,"marketing.starts-at"))("sort",i.sorts.get("startsAt")),n(3),r("heading",s(40,66,"marketing.ends-at"))("sort",i.sorts.get("endsAt")),n(3),r("heading",s(43,68,"marketing.per-customer-limit"))("sort",i.sorts.get("perCustomerUsageLimit"))("hiddenByDefault",!0),n(3),r("heading",s(46,70,"marketing.usage-limit"))("sort",i.sorts.get("usageLimit"))("hiddenByDefault",!0),n(3),r("ngForOf",i.customFields))},dependencies:[V,L,S,_e,G,M,U,Q,Je,q,R,$,nt,pt,at,st,mt,j,E,N,je],styles:[`.search-form[_ngcontent-%COMP%]{padding:0}.search-input[_ngcontent-%COMP%]{margin:6px 8px 0 0;min-width:200px}
|
|
34
34
|
/*# sourceMappingURL=promotion-list.component-JSB66AXJ.css.map */`],changeDetection:0})}}return t})();var Tt=t=>[{path:"promotions",component:ee,data:{locationId:"promotion-list",breadcrumb:"breadcrumb.promotions"},children:t.getPageTabRoutes("promotion-list")},{path:"promotions/:id",component:ee,data:{locationId:"promotion-detail",breadcrumb:{label:"breadcrumb.promotions",link:["../","promotions"]}},children:t.getPageTabRoutes("promotion-detail")}];function oo(t,m){return gt({entity:t.entity,id:m.id,breadcrumbKey:"breadcrumb.promotions",getName:e=>e.name,route:"promotions"})}var co=(()=>{class t{static{this.hasRegisteredTabsAndBulkActions=!1}constructor(e,o){t.hasRegisteredTabsAndBulkActions||(e.registerBulkAction(Ft),e.registerBulkAction(Dt),e.registerBulkAction(Bt),e.registerBulkAction(At),o.registerPageTab({priority:0,location:"promotion-list",tab:"breadcrumb.promotions",route:"",component:kt}),o.registerPageTab({priority:0,location:"promotion-detail",tab:"marketing.promotion",route:"",component:ct({component:Pt,query:de,entityKey:"promotion",getBreadcrumbs:i=>[{label:i?i.name:"marketing.create-new-promotion",link:[i?.id]}]})}),t.hasRegisteredTabsAndBulkActions=!0)}static{this.\u0275fac=function(o){return new(o||t)(Y(ot),Y(H))}}static{this.\u0275mod=re({type:t})}static{this.\u0275inj=ne({providers:[{provide:Ce,useFactory:e=>Tt(e),multi:!0,deps:[H]}],imports:[W,he.forChild([]),W,W]})}}return t})();export{Oi as GET_PROMOTION_DETAIL,eo as GET_PROMOTION_LIST,co as MarketingModule,Pt as PromotionDetailComponent,kt as PromotionListComponent,Ft as assignPromotionsToChannelBulkAction,Tt as createRoutes,At as deletePromotionsBulkAction,Dt as duplicatePromotionsBulkAction,oo as promotionBreadcrumb,Bt as removePromotionsFromChannelBulkAction};
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-YYJZ5OJZ.js.map
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
<link rel="stylesheet" href="styles-2OZ5XYFS.css"></head>
|
|
11
11
|
<body>
|
|
12
12
|
<vdr-root></vdr-root>
|
|
13
|
-
<link rel="modulepreload" href="chunk-
|
|
13
|
+
<link rel="modulepreload" href="chunk-T5DRPMTQ.js"><script src="polyfills-BIMCQJWN.js" type="module"></script><script src="main-LRFSVWYU.js" type="module"></script></body>
|
|
14
14
|
</html>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ng as d,P as t,Ye as m,da as r,fh as l,jd as p,kb as e,kd as a,lb as i,md as n}from"./chunk-T5DRPMTQ.js";var h=[{path:"login",loadChildren:()=>import("./chunk-UPZVMWVC.js").then(o=>o.LoginModule)},{path:"",canActivate:[l],component:m,data:{breadcrumb:"breadcrumb.dashboard"},children:[{path:"",pathMatch:"full",loadChildren:()=>import("./chunk-MI7JGH2L.js").then(o=>o.DashboardModule)},{path:"catalog",loadChildren:()=>import("./chunk-MJEDJICA.js").then(o=>o.CatalogModule)},{path:"customer",loadChildren:()=>import("./chunk-ID6COZHE.js").then(o=>o.CustomerModule)},{path:"orders",loadChildren:()=>import("./chunk-MJV2KLNO.js").then(o=>o.OrderModule)},{path:"marketing",loadChildren:()=>import("./chunk-YYJZ5OJZ.js").then(o=>o.MarketingModule)},{path:"settings",loadChildren:()=>import("./chunk-JQHNKMFF.js").then(o=>o.SettingsModule)},{path:"system",loadChildren:()=>import("./chunk-TKBDA5IE.js").then(o=>o.SystemModule)}]}];var s=(()=>{class o{static{this.\u0275fac=function(c){return new(c||o)}}static{this.\u0275mod=r({type:o,bootstrap:[a]})}static{this.\u0275inj=t({imports:[e,d,p.forRoot(h,{useHash:!1})]})}}return o})();var u={production:!0};u.production&&void 0;n().then(()=>i().bootstrapModule(s)).catch(o=>{console.log(o)});
|
|
2
|
+
//# sourceMappingURL=main-LRFSVWYU.js.map
|
package/lib/src/plugin.d.ts
CHANGED
|
@@ -55,6 +55,13 @@ export interface AdminUiPluginOptions {
|
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* @description
|
|
58
|
+
*
|
|
59
|
+
* :::warning Deprecated
|
|
60
|
+
* From Vendure v3.5.0, the Angular-based Admin UI has been replaced by the new [React Admin Dashboard](/guides/extending-the-dashboard/getting-started/).
|
|
61
|
+
* The Angular Admin UI will not be maintained after **July 2026**. Until then, we will continue patching critical bugs and security issues.
|
|
62
|
+
* Community contributions will always be merged and released.
|
|
63
|
+
* :::
|
|
64
|
+
*
|
|
58
65
|
* This plugin starts a static server for the Admin UI app, and proxies it via the `/admin/` path of the main Vendure server.
|
|
59
66
|
*
|
|
60
67
|
* The Admin UI allows you to administer all aspects of your store, from inventory management to order tracking. It is the tool used by
|
package/lib/src/plugin.js
CHANGED
|
@@ -26,6 +26,13 @@ const constants_1 = require("./constants");
|
|
|
26
26
|
const metrics_service_1 = require("./service/metrics.service");
|
|
27
27
|
/**
|
|
28
28
|
* @description
|
|
29
|
+
*
|
|
30
|
+
* :::warning Deprecated
|
|
31
|
+
* From Vendure v3.5.0, the Angular-based Admin UI has been replaced by the new [React Admin Dashboard](/guides/extending-the-dashboard/getting-started/).
|
|
32
|
+
* The Angular Admin UI will not be maintained after **July 2026**. Until then, we will continue patching critical bugs and security issues.
|
|
33
|
+
* Community contributions will always be merged and released.
|
|
34
|
+
* :::
|
|
35
|
+
*
|
|
29
36
|
* This plugin starts a static server for the Admin UI app, and proxies it via the `/admin/` path of the main Vendure server.
|
|
30
37
|
*
|
|
31
38
|
* The Admin UI allows you to administer all aspects of your store, from inventory management to order tracking. It is the tool used by
|
package/lib/src/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,2EAG8C;AAO9C,wCAQuB;AACvB,sDAA8B;AAC9B,2DAA+C;AAC/C,wDAA0B;AAC1B,gDAAwB;AAExB,yDAAwD;AACxD,6DAAyD;AACzD,2CAOqB;AACrB,+DAA2D;AAuD3D
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,2EAG8C;AAO9C,wCAQuB;AACvB,sDAA8B;AAC9B,2DAA+C;AAC/C,wDAA0B;AAC1B,gDAAwB;AAExB,yDAAwD;AACxD,6DAAyD;AACzD,2CAOqB;AACrB,+DAA2D;AAuD3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAgBI,IAAM,aAAa,qBAAnB,MAAM,aAAa;IAGtB,YACY,aAA4B,EAC5B,cAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAe;QAC5B,mBAAc,GAAd,cAAc,CAAgB;IACvC,CAAC;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BAAiB,CAAC,CAAC;YAC/C,CAAC;YACD,SAAS,EAAE,GAAG,EAAE;;gBACZ,MAAM,iBAAiB,GAAG,CAAC,CAAC,CAAA,MAAA,aAAa,CAAC,OAAO,0CAAE,iBAAiB,CAAA,CAAC;gBACrE,OAAO,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,kCAAe,CAAC,CAAC;YACtD,CAAC;SACJ;QACD,SAAS,EAAE,CAAC,gCAAc,CAAC;QAC3B,aAAa,EAAE,QAAQ;KAC1B,CAAC;qCAK6B,oBAAa;QACZ,qBAAc;GALjC,aAAa,CA0QzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/admin-ui-plugin",
|
|
3
|
-
"version": "3.5.0
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/express": "^5.0.1",
|
|
27
27
|
"@types/fs-extra": "^11.0.4",
|
|
28
|
-
"@vendure/admin-ui": "
|
|
29
|
-
"@vendure/common": "
|
|
30
|
-
"@vendure/core": "
|
|
28
|
+
"@vendure/admin-ui": "3.5.0",
|
|
29
|
+
"@vendure/common": "3.5.0",
|
|
30
|
+
"@vendure/core": "3.5.0",
|
|
31
31
|
"express": "^5.1.0",
|
|
32
32
|
"rimraf": "^5.0.5",
|
|
33
33
|
"typescript": "5.8.2"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"express-rate-limit": "^7.5.0",
|
|
38
38
|
"fs-extra": "^11.2.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "534e6003534f74761e82de1b8c6061cba89945d1"
|
|
41
41
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ng as d,P as t,Ye as m,da as r,fh as l,jd as p,kb as e,kd as a,lb as i,md as n}from"./chunk-QI7SEWMH.js";var h=[{path:"login",loadChildren:()=>import("./chunk-KI3EMVQ2.js").then(o=>o.LoginModule)},{path:"",canActivate:[l],component:m,data:{breadcrumb:"breadcrumb.dashboard"},children:[{path:"",pathMatch:"full",loadChildren:()=>import("./chunk-JN4JAHQ5.js").then(o=>o.DashboardModule)},{path:"catalog",loadChildren:()=>import("./chunk-OIL3N76D.js").then(o=>o.CatalogModule)},{path:"customer",loadChildren:()=>import("./chunk-OZ6W4WW6.js").then(o=>o.CustomerModule)},{path:"orders",loadChildren:()=>import("./chunk-2ZM5JEOB.js").then(o=>o.OrderModule)},{path:"marketing",loadChildren:()=>import("./chunk-RJCXCEFJ.js").then(o=>o.MarketingModule)},{path:"settings",loadChildren:()=>import("./chunk-KXA7N3XJ.js").then(o=>o.SettingsModule)},{path:"system",loadChildren:()=>import("./chunk-MK6EBHKG.js").then(o=>o.SystemModule)}]}];var s=(()=>{class o{static{this.\u0275fac=function(c){return new(c||o)}}static{this.\u0275mod=r({type:o,bootstrap:[a]})}static{this.\u0275inj=t({imports:[e,d,p.forRoot(h,{useHash:!1})]})}}return o})();var u={production:!0};u.production&&void 0;n().then(()=>i().bootstrapModule(s)).catch(o=>{console.log(o)});
|
|
2
|
-
//# sourceMappingURL=main-3KB2SGMC.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|