@snabcentr/client-ui 1.19.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/accordion/sc-accordion-content.directive.d.ts +2 -2
- package/accordion/sc-accordion.component.d.ts +4 -4
- package/accordion/sc-accordion.module.d.ts +2 -2
- package/auth/index.d.ts +2 -1
- package/auth/interfaces/{ApiErrorResponse.d.ts → api-error-response.d.ts} +1 -3
- 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 +14 -8
- package/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.d.ts +1 -1
- package/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.d.ts +1 -1
- package/auth/sc-sign-in-form/sc-sign-in-form.component.d.ts +1 -1
- package/auth/sign-up-form/sc-sign-up-form.component.d.ts +153 -0
- package/banner/sc-banner.component.d.ts +9 -5
- package/banner/sc-banner.module.d.ts +5 -4
- 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/cart-item-mobile/sc-cart-item-mobile.component.d.ts +16 -16
- package/cart/sc-cart.module.d.ts +3 -3
- package/catalog/categories-list/sc-categories-list.component.d.ts +9 -3
- package/catalog/category-card/sc-category-card.component.d.ts +1 -1
- package/catalog/input-quantity/sc-input-quantity.component.d.ts +6 -14
- package/catalog/price-card/sc-price-card.component.d.ts +11 -105
- package/catalog/price-history/sc-price-history.component.d.ts +11 -5
- package/catalog/price-list-pagination/sc-price-list-pagination.component.d.ts +10 -5
- package/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.d.ts +1 -1
- package/catalog/sc-catalog.module.d.ts +5 -4
- package/catalog/sc-favorite-btn/sc-favorite-btn.component.d.ts +1 -1
- package/contacts/add-contact-dialog/sc-add-contact-dialog.component.d.ts +11 -6
- package/contacts/contacts-accordion/sc-contacts-accordion.component.d.ts +1 -1
- package/contacts/new-contact-form/sc-new-contact-form.component.d.ts +1 -1
- package/contacts/sc-contacts.module.d.ts +6 -1
- package/contragents/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.d.ts +3 -3
- package/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.d.ts +23 -15
- package/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.d.ts +1 -1
- package/contragents/contragents-accordion/sc-contragents-accordion.component.d.ts +1 -1
- package/contragents/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.d.ts +1 -1
- package/contragents/new-contragent-form/sc-new-contragent-form.component.d.ts +31 -16
- package/contragents/sc-contragents.module.d.ts +6 -4
- package/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.d.ts +83 -8
- package/delivery-address/delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component.d.ts +1 -1
- package/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.d.ts +1 -1
- package/delivery-address/sc-delivery-address.module.d.ts +4 -2
- package/directives/abstract-price-card/abstract-sc-price-card.directive.d.ts +107 -0
- package/directives/index.d.ts +6 -2
- 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/tel-link/sc-tel-link.directive.d.ts +27 -0
- package/directives/tel-link/sc-tel-link.module.d.ts +11 -0
- package/directives/terminal-link/sc-terminal-link.directive.d.ts +34 -0
- package/esm2022/accordion/sc-accordion-content.directive.mjs +17 -0
- package/esm2022/accordion/sc-accordion.component.mjs +88 -0
- package/esm2022/accordion/sc-accordion.module.mjs +26 -0
- package/esm2022/auth/index.mjs +8 -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 +98 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.mjs +72 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +70 -0
- package/{esm2020 → esm2022}/auth/sc-sign-in-form/sc-sign-in-form.component.mjs +6 -6
- package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +321 -0
- package/esm2022/banner/sc-banner.component.mjs +234 -0
- package/esm2022/banner/sc-banner.module.mjs +29 -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/cart-item-mobile/sc-cart-item-mobile.component.mjs +121 -0
- package/esm2022/cart/sc-cart.module.mjs +54 -0
- package/esm2022/catalog/categories-list/sc-categories-list.component.mjs +92 -0
- package/esm2022/catalog/category-card/sc-category-card.component.mjs +120 -0
- package/esm2022/catalog/input-quantity/sc-input-quantity.component.mjs +141 -0
- package/esm2022/catalog/price-card/sc-price-card.component.mjs +64 -0
- package/esm2022/catalog/price-history/sc-price-history.component.mjs +126 -0
- package/esm2022/catalog/price-list-pagination/sc-price-list-pagination.component.mjs +49 -0
- package/{esm2020 → esm2022}/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.mjs +6 -6
- package/esm2022/catalog/sc-catalog.module.mjs +120 -0
- package/esm2022/catalog/sc-favorite-btn/sc-favorite-btn.component.mjs +42 -0
- package/esm2022/contacts/add-contact-dialog/sc-add-contact-dialog.component.mjs +89 -0
- package/esm2022/contacts/contacts-accordion/sc-contacts-accordion.component.mjs +38 -0
- package/esm2022/contacts/new-contact-form/sc-new-contact-form.component.mjs +30 -0
- package/esm2022/contacts/sc-contacts.module.mjs +88 -0
- package/esm2022/contragents/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.mjs +80 -0
- package/esm2022/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.mjs +262 -0
- package/esm2022/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +75 -0
- package/{esm2020 → esm2022}/contragents/contragents-accordion/sc-contragents-accordion.component.mjs +6 -6
- package/esm2022/contragents/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.mjs +64 -0
- package/esm2022/contragents/new-contragent-form/sc-new-contragent-form.component.mjs +220 -0
- package/esm2022/contragents/sc-contragents.module.mjs +110 -0
- package/esm2022/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.mjs +230 -0
- package/{esm2020 → esm2022}/delivery-address/delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component.mjs +6 -6
- package/{esm2020 → esm2022}/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.mjs +6 -6
- package/esm2022/delivery-address/sc-delivery-address.module.mjs +84 -0
- package/esm2022/directives/abstract-price-card/abstract-sc-price-card.directive.mjs +131 -0
- package/esm2022/directives/index.mjs +7 -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/tel-link/sc-tel-link.directive.mjs +58 -0
- package/esm2022/directives/tel-link/sc-tel-link.module.mjs +20 -0
- package/esm2022/directives/terminal-link/sc-terminal-link.directive.mjs +69 -0
- package/esm2022/files/directives/tree-top.directive.mjs +63 -0
- package/{esm2020 → esm2022}/files/directives/tree.directive.mjs +5 -5
- package/esm2022/files/file-tree-item/file-tree-item.component.mjs +18 -0
- package/esm2022/files/files-and-documents/files-and-documents.component.mjs +60 -0
- package/esm2022/files/files-and-documents.module.mjs +27 -0
- package/esm2022/files/services/tree-icon.service.mjs +49 -0
- package/{esm2020 → esm2022}/files/services/tree-loader.service.mjs +5 -5
- package/esm2022/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs +128 -0
- package/esm2022/form-fields/form-fields.module.mjs +69 -0
- package/esm2022/form-fields/suggestion-field/sc-suggestion-field.component.mjs +134 -0
- package/{esm2020 → esm2022}/helpers/sc-px-converter.mjs +4 -4
- package/esm2022/helpers/sc-units-helper.mjs +45 -0
- package/{esm2020 → esm2022}/news/news-card/sc-news-card.component.mjs +4 -4
- package/{esm2020 → esm2022}/news/news-card-skeleton/sc-news-card-skeleton.component.mjs +4 -4
- package/{esm2020 → esm2022}/news/sc-news.module.mjs +5 -5
- package/esm2022/order/order-item-mobile/order-item-mobile.component.mjs +80 -0
- package/esm2022/order/sc-order.module.mjs +29 -0
- package/esm2022/order/sc-payment-status/sc-payment-status.component.mjs +35 -0
- package/esm2022/pipes/index.mjs +2 -0
- package/esm2022/pipes/sc-formatted-phone.mjs +34 -0
- package/esm2022/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.mjs +182 -0
- package/esm2022/profile/sc-profile.module.mjs +77 -0
- package/{esm2020 → esm2022}/providers/index.mjs +1 -2
- package/esm2022/providers/scUserProviders.mjs +27 -0
- package/esm2022/public-api.mjs +30 -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/ask-to-sample-form/sc-ask-to-sample-form.component.mjs +37 -0
- package/esm2022/samples/index.mjs +5 -0
- package/esm2022/samples/interfaces/sc-i-preview-sample.mjs +2 -0
- package/esm2022/samples/preview-sample/sc-preview-sample.component.mjs +83 -0
- package/esm2022/samples/sc-sample.module.mjs +59 -0
- package/{esm2020 → esm2022}/share-button/sc-share-button.component.mjs +5 -5
- package/esm2022/share-button/sc-share-button.module.mjs +22 -0
- package/esm2022/user/index.mjs +6 -0
- package/esm2022/user/reset-user-password/sc-reset-user-password.component.mjs +71 -0
- package/esm2022/user/sc-user.module.mjs +89 -0
- package/esm2022/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +117 -0
- package/esm2022/user/user-managers/sc-user-managers.component.mjs +41 -0
- package/esm2022/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +102 -0
- package/{esm2020 → esm2022}/validators/index.mjs +2 -2
- package/esm2022/validators/sc-password-confirm-matching-validator.mjs +17 -0
- package/esm2022/validators/stepValidator.mjs +18 -0
- package/esm2022/verification/sc-verification.module.mjs +68 -0
- package/esm2022/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +198 -0
- package/fesm2022/snabcentr-client-ui.mjs +5710 -0
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -0
- package/files/directives/tree-top.directive.d.ts +1 -1
- package/files/directives/tree.directive.d.ts +1 -1
- package/files/file-tree-item/file-tree-item.component.d.ts +3 -3
- package/files/files-and-documents/files-and-documents.component.d.ts +1 -1
- package/files/files-and-documents.module.d.ts +1 -1
- package/form-fields/addresses-selection-field/sc-addresses-selection-field.component.d.ts +17 -11
- package/form-fields/form-fields.module.d.ts +5 -3
- package/form-fields/suggestion-field/sc-suggestion-field.component.d.ts +10 -2
- package/helpers/sc-units-helper.d.ts +6 -6
- package/news/news-card/sc-news-card.component.d.ts +1 -1
- package/news/news-card-skeleton/sc-news-card-skeleton.component.d.ts +1 -1
- package/order/order-item-mobile/order-item-mobile.component.d.ts +9 -9
- package/order/sc-order.module.d.ts +4 -2
- package/order/sc-payment-status/sc-payment-status.component.d.ts +1 -1
- package/package.json +40 -45
- package/pipes/index.d.ts +1 -0
- package/pipes/sc-formatted-phone.d.ts +19 -0
- package/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.d.ts +3 -3
- package/profile/sc-profile.module.d.ts +6 -4
- package/providers/index.d.ts +0 -1
- package/providers/scUserProviders.d.ts +2 -3
- package/public-api.d.ts +4 -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/samples/ask-to-sample-form/sc-ask-to-sample-form.component.d.ts +18 -0
- package/samples/index.d.ts +4 -0
- package/samples/interfaces/sc-i-preview-sample.d.ts +47 -0
- package/samples/preview-sample/sc-preview-sample.component.d.ts +48 -0
- package/samples/sc-sample.module.d.ts +19 -0
- package/share-button/sc-share-button.component.d.ts +1 -1
- package/share-button/sc-share-button.module.d.ts +1 -1
- package/styles/taiga/taiga-tailwind-preset.js +121 -0
- package/styles/taiga/variables.less +17 -14
- package/styles/tailwind/tailwind.scss +252 -61
- package/user/index.d.ts +1 -0
- package/user/reset-user-password/sc-reset-user-password.component.d.ts +3 -3
- package/user/sc-user.module.d.ts +12 -8
- package/user/update-user-info-dialog/sc-update-user-info-dialog.component.d.ts +13 -9
- 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 +13 -8
- package/validators/index.d.ts +1 -1
- package/validators/{scPasswordConfirmMatchingValidator.d.ts → sc-password-confirm-matching-validator.d.ts} +1 -1
- package/verification/sc-verification.module.d.ts +5 -4
- package/verification/verification-phone-check-form/sc-verification-phone-check-form.component.d.ts +18 -18
- package/directives/carousel-item-hidden/sc-carousel-item-hidden.directive.d.ts +0 -24
- package/directives/carousel-item-hidden/sc-carousel-item-hidden.module.d.ts +0 -11
- package/esm2020/accordion/sc-accordion-content.directive.mjs +0 -17
- package/esm2020/accordion/sc-accordion.component.mjs +0 -88
- package/esm2020/accordion/sc-accordion.module.mjs +0 -25
- package/esm2020/auth/index.mjs +0 -7
- package/esm2020/auth/interfaces/ApiErrorResponse.mjs +0 -2
- package/esm2020/auth/sc-auth.module.mjs +0 -79
- package/esm2020/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.mjs +0 -64
- package/esm2020/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +0 -63
- package/esm2020/banner/sc-banner.component.mjs +0 -234
- package/esm2020/banner/sc-banner.module.mjs +0 -26
- package/esm2020/cart/cart-item-mobile/sc-cart-item-mobile.component.mjs +0 -120
- package/esm2020/cart/sc-cart.module.mjs +0 -65
- package/esm2020/catalog/categories-list/sc-categories-list.component.mjs +0 -84
- package/esm2020/catalog/category-card/sc-category-card.component.mjs +0 -120
- package/esm2020/catalog/input-quantity/sc-input-quantity.component.mjs +0 -163
- package/esm2020/catalog/price-card/sc-price-card.component.mjs +0 -175
- package/esm2020/catalog/price-history/sc-price-history.component.mjs +0 -114
- package/esm2020/catalog/price-list-pagination/sc-price-list-pagination.component.mjs +0 -37
- package/esm2020/catalog/sc-catalog.module.mjs +0 -128
- package/esm2020/catalog/sc-favorite-btn/sc-favorite-btn.component.mjs +0 -41
- package/esm2020/contacts/add-contact-dialog/sc-add-contact-dialog.component.mjs +0 -71
- package/esm2020/contacts/contacts-accordion/sc-contacts-accordion.component.mjs +0 -35
- package/esm2020/contacts/new-contact-form/sc-new-contact-form.component.mjs +0 -28
- package/esm2020/contacts/sc-contacts.module.mjs +0 -92
- package/esm2020/contragents/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.mjs +0 -71
- package/esm2020/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.mjs +0 -249
- package/esm2020/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +0 -75
- package/esm2020/contragents/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.mjs +0 -61
- package/esm2020/contragents/new-contragent-form/sc-new-contragent-form.component.mjs +0 -183
- package/esm2020/contragents/sc-contragents.module.mjs +0 -103
- package/esm2020/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.mjs +0 -79
- package/esm2020/delivery-address/sc-delivery-address.module.mjs +0 -77
- package/esm2020/directives/carousel-item-hidden/sc-carousel-item-hidden.directive.mjs +0 -40
- package/esm2020/directives/carousel-item-hidden/sc-carousel-item-hidden.module.mjs +0 -21
- package/esm2020/directives/index.mjs +0 -3
- package/esm2020/files/directives/tree-top.directive.mjs +0 -63
- package/esm2020/files/file-tree-item/file-tree-item.component.mjs +0 -18
- package/esm2020/files/files-and-documents/files-and-documents.component.mjs +0 -60
- package/esm2020/files/files-and-documents.module.mjs +0 -26
- package/esm2020/files/services/tree-icon.service.mjs +0 -48
- package/esm2020/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs +0 -122
- package/esm2020/form-fields/form-fields.module.mjs +0 -80
- package/esm2020/form-fields/suggestion-field/sc-suggestion-field.component.mjs +0 -116
- package/esm2020/helpers/sc-units-helper.mjs +0 -44
- package/esm2020/order/order-item-mobile/order-item-mobile.component.mjs +0 -79
- package/esm2020/order/sc-order.module.mjs +0 -25
- package/esm2020/order/sc-payment-status/sc-payment-status.component.mjs +0 -35
- package/esm2020/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.mjs +0 -177
- package/esm2020/profile/sc-profile.module.mjs +0 -80
- package/esm2020/providers/productsPagination.mjs +0 -99
- package/esm2020/providers/scUserProviders.mjs +0 -30
- package/esm2020/public-api.mjs +0 -26
- package/esm2020/share-button/sc-share-button.module.mjs +0 -22
- package/esm2020/user/index.mjs +0 -5
- package/esm2020/user/reset-user-password/sc-reset-user-password.component.mjs +0 -67
- package/esm2020/user/sc-user.module.mjs +0 -88
- package/esm2020/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +0 -105
- package/esm2020/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +0 -91
- package/esm2020/validators/scPasswordConfirmMatchingValidator.mjs +0 -17
- package/esm2020/validators/stepValidator.mjs +0 -18
- package/esm2020/verification/sc-verification.module.mjs +0 -73
- package/esm2020/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +0 -184
- package/fesm2015/snabcentr-client-ui.mjs +0 -4858
- package/fesm2015/snabcentr-client-ui.mjs.map +0 -1
- package/fesm2020/snabcentr-client-ui.mjs +0 -4778
- package/fesm2020/snabcentr-client-ui.mjs.map +0 -1
- package/providers/productsPagination.d.ts +0 -43
- /package/{esm2020 → esm2022}/accordion/index.mjs +0 -0
- /package/{esm2020 → esm2022}/auth/enums/auth-method.mjs +0 -0
- /package/{esm2020 → esm2022}/banner/index.mjs +0 -0
- /package/{esm2020 → esm2022}/cart/index.mjs +0 -0
- /package/{esm2020 → esm2022}/catalog/index.mjs +0 -0
- /package/{esm2020 → esm2022}/contacts/index.mjs +0 -0
- /package/{esm2020 → esm2022}/contragents/index.mjs +0 -0
- /package/{esm2020 → esm2022}/delivery-address/index.mjs +0 -0
- /package/{esm2020 → esm2022}/files/directives/index.mjs +0 -0
- /package/{esm2020 → esm2022}/files/index.mjs +0 -0
- /package/{esm2020 → esm2022}/files/interfaces/tree-node.mjs +0 -0
- /package/{esm2020 → esm2022}/files/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/form-fields/index.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/icons/index.mjs +0 -0
- /package/{esm2020 → esm2022}/icons/sc-client-ui-icons-name.mjs +0 -0
- /package/{esm2020 → esm2022}/loader/index.mjs +0 -0
- /package/{esm2020 → esm2022}/loader/sc-i-loader.mjs +0 -0
- /package/{esm2020 → esm2022}/masks/index.mjs +0 -0
- /package/{esm2020 → esm2022}/masks/sc-account-number-mask.mjs +0 -0
- /package/{esm2020 → esm2022}/masks/sc-bic-mask.mjs +0 -0
- /package/{esm2020 → esm2022}/masks/sc-correspondent-account-mask.mjs +0 -0
- /package/{esm2020 → esm2022}/masks/sc-inn-mask.mjs +0 -0
- /package/{esm2020 → esm2022}/masks/sc-kpp-mask.mjs +0 -0
- /package/{esm2020 → esm2022}/masks/sc-okpo-mask.mjs +0 -0
- /package/{esm2020 → esm2022}/masks/sc-phone-verification-code-mask.mjs +0 -0
- /package/{esm2020 → esm2022}/news/index.mjs +0 -0
- /package/{esm2020 → esm2022}/order/index.mjs +0 -0
- /package/{esm2020 → esm2022}/profile/index.mjs +0 -0
- /package/{esm2020 → esm2022}/share-button/index.mjs +0 -0
- /package/{esm2020 → esm2022}/snabcentr-client-ui.mjs +0 -0
- /package/{esm2020 → esm2022}/tokens/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tokens/sc-linear-values-token.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/scBicValidator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/scCorrespondentAccountValidator.mjs +0 -0
- /package/{esm2020 → esm2022}/verification/index.mjs +0 -0
@@ -1,9 +1,9 @@
|
|
1
|
-
import { PolymorpheusTemplate } from '@
|
1
|
+
import { PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
/**
|
4
4
|
* Директива содержимого компонента, позволяющего отображать и скрывать содержимое в разделах.
|
5
5
|
*/
|
6
6
|
export declare class ScAccordionContentDirective extends PolymorpheusTemplate<Record<string, unknown>> {
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScAccordionContentDirective, never>;
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ScAccordionContentDirective, "ng-template[scAccordionContent]", never, {}, {}, never, never, false>;
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScAccordionContentDirective, "ng-template[scAccordionContent]", never, {}, {}, never, never, false, never>;
|
9
9
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
2
|
-
import { ScAccordionContentDirective } from './sc-accordion-content.directive';
|
3
2
|
import { TuiSizeS } from '@taiga-ui/core';
|
4
|
-
import {
|
3
|
+
import { TuiAccordionItem } from '@taiga-ui/kit';
|
4
|
+
import { ScAccordionContentDirective } from './sc-accordion-content.directive';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
/**
|
7
7
|
* Компонент, позволяющий отображать и скрывать содержимое в разделах.
|
@@ -34,7 +34,7 @@ export declare class ScAccordionComponent {
|
|
34
34
|
/**
|
35
35
|
* Ссылка на шаблон превью-просмотра в разметке.
|
36
36
|
*/
|
37
|
-
readonly accordion?:
|
37
|
+
readonly accordion?: TuiAccordionItem;
|
38
38
|
/**
|
39
39
|
* Событие нажатия на кнопку добавления.
|
40
40
|
*/
|
@@ -48,5 +48,5 @@ export declare class ScAccordionComponent {
|
|
48
48
|
*/
|
49
49
|
close(): void;
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScAccordionComponent, never>;
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScAccordionComponent, "sc-accordion", never, { "showAddButton": "showAddButton"; "showDeleteButton": "showDeleteButton"; "showArrow": "showArrow"; "open": "open"; "size": "size"; }, { "addButtonClick": "addButtonClick"; "deleteButtonClick": "deleteButtonClick"; }, ["content"], ["*"], false>;
|
51
|
+
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; }; }, { "addButtonClick": "addButtonClick"; "deleteButtonClick": "deleteButtonClick"; }, ["content"], ["*"], false, never>;
|
52
52
|
}
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./sc-accordion.component";
|
3
3
|
import * as i2 from "./sc-accordion-content.directive";
|
4
4
|
import * as i3 from "@angular/common";
|
5
|
-
import * as i4 from "@
|
5
|
+
import * as i4 from "@taiga-ui/polymorpheus";
|
6
6
|
import * as i5 from "@taiga-ui/core";
|
7
7
|
import * as i6 from "@taiga-ui/kit";
|
8
8
|
/**
|
@@ -10,6 +10,6 @@ import * as i6 from "@taiga-ui/kit";
|
|
10
10
|
*/
|
11
11
|
export declare class ScAccordionModule {
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScAccordionModule, never>;
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScAccordionModule, [typeof i1.ScAccordionComponent, typeof i2.ScAccordionContentDirective], [typeof i3.CommonModule, typeof i4.
|
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
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScAccordionModule>;
|
15
15
|
}
|
package/auth/index.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export * from './sc-sign-in-form/sc-sign-in-form.component';
|
2
2
|
export * from './sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component';
|
3
3
|
export * from './sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component';
|
4
|
+
export * from './sign-up-form/sc-sign-up-form.component';
|
4
5
|
export * from './enums/auth-method';
|
5
|
-
export * from './interfaces
|
6
|
+
export * from './interfaces';
|
6
7
|
export * from './sc-auth.module';
|
@@ -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
|
+
}>;
|
package/auth/sc-auth.module.d.ts
CHANGED
@@ -2,18 +2,24 @@ import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./sc-sign-in-form/sc-sign-in-form.component";
|
3
3
|
import * as i2 from "./sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component";
|
4
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 "
|
6
|
-
import * as i5 from "@angular/
|
7
|
-
import * as i6 from "@
|
8
|
-
import * as i7 from "@taiga-ui/
|
9
|
-
import * as i8 from "@taiga-ui/
|
10
|
-
import * as i9 from "@
|
11
|
-
import * as i10 from "
|
5
|
+
import * as i4 from "./sign-up-form/sc-sign-up-form.component";
|
6
|
+
import * as i5 from "@angular/common";
|
7
|
+
import * as i6 from "@angular/forms";
|
8
|
+
import * as i7 from "@taiga-ui/legacy";
|
9
|
+
import * as i8 from "@taiga-ui/core";
|
10
|
+
import * as i9 from "@taiga-ui/kit";
|
11
|
+
import * as i10 from "@taiga-ui/cdk";
|
12
|
+
import * as i11 from "@maskito/angular";
|
13
|
+
import * as i12 from "../verification/sc-verification.module";
|
14
|
+
import * as i13 from "../form-fields/form-fields.module";
|
15
|
+
import * as i14 from "@taiga-ui/core/components/data-list";
|
16
|
+
import * as i15 from "../contragents/sc-contragents.module";
|
17
|
+
import * as i16 from "../contacts/sc-contacts.module";
|
12
18
|
/**
|
13
19
|
* Модуль аутентификации.
|
14
20
|
*/
|
15
21
|
export declare class ScAuthModule {
|
16
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScAuthModule, never>;
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScAuthModule, [typeof i1.ScSignInFormComponent, typeof i2.ScSignInFormByPhoneComponent, typeof i3.ScSignInFormByEmailComponent], [typeof
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScAuthModule, [typeof i1.ScSignInFormComponent, typeof i2.ScSignInFormByPhoneComponent, typeof i3.ScSignInFormByEmailComponent, typeof i4.ScSignUpFormComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.TuiInputPasswordModule, typeof i7.TuiInputModule, typeof i7.TuiTextfieldControllerModule, typeof i8.TuiLink, typeof i8.TuiButton, typeof i8.TuiLabel, typeof i9.TuiFieldErrorPipe, typeof i8.TuiError, typeof i10.TuiLet, typeof i8.TuiLoader, typeof i7.TuiInputPhoneModule, typeof i11.MaskitoDirective, typeof i12.ScVerificationModule, typeof i13.ScFormFieldsModule, typeof i8.TuiDataListComponent, typeof i8.TuiDataListDirective, typeof i8.TuiOption, typeof i8.TuiOptGroup, typeof i9.TuiCheckbox, typeof i9.TuiElasticContainer, typeof i9.TuiDataListWrapperComponent, typeof i9.TuiDataListGroupWrapperComponent, typeof i14.TuiDataListDirective, typeof i7.TuiSelectModule, typeof i15.ScContragentsModule, typeof i16.ScContactsModule, typeof i9.TuiStepperComponent, typeof i9.TuiStep, typeof i10.TuiRepeatTimes, typeof i9.TuiButtonLoading], [typeof i1.ScSignInFormComponent, typeof i2.ScSignInFormByPhoneComponent, typeof i3.ScSignInFormByEmailComponent, typeof i4.ScSignUpFormComponent]>;
|
18
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScAuthModule>;
|
19
25
|
}
|
package/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.d.ts
CHANGED
@@ -35,5 +35,5 @@ export declare class ScSignInFormByEmailComponent {
|
|
35
35
|
*/
|
36
36
|
constructor(authService: ScAuthService);
|
37
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>;
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignInFormByEmailComponent, "sc-sign-in-form-by-email", never, {}, { "forgotPassword": "forgotPassword"; }, never, never, false, never>;
|
39
39
|
}
|
package/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.d.ts
CHANGED
@@ -37,5 +37,5 @@ export declare class ScSignInFormByPhoneComponent {
|
|
37
37
|
*/
|
38
38
|
constructor(authService: ScAuthService);
|
39
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScSignInFormByPhoneComponent, never>;
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignInFormByPhoneComponent, "sc-sign-in-form-by-phone", never, {}, {}, never, never, false>;
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignInFormByPhoneComponent, "sc-sign-in-form-by-phone", never, {}, {}, never, never, false, never>;
|
41
41
|
}
|
@@ -49,5 +49,5 @@ export declare class ScSignInFormComponent implements OnInit {
|
|
49
49
|
*/
|
50
50
|
onForgotPassword(): void;
|
51
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScSignInFormComponent, never>;
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignInFormComponent, "sc-sign-in-form", never, { "authMethod": "authMethod"; }, { "forgotPassword": "forgotPassword"; "signUp": "signUp"; "successAuth": "successAuth"; }, never, never, false>;
|
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
53
|
}
|
@@ -0,0 +1,153 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { FormArray, FormControl, FormGroup } from '@angular/forms';
|
3
|
+
import { ScAuthService, ScConvertersService, ScIReferencesTypes, ScISuggestionType, ScOpfList, ScReferencesService, ScSuggestion, 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: Observable<boolean>;
|
63
|
+
/**
|
64
|
+
* Список этапов регистрации.
|
65
|
+
*/
|
66
|
+
readonly steps: string[];
|
67
|
+
/**
|
68
|
+
* Инициализирует экземпляр класса {@link ScSignUpFormComponent}.
|
69
|
+
*
|
70
|
+
* @param userService Сервис данных о пользователе.
|
71
|
+
* @param authService Сервис аутентификации.
|
72
|
+
* @param referencesService Сервис справочников.
|
73
|
+
* @param convertersService Сервис конвертации данных.
|
74
|
+
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
75
|
+
*/
|
76
|
+
constructor(userService: ScUserService, authService: ScAuthService, referencesService: ScReferencesService, convertersService: ScConvertersService, userMetrikaService: ScUserMetrikaService);
|
77
|
+
/**
|
78
|
+
* Список групп полей банковских реквизитов.
|
79
|
+
*/
|
80
|
+
get bankAccounts(): FormArray<ReturnType<ScSignUpFormComponent['createBankAccountGroup']>>;
|
81
|
+
/**
|
82
|
+
* Список групп полей контактных лиц.
|
83
|
+
*/
|
84
|
+
get contacts(): FormArray<ReturnType<ScSignUpFormComponent['createContactGroup']>>;
|
85
|
+
/** @inheritDoc */
|
86
|
+
ngOnInit(): void;
|
87
|
+
/**
|
88
|
+
* Проверяет, может ли пользователь перейти к следующему шагу регистрации.
|
89
|
+
* При проверке каждого этапа регистрации последовательно проверяется корректность заполнения данных на предыдущих этапах.
|
90
|
+
*
|
91
|
+
* @param index Индекс этапа для которого нужно проверить валидность.
|
92
|
+
* @returns Выводит значение `boolean` на основании {@link index}.
|
93
|
+
*/
|
94
|
+
canNextStep(index: number): boolean;
|
95
|
+
/**
|
96
|
+
* Выполняет навигацию по форме регистрации.
|
97
|
+
*
|
98
|
+
* @param delta Значение, на которое необходимо выполнить навигацию.
|
99
|
+
*/
|
100
|
+
navigate(delta: number): void;
|
101
|
+
/**
|
102
|
+
* Создаёт базового контрагента для клиента физического лица.
|
103
|
+
*
|
104
|
+
* @param formValue Значение формы при регистрации
|
105
|
+
*/
|
106
|
+
private createBaseContragent;
|
107
|
+
/**
|
108
|
+
* Возвращает {@link Observable} список организационно-правовых форм.
|
109
|
+
*/
|
110
|
+
getOpf$(): Observable<Array<ScIReferencesTypes<ScOpfList, typeof ScOpfList>>>;
|
111
|
+
/**
|
112
|
+
* Возвращает {@link Observable} организационно-правовой формы, соответствующий символьному обозначению (slug) на входе.
|
113
|
+
*
|
114
|
+
* @param slug Символьное обозначение (slug).
|
115
|
+
*/
|
116
|
+
getOpfBySlug$(slug: keyof typeof ScOpfList): Observable<ScIReferencesTypes<ScOpfList, typeof ScOpfList> | undefined>;
|
117
|
+
/**
|
118
|
+
* Создаёт группу полей банковских реквизитов.
|
119
|
+
*/
|
120
|
+
private createBankAccountGroup;
|
121
|
+
/**
|
122
|
+
* Добавляет Банковские реквизиты.
|
123
|
+
*/
|
124
|
+
addBankAccountGroup(): void;
|
125
|
+
/**
|
126
|
+
* Удаляет банковские реквизиты.
|
127
|
+
*
|
128
|
+
* @param index Индекс банковских реквизитов.
|
129
|
+
*/
|
130
|
+
removeBankAccountGroup(index: number): void;
|
131
|
+
/**
|
132
|
+
* Создаёт группу полей контактного лица.
|
133
|
+
*/
|
134
|
+
createContactGroup(): ScContactFormGroup;
|
135
|
+
/**
|
136
|
+
* Обработчик выбора адреса доставки.
|
137
|
+
*
|
138
|
+
* @param suggestion Объект подсказки ареса.
|
139
|
+
*/
|
140
|
+
onSelectedOrganization(suggestion: ScSuggestion): void;
|
141
|
+
/**
|
142
|
+
* Добавляет контактное лицо контрагента.
|
143
|
+
*/
|
144
|
+
addContactGroup(): void;
|
145
|
+
/**
|
146
|
+
* Удаляет контактное лицо контрагента.
|
147
|
+
*
|
148
|
+
* @param index Индекс контактного лица.
|
149
|
+
*/
|
150
|
+
removeContactGroup(index: number): void;
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSignUpFormComponent, never>;
|
152
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignUpFormComponent, "sc-sign-up-form", never, {}, { "successAuth": "successAuth"; }, never, never, false, never>;
|
153
|
+
}
|
@@ -50,6 +50,10 @@ export declare class ScBannerComponent implements AfterViewInit {
|
|
50
50
|
* Ссылка на {@link HTMLVideoElement} элемента отображения видео.
|
51
51
|
*/
|
52
52
|
private videoRef;
|
53
|
+
/**
|
54
|
+
* Ссылка для автоматического управления уничтожением зависимостей.
|
55
|
+
*/
|
56
|
+
private destroyRef;
|
53
57
|
/**
|
54
58
|
* Идентификатор текущего баннера.
|
55
59
|
*/
|
@@ -70,10 +74,6 @@ export declare class ScBannerComponent implements AfterViewInit {
|
|
70
74
|
* Список баннеров.
|
71
75
|
*/
|
72
76
|
banners?: ScBanner[];
|
73
|
-
/**
|
74
|
-
* Свойство, от которого зависит наличие класса `!hidden` у `:host` компонента.
|
75
|
-
*/
|
76
|
-
private get isHidden();
|
77
77
|
/**
|
78
78
|
* Свойство, от которого зависит высота `:host` компонента.
|
79
79
|
*/
|
@@ -105,6 +105,10 @@ export declare class ScBannerComponent implements AfterViewInit {
|
|
105
105
|
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
106
106
|
*/
|
107
107
|
constructor(cdr: ChangeDetectorRef, bannerService: ScBannerService, entries$: IntersectionObserverService, element: ElementRef<Element>, pxConverter: ScPxConverter, userMetrikaService: ScUserMetrikaService);
|
108
|
+
/**
|
109
|
+
* Свойство, от которого зависит наличие класса `!hidden` у `:host` компонента.
|
110
|
+
*/
|
111
|
+
private get isHidden();
|
108
112
|
/** @inheritDoc */
|
109
113
|
ngAfterViewInit(): void;
|
110
114
|
/**
|
@@ -126,5 +130,5 @@ export declare class ScBannerComponent implements AfterViewInit {
|
|
126
130
|
*/
|
127
131
|
onClick(banner: ScBanner): void;
|
128
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScBannerComponent, never>;
|
129
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScBannerComponent, "sc-banner", never, { "navigateButton": "navigateButton"; "playerInterval": "playerInterval"; "disabled": "disabled"; "bannerLocation": "bannerLocation"; "resizable": "resizable"; }, { "loadBannersEvent": "loadBannersEvent"; "clickBannerEvent": "clickBannerEvent"; }, ["bannersListRef"], never, false>;
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScBannerComponent, "sc-banner", never, { "navigateButton": { "alias": "navigateButton"; "required": false; }; "playerInterval": { "alias": "playerInterval"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "bannerLocation": { "alias": "bannerLocation"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; }, { "loadBannersEvent": "loadBannersEvent"; "clickBannerEvent": "clickBannerEvent"; }, ["bannersListRef"], never, false, never>;
|
130
134
|
}
|
@@ -3,14 +3,15 @@ import * as i1 from "./sc-banner.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
4
4
|
import * as i3 from "@angular/router";
|
5
5
|
import * as i4 from "@taiga-ui/core";
|
6
|
-
import * as i5 from "@taiga-ui/
|
7
|
-
import * as i6 from "@
|
8
|
-
import * as i7 from "@
|
6
|
+
import * as i5 from "@taiga-ui/cdk/directives/item";
|
7
|
+
import * as i6 from "@taiga-ui/kit";
|
8
|
+
import * as i7 from "@ng-web-apis/intersection-observer";
|
9
|
+
import * as i8 from "@taiga-ui/cdk";
|
9
10
|
/**
|
10
11
|
* Модуль баннеров.
|
11
12
|
*/
|
12
13
|
export declare class ScBannerModule {
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScBannerModule, never>;
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScBannerModule, [typeof i1.ScBannerComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScBannerModule, [typeof i1.ScBannerComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.TuiButton, typeof i5.TuiItem, typeof i6.TuiCarouselComponent, typeof i6.TuiCarouselDirective, typeof i6.TuiCarouselAutoscroll, typeof i6.TuiCarouselButtons, typeof i6.TuiCarouselScroll, typeof i4.TuiLoader, typeof i7.WaIntersectionObserverDirective, typeof i7.WaIntersectionObservee, typeof i7.WaIntersectionRoot, typeof i8.TuiLet], [typeof i1.ScBannerComponent]>;
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScBannerModule>;
|
16
17
|
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* Компонент списка брэндов.
|
4
|
+
*/
|
5
|
+
export declare class ScBrandsListComponent {
|
6
|
+
/**
|
7
|
+
* Список элементов брендов.
|
8
|
+
*/
|
9
|
+
items: Array<{
|
10
|
+
src: string;
|
11
|
+
alt: string;
|
12
|
+
}>;
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScBrandsListComponent, never>;
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScBrandsListComponent, "sc-brands-list", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, false, never>;
|
15
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./sc-brands-list.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@taiga-ui/cdk";
|
5
|
+
/**
|
6
|
+
* Модуль списка брэндов.
|
7
|
+
*/
|
8
|
+
export declare class ScBrandsListModule {
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScBrandsListModule, never>;
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScBrandsListModule, [typeof i1.ScBrandsListComponent], [typeof i2.CommonModule, typeof i3.TuiRepeatTimes], [typeof i1.ScBrandsListComponent]>;
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScBrandsListModule>;
|
12
|
+
}
|
@@ -1,22 +1,26 @@
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
2
2
|
import { FormControl } from '@angular/forms';
|
3
3
|
import { ScCartItem, ScIUrls, ScProduct } from '@snabcentr/client-core';
|
4
|
+
import { TuiPreviewDialogService } from '@taiga-ui/kit';
|
4
5
|
import { Observable } from 'rxjs';
|
5
|
-
import {
|
6
|
-
import { UnitsHelper } from '../../helpers/sc-units-helper';
|
6
|
+
import { ScUnitsHelper } from '../../helpers/sc-units-helper';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
/**
|
9
9
|
* Компонент карточки элемента корзины.
|
10
10
|
*/
|
11
11
|
export declare class ScCartItemMobileComponent implements OnInit {
|
12
|
-
readonly unitsHelper:
|
12
|
+
readonly unitsHelper: ScUnitsHelper;
|
13
13
|
private readonly previewDialogService;
|
14
14
|
private readonly urls;
|
15
15
|
private readonly pathImageNotFound;
|
16
16
|
/**
|
17
17
|
* Элемент корзины.
|
18
18
|
*/
|
19
|
-
|
19
|
+
set cartItem(data: ScCartItem | undefined);
|
20
|
+
/**
|
21
|
+
* Элемент корзины.
|
22
|
+
*/
|
23
|
+
get cartItem(): ScCartItem | undefined;
|
20
24
|
/**
|
21
25
|
* Ссылка на представление спецификации.
|
22
26
|
*/
|
@@ -25,14 +29,6 @@ export declare class ScCartItemMobileComponent implements OnInit {
|
|
25
29
|
* {@link FormControl} поля ввода количества товара в корзине.
|
26
30
|
*/
|
27
31
|
quantityControl: FormControl<number | null>;
|
28
|
-
/**
|
29
|
-
* Элемент корзины.
|
30
|
-
*/
|
31
|
-
set cartItem(data: ScCartItem | undefined);
|
32
|
-
/**
|
33
|
-
* Элемент корзины.
|
34
|
-
*/
|
35
|
-
get cartItem(): ScCartItem | undefined;
|
36
32
|
/**
|
37
33
|
* {@link Observable} изменения количества товара в корзине.
|
38
34
|
*/
|
@@ -50,9 +46,9 @@ export declare class ScCartItemMobileComponent implements OnInit {
|
|
50
46
|
*/
|
51
47
|
clickCardEvent: EventEmitter<void>;
|
52
48
|
/**
|
53
|
-
*
|
49
|
+
* Элемент корзины.
|
54
50
|
*/
|
55
|
-
|
51
|
+
private _cartItem?;
|
56
52
|
/**
|
57
53
|
* Инициирует экземпляр класса {@link ScCartItemMobileComponent}.
|
58
54
|
*
|
@@ -61,7 +57,11 @@ export declare class ScCartItemMobileComponent implements OnInit {
|
|
61
57
|
* @param urls Список ссылок на разделы backend'a.
|
62
58
|
* @param pathImageNotFound Путь до изображения 'Товар не найден'.
|
63
59
|
*/
|
64
|
-
constructor(unitsHelper:
|
60
|
+
constructor(unitsHelper: ScUnitsHelper, previewDialogService: TuiPreviewDialogService, urls: ScIUrls, pathImageNotFound: string);
|
61
|
+
/**
|
62
|
+
* Продукт элемента корзины.
|
63
|
+
*/
|
64
|
+
get product(): ScProduct | undefined;
|
65
65
|
/** @inheritDoc */
|
66
66
|
ngOnInit(): void;
|
67
67
|
/**
|
@@ -73,5 +73,5 @@ export declare class ScCartItemMobileComponent implements OnInit {
|
|
73
73
|
*/
|
74
74
|
getCardImage(): string;
|
75
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCartItemMobileComponent, never>;
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCartItemMobileComponent, "sc-cart-item-mobile", never, { "cartItem": "cartItem"; }, { "quantityValueChanges": "quantityValueChanges"; "clickDeleteEvent": "clickDeleteEvent"; "clickSettingsEvent": "clickSettingsEvent"; "clickCardEvent": "clickCardEvent"; }, never, never, false>;
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCartItemMobileComponent, "sc-cart-item-mobile", never, { "cartItem": { "alias": "cartItem"; "required": false; }; }, { "quantityValueChanges": "quantityValueChanges"; "clickDeleteEvent": "clickDeleteEvent"; "clickSettingsEvent": "clickSettingsEvent"; "clickCardEvent": "clickCardEvent"; }, never, never, false, never>;
|
77
77
|
}
|
package/cart/sc-cart.module.d.ts
CHANGED
@@ -5,13 +5,13 @@ import * as i3 from "@taiga-ui/core";
|
|
5
5
|
import * as i4 from "../catalog/sc-catalog.module";
|
6
6
|
import * as i5 from "@taiga-ui/addon-commerce";
|
7
7
|
import * as i6 from "@angular/forms";
|
8
|
-
import * as i7 from "@taiga-ui/
|
9
|
-
import * as i8 from "@
|
8
|
+
import * as i7 from "@taiga-ui/kit";
|
9
|
+
import * as i8 from "@taiga-ui/polymorpheus";
|
10
10
|
/**
|
11
11
|
* Модуль корзины.
|
12
12
|
*/
|
13
13
|
export declare class ScCartModule {
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCartModule, never>;
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScCartModule, [typeof i1.ScCartItemMobileComponent], [typeof i2.CommonModule, typeof i3.
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScCartModule, [typeof i1.ScCartItemMobileComponent], [typeof i2.CommonModule, typeof i3.TuiLink, typeof i4.ScCatalogModule, typeof i3.TuiButton, typeof i5.TuiCurrencyPipe, typeof i3.TuiFormatNumberPipe, typeof i3.TuiIcon, typeof i3.TuiHintComponent, typeof i3.TuiHintDirective, typeof i3.TuiHintOptionsDirective, typeof i3.TuiHintUnstyled, typeof i3.TuiHintDriver, typeof i3.TuiHintPosition, typeof i3.TuiHintHover, typeof i3.TuiHintOverflow, typeof i3.TuiHintDescribe, typeof i3.TuiHintHost, typeof i3.TuiHintManual, typeof i3.TuiHintPointer, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.TuiPreviewComponent, typeof i7.TuiPreviewTitle, typeof i7.TuiPreviewPagination, typeof i7.TuiPreviewAction, typeof i7.TuiPreviewZoom, typeof i8.PolymorpheusTemplate, typeof i8.PolymorpheusOutlet], [typeof i1.ScCartItemMobileComponent]>;
|
16
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScCartModule>;
|
17
17
|
}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
2
|
-
import { ScFavoriteService, ScIUrls } from '@snabcentr/client-core';
|
2
|
+
import { ScFavoriteService, ScITerminalProvider, ScIUrls } from '@snabcentr/client-core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
/**
|
5
5
|
* Компонент списка категорий.
|
6
6
|
*/
|
7
7
|
export declare class ScCategoriesListComponent<T extends object> implements OnInit {
|
8
8
|
private readonly urls;
|
9
|
+
readonly terminal: ScITerminalProvider;
|
9
10
|
private readonly favoriteService;
|
10
11
|
private readonly cdr;
|
11
12
|
/**
|
@@ -20,14 +21,19 @@ export declare class ScCategoriesListComponent<T extends object> implements OnIn
|
|
20
21
|
* Событие нажатия на категорию.
|
21
22
|
*/
|
22
23
|
clickCategoryEvent: EventEmitter<T>;
|
24
|
+
/**
|
25
|
+
* Ссылка для автоматического управления уничтожением зависимостей.
|
26
|
+
*/
|
27
|
+
private destroyRef;
|
23
28
|
/**
|
24
29
|
* Инициализирует экземпляр класса {@link ScCategoriesListComponent}.
|
25
30
|
*
|
26
31
|
* @param urls объект информации о базовом списке ссылок приложения.
|
32
|
+
* @param terminal Данные о запуске приложения на терминале.
|
27
33
|
* @param favoriteService Сервис для работы с корзиной.
|
28
34
|
* @param cdr Объект для работы с обнаружением изменений.
|
29
35
|
*/
|
30
|
-
constructor(urls: ScIUrls, favoriteService: ScFavoriteService, cdr: ChangeDetectorRef);
|
36
|
+
constructor(urls: ScIUrls, terminal: ScITerminalProvider, favoriteService: ScFavoriteService, cdr: ChangeDetectorRef);
|
31
37
|
/** @inheritDoc */
|
32
38
|
ngOnInit(): void;
|
33
39
|
/**
|
@@ -43,5 +49,5 @@ export declare class ScCategoriesListComponent<T extends object> implements OnIn
|
|
43
49
|
*/
|
44
50
|
checkImagesExists(categories: any[]): boolean;
|
45
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCategoriesListComponent<any>, never>;
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCategoriesListComponent<any>, "sc-categories-list", never, { "categories": "categories"; }, { "clickCategoryEvent": "clickCategoryEvent"; }, never, never, false>;
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCategoriesListComponent<any>, "sc-categories-list", never, { "categories": { "alias": "categories"; "required": false; }; }, { "clickCategoryEvent": "clickCategoryEvent"; }, never, never, false, never>;
|
47
53
|
}
|
@@ -75,5 +75,5 @@ export declare class ScCategoryCardComponent {
|
|
75
75
|
*/
|
76
76
|
markForCheck(): void;
|
77
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCategoryCardComponent, never>;
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCategoryCardComponent, "sc-category-card", never, { "category": "category"; "size": "size"; "isSkeleton": "isSkeleton"; "isHovered": "isHovered"; }, { "clickOnCardEvent": "clickOnCardEvent"; "clickOnFavoriteEvent": "clickOnFavoriteEvent"; }, never, never, false>;
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCategoryCardComponent, "sc-category-card", never, { "category": { "alias": "category"; "required": false; }; "size": { "alias": "size"; "required": false; }; "isSkeleton": { "alias": "isSkeleton"; "required": false; }; "isHovered": { "alias": "isHovered"; "required": false; }; }, { "clickOnCardEvent": "clickOnCardEvent"; "clickOnFavoriteEvent": "clickOnFavoriteEvent"; }, never, never, false, never>;
|
79
79
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import { FormControl
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
2
|
+
import { FormControl } from '@angular/forms';
|
3
3
|
import { TuiSizeL, TuiSizeM, TuiSizeS } from '@taiga-ui/core';
|
4
|
-
import { AbstractTuiNullableControl
|
4
|
+
import { AbstractTuiNullableControl } from '@taiga-ui/legacy';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
/**
|
7
7
|
* Компонент поля ввода количества.
|
@@ -43,16 +43,8 @@ export declare class ScInputQuantityComponent extends AbstractTuiNullableControl
|
|
43
43
|
* Возвращает элемент, который может быть сфокусирован.
|
44
44
|
*/
|
45
45
|
get nativeFocusableElement(): HTMLInputElement | null;
|
46
|
-
/**
|
47
|
-
* Инициализирует экземпляр класса {@link ScInputQuantityComponent}.
|
48
|
-
*
|
49
|
-
* @param ngControl Объект поля ввода для настройки валидации.
|
50
|
-
* @param cdr Объект для работы с обнаружением изменений.
|
51
|
-
* @param transformer Преобразователь значений элемента формы.
|
52
|
-
*/
|
53
|
-
constructor(ngControl: NgControl | null, cdr: ChangeDetectorRef, transformer: AbstractTuiValueTransformer<number | null>);
|
54
46
|
get focused(): boolean;
|
55
|
-
get formControl(): FormControl
|
47
|
+
get formControl(): FormControl | null;
|
56
48
|
/** @inheritDoc */
|
57
49
|
ngOnInit(): void;
|
58
50
|
/**
|
@@ -73,6 +65,6 @@ export declare class ScInputQuantityComponent extends AbstractTuiNullableControl
|
|
73
65
|
* Очищает поля ввода.
|
74
66
|
*/
|
75
67
|
clear(): void;
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScInputQuantityComponent,
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputQuantityComponent, "sc-input-quantity", never, { "step": "step"; "showLoader": "showLoader"; "showCross": "showCross"; "appearance": "appearance"; "isDisabled": "isDisabled"; "size": "size"; }, { "clickClearEvent": "clickClearEvent"; }, never, never, false>;
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScInputQuantityComponent, never>;
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputQuantityComponent, "sc-input-quantity", never, { "step": { "alias": "step"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "showCross": { "alias": "showCross"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "clickClearEvent": "clickClearEvent"; }, never, never, false, never>;
|
78
70
|
}
|