@lowdefy/client 0.0.0-experimental-20250625124206 → 0.0.0-experimental-20250702125311
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.
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { BlockLayout } from '@lowdefy/layout';
|
|
17
17
|
import { makeCssClass } from '@lowdefy/block-utils';
|
|
18
18
|
import { type } from '@lowdefy/helpers';
|
|
19
|
-
import
|
|
19
|
+
import InputContainer from './InputContainer.js';
|
|
20
20
|
import Container from './Container.js';
|
|
21
21
|
import List from './List.js';
|
|
22
22
|
import LoadingBlock from './LoadingBlock.js';
|
|
@@ -85,8 +85,8 @@ const CategorySwitch = ({ block, Blocks, context, loading, lowdefy })=>{
|
|
|
85
85
|
validation: block.eval.validation,
|
|
86
86
|
value: block.value
|
|
87
87
|
}));
|
|
88
|
-
case '
|
|
89
|
-
return /*#__PURE__*/ React.createElement(
|
|
88
|
+
case 'input-container':
|
|
89
|
+
return /*#__PURE__*/ React.createElement(InputContainer, {
|
|
90
90
|
block: block,
|
|
91
91
|
Blocks: Blocks,
|
|
92
92
|
Component: Component,
|
|
@@ -16,36 +16,30 @@
|
|
|
16
16
|
import { Area, BlockLayout } from '@lowdefy/layout';
|
|
17
17
|
import { makeCssClass } from '@lowdefy/block-utils';
|
|
18
18
|
import Block from './Block.js';
|
|
19
|
-
const
|
|
19
|
+
const InputContainer = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
20
20
|
const content = {};
|
|
21
|
-
const contentList = [];
|
|
22
21
|
// eslint-disable-next-line prefer-destructuring
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
areaStyle
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
})));
|
|
45
|
-
});
|
|
46
|
-
contentList.push({
|
|
47
|
-
...content
|
|
48
|
-
});
|
|
22
|
+
const areas = Blocks.subAreas[block.id][0].areas;
|
|
23
|
+
Object.keys(areas).forEach((areaKey, i)=>{
|
|
24
|
+
content[areaKey] = (areaStyle)=>/*#__PURE__*/ React.createElement(Area, {
|
|
25
|
+
area: block.eval.areas[areaKey],
|
|
26
|
+
areaKey: areaKey,
|
|
27
|
+
areaStyle: [
|
|
28
|
+
areaStyle,
|
|
29
|
+
block.eval.areas[areaKey]?.style
|
|
30
|
+
],
|
|
31
|
+
id: `ar-${block.blockId}-${areaKey}`,
|
|
32
|
+
key: `ar-${block.blockId}-${areaKey}-${i}`,
|
|
33
|
+
layout: block.eval.layout,
|
|
34
|
+
makeCssClass: makeCssClass
|
|
35
|
+
}, areas[areaKey].blocks.map((bl, k)=>/*#__PURE__*/ React.createElement(Block, {
|
|
36
|
+
block: bl,
|
|
37
|
+
Blocks: Blocks.subAreas[block.id][0],
|
|
38
|
+
context: context,
|
|
39
|
+
key: `co-${bl.blockId}-${k}`,
|
|
40
|
+
lowdefy: lowdefy,
|
|
41
|
+
parentLoading: loading
|
|
42
|
+
})));
|
|
49
43
|
});
|
|
50
44
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
51
45
|
blockStyle: block.eval.style,
|
|
@@ -71,7 +65,6 @@ const Hybrid = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
|
71
65
|
content: content,
|
|
72
66
|
events: block.eval.events,
|
|
73
67
|
key: block.blockId,
|
|
74
|
-
list: contentList,
|
|
75
68
|
loading: loading,
|
|
76
69
|
menus: lowdefy.menus,
|
|
77
70
|
pageId: lowdefy.pageId,
|
|
@@ -81,4 +74,4 @@ const Hybrid = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
|
81
74
|
value: block.value
|
|
82
75
|
}));
|
|
83
76
|
};
|
|
84
|
-
export default
|
|
77
|
+
export default InputContainer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/client",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20250702125311",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Lowdefy Client",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ant-design/icons": "4.8.0",
|
|
37
|
-
"@lowdefy/block-utils": "0.0.0-experimental-
|
|
38
|
-
"@lowdefy/engine": "0.0.0-experimental-
|
|
39
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
40
|
-
"@lowdefy/layout": "0.0.0-experimental-
|
|
37
|
+
"@lowdefy/block-utils": "0.0.0-experimental-20250702125311",
|
|
38
|
+
"@lowdefy/engine": "0.0.0-experimental-20250702125311",
|
|
39
|
+
"@lowdefy/helpers": "0.0.0-experimental-20250702125311",
|
|
40
|
+
"@lowdefy/layout": "0.0.0-experimental-20250702125311",
|
|
41
41
|
"classnames": "2.3.2",
|
|
42
42
|
"react": "18.2.0",
|
|
43
43
|
"react-dom": "18.2.0"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@emotion/jest": "11.10.5",
|
|
47
47
|
"@jest/globals": "28.1.3",
|
|
48
|
-
"@lowdefy/jest-yaml-transform": "0.0.0-experimental-
|
|
48
|
+
"@lowdefy/jest-yaml-transform": "0.0.0-experimental-20250702125311",
|
|
49
49
|
"@swc/cli": "0.1.63",
|
|
50
50
|
"@swc/core": "1.3.99",
|
|
51
51
|
"@swc/jest": "0.2.29",
|