ordering-ui-admin-external 1.13.2 → 1.13.4

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.
@@ -80,7 +80,7 @@ var DateTypeSelector = function DateTypeSelector(props) {
80
80
  var _handleChangeFromDate = function _handleChangeFromDate(date) {
81
81
  setStartDate(date);
82
82
  if (date !== null) {
83
- handleChangeFromDate((0, _dayjs.default)(date).format('YYYY-MM-DD'));
83
+ handleChangeFromDate((0, _dayjs.default)(date).format('YYYY-MM-DD 00:00:00'));
84
84
  } else {
85
85
  handleChangeFromDate(null);
86
86
  }
@@ -88,7 +88,7 @@ var DateTypeSelector = function DateTypeSelector(props) {
88
88
  var _handleChangeEndDate = function _handleChangeEndDate(date) {
89
89
  setEndDate(date);
90
90
  if (date !== null) {
91
- handleChangeEndDate((0, _dayjs.default)(date).format('YYYY-MM-DD'));
91
+ handleChangeEndDate((0, _dayjs.default)(date).format('YYYY-MM-DD 23:59:59'));
92
92
  } else {
93
93
  handleChangeEndDate(null);
94
94
  }
@@ -180,6 +180,10 @@ var BusinessProductAddFormUI = function BusinessProductAddFormUI(props) {
180
180
  });
181
181
  };
182
182
  var handleChangeSelect = function handleChangeSelect(value) {
183
+ setCurPreorderTime({
184
+ hour: '0',
185
+ minute: '0'
186
+ });
183
187
  if (value === 'custom') {
184
188
  setIsCustom(true);
185
189
  handleChangeItem({
@@ -187,10 +191,6 @@ var BusinessProductAddFormUI = function BusinessProductAddFormUI(props) {
187
191
  });
188
192
  return;
189
193
  }
190
- setCurPreorderTime({
191
- hour: '0',
192
- minute: '0'
193
- });
194
194
  setIsCustom(false);
195
195
  handleChangeItem({
196
196
  duration: value
@@ -163,6 +163,7 @@ var BusinessServiceProfessionalsUI = function BusinessServiceProfessionalsUI(pro
163
163
  handleDeleteUser: handleDeleteUser
164
164
  })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, openDetail && /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
165
165
  width: "760px",
166
+ hideCloseDefault: true,
166
167
  open: openDetail,
167
168
  onClose: function onClose() {
168
169
  return handleCloseDetail();
@@ -47,7 +47,7 @@ var OccupationSelectorUI = function OccupationSelectorUI(props) {
47
47
  return result;
48
48
  };
49
49
  (0, _react.useEffect)(function () {
50
- if (!occupations.length) return;
50
+ if (!(occupations !== null && occupations !== void 0 && occupations.length)) return;
51
51
  var _occupationList = occupations.filter(function (item) {
52
52
  return item.name.toLocaleLowerCase().includes(searchValue.toLocaleLowerCase());
53
53
  }).map(function (occupation) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.13.2",
3
+ "version": "1.13.4",
4
4
  "description": "Ordering UI Admin Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -61,7 +61,7 @@ export const DateTypeSelector = (props) => {
61
61
  const _handleChangeFromDate = (date) => {
62
62
  setStartDate(date)
63
63
  if (date !== null) {
64
- handleChangeFromDate(dayjs(date).format('YYYY-MM-DD'))
64
+ handleChangeFromDate(dayjs(date).format('YYYY-MM-DD 00:00:00'))
65
65
  } else {
66
66
  handleChangeFromDate(null)
67
67
  }
@@ -70,7 +70,7 @@ export const DateTypeSelector = (props) => {
70
70
  const _handleChangeEndDate = (date) => {
71
71
  setEndDate(date)
72
72
  if (date !== null) {
73
- handleChangeEndDate(dayjs(date).format('YYYY-MM-DD'))
73
+ handleChangeEndDate(dayjs(date).format('YYYY-MM-DD 23:59:59'))
74
74
  } else {
75
75
  handleChangeEndDate(null)
76
76
  }
@@ -147,12 +147,12 @@ const BusinessProductAddFormUI = (props) => {
147
147
  }
148
148
 
149
149
  const handleChangeSelect = (value) => {
150
+ setCurPreorderTime({ hour: '0', minute: '0' })
150
151
  if (value === 'custom') {
151
152
  setIsCustom(true)
152
153
  handleChangeItem({ duration: null })
153
154
  return
154
155
  }
155
- setCurPreorderTime({ hour: '0', minute: '0' })
156
156
  setIsCustom(false)
157
157
  handleChangeItem({ duration: value })
158
158
  }
@@ -200,6 +200,7 @@ const BusinessServiceProfessionalsUI = (props) => {
200
200
  {openDetail && (
201
201
  <Modal
202
202
  width='760px'
203
+ hideCloseDefault
203
204
  open={openDetail}
204
205
  onClose={() => handleCloseDetail()}
205
206
  >
@@ -25,7 +25,7 @@ const OccupationSelectorUI = (props) => {
25
25
  }
26
26
 
27
27
  useEffect(() => {
28
- if (!occupations.length) return
28
+ if (!occupations?.length) return
29
29
  const _occupationList = occupations.filter(item => item.name.toLocaleLowerCase().includes(searchValue.toLocaleLowerCase())).map(occupation => {
30
30
  return {
31
31
  value: occupation.id,