smart-webcomponents 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/package.json CHANGED
@@ -1,2 +1,2 @@
1
- {"name":"smart-webcomponents","version": "15.2.3",
1
+ {"name":"smart-webcomponents","version": "15.2.9",
2
2
  "description":"Web Components & Custom Elements for Professional Web Applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/HTMLElements/smart-elements.git"},"author":"https://htmlelements.com","bugs":{"url":"https://github.com/HTMLElements/smart-elements/issues"},"homepage":"https://github.com/HTMLElements/smart-elements#readme","keywords":["custom","element","bootstrap","chart","treegrid","gantt","gantt chart","query builder","colorpicker","colorpanel","chart web component","chart custom element","tables","table","docking layot","charting","datagridview","bootstrap grid","tabs","combobox","dropdownlist","listbox","input","password","ui components","user interface","components","bootstrap components","smart components","custom elements","grid web component","grid custom element","chart custom element","chart web component","javascript grid","javascript datagrid","javascript datatable","datatable","bootstrap datagrid","material datagrid","bootstrap datatable","bootstrap table","grid","grid web component","datagrid web component","data grid","datagrid bootstrap","bootstrap grid","carousel custom element","html carousel","material web components","webcomponents","material webcomponents", "gantt", "scheduler", "docking", "datagrid", "gridview", "webcomponent", "webcomponents", "web_components", "ui", "user interface", "front end", "bootsrap grid", "custom elements","material customelements"],"license":"ISC"}
@@ -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}
@@ -1222,20 +1222,17 @@ export class TableComponent extends BaseElement implements OnInit, AfterViewInit
1222
1222
  }
1223
1223
 
1224
1224
  /** @description 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.
1225
- * @returns {none}
1226
- */
1227
- public async resetState(): Promise<any> {
1228
- const getResultOnRender = () => {
1229
- return new Promise(resolve => {
1230
- this.nativeElement.whenRendered(() => {
1231
- const result = this.nativeElement.resetState();
1232
- resolve(result)
1233
- });
1225
+ */
1226
+ public resetState(): void {
1227
+ if (this.nativeElement.isRendered) {
1228
+ this.nativeElement.resetState();
1229
+ }
1230
+ else
1231
+ {
1232
+ this.nativeElement.whenRendered(() => {
1233
+ this.nativeElement.resetState();
1234
1234
  });
1235
- };
1236
- const result = await getResultOnRender();
1237
-
1238
- return result;
1235
+ }
1239
1236
  }
1240
1237
 
1241
1238
  /** @description 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.