@snabcentr/client-ui 3.24.0 → 3.25.1

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.
Files changed (35) hide show
  1. package/contacts/new-contact-form/sc-new-contact-form.component.d.ts +5 -0
  2. package/contacts/sc-contacts.module.d.ts +3 -1
  3. package/contragents/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.d.ts +3 -1
  4. package/contragents/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.d.ts +11 -2
  5. package/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.d.ts +5 -0
  6. package/delivery-address/sc-delivery-address.module.d.ts +3 -1
  7. package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +3 -3
  8. package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +3 -3
  9. package/esm2022/banner/sc-banner.component.mjs +3 -3
  10. package/esm2022/contacts/new-contact-form/sc-new-contact-form.component.mjs +13 -6
  11. package/esm2022/contacts/sc-contacts.module.mjs +12 -5
  12. package/esm2022/contragents/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.mjs +3 -3
  13. package/esm2022/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.mjs +3 -3
  14. package/esm2022/contragents/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.mjs +13 -5
  15. package/esm2022/contragents/new-contragent-form/sc-new-contragent-form.component.mjs +3 -3
  16. package/esm2022/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.mjs +16 -9
  17. package/esm2022/delivery-address/sc-delivery-address.module.mjs +12 -5
  18. package/esm2022/directives/abstract-price-card/abstract-sc-price-card.directive.mjs +6 -3
  19. package/esm2022/feedback/feedback-form/sc-feedback-form.component.mjs +15 -5
  20. package/esm2022/news/news-card/sc-news-card.component.mjs +15 -15
  21. package/esm2022/samples/interfaces/sc-i-preview-sample.mjs +1 -1
  22. package/esm2022/samples/preview-sample/sc-preview-sample.component.mjs +15 -56
  23. package/esm2022/samples/sc-preview-samples-mosquito/sc-preview-samples-mosquito.component.mjs +7 -3
  24. package/esm2022/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +8 -5
  25. package/esm2022/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +4 -2
  26. package/esm2022/verification/sc-verification.module.mjs +3 -13
  27. package/feedback/feedback-form/sc-feedback-form.component.d.ts +5 -0
  28. package/fesm2022/snabcentr-client-ui.mjs +133 -139
  29. package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
  30. package/news/news-card/sc-news-card.component.d.ts +5 -5
  31. package/package.json +1 -1
  32. package/release_notes.tmp +3 -3
  33. package/samples/interfaces/sc-i-preview-sample.d.ts +5 -1
  34. package/samples/preview-sample/sc-preview-sample.component.d.ts +8 -26
  35. package/samples/sc-preview-samples-mosquito/sc-preview-samples-mosquito.component.d.ts +5 -1
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { InputSignal } from '@angular/core';
2
2
  import { ScImageHelper, ScNewsTile } from '@snabcentr/client-core';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
@@ -8,11 +8,11 @@ export declare class ScNewsCardComponent {
8
8
  /**
9
9
  * Данные о новости.
10
10
  */
11
- news: ScNewsTile;
11
+ news: InputSignal<ScNewsTile>;
12
12
  /**
13
- * Событие клика по карточке новости.
13
+ * Ссылка на страницу новости. Используется именно `href`, так как остановить событие клика для `routerLink` не вышло.
14
14
  */
15
- clickCardEvent: EventEmitter<ScNewsTile>;
15
+ href: InputSignal<string | null>;
16
16
  /**
17
17
  * Признак того, что этот компонент отображается на мобильном устройстве.
18
18
  */
@@ -22,5 +22,5 @@ export declare class ScNewsCardComponent {
22
22
  */
23
23
  protected readonly imageHelper: ScImageHelper;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ScNewsCardComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ScNewsCardComponent, "sc-news-card", never, { "news": { "alias": "news"; "required": false; }; }, { "clickCardEvent": "clickCardEvent"; }, never, never, false, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScNewsCardComponent, "sc-news-card", never, { "news": { "alias": "news"; "required": true; "isSignal": true; }; "href": { "alias": "href"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "3.24.0",
3
+ "version": "3.25.1",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
6
6
  "license": "Commercial",
package/release_notes.tmp CHANGED
@@ -1,6 +1,6 @@
1
- ## 3.24.0 (2025-05-05)
1
+ ## 3.25.1 (2025-05-14)
2
2
 
3
- ### added (1 change)
3
+ ### fixed (1 change)
4
4
 
5
- - [#10994: Добавлен компонент формы отправки запроса на уведомление о поступлении товара.](web_soft/libs/angular/snabcentr-client-ui-lib@1dfa98d6e1cd967b516995eaa93f57fe608ab60a) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!270))
5
+ - [#11370: Исправлены ошибки SSR и доработаны ссылки компонентов](web_soft/libs/angular/snabcentr-client-ui-lib@78f6e22868148474e1a79c6d0c246c7fe5e39483) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!272))
6
6
 
@@ -38,10 +38,14 @@ export interface ScIPreviewSample {
38
38
  * Подпись элемента взаимодействия.
39
39
  */
40
40
  label: string;
41
+ /**
42
+ * Ссылка.
43
+ */
44
+ href?: string;
41
45
  /**
42
46
  * Обработчик элемента взаимодействия.
43
47
  */
44
- handler: (...atr: unknown[]) => unknown;
48
+ handler?: (...atr: unknown[]) => unknown;
45
49
  }>;
46
50
  }>;
47
51
  /**
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { InputSignal, ModelSignal } from '@angular/core';
2
2
  import { ScIPreviewSample } from '../interfaces/sc-i-preview-sample';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
@@ -8,41 +8,23 @@ export declare class ScPreviewSampleComponent {
8
8
  /**
9
9
  * Индекс элемента в галерее.
10
10
  */
11
- index: number;
11
+ readonly index: ModelSignal<number>;
12
12
  /**
13
- * {@link EventEmitter} изменения индекса элемента в галерее.
13
+ * Длительность переключения карусели.
14
14
  */
15
- readonly indexChange: EventEmitter<number>;
15
+ duration: InputSignal<number>;
16
16
  /**
17
17
  * Объект данных товара.
18
18
  */
19
- sample: ScIPreviewSample;
19
+ sample: InputSignal<ScIPreviewSample>;
20
20
  /**
21
21
  * Признак, что необходимо отображать переключатели на карусели.
22
22
  */
23
- isShowCarouselSwitches: boolean;
23
+ isShowCarouselSwitches: InputSignal<boolean>;
24
24
  /**
25
25
  * Признак, что при горизонтальном отображении компонент должен быть развёрнут.
26
26
  */
27
- isReverse: boolean;
28
- /**
29
- * {@link Observable} изменения индекса элемента в галерее для автоматического переключения по таймеру.
30
- */
31
- indexChangeInterval: import("rxjs").Observable<number>;
32
- /**
33
- * Переключает на предыдущее изображение в галерее.
34
- */
35
- onPrevious(): void;
36
- /**
37
- * Переключает на следующее изображение в галерее.
38
- */
39
- onNext(): void;
40
- /**
41
- * Обработчик изменения индекса элемента в галерее.
42
- *
43
- * @param index Индекс элемента в галерее.
44
- */
45
- onChangeIndex(index: number): void;
27
+ isReverse: InputSignal<boolean>;
46
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ScPreviewSampleComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<ScPreviewSampleComponent, "sc-preview-sample", never, { "index": { "alias": "index"; "required": false; }; "sample": { "alias": "sample"; "required": false; }; "isShowCarouselSwitches": { "alias": "isShowCarouselSwitches"; "required": false; }; "isReverse": { "alias": "isReverse"; "required": false; }; }, { "indexChange": "indexChange"; }, never, never, false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScPreviewSampleComponent, "sc-preview-sample", never, { "index": { "alias": "index"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "sample": { "alias": "sample"; "required": true; "isSignal": true; }; "isShowCarouselSwitches": { "alias": "isShowCarouselSwitches"; "required": false; "isSignal": true; }; "isReverse": { "alias": "isReverse"; "required": false; "isSignal": true; }; }, { "index": "indexChange"; }, never, never, false, never>;
48
30
  }
@@ -29,6 +29,10 @@ export declare class ScPreviewSamplesMosquitoComponent {
29
29
  * Событие, которое происходит при нажатии на кнопку "Назад в Конфигуратор".
30
30
  */
31
31
  readonly openConfiguratorClick: OutputEmitterRef<void>;
32
+ /**
33
+ * Ссылка на страницу конфигуратора.
34
+ */
35
+ readonly configuratorPageUrl: InputSignal<string | undefined>;
32
36
  /**
33
37
  * Событие, которое происходит при нажатии на кнопку "Консультация".
34
38
  */
@@ -42,5 +46,5 @@ export declare class ScPreviewSamplesMosquitoComponent {
42
46
  */
43
47
  protected readonly isShowCarouselSwitches: InputSignal<boolean>;
44
48
  static ɵfac: i0.ɵɵFactoryDeclaration<ScPreviewSamplesMosquitoComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<ScPreviewSamplesMosquitoComponent, "sc-preview-samples-mosquito", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "autoSlideIntervale": { "alias": "autoSlideIntervale"; "required": false; "isSignal": true; }; "isShowCarouselSwitches": { "alias": "isShowCarouselSwitches"; "required": false; "isSignal": true; }; }, { "openConfiguratorClick": "openConfiguratorClick"; "openConsultationClick": "openConsultationClick"; }, never, never, true, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScPreviewSamplesMosquitoComponent, "sc-preview-samples-mosquito", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "configuratorPageUrl": { "alias": "configuratorPageUrl"; "required": false; "isSignal": true; }; "autoSlideIntervale": { "alias": "autoSlideIntervale"; "required": false; "isSignal": true; }; "isShowCarouselSwitches": { "alias": "isShowCarouselSwitches"; "required": false; "isSignal": true; }; }, { "openConfiguratorClick": "openConfiguratorClick"; "openConsultationClick": "openConsultationClick"; }, never, never, true, never>;
46
50
  }