react-ui-basics 0.0.163 → 0.0.164

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/Table.d.ts CHANGED
@@ -19,7 +19,7 @@ export interface RowProps<T> {
19
19
  setValue: (v: any) => void;
20
20
  setEditing: (t: T, i: number, field: string) => void;
21
21
  }
22
- export declare type Formatter<T, V> = ((value?: V, item?: T, format?: string) => ReactElement) | ((value: V, item: T) => ReactElement) | ((value: V) => ReactElement);
22
+ export declare type Formatter<T, V> = ((value?: V, item?: T, format?: string) => ReactElement | string) | ((value: V, item: T) => ReactElement | string) | ((value: V) => ReactElement | string);
23
23
  export interface TableColumn<T> {
24
24
  field?: string;
25
25
  className?: string;
package/Table.js CHANGED
@@ -5,6 +5,7 @@ import { jsxs as jsxRuntime_1, jsx as jsxRuntime_2 } from 'react/jsx-runtime';
5
5
  import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
6
6
  import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
7
7
  import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
8
+ import './Table.css';
8
9
  import { Component } from 'react';
9
10
  import TextField from './TextField.js';
10
11
  import AutocompleteSelect, { MODE_MULTIPLE_MINI, MODE_DEFAULT } from './AutocompleteSelect.js';
@@ -85,8 +86,8 @@ var Table = /** @class */ (function (_super) {
85
86
  setData(dataState(), sortBy, sortOrder, comparator);
86
87
  };
87
88
  _this[ReactConstants[0]] = function () {
88
- var _a = props(), sortBy = _a.sortBy, _b = _a.sortOrder, sortOrder = _b === void 0 ? SORT_ASC : _b, columns = _a.columns;
89
- setData(dataState(), sortBy, sortOrder, comparatorGetter(columns.find(function (it) { return it.field === sortBy; })));
89
+ var _a = props(), sortBy = _a.sortBy, _b = _a.sortOrder, sortOrder = _b === void 0 ? SORT_ASC : _b, columns = _a.columns, data = __data(_a);
90
+ setData(data, sortBy, sortOrder, comparatorGetter(columns.find(function (it) { return it.field === sortBy; })));
90
91
  updateHeaders();
91
92
  updateHeadersInterval = setInterval(updateHeaders, 1000);
92
93
  };
package/TextField.js CHANGED
@@ -4,6 +4,7 @@ import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _
4
4
  import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
5
5
  import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
6
6
  import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
7
+ import './TextField.css';
7
8
  import 'react';
8
9
  import ReactCreateElement from './ReactCreateElement.js';
9
10
  import { classNames, isUndefined, orNoop, addEventListener, getRandomId, createRef, setTimeout } from './Tools.js';