inviton-powerduck 0.0.205 → 0.0.206
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.
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/* eslint-disable node/handle-callback-err */
|
|
2
|
+
/* eslint-disable no-new */
|
|
3
|
+
/* eslint-disable ts/no-this-alias */
|
|
1
4
|
import type { Temporal } from '@js-temporal/polyfill';
|
|
2
5
|
import type { IWebApiClient, WebClientApiMethod } from '../../common/IWebClient';
|
|
3
6
|
import type { DropdownButtonItemArgs } from '../dropdown-button/dropdown-button-item';
|
|
@@ -350,6 +353,7 @@ export class DataTableFilterItemCollection extends Array<DataTableFilterItem> {
|
|
|
350
353
|
|
|
351
354
|
export class DataTableConfig {
|
|
352
355
|
static filterMarking = true;
|
|
356
|
+
static defaultMobileBehavior = DataTableMobileBehavior.MobileLayout;
|
|
353
357
|
}
|
|
354
358
|
|
|
355
359
|
@Component
|
|
@@ -542,7 +546,6 @@ class DataTableComponent extends TsxComponent<DataTableArgs> implements DataTabl
|
|
|
542
546
|
|
|
543
547
|
if (!this.initialized && !this.initDataLoaded) {
|
|
544
548
|
this.initDataLoaded = true;
|
|
545
|
-
const self = this;
|
|
546
549
|
this.reloadDataPromise().then(() => {
|
|
547
550
|
setTimeout(() => {
|
|
548
551
|
this.initialized = true;
|
|
@@ -1813,7 +1816,7 @@ class DataTableComponent extends TsxComponent<DataTableArgs> implements DataTabl
|
|
|
1813
1816
|
}
|
|
1814
1817
|
|
|
1815
1818
|
getMobileBehavior(): DataTableMobileBehavior {
|
|
1816
|
-
return this.currentMobileBehavior
|
|
1819
|
+
return this.currentMobileBehavior ?? DataTableConfig.defaultMobileBehavior;
|
|
1817
1820
|
}
|
|
1818
1821
|
|
|
1819
1822
|
getVisibleColumns(): TableColumn[] {
|