@snabcentr/client-ui 4.1.0 → 4.3.0
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/accordion/index.d.ts +3 -0
- package/accordion/sc-accordion-content.directive.d.ts +9 -0
- package/accordion/sc-accordion.component.d.ts +56 -0
- package/accordion/sc-accordion.module.d.ts +15 -0
- package/auth/enums/auth-method.d.ts +13 -0
- package/auth/index.d.ts +8 -0
- package/auth/interfaces/api-error-response.d.ts +13 -0
- package/auth/interfaces/index.d.ts +3 -0
- package/auth/interfaces/sc-bank-account-form-group.d.ts +11 -0
- package/auth/interfaces/sc-contact-form-group.d.ts +10 -0
- package/auth/sc-auth.module.d.ts +26 -0
- package/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.d.ts +39 -0
- package/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.d.ts +41 -0
- package/auth/sc-sign-in-form/sc-sign-in-form.component.d.ts +53 -0
- package/auth/sc-simple-sign-up-form/sc-simple-sign-up-form.component.d.ts +106 -0
- package/auth/sign-up-form/sc-sign-up-form.component.d.ts +161 -0
- package/banner/index.d.ts +2 -0
- package/banner/sc-banner.component.d.ts +88 -0
- package/banner/sc-banner.module.d.ts +18 -0
- package/brands-list/index.d.ts +2 -0
- package/brands-list/sc-brands-list.component.d.ts +15 -0
- package/brands-list/sc-brands-list.module.d.ts +12 -0
- package/cart/add-or-editing-cart-item-dialog/add-or-editing-cart-item-form/sc-add-or-editing-cart-item-form.component.d.ts +102 -0
- package/cart/add-or-editing-cart-item-dialog/index.d.ts +2 -0
- package/cart/add-or-editing-cart-item-dialog/sc-add-or-editing-cart-item-dialog.component.d.ts +48 -0
- package/cart/cart-item/sc-cart-item.component.d.ts +25 -0
- package/cart/index.d.ts +3 -0
- package/cart/sc-cart-add-products-from-csv-dialog/sc-cart-add-products-from-csv-dialog.component.d.ts +62 -0
- package/catalog/category-card/sc-category-card.component.d.ts +76 -0
- package/catalog/cost-with-discount/cost-with-discount.component.d.ts +23 -0
- package/catalog/download-price-list/sc-download-price-list.component.d.ts +38 -0
- package/catalog/hover-image-carousel/sc-hover-image-carousel.component.d.ts +48 -0
- package/catalog/index.d.ts +12 -0
- package/catalog/input-quantity/sc-input-quantity.component.d.ts +82 -0
- package/catalog/notify-when-in-stock-dialog/index.d.ts +2 -0
- package/catalog/notify-when-in-stock-dialog/sc-notify-when-in-stock-dialog.component.d.ts +90 -0
- package/catalog/notify-when-in-stock-dialog/sc-product-in-all-warehouses.pipe.d.ts +22 -0
- package/catalog/price-card/sc-price-card.component.d.ts +18 -0
- package/catalog/price-card-inline/sc-price-card-inline.component.d.ts +10 -0
- package/catalog/price-history/sc-price-history.component.d.ts +88 -0
- package/catalog/price-list-pagination/sc-price-list-pagination.component.d.ts +40 -0
- package/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.d.ts +47 -0
- package/catalog/sc-catalog.module.d.ts +29 -0
- package/catalog/sc-favorite-button/sc-favorite-button.component.d.ts +25 -0
- package/contacts/add-contact-dialog/sc-add-contact-dialog.component.d.ts +49 -0
- package/contacts/contacts-accordion/sc-contacts-accordion.component.d.ts +23 -0
- package/contacts/index.d.ts +7 -0
- package/contacts/manager-card/sc-manager-card.component.d.ts +22 -0
- package/contacts/manager-card-push/sc-manager-card-push.component.d.ts +18 -0
- package/contacts/new-contact-form/sc-new-contact-form.component.d.ts +28 -0
- package/contacts/sc-contacts.module.d.ts +28 -0
- package/contacts/tokens/index.d.ts +2 -0
- package/contacts/tokens/sc-manager-qr-handler.token.d.ts +6 -0
- package/contacts/tokens/sc-show-help-notification-in-phone-input.token.d.ts +5 -0
- package/contragents/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.d.ts +49 -0
- package/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.d.ts +161 -0
- package/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.d.ts +62 -0
- package/contragents/contragents-accordion/sc-contragents-accordion.component.d.ts +49 -0
- package/contragents/index.d.ts +7 -0
- package/contragents/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.d.ts +64 -0
- package/contragents/new-contragent-form/sc-new-contragent-form.component.d.ts +125 -0
- package/contragents/sc-contragents.module.d.ts +27 -0
- package/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.d.ts +141 -0
- package/delivery-address/delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component.d.ts +50 -0
- package/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.d.ts +49 -0
- package/delivery-address/index.d.ts +4 -0
- package/delivery-address/sc-delivery-address.module.d.ts +26 -0
- package/dialogs/index.d.ts +1 -0
- package/dialogs/sc-resource-preview/sc-resource-preview.component.d.ts +42 -0
- package/directives/abstract-price-card/abstract-sc-price-card.directive.d.ts +136 -0
- package/directives/index.d.ts +7 -0
- package/directives/links/index.d.ts +4 -0
- package/directives/links/sc-email-link.directive.d.ts +25 -0
- package/directives/links/sc-link-location.d.ts +5 -0
- package/directives/links/sc-links.d.ts +7 -0
- package/directives/links/sc-tel-link.directive.d.ts +40 -0
- package/directives/next-input-focus/sc-next-input-focus.directive.d.ts +18 -0
- package/directives/next-input-focus/sc-next-input-focus.module.d.ts +10 -0
- package/directives/sc-date-value-transformer.directive.d.ts +8 -0
- package/directives/select-on-focusin/sc-select-on-focusin.directive.d.ts +14 -0
- package/directives/terminal-link/sc-terminal-link.directive.d.ts +34 -0
- package/error-handler/consts/error-change-handler.providers.d.ts +5 -0
- package/error-handler/error-block-status/error-block-status.component.d.ts +37 -0
- package/error-handler/index.d.ts +4 -0
- package/error-handler/interfaces/i-block-error.d.ts +17 -0
- package/error-handler/sc-error-handler.component.d.ts +40 -0
- package/esm2022/accordion/index.mjs +4 -0
- package/esm2022/accordion/sc-accordion-content.directive.mjs +17 -0
- package/esm2022/accordion/sc-accordion.component.mjs +92 -0
- package/esm2022/accordion/sc-accordion.module.mjs +26 -0
- package/esm2022/auth/enums/auth-method.mjs +15 -0
- package/esm2022/auth/index.mjs +9 -0
- package/esm2022/auth/interfaces/api-error-response.mjs +2 -0
- package/esm2022/auth/interfaces/index.mjs +4 -0
- package/esm2022/auth/interfaces/sc-bank-account-form-group.mjs +2 -0
- package/esm2022/auth/interfaces/sc-contact-form-group.mjs +2 -0
- package/esm2022/auth/sc-auth.module.mjs +99 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.mjs +87 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +86 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form.component.mjs +89 -0
- package/esm2022/auth/sc-simple-sign-up-form/sc-simple-sign-up-form.component.mjs +187 -0
- package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +333 -0
- package/esm2022/banner/index.mjs +3 -0
- package/esm2022/banner/sc-banner.component.mjs +143 -0
- package/esm2022/banner/sc-banner.module.mjs +30 -0
- package/esm2022/brands-list/index.mjs +3 -0
- package/esm2022/brands-list/sc-brands-list.component.mjs +24 -0
- package/esm2022/brands-list/sc-brands-list.module.mjs +22 -0
- package/esm2022/cart/add-or-editing-cart-item-dialog/add-or-editing-cart-item-form/sc-add-or-editing-cart-item-form.component.mjs +233 -0
- package/esm2022/cart/add-or-editing-cart-item-dialog/index.mjs +3 -0
- package/esm2022/cart/add-or-editing-cart-item-dialog/sc-add-or-editing-cart-item-dialog.component.mjs +74 -0
- package/esm2022/cart/cart-item/sc-cart-item.component.mjs +74 -0
- package/esm2022/cart/index.mjs +4 -0
- package/esm2022/cart/sc-cart-add-products-from-csv-dialog/sc-cart-add-products-from-csv-dialog.component.mjs +110 -0
- package/esm2022/catalog/category-card/sc-category-card.component.mjs +102 -0
- package/esm2022/catalog/cost-with-discount/cost-with-discount.component.mjs +38 -0
- package/esm2022/catalog/download-price-list/sc-download-price-list.component.mjs +56 -0
- package/esm2022/catalog/hover-image-carousel/sc-hover-image-carousel.component.mjs +76 -0
- package/esm2022/catalog/index.mjs +13 -0
- package/esm2022/catalog/input-quantity/sc-input-quantity.component.mjs +177 -0
- package/esm2022/catalog/notify-when-in-stock-dialog/index.mjs +3 -0
- package/esm2022/catalog/notify-when-in-stock-dialog/sc-notify-when-in-stock-dialog.component.mjs +173 -0
- package/esm2022/catalog/notify-when-in-stock-dialog/sc-product-in-all-warehouses.pipe.mjs +35 -0
- package/esm2022/catalog/price-card/sc-price-card.component.mjs +52 -0
- package/esm2022/catalog/price-card-inline/sc-price-card-inline.component.mjs +56 -0
- package/esm2022/catalog/price-history/sc-price-history.component.mjs +140 -0
- package/esm2022/catalog/price-list-pagination/sc-price-list-pagination.component.mjs +65 -0
- package/esm2022/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.mjs +54 -0
- package/esm2022/catalog/sc-catalog.module.mjs +125 -0
- package/esm2022/catalog/sc-favorite-button/sc-favorite-button.component.mjs +42 -0
- package/esm2022/contacts/add-contact-dialog/sc-add-contact-dialog.component.mjs +91 -0
- package/esm2022/contacts/contacts-accordion/sc-contacts-accordion.component.mjs +38 -0
- package/esm2022/contacts/index.mjs +8 -0
- package/esm2022/contacts/manager-card/sc-manager-card.component.mjs +58 -0
- package/esm2022/contacts/manager-card-push/sc-manager-card-push.component.mjs +28 -0
- package/esm2022/contacts/new-contact-form/sc-new-contact-form.component.mjs +37 -0
- package/esm2022/contacts/sc-contacts.module.mjs +92 -0
- package/esm2022/contacts/tokens/index.mjs +3 -0
- package/esm2022/contacts/tokens/sc-manager-qr-handler.token.mjs +24 -0
- package/esm2022/contacts/tokens/sc-show-help-notification-in-phone-input.token.mjs +7 -0
- package/esm2022/contragents/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.mjs +81 -0
- package/esm2022/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.mjs +278 -0
- package/esm2022/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +75 -0
- package/esm2022/contragents/contragents-accordion/sc-contragents-accordion.component.mjs +69 -0
- package/esm2022/contragents/index.mjs +8 -0
- package/esm2022/contragents/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.mjs +72 -0
- package/esm2022/contragents/new-contragent-form/sc-new-contragent-form.component.mjs +242 -0
- package/esm2022/contragents/sc-contragents.module.mjs +118 -0
- package/esm2022/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.mjs +250 -0
- package/esm2022/delivery-address/delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component.mjs +60 -0
- package/esm2022/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.mjs +69 -0
- package/esm2022/delivery-address/index.mjs +5 -0
- package/esm2022/delivery-address/sc-delivery-address.module.mjs +99 -0
- package/esm2022/dialogs/index.mjs +2 -0
- package/esm2022/dialogs/sc-resource-preview/sc-resource-preview.component.mjs +68 -0
- package/esm2022/directives/abstract-price-card/abstract-sc-price-card.directive.mjs +170 -0
- package/esm2022/directives/index.mjs +8 -0
- package/esm2022/directives/links/index.mjs +5 -0
- package/esm2022/directives/links/sc-email-link.directive.mjs +49 -0
- package/esm2022/directives/links/sc-link-location.mjs +2 -0
- package/esm2022/directives/links/sc-links.mjs +8 -0
- package/esm2022/directives/links/sc-tel-link.directive.mjs +79 -0
- package/esm2022/directives/next-input-focus/sc-next-input-focus.directive.mjs +43 -0
- package/esm2022/directives/next-input-focus/sc-next-input-focus.module.mjs +19 -0
- package/esm2022/directives/sc-date-value-transformer.directive.mjs +30 -0
- package/esm2022/directives/select-on-focusin/sc-select-on-focusin.directive.mjs +31 -0
- package/esm2022/directives/terminal-link/sc-terminal-link.directive.mjs +69 -0
- package/esm2022/error-handler/consts/error-change-handler.providers.mjs +8 -0
- package/esm2022/error-handler/error-block-status/error-block-status.component.mjs +76 -0
- package/esm2022/error-handler/index.mjs +5 -0
- package/esm2022/error-handler/interfaces/i-block-error.mjs +2 -0
- package/esm2022/error-handler/sc-error-handler.component.mjs +58 -0
- package/esm2022/feedback/feedback-form/sc-feedback-form.component.mjs +344 -0
- package/esm2022/feedback/gratitude/sc-gratitude.component.mjs +32 -0
- package/esm2022/feedback/index.mjs +4 -0
- package/esm2022/feedback/interfaces/index.mjs +2 -0
- package/esm2022/feedback/interfaces/sc-feedback-form-config.mjs +2 -0
- package/esm2022/files/directives/index.mjs +3 -0
- package/esm2022/files/directives/tree-top.directive.mjs +63 -0
- package/esm2022/files/directives/tree.directive.mjs +47 -0
- package/esm2022/files/file-tree-item/file-tree-item.component.mjs +18 -0
- package/esm2022/files/files-and-documents/files-and-documents.component.mjs +61 -0
- package/esm2022/files/files-and-documents.module.mjs +28 -0
- package/esm2022/files/index.mjs +6 -0
- package/esm2022/files/interfaces/tree-node.mjs +2 -0
- package/esm2022/files/services/index.mjs +3 -0
- package/esm2022/files/services/tree-icon.service.mjs +49 -0
- package/esm2022/files/services/tree-loader.service.mjs +62 -0
- package/esm2022/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs +155 -0
- package/esm2022/form-fields/form-fields.module.mjs +69 -0
- package/esm2022/form-fields/index.mjs +4 -0
- package/esm2022/form-fields/suggestion-field/sc-suggestion-field.component.mjs +175 -0
- package/esm2022/helpers/index.mjs +2 -0
- package/esm2022/helpers/sc-px-converter.mjs +27 -0
- package/esm2022/icons/index.mjs +2 -0
- package/esm2022/icons/sc-client-ui-icons-name.mjs +99 -0
- package/esm2022/loader/index.mjs +2 -0
- package/esm2022/loader/sc-i-loader.mjs +2 -0
- package/esm2022/masks/index.mjs +8 -0
- package/esm2022/masks/sc-account-number-mask.mjs +7 -0
- package/esm2022/masks/sc-bic-mask.mjs +7 -0
- package/esm2022/masks/sc-correspondent-account-mask.mjs +7 -0
- package/esm2022/masks/sc-inn-mask.mjs +13 -0
- package/esm2022/masks/sc-kpp-mask.mjs +7 -0
- package/esm2022/masks/sc-okpo-mask.mjs +13 -0
- package/esm2022/masks/sc-phone-verification-code-mask.mjs +7 -0
- package/esm2022/models/i-sc-image.mjs +2 -0
- package/esm2022/models/index.mjs +2 -0
- package/esm2022/news/index.mjs +4 -0
- package/esm2022/news/news-card/sc-news-card.component.mjs +34 -0
- package/esm2022/news/news-card-skeleton/sc-news-card-skeleton.component.mjs +31 -0
- package/esm2022/news/sc-news.module.mjs +26 -0
- package/esm2022/order/index.mjs +4 -0
- package/esm2022/order/order-item-mobile/sc-order-item-mobile.component.mjs +60 -0
- package/esm2022/order/sc-order.module.mjs +53 -0
- package/esm2022/order/sc-payment-status/sc-payment-status.component.mjs +35 -0
- package/esm2022/pages/frequently-asked-questions/sc-frequently-asked-questions.component.mjs +28 -0
- package/esm2022/pages/frequently-asked-questions/sc-page-size-options.mjs +6 -0
- package/esm2022/pages/frequently-asked-questions-group-selector/sc-frequently-asked-questions-group-selector.component.mjs +59 -0
- package/esm2022/pages/frequently-asked-questions-with-groups/sc-frequently-asked-questions-with-groups.component.mjs +106 -0
- package/esm2022/pages/index.mjs +6 -0
- package/esm2022/pages/personal-data-processing-policy/sc-personal-data-processing-policy.component.mjs +30 -0
- package/esm2022/pages/public-offer/sc-public-offer.component.mjs +32 -0
- package/esm2022/pipes/index.mjs +3 -0
- package/esm2022/pipes/sc-format-date.mjs +33 -0
- package/esm2022/pipes/sc-phone-format.mjs +44 -0
- package/esm2022/profile/index.mjs +3 -0
- package/esm2022/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.mjs +175 -0
- package/esm2022/profile/sc-profile.module.mjs +76 -0
- package/esm2022/providers/date-value-transformer/index.mjs +4 -0
- package/esm2022/providers/date-value-transformer/sc-date-value-transformer-types.mjs +2 -0
- package/esm2022/providers/date-value-transformer/sc-date-value-transformer-with-end-time.mjs +26 -0
- package/esm2022/providers/date-value-transformer/sc-date-value-transformer-with-start-time.mjs +37 -0
- package/esm2022/providers/index.mjs +12 -0
- package/esm2022/providers/sc-allow-select-terminated.mjs +6 -0
- package/esm2022/providers/sc-country-ids.mjs +6 -0
- package/esm2022/providers/sc-date-formatter.mjs +12 -0
- package/esm2022/providers/sc-date-value-transformer.mjs +12 -0
- package/esm2022/providers/sc-help-notification-close.mjs +7 -0
- package/esm2022/providers/sc-help-notification-limit.mjs +6 -0
- package/esm2022/providers/sc-max-files-in-form-input.mjs +6 -0
- package/esm2022/providers/sc-notify-when-in-stock-required-fields.mjs +6 -0
- package/esm2022/providers/sc-page-size-options.mjs +6 -0
- package/esm2022/providers/sc-user-providers.mjs +33 -0
- package/esm2022/providers/sc-verification-code-timeout.mjs +6 -0
- package/esm2022/public-api.mjs +35 -0
- package/esm2022/qrcode/index.mjs +3 -0
- package/esm2022/qrcode/qrcode-dialog/sc-qrcode-dialog.component.mjs +58 -0
- package/esm2022/qrcode/sc-qrcode.module.mjs +25 -0
- package/esm2022/samples/index.mjs +5 -0
- package/esm2022/samples/interfaces/index.mjs +3 -0
- package/esm2022/samples/interfaces/sc-i-preview-sample.mjs +2 -0
- package/esm2022/samples/interfaces/sc-preview-mosquito-config.mjs +2 -0
- package/esm2022/samples/preview-sample/sc-preview-sample.component.mjs +42 -0
- package/esm2022/samples/sc-preview-samples-mosquito/sc-preview-samples-mosquito.component.mjs +63 -0
- package/esm2022/samples/sc-sample.module.mjs +68 -0
- package/esm2022/services/index.mjs +2 -0
- package/esm2022/services/sc-help-notification.service.mjs +90 -0
- package/esm2022/share-button/index.mjs +3 -0
- package/esm2022/share-button/sc-share-button.component.mjs +35 -0
- package/esm2022/share-button/sc-share-button.module.mjs +22 -0
- package/esm2022/snabcentr-client-ui.mjs +5 -0
- package/esm2022/user/index.mjs +6 -0
- package/esm2022/user/reset-user-password/sc-reset-user-password.component.mjs +75 -0
- package/esm2022/user/sc-user.module.mjs +89 -0
- package/esm2022/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +122 -0
- package/esm2022/user/user-managers/sc-user-managers.component.mjs +42 -0
- package/esm2022/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +106 -0
- package/esm2022/validators/index.mjs +7 -0
- package/esm2022/validators/sc-at-least-one-required-validator.mjs +25 -0
- package/esm2022/validators/sc-bic-validator.mjs +10 -0
- package/esm2022/validators/sc-correspondent-account-validator.mjs +10 -0
- package/esm2022/validators/sc-password-confirm-matching-validator.mjs +17 -0
- package/esm2022/validators/sc-phone-validator.mjs +14 -0
- package/esm2022/validators/step-validator.mjs +18 -0
- package/esm2022/verification/index.mjs +4 -0
- package/esm2022/verification/providers/index.mjs +3 -0
- package/esm2022/verification/providers/sc-phone-approve-code-sender.provider.mjs +12 -0
- package/esm2022/verification/providers/sc-phone-approve-code-sender.token.mjs +7 -0
- package/esm2022/verification/sc-verification.module.mjs +88 -0
- package/esm2022/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +277 -0
- package/feedback/feedback-form/sc-feedback-form.component.d.ts +163 -0
- package/feedback/gratitude/sc-gratitude.component.d.ts +20 -0
- package/feedback/index.d.ts +3 -0
- package/feedback/interfaces/index.d.ts +1 -0
- package/feedback/interfaces/sc-feedback-form-config.d.ts +23 -0
- package/fesm2022/snabcentr-client-ui.mjs +3980 -3516
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/files/directives/index.d.ts +2 -0
- package/files/directives/tree-top.directive.d.ts +33 -0
- package/files/directives/tree.directive.d.ts +35 -0
- package/files/file-tree-item/file-tree-item.component.d.ts +9 -0
- package/files/files-and-documents/files-and-documents.component.d.ts +27 -0
- package/files/files-and-documents.module.d.ts +17 -0
- package/files/index.d.ts +5 -0
- package/files/interfaces/tree-node.d.ts +29 -0
- package/files/services/index.d.ts +2 -0
- package/files/services/tree-icon.service.d.ts +23 -0
- package/files/services/tree-loader.service.d.ts +43 -0
- package/form-fields/addresses-selection-field/sc-addresses-selection-field.component.d.ts +78 -0
- package/form-fields/form-fields.module.d.ts +19 -0
- package/form-fields/index.d.ts +3 -0
- package/form-fields/suggestion-field/sc-suggestion-field.component.d.ts +73 -0
- package/helpers/index.d.ts +1 -0
- package/helpers/sc-px-converter.d.ts +15 -0
- package/icons/index.d.ts +1 -0
- package/icons/sc-client-ui-icons-name.d.ts +4 -0
- package/index.d.ts +3 -4351
- package/loader/index.d.ts +1 -0
- package/loader/sc-i-loader.d.ts +9 -0
- package/masks/index.d.ts +7 -0
- package/masks/sc-account-number-mask.d.ts +5 -0
- package/masks/sc-bic-mask.d.ts +5 -0
- package/masks/sc-correspondent-account-mask.d.ts +5 -0
- package/masks/sc-inn-mask.d.ts +9 -0
- package/masks/sc-kpp-mask.d.ts +5 -0
- package/masks/sc-okpo-mask.d.ts +9 -0
- package/masks/sc-phone-verification-code-mask.d.ts +5 -0
- package/models/i-sc-image.d.ts +17 -0
- package/models/index.d.ts +1 -0
- package/news/index.d.ts +3 -0
- package/news/news-card/sc-news-card.component.d.ts +22 -0
- package/news/news-card-skeleton/sc-news-card-skeleton.component.d.ts +16 -0
- package/news/sc-news.module.d.ts +16 -0
- package/order/index.d.ts +3 -0
- package/order/order-item-mobile/sc-order-item-mobile.component.d.ts +39 -0
- package/order/sc-order.module.d.ts +19 -0
- package/order/sc-payment-status/sc-payment-status.component.d.ts +25 -0
- package/package.json +3 -1
- package/pages/frequently-asked-questions/sc-frequently-asked-questions.component.d.ts +18 -0
- package/pages/frequently-asked-questions/sc-page-size-options.d.ts +5 -0
- package/pages/frequently-asked-questions-group-selector/sc-frequently-asked-questions-group-selector.component.d.ts +28 -0
- package/pages/frequently-asked-questions-with-groups/sc-frequently-asked-questions-with-groups.component.d.ts +79 -0
- package/pages/index.d.ts +5 -0
- package/pages/personal-data-processing-policy/sc-personal-data-processing-policy.component.d.ts +17 -0
- package/pages/public-offer/sc-public-offer.component.d.ts +22 -0
- package/pipes/index.d.ts +2 -0
- package/pipes/sc-format-date.d.ts +20 -0
- package/pipes/sc-phone-format.d.ts +21 -0
- package/profile/index.d.ts +2 -0
- package/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.d.ts +126 -0
- package/profile/sc-profile.module.d.ts +24 -0
- package/providers/date-value-transformer/index.d.ts +3 -0
- package/providers/date-value-transformer/sc-date-value-transformer-types.d.ts +9 -0
- package/providers/date-value-transformer/sc-date-value-transformer-with-end-time.d.ts +16 -0
- package/providers/date-value-transformer/sc-date-value-transformer-with-start-time.d.ts +22 -0
- package/providers/index.d.ts +11 -0
- package/providers/sc-allow-select-terminated.d.ts +5 -0
- package/providers/sc-country-ids.d.ts +5 -0
- package/providers/sc-date-formatter.d.ts +6 -0
- package/providers/sc-date-value-transformer.d.ts +5 -0
- package/providers/sc-help-notification-close.d.ts +6 -0
- package/providers/sc-help-notification-limit.d.ts +5 -0
- package/providers/sc-max-files-in-form-input.d.ts +5 -0
- package/providers/sc-notify-when-in-stock-required-fields.d.ts +5 -0
- package/providers/sc-page-size-options.d.ts +5 -0
- package/providers/sc-user-providers.d.ts +21 -0
- package/providers/sc-verification-code-timeout.d.ts +5 -0
- package/public-api.d.ts +31 -0
- package/qrcode/index.d.ts +2 -0
- package/qrcode/qrcode-dialog/sc-qrcode-dialog.component.d.ts +37 -0
- package/qrcode/sc-qrcode.module.d.ts +14 -0
- package/release_notes.tmp +2 -8
- package/samples/index.d.ts +4 -0
- package/samples/interfaces/index.d.ts +2 -0
- package/samples/interfaces/sc-i-preview-sample.d.ts +56 -0
- package/samples/interfaces/sc-preview-mosquito-config.d.ts +62 -0
- package/samples/preview-sample/sc-preview-sample.component.d.ts +30 -0
- package/samples/sc-preview-samples-mosquito/sc-preview-samples-mosquito.component.d.ts +50 -0
- package/samples/sc-sample.module.d.ts +19 -0
- package/services/index.d.ts +1 -0
- package/services/sc-help-notification.service.d.ts +64 -0
- package/share-button/index.d.ts +2 -0
- package/share-button/sc-share-button.component.d.ts +22 -0
- package/share-button/sc-share-button.module.d.ts +12 -0
- package/styles/tailwind/tailwind.scss +180 -0
- package/user/index.d.ts +5 -0
- package/user/reset-user-password/sc-reset-user-password.component.d.ts +46 -0
- package/user/sc-user.module.d.ts +25 -0
- package/user/update-user-info-dialog/sc-update-user-info-dialog.component.d.ts +63 -0
- package/user/user-managers/sc-user-managers.component.d.ts +26 -0
- package/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.d.ts +53 -0
- package/validators/index.d.ts +6 -0
- package/validators/sc-at-least-one-required-validator.d.ts +10 -0
- package/validators/sc-bic-validator.d.ts +8 -0
- package/validators/sc-correspondent-account-validator.d.ts +8 -0
- package/validators/sc-password-confirm-matching-validator.d.ts +8 -0
- package/validators/sc-phone-validator.d.ts +5 -0
- package/validators/step-validator.d.ts +8 -0
- package/verification/index.d.ts +3 -0
- package/verification/providers/index.d.ts +2 -0
- package/verification/providers/sc-phone-approve-code-sender.provider.d.ts +6 -0
- package/verification/providers/sc-phone-approve-code-sender.token.d.ts +7 -0
- package/verification/sc-verification.module.d.ts +21 -0
- package/verification/verification-phone-check-form/sc-verification-phone-check-form.component.d.ts +149 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
import { PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* Директива содержимого компонента, позволяющего отображать и скрывать содержимое в разделах.
|
5
|
+
*/
|
6
|
+
export declare class ScAccordionContentDirective extends PolymorpheusTemplate<Record<string, unknown>> {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScAccordionContentDirective, never>;
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScAccordionContentDirective, "ng-template[scAccordionContent]", never, {}, {}, never, never, false, never>;
|
9
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { TuiSizeS } from '@taiga-ui/core';
|
3
|
+
import { TuiAccordionItem } from '@taiga-ui/kit';
|
4
|
+
import { ScAccordionContentDirective } from './sc-accordion-content.directive';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* Компонент, позволяющий отображать и скрывать содержимое в разделах.
|
8
|
+
*/
|
9
|
+
export declare class ScAccordionComponent {
|
10
|
+
/**
|
11
|
+
* Состояние отображения кнопки добавления.
|
12
|
+
*/
|
13
|
+
showAddButton: boolean;
|
14
|
+
/**
|
15
|
+
* Состояние отображения кнопки удаления.
|
16
|
+
*/
|
17
|
+
showDeleteButton: boolean;
|
18
|
+
/**
|
19
|
+
* Состояние отображения стрелки.
|
20
|
+
*/
|
21
|
+
showArrow: boolean;
|
22
|
+
/**
|
23
|
+
* Состояние открытия содержимого компонента.
|
24
|
+
*/
|
25
|
+
open: boolean;
|
26
|
+
/**
|
27
|
+
* Размер элементов {@link TuiAccordionItemComponent}.
|
28
|
+
*/
|
29
|
+
size: TuiSizeS;
|
30
|
+
/**
|
31
|
+
* Состояние отключения кнопок.
|
32
|
+
*/
|
33
|
+
readonly disabledButtons: import("@angular/core").InputSignal<boolean>;
|
34
|
+
/**
|
35
|
+
* Дочерний элемент контента.
|
36
|
+
*/
|
37
|
+
protected readonly content?: ScAccordionContentDirective;
|
38
|
+
/**
|
39
|
+
* Ссылка на шаблон превью-просмотра в разметке.
|
40
|
+
*/
|
41
|
+
readonly accordion?: TuiAccordionItem;
|
42
|
+
/**
|
43
|
+
* Событие нажатия на кнопку добавления.
|
44
|
+
*/
|
45
|
+
addButtonClick: EventEmitter<void>;
|
46
|
+
/**
|
47
|
+
* Событие нажатия на кнопку удаления.
|
48
|
+
*/
|
49
|
+
deleteButtonClick: EventEmitter<void>;
|
50
|
+
/**
|
51
|
+
* Закрывает акордион.
|
52
|
+
*/
|
53
|
+
close(): void;
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScAccordionComponent, never>;
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScAccordionComponent, "sc-accordion", never, { "showAddButton": { "alias": "showAddButton"; "required": false; }; "showDeleteButton": { "alias": "showDeleteButton"; "required": false; }; "showArrow": { "alias": "showArrow"; "required": false; }; "open": { "alias": "open"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabledButtons": { "alias": "disabledButtons"; "required": false; "isSignal": true; }; }, { "addButtonClick": "addButtonClick"; "deleteButtonClick": "deleteButtonClick"; }, ["content"], ["*"], false, never>;
|
56
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./sc-accordion.component";
|
3
|
+
import * as i2 from "./sc-accordion-content.directive";
|
4
|
+
import * as i3 from "@angular/common";
|
5
|
+
import * as i4 from "@taiga-ui/polymorpheus";
|
6
|
+
import * as i5 from "@taiga-ui/core";
|
7
|
+
import * as i6 from "@taiga-ui/kit";
|
8
|
+
/**
|
9
|
+
* Модуль для отображение контента разделами, с возможностью скрывать и отображать содержимое.
|
10
|
+
*/
|
11
|
+
export declare class ScAccordionModule {
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScAccordionModule, never>;
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScAccordionModule, [typeof i1.ScAccordionComponent, typeof i2.ScAccordionContentDirective], [typeof i3.CommonModule, typeof i4.PolymorpheusTemplate, typeof i4.PolymorpheusOutlet, typeof i5.TuiButton, typeof i6.TuiAccordionItem, typeof i6.TuiAccordionDirective, typeof i6.TuiAccordionItemContent, typeof i6.TuiAccordionItemEagerContent, typeof i6.TuiElasticContainer], [typeof i1.ScAccordionComponent, typeof i2.ScAccordionContentDirective]>;
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScAccordionModule>;
|
15
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* Перечисление типов аутентификации.
|
3
|
+
*/
|
4
|
+
export declare enum AuthMethod {
|
5
|
+
/**
|
6
|
+
* Аутентификация по номеру телефона и коду подтверждения.
|
7
|
+
*/
|
8
|
+
byPhone = "by_phone",
|
9
|
+
/**
|
10
|
+
* Аутентификация по логину и паролю.
|
11
|
+
*/
|
12
|
+
byEmail = "by_email"
|
13
|
+
}
|
package/auth/index.d.ts
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
export * from './sc-simple-sign-up-form/sc-simple-sign-up-form.component';
|
2
|
+
export * from './sc-sign-in-form/sc-sign-in-form.component';
|
3
|
+
export * from './sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component';
|
4
|
+
export * from './sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component';
|
5
|
+
export * from './sign-up-form/sc-sign-up-form.component';
|
6
|
+
export * from './enums/auth-method';
|
7
|
+
export * from './interfaces';
|
8
|
+
export * from './sc-auth.module';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* Данные об ошибках валидации API запросов.
|
3
|
+
*/
|
4
|
+
export interface ApiErrorResponse {
|
5
|
+
/**
|
6
|
+
* Обобщённое сообщение об ошибке.
|
7
|
+
*/
|
8
|
+
message: string;
|
9
|
+
/**
|
10
|
+
* Подробное описание каждой ошибки. Содержит список полей с детальным описанием ошибок валидации для каждого поля.
|
11
|
+
*/
|
12
|
+
errors?: Record<string, string[]>;
|
13
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
/**
|
3
|
+
* Модель данных полей формы банковского аккаунта.
|
4
|
+
*/
|
5
|
+
export type ScBankAccountFormGroup = FormGroup<{
|
6
|
+
bankName: FormControl<string | null>;
|
7
|
+
bic: FormControl<string | null>;
|
8
|
+
accountNumber: FormControl<string | null>;
|
9
|
+
correspondentAccount: FormControl<string | null>;
|
10
|
+
currencyId: FormControl<number | null>;
|
11
|
+
}>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
/**
|
3
|
+
* Модель данных полей формы контактного лица.
|
4
|
+
*/
|
5
|
+
export type ScContactFormGroup = FormGroup<{
|
6
|
+
name: FormControl<string | null>;
|
7
|
+
phone: FormControl<string | null>;
|
8
|
+
email: FormControl<string | null>;
|
9
|
+
position: FormControl<string | null>;
|
10
|
+
}>;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./sc-sign-in-form/sc-sign-in-form.component";
|
3
|
+
import * as i2 from "./sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component";
|
4
|
+
import * as i3 from "./sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component";
|
5
|
+
import * as i4 from "./sign-up-form/sc-sign-up-form.component";
|
6
|
+
import * as i5 from "./sc-simple-sign-up-form/sc-simple-sign-up-form.component";
|
7
|
+
import * as i6 from "@angular/common";
|
8
|
+
import * as i7 from "@angular/forms";
|
9
|
+
import * as i8 from "@taiga-ui/legacy";
|
10
|
+
import * as i9 from "@taiga-ui/core";
|
11
|
+
import * as i10 from "@taiga-ui/kit";
|
12
|
+
import * as i11 from "@taiga-ui/cdk";
|
13
|
+
import * as i12 from "@maskito/angular";
|
14
|
+
import * as i13 from "../verification/sc-verification.module";
|
15
|
+
import * as i14 from "../form-fields/form-fields.module";
|
16
|
+
import * as i15 from "@taiga-ui/core/components/data-list";
|
17
|
+
import * as i16 from "../contragents/sc-contragents.module";
|
18
|
+
import * as i17 from "../contacts/sc-contacts.module";
|
19
|
+
/**
|
20
|
+
* Модуль аутентификации.
|
21
|
+
*/
|
22
|
+
export declare class ScAuthModule {
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScAuthModule, never>;
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScAuthModule, [typeof i1.ScSignInFormComponent, typeof i2.ScSignInFormByPhoneComponent, typeof i3.ScSignInFormByEmailComponent, typeof i4.ScSignUpFormComponent, typeof i5.ScSimpleSignUpFormComponent], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i8.TuiInputPasswordModule, typeof i8.TuiInputModule, typeof i8.TuiTextfieldControllerModule, typeof i9.TuiLink, typeof i9.TuiButton, typeof i9.TuiLabel, typeof i10.TuiFieldErrorPipe, typeof i9.TuiError, typeof i11.TuiLet, typeof i9.TuiLoader, typeof i8.TuiInputPhoneModule, typeof i12.MaskitoDirective, typeof i13.ScVerificationModule, typeof i14.ScFormFieldsModule, typeof i9.TuiDataListComponent, typeof i9.TuiDataListDirective, typeof i9.TuiOption, typeof i9.TuiOptionNew, typeof i9.TuiOptionWithValue, typeof i9.TuiOptGroup, typeof i10.TuiCheckbox, typeof i10.TuiElasticContainer, typeof i10.TuiDataListWrapperComponent, typeof i10.TuiDataListGroupWrapperComponent, typeof i15.TuiDataListDirective, typeof i8.TuiSelectModule, typeof i16.ScContragentsModule, typeof i17.ScContactsModule, typeof i10.TuiStepperComponent, typeof i10.TuiStep, typeof i11.TuiRepeatTimes, typeof i10.TuiButtonLoading], [typeof i1.ScSignInFormComponent, typeof i2.ScSignInFormByPhoneComponent, typeof i3.ScSignInFormByEmailComponent, typeof i4.ScSignUpFormComponent, typeof i5.ScSimpleSignUpFormComponent]>;
|
25
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScAuthModule>;
|
26
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { FormGroup } from '@angular/forms';
|
3
|
+
import { ScAuthService } from '@snabcentr/client-core';
|
4
|
+
import { Observable, Subject } from 'rxjs';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* Компонент аутентификации по адресу электронной почты и паролю.
|
8
|
+
*/
|
9
|
+
export declare class ScSignInFormByEmailComponent {
|
10
|
+
private readonly authService;
|
11
|
+
/**
|
12
|
+
* Группа полей ввода для формы «Вход на сайт».
|
13
|
+
*/
|
14
|
+
readonly formByEmail: FormGroup;
|
15
|
+
/**
|
16
|
+
* {@link Subject} события отправки формы.
|
17
|
+
*/
|
18
|
+
readonly onSubmit: Subject<void>;
|
19
|
+
/**
|
20
|
+
* {@link Observable} запроса данных аутентификации.
|
21
|
+
*/
|
22
|
+
private readonly emailRequest$;
|
23
|
+
/**
|
24
|
+
* {@link Observable} изменения состояния загрузки данных аутентификации по email.
|
25
|
+
*/
|
26
|
+
readonly loadingEmailAuth$: Observable<boolean>;
|
27
|
+
/**
|
28
|
+
* Сигнал нажатия на кнопку "Забыли пароль".
|
29
|
+
*/
|
30
|
+
readonly forgotPassword: EventEmitter<void>;
|
31
|
+
/**
|
32
|
+
* Инициализирует экземпляр класса {@link ScSignInFormByEmailComponent}.
|
33
|
+
*
|
34
|
+
* @param authService Сервис аутентификации.
|
35
|
+
*/
|
36
|
+
constructor(authService: ScAuthService);
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSignInFormByEmailComponent, never>;
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignInFormByEmailComponent, "sc-sign-in-form-by-email", never, {}, { "forgotPassword": "forgotPassword"; }, never, never, false, never>;
|
39
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
import { ScAuthService } from '@snabcentr/client-core';
|
3
|
+
import { Observable, Subject } from 'rxjs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* Компонент аутентификации по номеру телефона и коду подтверждения.
|
7
|
+
*/
|
8
|
+
export declare class ScSignInFormByPhoneComponent {
|
9
|
+
private readonly authService;
|
10
|
+
/**
|
11
|
+
* Наличие кода подтверждения у пользователя.
|
12
|
+
*/
|
13
|
+
haveCode: boolean;
|
14
|
+
/**
|
15
|
+
* Группа полей ввода для формы «Вход на сайт».
|
16
|
+
*/
|
17
|
+
readonly form: FormGroup<{
|
18
|
+
phone: FormControl<string | null>;
|
19
|
+
verificationCode: FormControl<string | null>;
|
20
|
+
}>;
|
21
|
+
/**
|
22
|
+
* {@link Subject} события отправки формы.
|
23
|
+
*/
|
24
|
+
readonly onSubmit: Subject<void>;
|
25
|
+
/**
|
26
|
+
* {@link Observable} запроса данных аутентификации.
|
27
|
+
*/
|
28
|
+
private readonly request$;
|
29
|
+
/**
|
30
|
+
* {@link Observable} изменения состояния загрузки данных аутентификации по номеру телефона.
|
31
|
+
*/
|
32
|
+
readonly loading$: Observable<boolean>;
|
33
|
+
/**
|
34
|
+
* Инициализирует экземпляр класса {@link ScSignInFormByPhoneComponent}.
|
35
|
+
*
|
36
|
+
* @param authService Сервис аутентификации.
|
37
|
+
*/
|
38
|
+
constructor(authService: ScAuthService);
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSignInFormByPhoneComponent, never>;
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignInFormByPhoneComponent, "sc-sign-in-form-by-phone", never, {}, {}, never, never, false, never>;
|
41
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
2
|
+
import { ScAuthService, ScUserMetrikaService } from '@snabcentr/client-core';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import { AuthMethod } from '../enums/auth-method';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* Компонент аутентификации пользователя.
|
8
|
+
*/
|
9
|
+
export declare class ScSignInFormComponent implements OnInit {
|
10
|
+
private readonly authService;
|
11
|
+
private readonly userMetrikaService;
|
12
|
+
/**
|
13
|
+
* Выбранный способ аутентификации.
|
14
|
+
*/
|
15
|
+
authMethod: AuthMethod;
|
16
|
+
/**
|
17
|
+
* Перечисление способов аутентификации.
|
18
|
+
*/
|
19
|
+
method: typeof AuthMethod;
|
20
|
+
/**
|
21
|
+
* Сигнал нажатия на кнопку "Забыли пароль".
|
22
|
+
*/
|
23
|
+
readonly forgotPassword: EventEmitter<void>;
|
24
|
+
/**
|
25
|
+
* Сигнал нажатия на кнопку "Зарегистрироваться".
|
26
|
+
*/
|
27
|
+
readonly signUp: EventEmitter<void>;
|
28
|
+
/**
|
29
|
+
* Сигнал события аутентификации.
|
30
|
+
*/
|
31
|
+
readonly successAuth: Observable<boolean>;
|
32
|
+
/**
|
33
|
+
* Инициализирует экземпляр класса {@link ScSignInFormComponent}.
|
34
|
+
*
|
35
|
+
* @param authService Сервис аутентификации.
|
36
|
+
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
37
|
+
*/
|
38
|
+
constructor(authService: ScAuthService, userMetrikaService: ScUserMetrikaService);
|
39
|
+
/** @inheritDoc */
|
40
|
+
ngOnInit(): void;
|
41
|
+
/**
|
42
|
+
* Осуществляет переключение способов аутентификации.
|
43
|
+
*
|
44
|
+
* @param authMethod Выбранный способ аутентификации.
|
45
|
+
*/
|
46
|
+
switchAuth(authMethod: AuthMethod): void;
|
47
|
+
/**
|
48
|
+
* Обрабатывает нажатие на кнопку "Забыли пароль" и выдает сигнал об этом.
|
49
|
+
*/
|
50
|
+
onForgotPassword(): void;
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSignInFormComponent, never>;
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignInFormComponent, "sc-sign-in-form", never, { "authMethod": { "alias": "authMethod"; "required": false; }; }, { "forgotPassword": "forgotPassword"; "signUp": "signUp"; "successAuth": "successAuth"; }, never, never, false, never>;
|
53
|
+
}
|
@@ -0,0 +1,106 @@
|
|
1
|
+
import { OnInit, OutputEmitterRef, OutputRef, Signal } from '@angular/core';
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
3
|
+
import { ScIOrgContact, ScISuggestionType, ScUser } from '@snabcentr/client-core';
|
4
|
+
import { Subject } from 'rxjs';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* Компонент упрощенной регистрации.
|
8
|
+
*/
|
9
|
+
export declare class ScSimpleSignUpFormComponent implements OnInit {
|
10
|
+
/**
|
11
|
+
* Сервис данных о пользователе.
|
12
|
+
*/
|
13
|
+
private readonly userService;
|
14
|
+
/**
|
15
|
+
* Сервис аутентификации.
|
16
|
+
*/
|
17
|
+
private readonly authService;
|
18
|
+
/**
|
19
|
+
* Сервис конвертации данных.
|
20
|
+
*/
|
21
|
+
private readonly convertersService;
|
22
|
+
/**
|
23
|
+
* Сервис для сбора метрик о действиях пользователей.
|
24
|
+
*/
|
25
|
+
private readonly userMetrikaService;
|
26
|
+
/**
|
27
|
+
* Группа полей ввода для формы регистрации.
|
28
|
+
*/
|
29
|
+
protected readonly form: FormGroup<{
|
30
|
+
name: FormControl<string | null>;
|
31
|
+
email: FormControl<string | null>;
|
32
|
+
phone: FormControl<string | null>;
|
33
|
+
verificationCode: FormControl<string | null>;
|
34
|
+
getNews: FormControl<boolean | null>;
|
35
|
+
acceptRules: FormControl<boolean | null>;
|
36
|
+
contragent: FormGroup<any>;
|
37
|
+
}>;
|
38
|
+
/**
|
39
|
+
* Признак, следует ли отображать функционал кода подтверждения.
|
40
|
+
*/
|
41
|
+
protected readonly showCodeFields: import("@angular/core").WritableSignal<boolean>;
|
42
|
+
/**
|
43
|
+
* Признак, занят ли телефон (существует ли пользователь с таким телефоном).
|
44
|
+
*/
|
45
|
+
protected readonly isPhoneBusy: import("@angular/core").WritableSignal<boolean | null>;
|
46
|
+
/**
|
47
|
+
* Признак, нужно ли отображать дополнительные поля для регистрации.
|
48
|
+
*/
|
49
|
+
protected readonly showAdditionalFields: import("@angular/core").WritableSignal<boolean>;
|
50
|
+
/**
|
51
|
+
* Список контактов для отправки push-уведомлений.
|
52
|
+
*/
|
53
|
+
protected readonly pushContacts: Signal<ScIOrgContact[] | undefined>;
|
54
|
+
/**
|
55
|
+
* Перечисление типов подсказок.
|
56
|
+
*/
|
57
|
+
protected readonly suggestionType: typeof ScISuggestionType;
|
58
|
+
/**
|
59
|
+
* {@link Subject} события отправки формы.
|
60
|
+
*/
|
61
|
+
protected readonly onSubmit$: Subject<void>;
|
62
|
+
/**
|
63
|
+
* {@link Observable} запроса данных регистрации или входа.
|
64
|
+
*/
|
65
|
+
private readonly request$;
|
66
|
+
/**
|
67
|
+
* Сигнал изменения состояния загрузки данных.
|
68
|
+
*/
|
69
|
+
protected readonly loading: Signal<boolean>;
|
70
|
+
/**
|
71
|
+
* Сигнал события аутентификации после успешной регистрации.
|
72
|
+
*/
|
73
|
+
readonly successAuth: OutputRef<ScUser>;
|
74
|
+
/**
|
75
|
+
* Сигнал нажатия на "Договор оферты".
|
76
|
+
*/
|
77
|
+
readonly clickOffer: OutputEmitterRef<void>;
|
78
|
+
/** @inheritDoc */
|
79
|
+
ngOnInit(): void;
|
80
|
+
/**
|
81
|
+
* Обрабатывает событие изменения занятости телефона.
|
82
|
+
*
|
83
|
+
* @param isBusy Признак занятости телефона.
|
84
|
+
*/
|
85
|
+
protected onIsBusyChange(isBusy: boolean | null): void;
|
86
|
+
/**
|
87
|
+
* Обрабатывает событие изменения подтверждения телефона.
|
88
|
+
*
|
89
|
+
* @param isConfirmed Признак подтверждения телефона.
|
90
|
+
*/
|
91
|
+
protected onIsConfirmedChange(isConfirmed: boolean | null): void;
|
92
|
+
/**
|
93
|
+
* Обрабатывает ошибки запросов.
|
94
|
+
*
|
95
|
+
* @param error Объект ошибки
|
96
|
+
*/
|
97
|
+
private handleError;
|
98
|
+
/**
|
99
|
+
* Создаёт базового контрагента для клиента физического лица.
|
100
|
+
*
|
101
|
+
* @param formValue Значение формы при регистрации
|
102
|
+
*/
|
103
|
+
private createBaseContragent;
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSimpleSignUpFormComponent, never>;
|
105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSimpleSignUpFormComponent, "sc-simple-sign-up-form", never, {}, { "successAuth": "successAuth"; "clickOffer": "clickOffer"; }, never, never, false, never>;
|
106
|
+
}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
import { OnInit, OutputEmitterRef, OutputRef } from '@angular/core';
|
2
|
+
import { FormArray, FormControl, FormGroup } from '@angular/forms';
|
3
|
+
import { ScAuthService, ScConvertersService, ScIReferencesTypes, ScISuggestionType, ScOpfList, ScReferencesService, ScSuggestion, ScUser, ScUserMetrikaService, ScUserService } from '@snabcentr/client-core';
|
4
|
+
import { Observable, Subject } from 'rxjs';
|
5
|
+
import { ScContactFormGroup } from '../interfaces';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
/**
|
8
|
+
* Компонент формы регистрация пользователя.
|
9
|
+
*/
|
10
|
+
export declare class ScSignUpFormComponent implements OnInit {
|
11
|
+
private readonly userService;
|
12
|
+
private readonly authService;
|
13
|
+
private readonly referencesService;
|
14
|
+
private readonly convertersService;
|
15
|
+
private readonly userMetrikaService;
|
16
|
+
/**
|
17
|
+
* Поле ввода организационно-правовых форм.
|
18
|
+
*/
|
19
|
+
opfControl: FormControl<keyof typeof ScOpfList | null>;
|
20
|
+
/**
|
21
|
+
* Группа полей ввода для формы регистрации.
|
22
|
+
*/
|
23
|
+
form: FormGroup<{
|
24
|
+
name: FormControl<string | null>;
|
25
|
+
email: FormControl<string | null>;
|
26
|
+
phone: FormControl<string | null>;
|
27
|
+
verificationCode: FormControl<string | null>;
|
28
|
+
cityId: FormControl<number | null>;
|
29
|
+
password: FormControl<string | null>;
|
30
|
+
passwordConfirm: FormControl<string | null>;
|
31
|
+
getNews: FormControl<boolean | null>;
|
32
|
+
acceptRules: FormControl<boolean | null>;
|
33
|
+
contragent: FormGroup<any>;
|
34
|
+
}>;
|
35
|
+
/**
|
36
|
+
* Перечисление типов подсказок.
|
37
|
+
*/
|
38
|
+
readonly suggestionType: typeof ScISuggestionType;
|
39
|
+
/**
|
40
|
+
* Перечисление организационно-правовых форм.
|
41
|
+
*/
|
42
|
+
readonly opfListEnum: typeof ScOpfList;
|
43
|
+
/**
|
44
|
+
* {@link Subject} события отправки формы.
|
45
|
+
*/
|
46
|
+
readonly onSubmit: Subject<void>;
|
47
|
+
/**
|
48
|
+
* {@link Observable} запроса данных регистрации.
|
49
|
+
*/
|
50
|
+
private readonly request$;
|
51
|
+
/**
|
52
|
+
* Индекс этапа.
|
53
|
+
*/
|
54
|
+
stepIndex: number;
|
55
|
+
/**
|
56
|
+
* {@link Observable} изменения состояния загрузки данных.
|
57
|
+
*/
|
58
|
+
readonly loading$: Observable<boolean>;
|
59
|
+
/**
|
60
|
+
* Сигнал события аутентификации после успешной регистрации.
|
61
|
+
*/
|
62
|
+
readonly successAuth: OutputRef<ScUser>;
|
63
|
+
/**
|
64
|
+
* Сигнал нажатия на "Договор оферты".
|
65
|
+
*/
|
66
|
+
readonly clickOfferEvent: OutputEmitterRef<void>;
|
67
|
+
/**
|
68
|
+
* Список этапов регистрации.
|
69
|
+
*/
|
70
|
+
readonly steps: string[];
|
71
|
+
/**
|
72
|
+
* Инициализирует экземпляр класса {@link ScSignUpFormComponent}.
|
73
|
+
*
|
74
|
+
* @param userService Сервис данных о пользователе.
|
75
|
+
* @param authService Сервис аутентификации.
|
76
|
+
* @param referencesService Сервис справочников.
|
77
|
+
* @param convertersService Сервис конвертации данных.
|
78
|
+
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
79
|
+
*/
|
80
|
+
constructor(userService: ScUserService, authService: ScAuthService, referencesService: ScReferencesService, convertersService: ScConvertersService, userMetrikaService: ScUserMetrikaService);
|
81
|
+
/**
|
82
|
+
* Список групп полей банковских реквизитов.
|
83
|
+
*/
|
84
|
+
get bankAccounts(): FormArray<ReturnType<ScSignUpFormComponent['createBankAccountGroup']>>;
|
85
|
+
/**
|
86
|
+
* Список групп полей контактных лиц.
|
87
|
+
*/
|
88
|
+
get contacts(): FormArray<ReturnType<ScSignUpFormComponent['createContactGroup']>>;
|
89
|
+
/** @inheritDoc */
|
90
|
+
ngOnInit(): void;
|
91
|
+
/**
|
92
|
+
* Проверяет, может ли пользователь перейти к следующему шагу регистрации.
|
93
|
+
* При проверке каждого этапа регистрации последовательно проверяется корректность заполнения данных на предыдущих этапах.
|
94
|
+
*
|
95
|
+
* @param index Индекс этапа для которого нужно проверить валидность.
|
96
|
+
* @returns Выводит значение `boolean` на основании {@link index}.
|
97
|
+
*/
|
98
|
+
canNextStep(index: number): boolean;
|
99
|
+
/**
|
100
|
+
* Выполняет навигацию по форме регистрации.
|
101
|
+
*
|
102
|
+
* @param delta Значение, на которое необходимо выполнить навигацию.
|
103
|
+
*/
|
104
|
+
navigate(delta: number): void;
|
105
|
+
/**
|
106
|
+
* Создаёт базового контрагента для клиента физического лица.
|
107
|
+
*
|
108
|
+
* @param formValue Значение формы при регистрации
|
109
|
+
*/
|
110
|
+
private createBaseContragent;
|
111
|
+
/**
|
112
|
+
* Возвращает {@link Observable} список организационно-правовых форм.
|
113
|
+
*/
|
114
|
+
getOpf$(): Observable<Array<ScIReferencesTypes<ScOpfList, typeof ScOpfList>>>;
|
115
|
+
/**
|
116
|
+
* Возвращает {@link Observable} организационно-правовой формы, соответствующий символьному обозначению (slug) на входе.
|
117
|
+
*
|
118
|
+
* @param slug Символьное обозначение (slug).
|
119
|
+
*/
|
120
|
+
getOpfBySlug$(slug: keyof typeof ScOpfList): Observable<ScIReferencesTypes<ScOpfList, typeof ScOpfList> | undefined>;
|
121
|
+
/**
|
122
|
+
* Создаёт группу полей банковских реквизитов.
|
123
|
+
*/
|
124
|
+
private createBankAccountGroup;
|
125
|
+
/**
|
126
|
+
* Добавляет Банковские реквизиты.
|
127
|
+
*/
|
128
|
+
addBankAccountGroup(): void;
|
129
|
+
/**
|
130
|
+
* Удаляет банковские реквизиты.
|
131
|
+
*
|
132
|
+
* @param index Индекс банковских реквизитов.
|
133
|
+
*/
|
134
|
+
removeBankAccountGroup(index: number): void;
|
135
|
+
/**
|
136
|
+
* Создаёт группу полей контактного лица.
|
137
|
+
*/
|
138
|
+
createContactGroup(): ScContactFormGroup;
|
139
|
+
/**
|
140
|
+
* Обработчик выбора адреса доставки.
|
141
|
+
*
|
142
|
+
* @param suggestion Объект подсказки ареса.
|
143
|
+
*/
|
144
|
+
onSelectedOrganization(suggestion: ScSuggestion): void;
|
145
|
+
/**
|
146
|
+
* Добавляет контактное лицо контрагента.
|
147
|
+
*/
|
148
|
+
addContactGroup(): void;
|
149
|
+
/**
|
150
|
+
* Удаляет контактное лицо контрагента.
|
151
|
+
*
|
152
|
+
* @param index Индекс контактного лица.
|
153
|
+
*/
|
154
|
+
removeContactGroup(index: number): void;
|
155
|
+
/**
|
156
|
+
* Обрабатывает событие нажатия на "Договор оферты".
|
157
|
+
*/
|
158
|
+
onClickOffer(): void;
|
159
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSignUpFormComponent, never>;
|
160
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignUpFormComponent, "sc-sign-up-form", never, {}, { "successAuth": "successAuth"; "clickOfferEvent": "clickOfferEvent"; }, never, never, false, never>;
|
161
|
+
}
|