@portnet/ui 0.0.19 → 0.0.21
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/components/inputs/PuiSelect.js +2 -2
- package/dist/components/referentiel/common/constants/specificReferentielsApis.js +1 -1
- package/dist/components/referentiel/common/constants/specificReferentielsBaseColumns.js +1 -1
- package/dist/components/referentiel/common/constants/specificReferentielsBaseFilters.js +1 -1
- package/dist/components/referentiel/common/constants/specificReferentielsInitialValues.js +1 -1
- package/dist/components/referentiel/common/constants/specificReferentielsKeys.js +12 -12
- package/dist/components/referentiel/common/constants/specificReferentielsTitles.js +1 -1
- package/dist/components/referentiel/common/constants/specificReferentielsValidationSchemas.js +1 -1
- package/dist/components/referentiel/components/PuiBasePopupReferentielField.js +1 -1
- package/dist/components/ui/dialogs/PuiSearchDialog.js +4 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ var _apperance = require("../../config/apperance");
|
|
|
16
16
|
var _PuiIcon = _interopRequireDefault(require("../others/PuiIcon"));
|
|
17
17
|
var _PuiIndication = _interopRequireDefault(require("../typography/PuiIndication"));
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
const _excluded = ["id", "className", "sx", "name", "label", "value", "error", "helperText", "fullWidth", "disabled", "focused", "loading", "readOnly", "required", "options", "getOptionKey", "getOptionLabel", "getOptionValue", "onChange"],
|
|
19
|
+
const _excluded = ["id", "className", "sx", "name", "label", "value", "error", "helperText", "fullWidth", "disabled", "focused", "loading", "readOnly", "required", "options", "getOptionKey", "getOptionLabel", "getOptionValue", "isOptionEqualToValue", "onChange"],
|
|
20
20
|
_excluded2 = ["id", "className", "sx", "name", "label", "value", "error", "helperText", "fullWidth", "disabled", "focused", "loading", "readOnly", "required", "options", "getOptionKey", "getOptionLabel", "getOptionValue", "onChange"],
|
|
21
21
|
_excluded3 = ["formik", "id", "className", "sx", "name", "label", "value", "error", "helperText", "fullWidth", "disabled", "focused", "loading", "readOnly", "required", "options", "getOptionKey", "getOptionLabel", "getOptionValue", "onChange"];
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -121,6 +121,7 @@ const PuiStandardSelect = _ref => {
|
|
|
121
121
|
getOptionKey,
|
|
122
122
|
getOptionLabel,
|
|
123
123
|
getOptionValue,
|
|
124
|
+
isOptionEqualToValue,
|
|
124
125
|
onChange
|
|
125
126
|
} = _ref,
|
|
126
127
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -171,7 +172,6 @@ const PuiStandardSelect = _ref => {
|
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
174
|
}, rest), {}, {
|
|
174
|
-
isOptionEqualToValue: undefined,
|
|
175
175
|
children: Boolean(options) && options.map(option => /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.MenuItem, {
|
|
176
176
|
value: getOptionValue(option),
|
|
177
177
|
children: getOptionLabel(option)
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _specificReferentielsKeys = require("./specificReferentielsKeys");
|
|
8
8
|
const specificReferentielsApis = {
|
|
9
9
|
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_LOCALITES]: "typeLocalite",
|
|
10
|
-
[_specificReferentielsKeys.
|
|
10
|
+
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION]: "typeOperateur",
|
|
11
11
|
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_ESCALES]: "escale",
|
|
12
12
|
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_OPERATEURS_IMP_EXP]: "operateurImpExp",
|
|
13
13
|
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_TRANSITAIRES]: "transitaire",
|
|
@@ -41,7 +41,7 @@ const specificReferentielsBaseColumns = {
|
|
|
41
41
|
return (_row$description = row.description) !== null && _row$description !== void 0 ? _row$description : "-";
|
|
42
42
|
}
|
|
43
43
|
}],
|
|
44
|
-
[_specificReferentielsKeys.
|
|
44
|
+
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION]: [{
|
|
45
45
|
field: "code",
|
|
46
46
|
headerName: "Code",
|
|
47
47
|
flex: 1,
|
|
@@ -49,7 +49,7 @@ const specificReferentielsBaseFilters = {
|
|
|
49
49
|
fullWidth: true
|
|
50
50
|
})
|
|
51
51
|
}],
|
|
52
|
-
[_specificReferentielsKeys.
|
|
52
|
+
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION]: [{
|
|
53
53
|
name: "code",
|
|
54
54
|
label: "Code",
|
|
55
55
|
size: {
|
|
@@ -11,7 +11,7 @@ const specificReferentielsInitialValues = {
|
|
|
11
11
|
codePays: "",
|
|
12
12
|
description: ""
|
|
13
13
|
},
|
|
14
|
-
[_specificReferentielsKeys.
|
|
14
|
+
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION]: {
|
|
15
15
|
code: "",
|
|
16
16
|
idPort: "",
|
|
17
17
|
description: ""
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SPECIFIC_REFERENTIEL_TRANSITAIRES = exports.
|
|
7
|
-
const SPECIFIC_REFERENTIEL_LOCALITES = "
|
|
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;
|
|
7
|
+
const SPECIFIC_REFERENTIEL_LOCALITES = "LOCALITES";
|
|
8
8
|
exports.SPECIFIC_REFERENTIEL_LOCALITES = SPECIFIC_REFERENTIEL_LOCALITES;
|
|
9
|
-
const
|
|
10
|
-
exports.
|
|
11
|
-
const SPECIFIC_REFERENTIEL_ESCALES = "
|
|
9
|
+
const SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION = "OPERATEURS_MANUTENTION";
|
|
10
|
+
exports.SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION = SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION;
|
|
11
|
+
const SPECIFIC_REFERENTIEL_ESCALES = "ESCALES";
|
|
12
12
|
exports.SPECIFIC_REFERENTIEL_ESCALES = SPECIFIC_REFERENTIEL_ESCALES;
|
|
13
|
-
const SPECIFIC_REFERENTIEL_OPERATEURS_IMP_EXP = "
|
|
13
|
+
const SPECIFIC_REFERENTIEL_OPERATEURS_IMP_EXP = "OPERATEURS_IMP_EXP";
|
|
14
14
|
exports.SPECIFIC_REFERENTIEL_OPERATEURS_IMP_EXP = SPECIFIC_REFERENTIEL_OPERATEURS_IMP_EXP;
|
|
15
|
-
const SPECIFIC_REFERENTIEL_TRANSITAIRES = "
|
|
15
|
+
const SPECIFIC_REFERENTIEL_TRANSITAIRES = "TRANSITAIRES";
|
|
16
16
|
exports.SPECIFIC_REFERENTIEL_TRANSITAIRES = SPECIFIC_REFERENTIEL_TRANSITAIRES;
|
|
17
|
-
const SPECIFIC_REFERENTIEL_NAVIRES = "
|
|
17
|
+
const SPECIFIC_REFERENTIEL_NAVIRES = "NAVIRES";
|
|
18
18
|
exports.SPECIFIC_REFERENTIEL_NAVIRES = SPECIFIC_REFERENTIEL_NAVIRES;
|
|
19
|
-
const SPECIFIC_REFERENTIEL_CONSIGNATAIRES = "
|
|
19
|
+
const SPECIFIC_REFERENTIEL_CONSIGNATAIRES = "CONSIGNATAIRES";
|
|
20
20
|
exports.SPECIFIC_REFERENTIEL_CONSIGNATAIRES = SPECIFIC_REFERENTIEL_CONSIGNATAIRES;
|
|
21
|
-
const SPECIFIC_REFERENTIEL_COMPTES_BANCAIRE = "
|
|
21
|
+
const SPECIFIC_REFERENTIEL_COMPTES_BANCAIRE = "COMPTES_BANCAIRE";
|
|
22
22
|
exports.SPECIFIC_REFERENTIEL_COMPTES_BANCAIRE = SPECIFIC_REFERENTIEL_COMPTES_BANCAIRE;
|
|
23
|
-
const SPECIFIC_REFERENTIEL_GUICHETS = "
|
|
23
|
+
const SPECIFIC_REFERENTIEL_GUICHETS = "GUICHETS";
|
|
24
24
|
exports.SPECIFIC_REFERENTIEL_GUICHETS = SPECIFIC_REFERENTIEL_GUICHETS;
|
|
25
|
-
const SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES = "
|
|
25
|
+
const SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES = "NOMENCLATURES_DOUANIERES";
|
|
26
26
|
exports.SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES = SPECIFIC_REFERENTIEL_NOMENCLATURES_DOUANIERES;
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _specificReferentielsKeys = require("./specificReferentielsKeys");
|
|
8
8
|
const specificReferentielsTitles = {
|
|
9
9
|
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_LOCALITES]: "Recherche de localités",
|
|
10
|
-
[_specificReferentielsKeys.
|
|
10
|
+
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION]: "Recherche d'opérateurs de manutention",
|
|
11
11
|
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_ESCALES]: "Recherche d'avis d'arrivée",
|
|
12
12
|
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_OPERATEURS_IMP_EXP]: "Recherche d'importateurs/Exportateurs",
|
|
13
13
|
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_TRANSITAIRES]: "Recherche de transitaires",
|
package/dist/components/referentiel/common/constants/specificReferentielsValidationSchemas.js
CHANGED
|
@@ -16,7 +16,7 @@ const specificReferentielsValidationSchemas = {
|
|
|
16
16
|
codePays: Yup.string().typeError(_yupValidationErrors.TYPE_STRING),
|
|
17
17
|
description: Yup.string().typeError(_yupValidationErrors.TYPE_STRING)
|
|
18
18
|
}),
|
|
19
|
-
[_specificReferentielsKeys.
|
|
19
|
+
[_specificReferentielsKeys.SPECIFIC_REFERENTIEL_OPERATEURS_MANUTENTION]: Yup.object().shape({
|
|
20
20
|
code: Yup.string().typeError(_yupValidationErrors.TYPE_STRING),
|
|
21
21
|
idPort: Yup.number().typeError(_yupValidationErrors.TYPE_NUMBER),
|
|
22
22
|
description: Yup.string().typeError(_yupValidationErrors.TYPE_STRING)
|
|
@@ -96,10 +96,10 @@ const CommunComponent = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
96
96
|
page: page,
|
|
97
97
|
pageSize: pageSize,
|
|
98
98
|
columns: columns,
|
|
99
|
+
actions: tableActions,
|
|
99
100
|
onPageChange: onPageChange,
|
|
100
101
|
tableProps: _objectSpread({
|
|
101
102
|
paginationMode: "server",
|
|
102
|
-
actions: tableActions,
|
|
103
103
|
oneActionOnly: true
|
|
104
104
|
}, tableProps),
|
|
105
105
|
children: children
|
|
@@ -11,7 +11,7 @@ var _PuiDialog = _interopRequireDefault(require("../../others/PuiDialog"));
|
|
|
11
11
|
var _PuiSection = _interopRequireDefault(require("../../others/PuiSection"));
|
|
12
12
|
var _PuiTable = _interopRequireDefault(require("../../table/PuiTable"));
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
const _excluded = ["id", "className", "sx", "open", "title", "maxWidth", "fullWidth", "scroll", "loading", "rowCount", "rows", "page", "pageSize", "columns", "tableProps", "onPageChange", "onClose", "children"];
|
|
14
|
+
const _excluded = ["id", "className", "sx", "open", "title", "maxWidth", "fullWidth", "scroll", "loading", "rowCount", "rows", "page", "pageSize", "columns", "actions", "tableProps", "onPageChange", "onClose", "children"];
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
17
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -36,6 +36,7 @@ const PuiSearchDialog = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
36
36
|
page,
|
|
37
37
|
pageSize,
|
|
38
38
|
columns,
|
|
39
|
+
actions,
|
|
39
40
|
tableProps,
|
|
40
41
|
onPageChange,
|
|
41
42
|
onClose,
|
|
@@ -66,6 +67,7 @@ const PuiSearchDialog = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
66
67
|
rows: rows,
|
|
67
68
|
page: page,
|
|
68
69
|
pageSize: pageSize,
|
|
70
|
+
actions: actions,
|
|
69
71
|
columns: columns,
|
|
70
72
|
onPageChange: onPageChange
|
|
71
73
|
}))]
|
|
@@ -86,6 +88,7 @@ PuiSearchDialog.propTypes = {
|
|
|
86
88
|
page: _propTypes.default.number,
|
|
87
89
|
pageSize: _propTypes.default.number,
|
|
88
90
|
columns: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
91
|
+
actions: _propTypes.default.arrayOf(_propTypes.default.element),
|
|
89
92
|
tableProps: _propTypes.default.object,
|
|
90
93
|
onPageChange: _propTypes.default.func,
|
|
91
94
|
onClose: _propTypes.default.func
|