dealposbarcode 26.1.0 → 26.1.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-HRRVAKK6.js → chunk-3KPLVT7B.js} +2 -2
- package/chunk-5KWDVSO6.js +194 -0
- package/{chunk-5BDSDZBJ.js → chunk-EIGRX3SO.js} +1 -1
- package/{chunk-VMNBWQIP.js → chunk-KKCOUAI7.js} +1 -1
- package/{chunk-F55DH2GX.js → chunk-PE35XIHQ.js} +1 -1
- package/{chunk-SMR7YI5J.js → chunk-PN5S3LIV.js} +1 -1
- package/{chunk-CQL43DMM.js → chunk-Z7JGEKOM.js} +1 -1
- package/{chunk-Q4SH5RTJ.js → chunk-ZQPG32YM.js} +61 -61
- package/index.html +2 -2
- package/{main-5MCDZ3FK.js → main-7SA3MAWH.js} +8 -8
- package/ngsw.json +20 -20
- package/package.json +1 -1
- package/chunk-66XEEZ6W.js +0 -194
package/ngsw.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"configVersion": 1,
|
|
3
|
-
"timestamp":
|
|
3
|
+
"timestamp": 1767944159106,
|
|
4
4
|
"index": "/index.html",
|
|
5
5
|
"assetGroups": [
|
|
6
6
|
{
|
|
@@ -11,25 +11,25 @@
|
|
|
11
11
|
"ignoreVary": true
|
|
12
12
|
},
|
|
13
13
|
"urls": [
|
|
14
|
-
"/chunk-
|
|
15
|
-
"/chunk-
|
|
14
|
+
"/chunk-3KPLVT7B.js",
|
|
15
|
+
"/chunk-5KWDVSO6.js",
|
|
16
16
|
"/chunk-6RPDTK47.js",
|
|
17
17
|
"/chunk-7PT4SS5X.js",
|
|
18
18
|
"/chunk-7RSU6VFI.js",
|
|
19
|
-
"/chunk-
|
|
20
|
-
"/chunk-F55DH2GX.js",
|
|
21
|
-
"/chunk-HRRVAKK6.js",
|
|
19
|
+
"/chunk-EIGRX3SO.js",
|
|
22
20
|
"/chunk-IKSROKD5.css",
|
|
23
21
|
"/chunk-JCQ56J6G.js",
|
|
24
22
|
"/chunk-JMQFG4UA.js",
|
|
25
|
-
"/chunk-
|
|
26
|
-
"/chunk-
|
|
27
|
-
"/chunk-
|
|
23
|
+
"/chunk-KKCOUAI7.js",
|
|
24
|
+
"/chunk-PE35XIHQ.js",
|
|
25
|
+
"/chunk-PN5S3LIV.js",
|
|
28
26
|
"/chunk-Z3B3WOTF.js",
|
|
27
|
+
"/chunk-Z7JGEKOM.js",
|
|
28
|
+
"/chunk-ZQPG32YM.js",
|
|
29
29
|
"/favicon.ico",
|
|
30
30
|
"/index.html",
|
|
31
31
|
"/main-4BFS7RVV.css",
|
|
32
|
-
"/main-
|
|
32
|
+
"/main-7SA3MAWH.js",
|
|
33
33
|
"/manifest.webmanifest",
|
|
34
34
|
"/polyfills-DHHU6LMO.js",
|
|
35
35
|
"/styles-XWKQSHJN.css"
|
|
@@ -1127,21 +1127,21 @@
|
|
|
1127
1127
|
"/assets/scss/icons/weather-icons/fonts/weathericons-regular-webfont.ttf": "9916e3dbc3990e3073cf5a2cb4c2e958273b7532",
|
|
1128
1128
|
"/assets/scss/icons/weather-icons/fonts/weathericons-regular-webfont.woff": "5b909f99b700b5289e9af6f750405152b06e32f2",
|
|
1129
1129
|
"/assets/scss/icons/weather-icons/fonts/weathericons-regular-webfont.woff2": "718dd740e8340888352129e592fed085409e891e",
|
|
1130
|
-
"/chunk-
|
|
1131
|
-
"/chunk-
|
|
1130
|
+
"/chunk-3KPLVT7B.js": "1bd9906d95591c83e6f1c602618d2e78cc8e4423",
|
|
1131
|
+
"/chunk-5KWDVSO6.js": "17bb8095d45d3a6aa4be0541833bb6264bbf4602",
|
|
1132
1132
|
"/chunk-6RPDTK47.js": "b1e3689c22aa4a7778105e1fd1e50f600a0ae7cd",
|
|
1133
1133
|
"/chunk-7PT4SS5X.js": "4a328a691de677c7a62e73cfac06d50dbc005eef",
|
|
1134
1134
|
"/chunk-7RSU6VFI.js": "09862c8f64e325142f5fa1ed8922399fc319c81c",
|
|
1135
|
-
"/chunk-
|
|
1136
|
-
"/chunk-F55DH2GX.js": "6675a315b31d5d7f46760d65ccab35d6f0a0b8a6",
|
|
1137
|
-
"/chunk-HRRVAKK6.js": "eb3a116c632a7e00ed46f3e891fc33fc37a1df9a",
|
|
1135
|
+
"/chunk-EIGRX3SO.js": "81ae380f75b79967647ebe2350bd18777b4779dd",
|
|
1138
1136
|
"/chunk-IKSROKD5.css": "c17375ce13599d70449f52e8affbd98e84b1ce68",
|
|
1139
1137
|
"/chunk-JCQ56J6G.js": "ba4b43746cef4f0abdda361887e793fd3fbfe864",
|
|
1140
1138
|
"/chunk-JMQFG4UA.js": "a9784145a2a2b16b915be708b82e6a5c8bade216",
|
|
1141
|
-
"/chunk-
|
|
1142
|
-
"/chunk-
|
|
1143
|
-
"/chunk-
|
|
1139
|
+
"/chunk-KKCOUAI7.js": "15abfefa3c8f785dfedef7150d169c463a26f570",
|
|
1140
|
+
"/chunk-PE35XIHQ.js": "dc8466f0f4923e2ae014338338c60c40be0be915",
|
|
1141
|
+
"/chunk-PN5S3LIV.js": "1541a6d45a260d6641aedb821d3b72a1c2dcf700",
|
|
1144
1142
|
"/chunk-Z3B3WOTF.js": "74879ddeca4266ea669b3bd3953550e05a7eb51d",
|
|
1143
|
+
"/chunk-Z7JGEKOM.js": "3ca258d4fa99fef7bfcc4737a8f01b9f661a2970",
|
|
1144
|
+
"/chunk-ZQPG32YM.js": "b0e3a84add63fdc731de55c6a82079262cad69a3",
|
|
1145
1145
|
"/favicon.ico": "04c278dba3e54393c4c980f7fd4dcd43796ef813",
|
|
1146
1146
|
"/icons/icon-128x128.png": "f912963bdc6d5a38d8f1dd0afbaab2ce8d657acb",
|
|
1147
1147
|
"/icons/icon-144x144.png": "b155fd5f2fd5d2ea7760721063003c4cd95fd783",
|
|
@@ -1151,9 +1151,9 @@
|
|
|
1151
1151
|
"/icons/icon-512x512.png": "1de182f76f7329dfa8f9fcdd1fdcdd695bea6a99",
|
|
1152
1152
|
"/icons/icon-72x72.png": "aa88a6096bd973be7f6d7a5489bfa6bc2463f8c4",
|
|
1153
1153
|
"/icons/icon-96x96.png": "7fb8f59c30ce2ff12c700321a0b39e14b3dc8f95",
|
|
1154
|
-
"/index.html": "
|
|
1154
|
+
"/index.html": "0bbb7ef412f5eda1946b0b54f1806b7d7e84a0a6",
|
|
1155
1155
|
"/main-4BFS7RVV.css": "c17375ce13599d70449f52e8affbd98e84b1ce68",
|
|
1156
|
-
"/main-
|
|
1156
|
+
"/main-7SA3MAWH.js": "51866364951f9852cc467859dd8ec2a25ce2dfd5",
|
|
1157
1157
|
"/manifest.webmanifest": "d0fd5724221d976d542d58aaec91e09025ec633d",
|
|
1158
1158
|
"/media/Simple-Line-Icons-ABFJBNCZ.ttf": "acb3e2b0f5ba11b8e4e43b7f73223ec048054861",
|
|
1159
1159
|
"/media/Simple-Line-Icons-DVZUTIE4.woff": "c7f8307972e263ccb2de346cfd4890ae3ad15c7e",
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"dealposbarcode","version":"26.1.
|
|
1
|
+
{"name":"dealposbarcode","version":"26.1.1"}
|
package/chunk-66XEEZ6W.js
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import{a as gt,b as bt,c as vt,d as Ct,e as xe,f as _t,g as xt,h as yt,i as St}from"./chunk-Q4SH5RTJ.js";import{$ as at,Aa as _,Ba as ve,Da as ct,E as nt,Ea as ut,Ga as Ce,H as ot,La as mt,M as ge,P as rt,Pa as ft,Va as ht,W as Oe,_ as pt,oa as lt,p as it,ra as st,sa as be,va as dt,wa as Z,ya as q,za as U}from"./chunk-7PT4SS5X.js";import{b as _e}from"./chunk-JMQFG4UA.js";import{d as tt,i as he}from"./chunk-HRRVAKK6.js";import{A as Xe,K as de,O as ce,P as ue,W as me,X as fe,a as qe,aa as Ye,ba as et,ca as z,e as Ue,f as Qe,i as Je,k as le,l as se,la as K,y as Ke}from"./chunk-Z3B3WOTF.js";import{Ac as N,B as Ve,Bb as b,Bc as l,Cb as oe,Cc as je,Da as M,Dc as O,Fb as W,Fc as Re,Gb as H,Gc as Ge,H as Me,Hb as T,Hc as $e,Jc as $,Ka as w,Kc as ze,L as ie,Lc as re,Oc as V,Pc as F,Qb as Ae,R as Ie,Rb as I,Sb as D,Sc as k,Vb as Le,Wb as We,Wc as J,Xb as f,Yb as o,Zb as r,Zc as pe,_b as d,_c as B,da as S,fc as y,hb as Fe,ib as m,id as ae,jd as Ze,ka as A,kc as v,la as ne,mc as c,na as L,nb as De,nc as j,ob as Be,oc as R,p as te,pa as u,pc as Pe,rc as Ee,sc as Ne,ua as h,va as g,wc as He,zc as G}from"./chunk-JCQ56J6G.js";import{a as E,b as Y,l as ee}from"./chunk-7RSU6VFI.js";var Tt=`
|
|
2
|
-
.p-popover {
|
|
3
|
-
margin-block-start: dt('popover.gutter');
|
|
4
|
-
background: dt('popover.background');
|
|
5
|
-
color: dt('popover.color');
|
|
6
|
-
border: 1px solid dt('popover.border.color');
|
|
7
|
-
border-radius: dt('popover.border.radius');
|
|
8
|
-
box-shadow: dt('popover.shadow');
|
|
9
|
-
will-change: transform;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.p-popover-content {
|
|
13
|
-
padding: dt('popover.content.padding');
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.p-popover-flipped {
|
|
17
|
-
margin-block-start: calc(dt('popover.gutter') * -1);
|
|
18
|
-
margin-block-end: dt('popover.gutter');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.p-popover:after,
|
|
22
|
-
.p-popover:before {
|
|
23
|
-
bottom: 100%;
|
|
24
|
-
left: calc(dt('popover.arrow.offset') + dt('popover.arrow.left'));
|
|
25
|
-
content: ' ';
|
|
26
|
-
height: 0;
|
|
27
|
-
width: 0;
|
|
28
|
-
position: absolute;
|
|
29
|
-
pointer-events: none;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.p-popover:after {
|
|
33
|
-
border-width: calc(dt('popover.gutter') - 2px);
|
|
34
|
-
margin-left: calc(-1 * (dt('popover.gutter') - 2px));
|
|
35
|
-
border-style: solid;
|
|
36
|
-
border-color: transparent;
|
|
37
|
-
border-bottom-color: dt('popover.background');
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.p-popover:before {
|
|
41
|
-
border-width: dt('popover.gutter');
|
|
42
|
-
margin-left: calc(-1 * dt('popover.gutter'));
|
|
43
|
-
border-style: solid;
|
|
44
|
-
border-color: transparent;
|
|
45
|
-
border-bottom-color: dt('popover.border.color');
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.p-popover-flipped:after,
|
|
49
|
-
.p-popover-flipped:before {
|
|
50
|
-
bottom: auto;
|
|
51
|
-
top: 100%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.p-popover.p-popover-flipped:after {
|
|
55
|
-
border-bottom-color: transparent;
|
|
56
|
-
border-top-color: dt('popover.background');
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.p-popover.p-popover-flipped:before {
|
|
60
|
-
border-bottom-color: transparent;
|
|
61
|
-
border-top-color: dt('popover.border.color');
|
|
62
|
-
}
|
|
63
|
-
`;var Wt=["content"],Ht=["*"],jt=t=>({closeCallback:t});function Rt(t,p){}function Gt(t,p){t&1&&T(0,Rt,0,0,"ng-template")}function $t(t,p){if(t&1){let e=y();o(0,"div",1),v("click",function(i){h(e);let a=c();return g(a.onOverlayClick(i))})("pMotionOnEnter",function(i){h(e);let a=c();return g(a.onAnimationStart(i))})("pMotionOnAfterLeave",function(){h(e);let i=c();return g(i.onAnimationEnd())}),o(1,"div",2),v("click",function(i){h(e);let a=c();return g(a.onContentClick(i))})("mousedown",function(i){h(e);let a=c();return g(a.onContentClick(i))}),R(2),T(3,Gt,1,0,null,3),r()()}if(t&2){let e=c();G(e.sx("root")),N(e.cn(e.cx("root"),e.styleClass)),f("pBind",e.ptm("root"))("ngStyle",e.style)("pMotion",e.overlayVisible)("pMotionAppear",!0)("pMotionOptions",e.computedMotionOptions()),Ae("aria-modal",e.overlayVisible)("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),m(),N(e.cx("content")),f("pBind",e.ptm("content")),m(2),f("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",re(17,jt,e.onCloseClick.bind(e)))}}var zt={root:()=>({position:"absolute"})},Zt={root:"p-popover p-component",content:"p-popover-content"},wt=(()=>{class t extends Z{name="popover";style=Tt;classes=Zt;inlineStyles=zt;static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),kt=new L("POPOVER_INSTANCE"),qt=(()=>{class t extends U{$pcPopover=u(kt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(_,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}ariaLabel;ariaLabelledBy;dismissable=!0;style;styleClass;appendTo=B("body");autoZIndex=!0;ariaCloseLabel;baseZIndex=0;focusOnShow=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";motionOptions=B(void 0);computedMotionOptions=J(()=>E(E({},this.ptm("motion")),this.motionOptions()));onShow=new De;onHide=new De;$appendTo=J(()=>this.appendTo()||this.config.overlayAppendTo());container;overlayVisible=!1;render=!1;selfClick=!1;documentClickListener;target;willHide;scrollHandler;documentResizeListener;contentTemplate;templates;_contentTemplate;destroyCallback;overlayEventListener;overlaySubscription;_componentStyle=u(wt);zone=u(Be);overlayService=u(lt);onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break}})}bindDocumentClickListener(){if(se(this.platformId)&&!this.documentClickListener){let e=pt()?"touchstart":"click",n=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(n,e,i=>{this.dismissable&&(!this.container?.contains(i.target)&&this.target!==i.target&&!this.target.contains(i.target)&&!this.selfClick&&this.hide(),this.selfClick=!1,this.cd.markForCheck())})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(e,n){this.overlayVisible?(this.hasTargetChanged(e,n)&&(this.destroyCallback=()=>{this.show(null,n||e.currentTarget||e.target)}),this.hide()):this.show(e,n)}show(e,n){n&&e&&e.stopPropagation(),this.container&&!this.overlayVisible&&(this.container=null),this.target=n||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(e){let n=e.target;this.selfClick=e.offsetX<n.clientWidth&&e.offsetY<n.clientHeight}hasTargetChanged(e,n){return this.target!=null&&this.target!==(n||e.currentTarget||e.target)}appendOverlay(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?ge(this.document.body,this.container):ge(this.$appendTo(),this.container))}restoreAppend(){this.container&&this.$appendTo()&&this.$appendTo()!=="self"&&ge(this.el.nativeElement,this.container)}setZIndex(){this.autoZIndex&&Ce.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay)}align(){if(this.target&&this.container){ot(this.container,this.target,!1);let e=Oe(this.container),n=Oe(this.target),i=this.document.defaultView?.getComputedStyle(this.container).getPropertyValue("border-radius"),a=0;e.left<n.left&&(a=n.left-e.left-parseFloat(i)*2),this.container.style.setProperty(dt("popover.arrow.left").name,`${a}px`),e.top<n.top&&(this.container.setAttribute("data-p-popover-flipped","true"),!this.$unstyled()&&nt(this.container,"p-popover-flipped"))}}onAnimationStart(e){this.container=e.element,this.container?.setAttribute(this.$attrSelector,""),this.appendOverlay(),this.align(),this.setZIndex(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=n=>{this.container&&this.container.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)}onAnimationEnd(){this.overlayVisible||(this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.autoZIndex&&Ce.clear(this.container),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1,this.container=null)}focus(){let e=rt(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(e){this.hide(),e.preventDefault()}onEscapeKeydown(e){this.hide()}onWindowResize(){this.overlayVisible&&!at()&&this.hide()}bindDocumentResizeListener(){if(se(this.platformId)&&!this.documentResizeListener){let e=this.document.defaultView;this.documentResizeListener=this.renderer.listen(e,"resize",this.onWindowResize.bind(this))}}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){se(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new mt(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener())}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}onDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&Ce.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275cmp=b({type:t,selectors:[["p-popover"]],contentQueries:function(n,i,a){if(n&1&&(Pe(a,Wt,4),Pe(a,st,4)),n&2){let s;Ee(s=Ne())&&(i.contentTemplate=s.first),Ee(s=Ne())&&(i.templates=s)}},hostBindings:function(n,i){n&1&&v("keydown.escape",function(s){return i.onEscapeKeydown(s)},Fe)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",dismissable:[2,"dismissable","dismissable",ae],style:"style",styleClass:"styleClass",appendTo:[1,"appendTo"],autoZIndex:[2,"autoZIndex","autoZIndex",ae],ariaCloseLabel:"ariaCloseLabel",baseZIndex:[2,"baseZIndex","baseZIndex",Ze],focusOnShow:[2,"focusOnShow","focusOnShow",ae],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",motionOptions:[1,"motionOptions"]},outputs:{onShow:"onShow",onHide:"onHide"},features:[$([wt,{provide:kt,useExisting:t},{provide:q,useExisting:t}]),H([_]),W],ngContentSelectors:Ht,decls:1,vars:1,consts:[["role","dialog","pMotionName","p-anchored-overlay",3,"pBind","class","style","ngStyle","pMotion","pMotionAppear","pMotionOptions"],["role","dialog","pMotionName","p-anchored-overlay",3,"click","pMotionOnEnter","pMotionOnAfterLeave","pBind","ngStyle","pMotion","pMotionAppear","pMotionOptions"],[3,"click","mousedown","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&(j(),I(0,$t,4,19,"div",0)),n&2&&D(i.render?0:-1)},dependencies:[le,Qe,Ue,be,_,ut,ct],encapsulation:2,changeDetection:0})}return t})(),It=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=oe({type:t});static \u0275inj=ne({imports:[qt,be,be]})}return t})();var ye=(t,p=96)=>Math.floor(p/2.54*t),Se=(t,p=96)=>Math.floor(t/p*2.54);var Dt=`
|
|
64
|
-
.p-inputgroup,
|
|
65
|
-
.p-inputgroup .p-iconfield,
|
|
66
|
-
.p-inputgroup .p-floatlabel,
|
|
67
|
-
.p-inputgroup .p-iftalabel {
|
|
68
|
-
display: flex;
|
|
69
|
-
align-items: stretch;
|
|
70
|
-
width: 100%;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.p-inputgroup .p-inputtext,
|
|
74
|
-
.p-inputgroup .p-inputwrapper {
|
|
75
|
-
flex: 1 1 auto;
|
|
76
|
-
width: 1%;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.p-inputgroupaddon {
|
|
80
|
-
display: flex;
|
|
81
|
-
align-items: center;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
padding: dt('inputgroup.addon.padding');
|
|
84
|
-
background: dt('inputgroup.addon.background');
|
|
85
|
-
color: dt('inputgroup.addon.color');
|
|
86
|
-
border-block-start: 1px solid dt('inputgroup.addon.border.color');
|
|
87
|
-
border-block-end: 1px solid dt('inputgroup.addon.border.color');
|
|
88
|
-
min-width: dt('inputgroup.addon.min.width');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.p-inputgroupaddon:first-child,
|
|
92
|
-
.p-inputgroupaddon + .p-inputgroupaddon {
|
|
93
|
-
border-inline-start: 1px solid dt('inputgroup.addon.border.color');
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.p-inputgroupaddon:last-child {
|
|
97
|
-
border-inline-end: 1px solid dt('inputgroup.addon.border.color');
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.p-inputgroupaddon:has(.p-button) {
|
|
101
|
-
padding: 0;
|
|
102
|
-
overflow: hidden;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.p-inputgroupaddon .p-button {
|
|
106
|
-
border-radius: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.p-inputgroup > .p-component,
|
|
110
|
-
.p-inputgroup > .p-inputwrapper > .p-component,
|
|
111
|
-
.p-inputgroup > .p-iconfield > .p-component,
|
|
112
|
-
.p-inputgroup > .p-floatlabel > .p-component,
|
|
113
|
-
.p-inputgroup > .p-floatlabel > .p-inputwrapper > .p-component,
|
|
114
|
-
.p-inputgroup > .p-iftalabel > .p-component,
|
|
115
|
-
.p-inputgroup > .p-iftalabel > .p-inputwrapper > .p-component {
|
|
116
|
-
border-radius: 0;
|
|
117
|
-
margin: 0;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.p-inputgroupaddon:first-child,
|
|
121
|
-
.p-inputgroup > .p-component:first-child,
|
|
122
|
-
.p-inputgroup > .p-inputwrapper:first-child > .p-component,
|
|
123
|
-
.p-inputgroup > .p-iconfield:first-child > .p-component,
|
|
124
|
-
.p-inputgroup > .p-floatlabel:first-child > .p-component,
|
|
125
|
-
.p-inputgroup > .p-floatlabel:first-child > .p-inputwrapper > .p-component,
|
|
126
|
-
.p-inputgroup > .p-iftalabel:first-child > .p-component,
|
|
127
|
-
.p-inputgroup > .p-iftalabel:first-child > .p-inputwrapper > .p-component {
|
|
128
|
-
border-start-start-radius: dt('inputgroup.addon.border.radius');
|
|
129
|
-
border-end-start-radius: dt('inputgroup.addon.border.radius');
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.p-inputgroupaddon:last-child,
|
|
133
|
-
.p-inputgroup > .p-component:last-child,
|
|
134
|
-
.p-inputgroup > .p-inputwrapper:last-child > .p-component,
|
|
135
|
-
.p-inputgroup > .p-iconfield:last-child > .p-component,
|
|
136
|
-
.p-inputgroup > .p-floatlabel:last-child > .p-component,
|
|
137
|
-
.p-inputgroup > .p-floatlabel:last-child > .p-inputwrapper > .p-component,
|
|
138
|
-
.p-inputgroup > .p-iftalabel:last-child > .p-component,
|
|
139
|
-
.p-inputgroup > .p-iftalabel:last-child > .p-inputwrapper > .p-component {
|
|
140
|
-
border-start-end-radius: dt('inputgroup.addon.border.radius');
|
|
141
|
-
border-end-end-radius: dt('inputgroup.addon.border.radius');
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.p-inputgroup .p-component:focus,
|
|
145
|
-
.p-inputgroup .p-component.p-focus,
|
|
146
|
-
.p-inputgroup .p-inputwrapper-focus,
|
|
147
|
-
.p-inputgroup .p-component:focus ~ label,
|
|
148
|
-
.p-inputgroup .p-component.p-focus ~ label,
|
|
149
|
-
.p-inputgroup .p-inputwrapper-focus ~ label {
|
|
150
|
-
z-index: 1;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.p-inputgroup > .p-button:not(.p-button-icon-only) {
|
|
154
|
-
width: auto;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.p-inputgroup .p-iconfield + .p-iconfield .p-inputtext {
|
|
158
|
-
border-inline-start: 0;
|
|
159
|
-
}
|
|
160
|
-
`;var Ut=["*"],Qt=`
|
|
161
|
-
${Dt}
|
|
162
|
-
|
|
163
|
-
/*For PrimeNG*/
|
|
164
|
-
|
|
165
|
-
.p-inputgroup > .p-component,
|
|
166
|
-
.p-inputgroup > .p-inputwrapper > .p-component,
|
|
167
|
-
.p-inputgroup:first-child > p-button > .p-button,
|
|
168
|
-
.p-inputgroup > .p-floatlabel > .p-component,
|
|
169
|
-
.p-inputgroup > .p-floatlabel > .p-inputwrapper > .p-component,
|
|
170
|
-
.p-inputgroup > .p-iftalabel > .p-component,
|
|
171
|
-
.p-inputgroup > .p-iftalabel > .p-inputwrapper > .p-component {
|
|
172
|
-
border-radius: 0;
|
|
173
|
-
margin: 0;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.p-inputgroup p-button:first-child,
|
|
177
|
-
.p-inputgroup p-button:last-child {
|
|
178
|
-
display: inline-flex;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.p-inputgroup:has(> p-button:first-child) .p-button {
|
|
182
|
-
border-start-start-radius: dt('inputgroup.addon.border.radius');
|
|
183
|
-
border-end-start-radius: dt('inputgroup.addon.border.radius');
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.p-inputgroup:has(> p-button:last-child) .p-button {
|
|
187
|
-
border-start-end-radius: dt('inputgroup.addon.border.radius');
|
|
188
|
-
border-end-end-radius: dt('inputgroup.addon.border.radius');
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.p-inputgroup > p-inputmask > .p-inputtext {
|
|
192
|
-
width: 100%;
|
|
193
|
-
}
|
|
194
|
-
`,Jt={root:({instance:t})=>["p-inputgroup",{"p-inputgroup-fluid":t.fluid}]},Pt=(()=>{class t extends Z{name="inputgroup";style=Qt;classes=Jt;static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();var Et=new L("INPUTGROUP_INSTANCE"),Te=(()=>{class t extends U{_componentStyle=u(Pt);$pcInputGroup=u(Et,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(_,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275cmp=b({type:t,selectors:[["p-inputgroup"],["p-inputGroup"],["p-input-group"]],hostVars:2,hostBindings:function(n,i){n&2&&N(i.cn(i.cx("root"),i.styleClass))},inputs:{styleClass:"styleClass"},features:[$([Pt,{provide:Et,useExisting:t},{provide:q,useExisting:t}]),H([_]),W],ngContentSelectors:Ut,decls:1,vars:0,template:function(n,i){n&1&&(j(),R(0))},dependencies:[ve],encapsulation:2})}return t})();var Kt=["*"],Xt={root:"p-inputgroupaddon"},Nt=(()=>{class t extends Z{name="inputgroupaddon";classes=Xt;static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),Ot=new L("INPUTGROUPADDON_INSTANCE"),we=(()=>{class t extends U{_componentStyle=u(Nt);$pcInputGroupAddon=u(Ot,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(_,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}style;styleClass;get hostStyle(){return this.style}static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275cmp=b({type:t,selectors:[["p-inputgroup-addon"],["p-inputGroupAddon"]],hostVars:4,hostBindings:function(n,i){n&2&&(G(i.hostStyle),N(i.cn(i.cx("root"),i.styleClass)))},inputs:{style:"style",styleClass:"styleClass"},features:[$([Nt,{provide:Ot,useExisting:t},{provide:q,useExisting:t}]),H([_]),W],ngContentSelectors:Kt,decls:1,vars:0,template:function(n,i){n&1&&(j(),R(0))},dependencies:[ve],encapsulation:2})}return t})();var Vt=(()=>{let p=class p{constructor(){this.form=B(),this.onSubmit=pe()}onSubmitHandler(){this.onSubmit.emit(this.form().getRawValue())}};p.\u0275fac=function(i){return new(i||p)},p.\u0275cmp=b({type:p,selectors:[["app-dialog-form-create"]],inputs:{form:[1,"form"]},outputs:{onSubmit:"onSubmit"},decls:57,vars:1,consts:[[1,"row","row-gap-2",3,"formGroup"],[1,"col-12"],[1,"form-group"],["for","",1,"fs-3","fw-semibold"],["formControlName","name","type","text","pInputText","",1,"form-control"],[1,"col-6"],["formControlName","paperWidthCM","pInputText",""],["formControlName","paperWidth","pInputText",""],["formControlName","stickerWidthCM","pInputText",""],["formControlName","stickerWidth","pInputText",""],["formControlName","stickerHeightCM","pInputText",""],["formControlName","stickerHeight","pInputText",""]],template:function(i,a){i&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),l(4,"Label Name"),r(),d(5,"input",4),r()(),o(6,"div",5)(7,"div",2)(8,"label",3),l(9,"Paper Width"),r(),o(10,"p-inputgroup"),d(11,"input",6),o(12,"p-inputgroup-addon")(13,"span"),l(14,"cm"),r()()()()(),o(15,"div",5)(16,"div",2),d(17,"label",3),o(18,"p-inputgroup"),d(19,"input",7),o(20,"p-inputgroup-addon")(21,"span"),l(22,"px"),r()()()()(),o(23,"div",5)(24,"div",2)(25,"label",3),l(26,"Sticker Width"),r(),o(27,"p-inputgroup"),d(28,"input",8),o(29,"p-inputgroup-addon")(30,"span"),l(31,"cm"),r()()()()(),o(32,"div",5)(33,"div",2),d(34,"label",3),o(35,"p-inputgroup"),d(36,"input",9),o(37,"p-inputgroup-addon")(38,"span"),l(39,"px"),r()()()()(),o(40,"div",5)(41,"div",2)(42,"label",3),l(43,"Sticker Height"),r(),o(44,"p-inputgroup"),d(45,"input",10),o(46,"p-inputgroup-addon")(47,"span"),l(48,"cm"),r()()()()(),o(49,"div",5)(50,"div",2),d(51,"label",3),o(52,"p-inputgroup"),d(53,"input",11),o(54,"p-inputgroup-addon")(55,"span"),l(56,"px"),r()()()()()()),i&2&&f("formGroup",a.form())},dependencies:[z,de,ce,ue,me,fe,Te,we,xe],encapsulation:2});let t=p;return t})();var Ft=(()=>{let p=class p{constructor(){this.form=B(),this.onSubmit=pe()}onSubmitHandler(){this.onSubmit.emit(this.form().getRawValue())}};p.\u0275fac=function(i){return new(i||p)},p.\u0275cmp=b({type:p,selectors:[["app-dialog-form-edit"]],inputs:{form:[1,"form"]},outputs:{onSubmit:"onSubmit"},decls:57,vars:1,consts:[[1,"row","row-gap-2",3,"formGroup"],[1,"col-12"],[1,"form-group"],["for","",1,"fs-3","fw-semibold"],["formControlName","name","type","text","pInputText","",1,"form-control"],[1,"col-6"],["formControlName","paperWidthCM","pInputText",""],["formControlName","paperWidth","pInputText",""],["formControlName","stickerWidthCM","pInputText",""],["formControlName","stickerWidth","pInputText",""],["formControlName","stickerHeightCM","pInputText",""],["formControlName","stickerHeight","pInputText",""]],template:function(i,a){i&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),l(4,"Label Name"),r(),d(5,"input",4),r()(),o(6,"div",5)(7,"div",2)(8,"label",3),l(9,"Paper Width"),r(),o(10,"p-inputgroup"),d(11,"input",6),o(12,"p-inputgroup-addon")(13,"span"),l(14,"cm"),r()()()()(),o(15,"div",5)(16,"div",2),d(17,"label",3),o(18,"p-inputgroup"),d(19,"input",7),o(20,"p-inputgroup-addon")(21,"span"),l(22,"px"),r()()()()(),o(23,"div",5)(24,"div",2)(25,"label",3),l(26,"Sticker Width"),r(),o(27,"p-inputgroup"),d(28,"input",8),o(29,"p-inputgroup-addon")(30,"span"),l(31,"cm"),r()()()()(),o(32,"div",5)(33,"div",2),d(34,"label",3),o(35,"p-inputgroup"),d(36,"input",9),o(37,"p-inputgroup-addon")(38,"span"),l(39,"px"),r()()()()(),o(40,"div",5)(41,"div",2)(42,"label",3),l(43,"Sticker Height"),r(),o(44,"p-inputgroup"),d(45,"input",10),o(46,"p-inputgroup-addon")(47,"span"),l(48,"cm"),r()()()()(),o(49,"div",5)(50,"div",2),d(51,"label",3),o(52,"p-inputgroup"),d(53,"input",11),o(54,"p-inputgroup-addon")(55,"span"),l(56,"px"),r()()()()()()),i&2&&f("formGroup",a.form())},dependencies:[z,de,ce,ue,me,fe,xe,Te,we],encapsulation:2});let t=p;return t})();var ei=()=>({width:"35rem"}),ti=t=>({"border border-primary":t}),ii=(t,p)=>p.ID;function ni(t,p){if(t&1){let e=y();o(0,"div",8)(1,"p-button",9),v("click",function(){h(e);let i=c();return g(i.openCreate())}),r()()}}function oi(t,p){if(t&1){let e=y();o(0,"input",21),v("change",function(){h(e);let i=c(2).$implicit,a=c(2);return g(a.onSelectionChange(i.ID))}),r()}if(t&2){let e=c(2).$implicit,n=c(2);f("value",e.ID)("checked",n.selectedTemplateId()===e.ID)}}function ri(t,p){if(t&1&&(o(0,"div",18)(1,"div",19)(2,"span"),l(3),r()(),o(4,"div",16),I(5,oi,1,2,"input",20),r()()),t&2){let e=c().$implicit,n=c(2);m(3),je(e.ConfigObject.Name),m(2),D(n.selectedTemplateId()===e.ID?5:-1)}}function pi(t,p){if(t&1){let e=y();o(0,"div",22)(1,"p-button",23),v("onClick",function(i){h(e);let a=He(3),s=c().$implicit,C=c(2);return g(C.onMenuToggle(i,a,s.ID))}),r(),d(2,"p-menu",24,4),r()}if(t&2){let e=c(3);m(),f("outlined",!0),m(),f("model",e.menuItems())("popup",!0)}}function ai(t,p){if(t&1){let e=y();o(0,"div",12)(1,"p-card",13),v("click",function(){let i=h(e).$implicit,a=c(2);return g(a.onSelectionChange(i.ID))}),T(2,ri,6,2,"ng-template",null,3,k),o(4,"div",14)(5,"div",15),l(6,"Paper Width"),r(),o(7,"div",16)(8,"div",17)(9,"span"),l(10),V(11,"number"),r(),o(12,"span"),l(13,"/"),r(),o(14,"span"),l(15),V(16,"number"),r()()()(),o(17,"div",14)(18,"div",15),l(19,"Sticker Width"),r(),o(20,"div",16)(21,"div",17)(22,"span"),l(23),V(24,"number"),r(),o(25,"span"),l(26,"/"),r(),o(27,"span"),l(28),V(29,"number"),r()()()(),o(30,"div",14)(31,"div",15),l(32,"Sticker Height"),r(),o(33,"div",16)(34,"div",17)(35,"span"),l(36),V(37,"number"),r(),o(38,"span"),l(39,"/"),r(),o(40,"span"),l(41),V(42,"number"),r()()()(),T(43,pi,4,3,"ng-template",null,2,k),r()()}if(t&2){let e=p.$implicit,n=c(2);m(),f("ngClass",re(19,ti,n.selectedTemplateId()===e.ID)),m(9),O("",F(11,7,e.ConfigObject.PaperWidthCM),"cm"),m(5),O("",F(16,9,e.ConfigObject.PaperWidth),"px"),m(8),O("",F(24,11,e.ConfigObject.StickerWidthCM),"cm"),m(5),O("",F(29,13,e.ConfigObject.StickerWidth),"px"),m(8),O("",F(37,15,e.ConfigObject.StickerHeightCM),"cm"),m(5),O("",F(42,17,e.ConfigObject.StickerHeight),"px")}}function li(t,p){if(t&1&&(o(0,"p-card",10)(1,"div",11),Le(2,ai,45,21,"div",12,ii),r()()),t&2){let e=c();m(2),We(e.profileTemplates())}}function si(t,p){if(t&1){let e=y();o(0,"div",25)(1,"p-button",26),v("onClick",function(){h(e);let i=c();return g(i.onNextStep())}),r()()}if(t&2){let e=c();m(),f("disabled",!e.hasSelectedTemplate())}}function di(t,p){if(t&1){let e=y();o(0,"app-dialog-form-edit",27),v("onSubmit",function(i){h(e);let a=c();return g(a.onDialogFormEdit(i))}),r()}if(t&2){let e=c();f("form",e.form)}}function ci(t,p){if(t&1){let e=y();o(0,"app-dialog-form-create",27),v("onSubmit",function(i){h(e);let a=c();return g(a.onDialogFormCreate(i))}),r()}if(t&2){let e=c();f("form",e.form)}}function ui(t,p){if(t&1){let e=y();o(0,"p-button",28),v("onClick",function(){h(e);let i=c();return g(i.closeDialog())}),r(),o(1,"p-button",29),v("onClick",function(){h(e);let i=c();return g(i.onSubmit())}),r()}}var Bt=(()=>{let p=class p{constructor(){this.templateService=u(bt),this.appStore=u(he),this.profileTemplates=M(null),this.fb=u(Ye),this.router=u(Xe),this.route=u(Ke),this.selectedTemplateId=M(null),this.profileTemplateDefault=M(null),this.dialogVisible=M(!1),this.dialogMode=M(null),this.menuItems=M([]),this.isPatching=M(!1),this.isFirstRun=!0,this.hasSelectedTemplate=J(()=>this.selectedTemplateId()!=null)}initDialogState(){this.route.queryParamMap.pipe(S(n=>{let i=n.get("dialog"),a=n.get("id");if(i==="create"){this.dialogMode.update(s=>"create"),this.dialogVisible.update(s=>!0),this.selectedTemplateId.update(s=>null),this.form.reset();return}if(i==="edit"&&a){this.dialogMode.update(s=>"edit"),this.dialogVisible.update(s=>!0),this.selectedTemplateId.update(s=>a),this.handleTemplateEdit(a);return}this.dialogVisible.update(s=>!1),this.dialogMode.update(s=>null),this.selectedTemplateId.update(s=>null)})).subscribe()}ngOnInit(){this.closeDialog(),this.initForm(),this.loadData(),this.initMenuItems(),this.initDialogState(),this.templateService.getDefaultPaperTemplate().pipe(_e("Default template loaded"),S(n=>this.profileTemplateDefault.update(i=>n))).subscribe(),this.linkControls(this.form.controls.paperWidth,this.form.controls.paperWidthCM,Se,ye),this.linkControls(this.form.controls.stickerWidth,this.form.controls.stickerWidthCM,Se,ye),this.linkControls(this.form.controls.stickerHeight,this.form.controls.stickerHeightCM,Se,ye)}ngAfterViewInit(){let n=localStorage.getItem(K.SelectedProfileTemplate);if(n)try{let i=JSON.parse(n);i?.ID!=null&&(this.selectedTemplateId.set(i.ID),this.appStore.updateProfileTemplate(i))}catch(i){console.warn("Failed to parse selected profile template from localStorage",i),localStorage.removeItem(K.SelectedProfileTemplate)}}onDialogFormEdit(n){Object.assign(this.form.value,n)}onDialogFormCreate(n){Object.assign(this.form.value,n)}initMenuItems(){this.menuItems.update(n=>[...n,{label:"Edit",command:i=>{this.openEdit(i.item.id)}},{label:"Copy",command:i=>{this.onCopyTemplate(i.item.id)}},{label:"Delete",command:i=>{this.onDeleteTemplate(i.item.id)}}])}handleTemplateEdit(n){this.templateService.getPaperTemplatesById(n).pipe(S(({ConfigObject:{Name:i,PaperWidth:a,PaperWidthCM:s,StickerWidth:C,StickerWidthCM:x,StickerHeight:X,StickerHeightCM:P}})=>{this.isPatching.update(ke=>!0),this.form.patchValue({name:i,paperWidth:a,paperWidthCM:s,stickerWidth:C,stickerWidthCM:x,stickerHeight:X,stickerHeightCM:P}),this.isPatching.update(ke=>!1)})).subscribe()}linkControls(n,i,a,s){n.valueChanges.pipe(Ie(),Me(()=>!this.isPatching()),S(C=>{if(C!=null){let x=a(C);i.setValue(x,{emitEvent:!1})}})).subscribe(),i.valueChanges.pipe(Ie(),Me(()=>!this.isPatching()),S(C=>{if(C!=null){let x=s(C);n.setValue(x,{emitEvent:!1})}})).subscribe()}loadData(){let n=`https://${localStorage.getItem(K.Host)}/`;Ve({templates:this.templateService.getBarcodeTemplate().pipe(ie(i=>(console.error("Failed to load templates:",i),te([])))),outlets:this.templateService.getListOutlet(n).pipe(ie(i=>(console.error("Failed to load outlets:",i),te([])))),taxes:this.templateService.getListTax(n).pipe(ie(i=>(console.error("Failed to load taxes:",i),te([]))))}).pipe(S(({templates:i,outlets:a,taxes:s})=>{this.appStore.updateOutlets(a),this.appStore.updateTaxes(s),this.profileTemplates.set(i)}),_e("All template data loaded (even if some failed)")).subscribe()}onMenuToggle(n,i,a){n.stopPropagation(),i.toggle(n),this.menuItems().forEach(s=>s.id=a)}initForm(){this.form=this.fb.group({paperWidthCM:void 0,name:this.fb.control(null),paperWidth:this.fb.control(null),stickerWidth:this.fb.control(null),stickerWidthCM:this.fb.control(null),stickerHeight:this.fb.control(null),stickerHeightCM:this.fb.control(null)})}onSelectionChange(n){return ee(this,null,function*(){this.selectedTemplateId.update(i=>n)})}onSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}let{name:n,paperWidth:i,paperWidthCM:a,stickerWidth:s,stickerWidthCM:C,stickerHeight:x,stickerHeightCM:X}=this.form.value;if(this.route.snapshot.queryParamMap.has("id")){let P=this.profileTemplates().findIndex(At=>At.ID===this.route.snapshot.queryParamMap.get("id"));if(P===-1)return;let ke=Y(E({},this.profileTemplates()[P]),{ConfigObject:Y(E({},this.profileTemplates()[P].ConfigObject),{Name:n,PaperWidth:+i,PaperWidthCM:+a,StickerWidth:+s,StickerWidthCM:+C,StickerHeight:+x,StickerHeightCM:+X})});this.templateService.updatePaperTemplate(this.route.snapshot.queryParamMap.get("id"),ke).pipe(S(()=>ee(this,null,function*(){this.loadData(),this.closeDialog()}))).subscribe()}else{let P={ConfigObject:Y(E({},this.profileTemplateDefault()),{Name:n,PaperWidth:+i,PaperWidthCM:+a,StickerWidth:+s,StickerWidthCM:+C,StickerHeight:+x,StickerHeightCM:+X})};this.templateService.savePaperTemplate(P).pipe(_e("Template saved"),S(()=>ee(this,null,function*(){this.loadData(),this.closeDialog()}))).subscribe()}}openCreate(){this.router.navigate([],{queryParams:{dialog:"create"},queryParamsHandling:"merge"})}openEdit(n){this.router.navigate([],{queryParams:{dialog:"edit",id:n},queryParamsHandling:"merge"})}closeDialog(){this.router.navigate([],{queryParams:{},replaceUrl:!0})}onDeleteTemplate(n){this.templateService.deletePaperTemplate(n).pipe(S(()=>{this.loadData()})).subscribe(),setTimeout(()=>{document.querySelector(".p-menu-overlay")?.remove()},100)}onCopyTemplate(n){this.templateService.copyPaperTemplate(n).pipe(S(()=>{this.loadData()})).subscribe(),setTimeout(()=>{document.querySelector(".p-menu-overlay")?.remove()},100)}onPreviousStep(){this.appStore.updateCurrentStep(this.appStore.currentStep()-1)}onNextStep(){this.appStore.updateCurrentStep(this.appStore.currentStep()+1);let n=this.profileTemplates().find(i=>i.ID===this.selectedTemplateId());this.appStore.updateProfileTemplate(n),localStorage.setItem(K.SelectedProfileTemplate,JSON.stringify(n))}};p.\u0275fac=function(i){return new(i||p)},p.\u0275cmp=b({type:p,selectors:[["app-choose-profile-template"]],decls:12,vars:9,consts:[["actionButton",""],["content",""],["footer",""],["title",""],["menu",""],["pageTitle","Choose Paper Template"],["appendTo","body",3,"visibleChange","closable","header","modal","visible"],[3,"form"],[1,"d-flex","gap-2","justify-content-end","align-items-center"],["label","Add",3,"click"],[1,"p-2","m-3"],[1,"row","row-gap-4"],[1,"col-12","col-md-6","col-lg-4","col-xl-3"],[3,"click","ngClass"],[1,"row","fs-3"],[1,"col"],[1,"col","d-flex","justify-content-end"],[1,"d-flex","gap-2"],[1,"row"],[1,"col-10"],["type","radio","name","selectedCategory",1,"p-radiobutton-box",3,"value","checked"],["type","radio","name","selectedCategory",1,"p-radiobutton-box",3,"change","value","checked"],[1,"d-flex","justify-content-end","border-top","py-2"],["icon","fa-solid fa-ellipsis","severity","secondary","styleClass","py-1",1,"fs-2",3,"onClick","outlined"],["appendTo","body",3,"model","popup"],[1,"d-flex","justify-content-end","gap-2","py-2","px-3"],["label","Next","severity","info",3,"onClick","disabled"],[3,"onSubmit","form"],["label","Cancel","severity","secondary",3,"onClick"],["label","Save","severity","secondary",3,"onClick"]],template:function(i,a){if(i&1){let s=y();o(0,"app-main-panel",5),T(1,ni,2,0,"ng-template",null,0,k)(3,li,4,0,"ng-template",null,1,k)(5,si,2,1,"ng-template",null,2,k),r(),o(7,"p-dialog",6),$e("visibleChange",function(x){return h(s),Ge(a.dialogVisible,x)||(a.dialogVisible=x),g(x)}),I(8,di,1,1,"app-dialog-form-edit",7),I(9,ci,1,1,"app-dialog-form-create",7),T(10,ui,2,0,"ng-template",null,2,k),r()}i&2&&(m(7),G(ze(8,ei)),f("closable",!1)("header",a.dialogMode()=="create"?"Create New Label":"Edit New Label")("modal",!0),Re("visible",a.dialogVisible),m(),D(a.dialogMode()=="edit"?8:-1),m(),D(a.dialogMode()=="create"?9:-1))},dependencies:[gt,z,tt,le,qe,vt,ht,It,Ct,ft,et,Vt,Ft,Je],styles:['[_nghost-%COMP%]{display:block;height:100%}input[type=radio][_ngcontent-%COMP%]{appearance:none;width:18px;height:18px;border:2px solid #ced4da;border-radius:50%;outline:none;cursor:pointer;position:relative}input[type=radio][_ngcontent-%COMP%]:checked{border-color:#3b82f6}input[type=radio][_ngcontent-%COMP%]:checked:after{content:"";position:absolute;top:50%;left:50%;width:8px;height:8px;background:#3b82f6;border-radius:50%;transform:translate(-50%,-50%)}'],changeDetection:0});let t=p;return t})();function mi(t,p){t&1&&d(0,"app-choose-profile-template")}function fi(t,p){t&1&&d(0,"choose-product")}function hi(t,p){if(t&1&&d(0,"app-barcode-preview",1),t&2){let e=p.$implicit;f("cartItems",e)}}function gi(t,p){t&1&&(o(0,"app-customize-label"),T(1,hi,1,1,"ng-template",null,0,k),r())}function bi(t,p){t&1&&d(0,"app-print-preview")}var uo=(()=>{let p=class p{constructor(){this.storeService=u(it),this.appStore=u(he)}get cartItems(){return this.appStore.flattenedCartUnits()}};p.\u0275fac=function(i){return new(i||p)},p.\u0275cmp=b({type:p,selectors:[["app-barcode-wrapper"]],decls:4,vars:1,consts:[["content",""],["previewMode","single",3,"cartItems"]],template:function(i,a){if(i&1&&I(0,mi,1,0,"app-choose-profile-template")(1,fi,1,0,"choose-product")(2,gi,3,0,"app-customize-label")(3,bi,1,0,"app-print-preview"),i&2){let s;D((s=a.appStore.currentStep())===1?0:s===2?1:s===3?2:s===4?3:-1)}},dependencies:[Bt,_t,xt,yt,St],encapsulation:2});let t=p;return t})();export{uo as BarcodeWrapperComponent};
|