ps-toolkit-ui 1.13.60 → 1.13.62

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.
@@ -110,6 +110,7 @@
110
110
  Register: 'ثبت کد تایید نرم افزار',
111
111
  DeviceId: 'کد نرم افزار: {}',
112
112
  Copy: 'کپی',
113
+ RulesLabel: 'ورود شما به معنای پذیرش <span class="c-p c-blue">شرایط و قوانین حریم‌خصوصی</span> است'
113
114
  },
114
115
  Footer: {
115
116
  Copyright: 'تمامی حقوق این وبسایت برای پارت سیلیکون محفوظ است.',
@@ -7503,7 +7504,12 @@
7503
7504
  }
7504
7505
  LoginComponent.prototype.ngOnInit = function () {
7505
7506
  var _this = this;
7506
- var rules = new InputClass(this.config.environment, this.login.l, 'Rules', null, exports.InputType.Label, 'm-t-10', this.login.rules);
7507
+ var rulesLabel = new InputClass(this.config.environment, this.login.l, 'RulesLabel', null, exports.InputType.Label, 'm-t-10', 'RulesLabel');
7508
+ var rules = new InputClass(this.config.environment, this.login.l, 'Rules', null, exports.InputType.Label, 'w-80 m-r-10 m-t-10', this.login.rules);
7509
+ rules.visible = false;
7510
+ rulesLabel.onClick = function () {
7511
+ rules.visible = !rules.visible;
7512
+ };
7507
7513
  if (this.login.type === 'Sms') {
7508
7514
  var sendCodeForm_1 = new FormClass(this.config.environment, this.login.l, 'SendCode', true, this.login.sendCodeUrl);
7509
7515
  var sendCode = new InputClass(this.config.environment, this.login.l, 'SendCode', 'fa-duotone fa-paper-plane', exports.InputType.Submit, 'h-45' + (this.loginTemplate === 'Simple' ? ' primary' : ''));
@@ -7522,7 +7528,7 @@
7522
7528
  sendCodeForm_1.inputs = [
7523
7529
  this.mobile,
7524
7530
  sendCode
7525
- ].concat(this.login.rules != null ? [rules] : []);
7531
+ ].concat(this.login.rules != null ? [rulesLabel, rules] : []);
7526
7532
  sendCode.onClick = function () {
7527
7533
  sendCodeForm_1.submit();
7528
7534
  };
@@ -8740,6 +8746,9 @@
8740
8746
  this.permission = false;
8741
8747
  return;
8742
8748
  }
8749
+ if (this.form && this.form.onTop) {
8750
+ this.form.displayLabel = false;
8751
+ }
8743
8752
  var _loop_1 = function (access) {
8744
8753
  if (this_1.buttons.filter(function (x) { return x.name === access.Name; }).length > 0) {
8745
8754
  return "continue";
@@ -8758,10 +8767,6 @@
8758
8767
  _this.showInsertModal();
8759
8768
  };
8760
8769
  }
8761
- else {
8762
- this_1.form.displayLabel = false;
8763
- return "continue";
8764
- }
8765
8770
  }
8766
8771
  else {
8767
8772
  if (this_1.modal) {