@genesislcap/design-system-configurator 15.46.4 → 15.46.5-FUI-2648.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/{11.11.fbdae997b64e2ff8a67e.js → 11.11.de34ac2c6c667d7ac034.js} +3 -3
- package/dist/11.fde394bc50847cede9fa9196d9c401a8.js.map +1 -0
- package/dist/966.95b00070047dd82fc3890c45595aa2cf.js.map +1 -0
- package/dist/{966.966.c8760f286fe842f01d88.js → 966.966.c2009200a7eb6783653d.js} +80 -71
- package/dist/{designSystemConfigurator.3aa30d3c557b52dc9247259b81b025e6.js.map → designSystemConfigurator.42041bf3130d5e48ac0da906da579edc.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.662ae2a0009a0b0f7d1eb300db799e02.js.map → main.5614c327d60a3a74e714cf18e7707f33.js.map} +1 -1
- package/dist/{main.b3040b7bbb6b9be49e9f.js → main.60a05e9960e42ebcc701.js} +2 -2
- package/dist/remoteEntry.js +2 -2
- package/package.json +11 -11
- package/dist/11.dabc3b8771ea67f554fe02d500a02d0d.js.map +0 -1
- package/dist/966.0d5feb07930f8c53831abe8e3640a072.js.map +0 -1
|
@@ -701,7 +701,7 @@
|
|
|
701
701
|
array-list-wrapper .array-list.grid-row.row-status-submitting {
|
|
702
702
|
background-color: color-mix(in srgb, var(--row-status-submitting-color), transparent 95%);
|
|
703
703
|
}
|
|
704
|
-
`;let U=class extends p.FASTElement{constructor(){super(...arguments),this.isGridView=!1,this.gridViewHeaderCells=[],this.gridViewUiSchema=null}controlChanged(){var e,t;this.schema=this.control.schema,this.isGridView=!!(null===(e=this.control.uischema.options)||void 0===e?void 0:e.gridView);const o=null===(t=this.control.uischema.options)||void 0===t?void 0:t.childUiSchema;if(o&&"function"!=typeof o)this.uiSchema=o;else{const e=c.wyb.uiSchema(this.schema);this.uiSchema=Object.assign(Object.assign({},e),{type:"HorizontalLayout"}),v.debug("Auto generated uiSchema for layout array:",this.uiSchema)}this.isGridView&&(this.gridViewHeaderCells=((e,t)=>{if(!(null==e?void 0:e.elements))return[];const o=Array.isArray(null==t?void 0:t.required)?t.required:[];return e.elements.map(e=>{var a,r,i,n;const s=(e=>{var t;return null!==(t=null==e?void 0:e.split("/").pop())&&void 0!==t?t:""})(e.scope);return{label:!1===e.label?"":"string"==typeof e.label?e.label:null!==(i=null===(r=null===(a=null==t?void 0:t.properties)||void 0===a?void 0:a[s])||void 0===r?void 0:r.title)&&void 0!==i?i:s.replace(/([A-Z])/g," $1").replace(/[_.-]+/g," ").trim().replace(/^./,e=>e.toUpperCase()),required:o.includes(s),tooltip:null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.tooltip}})})(this.uiSchema,this.schema),this.gridViewUiSchema=D(this.uiSchema))}addItem(){this.control.addItem(this.control.path,(0,c.DmA)(this.control.schema,this.control.rootSchema))()}deleteItem(e){this.control.removeItems(this.control.path,[e])()}submitRow(e){this.$emit("submit-single-row",{index:e},{bubbles:!0,composed:!0})}};function G(e,t){var o;if(
|
|
704
|
+
`;let U=class extends p.FASTElement{constructor(){super(...arguments),this.isGridView=!1,this.gridViewHeaderCells=[],this.gridViewUiSchema=null}controlChanged(){var e,t;this.schema=this.control.schema,this.isGridView=!!(null===(e=this.control.uischema.options)||void 0===e?void 0:e.gridView);const o=null===(t=this.control.uischema.options)||void 0===t?void 0:t.childUiSchema;if(o&&"function"!=typeof o)this.uiSchema=o;else{const e=c.wyb.uiSchema(this.schema);this.uiSchema=Object.assign(Object.assign({},e),{type:"HorizontalLayout"}),v.debug("Auto generated uiSchema for layout array:",this.uiSchema)}this.isGridView&&(this.gridViewHeaderCells=((e,t)=>{if(!(null==e?void 0:e.elements))return[];const o=Array.isArray(null==t?void 0:t.required)?t.required:[];return e.elements.map(e=>{var a,r,i,n;const s=(e=>{var t;return null!==(t=null==e?void 0:e.split("/").pop())&&void 0!==t?t:""})(e.scope);return{label:!1===e.label?"":"string"==typeof e.label?e.label:null!==(i=null===(r=null===(a=null==t?void 0:t.properties)||void 0===a?void 0:a[s])||void 0===r?void 0:r.title)&&void 0!==i?i:s.replace(/([A-Z])/g," $1").replace(/[_.-]+/g," ").trim().replace(/^./,e=>e.toUpperCase()),required:o.includes(s),tooltip:null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.tooltip}})})(this.uiSchema,this.schema),this.gridViewUiSchema=D(this.uiSchema))}addItem(){this.control.addItem(this.control.path,(0,c.DmA)(this.control.schema,this.control.rootSchema))()}deleteItem(e){this.control.removeItems(this.control.path,[e])()}submitRow(e){this.$emit("submit-single-row",{index:e},{bubbles:!0,composed:!0})}};function G(e,t){var o;if(!e)return!1;const a=null===(o=e.options)||void 0===o?void 0:o.childElements,r=e.elements,i=Array.isArray(a)&&a.length>0,n=Array.isArray(r)&&r.length>0;if(i)for(const e of a)if(G(e,t))return!0;if(n)for(const e of r)if(G(e,t))return!0;const s=e.scope;if("string"!=typeof s||!t.includes(s))return!1;const l=t.some(e=>e.startsWith(`${s}/`));return!((i||n)&&l)}function V(e,t){var o,a;const r=null===(o=null==e?void 0:e.options)||void 0===o?void 0:o.className;return"function"==typeof r?null!==(a=r(t))&&void 0!==a?a:"":null!=r?r:""}(0,i.Cg)([p.observable],U.prototype,"form",void 0),(0,i.Cg)([p.observable],U.prototype,"control",void 0),(0,i.Cg)([p.observable],U.prototype,"schema",void 0),(0,i.Cg)([p.observable],U.prototype,"uiSchema",void 0),(0,i.Cg)([p.observable],U.prototype,"isGridView",void 0),(0,i.Cg)([p.observable],U.prototype,"gridViewHeaderCells",void 0),(0,i.Cg)([p.observable],U.prototype,"gridViewUiSchema",void 0),U=(0,i.Cg)([(0,p.customElement)({name:"array-list-wrapper",styles:H,shadowOptions:null,template:p.html`
|
|
705
705
|
${e=>B(e.form.prefix)}
|
|
706
706
|
`})],U);p.css`
|
|
707
707
|
.tab-control-icon {
|
|
@@ -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,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
|
|
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?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],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 bp=class extends p.FASTElement{};bp=(0,i.Cg)([(0,p.customElement)({name:"design-system-preview",template:hp,styles:ep})],bp),((e,t="zero")=>(0,se.provideDesignSystem)(e,t,r,a))().register(ed,hc),(0,vc.provideDesignSystem)().register(vc.baseComponents,fc.rapidGridComponents,Po)}}]);
|
|
5760
|
-
//# sourceMappingURL=11.
|
|
5760
|
+
//# sourceMappingURL=11.fde394bc50847cede9fa9196d9c401a8.js.map
|