@snabcentr/client-ui 4.14.9 → 4.14.21
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/index.d.ts +2 -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 +27 -0
- package/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.d.ts +55 -0
- package/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.d.ts +45 -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 +113 -0
- package/auth/sign-up-form/sc-sign-up-form.component.d.ts +172 -0
- package/banner/index.d.ts +2 -0
- package/banner/sc-banner.component.d.ts +108 -0
- package/banner/sc-banner.module.d.ts +17 -0
- package/brands-list/index.d.ts +3 -0
- package/brands-list/sc-brand-list-item.d.ts +25 -0
- package/brands-list/sc-brands-list.component.d.ts +13 -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 +106 -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 +49 -0
- package/cart/index.d.ts +2 -0
- package/cart/sc-cart-add-products-from-csv-dialog/sc-cart-add-products-from-csv-dialog.component.d.ts +62 -0
- package/catalog/catalog-filters/collapsible/sc-catalog-filter-collapsible.component.d.ts +47 -0
- package/catalog/catalog-filters/index.d.ts +4 -0
- package/catalog/catalog-filters/sc-catalog-filters.component.d.ts +199 -0
- package/catalog/catalog-filters/tokens/sc-catalog-products-filters.d.ts +7 -0
- package/catalog/catalog-filters/tokens/sc-catalog-show-products-recursively.d.ts +5 -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 +15 -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 +92 -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/catalog/seo-tags/sc-seo-tags.component.d.ts +20 -0
- package/configurators/index.d.ts +3 -0
- package/configurators/models/index.d.ts +3 -0
- package/configurators/models/sandwich/sc-i-configurator-search-product-sandwich.d.ts +22 -0
- package/configurators/models/sandwich/sc-i-sandwich-settings.d.ts +18 -0
- package/configurators/models/sandwich_m2/sc-i-sandwich-m2-settings.d.ts +18 -0
- package/configurators/sandwich/index.d.ts +3 -0
- package/configurators/sandwich/sandwich-skeleton/sc-sandwich-skeleton.component.d.ts +8 -0
- package/configurators/sandwich/sc-i-new-cart-item-sandwich.d.ts +14 -0
- package/configurators/sandwich/sc-sandwich.component.d.ts +186 -0
- package/configurators/sandwich_m2/index.d.ts +4 -0
- package/configurators/sandwich_m2/sandwich-m2-skeleton/sc-sandwich-m2-skeleton.component.d.ts +8 -0
- package/configurators/sandwich_m2/sc-i-new-cart-item-sandwich-m2.d.ts +23 -0
- package/configurators/sandwich_m2/sc-sandwich-m2-item-submit-state.d.ts +13 -0
- package/configurators/sandwich_m2/sc-sandwich-m2.component.d.ts +275 -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 +158 -0
- package/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.d.ts +66 -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 +129 -0
- package/contragents/sc-contragents.module.d.ts +28 -0
- package/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.d.ts +148 -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 +25 -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/address-quality/sc-address-quality.directive.d.ts +23 -0
- package/directives/address-quality/sc-address-quality.service.d.ts +122 -0
- package/directives/address-quality/sc-i-address-quality-state.d.ts +14 -0
- package/directives/index.d.ts +11 -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 +27 -0
- package/directives/next-input-focus/sc-next-input-focus.module.d.ts +10 -0
- package/directives/print/sc-print.directive.d.ts +21 -0
- package/directives/sc-date-value-transformer.directive.d.ts +8 -0
- package/directives/sc-focus-first-invalid-field.directive.d.ts +30 -0
- package/directives/sc-null-on-empty-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 +6 -0
- package/error-handler/error-block-status/error-block-status.component.d.ts +55 -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/index.mjs +3 -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 +103 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.mjs +100 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +81 -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 +203 -0
- package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +345 -0
- package/esm2022/banner/index.mjs +3 -0
- package/esm2022/banner/sc-banner.component.mjs +176 -0
- package/esm2022/banner/sc-banner.module.mjs +29 -0
- package/esm2022/brands-list/index.mjs +4 -0
- package/esm2022/brands-list/sc-brand-list-item.mjs +2 -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 +75 -0
- package/esm2022/cart/index.mjs +3 -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/catalog-filters/collapsible/sc-catalog-filter-collapsible.component.mjs +59 -0
- package/esm2022/catalog/catalog-filters/index.mjs +5 -0
- package/esm2022/catalog/catalog-filters/sc-catalog-filters.component.mjs +451 -0
- package/esm2022/catalog/catalog-filters/tokens/sc-catalog-products-filters.mjs +10 -0
- package/esm2022/catalog/catalog-filters/tokens/sc-catalog-show-products-recursively.mjs +6 -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 +16 -0
- package/esm2022/catalog/input-quantity/sc-input-quantity.component.mjs +190 -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 +71 -0
- package/esm2022/catalog/price-card-inline/sc-price-card-inline.component.mjs +54 -0
- package/esm2022/catalog/price-history/sc-price-history.component.mjs +144 -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 +61 -0
- package/esm2022/catalog/sc-catalog.module.mjs +128 -0
- package/esm2022/catalog/sc-favorite-button/sc-favorite-button.component.mjs +42 -0
- package/esm2022/catalog/seo-tags/sc-seo-tags.component.mjs +25 -0
- package/esm2022/configurators/index.mjs +4 -0
- package/esm2022/configurators/models/index.mjs +4 -0
- package/esm2022/configurators/models/sandwich/sc-i-configurator-search-product-sandwich.mjs +2 -0
- package/esm2022/configurators/models/sandwich/sc-i-sandwich-settings.mjs +2 -0
- package/esm2022/configurators/models/sandwich_m2/sc-i-sandwich-m2-settings.mjs +2 -0
- package/esm2022/configurators/sandwich/index.mjs +4 -0
- package/esm2022/configurators/sandwich/sandwich-skeleton/sc-sandwich-skeleton.component.mjs +14 -0
- package/esm2022/configurators/sandwich/sc-i-new-cart-item-sandwich.mjs +2 -0
- package/esm2022/configurators/sandwich/sc-sandwich.component.mjs +387 -0
- package/esm2022/configurators/sandwich_m2/index.mjs +5 -0
- package/esm2022/configurators/sandwich_m2/sandwich-m2-skeleton/sc-sandwich-m2-skeleton.component.mjs +14 -0
- package/esm2022/configurators/sandwich_m2/sc-i-new-cart-item-sandwich-m2.mjs +2 -0
- package/esm2022/configurators/sandwich_m2/sc-sandwich-m2-item-submit-state.mjs +5 -0
- package/esm2022/configurators/sandwich_m2/sc-sandwich-m2.component.mjs +569 -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 +37 -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 +38 -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 +25 -0
- package/esm2022/contacts/tokens/sc-show-help-notification-in-phone-input.token.mjs +9 -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 +266 -0
- package/esm2022/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +79 -0
- package/esm2022/contragents/contragents-accordion/sc-contragents-accordion.component.mjs +68 -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 +241 -0
- package/esm2022/contragents/sc-contragents.module.mjs +121 -0
- package/esm2022/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.mjs +261 -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 +68 -0
- package/esm2022/delivery-address/index.mjs +5 -0
- package/esm2022/delivery-address/sc-delivery-address.module.mjs +96 -0
- package/esm2022/dialogs/index.mjs +2 -0
- package/esm2022/dialogs/sc-resource-preview/sc-resource-preview.component.mjs +73 -0
- package/esm2022/directives/abstract-price-card/abstract-sc-price-card.directive.mjs +170 -0
- package/esm2022/directives/address-quality/sc-address-quality.directive.mjs +40 -0
- package/esm2022/directives/address-quality/sc-address-quality.service.mjs +214 -0
- package/esm2022/directives/address-quality/sc-i-address-quality-state.mjs +2 -0
- package/esm2022/directives/index.mjs +12 -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 +70 -0
- package/esm2022/directives/next-input-focus/sc-next-input-focus.module.mjs +19 -0
- package/esm2022/directives/print/sc-print.directive.mjs +36 -0
- package/esm2022/directives/sc-date-value-transformer.directive.mjs +30 -0
- package/esm2022/directives/sc-focus-first-invalid-field.directive.mjs +85 -0
- package/esm2022/directives/sc-null-on-empty-value-transformer.directive.mjs +30 -0
- package/esm2022/directives/select-on-focusin/sc-select-on-focusin.directive.mjs +36 -0
- package/esm2022/directives/terminal-link/sc-terminal-link.directive.mjs +69 -0
- package/esm2022/error-handler/consts/error-change-handler.providers.mjs +10 -0
- package/esm2022/error-handler/error-block-status/error-block-status.component.mjs +101 -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 +66 -0
- package/esm2022/form-fields/index.mjs +4 -0
- package/esm2022/form-fields/suggestion-field/sc-suggestion-field.component.mjs +235 -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 +9 -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-ogrn-mask.mjs +13 -0
- package/esm2022/masks/sc-okpo-mask.mjs +13 -0
- package/esm2022/masks/sc-phone-verification-code-mask.mjs +7 -0
- package/esm2022/methods/index.mjs +2 -0
- package/esm2022/methods/sc-get-current-route.mjs +14 -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 +25 -0
- package/esm2022/noindex-wrapper/directives/index.mjs +2 -0
- package/esm2022/noindex-wrapper/directives/sc-noindex.directive.mjs +58 -0
- package/esm2022/noindex-wrapper/index.mjs +3 -0
- package/esm2022/noindex-wrapper/sc-noindex-wrapper.component.mjs +18 -0
- package/esm2022/order/directives/index.mjs +3 -0
- package/esm2022/order/directives/sc-order-accessor.directive.mjs +28 -0
- package/esm2022/order/directives/sc-order-options.mjs +11 -0
- package/esm2022/order/draft/sc-draft.component.mjs +118 -0
- package/esm2022/order/index.mjs +14 -0
- package/esm2022/order/models/i-new-order-form.mjs +2 -0
- package/esm2022/order/models/sc-i-cart-items-by-direction.mjs +22 -0
- package/esm2022/order/order-direction-items/sc-order-direction-items.component.mjs +39 -0
- package/esm2022/order/order-form/sc-order-form.component.mjs +565 -0
- package/esm2022/order/order-form/sc-order-form.config.mjs +7 -0
- package/esm2022/order/order-item/sc-order-item.component.mjs +112 -0
- package/esm2022/order/order-items-list/sc-order-items-list.component.mjs +212 -0
- package/esm2022/order/order-items-list-by-directions/sc-order-items-list-by-directions.component.mjs +75 -0
- package/esm2022/order/order-items-list-by-stock/sc-order-items-list-by-stock.component.mjs +75 -0
- package/esm2022/order/sc-order.module.mjs +52 -0
- package/esm2022/order/sc-payment-status/sc-payment-status.component.mjs +35 -0
- package/esm2022/pages/frequently-asked-questions/sc-faq-query-params.mjs +5 -0
- package/esm2022/pages/frequently-asked-questions/sc-faq-question-anchor.mjs +23 -0
- package/esm2022/pages/frequently-asked-questions/sc-frequently-asked-questions.component.mjs +167 -0
- package/esm2022/pages/frequently-asked-questions/sc-get-faq-group-query-params.mjs +14 -0
- package/esm2022/pages/frequently-asked-questions/sc-page-size-options.mjs +8 -0
- package/esm2022/pages/frequently-asked-questions-group-selector/sc-frequently-asked-questions-group-selector.component.mjs +88 -0
- package/esm2022/pages/frequently-asked-questions-with-groups/sc-frequently-asked-questions-with-groups.component.mjs +123 -0
- package/esm2022/pages/index.mjs +11 -0
- package/esm2022/pages/news-list/sc-news-list.component.mjs +90 -0
- package/esm2022/pages/personal-data-processing-policy/sc-personal-data-processing-policy.component.mjs +46 -0
- package/esm2022/pages/privacy-policy/sc-privacy-policy.component.mjs +30 -0
- package/esm2022/pages/public-offer/sc-public-offer.component.mjs +50 -0
- package/esm2022/pagination/index.mjs +2 -0
- package/esm2022/pagination/sc-pagination-links/sc-pagination-links.component.mjs +99 -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 +174 -0
- package/esm2022/profile/sc-profile.module.mjs +73 -0
- package/esm2022/providers/cleanup-recaptcha-artifacts.mjs +30 -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 +18 -0
- package/esm2022/providers/null-on-empty-value-transformer/index.mjs +2 -0
- package/esm2022/providers/null-on-empty-value-transformer/sc-null-on-empty-value-transformer.mjs +31 -0
- package/esm2022/providers/sc-allow-select-terminated.mjs +8 -0
- package/esm2022/providers/sc-banner-duration.mjs +8 -0
- package/esm2022/providers/sc-block-incomplete-address.mjs +8 -0
- package/esm2022/providers/sc-country-ids.mjs +8 -0
- package/esm2022/providers/sc-date-formatter.mjs +15 -0
- package/esm2022/providers/sc-date-value-transformer.mjs +12 -0
- package/esm2022/providers/sc-debounce-time-default.mjs +9 -0
- package/esm2022/providers/sc-dialog-service.providers.mjs +6 -0
- package/esm2022/providers/sc-help-notification-close.mjs +9 -0
- package/esm2022/providers/sc-help-notification-limit.mjs +8 -0
- package/esm2022/providers/sc-hidden-print-elements.token.mjs +10 -0
- package/esm2022/providers/sc-max-files-in-form-input.mjs +8 -0
- package/esm2022/providers/sc-notify-when-in-stock-required-fields.mjs +8 -0
- package/esm2022/providers/sc-page-size-options.mjs +8 -0
- package/esm2022/providers/sc-user-providers.mjs +38 -0
- package/esm2022/providers/sc-verification-code-timeout.mjs +8 -0
- package/esm2022/public-api.mjs +36 -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 +66 -0
- package/esm2022/services/index.mjs +3 -0
- package/esm2022/services/print.service.mjs +49 -0
- package/esm2022/services/sc-help-notification.service.mjs +100 -0
- package/esm2022/share/index.mjs +6 -0
- package/esm2022/share/sc-share-dialog-data.mjs +2 -0
- package/esm2022/share/sc-share.service.mjs +40 -0
- package/esm2022/share/share-button/sc-share-button.component.mjs +99 -0
- package/esm2022/share/share-dialog/sc-share-dialog.component.mjs +139 -0
- package/esm2022/share/share-messengers-links/sc-share-messengers-links.component.mjs +84 -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 +74 -0
- package/esm2022/user/sc-user.module.mjs +86 -0
- package/esm2022/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +121 -0
- package/esm2022/user/user-managers/sc-user-managers.component.mjs +40 -0
- package/esm2022/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +105 -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 +3 -0
- package/esm2022/verification/sc-verification.module.mjs +86 -0
- package/esm2022/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +259 -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 +5826 -4942
- 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 +80 -0
- package/form-fields/form-fields.module.d.ts +18 -0
- package/form-fields/index.d.ts +3 -0
- package/form-fields/suggestion-field/sc-suggestion-field.component.d.ts +107 -0
- package/icons/index.d.ts +1 -0
- package/icons/sc-client-ui-icons-name.d.ts +4 -0
- package/icons/svg-pack/application.svg +1 -1
- package/icons/svg-pack/back.svg +1 -1
- package/icons/svg-pack/bag.svg +1 -1
- package/icons/svg-pack/banknote-arrow-in-top.svg +1 -1
- package/icons/svg-pack/catalog/aluminum-systems.svg +1 -1
- package/icons/svg-pack/catalog/arm-profile.svg +1 -1
- package/icons/svg-pack/catalog/batten.svg +1 -1
- package/icons/svg-pack/catalog/brusbox.svg +1 -1
- package/icons/svg-pack/catalog/canopy.svg +1 -1
- package/icons/svg-pack/catalog/configurator.svg +1 -1
- package/icons/svg-pack/catalog/covering-material.svg +1 -1
- package/icons/svg-pack/catalog/door-accessories.svg +1 -1
- package/icons/svg-pack/catalog/drainage-system.svg +1 -1
- package/icons/svg-pack/catalog/fastener.svg +1 -1
- package/icons/svg-pack/catalog/finishing-materials.svg +1 -1
- package/icons/svg-pack/catalog/fixing-impost.svg +1 -1
- package/icons/svg-pack/catalog/flask.svg +1 -1
- package/icons/svg-pack/catalog/foam-balloon.svg +1 -1
- package/icons/svg-pack/catalog/foam.svg +1 -1
- package/icons/svg-pack/catalog/glue.svg +1 -1
- package/icons/svg-pack/catalog/handle.svg +1 -1
- package/icons/svg-pack/catalog/instrument.svg +1 -1
- package/icons/svg-pack/catalog/kve-profile.svg +1 -1
- package/icons/svg-pack/catalog/lubricants.svg +1 -1
- package/icons/svg-pack/catalog/mosquito-net.svg +1 -1
- package/icons/svg-pack/catalog/mounting-accessories.svg +1 -1
- package/icons/svg-pack/catalog/net-order.svg +1 -1
- package/icons/svg-pack/catalog/panel-1.svg +1 -1
- package/icons/svg-pack/catalog/panel.svg +1 -1
- package/icons/svg-pack/catalog/polyethylene-film.svg +1 -1
- package/icons/svg-pack/catalog/profile-plastic.svg +1 -1
- package/icons/svg-pack/catalog/promo-materials.svg +1 -1
- package/icons/svg-pack/catalog/psul.svg +1 -1
- package/icons/svg-pack/catalog/rehau-profile.svg +1 -1
- package/icons/svg-pack/catalog/sandwich-plastic.svg +1 -1
- package/icons/svg-pack/catalog/sealer.svg +1 -1
- package/icons/svg-pack/catalog/siding-2.svg +1 -1
- package/icons/svg-pack/catalog/siding.svg +1 -1
- package/icons/svg-pack/catalog/start-finish-profile.svg +1 -1
- package/icons/svg-pack/catalog/steam-waterproofing.svg +1 -1
- package/icons/svg-pack/catalog/stiz.svg +1 -1
- package/icons/svg-pack/catalog/thermometer.svg +1 -1
- package/icons/svg-pack/catalog/windowsill.svg +1 -1
- package/icons/svg-pack/chart-column-plus.svg +1 -1
- package/icons/svg-pack/circle-arrow-in-right.svg +1 -1
- package/icons/svg-pack/contacts.svg +1 -1
- package/icons/svg-pack/deadline.svg +1 -1
- package/icons/svg-pack/file-p.svg +1 -1
- package/icons/svg-pack/file-search.svg +1 -1
- package/icons/svg-pack/file-w.svg +1 -1
- package/icons/svg-pack/file-x.svg +1 -1
- package/icons/svg-pack/grid-height-arrow.svg +1 -1
- package/icons/svg-pack/grid-width-arrow.svg +1 -1
- package/icons/svg-pack/layout-list-tree.svg +1 -1
- package/icons/svg-pack/list.svg +1 -1
- package/icons/svg-pack/puzzle.svg +1 -1
- package/icons/svg-pack/reclamation.svg +1 -1
- package/icons/svg-pack/retail-store.svg +1 -1
- package/icons/svg-pack/send.svg +1 -1
- package/index.d.ts +5 -0
- package/loader/index.d.ts +1 -0
- package/loader/sc-i-loader.d.ts +9 -0
- package/masks/index.d.ts +8 -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-ogrn-mask.d.ts +9 -0
- package/masks/sc-okpo-mask.d.ts +9 -0
- package/masks/sc-phone-verification-code-mask.d.ts +5 -0
- package/methods/index.d.ts +1 -0
- package/methods/sc-get-current-route.d.ts +8 -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 +15 -0
- package/noindex-wrapper/directives/index.d.ts +1 -0
- package/noindex-wrapper/directives/sc-noindex.directive.d.ts +29 -0
- package/noindex-wrapper/index.d.ts +2 -0
- package/noindex-wrapper/sc-noindex-wrapper.component.d.ts +9 -0
- package/order/directives/index.d.ts +2 -0
- package/order/directives/sc-order-accessor.directive.d.ts +13 -0
- package/order/directives/sc-order-options.d.ts +14 -0
- package/order/draft/sc-draft.component.d.ts +63 -0
- package/order/index.d.ts +13 -0
- package/order/models/i-new-order-form.d.ts +39 -0
- package/order/models/sc-i-cart-items-by-direction.d.ts +25 -0
- package/order/order-direction-items/sc-order-direction-items.component.d.ts +29 -0
- package/order/order-form/sc-order-form.component.d.ts +283 -0
- package/order/order-form/sc-order-form.config.d.ts +20 -0
- package/order/order-item/sc-order-item.component.d.ts +43 -0
- package/order/order-items-list/sc-order-items-list.component.d.ts +113 -0
- package/order/order-items-list-by-directions/sc-order-items-list-by-directions.component.d.ts +58 -0
- package/order/order-items-list-by-stock/sc-order-items-list-by-stock.component.d.ts +55 -0
- package/order/sc-order.module.d.ts +18 -0
- package/order/sc-payment-status/sc-payment-status.component.d.ts +25 -0
- package/package.json +37 -35
- package/pages/frequently-asked-questions/sc-faq-query-params.d.ts +4 -0
- package/pages/frequently-asked-questions/sc-faq-question-anchor.d.ts +16 -0
- package/pages/frequently-asked-questions/sc-frequently-asked-questions.component.d.ts +84 -0
- package/pages/frequently-asked-questions/sc-get-faq-group-query-params.d.ts +10 -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 +47 -0
- package/pages/frequently-asked-questions-with-groups/sc-frequently-asked-questions-with-groups.component.d.ts +89 -0
- package/pages/index.d.ts +10 -0
- package/pages/news-list/sc-news-list.component.d.ts +57 -0
- package/pages/personal-data-processing-policy/sc-personal-data-processing-policy.component.d.ts +17 -0
- package/pages/privacy-policy/sc-privacy-policy.component.d.ts +17 -0
- package/pages/public-offer/sc-public-offer.component.d.ts +22 -0
- package/pagination/index.d.ts +1 -0
- package/pagination/sc-pagination-links/sc-pagination-links.component.d.ts +60 -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 +23 -0
- package/providers/cleanup-recaptcha-artifacts.d.ts +7 -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 +17 -0
- package/providers/null-on-empty-value-transformer/index.d.ts +1 -0
- package/providers/null-on-empty-value-transformer/sc-null-on-empty-value-transformer.d.ts +21 -0
- package/providers/sc-allow-select-terminated.d.ts +5 -0
- package/providers/sc-banner-duration.d.ts +5 -0
- package/providers/sc-block-incomplete-address.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-debounce-time-default.d.ts +5 -0
- package/providers/sc-dialog-service.providers.d.ts +45 -0
- package/providers/sc-help-notification-close.d.ts +6 -0
- package/providers/sc-help-notification-limit.d.ts +5 -0
- package/providers/sc-hidden-print-elements.token.d.ts +6 -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 +35 -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 -16
- 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 +2 -0
- package/services/print.service.d.ts +31 -0
- package/services/sc-help-notification.service.d.ts +70 -0
- package/share/index.d.ts +5 -0
- package/share/sc-share-dialog-data.d.ts +13 -0
- package/share/sc-share.service.d.ts +19 -0
- package/share/share-button/sc-share-button.component.d.ts +78 -0
- package/share/share-dialog/sc-share-dialog.component.d.ts +87 -0
- package/share/share-messengers-links/sc-share-messengers-links.component.d.ts +49 -0
- package/styles/taiga/variables.less +17 -35
- package/styles/tailwind/tailwind.scss +14 -56
- 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 +24 -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 +23 -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 +7 -0
- package/verification/index.d.ts +2 -0
- package/verification/sc-verification.module.d.ts +21 -0
- package/verification/verification-phone-check-form/sc-verification-phone-check-form.component.d.ts +145 -0
- package/types/snabcentr-client-ui.d.ts +0 -6787
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { OutputEmitterRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { TuiDialogContext } from '@taiga-ui/core';
|
|
3
|
+
import { AbstractScPriceCard } from '../../directives';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Компонент карточки элемента корзины.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ScOrderItemComponent extends AbstractScPriceCard {
|
|
9
|
+
/**
|
|
10
|
+
* Видимость подсказки про изменение размеров через конфигуратор.
|
|
11
|
+
*/
|
|
12
|
+
protected readonly isConfiguratorHintVisible: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
/**
|
|
14
|
+
* Событие нажатия на кнопку редактирования конфигурации.
|
|
15
|
+
*/
|
|
16
|
+
readonly clickSettings: OutputEmitterRef<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Настройки вывода сумм в рублях.
|
|
19
|
+
*/
|
|
20
|
+
protected readonly moneyFormat: Partial<import("@taiga-ui/core").TuiNumberFormatSettings>;
|
|
21
|
+
/**
|
|
22
|
+
* Сервис диалогового окна предварительного просмотра.
|
|
23
|
+
*/
|
|
24
|
+
private readonly previewDialogService;
|
|
25
|
+
/**
|
|
26
|
+
* Признак, что необходимо отобразить элементы редактирования.
|
|
27
|
+
*/
|
|
28
|
+
readonly isShowEditControls: import("@angular/core").InputSignal<boolean>;
|
|
29
|
+
/**
|
|
30
|
+
* Отображает спецификацию.
|
|
31
|
+
*
|
|
32
|
+
* @param specificationPreviewReference Шаблон спецификации.
|
|
33
|
+
*/
|
|
34
|
+
protected showSpecification(specificationPreviewReference: TemplateRef<TuiDialogContext>): void;
|
|
35
|
+
/**
|
|
36
|
+
* Обрабатывает показ подсказки по размерам (синхронизация с подсветкой кнопки настроек).
|
|
37
|
+
*
|
|
38
|
+
* @param visible Признак видимости подсказки.
|
|
39
|
+
*/
|
|
40
|
+
protected configuratorHintVisible(visible: boolean): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScOrderItemComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScOrderItemComponent, "sc-order-item", never, { "isShowEditControls": { "alias": "isShowEditControls"; "required": false; "isSignal": true; }; }, { "clickSettings": "clickSettings"; }, never, never, true, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
2
|
+
import { ScIOrderEditorLoader, ScIOrderLoader, ScOrderItem } from '@snabcentr/client-core';
|
|
3
|
+
import { AbstractScPriceCard } from '../../directives';
|
|
4
|
+
import { ScOrderOptions } from '../directives/sc-order-options';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Компонент списка товаров корзины, заказа или черновика.
|
|
8
|
+
* Позиции разбиты.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ScOrderItemsListComponent {
|
|
11
|
+
/**
|
|
12
|
+
* Внутренний сигнал списка элементов корзины (товаров).
|
|
13
|
+
*/
|
|
14
|
+
protected readonly itemsSignal: import("@angular/core").WritableSignal<ScOrderItem[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Включить выбор позиций чекбоксами.
|
|
17
|
+
*/
|
|
18
|
+
readonly selectable: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* Включить редактирование позиций.
|
|
21
|
+
*/
|
|
22
|
+
readonly editable: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* Внутренняя группа формы для выбора позиций.
|
|
25
|
+
*/
|
|
26
|
+
protected readonly selectionFormGroup: FormGroup<Record<string, FormControl<boolean>>>;
|
|
27
|
+
/**
|
|
28
|
+
* Опции заказа (черновика). Предоставляется директивой {@link ScOrderAccessorDirective} в контексте черновика.
|
|
29
|
+
*/
|
|
30
|
+
protected readonly orderOptions: ScOrderOptions | null;
|
|
31
|
+
/**
|
|
32
|
+
* Идентификаторы выбранных позиций.
|
|
33
|
+
*/
|
|
34
|
+
protected readonly itemsIds: import("@angular/core").Signal<[string, boolean][]>;
|
|
35
|
+
/**
|
|
36
|
+
* Сигнал идентификаторов выбранных позиций.
|
|
37
|
+
*/
|
|
38
|
+
readonly selectedItemsIds: import("@angular/core").Signal<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Выходные данные при изменении выбора позиций.
|
|
41
|
+
*/
|
|
42
|
+
readonly selectedItemsIdsChange: import("@angular/core").OutputRef<string[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Сумма стоимости выбранных позиций.
|
|
45
|
+
*/
|
|
46
|
+
readonly sumSelectedItems: import("@angular/core").Signal<number>;
|
|
47
|
+
/**
|
|
48
|
+
* Сервис получения и редактирования списка товаров заказа (корзина / заказ / черновик = заказ).
|
|
49
|
+
* Предоставляется родителем через токен {@link SC_ORDER_LOADER} (реализация {@link ScIOrderLoader}).
|
|
50
|
+
*/
|
|
51
|
+
protected readonly orderItemsListLoader: ScIOrderLoader<ScOrderItem, unknown> | ScIOrderEditorLoader<ScOrderItem, unknown>;
|
|
52
|
+
/**
|
|
53
|
+
* Признак, что можно редактировать позиции.
|
|
54
|
+
*/
|
|
55
|
+
protected readonly canEdit: import("@angular/core").Signal<boolean>;
|
|
56
|
+
/**
|
|
57
|
+
* Настройки вывода сумм в рублях.
|
|
58
|
+
*/
|
|
59
|
+
protected readonly moneyFormat: Partial<import("@taiga-ui/core").TuiNumberFormatSettings>;
|
|
60
|
+
/**
|
|
61
|
+
* Ссылка для автоматического управления уничтожением зависимостей.
|
|
62
|
+
*/
|
|
63
|
+
private readonly destroyRef;
|
|
64
|
+
/**
|
|
65
|
+
* Сервис для работы с диалоговыми окнами.
|
|
66
|
+
* Предоставляется родителем через токен {@link SC_DIALOG_SERVICE_TOKEN}.
|
|
67
|
+
*/
|
|
68
|
+
private readonly scDialogService;
|
|
69
|
+
/**
|
|
70
|
+
* Список элементов корзины (товаров). При установке синхронно обновляет контролы выбора в форме.
|
|
71
|
+
*/
|
|
72
|
+
set items(value: ScOrderItem[]);
|
|
73
|
+
/**
|
|
74
|
+
* Синхронизирует контролы формы выбора с текущим списком товаров: удаляет контролы для отсутствующих id, добавляет для новых.
|
|
75
|
+
*/
|
|
76
|
+
private syncSelectionControls;
|
|
77
|
+
/**
|
|
78
|
+
* Удаляет позицию.
|
|
79
|
+
*
|
|
80
|
+
* @param item Позиция товара для удаления.
|
|
81
|
+
* @param priceCard Компонент карточки товара.
|
|
82
|
+
*/
|
|
83
|
+
protected deleteItem(item: ScOrderItem, priceCard: AbstractScPriceCard): void;
|
|
84
|
+
/**
|
|
85
|
+
* Обновляет количество товара.
|
|
86
|
+
*
|
|
87
|
+
* @param newQuantity Новое значение количества товара.
|
|
88
|
+
* @param priceCard Компонент карточки товара.
|
|
89
|
+
*/
|
|
90
|
+
protected patchItem(newQuantity: number | null, priceCard: AbstractScPriceCard): void;
|
|
91
|
+
/**
|
|
92
|
+
* Открывает модальное окно описания товара.
|
|
93
|
+
*
|
|
94
|
+
* @param product Товар/услуга, описание которой необходимо отобразить.
|
|
95
|
+
* @param orderItem Единичная позиция товара/услуги в заказе, для которой необходимо открыть конфигуратор.
|
|
96
|
+
* @param orderId Идентификатор заказа, в котором необходимо открыть конфигуратор.
|
|
97
|
+
*/
|
|
98
|
+
protected openProductInfoDialog(product: ScOrderItem['product'], orderItem?: ScOrderItem, orderId?: number): void;
|
|
99
|
+
/**
|
|
100
|
+
* Открывает модальное окно изменения товара или его конфигуратора.
|
|
101
|
+
*
|
|
102
|
+
* @param item Позиция товара.
|
|
103
|
+
*/
|
|
104
|
+
protected openSettingsDialog(item: ScOrderItem): void;
|
|
105
|
+
/**
|
|
106
|
+
* Открывает диалоговое окно "График изменения стоимости" для товара.
|
|
107
|
+
*
|
|
108
|
+
* @param product Товар/услуга, для которого необходимо отобразить график изменения стоимости.
|
|
109
|
+
*/
|
|
110
|
+
protected openPriceHistoryChartDialog(product: ScOrderItem['product']): void;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScOrderItemsListComponent, never>;
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScOrderItemsListComponent, "sc-order-items-list", never, { "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; }; }, { "selectedItemsIdsChange": "selectedItemsIdsChange"; }, never, never, true, never>;
|
|
113
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ScOrderItem } from '@snabcentr/client-core';
|
|
2
|
+
import { ScOrderItemsByDirection } from '../models/sc-i-cart-items-by-direction';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ScOrderItemsListByDirectionsComponent {
|
|
5
|
+
/**
|
|
6
|
+
* Внутренний сигнал списка элементов корзины (товаров).
|
|
7
|
+
*/
|
|
8
|
+
readonly items: import("@angular/core").InputSignal<ScOrderItem[]>;
|
|
9
|
+
/**
|
|
10
|
+
* Включить выбор позиций чекбоксами.
|
|
11
|
+
*/
|
|
12
|
+
readonly selectable: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
/**
|
|
14
|
+
* Включить редактирование позиций.
|
|
15
|
+
*/
|
|
16
|
+
readonly editable: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Включить отображение кнопки продолжения.
|
|
19
|
+
*/
|
|
20
|
+
readonly showContinueButton: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* Текст кнопки продолжения.
|
|
23
|
+
*/
|
|
24
|
+
readonly continueButtonText: import("@angular/core").InputSignal<{
|
|
25
|
+
title: string;
|
|
26
|
+
iconStart: string;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Событие клика на кнопку продолжения.
|
|
30
|
+
*/
|
|
31
|
+
readonly continueClick: import("@angular/core").OutputEmitterRef<ScOrderItemsByDirection>;
|
|
32
|
+
/**
|
|
33
|
+
* Список направлений продаж из справочника.
|
|
34
|
+
*/
|
|
35
|
+
private readonly directions;
|
|
36
|
+
/**
|
|
37
|
+
* Позиции корзины, сгруппированные по направлениям продаж.
|
|
38
|
+
* Если передан cartDirections, используется он, иначе группировка выполняется автоматически.
|
|
39
|
+
*/
|
|
40
|
+
protected readonly itemsByDirections: import("@angular/core").Signal<ScOrderItemsByDirection[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Позиции корзины, которые больше не предоставляются.
|
|
43
|
+
*/
|
|
44
|
+
protected readonly nullItems: import("@angular/core").Signal<ScOrderItem[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Выходные данные при изменении выбора позиций.
|
|
47
|
+
*/
|
|
48
|
+
readonly selectedItemsIds: import("@angular/core").ModelSignal<string[]>;
|
|
49
|
+
/**
|
|
50
|
+
* Обработчик изменения выбора позиций.
|
|
51
|
+
*
|
|
52
|
+
* @param itemsIds Идентификаторы выбранных позиций.
|
|
53
|
+
* @param direction Направление продаж.
|
|
54
|
+
*/
|
|
55
|
+
protected selectedItemsHandler(itemsIds: string[], direction: ScOrderItemsByDirection): void;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScOrderItemsListByDirectionsComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScOrderItemsListByDirectionsComponent, "sc-order-items-list-by-directions", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "showContinueButton": { "alias": "showContinueButton"; "required": false; "isSignal": true; }; "continueButtonText": { "alias": "continueButtonText"; "required": false; "isSignal": true; }; "selectedItemsIds": { "alias": "selectedItemsIds"; "required": false; "isSignal": true; }; }, { "continueClick": "continueClick"; "selectedItemsIds": "selectedItemsIdsChange"; }, never, ["[footerActions]"], true, never>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ScOrderItem } from '@snabcentr/client-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Компонент списка товаров, разбитых по наличию на складе:
|
|
5
|
+
* - в наличии на складе;
|
|
6
|
+
* - под заказ;
|
|
7
|
+
* - отсутствуют на складе.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ScOrderItemsListByStockComponent {
|
|
10
|
+
/**
|
|
11
|
+
* Список элементов (товаров) для отображения.
|
|
12
|
+
*/
|
|
13
|
+
readonly items: import("@angular/core").InputSignal<ScOrderItem[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Идентификатор склада для проверки наличия.
|
|
16
|
+
*/
|
|
17
|
+
readonly warehouseId: import("@angular/core").InputSignal<number>;
|
|
18
|
+
/**
|
|
19
|
+
* Включить выбор позиций чекбоксами.
|
|
20
|
+
*/
|
|
21
|
+
readonly selectable: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Включить редактирование позиций.
|
|
24
|
+
*/
|
|
25
|
+
readonly editable: import("@angular/core").InputSignal<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* Заголовок для секций «под заказ» и «нет на складе». Если не указан — заголовок не выводится.
|
|
28
|
+
*/
|
|
29
|
+
readonly sectionHeader: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Выходные данные при изменении выбора позиций.
|
|
32
|
+
*/
|
|
33
|
+
readonly selectedItemsIds: import("@angular/core").ModelSignal<string[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Позиции в наличии на выбранном складе (не под заказ).
|
|
36
|
+
*/
|
|
37
|
+
protected readonly itemsInWarehouseStock: import("@angular/core").Signal<ScOrderItem[]>;
|
|
38
|
+
/**
|
|
39
|
+
* Позиции под заказ.
|
|
40
|
+
*/
|
|
41
|
+
protected readonly itemsOnOrder: import("@angular/core").Signal<ScOrderItem[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Позиции, которых нет на выбранном складе (не под заказ).
|
|
44
|
+
*/
|
|
45
|
+
protected readonly itemsNotInWarehouseStock: import("@angular/core").Signal<ScOrderItem[]>;
|
|
46
|
+
/**
|
|
47
|
+
* Обработчик изменения выбора позиций.
|
|
48
|
+
*
|
|
49
|
+
* @param itemsIds Идентификаторы выбранных позиций.
|
|
50
|
+
* @param items Позиции.
|
|
51
|
+
*/
|
|
52
|
+
protected selectedItemsHandler(itemsIds: string[], items: ScOrderItem[]): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScOrderItemsListByStockComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScOrderItemsListByStockComponent, "sc-order-items-list-by-stock", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "warehouseId": { "alias": "warehouseId"; "required": true; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "sectionHeader": { "alias": "sectionHeader"; "required": false; "isSignal": true; }; "selectedItemsIds": { "alias": "selectedItemsIds"; "required": false; "isSignal": true; }; }, { "selectedItemsIds": "selectedItemsIdsChange"; }, never, never, true, never>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./sc-payment-status/sc-payment-status.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@taiga-ui/core";
|
|
5
|
+
import * as i4 from "@taiga-ui/layout";
|
|
6
|
+
import * as i5 from "@taiga-ui/kit";
|
|
7
|
+
import * as i6 from "../catalog/sc-catalog.module";
|
|
8
|
+
import * as i7 from "@taiga-ui/polymorpheus";
|
|
9
|
+
import * as i8 from "../catalog/price-warehouse-stock/sc-price-warehouse-stock.component";
|
|
10
|
+
import * as i9 from "../catalog/cost-with-discount/cost-with-discount.component";
|
|
11
|
+
/**
|
|
12
|
+
* Модуль заказов.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ScOrderModule {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScOrderModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScOrderModule, [typeof i1.ScPaymentStatusComponent], [typeof i2.CommonModule, typeof i3.TuiLink, typeof i3.TuiButton, typeof i3.TuiIcon, typeof i4.TuiBlockStatusComponent, typeof i4.TuiBlockStatusDirective, typeof i5.TuiPreviewComponent, typeof i5.TuiPreviewTitle, typeof i5.TuiPreviewPagination, typeof i5.TuiPreviewAction, typeof i5.TuiPreviewZoom, typeof i6.ScCatalogModule, typeof i7.PolymorpheusTemplate, typeof i7.PolymorpheusOutlet, typeof i8.ScPriceWarehouseStockComponent, typeof i9.CostWithDiscountComponent], [typeof i1.ScPaymentStatusComponent]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScOrderModule>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Компонент статуса оплаты заказа.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ScPaymentStatusComponent {
|
|
7
|
+
/**
|
|
8
|
+
* Признак того, успешна ли прошла оплата, или нет.
|
|
9
|
+
*/
|
|
10
|
+
status: 'success' | 'error' | null;
|
|
11
|
+
/**
|
|
12
|
+
* Номер оплаченного заказа.
|
|
13
|
+
*/
|
|
14
|
+
orderId: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Событие нажатия на кнопку "Вернуться к списку заказов".
|
|
17
|
+
*/
|
|
18
|
+
backToOrdersClick: EventEmitter<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Событие нажатия на кнопку "На главную".
|
|
21
|
+
*/
|
|
22
|
+
backToOrderClick: EventEmitter<void>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScPaymentStatusComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScPaymentStatusComponent, "sc-payment-status", never, { "status": { "alias": "status"; "required": false; }; "orderId": { "alias": "orderId"; "required": false; }; }, { "backToOrdersClick": "backToOrdersClick"; "backToOrderClick": "backToOrderClick"; }, never, never, false, never>;
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -1,59 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snabcentr/client-ui",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.21",
|
|
4
4
|
"author": "Snabcentr Ltd.",
|
|
5
5
|
"repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
|
|
6
6
|
"license": "Commercial",
|
|
7
7
|
"description": "Snabcentr client UI package.",
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@angular/cdk": "^
|
|
10
|
-
"@angular/common": "^
|
|
11
|
-
"@angular/compiler": "^
|
|
12
|
-
"@angular/core": "^
|
|
13
|
-
"@angular/forms": "^
|
|
14
|
-
"@angular/router": "^
|
|
15
|
-
"@maskito/angular": "^
|
|
16
|
-
"@maskito/core": "^
|
|
17
|
-
"@ng-web-apis/intersection-observer": "^
|
|
18
|
-
"@ng-web-apis/common": "^
|
|
19
|
-
"@snabcentr/client-core": "^
|
|
20
|
-
"@taiga-ui/addon-charts": "^
|
|
21
|
-
"@taiga-ui/addon-commerce": "^
|
|
22
|
-
"@taiga-ui/cdk": "^
|
|
23
|
-
"@taiga-ui/core": "^
|
|
24
|
-
"@taiga-ui/event-plugins": "^
|
|
25
|
-
"@taiga-ui/icons": "^
|
|
26
|
-
"@taiga-ui/kit": "^
|
|
27
|
-
"@taiga-ui/layout": "^
|
|
28
|
-
"@taiga-ui/legacy": "^
|
|
29
|
-
"@taiga-ui/i18n": "^
|
|
30
|
-
"@taiga-ui/polymorpheus": "^
|
|
31
|
-
"@taiga-ui/experimental": "^
|
|
32
|
-
"@taiga-ui/styles": "^
|
|
9
|
+
"@angular/cdk": "^18.2.14",
|
|
10
|
+
"@angular/common": "^18.2.14",
|
|
11
|
+
"@angular/compiler": "^18.2.14",
|
|
12
|
+
"@angular/core": "^18.2.14",
|
|
13
|
+
"@angular/forms": "^18.2.14",
|
|
14
|
+
"@angular/router": "^18.2.14",
|
|
15
|
+
"@maskito/angular": "^3.11.1",
|
|
16
|
+
"@maskito/core": "^3.11.1",
|
|
17
|
+
"@ng-web-apis/intersection-observer": "^4.14.0",
|
|
18
|
+
"@ng-web-apis/common": "^4.14.0",
|
|
19
|
+
"@snabcentr/client-core": "^3.21.5",
|
|
20
|
+
"@taiga-ui/addon-charts": "^4.66.0",
|
|
21
|
+
"@taiga-ui/addon-commerce": "^4.66.0",
|
|
22
|
+
"@taiga-ui/cdk": "^4.66.0",
|
|
23
|
+
"@taiga-ui/core": "^4.66.0",
|
|
24
|
+
"@taiga-ui/event-plugins": "^4.7.0",
|
|
25
|
+
"@taiga-ui/icons": "^4.66.0",
|
|
26
|
+
"@taiga-ui/kit": "^4.66.0",
|
|
27
|
+
"@taiga-ui/layout": "^4.66.0",
|
|
28
|
+
"@taiga-ui/legacy": "^4.66.0",
|
|
29
|
+
"@taiga-ui/i18n": "^4.66.0",
|
|
30
|
+
"@taiga-ui/polymorpheus": "^4.7.4",
|
|
31
|
+
"@taiga-ui/experimental": "^4.66.0",
|
|
32
|
+
"@taiga-ui/styles": "^4.66.0",
|
|
33
33
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
34
|
-
"
|
|
34
|
+
"ng-recaptcha-2": "^14.0.0",
|
|
35
|
+
"angular8-yandex-maps": "^18.2.0",
|
|
35
36
|
"date-fns": "^4.1.0",
|
|
36
|
-
"libphonenumber-js": "^1.12.
|
|
37
|
-
"angularx-qrcode": "^
|
|
38
|
-
"lodash-es": "^4.17.
|
|
39
|
-
"rxjs": "^7.8.
|
|
37
|
+
"libphonenumber-js": "^1.12.7",
|
|
38
|
+
"angularx-qrcode": "^18.0.2",
|
|
39
|
+
"lodash-es": "^4.17.21",
|
|
40
|
+
"rxjs": "^7.8.1",
|
|
40
41
|
"schema-dts": "^2.0.0",
|
|
41
|
-
"zone.js": "~0.
|
|
42
|
+
"zone.js": "~0.14.10"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
45
|
"tslib": "^2.8.1"
|
|
45
46
|
},
|
|
46
47
|
"sideEffects": false,
|
|
47
48
|
"module": "fesm2022/snabcentr-client-ui.mjs",
|
|
48
|
-
"typings": "
|
|
49
|
+
"typings": "index.d.ts",
|
|
49
50
|
"exports": {
|
|
50
51
|
"./package.json": {
|
|
51
52
|
"default": "./package.json"
|
|
52
53
|
},
|
|
53
54
|
".": {
|
|
54
|
-
"types": "./
|
|
55
|
+
"types": "./index.d.ts",
|
|
56
|
+
"esm2022": "./esm2022/snabcentr-client-ui.mjs",
|
|
57
|
+
"esm": "./esm2022/snabcentr-client-ui.mjs",
|
|
55
58
|
"default": "./fesm2022/snabcentr-client-ui.mjs"
|
|
56
59
|
}
|
|
57
|
-
}
|
|
58
|
-
"type": "module"
|
|
60
|
+
}
|
|
59
61
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Префикс якоря (fragment) ссылки на конкретный вопрос.
|
|
3
|
+
*/
|
|
4
|
+
export declare const SC_FAQ_QUESTION_ANCHOR_PREFIX = "question-";
|
|
5
|
+
/**
|
|
6
|
+
* Возвращает якорь (fragment) ссылки на вопрос.
|
|
7
|
+
*
|
|
8
|
+
* @param questionId Идентификатор вопроса.
|
|
9
|
+
*/
|
|
10
|
+
export declare const scGetFaqQuestionAnchor: (questionId: number) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Возвращает идентификатор вопроса из якоря (fragment) ссылки или `null`, если якорь не ссылается на вопрос.
|
|
13
|
+
*
|
|
14
|
+
* @param fragment Якорь (fragment) адреса.
|
|
15
|
+
*/
|
|
16
|
+
export declare const scGetFaqQuestionIdFromAnchor: (fragment: string | null | undefined) => number | null;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { InputSignal, WritableSignal } from '@angular/core';
|
|
2
|
+
import { UrlCreationOptions } from '@angular/router';
|
|
3
|
+
import { ScFaqItem } from '@snabcentr/client-core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Компонент часто задаваемых вопросов.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ScFrequentlyAskedQuestionsComponent {
|
|
9
|
+
/**
|
|
10
|
+
* {@link InputSignal} списка группы часто задаваемых вопросов.
|
|
11
|
+
*/
|
|
12
|
+
readonly items: InputSignal<ScFaqItem[]>;
|
|
13
|
+
/**
|
|
14
|
+
* {@link InputSignal} отображения загрузки.
|
|
15
|
+
*/
|
|
16
|
+
readonly showLoading: InputSignal<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* {@link InputSignal} параметров прокрутки к вопросу из якоря.
|
|
19
|
+
*/
|
|
20
|
+
readonly scrollOptions: InputSignal<ScrollIntoViewOptions>;
|
|
21
|
+
/**
|
|
22
|
+
* {@link InputSignal} количества кадров удержания вопроса из якоря в поле зрения (около 5 секунд).
|
|
23
|
+
*/
|
|
24
|
+
readonly scrollHoldFrames: InputSignal<number>;
|
|
25
|
+
/**
|
|
26
|
+
* Признак, что приложение запущено на сервере.
|
|
27
|
+
*/
|
|
28
|
+
protected readonly isServer: Readonly<boolean>;
|
|
29
|
+
/**
|
|
30
|
+
* {@link WritableSignal} идентификаторов раскрытых вопросов.
|
|
31
|
+
*/
|
|
32
|
+
protected readonly openedIds: WritableSignal<Set<number>>;
|
|
33
|
+
/**
|
|
34
|
+
* Возвращает якорь ссылки на вопрос.
|
|
35
|
+
*/
|
|
36
|
+
protected readonly getAnchor: (questionId: number) => string;
|
|
37
|
+
/**
|
|
38
|
+
* Активный маршрут.
|
|
39
|
+
*/
|
|
40
|
+
private readonly route;
|
|
41
|
+
/**
|
|
42
|
+
* Инжектор компонента.
|
|
43
|
+
*/
|
|
44
|
+
private readonly injector;
|
|
45
|
+
/**
|
|
46
|
+
* Ссылка на уничтожение компонента.
|
|
47
|
+
*/
|
|
48
|
+
private readonly destroyRef;
|
|
49
|
+
/**
|
|
50
|
+
* {@link Signal} ссылок на заголовки вопросов.
|
|
51
|
+
*/
|
|
52
|
+
private readonly questionHeaders;
|
|
53
|
+
/**
|
|
54
|
+
* Инициализирует экземпляр класса {@link ScFrequentlyAskedQuestionsComponent}.
|
|
55
|
+
*/
|
|
56
|
+
constructor();
|
|
57
|
+
/**
|
|
58
|
+
* Возвращает параметры формирования ссылки на вопрос: текущая страница с её query-параметрами и якорем вопроса.
|
|
59
|
+
*
|
|
60
|
+
* @param questionId Идентификатор вопроса.
|
|
61
|
+
*/
|
|
62
|
+
protected getShareLinkOptions(questionId: number): UrlCreationOptions;
|
|
63
|
+
/**
|
|
64
|
+
* Обработчик изменения состояния раскрытия вопроса.
|
|
65
|
+
*
|
|
66
|
+
* @param questionId Идентификатор вопроса.
|
|
67
|
+
* @param opened Признак, что вопрос раскрыт.
|
|
68
|
+
*/
|
|
69
|
+
protected onOpenedChange(questionId: number, opened: boolean): void;
|
|
70
|
+
/**
|
|
71
|
+
* Возвращает элемент заголовка вопроса.
|
|
72
|
+
*
|
|
73
|
+
* @param questionId Идентификатор вопроса.
|
|
74
|
+
*/
|
|
75
|
+
private getQuestionHeader;
|
|
76
|
+
/**
|
|
77
|
+
* Прокручивает страницу к заголовку вопроса и удерживает его в поле зрения.
|
|
78
|
+
*
|
|
79
|
+
* @param header Элемент заголовка вопроса.
|
|
80
|
+
*/
|
|
81
|
+
private scrollToHeader;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScFrequentlyAskedQuestionsComponent, never>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScFrequentlyAskedQuestionsComponent, "sc-frequently-asked-questions", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "showLoading": { "alias": "showLoading"; "required": false; "isSignal": true; }; "scrollOptions": { "alias": "scrollOptions"; "required": false; "isSignal": true; }; "scrollHoldFrames": { "alias": "scrollHoldFrames"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
84
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Params } from '@angular/router';
|
|
2
|
+
import { ScFaqGroup } from '@snabcentr/client-core';
|
|
3
|
+
/**
|
|
4
|
+
* Возвращает query-параметры ссылки на группу часто задаваемых вопросов.
|
|
5
|
+
*
|
|
6
|
+
* При смене группы пагинация сбрасывается на первую страницу.
|
|
7
|
+
*
|
|
8
|
+
* @param group Группа вопросов.
|
|
9
|
+
*/
|
|
10
|
+
export declare const scGetFaqGroupQueryParams: (group: ScFaqGroup) => Params;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { InputSignal } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { Params } from '@angular/router';
|
|
4
|
+
import { ScFaqGroup } from '@snabcentr/client-core';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Компонент выбора группы часто задаваемых вопросов.
|
|
9
|
+
*
|
|
10
|
+
* TODO: [TAIGA:5]: Заменить legacy tui-select и tuiItemsHandlersProvider на актуальные аналоги.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ScFrequentlyAskedQuestionsGroupSelectorComponent {
|
|
13
|
+
/**
|
|
14
|
+
* Сервис маршрутизации.
|
|
15
|
+
*/
|
|
16
|
+
private readonly router;
|
|
17
|
+
/**
|
|
18
|
+
* Активный маршрут.
|
|
19
|
+
*/
|
|
20
|
+
private readonly route;
|
|
21
|
+
/**
|
|
22
|
+
* {@link Observable} списка группы часто задаваемых вопросов.
|
|
23
|
+
*/
|
|
24
|
+
protected readonly groups$: Observable<ScFaqGroup[]>;
|
|
25
|
+
/**
|
|
26
|
+
* {@link FormControl} выбранной группы.
|
|
27
|
+
*/
|
|
28
|
+
protected readonly groupControl: FormControl<ScFaqGroup | null>;
|
|
29
|
+
/**
|
|
30
|
+
* {@link InputSignal} идентификатора выбранной группы.
|
|
31
|
+
*/
|
|
32
|
+
readonly selectedGroupId: InputSignal<number | null>;
|
|
33
|
+
/**
|
|
34
|
+
* Формат отображения. 'list' - в виде списка, 'select' в виде выпадающего списка.
|
|
35
|
+
*/
|
|
36
|
+
readonly viewMode: InputSignal<'list' | 'select'>;
|
|
37
|
+
/**
|
|
38
|
+
* Возвращает query-параметры ссылки на группу вопросов.
|
|
39
|
+
*/
|
|
40
|
+
protected readonly getGroupQueryParams: (group: ScFaqGroup) => Params;
|
|
41
|
+
/**
|
|
42
|
+
* Инициализирует экземпляр класса {@link ScFrequentlyAskedQuestionsGroupSelectorComponent}.
|
|
43
|
+
*/
|
|
44
|
+
constructor();
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScFrequentlyAskedQuestionsGroupSelectorComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScFrequentlyAskedQuestionsGroupSelectorComponent, "sc-frequently-asked-questions-group-selector", never, { "selectedGroupId": { "alias": "selectedGroupId"; "required": false; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
47
|
+
}
|