@portnet/ui 0.1.55 → 0.1.57
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/buttons/PuiButton.js +11 -15
- package/dist/components/buttons/PuiIconButton.js +7 -11
- package/dist/components/common/PuiAlertContext.js +1 -1
- package/dist/components/common/StyledMuiButton.js +7 -11
- package/dist/components/common/StyledMuiTextField.js +8 -12
- package/dist/components/inputs/PuiAutocomplete.js +8 -13
- package/dist/components/inputs/PuiCheckbox.js +10 -13
- package/dist/components/inputs/PuiCheckboxGroup.js +6 -8
- package/dist/components/inputs/PuiCheckboxItem.js +7 -11
- package/dist/components/inputs/PuiDateField.js +8 -12
- package/dist/components/inputs/PuiDateTimeField.js +11 -14
- package/dist/components/inputs/PuiFileField.js +9 -13
- package/dist/components/inputs/PuiRadioGroup.js +7 -11
- package/dist/components/inputs/PuiRadioItem.js +6 -8
- package/dist/components/inputs/PuiSelect.js +9 -14
- package/dist/components/inputs/PuiTextField.js +7 -11
- package/dist/components/others/DateTimePickerField.js +260 -0
- package/dist/components/others/PuiBadge.js +4 -6
- package/dist/components/others/PuiChip.js +14 -18
- package/dist/components/others/PuiDialog.js +7 -11
- package/dist/components/others/PuiFormikForm.js +1 -1
- package/dist/components/others/PuiGrid.js +3 -5
- package/dist/components/others/PuiIcon.js +7 -11
- package/dist/components/others/PuiLoadingBackdrop.js +1 -1
- package/dist/components/others/PuiMainContainer.js +6 -10
- package/dist/components/others/PuiNavigation.js +5 -7
- package/dist/components/others/PuiSection.js +6 -8
- package/dist/components/others/PuiTooltip.js +8 -12
- package/dist/components/others/custom-datepicker.css +227 -0
- package/dist/components/providers/PuiAlertProvider.js +7 -10
- package/dist/components/providers/PuiLocalizationProvider.js +5 -9
- package/dist/components/referentiel/common/ReferetielContext.js +1 -1
- package/dist/components/referentiel/common/constants/specificReferentielsBaseFilters.js +1 -1
- package/dist/components/referentiel/common/constants/specificReferentielsValidationSchemas.js +1 -1
- package/dist/components/referentiel/components/PuiBasePopupReferentielField.js +5 -7
- package/dist/components/referentiel/components/PuiCustomPopupReferentielField.js +5 -7
- package/dist/components/referentiel/components/PuiSimplePopupReferentielField.js +5 -8
- package/dist/components/referentiel/components/PuiSimpleReferentielField.js +8 -13
- package/dist/components/referentiel/components/PuiSpecificReferentielField.js +7 -10
- package/dist/components/referentiel/providers/PuiReferentielProvider.js +5 -7
- package/dist/components/tab/PuiTab.js +1 -1
- package/dist/components/tab/PuiTabs.js +9 -15
- package/dist/components/table/ActionPopover.js +1 -2
- package/dist/components/table/PuiTable.js +8 -13
- package/dist/components/table/PuiTableAction.js +4 -6
- package/dist/components/typography/PuiDefinition.js +1 -1
- package/dist/components/typography/PuiIndication.js +5 -7
- package/dist/components/typography/PuiMainTitle.js +5 -8
- package/dist/components/ui/dialogs/PuiSearchDialog.js +7 -11
- package/dist/components/ui/pages/errors/PuiErrorBasePage.js +1 -1
- package/dist/components/ui/pages/errors/PuiForbiddenErrorPage.js +1 -1
- package/dist/components/ui/pages/errors/PuiNetworkErrorPage.js +1 -1
- package/dist/components/ui/pages/errors/PuiNotFoundErrorPage.js +1 -1
- package/dist/components/ui/pages/errors/PuiServerErrorPage.js +1 -1
- package/dist/components/ui/pages/general/PuiDefaultPage.js +1 -1
- package/dist/components/ui/pages/general/PuiSearchPage.js +109 -87
- package/dist/config/mapping.js +1 -1
- package/dist/hooks/useAlert.js +2 -2
- package/dist/hooks/useAxios.js +1 -1
- package/dist/hooks/useQuery.js +2 -4
- package/dist/index.js +1 -1
- package/package.json +2 -1
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.symbol.description.js");
|
|
3
4
|
require("core-js/modules/es.weak-map.js");
|
|
4
|
-
require("core-js/modules/esnext.iterator.constructor.js");
|
|
5
|
-
require("core-js/modules/esnext.iterator.filter.js");
|
|
6
|
-
require("core-js/modules/esnext.iterator.for-each.js");
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.default = void 0;
|
|
11
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
12
9
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
13
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -23,15 +20,33 @@ var _PuiDefaultPage = _interopRequireDefault(require("./PuiDefaultPage"));
|
|
|
23
20
|
var _ExpandMore = _interopRequireDefault(require("@mui/icons-material/ExpandMore"));
|
|
24
21
|
var _ExpandLess = _interopRequireDefault(require("@mui/icons-material/ExpandLess"));
|
|
25
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
|
-
function _interopRequireDefault(
|
|
23
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
24
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
28
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
25
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
29
26
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30
27
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31
|
-
function _defineProperty(
|
|
32
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i
|
|
33
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
34
|
-
const
|
|
28
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
30
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // Container for search form and actions
|
|
31
|
+
const PuiStandardSearchPageContainer = _ref => {
|
|
32
|
+
let {
|
|
33
|
+
actions,
|
|
34
|
+
children
|
|
35
|
+
} = _ref;
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
|
|
37
|
+
container: true,
|
|
38
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
39
|
+
item: true,
|
|
40
|
+
xs: 12,
|
|
41
|
+
children: children
|
|
42
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
43
|
+
item: true,
|
|
44
|
+
xs: 12,
|
|
45
|
+
children: actions
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
const PuiSearchPage = _ref2 => {
|
|
35
50
|
let {
|
|
36
51
|
formik,
|
|
37
52
|
formikProps,
|
|
@@ -47,21 +62,14 @@ const PuiSearchPage = _ref => {
|
|
|
47
62
|
onRetour,
|
|
48
63
|
onReset,
|
|
49
64
|
onSubmit,
|
|
65
|
+
children: _children,
|
|
50
66
|
additionalActions,
|
|
51
67
|
collapsibleSearchSection = true // Collapsible by default
|
|
52
|
-
} =
|
|
68
|
+
} = _ref2;
|
|
53
69
|
const [isSearchSectionExpanded, setSearchSectionExpanded] = (0, _react.useState)(false);
|
|
54
70
|
const toggleSearchSection = () => {
|
|
55
71
|
setSearchSectionExpanded(prev => !prev);
|
|
56
72
|
};
|
|
57
|
-
|
|
58
|
-
// Extract columns from tableProps
|
|
59
|
-
const {
|
|
60
|
-
columns
|
|
61
|
-
} = tableProps || [];
|
|
62
|
-
const alwaysVisibleFields = columns.slice(0, 3); // First row fields
|
|
63
|
-
const expandableFields = columns.slice(3); // Second row fields
|
|
64
|
-
|
|
65
73
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiDefaultPage.default, {
|
|
66
74
|
title: title,
|
|
67
75
|
titleIcon: titleIcon,
|
|
@@ -82,7 +90,7 @@ const PuiSearchPage = _ref => {
|
|
|
82
90
|
},
|
|
83
91
|
children: [collapsibleSearchSection && (isSearchSectionExpanded ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ExpandLess.default, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ExpandMore.default, {})), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
84
92
|
style: {
|
|
85
|
-
marginLeft: "8px"
|
|
93
|
+
marginLeft: collapsibleSearchSection ? "8px" : "0px"
|
|
86
94
|
},
|
|
87
95
|
children: "Param\xE8tres de recherche"
|
|
88
96
|
})]
|
|
@@ -90,76 +98,95 @@ const PuiSearchPage = _ref => {
|
|
|
90
98
|
sx: {
|
|
91
99
|
marginBottom: 2
|
|
92
100
|
},
|
|
93
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_formik.Formik, _objectSpread(_objectSpread({
|
|
94
|
-
initialValues:
|
|
101
|
+
children: isSearchSectionExpanded && (formik ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_formik.Formik, _objectSpread(_objectSpread({
|
|
102
|
+
initialValues: {}
|
|
95
103
|
}, formikProps), {}, {
|
|
96
|
-
children:
|
|
104
|
+
children: _ref3 => {
|
|
97
105
|
let {
|
|
98
106
|
resetForm,
|
|
99
107
|
submitForm
|
|
100
|
-
} =
|
|
101
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
102
|
-
children:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
})
|
|
136
|
-
}),
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
|
|
140
|
-
type: "rechercher",
|
|
141
|
-
size: "small"
|
|
142
|
-
}),
|
|
143
|
-
onClick: submitForm,
|
|
144
|
-
loadingPosition: "start",
|
|
145
|
-
children: "Rechercher"
|
|
146
|
-
})
|
|
147
|
-
}), additionalActions && additionalActions.map((actionItem, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
148
|
-
item: true,
|
|
149
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
150
|
-
startIcon: actionItem.icon,
|
|
151
|
-
onClick: actionItem.action,
|
|
152
|
-
children: actionItem.name
|
|
153
|
-
})
|
|
154
|
-
}, index))]
|
|
155
|
-
})]
|
|
108
|
+
} = _ref3;
|
|
109
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiFormikForm.default, {
|
|
110
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PuiStandardSearchPageContainer, {
|
|
111
|
+
actions: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
|
|
112
|
+
container: true,
|
|
113
|
+
justifyContent: "end",
|
|
114
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
115
|
+
item: true,
|
|
116
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
117
|
+
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
|
|
118
|
+
type: "effacer",
|
|
119
|
+
size: "small"
|
|
120
|
+
}),
|
|
121
|
+
onClick: resetForm,
|
|
122
|
+
color: "tertiary",
|
|
123
|
+
children: "Effacer"
|
|
124
|
+
})
|
|
125
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
126
|
+
item: true,
|
|
127
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
128
|
+
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
|
|
129
|
+
type: "rechercher",
|
|
130
|
+
size: "small"
|
|
131
|
+
}),
|
|
132
|
+
onClick: submitForm,
|
|
133
|
+
loadingPosition: "start",
|
|
134
|
+
children: "Rechercher"
|
|
135
|
+
})
|
|
136
|
+
}), additionalActions && additionalActions.map((actionItem, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
137
|
+
item: true,
|
|
138
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
139
|
+
startIcon: actionItem.icon,
|
|
140
|
+
onClick: actionItem.action,
|
|
141
|
+
children: actionItem.name
|
|
142
|
+
})
|
|
143
|
+
}, index))]
|
|
144
|
+
}),
|
|
145
|
+
children: _children
|
|
146
|
+
})
|
|
156
147
|
});
|
|
157
148
|
}
|
|
149
|
+
})) : /*#__PURE__*/(0, _jsxRuntime.jsx)(PuiStandardSearchPageContainer, {
|
|
150
|
+
actions: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
|
|
151
|
+
container: true,
|
|
152
|
+
justifyContent: "end",
|
|
153
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
154
|
+
item: true,
|
|
155
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
156
|
+
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
|
|
157
|
+
type: "effacer",
|
|
158
|
+
size: "small"
|
|
159
|
+
}),
|
|
160
|
+
onClick: onReset,
|
|
161
|
+
color: "tertiary",
|
|
162
|
+
children: "Effacer"
|
|
163
|
+
})
|
|
164
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
165
|
+
item: true,
|
|
166
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
167
|
+
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
|
|
168
|
+
type: "rechercher",
|
|
169
|
+
size: "small"
|
|
170
|
+
}),
|
|
171
|
+
onClick: onSubmit,
|
|
172
|
+
loadingPosition: "start",
|
|
173
|
+
children: "Rechercher"
|
|
174
|
+
})
|
|
175
|
+
}), additionalActions && additionalActions.map((actionItem, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
176
|
+
item: true,
|
|
177
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
178
|
+
startIcon: actionItem.icon,
|
|
179
|
+
onClick: actionItem.action,
|
|
180
|
+
children: actionItem.name
|
|
181
|
+
})
|
|
182
|
+
}, index))]
|
|
183
|
+
}),
|
|
184
|
+
children: _children
|
|
158
185
|
}))
|
|
159
186
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTable.default, _objectSpread(_objectSpread({
|
|
160
187
|
paginationMode: "server"
|
|
161
188
|
}, tableProps), {}, {
|
|
162
|
-
pinnedColumns: tableProps.pinnedColumns
|
|
189
|
+
pinnedColumns: tableProps.pinnedColumns // Added pinnedColumns
|
|
163
190
|
}))]
|
|
164
191
|
});
|
|
165
192
|
};
|
|
@@ -167,19 +194,14 @@ PuiSearchPage.propTypes = {
|
|
|
167
194
|
formik: _propTypes.default.bool,
|
|
168
195
|
formikProps: _propTypes.default.object,
|
|
169
196
|
title: _propTypes.default.string.isRequired,
|
|
170
|
-
titleIcon: _propTypes.default.element,
|
|
197
|
+
titleIcon: _propTypes.default.element.isRequired,
|
|
171
198
|
trace: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
172
199
|
navActions: _propTypes.default.element,
|
|
173
200
|
topNav: _propTypes.default.bool,
|
|
174
201
|
bottomNav: _propTypes.default.bool,
|
|
175
202
|
loading: _propTypes.default.bool,
|
|
176
203
|
tableProps: _propTypes.default.shape({
|
|
177
|
-
|
|
178
|
-
field: _propTypes.default.string.isRequired,
|
|
179
|
-
headerName: _propTypes.default.string.isRequired,
|
|
180
|
-
renderCell: _propTypes.default.func
|
|
181
|
-
})).isRequired,
|
|
182
|
-
pinnedColumns: _propTypes.default.object
|
|
204
|
+
pinnedColumns: _propTypes.default.object // Added pinnedColumns prop type
|
|
183
205
|
}),
|
|
184
206
|
retour: _propTypes.default.bool,
|
|
185
207
|
onRetour: _propTypes.default.func,
|
package/dist/config/mapping.js
CHANGED
|
@@ -12,7 +12,7 @@ var _MoreVert = _interopRequireDefault(require("@mui/icons-material/MoreVert"));
|
|
|
12
12
|
var _Report = _interopRequireDefault(require("@mui/icons-material/Report"));
|
|
13
13
|
var _Search = _interopRequireDefault(require("@mui/icons-material/Search"));
|
|
14
14
|
var _Visibility = _interopRequireDefault(require("@mui/icons-material/Visibility"));
|
|
15
|
-
function _interopRequireDefault(
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
const iconsMapping = exports.iconsMapping = {
|
|
17
17
|
recherche: _Search.default,
|
|
18
18
|
supprimer: _Delete.default,
|
package/dist/hooks/useAlert.js
CHANGED
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _PuiAlertContext = _interopRequireDefault(require("../components/common/PuiAlertContext"));
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
const useAlert = () => {
|
|
15
15
|
const {
|
|
16
16
|
dispatchAlert
|
package/dist/hooks/useAxios.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _axios = _interopRequireDefault(require("axios"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
const useAxios = function useAxios(token) {
|
|
10
10
|
let secret = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
11
11
|
let baseURL = arguments.length > 2 ? arguments[2] : undefined;
|
package/dist/hooks/useQuery.js
CHANGED
|
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
require("core-js/modules/es.regexp.exec.js");
|
|
8
|
-
require("core-js/modules/es.string.search.js");
|
|
9
|
-
require("core-js/modules/esnext.iterator.constructor.js");
|
|
10
|
-
require("core-js/modules/esnext.iterator.for-each.js");
|
|
11
7
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
8
|
require("core-js/modules/web.url-search-params.js");
|
|
9
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
10
|
+
require("core-js/modules/es.string.search.js");
|
|
13
11
|
const useQuery = () => {
|
|
14
12
|
const queryParams = new URLSearchParams(window.location.search);
|
|
15
13
|
const queryObject = {};
|
package/dist/index.js
CHANGED
|
@@ -332,4 +332,4 @@ var _PuiDefaultPage = _interopRequireDefault(require("./components/ui/pages/gene
|
|
|
332
332
|
var _PuiSearchPage = _interopRequireDefault(require("./components/ui/pages/general/PuiSearchPage"));
|
|
333
333
|
var _useAlert = _interopRequireDefault(require("./hooks/useAlert"));
|
|
334
334
|
var _useQuery = _interopRequireDefault(require("./hooks/useQuery"));
|
|
335
|
-
function _interopRequireDefault(
|
|
335
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portnet/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.57",
|
|
4
4
|
"description": "Portnet UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@testing-library/jest-dom": "^5.16.5",
|
|
26
26
|
"@testing-library/react": "^13.4.0",
|
|
27
27
|
"@testing-library/user-event": "^13.5.0",
|
|
28
|
+
"@trendmicro/react-datepicker": "^1.0.0-alpha.7",
|
|
28
29
|
"axios": "^0.27.2",
|
|
29
30
|
"formik": "^2.2.9",
|
|
30
31
|
"lodash": "^4.17.21",
|