@thx/controls 17.3.1-alpha.0 → 17.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/date/LocalDatePicker/LocalDatePicker.js.map +1 -1
- package/dist/esm/date/LocalDatePicker/MaskedDateInput.js.map +1 -1
- package/dist/esm/date/LocalMonthSelect/LocalMonthSelect.js.map +1 -1
- package/dist/esm/date/LocalTimePicker/MaskedTimeInput.js.map +1 -1
- package/dist/esm/date/MonthDayPicker/MonthDayPicker.js.map +1 -1
- package/dist/esm/date/MonthYearPicker/MonthYearPicker.js.map +1 -1
- package/dist/esm/date/YearSelect/YearSelect.js.map +1 -1
- package/dist/esm/form/TForm/TForm.js.map +1 -1
- package/dist/esm/form/TForm/useTForm.js.map +1 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/inputs/CreditCardInput/CreditCardInput.js.map +1 -1
- package/dist/esm/inputs/CreditCardInput/CreditCardNumberInput.js.map +1 -1
- package/dist/esm/inputs/MaskedInput/MaskedInput.js.map +1 -1
- package/dist/esm/inputs/PhoneInput/PhoneInput.js.map +1 -1
- package/dist/esm/inputs/RadioGroup/RadioGroup.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/esm/inputs/SinInput/SinInput.js.map +1 -1
- package/dist/esm/inputs/TableInput/CheckboxEditCell.js.map +1 -1
- package/dist/esm/inputs/TableInput/DropdownCell.js +1 -1
- package/dist/esm/inputs/TableInput/DropdownCell.js.map +1 -1
- package/dist/esm/inputs/TableInput/NumberEditCell.js.map +1 -1
- package/dist/esm/inputs/TableInput/StringEditCell.js.map +1 -1
- package/dist/esm/inputs/TableInput/TableInput.js.map +1 -1
- package/dist/esm/money/MoneyCurrencyInput/MoneyCurrencyInput.js.map +1 -1
- package/dist/esm/money/MoneyInput/MoneyInput.js.map +1 -1
- package/dist/esm/money/useMoneyInput.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/stats.txt +104 -0
- package/dist/types/date/LocalDatePicker/LocalDatePicker.d.ts +1 -1
- package/dist/types/date/LocalDatePicker/MaskedDateInput.d.ts +1 -1
- package/dist/types/date/LocalMonthSelect/LocalMonthSelect.d.ts +1 -1
- package/dist/types/date/LocalTimePicker/MaskedTimeInput.d.ts +1 -1
- package/dist/types/date/MonthDayPicker/MonthDayPicker.d.ts +1 -1
- package/dist/types/date/MonthYearPicker/MonthYearPicker.d.ts +1 -1
- package/dist/types/date/YearSelect/YearSelect.d.ts +1 -1
- package/dist/types/form/TForm/TForm.d.ts +1 -1
- package/dist/types/form/TForm/useTForm.d.ts +2 -2
- package/dist/types/inputs/CreditCardInput/CreditCardInput.d.ts +1 -1
- package/dist/types/inputs/CreditCardInput/CreditCardNumberInput.d.ts +1 -1
- package/dist/types/inputs/MaskedInput/MaskedInput.d.ts +1 -1
- package/dist/types/inputs/PhoneInput/PhoneInput.d.ts +1 -1
- package/dist/types/inputs/RadioGroup/RadioGroup.d.ts +1 -1
- 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/dist/types/inputs/TableInput/CheckboxEditCell.d.ts +1 -1
- package/dist/types/inputs/TableInput/NumberEditCell.d.ts +1 -1
- package/dist/types/inputs/TableInput/StringEditCell.d.ts +1 -1
- package/dist/types/inputs/TableInput/TableInput.d.ts +3 -3
- package/dist/types/money/MoneyCurrencyInput/MoneyCurrencyInput.d.ts +1 -1
- package/dist/types/money/MoneyInput/MoneyInput.d.ts +2 -2
- package/dist/types/money/useMoneyInput.d.ts +1 -1
- package/package.json +3 -3
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)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LocalDate } from '@js-joda/core';
|
|
2
2
|
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
3
|
-
import {
|
|
3
|
+
import { InputProps } from 'semantic-ui-react';
|
|
4
4
|
import '../DatePicker/styles.css';
|
|
5
5
|
interface ILocalDatePicker {
|
|
6
6
|
value?: LocalDate | number | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MaskedInputProps } from '../../inputs/MaskedInput';
|
|
2
2
|
import type { MaskedInputRef } from '../../inputs/MaskedInput/MaskedInput';
|
|
3
3
|
export type MaskedDateInputRef = MaskedInputRef;
|
|
4
4
|
export interface MaskedDateInputValue {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MaskedInputProps } from '../../inputs/MaskedInput';
|
|
2
2
|
import type { MaskedInputRef } from '../../inputs/MaskedInput/MaskedInput';
|
|
3
3
|
export type MaskedTimeInputRef = MaskedInputRef;
|
|
4
4
|
export interface MaskedTimeInputValue {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LocalDate } from '@js-joda/core';
|
|
2
2
|
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
3
|
-
import {
|
|
3
|
+
import { InputProps } from 'semantic-ui-react';
|
|
4
4
|
interface IMonthDayPickerProps {
|
|
5
5
|
value?: LocalDate | number | null;
|
|
6
6
|
onChange?: (value: LocalDate | null) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LocalDate } from '@js-joda/core';
|
|
2
2
|
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
3
|
-
import {
|
|
3
|
+
import { InputProps } from 'semantic-ui-react';
|
|
4
4
|
interface IMonthYearPickerProps {
|
|
5
5
|
value?: LocalDate | number | undefined;
|
|
6
6
|
onChange?: (value: LocalDate | undefined) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FormikValues, FormikErrors, FormikTouched } from 'formik';
|
|
2
|
+
import { FormEvent } from 'react';
|
|
3
3
|
import type { TFormConfig } from './types';
|
|
4
4
|
export declare function useTForm<Values extends FormikValues = FormikValues, InitialValues = any>(config: TFormConfig<Values, InitialValues>): {
|
|
5
5
|
hasErrors: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LocalDate } from '@js-joda/core';
|
|
2
2
|
import 'react-credit-cards/es/styles-compiled.css';
|
|
3
|
-
import {
|
|
3
|
+
import { InputProps } from 'semantic-ui-react';
|
|
4
4
|
import './styles.css';
|
|
5
5
|
export interface CreditCardData {
|
|
6
6
|
number?: string;
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CheckboxProps } from 'semantic-ui-react';
|
|
2
2
|
import type { TableCellProps } from './TableInput';
|
|
3
3
|
import type { AddRowOnTabIf } from './addRowOnTab';
|
|
4
4
|
interface CheckboxEditCellOptions<D extends Record<string, unknown>> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputProps } from 'semantic-ui-react';
|
|
2
2
|
import type { TableCellProps } from './TableInput';
|
|
3
3
|
import type { AddRowOnTabIf } from './addRowOnTab';
|
|
4
4
|
interface NumberEditCellOptions<D extends Record<number, unknown>> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputProps } from 'semantic-ui-react';
|
|
2
2
|
import type { TableCellProps } from './TableInput';
|
|
3
3
|
import type { AddRowOnTabIf } from './addRowOnTab';
|
|
4
4
|
interface StringEditCellOptions<D extends Record<string, unknown>> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { FieldArrayRenderProps } from 'formik';
|
|
2
|
+
import { CellPropGetter, CellProps, Column, FooterGroupPropGetter, FooterPropGetter, HeaderGroupPropGetter, HeaderPropGetter, RowPropGetter, TableBodyPropGetter } from 'react-table';
|
|
3
|
+
import { TableProps } from 'semantic-ui-react';
|
|
4
4
|
type DefaultTableType = Record<string, unknown>;
|
|
5
5
|
interface TableInputProps<A extends DefaultTableType> {
|
|
6
6
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Money, {
|
|
2
|
-
import {
|
|
1
|
+
import Money, { Currency, MoneyObject } from 'js-money';
|
|
2
|
+
import { InputProps } from 'semantic-ui-react';
|
|
3
3
|
export interface MoneyInputProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
onChange?: (value: Money) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thx/controls",
|
|
3
|
-
"version": "17.3.1
|
|
3
|
+
"version": "17.3.1",
|
|
4
4
|
"description": "A collection of components designed with SemanticUI.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/thr-consulting/thr-addons/issues"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@js-joda/core": "^5.1.0",
|
|
34
|
-
"@thx/date": "^17.3.1
|
|
34
|
+
"@thx/date": "^17.3.1",
|
|
35
35
|
"@thx/money": "^17.2.1",
|
|
36
36
|
"@types/inputmask": "^5.0.7",
|
|
37
37
|
"@types/react-datepicker": "^6.0.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "de24a4ff0e207da492e794dac2a9133f4d29eb44"
|
|
66
66
|
}
|