@snabcentr/client-ui 1.18.1 → 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 +5 -9
- package/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.d.ts +4 -9
- package/auth/sc-sign-in-form/sc-sign-in-form.component.d.ts +9 -5
- 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/esm2022/auth/sc-sign-in-form/sc-sign-in-form.component.mjs +89 -0
- 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 -76
- package/esm2020/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +0 -75
- package/esm2020/auth/sc-sign-in-form/sc-sign-in-form.component.mjs +0 -71
- package/esm2020/banner/sc-banner.component.mjs +0 -232
- 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 -4861
- package/fesm2015/snabcentr-client-ui.mjs.map +0 -1
- package/fesm2020/snabcentr-client-ui.mjs +0 -4781
- 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,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
|
}
|
package/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.d.ts
CHANGED
@@ -1,17 +1,32 @@
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
1
2
|
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
-
import { ScConvertersService, ScDeliveryAddressService, ScISuggestionType } from '@snabcentr/client-core';
|
3
|
+
import { ScConvertersService, ScDeliveryAddressService, ScISuggestionAddress, ScISuggestionType, ScSuggestion, ScUserMetrikaService } from '@snabcentr/client-core';
|
3
4
|
import { TuiDialogContext } from '@taiga-ui/core';
|
5
|
+
import { YaReadyEvent } from 'angular8-yandex-maps';
|
4
6
|
import { Observable, Subject } from 'rxjs';
|
5
7
|
import * as i0 from "@angular/core";
|
6
8
|
/**
|
7
9
|
* Компонент добавления адреса доставки.
|
8
|
-
*
|
9
|
-
* TODO: TASK[8813] Добавить карту, и поведение выбора адреса доставки через карту. При этом вынести форму в отдельный компонент AddDeliveryAddressForm или submit логику в директиву.
|
10
10
|
*/
|
11
|
-
export declare class ScAddDeliveryAddressDialogComponent {
|
11
|
+
export declare class ScAddDeliveryAddressDialogComponent implements AfterViewInit {
|
12
12
|
private readonly deliveryAddressService;
|
13
|
-
private readonly
|
13
|
+
private readonly userMetrikaService;
|
14
|
+
readonly context: TuiDialogContext<void, void>;
|
14
15
|
private readonly convertersService;
|
16
|
+
/**
|
17
|
+
* Округляет координаты до 6 цифр после запятой.
|
18
|
+
*
|
19
|
+
* @param coords Координаты точки.
|
20
|
+
*/
|
21
|
+
private static roundCoordinate;
|
22
|
+
/**
|
23
|
+
* Ссылка для автоматического управления уничтожением зависимостей.
|
24
|
+
*/
|
25
|
+
private destroyRef;
|
26
|
+
/**
|
27
|
+
* Признак того, отображается этот компонент на мобильном устройстве или нет.
|
28
|
+
*/
|
29
|
+
readonly isMobile: boolean;
|
15
30
|
/**
|
16
31
|
* Перечисление типов подсказок.
|
17
32
|
*/
|
@@ -20,6 +35,14 @@ export declare class ScAddDeliveryAddressDialogComponent {
|
|
20
35
|
* {@link Subject} события отправки формы.
|
21
36
|
*/
|
22
37
|
readonly onSubmit$: Subject<void>;
|
38
|
+
/**
|
39
|
+
* Координаты центра карты по умолчанию.
|
40
|
+
*/
|
41
|
+
readonly defaultCenterMap: number[];
|
42
|
+
/**
|
43
|
+
* Масштаб карты по умолчанию.
|
44
|
+
*/
|
45
|
+
readonly defaultZoomMap: number;
|
23
46
|
/**
|
24
47
|
* {@link Observable} запроса данных добавления адрес доставки.
|
25
48
|
*/
|
@@ -28,11 +51,23 @@ export declare class ScAddDeliveryAddressDialogComponent {
|
|
28
51
|
* {@link Observable} изменения состояния загрузки данных.
|
29
52
|
*/
|
30
53
|
readonly loading$: Observable<boolean>;
|
54
|
+
/**
|
55
|
+
* Группа с полями адресов.
|
56
|
+
*/
|
57
|
+
addressControl: FormControl<ScISuggestionAddress | string | null>;
|
58
|
+
/**
|
59
|
+
* Настройки карты.
|
60
|
+
*/
|
61
|
+
options: ymaps.IMapOptions;
|
31
62
|
/**
|
32
63
|
* Форма для создания адреса доставки.
|
33
64
|
*/
|
34
65
|
readonly form: FormGroup<{
|
35
|
-
address: FormControl<string | null>;
|
66
|
+
address: FormControl<string | ScISuggestionAddress | null>;
|
67
|
+
coordinates: FormGroup<{
|
68
|
+
lat: FormControl<number | null>;
|
69
|
+
long: FormControl<number | null>;
|
70
|
+
}>;
|
36
71
|
contact: FormGroup<{
|
37
72
|
name: FormControl<string | null>;
|
38
73
|
phone: FormControl<string | null>;
|
@@ -40,14 +75,54 @@ export declare class ScAddDeliveryAddressDialogComponent {
|
|
40
75
|
position: FormControl<string | null>;
|
41
76
|
}>;
|
42
77
|
}>;
|
78
|
+
/**
|
79
|
+
* Точка адреса на карте.
|
80
|
+
*/
|
81
|
+
addressPlacemark?: ymaps.Placemark;
|
82
|
+
/**
|
83
|
+
* Яндекс карта.
|
84
|
+
*/
|
85
|
+
yaMap?: ymaps.Map;
|
43
86
|
/**
|
44
87
|
* Инициализирует экземпляр класса {@link ScAddDeliveryAddressDialogComponent}.
|
45
88
|
*
|
46
89
|
* @param deliveryAddressService Сервис работы с адресами доставки.
|
90
|
+
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
47
91
|
* @param context Контекст диалогового окна, в котором открыт компонент.
|
48
92
|
* @param convertersService Сервис конвертации данных.
|
49
93
|
*/
|
50
|
-
constructor(deliveryAddressService: ScDeliveryAddressService, context: TuiDialogContext<void, void>, convertersService: ScConvertersService);
|
94
|
+
constructor(deliveryAddressService: ScDeliveryAddressService, userMetrikaService: ScUserMetrikaService, context: TuiDialogContext<void, void>, convertersService: ScConvertersService);
|
95
|
+
/** @inheritdoc */
|
96
|
+
ngAfterViewInit(): void;
|
97
|
+
/**
|
98
|
+
* Обработчик загрузки карты на странице.
|
99
|
+
*
|
100
|
+
* @param target Экземпляр целевого объекта.
|
101
|
+
* @param target.target
|
102
|
+
*/
|
103
|
+
onMapReadyHandle({ target }: YaReadyEvent<ymaps.Map>): void;
|
104
|
+
/**
|
105
|
+
* Обработчик выбора адреса доставки.
|
106
|
+
*
|
107
|
+
* @param suggestion Объект подсказки ареса.
|
108
|
+
*/
|
109
|
+
onSelectedAddress(suggestion: ScSuggestion): void;
|
110
|
+
/**
|
111
|
+
* Устанавливает {@link addressPlacemark} точку на определённые координаты.
|
112
|
+
*
|
113
|
+
* @param coords Координаты точки.
|
114
|
+
*/
|
115
|
+
private setGeoCoordinates;
|
116
|
+
/**
|
117
|
+
* Устанавливает {@link addressPlacemark} точку на определённые координаты.
|
118
|
+
*/
|
119
|
+
private removeGeoCoordinates;
|
120
|
+
/**
|
121
|
+
* Создаёт объект точки и устанавливает события для него.
|
122
|
+
*
|
123
|
+
* @param coords Координаты точки.
|
124
|
+
*/
|
125
|
+
private createPlacemark;
|
51
126
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScAddDeliveryAddressDialogComponent, never>;
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScAddDeliveryAddressDialogComponent, "sc-add-delivery-address-dialog", never, {}, {}, never, never, false>;
|
127
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScAddDeliveryAddressDialogComponent, "sc-add-delivery-address-dialog", never, {}, {}, never, never, false, never>;
|
53
128
|
}
|
@@ -46,5 +46,5 @@ export declare class ScDeliveryAddressAccordionItemComponent implements OnInit {
|
|
46
46
|
*/
|
47
47
|
onDeleteContragentContactClick(contact: ScIContact, address: ScIDeliveryAddress): void;
|
48
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScDeliveryAddressAccordionItemComponent, never>;
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScDeliveryAddressAccordionItemComponent, "sc-delivery-address-accordion-item", never, { "deliveryAddress": "deliveryAddress"; }, { "deleteDeliveryAddressClick": "deleteDeliveryAddressClick"; "addDeliveryAddressContactClick": "addDeliveryAddressContactClick"; "deleteDeliveryAddressContactClick": "deleteDeliveryAddressContactClick"; }, never, never, false>;
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDeliveryAddressAccordionItemComponent, "sc-delivery-address-accordion-item", never, { "deliveryAddress": { "alias": "deliveryAddress"; "required": false; }; }, { "deleteDeliveryAddressClick": "deleteDeliveryAddressClick"; "addDeliveryAddressContactClick": "addDeliveryAddressContactClick"; "deleteDeliveryAddressContactClick": "deleteDeliveryAddressContactClick"; }, never, never, false, never>;
|
50
50
|
}
|
package/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.d.ts
CHANGED
@@ -37,5 +37,5 @@ export declare class ScDeliveryAddressAccordionComponent {
|
|
37
37
|
*/
|
38
38
|
constructor(deliveryAddressService: ScDeliveryAddressService);
|
39
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScDeliveryAddressAccordionComponent, never>;
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScDeliveryAddressAccordionComponent, "sc-delivery-address-accordion", never, {}, { "addDeliveryAddressClick": "addDeliveryAddressClick"; "deleteDeliveryAddressClick": "deleteDeliveryAddressClick"; "addDeliveryAddressContactClick": "addDeliveryAddressContactClick"; "deleteDeliveryAddressContactClick": "deleteDeliveryAddressContactClick"; }, never, never, false>;
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDeliveryAddressAccordionComponent, "sc-delivery-address-accordion", never, {}, { "addDeliveryAddressClick": "addDeliveryAddressClick"; "deleteDeliveryAddressClick": "deleteDeliveryAddressClick"; "addDeliveryAddressContactClick": "addDeliveryAddressContactClick"; "deleteDeliveryAddressContactClick": "deleteDeliveryAddressContactClick"; }, never, never, false, never>;
|
41
41
|
}
|
@@ -9,12 +9,14 @@ import * as i7 from "@taiga-ui/cdk";
|
|
9
9
|
import * as i8 from "../contacts/sc-contacts.module";
|
10
10
|
import * as i9 from "@angular/forms";
|
11
11
|
import * as i10 from "@taiga-ui/kit";
|
12
|
-
import * as i11 from "
|
12
|
+
import * as i11 from "@taiga-ui/legacy";
|
13
|
+
import * as i12 from "../form-fields/form-fields.module";
|
14
|
+
import * as i13 from "angular8-yandex-maps";
|
13
15
|
/**
|
14
16
|
* Модуль для отображение адресов доставки разделами, с возможностью скрывать и отображать содержимое.
|
15
17
|
*/
|
16
18
|
export declare class ScDeliveryAddressModule {
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScDeliveryAddressModule, never>;
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScDeliveryAddressModule, [typeof i1.ScDeliveryAddressAccordionComponent, typeof i2.ScDeliveryAddressAccordionItemComponent, typeof i3.ScAddDeliveryAddressDialogComponent], [typeof i4.CommonModule, typeof i5.ScAccordionModule, typeof i6.
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScDeliveryAddressModule, [typeof i1.ScDeliveryAddressAccordionComponent, typeof i2.ScDeliveryAddressAccordionItemComponent, typeof i3.ScAddDeliveryAddressDialogComponent], [typeof i4.CommonModule, typeof i5.ScAccordionModule, typeof i6.TuiButton, typeof i6.TuiLoader, typeof i7.TuiLet, typeof i6.TuiNotification, typeof i8.ScContactsModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i6.TuiLabel, typeof i10.TuiFieldErrorPipe, typeof i6.TuiError, typeof i11.TuiInputModule, typeof i11.TuiInputPhoneModule, typeof i12.ScFormFieldsModule, typeof i6.TuiDataListComponent, typeof i6.TuiDataListDirective, typeof i6.TuiOption, typeof i6.TuiOptGroup, typeof i13.AngularYandexMapsModule, typeof i10.TuiElasticContainer, typeof i10.TuiButtonLoading], [typeof i1.ScDeliveryAddressAccordionComponent, typeof i3.ScAddDeliveryAddressDialogComponent]>;
|
19
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScDeliveryAddressModule>;
|
20
22
|
}
|
@@ -0,0 +1,107 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { FormControl } from '@angular/forms';
|
3
|
+
import { ScCartItem, ScIWarehouse, ScProduct } from '@snabcentr/client-core';
|
4
|
+
import { Observable } from 'rxjs';
|
5
|
+
import { ScUnitsHelper } from '../../helpers/sc-units-helper';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
/**
|
8
|
+
* Директива абстрактной карточки товара.
|
9
|
+
*/
|
10
|
+
export declare class AbstractScPriceCard {
|
11
|
+
/**
|
12
|
+
* Позиция товара в корзине.
|
13
|
+
*
|
14
|
+
* TODO: Сделать товар в корзине наблюдаемой переменной после реализации TASK:[#7144].
|
15
|
+
*/
|
16
|
+
get cartItem(): ScCartItem | undefined;
|
17
|
+
/**
|
18
|
+
* Позиция товара в корзине
|
19
|
+
*
|
20
|
+
* TODO: Сделать товар в корзине наблюдаемой переменной после реализации TASK:[#7144].
|
21
|
+
*/
|
22
|
+
set cartItem(value: ScCartItem | undefined);
|
23
|
+
/**
|
24
|
+
* {@link FormControl} поля ввода количества товара в корзине.
|
25
|
+
*/
|
26
|
+
quantityControl: FormControl<number | null>;
|
27
|
+
/**
|
28
|
+
* Признак, что необходимо отобразить лоадер для поля ввода количества товара.
|
29
|
+
*/
|
30
|
+
quantityShowLoader: boolean;
|
31
|
+
/**
|
32
|
+
* Признак, что необходимо отобразить лоадер для кнопки избранных товаров и категорий.
|
33
|
+
*/
|
34
|
+
favoriteShowLoader: boolean;
|
35
|
+
/**
|
36
|
+
* {@link Observable} изменения выбранного склада.
|
37
|
+
*/
|
38
|
+
readonly warehouseSelect$: Observable<ScIWarehouse | null>;
|
39
|
+
/**
|
40
|
+
* {@link Observable} изменения статуса авторизации.
|
41
|
+
*/
|
42
|
+
readonly authStatus$: Observable<boolean>;
|
43
|
+
/**
|
44
|
+
* {@link Observable} поиска терма.
|
45
|
+
*/
|
46
|
+
readonly search$: Observable<string>;
|
47
|
+
/**
|
48
|
+
* Объект товара.
|
49
|
+
*/
|
50
|
+
product?: ScProduct;
|
51
|
+
/**
|
52
|
+
* Признак, что необходимо отобразить поле ввода количества товара.
|
53
|
+
*/
|
54
|
+
showQuantityControl: boolean;
|
55
|
+
/**
|
56
|
+
* Событие нажатия на кнопку "В избранное".
|
57
|
+
*/
|
58
|
+
readonly clickFavoriteEvent: EventEmitter<void>;
|
59
|
+
/**
|
60
|
+
* Событие нажатия на кнопку "В корзину".
|
61
|
+
*/
|
62
|
+
readonly clickAddToCartEvent: EventEmitter<ScProduct>;
|
63
|
+
/**
|
64
|
+
* Событие нажатия на кнопку очистки количества товара.
|
65
|
+
*/
|
66
|
+
readonly clickClearEvent: EventEmitter<ScCartItem>;
|
67
|
+
/**
|
68
|
+
* Событие нажатия на карточку товара.
|
69
|
+
*/
|
70
|
+
readonly clickCardEvent: EventEmitter<void>;
|
71
|
+
/**
|
72
|
+
* Событие нажатия на историю цен.
|
73
|
+
*/
|
74
|
+
readonly clickPriceHistoryEvent: EventEmitter<void>;
|
75
|
+
/**
|
76
|
+
* {@link Observable} изменения количества товара в корзине.
|
77
|
+
*/
|
78
|
+
readonly quantityValueChanges: Observable<number | null>;
|
79
|
+
/**
|
80
|
+
* Экземпляр класса-помощника для работы со значениями единиц измерения товара.
|
81
|
+
*/
|
82
|
+
protected readonly unitsHelper: ScUnitsHelper;
|
83
|
+
/**
|
84
|
+
* Хелпер для работы с изображениями товара.
|
85
|
+
*/
|
86
|
+
private readonly imageHelper;
|
87
|
+
/**
|
88
|
+
* Путь до изображения 'Товар не найден'.
|
89
|
+
*/
|
90
|
+
private readonly pathImageNotFound;
|
91
|
+
/**
|
92
|
+
* Позиция товара в корзине.
|
93
|
+
*
|
94
|
+
* TODO: Сделать товар в корзине наблюдаемой переменной после реализации TASK:[#7144].
|
95
|
+
*/
|
96
|
+
private _cartItem?;
|
97
|
+
/**
|
98
|
+
* Признак, что нужно показать скелетон.
|
99
|
+
*/
|
100
|
+
get skeletonVisible(): boolean;
|
101
|
+
/**
|
102
|
+
* Возвращает ссылку на preview-изображение карточки товара.
|
103
|
+
*/
|
104
|
+
getCardImagePreview(): string;
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractScPriceCard, never>;
|
106
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractScPriceCard, never, never, { "cartItem": { "alias": "cartItem"; "required": false; }; "product": { "alias": "product"; "required": false; }; "showQuantityControl": { "alias": "showQuantityControl"; "required": false; }; }, { "clickFavoriteEvent": "clickFavoriteEvent"; "clickAddToCartEvent": "clickAddToCartEvent"; "clickClearEvent": "clickClearEvent"; "clickCardEvent": "clickCardEvent"; "clickPriceHistoryEvent": "clickPriceHistoryEvent"; "quantityValueChanges": "quantityValueChanges"; }, never, never, false, never>;
|
107
|
+
}
|
package/directives/index.d.ts
CHANGED
@@ -1,2 +1,6 @@
|
|
1
|
-
export * from './
|
2
|
-
export * from './
|
1
|
+
export * from './next-input-focus/sc-next-input-focus.directive';
|
2
|
+
export * from './next-input-focus/sc-next-input-focus.module';
|
3
|
+
export * from './abstract-price-card/abstract-sc-price-card.directive';
|
4
|
+
export * from './tel-link/sc-tel-link.directive';
|
5
|
+
export * from './tel-link/sc-tel-link.module';
|
6
|
+
export * from './terminal-link/sc-terminal-link.directive';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* Директива для перехода по нажатию клавиши enter на следующее поле ввода формы.
|
4
|
+
*/
|
5
|
+
export declare class ScNextInputFocusDirective {
|
6
|
+
/**
|
7
|
+
* Все поля ввода внутри формы, на которой применяется данная директива.
|
8
|
+
*/
|
9
|
+
private focusableElements;
|
10
|
+
/**
|
11
|
+
* Слушатель нажатия на клавишу enter. Предотвращает событие submit, выполняет смену фокуса на следующее поле ввода TuiFocusableElementAccessor.
|
12
|
+
*
|
13
|
+
* @param event Объект события нажатия на клавишу.
|
14
|
+
*/
|
15
|
+
onFormKeyDownEnter(event: KeyboardEvent): void;
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScNextInputFocusDirective, never>;
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScNextInputFocusDirective, "form[ScNextInputFocus]", never, {}, {}, ["focusableElements"], never, false, never>;
|
18
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./sc-next-input-focus.directive";
|
3
|
+
/**
|
4
|
+
* Модуль директивы для перехода по нажатию клавиши enter на следующее поле ввода формы.
|
5
|
+
*/
|
6
|
+
export declare class ScNextInputFocusModule {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScNextInputFocusModule, never>;
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScNextInputFocusModule, [typeof i1.ScNextInputFocusDirective], never, [typeof i1.ScNextInputFocusDirective]>;
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScNextInputFocusModule>;
|
10
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* Директива, которая управляет свойствами ссылки номера телефона для валидации значения номера телефона.
|
5
|
+
*/
|
6
|
+
export declare class ScTelLinkDirective implements OnChanges {
|
7
|
+
/**
|
8
|
+
* Экземпляр базового класса для реализации пользовательского рендеринга.
|
9
|
+
*/
|
10
|
+
private readonly renderer;
|
11
|
+
/**
|
12
|
+
* Ссылка на HTML элемент тега `<a>`.
|
13
|
+
*/
|
14
|
+
private elementReference;
|
15
|
+
/**
|
16
|
+
* Номер телефона, который будет проверен на валидность.
|
17
|
+
*/
|
18
|
+
scTelLink: string;
|
19
|
+
/** @inheritDoc */
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
21
|
+
/**
|
22
|
+
* Обновляет состояние ссылки на основе валидности номера телефона.
|
23
|
+
*/
|
24
|
+
private updateLinkState;
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScTelLinkDirective, never>;
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScTelLinkDirective, "[scTelLink]", never, { "scTelLink": { "alias": "scTelLink"; "required": false; }; }, {}, never, never, true, never>;
|
27
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "../../pipes/sc-formatted-phone";
|
3
|
+
import * as i2 from "./sc-tel-link.directive";
|
4
|
+
/**
|
5
|
+
* Модуль валидации значения номера телефона.
|
6
|
+
*/
|
7
|
+
export declare class ScTelLinkModule {
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScTelLinkModule, never>;
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScTelLinkModule, never, [typeof i1.ScFormatePhonePipe, typeof i2.ScTelLinkDirective], [typeof i1.ScFormatePhonePipe, typeof i2.ScTelLinkDirective]>;
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScTelLinkModule>;
|
11
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* Директива открытия диалогового окна с QRCode для ссылок `tel:` и `mailto:` на терминале.
|
4
|
+
*/
|
5
|
+
export declare class ScTerminalLinkDirective {
|
6
|
+
/**
|
7
|
+
* Ссылка на HTML элемент тега `<a>`.
|
8
|
+
*/
|
9
|
+
private elementReference;
|
10
|
+
/**
|
11
|
+
* Сервис для работы с диалоговыми окнами TuiDialog.
|
12
|
+
*/
|
13
|
+
private dialog;
|
14
|
+
/**
|
15
|
+
* Провайдер данных о терминале.
|
16
|
+
*/
|
17
|
+
private terminal;
|
18
|
+
/**
|
19
|
+
* Обработчик клика по ссылке.
|
20
|
+
*
|
21
|
+
* @param event Событие клика.
|
22
|
+
*/
|
23
|
+
onClick(event: Event): void;
|
24
|
+
/**
|
25
|
+
* Открывает диалоговое окно с QR-кодом.
|
26
|
+
*/
|
27
|
+
openQRCodeDialog(): void;
|
28
|
+
/**
|
29
|
+
* Проверяет ведёт ли ссылка на телефон или адрес электронной почты.
|
30
|
+
*/
|
31
|
+
private isLinkTelOrMail;
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScTerminalLinkDirective, never>;
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScTerminalLinkDirective, "a[href]", never, {}, {}, never, never, true, never>;
|
34
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Directive } from '@angular/core';
|
2
|
+
import { PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* Директива содержимого компонента, позволяющего отображать и скрывать содержимое в разделах.
|
6
|
+
*/
|
7
|
+
export class ScAccordionContentDirective extends PolymorpheusTemplate {
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: ScAccordionContentDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
9
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.3", type: ScAccordionContentDirective, selector: "ng-template[scAccordionContent]", usesInheritance: true, ngImport: i0 }); }
|
10
|
+
}
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: ScAccordionContentDirective, decorators: [{
|
12
|
+
type: Directive,
|
13
|
+
args: [{
|
14
|
+
selector: 'ng-template[scAccordionContent]',
|
15
|
+
}]
|
16
|
+
}] });
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2MtYWNjb3JkaW9uLWNvbnRlbnQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvY2xpZW50LXVpL2FjY29yZGlvbi9zYy1hY2NvcmRpb24tY29udGVudC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQzs7QUFFOUQ7O0dBRUc7QUFJSCxNQUFNLE9BQU8sMkJBQTRCLFNBQVEsb0JBQTZDOzhHQUFqRiwyQkFBMkI7a0dBQTNCLDJCQUEyQjs7MkZBQTNCLDJCQUEyQjtrQkFIdkMsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsaUNBQWlDO2lCQUM5QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgUG9seW1vcnBoZXVzVGVtcGxhdGUgfSBmcm9tICdAdGFpZ2EtdWkvcG9seW1vcnBoZXVzJztcblxuLyoqXG4gKiDQlNC40YDQtdC60YLQuNCy0LAg0YHQvtC00LXRgNC20LjQvNC+0LPQviDQutC+0LzQv9C+0L3QtdC90YLQsCwg0L/QvtC30LLQvtC70Y/RjtGJ0LXQs9C+INC+0YLQvtCx0YDQsNC20LDRgtGMINC4INGB0LrRgNGL0LLQsNGC0Ywg0YHQvtC00LXRgNC20LjQvNC+0LUg0LIg0YDQsNC30LTQtdC70LDRhS5cbiAqL1xuQERpcmVjdGl2ZSh7XG4gICAgc2VsZWN0b3I6ICduZy10ZW1wbGF0ZVtzY0FjY29yZGlvbkNvbnRlbnRdJyxcbn0pXG5leHBvcnQgY2xhc3MgU2NBY2NvcmRpb25Db250ZW50RGlyZWN0aXZlIGV4dGVuZHMgUG9seW1vcnBoZXVzVGVtcGxhdGU8UmVjb3JkPHN0cmluZywgdW5rbm93bj4+IHt9XG4iXX0=
|