UNPKG

zwave-js-ui

Version:

Z-Wave Control Panel and MQTT Gateway

2 lines (1 loc) 831 B
import{_ as a,m as n,a as m,e as i,z as d,K as h,x as l,bR as p}from"./index-DwzE-W2i.js";const S={props:{hideDetails:{type:Boolean},prependIcon:{type:String}},data(){return{colorSchemes:p}},computed:{...m(l,{colorScheme:e=>e.ui.colorScheme}),internalColorScheme:{get(){return this.colorScheme},set(e){this.setColorScheme(e)}}},methods:{...n(l,["setColorScheme"])}};function u(e,o,t,f,s,r){return d(),i(h,{hint:"Force dark/light mode or select color scheme automatically based on the system preference","persistent-hint":"",label:"Color scheme","hide-details":t.hideDetails,items:s.colorSchemes,"prepend-icon":t.prependIcon,modelValue:r.internalColorScheme,"onUpdate:modelValue":o[0]||(o[0]=c=>r.internalColorScheme=c)},null,8,["hide-details","items","prepend-icon","modelValue"])}const _=a(S,[["render",u]]);export{_ as default};