plugin-ui-for-kzt 0.0.40 → 0.0.41

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": "plugin-ui-for-kzt",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "plugin-ui for kazaktelekom",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -101,7 +101,6 @@ const classList = computed( () => [
101
101
 
102
102
  &__hint {
103
103
  color: var(--primary-text-secondary);
104
- overflow: hidden;
105
104
  max-height: 100px;
106
105
  transition: all 0.3s ease;
107
106
  }
@@ -37,6 +37,7 @@
37
37
  @open="handleEmployeeOpen"
38
38
  @clear="handleEmployeeClear"
39
39
  @error="handleSearchError"
40
+ @getSearchApi="handleGetNewOptions"
40
41
  />
41
42
  </template>
42
43
 
@@ -94,6 +95,11 @@ const handleEmployeeSearch = (query) => {
94
95
  }, 700) // Дебаунс 700мс
95
96
  }
96
97
 
98
+ // Логика для запроса
99
+ const handleGetNewOptions = (query) => {
100
+ fetchEmployees()
101
+ }
102
+
97
103
  // Загрузка при открытии если данных нет
98
104
  const handleEmployeeOpen = () => {
99
105
  if (employeeOptions.value.length === 0) {
@@ -180,6 +186,9 @@ const handleSearchError = () => {
180
186
  - `error`
181
187
  Эмитится когда пользователь вводит текст, но не выбирает ни одну опцию из списка. Полезно для валидации поиска.
182
188
 
189
+ - `getSearchApi`
190
+ Эмитится когда ничего не найден в options, чтобы сделать запрос для новых options
191
+
183
192
  ---
184
193
 
185
194
  ### 🧩 Слоты