@wavemaker/rn-codegen 11.14.1-16.6418 → 11.14.1-17.6420
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/npm-shrinkwrap.json +46 -43
- package/package-lock.json +46 -43
- package/package.json +2 -2
- package/src/templates/app.template +0 -6
- package/src/templates/package.web.json +3 -3
- package/src/templates/project/component/dynamic/component-generator.js +2 -0
- package/src/templates/project/component/dynamic/form.generator.js +45 -14
- package/src/templates/project/package.json +3 -3
- package/src/templates/project/wavepulse/rn2css.json +15 -0
- package/src/theme/components/input/currency.styledef.js +8 -0
- package/src/theme/components/input/currency.styledef.js.map +1 -1
- package/src/theme/components/input/number.styledef.js +30 -0
- package/src/theme/components/input/number.styledef.js.map +1 -1
- package/src/theme/components/input/text.styledef.js +121 -2
- package/src/theme/components/input/text.styledef.js.map +1 -1
- package/src/theme/components/input/textarea.styledef.js +62 -2
- package/src/theme/components/input/textarea.styledef.js.map +1 -1
- package/src/transpile/components/container/container.transformer.js +8 -0
- package/src/transpile/components/container/container.transformer.js.map +1 -1
- package/src/transpile/components/data/form/form-field.transformer.js +12 -1
- package/src/transpile/components/data/form/form-field.transformer.js.map +1 -1
- package/src/transpile/components/data/form.transformer.js +5 -1
- package/src/transpile/components/data/form.transformer.js.map +1 -1
- package/src/transpile/components/data/liveform.transformer.js +2 -0
- package/src/transpile/components/data/liveform.transformer.js.map +1 -1
- package/src/transpile/property/property-parser.js +3 -0
- package/src/transpile/property/property-parser.js.map +1 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/rn-codegen",
|
|
3
|
-
"version": "11.14.1-
|
|
3
|
+
"version": "11.14.1-17.6420",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker/rn-codegen",
|
|
9
|
-
"version": "11.14.1-
|
|
9
|
+
"version": "11.14.1-17.6420",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@types/node": "18.11.10",
|
|
19
19
|
"@types/prettier": "2.7.1",
|
|
20
20
|
"@types/yargs": "17.0.15",
|
|
21
|
-
"@wavemaker/foundation-css": "11.14.1-
|
|
21
|
+
"@wavemaker/foundation-css": "11.14.1-17.6420",
|
|
22
22
|
"adm-zip": "0.5.9",
|
|
23
23
|
"axios": "1.8.3",
|
|
24
24
|
"clean-css": "5.1.5",
|
|
@@ -1061,8 +1061,8 @@
|
|
|
1061
1061
|
}
|
|
1062
1062
|
},
|
|
1063
1063
|
"node_modules/@jest/reporters/node_modules/minimatch": {
|
|
1064
|
-
"version": "3.1.
|
|
1065
|
-
"integrity": "sha512-
|
|
1064
|
+
"version": "3.1.3",
|
|
1065
|
+
"integrity": "sha512-M2GCs7Vk83NxkUyQV1bkABc4yxgz9kILhHImZiBPAZ9ybuvCb0/H7lEl5XvIg3g+9d4eNotkZA5IWwYl0tibaA==",
|
|
1066
1066
|
"dev": true,
|
|
1067
1067
|
"license": "ISC",
|
|
1068
1068
|
"dependencies": {
|
|
@@ -1496,8 +1496,8 @@
|
|
|
1496
1496
|
}
|
|
1497
1497
|
},
|
|
1498
1498
|
"node_modules/@wavemaker/foundation-css": {
|
|
1499
|
-
"version": "11.14.1-
|
|
1500
|
-
"integrity": "sha512-
|
|
1499
|
+
"version": "11.14.1-17.6420",
|
|
1500
|
+
"integrity": "sha512-RRpGg6miVo4548S3XDqg4Jxt7GEOJwPMbAQ3s57PoBN1o+j10LsIRt8uKPI2L8Z5rCtD75yxhYNQAUY/9r2rnQ==",
|
|
1501
1501
|
"license": "ISC",
|
|
1502
1502
|
"dependencies": {
|
|
1503
1503
|
"chroma-js": "^3.1.2"
|
|
@@ -1747,12 +1747,12 @@
|
|
|
1747
1747
|
}
|
|
1748
1748
|
},
|
|
1749
1749
|
"node_modules/balanced-match": {
|
|
1750
|
-
"version": "4.0.
|
|
1751
|
-
"integrity": "sha512-
|
|
1750
|
+
"version": "4.0.4",
|
|
1751
|
+
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
|
|
1752
1752
|
"dev": true,
|
|
1753
1753
|
"license": "MIT",
|
|
1754
1754
|
"engines": {
|
|
1755
|
-
"node": "20 || >=22"
|
|
1755
|
+
"node": "18 || 20 || >=22"
|
|
1756
1756
|
}
|
|
1757
1757
|
},
|
|
1758
1758
|
"node_modules/base64-js": {
|
|
@@ -1775,12 +1775,15 @@
|
|
|
1775
1775
|
"license": "MIT"
|
|
1776
1776
|
},
|
|
1777
1777
|
"node_modules/baseline-browser-mapping": {
|
|
1778
|
-
"version": "2.
|
|
1779
|
-
"integrity": "sha512-
|
|
1778
|
+
"version": "2.10.0",
|
|
1779
|
+
"integrity": "sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA==",
|
|
1780
1780
|
"dev": true,
|
|
1781
1781
|
"license": "Apache-2.0",
|
|
1782
1782
|
"bin": {
|
|
1783
|
-
"baseline-browser-mapping": "dist/cli.
|
|
1783
|
+
"baseline-browser-mapping": "dist/cli.cjs"
|
|
1784
|
+
},
|
|
1785
|
+
"engines": {
|
|
1786
|
+
"node": ">=6.0.0"
|
|
1784
1787
|
}
|
|
1785
1788
|
},
|
|
1786
1789
|
"node_modules/bl": {
|
|
@@ -1799,15 +1802,15 @@
|
|
|
1799
1802
|
"license": "ISC"
|
|
1800
1803
|
},
|
|
1801
1804
|
"node_modules/brace-expansion": {
|
|
1802
|
-
"version": "5.0.
|
|
1803
|
-
"integrity": "sha512-
|
|
1805
|
+
"version": "5.0.3",
|
|
1806
|
+
"integrity": "sha512-fy6KJm2RawA5RcHkLa1z/ScpBeA762UF9KmZQxwIbDtRJrgLzM10depAiEQ+CXYcoiqW1/m96OAAoke2nE9EeA==",
|
|
1804
1807
|
"dev": true,
|
|
1805
1808
|
"license": "MIT",
|
|
1806
1809
|
"dependencies": {
|
|
1807
1810
|
"balanced-match": "^4.0.2"
|
|
1808
1811
|
},
|
|
1809
1812
|
"engines": {
|
|
1810
|
-
"node": "20 || >=22"
|
|
1813
|
+
"node": "18 || 20 || >=22"
|
|
1811
1814
|
}
|
|
1812
1815
|
},
|
|
1813
1816
|
"node_modules/braces": {
|
|
@@ -1952,8 +1955,8 @@
|
|
|
1952
1955
|
}
|
|
1953
1956
|
},
|
|
1954
1957
|
"node_modules/caniuse-lite": {
|
|
1955
|
-
"version": "1.0.
|
|
1956
|
-
"integrity": "sha512-
|
|
1958
|
+
"version": "1.0.30001774",
|
|
1959
|
+
"integrity": "sha512-DDdwPGz99nmIEv216hKSgLD+D4ikHQHjBC/seF98N9CPqRX4M5mSxT9eTV6oyisnJcuzxtZy4n17yKKQYmYQOA==",
|
|
1957
1960
|
"dev": true,
|
|
1958
1961
|
"funding": [
|
|
1959
1962
|
{
|
|
@@ -2410,8 +2413,8 @@
|
|
|
2410
2413
|
}
|
|
2411
2414
|
},
|
|
2412
2415
|
"node_modules/electron-to-chromium": {
|
|
2413
|
-
"version": "1.5.
|
|
2414
|
-
"integrity": "sha512-
|
|
2416
|
+
"version": "1.5.302",
|
|
2417
|
+
"integrity": "sha512-sM6HAN2LyK82IyPBpznDRqlTQAtuSaO+ShzFiWTvoMJLHyZ+Y39r8VMfHzwbU8MVBzQ4Wdn85+wlZl2TLGIlwg==",
|
|
2415
2418
|
"dev": true,
|
|
2416
2419
|
"license": "ISC"
|
|
2417
2420
|
},
|
|
@@ -2819,17 +2822,17 @@
|
|
|
2819
2822
|
}
|
|
2820
2823
|
},
|
|
2821
2824
|
"node_modules/glob": {
|
|
2822
|
-
"version": "13.0.
|
|
2823
|
-
"integrity": "sha512-
|
|
2825
|
+
"version": "13.0.6",
|
|
2826
|
+
"integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==",
|
|
2824
2827
|
"dev": true,
|
|
2825
2828
|
"license": "BlueOak-1.0.0",
|
|
2826
2829
|
"dependencies": {
|
|
2827
|
-
"minimatch": "^10.2.
|
|
2828
|
-
"minipass": "^7.1.
|
|
2829
|
-
"path-scurry": "^2.0.
|
|
2830
|
+
"minimatch": "^10.2.2",
|
|
2831
|
+
"minipass": "^7.1.3",
|
|
2832
|
+
"path-scurry": "^2.0.2"
|
|
2830
2833
|
},
|
|
2831
2834
|
"engines": {
|
|
2832
|
-
"node": "20 || >=22"
|
|
2835
|
+
"node": "18 || 20 || >=22"
|
|
2833
2836
|
},
|
|
2834
2837
|
"funding": {
|
|
2835
2838
|
"url": "https://github.com/sponsors/isaacs"
|
|
@@ -3446,8 +3449,8 @@
|
|
|
3446
3449
|
}
|
|
3447
3450
|
},
|
|
3448
3451
|
"node_modules/jest-config/node_modules/minimatch": {
|
|
3449
|
-
"version": "3.1.
|
|
3450
|
-
"integrity": "sha512-
|
|
3452
|
+
"version": "3.1.3",
|
|
3453
|
+
"integrity": "sha512-M2GCs7Vk83NxkUyQV1bkABc4yxgz9kILhHImZiBPAZ9ybuvCb0/H7lEl5XvIg3g+9d4eNotkZA5IWwYl0tibaA==",
|
|
3451
3454
|
"dev": true,
|
|
3452
3455
|
"license": "ISC",
|
|
3453
3456
|
"dependencies": {
|
|
@@ -3775,8 +3778,8 @@
|
|
|
3775
3778
|
}
|
|
3776
3779
|
},
|
|
3777
3780
|
"node_modules/jest-runtime/node_modules/minimatch": {
|
|
3778
|
-
"version": "3.1.
|
|
3779
|
-
"integrity": "sha512-
|
|
3781
|
+
"version": "3.1.3",
|
|
3782
|
+
"integrity": "sha512-M2GCs7Vk83NxkUyQV1bkABc4yxgz9kILhHImZiBPAZ9ybuvCb0/H7lEl5XvIg3g+9d4eNotkZA5IWwYl0tibaA==",
|
|
3780
3783
|
"dev": true,
|
|
3781
3784
|
"license": "ISC",
|
|
3782
3785
|
"dependencies": {
|
|
@@ -4211,15 +4214,15 @@
|
|
|
4211
4214
|
}
|
|
4212
4215
|
},
|
|
4213
4216
|
"node_modules/minimatch": {
|
|
4214
|
-
"version": "10.2.
|
|
4215
|
-
"integrity": "sha512
|
|
4217
|
+
"version": "10.2.2",
|
|
4218
|
+
"integrity": "sha512-+G4CpNBxa5MprY+04MbgOw1v7So6n5JY166pFi9KfYwT78fxScCeSNQSNzp6dpPSW2rONOps6Ocam1wFhCgoVw==",
|
|
4216
4219
|
"dev": true,
|
|
4217
4220
|
"license": "BlueOak-1.0.0",
|
|
4218
4221
|
"dependencies": {
|
|
4219
4222
|
"brace-expansion": "^5.0.2"
|
|
4220
4223
|
},
|
|
4221
4224
|
"engines": {
|
|
4222
|
-
"node": "20 || >=22"
|
|
4225
|
+
"node": "18 || 20 || >=22"
|
|
4223
4226
|
},
|
|
4224
4227
|
"funding": {
|
|
4225
4228
|
"url": "https://github.com/sponsors/isaacs"
|
|
@@ -4234,10 +4237,10 @@
|
|
|
4234
4237
|
}
|
|
4235
4238
|
},
|
|
4236
4239
|
"node_modules/minipass": {
|
|
4237
|
-
"version": "7.1.
|
|
4238
|
-
"integrity": "sha512-
|
|
4240
|
+
"version": "7.1.3",
|
|
4241
|
+
"integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
|
|
4239
4242
|
"dev": true,
|
|
4240
|
-
"license": "
|
|
4243
|
+
"license": "BlueOak-1.0.0",
|
|
4241
4244
|
"engines": {
|
|
4242
4245
|
"node": ">=16 || 14 >=14.17"
|
|
4243
4246
|
}
|
|
@@ -4487,8 +4490,8 @@
|
|
|
4487
4490
|
"license": "MIT"
|
|
4488
4491
|
},
|
|
4489
4492
|
"node_modules/path-scurry": {
|
|
4490
|
-
"version": "2.0.
|
|
4491
|
-
"integrity": "sha512-
|
|
4493
|
+
"version": "2.0.2",
|
|
4494
|
+
"integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==",
|
|
4492
4495
|
"dev": true,
|
|
4493
4496
|
"license": "BlueOak-1.0.0",
|
|
4494
4497
|
"dependencies": {
|
|
@@ -4496,7 +4499,7 @@
|
|
|
4496
4499
|
"minipass": "^7.1.2"
|
|
4497
4500
|
},
|
|
4498
4501
|
"engines": {
|
|
4499
|
-
"node": "20 || >=22"
|
|
4502
|
+
"node": "18 || 20 || >=22"
|
|
4500
4503
|
},
|
|
4501
4504
|
"funding": {
|
|
4502
4505
|
"url": "https://github.com/sponsors/isaacs"
|
|
@@ -4818,8 +4821,8 @@
|
|
|
4818
4821
|
}
|
|
4819
4822
|
},
|
|
4820
4823
|
"node_modules/rimraf/node_modules/minimatch": {
|
|
4821
|
-
"version": "3.1.
|
|
4822
|
-
"integrity": "sha512-
|
|
4824
|
+
"version": "3.1.3",
|
|
4825
|
+
"integrity": "sha512-M2GCs7Vk83NxkUyQV1bkABc4yxgz9kILhHImZiBPAZ9ybuvCb0/H7lEl5XvIg3g+9d4eNotkZA5IWwYl0tibaA==",
|
|
4823
4826
|
"license": "ISC",
|
|
4824
4827
|
"dependencies": {
|
|
4825
4828
|
"brace-expansion": "^1.1.7"
|
|
@@ -5195,8 +5198,8 @@
|
|
|
5195
5198
|
}
|
|
5196
5199
|
},
|
|
5197
5200
|
"node_modules/test-exclude/node_modules/minimatch": {
|
|
5198
|
-
"version": "3.1.
|
|
5199
|
-
"integrity": "sha512-
|
|
5201
|
+
"version": "3.1.3",
|
|
5202
|
+
"integrity": "sha512-M2GCs7Vk83NxkUyQV1bkABc4yxgz9kILhHImZiBPAZ9ybuvCb0/H7lEl5XvIg3g+9d4eNotkZA5IWwYl0tibaA==",
|
|
5200
5203
|
"dev": true,
|
|
5201
5204
|
"license": "ISC",
|
|
5202
5205
|
"dependencies": {
|
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/rn-codegen",
|
|
3
|
-
"version": "11.14.1-
|
|
3
|
+
"version": "11.14.1-17.6420",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker/rn-codegen",
|
|
9
|
-
"version": "11.14.1-
|
|
9
|
+
"version": "11.14.1-17.6420",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@types/node": "18.11.10",
|
|
19
19
|
"@types/prettier": "2.7.1",
|
|
20
20
|
"@types/yargs": "17.0.15",
|
|
21
|
-
"@wavemaker/foundation-css": "11.14.1-
|
|
21
|
+
"@wavemaker/foundation-css": "11.14.1-17.6420",
|
|
22
22
|
"adm-zip": "0.5.9",
|
|
23
23
|
"axios": "1.8.3",
|
|
24
24
|
"clean-css": "5.1.5",
|
|
@@ -1061,8 +1061,8 @@
|
|
|
1061
1061
|
}
|
|
1062
1062
|
},
|
|
1063
1063
|
"node_modules/@jest/reporters/node_modules/minimatch": {
|
|
1064
|
-
"version": "3.1.
|
|
1065
|
-
"integrity": "sha512-
|
|
1064
|
+
"version": "3.1.3",
|
|
1065
|
+
"integrity": "sha512-M2GCs7Vk83NxkUyQV1bkABc4yxgz9kILhHImZiBPAZ9ybuvCb0/H7lEl5XvIg3g+9d4eNotkZA5IWwYl0tibaA==",
|
|
1066
1066
|
"dev": true,
|
|
1067
1067
|
"license": "ISC",
|
|
1068
1068
|
"dependencies": {
|
|
@@ -1496,8 +1496,8 @@
|
|
|
1496
1496
|
}
|
|
1497
1497
|
},
|
|
1498
1498
|
"node_modules/@wavemaker/foundation-css": {
|
|
1499
|
-
"version": "11.14.1-
|
|
1500
|
-
"integrity": "sha512-
|
|
1499
|
+
"version": "11.14.1-17.6420",
|
|
1500
|
+
"integrity": "sha512-RRpGg6miVo4548S3XDqg4Jxt7GEOJwPMbAQ3s57PoBN1o+j10LsIRt8uKPI2L8Z5rCtD75yxhYNQAUY/9r2rnQ==",
|
|
1501
1501
|
"license": "ISC",
|
|
1502
1502
|
"dependencies": {
|
|
1503
1503
|
"chroma-js": "^3.1.2"
|
|
@@ -1747,12 +1747,12 @@
|
|
|
1747
1747
|
}
|
|
1748
1748
|
},
|
|
1749
1749
|
"node_modules/balanced-match": {
|
|
1750
|
-
"version": "4.0.
|
|
1751
|
-
"integrity": "sha512-
|
|
1750
|
+
"version": "4.0.4",
|
|
1751
|
+
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
|
|
1752
1752
|
"dev": true,
|
|
1753
1753
|
"license": "MIT",
|
|
1754
1754
|
"engines": {
|
|
1755
|
-
"node": "20 || >=22"
|
|
1755
|
+
"node": "18 || 20 || >=22"
|
|
1756
1756
|
}
|
|
1757
1757
|
},
|
|
1758
1758
|
"node_modules/base64-js": {
|
|
@@ -1775,12 +1775,15 @@
|
|
|
1775
1775
|
"license": "MIT"
|
|
1776
1776
|
},
|
|
1777
1777
|
"node_modules/baseline-browser-mapping": {
|
|
1778
|
-
"version": "2.
|
|
1779
|
-
"integrity": "sha512-
|
|
1778
|
+
"version": "2.10.0",
|
|
1779
|
+
"integrity": "sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA==",
|
|
1780
1780
|
"dev": true,
|
|
1781
1781
|
"license": "Apache-2.0",
|
|
1782
1782
|
"bin": {
|
|
1783
|
-
"baseline-browser-mapping": "dist/cli.
|
|
1783
|
+
"baseline-browser-mapping": "dist/cli.cjs"
|
|
1784
|
+
},
|
|
1785
|
+
"engines": {
|
|
1786
|
+
"node": ">=6.0.0"
|
|
1784
1787
|
}
|
|
1785
1788
|
},
|
|
1786
1789
|
"node_modules/bl": {
|
|
@@ -1799,15 +1802,15 @@
|
|
|
1799
1802
|
"license": "ISC"
|
|
1800
1803
|
},
|
|
1801
1804
|
"node_modules/brace-expansion": {
|
|
1802
|
-
"version": "5.0.
|
|
1803
|
-
"integrity": "sha512-
|
|
1805
|
+
"version": "5.0.3",
|
|
1806
|
+
"integrity": "sha512-fy6KJm2RawA5RcHkLa1z/ScpBeA762UF9KmZQxwIbDtRJrgLzM10depAiEQ+CXYcoiqW1/m96OAAoke2nE9EeA==",
|
|
1804
1807
|
"dev": true,
|
|
1805
1808
|
"license": "MIT",
|
|
1806
1809
|
"dependencies": {
|
|
1807
1810
|
"balanced-match": "^4.0.2"
|
|
1808
1811
|
},
|
|
1809
1812
|
"engines": {
|
|
1810
|
-
"node": "20 || >=22"
|
|
1813
|
+
"node": "18 || 20 || >=22"
|
|
1811
1814
|
}
|
|
1812
1815
|
},
|
|
1813
1816
|
"node_modules/braces": {
|
|
@@ -1952,8 +1955,8 @@
|
|
|
1952
1955
|
}
|
|
1953
1956
|
},
|
|
1954
1957
|
"node_modules/caniuse-lite": {
|
|
1955
|
-
"version": "1.0.
|
|
1956
|
-
"integrity": "sha512-
|
|
1958
|
+
"version": "1.0.30001774",
|
|
1959
|
+
"integrity": "sha512-DDdwPGz99nmIEv216hKSgLD+D4ikHQHjBC/seF98N9CPqRX4M5mSxT9eTV6oyisnJcuzxtZy4n17yKKQYmYQOA==",
|
|
1957
1960
|
"dev": true,
|
|
1958
1961
|
"funding": [
|
|
1959
1962
|
{
|
|
@@ -2410,8 +2413,8 @@
|
|
|
2410
2413
|
}
|
|
2411
2414
|
},
|
|
2412
2415
|
"node_modules/electron-to-chromium": {
|
|
2413
|
-
"version": "1.5.
|
|
2414
|
-
"integrity": "sha512-
|
|
2416
|
+
"version": "1.5.302",
|
|
2417
|
+
"integrity": "sha512-sM6HAN2LyK82IyPBpznDRqlTQAtuSaO+ShzFiWTvoMJLHyZ+Y39r8VMfHzwbU8MVBzQ4Wdn85+wlZl2TLGIlwg==",
|
|
2415
2418
|
"dev": true,
|
|
2416
2419
|
"license": "ISC"
|
|
2417
2420
|
},
|
|
@@ -2819,17 +2822,17 @@
|
|
|
2819
2822
|
}
|
|
2820
2823
|
},
|
|
2821
2824
|
"node_modules/glob": {
|
|
2822
|
-
"version": "13.0.
|
|
2823
|
-
"integrity": "sha512-
|
|
2825
|
+
"version": "13.0.6",
|
|
2826
|
+
"integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==",
|
|
2824
2827
|
"dev": true,
|
|
2825
2828
|
"license": "BlueOak-1.0.0",
|
|
2826
2829
|
"dependencies": {
|
|
2827
|
-
"minimatch": "^10.2.
|
|
2828
|
-
"minipass": "^7.1.
|
|
2829
|
-
"path-scurry": "^2.0.
|
|
2830
|
+
"minimatch": "^10.2.2",
|
|
2831
|
+
"minipass": "^7.1.3",
|
|
2832
|
+
"path-scurry": "^2.0.2"
|
|
2830
2833
|
},
|
|
2831
2834
|
"engines": {
|
|
2832
|
-
"node": "20 || >=22"
|
|
2835
|
+
"node": "18 || 20 || >=22"
|
|
2833
2836
|
},
|
|
2834
2837
|
"funding": {
|
|
2835
2838
|
"url": "https://github.com/sponsors/isaacs"
|
|
@@ -3446,8 +3449,8 @@
|
|
|
3446
3449
|
}
|
|
3447
3450
|
},
|
|
3448
3451
|
"node_modules/jest-config/node_modules/minimatch": {
|
|
3449
|
-
"version": "3.1.
|
|
3450
|
-
"integrity": "sha512-
|
|
3452
|
+
"version": "3.1.3",
|
|
3453
|
+
"integrity": "sha512-M2GCs7Vk83NxkUyQV1bkABc4yxgz9kILhHImZiBPAZ9ybuvCb0/H7lEl5XvIg3g+9d4eNotkZA5IWwYl0tibaA==",
|
|
3451
3454
|
"dev": true,
|
|
3452
3455
|
"license": "ISC",
|
|
3453
3456
|
"dependencies": {
|
|
@@ -3775,8 +3778,8 @@
|
|
|
3775
3778
|
}
|
|
3776
3779
|
},
|
|
3777
3780
|
"node_modules/jest-runtime/node_modules/minimatch": {
|
|
3778
|
-
"version": "3.1.
|
|
3779
|
-
"integrity": "sha512-
|
|
3781
|
+
"version": "3.1.3",
|
|
3782
|
+
"integrity": "sha512-M2GCs7Vk83NxkUyQV1bkABc4yxgz9kILhHImZiBPAZ9ybuvCb0/H7lEl5XvIg3g+9d4eNotkZA5IWwYl0tibaA==",
|
|
3780
3783
|
"dev": true,
|
|
3781
3784
|
"license": "ISC",
|
|
3782
3785
|
"dependencies": {
|
|
@@ -4211,15 +4214,15 @@
|
|
|
4211
4214
|
}
|
|
4212
4215
|
},
|
|
4213
4216
|
"node_modules/minimatch": {
|
|
4214
|
-
"version": "10.2.
|
|
4215
|
-
"integrity": "sha512
|
|
4217
|
+
"version": "10.2.2",
|
|
4218
|
+
"integrity": "sha512-+G4CpNBxa5MprY+04MbgOw1v7So6n5JY166pFi9KfYwT78fxScCeSNQSNzp6dpPSW2rONOps6Ocam1wFhCgoVw==",
|
|
4216
4219
|
"dev": true,
|
|
4217
4220
|
"license": "BlueOak-1.0.0",
|
|
4218
4221
|
"dependencies": {
|
|
4219
4222
|
"brace-expansion": "^5.0.2"
|
|
4220
4223
|
},
|
|
4221
4224
|
"engines": {
|
|
4222
|
-
"node": "20 || >=22"
|
|
4225
|
+
"node": "18 || 20 || >=22"
|
|
4223
4226
|
},
|
|
4224
4227
|
"funding": {
|
|
4225
4228
|
"url": "https://github.com/sponsors/isaacs"
|
|
@@ -4234,10 +4237,10 @@
|
|
|
4234
4237
|
}
|
|
4235
4238
|
},
|
|
4236
4239
|
"node_modules/minipass": {
|
|
4237
|
-
"version": "7.1.
|
|
4238
|
-
"integrity": "sha512-
|
|
4240
|
+
"version": "7.1.3",
|
|
4241
|
+
"integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
|
|
4239
4242
|
"dev": true,
|
|
4240
|
-
"license": "
|
|
4243
|
+
"license": "BlueOak-1.0.0",
|
|
4241
4244
|
"engines": {
|
|
4242
4245
|
"node": ">=16 || 14 >=14.17"
|
|
4243
4246
|
}
|
|
@@ -4487,8 +4490,8 @@
|
|
|
4487
4490
|
"license": "MIT"
|
|
4488
4491
|
},
|
|
4489
4492
|
"node_modules/path-scurry": {
|
|
4490
|
-
"version": "2.0.
|
|
4491
|
-
"integrity": "sha512-
|
|
4493
|
+
"version": "2.0.2",
|
|
4494
|
+
"integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==",
|
|
4492
4495
|
"dev": true,
|
|
4493
4496
|
"license": "BlueOak-1.0.0",
|
|
4494
4497
|
"dependencies": {
|
|
@@ -4496,7 +4499,7 @@
|
|
|
4496
4499
|
"minipass": "^7.1.2"
|
|
4497
4500
|
},
|
|
4498
4501
|
"engines": {
|
|
4499
|
-
"node": "20 || >=22"
|
|
4502
|
+
"node": "18 || 20 || >=22"
|
|
4500
4503
|
},
|
|
4501
4504
|
"funding": {
|
|
4502
4505
|
"url": "https://github.com/sponsors/isaacs"
|
|
@@ -4818,8 +4821,8 @@
|
|
|
4818
4821
|
}
|
|
4819
4822
|
},
|
|
4820
4823
|
"node_modules/rimraf/node_modules/minimatch": {
|
|
4821
|
-
"version": "3.1.
|
|
4822
|
-
"integrity": "sha512-
|
|
4824
|
+
"version": "3.1.3",
|
|
4825
|
+
"integrity": "sha512-M2GCs7Vk83NxkUyQV1bkABc4yxgz9kILhHImZiBPAZ9ybuvCb0/H7lEl5XvIg3g+9d4eNotkZA5IWwYl0tibaA==",
|
|
4823
4826
|
"license": "ISC",
|
|
4824
4827
|
"dependencies": {
|
|
4825
4828
|
"brace-expansion": "^1.1.7"
|
|
@@ -5195,8 +5198,8 @@
|
|
|
5195
5198
|
}
|
|
5196
5199
|
},
|
|
5197
5200
|
"node_modules/test-exclude/node_modules/minimatch": {
|
|
5198
|
-
"version": "3.1.
|
|
5199
|
-
"integrity": "sha512-
|
|
5201
|
+
"version": "3.1.3",
|
|
5202
|
+
"integrity": "sha512-M2GCs7Vk83NxkUyQV1bkABc4yxgz9kILhHImZiBPAZ9ybuvCb0/H7lEl5XvIg3g+9d4eNotkZA5IWwYl0tibaA==",
|
|
5200
5203
|
"dev": true,
|
|
5201
5204
|
"license": "ISC",
|
|
5202
5205
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/rn-codegen",
|
|
3
|
-
"version": "11.14.1-
|
|
3
|
+
"version": "11.14.1-17.6420",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"puppeteer": "5.4.0",
|
|
43
43
|
"rimraf": "3.0.2",
|
|
44
44
|
"yargs": "16.2.0",
|
|
45
|
-
"@wavemaker/foundation-css": "11.14.1-
|
|
45
|
+
"@wavemaker/foundation-css": "11.14.1-17.6420"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/adm-zip": "0.5.0",
|
|
@@ -263,8 +263,6 @@ class App extends BaseApp {
|
|
|
263
263
|
RNRestart && RNRestart.Restart();
|
|
264
264
|
}
|
|
265
265
|
this.appConfig.selectedLocale = newLocale;
|
|
266
|
-
// Set moment locale to match the app locale
|
|
267
|
-
moment.locale(newLocale);
|
|
268
266
|
{{#if profile.useLocalMetadata}}
|
|
269
267
|
return this.handleLocaleUrl(`i18n/${newLocale}.json`)
|
|
270
268
|
{{else}}
|
|
@@ -404,10 +402,6 @@ class App extends BaseApp {
|
|
|
404
402
|
.then(() => AppI18nService.init())
|
|
405
403
|
.then(() => this.changeLocale( isWebPreviewMode() ? this.getDefaultLocale() : null ))
|
|
406
404
|
.then(() => {console.log('Locale files loaded')})
|
|
407
|
-
.then(() => {
|
|
408
|
-
// Set initial moment locale to match app locale
|
|
409
|
-
moment.locale(this.appConfig.selectedLocale || 'en');
|
|
410
|
-
})
|
|
411
405
|
.then(() => this.loadFonts())
|
|
412
406
|
.then(() => {console.log('Font files loaded')})
|
|
413
407
|
.then(() => initializeDeviceOperations())
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"postinstall": ""
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@wavemaker/app-rn-runtime": "11.14.1-
|
|
15
|
-
"@wavemaker/variables": "11.14.1-
|
|
16
|
-
"@wavemaker/rn-codegen": "11.14.1-
|
|
14
|
+
"@wavemaker/app-rn-runtime": "11.14.1-17.6420",
|
|
15
|
+
"@wavemaker/variables": "11.14.1-17.6420",
|
|
16
|
+
"@wavemaker/rn-codegen": "11.14.1-17.6420",
|
|
17
17
|
"@wavemaker/wavepulse-agent": "1.0.11",
|
|
18
18
|
"expo": "54.0.12",
|
|
19
19
|
"expo-build-properties": "1.0.9",
|
|
@@ -18,6 +18,7 @@ import WmRating from '@wavemaker/app-rn-runtime/components/input/rating/rating.c
|
|
|
18
18
|
import WmLayoutgrid from '@wavemaker/app-rn-runtime/components/container/layoutgrid/layoutgrid.component';
|
|
19
19
|
import WmGridrow from '@wavemaker/app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component';
|
|
20
20
|
import WmGridcolumn from '@wavemaker/app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component';
|
|
21
|
+
import WmContainer from '@wavemaker/app-rn-runtime/components/container/container.component';
|
|
21
22
|
import registerTransformers from '@wavemaker/rn-codegen/src/transpile/components/transform-register';
|
|
22
23
|
import WmFormField from '@wavemaker/app-rn-runtime/components/data/form/form-field/form-field.component';
|
|
23
24
|
import WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';
|
|
@@ -66,6 +67,7 @@ export const generate = (wavemakerMarkup, fragment) => {
|
|
|
66
67
|
'WmLayoutgrid': WmLayoutgrid,
|
|
67
68
|
'WmGridrow': WmGridrow,
|
|
68
69
|
'WmGridcolumn': WmGridcolumn,
|
|
70
|
+
'WmContainer': WmContainer,
|
|
69
71
|
'WmFormField': WmFormField,
|
|
70
72
|
'WmLabel': WmLabel
|
|
71
73
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import {generate} from './component-generator';
|
|
2
2
|
import {forEach, isArray} from "lodash";
|
|
3
3
|
|
|
4
|
+
// Check if itemsperrow has any value > 1 (e.g., { xs: 1, sm: 2, md: 2, lg: 2 } → true)
|
|
5
|
+
const isMultiColumnLayout = (itemsperrow) => {
|
|
6
|
+
if (!itemsperrow || typeof itemsperrow !== 'object') return false;
|
|
7
|
+
return Object.values(itemsperrow).some(value => value > 1);
|
|
8
|
+
};
|
|
9
|
+
|
|
4
10
|
// Generate the form field with given field definition. Add a grid column wrapper around the form field.
|
|
5
11
|
const setMarkupForFormField = (field, columnWidth, isHorizontal) => {
|
|
6
12
|
let propsTmpl = '';
|
|
@@ -12,13 +18,24 @@ const setMarkupForFormField = (field, columnWidth, isHorizontal) => {
|
|
|
12
18
|
propsTmpl = `${propsTmpl} layoutposition="horizontal"`
|
|
13
19
|
}
|
|
14
20
|
|
|
15
|
-
return `<wm-gridcolumn columnwidth="${columnWidth}"><wm-form-field ${propsTmpl}></wm-form-field></wm-gridcolumn>`;
|
|
21
|
+
return `<wm-gridcolumn columnwidth="${columnWidth}"><wm-form-field ${propsTmpl.trim()}></wm-form-field></wm-gridcolumn>`;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const setMarkupForFormFieldContainer = (field, isHorizontal) => {
|
|
25
|
+
let propsTmpl = '';
|
|
26
|
+
forEach(field, (value, key) => {
|
|
27
|
+
propsTmpl = `${propsTmpl} ${key}="${value}"`;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
if(isHorizontal) {
|
|
31
|
+
propsTmpl = `${propsTmpl} layoutposition="horizontal"`
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return `<wm-form-field ${propsTmpl.trim()}></wm-form-field>`;
|
|
16
35
|
};
|
|
17
36
|
|
|
18
37
|
// Function to generate and compile the form fields from the metadata
|
|
19
|
-
const generateFormFields = (metadata, formName, isHorizontal) => {
|
|
20
|
-
let noOfColumns = 1;
|
|
21
|
-
const columnWidth = 12 / noOfColumns;
|
|
38
|
+
const generateFormFields = (metadata, formName, isHorizontal, enableDesignTokens, itemsperrow) => {
|
|
22
39
|
let fieldTemplate = '';
|
|
23
40
|
let colCount = 0;
|
|
24
41
|
let fields = metadata;
|
|
@@ -27,23 +44,37 @@ const generateFormFields = (metadata, formName, isHorizontal) => {
|
|
|
27
44
|
return;
|
|
28
45
|
}
|
|
29
46
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
47
|
+
if (enableDesignTokens) {
|
|
48
|
+
while (fields[colCount]) {
|
|
49
|
+
if (fields[colCount]) {
|
|
50
|
+
fieldTemplate += setMarkupForFormFieldContainer(fields[colCount], isHorizontal);
|
|
51
|
+
}
|
|
52
|
+
colCount++;
|
|
53
|
+
}
|
|
54
|
+
// Conditionally apply row layout attributes based on itemsperrow
|
|
55
|
+
const containerAttrs = isMultiColumnLayout(itemsperrow) ? 'width="100%" direction="row" wrap="true"' : '';
|
|
56
|
+
fieldTemplate = `<wm-container type="dynamic" dynamicForm="${formName}" ${containerAttrs}>${fieldTemplate}</wm-container>`;
|
|
57
|
+
} else {
|
|
58
|
+
let noOfColumns = 1;
|
|
59
|
+
const columnWidth = 12 / noOfColumns;
|
|
60
|
+
|
|
61
|
+
while (fields[colCount]) {
|
|
62
|
+
let colTmpl = '';
|
|
63
|
+
if (fields[colCount]) {
|
|
64
|
+
colTmpl += setMarkupForFormField(fields[colCount], columnWidth, isHorizontal);
|
|
65
|
+
}
|
|
66
|
+
colCount++;
|
|
67
|
+
fieldTemplate += `<wm-gridrow>${colTmpl}</wm-gridrow>`;
|
|
34
68
|
}
|
|
35
|
-
|
|
36
|
-
fieldTemplate += `<wm-gridrow>${colTmpl}</wm-gridrow>`;
|
|
69
|
+
fieldTemplate = `<wm-layoutgrid type="dynamic" dynamicForm = "${formName}">${fieldTemplate}</wm-layoutgrid>`;
|
|
37
70
|
}
|
|
38
|
-
fieldTemplate = `<wm-layoutgrid type="dynamic" dynamicForm = "${formName}">${fieldTemplate}</wm-layoutgrid>`;
|
|
39
71
|
|
|
40
72
|
return fieldTemplate;
|
|
41
73
|
}
|
|
42
74
|
|
|
43
|
-
|
|
44
|
-
export const dynamicForm = (metadata, formName, fragment, isHorizontal) => {
|
|
75
|
+
export const dynamicForm = (metadata, formName, fragment, isHorizontal, enableDesignTokens, itemsperrow) => {
|
|
45
76
|
// convert metadata into wavemaker markup
|
|
46
|
-
const wmMarkup = generateFormFields(metadata, formName, isHorizontal);
|
|
77
|
+
const wmMarkup = generateFormFields(metadata, formName, isHorizontal, enableDesignTokens, itemsperrow);
|
|
47
78
|
|
|
48
79
|
// using component generator transform wavemaker markup into react elements
|
|
49
80
|
return generate(wmMarkup, fragment);
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"postinstall": "node ./scripts/post-build.js"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@wavemaker/app-rn-runtime": "11.14.1-
|
|
15
|
-
"@wavemaker/variables": "11.14.1-
|
|
16
|
-
"@wavemaker/rn-codegen": "11.14.1-
|
|
14
|
+
"@wavemaker/app-rn-runtime": "11.14.1-17.6420",
|
|
15
|
+
"@wavemaker/variables": "11.14.1-17.6420",
|
|
16
|
+
"@wavemaker/rn-codegen": "11.14.1-17.6420",
|
|
17
17
|
"@wavemaker/wavepulse-agent": "1.0.11",
|
|
18
18
|
"expo": "54.0.12",
|
|
19
19
|
"expo-build-properties": "1.0.9",
|