infinity-forge 0.64.0 → 0.64.1
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.
|
@@ -89,7 +89,7 @@ function DynamicFormHandler(props) {
|
|
|
89
89
|
var _a = (0, ui_1.useQuery)({
|
|
90
90
|
queryFn: fetcher,
|
|
91
91
|
queryKey: queryKEY,
|
|
92
|
-
enabled: !!
|
|
92
|
+
enabled: !!queryKEY,
|
|
93
93
|
}), data = _a.data, isLoading = _a.isLoading, mutate = _a.mutate, isFetching = _a.isFetching;
|
|
94
94
|
if ((isLoading || isFetching) && props.getDetails) {
|
|
95
95
|
return (0, jsx_runtime_1.jsx)(ui_1.LoaderCircle, { size: 30, color: '#000' });
|
|
@@ -104,7 +104,7 @@ function DynamicFormHandler(props) {
|
|
|
104
104
|
return [2 /*return*/];
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
-
}); }, initialData: __assign(__assign({}, data), (props.initialData || {})), children: props.inputs.map(function (row, index) {
|
|
107
|
+
}); }, initialData: props.initialDataIsTableItem ? __assign(__assign({}, ((props === null || props === void 0 ? void 0 : props.tableItem) || {})), (props.initialData || {})) : __assign(__assign({}, data), (props.initialData || {})), children: props.inputs.map(function (row, index) {
|
|
108
108
|
return ((0, jsx_runtime_1.jsx)("div", { style: { display: 'grid', gap: 15, gridTemplateColumns: "repeat(".concat(row.length, ", 1fr)") }, children: row.map(function (input) {
|
|
109
109
|
var Element = Inputs[input.InputComponent];
|
|
110
110
|
return (0, jsx_runtime_1.jsx)(Element, __assign({}, input), input.name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/dynamic_form_handler/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA0D;AAI1D,kDAAqC;AAErC,0CAA6B;AAE7B,SAAgB,kBAAkB,CAAC,KAA8B;IAAjE,
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/dynamic_form_handler/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA0D;AAI1D,kDAAqC;AAErC,0CAA6B;AAE7B,SAAgB,kBAAkB,CAAC,KAA8B;IAAjE,iBAgDC;IA/CC,IAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IAElG,SAAe,OAAO;;;;gBACpB,sBAAO,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,EAAA;;;KACnD;IAEK,IAAA,KAA0C,IAAA,aAAQ,EAAC;QACvD,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,CAAC,CAAC,QAAQ;KACpB,CAAC,EAJM,IAAI,UAAA,EAAE,SAAS,eAAA,EAAE,MAAM,YAAA,EAAE,UAAU,gBAIzC,CAAA;IAEF,IAAI,CAAC,SAAS,IAAI,UAAU,CAAC,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;QAClD,OAAO,uBAAC,iBAAY,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,MAAM,GAAG,CAAA;IAChD,CAAC;IAED,OAAO,CACL,wBAAC,CAAC,CAAC,iBAAiB,eAClB,iCAAK,SAAS,EAAC,QAAQ,aACpB,KAAK,CAAC,KAAK,IAAI,+BAAI,SAAS,EAAC,cAAc,YAAE,KAAK,CAAC,KAAK,GAAM,EAC9D,KAAK,CAAC,QAAQ,IAAI,iCAAM,SAAS,EAAC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ist/index",
|
|
6
|
-
"module": "./dist/index",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/CodieDigital/codiedigital-library"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"dev": "next -p 3050",
|
|
14
|
-
"deploy": "npm version patch && npm publish",
|
|
15
|
-
"next": "next build",
|
|
16
|
-
"start": "next start -p 3015",
|
|
17
|
-
"build": "concurrently --kill-others-on-fail \"tsc -w\" \"tsc-alias -w --resolve-full-paths\" \"npm run build:CSS\" \"npm run fonts\"",
|
|
18
|
-
"build:CSS": "npm run minify-css && node combine-css.ts && cpx \"src/**/*.css\" dist --watch",
|
|
19
|
-
"minify-css": "postcss src/**/*.css --use cssnano -d dist --no-map",
|
|
20
|
-
"fonts": "tsc-alias -p tsconfig.json && mkdir dist\\fonts && for /r src %i in (*.otf, *.ttf) do copy \"%i\" dist\\fonts\\"
|
|
21
|
-
},
|
|
22
|
-
"peerDependencies": {
|
|
23
|
-
"react": ">=16"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"dist",
|
|
27
|
-
"LICENSE",
|
|
28
|
-
"README.md"
|
|
29
|
-
],
|
|
30
|
-
"keywords": [
|
|
31
|
-
"react",
|
|
32
|
-
"typescript",
|
|
33
|
-
"awesome-project"
|
|
34
|
-
],
|
|
35
|
-
"author": "Codie Digital",
|
|
36
|
-
"license": "MIT",
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@types/node": "^20.12.12",
|
|
39
|
-
"@types/react": "^18.3.3",
|
|
40
|
-
"@types/react-dom": "^18.3.0",
|
|
41
|
-
"@types/styled-components": "^5.1.34",
|
|
42
|
-
"concurrently": "^8.2.2",
|
|
43
|
-
"copyfiles": "^2.4.1",
|
|
44
|
-
"cpx": "^1.5.0",
|
|
45
|
-
"cssnano": "^7.0.1",
|
|
46
|
-
"postcss-cli": "^11.0.0",
|
|
47
|
-
"tsc-alias": "^1.8.10",
|
|
48
|
-
"tslib": "^2.6.2",
|
|
49
|
-
"fs-extra": "^11.2.0",
|
|
50
|
-
"postcss": "^8.4.38",
|
|
51
|
-
"typescript": "^5.4.5"
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
"dependencies": {
|
|
55
|
-
"axios": "^1.7.2",
|
|
56
|
-
"chroma-js": "^2.4.2",
|
|
57
|
-
"formik": "^2.4.6",
|
|
58
|
-
"inversify": "^6.0.2",
|
|
59
|
-
"moment": "^2.30.1",
|
|
60
|
-
"next": "^14.2.3",
|
|
61
|
-
"react": "18.3.1",
|
|
62
|
-
"react-dom": "18.3.1",
|
|
63
|
-
"react-ga": "^3.3.1",
|
|
64
|
-
"react-select": "^5.8.0",
|
|
65
|
-
"react-share": "^5.1.0",
|
|
66
|
-
"reflect-metadata": "^0.2.2",
|
|
67
|
-
"sharp": "^0.33.4",
|
|
68
|
-
"styled-components": "^6.1.11",
|
|
69
|
-
"yup": "^1.4.0",
|
|
70
|
-
"zustand": "^4.5.2"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "infinity-forge",
|
|
3
|
+
"version": "0.64.1",
|
|
4
|
+
"description": "codie Library",
|
|
5
|
+
"main": "./dist/index",
|
|
6
|
+
"module": "./dist/index",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/CodieDigital/codiedigital-library"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "next -p 3050",
|
|
14
|
+
"deploy": "npm version patch && npm publish",
|
|
15
|
+
"next": "next build",
|
|
16
|
+
"start": "next start -p 3015",
|
|
17
|
+
"build": "concurrently --kill-others-on-fail \"tsc -w\" \"tsc-alias -w --resolve-full-paths\" \"npm run build:CSS\" \"npm run fonts\"",
|
|
18
|
+
"build:CSS": "npm run minify-css && node combine-css.ts && cpx \"src/**/*.css\" dist --watch",
|
|
19
|
+
"minify-css": "postcss src/**/*.css --use cssnano -d dist --no-map",
|
|
20
|
+
"fonts": "tsc-alias -p tsconfig.json && mkdir dist\\fonts && for /r src %i in (*.otf, *.ttf) do copy \"%i\" dist\\fonts\\"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": ">=16"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"keywords": [
|
|
31
|
+
"react",
|
|
32
|
+
"typescript",
|
|
33
|
+
"awesome-project"
|
|
34
|
+
],
|
|
35
|
+
"author": "Codie Digital",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^20.12.12",
|
|
39
|
+
"@types/react": "^18.3.3",
|
|
40
|
+
"@types/react-dom": "^18.3.0",
|
|
41
|
+
"@types/styled-components": "^5.1.34",
|
|
42
|
+
"concurrently": "^8.2.2",
|
|
43
|
+
"copyfiles": "^2.4.1",
|
|
44
|
+
"cpx": "^1.5.0",
|
|
45
|
+
"cssnano": "^7.0.1",
|
|
46
|
+
"postcss-cli": "^11.0.0",
|
|
47
|
+
"tsc-alias": "^1.8.10",
|
|
48
|
+
"tslib": "^2.6.2",
|
|
49
|
+
"fs-extra": "^11.2.0",
|
|
50
|
+
"postcss": "^8.4.38",
|
|
51
|
+
"typescript": "^5.4.5"
|
|
52
|
+
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"axios": "^1.7.2",
|
|
56
|
+
"chroma-js": "^2.4.2",
|
|
57
|
+
"formik": "^2.4.6",
|
|
58
|
+
"inversify": "^6.0.2",
|
|
59
|
+
"moment": "^2.30.1",
|
|
60
|
+
"next": "^14.2.3",
|
|
61
|
+
"react": "18.3.1",
|
|
62
|
+
"react-dom": "18.3.1",
|
|
63
|
+
"react-ga": "^3.3.1",
|
|
64
|
+
"react-select": "^5.8.0",
|
|
65
|
+
"react-share": "^5.1.0",
|
|
66
|
+
"reflect-metadata": "^0.2.2",
|
|
67
|
+
"sharp": "^0.33.4",
|
|
68
|
+
"styled-components": "^6.1.11",
|
|
69
|
+
"yup": "^1.4.0",
|
|
70
|
+
"zustand": "^4.5.2"
|
|
71
|
+
}
|
|
72
|
+
}
|