@ai-table/grid 0.0.24 → 0.0.25

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.
@@ -821,7 +821,7 @@ class AbstractEditCellEditor {
821
821
  this.thyPopoverRef?.close();
822
822
  }
823
823
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractEditCellEditor, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
824
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AbstractEditCellEditor, isStandalone: true, selector: "abstract-edit-cell", inputs: { aiTable: "aiTable", fieldId: "fieldId", recordId: "recordId" }, outputs: { updateFieldValue: "updateFieldValue" }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
824
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AbstractEditCellEditor, isStandalone: true, selector: "abstract-edit-cell", inputs: { aiTable: "aiTable", fieldId: "fieldId", recordId: "recordId", references: "references" }, outputs: { updateFieldValue: "updateFieldValue" }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
825
825
  }
826
826
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractEditCellEditor, decorators: [{
827
827
  type: Component,
@@ -840,6 +840,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
840
840
  }], recordId: [{
841
841
  type: Input,
842
842
  args: [{ required: true }]
843
+ }], references: [{
844
+ type: Input,
845
+ args: [{ required: true }]
843
846
  }] } });
844
847
 
845
848
  class DateCellEditorComponent extends AbstractEditCellEditor {
@@ -2676,7 +2679,7 @@ class AITableGridEventService {
2676
2679
  };
2677
2680
  }
2678
2681
  openCellEditor(aiTable, options) {
2679
- const { container, recordId, fieldId, isHoverEdit } = options;
2682
+ const { container, recordId, fieldId, isHoverEdit, references } = options;
2680
2683
  const component = this.getEditorComponent(this.aiTable.fieldsMap()[fieldId].type);
2681
2684
  const offsetOriginPosition = this.getOriginPosition(aiTable, options);
2682
2685
  this.cellEditorPopoverRef = this.thyPopover.open(component, {
@@ -2690,6 +2693,7 @@ class AITableGridEventService {
2690
2693
  initialState: {
2691
2694
  fieldId: fieldId,
2692
2695
  recordId: recordId,
2696
+ references,
2693
2697
  aiTable: aiTable
2694
2698
  },
2695
2699
  panelClass: 'grid-cell-editor',
@@ -2822,7 +2826,7 @@ class AITableGridBase {
2822
2826
  this.aiTableInitialized.emit(this.aiTable);
2823
2827
  }
2824
2828
  initService() {
2825
- this.aiTableGridEventService.initialize(this.aiTable, this.aiFieldConfig()?.fieldPropertyEditor);
2829
+ this.aiTableGridEventService.initialize(this.aiTable, this.aiFieldConfig()?.fieldRenderers);
2826
2830
  this.aiTableGridSelectionService.initialize(this.aiTable);
2827
2831
  this.aiTableGridMatchCellService.initialize(this.aiTable);
2828
2832
  this.aiTableGridEventService.registerEvents(this.elementRef.nativeElement);
@@ -6686,6 +6690,7 @@ class AITableGrid extends AITableGridBase {
6686
6690
  coordinate: this.coordinate(),
6687
6691
  fieldId: fieldId,
6688
6692
  recordId: recordId,
6693
+ references: this.aiReferences(),
6689
6694
  updateFieldValue: (value) => {
6690
6695
  this.aiUpdateFieldValue.emit(value);
6691
6696
  }
@@ -6777,6 +6782,7 @@ class AITableGrid extends AITableGridBase {
6777
6782
  coordinate: this.coordinate(),
6778
6783
  fieldId: fieldId,
6779
6784
  recordId: recordId,
6785
+ references: this.aiReferences(),
6780
6786
  isHoverEdit: true,
6781
6787
  updateFieldValue: (value) => {
6782
6788
  this.aiUpdateFieldValue.emit(value);