@openkit-labs/ngx-kit-ui 0.0.30 → 0.0.31

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.
@@ -3301,6 +3301,157 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
3301
3301
  args: ['style.height']
3302
3302
  }] } });
3303
3303
 
3304
+ class KitGridComponent {
3305
+ display = 'grid';
3306
+ cols = 'none';
3307
+ rows = 'none';
3308
+ minCols;
3309
+ maxCols;
3310
+ minColWidth;
3311
+ maxColWidth;
3312
+ minRowHeight;
3313
+ maxRowHeight;
3314
+ gap;
3315
+ rowGap;
3316
+ colGap;
3317
+ justifyItems;
3318
+ alignItems;
3319
+ justifyContent;
3320
+ alignContent;
3321
+ get gridTemplateColumns() {
3322
+ if (this.minColWidth) {
3323
+ const min = this.minColWidth;
3324
+ const max = this.maxColWidth || '1fr';
3325
+ return `repeat(auto-fit, minmax(${min}, ${max}))`;
3326
+ }
3327
+ if (this.minCols !== undefined || this.maxCols !== undefined) {
3328
+ const min = this.minCols || 1;
3329
+ const max = this.maxCols || min;
3330
+ if (min === max) {
3331
+ return `repeat(${min}, 1fr)`;
3332
+ }
3333
+ return `repeat(auto-fit, minmax(${100 / max}%, 1fr))`;
3334
+ }
3335
+ if (typeof this.cols === 'number') {
3336
+ return `repeat(${this.cols}, 1fr)`;
3337
+ }
3338
+ if (typeof this.cols === 'string') {
3339
+ return this.cols;
3340
+ }
3341
+ return 'none';
3342
+ }
3343
+ get gridTemplateRows() {
3344
+ if (this.minRowHeight) {
3345
+ const min = this.minRowHeight;
3346
+ const max = this.maxRowHeight || '1fr';
3347
+ return `repeat(auto-fit, minmax(${min}, ${max}))`;
3348
+ }
3349
+ if (typeof this.rows === 'number') {
3350
+ return `repeat(${this.rows}, 1fr)`;
3351
+ }
3352
+ if (typeof this.rows === 'string') {
3353
+ return this.rows;
3354
+ }
3355
+ return 'none';
3356
+ }
3357
+ get gapStyle() {
3358
+ if (this.gap !== undefined) {
3359
+ return `${this.gap}px`;
3360
+ }
3361
+ return null;
3362
+ }
3363
+ get rowGapStyle() {
3364
+ if (this.rowGap !== undefined) {
3365
+ return `${this.rowGap}px`;
3366
+ }
3367
+ return null;
3368
+ }
3369
+ get colGapStyle() {
3370
+ if (this.colGap !== undefined) {
3371
+ return `${this.colGap}px`;
3372
+ }
3373
+ return null;
3374
+ }
3375
+ get justifyItemsStyle() {
3376
+ return this.justifyItems ?? null;
3377
+ }
3378
+ get alignItemsStyle() {
3379
+ return this.alignItems ?? null;
3380
+ }
3381
+ get justifyContentStyle() {
3382
+ return this.justifyContent ?? null;
3383
+ }
3384
+ get alignContentStyle() {
3385
+ return this.alignContent ?? null;
3386
+ }
3387
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3388
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: KitGridComponent, isStandalone: true, selector: "kit-grid", inputs: { cols: "cols", rows: "rows", minCols: "minCols", maxCols: "maxCols", minColWidth: "minColWidth", maxColWidth: "maxColWidth", minRowHeight: "minRowHeight", maxRowHeight: "maxRowHeight", gap: "gap", rowGap: "rowGap", colGap: "colGap", justifyItems: "justifyItems", alignItems: "alignItems", justifyContent: "justifyContent", alignContent: "alignContent" }, host: { properties: { "style.display": "this.display", "style.grid-template-columns": "this.gridTemplateColumns", "style.grid-template-rows": "this.gridTemplateRows", "style.gap": "this.gapStyle", "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"] });
3389
+ }
3390
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitGridComponent, decorators: [{
3391
+ type: Component,
3392
+ args: [{ selector: 'kit-grid', standalone: true, imports: [], template: "<ng-content></ng-content>\n", styles: [":host{box-sizing:border-box}\n"] }]
3393
+ }], propDecorators: { display: [{
3394
+ type: HostBinding,
3395
+ args: ['style.display']
3396
+ }], cols: [{
3397
+ type: Input
3398
+ }], rows: [{
3399
+ type: Input
3400
+ }], minCols: [{
3401
+ type: Input
3402
+ }], maxCols: [{
3403
+ type: Input
3404
+ }], minColWidth: [{
3405
+ type: Input
3406
+ }], maxColWidth: [{
3407
+ type: Input
3408
+ }], minRowHeight: [{
3409
+ type: Input
3410
+ }], maxRowHeight: [{
3411
+ type: Input
3412
+ }], gap: [{
3413
+ type: Input
3414
+ }], rowGap: [{
3415
+ type: Input
3416
+ }], colGap: [{
3417
+ type: Input
3418
+ }], justifyItems: [{
3419
+ type: Input
3420
+ }], alignItems: [{
3421
+ type: Input
3422
+ }], justifyContent: [{
3423
+ type: Input
3424
+ }], alignContent: [{
3425
+ type: Input
3426
+ }], gridTemplateColumns: [{
3427
+ type: HostBinding,
3428
+ args: ['style.grid-template-columns']
3429
+ }], gridTemplateRows: [{
3430
+ type: HostBinding,
3431
+ args: ['style.grid-template-rows']
3432
+ }], gapStyle: [{
3433
+ type: HostBinding,
3434
+ args: ['style.gap']
3435
+ }], rowGapStyle: [{
3436
+ type: HostBinding,
3437
+ args: ['style.row-gap']
3438
+ }], colGapStyle: [{
3439
+ type: HostBinding,
3440
+ args: ['style.column-gap']
3441
+ }], justifyItemsStyle: [{
3442
+ type: HostBinding,
3443
+ args: ['style.justify-items']
3444
+ }], alignItemsStyle: [{
3445
+ type: HostBinding,
3446
+ args: ['style.align-items']
3447
+ }], justifyContentStyle: [{
3448
+ type: HostBinding,
3449
+ args: ['style.justify-content']
3450
+ }], alignContentStyle: [{
3451
+ type: HostBinding,
3452
+ args: ['style.align-content']
3453
+ }] } });
3454
+
3304
3455
  /**
3305
3456
  * A component that creates a box with a specified width and height.
3306
3457
  * Similar to Flutter's SizedBox widget, it provides a simple way to
@@ -3850,7 +4001,8 @@ class KitLayoutModule {
3850
4001
  KitContainerComponent,
3851
4002
  KitBottomBarComponent,
3852
4003
  KitTopBarComponent,
3853
- KitSideMenuComponent], exports: [KitPaddingComponent,
4004
+ KitSideMenuComponent,
4005
+ KitGridComponent], exports: [KitPaddingComponent,
3854
4006
  KitSpacerComponent,
3855
4007
  KitRowComponent,
3856
4008
  KitColumnComponent,
@@ -3866,7 +4018,8 @@ class KitLayoutModule {
3866
4018
  KitContainerComponent,
3867
4019
  KitBottomBarComponent,
3868
4020
  KitTopBarComponent,
3869
- KitSideMenuComponent] });
4021
+ KitSideMenuComponent,
4022
+ KitGridComponent] });
3870
4023
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitLayoutModule });
3871
4024
  }
3872
4025
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: KitLayoutModule, decorators: [{
@@ -3889,7 +4042,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
3889
4042
  KitContainerComponent,
3890
4043
  KitBottomBarComponent,
3891
4044
  KitTopBarComponent,
3892
- KitSideMenuComponent
4045
+ KitSideMenuComponent,
4046
+ KitGridComponent
3893
4047
  ],
3894
4048
  exports: [
3895
4049
  KitPaddingComponent,
@@ -3908,7 +4062,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
3908
4062
  KitContainerComponent,
3909
4063
  KitBottomBarComponent,
3910
4064
  KitTopBarComponent,
3911
- KitSideMenuComponent
4065
+ KitSideMenuComponent,
4066
+ KitGridComponent
3912
4067
  ]
3913
4068
  }]
3914
4069
  }] });
@@ -5274,5 +5429,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
5274
5429
  * Generated bundle index. Do not edit.
5275
5430
  */
5276
5431
 
5277
- export { KitAppRootComponent, KitAvatarComponent, KitBadgeComponent, KitBaseInputComponent, KitBottomBarComponent, KitBottomSheetComponent, KitButtonComponent, KitButtonGroupComponent, KitButtonGroupItemActiveDirective, KitButtonGroupItemComponent, KitButtonGroupItemIdleDirective, KitButtonModule, KitCardComponent, KitCarouselComponent, KitCenterComponent, KitColumnComponent, KitConstrainedBoxComponent, KitContainerComponent, KitCopyToClipboardDirective, KitDataModule, KitDialogComponent, KitDirectivesModule, KitDividerComponent, KitExpandedComponent, KitFileSizePipe, KitFloatingActionButtonComponent, KitGestureDetectorComponent, KitImageComponent, KitImageErrorDirective, KitImageLoadingDirective, KitInputDateComponent, KitInputEmailComponent, KitInputFieldTitleComponent, KitInputModule, KitInputNumberComponent, KitInputOtpComponent, KitInputPasswordComponent, KitInputPhoneComponent, KitInputSelectComponent, KitInputTextComponent, KitInputTextareaComponent, KitInputTimeComponent, KitInteractorsModule, KitKMBPipe, KitLayoutModule, KitMediaModule, KitNavigationModule, KitNavigationService, KitOverlaysModule, KitPaddingComponent, KitPageComponent, KitPanelModule, KitPipesModule, KitPressAndHoldDirective, KitProgressBarComponent, KitRoundButtonComponent, KitRouterOutletComponent, KitRowComponent, KitScreenService, KitSelectItemActiveDirective, KitSelectItemDirective, KitSideMenuComponent, KitSideMenuService, KitSizedBoxComponent, KitSpacerComponent, KitStickyContainerComponent, KitTabContentComponent, KitTabViewComponent, KitTextBodyComponent, KitTextButtonComponent, KitTextCaptionComponent, KitTextDisplayComponent, KitTextHeadingComponent, KitTextLabelComponent, KitTextLinkComponent, KitTextModule, KitTextSubheadingComponent, KitThemeService, KitTimeAgoPipe, KitTopBarComponent, SimpleTableComponent, StackComponent };
5432
+ export { KitAppRootComponent, KitAvatarComponent, KitBadgeComponent, KitBaseInputComponent, KitBottomBarComponent, KitBottomSheetComponent, KitButtonComponent, KitButtonGroupComponent, KitButtonGroupItemActiveDirective, KitButtonGroupItemComponent, KitButtonGroupItemIdleDirective, KitButtonModule, KitCardComponent, KitCarouselComponent, KitCenterComponent, KitColumnComponent, KitConstrainedBoxComponent, KitContainerComponent, KitCopyToClipboardDirective, KitDataModule, KitDialogComponent, KitDirectivesModule, KitDividerComponent, KitExpandedComponent, KitFileSizePipe, KitFloatingActionButtonComponent, KitGestureDetectorComponent, KitGridComponent, KitImageComponent, KitImageErrorDirective, KitImageLoadingDirective, KitInputDateComponent, KitInputEmailComponent, KitInputFieldTitleComponent, KitInputModule, KitInputNumberComponent, KitInputOtpComponent, KitInputPasswordComponent, KitInputPhoneComponent, KitInputSelectComponent, KitInputTextComponent, KitInputTextareaComponent, KitInputTimeComponent, KitInteractorsModule, KitKMBPipe, KitLayoutModule, KitMediaModule, KitNavigationModule, KitNavigationService, KitOverlaysModule, KitPaddingComponent, KitPageComponent, KitPanelModule, KitPipesModule, KitPressAndHoldDirective, KitProgressBarComponent, KitRoundButtonComponent, KitRouterOutletComponent, KitRowComponent, KitScreenService, KitSelectItemActiveDirective, KitSelectItemDirective, KitSideMenuComponent, KitSideMenuService, KitSizedBoxComponent, KitSpacerComponent, KitStickyContainerComponent, KitTabContentComponent, KitTabViewComponent, KitTextBodyComponent, KitTextButtonComponent, KitTextCaptionComponent, KitTextDisplayComponent, KitTextHeadingComponent, KitTextLabelComponent, KitTextLinkComponent, KitTextModule, KitTextSubheadingComponent, KitThemeService, KitTimeAgoPipe, KitTopBarComponent, SimpleTableComponent, StackComponent };
5278
5433
  //# sourceMappingURL=openkit-labs-ngx-kit-ui.mjs.map