@incodetech/web 0.0.0-dev-20260513-dba90d8 → 0.0.0-dev-20260513-3fb7814
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.
|
@@ -17,7 +17,7 @@ var v = {
|
|
|
17
17
|
INTEGER: "number",
|
|
18
18
|
DOUBLE: "number",
|
|
19
19
|
STRING: "text"
|
|
20
|
-
}, y = ({ field: e, isDisabled: t, onChange: n }) => {
|
|
20
|
+
}, y = { DOUBLE: "any" }, b = ({ field: e, isDisabled: t, onChange: n }) => {
|
|
21
21
|
let [a, o] = r("");
|
|
22
22
|
return /* @__PURE__ */ i("div", {
|
|
23
23
|
class: "IncodeCustomFieldsField",
|
|
@@ -33,7 +33,7 @@ var v = {
|
|
|
33
33
|
}
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
|
-
},
|
|
36
|
+
}, x = ({ field: e, isDisabled: t, onChange: n }) => {
|
|
37
37
|
let r = `custom-field-${e.name}`;
|
|
38
38
|
return e.type === "BOOLEAN" ? /* @__PURE__ */ i("div", {
|
|
39
39
|
class: "IncodeCustomFieldsField",
|
|
@@ -44,7 +44,7 @@ var v = {
|
|
|
44
44
|
disabled: t,
|
|
45
45
|
onChange: (t) => n(e.name, t.target.checked)
|
|
46
46
|
})
|
|
47
|
-
}) : e.type === "DATE" ? /* @__PURE__ */ i(
|
|
47
|
+
}) : e.type === "DATE" ? /* @__PURE__ */ i(b, {
|
|
48
48
|
field: e,
|
|
49
49
|
isDisabled: t,
|
|
50
50
|
onChange: n
|
|
@@ -55,11 +55,12 @@ var v = {
|
|
|
55
55
|
name: e.name,
|
|
56
56
|
label: e.label,
|
|
57
57
|
type: v[e.type] ?? "text",
|
|
58
|
+
step: y[e.type],
|
|
58
59
|
disabled: t,
|
|
59
60
|
onInput: (t) => n(e.name, t.target.value)
|
|
60
61
|
})
|
|
61
62
|
});
|
|
62
|
-
},
|
|
63
|
+
}, S = ({ config: r, manager: o, onFinish: f, onError: p }) => {
|
|
63
64
|
let { t: m } = e(), h = n(null), [v, y] = a(() => {
|
|
64
65
|
if (o) return o;
|
|
65
66
|
if (!r) throw Error("CustomFields config is required");
|
|
@@ -80,7 +81,7 @@ var v = {
|
|
|
80
81
|
hideFooterBranding: !0
|
|
81
82
|
});
|
|
82
83
|
if (v.status === "finished") return null;
|
|
83
|
-
let
|
|
84
|
+
let b = v.status === "inputting" || v.status === "submitting" ? v.title ? m(v.title) : m("customFields.title") : "";
|
|
84
85
|
if (v.status === "submitting") return /* @__PURE__ */ i(g, {
|
|
85
86
|
variant: "loading",
|
|
86
87
|
icon: /* @__PURE__ */ i(c, { size: 64 }),
|
|
@@ -92,7 +93,7 @@ var v = {
|
|
|
92
93
|
};
|
|
93
94
|
return /* @__PURE__ */ i(l, {
|
|
94
95
|
className: "IncodeCustomFieldsPage",
|
|
95
|
-
title:
|
|
96
|
+
title: b,
|
|
96
97
|
hideFooterBranding: !0,
|
|
97
98
|
children: /* @__PURE__ */ i("form", {
|
|
98
99
|
class: "IncodeCustomFieldsForm",
|
|
@@ -101,7 +102,7 @@ var v = {
|
|
|
101
102
|
},
|
|
102
103
|
autoComplete: "off",
|
|
103
104
|
children: [
|
|
104
|
-
C.map((e) => /* @__PURE__ */ i(
|
|
105
|
+
C.map((e) => /* @__PURE__ */ i(x, {
|
|
105
106
|
field: e,
|
|
106
107
|
isDisabled: !1,
|
|
107
108
|
onChange: w
|
|
@@ -115,12 +116,12 @@ var v = {
|
|
|
115
116
|
]
|
|
116
117
|
})
|
|
117
118
|
});
|
|
118
|
-
},
|
|
119
|
+
}, C = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ i(o, { children: e || t ? /* @__PURE__ */ i(S, {
|
|
119
120
|
config: e,
|
|
120
121
|
manager: t,
|
|
121
122
|
onFinish: n,
|
|
122
123
|
onError: r
|
|
123
124
|
}) : null });
|
|
124
|
-
h(
|
|
125
|
+
h(C, "incode-custom-fields");
|
|
125
126
|
//#endregion
|
|
126
|
-
export {
|
|
127
|
+
export { C as CustomFields };
|
package/dist/flow/flow.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { o as l } from "../hooks-BVnGysT7.js";
|
|
|
5
5
|
import { t as u } from "../incodeComponent-C1o4M0ZK.js";
|
|
6
6
|
import { t as d } from "../transitionSpinner-PIEPU2Vx.js";
|
|
7
7
|
import { t as f } from "../incodeModule-BqCjVgEI.js";
|
|
8
|
-
import { a as p, c as m, d as h, f as g, h as _, l as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T } from "../useModuleLoader-
|
|
8
|
+
import { a as p, c as m, d as h, f as g, h as _, l as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T } from "../useModuleLoader-RkAubofS.js";
|
|
9
9
|
import { getDeviceClass as E } from "@incodetech/core/device";
|
|
10
10
|
import { getRequiredWasmPipelines as D } from "@incodetech/core/flow";
|
|
11
11
|
import { QrValidationError as O, bootstrapSession as k, refreshQrUrlUuid as A } from "@incodetech/core/session";
|
|
@@ -184,7 +184,7 @@ var M = {
|
|
|
184
184
|
ID_OCR: () => import("./idOcr-D7FdcAzt.js").then((e) => e.IdOcr),
|
|
185
185
|
CPF_OCR: () => import("./cpfOcr-D_tbwbvh.js").then((e) => e.CpfOcr),
|
|
186
186
|
ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((e) => e.Antifraud),
|
|
187
|
-
CUSTOM_FIELDS: () => import("./customFields-
|
|
187
|
+
CUSTOM_FIELDS: () => import("./customFields-CW38fQUv.js").then((e) => e.CustomFields),
|
|
188
188
|
WATCHLIST: () => import("./watchlist/watchlist.es.js").then((e) => e.Watchlist),
|
|
189
189
|
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-BcSNtHCV.js").then((e) => e.WatchlistForBusiness),
|
|
190
190
|
INCODE_WATCHLIST: () => import("./customWatchlist-D9_yjEQd.js").then((e) => e.CustomWatchlist),
|
|
@@ -6,7 +6,7 @@ import { t as l } from "../incodeComponent-C1o4M0ZK.js";
|
|
|
6
6
|
import "../spinner-B4dcie2T.js";
|
|
7
7
|
import { t as u } from "../transitionSpinner-PIEPU2Vx.js";
|
|
8
8
|
import { t as d } from "../incodeModule-BqCjVgEI.js";
|
|
9
|
-
import { a as f, g as p, i as m, m as h, s as g, t as _ } from "../useModuleLoader-
|
|
9
|
+
import { a as f, g as p, i as m, m as h, s as g, t as _ } from "../useModuleLoader-RkAubofS.js";
|
|
10
10
|
import { resolveWasmConfig as v, upgradeToWasmHttpClient as y, warmupWasm as b } from "@incodetech/core/wasm";
|
|
11
11
|
import { getDeviceClass as x } from "@incodetech/core/device";
|
|
12
12
|
import { QrValidationError as S, refreshQrUrlUuid as C } from "@incodetech/core/session";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260513-
|
|
3
|
+
"version": "0.0.0-dev-20260513-3fb7814",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"qrcode": "^1.5.4",
|
|
240
240
|
"signature_pad": "^5.1.3",
|
|
241
241
|
"tailwindcss": "^4.1.17",
|
|
242
|
-
"@incodetech/core": "0.0.0-dev-20260513-
|
|
242
|
+
"@incodetech/core": "0.0.0-dev-20260513-3fb7814"
|
|
243
243
|
},
|
|
244
244
|
"devDependencies": {
|
|
245
245
|
"@microsoft/api-extractor": "^7.53.3",
|