@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.
- package/fesm2022/misc.mjs +175 -248
- package/fesm2022/misc.mjs.map +1 -1
- package/fesm2022/ng-misc.mjs +183 -94
- package/fesm2022/ng-misc.mjs.map +1 -1
- package/fesm2022/ui-yoda.mjs +3 -3
- package/fesm2022/ui-yoda.mjs.map +1 -1
- package/misc/index.d.ts +190 -399
- package/ng-misc/index.d.ts +117 -171
- package/package.json +1 -1
- package/ui/yoda/index.d.ts +16 -1
package/fesm2022/ui-yoda.mjs
CHANGED
|
@@ -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
|
|
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[
|
|
1262
|
+
errors[REQUEST_ERROR_KEY] = state.error.getPayload();
|
|
1263
1263
|
}
|
|
1264
1264
|
else {
|
|
1265
|
-
delete errors[
|
|
1265
|
+
delete errors[REQUEST_ERROR_KEY];
|
|
1266
1266
|
}
|
|
1267
1267
|
control.setErrors(Object.keys(errors).length > 0 ? errors : null);
|
|
1268
1268
|
}
|