/** * ColorPicker Component Module */ globalThis.Component.register('ColorPicker', container => { container._thisObj = container; container.state = globalThis.NewState({ value: '#000000' }) container.addEventListener('bind', e => { container.state.value = e.detail || '#000000' }) Object.defineProperty(container, 'value', { get: () => container.state.value, set: v => { container.state.value = v || '#000000'; } }) container.updateValue = (val) => { container.state.value = val container.dispatchEvent(new CustomEvent('change', { bubbles: true, detail: val })) } }, globalThis.Util.makeDom(/*html*/`
`)) if (globalThis.AutoForm) { globalThis.AutoForm.register('ColorPicker') }