dealposbarcode 25.42.0 → 25.50.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.
@@ -19,7 +19,9 @@ Main sidebar
19
19
  z-index: 99;
20
20
  padding-top: $topbar-height;
21
21
  background: $sidebar;
22
- box-shadow: $shadow;
22
+ // box-shadow: $shadow;
23
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
24
+ // border-right: 1px solid #ddd;
23
25
  transition: 0.2s ease-in;
24
26
  }
25
27
 
@@ -0,0 +1 @@
1
+ import{g as k,i as A,j as H,k as O}from"./chunk-7V3KH6IR.js";import{t as N}from"./chunk-G2JXUY7S.js";import"./chunk-X4PZGB4F.js";import"./chunk-UBR4JEV7.js";import{Q as z,a as F}from"./chunk-RH3ZV23S.js";import"./chunk-CARY4E7O.js";import{l as E}from"./chunk-LTVGOJEF.js";import{Ad as R,C as d,Da as l,Ec as T,Ha as S,I as _,J as u,Nc as I,Rb as f,Vb as a,Xa as v,Z as g,ac as b,cc as y,dc as w,ec as D,fc as L,gc as p,hc as s,ic as m,qd as P,rd as x,sd as $,ta as C,td as M,zb as c}from"./chunk-UE2JJIFL.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(N),this.httpService=l(z),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{I as z,W as B,d as N,e as F,h as T,i as I,n as j,o as A,p as G,r as R,t as U}from"./chunk-RH3ZV23S.js";import"./chunk-CARY4E7O.js";import{n as D,q as V}from"./chunk-LTVGOJEF.js";import{$b as S,Ad as O,Da as f,Ec as P,Fc as x,Ha as M,Kb as b,Rb as _,Sa as d,Ta as m,Vb as l,ec as e,fc as t,gc as a,kc as C,nc as c,od as E,ub as w,wc as v,xc as n,yc as y,zb as r,zc as k}from"./chunk-UE2JJIFL.js";var q=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(B)}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/profile-template"],{queryParams:{step:0}});break;case 2:this.form.get("rememberMe").value&&localStorage.setItem("PrintMode","priceLabel"),this.router.navigate(["/pages/price-label"]);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:[P],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(),k(" ",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,q,o.form.get("printMode").value===1)),r(8),l("ngClass",x(11,q,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};