ywana-core8 0.0.782 → 0.0.783

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/dist/index.cjs CHANGED
@@ -2374,7 +2374,6 @@ var StringCellEditor = function StringCellEditor(_ref9) {
2374
2374
  var SortIcon = function SortIcon(props) {
2375
2375
  var sortDir = props.sortDir,
2376
2376
  onChange = props.onChange;
2377
- console.log("sortDir", sortDir);
2378
2377
  var icon = sortDir ? sortDir > 0 ? "arrow_upward" : "arrow_downward" : "swap_vert";
2379
2378
  return /*#__PURE__*/React__default["default"].createElement(Icon, {
2380
2379
  icon: icon,
@@ -11180,7 +11179,6 @@ var TaskProgress = function TaskProgress(props) {
11180
11179
  var TaskMonitor = function TaskMonitor(props) {
11181
11180
  var remove = function remove(task) {
11182
11181
  try {
11183
- console.log("remove", task);
11184
11182
  return Promise.resolve(context.removeTask(task)).then(function () {
11185
11183
  refresh();
11186
11184
  });
@@ -11223,15 +11221,6 @@ var TaskMonitor = function TaskMonitor(props) {
11223
11221
  columns: [{
11224
11222
  id: "state",
11225
11223
  label: "Estado"
11226
- }, {
11227
- id: "description",
11228
- label: "Descripcion"
11229
- }, {
11230
- id: "progress",
11231
- label: "%"
11232
- }, {
11233
- id: "percentage",
11234
- label: ""
11235
11224
  }, {
11236
11225
  id: "init",
11237
11226
  label: "Inicio",
@@ -11243,16 +11232,26 @@ var TaskMonitor = function TaskMonitor(props) {
11243
11232
  type: TYPES.STRING,
11244
11233
  format: FORMATS$1.DATE
11245
11234
  }, {
11246
- id: "resourceID",
11247
- label: "Recurso"
11235
+ id: "description",
11236
+ label: "Descripcion"
11248
11237
  }, {
11249
- id: "owner",
11250
- label: "Propietario"
11238
+ id: "progress",
11239
+ label: "%"
11251
11240
  }, {
11241
+ id: "percentage",
11242
+ label: ""
11243
+ }, // { id: "resourceID", label: "Recurso" },
11244
+ // { id: "owner", label: "Propietario" },
11245
+ {
11252
11246
  id: "actions",
11253
11247
  label: ""
11254
11248
  }],
11255
- rows: tasks.map(function (task) {
11249
+ rows: tasks // sort by init date from recent to old
11250
+ .sort(function (a, b) {
11251
+ if (a.init > b.init) return -1;
11252
+ if (a.init < b.init) return 1;
11253
+ return 0;
11254
+ }).map(function (task) {
11256
11255
  return {
11257
11256
  id: task.id,
11258
11257
  state: task.state,