@masterteam/components 0.0.199 → 0.0.200

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.
@@ -1247,11 +1247,13 @@ class LookupModuleCheckListField {
1247
1247
  lookupKey: String(option.value ?? option.key ?? ''),
1248
1248
  label: option.label ?? String(option.value ?? option.key ?? ''),
1249
1249
  })), ...(ngDevMode ? [{ debugName: "sections" }] : /* istanbul ignore next */ []));
1250
- /** Use the rich form only when registered and the runtime context is ready. */
1251
- useRichForm = computed(() => !!this.formComponent &&
1252
- this.scopeId() != null &&
1253
- this.runtimeContext()?.levelId != null &&
1254
- this.runtimeContext()?.levelDataId != null, ...(ngDevMode ? [{ debugName: "useRichForm" }] : /* istanbul ignore next */ []));
1250
+ /**
1251
+ * Use the rich form whenever it's registered and a scope module is set. The
1252
+ * scope form only needs `scopeId` to load its field definitions; `levelId` /
1253
+ * `levelDataId` are passed when available but are not required (e.g. they are
1254
+ * null while creating a brand-new Level instance).
1255
+ */
1256
+ useRichForm = computed(() => !!this.formComponent && this.scopeId() != null, ...(ngDevMode ? [{ debugName: "useRichForm" }] : /* istanbul ignore next */ []));
1255
1257
  /**
1256
1258
  * The last externally-written value (via `writeValue`). Passed to the rich
1257
1259
  * form as its initial value. It is intentionally NOT updated from the form's