solace-ui-components 18.0.1 → 18.0.2
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/charts.js +1 -1
- package/dist/charts.modern.mjs +1 -1
- package/dist/{chunk-ULYCLLUO.modern.mjs → chunk-54TEARQI.modern.mjs} +2 -2
- package/dist/{chunk-ULYCLLUO.modern.mjs.map → chunk-54TEARQI.modern.mjs.map} +1 -1
- package/dist/{chunk-2RTZL4CF.modern.mjs → chunk-HQH2WKJP.modern.mjs} +3 -3
- package/dist/{chunk-2RTZL4CF.modern.mjs.map → chunk-HQH2WKJP.modern.mjs.map} +1 -1
- package/dist/{chunk-IHSXSGCC.modern.mjs → chunk-I7OJ5H4U.modern.mjs} +2 -2
- package/dist/{chunk-IHSXSGCC.modern.mjs.map → chunk-I7OJ5H4U.modern.mjs.map} +1 -1
- package/dist/{chunk-HLXBN2OE.modern.mjs → chunk-LGBO373S.modern.mjs} +2 -2
- package/dist/{chunk-HLXBN2OE.modern.mjs.map → chunk-LGBO373S.modern.mjs.map} +1 -1
- package/dist/{chunk-AOKITPX2.js → chunk-PYADJP2I.js} +2 -2
- package/dist/{chunk-AOKITPX2.js.map → chunk-PYADJP2I.js.map} +1 -1
- package/dist/{chunk-ROSPS5NM.modern.mjs → chunk-QKQRCYG4.modern.mjs} +2 -2
- package/dist/{chunk-ROSPS5NM.modern.mjs.map → chunk-QKQRCYG4.modern.mjs.map} +1 -1
- package/dist/{chunk-TSSPQLS6.js → chunk-SKQ7JGO5.js} +3 -3
- package/dist/{chunk-TSSPQLS6.js.map → chunk-SKQ7JGO5.js.map} +1 -1
- package/dist/{chunk-7SKICMGL.js → chunk-SWGQVSXQ.js} +2 -2
- package/dist/{chunk-7SKICMGL.js.map → chunk-SWGQVSXQ.js.map} +1 -1
- package/dist/{chunk-UFDVHFXE.js → chunk-SXQRCXMP.js} +2 -2
- package/dist/{chunk-UFDVHFXE.js.map → chunk-SXQRCXMP.js.map} +1 -1
- package/dist/{chunk-4XH33OL7.js → chunk-V45EFIXB.js} +2 -2
- package/dist/{chunk-4XH33OL7.js.map → chunk-V45EFIXB.js.map} +1 -1
- package/dist/{chunk-QV564WAK.modern.mjs → chunk-VYHLNTMX.modern.mjs} +2 -2
- package/dist/{chunk-QV564WAK.modern.mjs.map → chunk-VYHLNTMX.modern.mjs.map} +1 -1
- package/dist/chunk-YQTPPT5K.js +2 -0
- package/dist/{chunk-GDZZVHFP.js.map → chunk-YQTPPT5K.js.map} +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/code-editor.modern.mjs +1 -1
- package/dist/datepicker.js +1 -1
- package/dist/datepicker.modern.mjs +1 -1
- package/dist/drag-drop.js +1 -1
- package/dist/drag-drop.modern.mjs +1 -1
- package/dist/index.js +58 -58
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +55 -55
- package/dist/index.modern.mjs.map +1 -1
- package/dist/json-schema-form.js +1 -1
- package/dist/json-schema-form.modern.mjs +1 -1
- package/dist/textDiff.js +2 -2
- package/dist/textDiff.modern.mjs +1 -1
- package/package.json +7 -5
- package/dist/chunk-GDZZVHFP.js +0 -2
package/dist/json-schema-form.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkSKQ7JGO5_js=require('./chunk-SKQ7JGO5.js'),chunkPYADJP2I_js=require('./chunk-PYADJP2I.js'),chunkSXQRCXMP_js=require('./chunk-SXQRCXMP.js');require('./chunk-SWGQVSXQ.js'),require('./chunk-YQTPPT5K.js');var chunkV45EFIXB_js=require('./chunk-V45EFIXB.js'),mui=require('@rjsf/mui'),lodash=require('lodash'),react=require('react'),jsxRuntime=require('react/jsx-runtime'),validatorAjv8=require('@rjsf/validator-ajv8'),de=require('ajv/dist/2020');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var de__default=/*#__PURE__*/_interopDefault(de);var _=({size:e=24,fill:r=""})=>{let o=chunkV45EFIXB_js.ua();return jsxRuntime.jsxs(chunkV45EFIXB_js.Na,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:[jsxRuntime.jsx("g",{clipPath:"url(#clip0_3496_34902)",children:jsxRuntime.jsx("path",{d:"M16.34 12.28C15.94 10.78 14.73 9.55999 13.22 9.15999C12.74 9.02999 12.26 8.97999 11.8 9.00999L16.49 13.7C16.52 13.24 16.47 12.76 16.34 12.28ZM15.82 15.85L8.62999 8.65999L7.10999 7.13999L3.69999 3.72999C3.54999 3.57999 3.28999 3.57999 3.13999 3.72999L2.28999 4.58999C2.13999 4.73999 2.13999 4.99999 2.28999 5.14999L5.37999 8.23999C3.99999 9.32999 2.86999 10.76 2.03999 12.43C1.90999 12.69 2.10999 13 2.39999 13H3.76999C3.90999 13 4.03999 12.92 4.10999 12.8C4.84999 11.54 5.75999 10.49 6.82999 9.68999L8.21999 11.08C7.56999 12.09 7.30999 13.38 7.65999 14.72C8.05999 16.22 9.27999 17.44 10.78 17.84C12.12 18.2 13.41 17.93 14.42 17.28L19.46 22.32C19.61 22.47 19.87 22.47 20.02 22.32L20.87 21.47C21.02 21.32 21.02 21.06 20.87 20.91L15.82 15.85ZM21.96 12.43C20.05 8.60999 16.59 5.99999 12 5.99999C11 5.99999 10.05 6.12999 9.15999 6.36999L10.87 8.06999C11.23 8.01999 11.61 7.99999 12 7.99999C15.52 7.99999 18.16 9.83999 19.89 12.8C19.96 12.92 20.08 13 20.22 13H21.48C21.89 13 22.09 12.69 21.96 12.43Z",fill:r||o.palette.ux.secondary.wMain})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_3496_34902",children:jsxRuntime.jsx("rect",{width:e,height:e,fill:o.palette.ux.background.w10})})})]})};var Z=({size:e=24,fill:r=""})=>{let o=chunkV45EFIXB_js.ua();return jsxRuntime.jsxs(chunkV45EFIXB_js.Na,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:[jsxRuntime.jsx("g",{clipPath:"url(#clip0_3496_34944)",children:jsxRuntime.jsx("path",{d:"M13.224 9.162C9.80697 8.253 6.75497 11.305 7.66397 14.722C8.06297 16.223 9.27797 17.438 10.779 17.837C14.196 18.746 17.248 15.694 16.339 12.277C15.939 10.776 14.725 9.562 13.224 9.162ZM13.224 9.162C9.80697 8.253 6.75497 11.305 7.66397 14.722C8.06297 16.223 9.27797 17.438 10.779 17.837C14.196 18.746 17.248 15.694 16.339 12.277C15.939 10.776 14.725 9.562 13.224 9.162ZM12.001 6C7.41597 6 3.94897 8.608 2.04097 12.428C1.90997 12.69 2.10997 13 2.40197 13H3.77397C3.91497 13 4.04397 12.923 4.11497 12.801C5.83797 9.837 8.47897 8 12.001 8C15.523 8 18.164 9.838 19.888 12.802C19.958 12.923 20.083 13 20.223 13H21.476C21.892 13 22.091 12.689 21.96 12.426C20.052 8.607 16.585 6 12.001 6ZM13.224 9.162C9.80697 8.253 6.75497 11.305 7.66397 14.722C8.06297 16.223 9.27797 17.438 10.779 17.837C14.196 18.746 17.248 15.694 16.339 12.277C15.939 10.776 14.725 9.562 13.224 9.162ZM13.224 9.162C9.80697 8.253 6.75497 11.305 7.66397 14.722C8.06297 16.223 9.27797 17.438 10.779 17.837C14.196 18.746 17.248 15.694 16.339 12.277C15.939 10.776 14.725 9.562 13.224 9.162ZM13.224 9.162C9.80697 8.253 6.75497 11.305 7.66397 14.722C8.06297 16.223 9.27797 17.438 10.779 17.837C14.196 18.746 17.248 15.694 16.339 12.277C15.939 10.776 14.725 9.562 13.224 9.162Z",fill:r||o.palette.ux.secondary.wMain})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_3496_34944",children:jsxRuntime.jsx("rect",{width:e,height:e,fill:o.palette.ux.background.w10})})})]})};var $="-",z="**********",B=(e,r)=>{let o=r.value;lodash.isEmpty(lodash.toString(o))?e.onChange(void 0):e.onChange(o);},ee=e=>e.options?.format==="password"||e.format==="password",oe=(e,r,o=false)=>o&&e.maxLength?r.length:e.maxLength,q=function(e,r,o){let i=r?r(e):e,{disabled:t,label:g,name:f,readonly:n,required:h,schema:a,value:m}=i,y=i["x-custom-error"]??"",S=n?"":y||a.description,s=ee(a),[d,c]=react.useState(false),x=react.useMemo(()=>n&&s&&!m&&o?.(a,i),[s,i,n,a,o,m]),F=react.useMemo(()=>{let l=m??"";return n?s?x?l=$:l=d?l:z:l=l||$:a.const&&(l=a.const),l},[m,n,a.const,s,d,x]),b=react.useMemo(()=>{if(s&&!x)return [jsxRuntime.jsx(chunkPYADJP2I_js.b,{variant:"icon",onClick:()=>c(!d),dataQa:d?"showPasswordButton":"hidePasswordButton",children:d?jsxRuntime.jsx(_,{}):jsxRuntime.jsx(Z,{})},d?"eyeIcon":"hideEyeIcon")]},[s,d,x]),C=oe(a,F,n);return jsxRuntime.jsxs(chunkV45EFIXB_js.Ic,{sx:{display:s?"grid":"block",gridTemplateColumns:"1fr auto",alignItems:"flex-end",overflow:"hidden"},children:[C&&C>100?jsxRuntime.jsx(chunkSKQ7JGO5_js.o,{name:f,label:g,onChange:l=>B(i,l),value:F,readOnly:n,required:h&&!n,disabled:t,width:"100%",maxLength:C+1,hasErrors:!!y,helperText:S,placeholder:a.placeholder??"",dataQa:`${g}-form-textArea`}):jsxRuntime.jsx(chunkSXQRCXMP_js.d,{type:s&&!d?"password":"text",label:g,name:f,onChange:l=>B(i,l),value:F,readOnly:n,required:h&&!n,disabled:t,endAdornment:n?void 0:b,hasErrors:!!y,helperText:S,placeholder:a.placeholder??"",dataQa:`${g}-form-textField`}),n&&b?jsxRuntime.jsx(chunkV45EFIXB_js.Ic,{ml:1,children:b}):null]})},re=function(e,r){let o=r?r(e):e,{disabled:i,id:t,label:g,name:f,options:n,readonly:h,required:a,schema:m,title:y,value:S}=o,s=o["x-custom-error"]??"",d=h?"":s||m.description;return n.enumOptions!==void 0?jsxRuntime.jsx(chunkV45EFIXB_js.Ic,{mb:o.id.includes("oneof")?2:0,children:jsxRuntime.jsx(chunkSKQ7JGO5_js.n,{label:g,name:f,onChange:c=>B(o,c),value:S,readOnly:h,required:a&&!h,disabled:i,title:y,id:t,hasErrors:!!s,helperText:d,dataQa:`${t}-form-select`,children:n.enumOptions.map(c=>jsxRuntime.jsx(chunkV45EFIXB_js.yf,{value:c.value,children:c.label},c.label))})}):jsxRuntime.jsx(jsxRuntime.Fragment,{})},te=function(e,r){let o=r?r(e):e,{disabled:i,label:t,name:g,readonly:f,required:n,schema:h,value:a}=o,m=o["x-custom-error"]??"",y=f?"":m||h.description;return jsxRuntime.jsx(chunkSKQ7JGO5_js.l,{name:g,label:t,onChange:S=>o.onChange(S.value),readOnly:f,required:n&&!f,disabled:i,checked:a,hasErrors:!!m,helperText:y,dataQa:`${t}-form-checkbox`})};function ie(e,r){let o=r?r(e):e,{description:i,id:t}=o;return i==="x-custom-hidden"?null:jsxRuntime.jsx(chunkSKQ7JGO5_js.m,{id:t,children:i})}function ne(e,r){let o=r?r(e):e,{id:i,title:t}=o;return t==="x-custom-hidden"?null:jsxRuntime.jsx(chunkSKQ7JGO5_js.m,{id:i,variant:"h5",children:t})}var j=(e,r)=>({DescriptionFieldTemplate:o=>ie(o,e),TitleFieldTemplate:o=>ne(o,r)}),N=(e,r)=>({CheckboxWidget:o=>te(o,e),SelectWidget:o=>re(o,e),TextWidget:o=>q(o,e,r),PasswordWidget:o=>q(o,e,r)});var ce=chunkV45EFIXB_js.wa(mui.Form)(({theme:e})=>({".solaceJsonSchemaForm":{maxWidth:"585px",".MuiTypography-root":{padding:e.spacing(3,0),"&.MuiTypography-caption":{display:"none"}},".MuiFormControl-root":{".MuiGrid-root":{padding:0,margin:"0 16px 0 0 !important"},".form-group.field":{paddingBottom:e.spacing(2),"&.field-error ul":{display:"none"},".MuiBox-root":{"label .MuiFormLabel-asterisk":{display:"none"},"label[for] .MuiFormLabel-asterisk":{display:"inline"}}},".form-group.field-array":{".MuiPaper-root":{boxShadow:"none",border:`1px solid ${e.palette.ux.secondary.w20}`,padding:0,margin:e.spacing(1,0,0,0)},".MuiTypography-root":{padding:e.spacing(1,0)},".form-group.field":{paddingBottom:e.spacing(2),"&.field-object":{paddingBottom:0}}}}}})),me=e=>{let r;return e?.length>0&&(e.includes("*")||e.push("*"),r=e),r},J=(e,r,o)=>{if(!o)return;let i=o.properties;if(i)for(let t in i)r[t]={"ui:hideError":true},e("property",t,i[t])?r[t]["ui:widget"]="hidden":e("description",t,i[t])&&(r[t]["ui:description"]="x-custom-hidden"),i[t]&&typeof i[t]=="object"&&(r[t]||(r[t]={}),J(e,r[t],i[t]));else if(typeof o=="object")for(let t in o)J(e,r,o[t]);};function ue({formItem:e,formData:r={},formOptions:o={},readOnly:i=false,disabled:t=false,formRef:g,liveValidate:f=true,onChange:n,transformDescription:h,transformError:a,transformWidget:m,transformTitle:y,ajvClass:S}){let s=e.schema,{order:d,isHidden:c,shouldShowEmptyValueForSensitiveField:x,tagName:F}=o,b=validatorAjv8.customizeValidator({AjvClass:S??de__default.default}),C={"ui:classNames":"solaceJsonSchemaForm"};C["ui:order"]=me(d),c&&(c("submitButton")&&(C["ui:submitButtonOptions"]={norender:true}),c("title")&&(C["ui:options"]={label:false}),J(c,C,s));function l(u){let P=m?.(u)??{...u};return u.rawErrors&&u.rawErrors.length>0&&(P["x-custom-error"]=Array.from(new Set(u.rawErrors)).join(", ")),P}function H(u){return a?u.map(P=>a?.(P)??P):u}function Q(u){n?.(u.formData,u.errors);}return jsxRuntime.jsx(ce,{tagName:F,idPrefix:e.id,schema:s,uiSchema:C,validator:b,widgets:N(l,x),templates:j(h,y),formData:r,onChange:Q,readonly:i,disabled:t,liveValidate:f,showErrorList:false,transformErrors:H,"data-qa":e.id,ref:g},e.id)}var ge=ue;exports.SolaceJsonSchemaForm=ge;//# sourceMappingURL=json-schema-form.js.map
|
|
2
2
|
//# sourceMappingURL=json-schema-form.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {m,o,n,l}from'./chunk-
|
|
1
|
+
import {m,o,n,l}from'./chunk-HQH2WKJP.modern.mjs';import {b}from'./chunk-LGBO373S.modern.mjs';import {d}from'./chunk-VYHLNTMX.modern.mjs';import'./chunk-54TEARQI.modern.mjs';import'./chunk-QKQRCYG4.modern.mjs';import {wa,Ic,yf,ua,Na}from'./chunk-I7OJ5H4U.modern.mjs';import {Form}from'@rjsf/mui';import {isEmpty,toString}from'lodash';import {useState,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {customizeValidator}from'@rjsf/validator-ajv8';import de from'ajv/dist/2020';var _=({size:e=24,fill:r=""})=>{let o=ua();return jsxs(Na,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:[jsx("g",{clipPath:"url(#clip0_3496_34902)",children:jsx("path",{d:"M16.34 12.28C15.94 10.78 14.73 9.55999 13.22 9.15999C12.74 9.02999 12.26 8.97999 11.8 9.00999L16.49 13.7C16.52 13.24 16.47 12.76 16.34 12.28ZM15.82 15.85L8.62999 8.65999L7.10999 7.13999L3.69999 3.72999C3.54999 3.57999 3.28999 3.57999 3.13999 3.72999L2.28999 4.58999C2.13999 4.73999 2.13999 4.99999 2.28999 5.14999L5.37999 8.23999C3.99999 9.32999 2.86999 10.76 2.03999 12.43C1.90999 12.69 2.10999 13 2.39999 13H3.76999C3.90999 13 4.03999 12.92 4.10999 12.8C4.84999 11.54 5.75999 10.49 6.82999 9.68999L8.21999 11.08C7.56999 12.09 7.30999 13.38 7.65999 14.72C8.05999 16.22 9.27999 17.44 10.78 17.84C12.12 18.2 13.41 17.93 14.42 17.28L19.46 22.32C19.61 22.47 19.87 22.47 20.02 22.32L20.87 21.47C21.02 21.32 21.02 21.06 20.87 20.91L15.82 15.85ZM21.96 12.43C20.05 8.60999 16.59 5.99999 12 5.99999C11 5.99999 10.05 6.12999 9.15999 6.36999L10.87 8.06999C11.23 8.01999 11.61 7.99999 12 7.99999C15.52 7.99999 18.16 9.83999 19.89 12.8C19.96 12.92 20.08 13 20.22 13H21.48C21.89 13 22.09 12.69 21.96 12.43Z",fill:r||o.palette.ux.secondary.wMain})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_3496_34902",children:jsx("rect",{width:e,height:e,fill:o.palette.ux.background.w10})})})]})};var Z=({size:e=24,fill:r=""})=>{let o=ua();return jsxs(Na,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:[jsx("g",{clipPath:"url(#clip0_3496_34944)",children:jsx("path",{d:"M13.224 9.162C9.80697 8.253 6.75497 11.305 7.66397 14.722C8.06297 16.223 9.27797 17.438 10.779 17.837C14.196 18.746 17.248 15.694 16.339 12.277C15.939 10.776 14.725 9.562 13.224 9.162ZM13.224 9.162C9.80697 8.253 6.75497 11.305 7.66397 14.722C8.06297 16.223 9.27797 17.438 10.779 17.837C14.196 18.746 17.248 15.694 16.339 12.277C15.939 10.776 14.725 9.562 13.224 9.162ZM12.001 6C7.41597 6 3.94897 8.608 2.04097 12.428C1.90997 12.69 2.10997 13 2.40197 13H3.77397C3.91497 13 4.04397 12.923 4.11497 12.801C5.83797 9.837 8.47897 8 12.001 8C15.523 8 18.164 9.838 19.888 12.802C19.958 12.923 20.083 13 20.223 13H21.476C21.892 13 22.091 12.689 21.96 12.426C20.052 8.607 16.585 6 12.001 6ZM13.224 9.162C9.80697 8.253 6.75497 11.305 7.66397 14.722C8.06297 16.223 9.27797 17.438 10.779 17.837C14.196 18.746 17.248 15.694 16.339 12.277C15.939 10.776 14.725 9.562 13.224 9.162ZM13.224 9.162C9.80697 8.253 6.75497 11.305 7.66397 14.722C8.06297 16.223 9.27797 17.438 10.779 17.837C14.196 18.746 17.248 15.694 16.339 12.277C15.939 10.776 14.725 9.562 13.224 9.162ZM13.224 9.162C9.80697 8.253 6.75497 11.305 7.66397 14.722C8.06297 16.223 9.27797 17.438 10.779 17.837C14.196 18.746 17.248 15.694 16.339 12.277C15.939 10.776 14.725 9.562 13.224 9.162Z",fill:r||o.palette.ux.secondary.wMain})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_3496_34944",children:jsx("rect",{width:e,height:e,fill:o.palette.ux.background.w10})})})]})};var $="-",z="**********",B=(e,r)=>{let o=r.value;isEmpty(toString(o))?e.onChange(void 0):e.onChange(o);},ee=e=>e.options?.format==="password"||e.format==="password",oe=(e,r,o=false)=>o&&e.maxLength?r.length:e.maxLength,q=function(e,r,o$1){let i=r?r(e):e,{disabled:t,label:g,name:f,readonly:n,required:h,schema:a,value:m}=i,y=i["x-custom-error"]??"",S=n?"":y||a.description,s=ee(a),[d$1,c]=useState(false),x=useMemo(()=>n&&s&&!m&&o$1?.(a,i),[s,i,n,a,o$1,m]),F=useMemo(()=>{let l=m??"";return n?s?x?l=$:l=d$1?l:z:l=l||$:a.const&&(l=a.const),l},[m,n,a.const,s,d$1,x]),b$1=useMemo(()=>{if(s&&!x)return [jsx(b,{variant:"icon",onClick:()=>c(!d$1),dataQa:d$1?"showPasswordButton":"hidePasswordButton",children:d$1?jsx(_,{}):jsx(Z,{})},d$1?"eyeIcon":"hideEyeIcon")]},[s,d$1,x]),C=oe(a,F,n);return jsxs(Ic,{sx:{display:s?"grid":"block",gridTemplateColumns:"1fr auto",alignItems:"flex-end",overflow:"hidden"},children:[C&&C>100?jsx(o,{name:f,label:g,onChange:l=>B(i,l),value:F,readOnly:n,required:h&&!n,disabled:t,width:"100%",maxLength:C+1,hasErrors:!!y,helperText:S,placeholder:a.placeholder??"",dataQa:`${g}-form-textArea`}):jsx(d,{type:s&&!d$1?"password":"text",label:g,name:f,onChange:l=>B(i,l),value:F,readOnly:n,required:h&&!n,disabled:t,endAdornment:n?void 0:b$1,hasErrors:!!y,helperText:S,placeholder:a.placeholder??"",dataQa:`${g}-form-textField`}),n&&b$1?jsx(Ic,{ml:1,children:b$1}):null]})},re=function(e,r){let o=r?r(e):e,{disabled:i,id:t,label:g,name:f,options:n$1,readonly:h,required:a,schema:m,title:y,value:S}=o,s=o["x-custom-error"]??"",d=h?"":s||m.description;return n$1.enumOptions!==void 0?jsx(Ic,{mb:o.id.includes("oneof")?2:0,children:jsx(n,{label:g,name:f,onChange:c=>B(o,c),value:S,readOnly:h,required:a&&!h,disabled:i,title:y,id:t,hasErrors:!!s,helperText:d,dataQa:`${t}-form-select`,children:n$1.enumOptions.map(c=>jsx(yf,{value:c.value,children:c.label},c.label))})}):jsx(Fragment,{})},te=function(e,r){let o=r?r(e):e,{disabled:i,label:t,name:g,readonly:f,required:n,schema:h,value:a}=o,m=o["x-custom-error"]??"",y=f?"":m||h.description;return jsx(l,{name:g,label:t,onChange:S=>o.onChange(S.value),readOnly:f,required:n&&!f,disabled:i,checked:a,hasErrors:!!m,helperText:y,dataQa:`${t}-form-checkbox`})};function ie(e,r){let o=r?r(e):e,{description:i,id:t}=o;return i==="x-custom-hidden"?null:jsx(m,{id:t,children:i})}function ne(e,r){let o=r?r(e):e,{id:i,title:t}=o;return t==="x-custom-hidden"?null:jsx(m,{id:i,variant:"h5",children:t})}var j=(e,r)=>({DescriptionFieldTemplate:o=>ie(o,e),TitleFieldTemplate:o=>ne(o,r)}),N=(e,r)=>({CheckboxWidget:o=>te(o,e),SelectWidget:o=>re(o,e),TextWidget:o=>q(o,e,r),PasswordWidget:o=>q(o,e,r)});var ce=wa(Form)(({theme:e})=>({".solaceJsonSchemaForm":{maxWidth:"585px",".MuiTypography-root":{padding:e.spacing(3,0),"&.MuiTypography-caption":{display:"none"}},".MuiFormControl-root":{".MuiGrid-root":{padding:0,margin:"0 16px 0 0 !important"},".form-group.field":{paddingBottom:e.spacing(2),"&.field-error ul":{display:"none"},".MuiBox-root":{"label .MuiFormLabel-asterisk":{display:"none"},"label[for] .MuiFormLabel-asterisk":{display:"inline"}}},".form-group.field-array":{".MuiPaper-root":{boxShadow:"none",border:`1px solid ${e.palette.ux.secondary.w20}`,padding:0,margin:e.spacing(1,0,0,0)},".MuiTypography-root":{padding:e.spacing(1,0)},".form-group.field":{paddingBottom:e.spacing(2),"&.field-object":{paddingBottom:0}}}}}})),me=e=>{let r;return e?.length>0&&(e.includes("*")||e.push("*"),r=e),r},J=(e,r,o)=>{if(!o)return;let i=o.properties;if(i)for(let t in i)r[t]={"ui:hideError":true},e("property",t,i[t])?r[t]["ui:widget"]="hidden":e("description",t,i[t])&&(r[t]["ui:description"]="x-custom-hidden"),i[t]&&typeof i[t]=="object"&&(r[t]||(r[t]={}),J(e,r[t],i[t]));else if(typeof o=="object")for(let t in o)J(e,r,o[t]);};function ue({formItem:e,formData:r={},formOptions:o={},readOnly:i=false,disabled:t=false,formRef:g,liveValidate:f=true,onChange:n,transformDescription:h,transformError:a,transformWidget:m,transformTitle:y,ajvClass:S}){let s=e.schema,{order:d,isHidden:c,shouldShowEmptyValueForSensitiveField:x,tagName:F}=o,b=customizeValidator({AjvClass:S??de}),C={"ui:classNames":"solaceJsonSchemaForm"};C["ui:order"]=me(d),c&&(c("submitButton")&&(C["ui:submitButtonOptions"]={norender:true}),c("title")&&(C["ui:options"]={label:false}),J(c,C,s));function l(u){let P=m?.(u)??{...u};return u.rawErrors&&u.rawErrors.length>0&&(P["x-custom-error"]=Array.from(new Set(u.rawErrors)).join(", ")),P}function H(u){return a?u.map(P=>a?.(P)??P):u}function Q(u){n?.(u.formData,u.errors);}return jsx(ce,{tagName:F,idPrefix:e.id,schema:s,uiSchema:C,validator:b,widgets:N(l,x),templates:j(h,y),formData:r,onChange:Q,readonly:i,disabled:t,liveValidate:f,showErrorList:false,transformErrors:H,"data-qa":e.id,ref:g},e.id)}var ge=ue;export{ge as SolaceJsonSchemaForm};//# sourceMappingURL=json-schema-form.modern.mjs.map
|
|
2
2
|
//# sourceMappingURL=json-schema-form.modern.mjs.map
|
package/dist/textDiff.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';var
|
|
2
|
-
`);return n.length>0&&n[n.length-1]===""&&n.pop(),n};function P(e){let{id:n,text1:l,text2:d,text1Header:c,text2Header:D,noContentText:a="No content to compare",noDifferencesText:o="No Differences",hideWhenNoDifferences:$=false}=e,h=y__default.default.useMemo(()=>{let t=T__namespace.diffLines(l,d),r=[],p=1,m=1;for(let u of t){let s=G(u);if(s.length===0)continue;let M=E(u,s,p,m),W={content:"",oldStart:p,newStart:m,oldLines:u.added?0:s.length,newLines:u.removed?0:s.length,changes:M};r.push(W),u.added||(p+=s.length),u.removed||(m+=s.length);}return r},[l,d]),x=y__default.default.useMemo(()=>h.flatMap(t=>t.changes),[h]),w=(t,r,p)=>{let m=r==="old"?t.oldLineNumber:t.newLineNumber;if(!(r==="old"?!t.isInsert:!t.isDelete))return jsxRuntime.jsxs(L,{lineType:"empty",children:[jsxRuntime.jsx(k,{children:"\xA0"}),jsxRuntime.jsx(v,{children:"\xA0"})]},`${r}-empty-${p}`);let s=t.isInsert?"insert":t.isDelete?"delete":"normal";return jsxRuntime.jsxs(L,{lineType:s,children:[jsxRuntime.jsx(k,{children:m||""}),jsxRuntime.jsx(v,{children:t.content})]},`${r}-${m||p}`)};return !l&&!d?jsxRuntime.jsx(C,{id:`code-diff-${n}`,children:jsxRuntime.jsx(H,{children:a})}):$&&x.every(t=>t.isNormal)?jsxRuntime.jsx(C,{id:`code-diff-${n}`,children:jsxRuntime.jsx(H,{children:o})}):jsxRuntime.jsxs(A,{children:[(c||D)&&jsxRuntime.jsxs(I,{children:[jsxRuntime.jsx(S,{children:c&&jsxRuntime.jsx(
|
|
1
|
+
'use strict';var chunkYQTPPT5K_js=require('./chunk-YQTPPT5K.js'),chunkV45EFIXB_js=require('./chunk-V45EFIXB.js'),T=require('diff'),y=require('react'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var T__namespace=/*#__PURE__*/_interopNamespace(T);var y__default=/*#__PURE__*/_interopDefault(y);var A=chunkV45EFIXB_js.wa("div")({display:"flex",flexDirection:"column",width:"100%"}),I=chunkV45EFIXB_js.wa("div")({display:"flex",width:"100%"}),S=chunkV45EFIXB_js.wa("div")(({theme:e})=>({flex:1,minWidth:0,padding:e.spacing(1,2,.5,0)})),C=chunkV45EFIXB_js.wa("div")(({theme:e})=>({border:`1px solid ${e.palette.ux.secondary.w40}`,borderRadius:e.shape.borderRadius,fontFamily:"monospace",fontSize:"14px",overflow:"hidden"})),R=chunkV45EFIXB_js.wa("div")({display:"flex",width:"100%"}),N=chunkV45EFIXB_js.wa("div")({flex:1,minWidth:0}),L=chunkV45EFIXB_js.wa("div")(({theme:e,lineType:n})=>({display:"flex",minHeight:"1.2em",lineHeight:"1.2em",...n==="insert"&&{backgroundColor:e.palette.ux.success.w10},...n==="delete"&&{backgroundColor:e.palette.ux.warning.w10,mixBlendMode:"multiply"},...n==="empty"&&{backgroundColor:e.palette.ux.error.wMain,opacity:.1}})),k=chunkV45EFIXB_js.wa("div")(({theme:e})=>({color:e.palette.ux.secondary.text.wMain,backgroundColor:e.palette.ux.background.w20,textAlign:"center",minWidth:e.spacing(3),padding:e.spacing(0,.5),borderRight:`1px solid ${e.palette.ux.secondary.w40}`,userSelect:"none",flexShrink:0})),v=chunkV45EFIXB_js.wa("div")(({theme:e})=>({padding:e.spacing(0,1),whiteSpace:"pre-wrap",overflow:"hidden",wordWrap:"break-word",flex:1})),H=chunkV45EFIXB_js.wa("div")(({theme:e})=>({padding:e.spacing(2),textAlign:"center",color:e.palette.ux.secondary.text.wMain})),E=(e,n,l,d)=>{let c=e.added?"insert":e.removed?"delete":"normal";return n.map((D,a)=>{let o={type:c,content:D};return c==="insert"?(o.isInsert=true,o.newLineNumber=d+a,o.lineNumber=d+a):c==="delete"?(o.isDelete=true,o.oldLineNumber=l+a,o.lineNumber=l+a):(o.isNormal=true,o.oldLineNumber=l+a,o.newLineNumber=d+a),o})},G=e=>{if(!e.value)return [];let n=e.value.split(`
|
|
2
|
+
`);return n.length>0&&n[n.length-1]===""&&n.pop(),n};function P(e){let{id:n,text1:l,text2:d,text1Header:c,text2Header:D,noContentText:a="No content to compare",noDifferencesText:o="No Differences",hideWhenNoDifferences:$=false}=e,h=y__default.default.useMemo(()=>{let t=T__namespace.diffLines(l,d),r=[],p=1,m=1;for(let u of t){let s=G(u);if(s.length===0)continue;let M=E(u,s,p,m),W={content:"",oldStart:p,newStart:m,oldLines:u.added?0:s.length,newLines:u.removed?0:s.length,changes:M};r.push(W),u.added||(p+=s.length),u.removed||(m+=s.length);}return r},[l,d]),x=y__default.default.useMemo(()=>h.flatMap(t=>t.changes),[h]),w=(t,r,p)=>{let m=r==="old"?t.oldLineNumber:t.newLineNumber;if(!(r==="old"?!t.isInsert:!t.isDelete))return jsxRuntime.jsxs(L,{lineType:"empty",children:[jsxRuntime.jsx(k,{children:"\xA0"}),jsxRuntime.jsx(v,{children:"\xA0"})]},`${r}-empty-${p}`);let s=t.isInsert?"insert":t.isDelete?"delete":"normal";return jsxRuntime.jsxs(L,{lineType:s,children:[jsxRuntime.jsx(k,{children:m||""}),jsxRuntime.jsx(v,{children:t.content})]},`${r}-${m||p}`)};return !l&&!d?jsxRuntime.jsx(C,{id:`code-diff-${n}`,children:jsxRuntime.jsx(H,{children:a})}):$&&x.every(t=>t.isNormal)?jsxRuntime.jsx(C,{id:`code-diff-${n}`,children:jsxRuntime.jsx(H,{children:o})}):jsxRuntime.jsxs(A,{children:[(c||D)&&jsxRuntime.jsxs(I,{children:[jsxRuntime.jsx(S,{children:c&&jsxRuntime.jsx(chunkYQTPPT5K_js.a,{id:`diff-text1Header-${n}`,children:c})}),jsxRuntime.jsx(S,{children:D&&jsxRuntime.jsx(chunkYQTPPT5K_js.a,{id:`diff-text2Header-${n}`,children:D})})]}),jsxRuntime.jsx(C,{id:`code-diff-${n}`,children:jsxRuntime.jsxs(R,{children:[jsxRuntime.jsx(N,{children:x.map((t,r)=>w(t,"old",r))}),jsxRuntime.jsx(N,{children:x.map((t,r)=>w(t,"new",r))})]})})]})}exports.SolaceTextDiff=P;//# sourceMappingURL=textDiff.js.map
|
|
3
3
|
//# sourceMappingURL=textDiff.js.map
|
package/dist/textDiff.modern.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-QKQRCYG4.modern.mjs';import {wa}from'./chunk-I7OJ5H4U.modern.mjs';import*as T from'diff';import y from'react';import {jsx,jsxs}from'react/jsx-runtime';var A=wa("div")({display:"flex",flexDirection:"column",width:"100%"}),I=wa("div")({display:"flex",width:"100%"}),S=wa("div")(({theme:e})=>({flex:1,minWidth:0,padding:e.spacing(1,2,.5,0)})),C=wa("div")(({theme:e})=>({border:`1px solid ${e.palette.ux.secondary.w40}`,borderRadius:e.shape.borderRadius,fontFamily:"monospace",fontSize:"14px",overflow:"hidden"})),R=wa("div")({display:"flex",width:"100%"}),N=wa("div")({flex:1,minWidth:0}),L=wa("div")(({theme:e,lineType:n})=>({display:"flex",minHeight:"1.2em",lineHeight:"1.2em",...n==="insert"&&{backgroundColor:e.palette.ux.success.w10},...n==="delete"&&{backgroundColor:e.palette.ux.warning.w10,mixBlendMode:"multiply"},...n==="empty"&&{backgroundColor:e.palette.ux.error.wMain,opacity:.1}})),k=wa("div")(({theme:e})=>({color:e.palette.ux.secondary.text.wMain,backgroundColor:e.palette.ux.background.w20,textAlign:"center",minWidth:e.spacing(3),padding:e.spacing(0,.5),borderRight:`1px solid ${e.palette.ux.secondary.w40}`,userSelect:"none",flexShrink:0})),v=wa("div")(({theme:e})=>({padding:e.spacing(0,1),whiteSpace:"pre-wrap",overflow:"hidden",wordWrap:"break-word",flex:1})),H=wa("div")(({theme:e})=>({padding:e.spacing(2),textAlign:"center",color:e.palette.ux.secondary.text.wMain})),E=(e,n,l,d)=>{let c=e.added?"insert":e.removed?"delete":"normal";return n.map((D,a)=>{let o={type:c,content:D};return c==="insert"?(o.isInsert=true,o.newLineNumber=d+a,o.lineNumber=d+a):c==="delete"?(o.isDelete=true,o.oldLineNumber=l+a,o.lineNumber=l+a):(o.isNormal=true,o.oldLineNumber=l+a,o.newLineNumber=d+a),o})},G=e=>{if(!e.value)return [];let n=e.value.split(`
|
|
2
2
|
`);return n.length>0&&n[n.length-1]===""&&n.pop(),n};function P(e){let{id:n,text1:l,text2:d,text1Header:c,text2Header:D,noContentText:a$1="No content to compare",noDifferencesText:o="No Differences",hideWhenNoDifferences:$=false}=e,h=y.useMemo(()=>{let t=T.diffLines(l,d),r=[],p=1,m=1;for(let u of t){let s=G(u);if(s.length===0)continue;let M=E(u,s,p,m),W={content:"",oldStart:p,newStart:m,oldLines:u.added?0:s.length,newLines:u.removed?0:s.length,changes:M};r.push(W),u.added||(p+=s.length),u.removed||(m+=s.length);}return r},[l,d]),x=y.useMemo(()=>h.flatMap(t=>t.changes),[h]),w=(t,r,p)=>{let m=r==="old"?t.oldLineNumber:t.newLineNumber;if(!(r==="old"?!t.isInsert:!t.isDelete))return jsxs(L,{lineType:"empty",children:[jsx(k,{children:"\xA0"}),jsx(v,{children:"\xA0"})]},`${r}-empty-${p}`);let s=t.isInsert?"insert":t.isDelete?"delete":"normal";return jsxs(L,{lineType:s,children:[jsx(k,{children:m||""}),jsx(v,{children:t.content})]},`${r}-${m||p}`)};return !l&&!d?jsx(C,{id:`code-diff-${n}`,children:jsx(H,{children:a$1})}):$&&x.every(t=>t.isNormal)?jsx(C,{id:`code-diff-${n}`,children:jsx(H,{children:o})}):jsxs(A,{children:[(c||D)&&jsxs(I,{children:[jsx(S,{children:c&&jsx(a,{id:`diff-text1Header-${n}`,children:c})}),jsx(S,{children:D&&jsx(a,{id:`diff-text2Header-${n}`,children:D})})]}),jsx(C,{id:`code-diff-${n}`,children:jsxs(R,{children:[jsx(N,{children:x.map((t,r)=>w(t,"old",r))}),jsx(N,{children:x.map((t,r)=>w(t,"new",r))})]})})]})}export{P as SolaceTextDiff};//# sourceMappingURL=textDiff.modern.mjs.map
|
|
3
3
|
//# sourceMappingURL=textDiff.modern.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solace-ui-components",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.2",
|
|
4
4
|
"description": "React component library designed for Solace.",
|
|
5
5
|
"author": "Solace",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,7 +45,10 @@
|
|
|
45
45
|
},
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
|
-
"sideEffects":
|
|
48
|
+
"sideEffects": [
|
|
49
|
+
"./src/resources/theme.ts",
|
|
50
|
+
"./dist/**/theme.*"
|
|
51
|
+
],
|
|
49
52
|
"engines": {
|
|
50
53
|
"node": ">=14"
|
|
51
54
|
},
|
|
@@ -238,11 +241,10 @@
|
|
|
238
241
|
"build": "tsup",
|
|
239
242
|
"build:dev": "tsup --watch --no-dts --env.NODE_ENV development",
|
|
240
243
|
"start": "./scripts/start.sh",
|
|
241
|
-
"test": "
|
|
244
|
+
"test": "pnpm --filter storybook run test",
|
|
242
245
|
"test:build": "run-s build",
|
|
243
246
|
"test:lint": "eslint .",
|
|
244
|
-
"test:
|
|
245
|
-
"test:watch": "react-scripts test --env=jsdom",
|
|
247
|
+
"test:watch": "pnpm --filter storybook run dev",
|
|
246
248
|
"types": "tsc",
|
|
247
249
|
"prettier:fix": "prettier --write .",
|
|
248
250
|
"lint:fix": "eslint ./src --fix",
|
package/dist/chunk-GDZZVHFP.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk4XH33OL7_js=require('./chunk-4XH33OL7.js'),jsxRuntime=require('react/jsx-runtime');function f({id:r,htmlForId:t,required:n=false,disabled:b=false,large:s=false,bold:d=false,readOnly:i=false,noWrap:c=false,children:p}){let e=chunk4XH33OL7_js.ua();return jsxRuntime.jsx(chunk4XH33OL7_js.le,{id:r,htmlFor:t,required:n,disabled:b,className:chunk4XH33OL7_js.D({"bold-label":d,"read-only":i}),sx:{display:"block",fontSize:s?e.typography.subtitle1:e.typography.body1,whiteSpace:c?"nowrap":"normal"},children:p})}var y=f;exports.a=y;//# sourceMappingURL=chunk-GDZZVHFP.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-GDZZVHFP.js.map
|