2022-05-13 11:59:13 +02:00
|
|
|
/**
|
|
|
|
* EGroupware eTemplate2 - Readonly select WebComponent
|
|
|
|
*
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package api
|
|
|
|
* @link https://www.egroupware.org
|
|
|
|
* @author Ralf Becker <rb@egroupware.org>
|
|
|
|
*/
|
|
|
|
|
2023-09-13 19:55:33 +02:00
|
|
|
import {Et2SelectAccountReadonly} from "../Et2Select/Select/Et2SelectReadonly";
|
2022-05-13 11:59:13 +02:00
|
|
|
|
|
|
|
export class Et2VfsUid extends Et2SelectAccountReadonly
|
|
|
|
{
|
|
|
|
set value(_val)
|
|
|
|
{
|
|
|
|
if (!_val || _val === '0')
|
|
|
|
{
|
|
|
|
this.select_options = [{value: '0', label: 'root'}];
|
|
|
|
}
|
|
|
|
super.value = _val;
|
|
|
|
}
|
|
|
|
|
|
|
|
get value()
|
|
|
|
{
|
|
|
|
return super.value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// @ts-ignore TypeScript is not recognizing that this widget is a LitElement
|
|
|
|
customElements.define("et2-vfs-uid", Et2VfsUid);
|
|
|
|
|
|
|
|
export class Et2VfsGid extends Et2VfsUid {}
|
|
|
|
// @ts-ignore TypeScript is not recognizing that this widget is a LitElement
|
|
|
|
customElements.define("et2-vfs-gid", Et2VfsGid);
|