@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/dist/ui/index.cjs +9 -0
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +10 -1
- package/dist/ui/index.d.ts +10 -1
- package/dist/ui/index.js +9 -0
- package/dist/ui/index.js.map +1 -1
- package/docs/ui.md +4 -4
- package/package.json +1 -1
package/dist/ui/index.cjs
CHANGED
|
@@ -1994,6 +1994,15 @@ var OdyCheckboxGroup = class extends OdyElement {
|
|
|
1994
1994
|
get options() {
|
|
1995
1995
|
return parseOptions2(this.attr("options"));
|
|
1996
1996
|
}
|
|
1997
|
+
/**
|
|
1998
|
+
* Accepts an array of `{ label, value }` and stores it as the JSON `options`
|
|
1999
|
+
* attribute. Mirrors `<ody-dropdown-*>` so `el.options = [...]` works across
|
|
2000
|
+
* the data-driven elements. `options` is observed, so this triggers a
|
|
2001
|
+
* re-render via `attributeChangedCallback`.
|
|
2002
|
+
*/
|
|
2003
|
+
set options(next) {
|
|
2004
|
+
this.setAttribute("options", JSON.stringify(Array.isArray(next) ? next : []));
|
|
2005
|
+
}
|
|
1997
2006
|
render() {
|
|
1998
2007
|
const size = this.attr("size", "small");
|
|
1999
2008
|
const isDisabled = this.flag("disabled");
|