@ni/nimble-angular 16.5.11 → 16.5.13
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.
- package/directives/table/nimble-table.directive.d.ts +9 -4
- package/esm2020/directives/table/nimble-table.directive.mjs +21 -2
- package/fesm2015/ni-nimble-angular.mjs +23 -2
- package/fesm2015/ni-nimble-angular.mjs.map +1 -1
- package/fesm2020/ni-nimble-angular.mjs +19 -2
- package/fesm2020/ni-nimble-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -194,8 +194,8 @@ import '@ni/nimble-components/dist/esm/spinner';
|
|
|
194
194
|
import '@ni/nimble-components/dist/esm/switch';
|
|
195
195
|
import '@ni/nimble-components/dist/esm/tab';
|
|
196
196
|
import '@ni/nimble-components/dist/esm/tab-panel';
|
|
197
|
+
export { TableRowSelectionMode } from '@ni/nimble-components/dist/esm/table/types';
|
|
197
198
|
import '@ni/nimble-components/dist/esm/table';
|
|
198
|
-
import '@ni/nimble-components/dist/esm/table/types';
|
|
199
199
|
import '@ni/nimble-components/dist/esm/table-column/text';
|
|
200
200
|
import '@ni/nimble-components/dist/esm/tabs';
|
|
201
201
|
import '@ni/nimble-components/dist/esm/tabs-toolbar';
|
|
@@ -7640,6 +7640,14 @@ class NimbleTableDirective {
|
|
|
7640
7640
|
set idFieldName(value) {
|
|
7641
7641
|
this.renderer.setProperty(this.elementRef.nativeElement, 'idFieldName', value);
|
|
7642
7642
|
}
|
|
7643
|
+
get selectionMode() {
|
|
7644
|
+
return this.elementRef.nativeElement.selectionMode;
|
|
7645
|
+
}
|
|
7646
|
+
// Renaming because property should have camel casing, but attribute should not
|
|
7647
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
7648
|
+
set selectionMode(value) {
|
|
7649
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'selectionMode', value);
|
|
7650
|
+
}
|
|
7643
7651
|
get validity() {
|
|
7644
7652
|
return this.elementRef.nativeElement.validity;
|
|
7645
7653
|
}
|
|
@@ -7652,9 +7660,15 @@ class NimbleTableDirective {
|
|
|
7652
7660
|
async setData(data) {
|
|
7653
7661
|
return this.elementRef.nativeElement.setData(data);
|
|
7654
7662
|
}
|
|
7663
|
+
async getSelectedRecordIds() {
|
|
7664
|
+
return this.elementRef.nativeElement.getSelectedRecordIds();
|
|
7665
|
+
}
|
|
7666
|
+
async setSelectedRecordIds(recordIds) {
|
|
7667
|
+
return this.elementRef.nativeElement.setSelectedRecordIds(recordIds);
|
|
7668
|
+
}
|
|
7655
7669
|
}
|
|
7656
7670
|
NimbleTableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: NimbleTableDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7657
|
-
NimbleTableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: NimbleTableDirective, selector: "nimble-table", inputs: { data$: "data$", idFieldName: ["id-field-name", "idFieldName"] }, ngImport: i0 });
|
|
7671
|
+
NimbleTableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: NimbleTableDirective, selector: "nimble-table", inputs: { data$: "data$", idFieldName: ["id-field-name", "idFieldName"], selectionMode: ["selection-mode", "selectionMode"] }, ngImport: i0 });
|
|
7658
7672
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: NimbleTableDirective, decorators: [{
|
|
7659
7673
|
type: Directive,
|
|
7660
7674
|
args: [{
|
|
@@ -7665,6 +7679,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
7665
7679
|
}], idFieldName: [{
|
|
7666
7680
|
type: Input,
|
|
7667
7681
|
args: ['id-field-name']
|
|
7682
|
+
}], selectionMode: [{
|
|
7683
|
+
type: Input,
|
|
7684
|
+
args: ['selection-mode']
|
|
7668
7685
|
}] } });
|
|
7669
7686
|
|
|
7670
7687
|
class NimbleTableModule {
|