ecotransac-shared-js 1.1.15 → 1.1.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.
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +24 -9
- package/dist/index.mjs +23 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -929,6 +929,13 @@ declare const getFieldValues: <D>(fields: Field<D>[], propertyState: State, data
|
|
|
929
929
|
value: string;
|
|
930
930
|
isNotDefined: boolean;
|
|
931
931
|
} | null)[];
|
|
932
|
+
type GetValueProps = {
|
|
933
|
+
value: unknown;
|
|
934
|
+
name: string;
|
|
935
|
+
isCurrency: boolean;
|
|
936
|
+
options: SelectOption[] | undefined;
|
|
937
|
+
};
|
|
938
|
+
declare const getValue: (params: GetValueProps) => string | null;
|
|
932
939
|
|
|
933
940
|
declare const getLabel: <T>(list: {
|
|
934
941
|
value: T;
|
|
@@ -1018,4 +1025,4 @@ declare const MANDATE_EXCLUSIVITY: {
|
|
|
1018
1025
|
label: string;
|
|
1019
1026
|
}[];
|
|
1020
1027
|
|
|
1021
|
-
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, IDENTIFICATION_DOCUMENTS, KITCHEN_TYPE, LEASE_ESTABLISHMENT, LEASE_TRANSFERT_PERMISSIONS, LEGAL_NATURE, MANDATE_EXCLUSIVITY, MARITAL_STATUS, PRENUP_TYPES, SHARING_CONFIGURATION, STANDINGS, type SelectOption, type State, VIEWS, and, featuresFormFields, formatAddress, formatAgentLegalData, formatDate, formatMandateNumber, formatNumber, formatPhone, formatPrice, formatSeconds, getAgencyFees, getFeesPercentage, getFieldValues, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
|
1028
|
+
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, IDENTIFICATION_DOCUMENTS, KITCHEN_TYPE, LEASE_ESTABLISHMENT, LEASE_TRANSFERT_PERMISSIONS, LEGAL_NATURE, MANDATE_EXCLUSIVITY, MARITAL_STATUS, PRENUP_TYPES, SHARING_CONFIGURATION, STANDINGS, type SelectOption, type State, VIEWS, and, featuresFormFields, formatAddress, formatAgentLegalData, formatDate, formatMandateNumber, formatNumber, formatPhone, formatPrice, formatSeconds, getAgencyFees, getFeesPercentage, getFieldValues, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -929,6 +929,13 @@ declare const getFieldValues: <D>(fields: Field<D>[], propertyState: State, data
|
|
|
929
929
|
value: string;
|
|
930
930
|
isNotDefined: boolean;
|
|
931
931
|
} | null)[];
|
|
932
|
+
type GetValueProps = {
|
|
933
|
+
value: unknown;
|
|
934
|
+
name: string;
|
|
935
|
+
isCurrency: boolean;
|
|
936
|
+
options: SelectOption[] | undefined;
|
|
937
|
+
};
|
|
938
|
+
declare const getValue: (params: GetValueProps) => string | null;
|
|
932
939
|
|
|
933
940
|
declare const getLabel: <T>(list: {
|
|
934
941
|
value: T;
|
|
@@ -1018,4 +1025,4 @@ declare const MANDATE_EXCLUSIVITY: {
|
|
|
1018
1025
|
label: string;
|
|
1019
1026
|
}[];
|
|
1020
1027
|
|
|
1021
|
-
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, IDENTIFICATION_DOCUMENTS, KITCHEN_TYPE, LEASE_ESTABLISHMENT, LEASE_TRANSFERT_PERMISSIONS, LEGAL_NATURE, MANDATE_EXCLUSIVITY, MARITAL_STATUS, PRENUP_TYPES, SHARING_CONFIGURATION, STANDINGS, type SelectOption, type State, VIEWS, and, featuresFormFields, formatAddress, formatAgentLegalData, formatDate, formatMandateNumber, formatNumber, formatPhone, formatPrice, formatSeconds, getAgencyFees, getFeesPercentage, getFieldValues, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
|
1028
|
+
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, IDENTIFICATION_DOCUMENTS, KITCHEN_TYPE, LEASE_ESTABLISHMENT, LEASE_TRANSFERT_PERMISSIONS, LEGAL_NATURE, MANDATE_EXCLUSIVITY, MARITAL_STATUS, PRENUP_TYPES, SHARING_CONFIGURATION, STANDINGS, type SelectOption, type State, VIEWS, and, featuresFormFields, formatAddress, formatAgentLegalData, formatDate, formatMandateNumber, formatNumber, formatPhone, formatPrice, formatSeconds, getAgencyFees, getFeesPercentage, getFieldValues, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
package/dist/index.js
CHANGED
|
@@ -66,6 +66,7 @@ __export(src_exports, {
|
|
|
66
66
|
getNetPrice: () => getNetPrice,
|
|
67
67
|
getPropertyState: () => getPropertyState,
|
|
68
68
|
getPropertyTitle: () => getPropertyTitle,
|
|
69
|
+
getValue: () => getValue,
|
|
69
70
|
mandateFormFields: () => mandateFormFields,
|
|
70
71
|
not: () => not,
|
|
71
72
|
only: () => only,
|
|
@@ -1186,6 +1187,15 @@ var surfacesFormFields = [
|
|
|
1186
1187
|
label: "Num\xE9ro des lot(s) vendu(s)",
|
|
1187
1188
|
props: { placeholder: "Non renseign\xE9" },
|
|
1188
1189
|
requiredFor: ["MANDATE_CREATION" /* MandateCreation */]
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
name: "cadastreReference",
|
|
1193
|
+
fieldType: "text",
|
|
1194
|
+
label: "R\xE9f\xE9rence(s) cadastrale(s)",
|
|
1195
|
+
props: {
|
|
1196
|
+
tooltip: "Retrouvez la/les r\xE9f\xE9rence(s) sur cadastre.gouv.fr",
|
|
1197
|
+
placeholder: "Exemple : Section AB, Parcelle 1234"
|
|
1198
|
+
}
|
|
1189
1199
|
}
|
|
1190
1200
|
];
|
|
1191
1201
|
var propertyFields = [
|
|
@@ -1366,14 +1376,6 @@ var mandateFormFields = [
|
|
|
1366
1376
|
// FIXME: required if not low price
|
|
1367
1377
|
props: { suffix: "%" }
|
|
1368
1378
|
},
|
|
1369
|
-
{
|
|
1370
|
-
name: "specialConditions",
|
|
1371
|
-
fieldType: "textarea",
|
|
1372
|
-
label: "Conditions particuli\xE8res du mandat",
|
|
1373
|
-
requiredFor: [],
|
|
1374
|
-
condition: void 0,
|
|
1375
|
-
props: { className: "md:col-span-2", placeholder: "Aucune" }
|
|
1376
|
-
},
|
|
1377
1379
|
{
|
|
1378
1380
|
name: "netOwnerRent",
|
|
1379
1381
|
fieldType: "number",
|
|
@@ -1395,7 +1397,11 @@ var mandateFormFields = [
|
|
|
1395
1397
|
label: "D\xE9p\xF4t de garantie",
|
|
1396
1398
|
fieldType: "number",
|
|
1397
1399
|
requiredFor: ["MANDATE_CREATION" /* MandateCreation */],
|
|
1398
|
-
condition: and(only("isForProfessionalUse"), only("isLeaseRightsTransfer"))
|
|
1400
|
+
condition: and(only("isForProfessionalUse"), only("isLeaseRightsTransfer")),
|
|
1401
|
+
props: {
|
|
1402
|
+
suffix: "\u20AC",
|
|
1403
|
+
tooltip: "Montant maximum autoris\xE9 : 1 mois de loyer hors charges"
|
|
1404
|
+
}
|
|
1399
1405
|
},
|
|
1400
1406
|
{
|
|
1401
1407
|
name: "isVatApplicable",
|
|
@@ -1450,6 +1456,14 @@ var mandateFormFields = [
|
|
|
1450
1456
|
label: "Ordre du professionnel charg\xE9 de la pr\xE9sente cession qui re\xE7oit le s\xE9questre",
|
|
1451
1457
|
requiredFor: ["MANDATE_CREATION" /* MandateCreation */],
|
|
1452
1458
|
condition: only("isForProfessionalUse")
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
name: "specialConditions",
|
|
1462
|
+
fieldType: "textarea",
|
|
1463
|
+
label: "Conditions particuli\xE8res du mandat",
|
|
1464
|
+
requiredFor: [],
|
|
1465
|
+
condition: void 0,
|
|
1466
|
+
props: { className: "md:col-span-2", placeholder: "Aucune" }
|
|
1453
1467
|
}
|
|
1454
1468
|
];
|
|
1455
1469
|
|
|
@@ -1506,6 +1520,7 @@ var MANDATE_EXCLUSIVITY = [
|
|
|
1506
1520
|
getNetPrice,
|
|
1507
1521
|
getPropertyState,
|
|
1508
1522
|
getPropertyTitle,
|
|
1523
|
+
getValue,
|
|
1509
1524
|
mandateFormFields,
|
|
1510
1525
|
not,
|
|
1511
1526
|
only,
|
package/dist/index.mjs
CHANGED
|
@@ -1107,6 +1107,15 @@ var surfacesFormFields = [
|
|
|
1107
1107
|
label: "Num\xE9ro des lot(s) vendu(s)",
|
|
1108
1108
|
props: { placeholder: "Non renseign\xE9" },
|
|
1109
1109
|
requiredFor: ["MANDATE_CREATION" /* MandateCreation */]
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
name: "cadastreReference",
|
|
1113
|
+
fieldType: "text",
|
|
1114
|
+
label: "R\xE9f\xE9rence(s) cadastrale(s)",
|
|
1115
|
+
props: {
|
|
1116
|
+
tooltip: "Retrouvez la/les r\xE9f\xE9rence(s) sur cadastre.gouv.fr",
|
|
1117
|
+
placeholder: "Exemple : Section AB, Parcelle 1234"
|
|
1118
|
+
}
|
|
1110
1119
|
}
|
|
1111
1120
|
];
|
|
1112
1121
|
var propertyFields = [
|
|
@@ -1287,14 +1296,6 @@ var mandateFormFields = [
|
|
|
1287
1296
|
// FIXME: required if not low price
|
|
1288
1297
|
props: { suffix: "%" }
|
|
1289
1298
|
},
|
|
1290
|
-
{
|
|
1291
|
-
name: "specialConditions",
|
|
1292
|
-
fieldType: "textarea",
|
|
1293
|
-
label: "Conditions particuli\xE8res du mandat",
|
|
1294
|
-
requiredFor: [],
|
|
1295
|
-
condition: void 0,
|
|
1296
|
-
props: { className: "md:col-span-2", placeholder: "Aucune" }
|
|
1297
|
-
},
|
|
1298
1299
|
{
|
|
1299
1300
|
name: "netOwnerRent",
|
|
1300
1301
|
fieldType: "number",
|
|
@@ -1316,7 +1317,11 @@ var mandateFormFields = [
|
|
|
1316
1317
|
label: "D\xE9p\xF4t de garantie",
|
|
1317
1318
|
fieldType: "number",
|
|
1318
1319
|
requiredFor: ["MANDATE_CREATION" /* MandateCreation */],
|
|
1319
|
-
condition: and(only("isForProfessionalUse"), only("isLeaseRightsTransfer"))
|
|
1320
|
+
condition: and(only("isForProfessionalUse"), only("isLeaseRightsTransfer")),
|
|
1321
|
+
props: {
|
|
1322
|
+
suffix: "\u20AC",
|
|
1323
|
+
tooltip: "Montant maximum autoris\xE9 : 1 mois de loyer hors charges"
|
|
1324
|
+
}
|
|
1320
1325
|
},
|
|
1321
1326
|
{
|
|
1322
1327
|
name: "isVatApplicable",
|
|
@@ -1371,6 +1376,14 @@ var mandateFormFields = [
|
|
|
1371
1376
|
label: "Ordre du professionnel charg\xE9 de la pr\xE9sente cession qui re\xE7oit le s\xE9questre",
|
|
1372
1377
|
requiredFor: ["MANDATE_CREATION" /* MandateCreation */],
|
|
1373
1378
|
condition: only("isForProfessionalUse")
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
name: "specialConditions",
|
|
1382
|
+
fieldType: "textarea",
|
|
1383
|
+
label: "Conditions particuli\xE8res du mandat",
|
|
1384
|
+
requiredFor: [],
|
|
1385
|
+
condition: void 0,
|
|
1386
|
+
props: { className: "md:col-span-2", placeholder: "Aucune" }
|
|
1374
1387
|
}
|
|
1375
1388
|
];
|
|
1376
1389
|
|
|
@@ -1426,6 +1439,7 @@ export {
|
|
|
1426
1439
|
getNetPrice,
|
|
1427
1440
|
getPropertyState,
|
|
1428
1441
|
getPropertyTitle,
|
|
1442
|
+
getValue,
|
|
1429
1443
|
mandateFormFields,
|
|
1430
1444
|
not,
|
|
1431
1445
|
only,
|