jupiter-dynamic-forms 1.19.2 → 1.19.3
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/core/dynamic-form.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-form.d.ts","sourceRoot":"","sources":["../../src/core/dynamic-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EACL,cAAc,EACd,QAAQ,EAGR,SAAS,EACT,eAAe,EAOf,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAOrD,OAAO,gBAAgB,CAAC;AACxB,OAAO,uBAAuB,CAAC;AAE/B,qBACa,kBAAmB,SAAQ,UAAU;IACpB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,MAAM,EAAE,eAAe,CAAM;IAC7B,WAAW,EAAE,QAAQ,CAAM;IAC1B,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAClB,eAAe,SAAgB;IAC/B,aAAa,SAAgB;IAC7B,QAAQ,SAAQ;IAChB,iBAAiB,SAAQ;IACzB,OAAO,EAAE,WAAW,GAAG,WAAW,CAAe;IACjD,IAAI,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAe;IAEnF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAM3B,cAAc,EAAE,gBAAgB,EAAE,CAAM;IAIxC,2BAA2B,UAAS;IAIpC,aAAa,UAAS;IAKtB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAM;IAIjD,QAAQ,SAAS;IAMjB,UAAU,CAAC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0QhB,MAAM;CAoLP"}
|
package/dist/index.js
CHANGED
|
@@ -1043,7 +1043,7 @@ const I={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:x},$=(e=I,t,
|
|
|
1043
1043
|
opacity: 1;
|
|
1044
1044
|
}
|
|
1045
1045
|
|
|
1046
|
-
`,K([S({type:Object})],exports.JupiterConceptTree.prototype,"concept",2),K([S({type:Array})],exports.JupiterConceptTree.prototype,"columns",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"formData",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"periodData",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"unitData",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"decimalsData",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"globalDecimals",2),K([S({type:Array})],exports.JupiterConceptTree.prototype,"defaultUnits",2),K([S({type:Boolean})],exports.JupiterConceptTree.prototype,"disabled",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"locale",2),K([S({type:Set})],exports.JupiterConceptTree.prototype,"expandedConcepts",2),K([S({type:Array})],exports.JupiterConceptTree.prototype,"datatypes",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"mode",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"masterData",2),K([S({type:Array})],exports.JupiterConceptTree.prototype,"facts",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"typedMemberData",2),K([S({type:Boolean})],exports.JupiterConceptTree.prototype,"showAddButton",2),K([S({type:Boolean})],exports.JupiterConceptTree.prototype,"showRemoveButton",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"highlightType",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"highlightColumnId",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"calculationErrorKeys",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"language",2),K([w()],exports.JupiterConceptTree.prototype,"_expanded",2),exports.JupiterConceptTree=K([t("jupiter-concept-tree")],exports.JupiterConceptTree);var Y=Object.defineProperty,G=Object.getOwnPropertyDescriptor,
|
|
1046
|
+
`,K([S({type:Object})],exports.JupiterConceptTree.prototype,"concept",2),K([S({type:Array})],exports.JupiterConceptTree.prototype,"columns",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"formData",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"periodData",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"unitData",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"decimalsData",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"globalDecimals",2),K([S({type:Array})],exports.JupiterConceptTree.prototype,"defaultUnits",2),K([S({type:Boolean})],exports.JupiterConceptTree.prototype,"disabled",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"locale",2),K([S({type:Set})],exports.JupiterConceptTree.prototype,"expandedConcepts",2),K([S({type:Array})],exports.JupiterConceptTree.prototype,"datatypes",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"mode",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"masterData",2),K([S({type:Array})],exports.JupiterConceptTree.prototype,"facts",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"typedMemberData",2),K([S({type:Boolean})],exports.JupiterConceptTree.prototype,"showAddButton",2),K([S({type:Boolean})],exports.JupiterConceptTree.prototype,"showRemoveButton",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"highlightType",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"highlightColumnId",2),K([S({type:Object})],exports.JupiterConceptTree.prototype,"calculationErrorKeys",2),K([S({type:String})],exports.JupiterConceptTree.prototype,"language",2),K([w()],exports.JupiterConceptTree.prototype,"_expanded",2),exports.JupiterConceptTree=K([t("jupiter-concept-tree")],exports.JupiterConceptTree);var Y=Object.defineProperty,G=Object.getOwnPropertyDescriptor,W=(e,t,i,o)=>{for(var r,n=o>1?void 0:o?G(t,i):t,s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o?r(t,i,n):r(n))||n);return o&&n&&Y(t,i,n),n};exports.JupiterAddColumnDialog=class extends e.LitElement{constructor(){super(...arguments),this.periodType="duration",this.open=!1,this.availableDimensions=[],this.periodStartDate="",this.periodEndDate="",this._startDate="",this._endDate="",this._instantDate="",this._selectedType="duration",this._selectedDimensions=new Map}updated(e){e.has("open")&&this.open&&this._resetForm(),e.has("availableDimensions")}connectedCallback(){super.connectedCallback(),this._resetForm()}willUpdate(e){super.willUpdate(e),e.has("open")&&this.open&&this._resetForm()}_handleCancel(){this.open=!1,this.dispatchEvent(new CustomEvent("dialog-cancel",{bubbles:!0}))}_handleConfirm(){if(!this._isFormValid())return;const e={periodType:"mixed"===this.periodType?"duration":this.periodType};"instant"===this.periodType?e.instantDate=this._instantDate:(e.startDate=this._startDate,e.endDate=this._endDate),this._selectedDimensions.size>0&&(e.selectedDimensions=Array.from(this._selectedDimensions.values())),this.dispatchEvent(new CustomEvent("column-add",{detail:e,bubbles:!0}))}_isFormValid(){return"mixed"===this.periodType||"duration"===this.periodType?!!this._startDate&&!!this._endDate&&this._startDate<=this._endDate:"instant"===this.periodType&&!!this._instantDate}_handleStartDateChange(e){this._startDate=e.target.value}_handleEndDateChange(e){this._endDate=e.target.value}_handleSelectedTypeChange(e){this._selectedType=e.target.value}_handleInstantDateChange(e){this._instantDate=e.target.value}_handleDimensionToggle(e,t){if(t.target.checked){const t=this.availableDimensions.find(t=>t.id===e);if(t){const i={axisId:t.id,axisLabel:t.axisLabel,isTyped:!(!t.typedMember||t.members&&0!==t.members.length)};this._selectedDimensions.set(e,i)}}else this._selectedDimensions.delete(e);this.requestUpdate()}_handleMemberSelection(e,t,i){const o=this._selectedDimensions.get(e);o&&(o.memberId=t,o.memberLabel=i,this._selectedDimensions.set(e,o),this.requestUpdate())}_handleTypedValueChange(e,t){const i=t.target,o=this._selectedDimensions.get(e);o&&(o.typedValue=i.value,this._selectedDimensions.set(e,o))}_resetForm(){this._startDate=this.periodStartDate||"",this._endDate=this.periodEndDate||"",this._instantDate=this.periodEndDate||this.periodStartDate||"",this._selectedType="instant"===this.periodType?"instant":"duration",this._selectedDimensions.clear(),this._autoSelectSingleMemberDimensions(),this.requestUpdate()}_autoSelectSingleMemberDimensions(){this.availableDimensions.forEach(e=>{if(e.members&&e.members.length>0){const t=e.members[0],i={axisId:e.id,axisLabel:e.axisLabel,memberId:t.id,memberLabel:t.label,isTyped:!1};this._selectedDimensions.set(e.id,i),console.log(`🎯 Auto-selected default member: ${e.axisLabel} -> ${t.label}`)}else if(e.typedMember&&(!e.members||0===e.members.length)){const t={axisId:e.id,axisLabel:e.axisLabel,isTyped:!0};this._selectedDimensions.set(e.id,t),console.log(`🎯 Auto-selected typed dimension: ${e.axisLabel} (value will be entered in column header)`)}})}render(){if(!this.open)return e.html``;const t=this._isFormValid();return e.html`
|
|
1047
1047
|
<div class="dialog" @click="${e=>e.stopPropagation()}">
|
|
1048
1048
|
<div class="dialog-header">
|
|
1049
1049
|
<h2 class="dialog-title">${R.t("column.addColumn")}</h2>
|
|
@@ -1493,7 +1493,7 @@ const I={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:x},$=(e=I,t,
|
|
|
1493
1493
|
margin: 0 0 12px 0;
|
|
1494
1494
|
line-height: 1.4;
|
|
1495
1495
|
}
|
|
1496
|
-
`,
|
|
1496
|
+
`,W([S({type:String})],exports.JupiterAddColumnDialog.prototype,"periodType",2),W([S({type:Boolean})],exports.JupiterAddColumnDialog.prototype,"open",2),W([S({type:Array})],exports.JupiterAddColumnDialog.prototype,"availableDimensions",2),W([S({type:String})],exports.JupiterAddColumnDialog.prototype,"periodStartDate",2),W([S({type:String})],exports.JupiterAddColumnDialog.prototype,"periodEndDate",2),W([w()],exports.JupiterAddColumnDialog.prototype,"_startDate",2),W([w()],exports.JupiterAddColumnDialog.prototype,"_endDate",2),W([w()],exports.JupiterAddColumnDialog.prototype,"_instantDate",2),W([w()],exports.JupiterAddColumnDialog.prototype,"_selectedType",2),W([w()],exports.JupiterAddColumnDialog.prototype,"_selectedDimensions",2),exports.JupiterAddColumnDialog=W([t("jupiter-add-column-dialog")],exports.JupiterAddColumnDialog);var Q=Object.defineProperty,X=Object.getOwnPropertyDescriptor,Z=(e,t,i,o)=>{for(var r,n=o>1?void 0:o?X(t,i):t,s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o?r(t,i,n):r(n))||n);return o&&n&&Q(t,i,n),n};exports.JupiterFormSection=class extends e.LitElement{constructor(){super(...arguments),this.columns=[],this.formData={},this.periodData={},this.unitData={},this.decimalsData={},this.globalDecimals="INF",this.typedMemberData={},this.repeatCounts={},this.defaultUnits=[],this.disabled=!1,this.collapsible=!0,this.locale="en-US",this.isFirstSection=!1,this.availableDimensions=[],this.hideHeader=!1,this.mode="inputForm",this.showFactsOnly=!1,this.periodStartDate="",this.periodEndDate="",this.language="en",this._expanded=!0,this._showAddColumnDialog=!1,this._sectionPeriodType="duration",this._openMenuColumnId=null,this._insertAfterColumnId=null,this._boundFieldBlur=e=>{this._clearHighlights()},this._expandedConcepts=new Set,this._allTreeExpanded=!1,this._highlightMap=new Map,this._calculationErrorKeys=new Set,this._totalChildrenMap=new Map,this._memberParentMap=new Map,this._totalConceptMap=new Map,this._totalChildConceptsMap=new Map}connectedCallback(){super.connectedCallback(),this._expanded=!1!==this.section.expanded,this._determinePeriodType(),this._checkAndExpandFirstSection(),document.addEventListener("click",()=>this._closeColumnMenu()),this.addEventListener("field-blur",this._boundFieldBlur)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",()=>this._closeColumnMenu()),this.removeEventListener("field-blur",this._boundFieldBlur)}updated(e){var t;super.updated(e),(e.has("isFirstSection")||e.has("section"))&&this._checkAndExpandFirstSection(),e.has("section")&&(null==(t=this.section)?void 0:t.concepts)&&this._buildTotalMaps(this.section.concepts)}_checkAndExpandFirstSection(){this.isFirstSection&&this.section&&this.section.concepts&&(this._expanded=!0,setTimeout(()=>{this._expandAllTrees(),console.log("🎯 First section detected - expanded section and tree by default")},0))}_determinePeriodType(){const e=this._getAllNonAbstractConcepts(this.section.concepts);if(0===e.length)return this._sectionPeriodType="duration",void console.log(`📊 Section ${this.section.id}: No concepts, defaulting to duration`);const t=new Set(e.map(e=>e.periodType).filter(Boolean));if(0===t.size)this._sectionPeriodType="duration";else if(1===t.size){const e=Array.from(t)[0];this._sectionPeriodType="instant"===e?"instant":"duration"}else this._sectionPeriodType="mixed"}_getAllNonAbstractConcepts(e){const t=[];for(const i of e)i.abstract||t.push(i),i.children&&t.push(...this._getAllNonAbstractConcepts(i.children));return t}_toggleExpanded(){this.collapsible&&(this._expanded=!this._expanded,this._expanded&&this._expandAllTrees(),this.dispatchEvent(new CustomEvent("section-expand",{detail:{sectionId:this.section.id,expanded:this._expanded},bubbles:!0})))}_handleRemoveColumn(e){this._openMenuColumnId=null,this.dispatchEvent(new CustomEvent("column-remove",{detail:{columnId:e,sectionId:this.section.id},bubbles:!0}))}_toggleColumnMenu(e,t){t.stopPropagation(),this._openMenuColumnId=this._openMenuColumnId===e?null:e}_closeColumnMenu(){this._openMenuColumnId=null}_handleAddColumnFromMenu(e,t){t.stopPropagation(),this._openMenuColumnId=null,this._insertAfterColumnId=e,this._handleAddColumn()}_handleAddColumn(){const e=this._determineButtonPeriodType();this._sectionPeriodType=e,this._showAddColumnDialog=!0}_determineButtonPeriodType(){const e=this._getAllNonAbstractConcepts(this.section.concepts);if(0===e.length)return"duration";const t=new Set(e.map(e=>e.periodType).filter(e=>null!=e));if(0===t.size)return"duration";if(1===t.size){return"instant"===Array.from(t)[0]?"instant":"duration"}return"mixed"}_getConceptsWithFields(e){const t=[];for(const i of e)!i.abstract&&i.fields&&i.fields.length>0&&t.push(i),i.children&&t.push(...this._getConceptsWithFields(i.children));return t}_handleDialogCancel(){this._showAddColumnDialog=!1}_handleColumnAdd(e){e.stopPropagation(),this._showAddColumnDialog=!1,this.dispatchEvent(new CustomEvent("column-add-request",{detail:{sectionId:this.section.id,columnRequest:e.detail,insertAfterColumnId:this._insertAfterColumnId},bubbles:!0})),this._insertAfterColumnId=null}_handleFieldChange(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("field-change",{detail:e.detail,bubbles:!0,composed:!0}))}_handlePeriodChange(e){console.log("📋 [FormSection] Received period-change event:",e.detail),e.stopPropagation(),this.dispatchEvent(new CustomEvent("period-change",{detail:e.detail,bubbles:!0,composed:!0})),console.log("📋 [FormSection] Forwarded period-change event to dynamic-form")}_flattenConcepts(e,t=new Set){const i=[];for(const o of e)if(i.push(o),o.children&&o.children.length>0&&t.has(o.id)){const e=this._flattenConcepts(o.children,t);i.push(...e)}return i}_isConceptRowBlank(e){var t;for(const i of this.columns){const o=null==(t=this.formData[e.id])?void 0:t[i.id];if(null!=o&&""!==o)return!1}return!0}_getAllConceptIds(e){const t=[];for(const i of e)i.children&&i.children.length>0&&(t.push(i.id),t.push(...this._getAllConceptIds(i.children)));return t}_expandAllTrees(){const e=this._getAllConceptIds(this.section.concepts||[]);this._expandedConcepts=new Set([...this._expandedConcepts,...e]),this._allTreeExpanded=!0}_collapseAllTrees(){this._expandedConcepts=new Set,this._allTreeExpanded=!1}_handleConceptExpand(e){e.stopPropagation();const{conceptId:t,expanded:i}=e.detail,o=new Set(this._expandedConcepts);i?o.add(t):o.delete(t),this._expandedConcepts=o;const r=this._getAllConceptIds(this.section.concepts||[]);this._allTreeExpanded=r.length>0&&r.every(e=>o.has(e)),this.dispatchEvent(new CustomEvent("concept-expand",{detail:e.detail,bubbles:!0}))}_buildTotalMaps(e){this._totalChildrenMap.clear(),this._memberParentMap.clear(),this._totalConceptMap.clear(),this._totalChildConceptsMap.clear(),this._traverseTotalGroups(e)}_traverseTotalGroups(e){var t,i,o,r;for(let n=0;n<e.length;n++){const s=e[n];if(null==(t=s.preferredLabel)?void 0:t.includes("totalLabel"))if(null==(i=s.children)?void 0:i.length){const e=s.children.map(e=>e.id);this._totalChildrenMap.set(s.id,e),this._totalConceptMap.set(s.id,s),this._totalChildConceptsMap.set(s.id,s.children);for(const t of e)this._memberParentMap.set(t,s.id)}else{let t=-1;for(let r=n-1;r>=0;r--)if(null==(o=e[r].preferredLabel)?void 0:o.includes("totalLabel")){t=r;break}const i=e.slice(t+1,n);if(i.length>0){const e=i.map(e=>e.id);this._totalChildrenMap.set(s.id,e),this._totalConceptMap.set(s.id,s),this._totalChildConceptsMap.set(s.id,i);for(const t of e)this._memberParentMap.set(t,s.id)}}(null==(r=s.children)?void 0:r.length)&&this._traverseTotalGroups(s.children)}}_runCalculationCheck(e,t){var i;const o=this._totalConceptMap.has(e)?e:this._memberParentMap.get(e);if(!o)return;const r=this._totalConceptMap.get(o),n=null==(i=this.formData[o])?void 0:i[t],s=`${o}__${t}`;if(null==n||""===n){if(this._calculationErrorKeys.has(s)){const e=new Set(this._calculationErrorKeys);e.delete(s),this._calculationErrorKeys=e}return}const l=parseFloat(n);if(isNaN(l))return;const a=(this._totalChildConceptsMap.get(o)||[]).map(e=>{var i;return{value:null==(i=this.formData[e.id])?void 0:i[t],balance:e.balance}}),d=exports.JupiterFormSection._checkTotal(l,a,r.balance),c=new Set(this._calculationErrorKeys);d?c.delete(s):c.add(s),this._calculationErrorKeys=c}static _checkTotal(e,t,i){let o=0,r=!1;for(const n of t){const e=parseFloat(n.value);if(isNaN(e))continue;r=!0;o+=(i&&n.balance&&i!==n.balance?-1:1)*e}return!r||Math.abs(o-e)<.01}_handleFieldFocusForHighlight(e){var t,i;const o=null==(t=e.detail)?void 0:t.conceptId,r=null==(i=e.detail)?void 0:i.columnId;if(!o||!r)return;const n=new Map;if(this._totalChildrenMap.has(o)){n.set(o,{type:"total",columnId:r});for(const e of this._totalChildrenMap.get(o))n.set(e,{type:"member",columnId:r})}else{const e=this._memberParentMap.get(o);if(e){n.set(e,{type:"total",columnId:r});for(const t of this._totalChildrenMap.get(e))n.set(t,{type:"member",columnId:r})}}this._highlightMap=n}_clearHighlights(){this._highlightMap.size>0&&(this._highlightMap=new Map)}_getTypedMemberHeaderValue(e,t){var i;return(null==(i=this.typedMemberData[e])?void 0:i[t])||""}_handleTypedMemberHeaderChange(e,t,i){const o=e.target.value;console.log(`🔍 [FormSection] Typed member header change: columnId=${t}, axisId=${i}, value=${o}`),this.dispatchEvent(new CustomEvent("typed-member-change",{detail:{columnId:t,axisId:i,value:o},bubbles:!0}))}_handleAddRepeat(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("add-concept-repeat",{detail:e.detail,bubbles:!0}))}_handleRemoveRepeat(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-concept-repeat",{detail:e.detail,bubbles:!0}))}_renderConceptRows(t){var i;const o="readonly"!==this.mode&&!t.abstract&&(null==(i=t.fields)?void 0:i.some(e=>{var t;return(null==(t=e.crossRoleTypedMembers)?void 0:t.length)>0})),r=o&&this.repeatCounts[t.id]||0,n=(t,i)=>{var o,r;return e.html`
|
|
1497
1497
|
<jupiter-concept-tree
|
|
1498
1498
|
.concept="${t}"
|
|
1499
1499
|
.columns="${this.columns}"
|
|
@@ -3262,7 +3262,7 @@ const I={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:x},$=(e=I,t,
|
|
|
3262
3262
|
</div>
|
|
3263
3263
|
</div>
|
|
3264
3264
|
</div>
|
|
3265
|
-
`}getData(){return{...this._formData}}setData(e){this._formData={...e},this._dirty=!0,this._validateForm(),this.requestUpdate()}validate(){return this._validateForm(),this._valid}setValidation(e){console.log(`🔍 Validation status updated: ${e}`),this._validationStatus="cancel"===e?"idle":e,this.requestUpdate()}reset(){this._handleReset()}getState(){return this._getFormState()}_findConceptByName(e,t){var i;const o=t.includes(":")?t.split(":").pop():t;for(const r of e){if(r.name===t)return r;if((r.name.includes(":")?r.name.split(":").pop():r.name)===o)return r;if(null==(i=r.children)?void 0:i.length){const e=this._findConceptByName(r.children,t);if(e)return e}}return null}_findColumnByDimensions(e,t){var i;return null==(i=e.find(e=>{if("dimension"!==e.type||!e.dimensionData)return!1;const i=e.dimensionData.combinations;return(null==i?void 0:i.length)?t.every(e=>i.some(t=>this._normalizeAxisId(t.axisId)===this._normalizeAxisId(e.axis)&&this._normalizeMemberId(t.memberId)===this._normalizeMemberId(e.member))):1===t.length&&this._normalizeAxisId(e.dimensionData.axisId??"")===this._normalizeAxisId(t[0].axis)&&this._normalizeMemberId(e.dimensionData.memberId??"")===this._normalizeMemberId(t[0].member)}))?void 0:i.id}async scrollToConcept(e,t,i){var o,r,n,s,l,a,d,c,p,h,u;console.log(`[scrollToConcept] ▶ START conceptName=${e} value=${null==i?void 0:i.value} dims=${JSON.stringify(t)}`);let
|
|
3265
|
+
`}getData(){return{...this._formData}}setData(e){this._formData={...e},this._dirty=!0,this._validateForm(),this.requestUpdate()}validate(){return this._validateForm(),this._valid}setValidation(e){console.log(`🔍 Validation status updated: ${e}`),this._validationStatus="cancel"===e?"idle":e,this.requestUpdate()}reset(){this._handleReset()}getState(){return this._getFormState()}_findConceptByName(e,t){var i;const o=t.includes(":")?t.split(":").pop():t;for(const r of e){if(r.name===t)return r;if((r.name.includes(":")?r.name.split(":").pop():r.name)===o)return r;if(null==(i=r.children)?void 0:i.length){const e=this._findConceptByName(r.children,t);if(e)return e}}return null}_findColumnByDimensions(e,t){var i;return null==(i=e.find(e=>{if("dimension"!==e.type||!e.dimensionData)return!1;const i=e.dimensionData.combinations;return(null==i?void 0:i.length)?t.every(e=>i.some(t=>this._normalizeAxisId(t.axisId)===this._normalizeAxisId(e.axis)&&this._normalizeMemberId(t.memberId)===this._normalizeMemberId(e.member))):1===t.length&&this._normalizeAxisId(e.dimensionData.axisId??"")===this._normalizeAxisId(t[0].axis)&&this._normalizeMemberId(e.dimensionData.memberId??"")===this._normalizeMemberId(t[0].member)}))?void 0:i.id}async scrollToConcept(e,t,i){var o,r,n,s,l,a,d,c,p,h,u,m;console.log(`[scrollToConcept] ▶ START conceptName=${e} value=${null==i?void 0:i.value} dims=${JSON.stringify(t)}`);let f=null,b=null;const g=[...(null==(o=this._currentSchema)?void 0:o.sections)??[],...this._allSections.filter(e=>{var t;return!(null==(t=this._currentSchema)?void 0:t.sections.find(t=>t.id===e.id))})];console.log(`[scrollToConcept] Searching ${g.length} sections`);for(const O of g){const i=this._findConceptByName(O.concepts,e);if(i){if(!(null==t?void 0:t.length)){console.log(`[scrollToConcept] Section "${O.id}" has concept "${i.id}" (no dims, taking first)`),f=O,b=i;break}{const e=O.columns??this._columns,o=this._findColumnByDimensions(e,t);if(console.log(`[scrollToConcept] Section "${O.id}" has concept "${i.id}" | colMatch=${o??"null"} | cols=${e.map(e=>e.id).join(",")}`),o){f=O,b=i;break}f||(f=O,b=i)}}}if(!f||!b)return void console.warn(`[scrollToConcept] Concept not found: ${e}`);console.log(`[scrollToConcept] → targetSection="${f.id}" targetConceptId="${b.id}"`),f.expanded=!0,"sidePanel"===this.display&&this._activeSidePanelRoleId!==f.id&&(this._activeSidePanelRoleId=f.id);const v=f.columns??this._columns;let y=null;const x=void 0!==(null==i?void 0:i.value)&&null!==(null==i?void 0:i.value),_=x?String(i.value):null;(null==t?void 0:t.length)?y=this._findColumnByDimensions(v,t)??null:x||(y=(null==(r=v[0])?void 0:r.id)??null),console.log(`[scrollToConcept] targetColumnId=${y} hasValueMatch=${x} targetValue=${_}`),this.requestUpdate(),await this.updateComplete,await new Promise(e=>setTimeout(e,300));const D=null==(n=this.shadowRoot)?void 0:n.querySelectorAll("jupiter-form-section");console.log(`[scrollToConcept] DOM: found ${(null==D?void 0:D.length)??0} jupiter-form-section elements`);let I=null;if(null==D||D.forEach(e=>{var t;(null==(t=e.section)?void 0:t.id)===f.id&&(I=e)}),!I)return void console.warn(`[scrollToConcept] Section element not found: ${f.id}`);await I.updateComplete;const $=null==(s=I.shadowRoot)?void 0:s.querySelectorAll("jupiter-concept-tree");console.log(`[scrollToConcept] conceptTrees in targetSection: ${(null==$?void 0:$.length)??0}`);let S=null;const w=b.id,C=w.includes("__")?w.split("__")[0]:w;console.log(`[scrollToConcept] conceptId="${w}" conceptIdBase="${C}"`);const F=e=>e===w||e.includes("__")&&e.split("__")[0]===C,T=e=>{const t=e.decimals||(void 0!==e.globalDecimals&&"INF"!==e.globalDecimals?e.globalDecimals:null);if(!t)return 1;const i=parseFloat(String(t));return isNaN(i)||i<=0?1:Math.pow(10,i)},R=(e,t)=>{if(String(e.value??"")===t)return!0;const i=Number(t),o=Number(e.value);if(!isNaN(i)&&!isNaN(o)&&0!==o){const t=T(e);if(1!==t&&Math.abs(o*t-i)<1e-4)return!0}return!1};let k=0;if(null==$||$.forEach(e=>{var t;if(S)return;const i=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("jupiter-form-field");null==i||i.forEach(e=>{if(S)return;const t=y?e.conceptId===w&&e.columnId===y:e.conceptId===w,i=!x||R(e,_);t&&(k++,console.log(`[scrollToConcept] Phase1 candidate: conceptId=${e.conceptId} columnId=${e.columnId} value=${e.value} scale=${T(e)} valueMatch=${i}`)),t&&i&&(S=e)})}),console.log(`[scrollToConcept] Phase1: scanned ${k} candidates, found=${!!S}`),!S&&x){console.log("[scrollToConcept] Phase2: searching ALL sections by base concept name + value");const e=(null==(l=this.shadowRoot)?void 0:l.querySelectorAll("jupiter-form-section"))??[];for(const t of Array.from(e)){if(S)break;const e=(null==(a=t.shadowRoot)?void 0:a.querySelectorAll("jupiter-concept-tree"))??[];for(const t of Array.from(e)){if(S)break;((null==(d=t.shadowRoot)?void 0:d.querySelectorAll("jupiter-form-field"))??[]).forEach(e=>{if(S)return;const t=F(e.conceptId),i=R(e,_);t&&console.log(`[scrollToConcept] Phase2 candidate: conceptId=${e.conceptId} value=${e.value} scale=${T(e)} valMatch=${i}`),t&&i&&(console.log(`[scrollToConcept] Phase2 ✅ MATCH: conceptId=${e.conceptId} columnId=${e.columnId} value=${e.value}`),S=e)})}}}if(!S){const e=(null==(c=this.shadowRoot)?void 0:c.querySelectorAll("jupiter-form-section"))??[];for(const t of Array.from(e)){if(S)break;const e=(null==(p=t.shadowRoot)?void 0:p.querySelectorAll("jupiter-concept-tree"))??[];for(const t of Array.from(e)){if(S)break;((null==(h=t.shadowRoot)?void 0:h.querySelectorAll("jupiter-form-field"))??[]).forEach(e=>{if(S)return;(y?F(e.conceptId)&&e.columnId===y:F(e.conceptId))&&(console.log(`[scrollToConcept] Phase3 ✅ fallback: conceptId=${e.conceptId} columnId=${e.columnId} value=${e.value}`),S=e)})}}}if(!S)return void console.warn(`[scrollToConcept] Field element not found for concept: ${e}`);console.log(`[scrollToConcept] ✅ HIGHLIGHTING conceptId=${S.conceptId} columnId=${S.columnId} value=${S.value}`);const E=S.getBoundingClientRect(),M=this.shadowRoot,A=M?M.querySelector(".side-panel-content")??M.querySelector(".form-container"):null,j=A&&A.scrollHeight>A.clientHeight?A:null;if(j){const e=j.getBoundingClientRect(),t=Math.max(0,E.top-e.top+j.scrollTop-j.clientHeight/2+E.height/2);j.scrollTo({top:t,behavior:"smooth"})}else S.scrollIntoView({behavior:"smooth",block:"center"});const P=null==(u=null==I?void 0:I.shadowRoot)?void 0:u.querySelector(".table-container");if(P&&P.scrollWidth>P.clientWidth){const e=P.getBoundingClientRect(),t=Math.max(0,E.left-e.left+P.scrollLeft-P.clientWidth/2+E.width/2);P.scrollTo({left:t,behavior:"smooth"})}S.classList.add("concept-highlight");const L=null==(m=S.shadowRoot)?void 0:m.querySelector('input:not([type="hidden"]), select, textarea, button, [tabindex]:not([tabindex="-1"])');L&&setTimeout(()=>L.focus({preventScroll:!0}),450),setTimeout(()=>S.classList.remove("concept-highlight"),5e3)}render(){var t;const i=this._errors.filter(e=>"error"===e.severity).length,o=this.config||{},r=!1!==o.showValidationSummary&&i>0&&this._submitted,n=this._currentSchema;return n?e.html`
|
|
3266
3266
|
<div class="form-container">
|
|
3267
3267
|
<!-- Form Header - Hidden in side panel mode -->
|
|
3268
3268
|
${"sidePanel"!==this.display?e.html`
|