@genesislcap/design-system-configurator 15.58.0 → 15.58.1-FUI-2629.4
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/{15.15.0360dd9029b5e6f852c8.js → 15.15.bd0f1bc3817a953a227b.js} +7 -3
- package/dist/15.d6c0296e8f90736f4f4e7fc1d512f883.js.map +1 -0
- package/dist/{966.966.d2e24c22e6185970db8c.js → 203.203.701475a2a4253b54d42e.js} +543 -435
- package/dist/203.a96acafd4b9387e662c59440732c8d8e.js.map +1 -0
- package/dist/{470.039ab766f5f6987015ac5ef16ed15f32.js.map → 470.03c5d4d21b6b5c1e84a04151bbce2347.js.map} +1 -1
- package/dist/{470.470.971d1e011d9b19aeb8a3.js → 470.470.c09c5bf29617e7bfeb48.js} +9 -9
- package/dist/837.2ffb8edfcad1d6289682f75ec1b1e940.js.map +1 -0
- package/dist/{837.837.e0dd5a3edc9cc7f75454.js → 837.837.0c30d4e69ab95a824bdc.js} +1 -19
- package/dist/947.4fe78d838ab27cc6f98d6ca404ea3819.js.map +1 -0
- package/dist/{947.947.782f7b14cc8f9cef9595.js → 947.947.71e5fb1e441b6cfe0ef9.js} +3 -3
- package/dist/{designSystemConfigurator.c9bcdd812d12ba6bcafdd23d4e036c0a.js.map → designSystemConfigurator.cdfca7b195c73a59162972419f1b026a.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.7f8829184545471cdc98.js → main.ec80278c18f2e34055b5.js} +2 -2
- package/dist/{main.e4f2ce0d468045a809b20666c9cf1da2.js.map → main.ef7621f4865b04d6816a1d6c93bb15c5.js.map} +1 -1
- package/dist/remoteEntry.js +2 -2
- package/package.json +11 -11
- package/dist/15.6c7ebecf1e2de2ab4add3fa2723f7818.js.map +0 -1
- package/dist/837.fc36ee082eb51cec0656e5a122d2faf5.js.map +0 -1
- package/dist/947.2f75b6c4569cc61b6b2158c23e7e7c1e.js.map +0 -1
- package/dist/966.f41ef381ac369bf7dbc74980a0ad635d.js.map +0 -1
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
categorization-wrapper .tab-panel-control {
|
|
723
723
|
margin-top: 10px;
|
|
724
724
|
}
|
|
725
|
-
`;let Z=class extends p.FASTElement{constructor(){super(...arguments),this.mountedTabs=new Set([0]),this.activeTabIndex=0,this.hasAppliedActiveCategory=!1,this.cachedErrorScopes=[]}controlChanged(){var e,t;if(!this.control||this.hasAppliedActiveCategory)return;const{uischema:o}=this.control,a=null===(e=null==o?void 0:o.options)||void 0===e?void 0:e.activeCategory;void 0!==a&&(this.hasAppliedActiveCategory=!0,this.activeTabIndex=function(e,t){return"number"==typeof e&&e>=0&&e<t.length?e:0}(a,null!==(t=null==o?void 0:o.elements)&&void 0!==t?t:[]),this.mountedTabs=new Set([this.activeTabIndex]))}isMounted(e){return this.mountedTabs.has(e)}handleTabChange(e){if(e.target!==e.currentTarget)return;const t=e.target.currentTabIndex;this.activeTabIndex=t,this.mountedTabs.has(t)||(this.mountedTabs=new Set(this.mountedTabs).add(t))}hasCategoryError(e){var t,o,a,r;const
|
|
725
|
+
`;let Z=class extends p.FASTElement{constructor(){super(...arguments),this.mountedTabs=new Set([0]),this.activeTabIndex=0,this.touchedTabs=new Set,this.hasAppliedActiveCategory=!1,this.cachedErrorScopes=[]}controlChanged(){var e,t;if(!this.control||this.hasAppliedActiveCategory)return;const{uischema:o}=this.control,a=null===(e=null==o?void 0:o.options)||void 0===e?void 0:e.activeCategory;void 0!==a&&(this.hasAppliedActiveCategory=!0,this.activeTabIndex=function(e,t){return"number"==typeof e&&e>=0&&e<t.length?e:0}(a,null!==(t=null==o?void 0:o.elements)&&void 0!==t?t:[]),this.mountedTabs=new Set([this.activeTabIndex]))}connectedCallback(){super.connectedCallback();const e=p.Observable.binding(e=>{var t;return null===(t=e.form)||void 0===t?void 0:t.submitted},{handleChange:()=>{e.observe(this,p.defaultExecutionContext)||(this.touchedTabs=new Set)}});this.submittedObserver=e,e.observe(this,p.defaultExecutionContext)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.submittedObserver)||void 0===e||e.disconnect(),this.submittedObserver=void 0}markTabTouched(e){this.touchedTabs.has(e)||(this.touchedTabs=new Set(this.touchedTabs).add(e))}isMounted(e){return this.mountedTabs.has(e)}handleTabChange(e){if(e.target!==e.currentTarget)return;const t=e.target.currentTabIndex;this.activeTabIndex=t,this.mountedTabs.has(t)||(this.mountedTabs=new Set(this.mountedTabs).add(t))}hasCategoryError(e){var t,o,a,r,i;if(!(null===(t=this.form)||void 0===t?void 0:t.submitted)&&!this.touchedTabs.has(e))return!1;const n=null===(a=null===(o=this.control)||void 0===o?void 0:o.uischema)||void 0===a?void 0:a.elements;if(!n)return!1;const s=this.getErrorScopes(null===(i=null===(r=this.form)||void 0===r?void 0:r.jsonforms)||void 0===i?void 0:i.core);return 0!==s.length&&W(n[e],s)}getErrorScopes(e){const t=null==e?void 0:e.errors,o=null==e?void 0:e.additionalErrors;return t===this.lastErrors&&o===this.lastAdditionalErrors||(this.lastErrors=t,this.lastAdditionalErrors=o,this.cachedErrorScopes=function(e){var t;const o=new Set;for(const a of e)if("required"===a.keyword&&(null===(t=a.params)||void 0===t?void 0:t.missingProperty)){const e=`#${a.instancePath?a.instancePath.replace(/\//g,"/properties/"):""}/properties/${a.params.missingProperty}`;o.add(e)}else if(a.instancePath){const e=`#${a.instancePath.replace(/\//g,"/properties/")}`;o.add(e)}return Array.from(o)}([...null!=t?t:[],...null!=o?o:[]])),this.cachedErrorScopes}};(0,i.Cg)([p.observable],Z.prototype,"form",void 0),(0,i.Cg)([p.observable],Z.prototype,"control",void 0),(0,i.Cg)([p.observable],Z.prototype,"mountedTabs",void 0),(0,i.Cg)([p.observable],Z.prototype,"activeTabIndex",void 0),(0,i.Cg)([p.observable],Z.prototype,"touchedTabs",void 0),Z=(0,i.Cg)([(0,p.customElement)({name:"categorization-wrapper",styles:J,shadowOptions:null,template:p.html`
|
|
726
726
|
${e=>((e="zero")=>p.html`
|
|
727
727
|
<template>
|
|
728
728
|
<${e}-tabs appearance="secondary" class="tabs-container" :activeid="${e=>"tab-"+e.activeTabIndex}" @change=${(e,t)=>e.handleTabChange(t.event)}>
|
|
@@ -739,7 +739,10 @@
|
|
|
739
739
|
</${e}-tab>
|
|
740
740
|
`,{positioning:!0})}
|
|
741
741
|
${(0,p.repeat)(e=>e.control.uischema.elements,p.html`
|
|
742
|
-
<${e}-tab-panel
|
|
742
|
+
<${e}-tab-panel
|
|
743
|
+
class="tab-panel-control"
|
|
744
|
+
@focusout=${(e,t)=>(t.parent.markTabTouched(t.index),!0)}
|
|
745
|
+
>
|
|
743
746
|
${(0,p.when)((e,t)=>t.parent.isMounted(t.index),p.html`
|
|
744
747
|
${(0,p.repeat)(e=>e.options.childElements,p.html`
|
|
745
748
|
<dispatch-renderer
|
|
@@ -883,6 +886,7 @@
|
|
|
883
886
|
`,{positioning:!0})}
|
|
884
887
|
${(0,p.repeat)(e=>e.control.uischema.elements,p.html`
|
|
885
888
|
<${e}-tab-panel
|
|
889
|
+
@focusout=${(e,t)=>(t.parent.markTabTouched(t.index),!0)}
|
|
886
890
|
class="${(e,t)=>{var o,a,r;const i=q(e,null===(r=null===(a=null===(o=t.parent.form)||void 0===o?void 0:o.jsonforms)||void 0===a?void 0:a.core)||void 0===r?void 0:r.data);return(0,h.x)("tab-panel-control",[i,!!i])}}"
|
|
887
891
|
>
|
|
888
892
|
${(0,p.when)((e,t)=>t.parent.isMounted(t.index),p.html`
|
|
@@ -5757,4 +5761,4 @@
|
|
|
5757
5761
|
</rapid-tabs>
|
|
5758
5762
|
</template>
|
|
5759
5763
|
`;let xp=class extends p.FASTElement{};xp=(0,i.Cg)([(0,p.customElement)({name:"design-system-preview",template:yp,styles:rp})],xp),((e,t="zero")=>(0,ce.provideDesignSystem)(e,t,r,a))().register(rd,yc),(0,wc.provideDesignSystem)().register(wc.baseComponents,Sc.rapidGridComponents,Uo)}}]);
|
|
5760
|
-
//# sourceMappingURL=15.
|
|
5764
|
+
//# sourceMappingURL=15.d6c0296e8f90736f4f4e7fc1d512f883.js.map
|