@thx/controls 17.2.3-alpha.0 → 17.3.0
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/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/inputs/Scriptel/Scriptel.js +52 -0
- package/dist/esm/inputs/Scriptel/Scriptel.js.map +1 -0
- package/dist/esm/inputs/Scriptel/ScriptelContext.js +6 -0
- package/dist/esm/inputs/Scriptel/ScriptelContext.js.map +1 -0
- package/dist/esm/inputs/Scriptel/scriptel/enums.js +21 -0
- package/dist/esm/inputs/Scriptel/scriptel/enums.js.map +1 -0
- package/dist/esm/inputs/Scriptel/scriptel/index.js +93 -0
- package/dist/esm/inputs/Scriptel/scriptel/index.js.map +1 -0
- package/dist/esm/inputs/Scriptel/withScriptel.js +15 -0
- package/dist/esm/inputs/Scriptel/withScriptel.js.map +1 -0
- package/dist/esm/inputs/ScriptelInput/ScriptelInput.js +67 -0
- package/dist/esm/inputs/ScriptelInput/ScriptelInput.js.map +1 -0
- package/dist/stats.html +1 -1
- package/dist/stats.txt +104 -0
- package/dist/types/inputs/Scriptel/Scriptel.d.ts +10 -0
- package/dist/types/inputs/Scriptel/ScriptelContext.d.ts +9 -0
- package/dist/types/inputs/Scriptel/index.d.ts +4 -0
- package/dist/types/inputs/Scriptel/scriptel/classes.d.ts +144 -0
- package/dist/types/inputs/Scriptel/scriptel/enums.d.ts +16 -0
- package/dist/types/inputs/Scriptel/scriptel/index.d.ts +17 -0
- package/dist/types/inputs/Scriptel/scriptel/messages.d.ts +52 -0
- package/dist/types/inputs/Scriptel/withScriptel.d.ts +8 -0
- package/dist/types/inputs/ScriptelInput/ScriptelInput.d.ts +7 -0
- package/dist/types/inputs/ScriptelInput/index.d.ts +2 -0
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -9,6 +9,9 @@ export { useTForm } from './form/TForm/useTForm.js';
|
|
|
9
9
|
export { MaskedInput } from './inputs/MaskedInput/MaskedInput.js';
|
|
10
10
|
import './inputs/MaskedInput/useMaskedInput.js';
|
|
11
11
|
export { RadioGroup } from './inputs/RadioGroup/RadioGroup.js';
|
|
12
|
+
export { Scriptel } from './inputs/Scriptel/Scriptel.js';
|
|
13
|
+
export { withScriptel } from './inputs/Scriptel/withScriptel.js';
|
|
14
|
+
export { ScriptelInput } from './inputs/ScriptelInput/ScriptelInput.js';
|
|
12
15
|
export { PhoneInput } from './inputs/PhoneInput/PhoneInput.js';
|
|
13
16
|
export { CreditCardInput } from './inputs/CreditCardInput/CreditCardInput.js';
|
|
14
17
|
export { SinInput } from './inputs/SinInput/SinInput.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { useRef, useState, useEffect, useMemo } from 'react';
|
|
2
|
+
import debug from 'debug';
|
|
3
|
+
import { ScriptelContext } from './ScriptelContext.js';
|
|
4
|
+
import { ScriptelSocket } from './scriptel/index.js';
|
|
5
|
+
|
|
6
|
+
debug("thx.controls.inputs.Scriptel");
|
|
7
|
+
function Scriptel({ omniscriptUrl, imageType, scale, crop, penStyle, children }) {
|
|
8
|
+
const socket = useRef();
|
|
9
|
+
const [render, setRender] = useState();
|
|
10
|
+
const [loading, setLoading] = useState(false);
|
|
11
|
+
const [isSigning, setIsSigning] = useState(false);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
socket.current = new ScriptelSocket({
|
|
14
|
+
omniscriptUrl,
|
|
15
|
+
imageType,
|
|
16
|
+
scale,
|
|
17
|
+
crop,
|
|
18
|
+
penStyle
|
|
19
|
+
});
|
|
20
|
+
socket.current.on("render", (msg) => {
|
|
21
|
+
setRender(msg);
|
|
22
|
+
setLoading(false);
|
|
23
|
+
setRender(void 0);
|
|
24
|
+
});
|
|
25
|
+
socket.current.on("okButtonDown", () => {
|
|
26
|
+
setLoading(true);
|
|
27
|
+
});
|
|
28
|
+
socket.current.on("cancel", () => {
|
|
29
|
+
setLoading(false);
|
|
30
|
+
setRender(void 0);
|
|
31
|
+
});
|
|
32
|
+
socket.current.on("penMove", () => {
|
|
33
|
+
setIsSigning(true);
|
|
34
|
+
});
|
|
35
|
+
socket.current.on("penUp", () => {
|
|
36
|
+
setIsSigning(false);
|
|
37
|
+
});
|
|
38
|
+
return () => {
|
|
39
|
+
if (socket.current)
|
|
40
|
+
socket.current.close();
|
|
41
|
+
};
|
|
42
|
+
}, [omniscriptUrl, imageType, scale, crop, penStyle]);
|
|
43
|
+
const scriptel = useMemo(() => {
|
|
44
|
+
return { socket, renderImage: render, loading, isSigning };
|
|
45
|
+
}, [isSigning, loading, render]);
|
|
46
|
+
return /* @__PURE__ */ React.createElement(ScriptelContext.Provider, {
|
|
47
|
+
value: scriptel
|
|
48
|
+
}, children);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { Scriptel };
|
|
52
|
+
//# sourceMappingURL=Scriptel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Scriptel.js","sources":["../../../../src/inputs/Scriptel/Scriptel.tsx"],"sourcesContent":["import debug from 'debug';\nimport {useEffect, useMemo, useRef, useState} from 'react';\nimport {ScriptelContext} from './ScriptelContext';\nimport {ScriptelSocket} from './scriptel';\nimport type {ScriptelPenStyle} from './scriptel/enums';\nimport type {RenderedImage} from './scriptel/messages';\n\nconst d = debug('thx.controls.inputs.Scriptel');\n\nexport interface ScriptelProps {\n\tomniscriptUrl?: string; // Defaults to 'ws://localhost:8080'\n\timageType?: string; // Defaults to 'image/svg+xml'.\n\tscale?: number; // Defaults to 1\n\tcrop?: boolean; // Defaults to false\n\tpenStyle?: ScriptelPenStyle; // Defaults to 'PlainPenStyle'\n\tchildren: JSX.Element | JSX.Element[];\n}\n\nexport function Scriptel({omniscriptUrl, imageType, scale, crop, penStyle, children}: ScriptelProps) {\n\tconst socket = useRef<ScriptelSocket>();\n\tconst [render, setRender] = useState<RenderedImage>();\n\tconst [loading, setLoading] = useState<boolean>(false);\n\tconst [isSigning, setIsSigning] = useState<boolean>(false);\n\n\tuseEffect(() => {\n\t\tsocket.current = new ScriptelSocket({\n\t\t\tomniscriptUrl,\n\t\t\timageType,\n\t\t\tscale,\n\t\t\tcrop,\n\t\t\tpenStyle,\n\t\t});\n\n\t\tsocket.current.on('render', msg => {\n\t\t\tsetRender(msg);\n\t\t\tsetLoading(false);\n\t\t\tsetRender(undefined); // todo look at this in future\n\t\t});\n\t\tsocket.current.on('okButtonDown', () => {\n\t\t\tsetLoading(true);\n\t\t});\n\t\tsocket.current.on('cancel', () => {\n\t\t\tsetLoading(false);\n\t\t\tsetRender(undefined);\n\t\t});\n\t\tsocket.current.on('penMove', () => {\n\t\t\tsetIsSigning(true);\n\t\t});\n\t\tsocket.current.on('penUp', () => {\n\t\t\tsetIsSigning(false);\n\t\t});\n\n\t\treturn () => {\n\t\t\tif (socket.current) socket.current.close();\n\t\t};\n\t}, [omniscriptUrl, imageType, scale, crop, penStyle]);\n\n\tconst scriptel = useMemo(() => {\n\t\treturn {socket, renderImage: render, loading, isSigning};\n\t}, [isSigning, loading, render]);\n\n\treturn <ScriptelContext.Provider value={scriptel}>{children}</ScriptelContext.Provider>;\n}\n"],"names":[],"mappings":";;;;;AAOU,MAAM,8BAA8B,EAAA;AAWvC,SAAA,QAAA,CAAkB,EAAC,aAAe,EAAA,SAAA,EAAW,KAAO,EAAA,IAAA,EAAM,UAAU,QAA0B,EAAA,EAAA;AACpG,EAAA,MAAM,SAAS,MAAuB,EAAA,CAAA;AACtC,EAAM,MAAA,CAAC,MAAQ,EAAA,SAAA,CAAA,GAAa,QAAwB,EAAA,CAAA;AACpD,EAAA,MAAM,CAAC,OAAA,EAAS,UAAc,CAAA,GAAA,QAAA,CAAkB,KAAK,CAAA,CAAA;AACrD,EAAA,MAAM,CAAC,SAAA,EAAW,YAAgB,CAAA,GAAA,QAAA,CAAkB,KAAK,CAAA,CAAA;AAEzD,EAAA,SAAA,CAAU,MAAM;AACf,IAAO,MAAA,CAAA,OAAA,GAAU,IAAI,cAAe,CAAA;AAAA,MACnC,aAAA;AAAA,MACA,SAAA;AAAA,MACA,KAAA;AAAA,MACA,IAAA;AAAA,MACA,QAAA;AAAA,KACA,CAAA,CAAA;AAED,IAAO,MAAA,CAAA,OAAA,CAAQ,EAAG,CAAA,QAAA,EAAU,CAAO,GAAA,KAAA;AAClC,MAAA,SAAA,CAAU,GAAG,CAAA,CAAA;AACb,MAAA,UAAA,CAAW,KAAK,CAAA,CAAA;AAChB,MAAA,SAAA,CAAU,KAAS,CAAA,CAAA,CAAA;AAAA,KACnB,CAAA,CAAA;AACD,IAAO,MAAA,CAAA,OAAA,CAAQ,EAAG,CAAA,cAAA,EAAgB,MAAM;AACvC,MAAA,UAAA,CAAW,IAAI,CAAA,CAAA;AAAA,KACf,CAAA,CAAA;AACD,IAAO,MAAA,CAAA,OAAA,CAAQ,EAAG,CAAA,QAAA,EAAU,MAAM;AACjC,MAAA,UAAA,CAAW,KAAK,CAAA,CAAA;AAChB,MAAA,SAAA,CAAU,KAAS,CAAA,CAAA,CAAA;AAAA,KACnB,CAAA,CAAA;AACD,IAAO,MAAA,CAAA,OAAA,CAAQ,EAAG,CAAA,SAAA,EAAW,MAAM;AAClC,MAAA,YAAA,CAAa,IAAI,CAAA,CAAA;AAAA,KACjB,CAAA,CAAA;AACD,IAAO,MAAA,CAAA,OAAA,CAAQ,EAAG,CAAA,OAAA,EAAS,MAAM;AAChC,MAAA,YAAA,CAAa,KAAK,CAAA,CAAA;AAAA,KAClB,CAAA,CAAA;AAED,IAAA,OAAO,MAAM;AACZ,MAAA,IAAI,MAAO,CAAA,OAAA;AAAS,QAAA,MAAA,CAAO,QAAQ,KAAM,EAAA,CAAA;AAAA,KAC1C,CAAA;AAAA,KACE,CAAC,aAAA,EAAe,WAAW,KAAO,EAAA,IAAA,EAAM,QAAQ,CAAC,CAAA,CAAA;AAEpD,EAAM,MAAA,QAAA,GAAW,QAAQ,MAAM;AAC9B,IAAA,OAAO,EAAC,MAAA,EAAQ,WAAa,EAAA,MAAA,EAAQ,SAAS,SAAS,EAAA,CAAA;AAAA,GACrD,EAAA,CAAC,SAAW,EAAA,OAAA,EAAS,MAAM,CAAC,CAAA,CAAA;AAE/B,EAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,gBAAgB,QAAhB,EAAA;AAAA,IAAyB,KAAO,EAAA,QAAA;AAAA,GAAA,EAAW,QAAS,CAAA,CAAA;AAC7D;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptelContext.js","sources":["../../../../src/inputs/Scriptel/ScriptelContext.ts"],"sourcesContent":["import {createContext, MutableRefObject} from 'react';\nimport type {ScriptelSocket} from './scriptel';\nimport type {RenderedImage} from './scriptel/messages';\n\nexport const ScriptelContext = createContext<\n\t{socket: MutableRefObject<ScriptelSocket | undefined>; renderImage: RenderedImage | undefined; loading: boolean; isSigning: boolean} | undefined\n>(undefined);\n"],"names":[],"mappings":";;AAIa,MAAA,eAAA,GAAkB,cAE7B,KAAS,CAAA;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var ScriptelPenStyle = /* @__PURE__ */ ((ScriptelPenStyle2) => {
|
|
2
|
+
ScriptelPenStyle2["Plain"] = "PlainPenStyle";
|
|
3
|
+
ScriptelPenStyle2["Chisel"] = "ChiselPenStyle";
|
|
4
|
+
ScriptelPenStyle2["Inkwell"] = "InkwellPenStyle";
|
|
5
|
+
return ScriptelPenStyle2;
|
|
6
|
+
})(ScriptelPenStyle || {});
|
|
7
|
+
var ScriptelMessageClass = /* @__PURE__ */ ((ScriptelMessageClass2) => {
|
|
8
|
+
ScriptelMessageClass2["ConnectionOpen"] = "ConnectionOpen";
|
|
9
|
+
ScriptelMessageClass2["DeviceOpenRequest"] = "DeviceOpenRequest";
|
|
10
|
+
ScriptelMessageClass2["DeviceOpenResponse"] = "DeviceOpenResponse";
|
|
11
|
+
ScriptelMessageClass2["RenderedImage"] = "RenderedImage";
|
|
12
|
+
ScriptelMessageClass2["ScriptelException"] = "ScriptelException";
|
|
13
|
+
ScriptelMessageClass2["ButtonDown"] = "ButtonDown";
|
|
14
|
+
ScriptelMessageClass2["ButtonPress"] = "ButtonPress";
|
|
15
|
+
ScriptelMessageClass2["PenMove"] = "PenMove";
|
|
16
|
+
ScriptelMessageClass2["PenUp"] = "PenUp";
|
|
17
|
+
return ScriptelMessageClass2;
|
|
18
|
+
})(ScriptelMessageClass || {});
|
|
19
|
+
|
|
20
|
+
export { ScriptelMessageClass, ScriptelPenStyle };
|
|
21
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sources":["../../../../../src/inputs/Scriptel/scriptel/enums.ts"],"sourcesContent":["export enum ScriptelPenStyle {\n\tPlain = 'PlainPenStyle',\n\tChisel = 'ChiselPenStyle',\n\tInkwell = 'InkwellPenStyle',\n}\n\nexport enum ScriptelMessageClass {\n\tConnectionOpen = 'ConnectionOpen',\n\tDeviceOpenRequest = 'DeviceOpenRequest',\n\tDeviceOpenResponse = 'DeviceOpenResponse',\n\tRenderedImage = 'RenderedImage',\n\tScriptelException = 'ScriptelException',\n\tButtonDown = 'ButtonDown',\n\tButtonPress = 'ButtonPress',\n\tPenMove = 'PenMove',\n\tPenUp = 'PenUp',\n}\n"],"names":[],"mappings":"AAAY,IAAA,gBAAA,qBAAA,iBAAL,KAAA;AACN,EAAQ,iBAAA,CAAA,OAAA,CAAA,GAAA,eAAA,CAAA;AACR,EAAS,iBAAA,CAAA,QAAA,CAAA,GAAA,gBAAA,CAAA;AACT,EAAU,iBAAA,CAAA,SAAA,CAAA,GAAA,iBAAA,CAAA;AAHC,EAAA,OAAA,iBAAA,CAAA;AAAA,CAAA,EAAA,gBAAA,IAAA,EAAA,EAAA;AAMA,IAAA,oBAAA,qBAAA,qBAAL,KAAA;AACN,EAAiB,qBAAA,CAAA,gBAAA,CAAA,GAAA,gBAAA,CAAA;AACjB,EAAoB,qBAAA,CAAA,mBAAA,CAAA,GAAA,mBAAA,CAAA;AACpB,EAAqB,qBAAA,CAAA,oBAAA,CAAA,GAAA,oBAAA,CAAA;AACrB,EAAgB,qBAAA,CAAA,eAAA,CAAA,GAAA,eAAA,CAAA;AAChB,EAAoB,qBAAA,CAAA,mBAAA,CAAA,GAAA,mBAAA,CAAA;AACpB,EAAa,qBAAA,CAAA,YAAA,CAAA,GAAA,YAAA,CAAA;AACb,EAAc,qBAAA,CAAA,aAAA,CAAA,GAAA,aAAA,CAAA;AACd,EAAU,qBAAA,CAAA,SAAA,CAAA,GAAA,SAAA,CAAA;AACV,EAAQ,qBAAA,CAAA,OAAA,CAAA,GAAA,OAAA,CAAA;AATG,EAAA,OAAA,qBAAA,CAAA;AAAA,CAAA,EAAA,oBAAA,IAAA,EAAA;;;;"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import debug from 'debug';
|
|
2
|
+
import EventEmitter from 'eventemitter3';
|
|
3
|
+
import { ScriptelMessageClass, ScriptelPenStyle } from './enums.js';
|
|
4
|
+
|
|
5
|
+
const d = debug("thx.controls.inputs.Scriptel.scriptel");
|
|
6
|
+
function serverConnected(msg, socket) {
|
|
7
|
+
d("Server connected");
|
|
8
|
+
if (msg.serverInfo.devices.length > 0) {
|
|
9
|
+
const device = msg.serverInfo.devices[0];
|
|
10
|
+
socket.send(JSON.stringify({
|
|
11
|
+
_class: "DeviceOpenRequest",
|
|
12
|
+
uuid: device.uuid
|
|
13
|
+
}));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function deviceConnected(msg, socket, args) {
|
|
17
|
+
d(`Device connected: ${msg.device.uuid}`);
|
|
18
|
+
const { imageType, scale, crop, penStyle } = args;
|
|
19
|
+
socket.send(JSON.stringify({
|
|
20
|
+
_class: "RenderSettingsUpdateRequest",
|
|
21
|
+
renderSettings: {
|
|
22
|
+
_class: "RenderSettings",
|
|
23
|
+
type: imageType || "image/svg+xml",
|
|
24
|
+
scale: scale || 1,
|
|
25
|
+
crop: crop || false,
|
|
26
|
+
penStyle: penStyle ? {
|
|
27
|
+
renderFunction: penStyle
|
|
28
|
+
} : {
|
|
29
|
+
renderFunction: ScriptelPenStyle.Plain
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
function render(msg, args, eventEmitter) {
|
|
35
|
+
d(`Rendered image: ${msg.type} ${msg.width}x${msg.height}`);
|
|
36
|
+
eventEmitter.emit("render", msg);
|
|
37
|
+
}
|
|
38
|
+
class ScriptelSocket extends EventEmitter {
|
|
39
|
+
constructor(args) {
|
|
40
|
+
super();
|
|
41
|
+
this.options = args;
|
|
42
|
+
this.socket = new WebSocket(args.omniscriptUrl || "ws://localhost:8080");
|
|
43
|
+
this.socket.onopen = () => {
|
|
44
|
+
d("Socket open");
|
|
45
|
+
};
|
|
46
|
+
this.socket.onclose = () => {
|
|
47
|
+
d("Socket closed");
|
|
48
|
+
};
|
|
49
|
+
this.socket.onmessage = (ev) => {
|
|
50
|
+
const msg = JSON.parse(ev.data);
|
|
51
|
+
if (!msg._class)
|
|
52
|
+
return;
|
|
53
|
+
switch (msg._class) {
|
|
54
|
+
case ScriptelMessageClass.ConnectionOpen:
|
|
55
|
+
serverConnected(msg, this.socket);
|
|
56
|
+
break;
|
|
57
|
+
case ScriptelMessageClass.DeviceOpenResponse:
|
|
58
|
+
deviceConnected(msg, this.socket, this.options);
|
|
59
|
+
break;
|
|
60
|
+
case ScriptelMessageClass.RenderedImage:
|
|
61
|
+
render(msg, this.options, this);
|
|
62
|
+
break;
|
|
63
|
+
case ScriptelMessageClass.ScriptelException:
|
|
64
|
+
d(`Scriptel Exception Error: ${msg.message}`);
|
|
65
|
+
break;
|
|
66
|
+
case ScriptelMessageClass.ButtonPress:
|
|
67
|
+
if (msg.label === "Cancel")
|
|
68
|
+
this.emit("cancel");
|
|
69
|
+
break;
|
|
70
|
+
case ScriptelMessageClass.ButtonDown:
|
|
71
|
+
if (msg.label === "OK")
|
|
72
|
+
this.emit("okButtonDown");
|
|
73
|
+
break;
|
|
74
|
+
case ScriptelMessageClass.PenMove:
|
|
75
|
+
this.emit("penMove");
|
|
76
|
+
break;
|
|
77
|
+
case ScriptelMessageClass.PenUp:
|
|
78
|
+
this.emit("penUp");
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
calibrate() {
|
|
84
|
+
d("calibrate");
|
|
85
|
+
this.socket.send(JSON.stringify({ _class: "ForceRecalibrate" }));
|
|
86
|
+
}
|
|
87
|
+
close() {
|
|
88
|
+
this.socket.close();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { ScriptelSocket };
|
|
93
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/inputs/Scriptel/scriptel/index.ts"],"sourcesContent":["/* globals WebSocket: true */\nimport debug from 'debug';\nimport EventEmitter from 'eventemitter3';\nimport {ScriptelMessageClass, ScriptelPenStyle} from './enums';\nimport type {ConnectionOpen, DeviceOpenResponse, Message, RenderedImage} from './messages';\n\nconst d = debug('thx.controls.inputs.Scriptel.scriptel');\n\nexport interface ScriptelSocketArgs {\n\tomniscriptUrl?: string; // Defaults to 'ws://localhost:8080'\n\timageType?: string; // Defaults to 'image/svg+xml'.\n\tscale?: number; // Defaults to 1\n\tcrop?: boolean; // Defaults to false\n\tpenStyle?: ScriptelPenStyle; // Defaults to 'PlainPenStyle'\n\trender?: () => void;\n}\n\nfunction serverConnected(msg: ConnectionOpen, socket: WebSocket) {\n\td('Server connected');\n\tif (msg.serverInfo.devices.length > 0) {\n\t\t// Grab the first available device\n\t\tconst device = msg.serverInfo.devices[0];\n\t\tsocket.send(\n\t\t\tJSON.stringify({\n\t\t\t\t_class: 'DeviceOpenRequest',\n\t\t\t\tuuid: device.uuid,\n\t\t\t}),\n\t\t);\n\t}\n}\n\nfunction deviceConnected(msg: DeviceOpenResponse, socket: WebSocket, args: ScriptelSocketArgs) {\n\td(`Device connected: ${msg.device.uuid}`);\n\tconst {imageType, scale, crop, penStyle} = args;\n\tsocket.send(\n\t\tJSON.stringify({\n\t\t\t_class: 'RenderSettingsUpdateRequest',\n\t\t\trenderSettings: {\n\t\t\t\t_class: 'RenderSettings',\n\t\t\t\ttype: imageType || 'image/svg+xml',\n\t\t\t\tscale: scale || 1,\n\t\t\t\tcrop: crop || false,\n\t\t\t\tpenStyle: penStyle\n\t\t\t\t\t? {\n\t\t\t\t\t\t\trenderFunction: penStyle,\n\t\t\t\t\t }\n\t\t\t\t\t: {\n\t\t\t\t\t\t\trenderFunction: ScriptelPenStyle.Plain,\n\t\t\t\t\t },\n\t\t\t},\n\t\t}),\n\t);\n}\n\nfunction render(msg: RenderedImage, args: ScriptelSocketArgs, eventEmitter: EventEmitter) {\n\td(`Rendered image: ${msg.type} ${msg.width}x${msg.height}`);\n\teventEmitter.emit('render', msg);\n}\n\nexport class ScriptelSocket extends EventEmitter {\n\tprivate socket: WebSocket;\n\tprivate options: ScriptelSocketArgs;\n\n\tconstructor(args: ScriptelSocketArgs) {\n\t\tsuper();\n\n\t\tthis.options = args;\n\n\t\tthis.socket = new WebSocket(args.omniscriptUrl || 'ws://localhost:8080');\n\n\t\tthis.socket.onopen = () => {\n\t\t\td('Socket open');\n\t\t};\n\n\t\tthis.socket.onclose = () => {\n\t\t\td('Socket closed');\n\t\t};\n\n\t\tthis.socket.onmessage = ev => {\n\t\t\tconst msg = JSON.parse(ev.data) as Message;\n\t\t\tif (!msg._class) return; // A message with no class.\n\n\t\t\tswitch (msg._class) {\n\t\t\t\tcase ScriptelMessageClass.ConnectionOpen:\n\t\t\t\t\tserverConnected(msg, this.socket);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ScriptelMessageClass.DeviceOpenResponse:\n\t\t\t\t\tdeviceConnected(msg, this.socket, this.options);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ScriptelMessageClass.RenderedImage:\n\t\t\t\t\trender(msg, this.options, this);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ScriptelMessageClass.ScriptelException:\n\t\t\t\t\td(`Scriptel Exception Error: ${msg.message}`);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase ScriptelMessageClass.ButtonPress:\n\t\t\t\t\tif (msg.label === 'Cancel') this.emit('cancel');\n\t\t\t\t\tbreak;\n\t\t\t\tcase ScriptelMessageClass.ButtonDown:\n\t\t\t\t\tif (msg.label === 'OK') this.emit('okButtonDown');\n\t\t\t\t\tbreak;\n\t\t\t\tcase ScriptelMessageClass.PenMove:\n\t\t\t\t\tthis.emit('penMove');\n\t\t\t\t\tbreak;\n\t\t\t\tcase ScriptelMessageClass.PenUp:\n\t\t\t\t\tthis.emit('penUp');\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t}\n\t\t};\n\t}\n\n\tcalibrate() {\n\t\td('calibrate');\n\t\tthis.socket.send(JSON.stringify({_class: 'ForceRecalibrate'}));\n\t}\n\n\tclose() {\n\t\tthis.socket.close();\n\t}\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Scriptel } from './Scriptel.js';
|
|
3
|
+
|
|
4
|
+
function withScriptel(WrappedComponent, scriptelProps) {
|
|
5
|
+
return function withScriptelHoC(props) {
|
|
6
|
+
return /* @__PURE__ */ React.createElement(Scriptel, {
|
|
7
|
+
...scriptelProps
|
|
8
|
+
}, /* @__PURE__ */ React.createElement(WrappedComponent, {
|
|
9
|
+
...props
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { withScriptel };
|
|
15
|
+
//# sourceMappingURL=withScriptel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withScriptel.js","sources":["../../../../src/inputs/Scriptel/withScriptel.tsx"],"sourcesContent":["import {Scriptel, ScriptelProps} from './Scriptel';\n\n/**\n * A HoC that provides a connection to a Scriptel Omniscript device.\n * You can only have a single connection open at a time.\n * @param WrappedComponent\n * @return {Object}\n */\nexport function withScriptel(WrappedComponent: any, scriptelProps: ScriptelProps) {\n\treturn function withScriptelHoC(props: any) {\n\t\treturn (\n\t\t\t<Scriptel {...scriptelProps}>\n\t\t\t\t<WrappedComponent {...props} />\n\t\t\t</Scriptel>\n\t\t);\n\t};\n}\n"],"names":[],"mappings":";;;AAQO,SAAA,YAAA,CAAsB,kBAAuB,aAA8B,EAAA;AACjF,EAAA,OAAO,yBAAyB,KAAY,EAAA;AAC3C,IAAA,uBACE,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA;AAAA,MAAa,GAAA,aAAA;AAAA,KAAA,kBACZ,KAAA,CAAA,aAAA,CAAA,gBAAA,EAAA;AAAA,MAAqB,GAAA,KAAA;AAAA,KAAO,CAC9B,CAAA,CAAA;AAAA,GAEF,CAAA;AACD;;;;"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React, { useContext, useState, useEffect } from 'react';
|
|
2
|
+
import debug from 'debug';
|
|
3
|
+
import { Button, Image } from 'semantic-ui-react';
|
|
4
|
+
import { ScriptelContext } from '../Scriptel/ScriptelContext.js';
|
|
5
|
+
|
|
6
|
+
debug("thx.controls.inputs.ScriptelInput");
|
|
7
|
+
function ScriptelInput(props) {
|
|
8
|
+
const { value, onChange, buttonText = "Enter Signature" } = props;
|
|
9
|
+
const ctx = useContext(ScriptelContext);
|
|
10
|
+
const [enterSignature, setEnterSignature] = useState(false);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (enterSignature) {
|
|
13
|
+
if (onChange && ctx?.renderImage) {
|
|
14
|
+
setEnterSignature(false);
|
|
15
|
+
if (ctx.renderImage.type === "image/svg+xml" || ctx.renderImage.type === "image/png") {
|
|
16
|
+
onChange({
|
|
17
|
+
type: ctx.renderImage.type,
|
|
18
|
+
width: ctx.renderImage.width,
|
|
19
|
+
height: ctx.renderImage.height,
|
|
20
|
+
timestamp: new Date(),
|
|
21
|
+
data: ctx.renderImage.data
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (onChange && !ctx) {
|
|
26
|
+
onChange();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, [ctx]);
|
|
30
|
+
if (enterSignature) {
|
|
31
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", null, ctx?.isSigning ? "signing..." : "Enter a signature and click OK."), /* @__PURE__ */ React.createElement(Button, {
|
|
32
|
+
onClick: () => {
|
|
33
|
+
setEnterSignature(false);
|
|
34
|
+
},
|
|
35
|
+
color: "black",
|
|
36
|
+
loading: ctx?.loading,
|
|
37
|
+
disabled: ctx?.loading
|
|
38
|
+
}, "Cancel"), /* @__PURE__ */ React.createElement(Button, {
|
|
39
|
+
size: "mini",
|
|
40
|
+
as: "a",
|
|
41
|
+
basic: true,
|
|
42
|
+
onClick: () => ctx?.socket.current?.calibrate(),
|
|
43
|
+
disabled: ctx?.loading
|
|
44
|
+
}, "Calibrate"));
|
|
45
|
+
}
|
|
46
|
+
if (value && value.data) {
|
|
47
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Image, {
|
|
48
|
+
size: "medium",
|
|
49
|
+
src: value.data,
|
|
50
|
+
bordered: true
|
|
51
|
+
}), /* @__PURE__ */ React.createElement(Button, {
|
|
52
|
+
size: "mini",
|
|
53
|
+
compact: true,
|
|
54
|
+
onClick: () => {
|
|
55
|
+
setEnterSignature(false);
|
|
56
|
+
if (onChange)
|
|
57
|
+
onChange();
|
|
58
|
+
}
|
|
59
|
+
}, "Reset"));
|
|
60
|
+
}
|
|
61
|
+
return /* @__PURE__ */ React.createElement(Button, {
|
|
62
|
+
onClick: () => setEnterSignature(true)
|
|
63
|
+
}, buttonText);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { ScriptelInput };
|
|
67
|
+
//# sourceMappingURL=ScriptelInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptelInput.js","sources":["../../../../src/inputs/ScriptelInput/ScriptelInput.tsx"],"sourcesContent":["import type {ScriptelSchemaType} from '@thx/yup-types';\nimport debug from 'debug';\nimport {useContext, useEffect, useState} from 'react';\nimport {Button, Image} from 'semantic-ui-react';\nimport {ScriptelContext} from '../Scriptel/ScriptelContext';\n\nconst d = debug('thx.controls.inputs.ScriptelInput');\n\nexport interface ScriptelInputProps {\n\tvalue?: ScriptelSchemaType;\n\tonChange?: (value?: ScriptelSchemaType) => void;\n\tbuttonText?: string;\n}\n\nexport function ScriptelInput(props: ScriptelInputProps) {\n\tconst {value, onChange, buttonText = 'Enter Signature'} = props;\n\tconst ctx = useContext(ScriptelContext);\n\n\tconst [enterSignature, setEnterSignature] = useState(false);\n\n\tuseEffect(() => {\n\t\tif (enterSignature) {\n\t\t\tif (onChange && ctx?.renderImage) {\n\t\t\t\tsetEnterSignature(false);\n\t\t\t\tif (ctx.renderImage.type === 'image/svg+xml' || ctx.renderImage.type === 'image/png') {\n\t\t\t\t\tonChange({\n\t\t\t\t\t\ttype: ctx.renderImage.type,\n\t\t\t\t\t\twidth: ctx.renderImage.width,\n\t\t\t\t\t\theight: ctx.renderImage.height,\n\t\t\t\t\t\ttimestamp: new Date(),\n\t\t\t\t\t\tdata: ctx.renderImage.data,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (onChange && !ctx) {\n\t\t\t\tonChange();\n\t\t\t}\n\t\t}\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ctx]);\n\n\tif (enterSignature) {\n\t\treturn (\n\t\t\t<div>\n\t\t\t\t<div>{ctx?.isSigning ? 'signing...' : 'Enter a signature and click OK.'}</div>\n\t\t\t\t<Button\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\tsetEnterSignature(false);\n\t\t\t\t\t}}\n\t\t\t\t\tcolor=\"black\"\n\t\t\t\t\tloading={ctx?.loading}\n\t\t\t\t\tdisabled={ctx?.loading}\n\t\t\t\t>\n\t\t\t\t\tCancel\n\t\t\t\t</Button>\n\t\t\t\t<Button size=\"mini\" as=\"a\" basic onClick={() => ctx?.socket.current?.calibrate()} disabled={ctx?.loading}>\n\t\t\t\t\tCalibrate\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tif (value && value.data) {\n\t\treturn (\n\t\t\t<div>\n\t\t\t\t<Image size=\"medium\" src={value.data} bordered />\n\t\t\t\t<Button\n\t\t\t\t\tsize=\"mini\"\n\t\t\t\t\tcompact\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\tsetEnterSignature(false);\n\t\t\t\t\t\tif (onChange) onChange();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\tReset\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn <Button onClick={() => setEnterSignature(true)}>{buttonText}</Button>;\n}\n"],"names":[],"mappings":"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"}
|
package/dist/stats.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"e6b8-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"e6b8-3"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"e6b8-5"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"e6b8-7"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"e6b8-9"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"e6b8-11"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"e6b8-13"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"e6b8-15"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"e6b8-17"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"e6b8-19"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"e6b8-21"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"e6b8-23"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"e6b8-25"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"e6b8-27"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"e6b8-29"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"e6b8-31"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"e6b8-33"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"e6b8-35"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"e6b8-37"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"e6b8-39"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"e6b8-41"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"e6b8-43"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"e6b8-45"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"e6b8-47"}]},{"name":"inputs/TableInput/LocalTimeEditCell.js","children":[{"name":"src/inputs/TableInput/LocalTimeEditCell.tsx","uid":"e6b8-49"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"e6b8-51"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"e6b8-53"}]},{"name":"inputs/TableInput/NumberEditCell.js","children":[{"name":"src/inputs/TableInput/NumberEditCell.tsx","uid":"e6b8-55"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"e6b8-57"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"e6b8-59"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"e6b8-61"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"e6b8-63"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"e6b8-65"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"e6b8-67"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"e6b8-69"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"e6b8-71"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"e6b8-73"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"e6b8-75"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"e6b8-77"}]},{"name":"date/LocalTimePicker/MaskedTimeInput.js","children":[{"name":"src/date/LocalTimePicker/MaskedTimeInput.tsx","uid":"e6b8-79"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"e6b8-81"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/runner/work/thr-addons/thr-addons/node_modules/style-inject/dist/style-inject.es.js","uid":"e6b8-83"}]}],"isRoot":true},"nodeParts":{"e6b8-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"e6b8-0"},"e6b8-3":{"renderedLength":113,"gzipLength":107,"brotliLength":82,"mainUid":"e6b8-2"},"e6b8-5":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"mainUid":"e6b8-4"},"e6b8-7":{"renderedLength":3529,"gzipLength":1015,"brotliLength":861,"mainUid":"e6b8-6"},"e6b8-9":{"renderedLength":203,"gzipLength":155,"brotliLength":111,"mainUid":"e6b8-8"},"e6b8-11":{"renderedLength":1487,"gzipLength":501,"brotliLength":423,"mainUid":"e6b8-10"},"e6b8-13":{"renderedLength":1135,"gzipLength":505,"brotliLength":415,"mainUid":"e6b8-12"},"e6b8-15":{"renderedLength":1553,"gzipLength":579,"brotliLength":461,"mainUid":"e6b8-14"},"e6b8-17":{"renderedLength":1965,"gzipLength":655,"brotliLength":544,"mainUid":"e6b8-16"},"e6b8-19":{"renderedLength":3161,"gzipLength":952,"brotliLength":853,"mainUid":"e6b8-18"},"e6b8-21":{"renderedLength":513,"gzipLength":301,"brotliLength":257,"mainUid":"e6b8-20"},"e6b8-23":{"renderedLength":2324,"gzipLength":584,"brotliLength":495,"mainUid":"e6b8-22"},"e6b8-25":{"renderedLength":1624,"gzipLength":580,"brotliLength":482,"mainUid":"e6b8-24"},"e6b8-27":{"renderedLength":561,"gzipLength":301,"brotliLength":259,"mainUid":"e6b8-26"},"e6b8-29":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"mainUid":"e6b8-28"},"e6b8-31":{"renderedLength":600,"gzipLength":308,"brotliLength":267,"mainUid":"e6b8-30"},"e6b8-33":{"renderedLength":2930,"gzipLength":953,"brotliLength":816,"mainUid":"e6b8-32"},"e6b8-35":{"renderedLength":778,"gzipLength":391,"brotliLength":329,"mainUid":"e6b8-34"},"e6b8-37":{"renderedLength":1144,"gzipLength":532,"brotliLength":462,"mainUid":"e6b8-36"},"e6b8-39":{"renderedLength":2891,"gzipLength":854,"brotliLength":780,"mainUid":"e6b8-38"},"e6b8-41":{"renderedLength":257,"gzipLength":185,"brotliLength":149,"mainUid":"e6b8-40"},"e6b8-43":{"renderedLength":820,"gzipLength":397,"brotliLength":349,"mainUid":"e6b8-42"},"e6b8-45":{"renderedLength":285,"gzipLength":198,"brotliLength":170,"mainUid":"e6b8-44"},"e6b8-47":{"renderedLength":695,"gzipLength":349,"brotliLength":295,"mainUid":"e6b8-46"},"e6b8-49":{"renderedLength":622,"gzipLength":322,"brotliLength":269,"mainUid":"e6b8-48"},"e6b8-51":{"renderedLength":702,"gzipLength":369,"brotliLength":330,"mainUid":"e6b8-50"},"e6b8-53":{"renderedLength":414,"gzipLength":259,"brotliLength":219,"mainUid":"e6b8-52"},"e6b8-55":{"renderedLength":782,"gzipLength":409,"brotliLength":345,"mainUid":"e6b8-54"},"e6b8-57":{"renderedLength":717,"gzipLength":372,"brotliLength":319,"mainUid":"e6b8-56"},"e6b8-59":{"renderedLength":493,"gzipLength":255,"brotliLength":211,"mainUid":"e6b8-58"},"e6b8-61":{"renderedLength":403,"gzipLength":244,"brotliLength":195,"mainUid":"e6b8-60"},"e6b8-63":{"renderedLength":1575,"gzipLength":640,"brotliLength":536,"mainUid":"e6b8-62"},"e6b8-65":{"renderedLength":1229,"gzipLength":496,"brotliLength":424,"mainUid":"e6b8-64"},"e6b8-67":{"renderedLength":908,"gzipLength":382,"brotliLength":319,"mainUid":"e6b8-66"},"e6b8-69":{"renderedLength":80,"gzipLength":92,"brotliLength":72,"mainUid":"e6b8-68"},"e6b8-71":{"renderedLength":2155,"gzipLength":764,"brotliLength":660,"mainUid":"e6b8-70"},"e6b8-73":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"mainUid":"e6b8-72"},"e6b8-75":{"renderedLength":538,"gzipLength":261,"brotliLength":211,"mainUid":"e6b8-74"},"e6b8-77":{"renderedLength":426,"gzipLength":286,"brotliLength":244,"mainUid":"e6b8-76"},"e6b8-79":{"renderedLength":424,"gzipLength":285,"brotliLength":257,"mainUid":"e6b8-78"},"e6b8-81":{"renderedLength":1713,"gzipLength":689,"brotliLength":585,"mainUid":"e6b8-80"},"e6b8-83":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"e6b8-82"}},"nodeMetas":{"e6b8-0":{"id":"/src/index.ts","moduleParts":{"index.js":"e6b8-1"},"imported":[{"uid":"e6b8-84"},{"uid":"e6b8-85"},{"uid":"e6b8-86"},{"uid":"e6b8-87"},{"uid":"e6b8-88"},{"uid":"e6b8-89"},{"uid":"e6b8-90"},{"uid":"e6b8-91"},{"uid":"e6b8-92"},{"uid":"e6b8-93"},{"uid":"e6b8-94"},{"uid":"e6b8-95"},{"uid":"e6b8-96"},{"uid":"e6b8-97"},{"uid":"e6b8-98"},{"uid":"e6b8-99"}],"importedBy":[],"isEntry":true},"e6b8-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"e6b8-3"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-68"}],"importedBy":[{"uid":"e6b8-99"},{"uid":"e6b8-4"}]},"e6b8-4":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"e6b8-5"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-2"}],"importedBy":[{"uid":"e6b8-99"},{"uid":"e6b8-6"}]},"e6b8-6":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"e6b8-7"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-117"},{"uid":"e6b8-103"},{"uid":"e6b8-4"},{"uid":"e6b8-8"},{"uid":"e6b8-68"}],"importedBy":[{"uid":"e6b8-99"}]},"e6b8-8":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"e6b8-9"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"}],"importedBy":[{"uid":"e6b8-99"},{"uid":"e6b8-6"}]},"e6b8-10":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"e6b8-11"},"imported":[{"uid":"e6b8-102"},{"uid":"e6b8-109"},{"uid":"e6b8-100"},{"uid":"e6b8-110"}],"importedBy":[{"uid":"e6b8-91"},{"uid":"e6b8-20"},{"uid":"e6b8-36"},{"uid":"e6b8-80"}]},"e6b8-12":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"e6b8-13"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-105"},{"uid":"e6b8-102"},{"uid":"e6b8-103"}],"importedBy":[{"uid":"e6b8-85"}]},"e6b8-14":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"e6b8-15"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-103"}],"importedBy":[{"uid":"e6b8-89"}]},"e6b8-16":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"e6b8-17"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-101"},{"uid":"e6b8-102"},{"uid":"e6b8-103"},{"uid":"e6b8-104"}],"importedBy":[{"uid":"e6b8-87"}]},"e6b8-18":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"e6b8-19"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-101"},{"uid":"e6b8-102"},{"uid":"e6b8-103"},{"uid":"e6b8-104"},{"uid":"e6b8-74"},{"uid":"e6b8-76"}],"importedBy":[{"uid":"e6b8-84"}]},"e6b8-20":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"e6b8-21"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-10"}],"importedBy":[{"uid":"e6b8-91"}]},"e6b8-22":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"e6b8-23"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-101"},{"uid":"e6b8-102"},{"uid":"e6b8-111"},{"uid":"e6b8-112"},{"uid":"e6b8-103"},{"uid":"e6b8-88"},{"uid":"e6b8-80"},{"uid":"e6b8-72"}],"importedBy":[{"uid":"e6b8-94"}]},"e6b8-24":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"e6b8-25"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-105"},{"uid":"e6b8-101"},{"uid":"e6b8-102"},{"uid":"e6b8-103"},{"uid":"e6b8-104"},{"uid":"e6b8-78"}],"importedBy":[{"uid":"e6b8-86"}]},"e6b8-26":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"e6b8-27"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-103"}],"importedBy":[{"uid":"e6b8-92"}]},"e6b8-28":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"e6b8-29"},"imported":[],"importedBy":[{"uid":"e6b8-96"},{"uid":"e6b8-42"},{"uid":"e6b8-50"},{"uid":"e6b8-54"},{"uid":"e6b8-56"}]},"e6b8-30":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"e6b8-31"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-106"},{"uid":"e6b8-32"}],"importedBy":[{"uid":"e6b8-90"}]},"e6b8-32":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"e6b8-33"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-107"},{"uid":"e6b8-106"},{"uid":"e6b8-108"},{"uid":"e6b8-103"}],"importedBy":[{"uid":"e6b8-90"},{"uid":"e6b8-30"}]},"e6b8-34":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"e6b8-35"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-115"},{"uid":"e6b8-102"},{"uid":"e6b8-116"},{"uid":"e6b8-103"},{"uid":"e6b8-70"}],"importedBy":[{"uid":"e6b8-97"}]},"e6b8-36":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"e6b8-37"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-103"},{"uid":"e6b8-113"},{"uid":"e6b8-10"}],"importedBy":[{"uid":"e6b8-95"}]},"e6b8-38":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"e6b8-39"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-106"},{"uid":"e6b8-114"},{"uid":"e6b8-103"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-40":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"e6b8-41"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-115"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-42":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"e6b8-43"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-97"},{"uid":"e6b8-28"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-44":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"e6b8-45"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-101"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-46":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"e6b8-47"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-84"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-48":{"id":"/src/inputs/TableInput/LocalTimeEditCell.tsx","moduleParts":{"inputs/TableInput/LocalTimeEditCell.js":"e6b8-49"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-86"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-50":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"e6b8-51"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-103"},{"uid":"e6b8-28"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-52":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"e6b8-53"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-115"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-54":{"id":"/src/inputs/TableInput/NumberEditCell.tsx","moduleParts":{"inputs/TableInput/NumberEditCell.js":"e6b8-55"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-103"},{"uid":"e6b8-28"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-56":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"e6b8-57"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-103"},{"uid":"e6b8-28"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-58":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"e6b8-59"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-103"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-60":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"e6b8-61"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"}],"importedBy":[{"uid":"e6b8-96"}]},"e6b8-62":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"e6b8-63"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-115"},{"uid":"e6b8-102"},{"uid":"e6b8-116"},{"uid":"e6b8-103"},{"uid":"e6b8-70"}],"importedBy":[{"uid":"e6b8-98"}]},"e6b8-64":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"e6b8-65"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-105"},{"uid":"e6b8-101"},{"uid":"e6b8-102"},{"uid":"e6b8-103"},{"uid":"e6b8-104"}],"importedBy":[{"uid":"e6b8-88"}]},"e6b8-66":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"e6b8-67"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-103"},{"uid":"e6b8-91"}],"importedBy":[{"uid":"e6b8-93"}]},"e6b8-68":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"e6b8-69"},"imported":[{"uid":"e6b8-100"}],"importedBy":[{"uid":"e6b8-2"},{"uid":"e6b8-6"}]},"e6b8-70":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"e6b8-71"},"imported":[{"uid":"e6b8-115"},{"uid":"e6b8-102"},{"uid":"e6b8-109"},{"uid":"e6b8-116"},{"uid":"e6b8-100"}],"importedBy":[{"uid":"e6b8-34"},{"uid":"e6b8-62"}]},"e6b8-72":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"e6b8-73"},"imported":[{"uid":"e6b8-82"}],"importedBy":[{"uid":"e6b8-22"}]},"e6b8-74":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"e6b8-75"},"imported":[{"uid":"e6b8-82"}],"importedBy":[{"uid":"e6b8-18"},{"uid":"e6b8-104"}]},"e6b8-76":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"e6b8-77"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-91"}],"importedBy":[{"uid":"e6b8-18"}]},"e6b8-78":{"id":"/src/date/LocalTimePicker/MaskedTimeInput.tsx","moduleParts":{"date/LocalTimePicker/MaskedTimeInput.js":"e6b8-79"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-102"},{"uid":"e6b8-91"}],"importedBy":[{"uid":"e6b8-24"}]},"e6b8-80":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"e6b8-81"},"imported":[{"uid":"e6b8-100"},{"uid":"e6b8-119"},{"uid":"e6b8-102"},{"uid":"e6b8-120"},{"uid":"e6b8-103"},{"uid":"e6b8-10"}],"importedBy":[{"uid":"e6b8-22"}]},"e6b8-82":{"id":"/home/runner/work/thr-addons/thr-addons/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"e6b8-83"},"imported":[],"importedBy":[{"uid":"e6b8-74"},{"uid":"e6b8-72"}]},"e6b8-84":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-18"}],"importedBy":[{"uid":"e6b8-0"},{"uid":"e6b8-46"}]},"e6b8-85":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-12"}],"importedBy":[{"uid":"e6b8-0"}]},"e6b8-86":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-24"}],"importedBy":[{"uid":"e6b8-0"},{"uid":"e6b8-48"}]},"e6b8-87":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-16"}],"importedBy":[{"uid":"e6b8-0"}]},"e6b8-88":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-64"}],"importedBy":[{"uid":"e6b8-0"},{"uid":"e6b8-22"}]},"e6b8-89":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-14"}],"importedBy":[{"uid":"e6b8-0"}]},"e6b8-90":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-30"},{"uid":"e6b8-32"}],"importedBy":[{"uid":"e6b8-0"}]},"e6b8-91":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-20"},{"uid":"e6b8-10"}],"importedBy":[{"uid":"e6b8-0"},{"uid":"e6b8-66"},{"uid":"e6b8-76"},{"uid":"e6b8-78"}]},"e6b8-92":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-26"}],"importedBy":[{"uid":"e6b8-0"}]},"e6b8-93":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-66"}],"importedBy":[{"uid":"e6b8-0"}]},"e6b8-94":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-22"}],"importedBy":[{"uid":"e6b8-0"}]},"e6b8-95":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-36"}],"importedBy":[{"uid":"e6b8-0"}]},"e6b8-96":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-38"},{"uid":"e6b8-40"},{"uid":"e6b8-42"},{"uid":"e6b8-44"},{"uid":"e6b8-50"},{"uid":"e6b8-46"},{"uid":"e6b8-48"},{"uid":"e6b8-52"},{"uid":"e6b8-54"},{"uid":"e6b8-56"},{"uid":"e6b8-58"},{"uid":"e6b8-60"},{"uid":"e6b8-28"}],"importedBy":[{"uid":"e6b8-0"}]},"e6b8-97":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-34"}],"importedBy":[{"uid":"e6b8-0"},{"uid":"e6b8-42"}]},"e6b8-98":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-62"}],"importedBy":[{"uid":"e6b8-0"}]},"e6b8-99":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-8"},{"uid":"e6b8-2"},{"uid":"e6b8-4"},{"uid":"e6b8-6"}],"importedBy":[{"uid":"e6b8-0"}]},"e6b8-100":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-18"},{"uid":"e6b8-12"},{"uid":"e6b8-24"},{"uid":"e6b8-16"},{"uid":"e6b8-64"},{"uid":"e6b8-14"},{"uid":"e6b8-30"},{"uid":"e6b8-32"},{"uid":"e6b8-20"},{"uid":"e6b8-10"},{"uid":"e6b8-26"},{"uid":"e6b8-66"},{"uid":"e6b8-22"},{"uid":"e6b8-36"},{"uid":"e6b8-38"},{"uid":"e6b8-40"},{"uid":"e6b8-42"},{"uid":"e6b8-44"},{"uid":"e6b8-50"},{"uid":"e6b8-46"},{"uid":"e6b8-48"},{"uid":"e6b8-52"},{"uid":"e6b8-54"},{"uid":"e6b8-56"},{"uid":"e6b8-58"},{"uid":"e6b8-60"},{"uid":"e6b8-34"},{"uid":"e6b8-62"},{"uid":"e6b8-8"},{"uid":"e6b8-2"},{"uid":"e6b8-4"},{"uid":"e6b8-6"},{"uid":"e6b8-76"},{"uid":"e6b8-78"},{"uid":"e6b8-80"},{"uid":"e6b8-70"},{"uid":"e6b8-68"}],"isExternal":true},"e6b8-101":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-18"},{"uid":"e6b8-24"},{"uid":"e6b8-16"},{"uid":"e6b8-64"},{"uid":"e6b8-22"},{"uid":"e6b8-44"}],"isExternal":true},"e6b8-102":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-18"},{"uid":"e6b8-12"},{"uid":"e6b8-24"},{"uid":"e6b8-16"},{"uid":"e6b8-64"},{"uid":"e6b8-14"},{"uid":"e6b8-30"},{"uid":"e6b8-20"},{"uid":"e6b8-10"},{"uid":"e6b8-26"},{"uid":"e6b8-66"},{"uid":"e6b8-22"},{"uid":"e6b8-36"},{"uid":"e6b8-38"},{"uid":"e6b8-42"},{"uid":"e6b8-50"},{"uid":"e6b8-46"},{"uid":"e6b8-48"},{"uid":"e6b8-54"},{"uid":"e6b8-56"},{"uid":"e6b8-60"},{"uid":"e6b8-34"},{"uid":"e6b8-62"},{"uid":"e6b8-8"},{"uid":"e6b8-4"},{"uid":"e6b8-6"},{"uid":"e6b8-76"},{"uid":"e6b8-78"},{"uid":"e6b8-80"},{"uid":"e6b8-70"}],"isExternal":true},"e6b8-103":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-18"},{"uid":"e6b8-12"},{"uid":"e6b8-24"},{"uid":"e6b8-16"},{"uid":"e6b8-64"},{"uid":"e6b8-14"},{"uid":"e6b8-32"},{"uid":"e6b8-26"},{"uid":"e6b8-66"},{"uid":"e6b8-22"},{"uid":"e6b8-36"},{"uid":"e6b8-38"},{"uid":"e6b8-50"},{"uid":"e6b8-54"},{"uid":"e6b8-56"},{"uid":"e6b8-58"},{"uid":"e6b8-34"},{"uid":"e6b8-62"},{"uid":"e6b8-6"},{"uid":"e6b8-80"}],"isExternal":true},"e6b8-104":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"e6b8-118"},{"uid":"e6b8-74"}],"importedBy":[{"uid":"e6b8-18"},{"uid":"e6b8-24"},{"uid":"e6b8-16"},{"uid":"e6b8-64"}]},"e6b8-105":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-12"},{"uid":"e6b8-24"},{"uid":"e6b8-64"}],"isExternal":true},"e6b8-106":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-30"},{"uid":"e6b8-32"},{"uid":"e6b8-38"}],"isExternal":true},"e6b8-107":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-32"}],"isExternal":true},"e6b8-108":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-32"}],"isExternal":true},"e6b8-109":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-10"},{"uid":"e6b8-70"}],"isExternal":true},"e6b8-110":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-10"}],"isExternal":true},"e6b8-111":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-22"}],"isExternal":true},"e6b8-112":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-22"}],"isExternal":true},"e6b8-113":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-36"}],"isExternal":true},"e6b8-114":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-38"}],"isExternal":true},"e6b8-115":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-40"},{"uid":"e6b8-52"},{"uid":"e6b8-34"},{"uid":"e6b8-62"},{"uid":"e6b8-70"}],"isExternal":true},"e6b8-116":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-34"},{"uid":"e6b8-62"},{"uid":"e6b8-70"}],"isExternal":true},"e6b8-117":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-6"}],"isExternal":true},"e6b8-118":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-104"}],"isExternal":true},"e6b8-119":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-80"}],"isExternal":true},"e6b8-120":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"e6b8-80"}],"isExternal":true}},"env":{"rollup":"2.79.2"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"82a0-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"82a0-3"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"82a0-5"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"82a0-7"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"82a0-9"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"82a0-11"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"82a0-13"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"82a0-15"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"82a0-17"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"82a0-19"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"82a0-21"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"82a0-23"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"82a0-25"}]},{"name":"inputs/Scriptel/Scriptel.js","children":[{"name":"src/inputs/Scriptel/Scriptel.tsx","uid":"82a0-27"}]},{"name":"inputs/Scriptel/withScriptel.js","children":[{"name":"src/inputs/Scriptel/withScriptel.tsx","uid":"82a0-29"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"82a0-31"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"82a0-33"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"82a0-35"}]},{"name":"inputs/ScriptelInput/ScriptelInput.js","children":[{"name":"src/inputs/ScriptelInput/ScriptelInput.tsx","uid":"82a0-37"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"82a0-39"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"82a0-41"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"82a0-43"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"82a0-45"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"82a0-47"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"82a0-49"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"82a0-51"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"82a0-53"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"82a0-55"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"82a0-57"}]},{"name":"inputs/TableInput/LocalTimeEditCell.js","children":[{"name":"src/inputs/TableInput/LocalTimeEditCell.tsx","uid":"82a0-59"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"82a0-61"}]},{"name":"inputs/TableInput/NumberEditCell.js","children":[{"name":"src/inputs/TableInput/NumberEditCell.tsx","uid":"82a0-63"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"82a0-65"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"82a0-67"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"82a0-69"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"82a0-71"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"82a0-73"}]},{"name":"inputs/Scriptel/scriptel/enums.js","children":[{"name":"src/inputs/Scriptel/scriptel/enums.ts","uid":"82a0-75"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"82a0-77"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"82a0-79"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"82a0-81"}]},{"name":"inputs/Scriptel/ScriptelContext.js","children":[{"name":"src/inputs/Scriptel/ScriptelContext.ts","uid":"82a0-83"}]},{"name":"date/LocalTimePicker/MaskedTimeInput.js","children":[{"name":"src/date/LocalTimePicker/MaskedTimeInput.tsx","uid":"82a0-85"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"82a0-87"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"82a0-89"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"82a0-91"}]},{"name":"inputs/Scriptel/scriptel/index.js","children":[{"name":"src/inputs/Scriptel/scriptel/index.ts","uid":"82a0-93"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/artemis/GitHub/thr-addons/node_modules/style-inject/dist/style-inject.es.js","uid":"82a0-95"}]}],"isRoot":true},"nodeParts":{"82a0-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"82a0-0"},"82a0-3":{"renderedLength":113,"gzipLength":107,"brotliLength":82,"mainUid":"82a0-2"},"82a0-5":{"renderedLength":203,"gzipLength":155,"brotliLength":111,"mainUid":"82a0-4"},"82a0-7":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"mainUid":"82a0-6"},"82a0-9":{"renderedLength":3529,"gzipLength":1015,"brotliLength":861,"mainUid":"82a0-8"},"82a0-11":{"renderedLength":1487,"gzipLength":501,"brotliLength":423,"mainUid":"82a0-10"},"82a0-13":{"renderedLength":3161,"gzipLength":952,"brotliLength":853,"mainUid":"82a0-12"},"82a0-15":{"renderedLength":1135,"gzipLength":505,"brotliLength":415,"mainUid":"82a0-14"},"82a0-17":{"renderedLength":1624,"gzipLength":580,"brotliLength":482,"mainUid":"82a0-16"},"82a0-19":{"renderedLength":1229,"gzipLength":496,"brotliLength":424,"mainUid":"82a0-18"},"82a0-21":{"renderedLength":1965,"gzipLength":655,"brotliLength":544,"mainUid":"82a0-20"},"82a0-23":{"renderedLength":2930,"gzipLength":953,"brotliLength":816,"mainUid":"82a0-22"},"82a0-25":{"renderedLength":600,"gzipLength":308,"brotliLength":267,"mainUid":"82a0-24"},"82a0-27":{"renderedLength":1275,"gzipLength":474,"brotliLength":406,"mainUid":"82a0-26"},"82a0-29":{"renderedLength":275,"gzipLength":163,"brotliLength":130,"mainUid":"82a0-28"},"82a0-31":{"renderedLength":1553,"gzipLength":579,"brotliLength":461,"mainUid":"82a0-30"},"82a0-33":{"renderedLength":513,"gzipLength":301,"brotliLength":257,"mainUid":"82a0-32"},"82a0-35":{"renderedLength":561,"gzipLength":301,"brotliLength":259,"mainUid":"82a0-34"},"82a0-37":{"renderedLength":1963,"gzipLength":647,"brotliLength":547,"mainUid":"82a0-36"},"82a0-39":{"renderedLength":908,"gzipLength":382,"brotliLength":319,"mainUid":"82a0-38"},"82a0-41":{"renderedLength":1144,"gzipLength":532,"brotliLength":462,"mainUid":"82a0-40"},"82a0-43":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"mainUid":"82a0-42"},"82a0-45":{"renderedLength":2324,"gzipLength":584,"brotliLength":495,"mainUid":"82a0-44"},"82a0-47":{"renderedLength":2891,"gzipLength":854,"brotliLength":780,"mainUid":"82a0-46"},"82a0-49":{"renderedLength":257,"gzipLength":185,"brotliLength":149,"mainUid":"82a0-48"},"82a0-51":{"renderedLength":820,"gzipLength":397,"brotliLength":349,"mainUid":"82a0-50"},"82a0-53":{"renderedLength":285,"gzipLength":198,"brotliLength":170,"mainUid":"82a0-52"},"82a0-55":{"renderedLength":702,"gzipLength":369,"brotliLength":330,"mainUid":"82a0-54"},"82a0-57":{"renderedLength":695,"gzipLength":349,"brotliLength":295,"mainUid":"82a0-56"},"82a0-59":{"renderedLength":622,"gzipLength":322,"brotliLength":269,"mainUid":"82a0-58"},"82a0-61":{"renderedLength":414,"gzipLength":259,"brotliLength":219,"mainUid":"82a0-60"},"82a0-63":{"renderedLength":782,"gzipLength":409,"brotliLength":345,"mainUid":"82a0-62"},"82a0-65":{"renderedLength":717,"gzipLength":372,"brotliLength":319,"mainUid":"82a0-64"},"82a0-67":{"renderedLength":403,"gzipLength":244,"brotliLength":195,"mainUid":"82a0-66"},"82a0-69":{"renderedLength":493,"gzipLength":255,"brotliLength":211,"mainUid":"82a0-68"},"82a0-71":{"renderedLength":1575,"gzipLength":640,"brotliLength":536,"mainUid":"82a0-70"},"82a0-73":{"renderedLength":778,"gzipLength":391,"brotliLength":329,"mainUid":"82a0-72"},"82a0-75":{"renderedLength":937,"gzipLength":292,"brotliLength":231,"mainUid":"82a0-74"},"82a0-77":{"renderedLength":80,"gzipLength":92,"brotliLength":72,"mainUid":"82a0-76"},"82a0-79":{"renderedLength":538,"gzipLength":261,"brotliLength":211,"mainUid":"82a0-78"},"82a0-81":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"mainUid":"82a0-80"},"82a0-83":{"renderedLength":46,"gzipLength":60,"brotliLength":45,"mainUid":"82a0-82"},"82a0-85":{"renderedLength":424,"gzipLength":285,"brotliLength":257,"mainUid":"82a0-84"},"82a0-87":{"renderedLength":2155,"gzipLength":764,"brotliLength":660,"mainUid":"82a0-86"},"82a0-89":{"renderedLength":426,"gzipLength":286,"brotliLength":244,"mainUid":"82a0-88"},"82a0-91":{"renderedLength":1713,"gzipLength":689,"brotliLength":585,"mainUid":"82a0-90"},"82a0-93":{"renderedLength":2530,"gzipLength":860,"brotliLength":739,"mainUid":"82a0-92"},"82a0-95":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"82a0-94"}},"nodeMetas":{"82a0-0":{"id":"/src/index.ts","moduleParts":{"index.js":"82a0-1"},"imported":[{"uid":"82a0-96"},{"uid":"82a0-97"},{"uid":"82a0-98"},{"uid":"82a0-99"},{"uid":"82a0-100"},{"uid":"82a0-101"},{"uid":"82a0-102"},{"uid":"82a0-103"},{"uid":"82a0-104"},{"uid":"82a0-105"},{"uid":"82a0-106"},{"uid":"82a0-107"},{"uid":"82a0-108"},{"uid":"82a0-109"},{"uid":"82a0-110"},{"uid":"82a0-111"},{"uid":"82a0-112"},{"uid":"82a0-113"}],"importedBy":[],"isEntry":true},"82a0-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"82a0-3"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-76"}],"importedBy":[{"uid":"82a0-113"},{"uid":"82a0-6"}]},"82a0-4":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"82a0-5"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"}],"importedBy":[{"uid":"82a0-113"},{"uid":"82a0-8"}]},"82a0-6":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"82a0-7"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-2"}],"importedBy":[{"uid":"82a0-113"},{"uid":"82a0-8"}]},"82a0-8":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"82a0-9"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-131"},{"uid":"82a0-117"},{"uid":"82a0-6"},{"uid":"82a0-4"},{"uid":"82a0-76"}],"importedBy":[{"uid":"82a0-113"}]},"82a0-10":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"82a0-11"},"imported":[{"uid":"82a0-116"},{"uid":"82a0-123"},{"uid":"82a0-114"},{"uid":"82a0-124"}],"importedBy":[{"uid":"82a0-103"},{"uid":"82a0-32"},{"uid":"82a0-40"},{"uid":"82a0-90"}]},"82a0-12":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"82a0-13"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-115"},{"uid":"82a0-116"},{"uid":"82a0-117"},{"uid":"82a0-118"},{"uid":"82a0-78"},{"uid":"82a0-88"}],"importedBy":[{"uid":"82a0-96"}]},"82a0-14":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"82a0-15"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-119"},{"uid":"82a0-116"},{"uid":"82a0-117"}],"importedBy":[{"uid":"82a0-97"}]},"82a0-16":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"82a0-17"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-119"},{"uid":"82a0-115"},{"uid":"82a0-116"},{"uid":"82a0-117"},{"uid":"82a0-118"},{"uid":"82a0-84"}],"importedBy":[{"uid":"82a0-98"}]},"82a0-18":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"82a0-19"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-119"},{"uid":"82a0-115"},{"uid":"82a0-116"},{"uid":"82a0-117"},{"uid":"82a0-118"}],"importedBy":[{"uid":"82a0-100"}]},"82a0-20":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"82a0-21"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-115"},{"uid":"82a0-116"},{"uid":"82a0-117"},{"uid":"82a0-118"}],"importedBy":[{"uid":"82a0-99"}]},"82a0-22":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"82a0-23"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-121"},{"uid":"82a0-120"},{"uid":"82a0-122"},{"uid":"82a0-117"}],"importedBy":[{"uid":"82a0-102"},{"uid":"82a0-24"}]},"82a0-24":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"82a0-25"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-120"},{"uid":"82a0-22"}],"importedBy":[{"uid":"82a0-102"}]},"82a0-26":{"id":"/src/inputs/Scriptel/Scriptel.tsx","moduleParts":{"inputs/Scriptel/Scriptel.js":"82a0-27"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-82"},{"uid":"82a0-92"}],"importedBy":[{"uid":"82a0-105"},{"uid":"82a0-28"}]},"82a0-28":{"id":"/src/inputs/Scriptel/withScriptel.tsx","moduleParts":{"inputs/Scriptel/withScriptel.js":"82a0-29"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-26"}],"importedBy":[{"uid":"82a0-105"}]},"82a0-30":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"82a0-31"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-117"}],"importedBy":[{"uid":"82a0-101"}]},"82a0-32":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"82a0-33"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-10"}],"importedBy":[{"uid":"82a0-103"}]},"82a0-34":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"82a0-35"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-117"}],"importedBy":[{"uid":"82a0-104"}]},"82a0-36":{"id":"/src/inputs/ScriptelInput/ScriptelInput.tsx","moduleParts":{"inputs/ScriptelInput/ScriptelInput.js":"82a0-37"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-117"},{"uid":"82a0-82"}],"importedBy":[{"uid":"82a0-106"}]},"82a0-38":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"82a0-39"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-117"},{"uid":"82a0-103"}],"importedBy":[{"uid":"82a0-107"}]},"82a0-40":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"82a0-41"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-117"},{"uid":"82a0-127"},{"uid":"82a0-10"}],"importedBy":[{"uid":"82a0-109"}]},"82a0-42":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"82a0-43"},"imported":[],"importedBy":[{"uid":"82a0-110"},{"uid":"82a0-50"},{"uid":"82a0-54"},{"uid":"82a0-62"},{"uid":"82a0-64"}]},"82a0-44":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"82a0-45"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-115"},{"uid":"82a0-116"},{"uid":"82a0-125"},{"uid":"82a0-126"},{"uid":"82a0-117"},{"uid":"82a0-100"},{"uid":"82a0-90"},{"uid":"82a0-80"}],"importedBy":[{"uid":"82a0-108"}]},"82a0-46":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"82a0-47"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-120"},{"uid":"82a0-128"},{"uid":"82a0-117"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-48":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"82a0-49"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-129"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-50":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"82a0-51"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-111"},{"uid":"82a0-42"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-52":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"82a0-53"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-115"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-54":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"82a0-55"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-117"},{"uid":"82a0-42"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-56":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"82a0-57"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-96"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-58":{"id":"/src/inputs/TableInput/LocalTimeEditCell.tsx","moduleParts":{"inputs/TableInput/LocalTimeEditCell.js":"82a0-59"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-98"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-60":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"82a0-61"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-129"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-62":{"id":"/src/inputs/TableInput/NumberEditCell.tsx","moduleParts":{"inputs/TableInput/NumberEditCell.js":"82a0-63"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-117"},{"uid":"82a0-42"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-64":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"82a0-65"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-117"},{"uid":"82a0-42"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-66":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"82a0-67"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-68":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"82a0-69"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-117"}],"importedBy":[{"uid":"82a0-110"}]},"82a0-70":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"82a0-71"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-129"},{"uid":"82a0-116"},{"uid":"82a0-130"},{"uid":"82a0-117"},{"uid":"82a0-86"}],"importedBy":[{"uid":"82a0-112"}]},"82a0-72":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"82a0-73"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-129"},{"uid":"82a0-116"},{"uid":"82a0-130"},{"uid":"82a0-117"},{"uid":"82a0-86"}],"importedBy":[{"uid":"82a0-111"}]},"82a0-74":{"id":"/src/inputs/Scriptel/scriptel/enums.ts","moduleParts":{"inputs/Scriptel/scriptel/enums.js":"82a0-75"},"imported":[],"importedBy":[{"uid":"82a0-105"},{"uid":"82a0-92"}]},"82a0-76":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"82a0-77"},"imported":[{"uid":"82a0-114"}],"importedBy":[{"uid":"82a0-2"},{"uid":"82a0-8"}]},"82a0-78":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"82a0-79"},"imported":[{"uid":"82a0-94"}],"importedBy":[{"uid":"82a0-12"},{"uid":"82a0-118"}]},"82a0-80":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"82a0-81"},"imported":[{"uid":"82a0-94"}],"importedBy":[{"uid":"82a0-44"}]},"82a0-82":{"id":"/src/inputs/Scriptel/ScriptelContext.ts","moduleParts":{"inputs/Scriptel/ScriptelContext.js":"82a0-83"},"imported":[{"uid":"82a0-114"}],"importedBy":[{"uid":"82a0-26"},{"uid":"82a0-36"}]},"82a0-84":{"id":"/src/date/LocalTimePicker/MaskedTimeInput.tsx","moduleParts":{"date/LocalTimePicker/MaskedTimeInput.js":"82a0-85"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-103"}],"importedBy":[{"uid":"82a0-16"}]},"82a0-86":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"82a0-87"},"imported":[{"uid":"82a0-129"},{"uid":"82a0-116"},{"uid":"82a0-123"},{"uid":"82a0-130"},{"uid":"82a0-114"}],"importedBy":[{"uid":"82a0-72"},{"uid":"82a0-70"}]},"82a0-88":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"82a0-89"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-116"},{"uid":"82a0-103"}],"importedBy":[{"uid":"82a0-12"}]},"82a0-90":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"82a0-91"},"imported":[{"uid":"82a0-114"},{"uid":"82a0-134"},{"uid":"82a0-116"},{"uid":"82a0-135"},{"uid":"82a0-117"},{"uid":"82a0-10"}],"importedBy":[{"uid":"82a0-44"}]},"82a0-92":{"id":"/src/inputs/Scriptel/scriptel/index.ts","moduleParts":{"inputs/Scriptel/scriptel/index.js":"82a0-93"},"imported":[{"uid":"82a0-116"},{"uid":"82a0-133"},{"uid":"82a0-74"}],"importedBy":[{"uid":"82a0-26"}]},"82a0-94":{"id":"/home/artemis/GitHub/thr-addons/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"82a0-95"},"imported":[],"importedBy":[{"uid":"82a0-78"},{"uid":"82a0-80"}]},"82a0-96":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"82a0-12"}],"importedBy":[{"uid":"82a0-0"},{"uid":"82a0-56"}]},"82a0-97":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"82a0-14"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-98":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"82a0-16"}],"importedBy":[{"uid":"82a0-0"},{"uid":"82a0-58"}]},"82a0-99":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"82a0-20"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-100":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"82a0-18"}],"importedBy":[{"uid":"82a0-0"},{"uid":"82a0-44"}]},"82a0-101":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"82a0-30"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-102":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"82a0-24"},{"uid":"82a0-22"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-103":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"82a0-32"},{"uid":"82a0-10"}],"importedBy":[{"uid":"82a0-0"},{"uid":"82a0-38"},{"uid":"82a0-88"},{"uid":"82a0-84"}]},"82a0-104":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"82a0-34"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-105":{"id":"/src/inputs/Scriptel/index.ts","moduleParts":{},"imported":[{"uid":"82a0-26"},{"uid":"82a0-28"},{"uid":"82a0-74"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-106":{"id":"/src/inputs/ScriptelInput/index.ts","moduleParts":{},"imported":[{"uid":"82a0-36"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-107":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"82a0-38"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-108":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"82a0-44"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-109":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"82a0-40"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-110":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"82a0-46"},{"uid":"82a0-48"},{"uid":"82a0-50"},{"uid":"82a0-52"},{"uid":"82a0-54"},{"uid":"82a0-56"},{"uid":"82a0-58"},{"uid":"82a0-60"},{"uid":"82a0-62"},{"uid":"82a0-64"},{"uid":"82a0-68"},{"uid":"82a0-66"},{"uid":"82a0-42"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-111":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"82a0-72"}],"importedBy":[{"uid":"82a0-0"},{"uid":"82a0-50"}]},"82a0-112":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"82a0-70"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-113":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"82a0-4"},{"uid":"82a0-2"},{"uid":"82a0-6"},{"uid":"82a0-8"}],"importedBy":[{"uid":"82a0-0"}]},"82a0-114":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-12"},{"uid":"82a0-14"},{"uid":"82a0-16"},{"uid":"82a0-20"},{"uid":"82a0-18"},{"uid":"82a0-30"},{"uid":"82a0-24"},{"uid":"82a0-22"},{"uid":"82a0-32"},{"uid":"82a0-10"},{"uid":"82a0-34"},{"uid":"82a0-26"},{"uid":"82a0-28"},{"uid":"82a0-36"},{"uid":"82a0-38"},{"uid":"82a0-44"},{"uid":"82a0-40"},{"uid":"82a0-46"},{"uid":"82a0-48"},{"uid":"82a0-50"},{"uid":"82a0-52"},{"uid":"82a0-54"},{"uid":"82a0-56"},{"uid":"82a0-58"},{"uid":"82a0-60"},{"uid":"82a0-62"},{"uid":"82a0-64"},{"uid":"82a0-68"},{"uid":"82a0-66"},{"uid":"82a0-72"},{"uid":"82a0-70"},{"uid":"82a0-4"},{"uid":"82a0-2"},{"uid":"82a0-6"},{"uid":"82a0-8"},{"uid":"82a0-88"},{"uid":"82a0-84"},{"uid":"82a0-82"},{"uid":"82a0-90"},{"uid":"82a0-86"},{"uid":"82a0-76"}],"isExternal":true},"82a0-115":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-12"},{"uid":"82a0-16"},{"uid":"82a0-20"},{"uid":"82a0-18"},{"uid":"82a0-44"},{"uid":"82a0-52"}],"isExternal":true},"82a0-116":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-12"},{"uid":"82a0-14"},{"uid":"82a0-16"},{"uid":"82a0-20"},{"uid":"82a0-18"},{"uid":"82a0-30"},{"uid":"82a0-24"},{"uid":"82a0-32"},{"uid":"82a0-10"},{"uid":"82a0-34"},{"uid":"82a0-26"},{"uid":"82a0-36"},{"uid":"82a0-38"},{"uid":"82a0-44"},{"uid":"82a0-40"},{"uid":"82a0-46"},{"uid":"82a0-50"},{"uid":"82a0-54"},{"uid":"82a0-56"},{"uid":"82a0-58"},{"uid":"82a0-62"},{"uid":"82a0-64"},{"uid":"82a0-66"},{"uid":"82a0-72"},{"uid":"82a0-70"},{"uid":"82a0-4"},{"uid":"82a0-6"},{"uid":"82a0-8"},{"uid":"82a0-88"},{"uid":"82a0-84"},{"uid":"82a0-92"},{"uid":"82a0-90"},{"uid":"82a0-86"}],"isExternal":true},"82a0-117":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-12"},{"uid":"82a0-14"},{"uid":"82a0-16"},{"uid":"82a0-20"},{"uid":"82a0-18"},{"uid":"82a0-30"},{"uid":"82a0-22"},{"uid":"82a0-34"},{"uid":"82a0-36"},{"uid":"82a0-38"},{"uid":"82a0-44"},{"uid":"82a0-40"},{"uid":"82a0-46"},{"uid":"82a0-54"},{"uid":"82a0-62"},{"uid":"82a0-64"},{"uid":"82a0-68"},{"uid":"82a0-72"},{"uid":"82a0-70"},{"uid":"82a0-8"},{"uid":"82a0-90"}],"isExternal":true},"82a0-118":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"82a0-132"},{"uid":"82a0-78"}],"importedBy":[{"uid":"82a0-12"},{"uid":"82a0-16"},{"uid":"82a0-20"},{"uid":"82a0-18"}]},"82a0-119":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-14"},{"uid":"82a0-16"},{"uid":"82a0-18"}],"isExternal":true},"82a0-120":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-24"},{"uid":"82a0-22"},{"uid":"82a0-46"}],"isExternal":true},"82a0-121":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-22"}],"isExternal":true},"82a0-122":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-22"}],"isExternal":true},"82a0-123":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-10"},{"uid":"82a0-86"}],"isExternal":true},"82a0-124":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-10"}],"isExternal":true},"82a0-125":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-44"}],"isExternal":true},"82a0-126":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-44"}],"isExternal":true},"82a0-127":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-40"}],"isExternal":true},"82a0-128":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-46"}],"isExternal":true},"82a0-129":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-48"},{"uid":"82a0-60"},{"uid":"82a0-72"},{"uid":"82a0-70"},{"uid":"82a0-86"}],"isExternal":true},"82a0-130":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-72"},{"uid":"82a0-70"},{"uid":"82a0-86"}],"isExternal":true},"82a0-131":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-8"}],"isExternal":true},"82a0-132":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-118"}],"isExternal":true},"82a0-133":{"id":"eventemitter3","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-92"}],"isExternal":true},"82a0-134":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-90"}],"isExternal":true},"82a0-135":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"82a0-90"}],"isExternal":true}},"env":{"rollup":"2.79.2"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|
package/dist/stats.txt
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
-----------------------------
|
|
2
|
+
Rollup File Analysis
|
|
3
|
+
-----------------------------
|
|
4
|
+
bundle size: 50.241 KB
|
|
5
|
+
original size: 72.582 KB
|
|
6
|
+
code reduction: 30.78 %
|
|
7
|
+
module count: 48
|
|
8
|
+
|
|
9
|
+
/src/step/StepProvider.tsx
|
|
10
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.02 % (3.529 KB)
|
|
11
|
+
/src/date/LocalDatePicker/LocalDatePicker.tsx
|
|
12
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.29 % (3.161 KB)
|
|
13
|
+
/src/form/TForm/useTForm.tsx
|
|
14
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.83 % (2.93 KB)
|
|
15
|
+
/src/inputs/TableInput/TableInput.tsx
|
|
16
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.75 % (2.891 KB)
|
|
17
|
+
/src/inputs/Scriptel/scriptel/index.ts
|
|
18
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.04 % (2.53 KB)
|
|
19
|
+
/src/inputs/CreditCardInput/CreditCardInput.tsx
|
|
20
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.63 % (2.324 KB)
|
|
21
|
+
/src/money/useMoneyInput.ts
|
|
22
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.29 % (2.155 KB)
|
|
23
|
+
/src/date/MonthDayPicker/MonthDayPicker.tsx
|
|
24
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.91 % (1.965 KB)
|
|
25
|
+
/src/inputs/ScriptelInput/ScriptelInput.tsx
|
|
26
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.91 % (1.963 KB)
|
|
27
|
+
/src/inputs/CreditCardInput/CreditCardNumberInput.tsx
|
|
28
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.41 % (1.713 KB)
|
|
29
|
+
/src/date/LocalTimePicker/LocalTimePicker.tsx
|
|
30
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.23 % (1.624 KB)
|
|
31
|
+
/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx
|
|
32
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.13 % (1.575 KB)
|
|
33
|
+
/src/date/YearSelect/YearSelect.tsx
|
|
34
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.09 % (1.553 KB)
|
|
35
|
+
/src/inputs/MaskedInput/useMaskedInput.ts
|
|
36
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.96 % (1.487 KB)
|
|
37
|
+
/src/inputs/Scriptel/Scriptel.tsx
|
|
38
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.54 % (1.275 KB)
|
|
39
|
+
/src/date/MonthYearPicker/MonthYearPicker.tsx
|
|
40
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.45 % (1.229 KB)
|
|
41
|
+
/src/inputs/SinInput/SinInput.tsx
|
|
42
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.28 % (1.144 KB)
|
|
43
|
+
/src/date/LocalMonthSelect/LocalMonthSelect.tsx
|
|
44
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.26 % (1.135 KB)
|
|
45
|
+
/src/inputs/Scriptel/scriptel/enums.ts
|
|
46
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.87 % (937 Bytes)
|
|
47
|
+
/src/inputs/PhoneInput/PhoneInput.tsx
|
|
48
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.81 % (908 Bytes)
|
|
49
|
+
/src/inputs/TableInput/MoneyEditCell.tsx
|
|
50
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.63 % (820 Bytes)
|
|
51
|
+
/src/inputs/TableInput/NumberEditCell.tsx
|
|
52
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.56 % (782 Bytes)
|
|
53
|
+
/src/money/MoneyInput/MoneyInput.tsx
|
|
54
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.55 % (778 Bytes)
|
|
55
|
+
/src/inputs/TableInput/StringEditCell.tsx
|
|
56
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.43 % (717 Bytes)
|
|
57
|
+
/src/inputs/TableInput/CheckboxEditCell.tsx
|
|
58
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.4 % (702 Bytes)
|
|
59
|
+
/src/inputs/TableInput/LocalDateEditCell.tsx
|
|
60
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.38 % (695 Bytes)
|
|
61
|
+
/home/artemis/GitHub/thr-addons/node_modules/style-inject/dist/style-inject.es.js
|
|
62
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.27 % (636 Bytes)
|
|
63
|
+
/src/inputs/TableInput/LocalTimeEditCell.tsx
|
|
64
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.24 % (622 Bytes)
|
|
65
|
+
/src/form/TForm/TForm.tsx
|
|
66
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.19 % (600 Bytes)
|
|
67
|
+
/src/inputs/RadioGroup/RadioGroup.tsx
|
|
68
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.12 % (561 Bytes)
|
|
69
|
+
/src/date/DatePicker/styles.css
|
|
70
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.07 % (538 Bytes)
|
|
71
|
+
/src/inputs/MaskedInput/MaskedInput.tsx
|
|
72
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.02 % (513 Bytes)
|
|
73
|
+
/src/inputs/TableInput/DropdownCell.tsx
|
|
74
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.98 % (493 Bytes)
|
|
75
|
+
/src/step/FormStep.tsx
|
|
76
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.88 % (440 Bytes)
|
|
77
|
+
/src/date/LocalDatePicker/MaskedDateInput.tsx
|
|
78
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.85 % (426 Bytes)
|
|
79
|
+
/src/date/LocalTimePicker/MaskedTimeInput.tsx
|
|
80
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.84 % (424 Bytes)
|
|
81
|
+
/src/inputs/TableInput/MoneySumFooter.tsx
|
|
82
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.82 % (414 Bytes)
|
|
83
|
+
/src/inputs/TableInput/HoverCell.tsx
|
|
84
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.8 % (403 Bytes)
|
|
85
|
+
/src/inputs/TableInput/addRowOnTab.ts
|
|
86
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.62 % (312 Bytes)
|
|
87
|
+
/src/inputs/TableInput/LocalDateCell.tsx
|
|
88
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.57 % (285 Bytes)
|
|
89
|
+
/src/inputs/Scriptel/withScriptel.tsx
|
|
90
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.55 % (275 Bytes)
|
|
91
|
+
/src/inputs/TableInput/MoneyCell.tsx
|
|
92
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.51 % (257 Bytes)
|
|
93
|
+
/src/step/Step.tsx
|
|
94
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.4 % (203 Bytes)
|
|
95
|
+
/src/step/useStep.ts
|
|
96
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.22 % (113 Bytes)
|
|
97
|
+
/src/step/stepContext.ts
|
|
98
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.16 % (80 Bytes)
|
|
99
|
+
/src/inputs/CreditCardInput/styles.css
|
|
100
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.16 % (78 Bytes)
|
|
101
|
+
/src/inputs/Scriptel/ScriptelContext.ts
|
|
102
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.09 % (46 Bytes)
|
|
103
|
+
/src/index.ts
|
|
104
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0 % (0 Byte)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ScriptelPenStyle } from './scriptel/enums';
|
|
2
|
+
export interface ScriptelProps {
|
|
3
|
+
omniscriptUrl?: string;
|
|
4
|
+
imageType?: string;
|
|
5
|
+
scale?: number;
|
|
6
|
+
crop?: boolean;
|
|
7
|
+
penStyle?: ScriptelPenStyle;
|
|
8
|
+
children: JSX.Element | JSX.Element[];
|
|
9
|
+
}
|
|
10
|
+
export declare function Scriptel({ omniscriptUrl, imageType, scale, crop, penStyle, children }: ScriptelProps): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import type { ScriptelSocket } from './scriptel';
|
|
3
|
+
import type { RenderedImage } from './scriptel/messages';
|
|
4
|
+
export declare const ScriptelContext: import("react").Context<{
|
|
5
|
+
socket: MutableRefObject<ScriptelSocket | undefined>;
|
|
6
|
+
renderImage: RenderedImage | undefined;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
isSigning: boolean;
|
|
9
|
+
} | undefined>;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
export interface DeviceEndpoint {
|
|
2
|
+
protocolDriver: {
|
|
3
|
+
features: string[];
|
|
4
|
+
};
|
|
5
|
+
devHandle: {
|
|
6
|
+
productId: number;
|
|
7
|
+
vendorId: number;
|
|
8
|
+
manufacturer: string;
|
|
9
|
+
model: string;
|
|
10
|
+
path: string;
|
|
11
|
+
};
|
|
12
|
+
manufacturer: string;
|
|
13
|
+
path: string;
|
|
14
|
+
product: string;
|
|
15
|
+
productId: string;
|
|
16
|
+
uuid: string;
|
|
17
|
+
vendorId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface DisplayInfo {
|
|
20
|
+
captionLength: number;
|
|
21
|
+
characterHeight: number;
|
|
22
|
+
characterWidth: number;
|
|
23
|
+
colorDepth: number;
|
|
24
|
+
height: number;
|
|
25
|
+
regionCount: number;
|
|
26
|
+
width: number;
|
|
27
|
+
}
|
|
28
|
+
export interface SoftwareVersion {
|
|
29
|
+
asicSignature: number;
|
|
30
|
+
firmwareVersion: {
|
|
31
|
+
major: number;
|
|
32
|
+
minor: number;
|
|
33
|
+
release: number;
|
|
34
|
+
};
|
|
35
|
+
kernelVersion: {
|
|
36
|
+
major: number;
|
|
37
|
+
minor: number;
|
|
38
|
+
release: number;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface DisplaySettings {
|
|
42
|
+
blue: number;
|
|
43
|
+
brightness: number;
|
|
44
|
+
command: number;
|
|
45
|
+
contract: number;
|
|
46
|
+
green: number;
|
|
47
|
+
red: number;
|
|
48
|
+
}
|
|
49
|
+
export interface CalibrationMode {
|
|
50
|
+
calibrating: boolean;
|
|
51
|
+
calibrationPoint: string;
|
|
52
|
+
}
|
|
53
|
+
export interface RegionButtonFlags {
|
|
54
|
+
clearOnSelect: boolean;
|
|
55
|
+
confirmOnSelect: boolean;
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
highlightOnSelect: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface RegionButton {
|
|
60
|
+
caption: string;
|
|
61
|
+
flags: RegionButtonFlags;
|
|
62
|
+
parentContainer: number;
|
|
63
|
+
}
|
|
64
|
+
export interface RegionContainerFlags {
|
|
65
|
+
inkEnabled: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface RegionContainer {
|
|
68
|
+
flags: RegionContainerFlags;
|
|
69
|
+
}
|
|
70
|
+
export interface RegionLine {
|
|
71
|
+
lineWidth: number;
|
|
72
|
+
parentContainer: number;
|
|
73
|
+
}
|
|
74
|
+
export interface RegionFlags {
|
|
75
|
+
acceptsTouch: boolean;
|
|
76
|
+
decodeRegion: boolean;
|
|
77
|
+
hasFrame: boolean;
|
|
78
|
+
inUse: boolean;
|
|
79
|
+
visible: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface Region {
|
|
82
|
+
backgroundColor: number[];
|
|
83
|
+
buttonType?: RegionButton;
|
|
84
|
+
containerType?: RegionContainer;
|
|
85
|
+
flags: RegionFlags;
|
|
86
|
+
foregroundColor: number[];
|
|
87
|
+
id: number;
|
|
88
|
+
lineType?: RegionLine;
|
|
89
|
+
x1: number;
|
|
90
|
+
x2: number;
|
|
91
|
+
y1: number;
|
|
92
|
+
y2: number;
|
|
93
|
+
}
|
|
94
|
+
export interface ScreenErrorCorrection {
|
|
95
|
+
boundX1: number;
|
|
96
|
+
boundX2: number;
|
|
97
|
+
boundY1: number;
|
|
98
|
+
boundY2: number;
|
|
99
|
+
correctionMap: number[][];
|
|
100
|
+
valid: boolean;
|
|
101
|
+
xDelta: number;
|
|
102
|
+
xMin: number;
|
|
103
|
+
xOffset: number;
|
|
104
|
+
yDelta: number;
|
|
105
|
+
yMin: number;
|
|
106
|
+
yOffset: number;
|
|
107
|
+
}
|
|
108
|
+
export interface CoordinateRange {
|
|
109
|
+
xMin: number;
|
|
110
|
+
xMax: number;
|
|
111
|
+
yMin: number;
|
|
112
|
+
yMax: number;
|
|
113
|
+
}
|
|
114
|
+
export interface Capabilities {
|
|
115
|
+
displayId: string;
|
|
116
|
+
}
|
|
117
|
+
export interface OperatingMode {
|
|
118
|
+
touch: boolean;
|
|
119
|
+
pen: boolean;
|
|
120
|
+
autoTouch: boolean;
|
|
121
|
+
securePen: boolean;
|
|
122
|
+
secureAutoTouch: boolean;
|
|
123
|
+
command: boolean;
|
|
124
|
+
acquisitionMode: string;
|
|
125
|
+
touchMode: string;
|
|
126
|
+
penMode: string;
|
|
127
|
+
}
|
|
128
|
+
export interface ScriptelDevice {
|
|
129
|
+
uuid: string;
|
|
130
|
+
serialNumber: string;
|
|
131
|
+
model: string;
|
|
132
|
+
manufacturer: string;
|
|
133
|
+
vendorId: number;
|
|
134
|
+
productId: number;
|
|
135
|
+
calibrationMode: CalibrationMode;
|
|
136
|
+
displayInfo: DisplayInfo;
|
|
137
|
+
displaySettings: DisplaySettings;
|
|
138
|
+
errorCorrection: ScreenErrorCorrection;
|
|
139
|
+
regions: Region[];
|
|
140
|
+
softwareVersion: SoftwareVersion;
|
|
141
|
+
coordinateRange: CoordinateRange;
|
|
142
|
+
capabilities: Capabilities;
|
|
143
|
+
operatingMode: OperatingMode;
|
|
144
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum ScriptelPenStyle {
|
|
2
|
+
Plain = "PlainPenStyle",
|
|
3
|
+
Chisel = "ChiselPenStyle",
|
|
4
|
+
Inkwell = "InkwellPenStyle"
|
|
5
|
+
}
|
|
6
|
+
export declare enum ScriptelMessageClass {
|
|
7
|
+
ConnectionOpen = "ConnectionOpen",
|
|
8
|
+
DeviceOpenRequest = "DeviceOpenRequest",
|
|
9
|
+
DeviceOpenResponse = "DeviceOpenResponse",
|
|
10
|
+
RenderedImage = "RenderedImage",
|
|
11
|
+
ScriptelException = "ScriptelException",
|
|
12
|
+
ButtonDown = "ButtonDown",
|
|
13
|
+
ButtonPress = "ButtonPress",
|
|
14
|
+
PenMove = "PenMove",
|
|
15
|
+
PenUp = "PenUp"
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import EventEmitter from 'eventemitter3';
|
|
2
|
+
import { ScriptelPenStyle } from './enums';
|
|
3
|
+
export interface ScriptelSocketArgs {
|
|
4
|
+
omniscriptUrl?: string;
|
|
5
|
+
imageType?: string;
|
|
6
|
+
scale?: number;
|
|
7
|
+
crop?: boolean;
|
|
8
|
+
penStyle?: ScriptelPenStyle;
|
|
9
|
+
render?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare class ScriptelSocket extends EventEmitter {
|
|
12
|
+
private socket;
|
|
13
|
+
private options;
|
|
14
|
+
constructor(args: ScriptelSocketArgs);
|
|
15
|
+
calibrate(): void;
|
|
16
|
+
close(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { DeviceEndpoint, ScriptelDevice } from './classes';
|
|
2
|
+
import type { ScriptelMessageClass } from './enums';
|
|
3
|
+
export interface ConnectionOpen {
|
|
4
|
+
_class: ScriptelMessageClass.ConnectionOpen;
|
|
5
|
+
serverInfo: {
|
|
6
|
+
devices: DeviceEndpoint[];
|
|
7
|
+
hostname: string;
|
|
8
|
+
safe: boolean;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface DeviceOpenResponse {
|
|
12
|
+
_class: ScriptelMessageClass.DeviceOpenResponse;
|
|
13
|
+
device: ScriptelDevice;
|
|
14
|
+
}
|
|
15
|
+
export interface RenderedImage {
|
|
16
|
+
_class: ScriptelMessageClass.RenderedImage;
|
|
17
|
+
data: string;
|
|
18
|
+
height: number;
|
|
19
|
+
type: string;
|
|
20
|
+
width: number;
|
|
21
|
+
}
|
|
22
|
+
export interface ScriptelException {
|
|
23
|
+
_class: ScriptelMessageClass.ScriptelException;
|
|
24
|
+
message: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ButtonPress {
|
|
27
|
+
_class: ScriptelMessageClass.ButtonPress;
|
|
28
|
+
accept: boolean;
|
|
29
|
+
clear: boolean;
|
|
30
|
+
id: number;
|
|
31
|
+
label: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ButtonDown {
|
|
34
|
+
_class: ScriptelMessageClass.ButtonDown;
|
|
35
|
+
id: number;
|
|
36
|
+
label: string;
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
}
|
|
40
|
+
export interface PenMove {
|
|
41
|
+
_class: ScriptelMessageClass.PenMove;
|
|
42
|
+
time: number;
|
|
43
|
+
x: string;
|
|
44
|
+
y: string;
|
|
45
|
+
}
|
|
46
|
+
export interface PenUp {
|
|
47
|
+
_class: ScriptelMessageClass.PenUp;
|
|
48
|
+
time: number;
|
|
49
|
+
x: string;
|
|
50
|
+
y: string;
|
|
51
|
+
}
|
|
52
|
+
export type Message = ConnectionOpen | DeviceOpenResponse | RenderedImage | ScriptelException | ButtonPress | ButtonDown | PenMove | PenUp;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ScriptelProps } from './Scriptel';
|
|
2
|
+
/**
|
|
3
|
+
* A HoC that provides a connection to a Scriptel Omniscript device.
|
|
4
|
+
* You can only have a single connection open at a time.
|
|
5
|
+
* @param WrappedComponent
|
|
6
|
+
* @return {Object}
|
|
7
|
+
*/
|
|
8
|
+
export declare function withScriptel(WrappedComponent: any, scriptelProps: ScriptelProps): (props: any) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ScriptelSchemaType } from '@thx/yup-types';
|
|
2
|
+
export interface ScriptelInputProps {
|
|
3
|
+
value?: ScriptelSchemaType;
|
|
4
|
+
onChange?: (value?: ScriptelSchemaType) => void;
|
|
5
|
+
buttonText?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function ScriptelInput(props: ScriptelInputProps): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thx/controls",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.3.0",
|
|
4
4
|
"description": "A collection of components designed with SemanticUI.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/thr-consulting/thr-addons/issues"
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "9d79e1c749c02fe73699f06f9f68d38c682c219b"
|
|
66
66
|
}
|