@portnet/ui 0.1.45 → 0.1.47
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.
|
@@ -101,7 +101,7 @@ const PuiSearchPage = _ref2 => {
|
|
|
101
101
|
sx: {
|
|
102
102
|
marginBottom: 2
|
|
103
103
|
},
|
|
104
|
-
children:
|
|
104
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_formik.Formik, _objectSpread(_objectSpread({
|
|
105
105
|
initialValues: {}
|
|
106
106
|
}, formikProps), {}, {
|
|
107
107
|
children: _ref3 => {
|
|
@@ -109,82 +109,68 @@ const PuiSearchPage = _ref2 => {
|
|
|
109
109
|
resetForm,
|
|
110
110
|
submitForm
|
|
111
111
|
} = _ref3;
|
|
112
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
113
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
112
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiFormikForm.default, {
|
|
113
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
|
|
114
|
+
container: true,
|
|
115
|
+
spacing: 2,
|
|
116
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
|
|
117
|
+
item: true,
|
|
118
|
+
xs: 12,
|
|
119
|
+
sm: 4,
|
|
120
|
+
children: [_children[0], " "]
|
|
121
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
|
|
122
|
+
item: true,
|
|
123
|
+
xs: 12,
|
|
124
|
+
sm: 4,
|
|
125
|
+
children: [_children[1], " "]
|
|
126
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
|
|
127
|
+
item: true,
|
|
128
|
+
xs: 12,
|
|
129
|
+
sm: 4,
|
|
130
|
+
children: [_children[2], " "]
|
|
131
|
+
}), isSearchSectionExpanded && _children.slice(3).map((child, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
132
|
+
item: true,
|
|
133
|
+
xs: 12,
|
|
134
|
+
sm: 4,
|
|
135
|
+
children: child
|
|
136
|
+
}, index))]
|
|
137
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
|
|
138
|
+
container: true,
|
|
139
|
+
justifyContent: "end",
|
|
140
|
+
spacing: 2,
|
|
141
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
142
|
+
item: true,
|
|
143
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
144
|
+
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
|
|
145
|
+
type: "effacer",
|
|
146
|
+
size: "small"
|
|
147
|
+
}),
|
|
148
|
+
onClick: resetForm,
|
|
149
|
+
color: "tertiary",
|
|
150
|
+
children: "Effacer"
|
|
151
|
+
})
|
|
152
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
153
|
+
item: true,
|
|
154
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
155
|
+
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
|
|
156
|
+
type: "rechercher",
|
|
157
|
+
size: "small"
|
|
158
|
+
}),
|
|
159
|
+
onClick: submitForm,
|
|
160
|
+
loadingPosition: "start",
|
|
161
|
+
children: "Rechercher"
|
|
162
|
+
})
|
|
163
|
+
}), additionalActions && additionalActions.map((actionItem, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
164
|
+
item: true,
|
|
165
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
166
|
+
startIcon: actionItem.icon,
|
|
167
|
+
onClick: actionItem.action,
|
|
168
|
+
children: actionItem.name
|
|
169
|
+
})
|
|
170
|
+
}, index))]
|
|
171
|
+
})]
|
|
150
172
|
});
|
|
151
173
|
}
|
|
152
|
-
})) : /*#__PURE__*/(0, _jsxRuntime.jsx)(PuiStandardSearchPageContainer, {
|
|
153
|
-
actions: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
|
|
154
|
-
container: true,
|
|
155
|
-
justifyContent: "end",
|
|
156
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
157
|
-
item: true,
|
|
158
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
159
|
-
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
|
|
160
|
-
type: "effacer",
|
|
161
|
-
size: "small"
|
|
162
|
-
}),
|
|
163
|
-
onClick: onReset,
|
|
164
|
-
color: "tertiary",
|
|
165
|
-
children: "Effacer"
|
|
166
|
-
})
|
|
167
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
168
|
-
item: true,
|
|
169
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
170
|
-
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
|
|
171
|
-
type: "rechercher",
|
|
172
|
-
size: "small"
|
|
173
|
-
}),
|
|
174
|
-
onClick: onSubmit,
|
|
175
|
-
loadingPosition: "start",
|
|
176
|
-
children: "Rechercher"
|
|
177
|
-
})
|
|
178
|
-
}), additionalActions && additionalActions.map((actionItem, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
179
|
-
item: true,
|
|
180
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
181
|
-
startIcon: actionItem.icon,
|
|
182
|
-
onClick: actionItem.action,
|
|
183
|
-
children: actionItem.name
|
|
184
|
-
})
|
|
185
|
-
}, index))]
|
|
186
|
-
}),
|
|
187
|
-
children: _children
|
|
188
174
|
}))
|
|
189
175
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTable.default, _objectSpread(_objectSpread({
|
|
190
176
|
paginationMode: "server"
|
|
@@ -204,7 +190,7 @@ PuiSearchPage.propTypes = {
|
|
|
204
190
|
bottomNav: _propTypes.default.bool,
|
|
205
191
|
loading: _propTypes.default.bool,
|
|
206
192
|
tableProps: _propTypes.default.shape({
|
|
207
|
-
pinnedColumns: _propTypes.default.object
|
|
193
|
+
pinnedColumns: _propTypes.default.object
|
|
208
194
|
}),
|
|
209
195
|
retour: _propTypes.default.bool,
|
|
210
196
|
onRetour: _propTypes.default.func,
|