@pronto-tools-and-more/files 13.8.0 → 13.10.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/files/framework-latest/src/default/storefront/buildInfo.json +3 -3
- package/files/framework-latest/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +5 -4
- package/files/framework-latest/src/default/storefront/index.html +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/main.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-featured-image_content-featured-c9ba26.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_widget_widget_module_ts.js +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts","projects_storefront_src_app_directive_check-overflow_check-overflow_directive_ts"],{541:(D,g,o)=>{o.r(g),o.d(g,{EmbeddableViewModule:()=>Q,component:()=>A});var c=o(177),m=o(9379),v=o(467),e=o(3953),C=o(1210),p=o(8251),h=o(
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts","projects_storefront_src_app_directive_check-overflow_check-overflow_directive_ts"],{541:(D,g,o)=>{o.r(g),o.d(g,{EmbeddableViewModule:()=>Q,component:()=>A});var c=o(177),m=o(9379),v=o(467),e=o(3953),C=o(1210),p=o(8251),h=o(7031),f=o(8179),b=o(3178),d=o(7598),V=o(2962),S=o(873),O=o(4452),L=o(5102),u=o(8474),R=o(7879),E=o(2868),w=o(680);const _=["content"];function k(n,a){}function G(n,a){if(1&n&&e.DNE(0,k,0,0,"ng-template",4),2&n){const l=a.$implicit,t=e.XpG();e.Y8G("baseConfig",t.children[t.enabledChildIndices[l]])}}function T(n,a){}function j(n,a){if(1&n){const l=e.RV6();e.DNE(0,T,0,0,"ng-template",5),e.bIt("inViewport",function(i){const s=e.eBV(l).index,r=e.XpG();return e.Njj(r.onVisibilityChanged(s,i))})}if(2&n){const l=a.$implicit,t=e.XpG();e.Y8G("baseConfig",t.children[l])("baseContext",t.context)("controlsSticky",t.children[l].sticky)("lazy",!0)}}let x=(()=>{var n;class a extends C.${constructor(){super(...arguments),this.injector=(0,e.WQX)(e.zZn),this.store=(0,e.WQX)(p.B),this.dataShareService=(0,e.WQX)(u.j),this.purpleService=(0,e.WQX)(L.Wj),this.purpleEnv=(0,e.WQX)(R.r6),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.children=[],this.enabledChildIndices=[],this.visibleStickyChildren=new Set,this.defaultConfig={name:"",embeddedParams:{}}}get className(){return(this.config||this.baseConfig).name}ngOnInit(){super.ngOnInit(),this.reflectEmbeddedParams()}onConfigChanges(){var t=this;this.content&&this.content.nativeElement.addEventListener("scroll",s=>this.onScroll(s),{passive:!0});let i=!0;this.store.select((0,h.Kv)(this.config.name,this.contextService.getCurrentViewContext(),this.contextService.$functions,this.globalService.getGlobalData()),function(){var s=(0,v.A)(function*(r){t.children=r&&r.content,t.store.subscribe(t.contextService.viewContext$,function(){var z=(0,v.A)(function*(y){t.context=(0,m.A)((0,m.A)({},t.context),y),i&&(t.loadDataSources(r),i=!1),t.children.length&&(yield t.updateChildren())});return function(y){return z.apply(this,arguments)}}(),b.lQ,b.lQ,"viewContext")});return function(r){return s.apply(this,arguments)}}(),b.lQ,b.lQ,"view"),this.changeDetectorRef.markForCheck()}onVisibilityChanged(t,i){i?this.visibleStickyChildren.delete(t):this.visibleStickyChildren.add(t)}onScroll(t){(0,V.IL)(t.target)<=S._&&window.dispatchEvent(new CustomEvent(d.Zm,{detail:{emitter:this.elementRef.nativeElement}}))}updateChildren(){var t=this;return(0,v.A)(function*(){const i=[];if(t.children.forEach((s,r)=>{(0,f.ru)(s,t.context,t.contextService.$functions,t.globalService.getGlobalData(),!1)&&i.push(r)}),JSON.stringify(i)!==JSON.stringify(t.enabledChildIndices)){t.enabledChildIndices=i,t.changeDetectorRef.detectChanges();for(const s of t.childComponents)yield s.lazyLoad()}})()}loadDataSources(t){const i=t.data;i&&i.forEach(s=>{s=(0,f.uQ)(s,this.context,this.contextService.$functions,this.globalService.getGlobalData());const r=(0,O.O8)(this.injector,s,this.elementRef.nativeElement,this.document);r&&r.loadData()})}hasContextChanged(t){return!1}reflectEmbeddedParams(){var t;if(null!==(t=this.baseConfig)&&void 0!==t&&t.embeddedParams&&Object.keys(this.baseConfig.embeddedParams).length){let i={};this.context.embeddedParams&&(i=(0,m.A)({},this.context.embeddedParams)),Object.keys(this.baseConfig.embeddedParams).forEach(s=>{i[s]=(0,f.uQ)(this.baseConfig.embeddedParams[s],this.context,this.contextService.$functions,this.globalService.getGlobalData())}),this.dataShareService.embeddedParams=(0,m.A)({},i),this.setComponentContext("embeddedParams",(0,m.A)({},i))}}}return(n=a).\u0275fac=(()=>{let l;return function(i){return(l||(l=e.xGo(n)))(i||n)}})(),n.\u0275cmp=e.VBU({type:n,selectors:[["storefront-embeddable-view"]],viewQuery:function(t,i){if(1&t&&(e.GBs(_,5,e.aKT),e.GBs(E.q,5)),2&t){let s;e.mGM(s=e.lsd())&&(i.content=s.first),e.mGM(s=e.lsd())&&(i.childComponents=s)}},hostVars:2,hostBindings:function(t,i){2&t&&e.HbH(i.className)},standalone:!1,features:[e.Jv_([p.B,u.j]),e.Vt3],decls:5,vars:3,consts:[["content",""],[1,"sticky-elements"],[4,"ngFor","ngForOf"],["storefrontCheckOverflowTarget","self",1,"content",3,"storefrontCheckOverflow"],[3,"pxpDynamicComponent","baseConfig"],[3,"inViewport","pxpDynamicComponent","baseConfig","baseContext","controlsSticky","lazy"]],template:function(t,i){1&t&&(e.j41(0,"div",1),e.DNE(1,G,1,1,null,2),e.k0s(),e.j41(2,"div",3,0),e.DNE(4,j,1,4,null,2),e.k0s()),2&t&&(e.R7$(),e.Y8G("ngForOf",i.visibleStickyChildren),e.R7$(),e.Y8G("storefrontCheckOverflow","vertical"),e.R7$(2),e.Y8G("ngForOf",i.enabledChildIndices))},dependencies:[c.Sq,E.q,w.G],styles:["storefront-embeddable-view,.pxp-embeddable-view{display:block;height:100%}storefront-embeddable-view .content,.pxp-embeddable-view .content{height:100%;overflow-y:auto}storefront-embeddable-view .sticky-elements,.pxp-embeddable-view .sticky-elements{position:absolute;width:100%;z-index:19}\n"],encapsulation:2,changeDetection:0}),a})();var P=o(728),I=o(8301);const M=["class","pxp-embeddable-view"];function $(n,a){}function B(n,a){if(1&n&&e.DNE(0,$,0,0,"ng-template",4),2&n){const l=a.$implicit,t=e.XpG();e.Y8G("baseConfig",t.children[t.enabledChildIndices[l]])}}function W(n,a){}function F(n,a){if(1&n){const l=e.RV6();e.DNE(0,W,0,0,"ng-template",5),e.bIt("inViewport",function(i){const s=e.eBV(l).index,r=e.XpG();return e.Njj(r.onVisibilityChanged(s,i))})}if(2&n){const l=a.$implicit,t=e.XpG();e.Y8G("baseConfig",t.children[l])("baseContext",t.context)("controlsSticky",t.children[l].sticky)("lazy",!0)}}let N=(()=>{var n;class a extends x{}return(n=a).\u0275fac=(()=>{let l;return function(i){return(l||(l=e.xGo(n)))(i||n)}})(),n.\u0275cmp=e.VBU({type:n,selectors:[["div",8,"pxp-embeddable-view"]],standalone:!1,features:[e.Jv_([p.B,u.j]),e.Vt3],attrs:M,decls:5,vars:3,consts:[["content",""],[1,"sticky-elements"],[4,"ngFor","ngForOf"],["storefrontCheckOverflowTarget","self",1,"content",3,"storefrontCheckOverflow"],[3,"pxpDynamicComponent","baseConfig"],[3,"inViewport","pxpDynamicComponent","baseConfig","baseContext","controlsSticky","lazy"]],template:function(t,i){1&t&&(e.j41(0,"div",1),e.DNE(1,B,1,1,null,2),e.k0s(),e.j41(2,"div",3,0),e.DNE(4,F,1,4,null,2),e.k0s()),2&t&&(e.R7$(),e.Y8G("ngForOf",i.visibleStickyChildren),e.R7$(),e.Y8G("storefrontCheckOverflow","vertical"),e.R7$(2),e.Y8G("ngForOf",i.enabledChildIndices))},dependencies:[c.Sq,E.q,w.G],styles:["storefront-embeddable-view,.pxp-embeddable-view{display:block;height:100%}storefront-embeddable-view .content,.pxp-embeddable-view .content{height:100%;overflow-y:auto}storefront-embeddable-view .sticky-elements,.pxp-embeddable-view .sticky-elements{position:absolute;width:100%;z-index:19}\n"],encapsulation:2,changeDetection:0}),a})(),Q=(()=>{var n;class a{}return(n=a).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[c.MD,P.wb,I.d]}),a})();const A={component:x,leanDomComponent:N}},680:(D,g,o)=>{o.d(g,{G:()=>p});var c=o(3953),m=o(7786),v=o(3726),e=o(8890),C=o(8251);let p=(()=>{var h;class f{constructor(){this.elementRef=(0,c.WQX)(c.aKT),this.subscriptions=(0,c.WQX)(C.v),this.storefrontCheckOverflowTarget="parent"}ngOnChanges(){this.checkScrollable()}ngAfterViewInit(){this.ngOnChanges(),this.target="parent"===this.storefrontCheckOverflowTarget?this.elementRef.nativeElement.parentNode:this.elementRef.nativeElement,this.subscriptions.subscribe((0,m.h)((0,e.Ne)(),(0,v.R)(this.elementRef.nativeElement,"scroll",{passive:!0}),(0,e.S8)(this.elementRef.nativeElement)),d=>this.checkScrollable()),this.checkScrollable()}ngOnInit(){}checkScrollable(){this.target&&("horizontal"===this.storefrontCheckOverflow?this.checkScrollableHorizontal():this.checkScrollableVertical(),this.target.classList.add("initialized"))}checkScrollableVertical(){const d=this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight;this.elementRef.nativeElement.scrollHeight>this.elementRef.nativeElement.clientHeight?(this.target.classList.add("scrollable-vert"),Math.abs(d-this.elementRef.nativeElement.scrollTop)>1?this.target.classList.add("scrollable-bottom"):this.target.classList.remove("scrollable-bottom"),this.elementRef.nativeElement.scrollTop>0?this.target.classList.add("scrollable-top"):this.target.classList.remove("scrollable-top")):(this.target.classList.remove("scrollable-vert"),this.target.classList.remove("scrollable-bottom"),this.target.classList.remove("scrollable-top"))}checkScrollableHorizontal(){const d=this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth;this.elementRef.nativeElement.scrollWidth>this.elementRef.nativeElement.clientWidth?(this.target.classList.add("scrollable-horiz"),Math.abs(d-this.elementRef.nativeElement.scrollLeft)>1?this.target.classList.add("scrollable-right"):this.target.classList.remove("scrollable-right"),this.elementRef.nativeElement.scrollLeft>0?this.target.classList.add("scrollable-left"):this.target.classList.remove("scrollable-left")):(this.target.classList.remove("scrollable-horiz"),this.target.classList.remove("scrollable-left"),this.target.classList.remove("scrollable-right"))}}return(h=f).\u0275fac=function(d){return new(d||h)},h.\u0275dir=c.FsC({type:h,selectors:[["","storefrontCheckOverflow",""]],inputs:{storefrontCheckOverflow:"storefrontCheckOverflow",storefrontCheckOverflowTarget:"storefrontCheckOverflowTarget"},standalone:!1,features:[c.Jv_([C.v]),c.OA$]}),f})()}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_widget_widget_module_ts"],{9443:(
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_widget_widget_module_ts"],{9443:(G,f,s)=>{s.r(f),s.d(f,{WidgetModule:()=>j,component:()=>F});var p=s(177),C=s(467),T=s(9379),o=s(3953),W=s(8179),E=s(1210);const y={name:"demo",widgetId:"demo",params:{}};let b=(()=>{var t;class a{removeResources(e){this.loadedResources.delete(e)}constructor(){this.loadedResources=new Map}addRessource(e,i){const n=this.loadedResources.get(e)||[];n.push(i),this.loadedResources.set(e,n)}removeResource(e,i){const n=this.loadedResources.get(e)||[];n.splice(n.indexOf(i),1),this.loadedResources.set(e,n)}resourceExist(e,i){var n;return(null===(n=this.loadedResources.get(e))||void 0===n?void 0:n.indexOf(i))>-1}}return(t=a).\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}),a})();var c=function(t){return t.JUST_AFTER="just_after_element",t.JUST_BEFORE="just_before_element",t.TOP="top",t.BOTTOM="bottom",t}(c||{}),m=function(t){return t.SCRIPT="script",t.LINK="link",t}(m||{}),g=s(8251),S=s(7031),D=s(6843),O=s(312),B=s(6078),h=s(7370),M=s(7879);const x=["viewTemplate"];let v=(()=>{var t;class a extends E.${constructor(){super(...arguments),this.widgetService=(0,o.WQX)(b),this.store=(0,o.WQX)(g.B),this.bidiRouter=(0,o.WQX)(O.u),this.consentService=(0,o.WQX)(B.e),this.appData=(0,o.WQX)(M.fj),this.defaultConfig=(0,T.A)({},y),this.widgetResources=[]}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this.unloadAllWidgetResources()}onConfigChanges(){var e=this;return(0,C.A)(function*(){if((0,p.UE)(e.platformId)){e.elementRef.nativeElement.innerHTML="";const i=(0,W.uQ)(e.config.widgetId?e.config.widgetId:e.config.id,e.context,e.contextService.$functions,e.globalService.getGlobalData());e.store.select((0,S.jZ)(D.O.GENERIC_WIDGET),n=>{var d;if(e.widgetLibrary=n.find(u=>u.name===e.config.name),!e.widgetLibrary)throw new Error("There is no widget library with the name ".concat(e.config.name));const R=e.widgetLibrary.widgets[i].html;if(!R)throw new Error("There is no widget with id ".concat(i," in ").concat(e.config.name," widget "));const w=document.createElement("template");w.innerHTML=R.trim();let l=w.content.childNodes[0];Object.keys(e.config.params).forEach(u=>{l.setAttribute(u,e.config.params[u])}),e.renderer.appendChild(e.elementRef.nativeElement,l),e.loadResources(l),e.loadResources(l,i),null!==(d=e.config)&&void 0!==d&&d.bidirectionalRouter&&e.bidiRouter.initWidgetRouter(),e.consentService.updateConsent()})}})()}loadResources(e,i){(this.widgetLibrary&&i?this.widgetLibrary.widgets[i].resources:this.widgetLibrary.resources).forEach(d=>{this.createHTMLResourceElement(d,e)})}unloadAllWidgetResources(){this.widgetResources.forEach(e=>{e.remove()}),this.widgetService.removeResources(this)}createHTMLResourceElement(e,i){if(this.widgetService.resourceExist(this,e))return;const n=this.renderer.createElement(e.type);switch(n.setAttribute("defer","defer"),e.type){case m.SCRIPT:e.url&&n.setAttribute("src",(0,h.bT)(e.url,this.appData));break;case m.LINK:e.url&&n.setAttribute("href",(0,h.bT)(e.url,this.appData)),n.setAttribute("rel","stylesheet")}switch(e.content&&(n.innerHTML=e.content),e.properties&&Object.keys(e.properties).forEach(d=>{n.setAttribute(d,e.properties[d])}),e.position){case c.JUST_AFTER:this.elementRef.nativeElement.appendChild(n);break;case c.JUST_BEFORE:this.elementRef.nativeElement.insertBefore(n,i);break;case c.TOP:this.document[e.placement].insertBefore(n,this.document[e.placement].firstChild);break;case c.BOTTOM:this.document[e.placement].appendChild(n)}this.widgetService.addRessource(this,e),this.widgetResources.push(n)}}return(t=a).\u0275fac=(()=>{let r;return function(i){return(r||(r=o.xGo(t)))(i||t)}})(),t.\u0275cmp=o.VBU({type:t,selectors:[["storefront-widget"]],viewQuery:function(e,i){if(1&e&&o.GBs(x,7,o.c1b),2&e){let n;o.mGM(n=o.lsd())&&(i.viewTemplate=n.first)}},standalone:!1,features:[o.Jv_([g.B]),o.Vt3],decls:2,vars:0,consts:[["viewTemplate",""]],template:function(e,i){1&e&&o.eu8(0,null,0)},encapsulation:2}),a})();const A=["class","pxp-widget"];let I=(()=>{var t;class a extends v{}return(t=a).\u0275fac=(()=>{let r;return function(i){return(r||(r=o.xGo(t)))(i||t)}})(),t.\u0275cmp=o.VBU({type:t,selectors:[["div",8,"pxp-widget"]],standalone:!1,features:[o.Jv_([g.B]),o.Vt3],attrs:A,decls:2,vars:0,consts:[["viewTemplate",""]],template:function(e,i){1&e&&o.eu8(0,null,0)},encapsulation:2}),a})(),j=(()=>{var t;class a{}return(t=a).\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.$C({type:t}),t.\u0275inj=o.G2t({imports:[p.MD]}),a})();const F={component:v,leanDomComponent:I}}}]);
|