@redneckz/wildless-cms-uni-blocks 0.14.732 → 0.14.733
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/bundle.umd.js +2 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/ui-kit/FormField/Fields/CurrencyField.js +1 -4
- package/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CurrencyField.js +1 -4
- package/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +2 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js +1 -4
- package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js +1 -4
- package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/mobile/src/ui-kit/FormField/Fields/CurrencyField.tsx +1 -8
- package/package.json +1 -1
- package/src/ui-kit/FormField/Fields/CurrencyField.tsx +1 -8
|
@@ -2,15 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.CurrencyField = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useLeadFormData_1 = require("../../../hooks/useLeadFormData");
|
|
6
5
|
const RadioButtonGroupControl_1 = require("../../RadioButtonGroup/RadioButtonGroupControl");
|
|
7
6
|
const getObjectValidator_1 = require("../getObjectValidator");
|
|
8
7
|
const getValidation_1 = require("../getValidation");
|
|
9
|
-
const DEFAULT_CURRENCY_TYPES = [{ id: '810', text: 'Рубли' }];
|
|
10
8
|
exports.CurrencyField = (0, uni_jsx_1.JSX)(({ field, input }) => {
|
|
11
9
|
const { value, onChange } = field('currency');
|
|
12
|
-
const
|
|
13
|
-
const currencyTypes = data?.map((_) => ({ id: _.key, text: _.value })) ?? DEFAULT_CURRENCY_TYPES;
|
|
10
|
+
const currencyTypes = [{ id: '810', text: 'Рубли' }];
|
|
14
11
|
return ((0, jsx_runtime_1.jsx)(RadioButtonGroupControl_1.RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: currencyTypes, value: value, onChange: (_) => onChange?.(_), ...(0, getValidation_1.getValidation)(field('currency'), getObjectValidator_1.validatorObj.currency, input?.required) }));
|
|
15
12
|
});
|
|
16
13
|
//# sourceMappingURL=CurrencyField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/CurrencyField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"CurrencyField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/CurrencyField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4FAAyF;AAEzF,8DAAqD;AACrD,oDAAiD;AAEpC,QAAA,aAAa,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IACtE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IAE9C,MAAM,aAAa,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAErD,OAAO,CACL,uBAAC,iDAAuB,IACtB,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,YAAY,EACxB,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAC1B,IAAA,6BAAa,EAAC,KAAK,CAAC,UAAU,CAAC,EAAE,iCAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,GAC5E,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useLeadFormData } from '../../../hooks/useLeadFormData.js';
|
|
4
3
|
import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl.js';
|
|
5
4
|
import { validatorObj } from '../getObjectValidator.js';
|
|
6
5
|
import { getValidation } from '../getValidation.js';
|
|
7
|
-
const DEFAULT_CURRENCY_TYPES = [{ id: '810', text: 'Рубли' }];
|
|
8
6
|
export const CurrencyField = JSX(({ field, input }) => {
|
|
9
7
|
const { value, onChange } = field('currency');
|
|
10
|
-
const {
|
|
11
|
-
const currencyTypes = data?.map((_) => ({ id: _.key, text: _.value })) ?? DEFAULT_CURRENCY_TYPES;
|
|
8
|
+
const currencyTypes = [{ id: '810', text: 'Рубли' }];
|
|
12
9
|
return (_jsx(RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: currencyTypes, value: value, onChange: (_) => onChange?.(_), ...getValidation(field('currency'), validatorObj.currency, input?.required) }));
|
|
13
10
|
});
|
|
14
11
|
//# sourceMappingURL=CurrencyField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/CurrencyField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CurrencyField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/CurrencyField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAEzF,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IACtE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IAE9C,MAAM,aAAa,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAErD,OAAO,CACL,KAAC,uBAAuB,IACtB,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,YAAY,EACxB,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAC1B,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,YAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,GAC5E,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
-
import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
|
|
4
2
|
import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
|
|
5
3
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
6
4
|
import { validatorObj } from '../getObjectValidator';
|
|
7
5
|
import { getValidation } from '../getValidation';
|
|
8
6
|
|
|
9
|
-
const DEFAULT_CURRENCY_TYPES: RadioButtonItem[] = [{ id: '810', text: 'Рубли' }];
|
|
10
|
-
|
|
11
7
|
export const CurrencyField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
12
8
|
const { value, onChange } = field('currency');
|
|
13
9
|
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
const currencyTypes =
|
|
17
|
-
data?.map((_) => ({ id: _.key as string, text: _.value as string })) ?? DEFAULT_CURRENCY_TYPES;
|
|
10
|
+
const currencyTypes = [{ id: '810', text: 'Рубли' }];
|
|
18
11
|
|
|
19
12
|
return (
|
|
20
13
|
<RadioButtonGroupControl
|
package/package.json
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
-
import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
|
|
4
2
|
import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
|
|
5
3
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
6
4
|
import { validatorObj } from '../getObjectValidator';
|
|
7
5
|
import { getValidation } from '../getValidation';
|
|
8
6
|
|
|
9
|
-
const DEFAULT_CURRENCY_TYPES: RadioButtonItem[] = [{ id: '810', text: 'Рубли' }];
|
|
10
|
-
|
|
11
7
|
export const CurrencyField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
12
8
|
const { value, onChange } = field('currency');
|
|
13
9
|
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
const currencyTypes =
|
|
17
|
-
data?.map((_) => ({ id: _.key as string, text: _.value as string })) ?? DEFAULT_CURRENCY_TYPES;
|
|
10
|
+
const currencyTypes = [{ id: '810', text: 'Рубли' }];
|
|
18
11
|
|
|
19
12
|
return (
|
|
20
13
|
<RadioButtonGroupControl
|