@legalplace/wizardx-core 4.43.14 → 4.43.16
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.
|
@@ -50,7 +50,7 @@ const stateToProps = (selectors) => (state, ownProps) => {
|
|
|
50
50
|
let proofUniqid = "";
|
|
51
51
|
let isProofUploaded = false;
|
|
52
52
|
const instanceIsPaid = selectInstanceIsPaid();
|
|
53
|
-
if (displayUploadProofTag && value === "true") {
|
|
53
|
+
if (displayUploadProofTag && value === "true" && instanceIsPaid) {
|
|
54
54
|
const proofs = selectInstanceProofs();
|
|
55
55
|
const instanceProof = proofs === null || proofs === void 0 ? void 0 : proofs.find((proof) => {
|
|
56
56
|
var _a, _b, _c, _d;
|
|
@@ -60,10 +60,9 @@ const stateToProps = (selectors) => (state, ownProps) => {
|
|
|
60
60
|
const isProofNotUploaded = [
|
|
61
61
|
formProofStatus.AWAITING,
|
|
62
62
|
formProofStatus.PRE_UPLOADED,
|
|
63
|
-
].includes(instanceProof.status);
|
|
63
|
+
].includes(instanceProof === null || instanceProof === void 0 ? void 0 : instanceProof.status);
|
|
64
64
|
const isUploadedFromWizard = ((_b = instanceProof.metadata) === null || _b === void 0 ? void 0 : _b.uploadContext) === "quiz";
|
|
65
65
|
if (instanceProof &&
|
|
66
|
-
instanceIsPaid &&
|
|
67
66
|
instanceProof.status !== formProofStatus.LATER &&
|
|
68
67
|
(isProofNotUploaded || isUploadedFromWizard)) {
|
|
69
68
|
type = "upload";
|
|
@@ -15,6 +15,7 @@ const AutocompleteDefaultDatasetConfig = {
|
|
|
15
15
|
noResultPlaceholder: (value) => `Aucun résultat, utiliser <b>${value}</b> comme valeur`,
|
|
16
16
|
loadingPlaceholder: "Chargement...",
|
|
17
17
|
otherPlaceholder: (value) => `Aucun de ces choix, utiliser <b>${value}</b> comme valeur`,
|
|
18
|
+
noResultCustomPlaceholder: () => "<b>Aucun résultat</b><br/> Veuillez vérifier l'orthographe de la recherche",
|
|
18
19
|
linkedVariablesDisabledTooltip: "Complétez le champ ci-dessus pour modifier cette valeur",
|
|
19
20
|
};
|
|
20
21
|
export const autocompleteDatasetConfig = {
|
|
@@ -15,6 +15,7 @@ export interface IAutocompleteDatasetConfig {
|
|
|
15
15
|
debounceDelay: number;
|
|
16
16
|
loadingPlaceholder: string;
|
|
17
17
|
otherPlaceholder: (value?: string) => string;
|
|
18
|
+
noResultCustomPlaceholder: () => string;
|
|
18
19
|
timeoutLimit: number;
|
|
19
20
|
shouldDisableLinkedVariables?: boolean;
|
|
20
21
|
linkedVariablesDisabledTooltip?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/wizardx-core",
|
|
3
|
-
"version": "4.43.
|
|
3
|
+
"version": "4.43.16",
|
|
4
4
|
"author": "Moncef Hammou (moncef@legalplace.fr)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"*.test.ts",
|
|
101
101
|
"*.test.tsx"
|
|
102
102
|
],
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "8be82ec0afbbe36ac8a091c2cda6b671961a5d68"
|
|
104
104
|
}
|