ordering-ui-admin-external 1.43.9 → 1.43.11

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.
@@ -126,7 +126,37 @@ var UserFilterGroupUI = function UserFilterGroupUI(props) {
126
126
  padding: "30px",
127
127
  open: isFilterModal,
128
128
  onClose: onClose
129
- }, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.FormGroup, null, /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
129
+ }, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, isCustomers && /*#__PURE__*/_react.default.createElement(_styles2.FormGroup, null, /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('ID', 'ID')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
130
+ type: "text",
131
+ placeholder: t('ID', 'ID'),
132
+ autoComplete: "off",
133
+ value: (filterValues === null || filterValues === void 0 ? void 0 : filterValues.id) || '',
134
+ onChange: function onChange(e) {
135
+ return handleChangeValue({
136
+ id: e.target.value
137
+ });
138
+ },
139
+ onKeyPress: function onKeyPress(e) {
140
+ if (!/^[0-9]$/.test(e.key)) {
141
+ e.preventDefault();
142
+ }
143
+ }
144
+ })), /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('EXTERNAL_ID', 'External id')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
145
+ type: "text",
146
+ placeholder: t('EXTERNAL_ID', 'External id'),
147
+ autoComplete: "off",
148
+ value: (filterValues === null || filterValues === void 0 ? void 0 : filterValues.externalId) || '',
149
+ onChange: function onChange(e) {
150
+ return handleChangeValue({
151
+ externalId: e.target.value
152
+ });
153
+ },
154
+ onKeyPress: function onKeyPress(e) {
155
+ if (!/^[0-9]$/.test(e.key)) {
156
+ e.preventDefault();
157
+ }
158
+ }
159
+ }))), /*#__PURE__*/_react.default.createElement(_styles2.FormGroup, null, /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
130
160
  type: "text",
131
161
  placeholder: t('NAME', 'Name'),
132
162
  autoComplete: "off",
@@ -284,16 +314,6 @@ var UserFilterGroupUI = function UserFilterGroupUI(props) {
284
314
  },
285
315
  optionInnerMaxHeight: "300px",
286
316
  className: "full-select"
287
- }))), isCustomers && /*#__PURE__*/_react.default.createElement(_styles2.FormGroup, null, /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('ID', 'ID')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
288
- type: "text",
289
- placeholder: t('ID', 'ID'),
290
- autoComplete: "off",
291
- value: (filterValues === null || filterValues === void 0 ? void 0 : filterValues.id) || '',
292
- onChange: function onChange(e) {
293
- return handleChangeValue({
294
- id: e.target.value
295
- });
296
- }
297
317
  }))), /*#__PURE__*/_react.default.createElement(_styles2.ButtonGroup, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
298
318
  color: "primary",
299
319
  borderRadius: "8px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.43.9",
3
+ "version": "1.43.11",
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.3",
86
+ "ordering-components-admin-external": "1.43.5",
87
87
  "polished": "^3.6.7",
88
88
  "prop-types": "^15.7.2",
89
89
  "react-big-calendar": "^1.4.2",
@@ -94,6 +94,40 @@ const UserFilterGroupUI = (props) => {
94
94
  onClose={onClose}
95
95
  >
96
96
  <Container>
97
+ {isCustomers && (
98
+ <FormGroup>
99
+ <FormControl>
100
+ <label>{t('ID', 'ID')}</label>
101
+ <Input
102
+ type='text'
103
+ placeholder={t('ID', 'ID')}
104
+ autoComplete='off'
105
+ value={filterValues?.id || ''}
106
+ onChange={(e) => handleChangeValue({ id: e.target.value })}
107
+ onKeyPress={(e) => {
108
+ if (!/^[0-9]$/.test(e.key)) {
109
+ e.preventDefault()
110
+ }
111
+ }}
112
+ />
113
+ </FormControl>
114
+ <FormControl>
115
+ <label>{t('EXTERNAL_ID', 'External id')}</label>
116
+ <Input
117
+ type='text'
118
+ placeholder={t('EXTERNAL_ID', 'External id')}
119
+ autoComplete='off'
120
+ value={filterValues?.externalId || ''}
121
+ onChange={(e) => handleChangeValue({ externalId: e.target.value })}
122
+ onKeyPress={(e) => {
123
+ if (!/^[0-9]$/.test(e.key)) {
124
+ e.preventDefault()
125
+ }
126
+ }}
127
+ />
128
+ </FormControl>
129
+ </FormGroup>
130
+ )}
97
131
  <FormGroup>
98
132
  <FormControl>
99
133
  <label>{t('NAME', 'Name')}</label>
@@ -278,20 +312,6 @@ const UserFilterGroupUI = (props) => {
278
312
  )}
279
313
  </FormGroup>
280
314
  )}
281
- {isCustomers && (
282
- <FormGroup>
283
- <FormControl>
284
- <label>{t('ID', 'ID')}</label>
285
- <Input
286
- type='text'
287
- placeholder={t('ID', 'ID')}
288
- autoComplete='off'
289
- value={filterValues?.id || ''}
290
- onChange={(e) => handleChangeValue({ id: e.target.value })}
291
- />
292
- </FormControl>
293
- </FormGroup>
294
- )}
295
315
  <ButtonGroup>
296
316
  <Button
297
317
  color='primary'