@rsuci/shared-form-components 1.0.114 → 1.0.115

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.
@@ -891,7 +891,7 @@ export class ConditionEngine {
891
891
  return calculateDateAdd(date, value, unit);
892
892
  },
893
893
  // Fonctions de conversion
894
- ConvertToDate: (value) => {
894
+ convertToDate: (value) => {
895
895
  try {
896
896
  if (value instanceof Date)
897
897
  return isNaN(value.getTime()) ? null : value;
@@ -907,7 +907,7 @@ export class ConditionEngine {
907
907
  return null;
908
908
  }
909
909
  },
910
- ConvertToNumber: (value, decimals = 0) => {
910
+ convertToNumber: (value, decimals = 0) => {
911
911
  try {
912
912
  const num = Number(value);
913
913
  if (isNaN(num))
@@ -919,7 +919,7 @@ export class ConditionEngine {
919
919
  return 0;
920
920
  }
921
921
  },
922
- ConvertToBool: (value) => {
922
+ convertToBool: (value) => {
923
923
  try {
924
924
  if (typeof value === 'boolean')
925
925
  return value;
@@ -1099,10 +1099,10 @@ export class ConditionEngine {
1099
1099
  ];
1100
1100
  // Suggestions de fonctions de conversion
1101
1101
  const conversionFunctions = [
1102
- 'ConvertToDate(${VARIABLE})',
1103
- 'ConvertToNumber(${VARIABLE})',
1104
- 'ConvertToNumber(${VARIABLE}, 2)',
1105
- 'ConvertToBool(${VARIABLE})',
1102
+ 'convertToDate(${VARIABLE})',
1103
+ 'convertToNumber(${VARIABLE})',
1104
+ 'convertToNumber(${VARIABLE}, 2)',
1105
+ 'convertToBool(${VARIABLE})',
1106
1106
  ];
1107
1107
  // Combiner toutes les fonctions
1108
1108
  const allFunctions = [...utilityFunctions, ...functions, ...dateFunctions, ...conversionFunctions];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsuci/shared-form-components",
3
- "version": "1.0.114",
3
+ "version": "1.0.115",
4
4
  "description": "Composants partagés de rendu de formulaires RSU v2 - Package local pour frontend Admin et Public",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",