@sevtech/kit 21.2.0 → 21.3.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.
@@ -1029,7 +1029,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
1029
1029
  }], ctorParameters: () => [], propDecorators: { origin: [{ type: i0.Input, args: [{ isSignal: true, alias: "origin", required: true }] }], listRender: [{ type: i0.Input, args: [{ isSignal: true, alias: "listRender", required: false }] }], scrollStrategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollStrategy", required: false }] }], panelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClass", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], showHint: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHint", required: false }] }], showEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEmpty", required: false }] }], minQueryLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minQueryLength", required: false }] }], hintMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "hintMessage", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }] } });
1030
1030
 
1031
1031
  /** Ключ ошибки в `control.errors` */
1032
- const REQUEST_ERROR = 'yodaRequest';
1032
+ const REQUEST_ERROR_KEY = 'yodaError';
1033
1033
  class Yoda extends BaseDirective {
1034
1034
  constructor() {
1035
1035
  super();
@@ -1259,10 +1259,10 @@ class Yoda extends BaseDirective {
1259
1259
  const state = this.state.requestState$$();
1260
1260
  const errors = { ...(control.errors ?? {}) };
1261
1261
  if (state.status === 'error') {
1262
- errors[REQUEST_ERROR] = state.error.getPayload();
1262
+ errors[REQUEST_ERROR_KEY] = state.error.getPayload();
1263
1263
  }
1264
1264
  else {
1265
- delete errors[REQUEST_ERROR];
1265
+ delete errors[REQUEST_ERROR_KEY];
1266
1266
  }
1267
1267
  control.setErrors(Object.keys(errors).length > 0 ? errors : null);
1268
1268
  }