@snabcentr/client-ui 4.14.2 → 4.14.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "4.14.2",
3
+ "version": "4.14.3",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
6
6
  "license": "Commercial",
@@ -14,6 +14,14 @@ export declare class ScFrequentlyAskedQuestionsComponent {
14
14
  * {@link InputSignal} отображения загрузки.
15
15
  */
16
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>;
17
25
  /**
18
26
  * Признак, что приложение запущено на сервере.
19
27
  */
@@ -30,14 +38,20 @@ export declare class ScFrequentlyAskedQuestionsComponent {
30
38
  * Активный маршрут.
31
39
  */
32
40
  private readonly route;
41
+ /**
42
+ * Инжектор компонента.
43
+ */
44
+ private readonly injector;
45
+ /**
46
+ * Ссылка на уничтожение компонента.
47
+ */
48
+ private readonly destroyRef;
33
49
  /**
34
50
  * {@link Signal} ссылок на заголовки вопросов.
35
51
  */
36
52
  private readonly questionHeaders;
37
53
  /**
38
54
  * Инициализирует экземпляр класса {@link ScFrequentlyAskedQuestionsComponent}.
39
- *
40
- * Вопрос из якоря адреса раскрывается, а после отрисовки списка к нему выполняется прокрутка (в браузере).
41
55
  */
42
56
  constructor();
43
57
  /**
@@ -59,6 +73,12 @@ export declare class ScFrequentlyAskedQuestionsComponent {
59
73
  * @param questionId Идентификатор вопроса.
60
74
  */
61
75
  private getQuestionHeader;
76
+ /**
77
+ * Прокручивает страницу к заголовку вопроса и удерживает его в поле зрения.
78
+ *
79
+ * @param header Элемент заголовка вопроса.
80
+ */
81
+ private scrollToHeader;
62
82
  static ɵfac: i0.ɵɵFactoryDeclaration<ScFrequentlyAskedQuestionsComponent, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<ScFrequentlyAskedQuestionsComponent, "sc-frequently-asked-questions", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "showLoading": { "alias": "showLoading"; "required": false; "isSignal": true; }; }, {}, never, never, true, 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>;
64
84
  }
package/release_notes.tmp CHANGED
@@ -1,6 +1,6 @@
1
- ## 4.14.2 (2026-09-14)
1
+ ## 4.14.3 (2026-09-15)
2
2
 
3
3
  ### fixed (1 change)
4
4
 
5
- - [#13839: Исправлено копирование ссылки в диалоге "Поделиться" на сайтах без защищённого соединения](web_soft/libs/angular/snabcentr-client-ui-lib@b642d16f22480fad27c10a48c4447b77c5f1d5f1) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!446))
5
+ - [#13839: Исправлено раскрытие вопроса и прокрутка к нему при переходе по ссылке на вопрос FAQ](web_soft/libs/angular/snabcentr-client-ui-lib@c9bf51e6b0ed3490d1b7909b3f1e005ed7d604a7) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!447))
6
6