@genesislcap/design-system-configurator 15.23.1 → 15.23.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.
@@ -722,7 +722,7 @@
722
722
  categorization-wrapper .tab-panel-control {
723
723
  margin-top: 10px;
724
724
  }
725
- `;let W=class extends p.FASTElement{constructor(){super(...arguments),this.mountedTabs=new Set([0]),this.activeTabIndex=0,this.hasAppliedActiveCategory=!1}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,i;if(!(null===(a=null===(o=null===(t=this.form)||void 0===t?void 0:t.jsonforms)||void 0===o?void 0:o.core)||void 0===a?void 0:a.errors)||!(null===(i=null===(r=this.control)||void 0===r?void 0:r.uischema)||void 0===i?void 0:i.elements))return!1;const n=this.control.uischema.elements[e],s=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||"",t=a.params.missingProperty,r=""===e?`#/properties/${t}`:`#${e}/properties/${t}`;o.add(r)}else if(a.instancePath){const e=`#${a.instancePath.replace(/\//g,"/properties/")}`;o.add(e)}return Array.from(o)}(this.form.jsonforms.core.errors);return G(n,s)}};(0,i.Cg)([p.observable],W.prototype,"form",void 0),(0,i.Cg)([p.observable],W.prototype,"control",void 0),(0,i.Cg)([p.observable],W.prototype,"mountedTabs",void 0),(0,i.Cg)([p.observable],W.prototype,"activeTabIndex",void 0),W=(0,i.Cg)([(0,p.customElement)({name:"categorization-wrapper",styles:Y,shadowOptions:null,template:p.html`
725
+ `;let W=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 i=null===(o=null===(t=this.control)||void 0===t?void 0:t.uischema)||void 0===o?void 0:o.elements;if(!i)return!1;const n=this.getErrorScopes(null===(r=null===(a=this.form)||void 0===a?void 0:a.jsonforms)||void 0===r?void 0:r.core);return 0!==n.length&&G(i[e],n)}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||"",t=a.params.missingProperty,r=""===e?`#/properties/${t}`:`#${e}/properties/${t}`;o.add(r)}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],W.prototype,"form",void 0),(0,i.Cg)([p.observable],W.prototype,"control",void 0),(0,i.Cg)([p.observable],W.prototype,"mountedTabs",void 0),(0,i.Cg)([p.observable],W.prototype,"activeTabIndex",void 0),W=(0,i.Cg)([(0,p.customElement)({name:"categorization-wrapper",styles:Y,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)}>
@@ -5757,4 +5757,4 @@
5757
5757
  </rapid-tabs>
5758
5758
  </template>
5759
5759
  `;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)}}]);
5760
- //# sourceMappingURL=326.e9a4890ae0085b1de15431fb17774458.js.map
5760
+ //# sourceMappingURL=326.99b3e630970343d81ac1c3058907661a.js.map