@zealicsolutions/web-ui 1.0.140-beta.46 → 1.0.140-beta.47
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,12 @@
|
|
|
1
|
-
import{jsx as e,Fragment as t}from"../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{css as o}from"../node_modules/@emotion/react/dist/emotion-react.esm.js";import"../contexts/AccountButtonContext/AccountButtonContext.js";import{memo as i,
|
|
1
|
+
import{jsx as e,Fragment as t}from"../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{css as o}from"../node_modules/@emotion/react/dist/emotion-react.esm.js";import"../contexts/AccountButtonContext/AccountButtonContext.js";import{memo as i,useMemo as r}from"react";import"../contexts/ApiContext/ApiContext.js";import"../contexts/ContainerRuntimeContext/ContainerRuntimeContext.js";import"../contexts/FormStepContext/FormStepContext.js";import"../contexts/LayoutContext/LayoutContext.js";import"../theme/theme.js";import"../theme/provider.js";import"../theme/toastStyles.js";import{useMediaQuery as n}from"../theme/useMediaQuery.js";import"../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import"../contexts/OrganismContext/OrganismContext.js";import{useOrganismContext as s}from"../contexts/OrganismContext/useOrganismContext.js";import"../contexts/PopupContext/PopupContext.js";import"../contexts/StateContext/StateContext.js";import a from"../node_modules/react-slick/lib/index.js";import{FormContainer as m}from"./FormContainer.js";import{FormStepContainer as d}from"./FormStepContainer.js";import{ReplicatorContainer as c}from"./ReplicatorContainer/ReplicatorContainer.js";import{getBackgroundImageStyles as l}from"./helpers.js";import{getConfigurationWrapperStyle as p,slickStyles as u}from"./styles.js";import{u as x}from"../node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js";const g={dots:!0,infinite:!1,autoplay:!1,autoplaySpeed:5e3,arrows:!0,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,swipeToSlide:!0},C=i(({id:i,type:C,name:f,config:h,children:j,metadata:y,isMobile:b,properties:S,nestedPathSegments:v=[],replicatorFieldId:I})=>{const k=x(),{props:P,wide:w,compact:F}=h||{},$=I||P?.replicatorFieldId,{isConfigurationMode:_,onConfigurationItemClicked:R,selectedConfigurationItemId:T,currentStyleProperties:B,currentContentProperties:M}=s(),A=T===i,O=A?{backgroundImage:M?.backgroundImage??S?.backgroundImage??{imageFile:{url:""}}}:S,{containerProps:z={},containerStyle:L={}}=w||{};let N={...L};const{containerProps:V={},containerStyle:D={}}=F||{};let E={...D};B&&A&&(E={...D,...B},N={...L,...B});const H=n("xs"),Q=b??H,W=Q?E:N,q=Q?V:z,G={...P,...q,enableBackgroundImage:W?.enableBackgroundImage},J=r(()=>({entityId:i,entityType:C,entityName:f,entity:"container",libraryEntityId:y?.containerLibraryId||void 0}),[C,f,i,y]),K=_?{onClick:e=>{e&&e.stopPropagation(),R(J,!1)},onDoubleClick:e=>{e?.stopPropagation(),R(J,!0)}}:{},U=`${i}.${Q?"mobile":"desktop"}`,X=o`
|
|
2
2
|
display: flex;
|
|
3
|
-
position: relative; /* default containing block for absolute children */
|
|
4
3
|
overflow: visible; /* allow positioned children to overflow */
|
|
5
4
|
box-sizing: border-box; /* normalize across environments */
|
|
6
|
-
${
|
|
7
|
-
${
|
|
8
|
-
${
|
|
9
|
-
`;if("slider"===C||"journey_driven"===C)return e("div",{className:"slider-container",style:{width:"inherit",height:"inherit",display:"block",position:"relative"},...
|
|
10
|
-
${
|
|
11
|
-
${
|
|
12
|
-
`,...
|
|
5
|
+
${W}; /* explicit containerStyle (can override position when needed) */
|
|
6
|
+
${l(G?.enableBackgroundImage,O?.backgroundImage?.imageFile?.url)}
|
|
7
|
+
${_?p({theme:k,selected:A}):void 0}
|
|
8
|
+
`;if("slider"===C||"journey_driven"===C)return e("div",{className:"slider-container",style:{width:"inherit",height:"inherit",display:"block",position:"relative"},...K,children:e(a,{"data-configuration-id":i,fade:"journey_driven"===C,css:o`
|
|
9
|
+
${X};
|
|
10
|
+
${u};
|
|
11
|
+
`,...g,...q,children:j})},U);const Y={form:e(m,{...P?.formProps,children:j}),form_step:e(d,{id:i,...P?.formStepProps,metadata:y,containerProps:G,children:j}),replicator:e(c,{replicatorFieldId:$,nestedPathSegments:v,renderWrapper:(t,o)=>e("div",{id:`${i}-${void 0!==t?t:"single"}`,css:X,"data-configuration-id":i,...K,children:o}),children:j})};return"replicator"===C?e(t,{children:Y.replicator}):e("div",{id:i,className:"zeal-container",css:X,..._?{"data-configuration-id":i}:{},...K,children:Y[C]||j},U)});export{C as Container};
|
|
13
12
|
//# sourceMappingURL=Container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","sources":["../../../../src/containers/Container.tsx"],"sourcesContent":[null],"names":["sliderSettings","dots","infinite","autoplay","autoplaySpeed","arrows","slidesToShow","slidesToScroll","adaptiveHeight","swipeToSlide","Container","memo","id","type","name","config","children","metadata","isMobile","properties","nestedPathSegments","replicatorFieldId","theme","useTheme","
|
|
1
|
+
{"version":3,"file":"Container.js","sources":["../../../../src/containers/Container.tsx"],"sourcesContent":[null],"names":["sliderSettings","dots","infinite","autoplay","autoplaySpeed","arrows","slidesToShow","slidesToScroll","adaptiveHeight","swipeToSlide","Container","memo","id","type","name","config","children","metadata","isMobile","properties","nestedPathSegments","replicatorFieldId","theme","useTheme","props","wide","compact","containerReplicatorFieldId","isConfigurationMode","onConfigurationItemClicked","selectedConfigurationItemId","currentStyleProperties","currentContentProperties","useOrganismContext","selected","mergedProperties","backgroundImage","imageFile","url","containerProps","wideContainerProps","containerStyle","savedWideContainerStyles","wideContainerStyles","compactContainerProps","savedCompactContainerStyles","compactContainerStyles","isXs","useMediaQuery","isMobileProp","styles","mergedContainerProps","enableBackgroundImage","configurationItemData","useMemo","entityId","entityType","entityName","entity","libraryEntityId","containerLibraryId","undefined","configurationsItemInfo","onClick","e","stopPropagation","onDoubleClick","key","containerCss","css","getBackgroundImageStyles","getConfigurationWrapperStyle","_jsx","className","style","width","height","display","position","Slider","fade","slickStyles","containersMap","form","FormContainer","formProps","form_step","FormStepContainer","formStepProps","replicator","ReplicatorContainer","renderWrapper","iterationIndex","innerChildren","_Fragment"],"mappings":"46CAaA,MAAMA,EAA2B,CAC/BC,MAAM,EACNC,UAAU,EACVC,UAAU,EACVC,cAAe,IACfC,QAAQ,EACRC,aAAc,EACdC,eAAgB,EAChBC,gBAAgB,EAChBC,cAAc,GAGHC,EAQTC,EACF,EACEC,KACAC,OACAC,OACAC,SACAC,WACAC,WACAC,WACAC,aACAC,qBAAqB,GACrBC,wBAEA,MAAMC,EAAQC,KAERC,MAAEA,EAAKC,KAAEA,EAAIC,QAAEA,GAAYX,GAAU,CAAA,EAGrCY,EAA6BN,GAAqBG,GAAOH,mBAEzDO,oBACJA,EAAmBC,2BACnBA,EAA0BC,4BAC1BA,EAA2BC,uBAC3BA,EAAsBC,yBACtBA,GACEC,IAEEC,EAAWJ,IAAgClB,EAE3CuB,EAAmBD,EACpB,CACDE,gBAAiBJ,GAA0BI,iBACzCjB,GAAYiB,iBAAmB,CAC/BC,UAAW,CAAEC,IAAK,MAGpBnB,GAGFoB,eAAgBC,EAAqB,GACrCC,eAAgBC,EAA2B,CAAE,GAC3CjB,GAAQ,GACZ,IAAIkB,EAAsB,IAAKD,GAE/B,MACEH,eAAgBK,EAAwB,GACxCH,eAAgBI,EAA8B,CAAE,GAC9CnB,GAAW,GACf,IAAIoB,EAAyB,IAAKD,GAE9Bd,GAA0BG,IAC5BY,EAAyB,IACpBD,KACAd,GAELY,EAAsB,IACjBD,KACAX,IAIP,MAAMgB,EAAOC,EAAc,MACrBC,EAAe/B,GAAY6B,EAE3BG,EAASD,EAAeH,EAAyBH,EACjDJ,EAAiBU,EAAeL,EAAwBJ,EAExDW,EAAuB,IACxB3B,KACAe,EAEEa,sBAAuBF,GAAQE,uBAGhCC,EAAwBC,EAC5B,KAAO,CACLC,SAAU3C,EACV4C,WAAY3C,EACZ4C,WAAY3C,EACZ4C,OA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