@snabcentr/client-ui 3.48.1 → 3.49.2
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/auth/sc-auth.module.d.ts +8 -8
- package/banner/sc-banner.module.d.ts +2 -3
- package/catalog/price-card-inline/sc-price-card-inline.component.d.ts +1 -1
- package/catalog/sc-catalog.module.d.ts +1 -1
- package/contacts/sc-contacts.module.d.ts +12 -13
- package/contacts/tokens/sc-manager-qr-handler.token.d.ts +1 -1
- package/contragents/sc-contragents.module.d.ts +8 -9
- package/delivery-address/sc-delivery-address.module.d.ts +11 -12
- package/error-handler/consts/error-change-handler.providers.d.ts +2 -1
- package/esm2022/auth/sc-auth.module.mjs +2 -4
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +5 -6
- package/esm2022/auth/sc-simple-sign-up-form/sc-simple-sign-up-form.component.mjs +2 -1
- package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +10 -10
- package/esm2022/banner/sc-banner.component.mjs +4 -5
- package/esm2022/banner/sc-banner.module.mjs +3 -4
- package/esm2022/cart/add-or-editing-cart-item-dialog/add-or-editing-cart-item-form/sc-add-or-editing-cart-item-form.component.mjs +2 -2
- package/esm2022/cart/cart-item/sc-cart-item.component.mjs +3 -3
- package/esm2022/catalog/catalog-filters/sc-catalog-filters.component.mjs +2 -3
- package/esm2022/catalog/price-history/sc-price-history.component.mjs +7 -7
- package/esm2022/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.mjs +3 -4
- package/esm2022/catalog/sc-catalog.module.mjs +2 -4
- package/esm2022/contacts/contacts-accordion/sc-contacts-accordion.component.mjs +6 -7
- package/esm2022/contacts/sc-contacts.module.mjs +1 -4
- package/esm2022/contacts/tokens/sc-manager-qr-handler.token.mjs +17 -16
- package/esm2022/contacts/tokens/sc-show-help-notification-in-phone-input.token.mjs +6 -4
- package/esm2022/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +4 -5
- package/esm2022/contragents/contragents-accordion/sc-contragents-accordion.component.mjs +4 -5
- package/esm2022/contragents/sc-contragents.module.mjs +1 -4
- package/esm2022/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.mjs +2 -4
- package/esm2022/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.mjs +6 -7
- package/esm2022/delivery-address/sc-delivery-address.module.mjs +1 -4
- package/esm2022/directives/abstract-price-card/abstract-sc-price-card.directive.mjs +2 -2
- package/esm2022/error-handler/consts/error-change-handler.providers.mjs +5 -3
- package/esm2022/feedback/feedback-form/sc-feedback-form.component.mjs +2 -2
- package/esm2022/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs +6 -7
- package/esm2022/form-fields/form-fields.module.mjs +1 -4
- package/esm2022/form-fields/suggestion-field/sc-suggestion-field.component.mjs +6 -7
- package/esm2022/news/news-card/sc-news-card.component.mjs +1 -1
- package/esm2022/pages/frequently-asked-questions/sc-page-size-options.mjs +5 -3
- package/esm2022/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.mjs +10 -11
- package/esm2022/profile/sc-profile.module.mjs +1 -4
- package/esm2022/providers/index.mjs +1 -2
- package/esm2022/providers/sc-allow-select-terminated.mjs +5 -3
- package/esm2022/providers/sc-banner-duration.mjs +5 -3
- package/esm2022/providers/sc-country-ids.mjs +5 -3
- package/esm2022/providers/sc-date-formatter.mjs +10 -7
- package/esm2022/providers/sc-help-notification-close.mjs +5 -3
- package/esm2022/providers/sc-help-notification-limit.mjs +5 -3
- package/esm2022/providers/sc-max-files-in-form-input.mjs +5 -3
- package/esm2022/providers/sc-notify-when-in-stock-required-fields.mjs +5 -3
- package/esm2022/providers/sc-page-size-options.mjs +5 -3
- package/esm2022/providers/sc-user-providers.mjs +17 -12
- package/esm2022/providers/sc-verification-code-timeout.mjs +5 -3
- package/esm2022/public-api.mjs +1 -5
- package/esm2022/samples/sc-sample.module.mjs +2 -4
- package/esm2022/user/reset-user-password/sc-reset-user-password.component.mjs +4 -5
- package/esm2022/user/sc-user.module.mjs +1 -4
- package/esm2022/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +11 -12
- package/esm2022/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +7 -8
- package/esm2022/verification/sc-verification.module.mjs +2 -4
- package/esm2022/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +6 -6
- package/fesm2022/snabcentr-client-ui.mjs +285 -497
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/form-fields/form-fields.module.d.ts +4 -5
- package/news/news-card/sc-news-card.component.d.ts +2 -2
- package/package.json +7 -8
- package/profile/sc-profile.module.d.ts +8 -9
- package/providers/index.d.ts +0 -1
- package/public-api.d.ts +0 -1
- package/samples/sc-sample.module.d.ts +1 -1
- package/styles/tailwind/tailwind.scss +1 -1
- package/user/sc-user.module.d.ts +7 -8
- package/verification/sc-verification.module.d.ts +7 -7
- package/esm2022/providers/sc-category.providers.mjs +0 -43
- package/esm2022/schemas/breadcrumb-list.interface.mjs +0 -2
- package/esm2022/schemas/index.mjs +0 -3
- package/esm2022/schemas/sc-json-ld-category/sc-json-ld-category.component.mjs +0 -192
- package/providers/sc-category.providers.d.ts +0 -11
- package/schemas/breadcrumb-list.interface.d.ts +0 -38
- package/schemas/index.d.ts +0 -2
- package/schemas/sc-json-ld-category/sc-json-ld-category.component.d.ts +0 -63
|
@@ -2,7 +2,7 @@ import { CommonModule } from '@angular/common';
|
|
|
2
2
|
import { NgModule } from '@angular/core';
|
|
3
3
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
4
|
import { MaskitoDirective } from '@maskito/angular';
|
|
5
|
-
import { TuiAutoFocus
|
|
5
|
+
import { TuiAutoFocus } from '@taiga-ui/cdk';
|
|
6
6
|
import { TuiButton, TuiError, TuiIcon, TuiLabel, TuiLink, TuiLoader, TuiTextfield, TuiTitle } from '@taiga-ui/core';
|
|
7
7
|
import { TuiInputPhoneInternational } from '@taiga-ui/experimental';
|
|
8
8
|
import { TuiButtonLoading, TuiFieldErrorPipe, TuiPush, TuiSortCountriesPipe } from '@taiga-ui/kit';
|
|
@@ -30,7 +30,6 @@ export class ScVerificationModule {
|
|
|
30
30
|
TuiLabel,
|
|
31
31
|
TuiFieldErrorPipe,
|
|
32
32
|
TuiError,
|
|
33
|
-
TuiLet,
|
|
34
33
|
TuiLoader,
|
|
35
34
|
TuiInputPhoneModule,
|
|
36
35
|
MaskitoDirective,
|
|
@@ -67,7 +66,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
67
66
|
TuiLabel,
|
|
68
67
|
TuiFieldErrorPipe,
|
|
69
68
|
TuiError,
|
|
70
|
-
TuiLet,
|
|
71
69
|
TuiLoader,
|
|
72
70
|
TuiInputPhoneModule,
|
|
73
71
|
MaskitoDirective,
|
|
@@ -85,4 +83,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
85
83
|
declarations: [ScVerificationPhoneCheckFormComponent],
|
|
86
84
|
}]
|
|
87
85
|
}] });
|
|
88
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
86
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2MtdmVyaWZpY2F0aW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NsaWVudC11aS92ZXJpZmljYXRpb24vc2MtdmVyaWZpY2F0aW9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsV0FBVyxFQUFFL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3JtQ29tcG9uZW50XSxcbiAgICBkZWNsYXJhdGlvbnM6IFtTY1ZlcmlmaWNhdGlvblBob25lQ2hlY2tGb3JtQ29tcG9uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgU2NWZXJpZmljYXRpb25Nb2R1bGUge31cbiJdfQ==
|
|
@@ -18,11 +18,11 @@ import * as i2 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
|
18
18
|
import * as i3 from "@taiga-ui/legacy";
|
|
19
19
|
import * as i4 from "@taiga-ui/core";
|
|
20
20
|
import * as i5 from "@taiga-ui/core/components/label";
|
|
21
|
-
import * as i6 from "@
|
|
22
|
-
import * as i7 from "@
|
|
23
|
-
import * as i8 from "
|
|
24
|
-
import * as i9 from "
|
|
25
|
-
import * as i10 from "@taiga-ui/
|
|
21
|
+
import * as i6 from "@maskito/angular";
|
|
22
|
+
import * as i7 from "@taiga-ui/kit";
|
|
23
|
+
import * as i8 from "../../contacts/manager-card/sc-manager-card.component";
|
|
24
|
+
import * as i9 from "@taiga-ui/experimental";
|
|
25
|
+
import * as i10 from "@taiga-ui/cdk";
|
|
26
26
|
import * as i11 from "@angular/common";
|
|
27
27
|
/**
|
|
28
28
|
* Компонент формы проверки телефона и получения кода подтверждения.
|
|
@@ -248,7 +248,7 @@ export class ScVerificationPhoneCheckFormComponent {
|
|
|
248
248
|
this.helpNotificationService.closeAllHelpNotification();
|
|
249
249
|
}
|
|
250
250
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScVerificationPhoneCheckFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
251
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ScVerificationPhoneCheckFormComponent, selector: "sc-verification-phone-check-form", inputs: { showCodeFields: { classPropertyName: "showCodeFields", publicName: "showCodeFields", isSignal: false, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, pseudoInvalid: { classPropertyName: "pseudoInvalid", publicName: "pseudoInvalid", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, shouldBeBusy: { classPropertyName: "shouldBeBusy", publicName: "shouldBeBusy", isSignal: true, isRequired: false, transformFunction: null }, shouldBeConfirmed: { classPropertyName: "shouldBeConfirmed", publicName: "shouldBeConfirmed", isSignal: true, isRequired: false, transformFunction: null }, haveCode: { classPropertyName: "haveCode", publicName: "haveCode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { haveCode: "haveCodeChange", isBusyChange: "isBusyChange", isConfirmedChange: "isConfirmedChange" }, host: { attributes: { "ngSkipHydration": "true" } }, ngImport: i0, template: "@let phoneCheck = phoneCheck$ | async;\n@let loadingApproveCode = loadingApproveCode$ | async;\n<form\n [formGroup]=\"form\"\n class=\"flex flex-col gap-3\"\n>\n <label tuiLabel>\n \u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430\n <tui-textfield>\n <input\n formControlName=\"phone\"\n tuiInputPhoneInternational\n [invalid]=\"pseudoInvalid() || null\"\n [countrySearch]=\"true\"\n [countries]=\"(countries | tuiSortCountries | async) || []\"\n autocomplete=\"phone\"\n />\n </tui-textfield>\n\n @if (subtitle()) {\n <p class=\"text-body-s text-tui-text-tertiary\">\n {{ subtitle() }}\n </p>\n }\n\n <tui-error\n formControlName=\"phone\"\n [error]=\"[] | tuiFieldError | async\"\n />\n </label>\n\n @if (showCodeFields && form.enabled && phoneCheck) {\n @if (!loadingApproveCode && haveCode()) {\n <label tuiLabel>\n \u041A\u043E\u0434 \u0438\u0437 \u0421\u041C\u0421\n <tui-input\n formControlName=\"verificationCode\"\n [required]=\"required() || showCodeFields\"\n >\n \u041A\u043E\u0434 \u0438\u0437 \u0421\u041C\u0421\n <input\n tuiAutoFocus\n tuiTextfieldLegacy\n [maskito]=\"verificationCodeMask\"\n autocomplete=\"new-password\"\n />\n </tui-input>\n\n <tui-error\n formControlName=\"verificationCode\"\n [error]=\"[] | tuiFieldError | async\"\n />\n </label>\n }\n <div\n *tuiLet=\"!!loadingApproveCode as loadingApproveCode\"\n class=\"flex justify-center gap-4\"\n >\n @if (!haveCode()) {\n <button\n tuiButton\n (click)=\"onSendCode.next()\"\n [disabled]=\"loadingApproveCode || !phoneCheck || phoneControl.invalid\"\n [loading]=\"loadingApproveCode\"\n iconStart=\"@tui.sc.send\"\n >\n \u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043A\u043E\u0434\n </button>\n }\n\n @if (!loadingApproveCode && !haveCode()) {\n <button\n tuiLink\n [pseudo]=\"true\"\n [disabled]=\"!phoneCheck || phoneControl.invalid\"\n (click)=\"setHaveCode(true)\"\n >\n \u0423 \u043C\u0435\u043D\u044F \u0435\u0441\u0442\u044C \u043A\u043E\u0434\n </button>\n }\n @let timer = timer$ | async;\n @if (haveCode()) {\n <tui-loader [showLoader]=\"loadingApproveCode\">\n <button\n tuiLink\n [pseudo]=\"true\"\n [disabled]=\"loadingApproveCode || timer\"\n (click)=\"onSendCode.next()\"\n >\n \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434\n @if (timer) {\n <ng-container class=\"!text-tui-base-08\"> (\u0447\u0435\u0440\u0435\u0437 {{ timer }}) </ng-container>\n }\n </button>\n </tui-loader>\n }\n </div>\n }\n\n @if (showHelpNotification && pushContacts()) {\n @for (manager of pushContacts(); track manager.id) {\n <tui-push\n type=\"\u0421\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0434\u043B\u044F \u0440\u0435\u0448\u0435\u043D\u0438\u044F \u0432\u043E\u0437\u043D\u0438\u043A\u0448\u0438\u0445 \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432\"\n (close)=\"closeNotification()\"\n class=\"!w-auto\"\n >\n <tui-icon icon=\"@tui.message-square\" />\n <sc-manager-card [manager]=\"manager\" />\n </tui-push>\n }\n }\n</form>\n\n<ng-template #checkingPhone>\n @if (!phoneCheck && phoneControl.valid) {\n <tui-loader class=\"size-4\" />\n }\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TuiTextfieldComponent, selector: "input[tuiTextfieldLegacy], textarea[tuiTextfieldLegacy]" }, { kind: "component", type: i3.TuiInputComponent, selector: "tui-input" }, { kind: "directive", type: i3.TuiInputDirective, selector: "tui-input" }, { kind: "directive", type: i4.TuiLink, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo"] }, { kind: "directive", type: i4.TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: i5.TuiLabel, selector: "label[tuiLabel]" }, { kind: "component", type: i4.TuiError, selector: "tui-error", inputs: ["error"] }, { kind: "
|
|
251
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ScVerificationPhoneCheckFormComponent, selector: "sc-verification-phone-check-form", inputs: { showCodeFields: { classPropertyName: "showCodeFields", publicName: "showCodeFields", isSignal: false, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, pseudoInvalid: { classPropertyName: "pseudoInvalid", publicName: "pseudoInvalid", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, shouldBeBusy: { classPropertyName: "shouldBeBusy", publicName: "shouldBeBusy", isSignal: true, isRequired: false, transformFunction: null }, shouldBeConfirmed: { classPropertyName: "shouldBeConfirmed", publicName: "shouldBeConfirmed", isSignal: true, isRequired: false, transformFunction: null }, haveCode: { classPropertyName: "haveCode", publicName: "haveCode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { haveCode: "haveCodeChange", isBusyChange: "isBusyChange", isConfirmedChange: "isConfirmedChange" }, host: { attributes: { "ngSkipHydration": "true" } }, ngImport: i0, template: "@let phoneCheck = phoneCheck$ | async;\n@let loadingApproveCode = loadingApproveCode$ | async;\n<form\n [formGroup]=\"form\"\n class=\"flex flex-col gap-3\"\n>\n <label tuiLabel>\n \u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430\n <tui-textfield>\n <input\n formControlName=\"phone\"\n tuiInputPhoneInternational\n [invalid]=\"pseudoInvalid() || null\"\n [countrySearch]=\"true\"\n [countries]=\"(countries | tuiSortCountries | async) || []\"\n autocomplete=\"phone\"\n />\n </tui-textfield>\n\n @if (subtitle()) {\n <p class=\"text-body-s text-tui-text-tertiary\">\n {{ subtitle() }}\n </p>\n }\n\n <tui-error\n formControlName=\"phone\"\n [error]=\"[] | tuiFieldError | async\"\n />\n </label>\n\n @if (showCodeFields && form.enabled && phoneCheck) {\n @if (!loadingApproveCode && haveCode()) {\n <label tuiLabel>\n \u041A\u043E\u0434 \u0438\u0437 \u0421\u041C\u0421\n <tui-input\n formControlName=\"verificationCode\"\n [required]=\"required() || showCodeFields\"\n >\n \u041A\u043E\u0434 \u0438\u0437 \u0421\u041C\u0421\n <input\n tuiAutoFocus\n tuiTextfieldLegacy\n [maskito]=\"verificationCodeMask\"\n autocomplete=\"new-password\"\n />\n </tui-input>\n\n <tui-error\n formControlName=\"verificationCode\"\n [error]=\"[] | tuiFieldError | async\"\n />\n </label>\n }\n <div\n *tuiLet=\"!!loadingApproveCode as loadingApproveCode\"\n class=\"flex justify-center gap-4\"\n >\n @if (!haveCode()) {\n <button\n tuiButton\n (click)=\"onSendCode.next()\"\n [disabled]=\"loadingApproveCode || !phoneCheck || phoneControl.invalid\"\n [loading]=\"loadingApproveCode\"\n iconStart=\"@tui.sc.send\"\n >\n \u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043A\u043E\u0434\n </button>\n }\n\n @if (!loadingApproveCode && !haveCode()) {\n <button\n tuiLink\n [pseudo]=\"true\"\n [disabled]=\"!phoneCheck || phoneControl.invalid\"\n (click)=\"setHaveCode(true)\"\n >\n \u0423 \u043C\u0435\u043D\u044F \u0435\u0441\u0442\u044C \u043A\u043E\u0434\n </button>\n }\n @let timer = timer$ | async;\n @if (haveCode()) {\n <tui-loader [showLoader]=\"loadingApproveCode\">\n <button\n tuiLink\n [pseudo]=\"true\"\n [disabled]=\"loadingApproveCode || timer\"\n (click)=\"onSendCode.next()\"\n >\n \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434\n @if (timer) {\n <ng-container class=\"!text-tui-base-08\"> (\u0447\u0435\u0440\u0435\u0437 {{ timer }}) </ng-container>\n }\n </button>\n </tui-loader>\n }\n </div>\n }\n\n @if (showHelpNotification && pushContacts()) {\n @for (manager of pushContacts(); track manager.id) {\n <tui-push\n type=\"\u0421\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0434\u043B\u044F \u0440\u0435\u0448\u0435\u043D\u0438\u044F \u0432\u043E\u0437\u043D\u0438\u043A\u0448\u0438\u0445 \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432\"\n (close)=\"closeNotification()\"\n class=\"!w-auto\"\n >\n <tui-icon icon=\"@tui.message-square\" />\n <sc-manager-card [manager]=\"manager\" />\n </tui-push>\n }\n }\n</form>\n\n<ng-template #checkingPhone>\n @if (!phoneCheck && phoneControl.valid) {\n <tui-loader class=\"size-4\" />\n }\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.TuiTextfieldComponent, selector: "input[tuiTextfieldLegacy], textarea[tuiTextfieldLegacy]" }, { kind: "component", type: i3.TuiInputComponent, selector: "tui-input" }, { kind: "directive", type: i3.TuiInputDirective, selector: "tui-input" }, { kind: "directive", type: i4.TuiLink, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo"] }, { kind: "directive", type: i4.TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: i5.TuiLabel, selector: "label[tuiLabel]" }, { kind: "component", type: i4.TuiError, selector: "tui-error", inputs: ["error"] }, { kind: "component", type: i4.TuiLoader, selector: "tui-loader", inputs: ["size", "inheritColor", "overlay", "textContent", "showLoader"] }, { kind: "directive", type: i6.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "component", type: i7.TuiButtonLoading, selector: "[tuiButton][loading],[tuiIconButton][loading]", inputs: ["size", "loading"] }, { kind: "component", type: i8.ScManagerCardComponent, selector: "sc-manager-card", inputs: ["manager"] }, { kind: "component", type: i4.TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "component", type: i7.TuiPushComponent, selector: "tui-push", inputs: ["heading", "type", "lines", "timestamp"], outputs: ["close"] }, { kind: "component", type: i9.TuiInputPhoneInternational, selector: "input[tuiInputPhoneInternational]", inputs: ["countrySearch", "countries", "countryIsoCode"], outputs: ["countryIsoCodeChange"] }, { kind: "component", type: i4.TuiTextfieldComponent, selector: "tui-textfield:not([multi])" }, { kind: "directive", type: i10.TuiAutoFocus, selector: "[tuiAutoFocus]", inputs: ["tuiAutoFocus"] }, { kind: "pipe", type: i11.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.TuiFieldErrorPipe, name: "tuiFieldError" }, { kind: "pipe", type: i7.TuiSortCountriesPipe, name: "tuiSortCountries" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
252
252
|
}
|
|
253
253
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScVerificationPhoneCheckFormComponent, decorators: [{
|
|
254
254
|
type: Component,
|