@snabcentr/client-ui 1.19.0 → 2.0.0
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 +42 -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,128 +1,34 @@
|
|
1
|
-
import { ChangeDetectorRef
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import { TuiSizeS, TuiSizeXS } from '@taiga-ui/core';
|
5
|
-
import { Observable } from 'rxjs';
|
6
|
-
import { UnitsHelper } from '../../helpers/sc-units-helper';
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
2
|
+
import { TuiSizeS } from '@taiga-ui/core';
|
3
|
+
import { AbstractScPriceCard } from '../../directives';
|
7
4
|
import * as i0 from "@angular/core";
|
8
5
|
/**
|
9
6
|
* Компонент карточки товара.
|
10
7
|
*/
|
11
|
-
export declare class ScPriceCardComponent {
|
12
|
-
readonly unitsHelper: UnitsHelper;
|
13
|
-
private readonly authService;
|
14
|
-
private readonly warehouseService;
|
15
|
-
private readonly urls;
|
16
|
-
private readonly pathImageNotFound;
|
17
|
-
readonly search$: Observable<string>;
|
8
|
+
export declare class ScPriceCardComponent extends AbstractScPriceCard {
|
18
9
|
private readonly cdr;
|
19
|
-
private readonly imageHelper;
|
20
|
-
/**
|
21
|
-
* Позиция товара в корзине.
|
22
|
-
*
|
23
|
-
* TODO: Сделать товар в корзине наблюдаемой переменной после реализации TASK:[#7144].
|
24
|
-
*/
|
25
|
-
get cartItem(): ScCartItem | undefined;
|
26
|
-
/**
|
27
|
-
* Позиция товара в корзине
|
28
|
-
*
|
29
|
-
* TODO: Сделать товар в корзине наблюдаемой переменной после реализации TASK:[#7144].
|
30
|
-
*/
|
31
|
-
set cartItem(value: ScCartItem | undefined);
|
32
|
-
/**
|
33
|
-
* Признак того, что этот компонент отображается на мобильном устройстве.
|
34
|
-
*/
|
35
|
-
readonly isMobile: boolean;
|
36
|
-
/**
|
37
|
-
* Признак, что необходимо отобразить лоадер для поля ввода количества товара.
|
38
|
-
*/
|
39
|
-
quantityShowLoader: boolean;
|
40
|
-
/**
|
41
|
-
* Признак, что необходимо отобразить лоадер для кнопки избранных товаров и категорий.
|
42
|
-
*/
|
43
|
-
favoriteShowLoader: boolean;
|
44
|
-
/**
|
45
|
-
* Признак, что необходимо отобразить поле ввода количества товара.
|
46
|
-
*/
|
47
|
-
showQuantityControl: boolean;
|
48
|
-
/**
|
49
|
-
* Объект товара.
|
50
|
-
*
|
51
|
-
* TODO: Сделать товар наблюдаемой переменной после реализации TASK:[#7144].
|
52
|
-
*/
|
53
|
-
product?: ScProduct;
|
54
|
-
/**
|
55
|
-
* Событие нажатия на кнопку "В избранное".
|
56
|
-
*/
|
57
|
-
clickFavoriteEvent: EventEmitter<void>;
|
58
|
-
/**
|
59
|
-
* Событие нажатия на кнопку "В корзину".
|
60
|
-
*/
|
61
|
-
clickAddToCartEvent: EventEmitter<ScProduct>;
|
62
|
-
/**
|
63
|
-
* Событие нажатия на кнопку очистки количества товара.
|
64
|
-
*/
|
65
|
-
clickClearEvent: EventEmitter<ScCartItem>;
|
66
|
-
/**
|
67
|
-
* Событие нажатия на карточку товара.
|
68
|
-
*/
|
69
|
-
clickCardEvent: EventEmitter<void>;
|
70
|
-
/**
|
71
|
-
* {@link Observable} изменения выбранного склада.
|
72
|
-
*/
|
73
|
-
warehouseSelect$: Observable<ScIWarehouse | null>;
|
74
|
-
/**
|
75
|
-
* {@link FormControl} поля ввода количества товара в корзине.
|
76
|
-
*/
|
77
|
-
quantityControl: FormControl<number | null>;
|
78
|
-
/**
|
79
|
-
* {@link Observable} изменения количества товара в корзине.
|
80
|
-
*/
|
81
|
-
quantityValueChanges: Observable<number | null>;
|
82
|
-
/**
|
83
|
-
* {@link Observable} изменения статуса авторизации.
|
84
|
-
*/
|
85
|
-
readonly authStatus$: Observable<boolean>;
|
86
10
|
/**
|
87
11
|
* Размер компонента.
|
88
12
|
*/
|
89
|
-
size: TuiSizeS
|
13
|
+
size: TuiSizeS;
|
90
14
|
/**
|
91
|
-
*
|
92
|
-
*
|
93
|
-
* TODO: Сделать товар в корзине наблюдаемой переменной после реализации TASK:[#7144].
|
15
|
+
* Признак того, что этот компонент отображается на мобильном устройстве.
|
94
16
|
*/
|
95
|
-
|
17
|
+
protected readonly isMobile: boolean;
|
96
18
|
/**
|
97
19
|
* Инициирует экземпляр класса {@link ScPriceCardComponent}.
|
98
20
|
*
|
99
|
-
* @param unitsHelper Объект-хэлпер для работы со значениями единиц измерения товара.
|
100
|
-
* @param authService Сервис аутентификации пользователей.
|
101
|
-
* @param warehouseService Сервис для работы со складами.
|
102
|
-
* @param urls Список ссылок на разделы backend'a.
|
103
|
-
* @param pathImageNotFound Путь до изображения 'Товар не найден'.
|
104
|
-
* @param search$ Провайдер поиска терма.
|
105
21
|
* @param cdr Объект для работы с обнаружением изменений.
|
106
|
-
* @param imageHelper Хелпер для работы с изображениями товара.
|
107
|
-
*/
|
108
|
-
constructor(unitsHelper: UnitsHelper, authService: ScAuthService, warehouseService: ScWarehouseService, urls: ScIUrls, pathImageNotFound: string, search$: Observable<string>, cdr: ChangeDetectorRef, imageHelper: ScImageHelper);
|
109
|
-
/**
|
110
|
-
* Конвертация размера для компонента sc-input-quantity.
|
111
|
-
* TODO: Решить проблему с функционалом size для разных платформ.
|
112
|
-
*/
|
113
|
-
get getQuantitySize(): TuiSizeS;
|
114
|
-
/**
|
115
|
-
* Признак, что нужно показать скелетон.
|
116
22
|
*/
|
117
|
-
|
23
|
+
constructor(cdr: ChangeDetectorRef);
|
118
24
|
/**
|
119
|
-
*
|
25
|
+
* Признак того, что компонент находится в корзине.
|
120
26
|
*/
|
121
|
-
|
27
|
+
get isInCart(): boolean;
|
122
28
|
/**
|
123
29
|
* Устанавливает компонент в очередь на обновление.
|
124
30
|
*/
|
125
31
|
markForCheck(): void;
|
126
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScPriceCardComponent, never>;
|
127
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScPriceCardComponent, "sc-price-card", never, { "
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScPriceCardComponent, "sc-price-card", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
|
128
34
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { OnInit } from '@angular/core';
|
2
|
-
import { ScCatalogService, ScProduct } from '@snabcentr/client-core';
|
2
|
+
import { ScCatalogService, ScProduct, ScUserMetrikaService } from '@snabcentr/client-core';
|
3
3
|
import { TuiDay, TuiDayRange, TuiStringHandler } from '@taiga-ui/cdk';
|
4
4
|
import { TuiDialogContext } from '@taiga-ui/core';
|
5
5
|
import { Observable } from 'rxjs';
|
@@ -10,6 +10,7 @@ import * as i0 from "@angular/core";
|
|
10
10
|
export declare class ScPriceHistoryComponent implements OnInit {
|
11
11
|
private readonly catalogService;
|
12
12
|
private readonly months$;
|
13
|
+
private readonly userMetrikaService;
|
13
14
|
private readonly context?;
|
14
15
|
/**
|
15
16
|
* {@link Observable} временного промежутка истории цен.
|
@@ -22,7 +23,11 @@ export declare class ScPriceHistoryComponent implements OnInit {
|
|
22
23
|
/**
|
23
24
|
* {@link Observable} истории цен.
|
24
25
|
*/
|
25
|
-
history$?: Observable<ReadonlyArray<[TuiDay, number]
|
26
|
+
history$?: Observable<ReadonlyArray<[TuiDay, number]> | null>;
|
27
|
+
/**
|
28
|
+
* {@link Observable} изменения состояния загрузки данных истории цен.
|
29
|
+
*/
|
30
|
+
loadingHistory$?: Observable<boolean>;
|
26
31
|
/**
|
27
32
|
* Максимальная цена товара.
|
28
33
|
*/
|
@@ -45,9 +50,10 @@ export declare class ScPriceHistoryComponent implements OnInit {
|
|
45
50
|
*
|
46
51
|
* @param catalogService Сервис для работы с каталогом.
|
47
52
|
* @param months$ Перечисление месяцев.
|
53
|
+
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
48
54
|
* @param context Контекст диалогового окна, в котором открыт компонент.
|
49
55
|
*/
|
50
|
-
constructor(catalogService: ScCatalogService, months$: Observable<readonly string[]>, context?: TuiDialogContext<void, {
|
56
|
+
constructor(catalogService: ScCatalogService, months$: Observable<readonly string[]>, userMetrikaService: ScUserMetrikaService, context?: TuiDialogContext<void, {
|
51
57
|
product: ScProduct;
|
52
58
|
}> | undefined);
|
53
59
|
/** @inheritDoc */
|
@@ -69,6 +75,6 @@ export declare class ScPriceHistoryComponent implements OnInit {
|
|
69
75
|
* @param history История цен.
|
70
76
|
*/
|
71
77
|
computeValue({ from, to }: TuiDayRange, history: ReadonlyArray<[TuiDay, number]>): ReadonlyArray<[TuiDay, number]>;
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScPriceHistoryComponent, [null, null, { optional: true; }]>;
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScPriceHistoryComponent, "sc-price-history", never, { "product": "product"; }, {}, never, never, false>;
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScPriceHistoryComponent, [null, null, null, { optional: true; }]>;
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScPriceHistoryComponent, "sc-price-history", never, { "product": { "alias": "product"; "required": false; }; }, {}, never, never, false, never>;
|
74
80
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
2
2
|
import { ScICategoryProductPaginationParams, ScIPaginationMeta } from '@snabcentr/client-core';
|
3
|
+
import { Observable } from 'rxjs';
|
3
4
|
import * as i0 from "@angular/core";
|
4
5
|
/**
|
5
6
|
* Компонент элементов управления пагинацией списка товаров.
|
@@ -8,13 +9,17 @@ export declare class ScPriceListPaginationComponent {
|
|
8
9
|
readonly nextPageClickEvent: EventEmitter<void>;
|
9
10
|
readonly options: ScICategoryProductPaginationParams;
|
10
11
|
/**
|
11
|
-
*
|
12
|
+
* Сервис пагинации.
|
12
13
|
*/
|
13
|
-
|
14
|
+
private readonly paginationService;
|
14
15
|
/**
|
15
|
-
*
|
16
|
+
* Дополнительные данные пагинации.
|
16
17
|
*/
|
17
|
-
|
18
|
+
meta$: Observable<ScIPaginationMeta>;
|
19
|
+
/**
|
20
|
+
* Признак, что кнопка неактивна.
|
21
|
+
*/
|
22
|
+
disabled$: Observable<boolean>;
|
18
23
|
/**
|
19
24
|
* Инициализирует экземпляр класса {@link ScPriceListPaginationComponent}.
|
20
25
|
*
|
@@ -23,5 +28,5 @@ export declare class ScPriceListPaginationComponent {
|
|
23
28
|
*/
|
24
29
|
constructor(nextPageClickEvent: EventEmitter<void>, options: ScICategoryProductPaginationParams);
|
25
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScPriceListPaginationComponent, never>;
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScPriceListPaginationComponent, "sc-price-list-pagination", never, {
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScPriceListPaginationComponent, "sc-price-list-pagination", never, {}, {}, never, never, false, never>;
|
27
32
|
}
|
@@ -43,5 +43,5 @@ export declare class ScPriceWarehouseStockComponent implements OnInit {
|
|
43
43
|
/** @inheritDoc */
|
44
44
|
ngOnInit(): void;
|
45
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScPriceWarehouseStockComponent, never>;
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScPriceWarehouseStockComponent, "sc-price-warehouse-stock", never, { "classList": "classList"; "product": "product"; "withStockHint": "withStockHint"; "fromMain": "fromMain"; }, {}, never, never, false>;
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScPriceWarehouseStockComponent, "sc-price-warehouse-stock", never, { "classList": { "alias": "classList"; "required": false; }; "product": { "alias": "product"; "required": false; }; "withStockHint": { "alias": "withStockHint"; "required": false; }; "fromMain": { "alias": "fromMain"; "required": false; }; }, {}, never, never, false, never>;
|
47
47
|
}
|
@@ -10,15 +10,16 @@ import * as i8 from "./categories-list/sc-categories-list.component";
|
|
10
10
|
import * as i9 from "@angular/common";
|
11
11
|
import * as i10 from "@angular/router";
|
12
12
|
import * as i11 from "@taiga-ui/core";
|
13
|
-
import * as i12 from "@taiga-ui/
|
13
|
+
import * as i12 from "@taiga-ui/legacy";
|
14
14
|
import * as i13 from "@angular/forms";
|
15
|
-
import * as i14 from "@taiga-ui/
|
16
|
-
import * as i15 from "@taiga-ui/
|
15
|
+
import * as i14 from "@taiga-ui/kit";
|
16
|
+
import * as i15 from "@taiga-ui/cdk";
|
17
|
+
import * as i16 from "@taiga-ui/addon-charts";
|
17
18
|
/**
|
18
19
|
* Модуль каталога.
|
19
20
|
*/
|
20
21
|
export declare class ScCatalogModule {
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCatalogModule, never>;
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScCatalogModule, [typeof i1.ScPriceListPaginationComponent, typeof i2.ScCategoryCardComponent, typeof i3.ScFavoriteBtnComponent, typeof i4.ScInputQuantityComponent, typeof i5.ScPriceCardComponent, typeof i6.ScPriceWarehouseStockComponent, typeof i7.ScPriceHistoryComponent, typeof i8.ScCategoriesListComponent], [typeof i9.CommonModule, typeof i10.RouterModule, typeof i11.
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScCatalogModule, [typeof i1.ScPriceListPaginationComponent, typeof i2.ScCategoryCardComponent, typeof i3.ScFavoriteBtnComponent, typeof i4.ScInputQuantityComponent, typeof i5.ScPriceCardComponent, typeof i6.ScPriceWarehouseStockComponent, typeof i7.ScPriceHistoryComponent, typeof i8.ScCategoriesListComponent], [typeof i9.CommonModule, typeof i10.RouterModule, typeof i11.TuiButton, typeof i11.TuiIcon, typeof i12.TuiIslandDirective, typeof i12.TuiInputNumberModule, typeof i11.TuiLabel, typeof i12.TuiTextfieldControllerModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i11.TuiHintComponent, typeof i11.TuiHintDirective, typeof i11.TuiHintOptionsDirective, typeof i11.TuiHintUnstyled, typeof i11.TuiHintDriver, typeof i11.TuiHintPosition, typeof i11.TuiHintHover, typeof i11.TuiHintOverflow, typeof i11.TuiHintDescribe, typeof i11.TuiHintHost, typeof i11.TuiHintManual, typeof i11.TuiHintPointer, typeof i14.TuiFieldErrorPipe, typeof i11.TuiLoader, typeof i11.TuiLink, typeof i14.TuiElasticContainer, typeof i15.TuiLet, typeof i15.TuiRepeatTimes, typeof i14.TuiHighlight, typeof i16.TuiLineDaysChart, typeof i16.TuiLineDaysChartHint, typeof i16.TuiAxes, typeof i14.TuiButtonLoading], [typeof i1.ScPriceListPaginationComponent, typeof i2.ScCategoryCardComponent, typeof i3.ScFavoriteBtnComponent, typeof i4.ScInputQuantityComponent, typeof i5.ScPriceCardComponent, typeof i6.ScPriceWarehouseStockComponent, typeof i7.ScPriceHistoryComponent, typeof i8.ScCategoriesListComponent]>;
|
23
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScCatalogModule>;
|
24
25
|
}
|
@@ -21,5 +21,5 @@ export declare class ScFavoriteBtnComponent {
|
|
21
21
|
*/
|
22
22
|
disabled: boolean;
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScFavoriteBtnComponent, never>;
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScFavoriteBtnComponent, "sc-favorite-btn", never, { "isFavorite": "isFavorite"; "showLoader": "showLoader"; "disabled": "disabled"; }, { "clickEvent": "clickEvent"; }, never, never, false>;
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScFavoriteBtnComponent, "sc-favorite-btn", never, { "isFavorite": { "alias": "isFavorite"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "clickEvent": "clickEvent"; }, never, never, false, never>;
|
25
25
|
}
|
@@ -1,14 +1,16 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
3
|
+
import { ScContactsService, ScConvertersService, ScIContactBase, ScIContactOnDataCreate, ScIContactWithRelations, ScUserMetrikaService } from '@snabcentr/client-core';
|
4
4
|
import { TuiDialogContext } from '@taiga-ui/core';
|
5
|
+
import { Observable, Subject } from 'rxjs';
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
/**
|
7
8
|
* Компонент формы создания нового контактного лица.
|
8
9
|
*/
|
9
|
-
export declare class ScAddContactDialogComponent {
|
10
|
+
export declare class ScAddContactDialogComponent implements AfterViewInit {
|
10
11
|
private readonly contactsService;
|
11
12
|
readonly convertersService: ScConvertersService;
|
13
|
+
private readonly userMetrikaService;
|
12
14
|
readonly context: TuiDialogContext<ScIContactWithRelations, Omit<ScIContactOnDataCreate, keyof ScIContactBase>>;
|
13
15
|
/**
|
14
16
|
* Группа с полями контактного лица.
|
@@ -36,9 +38,12 @@ export declare class ScAddContactDialogComponent {
|
|
36
38
|
*
|
37
39
|
* @param contactsService Сервис для работы с контактными лицами.
|
38
40
|
* @param convertersService Сервис конвертации данных.
|
41
|
+
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
39
42
|
* @param context Контекст диалогового окна, в котором открыт компонент.
|
40
43
|
*/
|
41
|
-
constructor(contactsService: ScContactsService, convertersService: ScConvertersService, context: TuiDialogContext<ScIContactWithRelations, Omit<ScIContactOnDataCreate, keyof ScIContactBase>>);
|
44
|
+
constructor(contactsService: ScContactsService, convertersService: ScConvertersService, userMetrikaService: ScUserMetrikaService, context: TuiDialogContext<ScIContactWithRelations, Omit<ScIContactOnDataCreate, keyof ScIContactBase>>);
|
45
|
+
/** @inheritdoc */
|
46
|
+
ngAfterViewInit(): void;
|
42
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScAddContactDialogComponent, never>;
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScAddContactDialogComponent, "sc-add-contact-dialog", never, {}, {}, never, never, false>;
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScAddContactDialogComponent, "sc-add-contact-dialog", never, {}, {}, never, never, false, never>;
|
44
49
|
}
|
@@ -19,5 +19,5 @@ export declare class ScContactsAccordionComponent {
|
|
19
19
|
*/
|
20
20
|
deleteButtonClick: EventEmitter<ScIContact>;
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScContactsAccordionComponent, never>;
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScContactsAccordionComponent, "sc-contacts-accordion", never, { "contacts$": "contacts$"; }, { "addContactClick": "addContactClick"; "deleteButtonClick": "deleteButtonClick"; }, never, never, false>;
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScContactsAccordionComponent, "sc-contacts-accordion", never, { "contacts$": { "alias": "contacts$"; "required": false; }; }, { "addContactClick": "addContactClick"; "deleteButtonClick": "deleteButtonClick"; }, never, never, false, never>;
|
23
23
|
}
|
@@ -19,5 +19,5 @@ export declare class ScNewContactFormComponent {
|
|
19
19
|
position: FormControl<string | null>;
|
20
20
|
}>;
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScNewContactFormComponent, never>;
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScNewContactFormComponent, "sc-new-contact-form", never, { "form": "form"; }, {}, never, never, false>;
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScNewContactFormComponent, "sc-new-contact-form", never, { "form": { "alias": "form"; "required": false; }; }, {}, never, never, false, never>;
|
23
23
|
}
|
@@ -10,11 +10,16 @@ import * as i8 from "@taiga-ui/cdk";
|
|
10
10
|
import * as i9 from "../form-fields/form-fields.module";
|
11
11
|
import * as i10 from "@maskito/angular";
|
12
12
|
import * as i11 from "@taiga-ui/kit";
|
13
|
+
import * as i12 from "@taiga-ui/legacy";
|
14
|
+
import * as i13 from "@taiga-ui/core/components/data-list";
|
15
|
+
import * as i14 from "../directives/terminal-link/sc-terminal-link.directive";
|
16
|
+
import * as i15 from "../pipes/sc-formatted-phone";
|
17
|
+
import * as i16 from "../directives/tel-link/sc-tel-link.directive";
|
13
18
|
/**
|
14
19
|
* Модуль контактных лиц.
|
15
20
|
*/
|
16
21
|
export declare class ScContactsModule {
|
17
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScContactsModule, never>;
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScContactsModule, [typeof i1.ScContactsAccordionComponent, typeof i2.ScNewContactFormComponent, typeof i3.ScAddContactDialogComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.ScAccordionModule, typeof i7.
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScContactsModule, [typeof i1.ScContactsAccordionComponent, typeof i2.ScNewContactFormComponent, typeof i3.ScAddContactDialogComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.ScAccordionModule, typeof i7.TuiButton, typeof i7.TuiLoader, typeof i8.TuiLet, typeof i7.TuiNotification, typeof i7.TuiLink, typeof i9.ScFormFieldsModule, typeof i10.MaskitoDirective, typeof i11.TuiFieldErrorPipe, typeof i12.TuiSelectModule, typeof i7.TuiDataListComponent, typeof i7.TuiDataListDirective, typeof i7.TuiOption, typeof i7.TuiOptGroup, typeof i11.TuiDataListWrapperComponent, typeof i11.TuiDataListGroupWrapperComponent, typeof i13.TuiDataListDirective, typeof i7.TuiLabel, typeof i12.TuiInputModule, typeof i12.TuiInputPhoneModule, typeof i7.TuiError, typeof i14.ScTerminalLinkDirective, typeof i15.ScFormatePhonePipe, typeof i16.ScTelLinkDirective, typeof i11.TuiButtonLoading], [typeof i1.ScContactsAccordionComponent, typeof i2.ScNewContactFormComponent, typeof i3.ScAddContactDialogComponent]>;
|
19
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScContactsModule>;
|
20
25
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
2
|
import { ScContragentService, ScIBankAccount } from '@snabcentr/client-core';
|
3
|
-
import { Observable, Subject } from 'rxjs';
|
4
3
|
import { TuiDialogContext } from '@taiga-ui/core';
|
4
|
+
import { Observable, Subject } from 'rxjs';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
/**
|
7
7
|
* Компонент формы создания нового банковского счета контрагента.
|
@@ -43,5 +43,5 @@ export declare class ScAddContragentBankAccountsDialogComponent {
|
|
43
43
|
contragentId: number;
|
44
44
|
}>);
|
45
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScAddContragentBankAccountsDialogComponent, never>;
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScAddContragentBankAccountsDialogComponent, "sc-add-contragent-bank-account-dialog", never, {}, {}, never, never, false>;
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScAddContragentBankAccountsDialogComponent, "sc-add-contragent-bank-account-dialog", never, {}, {}, never, never, false, never>;
|
47
47
|
}
|
@@ -1,17 +1,19 @@
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
1
2
|
import { FormArray, FormControl, FormGroup } from '@angular/forms';
|
2
|
-
import {
|
3
|
+
import { ScContragent, ScContragentService, ScConvertersService, ScICountry, ScICurrency, ScIReferencesTypes, ScISalesDirection, ScLocationsService, ScOpfList, ScReferencesService, ScUserMetrikaService } from '@snabcentr/client-core';
|
3
4
|
import { TuiDialogContext } from '@taiga-ui/core';
|
4
5
|
import { Observable, Subject } from 'rxjs';
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
/**
|
7
8
|
* Компотен добавления контрагента.
|
8
9
|
*/
|
9
|
-
export declare class ScAddContragentDialogComponent {
|
10
|
+
export declare class ScAddContragentDialogComponent implements AfterViewInit {
|
10
11
|
private readonly referencesService;
|
11
12
|
private readonly contragentService;
|
12
13
|
private readonly convertersService;
|
14
|
+
private readonly userMetrikaService;
|
13
15
|
private readonly locationsService;
|
14
|
-
|
16
|
+
readonly context: TuiDialogContext<ScContragent, void>;
|
15
17
|
/**
|
16
18
|
* Перечисление организационно-правовых форм.
|
17
19
|
*/
|
@@ -38,6 +40,19 @@ export declare class ScAddContragentDialogComponent {
|
|
38
40
|
* {@link Observable} изменения состояния загрузки данных аутентификации по номеру телефона.
|
39
41
|
*/
|
40
42
|
readonly loading$: Observable<boolean>;
|
43
|
+
/**
|
44
|
+
* Инициализирует экземпляр класса {@link ScAddContragentDialogComponent}.
|
45
|
+
*
|
46
|
+
* @param referencesService Сервис справочников.
|
47
|
+
* @param contragentService Сервис работы с контрагентами.
|
48
|
+
* @param convertersService Сервис конвертации данных.
|
49
|
+
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
50
|
+
* @param locationsService
|
51
|
+
* @param context Контекст диалогового окна, в котором открыт компонент.
|
52
|
+
*/
|
53
|
+
constructor(referencesService: ScReferencesService, contragentService: ScContragentService, convertersService: ScConvertersService, userMetrikaService: ScUserMetrikaService, locationsService: ScLocationsService, context: TuiDialogContext<ScContragent, void>);
|
54
|
+
/** @inheritdoc */
|
55
|
+
ngAfterViewInit(): void;
|
41
56
|
/**
|
42
57
|
* Текущий выбранный ОПФ.
|
43
58
|
*/
|
@@ -50,15 +65,6 @@ export declare class ScAddContragentDialogComponent {
|
|
50
65
|
* Список групп полей контактных лиц.
|
51
66
|
*/
|
52
67
|
get contacts(): FormArray<ReturnType<ScAddContragentDialogComponent['createContactGroup']>>;
|
53
|
-
/**
|
54
|
-
* Инициализирует экземпляр класса {@link ScAddContragentDialogComponent}.
|
55
|
-
*
|
56
|
-
* @param referencesService Сервис справочников.
|
57
|
-
* @param contragentService Сервис работы с контрагентами.
|
58
|
-
* @param convertersService Сервис конвертации данных.
|
59
|
-
* @param context Контекст диалогового окна, в котором открыт компонент.
|
60
|
-
*/
|
61
|
-
constructor(referencesService: ScReferencesService, contragentService: ScContragentService, convertersService: ScConvertersService, locationsService: ScLocationsService, context: TuiDialogContext<ScContragent, void>);
|
62
68
|
/**
|
63
69
|
* Выполняет навигацию по форме создания контрагента.
|
64
70
|
*
|
@@ -77,12 +83,14 @@ export declare class ScAddContragentDialogComponent {
|
|
77
83
|
getSalesDirections$(): Observable<ScISalesDirection[]>;
|
78
84
|
/**
|
79
85
|
* Возвращает {@link Observable} списка направлений продаж.
|
86
|
+
*
|
87
|
+
* @param directionId
|
80
88
|
*/
|
81
89
|
getDirectionById$(directionId: number): Observable<ScISalesDirection | undefined>;
|
82
90
|
/**
|
83
91
|
* Возвращает {@link Observable} список организационно-правовых форм.
|
84
92
|
*/
|
85
|
-
getOpf$(): Observable<ScIReferencesTypes<ScOpfList, typeof ScOpfList
|
93
|
+
getOpf$(): Observable<Array<ScIReferencesTypes<ScOpfList, typeof ScOpfList>>>;
|
86
94
|
/**
|
87
95
|
* Возвращает {@link Observable} организационно-правовой формы, соответствующий символьному обозначению (slug) на входе.
|
88
96
|
*
|
@@ -142,6 +150,6 @@ export declare class ScAddContragentDialogComponent {
|
|
142
150
|
* @param index Индекс контактного лица.
|
143
151
|
*/
|
144
152
|
removeContactGroup(index: number): void;
|
145
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScAddContragentDialogComponent, [null, null, null, null, { optional: true; }]>;
|
146
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScAddContragentDialogComponent, "sc-add-contragent-dialog", never, {}, {}, never, never, false>;
|
153
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScAddContragentDialogComponent, [null, null, null, null, null, { optional: true; }]>;
|
154
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScAddContragentDialogComponent, "sc-add-contragent-dialog", never, {}, {}, never, never, false, never>;
|
147
155
|
}
|
@@ -58,5 +58,5 @@ export declare class ScContragentsAccordionItemComponent implements OnInit {
|
|
58
58
|
*/
|
59
59
|
onDeleteContragentContactClick(contact: ScIContact, contragent: ScContragent): void;
|
60
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScContragentsAccordionItemComponent, never>;
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScContragentsAccordionItemComponent, "sc-contragents-accordion-item", never, { "contragent": "contragent"; }, { "deleteContragentClick": "deleteContragentClick"; "addContragentBankAccountClick": "addContragentBankAccountClick"; "deleteContragentBankAccountClick": "deleteContragentBankAccountClick"; "addContragentContactClick": "addContragentContactClick"; "deleteContragentContactClick": "deleteContragentContactClick"; }, never, never, false>;
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScContragentsAccordionItemComponent, "sc-contragents-accordion-item", never, { "contragent": { "alias": "contragent"; "required": false; }; }, { "deleteContragentClick": "deleteContragentClick"; "addContragentBankAccountClick": "addContragentBankAccountClick"; "deleteContragentBankAccountClick": "deleteContragentBankAccountClick"; "addContragentContactClick": "addContragentContactClick"; "deleteContragentContactClick": "deleteContragentContactClick"; }, never, never, false, never>;
|
62
62
|
}
|
@@ -45,5 +45,5 @@ export declare class ScContragentsAccordionComponent {
|
|
45
45
|
*/
|
46
46
|
constructor(contragentService: ScContragentService);
|
47
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScContragentsAccordionComponent, never>;
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScContragentsAccordionComponent, "sc-contragents-accordion", never, {}, { "addContragentClick": "addContragentClick"; "deleteContragentClick": "deleteContragentClick"; "addContragentBankAccountClick": "addContragentBankAccountClick"; "deleteContragentBankAccountClick": "deleteContragentBankAccountClick"; "addContragentContactClick": "addContragentContactClick"; "deleteContragentContactClick": "deleteContragentContactClick"; }, never, never, false>;
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScContragentsAccordionComponent, "sc-contragents-accordion", never, {}, { "addContragentClick": "addContragentClick"; "deleteContragentClick": "deleteContragentClick"; "addContragentBankAccountClick": "addContragentBankAccountClick"; "deleteContragentBankAccountClick": "deleteContragentBankAccountClick"; "addContragentContactClick": "addContragentContactClick"; "deleteContragentContactClick": "deleteContragentContactClick"; }, never, never, false, never>;
|
49
49
|
}
|
@@ -51,5 +51,5 @@ export declare class ScNewContragentBankAccountsFormComponent {
|
|
51
51
|
*/
|
52
52
|
getCurrencyById$(currencyId: number): Observable<ScICurrency | undefined>;
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScNewContragentBankAccountsFormComponent, never>;
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScNewContragentBankAccountsFormComponent, "sc-new-contragent-bank-account-form", never, { "form": "form"; }, {}, never, never, false>;
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScNewContragentBankAccountsFormComponent, "sc-new-contragent-bank-account-form", never, { "form": { "alias": "form"; "required": false; }; }, {}, never, never, false, never>;
|
55
55
|
}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { FormArray, FormControl, FormGroup, FormGroupDirective } from '@angular/forms';
|
3
|
+
import { ScICountry, ScIReferencesTypes, ScISalesDirection, ScISuggestionType, ScLocationsService, ScOpfList, ScReferencesService } from '@snabcentr/client-core';
|
4
4
|
import { Observable } from 'rxjs';
|
5
|
+
import { ScContactFormGroup } from '../../auth/interfaces';
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
/**
|
7
8
|
* Форма создания нового контрагента.
|
@@ -10,6 +11,10 @@ export declare class ScNewContragentFormComponent implements OnInit, OnDestroy {
|
|
10
11
|
private readonly referencesService;
|
11
12
|
private readonly locationsService;
|
12
13
|
private readonly formGroupDirective;
|
14
|
+
/**
|
15
|
+
* Поле выбора организационно-правовой формы.
|
16
|
+
*/
|
17
|
+
opfControl?: FormControl<keyof typeof ScOpfList | null>;
|
13
18
|
/**
|
14
19
|
* Группа полей информации о контрагенте индивидуальном предпринимателе.
|
15
20
|
*/
|
@@ -29,7 +34,7 @@ export declare class ScNewContragentFormComponent implements OnInit, OnDestroy {
|
|
29
34
|
name: FormControl<string | null>;
|
30
35
|
opf: FormControl<"individual" | "entrepreneur" | "legal" | "non_resident_legal" | null>;
|
31
36
|
salesDirectionId: FormControl<number | null>;
|
32
|
-
contacts: FormArray<
|
37
|
+
contacts: FormArray<ScContactFormGroup>;
|
33
38
|
}>;
|
34
39
|
/**
|
35
40
|
* Перечисление типов подсказок.
|
@@ -39,14 +44,6 @@ export declare class ScNewContragentFormComponent implements OnInit, OnDestroy {
|
|
39
44
|
* {@link Observable} выбора ОПФ.
|
40
45
|
*/
|
41
46
|
readonly selectOpf$: Observable<keyof typeof ScOpfList>;
|
42
|
-
/**
|
43
|
-
* Маска поля ввода ИНН.
|
44
|
-
*/
|
45
|
-
readonly innMask: (opf: keyof typeof ScOpfList) => import("@maskito/core").MaskitoOptions;
|
46
|
-
/**
|
47
|
-
* Маска поля ввода ОКПО.
|
48
|
-
*/
|
49
|
-
readonly okpoMask: (opf: keyof typeof ScOpfList) => import("@maskito/core").MaskitoOptions;
|
50
47
|
/**
|
51
48
|
* Маска поля ввода КПП.
|
52
49
|
*/
|
@@ -56,9 +53,21 @@ export declare class ScNewContragentFormComponent implements OnInit, OnDestroy {
|
|
56
53
|
*/
|
57
54
|
readonly opfListEnum: typeof ScOpfList;
|
58
55
|
/**
|
59
|
-
*
|
56
|
+
* Ссылка для автоматического управления уничтожением зависимостей.
|
60
57
|
*/
|
61
|
-
|
58
|
+
private destroyRef;
|
59
|
+
/**
|
60
|
+
* Маска поля ввода ИНН.
|
61
|
+
*
|
62
|
+
* @param opf Организационно-правовая форма.
|
63
|
+
*/
|
64
|
+
readonly innMask: (opf: keyof typeof ScOpfList) => import("@maskito/core").MaskitoOptions;
|
65
|
+
/**
|
66
|
+
* Маска поля ввода ОКПО.
|
67
|
+
*
|
68
|
+
* @param opf Организационно-правовая форма.
|
69
|
+
*/
|
70
|
+
readonly okpoMask: (opf: keyof typeof ScOpfList) => import("@maskito/core").MaskitoOptions;
|
62
71
|
/**
|
63
72
|
* Инициализирует экземпляр класса {@link ScNewContragentFormComponent}.
|
64
73
|
*
|
@@ -67,18 +76,24 @@ export declare class ScNewContragentFormComponent implements OnInit, OnDestroy {
|
|
67
76
|
* @param formGroupDirective Директива c `FormGroup` из DOM.
|
68
77
|
*/
|
69
78
|
constructor(referencesService: ScReferencesService, locationsService: ScLocationsService, formGroupDirective: FormGroupDirective | null);
|
79
|
+
/**
|
80
|
+
* Родительская `FormGroup`.
|
81
|
+
*/
|
82
|
+
get parentForm(): FormGroup | undefined;
|
70
83
|
/** @inheritDoc */
|
71
84
|
ngOnInit(): void;
|
72
85
|
/** @inheritDoc */
|
73
86
|
ngOnDestroy(): void;
|
74
87
|
/**
|
75
88
|
* Возвращает {@link Observable} списка направлений продаж.
|
89
|
+
*
|
90
|
+
* @param directionId Идентификатор направления продаж.
|
76
91
|
*/
|
77
92
|
getDirectionById$(directionId: number): Observable<ScISalesDirection | undefined>;
|
78
93
|
/**
|
79
94
|
* Возвращает {@link Observable} список организационно-правовых форм..
|
80
95
|
*/
|
81
|
-
getOpf$(): Observable<ScIReferencesTypes<ScOpfList, typeof ScOpfList
|
96
|
+
getOpf$(): Observable<Array<ScIReferencesTypes<ScOpfList, typeof ScOpfList>>>;
|
82
97
|
/**
|
83
98
|
* Возвращает {@link Observable} организационно-правовой формы, соответствующий символьному обозначению (slug) на входе.
|
84
99
|
*
|
@@ -96,5 +111,5 @@ export declare class ScNewContragentFormComponent implements OnInit, OnDestroy {
|
|
96
111
|
*/
|
97
112
|
getCountriesById$(countryId: number): Observable<ScICountry | undefined>;
|
98
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScNewContragentFormComponent, [null, null, { skipSelf: true; }]>;
|
99
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScNewContragentFormComponent, "sc-new-contragent-form", never, {}, {}, never, never, false>;
|
114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScNewContragentFormComponent, "sc-new-contragent-form", never, { "opfControl": { "alias": "opfControl"; "required": false; }; }, {}, never, never, false, never>;
|
100
115
|
}
|
@@ -12,14 +12,16 @@ import * as i10 from "@taiga-ui/core";
|
|
12
12
|
import * as i11 from "@taiga-ui/cdk";
|
13
13
|
import * as i12 from "../contacts/sc-contacts.module";
|
14
14
|
import * as i13 from "@taiga-ui/kit";
|
15
|
-
import * as i14 from "@
|
16
|
-
import * as i15 from "
|
17
|
-
import * as i16 from "
|
15
|
+
import * as i14 from "@taiga-ui/legacy";
|
16
|
+
import * as i15 from "@taiga-ui/core/components/data-list";
|
17
|
+
import * as i16 from "@maskito/angular";
|
18
|
+
import * as i17 from "../form-fields/form-fields.module";
|
19
|
+
import * as i18 from "@taiga-ui/cdk/directives/item";
|
18
20
|
/**
|
19
21
|
* Модуль для отображение контента разделами, с возможностью скрывать и отображать содержимое.
|
20
22
|
*/
|
21
23
|
export declare class ScContragentsModule {
|
22
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScContragentsModule, never>;
|
23
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScContragentsModule, [typeof i1.ScContragentsAccordionComponent, typeof i2.ScContragentsAccordionItemComponent, typeof i3.ScNewContragentBankAccountsFormComponent, typeof i4.ScAddContragentBankAccountsDialogComponent, typeof i5.ScAddContragentDialogComponent, typeof i6.ScNewContragentFormComponent], [typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i8.CommonModule, typeof i9.ScAccordionModule, typeof i10.
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScContragentsModule, [typeof i1.ScContragentsAccordionComponent, typeof i2.ScContragentsAccordionItemComponent, typeof i3.ScNewContragentBankAccountsFormComponent, typeof i4.ScAddContragentBankAccountsDialogComponent, typeof i5.ScAddContragentDialogComponent, typeof i6.ScNewContragentFormComponent], [typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i8.CommonModule, typeof i9.ScAccordionModule, typeof i10.TuiButton, typeof i10.TuiLoader, typeof i11.TuiLet, typeof i10.TuiNotification, typeof i12.ScContactsModule, typeof i13.TuiFieldErrorPipe, typeof i10.TuiError, typeof i14.TuiSelectModule, typeof i10.TuiDataListComponent, typeof i10.TuiDataListDirective, typeof i10.TuiOption, typeof i10.TuiOptGroup, typeof i13.TuiDataListWrapperComponent, typeof i13.TuiDataListGroupWrapperComponent, typeof i15.TuiDataListDirective, typeof i10.TuiLabel, typeof i14.TuiInputModule, typeof i14.TuiInputPhoneModule, typeof i16.MaskitoDirective, typeof i17.ScFormFieldsModule, typeof i13.TuiElasticContainer, typeof i18.TuiItem, typeof i13.TuiCarouselComponent, typeof i13.TuiCarouselDirective, typeof i13.TuiCarouselAutoscroll, typeof i13.TuiCarouselButtons, typeof i13.TuiCarouselScroll, typeof i13.TuiButtonLoading], [typeof i1.ScContragentsAccordionComponent, typeof i3.ScNewContragentBankAccountsFormComponent, typeof i4.ScAddContragentBankAccountsDialogComponent, typeof i5.ScAddContragentDialogComponent, typeof i6.ScNewContragentFormComponent]>;
|
24
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScContragentsModule>;
|
25
27
|
}
|