ps-toolkit-ui 0.0.7 → 0.0.11

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.
@@ -982,6 +982,9 @@
982
982
  var v = e.find(function (x) { return x.Value === dt; });
983
983
  return "<span class=\"status " + v.Class + "\">" + l(v.Name) + '</span>';
984
984
  };
985
+ HelperClass.getNow = function () {
986
+ return moment.now();
987
+ };
985
988
  HelperClass.getDateRemain = function (l, dt) {
986
989
  var d = parseInt(dt.substring(6, dt.length - 2), 10);
987
990
  var now = moment.now();
@@ -2500,7 +2503,8 @@
2500
2503
  TableRowComponent.prototype.getOptions = function () {
2501
2504
  var _this = this;
2502
2505
  return (this.addChildren !== null && (this.table.level === null || this.table.level > this.level) ? [this.addChildren] : [])
2503
- .concat(this.table.options.filter(function (x) { return x.condition == null || _this.row[x.condition]; }).map(function (o) {
2506
+ .concat(this.table.options.filter(function (x) { return x.condition == null ||
2507
+ (x.condition.startsWith('!') ? !_this.row[x.condition.substring(1)] : _this.row[x.condition]); }).map(function (o) {
2504
2508
  var i = HelperClass.clone(o);
2505
2509
  if (i.url) {
2506
2510
  i.url = i.url.replace('{}', _this.row.Id);