ordering-ui-admin-external 1.12.0 → 1.12.2

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.
@@ -91,6 +91,9 @@ var OrdersTable = function OrdersTable(props) {
91
91
  }, {
92
92
  value: 'orderNumber',
93
93
  content: t('INVOICE_ORDER_NO', 'Order No.')
94
+ }, {
95
+ value: 'cartGroupId',
96
+ content: t('GROUP_ORDER', 'Group Order')
94
97
  }, {
95
98
  value: 'dateTime',
96
99
  content: t('DATE_TIME', 'Date and time')
@@ -459,7 +462,7 @@ var OrdersTable = function OrdersTable(props) {
459
462
  alt: "six dots"
460
463
  }), /*#__PURE__*/_react.default.createElement("span", null, (_allowColumns$column6 = allowColumns[column]) === null || _allowColumns$column6 === void 0 ? void 0 : _allowColumns$column6.title)));
461
464
  })))), orderList.loading || !allowColumns ? _toConsumableArray(Array(10).keys()).map(function (i) {
462
- var _allowColumns$slaBar2, _allowColumns$orderNu2, _allowColumns$dateTim2, _allowColumns$orderNu3, _allowColumns$dateTim3, _allowColumns$status, _allowColumns$busines, _allowColumns$custome, _allowColumns$driver, _allowColumns$deliver, _allowColumns$status2, _allowColumns$advance, _allowColumns$advance2, _allowColumns$advance3, _allowColumns$total;
465
+ var _allowColumns$slaBar2, _allowColumns$orderNu2, _allowColumns$dateTim2, _allowColumns$orderNu3, _allowColumns$dateTim3, _allowColumns$cartGro, _allowColumns$status, _allowColumns$busines, _allowColumns$custome, _allowColumns$driver, _allowColumns$deliver, _allowColumns$status2, _allowColumns$advance, _allowColumns$advance2, _allowColumns$advance3, _allowColumns$total;
463
466
  return /*#__PURE__*/_react.default.createElement(_styles.OrderTbody, {
464
467
  key: i
465
468
  }, /*#__PURE__*/_react.default.createElement("tr", null, (allowColumns === null || allowColumns === void 0 ? void 0 : (_allowColumns$slaBar2 = allowColumns.slaBar) === null || _allowColumns$slaBar2 === void 0 ? void 0 : _allowColumns$slaBar2.visable) && /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles.Timestatus, null)), /*#__PURE__*/_react.default.createElement("td", {
@@ -476,7 +479,15 @@ var OrdersTable = function OrdersTable(props) {
476
479
  width: 100
477
480
  })), (allowColumns === null || allowColumns === void 0 ? void 0 : (_allowColumns$dateTim3 = allowColumns.dateTime) === null || _allowColumns$dateTim3 === void 0 ? void 0 : _allowColumns$dateTim3.visable) && /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
478
481
  width: 120
479
- })))), (allowColumns === null || allowColumns === void 0 ? void 0 : (_allowColumns$status = allowColumns.status) === null || _allowColumns$status === void 0 ? void 0 : _allowColumns$status.visable) && !isSelectedOrders && /*#__PURE__*/_react.default.createElement("td", {
482
+ })))), (allowColumns === null || allowColumns === void 0 ? void 0 : (_allowColumns$cartGro = allowColumns.cartGroupId) === null || _allowColumns$cartGro === void 0 ? void 0 : _allowColumns$cartGro.visable) && /*#__PURE__*/_react.default.createElement("td", {
483
+ className: "statusInfo"
484
+ }, /*#__PURE__*/_react.default.createElement(_styles.StatusInfo, null, /*#__PURE__*/_react.default.createElement("div", {
485
+ className: "info"
486
+ }, /*#__PURE__*/_react.default.createElement("p", {
487
+ className: "bold"
488
+ }, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
489
+ width: 100
490
+ }))))), (allowColumns === null || allowColumns === void 0 ? void 0 : (_allowColumns$status = allowColumns.status) === null || _allowColumns$status === void 0 ? void 0 : _allowColumns$status.visable) && !isSelectedOrders && /*#__PURE__*/_react.default.createElement("td", {
480
491
  className: "statusInfo"
481
492
  }, /*#__PURE__*/_react.default.createElement(_styles.StatusInfo, null, /*#__PURE__*/_react.default.createElement("div", {
482
493
  className: "info"
@@ -625,6 +636,14 @@ var OrdersTable = function OrdersTable(props) {
625
636
  className: "bold"
626
637
  }, (_getOrderStatus = getOrderStatus(order.status)) === null || _getOrderStatus === void 0 ? void 0 : _getOrderStatus.value)));
627
638
  }
639
+ if (column === 'cartGroupId') {
640
+ return /*#__PURE__*/_react.default.createElement("td", {
641
+ className: "orderGroupId",
642
+ key: "cart_group_id".concat(i, "-").concat(index)
643
+ }, /*#__PURE__*/_react.default.createElement(_styles.StatusInfo, null, (order === null || order === void 0 ? void 0 : order.cart_group_id) && /*#__PURE__*/_react.default.createElement("p", {
644
+ className: "bold"
645
+ }, t('No', 'No'), ". ", order === null || order === void 0 ? void 0 : order.cart_group_id)));
646
+ }
628
647
  if (column === 'business') {
629
648
  var _order$business, _theme$images, _theme$images$dummies, _order$business2, _order$business3, _order$business3$city;
630
649
  return /*#__PURE__*/_react.default.createElement("td", {
@@ -735,7 +754,7 @@ var OrdersTable = function OrdersTable(props) {
735
754
  utc: false
736
755
  }))));
737
756
  }
738
- })));
757
+ }), /*#__PURE__*/_react.default.createElement("td", null)));
739
758
  }))), pagination && /*#__PURE__*/_react.default.createElement(_styles.WrapperPagination, null, /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
740
759
  currentPage: pagination.currentPage,
741
760
  totalPages: Math.ceil((pagination === null || pagination === void 0 ? void 0 : pagination.total) / pagination.pageSize),
@@ -85,12 +85,15 @@ var SidebarMenuUI = function SidebarMenuUI(props) {
85
85
  title: t('APPOINTMENTS', 'Appointments'),
86
86
  pageName: 'appointments',
87
87
  url: '/appointments'
88
- }, {
89
- id: 5,
90
- title: t('GIFT_CARD_MANAGER', 'Gift card manager'),
91
- pageName: 'giftCards',
92
- url: '/gift-cards'
93
- }];
88
+ }
89
+ // {
90
+ // id: 5,
91
+ // title: t('GIFT_CARD_MANAGER', 'Gift card manager'),
92
+ // pageName: 'giftCards',
93
+ // url: '/gift-cards'
94
+ // }
95
+ ];
96
+
94
97
  var loyaltySubMenus = [{
95
98
  id: 1,
96
99
  title: t('LOYALTY_AUTOMATION', 'Loyalty automation'),
@@ -184,15 +187,12 @@ var SidebarMenuUI = function SidebarMenuUI(props) {
184
187
  title: t('MANAGERS', 'Managers'),
185
188
  pageName: 'managers',
186
189
  url: '/users/managers'
187
- }
188
- // {
189
- // id: 3,
190
- // title: t('PROFESSIONALS', 'Professionals'),
191
- // pageName: 'professionals',
192
- // url: '/users/professionals'
193
- // }
194
- ];
195
-
190
+ }, {
191
+ id: 3,
192
+ title: t('PROFESSIONALS', 'Professionals'),
193
+ pageName: 'professionals',
194
+ url: '/users/professionals'
195
+ }];
196
196
  var buisnessOwnerUsersMenuIncluded = [3];
197
197
  var settingsSubMenus = [{
198
198
  id: 1,
@@ -79,10 +79,10 @@ var BusinessProductAddFormUI = function BusinessProductAddFormUI(props) {
79
79
  var typeList = [{
80
80
  value: 'item',
81
81
  content: /*#__PURE__*/_react.default.createElement(_styles2.Option, null, t('ITEM', 'Item'))
82
- }
83
- // { value: 'service', content: <Option>{t('SERVICE', 'Service')}</Option> }
84
- ];
85
-
82
+ }, {
83
+ value: 'service',
84
+ content: /*#__PURE__*/_react.default.createElement(_styles2.Option, null, t('SERVICE', 'Service'))
85
+ }];
86
86
  var durationList = [{
87
87
  value: 15,
88
88
  content: /*#__PURE__*/_react.default.createElement(_styles2.Option, null, "15 ", /*#__PURE__*/_react.default.createElement("span", null, t('MINUTES', 'minutes')))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
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.12.0",
86
+ "ordering-components-admin-external": "1.12.3",
87
87
  "polished": "^3.6.7",
88
88
  "prop-types": "^15.7.2",
89
89
  "react-big-calendar": "^1.4.2",
@@ -79,6 +79,10 @@ export const OrdersTable = (props) => {
79
79
  value: 'orderNumber',
80
80
  content: t('INVOICE_ORDER_NO', 'Order No.')
81
81
  },
82
+ {
83
+ value: 'cartGroupId',
84
+ content: t('GROUP_ORDER', 'Group Order')
85
+ },
82
86
  {
83
87
  value: 'dateTime',
84
88
  content: t('DATE_TIME', 'Date and time')
@@ -446,6 +450,15 @@ export const OrdersTable = (props) => {
446
450
  </div>
447
451
  </OrderNumberContainer>
448
452
  </td>
453
+ {allowColumns?.cartGroupId?.visable && (
454
+ <td className='statusInfo'>
455
+ <StatusInfo>
456
+ <div className='info'>
457
+ <p className='bold'><Skeleton width={100} /></p>
458
+ </div>
459
+ </StatusInfo>
460
+ </td>
461
+ )}
449
462
  {allowColumns?.status?.visable && !isSelectedOrders && (
450
463
  <td className='statusInfo'>
451
464
  <StatusInfo>
@@ -602,6 +615,17 @@ export const OrdersTable = (props) => {
602
615
  </td>
603
616
  )
604
617
  }
618
+ if (column === 'cartGroupId') {
619
+ return (
620
+ <td className='orderGroupId' key={`cart_group_id${i}-${index}`}>
621
+ <StatusInfo>
622
+ {order?.cart_group_id && (
623
+ <p className='bold'>{t('No', 'No')}. {order?.cart_group_id}</p>
624
+ )}
625
+ </StatusInfo>
626
+ </td>
627
+ )
628
+ }
605
629
  if (column === 'business') {
606
630
  return (
607
631
  <td className='businessInfo' key={`businessInfo${i}-${index}`}>
@@ -738,6 +762,7 @@ export const OrdersTable = (props) => {
738
762
  )
739
763
  }
740
764
  })}
765
+ <td />
741
766
  </tr>
742
767
  </OrderTbody>
743
768
  ))
@@ -86,13 +86,13 @@ const SidebarMenuUI = (props) => {
86
86
  title: t('APPOINTMENTS', 'Appointments'),
87
87
  pageName: 'appointments',
88
88
  url: '/appointments'
89
- },
90
- {
91
- id: 5,
92
- title: t('GIFT_CARD_MANAGER', 'Gift card manager'),
93
- pageName: 'giftCards',
94
- url: '/gift-cards'
95
89
  }
90
+ // {
91
+ // id: 5,
92
+ // title: t('GIFT_CARD_MANAGER', 'Gift card manager'),
93
+ // pageName: 'giftCards',
94
+ // url: '/gift-cards'
95
+ // }
96
96
  ]
97
97
 
98
98
  const loyaltySubMenus = [
@@ -209,13 +209,13 @@ const SidebarMenuUI = (props) => {
209
209
  title: t('MANAGERS', 'Managers'),
210
210
  pageName: 'managers',
211
211
  url: '/users/managers'
212
+ },
213
+ {
214
+ id: 3,
215
+ title: t('PROFESSIONALS', 'Professionals'),
216
+ pageName: 'professionals',
217
+ url: '/users/professionals'
212
218
  }
213
- // {
214
- // id: 3,
215
- // title: t('PROFESSIONALS', 'Professionals'),
216
- // pageName: 'professionals',
217
- // url: '/users/professionals'
218
- // }
219
219
  ]
220
220
 
221
221
  const buisnessOwnerUsersMenuIncluded = [3]
@@ -56,7 +56,7 @@ const BusinessProductAddFormUI = (props) => {
56
56
 
57
57
  const typeList = [
58
58
  { value: 'item', content: <Option>{t('ITEM', 'Item')}</Option> },
59
- // { value: 'service', content: <Option>{t('SERVICE', 'Service')}</Option> }
59
+ { value: 'service', content: <Option>{t('SERVICE', 'Service')}</Option> }
60
60
  ]
61
61
 
62
62
  const durationList = [