@rolster/react-forms 18.11.1 → 18.11.2
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":""}
|
package/dist/esm/helpers.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
1
|
+
import { ReactAbstractControl } from './definitions';
|
|
2
|
+
import { ReactControls, ReactGroup } from './types';
|
|
3
|
+
export declare function reduceControlsToValues<T extends ReactAbstractControl, C extends ReactControls<T>>(controls: C): T['value'][];
|
|
4
|
+
export declare function reduceGroupToValues<T extends ReactAbstractControl, C extends ReactControls<T>>(group: ReactGroup<C>): T['value'][];
|
package/dist/esm/helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAI/D,MAAM,UAAU,sBAAsB,CAGpC,QAAW;IACX,OAAO,qBAAqB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAGjC,KAAoB;IACpB,OAAO,sBAAsB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAChD,CAAC"}
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { AbstractArray, AbstractArrayControl, AbstractArrayControls, AbstractArrayGroup, AbstractArrayList,
|
|
1
|
+
import { AbstractArray, AbstractArrayControl, AbstractArrayControls, AbstractArrayGroup, AbstractArrayList, AbstractControls, AbstractFormControl, AbstractFormGroup, ArrayControlsValue, ArrayListValueToControls, FormArrayControlOptions, FormArrayGroupOptions } from '@rolster/forms';
|
|
2
2
|
import { ValidatorFn } from '@rolster/validators';
|
|
3
3
|
import { RefObject } from 'react';
|
|
4
|
-
|
|
5
|
-
elementRef?: RefObject<E>;
|
|
6
|
-
}
|
|
4
|
+
import { ReactAbstractControl } from './definitions';
|
|
7
5
|
export interface ReactFormControl<E extends HTMLElement = HTMLElement, T = any> extends AbstractFormControl<T> {
|
|
8
6
|
elementRef?: RefObject<E>;
|
|
9
7
|
}
|
|
@@ -48,4 +46,3 @@ export interface ReactFormArray<C extends ReactArrayControls = ReactArrayControl
|
|
|
48
46
|
export type ReactControl<E extends HTMLElement = HTMLElement, T = any> = ReactFormControl<E, T> | ReactArrayControl<E, T>;
|
|
49
47
|
export type ReactControls<T extends ReactAbstractControl = ReactAbstractControl> = AbstractControls<T>;
|
|
50
48
|
export type ReactGroup<C extends ReactControls = ReactControls> = AbstractFormGroup<C>;
|
|
51
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolster/react-forms",
|
|
3
|
-
"version": "18.11.
|
|
3
|
+
"version": "18.11.2",
|
|
4
4
|
"description": "It implements a set of classes that allow managing the control of states of the input components in React",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"ts-jest": "^29.1.0",
|
|
52
52
|
"tslib": "^2.4.0",
|
|
53
53
|
"typescript": "^5.7.2",
|
|
54
|
-
"vite": "^
|
|
54
|
+
"vite": "^6.2.0"
|
|
55
55
|
},
|
|
56
56
|
"repository": {
|
|
57
57
|
"type": "git",
|