@digital-ai/dot-components 1.21.10 → 1.21.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.
- package/CHANGE_LOG.md +192 -2
- package/index.esm.js +6 -4
- package/index.umd.js +6 -4
- package/lib/components/auto-complete/AutoComplete.d.ts +3 -1
- package/package.json +1 -1
package/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,192 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.21.11](https://github.com/digital-ai/dot-components/tree/1.21.11) (05/25/2023)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.8.1...1.21.11)
|
|
6
|
+
|
|
7
|
+
**Features:**
|
|
8
|
+
|
|
9
|
+
- S-92577 `DotAutoComplete`: expose `inputValue` prop [\#1502](https://github.com/digital-ai/dot-components/pull/1502) ([angel-git](https://github.com/angel-git))
|
|
10
|
+
|
|
11
|
+
## [2.8.1](https://github.com/digital-ai/dot-components/tree/2.8.1) (05/17/2023)
|
|
12
|
+
|
|
13
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.8.0...2.8.1)
|
|
14
|
+
|
|
15
|
+
**Features:**
|
|
16
|
+
|
|
17
|
+
- `DotAutoComplete`: expose `inputValue` prop [\#1493](https://github.com/digital-ai/dot-components/issues/1493)
|
|
18
|
+
- Improvement for time picker with conditional rendering [\#1491](https://github.com/digital-ai/dot-components/issues/1491)
|
|
19
|
+
- S-92577: `DotAutoComplete` - expose `inputValue` prop [\#1494](https://github.com/digital-ai/dot-components/pull/1494) ([dmiletic85](https://github.com/dmiletic85))
|
|
20
|
+
- S-92557 Add new prop onPopperTimeChange for TimePicker [\#1492](https://github.com/digital-ai/dot-components/pull/1492) ([nikolinadapic](https://github.com/nikolinadapic))
|
|
21
|
+
- S-92402 Add `endText` on `DotInputText` and `DotInputSelect` [\#1489](https://github.com/digital-ai/dot-components/pull/1489) ([angel-git](https://github.com/angel-git))
|
|
22
|
+
|
|
23
|
+
**Fixed bugs:**
|
|
24
|
+
|
|
25
|
+
- Remove the yellow badge from navigation rail [\#1398](https://github.com/digital-ai/dot-components/issues/1398)
|
|
26
|
+
- Buttons are not accessible in disabled state [\#1364](https://github.com/digital-ai/dot-components/issues/1364)
|
|
27
|
+
- S-92312: Release workflow adjustments [\#1498](https://github.com/digital-ai/dot-components/pull/1498) ([CWSites](https://github.com/CWSites))
|
|
28
|
+
- S-92312: Fix issue with env context in release workflow [\#1496](https://github.com/digital-ai/dot-components/pull/1496) ([BoraAksoy](https://github.com/BoraAksoy))
|
|
29
|
+
- S-90263: Update `DotButton` to follow latest Figma design [\#1486](https://github.com/digital-ai/dot-components/pull/1486) ([CWSites](https://github.com/CWSites))
|
|
30
|
+
|
|
31
|
+
**Merged pull requests:**
|
|
32
|
+
|
|
33
|
+
- S-92312: Refactor workflows to use latest features and action versions [\#1485](https://github.com/digital-ai/dot-components/pull/1485) ([BoraAksoy](https://github.com/BoraAksoy))
|
|
34
|
+
|
|
35
|
+
## [2.8.0](https://github.com/digital-ai/dot-components/tree/2.8.0) (05/09/2023)
|
|
36
|
+
|
|
37
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.7.4...2.8.0)
|
|
38
|
+
|
|
39
|
+
**Features:**
|
|
40
|
+
|
|
41
|
+
- `DotAutoComplete`: expose `filterOptions` prop [\#1478](https://github.com/digital-ai/dot-components/issues/1478)
|
|
42
|
+
- S-92379: `DotAutoComplete`: expose `filterOptions` prop [\#1479](https://github.com/digital-ai/dot-components/pull/1479) ([dmiletic85](https://github.com/dmiletic85))
|
|
43
|
+
|
|
44
|
+
**Fixed bugs:**
|
|
45
|
+
|
|
46
|
+
- Outline Chip/Status Pill Issue Between Design System and Component Library [\#1409](https://github.com/digital-ai/dot-components/issues/1409)
|
|
47
|
+
- D-24399: Add filled pill css and include a few sample icon choices in stories [\#1477](https://github.com/digital-ai/dot-components/pull/1477) ([jmcnally](https://github.com/jmcnally))
|
|
48
|
+
|
|
49
|
+
**Merged pull requests:**
|
|
50
|
+
|
|
51
|
+
- S-91986: `aria-role` on missing components [\#1482](https://github.com/digital-ai/dot-components/pull/1482) ([CWSites](https://github.com/CWSites))
|
|
52
|
+
|
|
53
|
+
## [2.7.4](https://github.com/digital-ai/dot-components/tree/2.7.4) (05/04/2023)
|
|
54
|
+
|
|
55
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.7.3...2.7.4)
|
|
56
|
+
|
|
57
|
+
**Features:**
|
|
58
|
+
|
|
59
|
+
- `DotAutoComplete`: Expose `getOptionDisabled` from MUI Autocomplete [\#1473](https://github.com/digital-ai/dot-components/issues/1473)
|
|
60
|
+
- `DotTimePicker` and `DotDatePicker`: value prop should be in ISO 8601 [\#1469](https://github.com/digital-ai/dot-components/issues/1469)
|
|
61
|
+
- `DotDatePicker`, `DotTimePicker`: Improve keyboard accessibility [\#1468](https://github.com/digital-ai/dot-components/issues/1468)
|
|
62
|
+
- S-92362: `DotAutoComplete` - Expose `getOptionDisabled` from MUI Autocomplete [\#1474](https://github.com/digital-ai/dot-components/pull/1474) ([dmiletic85](https://github.com/dmiletic85))
|
|
63
|
+
- S-92310 Use ISO format for `DatePicker` and `TimePicker` [\#1472](https://github.com/digital-ai/dot-components/pull/1472) ([angel-git](https://github.com/angel-git))
|
|
64
|
+
- S-92224: `DotDatePicker`, `DotTimePicker` - Improve keyboard accessibility [\#1470](https://github.com/digital-ai/dot-components/pull/1470) ([dmiletic85](https://github.com/dmiletic85))
|
|
65
|
+
|
|
66
|
+
## [2.7.3](https://github.com/digital-ai/dot-components/tree/2.7.3) (05/01/2023)
|
|
67
|
+
|
|
68
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.7.2...2.7.3)
|
|
69
|
+
|
|
70
|
+
**Features:**
|
|
71
|
+
|
|
72
|
+
- Give InlineEdit an inputRef property [\#1433](https://github.com/digital-ai/dot-components/issues/1433)
|
|
73
|
+
- D-24626: Add startEditable attribute to InlineEdit [\#1466](https://github.com/digital-ai/dot-components/pull/1466) ([jmcnally](https://github.com/jmcnally))
|
|
74
|
+
|
|
75
|
+
**Merged pull requests:**
|
|
76
|
+
|
|
77
|
+
- Updates to deprecated github action `set-output` [\#1465](https://github.com/digital-ai/dot-components/pull/1465) ([CWSites](https://github.com/CWSites))
|
|
78
|
+
- remove use of set-output [\#1464](https://github.com/digital-ai/dot-components/pull/1464) ([CWSites](https://github.com/CWSites))
|
|
79
|
+
- S-91985: Improve form input labelling for accessibility [\#1463](https://github.com/digital-ai/dot-components/pull/1463) ([jmcnally](https://github.com/jmcnally))
|
|
80
|
+
|
|
81
|
+
## [2.7.2](https://github.com/digital-ai/dot-components/tree/2.7.2) (04/24/2023)
|
|
82
|
+
|
|
83
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.7.1...2.7.2)
|
|
84
|
+
|
|
85
|
+
**Features:**
|
|
86
|
+
|
|
87
|
+
- `DotDatePicker` improvements [\#1460](https://github.com/digital-ai/dot-components/issues/1460)
|
|
88
|
+
- Update DotPill to match current designs [\#1449](https://github.com/digital-ai/dot-components/issues/1449)
|
|
89
|
+
- S-92086: `DotDatePicker` improvements [\#1461](https://github.com/digital-ai/dot-components/pull/1461) ([dmiletic85](https://github.com/dmiletic85))
|
|
90
|
+
|
|
91
|
+
**Fixed bugs:**
|
|
92
|
+
|
|
93
|
+
- Issue-1449: Update status pills to have generally lighter backgrounds [\#1456](https://github.com/digital-ai/dot-components/pull/1456) ([jmcnally](https://github.com/jmcnally))
|
|
94
|
+
|
|
95
|
+
## [2.7.1](https://github.com/digital-ai/dot-components/tree/2.7.1) (04/20/2023)
|
|
96
|
+
|
|
97
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.7.0...2.7.1)
|
|
98
|
+
|
|
99
|
+
**Features:**
|
|
100
|
+
|
|
101
|
+
- Improve keyboard access for TimePicker [\#1452](https://github.com/digital-ai/dot-components/issues/1452)
|
|
102
|
+
- `DotDatePicker` i should be able to provide min and max dates [\#1441](https://github.com/digital-ai/dot-components/issues/1441)
|
|
103
|
+
- S-91943: `DotDatePicker` - add `minDate` and `maxDate` props [\#1450](https://github.com/digital-ai/dot-components/pull/1450) ([dmiletic85](https://github.com/dmiletic85))
|
|
104
|
+
|
|
105
|
+
**Fixed bugs:**
|
|
106
|
+
|
|
107
|
+
- `DotTimePicker` and `DotDatePicker`: controlled vs uncontrolled [\#1446](https://github.com/digital-ai/dot-components/issues/1446)
|
|
108
|
+
- Can't start dot demo application [\#1445](https://github.com/digital-ai/dot-components/issues/1445)
|
|
109
|
+
- `DotTimePicker`, `DotDatePicker`: fix issues with controlled and uncontrolled states [\#1454](https://github.com/digital-ai/dot-components/pull/1454) ([dmiletic85](https://github.com/dmiletic85))
|
|
110
|
+
- D-24807: `Demo app` - fix error when starting demo application [\#1451](https://github.com/digital-ai/dot-components/pull/1451) ([dmiletic85](https://github.com/dmiletic85))
|
|
111
|
+
|
|
112
|
+
**Merged pull requests:**
|
|
113
|
+
|
|
114
|
+
- S-91314: Remove use of deprecated `StylesProvider` [\#1457](https://github.com/digital-ai/dot-components/pull/1457) ([CWSites](https://github.com/CWSites))
|
|
115
|
+
- S-91975: `TimePicker` - Improve keyboard access [\#1455](https://github.com/digital-ai/dot-components/pull/1455) ([dmiletic85](https://github.com/dmiletic85))
|
|
116
|
+
|
|
117
|
+
## [2.7.0](https://github.com/digital-ai/dot-components/tree/2.7.0) (04/14/2023)
|
|
118
|
+
|
|
119
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.6.1...2.7.0)
|
|
120
|
+
|
|
121
|
+
**Features:**
|
|
122
|
+
|
|
123
|
+
- `DotDatePicker`, `DotTimePicker`: expose `onBlur` prop [\#1442](https://github.com/digital-ai/dot-components/issues/1442)
|
|
124
|
+
- `DotButton` should expose `tabIndex` prop [\#1438](https://github.com/digital-ai/dot-components/issues/1438)
|
|
125
|
+
- S-91919: `DotDatePicker`, `DotTimePicker`: expose `onBlur` prop [\#1443](https://github.com/digital-ai/dot-components/pull/1443) ([dmiletic85](https://github.com/dmiletic85))
|
|
126
|
+
- S-91870 `DotButton`: expose `tabIndex` prop [\#1439](https://github.com/digital-ai/dot-components/pull/1439) ([dmiletic85](https://github.com/dmiletic85))
|
|
127
|
+
|
|
128
|
+
**Fixed bugs:**
|
|
129
|
+
|
|
130
|
+
- `DotTimePicker` has the wrong icon [\#1440](https://github.com/digital-ai/dot-components/issues/1440)
|
|
131
|
+
- D-24793: `DotTimePicker` - set clock instead of calendar icon [\#1444](https://github.com/digital-ai/dot-components/pull/1444) ([dmiletic85](https://github.com/dmiletic85))
|
|
132
|
+
|
|
133
|
+
## [2.6.1](https://github.com/digital-ai/dot-components/tree/2.6.1) (04/06/2023)
|
|
134
|
+
|
|
135
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.6.0...2.6.1)
|
|
136
|
+
|
|
137
|
+
**Fixed bugs:**
|
|
138
|
+
|
|
139
|
+
- `DotSidebar` Icons are not aligned [\#1435](https://github.com/digital-ai/dot-components/issues/1435)
|
|
140
|
+
- D-24672: update icon alignment in sidebar [\#1436](https://github.com/digital-ai/dot-components/pull/1436) ([CWSites](https://github.com/CWSites))
|
|
141
|
+
|
|
142
|
+
## [2.6.0](https://github.com/digital-ai/dot-components/tree/2.6.0) (04/05/2023)
|
|
143
|
+
|
|
144
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.5.5...2.6.0)
|
|
145
|
+
|
|
146
|
+
**Features:**
|
|
147
|
+
|
|
148
|
+
- S-90954: `TimePicker` component [\#1432](https://github.com/digital-ai/dot-components/pull/1432) ([dmiletic85](https://github.com/dmiletic85))
|
|
149
|
+
- S-87859: Stepper component [\#1392](https://github.com/digital-ai/dot-components/pull/1392) ([nikolinadapic](https://github.com/nikolinadapic))
|
|
150
|
+
|
|
151
|
+
## [2.5.5](https://github.com/digital-ai/dot-components/tree/2.5.5) (03/31/2023)
|
|
152
|
+
|
|
153
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.5.4...2.5.5)
|
|
154
|
+
|
|
155
|
+
**Features:**
|
|
156
|
+
|
|
157
|
+
- Make InputText support variant field [\#1420](https://github.com/digital-ai/dot-components/issues/1420)
|
|
158
|
+
|
|
159
|
+
**Fixed bugs:**
|
|
160
|
+
|
|
161
|
+
- `DotButtonToggle`: icons are misaligned [\#1426](https://github.com/digital-ai/dot-components/issues/1426)
|
|
162
|
+
- S-82103: Update InlineEdit state [\#1430](https://github.com/digital-ai/dot-components/pull/1430) ([ryangamble](https://github.com/ryangamble))
|
|
163
|
+
- D-24591: Align icon on `ButtonToggle` [\#1427](https://github.com/digital-ai/dot-components/pull/1427) ([angel-git](https://github.com/angel-git))
|
|
164
|
+
|
|
165
|
+
## [2.5.4](https://github.com/digital-ai/dot-components/tree/2.5.4) (03/29/2023)
|
|
166
|
+
|
|
167
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.5.3...2.5.4)
|
|
168
|
+
|
|
169
|
+
**Features:**
|
|
170
|
+
|
|
171
|
+
- Calendar date and time picker component [\#1359](https://github.com/digital-ai/dot-components/issues/1359)
|
|
172
|
+
- S-90953: `DatePicker` component [\#1411](https://github.com/digital-ai/dot-components/pull/1411) ([dmiletic85](https://github.com/dmiletic85))
|
|
173
|
+
|
|
174
|
+
**Fixed bugs:**
|
|
175
|
+
|
|
176
|
+
- D-24483: Do not hide the backdrop [\#1423](https://github.com/digital-ai/dot-components/pull/1423) ([jmcnally](https://github.com/jmcnally))
|
|
177
|
+
|
|
178
|
+
**Merged pull requests:**
|
|
179
|
+
|
|
180
|
+
- resolve build issues with vsm-hub demo [\#1424](https://github.com/digital-ai/dot-components/pull/1424) ([CWSites](https://github.com/CWSites))
|
|
181
|
+
|
|
182
|
+
## [2.5.3](https://github.com/digital-ai/dot-components/tree/2.5.3) (03/21/2023)
|
|
183
|
+
|
|
184
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/1.21.10...2.5.3)
|
|
185
|
+
|
|
186
|
+
**Fixed bugs:**
|
|
187
|
+
|
|
188
|
+
- S-90229 AppSwitcher search and recent instances [\#1418](https://github.com/digital-ai/dot-components/pull/1418) ([jmcnally](https://github.com/jmcnally))
|
|
189
|
+
|
|
3
190
|
## [1.21.10](https://github.com/digital-ai/dot-components/tree/1.21.10) (03/17/2023)
|
|
4
191
|
|
|
5
192
|
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.5.2...1.21.10)
|
|
@@ -355,6 +542,7 @@
|
|
|
355
542
|
**Fixed bugs:**
|
|
356
543
|
|
|
357
544
|
- Use of `release-2.0` branch causes `Typography` to use default styling [\#1151](https://github.com/digital-ai/dot-components/issues/1151)
|
|
545
|
+
- D-22241: `DotFileListItem`: fix focus states and expose `onKeyPress` [\#1254](https://github.com/digital-ai/dot-components/pull/1254) ([dmiletic85](https://github.com/dmiletic85))
|
|
358
546
|
|
|
359
547
|
## [2.0.0-rc.1](https://github.com/digital-ai/dot-components/tree/2.0.0-rc.1) (08/31/2022)
|
|
360
548
|
|
|
@@ -362,7 +550,6 @@
|
|
|
362
550
|
|
|
363
551
|
**Fixed bugs:**
|
|
364
552
|
|
|
365
|
-
- D-22241: `DotFileListItem`: fix focus states and expose `onKeyPress` [\#1254](https://github.com/digital-ai/dot-components/pull/1254) ([dmiletic85](https://github.com/dmiletic85))
|
|
366
553
|
- S-86692: component cleanup [\#1238](https://github.com/digital-ai/dot-components/pull/1238) ([CWSites](https://github.com/CWSites))
|
|
367
554
|
- S-84151: fix e2e tests for Release 2.0 [\#1146](https://github.com/digital-ai/dot-components/pull/1146) ([CWSites](https://github.com/CWSites))
|
|
368
555
|
|
|
@@ -1198,7 +1385,6 @@
|
|
|
1198
1385
|
**Features:**
|
|
1199
1386
|
|
|
1200
1387
|
- Forms [\#594](https://github.com/digital-ai/dot-components/issues/594)
|
|
1201
|
-
- S-77126: Dynamic Form [\#717](https://github.com/digital-ai/dot-components/pull/717) ([dmiletic85](https://github.com/dmiletic85))
|
|
1202
1388
|
|
|
1203
1389
|
**Fixed bugs:**
|
|
1204
1390
|
|
|
@@ -1246,6 +1432,10 @@
|
|
|
1246
1432
|
|
|
1247
1433
|
[Full Changelog](https://github.com/digital-ai/dot-components/compare/1.1.1...1.2.0)
|
|
1248
1434
|
|
|
1435
|
+
**Features:**
|
|
1436
|
+
|
|
1437
|
+
- S-77126: Dynamic Form [\#717](https://github.com/digital-ai/dot-components/pull/717) ([dmiletic85](https://github.com/dmiletic85))
|
|
1438
|
+
|
|
1249
1439
|
**Fixed bugs:**
|
|
1250
1440
|
|
|
1251
1441
|
- Missing return on `List` [\#721](https://github.com/digital-ai/dot-components/issues/721)
|
package/index.esm.js
CHANGED
|
@@ -3140,6 +3140,7 @@ const DotAutoComplete = ({
|
|
|
3140
3140
|
helperText,
|
|
3141
3141
|
inputId,
|
|
3142
3142
|
inputRef,
|
|
3143
|
+
inputValue,
|
|
3143
3144
|
label,
|
|
3144
3145
|
loading,
|
|
3145
3146
|
maxHeight,
|
|
@@ -3305,9 +3306,9 @@ const DotAutoComplete = ({
|
|
|
3305
3306
|
}); // Create handler only if 'onInputChange' or 'actionItem' prop is defined
|
|
3306
3307
|
|
|
3307
3308
|
|
|
3308
|
-
const handleInputChange = (onInputChange || isActionItemDefined) && ((event,
|
|
3309
|
-
isActionItemDefined && setInputText(
|
|
3310
|
-
onInputChange === null || onInputChange === void 0 ? void 0 : onInputChange(event,
|
|
3309
|
+
const handleInputChange = (onInputChange || isActionItemDefined) && ((event, currentInputValue, reason) => {
|
|
3310
|
+
isActionItemDefined && setInputText(currentInputValue);
|
|
3311
|
+
onInputChange === null || onInputChange === void 0 ? void 0 : onInputChange(event, currentInputValue, reason);
|
|
3311
3312
|
}) || undefined; // Create callback when action item click event handler is defined,
|
|
3312
3313
|
// free-solo mode is NOT set and 'Enter' key has been pressed
|
|
3313
3314
|
|
|
@@ -3375,6 +3376,7 @@ const DotAutoComplete = ({
|
|
|
3375
3376
|
freeSolo: _freesolo,
|
|
3376
3377
|
getOptionLabel: option => parseAutoCompleteValue(option),
|
|
3377
3378
|
groupBy: _group ? option => option.group : undefined,
|
|
3379
|
+
inputValue: inputValue,
|
|
3378
3380
|
ListboxComponent: ListboxComponent,
|
|
3379
3381
|
loading: loading,
|
|
3380
3382
|
multiple: _multiple,
|
|
@@ -3406,7 +3408,7 @@ const DotAutoComplete = ({
|
|
|
3406
3408
|
// passed to renderInput includes inputProps and InputProps properties
|
|
3407
3409
|
// that must be passed to TextField in order for Autocomplete to work
|
|
3408
3410
|
// correctly. We decided that at this time exposing those props in
|
|
3409
|
-
// DotInputText would not be a worthwhile tradeoff. Instead we are
|
|
3411
|
+
// DotInputText would not be a worthwhile tradeoff. Instead, we are
|
|
3410
3412
|
// using the StyledTextField used by DotInputText so that we will
|
|
3411
3413
|
// at least pick up any styling that is used there. Should additional
|
|
3412
3414
|
// functionality be added to DotInputText we will have to make a
|
package/index.umd.js
CHANGED
|
@@ -3442,6 +3442,7 @@
|
|
|
3442
3442
|
helperText = _a.helperText,
|
|
3443
3443
|
inputId = _a.inputId,
|
|
3444
3444
|
inputRef = _a.inputRef,
|
|
3445
|
+
inputValue = _a.inputValue,
|
|
3445
3446
|
label = _a.label,
|
|
3446
3447
|
loading = _a.loading,
|
|
3447
3448
|
maxHeight = _a.maxHeight,
|
|
@@ -3624,9 +3625,9 @@
|
|
|
3624
3625
|
}; // Create handler only if 'onInputChange' or 'actionItem' prop is defined
|
|
3625
3626
|
|
|
3626
3627
|
|
|
3627
|
-
var handleInputChange = (onInputChange || isActionItemDefined) && function (event,
|
|
3628
|
-
isActionItemDefined && setInputText(
|
|
3629
|
-
onInputChange === null || onInputChange === void 0 ? void 0 : onInputChange(event,
|
|
3628
|
+
var handleInputChange = (onInputChange || isActionItemDefined) && function (event, currentInputValue, reason) {
|
|
3629
|
+
isActionItemDefined && setInputText(currentInputValue);
|
|
3630
|
+
onInputChange === null || onInputChange === void 0 ? void 0 : onInputChange(event, currentInputValue, reason);
|
|
3630
3631
|
} || undefined; // Create callback when action item click event handler is defined,
|
|
3631
3632
|
// free-solo mode is NOT set and 'Enter' key has been pressed
|
|
3632
3633
|
|
|
@@ -3700,6 +3701,7 @@
|
|
|
3700
3701
|
groupBy: group ? function (option) {
|
|
3701
3702
|
return option.group;
|
|
3702
3703
|
} : undefined,
|
|
3704
|
+
inputValue: inputValue,
|
|
3703
3705
|
ListboxComponent: ListboxComponent,
|
|
3704
3706
|
loading: loading,
|
|
3705
3707
|
multiple: multiple,
|
|
@@ -3733,7 +3735,7 @@
|
|
|
3733
3735
|
// passed to renderInput includes inputProps and InputProps properties
|
|
3734
3736
|
// that must be passed to TextField in order for Autocomplete to work
|
|
3735
3737
|
// correctly. We decided that at this time exposing those props in
|
|
3736
|
-
// DotInputText would not be a worthwhile tradeoff. Instead we are
|
|
3738
|
+
// DotInputText would not be a worthwhile tradeoff. Instead, we are
|
|
3737
3739
|
// using the StyledTextField used by DotInputText so that we will
|
|
3738
3740
|
// at least pick up any styling that is used there. Should additional
|
|
3739
3741
|
// functionality be added to DotInputText we will have to make a
|
|
@@ -53,6 +53,8 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
|
|
|
53
53
|
inputId: string;
|
|
54
54
|
/** pass a ref to the input element */
|
|
55
55
|
inputRef?: Ref<HTMLInputElement>;
|
|
56
|
+
/** The value of the input field. */
|
|
57
|
+
inputValue?: string;
|
|
56
58
|
/** Label displayed above the input field */
|
|
57
59
|
label?: string;
|
|
58
60
|
/** If true, the component will be in a loading state. */
|
|
@@ -94,4 +96,4 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
|
|
|
94
96
|
/** If true, the label will be displayed in a warning state. */
|
|
95
97
|
warning?: boolean;
|
|
96
98
|
}
|
|
97
|
-
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterSelectedOptions, freesolo, group, helperText, inputId, inputRef, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => JSX.Element;
|
|
99
|
+
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterSelectedOptions, freesolo, group, helperText, inputId, inputRef, inputValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => JSX.Element;
|