@digital-ai/dot-components 1.21.9 → 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 +239 -2
- package/index.esm.js +7 -6
- package/index.umd.js +7 -6
- package/lib/components/auto-complete/AutoComplete.d.ts +3 -1
- package/package.json +1 -1
package/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,239 @@
|
|
|
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
|
+
|
|
190
|
+
## [1.21.10](https://github.com/digital-ai/dot-components/tree/1.21.10) (03/17/2023)
|
|
191
|
+
|
|
192
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.5.2...1.21.10)
|
|
193
|
+
|
|
194
|
+
**Fixed bugs:**
|
|
195
|
+
|
|
196
|
+
- D-24419 InlineEdit: show tooltip on readonly as well [\#1417](https://github.com/digital-ai/dot-components/pull/1417) ([angel-git](https://github.com/angel-git))
|
|
197
|
+
|
|
198
|
+
## [2.5.2](https://github.com/digital-ai/dot-components/tree/2.5.2) (03/17/2023)
|
|
199
|
+
|
|
200
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.5.1...2.5.2)
|
|
201
|
+
|
|
202
|
+
**Features:**
|
|
203
|
+
|
|
204
|
+
- S-90229: App switcher recent apps styling changes [\#1415](https://github.com/digital-ai/dot-components/pull/1415) ([jmcnally](https://github.com/jmcnally))
|
|
205
|
+
- S-90229: Initial implementation of Recent app-switcher apps [\#1410](https://github.com/digital-ai/dot-components/pull/1410) ([jmcnally](https://github.com/jmcnally))
|
|
206
|
+
|
|
207
|
+
**Fixed bugs:**
|
|
208
|
+
|
|
209
|
+
- `DotInlineEdit` missing tooltip when readonly is true [\#1412](https://github.com/digital-ai/dot-components/issues/1412)
|
|
210
|
+
- `DotAutcomplete` Height is hardcoded and the content goes brrrr [\#1397](https://github.com/digital-ai/dot-components/issues/1397)
|
|
211
|
+
- D-24317 Fix height on InlineEdit [\#1414](https://github.com/digital-ai/dot-components/pull/1414) ([angel-git](https://github.com/angel-git))
|
|
212
|
+
- D-24419 `InlineEdit` show tooltip on readonly as well [\#1413](https://github.com/digital-ai/dot-components/pull/1413) ([angel-git](https://github.com/angel-git))
|
|
213
|
+
|
|
214
|
+
## [2.5.1](https://github.com/digital-ai/dot-components/tree/2.5.1) (03/14/2023)
|
|
215
|
+
|
|
216
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.5.0...2.5.1)
|
|
217
|
+
|
|
218
|
+
**Merged pull requests:**
|
|
219
|
+
|
|
220
|
+
- Add jwt-decode to dot-components dependency tree [\#1407](https://github.com/digital-ai/dot-components/pull/1407) ([CWSites](https://github.com/CWSites))
|
|
221
|
+
- Address Storybook lint issues [\#1406](https://github.com/digital-ai/dot-components/pull/1406) ([CWSites](https://github.com/CWSites))
|
|
222
|
+
|
|
223
|
+
## [2.5.0](https://github.com/digital-ai/dot-components/tree/2.5.0) (03/10/2023)
|
|
224
|
+
|
|
225
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/1.21.9...2.5.0)
|
|
226
|
+
|
|
227
|
+
**Features:**
|
|
228
|
+
|
|
229
|
+
- S-90230: App-switcher search instances [\#1382](https://github.com/digital-ai/dot-components/pull/1382) ([jmcnally](https://github.com/jmcnally))
|
|
230
|
+
|
|
231
|
+
**Fixed bugs:**
|
|
232
|
+
|
|
233
|
+
- D-24235: Empty table pagination [\#1402](https://github.com/digital-ai/dot-components/pull/1402) ([ryangamble](https://github.com/ryangamble))
|
|
234
|
+
- D-24216: A few minor app-switcher display changes [\#1400](https://github.com/digital-ai/dot-components/pull/1400) ([jmcnally](https://github.com/jmcnally))
|
|
235
|
+
- Issue \#1271: Updates to `AutoComplete` sizing with `dense` and `size` props [\#1395](https://github.com/digital-ai/dot-components/pull/1395) ([CWSites](https://github.com/CWSites))
|
|
236
|
+
|
|
3
237
|
## [1.21.9](https://github.com/digital-ai/dot-components/tree/1.21.9) (03/03/2023)
|
|
4
238
|
|
|
5
239
|
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.4.0...1.21.9)
|
|
@@ -113,7 +347,6 @@
|
|
|
113
347
|
|
|
114
348
|
- Button component with type "outlined" is not greyed out when disabled [\#1342](https://github.com/digital-ai/dot-components/issues/1342)
|
|
115
349
|
- D-23687 Button component with type "outlined" is not greyed out when disabled [\#1343](https://github.com/digital-ai/dot-components/pull/1343) ([angel-git](https://github.com/angel-git))
|
|
116
|
-
- D-23539: Add class for fullWidth text fields [\#1334](https://github.com/digital-ai/dot-components/pull/1334) ([jmcnally](https://github.com/jmcnally))
|
|
117
350
|
|
|
118
351
|
**Merged pull requests:**
|
|
119
352
|
|
|
@@ -135,6 +368,7 @@
|
|
|
135
368
|
**Fixed bugs:**
|
|
136
369
|
|
|
137
370
|
- InputText not taking up fullWidth [\#1329](https://github.com/digital-ai/dot-components/issues/1329)
|
|
371
|
+
- D-23539: Add class for fullWidth text fields [\#1334](https://github.com/digital-ai/dot-components/pull/1334) ([jmcnally](https://github.com/jmcnally))
|
|
138
372
|
|
|
139
373
|
## [1.21.7](https://github.com/digital-ai/dot-components/tree/1.21.7) (12/12/2022)
|
|
140
374
|
|
|
@@ -1151,7 +1385,6 @@
|
|
|
1151
1385
|
**Features:**
|
|
1152
1386
|
|
|
1153
1387
|
- Forms [\#594](https://github.com/digital-ai/dot-components/issues/594)
|
|
1154
|
-
- S-77126: Dynamic Form [\#717](https://github.com/digital-ai/dot-components/pull/717) ([dmiletic85](https://github.com/dmiletic85))
|
|
1155
1388
|
|
|
1156
1389
|
**Fixed bugs:**
|
|
1157
1390
|
|
|
@@ -1199,6 +1432,10 @@
|
|
|
1199
1432
|
|
|
1200
1433
|
[Full Changelog](https://github.com/digital-ai/dot-components/compare/1.1.1...1.2.0)
|
|
1201
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
|
+
|
|
1202
1439
|
**Fixed bugs:**
|
|
1203
1440
|
|
|
1204
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
|
|
@@ -6247,14 +6249,13 @@ const DotInlineEdit = ({
|
|
|
6247
6249
|
const [showTooltip, setShowTooltip] = useState(false);
|
|
6248
6250
|
const [originalValue, setOriginalValue] = useState('');
|
|
6249
6251
|
const [inputValue, setInputValue] = useState(_value);
|
|
6250
|
-
const isNotReadOnlyOrEditing = !readOnly && !editing;
|
|
6251
6252
|
const inputRef = useRef();
|
|
6252
6253
|
const inlineEditRef = useRef();
|
|
6253
6254
|
const isSaveDisabled = checkIfEmptyValue(inputValue);
|
|
6254
6255
|
const rootClasses = useStylesWithRootClass(rootClassName$n, className, editing ? editModeClassName : '');
|
|
6255
6256
|
|
|
6256
6257
|
const handleShowTooltip = visible => {
|
|
6257
|
-
if (
|
|
6258
|
+
if (!editing) {
|
|
6258
6259
|
setShowTooltip(visible);
|
|
6259
6260
|
}
|
|
6260
6261
|
};
|
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
|
|
@@ -6679,14 +6681,13 @@
|
|
|
6679
6681
|
inputValue = _j[0],
|
|
6680
6682
|
setInputValue = _j[1];
|
|
6681
6683
|
|
|
6682
|
-
var isNotReadOnlyOrEditing = !readOnly && !editing;
|
|
6683
6684
|
var inputRef = React.useRef();
|
|
6684
6685
|
var inlineEditRef = React.useRef();
|
|
6685
6686
|
var isSaveDisabled = checkIfEmptyValue(inputValue);
|
|
6686
6687
|
var rootClasses = useStylesWithRootClass(rootClassName$n, className, editing ? editModeClassName : '');
|
|
6687
6688
|
|
|
6688
6689
|
var handleShowTooltip = function handleShowTooltip(visible) {
|
|
6689
|
-
if (
|
|
6690
|
+
if (!editing) {
|
|
6690
6691
|
setShowTooltip(visible);
|
|
6691
6692
|
}
|
|
6692
6693
|
};
|
|
@@ -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;
|