flipper-ui 0.25.13 → 0.25.15

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,4 +1,5 @@
1
1
  export { default } from './DataTable';
2
+ export { default as DataTableQueryPaginated } from './DataTableQueryPaginated';
2
3
  export type { DataTableProps } from './DataTable';
3
4
  export { RowMode } from './types';
4
5
  export { DataTableAction } from './DataTableAction';
@@ -11,6 +11,12 @@ Object.defineProperty(exports, "default", {
11
11
  return _DataTable["default"];
12
12
  }
13
13
  });
14
+ Object.defineProperty(exports, "DataTableQueryPaginated", {
15
+ enumerable: true,
16
+ get: function get() {
17
+ return _DataTableQueryPaginated["default"];
18
+ }
19
+ });
14
20
  Object.defineProperty(exports, "RowMode", {
15
21
  enumerable: true,
16
22
  get: function get() {
@@ -26,6 +32,8 @@ Object.defineProperty(exports, "DataTableAction", {
26
32
 
27
33
  var _DataTable = _interopRequireDefault(require("./DataTable"));
28
34
 
35
+ var _DataTableQueryPaginated = _interopRequireDefault(require("./DataTableQueryPaginated"));
36
+
29
37
  var _types = require("./types");
30
38
 
31
39
  var _DataTableAction = require("./DataTableAction");
@@ -90,7 +90,7 @@ function _templateObject5() {
90
90
  }
91
91
 
92
92
  function _templateObject4() {
93
- var data = (0, _taggedTemplateLiteral2["default"])(["\n transition: opacity 200ms ease;\n button {\n display: none; \n }; \n &:hover {\n background: -moz-linear-gradient(left,", " 0%, ", " 100%);\n background: -webkit-linear-gradient(left,", " 0%,", " 100%);\n background: linear-gradient(to right,", " 0%,", " 100%);\n };\n &:hover button {\n display: inline-block !important;\n };\n td {\n min-width: 64px;\n };\n"]);
93
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n transition: opacity 200ms ease;\n button {\n display: none;\n };\n &:hover {\n background: -moz-linear-gradient(left,", " 0%, ", " 100%);\n background: -webkit-linear-gradient(left,", " 0%,", " 100%);\n background: linear-gradient(to right,", " 0%,", " 100%);\n };\n &:hover button {\n display: inline-block !important;\n };\n td {\n min-width: 64px;\n };\n"]);
94
94
 
95
95
  _templateObject4 = function _templateObject4() {
96
96
  return data;
@@ -110,7 +110,7 @@ function _templateObject3() {
110
110
  }
111
111
 
112
112
  function _templateObject2() {
113
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 4px; \n font-weight: 500 !important;\n"]);
113
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 4px;\n font-weight: 500 !important;\n"]);
114
114
 
115
115
  _templateObject2 = function _templateObject2() {
116
116
  return data;
@@ -252,7 +252,9 @@ var EditableTable = function EditableTable(props) {
252
252
  }));
253
253
  },
254
254
  Action: function Action(localProps) {
255
- if ('position' in localProps.action && localProps.action.position === 'toolbar') {
255
+ if (!localProps.action) {
256
+ return /*#__PURE__*/_react["default"].createElement(_materialTable.MTableAction, localProps);
257
+ } else if ('position' in localProps.action && localProps.action.position === 'toolbar') {
256
258
  var ActionIcon = localProps.action.icon;
257
259
  return /*#__PURE__*/_react["default"].createElement(_Button["default"], {
258
260
  fullWidth: true,
@@ -264,9 +266,9 @@ var EditableTable = function EditableTable(props) {
264
266
  valueRef.current = '';
265
267
  }
266
268
  }, /*#__PURE__*/_react["default"].createElement(ActionIcon, null));
269
+ } else {
270
+ return /*#__PURE__*/_react["default"].createElement(_materialTable.MTableAction, localProps);
267
271
  }
268
-
269
- return /*#__PURE__*/_react["default"].createElement(_materialTable.MTableAction, localProps);
270
272
  },
271
273
  EditField: function EditField(localProps) {
272
274
  if (localProps.columnDef.type === 'datetime') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flipper-ui",
3
- "version": "0.25.13",
3
+ "version": "0.25.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "homepage": "https://flipper-ui.ngi.com.br/",