ps-toolkit-ui 1.4.2 → 1.4.5

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.
@@ -7312,6 +7312,9 @@
7312
7312
  BaseComponent.prototype.hasAccess = function (a) {
7313
7313
  return this.permissions ? this.permissions.hasAccessByName(a) : false;
7314
7314
  };
7315
+ BaseComponent.prototype.getAccess = function (a) {
7316
+ return this.permissions ? this.permissions.getAccessByName(a) : null;
7317
+ };
7315
7318
  BaseComponent.prototype.hasOption = function (a) {
7316
7319
  return this.permissions ? this.permissions.hasAccessByName(a) : false;
7317
7320
  };
@@ -7611,7 +7614,7 @@
7611
7614
  if (categories === void 0) { categories = []; }
7612
7615
  var date = this.l('Date');
7613
7616
  var data = [].concat.apply([], cOpt.series.map(function (o) { return o.data; }));
7614
- if (data.filter(function (x) { return x !== 0; }).length == 0) {
7617
+ if (data.filter(function (x) { return x !== 0; }).length === 0) {
7615
7618
  this.empty = true;
7616
7619
  return;
7617
7620
  }
@@ -7769,6 +7772,23 @@
7769
7772
  return ChartClass;
7770
7773
  }());
7771
7774
 
7775
+ var CurrentDataClass = /** @class */ (function () {
7776
+ function CurrentDataClass(data) {
7777
+ if (data === void 0) { data = null; }
7778
+ this.user = null;
7779
+ this.permissions = [];
7780
+ this.modules = [];
7781
+ this.software = { Version: '0.0' };
7782
+ if (data != null) {
7783
+ this.user = data.User;
7784
+ this.permissions = data.Permissions;
7785
+ this.modules = data.Modules;
7786
+ this.software = data.Software;
7787
+ }
7788
+ }
7789
+ return CurrentDataClass;
7790
+ }());
7791
+
7772
7792
  /*
7773
7793
  * Public API Surface of ps-toolkit-ui
7774
7794
  */
@@ -7784,6 +7804,7 @@
7784
7804
  exports.BaseComponent = BaseComponent;
7785
7805
  exports.ChartClass = ChartClass;
7786
7806
  exports.ConfirmComponent = ConfirmComponent;
7807
+ exports.CurrentDataClass = CurrentDataClass;
7787
7808
  exports.DayClass = DayClass;
7788
7809
  exports.EnumUtils = EnumUtils;
7789
7810
  exports.FooterComponent = FooterComponent;