@operato/popup
Advanced tools
Comparing version 2.0.0-alpha.111 to 2.0.0-alpha.114
@@ -6,2 +6,11 @@ # Change Log | ||
## [2.0.0-alpha.114](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.113...v2.0.0-alpha.114) (2024-05-04) | ||
### :rocket: New Features | ||
* add personalSettings property into ox-grist ([f3ae065](https://github.com/hatiolab/operato/commit/f3ae0654c53086a85900cbbafaa3266a16bcd2d1)) | ||
## [2.0.0-alpha.111](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.110...v2.0.0-alpha.111) (2024-05-02) | ||
@@ -8,0 +17,0 @@ |
@@ -89,3 +89,3 @@ import '@material/web/icon/icon.js'; | ||
*/ | ||
static open({ template, top, left, right, bottom, parent }: { | ||
static open({ template, top, left, right, bottom, parent, multiple, attrSelected }: { | ||
template: unknown; | ||
@@ -97,3 +97,5 @@ top?: number; | ||
parent?: Element | null; | ||
multiple?: boolean; | ||
attrSelected?: string; | ||
}): OxPopupList; | ||
} |
@@ -263,5 +263,11 @@ import { __decorate } from "tslib"; | ||
*/ | ||
static open({ template, top, left, right, bottom, parent }) { | ||
static open({ template, top, left, right, bottom, parent, multiple, attrSelected }) { | ||
const owner = parent || document.body; | ||
const target = document.createElement('ox-popup-list'); | ||
if (!!multiple) { | ||
target.setAttribute('multiple', ''); | ||
} | ||
if (attrSelected) { | ||
target.setAttribute('attr-selected', attrSelected); | ||
} | ||
render(template, target); | ||
@@ -380,3 +386,3 @@ target._parent = owner; | ||
__decorate([ | ||
property({ type: Boolean }) | ||
property({ type: Boolean, attribute: true, reflect: true }) | ||
], OxPopupList.prototype, "multiple", void 0); | ||
@@ -383,0 +389,0 @@ __decorate([ |
@@ -5,3 +5,3 @@ { | ||
"author": "heartyoh", | ||
"version": "2.0.0-alpha.111", | ||
"version": "2.0.0-alpha.114", | ||
"main": "dist/src/index.js", | ||
@@ -100,3 +100,3 @@ "module": "dist/src/index.js", | ||
}, | ||
"gitHead": "3525a4247ad184a8d4de91d81db3f72f0e940c79" | ||
"gitHead": "28420fb1210e6d9dac426ae9493413568c886d6b" | ||
} |
@@ -141,3 +141,3 @@ import '@material/web/icon/icon.js' | ||
*/ | ||
@property({ type: Boolean }) multiple: boolean = false | ||
@property({ type: Boolean, attribute: true, reflect: true }) multiple: boolean = false | ||
@@ -451,3 +451,5 @@ /** | ||
bottom, | ||
parent | ||
parent, | ||
multiple, | ||
attrSelected | ||
}: { | ||
@@ -460,5 +462,16 @@ template: unknown | ||
parent?: Element | null | ||
multiple?: boolean | ||
attrSelected?: string | ||
}): OxPopupList { | ||
const owner = parent || document.body | ||
const target = document.createElement('ox-popup-list') as OxPopupList | ||
if (!!multiple) { | ||
target.setAttribute('multiple', '') | ||
} | ||
if (attrSelected) { | ||
target.setAttribute('attr-selected', attrSelected) | ||
} | ||
render(template, target) | ||
@@ -465,0 +478,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
509763
6026