@klippa/ngx-enhancy-forms 9.0.0 → 9.1.1

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.
@@ -774,7 +774,7 @@
774
774
  _this.changed.forEach(function (fn) { return fn(valueToSet); });
775
775
  };
776
776
  if (isValueSet(this.innerValueChangeInterceptor)) {
777
- this.latestInnerValueChangedInterceptorPromise = this.innerValueChangeInterceptor();
777
+ this.latestInnerValueChangedInterceptorPromise = this.innerValueChangeInterceptor(this.prevValue, value);
778
778
  var myPromise_1 = this.latestInnerValueChangedInterceptorPromise;
779
779
  this.latestInnerValueChangedInterceptorPromise.then(function () {
780
780
  if (_this.latestInnerValueChangedInterceptorPromise === myPromise_1) {
@@ -964,7 +964,6 @@
964
964
  function PasswordFieldComponent() {
965
965
  var _this = _super.apply(this, __spread(arguments)) || this;
966
966
  _this.placeholder = 'Password';
967
- _this.isPasswordConfirm = false;
968
967
  return _this;
969
968
  }
970
969
  return PasswordFieldComponent;
@@ -972,14 +971,13 @@
972
971
  PasswordFieldComponent.decorators = [
973
972
  { type: core.Component, args: [{
974
973
  selector: 'klp-form-password-field',
975
- template: "<input\n\ttype=\"password\"\n\tclass=\"form-control\"\n [ngClass]=\"{showErrors: isInErrorState()}\"\n\t[(ngModel)]=\"innerValue\"\n\t(input)=\"setInnerValueAndNotify($event.target.value)\"\n\t[placeholder]=\"isPasswordConfirm ? 'Confirm password': 'Password'\"\n\t(blur)=\"touch()\"\n\t[disabled]=\"disabled\"\n/>\n",
974
+ template: "<input\n\ttype=\"password\"\n\tclass=\"form-control\"\n [ngClass]=\"{showErrors: isInErrorState()}\"\n\t[(ngModel)]=\"innerValue\"\n\t(input)=\"setInnerValueAndNotify($event.target.value)\"\n\t[placeholder]=\"placeholder\"\n\t(blur)=\"touch()\"\n\t[disabled]=\"disabled\"\n/>\n",
976
975
  providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: PasswordFieldComponent, multi: true }],
977
976
  styles: [":host,input{display:block}input{-moz-transition:all .2s ease-in;-ms-transition:all .2s ease-in;-o-transition:all .2s ease-in;-webkit-transition:all .2s ease-in;border:1px solid #e6ecf5;border-radius:2px;box-shadow:none;color:#888da8;font-size:14px;height:42px;outline:none;padding:.375rem .625rem;transition:all .2s ease-in;width:100%}input::-webkit-input-placeholder{color:#adadad}input:-moz-placeholder,input::-moz-placeholder{color:#adadad}input:-ms-input-placeholder{color:#adadad}input:focus{border-color:#3ed778;box-shadow:none;outline:0 none}input.input-sm{height:30px}input.input-lg{height:50px}input.error{background-color:#f6cdd1;border-color:#dc3545}input.valid{background-color:#ebfaeb;border-color:#37c936;color:#278d26}.showErrors{border-color:#ff8000}"]
978
977
  },] }
979
978
  ];
980
979
  PasswordFieldComponent.propDecorators = {
981
- placeholder: [{ type: core.Input }],
982
- isPasswordConfirm: [{ type: core.Input }]
980
+ placeholder: [{ type: core.Input }]
983
981
  };
984
982
 
985
983
  var SELECT_TRANSLATIONS = new core.InjectionToken('klp.form.select.translations');