ordering-ui-admin-external 1.43.53 → 1.43.54

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.
@@ -26,7 +26,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
26
26
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
27
27
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
28
  var DriversGroupAutoassignUI = function DriversGroupAutoassignUI(props) {
29
- var _theme$images$icons, _theme$images$icons2, _theme$images$icons3, _theme$images$icons4, _theme$images$icons5, _changesState$autoass, _ref, _changesState$autoass2, _ref2, _changesState$autoass3, _changesState$autoass4, _changesState$autoass5, _autoRejectOrderGroup, _autoRejectOrderGroup2, _autoRejectOrderGroup3, _ref3, _changesState$autoass6, _ref4, _changesState$autoass7, _ref5, _changesState$autoass8, _changesState$autoass9;
29
+ var _theme$images$icons, _theme$images$icons2, _theme$images$icons3, _theme$images$icons4, _theme$images$icons5, _changesState$autoass, _ref, _changesState$autoass2, _ref2, _changesState$autoass3, _changesState$autoass4, _changesState$autoass5, _autoRejectOrderGroup, _autoRejectOrderGroup2, _autoRejectOrderGroup3, _ref3, _changesState$autoass6, _ref4, _changesState$autoass7, _ref5, _changesState$autoass8, _changesState$autoass9, _changesState$autorej;
30
30
  var autoAssign = props.autoAssign,
31
31
  autoRejectOrderGroup = props.autoRejectOrderGroup,
32
32
  onSelectAssign = props.onSelectAssign,
@@ -195,7 +195,16 @@ var DriversGroupAutoassignUI = function DriversGroupAutoassignUI(props) {
195
195
  autoassign_groupable_individual_orders_only: e.target.checked
196
196
  });
197
197
  }
198
- }), /*#__PURE__*/_react.default.createElement("span", null, t('DO_NOT_ASSIGN_MORE_THAN_1_ORDER_IF_ORDER_CAN_NOT_GROUPED', 'Do not assign more than 1 order IF the order can’t be grouped'))));
198
+ }), /*#__PURE__*/_react.default.createElement("span", null, t('DO_NOT_ASSIGN_MORE_THAN_1_ORDER_IF_ORDER_CAN_NOT_GROUPED', 'Do not assign more than 1 order IF the order can’t be grouped'))), /*#__PURE__*/_react.default.createElement(_styles2.CheckboxWrapper, {
199
+ isPadding: true
200
+ }, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
201
+ checked: (_changesState$autorej = changesState === null || changesState === void 0 ? void 0 : changesState.autoreject_after_expiration) !== null && _changesState$autorej !== void 0 ? _changesState$autorej : curDriversGroup === null || curDriversGroup === void 0 ? void 0 : curDriversGroup.autoreject_after_expiration,
202
+ onChange: function onChange(e) {
203
+ return onChangeSave({
204
+ autoreject_after_expiration: e.target.checked
205
+ });
206
+ }
207
+ }), /*#__PURE__*/_react.default.createElement("span", null, t('AUTOREJECT_AFTER_EXPIRATION', 'Autoreject after expiration'))));
199
208
  };
200
209
  var DriversGroupAutoassign = exports.DriversGroupAutoassign = function DriversGroupAutoassign(props) {
201
210
  var driversGroupAutoassignProps = _objectSpread(_objectSpread({}, props), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.43.53",
3
+ "version": "1.43.54",
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.43.34",
86
+ "ordering-components-admin-external": "1.43.35",
87
87
  "polished": "^3.6.7",
88
88
  "prop-types": "^15.7.2",
89
89
  "react-big-calendar": "^1.4.2",
@@ -226,6 +226,13 @@ const DriversGroupAutoassignUI = (props) => {
226
226
  />
227
227
  <span>{t('DO_NOT_ASSIGN_MORE_THAN_1_ORDER_IF_ORDER_CAN_NOT_GROUPED', 'Do not assign more than 1 order IF the order can’t be grouped')}</span>
228
228
  </CheckboxWrapper>
229
+ <CheckboxWrapper isPadding>
230
+ <Checkbox
231
+ checked={changesState?.autoreject_after_expiration ?? curDriversGroup?.autoreject_after_expiration}
232
+ onChange={e => onChangeSave({ autoreject_after_expiration: e.target.checked })}
233
+ />
234
+ <span>{t('AUTOREJECT_AFTER_EXPIRATION', 'Autoreject after expiration')}</span>
235
+ </CheckboxWrapper>
229
236
  </AutoassignContainer>
230
237
  )
231
238
  }