@ejfdelgado/ejflab-common 1.14.1 → 1.14.4

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.
Files changed (93) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/package.json +1 -1
  4. package/src/CollisionsEngine.js +0 -0
  5. package/src/CsvFormatter.js +0 -0
  6. package/src/CsvFormatter.test.js +0 -0
  7. package/src/CsvFormatterFilters.js +0 -0
  8. package/src/CsvParser.js +0 -0
  9. package/src/CsvParser.test.js +0 -0
  10. package/src/CsvWithFilters.js +6 -11
  11. package/src/FaceEncoder.js +0 -0
  12. package/src/FlowChartDiagram.js +4 -4
  13. package/src/IdGen.js +0 -0
  14. package/src/ModuloDatoSeguro.js +0 -0
  15. package/src/ModuloDatoSeguro.test.js +0 -0
  16. package/src/ModuloDatoSeguro.test.mjs +0 -0
  17. package/src/ModuloDatoSeguroBack.mjs +0 -0
  18. package/src/ModuloDatoSeguroFront.js +0 -0
  19. package/src/ModuloSonido.js +0 -0
  20. package/src/ModuloVideos.js +0 -0
  21. package/src/MyColor.js +0 -0
  22. package/src/MyColor.test.js +0 -0
  23. package/src/MyConstants.js +0 -0
  24. package/src/MyCookies.js +0 -0
  25. package/src/MyDates.js +0 -0
  26. package/src/MyDates.test.js +0 -0
  27. package/src/MyDatesBack.mjs +0 -0
  28. package/src/MyDatesFront.js +0 -0
  29. package/src/MyJsPdf.js +0 -0
  30. package/src/MyRoutes.js +0 -0
  31. package/src/MyTemplate.js +0 -0
  32. package/src/MyTemplate.test.js +9 -0
  33. package/src/MyTensorflow.js +0 -0
  34. package/src/MyTensorflow.test.js +0 -0
  35. package/src/MyTensorflowBack.mjs +0 -0
  36. package/src/MyThrottle.js +0 -0
  37. package/src/MyTuples.js +0 -0
  38. package/src/MyTuples.test.js +0 -0
  39. package/src/MyUtilities.js +0 -0
  40. package/src/SimpleObj.js +0 -0
  41. package/src/SimpleObj.test.js +0 -0
  42. package/src/TriangulacionGeometric.js +0 -0
  43. package/src/changePath.js +0 -0
  44. package/src/data/case0.csv +0 -0
  45. package/src/data/case0.json +0 -0
  46. package/src/data/case1.csv +0 -0
  47. package/src/data/case1.json +0 -0
  48. package/src/data/case2.csv +0 -0
  49. package/src/data/case2.json +0 -0
  50. package/src/data/case3.csv +0 -0
  51. package/src/data/case3.json +0 -0
  52. package/src/data/format0.json +0 -0
  53. package/src/data/format0.txt +0 -0
  54. package/src/data/tensordata.csv +0 -0
  55. package/src/data/tensordata.json +0 -0
  56. package/src/data/tensordata.test.csv +0 -0
  57. package/src/data/tensormodel.json +0 -0
  58. package/src/fft.js +0 -0
  59. package/src/flowchart/FlowChartExec.js +0 -0
  60. package/src/flowchart/steps/CommandBasic.js +0 -0
  61. package/src/flowchart/steps/CommandInc.js +0 -0
  62. package/src/flowchart/steps/CommandMilvus.js +0 -0
  63. package/src/flowchart/steps/CommandMinio.js +0 -0
  64. package/src/flowchart/steps/CommandMongo.js +0 -0
  65. package/src/flowchart/steps/CommandPostgres.js +0 -0
  66. package/src/flowchart/steps/CommandPrint.js +0 -0
  67. package/src/flowchart/steps/CommandSet.js +0 -0
  68. package/src/flowchart/steps/CommandTic.js +0 -0
  69. package/src/flowchart/steps/CommandTimeline.js +0 -0
  70. package/src/flowchart/steps/CommandTimelineNext.js +0 -0
  71. package/src/flowchart/steps/CommandToc.js +0 -0
  72. package/src/flowchart/steps/StepBasic.js +0 -0
  73. package/src/flowchart/steps/StepCheckProcessor.js +0 -0
  74. package/src/flowchart/steps/StepCheckSrc.js +0 -0
  75. package/src/flowchart/steps/StepIsTrue.js +0 -0
  76. package/src/flowchart/steps/StepMultiple.js +0 -0
  77. package/src/flowchart/steps/StepMultipleDone.js +0 -0
  78. package/src/flowchart/steps/StepOneTime.js +0 -0
  79. package/src/flowchart/steps/StepProcess.js +0 -0
  80. package/src/flowchart/steps/StepReadSrc.js +0 -0
  81. package/src/flowchart/steps/StepSleep.js +0 -0
  82. package/src/flowchart/steps/StepTimeLineEnds.js +0 -0
  83. package/src/flowchart/steps/StepTimeLineHasMore.js +0 -0
  84. package/src/gif/index.d.ts +0 -0
  85. package/src/gif/index.mjs +0 -0
  86. package/src/gif/utils/checkTypes.d.ts +0 -0
  87. package/src/gif/utils/checkTypes.mjs +0 -0
  88. package/src/js-colormaps.js +0 -0
  89. package/src/sortify.js +0 -0
  90. package/src/sqlmodelparser/SqlModelParser.js +0 -0
  91. package/src/test/csv/test_1000_20230429204538700.csv +0 -0
  92. package/src/test/csv/test_5_20230429204525930.csv +0 -0
  93. package/src/test/svg/test.html +0 -0
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ejfdelgado/ejflab-common",
3
3
  "type": "commonjs",
4
- "version": "1.14.1",
4
+ "version": "1.14.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ejfdelgado/ejflab-common.git"
File without changes
File without changes
File without changes
File without changes
package/src/CsvParser.js CHANGED
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
 
2
2
  class CsvWithFilters {
3
- static PATTERN_FILTER = "\\s*([^|\\s]+)(\\s*\\|\\s*([^:\\s]+)\\s*(\\s*:\\s*([^:\\s]+)*)?)?";
3
+ static PATTERN_FILTER = "\\s*([^|\\s]+)(\\s*\\|\\s*([^:\\s]+)\\s*(:(.*))?)?";
4
4
  constructor() {
5
5
  this.filterRegistry = {
6
6
  classes: {
@@ -87,16 +87,11 @@ class CsvWithFilters {
87
87
  }
88
88
  const argumentos = [];
89
89
  if (subpartes[5]) {
90
- argumentos.push(JSON.parse(subpartes[5]));
91
- let siguiente = null;
92
- siguiente = patron2.exec(completo);
93
- if (siguiente !== null) {
94
- siguiente[0].split(":").map((siguienteFixed) => {
95
- if (siguienteFixed.trim().length > 0) {
96
- argumentos.push(JSON.parse(siguienteFixed));
97
- }
98
-
99
- });
90
+ const allArguments = subpartes[5].split(":");
91
+ for (let k = 0; k < allArguments.length; k++) {
92
+ try {
93
+ argumentos.push(JSON.parse(allArguments[k]));
94
+ } catch (err) { }
100
95
  }
101
96
  }
102
97
  desc.argumentos = argumentos;
File without changes
@@ -373,16 +373,16 @@ class FlowChartDiagram {
373
373
  for (let i = 0; i < nodos.length; i++) {
374
374
  const nodo = nodos[i];
375
375
  if (nodo['@_id']) {
376
- nodo['@_id'] = prefix + nodo['@_id'];
376
+ nodo['@_id'] = prefix + "_" + nodo['@_id'];
377
377
  }
378
378
  if (nodo['@_source']) {
379
- nodo['@_source'] = prefix + nodo['@_source'];
379
+ nodo['@_source'] = prefix + "_" + nodo['@_source'];
380
380
  }
381
381
  if (nodo['@_target']) {
382
- nodo['@_target'] = prefix + nodo['@_target'];
382
+ nodo['@_target'] = prefix + "_" + nodo['@_target'];
383
383
  }
384
384
  if (nodo['@_parent']) {
385
- nodo['@_parent'] = prefix + nodo['@_parent'];
385
+ nodo['@_parent'] = prefix + "_" + nodo['@_parent'];
386
386
  }
387
387
  }
388
388
  }
package/src/IdGen.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/src/MyColor.js CHANGED
File without changes
File without changes
File without changes
package/src/MyCookies.js CHANGED
File without changes
package/src/MyDates.js CHANGED
File without changes
File without changes
File without changes
File without changes
package/src/MyJsPdf.js CHANGED
File without changes
package/src/MyRoutes.js CHANGED
File without changes
package/src/MyTemplate.js CHANGED
File without changes
@@ -88,6 +88,12 @@ function myTest() {
88
88
  exp: "My 0 lastname is delgado",
89
89
  skipUndefined: false,
90
90
  },
91
+ {
92
+ txt: 'My ${ now | epoch2date : "mmm d yyyy" : "otro"}',
93
+ data: { now: new Date().getTime(), index: 0 },
94
+ exp: "My nada",
95
+ skipUndefined: false,
96
+ },
91
97
  ];
92
98
 
93
99
  renderer.registerFunction("json", CsvFormatterFilters.json);
@@ -96,6 +102,9 @@ function myTest() {
96
102
  return val + "-" + args.join("-");
97
103
  });
98
104
  renderer.registerFunction("rand", CsvFormatterFilters.rand);
105
+ renderer.registerFunction("epoch2date", (value, ...args) => {
106
+ return "nada";
107
+ });
99
108
 
100
109
  for (let i = 0; i < cases.length; i++) {
101
110
  const myCase = cases[i];
File without changes
File without changes
File without changes
package/src/MyThrottle.js CHANGED
File without changes
package/src/MyTuples.js CHANGED
File without changes
File without changes
File without changes
package/src/SimpleObj.js CHANGED
File without changes
File without changes
File without changes
package/src/changePath.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/src/fft.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/src/gif/index.mjs CHANGED
File without changes
File without changes
File without changes
File without changes
package/src/sortify.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes