imxc 0.6.7 → 0.6.8
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/emitter.js +1 -1
- package/dist/init.js +1 -1
- package/dist/ir.d.ts +1 -1
- package/dist/lowering.js +1 -1
- package/dist/templates/custom.js +1 -1
- package/dist/templates/hotreload.js +1 -1
- package/dist/templates/index.js +1 -1
- package/package.json +1 -1
package/dist/emitter.js
CHANGED
|
@@ -1648,7 +1648,7 @@ function emitText(node, lines, indent) {
|
|
|
1648
1648
|
function emitButton(node, lines, indent, depth) {
|
|
1649
1649
|
emitLocComment(node.loc, 'Button', lines, indent);
|
|
1650
1650
|
const title = asCharPtr(node.title);
|
|
1651
|
-
const disabledArg = node.disabled ?
|
|
1651
|
+
const disabledArg = node.disabled !== undefined ? `, {}, ${node.disabled}` : '';
|
|
1652
1652
|
const pressedVar = node.action.length > 0 ? nextWidgetTemp('button_pressed') : undefined;
|
|
1653
1653
|
const resultVar = emitBoolWidgetCall(`imx::renderer::button(${title}${disabledArg})`, node.item, lines, indent, pressedVar);
|
|
1654
1654
|
if (node.action.length > 0 && resultVar) {
|
package/dist/init.js
CHANGED
|
@@ -39,7 +39,7 @@ export function addToProject(projectDir) {
|
|
|
39
39
|
console.log(' include(FetchContent)');
|
|
40
40
|
console.log(' FetchContent_Declare(imx');
|
|
41
41
|
console.log(' GIT_REPOSITORY https://github.com/bgocumlu/imx.git');
|
|
42
|
-
console.log(' GIT_TAG v0.6.
|
|
42
|
+
console.log(' GIT_TAG v0.6.8');
|
|
43
43
|
console.log(' )');
|
|
44
44
|
console.log(' FetchContent_MakeAvailable(imx)');
|
|
45
45
|
console.log(' include(ImxCompile)');
|
package/dist/ir.d.ts
CHANGED
package/dist/lowering.js
CHANGED
|
@@ -1045,7 +1045,7 @@ function lowerButton(attrs, rawAttrs, body, ctx, loc) {
|
|
|
1045
1045
|
if (onPressExpr) {
|
|
1046
1046
|
action = extractActionStatements(onPressExpr, ctx);
|
|
1047
1047
|
}
|
|
1048
|
-
const disabled = attrs['disabled']
|
|
1048
|
+
const disabled = attrs['disabled'];
|
|
1049
1049
|
const style = attrs['style'];
|
|
1050
1050
|
const item = lowerItemInteraction(attrs, rawAttrs, ctx);
|
|
1051
1051
|
body.push({ kind: 'button', title, action, disabled, style, item, loc });
|
package/dist/templates/custom.js
CHANGED
package/dist/templates/index.js
CHANGED