@ni/nimble-angular 4.1.4 → 4.2.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.
@@ -711,18 +711,44 @@
711
711
  * Directive to provide Angular integration for the checkbox.
712
712
  */
713
713
  var NimbleCheckboxDirective = /** @class */ (function () {
714
- function NimbleCheckboxDirective() {
714
+ function NimbleCheckboxDirective(renderer, elementRef) {
715
+ this.renderer = renderer;
716
+ this.elementRef = elementRef;
715
717
  }
718
+ Object.defineProperty(NimbleCheckboxDirective.prototype, "disabled", {
719
+ get: function () {
720
+ return this.elementRef.nativeElement.disabled;
721
+ },
722
+ set: function (value) {
723
+ this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
724
+ },
725
+ enumerable: false,
726
+ configurable: true
727
+ });
728
+ Object.defineProperty(NimbleCheckboxDirective.prototype, "checked", {
729
+ get: function () {
730
+ return this.elementRef.nativeElement.checked;
731
+ },
732
+ set: function (value) {
733
+ this.renderer.setProperty(this.elementRef.nativeElement, 'checked', toBooleanProperty(value));
734
+ },
735
+ enumerable: false,
736
+ configurable: true
737
+ });
716
738
  return NimbleCheckboxDirective;
717
739
  }());
718
- NimbleCheckboxDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
719
- NimbleCheckboxDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleCheckboxDirective, selector: "nimble-checkbox", ngImport: i0__namespace });
740
+ NimbleCheckboxDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxDirective, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
741
+ NimbleCheckboxDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleCheckboxDirective, selector: "nimble-checkbox", inputs: { disabled: "disabled", checked: "checked" }, ngImport: i0__namespace });
720
742
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxDirective, decorators: [{
721
743
  type: i0.Directive,
722
744
  args: [{
723
745
  selector: 'nimble-checkbox'
724
746
  }]
725
- }] });
747
+ }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ElementRef }]; }, propDecorators: { disabled: [{
748
+ type: i0.Input
749
+ }], checked: [{
750
+ type: i0.Input
751
+ }] } });
726
752
 
727
753
  var NimbleCheckboxModule = /** @class */ (function () {
728
754
  function NimbleCheckboxModule() {