smart-webcomponents-react 15.2.3 → 15.2.9

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/index.d.ts CHANGED
@@ -29555,9 +29555,8 @@ export interface Table extends BaseElement, TableProperties {
29555
29555
  removeRow(row: string | number): void;
29556
29556
  /**
29557
29557
  * Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the <strong>stateSettings</strong> property.
29558
- * @returns {none}
29559
29558
  */
29560
- resetState(): none;
29559
+ resetState(): void;
29561
29560
  /**
29562
29561
  * Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the <strong>stateSettings</strong> property.
29563
29562
  * @returns {any}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-webcomponents-react",
3
- "version": "15.2.3",
3
+ "version": "15.2.9",
4
4
  "preferGlobal": true,
5
5
  "keywords": [
6
6
  "ReactJS",
@@ -29555,9 +29555,8 @@ export interface Table extends BaseElement, TableProperties {
29555
29555
  removeRow(row: string | number): void;
29556
29556
  /**
29557
29557
  * Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the <strong>stateSettings</strong> property.
29558
- * @returns {none}
29559
29558
  */
29560
- resetState(): none;
29559
+ resetState(): void;
29561
29560
  /**
29562
29561
  * Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the <strong>stateSettings</strong> property.
29563
29562
  * @returns {any}
@@ -653,9 +653,8 @@ export interface Table extends BaseElement, TableProperties {
653
653
  removeRow(row: string | number): void;
654
654
  /**
655
655
  * Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the <strong>stateSettings</strong> property.
656
- * @returns {none}
657
656
  */
658
- resetState(): none;
657
+ resetState(): void;
659
658
  /**
660
659
  * Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the <strong>stateSettings</strong> property.
661
660
  * @returns {any}
package/table/table.d.ts CHANGED
@@ -624,9 +624,8 @@ export declare class Table extends React.Component<React.HTMLAttributes<Element>
624
624
  */
625
625
  removeRow(row: string | number): void;
626
626
  /** Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the stateSettings property.
627
- * @returns {none}
628
- */
629
- resetState(): any;
627
+ */
628
+ resetState(): void;
630
629
  /** Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the stateSettings property.
631
630
  * @returns {any}
632
631
  */
@@ -1101,11 +1101,16 @@ class Table extends React.Component {
1101
1101
  }
1102
1102
  }
1103
1103
  /** Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the stateSettings property.
1104
- * @returns {none}
1105
- */
1104
+ */
1106
1105
  resetState() {
1107
- const result = this.nativeElement.resetState();
1108
- return result;
1106
+ if (this.nativeElement.isRendered) {
1107
+ this.nativeElement.resetState();
1108
+ }
1109
+ else {
1110
+ this.nativeElement.whenRendered(() => {
1111
+ this.nativeElement.resetState();
1112
+ });
1113
+ }
1109
1114
  }
1110
1115
  /** Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the stateSettings property.
1111
1116
  * @returns {any}
@@ -1101,11 +1101,16 @@ require('../source/modules/smart.table');
1101
1101
  }
1102
1102
  }
1103
1103
  /** Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the stateSettings property.
1104
- * @returns {none}
1105
- */
1104
+ */
1106
1105
  resetState() {
1107
- const result = this.nativeElement.resetState();
1108
- return result;
1106
+ if (this.nativeElement.isRendered) {
1107
+ this.nativeElement.resetState();
1108
+ }
1109
+ else {
1110
+ this.nativeElement.whenRendered(() => {
1111
+ this.nativeElement.resetState();
1112
+ });
1113
+ }
1109
1114
  }
1110
1115
  /** Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the stateSettings property.
1111
1116
  * @returns {any}