dealposbarcode 25.40.0 → 25.41.1
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-FKQE2XFN.js → chunk-22J3JPCU.js} +1 -1
- package/{chunk-BVFPFG2Y.js → chunk-3HVQWFM3.js} +1 -1
- package/{chunk-6PE7DC5F.js → chunk-3Y4PP6IW.js} +1 -1
- package/{chunk-433Z233F.js → chunk-ELVIF57Z.js} +1 -1
- package/{chunk-6IWB7I3Q.js → chunk-GOX6X2HS.js} +19 -19
- package/{chunk-Z2YETF5A.js → chunk-JWV4A4IE.js} +1 -1
- package/{chunk-QCOAAL7X.js → chunk-LH3DQLXZ.js} +1 -1
- package/{chunk-AJDEWWQT.js → chunk-MCHSQWDB.js} +1 -1
- package/{chunk-WV652PSI.js → chunk-MSLVFLMV.js} +1 -1
- package/{chunk-3JLQEX7D.js → chunk-S7YYN4AX.js} +1 -1
- package/{chunk-LGTZUZQ4.js → chunk-UMWZ6BZY.js} +1 -1
- package/{chunk-57NGCRYH.js → chunk-UQPONBUU.js} +1 -1
- package/{chunk-PNNBJ4WR.js → chunk-YB6XMFOT.js} +4 -4
- package/index.html +2 -2
- package/{main-3BV44MDF.js → main-CX6DRS76.js} +2 -2
- package/ngsw.json +30 -30
- package/package.json +1 -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-GOX6X2HS.js";import"./chunk-3HVQWFM3.js";import"./chunk-MSLVFLMV.js";import"./chunk-ELVIF57Z.js";import{da as H,l as I,n as B,r as q}from"./chunk-MCHSQWDB.js";import{Ad as F,C as u,Da as i,Ec as b,Ha as P,I as C,J as v,Kb as w,Nc as R,Rb as S,Vb as a,Xa as _,Z as g,a as h,b as f,ec as D,fc as T,gc as c,hc as s,ic as p,rd as x,sd as M,ta as y,td as E,zb as d}from"./chunk-YB6XMFOT.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,2 +1,2 @@
|
|
|
1
|
-
import{Y as ee}from"./chunk-
|
|
1
|
+
import{Y as ee}from"./chunk-MCHSQWDB.js";import{Aa as y,C as u,Ca as o,Da as J,E as d,Ec as Y,Ha as R,I as V,Ia as j,M as x,N as I,O as $,Ua as F,Za as l,_ as q,a as P,ca as T,ec as m,fc as C,gc as W,nc as D,oa as A,pc as N,qc as k,ra as K,xa as p,xb as X,xc as S,ya as M,zb as Z,zc as Q}from"./chunk-YB6XMFOT.js";var E=class{constructor(s){this.icons=s}};var ne=(()=>{class n{constructor(e){if(this.icons=e,!this.icons)throw new Error(`No icon provided. Make sure to use 'FeatherModule.pick({ ... })' when importing the module
|
|
2
2
|
Refer to documentation on https://github.com/michaelbazos/angular-feather`)}static pick(e){return{ngModule:n,providers:[{provide:E,multi:!0,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)(o(E,8))},n.\u0275mod=j({type:n}),n.\u0275inj=M({}),n})();var v=class{},ie=(()=>{class n extends v{getTranslation(e){return u({})}}return n.\u0275fac=(()=>{let s;return function(t){return(s||(s=F(n)))(t||n)}})(),n.\u0275prov=p({token:n,factory:n.\u0275fac}),n})(),_=class{},se=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=p({token:n,factory:n.\u0275fac}),n})();function g(n){return typeof n<"u"&&n!==null}function H(n){return n&&typeof n=="object"&&!Array.isArray(n)}function le(n,s){let e=Object.assign({},n);return H(n)&&H(s)&&Object.keys(s).forEach(t=>{H(s[t])?t in n?e[t]=le(n[t],s[t]):Object.assign(e,{[t]:s[t]}):Object.assign(e,{[t]:s[t]})}),e}var b=class{},ae=(()=>{class n extends b{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let i;return typeof e=="string"?i=this.interpolateString(e,t):typeof e=="function"?i=this.interpolateFunction(e,t):i=e,i}getValue(e,t){let i=typeof t=="string"?t.split("."):[t];t="";do t+=i.shift(),g(e)&&g(e[t])&&(typeof e[t]=="object"||!i.length)?(e=e[t],t=""):i.length?t+=".":e=void 0;while(i.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(i,a)=>{let r=this.getValue(t,a);return g(r)?r:i}):e}}return n.\u0275fac=(()=>{let s;return function(t){return(s||(s=F(n)))(t||n)}})(),n.\u0275prov=p({token:n,factory:n.\u0275fac}),n})(),L=class{},re=(()=>{class n extends L{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=(()=>{let s;return function(t){return(s||(s=F(n)))(t||n)}})(),n.\u0275prov=p({token:n,factory:n.\u0275fac}),n})(),O=class{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new l,this.onLangChange=new l,this.onDefaultLangChange=new l}},B=new y("USE_STORE"),U=new y("USE_DEFAULT_LANG"),z=new y("DEFAULT_LANGUAGE"),G=new y("USE_EXTEND"),oe=(()=>{class n{constructor(e,t,i,a,r,h=!0,c=!1,f=!1,w){this.store=e,this.currentLoader=t,this.compiler=i,this.parser=a,this.missingTranslationHandler=r,this.useDefaultLang=h,this.isolate=c,this.extend=f,this.pending=!1,this._onTranslationChange=new l,this._onLangChange=new l,this._onDefaultLangChange=new l,this._langs=[],this._translations={},this._translationRequests={},w&&this.setDefaultLang(w)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(this.defaultLang==null&&(this.defaultLang=e),t.pipe(T(1)).subscribe(i=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return u(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe(T(1)).subscribe(i=>{this.changeLang(e)}),t):(this.changeLang(e),u(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;let t=this.currentLoader.getTranslation(e).pipe(A(1),T(1));return this.loadingTranslations=t.pipe(V(i=>this.compiler.compileTranslations(i,e)),A(1),T(1)),this.loadingTranslations.subscribe({next:i=>{this.translations[e]=this.extend&&this.translations[e]?P(P({},i),this.translations[e]):i,this.updateLangs(),this.pending=!1},error:i=>{this.pending=!1}}),t}setTranslation(e,t,i=!1){t=this.compiler.compileTranslations(t,e),(i||this.extend)&&this.translations[e]?this.translations[e]=le(this.translations[e],t):this.translations[e]=t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{this.langs.indexOf(t)===-1&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,i){let a;if(t instanceof Array){let r={},h=!1;for(let c of t)r[c]=this.getParsedResult(e,c,i),d(r[c])&&(h=!0);if(h){let c=t.map(f=>d(r[f])?r[f]:u(r[f]));return $(c).pipe(V(f=>{let w={};return f.forEach((ue,he)=>{w[t[he]]=ue}),w}))}return r}if(e&&(a=this.parser.interpolate(this.parser.getValue(e,t),i)),typeof a>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),i)),typeof a>"u"){let r={key:t,translateService:this};typeof i<"u"&&(r.interpolateParams=i),a=this.missingTranslationHandler.handle(r)}return typeof a<"u"?a:t}get(e,t){if(!g(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(q(i=>(i=this.getParsedResult(i,e,t),d(i)?i:u(i))));{let i=this.getParsedResult(this.translations[this.currentLang],e,t);return d(i)?i:u(i)}}getStreamOnTranslationChange(e,t){if(!g(e)||!e.length)throw new Error('Parameter "key" required');return x(I(()=>this.get(e,t)),this.onTranslationChange.pipe(K(i=>{let a=this.getParsedResult(i.translations,e,t);return typeof a.subscribe=="function"?a:u(a)})))}stream(e,t){if(!g(e)||!e.length)throw new Error('Parameter "key" required');return x(I(()=>this.get(e,t)),this.onLangChange.pipe(K(i=>{let a=this.getParsedResult(i.translations,e,t);return d(a)?a:u(a)})))}instant(e,t){if(!g(e)||!e.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],e,t);if(d(i)){if(e instanceof Array){let a={};return e.forEach((r,h)=>{a[e[h]]=e[h]}),a}return e}else return i}set(e,t,i=this.currentLang){this.translations[i][e]=this.compiler.compile(t,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;if(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof e>"u"))return e.indexOf("-")!==-1&&(e=e.split("-")[0]),e.indexOf("_")!==-1&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(o(O),o(v),o(L),o(b),o(_),o(U),o(B),o(G),o(z))},n.\u0275prov=p({token:n,factory:n.\u0275fac}),n})();var Fe=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:v,useClass:ie},e.compiler||{provide:L,useClass:re},e.parser||{provide:b,useClass:ae},e.missingTranslationHandler||{provide:_,useClass:se},O,{provide:B,useValue:e.isolate},{provide:U,useValue:e.useDefaultLang},{provide:G,useValue:e.extend},{provide:z,useValue:e.defaultLanguage},oe]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:v,useClass:ie},e.compiler||{provide:L,useClass:re},e.parser||{provide:b,useClass:ae},e.missingTranslationHandler||{provide:_,useClass:se},{provide:B,useValue:e.isolate},{provide:U,useValue:e.useDefaultLang},{provide:G,useValue:e.extend},{provide:z,useValue:e.defaultLanguage},oe]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=j({type:n}),n.\u0275inj=M({}),n})();var fe=["*"],Re=(()=>{class n{constructor(){this.title="",this.hasValid=!1,this.onClose=new l,this.onCancel=new l,this.onOK=new l,this.activeModal=J(ee)}ngOnInit(){}onCancelHandler(){this.activeModal.close(),this.onCancel.emit()}onCloseHandler(){this.activeModal.close(),this.onClose.emit()}onOKHandler(){this.onOK.emit()}handleKeyboardEvent(e){e.key==="F2"&&this.onOKHandler()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=R({type:n,selectors:[["app-base-modal"]],hostBindings:function(t,i){t&1&&D("keydown",function(r){return i.handleKeyboardEvent(r)},!1,X)},inputs:{title:"title",hasValid:"hasValid"},outputs:{onClose:"onClose",onCancel:"onCancel",onOK:"onOK"},standalone:!0,features:[Y],ngContentSelectors:fe,decls:12,vars:1,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title","font-robotoslab",2,"font-size","16px"],["aria-label","Close","type","button",1,"btn","btn-light-blue","text-primary","px-2","py-1",3,"click"],[1,"fas","fa-times"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-light-blue","btn-lg","text-primary","fw-semibold","fs-4",3,"click"]],template:function(t,i){t&1&&(N(),m(0,"div",0)(1,"h4",1),S(2),C(),m(3,"button",2),D("click",function(){return i.onCloseHandler()}),W(4,"i",3),C()(),m(5,"div",4),k(6),C(),m(7,"div",5)(8,"button",6),D("click",function(){return i.onCancelHandler()}),S(9," Cancel "),C(),m(10,"button",6),D("click",function(){return i.onOKHandler()}),S(11," OK(F2) "),C()()),t&2&&(Z(2),Q(" ",i.title," "))},dependencies:[ne],styles:[".modal-header[_ngcontent-%COMP%]{background:#89b03e;display:flex;justify-content:space-between}.modal-title[_ngcontent-%COMP%]{color:#fff}.modal-body[_ngcontent-%COMP%]{max-height:60vh}"]})}}return n})();export{ne as a,Re as b,Fe as c};
|
|
@@ -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-GOX6X2HS.js";import"./chunk-3HVQWFM3.js";import"./chunk-MSLVFLMV.js";import"./chunk-ELVIF57Z.js";import{da as N,l as E,r as F}from"./chunk-MCHSQWDB.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-YB6XMFOT.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};
|
|
@@ -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:"25.
|
|
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:"25.41.1"};export{e as a};
|