@codetectonics/mantle 2.0.1 → 2.0.2

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.
@@ -1417,7 +1417,12 @@ class FieldGridComponent {
1417
1417
  });
1418
1418
  }
1419
1419
  normaliseColspan(colspan) {
1420
- return Math.min(colspan, this.numColumns);
1420
+ if (this.singleColumn) {
1421
+ return 1;
1422
+ }
1423
+ else {
1424
+ return Math.min(colspan, this.numColumns);
1425
+ }
1421
1426
  }
1422
1427
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: FieldGridComponent, deps: [{ token: ScreenSizeService }], target: i0.ɵɵFactoryTarget.Component }); }
1423
1428
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: FieldGridComponent, isStandalone: false, selector: "mantle-field-grid", inputs: { singleColumn: "singleColumn", rowHeight: "rowHeight" }, queries: [{ propertyName: "items", predicate: FieldGridItemDirective }], ngImport: i0, template: "<mat-grid-list\n [cols]=\"singleColumn ? 1 :numColumns\"\n [rowHeight]=\"rowHeight\"\n [class.multi-column]=\"singleColumn ? false : numColumns > 1\">\n\n <mat-grid-tile *ngFor=\"let item of items\" [colspan]=\"normaliseColspan(item.colspan)\" [rowspan]=\"item.rowspan\">\n <ng-container *ngTemplateOutlet=\"item.template\"></ng-container>\n </mat-grid-tile>\n\n</mat-grid-list>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$2.MatGridList, selector: "mat-grid-list", inputs: ["cols", "gutterSize", "rowHeight"], exportAs: ["matGridList"] }, { kind: "component", type: i3$2.MatGridTile, selector: "mat-grid-tile", inputs: ["rowspan", "colspan"], exportAs: ["matGridTile"] }] }); }