mobx-view-model-devtools 0.0.41 → 0.0.42

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/index.d.ts CHANGED
@@ -103,6 +103,8 @@ declare class SearchEngine {
103
103
  searchText: string;
104
104
  searchCacheKey: string;
105
105
  isSearching: boolean;
106
+ private scrollToSearchMatchTimeout;
107
+ private static readonly itemHeight;
106
108
  get formattedSearchText(): string;
107
109
  /**
108
110
  * Сегменты поиска, разбитые по точке.
@@ -119,6 +121,9 @@ declare class SearchEngine {
119
121
  get suggestionSuffix(): string;
120
122
  handleSearchInput: (e: ChangeEvent<HTMLInputElement>) => void;
121
123
  handleKeyDown: (e: KeyboardEvent<HTMLInputElement>) => void;
124
+ private scheduleScrollToFirstSearchMatch;
125
+ private scrollToFirstSearchMatch;
126
+ private scrollSimpleBarToOffset;
122
127
  /**
123
128
  * Рекурсивно собирает все VMListItem из дерева (включая вложенные).
124
129
  */
@@ -128,6 +133,12 @@ declare class SearchEngine {
128
133
  * pathSegments — все сегменты кроме последнего (путь навигации).
129
134
  */
130
135
  private getCandidatePropsAtDepth;
136
+ /**
137
+ * Уже введённый path-сегмент должен совпадать строго:
138
+ * `product.` заходит только в `product`, а не в `productAsyncTasks`
139
+ * или `serviceAndProductSearch`.
140
+ */
141
+ private getPathMatchingProps;
131
142
  /**
132
143
  * Навигация вглубь по цепочке свойств.
133
144
  * Возвращает свойства на нужной глубине.
@@ -154,6 +165,9 @@ declare class SearchEngine {
154
165
  isPropertyItemExpanded(item: PropertyListItem): boolean;
155
166
  isPropertyItemExpandable(item: PropertyListItem): boolean;
156
167
  isVmItemExpanded(item: VMListItem): boolean;
168
+ private isSearchTargetMatched;
169
+ private isVMSearchTargetMatched;
170
+ private isPropertySearchTargetMatched;
157
171
  /**
158
172
  * Определяет, должен ли элемент отображаться «нормально» (true)
159
173
  * или «затемнённо» (false — серым).
@@ -165,7 +179,14 @@ declare class SearchEngine {
165
179
  * элемент находится в «несовпадающей ветке» и тоже должен быть серым.
166
180
  */
167
181
  isItemFitted(item: ListItem<any>): boolean;
182
+ /**
183
+ * Для path-сегмента exact-match важнее includes.
184
+ * Если среди соседей есть `product`, то `product.` должен подсветить только
185
+ * `product`, а не `serviceAndProductSearch`.
186
+ */
187
+ private isPropertyFittedToSegment;
168
188
  resetSearch: () => void;
189
+ focusInput: () => void;
169
190
  constructor(config: SearchEngineConfig);
170
191
  }
171
192