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

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.
@@ -586,22 +586,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
586
586
  args: ['style.--progress']
587
587
  }] } });
588
588
 
589
- class KitCarouselComponent {
590
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
591
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: KitCarouselComponent, isStandalone: true, selector: "kit-carousel", ngImport: i0, template: "<div class=\"kit-carousel\">\n <ng-content></ng-content>\n</div>\n", styles: [".kit-carousel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}::ng-deep .kit-carousel>*{scroll-snap-align:start;flex-shrink:0;width:100%;box-sizing:border-box;max-width:100%}\n"] });
592
- }
593
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitCarouselComponent, decorators: [{
594
- type: Component,
595
- args: [{ selector: 'kit-carousel', standalone: true, template: "<div class=\"kit-carousel\">\n <ng-content></ng-content>\n</div>\n", styles: [".kit-carousel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}::ng-deep .kit-carousel>*{scroll-snap-align:start;flex-shrink:0;width:100%;box-sizing:border-box;max-width:100%}\n"] }]
596
- }] });
597
-
598
589
  class KitDataModule {
599
590
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitDataModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
600
591
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: KitDataModule, imports: [SimpleTableComponent,
601
- KitProgressBarComponent,
602
- KitCarouselComponent], exports: [SimpleTableComponent,
603
- KitProgressBarComponent,
604
- KitCarouselComponent] });
592
+ KitProgressBarComponent], exports: [SimpleTableComponent,
593
+ KitProgressBarComponent] });
605
594
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitDataModule });
606
595
  }
607
596
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitDataModule, decorators: [{
@@ -609,13 +598,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
609
598
  args: [{
610
599
  imports: [
611
600
  SimpleTableComponent,
612
- KitProgressBarComponent,
613
- KitCarouselComponent
601
+ KitProgressBarComponent
614
602
  ],
615
603
  exports: [
616
604
  SimpleTableComponent,
617
- KitProgressBarComponent,
618
- KitCarouselComponent
605
+ KitProgressBarComponent
619
606
  ]
620
607
  }]
621
608
  }] });
@@ -3347,7 +3334,8 @@ class KitGridComponent {
3347
3334
  get gridTemplateRows() {
3348
3335
  if (this.minRowHeight) {
3349
3336
  const min = this.minRowHeight;
3350
- const max = this.maxRowHeight || '1fr';
3337
+ // Use `auto` as the default max so rows can grow to fit content
3338
+ const max = this.maxRowHeight || 'auto';
3351
3339
  // Keep grid-template-rows for explicit templates, but also set
3352
3340
  // grid-auto-rows so implicitly created rows (when items wrap)
3353
3341
  // receive the same min/max sizing. Using `auto-fit` here alone
@@ -3370,7 +3358,7 @@ class KitGridComponent {
3370
3358
  get gridAutoRows() {
3371
3359
  if (this.minRowHeight) {
3372
3360
  const min = this.minRowHeight;
3373
- const max = this.maxRowHeight || '1fr';
3361
+ const max = this.maxRowHeight || 'auto';
3374
3362
  return `minmax(${min}, ${max})`;
3375
3363
  }
3376
3364
  return null;
@@ -4001,6 +3989,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
4001
3989
  type: Input
4002
3990
  }] } });
4003
3991
 
3992
+ class KitCarouselComponent {
3993
+ itemSizing = 'full';
3994
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3995
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: KitCarouselComponent, isStandalone: true, selector: "kit-carousel", inputs: { itemSizing: "itemSizing" }, host: { properties: { "class.full-width": "itemSizing === \"full\"", "class.content-width": "itemSizing === \"content\"", "class.fixed-width": "itemSizing === \"fixed\"" } }, ngImport: i0, template: "<div class=\"kit-carousel\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{align-self:stretch;width:100%}.kit-carousel{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host.full-width ::ng-deep .kit-carousel>*{scroll-snap-align:start;flex-shrink:0;width:100%;box-sizing:border-box;max-width:100%}:host.content-width ::ng-deep .kit-carousel>*{scroll-snap-align:start;flex-shrink:0;width:auto;box-sizing:border-box}:host.fixed-width ::ng-deep .kit-carousel>*{scroll-snap-align:start;flex-shrink:0;box-sizing:border-box}:host.content-width .kit-carousel,:host.fixed-width .kit-carousel{gap:8px;padding:4px}.kit-carousel::-webkit-scrollbar{height:0;background:transparent}\n"] });
3996
+ }
3997
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitCarouselComponent, decorators: [{
3998
+ type: Component,
3999
+ args: [{ selector: 'kit-carousel', standalone: true, host: {
4000
+ '[class.full-width]': 'itemSizing === "full"',
4001
+ '[class.content-width]': 'itemSizing === "content"',
4002
+ '[class.fixed-width]': 'itemSizing === "fixed"'
4003
+ }, template: "<div class=\"kit-carousel\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{align-self:stretch;width:100%}.kit-carousel{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host.full-width ::ng-deep .kit-carousel>*{scroll-snap-align:start;flex-shrink:0;width:100%;box-sizing:border-box;max-width:100%}:host.content-width ::ng-deep .kit-carousel>*{scroll-snap-align:start;flex-shrink:0;width:auto;box-sizing:border-box}:host.fixed-width ::ng-deep .kit-carousel>*{scroll-snap-align:start;flex-shrink:0;box-sizing:border-box}:host.content-width .kit-carousel,:host.fixed-width .kit-carousel{gap:8px;padding:4px}.kit-carousel::-webkit-scrollbar{height:0;background:transparent}\n"] }]
4004
+ }], propDecorators: { itemSizing: [{
4005
+ type: Input
4006
+ }] } });
4007
+
4004
4008
  class KitLayoutModule {
4005
4009
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4006
4010
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: KitLayoutModule, imports: [KitPaddingComponent,
@@ -4020,7 +4024,8 @@ class KitLayoutModule {
4020
4024
  KitBottomBarComponent,
4021
4025
  KitTopBarComponent,
4022
4026
  KitSideMenuComponent,
4023
- KitGridComponent], exports: [KitPaddingComponent,
4027
+ KitGridComponent,
4028
+ KitCarouselComponent], exports: [KitPaddingComponent,
4024
4029
  KitSpacerComponent,
4025
4030
  KitRowComponent,
4026
4031
  KitColumnComponent,
@@ -4037,7 +4042,8 @@ class KitLayoutModule {
4037
4042
  KitBottomBarComponent,
4038
4043
  KitTopBarComponent,
4039
4044
  KitSideMenuComponent,
4040
- KitGridComponent] });
4045
+ KitGridComponent,
4046
+ KitCarouselComponent] });
4041
4047
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitLayoutModule });
4042
4048
  }
4043
4049
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitLayoutModule, decorators: [{
@@ -4061,7 +4067,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
4061
4067
  KitBottomBarComponent,
4062
4068
  KitTopBarComponent,
4063
4069
  KitSideMenuComponent,
4064
- KitGridComponent
4070
+ KitGridComponent,
4071
+ KitCarouselComponent
4065
4072
  ],
4066
4073
  exports: [
4067
4074
  KitPaddingComponent,
@@ -4081,7 +4088,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
4081
4088
  KitBottomBarComponent,
4082
4089
  KitTopBarComponent,
4083
4090
  KitSideMenuComponent,
4084
- KitGridComponent
4091
+ KitGridComponent,
4092
+ KitCarouselComponent
4085
4093
  ]
4086
4094
  }]
4087
4095
  }] });