@arsedizioni/ars-utils 21.1.29 → 21.1.31
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/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +13 -0
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +15 -2
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +14 -6
|
@@ -2149,6 +2149,19 @@ class ClipperSearchUtils {
|
|
|
2149
2149
|
queries = this.concatTextQuery(q.trim(), queries);
|
|
2150
2150
|
return queries;
|
|
2151
2151
|
}
|
|
2152
|
+
/**
|
|
2153
|
+
* Return a rank number from a char value (A, B, C)
|
|
2154
|
+
* @param value : the char value
|
|
2155
|
+
* @returns the rank number (A = 0.71, B = 0.61, C = 0.51)
|
|
2156
|
+
*/
|
|
2157
|
+
static getRankFromChar(value) {
|
|
2158
|
+
switch (value.toUpperCase()) {
|
|
2159
|
+
case 'A': return 0.71;
|
|
2160
|
+
case 'B': return 0.61;
|
|
2161
|
+
default:
|
|
2162
|
+
return 0.51;
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2152
2165
|
}
|
|
2153
2166
|
|
|
2154
2167
|
class ClipperService {
|