@peektravel/app-utilities 0.5.3 → 0.5.4

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/docs/ui.md CHANGED
@@ -79,10 +79,10 @@ they work declaratively in plain HTML:
79
79
 
80
80
  | Component | JS property | JSON attribute fallback |
81
81
  |---|---|---|
82
- | `ody-dropdown-single` / `ody-dropdown-multi` | `el.options = [...]` | `options='[{"value":"a","label":"A"}]'` |
82
+ | `ody-dropdown-single` / `ody-dropdown-multi` / `ody-checkbox-group` | `el.options = [...]` | `options='[{"value":"a","label":"A"}]'` |
83
83
  | `ody-tabs` | — | `tabs='[{"id":"a","label":"A"}]'` |
84
84
  | `ody-toggle-button` | — | `options='[{"value":"a","label":"A"}]'` |
85
- | `ody-radio-button-group` / `ody-checkbox-group` | `el.options` (getter) | `options='[{"value":"a","label":"A"}]'` |
85
+ | `ody-radio-button-group` | `el.options` (getter) | `options='[{"value":"a","label":"A"}]'` |
86
86
  | `ody-datepicker` | — | `presets='[{"label":"…","value":"…"}]'` |
87
87
  | `ody-table` | `el.columns`, `el.data` | none — JS only |
88
88
 
@@ -640,12 +640,12 @@ are blocked; on blur the value is clamped/normalised.
640
640
  **Use when** several toggles, optionally with a "select all" parent (checked
641
641
  when all selected, indeterminate when some).
642
642
  **Attributes**
643
- - `options` — JSON array of `{ label, value }`.
643
+ - `options` — JSON array of `{ label, value }` (also a JS property, below).
644
644
  - `value` — comma-separated selected values.
645
645
  - `select-all-label` — when present, renders the parent select-all row.
646
646
  - `size` — `base` | `small` (default `small`).
647
647
  - `disabled` — boolean.
648
- **Properties (JS)** — `value: string[]` (get returns array, set takes array); `options: OdyCheckboxOption[]` (read-only getter).
648
+ **Properties (JS)** — `value: string[]` (get returns array, set takes array); `options: OdyCheckboxOption[]` (get parses the attribute, set writes the JSON attribute — assign `el.options = [...]` as with `<ody-dropdown-*>`).
649
649
  **Events** — `change` → `{ value: string[] }`.
650
650
  **Example**
651
651
  ```html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peektravel/app-utilities",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "GraphQL JS mapping utilities extracted from the Peek Pro Autopilot connector.",
5
5
  "license": "MIT",
6
6
  "repository": {