@open-rlb/ng-bootstrap 2.3.1 → 2.3.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.
@@ -10296,52 +10296,52 @@ class SwitchComponent extends AbstractComponent {
10296
10296
  }
10297
10297
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SwitchComponent, deps: [{ token: UniqueIdService }, { token: i2$2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
10298
10298
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.15", type: SwitchComponent, isStandalone: false, selector: "rlb-switch", inputs: { disabled: ["disabled", "disabled", booleanAttribute], readonly: ["readonly", "readonly", booleanAttribute], size: "size", userDefinedId: ["id", "userDefinedId", (v) => v || ''] }, viewQueries: [{ propertyName: "el", first: true, predicate: ["field"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
10299
- <ng-content select="[before]"></ng-content>
10300
- <div class="form-check form-switch d-inline-block">
10301
- <input
10302
- #field
10303
- class="form-check-input"
10304
- type="checkbox"
10305
- [id]="id"
10306
- [attr.disabled]="disabled ? true : undefined"
10307
- [attr.readonly]="readonly ? true : undefined"
10308
- [class.form-select-lg]="size === 'large'"
10309
- [class.form-select-sm]="size === 'small'"
10310
- (blur)="touch()"
10311
- [ngClass]="{ 'is-invalid': control?.touched && control?.invalid }"
10312
- (input)="update($event.target)"
10313
- />
10314
- <div class="invalid-feedback">
10315
- {{ errors | json }}
10299
+ <div class="d-flex align-items-center gap-2">
10300
+ <ng-content select="[before]"></ng-content>
10301
+
10302
+ <div class="form-check form-switch m-0">
10303
+ <input
10304
+ #field
10305
+ class="form-check-input"
10306
+ type="checkbox"
10307
+ [id]="id"
10308
+ [attr.disabled]="disabled ? true : undefined"
10309
+ [attr.readonly]="readonly ? true : undefined"
10310
+ (blur)="touch()"
10311
+ [ngClass]="{ 'is-invalid': control?.touched && control?.invalid }"
10312
+ (input)="update($event.target)"
10313
+ />
10314
+ </div>
10315
+
10316
+ <ng-content select="[after]"></ng-content>
10316
10317
  </div>
10317
- </div>
10318
- <ng-content select="[after]"></ng-content>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }] }); }
10318
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
10319
10319
  }
10320
10320
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SwitchComponent, decorators: [{
10321
10321
  type: Component,
10322
10322
  args: [{
10323
10323
  selector: 'rlb-switch',
10324
10324
  template: `
10325
- <ng-content select="[before]"></ng-content>
10326
- <div class="form-check form-switch d-inline-block">
10327
- <input
10328
- #field
10329
- class="form-check-input"
10330
- type="checkbox"
10331
- [id]="id"
10332
- [attr.disabled]="disabled ? true : undefined"
10333
- [attr.readonly]="readonly ? true : undefined"
10334
- [class.form-select-lg]="size === 'large'"
10335
- [class.form-select-sm]="size === 'small'"
10336
- (blur)="touch()"
10337
- [ngClass]="{ 'is-invalid': control?.touched && control?.invalid }"
10338
- (input)="update($event.target)"
10339
- />
10340
- <div class="invalid-feedback">
10341
- {{ errors | json }}
10325
+ <div class="d-flex align-items-center gap-2">
10326
+ <ng-content select="[before]"></ng-content>
10327
+
10328
+ <div class="form-check form-switch m-0">
10329
+ <input
10330
+ #field
10331
+ class="form-check-input"
10332
+ type="checkbox"
10333
+ [id]="id"
10334
+ [attr.disabled]="disabled ? true : undefined"
10335
+ [attr.readonly]="readonly ? true : undefined"
10336
+ (blur)="touch()"
10337
+ [ngClass]="{ 'is-invalid': control?.touched && control?.invalid }"
10338
+ (input)="update($event.target)"
10339
+ />
10340
+ </div>
10341
+
10342
+ <ng-content select="[after]"></ng-content>
10342
10343
  </div>
10343
- </div>
10344
- <ng-content select="[after]"></ng-content>`,
10344
+ `,
10345
10345
  standalone: false
10346
10346
  }]
10347
10347
  }], ctorParameters: () => [{ type: UniqueIdService }, { type: i2$2.NgControl, decorators: [{