diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index aa710352537d..34c6fd69526c 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -44304,7 +44304,7 @@ var _ = this; _.dataTableSource = null; _._entity_list$_firstRowIndex = 0; - _._widget = null; + _._widget = _._entity_list$_controller = null; _._debugLifecycleState = t0; _._framework$_element = null; }, @@ -53116,7 +53116,7 @@ }, AppPaginatedDataTableState: function AppPaginatedDataTableState(t0, t1, t2) { var _ = this; - _._app_paginated_data_table$_rowCountApproximate = _._app_paginated_data_table$_rowCount = _._app_paginated_data_table$_firstRowIndex = null; + _._app_paginated_data_table$_controller = _._app_paginated_data_table$_rowCountApproximate = _._app_paginated_data_table$_rowCount = _._app_paginated_data_table$_firstRowIndex = null; _._app_paginated_data_table$_rows = t0; _._app_paginated_data_table$_tableKey = t1; _._widget = null; @@ -367404,6 +367404,7 @@ initState$0: function() { var t1, t2, _this = this; _this.super$State$initState(); + _this._app_paginated_data_table$_controller = F.ScrollController$(null, 0); t1 = _this._framework$_element; t1.toString; t1 = S.PageStorage_of(t1); @@ -367436,8 +367437,10 @@ } }, dispose$0: function(_) { - this._widget.source.removeListener$1(0, this.get$_app_paginated_data_table$_handleDataSourceChanged()); - this.super$State$dispose(0); + var _this = this; + _this._app_paginated_data_table$_controller.dispose$0(0); + _this._widget.source.removeListener$1(0, _this.get$_app_paginated_data_table$_handleDataSourceChanged()); + _this.super$State$dispose(0); }, _app_paginated_data_table$_handleDataSourceChanged$0: function() { this.setState$1(new N.AppPaginatedDataTableState__handleDataSourceChanged_closure(this)); @@ -367569,14 +367572,15 @@ }; N.AppPaginatedDataTableState_build_closure0.prototype = { call$2: function(context, constraints) { - var t3, _null = null, + var t4, _null = null, t1 = this.$this, - t2 = t1._widget; - t2.toString; - t3 = t2.columns; - t3 = E.SingleChildScrollView$(new T.ConstrainedBox(new S.BoxConstraints(constraints.minWidth, 1 / 0, 0, 1 / 0), new L.AppDataTable(t3, t2.sortColumnIndex, t2.sortAscending, t2.onSelectAll, 48, 56, 24, 56, true, t1._app_paginated_data_table$_getRows$2(t1._app_paginated_data_table$_firstRowIndex, t2.rowsPerPage), L.AppDataTable__initOnlyTextColumn(t3), t1._app_paginated_data_table$_tableKey), _null), _null, C.DragStartBehavior_1, _null, _null, false, C.Axis_0); + t2 = t1._app_paginated_data_table$_controller, + t3 = t1._widget; + t3.toString; + t4 = t3.columns; + t2 = E.Scrollbar$(E.SingleChildScrollView$(new T.ConstrainedBox(new S.BoxConstraints(constraints.minWidth, 1 / 0, 0, 1 / 0), new L.AppDataTable(t4, t3.sortColumnIndex, t3.sortAscending, t3.onSelectAll, 48, 56, 24, 56, true, t1._app_paginated_data_table$_getRows$2(t1._app_paginated_data_table$_firstRowIndex, t3.rowsPerPage), L.AppDataTable__initOnlyTextColumn(t4), t1._app_paginated_data_table$_tableKey), _null), t2, C.DragStartBehavior_1, _null, _null, false, C.Axis_0), t2, _null); t1._widget.toString; - return V.Card$(T.Column$(H.setRuntimeTypeInfo([new T.SizedBox(_null, 4, _null, _null), t3, L.DefaultTextStyle$(Y.IconTheme_merge(M.Container$(_null, E.SingleChildScrollView$(T.Row$(this.footerWidgets, C.CrossAxisAlignment_2, C.MainAxisAlignment_0, C.MainAxisSize_1, _null), _null, C.DragStartBehavior_1, _null, _null, true, C.Axis_0), C.Clip_0, _null, _null, _null, _null, 56, _null, _null, _null, _null, _null, _null), C.IconThemeData_gsm), _null, _null, C.TextOverflow_0, true, this.footerTextStyle, _null, _null, C.TextWidthBasis_0)], type$.JSArray_legacy_Widget), C.CrossAxisAlignment_3, _null, C.MainAxisAlignment_0, C.MainAxisSize_1, C.VerticalDirection_1), _null, _null, _null, _null, false, _null); + return V.Card$(T.Column$(H.setRuntimeTypeInfo([new T.SizedBox(_null, 4, _null, _null), t2, L.DefaultTextStyle$(Y.IconTheme_merge(M.Container$(_null, E.SingleChildScrollView$(T.Row$(this.footerWidgets, C.CrossAxisAlignment_2, C.MainAxisAlignment_0, C.MainAxisSize_1, _null), _null, C.DragStartBehavior_1, _null, _null, true, C.Axis_0), C.Clip_0, _null, _null, _null, _null, 56, _null, _null, _null, _null, _null, _null), C.IconThemeData_gsm), _null, _null, C.TextOverflow_0, true, this.footerTextStyle, _null, _null, C.TextWidthBasis_0)], type$.JSArray_legacy_Widget), C.CrossAxisAlignment_3, _null, C.MainAxisAlignment_0, C.MainAxisSize_1, C.VerticalDirection_1), _null, _null, _null, _null, false, _null); }, $signature: 2102 }; @@ -367723,6 +367727,7 @@ initState$0: function() { var t1, entityType, state, entityList, entityMap, entityState, t2, t3, entityUIState, selectedIndex, rowsPerPage, _this = this; _this.super$State$initState(); + _this._entity_list$_controller = F.ScrollController$(null, 0); t1 = _this._widget; entityType = t1.entityType; state = t1.state; @@ -367753,6 +367758,10 @@ t1.entityMap = state.getEntityMap$1(t2.entityType); _this.dataTableSource.notifyListeners$0(); }, + dispose$0: function(_) { + this._entity_list$_controller.dispose$0(0); + this.super$State$dispose(0); + }, build$1: function(_, context) { var t3, isInMultiselect, entityList, entityMap, countSelected, isList, t4, t5, t6, t7, shouldSelectEntity, entityId, entities, firstEntity, actions, t8, t9, t10, t11, t12, t13, t14, _this = this, _null = null, store = O.StoreProvider_of(context, type$.legacy_AppState), @@ -367856,7 +367865,7 @@ }; S._EntityListState_build_closure7.prototype = { call$0: function() { - var t1, t2, t3, t4, rowsPerPage, t5, t6, _this = this, _null = null; + var t1, t2, t3, t4, rowsPerPage, t5, t6, t7, _this = this, _null = null; if (_this.isList) { t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Widget); t2 = _this.uiState.filterStack._list; @@ -367906,15 +367915,16 @@ t4 = t5.get$isEmpty(t4) ? _null : t5.get$last(t4).get$entityType(); t3.push(new N.ListFilterMessage(t6, t4, new S._EntityListState_build__closure3(t2), new S._EntityListState_build__closure4(_this.store), false, _null)); } - t4 = _this.listUIState; - t5 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_DataColumn_2); + t4 = t1._entity_list$_controller; + t5 = _this.listUIState; + t6 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_DataColumn_2); if (!_this.isInMultiselect) - t5.push(new L.DataColumn0(new T.SizedBox(_null, _null, _null, _null), _null)); - C.JSArray_methods.addAll$1(t5, J.map$1$1$ax(t1._widget.tableColumns, new S._EntityListState_build__closure5(t1, _this.context, _this.entityType, t2), type$.legacy_DataColumn)); + t6.push(new L.DataColumn0(new T.SizedBox(_null, _null, _null, _null), _null)); + C.JSArray_methods.addAll$1(t6, J.map$1$1$ax(t1._widget.tableColumns, new S._EntityListState_build__closure5(t1, _this.context, _this.entityType, t2), type$.legacy_DataColumn)); t2 = t1.dataTableSource; - t6 = t4.sortField; - t6 = J.contains$1$asx(t1._widget.tableColumns, t6) ? J.indexOf$1$asx(t1._widget.tableColumns, t6) : 0; - t3.push(T.Expanded$(E.SingleChildScrollView$(new T.Padding(C.EdgeInsets_0_16_0_16, new N.AppPaginatedDataTable(t5, t6, t4.sortAscending, new S._EntityListState_build__closure6(t1, _this.entityList, rowsPerPage, _this.entityMap, t4), t1._entity_list$_firstRowIndex, new S._EntityListState_build__closure7(t1), rowsPerPage, H.setRuntimeTypeInfo([10, 25, 50], type$.JSArray_legacy_int), new S._EntityListState_build__closure8(_this.store), t2, _null), _null), _null, C.DragStartBehavior_1, _null, _null, false, C.Axis_1), 1)); + t7 = t5.sortField; + t7 = J.contains$1$asx(t1._widget.tableColumns, t7) ? J.indexOf$1$asx(t1._widget.tableColumns, t7) : 0; + t3.push(T.Expanded$(new O.AppScrollbar(E.SingleChildScrollView$(new T.Padding(C.EdgeInsets_0_16_0_16, new N.AppPaginatedDataTable(t6, t7, t5.sortAscending, new S._EntityListState_build__closure6(t1, _this.entityList, rowsPerPage, _this.entityMap, t5), t1._entity_list$_firstRowIndex, new S._EntityListState_build__closure7(t1), rowsPerPage, H.setRuntimeTypeInfo([10, 25, 50], type$.JSArray_legacy_int), new S._EntityListState_build__closure8(_this.store), t2, _null), _null), t4, C.DragStartBehavior_1, _null, _null, false, C.Axis_1), t4, false, _null), 1)); return T.Column$(t3, C.CrossAxisAlignment_2, _null, C.MainAxisAlignment_0, C.MainAxisSize_1, C.VerticalDirection_1); } },