ordering-ui-admin-external 1.19.2 → 1.19.3

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.
@@ -34,7 +34,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
34
34
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
35
35
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
36
36
  var PluginListUI = function PluginListUI(props) {
37
- var _pluginListState$sysP, _currentPlugins$plugi;
37
+ var _pluginListState$sysP, _currentPlugins$plugi, _pluginListState$sysP2, _currentPlugins$sysPl;
38
38
  var pluginListState = props.pluginListState,
39
39
  isAddMode = props.isAddMode,
40
40
  setIsAddMode = props.setIsAddMode,
@@ -240,6 +240,36 @@ var PluginListUI = function PluginListUI(props) {
240
240
  handleChangePageSize: function handleChangePageSize(e) {
241
241
  return _handleChangePageSize(e, 'plugins');
242
242
  }
243
+ }))), !pluginListState.loading && ((_pluginListState$sysP2 = pluginListState.sysPlugins) === null || _pluginListState$sysP2 === void 0 ? void 0 : _pluginListState$sysP2.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.PLuginsSeparator, {
244
+ h: "50%"
245
+ }, /*#__PURE__*/_react.default.createElement(_styles2.Header, {
246
+ mb: 0
247
+ }, /*#__PURE__*/_react.default.createElement("h1", {
248
+ style: {
249
+ marginTop: 20
250
+ }
251
+ }, t('SYSTEM_PLUGINS', 'System Plugins'))), /*#__PURE__*/_react.default.createElement(_styles2.PluginsTable, null, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("th", null, t('PLUGINS', 'Plugins')), /*#__PURE__*/_react.default.createElement("th", null, t('ACTIONS', 'Actions')))), currentPlugins.sysPlugins.map(function (plugin) {
252
+ return /*#__PURE__*/_react.default.createElement(_styles2.PluginTbody, {
253
+ key: plugin.id
254
+ }, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, plugin === null || plugin === void 0 ? void 0 : plugin.name), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles2.ActionsContainer, null, plugin !== null && plugin !== void 0 && plugin.installed ? /*#__PURE__*/_react.default.createElement("span", null, t('SYSTEM_PLUGIN_INSTALLED', 'Installed')) : /*#__PURE__*/_react.default.createElement(_styles.Button, {
255
+ borderRadius: "8px",
256
+ color: "lightPrimary",
257
+ onClick: function onClick() {
258
+ return handleInstallSysPlugin(plugin.id);
259
+ }
260
+ }, /*#__PURE__*/_react.default.createElement("span", null, t('INSTALL', 'Install')))))));
261
+ })), /*#__PURE__*/_react.default.createElement(_styles2.PagesBottomContainer, {
262
+ justifyContent: "flex-end"
263
+ }, ((_currentPlugins$sysPl = currentPlugins.sysPlugins) === null || _currentPlugins$sysPl === void 0 ? void 0 : _currentPlugins$sysPl.length) > 0 && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
264
+ currentPage: currentPage.sysPlugins,
265
+ totalPages: totalPages.sysPlugins,
266
+ handleChangePage: function handleChangePage(e) {
267
+ return _handleChangePage(e, 'sysPlugins');
268
+ },
269
+ defaultPageSize: pluginsPerPage.sysPlugins,
270
+ handleChangePageSize: function handleChangePageSize(e) {
271
+ return _handleChangePageSize(e, 'sysPlugins');
272
+ }
243
273
  })))), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
244
274
  title: t('WEB_APPNAME', 'Ordering'),
245
275
  content: alertState.content,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.19.2",
3
+ "version": "1.19.3",
4
4
  "description": "Ordering UI Admin Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -83,7 +83,7 @@
83
83
  "lodash": "^4.17.20",
84
84
  "moment": "^2.29.1",
85
85
  "moment-range": "^4.0.2",
86
- "ordering-components-admin-external": "1.19.1",
86
+ "ordering-components-admin-external": "1.19.2",
87
87
  "polished": "^3.6.7",
88
88
  "prop-types": "^15.7.2",
89
89
  "react-big-calendar": "^1.4.2",
@@ -235,7 +235,7 @@ const PluginListUI = (props) => {
235
235
  )}
236
236
  </PLuginsSeparator>
237
237
 
238
- {/* {!pluginListState.loading && pluginListState.sysPlugins?.length > 0 && (
238
+ {!pluginListState.loading && pluginListState.sysPlugins?.length > 0 && (
239
239
  <PLuginsSeparator h='50%'>
240
240
  <Header mb={0}>
241
241
  <h1 style={{ marginTop: 20 }}>{t('SYSTEM_PLUGINS', 'System Plugins')}</h1>
@@ -283,7 +283,7 @@ const PluginListUI = (props) => {
283
283
  )}
284
284
  </PagesBottomContainer>
285
285
  </PLuginsSeparator>
286
- )} */}
286
+ )}
287
287
  </PluginListContainer>
288
288
  <Alert
289
289
  title={t('WEB_APPNAME', 'Ordering')}