@openkit-labs/ngx-kit-ui 0.0.33 → 0.0.34

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.
@@ -3348,6 +3348,10 @@ class KitGridComponent {
3348
3348
  if (this.minRowHeight) {
3349
3349
  const min = this.minRowHeight;
3350
3350
  const max = this.maxRowHeight || '1fr';
3351
+ // Keep grid-template-rows for explicit templates, but also set
3352
+ // grid-auto-rows so implicitly created rows (when items wrap)
3353
+ // receive the same min/max sizing. Using `auto-fit` here alone
3354
+ // doesn't affect implicit rows created by auto-placement.
3351
3355
  return `repeat(auto-fit, minmax(${min}, ${max}))`;
3352
3356
  }
3353
3357
  if (typeof this.rows === 'number') {
@@ -3358,6 +3362,19 @@ class KitGridComponent {
3358
3362
  }
3359
3363
  return 'none';
3360
3364
  }
3365
+ /**
3366
+ * When consumers provide `minRowHeight` we should also set
3367
+ * `grid-auto-rows` so that implicitly generated rows (when
3368
+ * items wrap to additional rows) use the same min/max sizing.
3369
+ */
3370
+ get gridAutoRows() {
3371
+ if (this.minRowHeight) {
3372
+ const min = this.minRowHeight;
3373
+ const max = this.maxRowHeight || '1fr';
3374
+ return `minmax(${min}, ${max})`;
3375
+ }
3376
+ return null;
3377
+ }
3361
3378
  get rowGapStyle() {
3362
3379
  if (this.rowGap !== undefined) {
3363
3380
  return `${this.rowGap}px`;
@@ -3383,7 +3400,7 @@ class KitGridComponent {
3383
3400
  return this.alignContent ?? null;
3384
3401
  }
3385
3402
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3386
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: KitGridComponent, isStandalone: true, selector: "kit-grid", inputs: { fullWidth: "fullWidth", cols: "cols", rows: "rows", minCols: "minCols", maxCols: "maxCols", minColWidth: "minColWidth", maxColWidth: "maxColWidth", minRowHeight: "minRowHeight", maxRowHeight: "maxRowHeight", rowGap: "rowGap", colGap: "colGap", justifyItems: "justifyItems", alignItems: "alignItems", justifyContent: "justifyContent", alignContent: "alignContent" }, host: { properties: { "style.display": "this.display", "style.width": "this.widthStyle", "style.grid-template-columns": "this.gridTemplateColumns", "style.grid-template-rows": "this.gridTemplateRows", "style.row-gap": "this.rowGapStyle", "style.column-gap": "this.colGapStyle", "style.justify-items": "this.justifyItemsStyle", "style.align-items": "this.alignItemsStyle", "style.justify-content": "this.justifyContentStyle", "style.align-content": "this.alignContentStyle" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{box-sizing:border-box}\n"] });
3403
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: KitGridComponent, isStandalone: true, selector: "kit-grid", inputs: { fullWidth: "fullWidth", cols: "cols", rows: "rows", minCols: "minCols", maxCols: "maxCols", minColWidth: "minColWidth", maxColWidth: "maxColWidth", minRowHeight: "minRowHeight", maxRowHeight: "maxRowHeight", rowGap: "rowGap", colGap: "colGap", justifyItems: "justifyItems", alignItems: "alignItems", justifyContent: "justifyContent", alignContent: "alignContent" }, host: { properties: { "style.display": "this.display", "style.width": "this.widthStyle", "style.grid-template-columns": "this.gridTemplateColumns", "style.grid-template-rows": "this.gridTemplateRows", "style.grid-auto-rows": "this.gridAutoRows", "style.row-gap": "this.rowGapStyle", "style.column-gap": "this.colGapStyle", "style.justify-items": "this.justifyItemsStyle", "style.align-items": "this.alignItemsStyle", "style.justify-content": "this.justifyContentStyle", "style.align-content": "this.alignContentStyle" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{box-sizing:border-box}\n"] });
3387
3404
  }
3388
3405
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitGridComponent, decorators: [{
3389
3406
  type: Component,
@@ -3430,6 +3447,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
3430
3447
  }], gridTemplateRows: [{
3431
3448
  type: HostBinding,
3432
3449
  args: ['style.grid-template-rows']
3450
+ }], gridAutoRows: [{
3451
+ type: HostBinding,
3452
+ args: ['style.grid-auto-rows']
3433
3453
  }], rowGapStyle: [{
3434
3454
  type: HostBinding,
3435
3455
  args: ['style.row-gap']