ps-toolkit-ui 0.2.48 → 0.2.49

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.
@@ -94,6 +94,7 @@
94
94
  },
95
95
  Login: {
96
96
  ReSendCodeDes: '(ارسال مجدد)',
97
+ ReSendCodeRemain: '{} : {} مانده تا دریافت مجدد کد',
97
98
  Code: 'کد تایید',
98
99
  Base: 'نام سایت',
99
100
  BaseDesc: 'توضیحات سایت',
@@ -1486,6 +1487,7 @@
1486
1487
  this.percent = 98;
1487
1488
  this.onEnd = null;
1488
1489
  this.onStart = null;
1490
+ this.onTick = null;
1489
1491
  this.start = function () {
1490
1492
  _this.remainSecs = _this.secs;
1491
1493
  _this.percent = 98;
@@ -1500,6 +1502,11 @@
1500
1502
  _this.onEnd();
1501
1503
  }
1502
1504
  }
1505
+ if (Number.isInteger(_this.remainSecs)) {
1506
+ var m = Math.floor(_this.remainSecs / 60);
1507
+ var s = _this.remainSecs % 60;
1508
+ _this.onTick(m, s);
1509
+ }
1503
1510
  _this.remainSecs -= 0.5;
1504
1511
  }, 500);
1505
1512
  };
@@ -6704,6 +6711,9 @@
6704
6711
  code_1.progress.onEnd = function () {
6705
6712
  labelResend_1.value = 'ReSendCodeDes';
6706
6713
  };
6714
+ code_1.progress.onTick = function (m, s) {
6715
+ labelResend_1.value = _this.login.l('ReSendCodeRemain', [m > 9 ? m : "0" + m, s > 9 ? s : "0" + s]);
6716
+ };
6707
6717
  labelResend_1.onClick = function () {
6708
6718
  labelResend_1.name = '(' + _this.login.l('LoadingComp', 'Send') + ')';
6709
6719
  new RequestClass(_this.config.environment).send(_this.login.reSendCodeUrl, exports.Method.Post, loginForm_1.data(), null, function () {
@@ -6822,7 +6832,7 @@
6822
6832
  { type: core.Component, args: [{
6823
6833
  selector: 'lib-notification',
6824
6834
  template: "<div id=\"Notifications\">\r\n</div>\r\n",
6825
- 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:var(--border-radius-base);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)}"]
6835
+ 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:var(--border-radius-base);box-shadow:var(--box-shadow);color:#fff;float:right;overflow:hidden;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)}"]
6826
6836
  },] }
6827
6837
  ];
6828
6838
  NotificationComponent.ctorParameters = function () { return []; };