ps-toolkit-ui 1.6.20 → 1.6.23

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.
@@ -2110,7 +2110,7 @@
2110
2110
  ModalComponent.decorators = [
2111
2111
  { type: core.Component, args: [{
2112
2112
  selector: 'lib-modal',
2113
- template: "<div [id]=\"modal.id + 'Modal'\" class=\"modal\">\r\n kl.<div [className]=\"(modal.class ? modal.class : '') + (modal.class.includes('xlg') ? '' : modal.class.includes('lg') ? ' w-1000-60 m-r-1000-20 w-700-70 m-r-700-15' : modal.class.includes('sm') ? ' w-1300-20 m-r-1300-40 w-1100-30 m-r-1100-35 w-600-60 m-r-600-20 w-500-70 m-r-500-15 w-400-80 m-r-400-10' : ' w-1300-40 m-r-1300-30 w-1100-50 m-r-1100-25 w-600-60 m-r-600-20 w-500-70 m-r-500-15 w-400-80 m-r-400-10') + ' content w-90 m-r-5'\">\r\n <lib-form-button [inp]=\"close\"></lib-form-button>\r\n <div class=\"body\">\r\n <ng-content></ng-content>\r\n <lib-form *ngIf=\"modal.form != null && modal.firstForm\" [form]=\"modal.form\"></lib-form>\r\n <lib-table *ngIf=\"modal.table != null\" [table]=\"modal.table\"></lib-table>\r\n <lib-form *ngIf=\"modal.form != null && !modal.firstForm\" [form]=\"modal.form\"></lib-form>\r\n <lib-accordion *ngIf=\"modal.accordion != null\" [accordion]=\"modal.accordion\"></lib-accordion>\r\n </div>\r\n </div>\r\n</div>\r\n",
2113
+ template: "<div [id]=\"modal.id + 'Modal'\" class=\"modal\">\r\n <div [className]=\"(modal.class ? modal.class : '') + (modal.class.includes('xlg') ? '' : modal.class.includes('lg') ? ' w-1000-60 m-r-1000-20 w-700-70 m-r-700-15' : modal.class.includes('sm') ? ' w-1300-20 m-r-1300-40 w-1100-30 m-r-1100-35 w-600-60 m-r-600-20 w-500-70 m-r-500-15 w-400-80 m-r-400-10' : ' w-1300-40 m-r-1300-30 w-1100-50 m-r-1100-25 w-600-60 m-r-600-20 w-500-70 m-r-500-15 w-400-80 m-r-400-10') + ' content w-90 m-r-5'\">\r\n <lib-form-button [inp]=\"close\"></lib-form-button>\r\n <div class=\"body\">\r\n <ng-content></ng-content>\r\n <lib-form *ngIf=\"modal.form != null && modal.firstForm\" [form]=\"modal.form\"></lib-form>\r\n <lib-table *ngIf=\"modal.table != null\" [table]=\"modal.table\"></lib-table>\r\n <lib-form *ngIf=\"modal.form != null && !modal.firstForm\" [form]=\"modal.form\"></lib-form>\r\n <lib-accordion *ngIf=\"modal.accordion != null\" [accordion]=\"modal.accordion\"></lib-accordion>\r\n </div>\r\n </div>\r\n</div>\r\n",
2114
2114
  styles: [".modal{background-color:rgba(51,51,51,.26666666666666666);display:none;height:100%;overflow-y:auto;position:fixed;right:0;top:0;width:100%;z-index:999}.modal .content{background-color:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-modal);margin-bottom:50px;margin-top:50px;position:relative;z-index:2}.modal .content .header{float:right;position:relative;text-align:center;width:100%}.modal .content .header .title{float:left;font-family:VazirBold;font-size:18px;height:40px;line-height:40px;width:100%}::ng-deep .modal .content>lib-form-button .form-input-con.button{left:-25px;position:absolute;top:-10px;z-index:5}.modal .content .body{float:right;position:relative;width:100%}@media (max-width:399.98px){.modal .content .close-modal{left:-15px!important}}"]
2115
2115
  },] }
2116
2116
  ];
@@ -2229,7 +2229,7 @@
2229
2229
  SidebarComponent.prototype.getSidebar = function (parentId) {
2230
2230
  var _this = this;
2231
2231
  if (parentId === void 0) { parentId = null; }
2232
- return this.currentData.permissions.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Item && x.ParentId === parentId; }).map(function (s) {
2232
+ return this.currentData.permissions.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Item && x.ParentId === parentId && x.Area !== null; }).map(function (s) {
2233
2233
  return new SidebarClass(_this.l, s.Name, s.Controller, s.Action, s.Url, s.Icon, _this.getSidebar(s.Id));
2234
2234
  });
2235
2235
  };
@@ -4219,6 +4219,7 @@
4219
4219
  }
4220
4220
  if (next >= 0 && next < this.form.inputs.length) {
4221
4221
  setTimeout(function () {
4222
+ console.log(_this.form.inputs[next], next);
4222
4223
  _this.form.inputs[next].focus(true);
4223
4224
  }, 1);
4224
4225
  }
@@ -5046,6 +5047,7 @@
5046
5047
  var code = e.keyCode || e.which;
5047
5048
  if (code === 9 || code === 13) {
5048
5049
  e.preventDefault();
5050
+ console.log(e.shiftKey ? 'ShiftTab' : 'Tab');
5049
5051
  this.changeIndex.emit(e.shiftKey ? 'ShiftTab' : 'Tab');
5050
5052
  }
5051
5053
  var selected = this.inp.options.findIndex(function (x) { return x.value === _this.inp.value; });
@@ -5172,6 +5174,7 @@
5172
5174
  _this.inp.search = s;
5173
5175
  };
5174
5176
  this.inp.focus = function () {
5177
+ console.log('this.inp.focus');
5175
5178
  _this.openOptions();
5176
5179
  };
5177
5180
  this.inp.isValid = function () {