@snabcentr/client-ui 2.2.1 → 2.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.
Potentially problematic release.
This version of @snabcentr/client-ui might be problematic. Click here for more details.
- package/esm2022/samples/ask-to-sample-form/sc-ask-to-sample-form.component.mjs +21 -10
- package/esm2022/samples/sc-sample.module.mjs +10 -3
- package/fesm2022/snabcentr-client-ui.mjs +46 -28
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/package.json +2 -1
- package/release_notes.tmp +7 -3
- package/samples/ask-to-sample-form/sc-ask-to-sample-form.component.d.ts +8 -0
- package/samples/sc-sample.module.d.ts +2 -1
- package/styles/tailwind/tailwind.scss +16 -0
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "@snabcentr/client-ui",
         | 
| 3 | 
            -
              "version": "2. | 
| 3 | 
            +
              "version": "2.3.0",
         | 
| 4 4 | 
             
              "author": "Snabcentr Ltd.",
         | 
| 5 5 | 
             
              "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
         | 
| 6 6 | 
             
              "license": "Commercial",
         | 
| @@ -34,6 +34,7 @@ | |
| 34 34 | 
             
                "@taiga-ui/legacy": ">=4.5.0",
         | 
| 35 35 | 
             
                "@taiga-ui/polymorpheus": ">=4.6.4",
         | 
| 36 36 | 
             
                "@taiga-ui/styles": ">=4.5.0",
         | 
| 37 | 
            +
                "ng-recaptcha-2": ">=14.0.0",
         | 
| 37 38 | 
             
                "angular8-yandex-maps": ">=18.2.0",
         | 
| 38 39 | 
             
                "angularx-qrcode": ">=18.0.1",
         | 
| 39 40 | 
             
                "dompurify": ">=3.1.6",
         | 
    
        package/release_notes.tmp
    CHANGED
    
    | @@ -1,6 +1,10 @@ | |
| 1 | 
            -
            ## 2. | 
| 1 | 
            +
            ## 2.3.0 (2024-10-09)
         | 
| 2 2 |  | 
| 3 | 
            -
            ###  | 
| 3 | 
            +
            ### added (1 change)
         | 
| 4 4 |  | 
| 5 | 
            -
            - [# | 
| 5 | 
            +
            - [#10449: Добавлена капча для формы заказа образцов](web_soft/libs/angular/snabcentr-client-ui-lib@0d0c65d26c52569b21d928e2a7960d4de8b0b6f4) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!169))
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            ### fixed (1 change)
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            - [#10395: Исправлена ошибка прокрутки за баннер](web_soft/libs/angular/snabcentr-client-ui-lib@621b871f35d97947bfdd88cfce8f2f900406dd4e) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!168))
         | 
| 6 10 |  | 
| @@ -15,7 +15,14 @@ export declare class ScAskToSampleFormComponent implements OnInit { | |
| 15 15 | 
             
                 * Сервис информации о пользователе.
         | 
| 16 16 | 
             
                 */
         | 
| 17 17 | 
             
                readonly user$: Observable<import("@snabcentr/client-core").ScUser>;
         | 
| 18 | 
            +
                /**
         | 
| 19 | 
            +
                 * Контекст диалогового окна, в котором открыт компонент.
         | 
| 20 | 
            +
                 */
         | 
| 18 21 | 
             
                private readonly context;
         | 
| 22 | 
            +
                /**
         | 
| 23 | 
            +
                 * Поле ввода для recaptcha.
         | 
| 24 | 
            +
                 */
         | 
| 25 | 
            +
                readonly recaptchaControl: FormControl<string | null>;
         | 
| 19 26 | 
             
                /**
         | 
| 20 27 | 
             
                 * Наименование формы, с которой отправляется запрос.
         | 
| 21 28 | 
             
                 */
         | 
| @@ -28,6 +35,7 @@ export declare class ScAskToSampleFormComponent implements OnInit { | |
| 28 35 | 
             
                    phone: FormControl<string | null>;
         | 
| 29 36 | 
             
                    email: FormControl<string | null>;
         | 
| 30 37 | 
             
                    description: FormControl<string | null>;
         | 
| 38 | 
            +
                    recaptcha: FormControl<null>;
         | 
| 31 39 | 
             
                }>;
         | 
| 32 40 | 
             
                /**
         | 
| 33 41 | 
             
                 * Перечисление типов подсказок.
         | 
| @@ -9,11 +9,12 @@ import * as i7 from "../form-fields/form-fields.module"; | |
| 9 9 | 
             
            import * as i8 from "@taiga-ui/legacy";
         | 
| 10 10 | 
             
            import * as i9 from "@taiga-ui/cdk/directives/item";
         | 
| 11 11 | 
             
            import * as i10 from "@taiga-ui/cdk";
         | 
| 12 | 
            +
            import * as i11 from "ng-recaptcha-2";
         | 
| 12 13 | 
             
            /**
         | 
| 13 14 | 
             
             * Модуль представления образцов товара.
         | 
| 14 15 | 
             
             */
         | 
| 15 16 | 
             
            export declare class ScPreviewSampleModule {
         | 
| 16 17 | 
             
                static ɵfac: i0.ɵɵFactoryDeclaration<ScPreviewSampleModule, never>;
         | 
| 17 | 
            -
                static ɵmod: i0.ɵɵNgModuleDeclaration<ScPreviewSampleModule, [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.TuiError, typeof i6.TuiFieldErrorPipe, typeof i7.ScFormFieldsModule, typeof i8.TuiInputModule, typeof i8.TuiInputPhoneModule, typeof i9.TuiItem, typeof i6.TuiCarouselComponent, typeof i6.TuiCarouselDirective, typeof i6.TuiCarouselAutoscroll, typeof i6.TuiCarouselButtons, typeof i6.TuiCarouselScroll, typeof i6.TuiAvatar, typeof i10.TuiHovered, typeof i10.TuiLet, typeof i5.TuiButton, typeof i6.TuiButtonLoading, typeof i5.TuiLabel], [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent]>;
         | 
| 18 | 
            +
                static ɵmod: i0.ɵɵNgModuleDeclaration<ScPreviewSampleModule, [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.TuiError, typeof i6.TuiFieldErrorPipe, typeof i7.ScFormFieldsModule, typeof i8.TuiInputModule, typeof i8.TuiInputPhoneModule, typeof i9.TuiItem, typeof i6.TuiCarouselComponent, typeof i6.TuiCarouselDirective, typeof i6.TuiCarouselAutoscroll, typeof i6.TuiCarouselButtons, typeof i6.TuiCarouselScroll, typeof i6.TuiAvatar, typeof i10.TuiHovered, typeof i10.TuiLet, typeof i5.TuiButton, typeof i6.TuiButtonLoading, typeof i5.TuiLabel, typeof i11.RecaptchaFormsModule, typeof i11.RecaptchaModule], [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent]>;
         | 
| 18 19 | 
             
                static ɵinj: i0.ɵɵInjectorDeclaration<ScPreviewSampleModule>;
         | 
| 19 20 | 
             
            }
         | 
| @@ -712,6 +712,10 @@ video { | |
| 712 712 | 
             
              z-index: 10;
         | 
| 713 713 | 
             
            }
         | 
| 714 714 |  | 
| 715 | 
            +
            .\!-m-2 {
         | 
| 716 | 
            +
              margin: -0.5rem !important;
         | 
| 717 | 
            +
            }
         | 
| 718 | 
            +
             | 
| 715 719 | 
             
            .m-1 {
         | 
| 716 720 | 
             
              margin: 0.25rem;
         | 
| 717 721 | 
             
            }
         | 
| @@ -903,6 +907,14 @@ video { | |
| 903 907 | 
             
              height: 1px;
         | 
| 904 908 | 
             
            }
         | 
| 905 909 |  | 
| 910 | 
            +
            .\!max-h-0 {
         | 
| 911 | 
            +
              max-height: 0px !important;
         | 
| 912 | 
            +
            }
         | 
| 913 | 
            +
             | 
| 914 | 
            +
            .max-h-20 {
         | 
| 915 | 
            +
              max-height: 5rem;
         | 
| 916 | 
            +
            }
         | 
| 917 | 
            +
             | 
| 906 918 | 
             
            .max-h-full {
         | 
| 907 919 | 
             
              max-height: 100%;
         | 
| 908 920 | 
             
            }
         | 
| @@ -1643,6 +1655,10 @@ video { | |
| 1643 1655 | 
             
              transition-duration: 300ms;
         | 
| 1644 1656 | 
             
            }
         | 
| 1645 1657 |  | 
| 1658 | 
            +
            .duration-500 {
         | 
| 1659 | 
            +
              transition-duration: 500ms;
         | 
| 1660 | 
            +
            }
         | 
| 1661 | 
            +
             | 
| 1646 1662 | 
             
            .ease-in {
         | 
| 1647 1663 | 
             
              transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
         | 
| 1648 1664 | 
             
            }
         |