ps-toolkit-ui 0.0.111 → 0.0.112

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.
@@ -146,6 +146,7 @@
146
146
  AccessDenied: 'عدم دسترسی',
147
147
  Image: 'تصویر',
148
148
  Grade: 'پایه تحصیلی',
149
+ Close: 'بستن',
149
150
  Desc: 'توضیحات',
150
151
  Admin: 'ادمین',
151
152
  Print: 'گزارش',
@@ -175,7 +176,9 @@
175
176
  ChooseMonth: 'انتخاب ماه',
176
177
  FullName: 'نام کامل',
177
178
  FirstName: 'نام',
179
+ Backup: 'بک آپ',
178
180
  LastName: 'نام خانوادگی',
181
+ OperationSuccessful: 'عملیات با موفقیت انجام شد',
179
182
  Reject: 'رد کردن',
180
183
  Code: 'کد تایید',
181
184
  InvalidRequest: 'درخواست شما نامعتبر است',
@@ -1092,10 +1095,11 @@
1092
1095
  HelperClass.getName = function (n) {
1093
1096
  return n.replace(/ک/g, 'ك').replace(/ی/g, 'ي').replace(/آ/g, 'آ');
1094
1097
  };
1095
- HelperClass.addNotification = function (m) {
1098
+ HelperClass.addNotification = function (m, e) {
1099
+ if (e === void 0) { e = true; }
1096
1100
  var id = HelperClass.random(20);
1097
1101
  // tslint:disable-next-line
1098
- $__namespace('#Notifications').append('<div id="' + id + '" class="con"><div class="item"><i class="fas fa-times"></i><div>' + m + '</div></div></div>');
1102
+ $__namespace('#Notifications').append('<div id="' + id + '" class="con"><div class="item ' + (e ? 'error' : 'success') + '"><i class="fas fa-times"></i><div>' + m + '</div></div></div>');
1099
1103
  setTimeout(function () {
1100
1104
  var d = $__namespace('#' + id);
1101
1105
  d.fadeOut(300, function () {
@@ -5860,14 +5864,13 @@
5860
5864
  this.alert.form.inputs = [
5861
5865
  this.alertLabel
5862
5866
  ];
5863
- this.alert.form.addButtons('Accept', 'blue', false);
5864
5867
  }
5865
5868
  AlertComponent.prototype.show = function (l, accept) {
5866
5869
  var _this = this;
5867
5870
  this.alertLabel.value = l;
5868
- this.alert.form.onSuccess = function (btn) {
5871
+ this.alert.onHide = function () {
5869
5872
  _this.alert.hide();
5870
- accept(btn);
5873
+ accept();
5871
5874
  };
5872
5875
  this.alert.show();
5873
5876
  };
@@ -6826,7 +6829,7 @@
6826
6829
  { type: core.Component, args: [{
6827
6830
  selector: 'lib-notification',
6828
6831
  template: "<div id=\"Notifications\">\r\n</div>\r\n",
6829
- styles: ["#Notifications{bottom:20px;position:fixed;right:0;width:350px;z-index:9999}::ng-deep #Notifications .con{float:right;padding:5px 20px;width:calc(100% - 40px)}::ng-deep #Notifications .item{background-color:var(--red);border-radius:5px;box-shadow:var(--box-shadow);color:#fff;float:right;position:relative;text-align:center;width:100%}::ng-deep #Notifications .item i{cursor:pointer;float:right;height:30px;line-height:30px;width:30px}::ng-deep #Notifications .item i:hover{background-color:var(--red-dark)}::ng-deep #Notifications .item div{float:right;font-size:12px;line-height:20px;padding:10px;width:calc(100% - 30px)}"]
6832
+ styles: ["#Notifications{bottom:20px;position:fixed;right:0;width:350px;z-index:9999}::ng-deep #Notifications .con{float:right;padding:5px 20px;width:calc(100% - 40px)}::ng-deep #Notifications .item{background-color:var(--red);border-radius:5px;box-shadow:var(--box-shadow);color:#fff;float:right;position:relative;text-align:center;width:100%}::ng-deep #Notifications .item.success{background-color:var(--green)}::ng-deep #Notifications .item i{cursor:pointer;float:right;height:30px;line-height:30px;width:30px}::ng-deep #Notifications .item i:hover{background-color:var(--red-dark)}::ng-deep #Notifications .item.success i:hover{background-color:var(--green-dark)}::ng-deep #Notifications .item div{float:right;font-size:12px;line-height:20px;padding:10px;width:calc(100% - 30px)}"]
6830
6833
  },] }
6831
6834
  ];
6832
6835
  NotificationComponent.ctorParameters = function () { return []; };