dmencu 0.3.48 → 0.3.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -145,12 +145,17 @@ const Button2 = ({variant, onClick, disabled, children, className, color, size,
145
145
  className?:string,
146
146
  size?:'small',
147
147
  $attrs?:{}
148
- } & CommonAttributes)=>html.button({
149
- ...other,
150
- class: `btn btn${variant=='contained'?'':'-'+(variant=='outlined'?'outline':variant)}-${(color=='default' || color=='inherit'?'secondary':color=='secondary'?'danger':color)||'secondary'} ${className||''} ${size=='small'?'btn-sm':''}`,
151
- disabled,
152
- $on:{click:onClick}
153
- }, children);
148
+ } & CommonAttributes)=>{
149
+ let button = html.button({
150
+ ...other,
151
+ class: `btn btn${variant=='contained'?'':'-'+(variant=='outlined'?'outline':variant)}-${(color=='default' || color=='inherit'?'secondary':color=='secondary'?'danger':color)||'secondary'} ${className||''} ${size=='small'?'btn-sm':''}`,
152
+ disabled,
153
+ }, children).create();
154
+ button.onmouseup = (_event)=>{
155
+ onClick?.();
156
+ }
157
+ return button
158
+ }
154
159
 
155
160
 
156
161
  const TextField = (props:{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dmencu",
3
3
  "description": "DM Encu - Encuestas en dispositivo móvil",
4
- "version": "0.3.48",
4
+ "version": "0.3.50",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "main": "dist/server/server/app-dmencu.js",