jupiter-dynamic-forms 1.22.1 → 1.22.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/index.mjs CHANGED
@@ -14999,10 +14999,11 @@ let JupiterDynamicForm = class extends LitElement {
14999
14999
  const typedMembers = (_a = column2.dimensionData) == null ? void 0 : _a.typedMembers;
15000
15000
  if (!typedMembers || typedMembers.length === 0)
15001
15001
  continue;
15002
- const enteredTypedValues = this._typedMemberData[this._scopedColumnKey(section2.id, column2.id)] || {};
15002
+ const scopedTypedValues = this._typedMemberData[this._scopedColumnKey(section2.id, column2.id)];
15003
+ const legacyTypedValues = this._typedMemberData[column2.id];
15003
15004
  const hasMissingTypedValue = typedMembers.some((tm) => {
15004
- var _a2;
15005
- return !((_a2 = enteredTypedValues[tm.axisId]) == null ? void 0 : _a2.trim());
15005
+ const value = (scopedTypedValues == null ? void 0 : scopedTypedValues[tm.axisId]) ?? (legacyTypedValues == null ? void 0 : legacyTypedValues[tm.axisId]);
15006
+ return !(value == null ? void 0 : value.trim());
15006
15007
  });
15007
15008
  if (!hasMissingTypedValue)
15008
15009
  continue;
@@ -17990,7 +17991,11 @@ let JupiterDynamicForm = class extends LitElement {
17990
17991
  @click="${this._validationStatus === "inProgress" ? () => this.dispatchEvent(new CustomEvent("resume-validation-progress", { bubbles: true, composed: true })) : this._handleSubmit}"
17991
17992
  ?disabled="${this.disabled || this.readonly || this._submitDisabled}"
17992
17993
  >
17993
- ${this._validationStatus === "inProgress" ? `${I18n.t("form.validationInProgress")}${".".repeat(this._validationDotCount)}` : this.submitButtonLabel || (this.mode === "admin" ? I18n.t("form.save") : I18n.t("form.submit"))}
17994
+ ${this._validationStatus === "inProgress" ? html`${I18n.t("form.validationInProgress")}<span class="validation-dots"
17995
+ ><span style="visibility:${this._validationDotCount >= 1 ? "visible" : "hidden"}">.</span
17996
+ ><span style="visibility:${this._validationDotCount >= 2 ? "visible" : "hidden"}">.</span
17997
+ ><span style="visibility:${this._validationDotCount >= 3 ? "visible" : "hidden"}">.</span
17998
+ ></span>` : this.submitButtonLabel || (this.mode === "admin" ? I18n.t("form.save") : I18n.t("form.submit"))}
17994
17999
  </button>
17995
18000
 
17996
18001
  </div>