@redneckz/wildless-cms-uni-blocks 0.14.596 → 0.14.598
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/bundle/api/dadataHints/dadataHintsType.d.ts +20 -4
- package/bundle/api/dadataHints/hintsListsOptions.d.ts +2 -24
- package/bundle/bundle.umd.js +80 -25
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
- package/bundle/ui-kit/Input/InputPopup.d.ts +1 -1
- package/bundle/ui-kit/Input/InputProps.d.ts +3 -0
- package/bundle/ui-kit/Input/useInputPopup.d.ts +4 -1
- package/dist/api/dadataHints/dadataHints.js +15 -8
- package/dist/api/dadataHints/dadataHints.js.map +1 -1
- package/dist/api/dadataHints/dadataHintsType.d.ts +20 -4
- package/dist/api/dadataHints/hintsListsOptions.d.ts +2 -24
- package/dist/api/dadataHints/hintsListsOptions.js +31 -9
- package/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/dist/components/DepositFiltration/DepositFiltration.js +1 -1
- package/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/DulIssuedByField.js +16 -0
- package/dist/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +15 -0
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/InnField.js +8 -1
- package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js +8 -1
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/SexField.js +1 -3
- package/dist/ui-kit/FormField/Fields/SexField.js.map +1 -1
- package/dist/ui-kit/FormField/getField.js +4 -4
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/Input/InputControl.js +3 -1
- package/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/dist/ui-kit/Input/InputPopup.d.ts +1 -1
- package/dist/ui-kit/Input/InputPopup.js +1 -1
- package/dist/ui-kit/Input/InputPopup.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +3 -0
- package/dist/ui-kit/Input/useInputPopup.d.ts +4 -1
- package/dist/ui-kit/Input/useInputPopup.js +7 -4
- package/dist/ui-kit/Input/useInputPopup.js.map +1 -1
- package/lib/api/dadataHints/dadataHints.js +15 -8
- package/lib/api/dadataHints/dadataHints.js.map +1 -1
- package/lib/api/dadataHints/dadataHintsType.d.ts +20 -4
- package/lib/api/dadataHints/hintsListsOptions.d.ts +2 -24
- package/lib/api/dadataHints/hintsListsOptions.js +26 -4
- package/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/lib/components/DepositFiltration/DepositFiltration.js +1 -1
- package/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/DulIssuedByField.js +14 -0
- package/lib/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +13 -0
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/InnField.js +8 -1
- package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js +8 -1
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/SexField.js +1 -3
- package/lib/ui-kit/FormField/Fields/SexField.js.map +1 -1
- package/lib/ui-kit/FormField/getField.js +4 -4
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/Input/InputControl.js +3 -1
- package/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/lib/ui-kit/Input/InputPopup.d.ts +1 -1
- package/lib/ui-kit/Input/InputPopup.js +1 -1
- package/lib/ui-kit/Input/InputPopup.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +3 -0
- package/lib/ui-kit/Input/useInputPopup.d.ts +4 -1
- package/lib/ui-kit/Input/useInputPopup.js +7 -4
- package/lib/ui-kit/Input/useInputPopup.js.map +1 -1
- package/mobile/bundle/api/dadataHints/dadataHintsType.d.ts +20 -4
- package/mobile/bundle/api/dadataHints/hintsListsOptions.d.ts +2 -24
- package/mobile/bundle/bundle.umd.js +80 -25
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
- package/mobile/bundle/ui-kit/Input/InputPopup.d.ts +1 -1
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +3 -0
- package/mobile/bundle/ui-kit/Input/useInputPopup.d.ts +4 -1
- package/mobile/dist/api/dadataHints/dadataHints.js +15 -8
- package/mobile/dist/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/dist/api/dadataHints/dadataHintsType.d.ts +20 -4
- package/mobile/dist/api/dadataHints/hintsListsOptions.d.ts +2 -24
- package/mobile/dist/api/dadataHints/hintsListsOptions.js +31 -9
- package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/dist/components/DepositFiltration/DepositFiltration.js +1 -1
- package/mobile/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.js +16 -0
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +15 -0
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js +8 -1
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js +8 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/SexField.js +1 -3
- package/mobile/dist/ui-kit/FormField/Fields/SexField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +4 -4
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputControl.js +3 -1
- package/mobile/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputPopup.d.ts +1 -1
- package/mobile/dist/ui-kit/Input/InputPopup.js +1 -1
- package/mobile/dist/ui-kit/Input/InputPopup.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +3 -0
- package/mobile/dist/ui-kit/Input/useInputPopup.d.ts +4 -1
- package/mobile/dist/ui-kit/Input/useInputPopup.js +7 -4
- package/mobile/dist/ui-kit/Input/useInputPopup.js.map +1 -1
- package/mobile/lib/api/dadataHints/dadataHints.js +15 -8
- package/mobile/lib/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/lib/api/dadataHints/dadataHintsType.d.ts +20 -4
- package/mobile/lib/api/dadataHints/hintsListsOptions.d.ts +2 -24
- package/mobile/lib/api/dadataHints/hintsListsOptions.js +26 -4
- package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/lib/components/DepositFiltration/DepositFiltration.js +1 -1
- package/mobile/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.js +14 -0
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +13 -0
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js +8 -1
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js +8 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/SexField.js +1 -3
- package/mobile/lib/ui-kit/FormField/Fields/SexField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +4 -4
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputControl.js +3 -1
- package/mobile/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputPopup.d.ts +1 -1
- package/mobile/lib/ui-kit/Input/InputPopup.js +1 -1
- package/mobile/lib/ui-kit/Input/InputPopup.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +3 -0
- package/mobile/lib/ui-kit/Input/useInputPopup.d.ts +4 -1
- package/mobile/lib/ui-kit/Input/useInputPopup.js +7 -4
- package/mobile/lib/ui-kit/Input/useInputPopup.js.map +1 -1
- package/mobile/src/api/dadataHints/dadataHints.ts +27 -10
- package/mobile/src/api/dadataHints/dadataHintsType.ts +21 -4
- package/mobile/src/api/dadataHints/hintsListsOptions.ts +34 -4
- package/mobile/src/components/DepositFiltration/DepositFiltration.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/DulIssuedByField.tsx +26 -0
- package/mobile/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +27 -0
- package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +18 -7
- package/mobile/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +17 -7
- package/mobile/src/ui-kit/FormField/Fields/SexField.tsx +8 -12
- package/mobile/src/ui-kit/FormField/getField.tsx +4 -4
- package/mobile/src/ui-kit/Input/InputControl.tsx +4 -0
- package/mobile/src/ui-kit/Input/InputPopup.tsx +2 -2
- package/mobile/src/ui-kit/Input/InputProps.ts +3 -0
- package/mobile/src/ui-kit/Input/useInputPopup.tsx +17 -5
- package/package.json +1 -1
- package/src/api/dadataHints/dadataHints.ts +27 -10
- package/src/api/dadataHints/dadataHintsType.ts +21 -4
- package/src/api/dadataHints/hintsListsOptions.ts +34 -4
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +10 -15
- package/src/components/DepositFiltration/DepositFiltration.tsx +1 -1
- package/src/ui-kit/FormField/Fields/DulIssuedByField.tsx +26 -0
- package/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +27 -0
- package/src/ui-kit/FormField/Fields/InnField.tsx +18 -7
- package/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +17 -7
- package/src/ui-kit/FormField/Fields/SexField.tsx +8 -12
- package/src/ui-kit/FormField/getField.tsx +4 -4
- package/src/ui-kit/Input/InputControl.tsx +4 -0
- package/src/ui-kit/Input/InputPopup.tsx +2 -2
- package/src/ui-kit/Input/InputProps.ts +3 -0
- package/src/ui-kit/Input/useInputPopup.tsx +17 -5
- package/bundle/ui-kit/FormField/Fields/DulIssuedBy.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/DulSubdivisionCode.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/DulIssuedBy.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/DulIssuedBy.js +0 -9
- package/dist/ui-kit/FormField/Fields/DulIssuedBy.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCode.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCode.js +0 -9
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCode.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/DulIssuedBy.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/DulIssuedBy.js +0 -7
- package/lib/ui-kit/FormField/Fields/DulIssuedBy.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCode.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCode.js +0 -7
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCode.js.map +0 -1
- package/mobile/bundle/ui-kit/FormField/Fields/DulIssuedBy.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/DulSubdivisionCode.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedBy.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedBy.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedBy.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCode.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCode.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCode.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedBy.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedBy.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedBy.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCode.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCode.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCode.js.map +0 -1
- package/mobile/src/ui-kit/FormField/Fields/DulIssuedBy.tsx +0 -12
- package/mobile/src/ui-kit/FormField/Fields/DulSubdivisionCode.tsx +0 -17
- package/src/ui-kit/FormField/Fields/DulIssuedBy.tsx +0 -12
- package/src/ui-kit/FormField/Fields/DulSubdivisionCode.tsx +0 -17
|
@@ -23,12 +23,7 @@ export default {
|
|
|
23
23
|
{
|
|
24
24
|
columns: 2,
|
|
25
25
|
inputs: [
|
|
26
|
-
{
|
|
27
|
-
fieldType: 'common',
|
|
28
|
-
name: 'participantAddress',
|
|
29
|
-
required: true,
|
|
30
|
-
dadata: true,
|
|
31
|
-
},
|
|
26
|
+
{ fieldType: 'common', name: 'surname', required: true, dadata: true },
|
|
32
27
|
{ fieldType: 'common', name: 'name', required: true, dadata: true },
|
|
33
28
|
{ fieldType: 'common', name: 'middleName', dadata: true },
|
|
34
29
|
{ fieldType: 'common', name: 'birthday', required: true },
|
|
@@ -66,14 +61,14 @@ export default {
|
|
|
66
61
|
{
|
|
67
62
|
columns: 2,
|
|
68
63
|
inputs: [
|
|
69
|
-
{ fieldType: 'common', name: '
|
|
70
|
-
{ fieldType: 'common', name: 'name', required: true },
|
|
71
|
-
{ fieldType: 'common', name: 'middleName' },
|
|
64
|
+
{ fieldType: 'common', name: 'surname', required: true, dadata: true },
|
|
65
|
+
{ fieldType: 'common', name: 'name', required: true, dadata: true },
|
|
66
|
+
{ fieldType: 'common', name: 'middleName', dadata: true },
|
|
72
67
|
{ fieldType: 'common', name: 'sex', required: true },
|
|
73
68
|
{ fieldType: 'common', name: 'birthday', required: true },
|
|
74
69
|
{ fieldType: 'common', name: 'birthPlace', required: true },
|
|
75
70
|
{ fieldType: 'common', name: 'phone', required: true },
|
|
76
|
-
{ fieldType: 'common', name: 'email', required: true },
|
|
71
|
+
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
77
72
|
],
|
|
78
73
|
},
|
|
79
74
|
{
|
|
@@ -82,12 +77,12 @@ export default {
|
|
|
82
77
|
{ fieldType: 'common', name: 'dulSerie', required: true },
|
|
83
78
|
{ fieldType: 'common', name: 'dulNumber', required: true },
|
|
84
79
|
{ fieldType: 'common', name: 'dulIssueDateField', required: true },
|
|
85
|
-
{ fieldType: 'common', name: 'dulSubdivisionCode', required: true },
|
|
80
|
+
{ fieldType: 'common', name: 'dulSubdivisionCode', required: true, dadata: true },
|
|
86
81
|
],
|
|
87
82
|
},
|
|
88
83
|
{
|
|
89
84
|
inputs: [
|
|
90
|
-
{ fieldType: 'common', name: 'dulIssuedBy', required: true },
|
|
85
|
+
{ fieldType: 'common', name: 'dulIssuedBy', required: true, dadata: true },
|
|
91
86
|
{
|
|
92
87
|
fieldType: 'common',
|
|
93
88
|
name: 'education',
|
|
@@ -102,7 +97,7 @@ export default {
|
|
|
102
97
|
{
|
|
103
98
|
inputs: [
|
|
104
99
|
{ fieldType: 'common', name: 'participantDateRegistration', required: true },
|
|
105
|
-
{ fieldType: 'common', name: 'participantAddress', required: true },
|
|
100
|
+
{ fieldType: 'common', name: 'participantAddress', required: true, dadata: true },
|
|
106
101
|
],
|
|
107
102
|
},
|
|
108
103
|
]}
|
|
@@ -127,13 +122,13 @@ export default {
|
|
|
127
122
|
{
|
|
128
123
|
inputs: [
|
|
129
124
|
{ fieldType: 'common', name: 'employment', required: true },
|
|
130
|
-
{ fieldType: 'common', name: 'organizationName', required: true },
|
|
125
|
+
{ fieldType: 'common', name: 'organizationName', required: true, dadata: true },
|
|
131
126
|
],
|
|
132
127
|
},
|
|
133
128
|
{
|
|
134
129
|
columns: 2,
|
|
135
130
|
inputs: [
|
|
136
|
-
{ fieldType: 'common', name: 'inn', required: true },
|
|
131
|
+
{ fieldType: 'common', name: 'inn', required: true, dadata: true },
|
|
137
132
|
{ fieldType: 'common', name: 'legalForm', required: true },
|
|
138
133
|
],
|
|
139
134
|
},
|
|
@@ -37,7 +37,7 @@ export const DepositFiltration = UniBlock<DepositFiltrationProps>(
|
|
|
37
37
|
normalize: (content) => ({ ...content, period: getPeriod(content) }),
|
|
38
38
|
},
|
|
39
39
|
);
|
|
40
|
-
const rateRows = blocksWithProps.map(([, _]) => _?.paramsSource?.
|
|
40
|
+
const rateRows = blocksWithProps.map(([, _]) => _?.paramsSource?.rows?.[0]?.rates);
|
|
41
41
|
const months = getMonths(rateRows as Partial<RateRow>[]);
|
|
42
42
|
|
|
43
43
|
return (
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { type DaDataSuggestion } from '../../../api/dadataHints/dadataHintsType';
|
|
4
|
+
import { InputControl } from '../../Input/InputControl';
|
|
5
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
6
|
+
import { validatorObj } from '../getObjectValidator';
|
|
7
|
+
import { getValidation } from '../getValidation';
|
|
8
|
+
|
|
9
|
+
export const DulIssuedByField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
10
|
+
const { value: dulSubdivisionCode, onChange: changeDulSubdivisionCode } =
|
|
11
|
+
field('dulSubdivisionCode');
|
|
12
|
+
|
|
13
|
+
const onDaDataChange = useCallback((item: DaDataSuggestion) => {
|
|
14
|
+
changeDulSubdivisionCode?.(item?.data?.code?.replace('-', ''));
|
|
15
|
+
}, []);
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<InputControl
|
|
19
|
+
label="Кем выдан"
|
|
20
|
+
{...input}
|
|
21
|
+
{...getValidation(field('dulIssuedBy'), validatorObj.dulIssuedBy, input?.required)}
|
|
22
|
+
onDaDataChange={onDaDataChange}
|
|
23
|
+
daDataQueryPrefix={dulSubdivisionCode}
|
|
24
|
+
/>
|
|
25
|
+
);
|
|
26
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { type DaDataSuggestion } from '../../../api/dadataHints/dadataHintsType';
|
|
4
|
+
import { InputControl } from '../../Input/InputControl';
|
|
5
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
6
|
+
import { validatorObj } from '../getObjectValidator';
|
|
7
|
+
import { getValidation } from '../getValidation';
|
|
8
|
+
|
|
9
|
+
export const DulSubdivisionCodeField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
10
|
+
const onDaDataChange = useCallback((item: DaDataSuggestion) => {
|
|
11
|
+
field?.('dulIssuedBy')?.onChange?.(item?.data?.name);
|
|
12
|
+
}, []);
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<InputControl
|
|
16
|
+
label="Код подразделения"
|
|
17
|
+
type="number"
|
|
18
|
+
{...input}
|
|
19
|
+
{...getValidation(
|
|
20
|
+
field('dulSubdivisionCode'),
|
|
21
|
+
validatorObj.dulSubdivisionCode,
|
|
22
|
+
input?.required,
|
|
23
|
+
)}
|
|
24
|
+
onDaDataChange={onDaDataChange}
|
|
25
|
+
/>
|
|
26
|
+
);
|
|
27
|
+
});
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { type DaDataSuggestion } from '../../../api/dadataHints/dadataHintsType';
|
|
2
4
|
import { InputControl } from '../../Input/InputControl';
|
|
3
5
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
6
|
import { validatorObj } from '../getObjectValidator';
|
|
5
7
|
import { getValidation } from '../getValidation';
|
|
6
8
|
|
|
7
|
-
export const InnField = JSX<CustomFieldProps>(({ field, input }) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
export const InnField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
10
|
+
const onDaDataChange = useCallback((item: DaDataSuggestion) => {
|
|
11
|
+
field?.('organizationName')?.onChange?.(item.data?.name?.short_with_opf);
|
|
12
|
+
field?.('legalForm')?.onChange?.(item.data?.opf?.short);
|
|
13
|
+
}, []);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<InputControl
|
|
17
|
+
label="ИНН"
|
|
18
|
+
type="number"
|
|
19
|
+
{...input}
|
|
20
|
+
{...getValidation(field('inn'), validatorObj.inn, input?.required)}
|
|
21
|
+
onDaDataChange={onDaDataChange}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
});
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { type DaDataSuggestion } from '../../../api/dadataHints/dadataHintsType';
|
|
2
4
|
import { InputControl } from '../../Input/InputControl';
|
|
3
5
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
6
|
import { validatorObj } from '../getObjectValidator';
|
|
5
7
|
import { getValidation } from '../getValidation';
|
|
6
8
|
|
|
7
|
-
export const OrganizationNameField = JSX<CustomFieldProps>(({ field, input }) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
export const OrganizationNameField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
10
|
+
const onDaDataChange = useCallback((item: DaDataSuggestion) => {
|
|
11
|
+
field?.('inn')?.onChange?.(item.data?.inn);
|
|
12
|
+
field?.('legalForm')?.onChange?.(item.data?.opf?.short);
|
|
13
|
+
}, []);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<InputControl
|
|
17
|
+
label="Наименование организации"
|
|
18
|
+
{...input}
|
|
19
|
+
{...getValidation(field('organizationName'), validatorObj.organizationName, input?.required)}
|
|
20
|
+
onDaDataChange={onDaDataChange}
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
23
|
+
});
|
|
@@ -10,15 +10,11 @@ export const SEX_TYPES: RadioButtonItem[] = [
|
|
|
10
10
|
{ id: 'female', text: 'Женский' },
|
|
11
11
|
];
|
|
12
12
|
|
|
13
|
-
export const SexField = JSX<CustomFieldProps>(({ field, input }) =>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/>
|
|
22
|
-
</div>
|
|
23
|
-
);
|
|
24
|
-
});
|
|
13
|
+
export const SexField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
14
|
+
<RadioButtonGroupControl
|
|
15
|
+
label="Пол"
|
|
16
|
+
orientation="horizontal"
|
|
17
|
+
items={SEX_TYPES}
|
|
18
|
+
{...getValidation(field('sex'), validatorObj.sex, input?.required)}
|
|
19
|
+
/>
|
|
20
|
+
));
|
|
@@ -26,10 +26,10 @@ import { ConsentToReceiveMaterialsField } from './Fields/ConsentToReceiveMateria
|
|
|
26
26
|
import { DependentsField } from './Fields/DependentsField';
|
|
27
27
|
import { DesiredMeetingDateField } from './Fields/DesiredMeetingDateField';
|
|
28
28
|
import { DulIssueDateField } from './Fields/DulIssueDateField';
|
|
29
|
-
import {
|
|
29
|
+
import { DulIssuedByField } from './Fields/DulIssuedByField';
|
|
30
30
|
import { DulNumberField } from './Fields/DulNumberField';
|
|
31
31
|
import { DulSerieField } from './Fields/DulSerieField';
|
|
32
|
-
import {
|
|
32
|
+
import { DulSubdivisionCodeField } from './Fields/DulSubdivisionCodeField';
|
|
33
33
|
import { EducationField } from './Fields/EducationField';
|
|
34
34
|
import { EmailField } from './Fields/EmailField';
|
|
35
35
|
import { EmployerActivitiesField } from './Fields/EmployerActivitiesField';
|
|
@@ -163,8 +163,8 @@ export const getField =
|
|
|
163
163
|
dulSerie: <DulSerieField field={field} input={input} />,
|
|
164
164
|
dulNumber: <DulNumberField field={field} input={input} />,
|
|
165
165
|
dulIssueDateField: <DulIssueDateField field={field} input={input} />,
|
|
166
|
-
dulSubdivisionCode: <
|
|
167
|
-
dulIssuedBy: <
|
|
166
|
+
dulSubdivisionCode: <DulSubdivisionCodeField field={field} input={input} />,
|
|
167
|
+
dulIssuedBy: <DulIssuedByField field={field} input={input} />,
|
|
168
168
|
participantAddress: <ParticipantAddressField field={field} input={input} />,
|
|
169
169
|
participantDateRegistration: <ParticipantDateRegistrationField field={field} input={input} />,
|
|
170
170
|
};
|
|
@@ -18,10 +18,12 @@ export const InputControl = JSX<InputProps>(
|
|
|
18
18
|
error,
|
|
19
19
|
errors,
|
|
20
20
|
onChange = noop,
|
|
21
|
+
onDaDataChange,
|
|
21
22
|
onBlur,
|
|
22
23
|
isTextarea,
|
|
23
24
|
type,
|
|
24
25
|
name = '',
|
|
26
|
+
daDataQueryPrefix,
|
|
25
27
|
dadata = false,
|
|
26
28
|
}) => {
|
|
27
29
|
const [isOpen, { setFalse: close, setTrue: open }] = useBool();
|
|
@@ -31,7 +33,9 @@ export const InputControl = JSX<InputProps>(
|
|
|
31
33
|
isOpen: isOpen && dadata,
|
|
32
34
|
name,
|
|
33
35
|
value,
|
|
36
|
+
daDataQueryPrefix,
|
|
34
37
|
onChange,
|
|
38
|
+
onDaDataChange,
|
|
35
39
|
});
|
|
36
40
|
|
|
37
41
|
return (
|
|
@@ -3,7 +3,7 @@ import { type DaDataSuggestion } from '../../api/dadataHints/dadataHintsType';
|
|
|
3
3
|
|
|
4
4
|
export interface InputPopupProps {
|
|
5
5
|
options?: Array<DaDataSuggestion>;
|
|
6
|
-
onChange: (e:
|
|
6
|
+
onChange: (e: DaDataSuggestion) => void;
|
|
7
7
|
value?: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ export const InputPopup = JSX<InputPopupProps>(({ options, onChange }) => (
|
|
|
17
17
|
key={key.toString()}
|
|
18
18
|
className="flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative"
|
|
19
19
|
role="listitem"
|
|
20
|
-
onMouseDown={() => onChange(item
|
|
20
|
+
onMouseDown={() => onChange(item)}
|
|
21
21
|
>
|
|
22
22
|
<span className="min-h-6">{item.processedValue}</span>
|
|
23
23
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type DefaultControlType } from '../../model/DefaultControlType';
|
|
2
|
+
import { type DaDataSuggestion } from '../../api/dadataHints/dadataHintsType';
|
|
2
3
|
import { type InputTypes } from '../../model/InputTypes';
|
|
3
4
|
import { type ControlProps } from '../ControlProps';
|
|
4
5
|
import { type PreventableEventWithTarget } from '../PreventableEvent';
|
|
@@ -10,6 +11,8 @@ export interface InputProps<V = string> extends DefaultControlType, ControlProps
|
|
|
10
11
|
pattern?: string;
|
|
11
12
|
onFocus?: (ev: PreventableEventWithTarget) => void;
|
|
12
13
|
onBlur?: (ev?: PreventableEventWithTarget) => void;
|
|
14
|
+
onDaDataChange?: (ev: DaDataSuggestion) => void;
|
|
15
|
+
daDataQueryPrefix?: string;
|
|
13
16
|
valid?: boolean;
|
|
14
17
|
disabled?: boolean;
|
|
15
18
|
autoFocus?: boolean;
|
|
@@ -10,10 +10,19 @@ interface InputPopupOptions {
|
|
|
10
10
|
isOpen?: boolean;
|
|
11
11
|
name: string;
|
|
12
12
|
value?: string;
|
|
13
|
+
daDataQueryPrefix?: string;
|
|
13
14
|
onChange: (e: string) => void;
|
|
15
|
+
onDaDataChange?: (e: DaDataSuggestion) => void;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
export function useInputPopup({
|
|
18
|
+
export function useInputPopup({
|
|
19
|
+
isOpen,
|
|
20
|
+
value,
|
|
21
|
+
name,
|
|
22
|
+
onChange,
|
|
23
|
+
onDaDataChange,
|
|
24
|
+
daDataQueryPrefix,
|
|
25
|
+
}: InputPopupOptions) {
|
|
17
26
|
const prevInputValue = useRef(value);
|
|
18
27
|
const currentInputValue = useRef(value);
|
|
19
28
|
const [hintsList, setHintsList] = useState<Array<DaDataSuggestion>>([]);
|
|
@@ -27,10 +36,11 @@ export function useInputPopup({ isOpen, value, name, onChange }: InputPopupOptio
|
|
|
27
36
|
}, [value]);
|
|
28
37
|
|
|
29
38
|
const handleChange = useCallback(
|
|
30
|
-
(option:
|
|
39
|
+
(option: DaDataSuggestion) => {
|
|
31
40
|
close();
|
|
32
|
-
currentInputValue.current = option;
|
|
33
|
-
onChange && onChange(option);
|
|
41
|
+
currentInputValue.current = option.processedValue;
|
|
42
|
+
onChange && onChange(option.processedValue);
|
|
43
|
+
onDaDataChange && onDaDataChange(option);
|
|
34
44
|
},
|
|
35
45
|
[close, onChange],
|
|
36
46
|
);
|
|
@@ -44,16 +54,18 @@ export function useInputPopup({ isOpen, value, name, onChange }: InputPopupOptio
|
|
|
44
54
|
}
|
|
45
55
|
const result = await getDaDataHints({
|
|
46
56
|
url: defaultHintsListOptions.url,
|
|
57
|
+
responseItemHandler: defaultHintsListOptions.responseItemHandler,
|
|
47
58
|
requestData: {
|
|
48
59
|
...defaultHintsListOptions?.requestData,
|
|
49
60
|
},
|
|
50
61
|
query: searchValue,
|
|
62
|
+
queryPrefix: daDataQueryPrefix,
|
|
51
63
|
});
|
|
52
64
|
if (result?.length) {
|
|
53
65
|
setHintsList(result);
|
|
54
66
|
}
|
|
55
67
|
},
|
|
56
|
-
[],
|
|
68
|
+
[daDataQueryPrefix],
|
|
57
69
|
);
|
|
58
70
|
|
|
59
71
|
const debouncedGetHintsList = useMemo(() => debounce(getHintsList, 300), [getHintsList]);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.DulIssuedBy = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const InputControl_1 = require("../../Input/InputControl");
|
|
6
|
-
const getObjectValidator_1 = require("../getObjectValidator");
|
|
7
|
-
const getValidation_1 = require("../getValidation");
|
|
8
|
-
exports.DulIssuedBy = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...(0, getValidation_1.getValidation)(field('dulIssuedBy'), getObjectValidator_1.validatorObj.dulIssuedBy, input?.required) })));
|
|
9
|
-
//# sourceMappingURL=DulIssuedBy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DulIssuedBy.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/DulIssuedBy.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAExD,8DAAqD;AACrD,oDAAiD;AAEpC,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACrE,uBAAC,2BAAY,IACX,KAAK,EAAC,mDAAW,KACb,IAAA,6BAAa,EAAC,KAAK,CAAC,aAAa,CAAC,EAAE,iCAAY,CAAC,WAAW,EAAE,KAAK,EAAE,QAAQ,CAAC,GAClF,CACH,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.DulSubdivisionCode = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const InputControl_1 = require("../../Input/InputControl");
|
|
6
|
-
const getObjectValidator_1 = require("../getObjectValidator");
|
|
7
|
-
const getValidation_1 = require("../getValidation");
|
|
8
|
-
exports.DulSubdivisionCode = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F", type: "number", ...(0, getValidation_1.getValidation)(field('dulSubdivisionCode'), getObjectValidator_1.validatorObj.dulSubdivisionCode, input?.required) })));
|
|
9
|
-
//# sourceMappingURL=DulSubdivisionCode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DulSubdivisionCode.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/DulSubdivisionCode.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAExD,8DAAqD;AACrD,oDAAiD;AAEpC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC5E,uBAAC,2BAAY,IACX,KAAK,EAAC,mGAAmB,EACzB,IAAI,EAAC,QAAQ,KACT,IAAA,6BAAa,EACf,KAAK,CAAC,oBAAoB,CAAC,EAC3B,iCAAY,CAAC,kBAAkB,EAC/B,KAAK,EAAE,QAAQ,CAChB,GACD,CACH,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { InputControl } from '../../Input/InputControl.js';
|
|
4
|
-
import { validatorObj } from '../getObjectValidator.js';
|
|
5
|
-
import { getValidation } from '../getValidation.js';
|
|
6
|
-
export const DulIssuedBy = JSX(({ field, input }) => (_jsx(InputControl, { label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...getValidation(field('dulIssuedBy'), validatorObj.dulIssuedBy, input?.required) })));
|
|
7
|
-
//# sourceMappingURL=DulIssuedBy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DulIssuedBy.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/DulIssuedBy.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACrE,KAAC,YAAY,IACX,KAAK,EAAC,mDAAW,KACb,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,YAAY,CAAC,WAAW,EAAE,KAAK,EAAE,QAAQ,CAAC,GAClF,CACH,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { InputControl } from '../../Input/InputControl.js';
|
|
4
|
-
import { validatorObj } from '../getObjectValidator.js';
|
|
5
|
-
import { getValidation } from '../getValidation.js';
|
|
6
|
-
export const DulSubdivisionCode = JSX(({ field, input }) => (_jsx(InputControl, { label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F", type: "number", ...getValidation(field('dulSubdivisionCode'), validatorObj.dulSubdivisionCode, input?.required) })));
|
|
7
|
-
//# sourceMappingURL=DulSubdivisionCode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DulSubdivisionCode.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/DulSubdivisionCode.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC5E,KAAC,YAAY,IACX,KAAK,EAAC,mGAAmB,EACzB,IAAI,EAAC,QAAQ,KACT,aAAa,CACf,KAAK,CAAC,oBAAoB,CAAC,EAC3B,YAAY,CAAC,kBAAkB,EAC/B,KAAK,EAAE,QAAQ,CAChB,GACD,CACH,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.DulIssuedBy = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const InputControl_1 = require("../../Input/InputControl");
|
|
6
|
-
const getObjectValidator_1 = require("../getObjectValidator");
|
|
7
|
-
const getValidation_1 = require("../getValidation");
|
|
8
|
-
exports.DulIssuedBy = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...(0, getValidation_1.getValidation)(field('dulIssuedBy'), getObjectValidator_1.validatorObj.dulIssuedBy, input?.required) })));
|
|
9
|
-
//# sourceMappingURL=DulIssuedBy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DulIssuedBy.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/DulIssuedBy.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAExD,8DAAqD;AACrD,oDAAiD;AAEpC,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACrE,uBAAC,2BAAY,IACX,KAAK,EAAC,mDAAW,KACb,IAAA,6BAAa,EAAC,KAAK,CAAC,aAAa,CAAC,EAAE,iCAAY,CAAC,WAAW,EAAE,KAAK,EAAE,QAAQ,CAAC,GAClF,CACH,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.DulSubdivisionCode = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const InputControl_1 = require("../../Input/InputControl");
|
|
6
|
-
const getObjectValidator_1 = require("../getObjectValidator");
|
|
7
|
-
const getValidation_1 = require("../getValidation");
|
|
8
|
-
exports.DulSubdivisionCode = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F", type: "number", ...(0, getValidation_1.getValidation)(field('dulSubdivisionCode'), getObjectValidator_1.validatorObj.dulSubdivisionCode, input?.required) })));
|
|
9
|
-
//# sourceMappingURL=DulSubdivisionCode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DulSubdivisionCode.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/DulSubdivisionCode.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAExD,8DAAqD;AACrD,oDAAiD;AAEpC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC5E,uBAAC,2BAAY,IACX,KAAK,EAAC,mGAAmB,EACzB,IAAI,EAAC,QAAQ,KACT,IAAA,6BAAa,EACf,KAAK,CAAC,oBAAoB,CAAC,EAC3B,iCAAY,CAAC,kBAAkB,EAC/B,KAAK,EAAE,QAAQ,CAChB,GACD,CACH,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { InputControl } from '../../Input/InputControl.js';
|
|
4
|
-
import { validatorObj } from '../getObjectValidator.js';
|
|
5
|
-
import { getValidation } from '../getValidation.js';
|
|
6
|
-
export const DulIssuedBy = JSX(({ field, input }) => (_jsx(InputControl, { label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...getValidation(field('dulIssuedBy'), validatorObj.dulIssuedBy, input?.required) })));
|
|
7
|
-
//# sourceMappingURL=DulIssuedBy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DulIssuedBy.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/DulIssuedBy.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACrE,KAAC,YAAY,IACX,KAAK,EAAC,mDAAW,KACb,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,YAAY,CAAC,WAAW,EAAE,KAAK,EAAE,QAAQ,CAAC,GAClF,CACH,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { InputControl } from '../../Input/InputControl.js';
|
|
4
|
-
import { validatorObj } from '../getObjectValidator.js';
|
|
5
|
-
import { getValidation } from '../getValidation.js';
|
|
6
|
-
export const DulSubdivisionCode = JSX(({ field, input }) => (_jsx(InputControl, { label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F", type: "number", ...getValidation(field('dulSubdivisionCode'), validatorObj.dulSubdivisionCode, input?.required) })));
|
|
7
|
-
//# sourceMappingURL=DulSubdivisionCode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DulSubdivisionCode.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/DulSubdivisionCode.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC5E,KAAC,YAAY,IACX,KAAK,EAAC,mGAAmB,EACzB,IAAI,EAAC,QAAQ,KACT,aAAa,CACf,KAAK,CAAC,oBAAoB,CAAC,EAC3B,YAAY,CAAC,kBAAkB,EAC/B,KAAK,EAAE,QAAQ,CAChB,GACD,CACH,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { InputControl } from '../../Input/InputControl';
|
|
3
|
-
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
-
import { validatorObj } from '../getObjectValidator';
|
|
5
|
-
import { getValidation } from '../getValidation';
|
|
6
|
-
|
|
7
|
-
export const DulIssuedBy = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
-
<InputControl
|
|
9
|
-
label="Кем выдан"
|
|
10
|
-
{...getValidation(field('dulIssuedBy'), validatorObj.dulIssuedBy, input?.required)}
|
|
11
|
-
/>
|
|
12
|
-
));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { InputControl } from '../../Input/InputControl';
|
|
3
|
-
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
-
import { validatorObj } from '../getObjectValidator';
|
|
5
|
-
import { getValidation } from '../getValidation';
|
|
6
|
-
|
|
7
|
-
export const DulSubdivisionCode = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
-
<InputControl
|
|
9
|
-
label="Код подразделения"
|
|
10
|
-
type="number"
|
|
11
|
-
{...getValidation(
|
|
12
|
-
field('dulSubdivisionCode'),
|
|
13
|
-
validatorObj.dulSubdivisionCode,
|
|
14
|
-
input?.required,
|
|
15
|
-
)}
|
|
16
|
-
/>
|
|
17
|
-
));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { InputControl } from '../../Input/InputControl';
|
|
3
|
-
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
-
import { validatorObj } from '../getObjectValidator';
|
|
5
|
-
import { getValidation } from '../getValidation';
|
|
6
|
-
|
|
7
|
-
export const DulIssuedBy = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
-
<InputControl
|
|
9
|
-
label="Кем выдан"
|
|
10
|
-
{...getValidation(field('dulIssuedBy'), validatorObj.dulIssuedBy, input?.required)}
|
|
11
|
-
/>
|
|
12
|
-
));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { InputControl } from '../../Input/InputControl';
|
|
3
|
-
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
-
import { validatorObj } from '../getObjectValidator';
|
|
5
|
-
import { getValidation } from '../getValidation';
|
|
6
|
-
|
|
7
|
-
export const DulSubdivisionCode = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
-
<InputControl
|
|
9
|
-
label="Код подразделения"
|
|
10
|
-
type="number"
|
|
11
|
-
{...getValidation(
|
|
12
|
-
field('dulSubdivisionCode'),
|
|
13
|
-
validatorObj.dulSubdivisionCode,
|
|
14
|
-
input?.required,
|
|
15
|
-
)}
|
|
16
|
-
/>
|
|
17
|
-
));
|