@noatgnu/cupcake-vanilla 1.3.8 → 1.3.10

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.
@@ -4621,12 +4621,22 @@ class ColumnEditModal {
4621
4621
  this.isLoading.set(true);
4622
4622
  const formValue = this.editForm.getRawValue();
4623
4623
  const ontologyTypeIndex = parseInt(formValue.ontologyType);
4624
- const ontologyTypeValue = ontologyTypeIndex > 0 ? this.ontologyTypes[ontologyTypeIndex]?.value : undefined;
4624
+ const selectedOntology = ontologyTypeIndex > 0 ? this.ontologyTypes[ontologyTypeIndex] : null;
4625
+ const ontologyTypeValue = selectedOntology?.value;
4626
+ // Extract custom filters from the selected ontology config
4627
+ const customOntologyFilters = selectedOntology?.customFilters || {};
4628
+ console.log('[Column Edit] Submitting column:', {
4629
+ ontologyTypeIndex,
4630
+ selectedOntology,
4631
+ ontologyTypeValue,
4632
+ customOntologyFilters
4633
+ });
4625
4634
  const columnData = {
4626
4635
  name: formValue.name,
4627
4636
  type: formValue.type,
4628
4637
  value: formValue.value || '',
4629
4638
  ontologyType: ontologyTypeValue,
4639
+ customOntologyFilters: customOntologyFilters,
4630
4640
  enableTypeahead: formValue.enableTypeahead || false,
4631
4641
  mandatory: formValue.mandatory || false,
4632
4642
  hidden: formValue.hidden || false,
@@ -4635,6 +4645,7 @@ class ColumnEditModal {
4635
4645
  notAvailable: formValue.notAvailable || false,
4636
4646
  staffOnly: formValue.staffOnly || false
4637
4647
  };
4648
+ console.log('[Column Edit] Final columnData:', columnData);
4638
4649
  this.columnSaved.emit(columnData);
4639
4650
  }
4640
4651
  else {
@@ -6383,9 +6394,14 @@ class ColumnTemplateEditModal {
6383
6394
  if (ontologyType && ontologyType.includes('__')) {
6384
6395
  ontologyType = ontologyType.split('__')[0];
6385
6396
  }
6397
+ console.log('[Template] Submitting with:', {
6398
+ ontologyType,
6399
+ customOntologyFilters: formValue.customOntologyFilters
6400
+ });
6386
6401
  const templateData = {
6387
6402
  ...formValue,
6388
6403
  ontologyType: ontologyType,
6404
+ customOntologyFilters: formValue.customOntologyFilters,
6389
6405
  labGroup: formValue.visibility === 'labGroup' ? formValue.labGroup : null,
6390
6406
  defaultPosition: Number(formValue.defaultPosition) || 0
6391
6407
  };