@linn-it/linn-form-components-library 13.0.0-alpha.2 → 13.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linn-it/linn-form-components-library",
3
- "version": "13.0.0-alpha.2",
3
+ "version": "13.3.0",
4
4
  "private": false,
5
5
  "jest": {
6
6
  "testEnvironment": "jsdom"
@@ -32,7 +32,7 @@
32
32
  "@emotion/react": "^11.6.0",
33
33
  "@emotion/styled": "^11.6.0",
34
34
  "@mui/icons-material": "^5.2.0",
35
- "@mui/lab": "^5.0.0-alpha.56",
35
+ "@mui/lab": "5.0.0-alpha.64",
36
36
  "@mui/material": "^5.2.2",
37
37
  "@mui/styles": "^5.2.0",
38
38
  "notistack": "^2.0.3",
package/CHANGELOG.md DELETED
@@ -1,607 +0,0 @@
1
- # Changelog
2
- ## [12.7.0] - 2021-11-26
3
- ### Changes
4
- - Flip processStore working flag to false if the process request errors unexpectedly.
5
-
6
- ## [12.5.0] - 2021-11-10
7
- ### Changes
8
- - Upped react version in dependencies (peer dependencies already was) to react 17
9
- - rewrote tests to get rid of enzyme in order to allow this & removed enzyme from npm and everywhere used
10
- - upgrade other npm packages
11
- - Add wee change to Typeahead to offer built in clear button
12
-
13
-
14
- ## [12.5.0] - 2021-11-10
15
- ### Added
16
- - Added replaceRow method to useGroupEditTable hook to allow update of multiple fields at once. Use when changing a field requires dependent fields to also be updated.
17
-
18
- ## [12.4.0] - 2021-11-09
19
- ### Changes
20
- - Add openModalOnClick bool prop to Typeahead when in modal mode to set whether the modal opens as soon as the user interacts with the InputField, or only when they click the magnifying glass Icon. If you want to use it in this configuration you also need to pass a handleFieldChange function that takes the usual (propertyName, newValue) args.
21
-
22
- Defaults to true so current behaviour is maintained, i.e. modal opens as soon as user touches field. This basically facilitates optional Typeahead behaviour so a user who doesn't need to search can just enter a value straight in.
23
-
24
- ## [12.3.0] - 2021-11-03
25
- ### Changes
26
- - Add action to clear data to generic FetchApiActions action creators. Process these new actions in the collectionStore reducers.
27
-
28
- ## [12.2.0] - 2021-10-18
29
- ### Changes
30
- - Add functionality to limit and order search results in the Typeahead via passing optional number and function props respectively.
31
-
32
- ## [12.1.0] - 2021-09-20
33
- ### Changes
34
- - Dropdowns's TextField and InputLabel are now linked via the propertyName prop.
35
-
36
- ## [12.0.1] - 2021-09-15
37
- ### Changes
38
- - Update React to v17 and Material UI components.
39
-
40
- ## [11.8.0] - 2021-09-14
41
- ### Changes
42
- - Add fetchByPath to fetch and update actions to allow GETting of uri/id/path
43
-
44
- ## [11.7.2] - 2021-09-09
45
- ### Changes
46
- - Pass propertyName to InputField's that are wrapped in other components.
47
-
48
- ## [11.7.0] - 2021-09-03
49
- ### Changes
50
- - InputField's TextField and InputLabel are now linked via the propertyName prop, which is now required. This is an accesibility best practise as it allows screen readers etc. to correctly associate labels with input fields, but the benefit to us is that testing library's getByLabelText() document query now works.
51
-
52
-
53
- ## [11.6.0] - 2021-08-31
54
- ### Added
55
- - Added componentViewDisplay to editable table column options
56
- - Default option is 'value' which shows value in view mode as before.
57
- - Other option is 'nothing' which shows nothing in view mode but component when editing.
58
-
59
- ## [11.5.1] - 2021-04-26
60
- ### Added
61
- - Added clearItem to update actions
62
-
63
- ## [11.5.0] - 2021-04-19
64
- ### Added
65
- - Option to add custom style to editable table columns
66
-
67
- ## [11.4.1] - 2021-03-24
68
- ### Added
69
- - Added fetchById to FetchApiActions
70
-
71
- ## [11.4.0] - 2021-03-24
72
- ### Added
73
- - Added optional accept parameter to FetchApiActions and UpdateApiActions to allow request of different media types
74
-
75
- ## [11.3.6] - 2021-03-23
76
- ### Changed
77
- - Fixed mixed up Breadcrumbs defaultProps/PropTypes
78
-
79
- ## [11.3.5] - 2021-03-23
80
- ### Changed
81
- - Change breadcrumbs 'HOME' crumb to redirect to a specified home url. Defaults to app.linn.co.uk
82
- - Page component can optionally not render Breadcrumbs with a showBreadcrumbs bool prop. Defaults to true.
83
-
84
- ## [11.3.4] - 2021-03-19
85
- ### Changed
86
- - Added searchButtonOnly to TypeAhead to show search icon button only in modal mode
87
-
88
- ## [11.3.3] - 2021-03-11
89
- ### Changed
90
- - Added clear data action
91
-
92
- ## [11.3.2] - 2021-03-11
93
- ### Changed
94
- - Added clear data option to processes
95
-
96
- ## [11.3.1] - 2021-03-02
97
- ### Changed
98
- - Removed !important from display none on display only when printing
99
-
100
- ## [11.3.0] - 2021-02-24
101
- ### Added
102
- - Added getData option to process selectors
103
-
104
- ## [11.2.1] - 2021-02-16
105
- ### Added
106
- - Added wee style to hide something then show only when printing
107
-
108
- ## [11.2.0] - 2021-02-03
109
- ### Changed
110
- - Allow SingleEditTable to have multiline textfields. Allow newRow to be specified to render at top or bottom via new 'newRowPosition' prop. Deafults to "bottom" so no breaking/altering exsiting usages.
111
- - Allow modal version of the TypeaheadTable. Allow custon onSelect behaviour alongside default links behaviour.
112
-
113
- ## [11.1.8] - 2021-02-03
114
- ### Changed
115
- - Just needed to redeploy after trying to without logging into npm
116
-
117
- ## [11.1.7] - 2021-02-03
118
- ### Changed
119
- - Added optional "print-landscape" class to set page to print landscape
120
-
121
- ## [11.1.5] - 2021-01-29
122
- ### Changed
123
- - Allow custom debounce timer to be passed into Typeaheads. Higher debounce times mitigate against cases where searches take longer than the current debounce timer (500ms), which in turn can allow those searches late set of searchResults to arrive later than more recent searches results, and as such override the more recent and correct searchResults in redux state. This is really just a workaround but used in conjucntion with speeding up slow searches, e.g. by limiting their results sizes in the backend, it seems to solve issues in many cases.
124
-
125
- ## [11.1.4] - 2021-01-28
126
- ### Changed
127
- - Optionally limit searchItems returned from the collectionSelectors getSearchItems() function. This is to avoid huge searchResults lists freezing up UI components like Typeaheads
128
-
129
- ## [11.1.3] - 2021-01-28
130
- ### Fixed
131
- - TypeAheadDialog now auto focuses on search input field
132
- - Updated column and row documentation in single and group edit table stories
133
-
134
- ## [11.1.2] - 2021-01-27
135
- ### Changed
136
- - Pass in optional setEditStatus function to useGroupEditTable hook. This allows the table to set editStatus state in a parent component or redux state store.
137
-
138
- ## [11.1.1] - 2021-01-26
139
- ### Changed
140
- - Export useGroupEditTable hook
141
-
142
- ## [11.1.0] - 2021-01-26
143
- ### Changed
144
- - Support for limiting Typeahead to only fire off search after a set number of searchTerm characters. Also added support for the above in the table component.
145
-
146
- ## [11.0.0] - 2020-12-22
147
- ### Changed
148
- - Updated to Storybook 6 and updated story files
149
-
150
- ### Added
151
- - Components
152
- - SingleEditTable
153
- - GroupEditTable
154
- - Hooks
155
- - useGroupEditTable
156
-
157
- ### Removed
158
- - EditableTable
159
-
160
- ## [10.13.4] - 2020-01-07
161
- ### Fixed
162
- - `EditableTable` delete button logic and remove click listener which was always setting edit state to true after clicking cancel button
163
-
164
- ## [10.13.3] - 2020-01-07
165
- ### Fixed
166
- - Issue where not passing optional `isTableValid` to `EditableTable` would crash
167
-
168
- ## [10.13.2] - 2020-12-21
169
- ### Changed
170
- ## EditableTable
171
- - Fixed a weird bug where inputs were losing focus for no apparent reason
172
- - Added a groupEdit storybook example.
173
-
174
- ## [10.13.1] - 2020-12-17
175
- ### Changed
176
- ## EditableTable
177
- - Minor ui improvements for the Editable table. Rows open and optionally close on click and clickaway. Tooltips for buttons.
178
- - Delete button stays shown when row is closed if a deleteRow function is supplied.
179
- - Added optional tooltips for table cells. You pass this in as part of the columns array, in the form of a function that takes a row and derives a tooltip string from data in the row. You could return false from this function for some rows if they don't have any tooltips for that column. Storybook example updated to show how this works.
180
-
181
- ## [10.13.0] - 2020-12-16
182
- ### Added
183
- - groupEdit mode for EditableTable. This allows for editing, adding and saving of multiple rows at once in the component
184
- - added validator function to validate the complete table (e.g. for external save buttons)
185
-
186
- ## [10.12.5] - 2020-12-09
187
- ### Added
188
- - Added allowNewRowCreation option to EditableTable to stop user seeing the new row button
189
- ### Changed
190
- - Changed EditableTableRow to not show edit button when table is not editable
191
-
192
- ## [10.12.4] - 2020-12-09
193
- ### Added
194
- - Added closeEditingOnSave option to editableTable to allow editor to remain open if validation is failed
195
- - Added process data to process reducer
196
-
197
- ## [10.12.3] - 2020-12-07
198
- ### Fixed
199
- - Pass itemName into process action payload
200
- ## [10.12.2] - 2020-12-07
201
- ### Changed
202
- - Allow process action to have a payload
203
-
204
- ## [10.12.1] - 2020-11-20
205
- ### Fixed
206
-
207
- - Editable Table hides new row when it is saved and is no longer a 'new' row.
208
-
209
- ## [10.12.0] - 2020-11-20
210
- ### Fixed
211
-
212
- - Editable Table closes row on save click
213
-
214
- ## [10.11.0] - 2020-11-05
215
-
216
- ### Added
217
- - SelectedItemList optional maxHeight parameter to allow scrolling on long lists
218
-
219
- ## [10.10.3] - 2020-10-09
220
- - Updated material-ui packages
221
-
222
- ## [10.10.2] - 2020-09-16
223
-
224
- ### Fixed
225
-
226
- - Correctly set content type of delete body
227
-
228
- ## [10.10.1] - 2020-09-09
229
-
230
- ### Fixed
231
-
232
- - Can set body of delete action
233
-
234
- ## [10.10.0] - 2020-09-09
235
-
236
- ### Added
237
- - EditableTable
238
- - Delete row functionality
239
- - Optional custom update row function
240
- - Optional validate row function
241
- - Fields that are required but not editable can now be changed when creating a new row and will be read only when editing
242
- - Update styling of Save, Cancel and Delete buttons on table rows
243
- - UpdateApiActions.delete - id can be null
244
-
245
- ## [10.9.0] - 2020-09-02
246
- - Added: LinkButton component that can link to components inside the current (React Router) app via a Link component, or hrefs outside the current app with an html anchor. Optionally takes tooltip text as a prop if you want to display a tooltip, e.g. to inform the user why the button might be disabled.
247
-
248
- ## [10.8.0] - 2020-03-11
249
- - Added: smartGoBack function that can hop over the annoying oidc page to take a user to wherever they came from, whether that's inside the current app or not
250
- - Added: previousPathsSelector - selects a list of paths the user has been to inside this app from the store.
251
-
252
- ## [10.7.2] - 2020-02-25
253
- - Autofocus inputs on TableWithInlineEditing
254
- - Can now search the menu by href, e.g. you could type 'pcbwo' to find pcb works orders
255
-
256
- ## [10.7.1] - 2020-02-25
257
- - Added date utilities to index
258
-
259
- ## [10.7.0] - 2020-02-24
260
- - Added a search to the Navigation component
261
-
262
- ## [10.6.12] - 2020-02-21
263
- - Added: Updating a cell in a row in the TableWithInlineEditing can now optionally trigger updates for other cells in that row. This is useful if the result of input to one cell should auto update the other cells, e.g. if you enter a partNumber you could make the description autofill.
264
-
265
- ## [10.6.11] - 2020-02-19
266
- - Add printStyles to the build. Importing any component from this library now gives you the print styles (which will now be centrally maintained here) for free.
267
-
268
- ## [10.6.7] - 2020-02-17
269
- - Updated redux-api-middleware to v3.2.0
270
-
271
- ## [10.6.5] - 2020-02-12
272
- - Made report table 'avoid page break' style the default, but is now optional in report table and multi report table
273
-
274
- ## [10.6.4] - 2020-02-12
275
- - Added CI. All commits now run the tests and build scripts. All commits (which should only be merge commits!) to master run build -> test -> publish -> deploy. Updated the readme, replacing the old manual change integraton manual with this new process.
276
-
277
- ## [10.6.3] - 2020-02-05
278
- - pass column widths to ReportData in three sizes small/medium/large
279
-
280
- ## [10.6.1] - 2020-02-06
281
-
282
- ## Changed
283
- - Remove new row from EditableTable on clicking cancel button
284
-
285
- ## [10.6.0] - 2020-02-04
286
-
287
- ## Changed
288
- - Allow alternative text than 'Back' on the BackButton. This is really so that you can be more specified, e.g. 'Back to Menu'.
289
- - Allow a custom debounce (time in ms) to be passed into useSearch. Example of usage in TypeaheadTable.
290
- - Allow a minimum search term length before the search gets fired off. This is useful in cases like board parts lookups, where the first 4 characters are pretty meaningless (i.e. PCAS or PCSM). Defaults to one to avoid any breakage.
291
-
292
- ## [10.5.0] - 2020-01-30
293
-
294
- ## Added
295
- - UpdateApiActions: add id parameter can take null value
296
-
297
- ## [10.4.1] - 2020-01-15
298
-
299
- ## Added
300
- - TableWithInlineEditing: allow disabled and required columns
301
-
302
- ## [10.4.0] - 2020-01-14
303
-
304
- ## Added
305
- - added delete into item factory and updateApiActions & makeactions
306
-
307
- ## [10.3.8] - 2020-01-14
308
-
309
- ## Fixed
310
- - EditableTable component factory will show null dates
311
- - Added missing newRow prop to EditableTable
312
-
313
- ## [10.3.7] - 2020-01-14
314
-
315
- ## Added
316
- - Disabled option for Typeahead, defaults to false.
317
-
318
- ## [10.3.6] - 2020-01-10
319
-
320
- ## Fixed
321
- - EditableTable now correctly renders null dates in display mode
322
-
323
- ## [10.3.5] - 2020-01-10
324
-
325
- ## Changed
326
- - Default rowTitle to noWrap class in ReportTable.
327
-
328
- ## [10.3.4] - 2020-01-10
329
-
330
- ## Added
331
- - Unbreak navigation styles already applied
332
-
333
- ## [10.3.3] - 2020-01-09
334
-
335
- ## Added
336
- - Classes to be used to hide Navigation and Breadcrumbs when printing
337
-
338
- ## [10.3.2] - 2020-01-09
339
-
340
- ## Added
341
- - Editable Table stories
342
-
343
- ## Changed
344
- - Export Editable Table component
345
-
346
- ## [10.3.1] - 2020-01-09
347
-
348
- ## Changed
349
- - Highlight total columns in ReportTable
350
-
351
- ## [10.3.0] - 2020-01-07
352
-
353
- ## Added
354
- - Editable Table component
355
- - Keyboard input to Linn Week Picker
356
-
357
- ## Changed
358
- - Linn Week Picker component label prop is no longer required
359
- - Dropdown label prop is no longer required
360
-
361
- ## [10.2.5] - 2020-01-06
362
-
363
- ## Changed
364
- - Reverted theme provider back to old import using MuiThemeProvider
365
-
366
- ## [10.2.4] - 2020-01-06
367
-
368
- ## Changed
369
- - Fixed forgotten tests for loading inside application state + updated how we used MuiThemeProvider to most current way to get rid of warnings
370
-
371
- ## [10.2.3] - 2019-12-0
372
-
373
- ## Changed
374
- - Add loading inside application state in item & collection factory reducers and selectors
375
-
376
- ## [10.2.1] - 2019-12-0
377
-
378
- ## Changed
379
- - Pass placeholder text prop to the InputField in the modal as well as the main one.
380
-
381
- ## [10.2.0] - 2019-12-06
382
-
383
- ## Changed
384
-
385
- - Extended the Typeahead to be more flexible than a search that just links you to other pages. It now takes an onSelect action as an optional prop such that you can define custom behaviour, and a links boolean which you can set to false to override the default behaviour of navigating to a new page onSelect. You should provide an onSelect function and a links={false} configuration if custom behaviour is required ( and conversely should not provide an onSelect and a links={true} config, since any onSelect() bheaviour is ignored if links is true anyway).
386
-
387
- Now also takes an optional modal boolean prop which lets you display search results in a modal as opposed to below the search which is useful for using this in a form where there isn't space to displau search results in the same plane as the field.
388
-
389
- The two new props have default values such that original use cases are respected - i.e. links={true} and modal={false} - hence no breaking changes in this version.
390
-
391
- ## [10.1.0] - 2019-12-04
392
- ### Added
393
- - StateApiActions
394
- ### Changed
395
- - added application state to actions, reducers and selectors
396
-
397
- ## [10.0.4] - 2019-11-21
398
-
399
- ### Changed
400
-
401
- - added css for printing tables and used within page
402
-
403
- ## [10.0.3] - 2019-11-20
404
-
405
- ### Changed
406
-
407
- - added fix for side scrolling issue
408
-
409
- ## [10.0.1] - 2019-11-18
410
-
411
- ### Changed
412
-
413
- - Reverted formatTitle to previous version with drilldown and formatting.
414
-
415
- ## [10.0.0] - 2019-11-18
416
-
417
- ### Changed
418
-
419
- - Declared notistack and react router as peer and dev dependencies as opposed to production dependencies. This means this package will expect to find them in your consuming project at the same version as declared here.
420
-
421
- ## [9.0.3] - 2019-11-15
422
-
423
- ### Changed
424
-
425
- - Update table with inline editing to include add and delete icons, extra props for these permissions + tests
426
-
427
- ## [9.0.2] - 2019-11-13
428
-
429
- ### Fixed
430
-
431
- - ```LinnWeekPicker``` now takes strings or date objects
432
-
433
- ### Added
434
-
435
- - ```dateUtilities``` for Linn Weeks
436
- - Tests for ```LinnWeekPicker```
437
-
438
- ## [9.0.2] - 2019-11-12
439
-
440
- ### Changed
441
-
442
- - Declare @material-ui/pickers as a peer dependency and a dev dependency. This is so that the tests pass in Production without there being two instances of the package AND so that the @material-ui/pickers package is available to the storybook too. I can't think of any other way to solve this problem...
443
-
444
- ## [9.0.1] - 2019-11-12
445
-
446
- ### Changed
447
-
448
- - Use same version of react-redux as consuming projects.
449
-
450
- ## [9.0.0] - 2019-11-12
451
-
452
- ### Removed
453
-
454
- - clearSearch() and clearErrors() actionCreators from UpdateApiActions.js. We don't use these.
455
-
456
- ### Fixed
457
-
458
- - Various errors that resulted in unwanted debug warnings across numerous components.
459
-
460
- - Dropdown - Now handles an allowNoValue as well as an optionsLoading state, both passed in as props (bool).
461
-
462
- ## [8.1.0] - 2019-11-06
463
-
464
- ### Added
465
-
466
- - New Component - LinnWeekPicker
467
-
468
- ## [8.0.1] - 2019-10-31
469
-
470
- ### Fixed
471
-
472
- - Added TableWithInlineEditing to the index. I had accidentally removed it.
473
-
474
- ## [8.0.0] - 2019-10-29
475
-
476
- ### Added
477
-
478
- - TypeheadTable - a typeahead with tabulated results
479
-
480
- ### Removed
481
-
482
- - InfiniteTable
483
-
484
- ## [7.5.0] - 2019-10-29
485
-
486
- ### Added
487
-
488
- - Table with inline editing
489
-
490
- ## [7.4.2] - 2019-10-28
491
-
492
- ### Changed
493
-
494
- - Support nowrap option on report cells
495
-
496
- ## [7.4.1]
497
-
498
- ### Changed
499
-
500
- - Added missing process action type
501
-
502
- ## [7.4.0] - 2019-10-10
503
-
504
- ### Added
505
-
506
- - Added clear error method to process actions.
507
-
508
- ## [7.3.0] - 2019-10-10
509
-
510
- ### Changed
511
-
512
- - Changed initialiseOnMount to pass props into initialise when itemId not provided.
513
- Fixed broken reportOptionsFactory.
514
-
515
- ## [7.2.1] - 2019-10-10
516
-
517
- ### Added
518
-
519
- - Added makeProcessActionTypes and new rsaaType for process
520
-
521
- ## [7.2.0] - 2019-10-08
522
-
523
- ### Added
524
-
525
- - New Component - ValidatedInputDialog
526
-
527
- ### Changed
528
-
529
- - Fixed broken stories.
530
-
531
- ## [7.1.1] - 2019-10-07
532
-
533
- ### Added
534
-
535
- - ProcessActions, ProcessSelectors and processStoreFactory
536
-
537
- ## [7.1.0] - 2019-10-04
538
-
539
- ### Added
540
-
541
- - CHANGELOG.md
542
-
543
- ## [7.0.2] - 2019-10-03
544
-
545
- ### Added
546
-
547
- - Export error details message selector
548
-
549
- ## [7.0.1] - 2019-10-02
550
-
551
- ### Added
552
-
553
- - Fetch error details message selector
554
-
555
- ## [7.0.0] - 2019-09-26
556
-
557
- ### Added
558
-
559
- - Report errors
560
- - Report actions must add their item type as the first prop
561
- ```
562
- export default new ReportActions(
563
- reportTypes.whoBuiltWhat.item,
564
- reportTypes.whoBuiltWhatDetails.actionType,
565
- reportTypes.whoBuiltWhatDetails.uri,
566
- actionTypes,
567
- config.appRoot
568
- );
569
- ```
570
-
571
- ## [6.0.0] - 2019-09-23
572
-
573
- ### Added
574
-
575
- - New error style
576
- - Actions must add their item type as the first prop
577
- ```
578
- export default new FetchApiActions(
579
- itemTypes.cits.item,
580
- itemTypes.cits.actionType,
581
- itemTypes.cits.uri,
582
- actionTypes,
583
- config.appRoot
584
- );
585
- ```
586
-
587
- ### Changed
588
-
589
- - action types to shared rsaa types
590
-
591
- ## [5.0.0] - 2019-16-08
592
-
593
- ### Added
594
-
595
- - Date time picker
596
-
597
- ### Changed
598
-
599
- - Utilites functions exported from utilites file
600
- - All imports must be updated
601
- `import { getHref } from '@linn/react-components-library'`
602
- should now be
603
- `import { utilites } from '@linn/react-components-library'`
604
- and used as
605
- `utilities.getHref(item)`
606
- - Rollup config
607
- - Bundle splitting
@@ -1 +0,0 @@
1
- "use strict";function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function asyncGeneratorStep(e,r,t,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void t(e)}u.done?r(c):Promise.resolve(c).then(n,o)}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _extends(){return(_extends=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,r){return e.__proto__=r,e})(e,r)}function _possibleConstructorReturn(e,r){if(r&&("object"==typeof r||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}exports._asyncToGenerator=function _asyncToGenerator(e){return function(){var r=this,t=arguments;return new Promise((function(n,o){var i=e.apply(r,t);function _next(e){asyncGeneratorStep(i,n,o,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,o,_next,_throw,"throw",e)}_next(void 0)}))}},exports._classCallCheck=function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")},exports._createClass=function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e},exports._createSuper=function _createSuper(e){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var t,n=_getPrototypeOf(e);if(r){var o=_getPrototypeOf(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return _possibleConstructorReturn(this,t)}},exports._defineProperty=_defineProperty,exports._extends=_extends,exports._inherits=function _inherits(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&_setPrototypeOf(e,r)},exports._objectSpread2=function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e},exports._objectWithoutProperties=function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o},exports._slicedToArray=function _slicedToArray(e,r){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var n,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(n=t.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}(e,r)||_unsupportedIterableToArray(e,r)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},exports._toConsumableArray=function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_unsupportedIterableToArray(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()};