@zealicsolutions/web-ui 1.0.140-beta.126 → 1.0.140-beta.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,21 +1,21 @@
|
|
|
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
|
|
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{useContainerRuntime as n}from"../contexts/ContainerRuntimeContext/ContainerRuntimeContext.js";import"../contexts/FormStepContext/FormStepContext.js";import{useFormContext as a}from"../node_modules/react-hook-form/dist/index.esm.mjs.js";import"../contexts/LayoutContext/LayoutContext.js";import"../theme/theme.js";import"../theme/provider.js";import"../theme/toastStyles.js";import{useMediaQuery as s}from"../theme/useMediaQuery.js";import"../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import"../contexts/OrganismContext/OrganismContext.js";import{useOrganismContext as m}from"../contexts/OrganismContext/useOrganismContext.js";import"../contexts/PopupContext/PopupContext.js";import"../contexts/ReplicatorFormContext/ReplicatorFormContext.js";import"../contexts/ReplicatorRegistryContext/ReplicatorRegistryContext.js";import"../contexts/StateContext/StateContext.js";import"../contexts/WebpageContext/WebpageContext.js";import c from"../node_modules/react-slick/lib/index.js";import{FormContainer as l}from"./FormContainer.js";import{FormStepContainer as d}from"./FormStepContainer.js";import{getVariantContainerStyles as p,ReplicatorContainer as x}from"./ReplicatorContainer/ReplicatorContainer.js";import{ReplicatorFormSetup as u}from"./ReplicatorContainer/ReplicatorFormSetup.js";import{getBackgroundImageStyles as g}from"./helpers.js";import{getConfigurationWrapperStyle as f,slickStyles as C}from"./styles.js";import{u as h}from"../node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js";const j={dots:!0,infinite:!1,autoplay:!1,autoplaySpeed:5e3,arrows:!0,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,swipeToSlide:!0},y=i(({id:i,type:y,name:b,config:I,children:v,metadata:S,isMobile:k,properties:R,nestedPathSegments:F=[],replicatorFieldId:P})=>{const w=h(),{props:$,wide:_,compact:B}=I||{},z=P||$?.replicatorFieldId,{isConfigurationMode:T,onConfigurationItemClicked:M,selectedConfigurationItemId:O,currentStyleProperties:V,currentContentProperties:A,formId:W}=m(),{activeVariant:L,containerId:N}=n(),D=a(),E=Boolean(W&&D),H=O===i,Q=H?{backgroundImage:A?.backgroundImage??R?.backgroundImage??{imageFile:{url:""}}}:R,{containerProps:q={},containerStyle:G={}}=_||{};let J={...G};const{containerProps:K={},containerStyle:U={}}=B||{};let X={...U};V&&H&&(X={...U,...V},J={...G,...V});const Y=s("xs"),Z=k??Y,ee=Z?X:J,te=Z?K:q,oe={...$,...te,enableBackgroundImage:ee?.enableBackgroundImage},ie=r(()=>({entityId:i,entityType:y,entityName:b,entity:"container",libraryEntityId:S?.containerLibraryId||void 0,activeStyleVariant:L,parentReplicatorWithVariants:N||null}),[y,b,i,S,L,N]),re=T?{onClick:e=>{e&&e.stopPropagation(),M(ie,!1)},onDoubleClick:e=>{e?.stopPropagation(),M(ie,!0)}}:{},ne=`${i}.${Z?"mobile":"desktop"}`,ae=o`
|
|
2
2
|
display: flex;
|
|
3
3
|
position: relative; /* default containing block for absolute children */
|
|
4
4
|
overflow: visible; /* allow positioned children to overflow */
|
|
5
5
|
box-sizing: border-box; /* normalize across environments */
|
|
6
|
-
${
|
|
7
|
-
${g(
|
|
8
|
-
${T?f({theme:w,selected:
|
|
9
|
-
`;if("slider"===y||"journey_driven"===y)return e("div",{className:"slider-container",style:{width:"inherit",height:"inherit",display:"block",position:"relative"},...
|
|
10
|
-
${
|
|
6
|
+
${ee}; /* explicit containerStyle (can override position when needed) */
|
|
7
|
+
${g(oe?.enableBackgroundImage,Q?.backgroundImage?.imageFile?.url)}
|
|
8
|
+
${T?f({theme:w,selected:H}):void 0}
|
|
9
|
+
`;if("slider"===y||"journey_driven"===y)return e("div",{className:"slider-container",style:{width:"inherit",height:"inherit",display:"block",position:"relative"},...re,children:e(c,{"data-configuration-id":i,fade:"journey_driven"===y,css:o`
|
|
10
|
+
${ae};
|
|
11
11
|
${C};
|
|
12
|
-
`,...j,...
|
|
12
|
+
`,...j,...te,children:v})},ne);const se=e(x,{containerId:i,replicatorFieldId:z,nestedPathSegments:F,properties:R,config:I,renderWrapper:(t,r,n)=>{const a=p(I,n,Z?"compact":"wide"),s=n&&Object.keys(a).length>0?{...ee,...a}:ee,m=o`
|
|
13
13
|
display: flex;
|
|
14
14
|
position: relative;
|
|
15
15
|
overflow: visible;
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
${s};
|
|
18
|
-
${g(
|
|
19
|
-
${T?f({theme:w,selected:
|
|
20
|
-
`;return e("div",{id:`${i}-${void 0!==t?t:"single"}`,css:m,...T?{"data-configuration-id":i}:{},...
|
|
18
|
+
${g(oe?.enableBackgroundImage,Q?.backgroundImage?.imageFile?.url)}
|
|
19
|
+
${T?f({theme:w,selected:H}):void 0}
|
|
20
|
+
`;return e("div",{id:`${i}-${void 0!==t?t:"single"}`,css:m,...T?{"data-configuration-id":i}:{},...re,children:r})},children:v}),me={form:e(l,{...$?.formProps,children:v}),form_step:e(d,{id:i,...$?.formStepProps,metadata:S,containerProps:oe,children:v}),replicator:E&&z?e(u,{replicatorFieldId:z,nestedPathSegments:F,minInstances:$?.minInstances,maxInstances:$?.maxInstances,children:se}):se};if("replicator"===y)return e(t,{children:me.replicator});return e("div",{id:i,className:"empty_state"===y?"zeal-container zeal-empty-state":"zeal-container",css:ae,...T?{"data-configuration-id":i}:{},...re,children:me[y]||v},ne)});export{y as Container};
|
|
21
21
|
//# 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","props","wide","compact","containerReplicatorFieldId","isConfigurationMode","onConfigurationItemClicked","selectedConfigurationItemId","currentStyleProperties","currentContentProperties","formId","useOrganismContext","activeVariant","useContainerRuntime","formContext","useFormContext","isFormMode","Boolean","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","activeStyleVariant","parentReplicatorWithVariants","
|
|
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","formId","useOrganismContext","activeVariant","containerId","parentContainerId","useContainerRuntime","formContext","useFormContext","isFormMode","Boolean","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","activeStyleVariant","parentReplicatorWithVariants","configurationsItemInfo","onClick","e","stopPropagation","onDoubleClick","key","containerCss","css","getBackgroundImageStyles","getConfigurationWrapperStyle","_jsx","className","style","width","height","display","position","Slider","fade","slickStyles","replicatorContent","ReplicatorContainer","renderWrapper","iterationIndex","innerChildren","renderActiveVariant","variantStyles","getVariantContainerStyles","mergedStyles","Object","keys","length","variantContainerCss","containersMap","form","FormContainer","formProps","form_step","FormStepContainer","formStepProps","replicator","ReplicatorFormSetup","minInstances","maxInstances","_Fragment"],"mappings":"s1DAoBA,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,EAAwBC,OACxBA,GACEC,KAGEC,cAAEA,EAAeC,YAAaC,GAAsBC,IAGpDC,EAAcC,IACdC,EAAaC,QAAQT,GAAUM,GAE/BI,EAAWb,IAAgClB,EAE3CgC,EAAmBD,EACpB,CACDE,gBAAiBb,GAA0Ba,iBACzC1B,GAAY0B,iBAAmB,CAC/BC,UAAW,CAAEC,IAAK,MAGpB5B,GAGF6B,eAAgBC,EAAqB,GACrCC,eAAgBC,EAA2B,CAAE,GAC3C1B,GAAQ,GACZ,IAAI2B,EAAsB,IAAKD,GAE/B,MACEH,eAAgBK,EAAwB,GACxCH,eAAgBI,EAA8B,CAAE,GAC9C5B,GAAW,GACf,IAAI6B,EAAyB,IA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