@messaia/cdk 13.3.5-rc31 → 13.3.5

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.
@@ -3841,6 +3841,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
3841
3841
  type: Directive
3842
3842
  }], ctorParameters: function () { return [{ type: undefined }, { type: undefined }, { type: i1$4.ActivatedRoute }, { type: i0.ChangeDetectorRef }]; } });
3843
3843
 
3844
+ class TableDefinition {
3845
+ /**
3846
+ * constructor
3847
+ * @param init
3848
+ */
3849
+ constructor(init) {
3850
+ this.showAction = true;
3851
+ this.selectable = true;
3852
+ this.addable = true;
3853
+ this.editable = true;
3854
+ this.deletable = true;
3855
+ this.columns = [];
3856
+ this.actions = [];
3857
+ Object.assign(this, init);
3858
+ }
3859
+ }
3860
+
3844
3861
  /**
3845
3862
  * Gets classes decoarated with @Table
3846
3863
  * @param origin
@@ -3848,7 +3865,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
3848
3865
  */
3849
3866
  function getTableDefinition(origin) {
3850
3867
  /* Save the table defintion in the metadata */
3851
- var tableDefinition = Reflect.getMetadata(tableDefinitionMetadataKey, origin);
3868
+ var tableDefinition = Reflect.getMetadata(tableDefinitionMetadataKey, origin) ?? new TableDefinition({});
3852
3869
  if (tableDefinition) {
3853
3870
  /* Set column in the table definition */
3854
3871
  tableDefinition.columns = Reflect.getMetadata(tableColumnsMetadataKey, Reflect.construct(origin, []))
@@ -16767,23 +16784,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
16767
16784
  class Pagination {
16768
16785
  }
16769
16786
 
16770
- class TableDefinition {
16771
- /**
16772
- * constructor
16773
- * @param init
16774
- */
16775
- constructor(init) {
16776
- this.showAction = true;
16777
- this.selectable = true;
16778
- this.addable = true;
16779
- this.editable = true;
16780
- this.deletable = true;
16781
- this.columns = [];
16782
- this.actions = [];
16783
- Object.assign(this, init);
16784
- }
16785
- }
16786
-
16787
16787
  class TableMenuItem extends ActionMenuItem {
16788
16788
  /**
16789
16789
  * constructor