@viamedici-spc/configurator-framer-bundle 0.1.0-alpha0021 → 0.1.0-alpha0022
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/dist/index.cjs +1 -1
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1412,4 +1412,4 @@ Please check your internet connection and try again.`)}const _g=Ie.select`
|
|
|
1412
1412
|
display: contents !important;
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
|
-
`,r1=Mo(Bx(e=>{const t=Rr(),n=In(),r=n?(()=>O.Children.toArray(e.itemTemplate)[0])():(()=>{var
|
|
1415
|
+
`,r1=Mo(Bx(e=>{const t=Rr(),n=In(),r=n?(()=>O.Children.toArray(e.itemTemplate)[0])():(()=>{const c=l=>{var f;const d=O.Children.toArray(l)[0],p=(f=d.props)==null?void 0:f.children;return p?c(p):d};return c(e.itemTemplate)})();if(!r)return $.jsx("span",{children:"Choice Value Template not defined"});const i=c=>c.map(l=>O.cloneElement(r,{key:l,layoutId:`${t}_${l}`,attributeId:e.attributeId,componentPath:e.componentPath,sharedConfigurationModel:e.sharedConfigurationModel,choiceValueId:l}));if(n)return $.jsx(Kg,{...e,children:i(["Choice Value 1","Choice Value 2","Choice Value 3"])});const o=Sr(e),a=tv(o);if(!a)return $.jsx("span",{children:"Choice Attribute not found"});const{attribute:s}=a,u=s.values.map(c=>c.id);return $.jsx(Kg,{...e,children:i(u)})}));function Kg(e){return $.jsxs($.Fragment,{children:[$.jsx(sl,{singletonId:"ChoiceValueListRenderer",children:$.jsx(EV,{})}),$.jsx(n1,{style:e.style,children:e.children})]})}const TV=r1,IV={...Mi,itemTemplate:{title:"Choice Value Template",type:j.ControlType.ComponentInstance}};j.addPropertyControls(r1,IV);const AV=Object.freeze(Object.defineProperty({__proto__:null,BooleanSelect:QB,ChoiceSelect:YB,ChoiceValueListRenderer:TV,Colorize:yV,ComponentSelect:eV,Configuration:pB,InitializationRetry:bV,NumericInput:nV,ResetConfiguration:fV,SatisfactionIndicator:pV,ScrollIntoView:t1,SelectionIndicator:vV,SelectionToggle:oV,SetSelection:sV,SetSelections:cV,Singleton:sl,useDebounceValue:zx,useRenderPlaceholder:In,withFullSize:CV},Symbol.toStringTag,{value:"Module"}));exports.Configurator=TA;exports.ConfiguratorFramer=AV;exports.ConfiguratorReact=AD;
|
package/dist/index.js
CHANGED
|
@@ -30542,9 +30542,12 @@ const S1 = Ie.div`
|
|
|
30542
30542
|
}
|
|
30543
30543
|
`, w1 = Ho(o1((e) => {
|
|
30544
30544
|
const t = Gr(), n = On(), r = n ? (() => _r.toArray(e.itemTemplate)[0])() : (() => {
|
|
30545
|
-
|
|
30546
|
-
|
|
30547
|
-
|
|
30545
|
+
const c = (l) => {
|
|
30546
|
+
var f;
|
|
30547
|
+
const d = _r.toArray(l)[0], p = (f = d.props) == null ? void 0 : f.children;
|
|
30548
|
+
return p ? c(p) : d;
|
|
30549
|
+
};
|
|
30550
|
+
return c(e.itemTemplate);
|
|
30548
30551
|
})();
|
|
30549
30552
|
if (!r)
|
|
30550
30553
|
return /* @__PURE__ */ O("span", { children: "Choice Value Template not defined" });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viamedici-spc/configurator-framer-bundle",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-alpha0022",
|
|
4
4
|
"description": "Component library to build configurator apps with Framer based on Viamedici SPC. All dependencies are bundled together.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|