mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-30 00:16:56 +03:00
docs(web-test): сжать описание мультивыбора selectValue в SKILL.md
Убрано перечисление 4 внутренних поверхностей и «auto-detected gesture» — протекающая реализация, модели не нужна. Оставлено только то, что нужно вызывающей модели: массив → мультивыбор, replace, форма возврата (values/notSelected), формы элементов. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
fe4443ca97
commit
619fd77fae
@@ -340,21 +340,14 @@ await selectValue('Документ', '0000-000601', { type: 'Реализаци
|
|||||||
|
|
||||||
Also supports DCS labels — auto-enables the paired checkbox.
|
Also supports DCS labels — auto-enables the paired checkbox.
|
||||||
|
|
||||||
**Multi-select (value-list fields)** — pass an **array** to select several values at once. Works
|
**Multi-select** — pass an **array** to select several values at once; the field is set to exactly
|
||||||
across all "список значений" surfaces (checkbox form, intermediate pool + Подбор, inline cloud
|
that set (replace). Returns `selected: { field, values, notSelected? }` — `values` are the ones
|
||||||
dropdown, catalog multi-row select) — the right gesture is auto-detected. Always **replace**
|
actually selected; any value the field doesn't offer goes to `notSelected: [{ value, reason }]`
|
||||||
semantics (the field ends up with exactly the given set):
|
(the call doesn't throw). Elements take the same forms as `search` (string, or `{ col: value }`).
|
||||||
```js
|
```js
|
||||||
await selectValue('Наименование компании', ['Альфа ООО', 'Бета АО']);
|
await selectValue('Наименование компании', ['Альфа ООО', 'Бета АО']);
|
||||||
// result.selected = { field: 'Наименование компании', values: ['Альфа ООО', 'Бета АО'] }
|
// selected: { field: 'Наименование компании', values: ['Альфа ООО', 'Бета АО'] }
|
||||||
|
|
||||||
// Values not offered by the field land in notSelected (the call does not throw):
|
|
||||||
const r = await selectValue('Организации', ['Альфа ООО', 'Несуществующая']);
|
|
||||||
// r.selected = { field: 'Организации', values: ['Альфа ООО'],
|
|
||||||
// notSelected: [{ value: 'Несуществующая', reason: 'not_in_list' }] }
|
|
||||||
```
|
```
|
||||||
Array elements are strings (the displayed value); objects `{ col: value }` are passed through as
|
|
||||||
the catalog search (for surfaces that open a selection catalog).
|
|
||||||
|
|
||||||
#### `fillTableRow(fields, opts)` → form state with `filled` (+ optional `notFilled`)
|
#### `fillTableRow(fields, opts)` → form state with `filled` (+ optional `notFilled`)
|
||||||
Fill table row cells via Tab navigation. Value is a plain string, `{ value, type }` for composite-type cells, or `''`/`null` to clear (Shift+F4).
|
Fill table row cells via Tab navigation. Value is a plain string, `{ value, type }` for composite-type cells, or `''`/`null` to clear (Shift+F4).
|
||||||
|
|||||||
Reference in New Issue
Block a user