@legalplace/wizardx-core 2.7.3 → 2.8.0
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.8.0](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.7.3...@legalplace/wizardx-core@2.8.0) (2022-03-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* add NB_CHAR function to eval ([39c3337](https://git.legalplace.eu/legalplace/monorepo/commits/39c33373e3834173382475b117b056a15c8df36d)), closes [api#DEV-4892](https://git.legalplace.eu/legalplace/monorepo/issues/DEV-4892)
|
|
12
|
+
* linting ([250d797](https://git.legalplace.eu/legalplace/monorepo/commits/250d797e7e19bbbbc0b2848a9654899ae1bd79d1)), closes [api#4892](https://git.legalplace.eu/legalplace/monorepo/issues/4892)
|
|
13
|
+
* update all package storybook ([98c9166](https://git.legalplace.eu/legalplace/monorepo/commits/98c9166ec319682922e509560e37229d3dbeb57a)), closes [api#DEV-4871](https://git.legalplace.eu/legalplace/monorepo/issues/DEV-4871)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add nb char function to eval ([c9f49f2](https://git.legalplace.eu/legalplace/monorepo/commits/c9f49f2c0195631e8ea1b676a6f32b97ada58615)), closes [api#4892](https://git.legalplace.eu/legalplace/monorepo/issues/4892) [api#4892](https://git.legalplace.eu/legalplace/monorepo/issues/4892)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [2.7.3](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.7.2...@legalplace/wizardx-core@2.7.3) (2022-02-04)
|
|
7
25
|
|
|
8
26
|
|
|
@@ -470,6 +470,14 @@ export class EvalFunctions extends EvalBase {
|
|
|
470
470
|
}
|
|
471
471
|
return `D=${result}`;
|
|
472
472
|
};
|
|
473
|
+
this.nbChar = (varRef) => {
|
|
474
|
+
if (!varTagRegex.test(varRef))
|
|
475
|
+
return 0;
|
|
476
|
+
const variableValue = this.getVariableValue(varRef, false);
|
|
477
|
+
if (!variableValue)
|
|
478
|
+
return 0;
|
|
479
|
+
return `${variableValue}`.trim().length;
|
|
480
|
+
};
|
|
473
481
|
}
|
|
474
482
|
parseVariableArgumentDate(varRef) {
|
|
475
483
|
let result = varRef;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/wizardx-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"author": "Moncef Hammou (moncef@legalplace.fr)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@legalplace/lplogic": "^2.1.6",
|
|
26
26
|
"@legalplace/model-healthcheck": "^1.1.5",
|
|
27
27
|
"@legalplace/referencesparser": "1.7.0",
|
|
28
|
-
"@legalplace/storybook": "2.
|
|
28
|
+
"@legalplace/storybook": "2.15.2",
|
|
29
29
|
"@loadable/component": "^5.15.0",
|
|
30
30
|
"@redux-saga/core": "^1.1.3",
|
|
31
31
|
"connected-react-router": "^6.8.0",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"*.test.ts",
|
|
93
93
|
"*.test.tsx"
|
|
94
94
|
],
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "1aa4f831d70b01f5749a2b6007b098239d9386d3"
|
|
96
96
|
}
|