ps-toolkit-ui 1.10.18 → 1.10.19

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.
@@ -8007,6 +8007,46 @@
8007
8007
  null
8008
8008
  ]; };
8009
8009
 
8010
+ var AddModalClass = /** @class */ (function () {
8011
+ function AddModalClass(environment, l, permission) {
8012
+ if (permission === void 0) { permission = null; }
8013
+ this.environment = environment;
8014
+ this.l = l;
8015
+ this.permission = permission;
8016
+ this.modal = new ModalClass(this.environment, this.l, 'Driver', 'sm');
8017
+ }
8018
+ AddModalClass.prototype.getModalTable = function (table) {
8019
+ if (this.permission == null) {
8020
+ return;
8021
+ }
8022
+ var insertPermission = this.permission.getAccess(exports.PermissionAccessTypeEnum.Insert);
8023
+ if (insertPermission == null) {
8024
+ return;
8025
+ }
8026
+ this.setModalForm(insertPermission.Name);
8027
+ table.modal = new ModalClass(this.environment, this.l, this.modal.name, this.modal.class);
8028
+ table.form = this.modal.form;
8029
+ };
8030
+ AddModalClass.prototype.getInpModal = function (inp, success) {
8031
+ if (success === void 0) { success = function () { }; }
8032
+ if (this.permission == null) {
8033
+ return;
8034
+ }
8035
+ var insertPermission = this.permission.getAccess(exports.PermissionAccessTypeEnum.Insert);
8036
+ if (insertPermission == null) {
8037
+ return;
8038
+ }
8039
+ this.setModalForm(insertPermission.Name, false, success);
8040
+ inp.addModal = new ModalClass(this.environment, this.l, this.modal.name, this.modal.class);
8041
+ inp.addModal.form = this.modal.form;
8042
+ };
8043
+ AddModalClass.prototype.setModalForm = function (name, manage, success) {
8044
+ if (manage === void 0) { manage = true; }
8045
+ if (success === void 0) { success = function () { }; }
8046
+ };
8047
+ return AddModalClass;
8048
+ }());
8049
+
8010
8050
  var StepsClass = /** @class */ (function () {
8011
8051
  function StepsClass(l) {
8012
8052
  this.items = [];
@@ -8542,6 +8582,7 @@
8542
8582
  exports.AccordionClass = AccordionClass;
8543
8583
  exports.AccordionComponent = AccordionComponent;
8544
8584
  exports.AccordionRowClass = AccordionRowClass;
8585
+ exports.AddModalClass = AddModalClass;
8545
8586
  exports.AlertComponent = AlertComponent;
8546
8587
  exports.BaseComponent = BaseComponent;
8547
8588
  exports.ChartClass = ChartClass;