jmapserver-ng-core-types 2.2.4 → 2.2.5
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/index.ts +0 -1
- package/package.json +1 -1
- package/public/core.d.ts +0 -26
package/index.ts
CHANGED
|
@@ -593,7 +593,6 @@ export interface JFormService {
|
|
|
593
593
|
// PURE FORM METHODS (not integrated, also used by query service)
|
|
594
594
|
checkAndCorrectSchemas(schema: JFormSchema, uiSchema: JFormUISchema): void
|
|
595
595
|
getDefaultValues(formMetaData: JFormMetaData, initialData?: JAttributeValueByName): JAttributeValueByName
|
|
596
|
-
getPreparedData(formMetaData: JFormMetaData, data: JAttributeValueByName): JAttributeValueByName
|
|
597
596
|
validateData(formMetaData: JFormMetaData, data: JAttributeValueByName): JFormErrors
|
|
598
597
|
}
|
|
599
598
|
|
package/package.json
CHANGED
package/public/core.d.ts
CHANGED
|
@@ -10621,32 +10621,6 @@ declare namespace JMap {
|
|
|
10621
10621
|
*/
|
|
10622
10622
|
function getDefaultValues(formMetaData: JFormMetaData, initialData?: JAttributeValueByName): JAttributeValueByName
|
|
10623
10623
|
|
|
10624
|
-
/**
|
|
10625
|
-
* ***JMap.Form.getPreparedData***
|
|
10626
|
-
*
|
|
10627
|
-
* This function prepare the data, it returns a copy object containing the values formatted in a way that fit the server needs.
|
|
10628
|
-
*
|
|
10629
|
-
* It's not mandatory to use this function but it's highly recommended to use it before :
|
|
10630
|
-
* - sending them to the server ()
|
|
10631
|
-
* - validating them using JMap.Form.getPreparedData (change values to fit the )
|
|
10632
|
-
*
|
|
10633
|
-
* It returns another object without modifing the passed object.
|
|
10634
|
-
*
|
|
10635
|
-
* Use to set the correct type (number if a string number is passed), and many other things.
|
|
10636
|
-
*
|
|
10637
|
-
* @param formMetaData A JMap form's metadata
|
|
10638
|
-
* @param data The form data
|
|
10639
|
-
* @returns the prepared data
|
|
10640
|
-
* @example
|
|
10641
|
-
* ```ts
|
|
10642
|
-
* const data = ...
|
|
10643
|
-
* const form = ...
|
|
10644
|
-
* const preparedData = JMap.Form.getPreparedData(form, data)
|
|
10645
|
-
* const errors = JMap.Form.validateData(form, preparedData)
|
|
10646
|
-
* ```
|
|
10647
|
-
*/
|
|
10648
|
-
function getPreparedData(formMetaData: JFormMetaData, data: JAttributeValueByName): JAttributeValueByName
|
|
10649
|
-
|
|
10650
10624
|
/**
|
|
10651
10625
|
* ***JMap.Form.validateData***
|
|
10652
10626
|
*
|