mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
e323cd1d79
Update shoelace to 2.9.0
26 lines
586 B
TypeScript
26 lines
586 B
TypeScript
import {Et2Select} from "../Et2Select";
|
|
import {Et2StaticSelectMixin} from "../StaticOptions";
|
|
|
|
export class Et2SelectBitwise extends Et2StaticSelectMixin(Et2Select)
|
|
{
|
|
/* currently handled server-side */
|
|
/*
|
|
set value(new_value)
|
|
{
|
|
let oldValue = this._value;
|
|
let expanded_value = [];
|
|
let options = this.select_options;
|
|
for(let index in options)
|
|
{
|
|
let right = parseInt(options[index].value);
|
|
if(!!(new_value & right))
|
|
{
|
|
expanded_value.push(right);
|
|
}
|
|
}
|
|
super.value = expanded_value;
|
|
}
|
|
*/
|
|
}
|
|
|
|
customElements.define("et2-select-bitwise", Et2SelectBitwise); |