@ni/nimble-angular 16.0.0 → 16.0.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.
@@ -7103,11 +7103,15 @@ class NimbleTableDirective {
7103
7103
  this.renderer = renderer;
7104
7104
  this.elementRef = elementRef;
7105
7105
  }
7106
- get data() {
7107
- return this.elementRef.nativeElement.data;
7108
- }
7109
- set data(value) {
7110
- this.renderer.setProperty(this.elementRef.nativeElement, 'data', value);
7106
+ get data$() {
7107
+ return this.dataObservable;
7108
+ }
7109
+ set data$(value) {
7110
+ this.dataSubscription?.unsubscribe();
7111
+ this.dataObservable = value;
7112
+ if (value) {
7113
+ this.dataSubscription = value.subscribe(next => this.elementRef.nativeElement.setData(next));
7114
+ }
7111
7115
  }
7112
7116
  get idFieldName() {
7113
7117
  return this.elementRef.nativeElement.idFieldName;
@@ -7120,18 +7124,24 @@ class NimbleTableDirective {
7120
7124
  get validity() {
7121
7125
  return this.elementRef.nativeElement.validity;
7122
7126
  }
7127
+ ngOnDestroy() {
7128
+ this.dataSubscription?.unsubscribe();
7129
+ }
7123
7130
  checkValidity() {
7124
7131
  return this.elementRef.nativeElement.checkValidity();
7125
7132
  }
7133
+ setData(data) {
7134
+ this.elementRef.nativeElement.setData(data);
7135
+ }
7126
7136
  }
7127
7137
  NimbleTableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: NimbleTableDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
7128
- NimbleTableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.10", type: NimbleTableDirective, selector: "nimble-table", inputs: { data: "data", idFieldName: ["id-field-name", "idFieldName"] }, ngImport: i0 });
7138
+ NimbleTableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.10", type: NimbleTableDirective, selector: "nimble-table", inputs: { data$: "data$", idFieldName: ["id-field-name", "idFieldName"] }, ngImport: i0 });
7129
7139
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: NimbleTableDirective, decorators: [{
7130
7140
  type: Directive,
7131
7141
  args: [{
7132
7142
  selector: 'nimble-table'
7133
7143
  }]
7134
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { data: [{
7144
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { data$: [{
7135
7145
  type: Input
7136
7146
  }], idFieldName: [{
7137
7147
  type: Input,