@gem-sdk/components 17.0.0-dev.126 → 17.0.0-dev.127
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("../../helpers.js"),s=require("../../text/components/Text.liquid.js"),l=require("@gem-sdk/system"),a=require("../common/classes.js"),i=require("../common/styles.js"),r=require("../common/helpers.js");exports.default=c=>{let{builderProps:o,builderAttrs:n,style:p,setting:d,styles:g,pageContext:y}=c,u=o?.builderData?.advanced,$=l.createClass({[o?.uid??""]:!0}),m=l.createClass(a.getClassWraplistIcon()),S=l.createClass(a.getClassColListIcon()),v=l.createClass(a.getClassWrapItemIcon({builderProps:o})),I=l.createClass(a.getClassWrapIcon()),C=l.createClass(a.getClassIcon()),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("../../helpers.js"),s=require("../../text/components/Text.liquid.js"),l=require("@gem-sdk/system"),a=require("../common/classes.js"),i=require("../common/styles.js"),r=require("../common/helpers.js");exports.default=c=>{let{builderProps:o,builderAttrs:n,style:p,setting:d,styles:g,pageContext:y}=c,u=o?.builderData?.advanced,$=l.createClass({[o?.uid??""]:!0}),m=l.createClass(a.getClassWraplistIcon()),S=l.createClass(a.getClassColListIcon()),v=l.createClass(a.getClassWrapItemIcon({builderProps:o})),I=l.createClass(a.getClassWrapIcon()),C=l.createClass(a.getClassIcon()),q=l.createClass(a.getClassTextItem({setting:d})),f=l.createStyle(i.getStyleContainerIconlistMain({styles:g,style:p,type:"liquid",advanced:u})),j=l.createStyle(i.getStyleWraplistIcon({styles:g,uid:o?.uid??"",pageContext:y,type:"Liquid"})),x=l.createStyle(i.getStyleColListIcon({styles:g})),T=l.createStyle(i.getStyleWrapIcon({styles:g,setting:d})),W=l.createStyle(i.getStyleWrapItemIcon({styles:g})),h=l.createStyle(i.getStyleIcon({styles:g,setting:d})),k=i.getStyleTypoText({setting:d}),A=l.createAttr({...n}),E=r.getTextIconNotFound("liquid"),L=r.getvalueMap({setting:d});return e.template`
|
|
2
2
|
{% assign locationOrigin = request.origin | append: routes.root_url | split: '/' | join: '/' %}
|
|
3
3
|
<gp-icon-list
|
|
4
4
|
${{...A}}
|
|
5
5
|
${{...o}}
|
|
6
6
|
data-id="${o?.uid}"
|
|
7
|
-
style="${
|
|
7
|
+
style="${f}"
|
|
8
8
|
className="${$}"
|
|
9
9
|
>
|
|
10
|
-
<script gp-data type="application/json">${
|
|
10
|
+
<script gp-data type="application/json">${e.dataStringify({position:g?.position,iconWidth:d?.iconWidth}).replaceAll("'","'")}</script>
|
|
11
11
|
${l.If(!L||!L.length,e.template`<div>${E}</div>`,e.template`
|
|
12
12
|
<div class="${m}" style="${j}">
|
|
13
13
|
<div class="${S}" style="${x}">
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
${t}
|
|
27
27
|
</span>
|
|
28
28
|
</div>
|
|
29
|
-
${s.default({setting:{text:a?.toString(),htmlTag:"div",options:{customClass:{wrapper:"gp-w-full"}},isForceValue:!0},styles:k,className:
|
|
29
|
+
${s.default({setting:{text:a?.toString(),htmlTag:"div",options:{customClass:{wrapper:"gp-w-full"}},isForceValue:!0},styles:k,className:q})}
|
|
30
30
|
</div>`}).join(" ")}
|
|
31
31
|
</div>
|
|
32
32
|
</div>`)}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import{dataStringify as s,template as i,RenderIf as t,isLocalEnv as e,baseAssetURL as l}from"@gem-sdk/core";import{getSettingPreloadData as o}from"../../helpers.js";import r from"../../text/components/Text.liquid.js";import{createClass as p,createStyle as a,createAttr as d,If as
|
|
1
|
+
import{dataStringify as s,template as i,RenderIf as t,isLocalEnv as e,baseAssetURL as l}from"@gem-sdk/core";import{getSettingPreloadData as o}from"../../helpers.js";import r from"../../text/components/Text.liquid.js";import{createClass as p,createStyle as a,createAttr as d,If as c}from"@gem-sdk/system";import{getClassWraplistIcon as n,getClassColListIcon as m,getClassWrapItemIcon as $,getClassWrapIcon as u,getClassIcon as g,getClassTextItem as v}from"../common/classes.js";import{getStyleContainerIconlistMain as y,getStyleWraplistIcon as f,getStyleColListIcon as j,getStyleWrapIcon as h,getStyleWrapItemIcon as q,getStyleIcon as x,getStyleTypoText as S}from"../common/styles.js";import{getvalueMap as k,getTextIconTranslations as E,getTextIconNotFound as A}from"../common/helpers.js";let N=N=>{let{builderProps:T,builderAttrs:V,style:_,setting:w,styles:C,pageContext:G}=N,I=T?.builderData?.advanced,L=p({[T?.uid??""]:!0}),O=p(n()),W=p(m()),b=p($({builderProps:T})),D=p(u()),F=p(g()),M=p(v({setting:w})),P=a(y({styles:C,style:_,type:"liquid",advanced:I})),R=a(f({styles:C,uid:T?.uid??"",pageContext:G,type:"Liquid"})),z=a(j({styles:C})),B=a(h({styles:C,setting:w})),H=a(q({styles:C})),J=a(x({styles:C,setting:w})),K=S({setting:w}),Q=d({...V}),U=A("liquid"),X=k({setting:w});return i`
|
|
2
2
|
{% assign locationOrigin = request.origin | append: routes.root_url | split: '/' | join: '/' %}
|
|
3
3
|
<gp-icon-list
|
|
4
4
|
${{...Q}}
|
|
5
|
-
${{...
|
|
6
|
-
data-id="${
|
|
7
|
-
style="${
|
|
8
|
-
className="${
|
|
5
|
+
${{...T}}
|
|
6
|
+
data-id="${T?.uid}"
|
|
7
|
+
style="${P}"
|
|
8
|
+
className="${L}"
|
|
9
9
|
>
|
|
10
|
-
<script gp-data type="application/json">${
|
|
11
|
-
${
|
|
12
|
-
<div class="${
|
|
13
|
-
<div class="${W}" style="${
|
|
14
|
-
${X?.map((s,t)=>{let e=E({setting:
|
|
10
|
+
<script gp-data type="application/json">${s({position:C?.position,iconWidth:w?.iconWidth}).replaceAll("'","'")}</script>
|
|
11
|
+
${c(!X||!X.length,i`<div>${U}</div>`,i`
|
|
12
|
+
<div class="${O}" style="${R}">
|
|
13
|
+
<div class="${W}" style="${z}">
|
|
14
|
+
${X?.map((s,t)=>{let e=E({setting:w,builderProps:T,pageContext:G,key:t,type:"liquid"});return i`
|
|
15
15
|
<div
|
|
16
16
|
key="${t}"
|
|
17
17
|
data-index="${t}"
|
|
18
18
|
class="${b}"
|
|
19
|
-
style="${
|
|
19
|
+
style="${H}"
|
|
20
20
|
>
|
|
21
|
-
<div class="${D}" style="${
|
|
21
|
+
<div class="${D}" style="${B}">
|
|
22
22
|
<span
|
|
23
23
|
class="${F}"
|
|
24
|
-
style="${
|
|
24
|
+
style="${J}"
|
|
25
25
|
>
|
|
26
26
|
${s}
|
|
27
27
|
</span>
|
|
28
28
|
</div>
|
|
29
|
-
${r({setting:{text:e?.toString(),htmlTag:"div",options:{customClass:{wrapper:"gp-w-full"}},isForceValue:!0},styles:K,className:
|
|
29
|
+
${r({setting:{text:e?.toString(),htmlTag:"div",options:{customClass:{wrapper:"gp-w-full"}},isForceValue:!0},styles:K,className:M})}
|
|
30
30
|
</div>`}).join(" ")}
|
|
31
31
|
</div>
|
|
32
32
|
</div>`)}
|
|
33
33
|
</gp-icon-list>
|
|
34
34
|
${t(e,`<script ${o('class="gps-link" delay',"src")}="{{ 'gp-icon-list-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${o('class="gps-link" delay',"src")}="${l}/assets-v2/gp-icon-list-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
35
|
-
`};export{
|
|
35
|
+
`};export{N as default};
|