@snabcentr/client-ui 4.1.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/index.d.ts +3 -0
- package/accordion/sc-accordion-content.directive.d.ts +9 -0
- package/accordion/sc-accordion.component.d.ts +56 -0
- package/accordion/sc-accordion.module.d.ts +15 -0
- package/auth/enums/auth-method.d.ts +13 -0
- package/auth/index.d.ts +8 -0
- package/auth/interfaces/api-error-response.d.ts +13 -0
- package/auth/interfaces/index.d.ts +3 -0
- package/auth/interfaces/sc-bank-account-form-group.d.ts +11 -0
- package/auth/interfaces/sc-contact-form-group.d.ts +10 -0
- package/auth/sc-auth.module.d.ts +26 -0
- package/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.d.ts +39 -0
- package/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.d.ts +41 -0
- package/auth/sc-sign-in-form/sc-sign-in-form.component.d.ts +53 -0
- package/auth/sc-simple-sign-up-form/sc-simple-sign-up-form.component.d.ts +106 -0
- package/auth/sign-up-form/sc-sign-up-form.component.d.ts +161 -0
- package/banner/index.d.ts +2 -0
- package/banner/sc-banner.component.d.ts +88 -0
- package/banner/sc-banner.module.d.ts +18 -0
- package/brands-list/index.d.ts +2 -0
- package/brands-list/sc-brands-list.component.d.ts +15 -0
- package/brands-list/sc-brands-list.module.d.ts +12 -0
- package/cart/add-or-editing-cart-item-dialog/add-or-editing-cart-item-form/sc-add-or-editing-cart-item-form.component.d.ts +102 -0
- package/cart/add-or-editing-cart-item-dialog/index.d.ts +2 -0
- package/cart/add-or-editing-cart-item-dialog/sc-add-or-editing-cart-item-dialog.component.d.ts +48 -0
- package/cart/cart-item/sc-cart-item.component.d.ts +25 -0
- package/cart/index.d.ts +3 -0
- package/cart/sc-cart-add-products-from-csv-dialog/sc-cart-add-products-from-csv-dialog.component.d.ts +62 -0
- package/catalog/category-card/sc-category-card.component.d.ts +76 -0
- package/catalog/cost-with-discount/cost-with-discount.component.d.ts +23 -0
- package/catalog/download-price-list/sc-download-price-list.component.d.ts +38 -0
- package/catalog/hover-image-carousel/sc-hover-image-carousel.component.d.ts +48 -0
- package/catalog/index.d.ts +12 -0
- package/catalog/input-quantity/sc-input-quantity.component.d.ts +82 -0
- package/catalog/notify-when-in-stock-dialog/index.d.ts +2 -0
- package/catalog/notify-when-in-stock-dialog/sc-notify-when-in-stock-dialog.component.d.ts +90 -0
- package/catalog/notify-when-in-stock-dialog/sc-product-in-all-warehouses.pipe.d.ts +22 -0
- package/catalog/price-card/sc-price-card.component.d.ts +18 -0
- package/catalog/price-card-inline/sc-price-card-inline.component.d.ts +10 -0
- package/catalog/price-history/sc-price-history.component.d.ts +88 -0
- package/catalog/price-list-pagination/sc-price-list-pagination.component.d.ts +40 -0
- package/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.d.ts +47 -0
- package/catalog/sc-catalog.module.d.ts +29 -0
- package/catalog/sc-favorite-button/sc-favorite-button.component.d.ts +25 -0
- package/contacts/add-contact-dialog/sc-add-contact-dialog.component.d.ts +49 -0
- package/contacts/contacts-accordion/sc-contacts-accordion.component.d.ts +23 -0
- package/contacts/index.d.ts +7 -0
- package/contacts/manager-card/sc-manager-card.component.d.ts +22 -0
- package/contacts/manager-card-push/sc-manager-card-push.component.d.ts +18 -0
- package/contacts/new-contact-form/sc-new-contact-form.component.d.ts +28 -0
- package/contacts/sc-contacts.module.d.ts +28 -0
- package/contacts/tokens/index.d.ts +2 -0
- package/contacts/tokens/sc-manager-qr-handler.token.d.ts +6 -0
- package/contacts/tokens/sc-show-help-notification-in-phone-input.token.d.ts +5 -0
- package/contragents/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.d.ts +49 -0
- package/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.d.ts +161 -0
- package/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.d.ts +62 -0
- package/contragents/contragents-accordion/sc-contragents-accordion.component.d.ts +49 -0
- package/contragents/index.d.ts +7 -0
- package/contragents/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.d.ts +64 -0
- package/contragents/new-contragent-form/sc-new-contragent-form.component.d.ts +125 -0
- package/contragents/sc-contragents.module.d.ts +27 -0
- package/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.d.ts +141 -0
- package/delivery-address/delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component.d.ts +50 -0
- package/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.d.ts +49 -0
- package/delivery-address/index.d.ts +4 -0
- package/delivery-address/sc-delivery-address.module.d.ts +26 -0
- package/dialogs/index.d.ts +1 -0
- package/dialogs/sc-resource-preview/sc-resource-preview.component.d.ts +42 -0
- package/directives/abstract-price-card/abstract-sc-price-card.directive.d.ts +136 -0
- package/directives/index.d.ts +7 -0
- package/directives/links/index.d.ts +4 -0
- package/directives/links/sc-email-link.directive.d.ts +25 -0
- package/directives/links/sc-link-location.d.ts +5 -0
- package/directives/links/sc-links.d.ts +7 -0
- package/directives/links/sc-tel-link.directive.d.ts +40 -0
- package/directives/next-input-focus/sc-next-input-focus.directive.d.ts +18 -0
- package/directives/next-input-focus/sc-next-input-focus.module.d.ts +10 -0
- package/directives/sc-date-value-transformer.directive.d.ts +8 -0
- package/directives/select-on-focusin/sc-select-on-focusin.directive.d.ts +14 -0
- package/directives/terminal-link/sc-terminal-link.directive.d.ts +34 -0
- package/error-handler/consts/error-change-handler.providers.d.ts +5 -0
- package/error-handler/error-block-status/error-block-status.component.d.ts +37 -0
- package/error-handler/index.d.ts +4 -0
- package/error-handler/interfaces/i-block-error.d.ts +17 -0
- package/error-handler/sc-error-handler.component.d.ts +40 -0
- package/esm2022/accordion/index.mjs +4 -0
- package/esm2022/accordion/sc-accordion-content.directive.mjs +17 -0
- package/esm2022/accordion/sc-accordion.component.mjs +92 -0
- package/esm2022/accordion/sc-accordion.module.mjs +26 -0
- package/esm2022/auth/enums/auth-method.mjs +15 -0
- package/esm2022/auth/index.mjs +9 -0
- package/esm2022/auth/interfaces/api-error-response.mjs +2 -0
- package/esm2022/auth/interfaces/index.mjs +4 -0
- package/esm2022/auth/interfaces/sc-bank-account-form-group.mjs +2 -0
- package/esm2022/auth/interfaces/sc-contact-form-group.mjs +2 -0
- package/esm2022/auth/sc-auth.module.mjs +99 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.mjs +87 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +86 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form.component.mjs +89 -0
- package/esm2022/auth/sc-simple-sign-up-form/sc-simple-sign-up-form.component.mjs +187 -0
- package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +333 -0
- package/esm2022/banner/index.mjs +3 -0
- package/esm2022/banner/sc-banner.component.mjs +143 -0
- package/esm2022/banner/sc-banner.module.mjs +30 -0
- package/esm2022/brands-list/index.mjs +3 -0
- package/esm2022/brands-list/sc-brands-list.component.mjs +24 -0
- package/esm2022/brands-list/sc-brands-list.module.mjs +22 -0
- package/esm2022/cart/add-or-editing-cart-item-dialog/add-or-editing-cart-item-form/sc-add-or-editing-cart-item-form.component.mjs +233 -0
- package/esm2022/cart/add-or-editing-cart-item-dialog/index.mjs +3 -0
- package/esm2022/cart/add-or-editing-cart-item-dialog/sc-add-or-editing-cart-item-dialog.component.mjs +74 -0
- package/esm2022/cart/cart-item/sc-cart-item.component.mjs +74 -0
- package/esm2022/cart/index.mjs +4 -0
- package/esm2022/cart/sc-cart-add-products-from-csv-dialog/sc-cart-add-products-from-csv-dialog.component.mjs +110 -0
- package/esm2022/catalog/category-card/sc-category-card.component.mjs +102 -0
- package/esm2022/catalog/cost-with-discount/cost-with-discount.component.mjs +38 -0
- package/esm2022/catalog/download-price-list/sc-download-price-list.component.mjs +56 -0
- package/esm2022/catalog/hover-image-carousel/sc-hover-image-carousel.component.mjs +76 -0
- package/esm2022/catalog/index.mjs +13 -0
- package/esm2022/catalog/input-quantity/sc-input-quantity.component.mjs +177 -0
- package/esm2022/catalog/notify-when-in-stock-dialog/index.mjs +3 -0
- package/esm2022/catalog/notify-when-in-stock-dialog/sc-notify-when-in-stock-dialog.component.mjs +173 -0
- package/esm2022/catalog/notify-when-in-stock-dialog/sc-product-in-all-warehouses.pipe.mjs +35 -0
- package/esm2022/catalog/price-card/sc-price-card.component.mjs +52 -0
- package/esm2022/catalog/price-card-inline/sc-price-card-inline.component.mjs +56 -0
- package/esm2022/catalog/price-history/sc-price-history.component.mjs +140 -0
- package/esm2022/catalog/price-list-pagination/sc-price-list-pagination.component.mjs +65 -0
- package/esm2022/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.mjs +54 -0
- package/esm2022/catalog/sc-catalog.module.mjs +125 -0
- package/esm2022/catalog/sc-favorite-button/sc-favorite-button.component.mjs +42 -0
- package/esm2022/contacts/add-contact-dialog/sc-add-contact-dialog.component.mjs +91 -0
- package/esm2022/contacts/contacts-accordion/sc-contacts-accordion.component.mjs +38 -0
- package/esm2022/contacts/index.mjs +8 -0
- package/esm2022/contacts/manager-card/sc-manager-card.component.mjs +58 -0
- package/esm2022/contacts/manager-card-push/sc-manager-card-push.component.mjs +28 -0
- package/esm2022/contacts/new-contact-form/sc-new-contact-form.component.mjs +37 -0
- package/esm2022/contacts/sc-contacts.module.mjs +92 -0
- package/esm2022/contacts/tokens/index.mjs +3 -0
- package/esm2022/contacts/tokens/sc-manager-qr-handler.token.mjs +24 -0
- package/esm2022/contacts/tokens/sc-show-help-notification-in-phone-input.token.mjs +7 -0
- package/esm2022/contragents/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.mjs +81 -0
- package/esm2022/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.mjs +278 -0
- package/esm2022/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +75 -0
- package/esm2022/contragents/contragents-accordion/sc-contragents-accordion.component.mjs +69 -0
- package/esm2022/contragents/index.mjs +8 -0
- package/esm2022/contragents/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.mjs +72 -0
- package/esm2022/contragents/new-contragent-form/sc-new-contragent-form.component.mjs +242 -0
- package/esm2022/contragents/sc-contragents.module.mjs +118 -0
- package/esm2022/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.mjs +250 -0
- package/esm2022/delivery-address/delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component.mjs +60 -0
- package/esm2022/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.mjs +69 -0
- package/esm2022/delivery-address/index.mjs +5 -0
- package/esm2022/delivery-address/sc-delivery-address.module.mjs +99 -0
- package/esm2022/dialogs/index.mjs +2 -0
- package/esm2022/dialogs/sc-resource-preview/sc-resource-preview.component.mjs +68 -0
- package/esm2022/directives/abstract-price-card/abstract-sc-price-card.directive.mjs +170 -0
- package/esm2022/directives/index.mjs +8 -0
- package/esm2022/directives/links/index.mjs +5 -0
- package/esm2022/directives/links/sc-email-link.directive.mjs +49 -0
- package/esm2022/directives/links/sc-link-location.mjs +2 -0
- package/esm2022/directives/links/sc-links.mjs +8 -0
- package/esm2022/directives/links/sc-tel-link.directive.mjs +79 -0
- package/esm2022/directives/next-input-focus/sc-next-input-focus.directive.mjs +43 -0
- package/esm2022/directives/next-input-focus/sc-next-input-focus.module.mjs +19 -0
- package/esm2022/directives/sc-date-value-transformer.directive.mjs +30 -0
- package/esm2022/directives/select-on-focusin/sc-select-on-focusin.directive.mjs +31 -0
- package/esm2022/directives/terminal-link/sc-terminal-link.directive.mjs +69 -0
- package/esm2022/error-handler/consts/error-change-handler.providers.mjs +8 -0
- package/esm2022/error-handler/error-block-status/error-block-status.component.mjs +76 -0
- package/esm2022/error-handler/index.mjs +5 -0
- package/esm2022/error-handler/interfaces/i-block-error.mjs +2 -0
- package/esm2022/error-handler/sc-error-handler.component.mjs +58 -0
- package/esm2022/feedback/feedback-form/sc-feedback-form.component.mjs +344 -0
- package/esm2022/feedback/gratitude/sc-gratitude.component.mjs +32 -0
- package/esm2022/feedback/index.mjs +4 -0
- package/esm2022/feedback/interfaces/index.mjs +2 -0
- package/esm2022/feedback/interfaces/sc-feedback-form-config.mjs +2 -0
- package/esm2022/files/directives/index.mjs +3 -0
- package/esm2022/files/directives/tree-top.directive.mjs +63 -0
- package/esm2022/files/directives/tree.directive.mjs +47 -0
- package/esm2022/files/file-tree-item/file-tree-item.component.mjs +18 -0
- package/esm2022/files/files-and-documents/files-and-documents.component.mjs +61 -0
- package/esm2022/files/files-and-documents.module.mjs +28 -0
- package/esm2022/files/index.mjs +6 -0
- package/esm2022/files/interfaces/tree-node.mjs +2 -0
- package/esm2022/files/services/index.mjs +3 -0
- package/esm2022/files/services/tree-icon.service.mjs +49 -0
- package/esm2022/files/services/tree-loader.service.mjs +62 -0
- package/esm2022/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs +155 -0
- package/esm2022/form-fields/form-fields.module.mjs +69 -0
- package/esm2022/form-fields/index.mjs +4 -0
- package/esm2022/form-fields/suggestion-field/sc-suggestion-field.component.mjs +175 -0
- package/esm2022/helpers/index.mjs +2 -0
- package/esm2022/helpers/sc-px-converter.mjs +27 -0
- package/esm2022/icons/index.mjs +2 -0
- package/esm2022/icons/sc-client-ui-icons-name.mjs +99 -0
- package/esm2022/loader/index.mjs +2 -0
- package/esm2022/loader/sc-i-loader.mjs +2 -0
- package/esm2022/masks/index.mjs +8 -0
- package/esm2022/masks/sc-account-number-mask.mjs +7 -0
- package/esm2022/masks/sc-bic-mask.mjs +7 -0
- package/esm2022/masks/sc-correspondent-account-mask.mjs +7 -0
- package/esm2022/masks/sc-inn-mask.mjs +13 -0
- package/esm2022/masks/sc-kpp-mask.mjs +7 -0
- package/esm2022/masks/sc-okpo-mask.mjs +13 -0
- package/esm2022/masks/sc-phone-verification-code-mask.mjs +7 -0
- package/esm2022/models/i-sc-image.mjs +2 -0
- package/esm2022/models/index.mjs +2 -0
- package/esm2022/news/index.mjs +4 -0
- package/esm2022/news/news-card/sc-news-card.component.mjs +34 -0
- package/esm2022/news/news-card-skeleton/sc-news-card-skeleton.component.mjs +31 -0
- package/esm2022/news/sc-news.module.mjs +26 -0
- package/esm2022/order/index.mjs +4 -0
- package/esm2022/order/order-item-mobile/sc-order-item-mobile.component.mjs +60 -0
- package/esm2022/order/sc-order.module.mjs +53 -0
- package/esm2022/order/sc-payment-status/sc-payment-status.component.mjs +35 -0
- package/esm2022/pages/frequently-asked-questions/sc-frequently-asked-questions.component.mjs +28 -0
- package/esm2022/pages/frequently-asked-questions/sc-page-size-options.mjs +6 -0
- package/esm2022/pages/frequently-asked-questions-group-selector/sc-frequently-asked-questions-group-selector.component.mjs +59 -0
- package/esm2022/pages/frequently-asked-questions-with-groups/sc-frequently-asked-questions-with-groups.component.mjs +106 -0
- package/esm2022/pages/index.mjs +6 -0
- package/esm2022/pages/personal-data-processing-policy/sc-personal-data-processing-policy.component.mjs +30 -0
- package/esm2022/pages/public-offer/sc-public-offer.component.mjs +32 -0
- package/esm2022/pipes/index.mjs +3 -0
- package/esm2022/pipes/sc-format-date.mjs +33 -0
- package/esm2022/pipes/sc-phone-format.mjs +44 -0
- package/esm2022/profile/index.mjs +3 -0
- package/esm2022/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.mjs +175 -0
- package/esm2022/profile/sc-profile.module.mjs +76 -0
- package/esm2022/providers/date-value-transformer/index.mjs +4 -0
- package/esm2022/providers/date-value-transformer/sc-date-value-transformer-types.mjs +2 -0
- package/esm2022/providers/date-value-transformer/sc-date-value-transformer-with-end-time.mjs +26 -0
- package/esm2022/providers/date-value-transformer/sc-date-value-transformer-with-start-time.mjs +37 -0
- package/esm2022/providers/index.mjs +12 -0
- package/esm2022/providers/sc-allow-select-terminated.mjs +6 -0
- package/esm2022/providers/sc-country-ids.mjs +6 -0
- package/esm2022/providers/sc-date-formatter.mjs +12 -0
- package/esm2022/providers/sc-date-value-transformer.mjs +12 -0
- package/esm2022/providers/sc-help-notification-close.mjs +7 -0
- package/esm2022/providers/sc-help-notification-limit.mjs +6 -0
- package/esm2022/providers/sc-max-files-in-form-input.mjs +6 -0
- package/esm2022/providers/sc-notify-when-in-stock-required-fields.mjs +6 -0
- package/esm2022/providers/sc-page-size-options.mjs +6 -0
- package/esm2022/providers/sc-user-providers.mjs +33 -0
- package/esm2022/providers/sc-verification-code-timeout.mjs +6 -0
- package/esm2022/public-api.mjs +35 -0
- package/esm2022/qrcode/index.mjs +3 -0
- package/esm2022/qrcode/qrcode-dialog/sc-qrcode-dialog.component.mjs +58 -0
- package/esm2022/qrcode/sc-qrcode.module.mjs +25 -0
- package/esm2022/samples/index.mjs +5 -0
- package/esm2022/samples/interfaces/index.mjs +3 -0
- package/esm2022/samples/interfaces/sc-i-preview-sample.mjs +2 -0
- package/esm2022/samples/interfaces/sc-preview-mosquito-config.mjs +2 -0
- package/esm2022/samples/preview-sample/sc-preview-sample.component.mjs +42 -0
- package/esm2022/samples/sc-preview-samples-mosquito/sc-preview-samples-mosquito.component.mjs +63 -0
- package/esm2022/samples/sc-sample.module.mjs +68 -0
- package/esm2022/services/index.mjs +2 -0
- package/esm2022/services/sc-help-notification.service.mjs +90 -0
- package/esm2022/share-button/index.mjs +3 -0
- package/esm2022/share-button/sc-share-button.component.mjs +35 -0
- package/esm2022/share-button/sc-share-button.module.mjs +22 -0
- package/esm2022/snabcentr-client-ui.mjs +5 -0
- package/esm2022/user/index.mjs +6 -0
- package/esm2022/user/reset-user-password/sc-reset-user-password.component.mjs +75 -0
- package/esm2022/user/sc-user.module.mjs +89 -0
- package/esm2022/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +122 -0
- package/esm2022/user/user-managers/sc-user-managers.component.mjs +42 -0
- package/esm2022/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +106 -0
- package/esm2022/validators/index.mjs +7 -0
- package/esm2022/validators/sc-at-least-one-required-validator.mjs +25 -0
- package/esm2022/validators/sc-bic-validator.mjs +10 -0
- package/esm2022/validators/sc-correspondent-account-validator.mjs +10 -0
- package/esm2022/validators/sc-password-confirm-matching-validator.mjs +17 -0
- package/esm2022/validators/sc-phone-validator.mjs +14 -0
- package/esm2022/validators/step-validator.mjs +18 -0
- package/esm2022/verification/index.mjs +4 -0
- package/esm2022/verification/providers/index.mjs +3 -0
- package/esm2022/verification/providers/sc-phone-approve-code-sender.provider.mjs +12 -0
- package/esm2022/verification/providers/sc-phone-approve-code-sender.token.mjs +7 -0
- package/esm2022/verification/sc-verification.module.mjs +88 -0
- package/esm2022/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +277 -0
- package/feedback/feedback-form/sc-feedback-form.component.d.ts +163 -0
- package/feedback/gratitude/sc-gratitude.component.d.ts +20 -0
- package/feedback/index.d.ts +3 -0
- package/feedback/interfaces/index.d.ts +1 -0
- package/feedback/interfaces/sc-feedback-form-config.d.ts +23 -0
- package/fesm2022/snabcentr-client-ui.mjs +3980 -3516
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/files/directives/index.d.ts +2 -0
- package/files/directives/tree-top.directive.d.ts +33 -0
- package/files/directives/tree.directive.d.ts +35 -0
- package/files/file-tree-item/file-tree-item.component.d.ts +9 -0
- package/files/files-and-documents/files-and-documents.component.d.ts +27 -0
- package/files/files-and-documents.module.d.ts +17 -0
- package/files/index.d.ts +5 -0
- package/files/interfaces/tree-node.d.ts +29 -0
- package/files/services/index.d.ts +2 -0
- package/files/services/tree-icon.service.d.ts +23 -0
- package/files/services/tree-loader.service.d.ts +43 -0
- package/form-fields/addresses-selection-field/sc-addresses-selection-field.component.d.ts +78 -0
- package/form-fields/form-fields.module.d.ts +19 -0
- package/form-fields/index.d.ts +3 -0
- package/form-fields/suggestion-field/sc-suggestion-field.component.d.ts +73 -0
- package/helpers/index.d.ts +1 -0
- package/helpers/sc-px-converter.d.ts +15 -0
- package/icons/index.d.ts +1 -0
- package/icons/sc-client-ui-icons-name.d.ts +4 -0
- package/index.d.ts +3 -4351
- package/loader/index.d.ts +1 -0
- package/loader/sc-i-loader.d.ts +9 -0
- package/masks/index.d.ts +7 -0
- package/masks/sc-account-number-mask.d.ts +5 -0
- package/masks/sc-bic-mask.d.ts +5 -0
- package/masks/sc-correspondent-account-mask.d.ts +5 -0
- package/masks/sc-inn-mask.d.ts +9 -0
- package/masks/sc-kpp-mask.d.ts +5 -0
- package/masks/sc-okpo-mask.d.ts +9 -0
- package/masks/sc-phone-verification-code-mask.d.ts +5 -0
- package/models/i-sc-image.d.ts +17 -0
- package/models/index.d.ts +1 -0
- package/news/index.d.ts +3 -0
- package/news/news-card/sc-news-card.component.d.ts +22 -0
- package/news/news-card-skeleton/sc-news-card-skeleton.component.d.ts +16 -0
- package/news/sc-news.module.d.ts +16 -0
- package/order/index.d.ts +3 -0
- package/order/order-item-mobile/sc-order-item-mobile.component.d.ts +39 -0
- package/order/sc-order.module.d.ts +19 -0
- package/order/sc-payment-status/sc-payment-status.component.d.ts +25 -0
- package/package.json +3 -1
- package/pages/frequently-asked-questions/sc-frequently-asked-questions.component.d.ts +18 -0
- package/pages/frequently-asked-questions/sc-page-size-options.d.ts +5 -0
- package/pages/frequently-asked-questions-group-selector/sc-frequently-asked-questions-group-selector.component.d.ts +28 -0
- package/pages/frequently-asked-questions-with-groups/sc-frequently-asked-questions-with-groups.component.d.ts +79 -0
- package/pages/index.d.ts +5 -0
- package/pages/personal-data-processing-policy/sc-personal-data-processing-policy.component.d.ts +17 -0
- package/pages/public-offer/sc-public-offer.component.d.ts +22 -0
- package/pipes/index.d.ts +2 -0
- package/pipes/sc-format-date.d.ts +20 -0
- package/pipes/sc-phone-format.d.ts +21 -0
- package/profile/index.d.ts +2 -0
- package/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.d.ts +126 -0
- package/profile/sc-profile.module.d.ts +24 -0
- package/providers/date-value-transformer/index.d.ts +3 -0
- package/providers/date-value-transformer/sc-date-value-transformer-types.d.ts +9 -0
- package/providers/date-value-transformer/sc-date-value-transformer-with-end-time.d.ts +16 -0
- package/providers/date-value-transformer/sc-date-value-transformer-with-start-time.d.ts +22 -0
- package/providers/index.d.ts +11 -0
- package/providers/sc-allow-select-terminated.d.ts +5 -0
- package/providers/sc-country-ids.d.ts +5 -0
- package/providers/sc-date-formatter.d.ts +6 -0
- package/providers/sc-date-value-transformer.d.ts +5 -0
- package/providers/sc-help-notification-close.d.ts +6 -0
- package/providers/sc-help-notification-limit.d.ts +5 -0
- package/providers/sc-max-files-in-form-input.d.ts +5 -0
- package/providers/sc-notify-when-in-stock-required-fields.d.ts +5 -0
- package/providers/sc-page-size-options.d.ts +5 -0
- package/providers/sc-user-providers.d.ts +21 -0
- package/providers/sc-verification-code-timeout.d.ts +5 -0
- package/public-api.d.ts +31 -0
- package/qrcode/index.d.ts +2 -0
- package/qrcode/qrcode-dialog/sc-qrcode-dialog.component.d.ts +37 -0
- package/qrcode/sc-qrcode.module.d.ts +14 -0
- package/release_notes.tmp +2 -8
- package/samples/index.d.ts +4 -0
- package/samples/interfaces/index.d.ts +2 -0
- package/samples/interfaces/sc-i-preview-sample.d.ts +56 -0
- package/samples/interfaces/sc-preview-mosquito-config.d.ts +62 -0
- package/samples/preview-sample/sc-preview-sample.component.d.ts +30 -0
- package/samples/sc-preview-samples-mosquito/sc-preview-samples-mosquito.component.d.ts +50 -0
- package/samples/sc-sample.module.d.ts +19 -0
- package/services/index.d.ts +1 -0
- package/services/sc-help-notification.service.d.ts +64 -0
- package/share-button/index.d.ts +2 -0
- package/share-button/sc-share-button.component.d.ts +22 -0
- package/share-button/sc-share-button.module.d.ts +12 -0
- package/styles/tailwind/tailwind.scss +180 -0
- package/user/index.d.ts +5 -0
- package/user/reset-user-password/sc-reset-user-password.component.d.ts +46 -0
- package/user/sc-user.module.d.ts +25 -0
- package/user/update-user-info-dialog/sc-update-user-info-dialog.component.d.ts +63 -0
- package/user/user-managers/sc-user-managers.component.d.ts +26 -0
- package/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.d.ts +53 -0
- package/validators/index.d.ts +6 -0
- package/validators/sc-at-least-one-required-validator.d.ts +10 -0
- package/validators/sc-bic-validator.d.ts +8 -0
- package/validators/sc-correspondent-account-validator.d.ts +8 -0
- package/validators/sc-password-confirm-matching-validator.d.ts +8 -0
- package/validators/sc-phone-validator.d.ts +5 -0
- package/validators/step-validator.d.ts +8 -0
- package/verification/index.d.ts +3 -0
- package/verification/providers/index.d.ts +2 -0
- package/verification/providers/sc-phone-approve-code-sender.provider.d.ts +6 -0
- package/verification/providers/sc-phone-approve-code-sender.token.d.ts +7 -0
- package/verification/sc-verification.module.d.ts +21 -0
- package/verification/verification-phone-check-form/sc-verification-phone-check-form.component.d.ts +149 -0
package/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.d.ts
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
3
|
+
import { ScConvertersService, ScDeliveryAddressService, ScIOrgContact, ScISuggestionAddress, ScISuggestionType, ScSuggestion, ScUserMetrikaService } from '@snabcentr/client-core';
|
4
|
+
import { TuiDialogContext } from '@taiga-ui/core';
|
5
|
+
import { TuiCountryIsoCode } from '@taiga-ui/i18n';
|
6
|
+
import { YaReadyEvent } from 'angular8-yandex-maps';
|
7
|
+
import { Observable, Subject } from 'rxjs';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
/**
|
10
|
+
* Компонент добавления адреса доставки.
|
11
|
+
*/
|
12
|
+
export declare class ScAddDeliveryAddressDialogComponent implements AfterViewInit {
|
13
|
+
private readonly deliveryAddressService;
|
14
|
+
private readonly userMetrikaService;
|
15
|
+
readonly context: TuiDialogContext<void, void>;
|
16
|
+
private readonly convertersService;
|
17
|
+
/**
|
18
|
+
* Округляет координаты до 6 цифр после запятой.
|
19
|
+
*
|
20
|
+
* @param coords Координаты точки.
|
21
|
+
*/
|
22
|
+
private static roundCoordinate;
|
23
|
+
/**
|
24
|
+
* Ссылка для автоматического управления уничтожением зависимостей.
|
25
|
+
*/
|
26
|
+
private destroyRef;
|
27
|
+
/**
|
28
|
+
* Признак того, отображается этот компонент на мобильном устройстве или нет.
|
29
|
+
*/
|
30
|
+
readonly isMobile: boolean;
|
31
|
+
/**
|
32
|
+
* Перечисление типов подсказок.
|
33
|
+
*/
|
34
|
+
readonly suggestionType: typeof ScISuggestionType;
|
35
|
+
/**
|
36
|
+
* {@link Subject} события отправки формы.
|
37
|
+
*/
|
38
|
+
readonly onSubmit$: Subject<void>;
|
39
|
+
/**
|
40
|
+
* Координаты центра карты по умолчанию.
|
41
|
+
*/
|
42
|
+
readonly defaultCenterMap: number[];
|
43
|
+
/**
|
44
|
+
* Масштаб карты по умолчанию.
|
45
|
+
*/
|
46
|
+
readonly defaultZoomMap: number;
|
47
|
+
/**
|
48
|
+
* {@link Observable} данных контактов дл помощи.
|
49
|
+
*/
|
50
|
+
protected readonly userHelpContacts$: Observable<ScIOrgContact[]>;
|
51
|
+
/**
|
52
|
+
* Признак того, что текущая страна является верной.
|
53
|
+
*/
|
54
|
+
protected readonly isDefaultCountry: Observable<boolean>;
|
55
|
+
/**
|
56
|
+
* Список стран.
|
57
|
+
*/
|
58
|
+
protected readonly countries: readonly TuiCountryIsoCode[];
|
59
|
+
/**
|
60
|
+
* {@link Observable} запроса данных добавления адрес доставки.
|
61
|
+
*/
|
62
|
+
private readonly request$;
|
63
|
+
/**
|
64
|
+
* {@link Observable} изменения состояния загрузки данных.
|
65
|
+
*/
|
66
|
+
readonly loading$: Observable<boolean>;
|
67
|
+
/**
|
68
|
+
* Группа с полями адресов.
|
69
|
+
*/
|
70
|
+
addressControl: FormControl<ScISuggestionAddress | string | null>;
|
71
|
+
/**
|
72
|
+
* Настройки карты.
|
73
|
+
*/
|
74
|
+
options: ymaps.IMapOptions;
|
75
|
+
/**
|
76
|
+
* Форма для создания адреса доставки.
|
77
|
+
*/
|
78
|
+
readonly form: FormGroup<{
|
79
|
+
address: FormControl<string | ScISuggestionAddress | null>;
|
80
|
+
coordinates: FormGroup<{
|
81
|
+
lat: FormControl<number | null>;
|
82
|
+
long: FormControl<number | null>;
|
83
|
+
}>;
|
84
|
+
contact: FormGroup<{
|
85
|
+
name: FormControl<string | null>;
|
86
|
+
phone: FormControl<string | null>;
|
87
|
+
email: FormControl<string | null>;
|
88
|
+
position: FormControl<string | null>;
|
89
|
+
}>;
|
90
|
+
}>;
|
91
|
+
/**
|
92
|
+
* Точка адреса на карте.
|
93
|
+
*/
|
94
|
+
addressPlacemark?: ymaps.Placemark;
|
95
|
+
/**
|
96
|
+
* Яндекс карта.
|
97
|
+
*/
|
98
|
+
yaMap?: ymaps.Map;
|
99
|
+
/**
|
100
|
+
* Инициализирует экземпляр класса {@link ScAddDeliveryAddressDialogComponent}.
|
101
|
+
*
|
102
|
+
* @param deliveryAddressService Сервис работы с адресами доставки.
|
103
|
+
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
104
|
+
* @param context Контекст диалогового окна, в котором открыт компонент.
|
105
|
+
* @param convertersService Сервис конвертации данных.
|
106
|
+
*/
|
107
|
+
constructor(deliveryAddressService: ScDeliveryAddressService, userMetrikaService: ScUserMetrikaService, context: TuiDialogContext<void, void>, convertersService: ScConvertersService);
|
108
|
+
/** @inheritdoc */
|
109
|
+
ngAfterViewInit(): void;
|
110
|
+
/**
|
111
|
+
* Обработчик загрузки карты на странице.
|
112
|
+
*
|
113
|
+
* @param target Экземпляр целевого объекта.
|
114
|
+
* @param target.target Экземпляр целевого объекта.
|
115
|
+
*/
|
116
|
+
onMapReadyHandle({ target }: YaReadyEvent<ymaps.Map>): void;
|
117
|
+
/**
|
118
|
+
* Обработчик выбора адреса доставки.
|
119
|
+
*
|
120
|
+
* @param suggestion Объект подсказки ареса.
|
121
|
+
*/
|
122
|
+
onSelectedAddress(suggestion: ScSuggestion): void;
|
123
|
+
/**
|
124
|
+
* Устанавливает {@link addressPlacemark} точку на определённые координаты.
|
125
|
+
*
|
126
|
+
* @param coords Координаты точки.
|
127
|
+
*/
|
128
|
+
private setGeoCoordinates;
|
129
|
+
/**
|
130
|
+
* Устанавливает {@link addressPlacemark} точку на определённые координаты.
|
131
|
+
*/
|
132
|
+
private removeGeoCoordinates;
|
133
|
+
/**
|
134
|
+
* Создаёт объект точки и устанавливает события для него.
|
135
|
+
*
|
136
|
+
* @param coords Координаты точки.
|
137
|
+
*/
|
138
|
+
private createPlacemark;
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScAddDeliveryAddressDialogComponent, never>;
|
140
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScAddDeliveryAddressDialogComponent, "sc-add-delivery-address-dialog", never, {}, {}, never, never, false, never>;
|
141
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
2
|
+
import { ScDeliveryAddressService, ScIContact, ScIDeliveryAddress } from '@snabcentr/client-core';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* Компонент адреса доставки.
|
7
|
+
*/
|
8
|
+
export declare class ScDeliveryAddressAccordionItemComponent implements OnInit {
|
9
|
+
private readonly deliveryAddressService;
|
10
|
+
/**
|
11
|
+
* Адрес доставки.
|
12
|
+
*/
|
13
|
+
deliveryAddress: ScIDeliveryAddress;
|
14
|
+
/**
|
15
|
+
* Список банковских счетов контрагента.
|
16
|
+
*/
|
17
|
+
contacts$?: Observable<ScIContact[] | null>;
|
18
|
+
/**
|
19
|
+
* Событие нажатия на кнопку удаления адреса доставки.
|
20
|
+
*/
|
21
|
+
deleteDeliveryAddressClick: EventEmitter<ScIDeliveryAddress>;
|
22
|
+
/**
|
23
|
+
* Событие нажатия на кнопку добавления контактного лица адресу доставки.
|
24
|
+
*/
|
25
|
+
addDeliveryAddressContactClick: EventEmitter<ScIDeliveryAddress>;
|
26
|
+
/**
|
27
|
+
* Событие нажатия на кнопку удаления контактного лица адреса доставки.
|
28
|
+
*/
|
29
|
+
deleteDeliveryAddressContactClick: EventEmitter<{
|
30
|
+
contact: ScIContact;
|
31
|
+
address: ScIDeliveryAddress;
|
32
|
+
}>;
|
33
|
+
/**
|
34
|
+
* Инициализирует экземпляр класса {@link ScDeliveryAddressAccordionItemComponent}.
|
35
|
+
*
|
36
|
+
* @param deliveryAddressService Сервис работы с адресами доставки.
|
37
|
+
*/
|
38
|
+
constructor(deliveryAddressService: ScDeliveryAddressService);
|
39
|
+
/** @inheritDoc */
|
40
|
+
ngOnInit(): void;
|
41
|
+
/**
|
42
|
+
* Обработчик нажатия на кнопку удаления контактного лица у адреса доставки.
|
43
|
+
*
|
44
|
+
* @param contact Контактное лицо.
|
45
|
+
* @param address Адрес доставки клиента.
|
46
|
+
*/
|
47
|
+
onDeleteContragentContactClick(contact: ScIContact, address: ScIDeliveryAddress): void;
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDeliveryAddressAccordionItemComponent, never>;
|
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
|
+
}
|
package/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.d.ts
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { ScDeliveryAddressService, ScIContact, ScIDeliveryAddress, ScIOrgContact } from '@snabcentr/client-core';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* Компонент адресов доставки.
|
7
|
+
*/
|
8
|
+
export declare class ScDeliveryAddressAccordionComponent {
|
9
|
+
private readonly deliveryAddressService;
|
10
|
+
/**
|
11
|
+
* {@link Observable} данных адресов доставки.
|
12
|
+
*/
|
13
|
+
deliveryAddress$: Observable<ScIDeliveryAddress[] | null>;
|
14
|
+
/**
|
15
|
+
* Событие нажатия на кнопку добавления адреса доставки клиента.
|
16
|
+
*/
|
17
|
+
addDeliveryAddressClick: EventEmitter<void>;
|
18
|
+
/**
|
19
|
+
* Событие нажатия на кнопку удаления адреса доставки клиента.
|
20
|
+
*/
|
21
|
+
deleteDeliveryAddressClick: EventEmitter<ScIDeliveryAddress>;
|
22
|
+
/**
|
23
|
+
* Событие нажатия на кнопку добавления контактного лица для адреса доставки.
|
24
|
+
*/
|
25
|
+
addDeliveryAddressContactClick: EventEmitter<ScIDeliveryAddress>;
|
26
|
+
/**
|
27
|
+
* Событие нажатия на кнопку удаления контактного лица у адреса доставки.
|
28
|
+
*/
|
29
|
+
deleteDeliveryAddressContactClick: EventEmitter<{
|
30
|
+
contact: ScIContact;
|
31
|
+
address: ScIDeliveryAddress;
|
32
|
+
}>;
|
33
|
+
/**
|
34
|
+
* {@link Observable} данных контактов дл помощи.
|
35
|
+
*/
|
36
|
+
protected readonly userHelpContacts$: Observable<ScIOrgContact[]>;
|
37
|
+
/**
|
38
|
+
* Признак того, что текущая страна пользователя верной.
|
39
|
+
*/
|
40
|
+
protected readonly isDefaultCountry: Observable<boolean>;
|
41
|
+
/**
|
42
|
+
* Инициализирует экземпляр класса {@link ScDeliveryAddressAccordionComponent}.
|
43
|
+
*
|
44
|
+
* @param deliveryAddressService Сервис работы с адресами доставки.
|
45
|
+
*/
|
46
|
+
constructor(deliveryAddressService: ScDeliveryAddressService);
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDeliveryAddressAccordionComponent, never>;
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDeliveryAddressAccordionComponent, "sc-delivery-address-accordion", never, {}, { "addDeliveryAddressClick": "addDeliveryAddressClick"; "deleteDeliveryAddressClick": "deleteDeliveryAddressClick"; "addDeliveryAddressContactClick": "addDeliveryAddressContactClick"; "deleteDeliveryAddressContactClick": "deleteDeliveryAddressContactClick"; }, never, never, false, never>;
|
49
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export * from './add-delivery-address-dialog/sc-add-delivery-address-dialog.component';
|
2
|
+
export * from './delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component';
|
3
|
+
export * from './delivery-address-accordion/sc-delivery-address-accordion.component';
|
4
|
+
export * from './sc-delivery-address.module';
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./delivery-address-accordion/sc-delivery-address-accordion.component";
|
3
|
+
import * as i2 from "./delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component";
|
4
|
+
import * as i3 from "./add-delivery-address-dialog/sc-add-delivery-address-dialog.component";
|
5
|
+
import * as i4 from "@angular/common";
|
6
|
+
import * as i5 from "../accordion/sc-accordion.module";
|
7
|
+
import * as i6 from "@taiga-ui/core";
|
8
|
+
import * as i7 from "@taiga-ui/cdk";
|
9
|
+
import * as i8 from "../contacts/sc-contacts.module";
|
10
|
+
import * as i9 from "@angular/forms";
|
11
|
+
import * as i10 from "@taiga-ui/kit";
|
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";
|
15
|
+
import * as i14 from "../contacts/manager-card/sc-manager-card.component";
|
16
|
+
import * as i15 from "@taiga-ui/experimental";
|
17
|
+
import * as i16 from "@taiga-ui/cdk/directives/item";
|
18
|
+
import * as i17 from "@taiga-ui/core/components/label";
|
19
|
+
/**
|
20
|
+
* Модуль для отображение адресов доставки разделами, с возможностью скрывать и отображать содержимое.
|
21
|
+
*/
|
22
|
+
export declare class ScDeliveryAddressModule {
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDeliveryAddressModule, never>;
|
24
|
+
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.TuiOptionNew, typeof i6.TuiOptionWithValue, typeof i6.TuiOptGroup, typeof i13.AngularYandexMapsModule, typeof i10.TuiElasticContainer, typeof i10.TuiButtonLoading, typeof i10.TuiPushComponent, typeof i10.TuiPushAlert, typeof i10.TuiPushDirective, typeof i6.TuiIcon, typeof i14.ScManagerCardComponent, typeof i15.TuiInputPhoneInternational, typeof i16.TuiItem, typeof i17.TuiLabel, typeof i6.TuiSelect, typeof i6.TuiTextfieldComponent, typeof i6.TuiTextfieldDirective, typeof i6.TuiTextfieldOptionsDirective, typeof i6.TuiTextfieldDropdownDirective, typeof i6.TuiTextfieldMultiComponent, typeof i10.TuiSortCountriesPipe], [typeof i1.ScDeliveryAddressAccordionComponent, typeof i3.ScAddDeliveryAddressDialogComponent]>;
|
25
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScDeliveryAddressModule>;
|
26
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './sc-resource-preview/sc-resource-preview.component';
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
2
|
+
import { TuiDialogContext } from '@taiga-ui/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* Компонент представления ресурсов.
|
6
|
+
*/
|
7
|
+
export declare class ScResourcePreviewComponent implements OnDestroy {
|
8
|
+
/**
|
9
|
+
* Название файла из URL.
|
10
|
+
*/
|
11
|
+
protected readonly name: string;
|
12
|
+
/**
|
13
|
+
* Путь к ресурсу.
|
14
|
+
*/
|
15
|
+
protected readonly src?: string;
|
16
|
+
/**
|
17
|
+
* MIME type файла {@link HTMLSourceElement}.
|
18
|
+
*/
|
19
|
+
protected readonly type?: string;
|
20
|
+
/**
|
21
|
+
* Контекст диалогового окна, в котором открыт компонент.
|
22
|
+
*/
|
23
|
+
protected readonly context: TuiDialogContext | null;
|
24
|
+
/**
|
25
|
+
* Таймер автоматического включения проигрывателя.
|
26
|
+
*/
|
27
|
+
private playAttempt?;
|
28
|
+
/**
|
29
|
+
* Проверяет что MIME type ресурса подходит для `<video>`.
|
30
|
+
*/
|
31
|
+
protected isVideoResource: () => boolean | undefined;
|
32
|
+
/**
|
33
|
+
* Обработчик события готовности видео к запуску.
|
34
|
+
*
|
35
|
+
* @param videoElement HTML элемент видео.
|
36
|
+
*/
|
37
|
+
protected onCanPlay(videoElement: HTMLVideoElement): void;
|
38
|
+
/** @inheritDoc */
|
39
|
+
ngOnDestroy(): void;
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScResourcePreviewComponent, never>;
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScResourcePreviewComponent, "sc-resource-preview", never, {}, {}, never, never, true, never>;
|
42
|
+
}
|
@@ -0,0 +1,136 @@
|
|
1
|
+
import { EventEmitter, WritableSignal } from '@angular/core';
|
2
|
+
import { FormControl } from '@angular/forms';
|
3
|
+
import { ScCartItem, ScIImage, ScImageHelper, ScProduct, ScUnitsHelper } from '@snabcentr/client-core';
|
4
|
+
import { Observable } from 'rxjs';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* Директива абстрактной карточки товара.
|
8
|
+
*/
|
9
|
+
export declare class AbstractScPriceCard {
|
10
|
+
/**
|
11
|
+
* Позиция товара в корзине.
|
12
|
+
*
|
13
|
+
* TODO: Сделать товар в корзине наблюдаемой переменной после реализации TASK:[#7144].
|
14
|
+
*/
|
15
|
+
get cartItem(): ScCartItem | undefined;
|
16
|
+
/**
|
17
|
+
* Позиция товара в корзине
|
18
|
+
*
|
19
|
+
* TODO: Сделать товар в корзине наблюдаемой переменной после реализации TASK:[#7144].
|
20
|
+
*/
|
21
|
+
set cartItem(value: ScCartItem | undefined);
|
22
|
+
/**
|
23
|
+
* Объект товара.
|
24
|
+
*/
|
25
|
+
get product(): ScProduct | undefined;
|
26
|
+
/**
|
27
|
+
* Объект товара.
|
28
|
+
*/
|
29
|
+
set product(value: ScProduct | undefined);
|
30
|
+
/**
|
31
|
+
* Признак того, что этот компонент отображается на мобильном устройстве.
|
32
|
+
*/
|
33
|
+
readonly isMobile: boolean;
|
34
|
+
/**
|
35
|
+
* {@link FormControl} поля ввода количества товара в корзине.
|
36
|
+
*/
|
37
|
+
quantityControl: FormControl<number | null>;
|
38
|
+
/**
|
39
|
+
* Признак, что необходимо отобразить лоадер для поля ввода количества товара.
|
40
|
+
*/
|
41
|
+
quantityShowLoader: boolean;
|
42
|
+
/**
|
43
|
+
* Признак, что необходимо отобразить лоадер для кнопки избранных товаров и категорий.
|
44
|
+
*/
|
45
|
+
favoriteShowLoader: boolean;
|
46
|
+
/**
|
47
|
+
* {@link Observable} изменения статуса авторизации.
|
48
|
+
*/
|
49
|
+
readonly authStatus$: Observable<boolean>;
|
50
|
+
/**
|
51
|
+
* {@link Observable} поиска терма.
|
52
|
+
*/
|
53
|
+
readonly search$: Observable<string>;
|
54
|
+
/**
|
55
|
+
* Признак, что необходимо отобразить поле ввода количества товара.
|
56
|
+
*/
|
57
|
+
showQuantityControl: boolean;
|
58
|
+
/**
|
59
|
+
* Ссылка на страницу товара. Используется именно `href`, так как остановить событие клика для `routerLink` не вышло.
|
60
|
+
*/
|
61
|
+
href?: string;
|
62
|
+
/**
|
63
|
+
* Событие нажатия на кнопку "В избранное".
|
64
|
+
*/
|
65
|
+
readonly clickFavoriteEvent: EventEmitter<void>;
|
66
|
+
/**
|
67
|
+
* Событие нажатия на кнопку "В корзину".
|
68
|
+
*/
|
69
|
+
readonly clickAddToCartEvent: EventEmitter<ScProduct>;
|
70
|
+
/**
|
71
|
+
* Событие нажатия на кнопку очистки количества товара.
|
72
|
+
*/
|
73
|
+
readonly clickClearEvent: EventEmitter<ScCartItem>;
|
74
|
+
/**
|
75
|
+
* Событие нажатия на карточку товара.
|
76
|
+
*/
|
77
|
+
readonly clickCardEvent: EventEmitter<void>;
|
78
|
+
/**
|
79
|
+
* Событие нажатия на историю цен.
|
80
|
+
*/
|
81
|
+
readonly clickPriceHistoryEvent: EventEmitter<void>;
|
82
|
+
/**
|
83
|
+
* {@link Observable} изменения количества товара в корзине.
|
84
|
+
*/
|
85
|
+
readonly quantityValueChanges: Observable<number | null>;
|
86
|
+
/**
|
87
|
+
* Признак, что необходимо автоматичеси выставить фокус на поле ввода колличества товара.
|
88
|
+
*/
|
89
|
+
readonly autoFocuseQuantityInput: WritableSignal<boolean>;
|
90
|
+
/**
|
91
|
+
* Экземпляр класса-помощника для работы со значениями единиц измерения товара.
|
92
|
+
*/
|
93
|
+
protected readonly unitsHelper: ScUnitsHelper;
|
94
|
+
/**
|
95
|
+
* Хелпер для работы с изображениями товара.
|
96
|
+
*/
|
97
|
+
protected readonly imageHelper: ScImageHelper;
|
98
|
+
/**
|
99
|
+
* Путь до изображения 'Товар не найден'.
|
100
|
+
*/
|
101
|
+
private readonly pathImageNotFound;
|
102
|
+
/**
|
103
|
+
* Объект слежения за изменениями.
|
104
|
+
*/
|
105
|
+
private readonly cdr;
|
106
|
+
/**
|
107
|
+
* Объект товара.
|
108
|
+
*/
|
109
|
+
private _product;
|
110
|
+
/**
|
111
|
+
* Позиция товара в корзине.
|
112
|
+
*
|
113
|
+
* TODO: Сделать товар в корзине наблюдаемой переменной после реализации TASK:[#7144].
|
114
|
+
*/
|
115
|
+
private _cartItem;
|
116
|
+
/**
|
117
|
+
* Признак, что нужно показать скелетон.
|
118
|
+
*/
|
119
|
+
get skeletonVisible(): boolean;
|
120
|
+
/**
|
121
|
+
* Возвращает данные для preview-изображения карточки товара.
|
122
|
+
*/
|
123
|
+
getCardImagePreview(): ScIImage;
|
124
|
+
/**
|
125
|
+
* Возвращает массив превью-изображений товара.
|
126
|
+
*
|
127
|
+
* @param product Объект товара.
|
128
|
+
*/
|
129
|
+
getCardImagePreviewList(product: ScProduct): ScIImage[];
|
130
|
+
/**
|
131
|
+
* Устанавливает компонент в очередь на обновление.
|
132
|
+
*/
|
133
|
+
markForCheck(): void;
|
134
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractScPriceCard, never>;
|
135
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractScPriceCard, never, never, { "cartItem": { "alias": "cartItem"; "required": false; }; "product": { "alias": "product"; "required": false; }; "showQuantityControl": { "alias": "showQuantityControl"; "required": false; }; "href": { "alias": "href"; "required": false; }; }, { "clickFavoriteEvent": "clickFavoriteEvent"; "clickAddToCartEvent": "clickAddToCartEvent"; "clickClearEvent": "clickClearEvent"; "clickCardEvent": "clickCardEvent"; "clickPriceHistoryEvent": "clickPriceHistoryEvent"; "quantityValueChanges": "quantityValueChanges"; }, never, never, false, never>;
|
136
|
+
}
|
@@ -0,0 +1,7 @@
|
|
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 './terminal-link/sc-terminal-link.directive';
|
5
|
+
export * from './links';
|
6
|
+
export * from './sc-date-value-transformer.directive';
|
7
|
+
export * from './select-on-focusin/sc-select-on-focusin.directive';
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { ScLinkLocation } from './sc-link-location';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* Директива, которая управляет свойствами ссылки адреса электронной почты.
|
5
|
+
*/
|
6
|
+
export declare class ScEmailLinkDirective {
|
7
|
+
/**
|
8
|
+
* Ссылка на HTML элемент тега `<a>`.
|
9
|
+
*/
|
10
|
+
private elementReference;
|
11
|
+
/**
|
12
|
+
* Условное название блока где расположена ссылка.
|
13
|
+
*/
|
14
|
+
linkLocation: ScLinkLocation;
|
15
|
+
/**
|
16
|
+
* Сервис для сбора метрик о действиях пользователей.
|
17
|
+
*/
|
18
|
+
private readonly userMetrikaService;
|
19
|
+
/**
|
20
|
+
* Обработчик клика по ссылке.
|
21
|
+
*/
|
22
|
+
private click;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEmailLinkDirective, never>;
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScEmailLinkDirective, "a[scEmailLink]", never, { "linkLocation": { "alias": "linkLocation"; "required": true; }; }, {}, never, never, true, never>;
|
25
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { TuiLooseUnion } from '@taiga-ui/cdk';
|
2
|
+
/**
|
3
|
+
* Тип данных условного названия блока где расположена ссылка.
|
4
|
+
*/
|
5
|
+
export type ScLinkLocation = TuiLooseUnion<'contact' | 'questions-and-answers' | 'profile' | 'user-managers' | 'manager-card' | 'retails-map' | 'landing' | 'footer' | 'order' | 'vacancies' | 'header'>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ScPhoneFormatPipe } from '../../pipes/sc-phone-format';
|
2
|
+
import { ScEmailLinkDirective } from './sc-email-link.directive';
|
3
|
+
import { ScTelLinkDirective } from './sc-tel-link.directive';
|
4
|
+
/**
|
5
|
+
* Список директив ссылок.
|
6
|
+
*/
|
7
|
+
export declare const ScLinks: readonly [typeof ScTelLinkDirective, typeof ScEmailLinkDirective, typeof ScPhoneFormatPipe];
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
2
|
+
import { ScLinkLocation } from './sc-link-location';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* Директива, которая управляет свойствами ссылки номера телефона для валидации значения номера телефона.
|
6
|
+
*/
|
7
|
+
export declare class ScTelLinkDirective implements OnChanges {
|
8
|
+
/**
|
9
|
+
* Экземпляр базового класса для реализации пользовательского рендеринга.
|
10
|
+
*/
|
11
|
+
private readonly renderer;
|
12
|
+
/**
|
13
|
+
* Ссылка на HTML элемент тега `<a>`.
|
14
|
+
*/
|
15
|
+
private elementReference;
|
16
|
+
/**
|
17
|
+
* Номер телефона, который будет проверен на валидность.
|
18
|
+
*/
|
19
|
+
tel: string;
|
20
|
+
/**
|
21
|
+
* Условное название блока где расположена ссылка.
|
22
|
+
*/
|
23
|
+
linkLocation: ScLinkLocation;
|
24
|
+
/**
|
25
|
+
* Сервис для сбора метрик о действиях пользователей.
|
26
|
+
*/
|
27
|
+
private readonly userMetrikaService;
|
28
|
+
/** @inheritDoc */
|
29
|
+
ngOnChanges(changes: SimpleChanges): void;
|
30
|
+
/**
|
31
|
+
* Обработчик клика по ссылке.
|
32
|
+
*/
|
33
|
+
private click;
|
34
|
+
/**
|
35
|
+
* Обновляет состояние ссылки на основе валидности номера телефона.
|
36
|
+
*/
|
37
|
+
private updateLinkState;
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScTelLinkDirective, never>;
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScTelLinkDirective, "a[scTelLink]", never, { "tel": { "alias": "scTelLink"; "required": true; }; "linkLocation": { "alias": "linkLocation"; "required": true; }; }, {}, never, never, true, never>;
|
40
|
+
}
|
@@ -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,8 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* Директива для преобразования даты в формат "YYYY-MM-DD 23:59:59".
|
4
|
+
*/
|
5
|
+
export declare class FinishDateTimeTransformerDirective {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FinishDateTimeTransformerDirective, never>;
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FinishDateTimeTransformerDirective, "tui-input-date[toFinishDateTime]", never, {}, {}, never, never, true, never>;
|
8
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* Директива для обработки события фокуса поля ввода, для последующего выделения содержимого поля ввода.
|
4
|
+
*/
|
5
|
+
export declare class ScSelectOnFocusinDirective {
|
6
|
+
/**
|
7
|
+
* Слушатель и обработчик события `focusin`.
|
8
|
+
*
|
9
|
+
* @param target Целевой объект события `focusin`.
|
10
|
+
*/
|
11
|
+
protected onFocusIn(target: HTMLElement): void;
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSelectOnFocusinDirective, never>;
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScSelectOnFocusinDirective, "tui-input-number, tui-input, tui-input-phone, tui-input-date, tui-input-password, input[tuiInputNumber]", never, {}, {}, never, never, true, never>;
|
14
|
+
}
|
@@ -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
|
+
}
|