@portnet/ui 0.0.89 → 0.0.90

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.
@@ -193,7 +193,6 @@ const PuiFormikAutocomplete = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
193
193
  setHasError(Boolean(meta) && Boolean(meta.touched) && Boolean(meta.error));
194
194
  }, [meta]);
195
195
  React.useEffect(() => {
196
- console.log("[value, options]");
197
196
  if ((!Boolean(selectedOption) || getOptionValue(selectedOption) !== value) && value !== undefined && options !== undefined) {
198
197
  let option;
199
198
  if (typeof value === "object") {
@@ -213,7 +212,6 @@ const PuiFormikAutocomplete = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
213
212
  // eslint-disable-next-line react-hooks/exhaustive-deps
214
213
  }, [field.value]);
215
214
  React.useEffect(() => {
216
- console.log("[field.value, options]");
217
215
  if ((!Boolean(selectedOption) || getOptionValue(selectedOption) !== field.value) && field.value !== undefined && options !== undefined) {
218
216
  let option;
219
217
  if (typeof field.value === "object") {
@@ -15,7 +15,8 @@ const specificReferentielsApis = {
15
15
  [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_CONSIGNATAIRES]: "consignataire",
16
16
  [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_COMPTES_BANCAIRE]: "compteBancaire",
17
17
  [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_GUICHETS]: "guichet",
18
- [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES]: "typeNomeclatureDouaniere"
18
+ [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES]: "typeNomeclatureDouaniere",
19
+ [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_TEST]: "test"
19
20
  };
20
21
  var _default = specificReferentielsApis;
21
22
  exports.default = _default;
@@ -640,6 +640,19 @@ const specificReferentielsBaseColumns = {
640
640
  } = _ref52;
641
641
  return (_row$typeTitreExporta2 = row.typeTitreExportationDescription) !== null && _row$typeTitreExporta2 !== void 0 ? _row$typeTitreExporta2 : "-";
642
642
  }
643
+ }],
644
+ [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_TEST]: [{
645
+ field: "description",
646
+ headerName: "Description",
647
+ flex: 2,
648
+ sortable: false,
649
+ valueGetter: _ref53 => {
650
+ var _row$description8;
651
+ let {
652
+ row
653
+ } = _ref53;
654
+ return (_row$description8 = row.description) !== null && _row$description8 !== void 0 ? _row$description8 : "-";
655
+ }
643
656
  }]
644
657
  };
645
658
  var _default = specificReferentielsBaseColumns;
@@ -532,6 +532,31 @@ const specificReferentielsBaseFilters = {
532
532
  formik: true,
533
533
  fullWidth: true
534
534
  })
535
+ }],
536
+ [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_TEST]: [{
537
+ name: "description",
538
+ label: "Description",
539
+ size: {
540
+ xs: 12,
541
+ sm: 8,
542
+ md: 6
543
+ },
544
+ input: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTextField.default, {
545
+ formik: true,
546
+ fullWidth: true
547
+ })
548
+ }, {
549
+ name: "code",
550
+ label: "Code",
551
+ size: {
552
+ xs: 12,
553
+ sm: 4,
554
+ md: 6
555
+ },
556
+ input: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTextField.default, {
557
+ formik: true,
558
+ fullWidth: true
559
+ })
535
560
  }]
536
561
  };
537
562
  var _default = specificReferentielsBaseFilters;
@@ -66,6 +66,10 @@ const specificReferentielsInitialValues = {
66
66
  description: "",
67
67
  idTypeTitreImportation: "",
68
68
  idTypeTitreExportation: ""
69
+ },
70
+ [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_TEST]: {
71
+ code: "",
72
+ description: ""
69
73
  }
70
74
  };
71
75
  var _default = specificReferentielsInitialValues;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.SPECIFIC_REFERENTIEL_TRANSITAIRES = exports.SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION = exports.SPECIFIC_REFERENTIEL_OPERATEURS_IMP_EXP = exports.SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES = exports.SPECIFIC_REFERENTIEL_NAVIRES = exports.SPECIFIC_REFERENTIEL_LOCALITES = exports.SPECIFIC_REFERENTIEL_GUICHETS = exports.SPECIFIC_REFERENTIEL_ESCALES = exports.SPECIFIC_REFERENTIEL_CONSIGNATAIRES = exports.SPECIFIC_REFERENTIEL_COMPTES_BANCAIRE = void 0;
6
+ exports.SPECIFIC_REFERENTIEL_TRANSITAIRES = exports.SPECIFIC_REFERENTIEL_TEST = exports.SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION = exports.SPECIFIC_REFERENTIEL_OPERATEURS_IMP_EXP = exports.SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES = exports.SPECIFIC_REFERENTIEL_NAVIRES = exports.SPECIFIC_REFERENTIEL_LOCALITES = exports.SPECIFIC_REFERENTIEL_GUICHETS = exports.SPECIFIC_REFERENTIEL_ESCALES = exports.SPECIFIC_REFERENTIEL_CONSIGNATAIRES = exports.SPECIFIC_REFERENTIEL_COMPTES_BANCAIRE = void 0;
7
7
  const SPECIFIC_REFERENTIEL_LOCALITES = "LOCALITES";
8
8
  exports.SPECIFIC_REFERENTIEL_LOCALITES = SPECIFIC_REFERENTIEL_LOCALITES;
9
9
  const SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION = "OPERATEURS_MANUTENTION";
@@ -23,4 +23,6 @@ exports.SPECIFIC_REFERENTIEL_COMPTES_BANCAIRE = SPECIFIC_REFERENTIEL_COMPTES_BAN
23
23
  const SPECIFIC_REFERENTIEL_GUICHETS = "GUICHETS";
24
24
  exports.SPECIFIC_REFERENTIEL_GUICHETS = SPECIFIC_REFERENTIEL_GUICHETS;
25
25
  const SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES = "NOMENCLATURES_DOUANIERES";
26
- exports.SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES = SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES;
26
+ exports.SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES = SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES;
27
+ const SPECIFIC_REFERENTIEL_TEST = "TEST";
28
+ exports.SPECIFIC_REFERENTIEL_TEST = SPECIFIC_REFERENTIEL_TEST;
@@ -15,7 +15,8 @@ const specificReferentielsTitles = {
15
15
  [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_CONSIGNATAIRES]: "Recherche de consignataires",
16
16
  [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_COMPTES_BANCAIRE]: "Recherche de comptes bancaire",
17
17
  [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_GUICHETS]: "Recherche de guichets",
18
- [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES]: "Recherche de nomenclatures douanières"
18
+ [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES]: "Recherche de nomenclatures douanières",
19
+ [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_TEST]: "Notre referernteil test"
19
20
  };
20
21
  var _default = specificReferentielsTitles;
21
22
  exports.default = _default;
@@ -71,6 +71,10 @@ const specificReferentielsValidationSchemas = {
71
71
  description: Yup.string().typeError(_yupValidationErrors.TYPE_STRING),
72
72
  idTypeTitreImportation: Yup.number().typeError(_yupValidationErrors.TYPE_NUMBER),
73
73
  idTypeTitreExportation: Yup.number().typeError(_yupValidationErrors.TYPE_NUMBER)
74
+ }),
75
+ [_specificReferentielsKeys.SPECIFIC_REFERENTIEL_TEST]: Yup.object().shape({
76
+ code: Yup.string().typeError(_yupValidationErrors.TYPE_STRING),
77
+ description: Yup.string().typeError(_yupValidationErrors.TYPE_STRING)
74
78
  })
75
79
  };
76
80
  var _default = specificReferentielsValidationSchemas;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portnet/ui",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
4
4
  "description": "Portnet UI",
5
5
  "keywords": [
6
6
  "react",