@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
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
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
|
-
|
|
10344
|
-
<ng-content select="[after]"></ng-content>`,
|
|
10344
|
+
`,
|
|
10345
10345
|
standalone: false
|
|
10346
10346
|
}]
|
|
10347
10347
|
}], ctorParameters: () => [{ type: UniqueIdService }, { type: i2$2.NgControl, decorators: [{
|