dealposbarcode 1.8.1 → 1.8.2
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/{chunk-436LJ4WK.js → chunk-5AKGF4ZO.js} +1 -1
- package/{chunk-V6L5HQGO.js → chunk-67YH224X.js} +1 -1
- package/chunk-7LFOYBB6.js +1 -0
- package/{chunk-UR6B5JCM.js → chunk-BPVCVDML.js} +1 -1
- package/{chunk-Z5EDADP5.js → chunk-KECVEJRK.js} +22 -25
- package/{chunk-64KHSIN7.js → chunk-SHRZRQ6C.js} +1 -1
- package/{chunk-N4SZDM2B.js → chunk-VQWWLWCV.js} +1 -1
- package/index.html +3 -3
- package/{main-JYO27CFZ.js → main-O6O6527Z.js} +2 -2
- package/ngsw.json +18 -18
- package/package.json +1 -1
- package/chunk-EXDP5FB6.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as N,e as $,f as z,g as A,i as k}from"./chunk-
|
|
1
|
+
import{b as N,e as $,f as z,g as A,i as k}from"./chunk-KECVEJRK.js";import"./chunk-GIIIUOWP.js";import"./chunk-IFSVDZCL.js";import"./chunk-BPVCVDML.js";import{ca as H,l as I,n as B,q}from"./chunk-PQYPFF6U.js";import{Ac as b,C as u,Da as i,Ha as P,I as C,J as v,Jc as R,Kb as w,Qb as S,Ub as a,Xa as _,Z as g,a as h,b as f,dc as D,ec as T,fc as c,gc as s,hc as p,nd as x,od as M,pd as E,ta as y,wd as F,zb as d}from"./chunk-4JSMR3XG.js";function L(t,m){t&1&&(s(0),c(1,"choose-product"),p())}function O(t,m){if(t&1&&c(0,"app-barcode-preview",4),t&2){let e=m.$implicit;a("items",e)}}function U(t,m){t&1&&(s(0),D(1,"app-customize-label"),S(2,O,1,1,"ng-template",null,0,R),T(),p())}function V(t,m){t&1&&(s(0),c(1,"app-print-preview"),p())}var se=(()=>{class t{constructor(){this.storeService=i(N),this.httpService=i(H),this.destroyRef=i(_),this.routes=i(I),this.router=i(B),this.step=w(0)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}ngOnInit(){this.storeService.onReset(),console.log(localStorage.getItem("Domain"))}ngAfterViewInit(){let e=this.getHostFromDomain();this.loadInitialData(e)}getHostFromDomain(){let e=localStorage.getItem("Domain");return e?this.hasProtocol(e)?new URL(e).hostname:e:null}hasProtocol(e){return/^(https?):\/\//.test(e)}loadInitialData(e){if(!e){console.warn("No domain found in localStorage");return}let o=this.httpService.post("api/Config/PaperConfig",{SubDomain:e}).pipe(g(n=>u({error:n}))),r=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(g(n=>u({error:n})));v([o,r]).pipe(q(this.destroyRef),C(([n,l])=>this.normalizeResponses(n,l)),y(({paperConfig:n,taxs:l})=>this.applyDataToStore(n,l))).subscribe()}normalizeResponses(e,o){let r=n=>n&&"error"in n;return{paperConfig:r(e)?null:e,taxs:r(o)?null:o}}applyDataToStore(e,o){e&&(this.storeService.onChangePaperConfig(f(h({},e),{PaperFormats:e.PaperFormats.map(r=>f(h({},r),{OutletID:null}))})),e.PaperFormats.length>0&&this.storeService.onChangePaperConfiguration(e.PaperFormats[0])),o&&this.storeService.onChangeTaxs(o)}onNext(){if(this.step()>=3){console.warn("Maximum step reached, cannot proceed further.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()+1},queryParamsHandling:"merge"})}onPrevious(){if(this.step()<=1){console.warn("Already at the first step, cannot go back.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()-1},queryParamsHandling:"merge"})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-shelf-barcode"]],standalone:!0,features:[b],decls:4,vars:3,consts:[["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"items"]],template:function(o,r){o&1&&(s(0,1),S(1,L,2,0,"ng-container",2)(2,U,4,0,"ng-container",2)(3,V,2,0,"ng-container",3),p()),o&2&&(a("ngSwitch",r.storeService.stepper$().state),d(),a("ngSwitchCase",0),d(),a("ngSwitchCase",1))},dependencies:[$,F,x,M,E,A,z,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{se as ShelfBarcodeComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as z,e as k,g as A,h as H,i as O}from"./chunk-
|
|
1
|
+
import{b as z,e as k,g as A,h as H,i as O}from"./chunk-KECVEJRK.js";import"./chunk-GIIIUOWP.js";import"./chunk-IFSVDZCL.js";import"./chunk-BPVCVDML.js";import{ca as N,l as E,q as F}from"./chunk-PQYPFF6U.js";import{$b as b,Ac as T,C as d,Da as l,Ha as S,I as _,J as u,Jc as I,Qb as f,Ub as a,Xa as v,Z as g,bc as y,cc as w,dc as D,ec as L,fc as p,gc as s,hc as m,md as P,nd as x,od as $,pd as M,ta as C,wd as R,zb as c}from"./chunk-4JSMR3XG.js";function U(t,i){t&1&&(s(0),p(1,"choose-product"),m())}function V(t,i){t&1&&p(0,"div",7)}function j(t,i){if(t&1&&(p(0,"app-label-preview",5),f(1,V,1,0,"div",6)),t&2){let e=i.$implicit,n=i.$index,r=i.$count;a("item",e),c(),a("ngIf",n!==r-1)}}function q(t,i){if(t&1&&y(0,j,2,2,null,null,b),t&2){let e=i.$implicit;w(e)}}function B(t,i){t&1&&(s(0),D(1,"app-customize-label",4),f(2,q,2,0,"ng-template",null,0,I),L(),m())}function G(t,i){t&1&&(s(0),p(1,"app-print-preview"),m())}var pe=(()=>{class t{constructor(){this.store=l(z),this.httpService=l(N),this.destroyRef=l(v),this.routes=l(E)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}ngOnInit(){this.store.onReset(),console.log(localStorage.getItem("Domain"))}ngAfterViewInit(){let e=this.getHostFromDomain();this.loadInitialData(e)}getHostFromDomain(){let e=localStorage.getItem("Domain");return e?this.hasProtocol(e)?new URL(e).hostname:e:null}hasProtocol(e){return/^(https?):\/\//.test(e)}loadInitialData(e){if(!e){console.warn("No domain found in localStorage");return}let n=this.httpService.post("api/ConfigShelf/PaperConfig",{SubDomain:e}).pipe(g(o=>d({error:o}))),r=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(g(o=>d({error:o})));u([n,r]).pipe(F(this.destroyRef),_(([o,h])=>this.normalizeResponses(o,h)),C(({paperConfig:o,taxs:h})=>this.applyDataToStore(o,h))).subscribe()}normalizeResponses(e,n){let r=o=>o&&"error"in o;return{paperConfig:r(e)?null:e,taxs:r(n)?null:n}}applyDataToStore(e,n){e&&this.store.onChangeShelfLabelConfig(e),n&&this.store.onChangeTaxs(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-shelf-label"]],standalone:!0,features:[T],decls:4,vars:3,consts:[["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["sidebarConfig","label"],[3,"item"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(n,r){n&1&&(s(0,1),f(1,U,2,0,"ng-container",2)(2,B,4,0,"ng-container",2)(3,G,2,0,"ng-container",3),m()),n&2&&(a("ngSwitch",r.store.stepper$().state),c(),a("ngSwitchCase",0),c(),a("ngSwitchCase",1))},dependencies:[k,A,O,R,P,x,$,M,H],styles:["[_nghost-%COMP%]{display:block}.divider[_ngcontent-%COMP%]{border:1px dashed #000;width:100%}"],changeDetection:0})}}return t})();export{pe as ShelfLabelComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as j,E as A,F as G,G as R,I as U,W as z,ia as q,n as D,p as V,t as N,u as F,x as T,y as I}from"./chunk-PQYPFF6U.js";import{Ac as k,Bc as x,Da as f,Ha as M,Kb as b,Qb as _,Sa as d,Ta as m,Ub as l,_b as S,dc as e,ec as t,fc as a,jc as C,kd as E,mc as c,vb as w,vc as v,wc as n,wd as O,xc as y,yc as P,zb as r}from"./chunk-4JSMR3XG.js";var B=i=>({active:i});function H(i,L){i&1&&(e(0,"h4"),n(1," This menu is for printing barcodes that will be placed directly on your products. "),t())}function J(i,L){i&1&&(e(0,"h4"),n(1," This option is designed for printing barcodes and labels that will be displayed on the shelves where your products are stored. "),t())}var re=(()=>{class i{constructor(){this.domain=b(""),this.username=b(""),this.router=f(D),this.fb=f(R),this.authService=f(q)}ngOnInit(){this.initForm()}ngAfterViewInit(){this.domain.set(localStorage.getItem("Domain")),this.username.set(localStorage.getItem("Username"))}onNext(){let s=this.form.get("printMode").value;switch(s){case 1:this.form.get("rememberMe").value&&localStorage.setItem("PrintMode","barcode"),this.router.navigate(["/pages/shelf/barcode"],{queryParams:{step:0}});break;case 2:this.form.get("rememberMe").value&&localStorage.setItem("PrintMode","priceLabel"),this.router.navigate(["/pages/shelf/price-label"],{queryParams:{step:0}});break;default:console.error("Unknown print mode selected:",s)}}initForm(){this.form=this.fb.group({printMode:this.fb.control(1),rememberMe:this.fb.control(!0)})}static{this.\u0275fac=function(p){return new(p||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-print-mode-selector"]],standalone:!0,features:[k],decls:59,vars:13,consts:[["radioDefault1",""],["radioDefault2",""],[1,"navbar","navbar-light","bg-white","shadow-sm","px-4","py-2"],[1,"fw-normal","mt-2"],[1,"dropdown"],["type","button","id","profileMenu","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-light","rounded-circle","d-flex","align-items-center","justify-content-center",2,"width","40px","height","40px"],[1,"fa-solid","fa-user"],["aria-labelledby","profileMenu",1,"dropdown-menu","dropdown-menu-end","shadow","border-0","p-3",2,"width","250px","border-radius","1rem"],[1,"mb-2"],[1,"fw-bold","text-uppercase"],[1,"d-flex","align-items-center","mb-3"],[1,"me-3"],[1,"fa-solid","fa-user-circle","fa-3x","text-secondary"],[1,"mt-3","fw-bold"],[1,"text-muted","fw-bolder"],["rel","noopener noreferrer","target","_blank",1,"text-primary","text-decoration-none",3,"href"],[1,"dropdown-divider"],["href","javascript:void(0)",1,"btn","btn-primary","w-100","rounded-pill",3,"click"],[1,"d-flex","flex-column",2,"height","calc(100vh - 56px)"],[1,"flex-grow-1","w-100","d-flex","flex-column","justify-content-center","align-items-center","gap-4","px-3"],["id","header",1,"text-center","mb-4"],[1,"row","g-4","justify-content-center","w-100",2,"max-width","960px",3,"formGroup"],["formControlName","printMode","type","radio","name","printMode",1,"form-check-input","d-none",3,"value"],["formControlName","printMode","type","radio","name","printMode","checked","",1,"form-check-input","d-none",3,"value"],[1,"d-flex","flex-column","align-items-center","gap-4","w-100"],[1,"d-flex","gap-5","justify-content-center","flex-wrap"],[1,"card","option-card",3,"click","ngClass"],[1,"card-body","text-center"],[1,"icon-wrapper","mb-2","mt-4"],[1,"fa-solid","fa-barcode"],[1,"text-muted","mb-1"],[1,"fw-normal"],[1,"fa-solid","fa-shelves"],[1,"form-check","d-flex","justify-content-center","align-items-center","gap-2","mt-3"],["type","checkbox","formControlName","rememberMe","id","checkDefault",1,"form-check-input"],["for","checkDefault",1,"form-check-label"],[1,"mt-3"],["type","button",1,"btn","btn-primary","btn-lg","px-5","rounded-pill","shadow-lg",3,"click"]],template:function(p,o){if(p&1){let u=C();e(0,"nav",2)(1,"h2",3),n(2,"Choose Barcode Mode"),t(),e(3,"div",4)(4,"button",5),a(5,"i",6),t(),e(6,"ul",7)(7,"li",8)(8,"span",9),n(9,"User Profile"),t()(),e(10,"li",10)(11,"div",11),a(12,"i",12),t(),e(13,"div")(14,"h6",13),n(15),t(),e(16,"h6",14)(17,"a",15),n(18),t()()()(),e(19,"li"),a(20,"hr",16),t(),e(21,"li")(22,"button",17),c("click",function(){return d(u),m(o.authService.logout())}),n(23,"SIGN OUT"),t()()()()(),e(24,"div",18)(25,"main",19)(26,"div",20),_(27,H,2,0,"h4")(28,J,2,0,"h4"),t(),e(29,"div",21),a(30,"input",22,0)(32,"input",23,1),e(34,"div",24)(35,"div",25)(36,"div",26),c("click",function(){d(u);let g=v(31);return m(g.click())}),e(37,"div",27)(38,"div",28),a(39,"i",29),t(),e(40,"h6",30),n(41,"Print"),t(),e(42,"h4",31),n(43,"Product"),t()()(),e(44,"div",26),c("click",function(){d(u);let g=v(33);return m(g.click())}),e(45,"div",27)(46,"div",28),a(47,"i",32),t(),e(48,"h6",30),n(49,"Print"),t(),e(50,"h4",31),n(51,"Shelf"),t()()()(),e(52,"div",33),a(53,"input",34),e(54,"label",35),n(55,"Remember my decision"),t()(),e(56,"div",36)(57,"button",37),c("click",function(){return d(u),m(o.onNext())}),n(58," Next "),t()()()()()()}p&2&&(r(15),y(o.username()),r(2),l("href","https://"+o.domain(),w),r(),P(" ",o.domain()," "),r(9),S(o.form.get("printMode").value===1?27:28),r(2),l("formGroup",o.form),r(),l("value",1),r(2),l("value",2),r(4),l("ngClass",x(9,B,o.form.get("printMode").value===1)),r(8),l("ngClass",x(11,B,o.form.get("printMode").value===2)))},dependencies:[O,E,V,U,F,N,j,T,I,A,G,z],styles:["[_nghost-%COMP%]{display:block}main[_ngcontent-%COMP%]{background-color:#f5f5f5}.card[_ngcontent-%COMP%]{width:205px;height:205px;border-radius:8px;transition:transform .3s ease,border-color .3s ease}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:4rem}.card.active[_ngcontent-%COMP%]{border:2px solid blue;transform:scale(1.05)}.dropdown-menu[_ngcontent-%COMP%]{position:absolute;right:0}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:nth-child(1){font-size:2rem;font-weight:500}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:nth-child(2){font-size:.8rem}"],changeDetection:0})}}return i})();export{re as PrintModeSelectorComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},version:"1.8.
|
|
1
|
+
var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},version:"1.8.2"};export{e as a};
|