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.
- package/dist/client/client/client.js +5 -4
- package/dist/client/client/css/menu.styl +3 -0
- package/dist/client/unlogged/render-formulario.tsx +11 -6
- package/dist/server/server/app-dmencu.js +3 -3
- package/dist/server/server/table-areas.js +2 -1
- package/dist/server/server/table-encuestadores.js +2 -2
- package/dist/server/server/table-tareas_tem_recepcion.js +3 -3
- package/dist/unlogged/unlogged/render-formulario.js +6 -2
- package/dist/unlogged/unlogged/render-formulario.tsx +11 -6
- package/package.json +1 -1
|
@@ -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)=>
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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