ps-toolkit-ui 0.0.62 → 0.0.66

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.
@@ -988,6 +988,14 @@
988
988
  HelperClass.getNow = function () {
989
989
  return moment.now();
990
990
  };
991
+ HelperClass.getMoment = function (i, f) {
992
+ if (i === void 0) { i = null; }
993
+ if (f === void 0) { f = null; }
994
+ if (i == null) {
995
+ return moment__namespace();
996
+ }
997
+ return moment__namespace(i, f);
998
+ };
991
999
  HelperClass.getDateRemain = function (l, dt) {
992
1000
  var d = parseInt(dt.substring(6, dt.length - 2), 10);
993
1001
  var now = moment.now();
@@ -5106,13 +5114,6 @@
5106
5114
  return c.length > 0 ? c[0] : null;
5107
5115
  };
5108
5116
  PermissionClass.prototype.getUrl = function () {
5109
- console.log(this.Area, 'Area');
5110
- console.log(this.Controller, 'Controller');
5111
- console.log(this.RelatedId, 'RelatedId');
5112
- console.log(this.Action, 'Action');
5113
- console.log((this.Area ? '/' + this.Area : '') + '/' + this.Controller + '/' +
5114
- (this.RelatedId ? this.RelatedId + "/" : '') +
5115
- (this.Action ? this.Action : ''));
5116
5117
  return (this.Area ? '/' + this.Area : '') + '/' + this.Controller + '/' +
5117
5118
  (this.RelatedId ? this.RelatedId + "/" : '') +
5118
5119
  (this.Action ? this.Action : '');
@@ -7254,7 +7255,7 @@
7254
7255
  p.RelatedId = this_1.permissions.RelatedId;
7255
7256
  p.Area = this_1.permissions.Area;
7256
7257
  p.Controller = this_1.permissions.Controller;
7257
- p.Action = this_1.permissions.Action + option.Action;
7258
+ p.Action = (this_1.permissions.Action ? this_1.permissions.Action : '') + option.Action;
7258
7259
  opt.url = '/File' + p.getUrl() + '/{}';
7259
7260
  opt.urlNewTab = true;
7260
7261
  }