@genesislcap/design-system-configurator 15.19.0 → 15.19.1-FUI-2610.1
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/{326.326.fa17443fc05f7276200b.js → 326.326.5d8a6e08f39d69cf75bd.js} +2 -2
- package/dist/326.e30838bb8d843cc42dfb78895cf0ebea.js.map +1 -0
- package/dist/{designSystemConfigurator.5eb6e05e819cbdbcb3eddff6065d7ffe.js.map → designSystemConfigurator.322b675e2232533b14a6e65742d21e10.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.f6beb912f387e997697c8f99c1907f76.js.map → main.0de822da5a929e485826df7b285a22e8.js.map} +1 -1
- package/dist/{main.0ecec29b0b030dd9c9fa.js → main.6529431f135afda40f1f.js} +2 -2
- package/dist/remoteEntry.js +2 -2
- package/package.json +13 -14
- package/dist/326.88b3f5abb04a2bbf4da3f911b6c0b2a5.js.map +0 -1
|
@@ -1022,7 +1022,7 @@
|
|
|
1022
1022
|
</div>
|
|
1023
1023
|
</template>
|
|
1024
1024
|
`;var t}}
|
|
1025
|
-
`;var ae,re=o(49964),ie=o(14609),ne=o(58749),se=o(20166),le=o(12066),de=o(88047);!function(e){e.STRING="STRING",e.ENUM="ENUM",e.INT="INT",e.SHORT="SHORT",e.DOUBLE="DOUBLE",e.LONG="LONG",e.BOOLEAN="BOOLEAN",e.BIGDECIMAL="BIGDECIMAL",e.DATE="DATE",e.DATETIME="DATETIME",e.RAW="RAW"}(ae||(ae={}));const ce=(0,c.f4S)(e=>"org.joda.time.DateTime"===e.description),pe=e=>e.genesisType===ae.DATE||e.genesisType===ae.DATETIME,ue=(0,c.f4S)(pe),ge=(0,c.or)(ce,ue,(0,c.f4S)(e=>e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>"org.joda.time.DateTime"===e.description||pe(e)))),me=e=>(0,c.dfR)(e,"number")||(0,c.dfR)(e,"integer"),he=e=>e.genesisType===ae.DOUBLE||e.genesisType===ae.INT||e.genesisType===ae.SHORT||e.genesisType===ae.LONG||e.genesisType===ae.BIGDECIMAL,be=(0,c.f4S)(he),ve=e=>"java.math.BigDecimal"===e.description||e.genesisType===ae.BIGDECIMAL,fe=(0,c.or)((0,c.f4S)(e=>me(e)||e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>me(e))),be,(0,c.f4S)(e=>e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>he(e))),(0,c.f4S)(e=>ve(e)||e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>ve(e))));function ye(e,t,o){return(0,i.sH)(this,void 0,void 0,function*(){const a=[],r=(e,t)=>{const o=a[a.length-1];o&&o.title===e?o.fields.push(t):a.push({title:e,fields:[t]})},n=(e,t,a)=>(0,i.sH)(this,void 0,void 0,function*(){var r,n,s,l;const d=null!==(l=null!==(s=null!==(n=null!==(r=function(e,t){var o,a,r;if(!Array.isArray(null==t?void 0:t.data))return null;const i=null!==(o=t.valueField)&&void 0!==o?o:"value",n=null!==(a=t.labelField)&&void 0!==a?a:"label",s=t.data.find(t=>t[i]===e);return null!==(r=
|
|
1025
|
+
`;var ae,re=o(49964),ie=o(14609),ne=o(58749),se=o(20166),le=o(12066),de=o(88047);!function(e){e.STRING="STRING",e.ENUM="ENUM",e.INT="INT",e.SHORT="SHORT",e.DOUBLE="DOUBLE",e.LONG="LONG",e.BOOLEAN="BOOLEAN",e.BIGDECIMAL="BIGDECIMAL",e.DATE="DATE",e.DATETIME="DATETIME",e.RAW="RAW"}(ae||(ae={}));const ce=(0,c.f4S)(e=>"org.joda.time.DateTime"===e.description),pe=e=>e.genesisType===ae.DATE||e.genesisType===ae.DATETIME,ue=(0,c.f4S)(pe),ge=(0,c.or)(ce,ue,(0,c.f4S)(e=>e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>"org.joda.time.DateTime"===e.description||pe(e)))),me=e=>(0,c.dfR)(e,"number")||(0,c.dfR)(e,"integer"),he=e=>e.genesisType===ae.DOUBLE||e.genesisType===ae.INT||e.genesisType===ae.SHORT||e.genesisType===ae.LONG||e.genesisType===ae.BIGDECIMAL,be=(0,c.f4S)(he),ve=e=>"java.math.BigDecimal"===e.description||e.genesisType===ae.BIGDECIMAL,fe=(0,c.or)((0,c.f4S)(e=>me(e)||e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>me(e))),be,(0,c.f4S)(e=>e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>he(e))),(0,c.f4S)(e=>ve(e)||e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>ve(e))));function ye(e,t,o){return(0,i.sH)(this,void 0,void 0,function*(){const a=[],r=(e,t)=>{const o=a[a.length-1];o&&o.title===e?o.fields.push(t):a.push({title:e,fields:[t]})},n=(e,t,a)=>(0,i.sH)(this,void 0,void 0,function*(){var r,n,s,l;const d=null!==(l=null!==(s=null!==(n=null!==(r=function(e,t){var o,a,r;if(!Array.isArray(null==t?void 0:t.data))return null;const i=null!==(o=t.valueField)&&void 0!==o?o:"value",n=null!==(a=t.labelField)&&void 0!==a?a:"label",s=t.data.find(t=>t[i]===e);return s?t.labelRowFormatter?t.labelRowFormatter(s):null!==(r=s[n])&&void 0!==r?r:null:null}(e,a))&&void 0!==r?r:yield function(e,t){return(0,i.sH)(this,void 0,void 0,function*(){var o,a,r;const i=null==t?void 0:t.allOptionsResourceName;if(!i||null==e||""===e)return null;const n=null!==(o=t.valueField)&&void 0!==o?o:"value",s=null!==(a=t.labelField)&&void 0!==a?a:"label",l=t.labelRowFormatter,d=(0,re.oy)();try{const o=(new ie.b).withExpression((new ne.K).withField(n).withValue(e).build()).build();if(!(yield d.init(Object.assign(Object.assign(Object.assign({},t.datasourceConfig),{resourceName:i,criteria:o,isSnapshot:!0,maxRows:1}),l?{}:{fields:n===s?n:`${n} ${s}`}))))return null;const a=yield d.snapshotFiltered(),c=null==a?void 0:a[0];return c?l?l(c):null!==(r=c[s])&&void 0!==r?r:null:null}catch(e){return null}finally{d.destroy()}})}(e,a))&&void 0!==n?n:function(e,t,o){var a,r,i;if("string"!=typeof e)return null;const n=xe(t,o);if(!n)return null;const s=null!==(a=n.enum)&&void 0!==a?a:null===(i=null===(r=n.oneOf)||void 0===r?void 0:r.find(e=>e.enum))||void 0===i?void 0:i.enum;if(Array.isArray(s)&&s.includes(e))return(0,de.capitalCase)(e);return null}(e,t,o))&&void 0!==s?s:function(e,t,o,a){const r=xe(t,o);if(!r||null==e||""===e||Number.isNaN(e))return null;if(Array.isArray(e)&&r.items)return e.map(e=>{var t;return null!==(t=Me(e,r.items,a))&&void 0!==t?t:e});return Me(e,r,a)}(e,t,o,a))&&void 0!==l?l:e;return Le(d)}),s=(t,o)=>{var a,r,i;if(!t)return[];if("Control"===t.type&&t.scope){if(null===(a=t.options)||void 0===a?void 0:a.hidden)return[];const r=t.scope.match(/^#\/properties\/(.+)$/);if(!r)return[];const i=r[1],s=Ie(e,i);if(null==s||""===s||Array.isArray(s)&&0===s.length)return[];const l=i.split("/properties/").pop();return[{groupTitle:o,label:t.label||(0,de.capitalCase)(l),valuePromise:n(s,i,t.options)}]}const l="Group"===t.type&&t.label?t.label:o,d=null!==(r=t.elements)&&void 0!==r?r:null===(i=t.options)||void 0===i?void 0:i.childElements;return d?d.flatMap(e=>s(e,l)):[]};if(t){const e=s(t,null),o=yield Promise.all(e.map(e=>e.valuePromise));e.forEach((e,t)=>{r(e.groupTitle,{label:e.label,value:o[t]})})}else for(const[t,o]of Object.entries(null!=e?e:{}))null!=o&&""!==o&&r(null,{label:(0,de.capitalCase)(t),value:Le(o)});return a})}function xe(e,t){var o;if(!(null==t?void 0:t.properties))return null;let a=t;for(const t of e.split("/properties/"))a=null===(o=null==a?void 0:a.properties)||void 0===o?void 0:o[t];return null!=a?a:null}const we={type:"Control",scope:"#"},Se={config:{},rootSchema:{}},Ce={maximumFractionDigits:3,minimumFractionDigits:0},Ae=/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/,ke={year:"numeric",month:"2-digit",day:"2-digit"},Re=Object.assign(Object.assign({},ke),{hour:"2-digit",minute:"2-digit"});function Me(e,t,o){var a,r,i,n;if(!t)return null;if(ge(we,t,Se)){if(!e)return null;const o=t.hasOwnProperty("oneOf")?t.oneOf.some(e=>e.genesisType===ae.DATETIME):t.genesisType===ae.DATETIME;return(0,le.h5)((new Intl.DateTimeFormat).resolvedOptions().locale,o?Re:ke)({value:e})||null}if(fe(we,t,Se)){if((ve(t)||(null===(a=t.oneOf)||void 0===a?void 0:a.some(e=>ve(e))))&&("string"!=typeof e||!Ae.test(e)))return null;const s=!!(null==o?void 0:o.withoutFormatting),l=null!==(r=null==o?void 0:o.formatOptions)&&void 0!==r?r:Ce,d=s?String(e):(0,se.toIntlNumberFormat)(String(e),"en-US",l);return d?(i=d,[null==(n=o)?void 0:n.prefix,i,null==n?void 0:n.suffix].filter(Boolean).join(" ")):null}return null}function Ie(e,t){return function(e,t){let o=e;for(const e of t){if(null==o)return;o=o[e]}return o}(e,t.split("/properties/"))}function Le(e){return Array.isArray(e)?0===e.length?"":e.every(e=>null===e||"object"!=typeof e)?e.join(", "):e.map((e,t)=>`[${t+1}] ${Object.entries(null!=e?e:{}).filter(([,e])=>null!=e&&""!==e).map(([e,t])=>`${e}: ${t}`).join(", ")}`).join("\n"):null==e?"":"object"==typeof e?Object.entries(e).filter(([,e])=>null!=e&&""!==e).map(([e,t])=>`${e}: ${t}`).join(", "):String(e)}let Fe=class extends p.FASTElement{constructor(){super(...arguments),this.prefix="rapid",this.heading="Review",this.sections=[],this.filterText=""}get filteredSections(){return function(e,t){const o=t.trim().toLowerCase();return o?e.map(e=>({title:e.title,fields:e.fields.filter(e=>e.label.toLowerCase().includes(o)||e.value.toLowerCase().includes(o))})).filter(e=>e.fields.length>0):e}(this.sections,this.filterText)}};(0,i.Cg)([(0,p.attr)({attribute:"design-system-prefix"})],Fe.prototype,"prefix",void 0),(0,i.Cg)([p.attr],Fe.prototype,"heading",void 0),(0,i.Cg)([(0,p.attr)({attribute:"record-id"})],Fe.prototype,"recordId",void 0),(0,i.Cg)([p.observable],Fe.prototype,"sections",void 0),(0,i.Cg)([p.observable],Fe.prototype,"filterText",void 0),(0,i.Cg)([p.volatile],Fe.prototype,"filteredSections",null),Fe=(0,i.Cg)([(0,p.customElement)({name:"foundation-form-review",template:oe,styles:te,shadowOptions:null})],Fe),(0,L.N)(T,U,W,ee,X,$,Fe);const Ee=p.html`
|
|
1026
1026
|
${e=>{return t=e.prefix,p.html`
|
|
1027
1027
|
<template>
|
|
1028
1028
|
${(0,p.when)(e=>!e.reviewMode&&e.bulkInsert,p.html`
|
|
@@ -5756,4 +5756,4 @@
|
|
|
5756
5756
|
</rapid-tabs>
|
|
5757
5757
|
</template>
|
|
5758
5758
|
`;let dp=class extends p.FASTElement{};dp=(0,i.Cg)([(0,p.customElement)({name:"design-system-preview",template:lp,styles:Jc})],dp),((e,t="zero")=>(0,se.provideDesignSystem)(e,t,r,a))().register(_l,lc),(0,cc.provideDesignSystem)().register(cc.baseComponents,pc.rapidGridComponents,No)}}]);
|
|
5759
|
-
//# sourceMappingURL=326.
|
|
5759
|
+
//# sourceMappingURL=326.e30838bb8d843cc42dfb78895cf0ebea.js.map
|