]> source.dussan.org Git - vaadin-framework.git/log
vaadin-framework.git
4 years agoReduce excess positioning calls for ComboBox popup. (#11808)
Anna Koskinen [Wed, 13 Nov 2019 12:49:36 +0000 (14:49 +0200)]
Reduce excess positioning calls for ComboBox popup. (#11808)

- If an open popup is reset to its default position on every update from
the server before getting adjusted again to the actual expected
position, on heavier applications some of those intermediate positions
might get rendered. If the ComboBox is positioned at the right edge and
the popup contents are longer than the input field (i.e. popup should
open to the left, not right) this might cause flickering.
- Setting the default position is only actually needed when the popup is
opened in order to give it a baseline, otherwise it's better to simply
adjust the position if needed.

Continues on #11718

4 years agoAdded missing constructor with scanNestedDefinitions option (#11801)
Tatu Lund [Tue, 12 Nov 2019 10:27:56 +0000 (12:27 +0200)]
Added missing constructor with scanNestedDefinitions option (#11801)

* Added missing constructor with scanNestedDefinitions option

Addresses https://github.com/vaadin/framework/issues/10949

4 years agoUse APPLICATION_SCOPE for the session lock (#11792)
Tatu Lund [Tue, 12 Nov 2019 07:30:15 +0000 (09:30 +0200)]
Use APPLICATION_SCOPE for the session lock (#11792)

The Vaadin session itself is also stored in APPLICATION_SCOPE. The default
scope is PORTLET_SCOPE, so lock would be otherwise not be in sync with
the session.

To be able to do this, relevant methods in VaadinService are made protected so
that VaadinPortletService can override them.

Fixes #11611

4 years agoFixing issue with Push stopping working in some circumstances (#11791)
Tatu Lund [Tue, 5 Nov 2019 14:16:38 +0000 (16:16 +0200)]
Fixing issue with Push stopping working in some circumstances (#11791)

* Fixing issue with Push stopping working in some circumstances

If new request is attempted when resynchronization is ongoing, the Push will stop working. This patch fixes the issue by aborting handleJson if resynch is already ongoing.

This PR supercedes https://github.com/vaadin/framework/pull/11786

Fixes #11702, #7719

* Call onResynchronize() in MessageHandler

* Optimizing

4 years agoCheck actual Grid selection instead of relying on allSelected flag. (#11787)
Anna Koskinen [Mon, 4 Nov 2019 11:26:32 +0000 (13:26 +0200)]
Check actual Grid selection instead of relying on allSelected flag. (#11787)

The checkbox for selecting all rows only selects all the rows that have
not been filtered out. Changing the filtering does not change the
selection or the checkbox state so assuming that all rows are selected
simply because the checkbox has been checked cannot work.

Fixes #11479

4 years agoRemoved a duplicated word in a note. (#11785)
Anna Koskinen [Mon, 4 Nov 2019 09:10:19 +0000 (11:10 +0200)]
Removed a duplicated word in a note. (#11785)

4 years agoAdded note to setTemplateContents JavaDoc (#11752)
Tatu Lund [Sat, 2 Nov 2019 17:45:22 +0000 (19:45 +0200)]
Added note to setTemplateContents JavaDoc (#11752)

Addresses https://github.com/vaadin/framework/issues/1262

4 years agoFix a timing issue in ComboBox filtering via paste using mouse. (#11780)
Anna Koskinen [Thu, 31 Oct 2019 11:48:17 +0000 (13:48 +0200)]
Fix a timing issue in ComboBox filtering via paste using mouse. (#11780)

The filtering needs to be delayed, otherwise it's performed before the
new filter text is available and the old filter text is used instead.

Fixes #11779

4 years agoSwitch from an assert to logging and return in Grid.onBrowserEvent (#11778)
Anna Koskinen [Wed, 30 Oct 2019 10:26:32 +0000 (12:26 +0200)]
Switch from an assert to logging and return in Grid.onBrowserEvent (#11778)

- If the Grid has frozen columns zooming can cause the regular column
cells to be ever so slightly out of sync with their corresponding rows.
This difference is not noticeable to naked eye but is big enough that
it's possible to hover over the row instead of the cell, which causes an
assertion error and a big ugly error popup. Switching to logging retains
the information delivered by the assertion error for developer purposes
but makes the end user experience smoother.
- Can be tested manually with GridColumnFrozenColumn test UI.

Fixes #11198

4 years agoAdded 1px tolerance to ScrollbarBundle's internal sanity check. (#11777)
Anna Koskinen [Tue, 29 Oct 2019 10:59:27 +0000 (12:59 +0200)]
Added 1px tolerance to ScrollbarBundle's internal sanity check. (#11777)

* Added 1px tolerance to ScrollbarBundle's internal sanity check.

Requiring exact match can cause this check to fail when the browser is
zoomed since rounding is involved. This can in turn block some features
like opening of Grid Editor from working until some more scrolling
happens and the minute inconsistency is fixed.

Can be tested manually using GridEditorUI, depending on the environment
different amounts of zooming may be required for the problem to
manifest.

Fixes #11672

4 years agoImprovements to ScrollDestination sanity checks (#11772)
Anna Koskinen [Mon, 28 Oct 2019 14:32:12 +0000 (16:32 +0200)]
Improvements to ScrollDestination sanity checks (#11772)

- The new top row logical index should always be within the logical
range and high enough up to avoid leaving a gap if possible.
- Added regression testing for using the different scroll destination
types for scrolling to the top and to the bottom by index.

Fixes #11732

4 years agoAdded missing NOTIFICATION_DARK (#11770)
Tatu Lund [Mon, 28 Oct 2019 13:07:41 +0000 (15:07 +0200)]
Added missing NOTIFICATION_DARK (#11770)

And corrected couple of typos

Addresses https://github.com/vaadin/framework/issues/11492

4 years agoFix the end limit of the allowed scrollTo rows. (#11771)
Anna Koskinen [Mon, 28 Oct 2019 11:06:43 +0000 (13:06 +0200)]
Fix the end limit of the allowed scrollTo rows. (#11771)

- Row index counts up from zero, data provider size counts up from one,
as one would expect. If the two match we are already past the available
range.

4 years agoMade JavaDoc of updateSelection more precise (#11768)
Tatu Lund [Mon, 28 Oct 2019 07:52:18 +0000 (09:52 +0200)]
Made JavaDoc of updateSelection more precise (#11768)

Addresses https://github.com/vaadin/framework/issues/11520

4 years agoTweak a test to open Grid details row by clicking cell instead of row. (#11764)
Anna Koskinen [Fri, 25 Oct 2019 07:41:51 +0000 (10:41 +0300)]
Tweak a test to open Grid details row by clicking cell instead of row. (#11764)

4 years agoUpdate chrome version to 78 (#11765)
Zhe Sun [Fri, 25 Oct 2019 06:37:10 +0000 (09:37 +0300)]
Update chrome version to 78 (#11765)

4 years agoWhen ComboBox popup opens to the left accommodate margin/border/padding. (#11755)
Anna Koskinen [Wed, 23 Oct 2019 11:24:19 +0000 (14:24 +0300)]
When ComboBox popup opens to the left accommodate margin/border/padding. (#11755)

Fixes #11718

4 years agoMake sure expanding/collapsing updates expected cache size. (#11753)
Anna Koskinen [Tue, 22 Oct 2019 10:55:27 +0000 (13:55 +0300)]
Make sure expanding/collapsing updates expected cache size. (#11753)

* Make sure expanding/collapsing updates expected cache size.

Fixes #11749

* Merge branch 'master' into issue11749

4 years agoMake cancellation of uploads work regardless of Push configuration (#11743)
Willem Verstraeten [Mon, 21 Oct 2019 17:15:23 +0000 (19:15 +0200)]
Make cancellation of uploads work regardless of Push configuration (#11743)

- Checking the push configuration outside of session lock threw
  an AssertionError, so the push configuration is not checked anymore.

- The original problem with cancelling Upload was due to a subtle
  ordering issue that depended on the Push configuration.
  In the case of PushMode.AUTOMATIC, a new StreamVariable was
  added by the `Upload` component _before_ the `FileUploadHandler`
  got a chance to remove the old `StreamVariable`. As a result, the
  `FileUploadHandler` actually removed the fresh `StreamVariable`,
  breaking future uploads.

Fixes #11682

4 years agoAdd note to setRenderer() JavaDoc about presentation provider (#11751)
Tatu Lund [Mon, 21 Oct 2019 05:37:20 +0000 (08:37 +0300)]
Add note to setRenderer() JavaDoc about presentation provider (#11751)

Addresses https://github.com/vaadin/framework/issues/10277

5 years agoUpload should preserve MIMEType after first selection (#11745)
Anastasia Smirnova [Wed, 16 Oct 2019 09:34:06 +0000 (12:34 +0300)]
Upload should preserve MIMEType after first selection (#11745)

* Upload should preserve MIMEType after first selection

Fix #11698

Automated test is not run locally, need to continue with it

* Remove unused imports

* Add sleep time in testing purposes

* Getting a new instance of an input, after file is downloaded

Exclude IE from tests. Throws https://stackoverflow.com/questions/23883071/unhandled-alert-exception-modal-dialog-present-selenium , but checked manually and it works

5 years agoMake sure Firefox for iOS isn't detected as too old to function. (#11739)
Felix Fontein [Thu, 3 Oct 2019 12:46:33 +0000 (14:46 +0200)]
Make sure Firefox for iOS isn't detected as too old to function. (#11739)

Change-Id: Iea13b958356b0246586bcb7e9969bc26db43bb96

5 years agoCatch and handle IllegalStateException (#11733)
Tatu Lund [Thu, 3 Oct 2019 11:10:13 +0000 (14:10 +0300)]
Catch and handle IllegalStateException (#11733)

* Catch and handle IllegalStateException

Fixes https://github.com/vaadin/framework/issues/11730

* Renaming variables

5 years agoAdded note in JavaDoc of removeColumn (#11725)
Tatu Lund [Thu, 3 Oct 2019 06:38:20 +0000 (09:38 +0300)]
Added note in JavaDoc of removeColumn (#11725)

* Added note in JavaDoc of removeColumn

https://github.com/vaadin/framework/issues/11722

* Merge branch 'master' into fix11722

* Merge branch 'master' into fix11722

5 years agoUpdate context menu addon version (#11735)
Zhe Sun [Wed, 2 Oct 2019 10:09:30 +0000 (13:09 +0300)]
Update context menu addon version (#11735)

5 years agoUpdate Chrome version to 77 (#11727)
Zhe Sun [Tue, 24 Sep 2019 10:05:37 +0000 (13:05 +0300)]
Update Chrome version to 77 (#11727)

* Update Chrome version to 77

* update screenshots

* update screenshots

5 years agoUpdate release note to mention Java 11 support (#11697)
Zhe Sun [Mon, 9 Sep 2019 11:08:01 +0000 (14:08 +0300)]
Update release note to mention Java 11 support (#11697)

* Update release note to mention Java 11 support

* Update explanation about client side code

5 years agoRemoval of data communicator needs to happen before call to super.remove() (#11710)
Tatu Lund [Mon, 9 Sep 2019 07:11:10 +0000 (10:11 +0300)]
Removal of data communicator needs to happen before call to super.remove() (#11710)

Removal of data communicator needs to happen before call to super.remove() since super.remove() sets parent to null causing the NPE.

Fixes https://github.com/vaadin/framework/issues/11617

5 years agoCorrect usage of String.format(..) (#11704)
Tatu Lund [Mon, 9 Sep 2019 06:15:44 +0000 (09:15 +0300)]
Correct usage of String.format(..) (#11704)

Fixes https://github.com/vaadin/framework/issues/11701

5 years agoRemove double negation (#11713)
eriklumme [Fri, 6 Sep 2019 15:08:11 +0000 (18:08 +0300)]
Remove double negation (#11713)

"doesn't not" should be either "doesn't" or "does not".

5 years agoFix scrollTo for destination START and END and add regression testing. (#11707)
Anna Koskinen [Thu, 5 Sep 2019 11:21:57 +0000 (14:21 +0300)]
Fix scrollTo for destination START and END and add regression testing. (#11707)

- Initial implementation erroneously assumed that
ScrollDestination.START would only be used for scrolling up and
ScrollDestination.END for scrolling down. That's obviously not what they
are for, otherwise everyone would be using ScrollDestination.ANY.
- Moved actual scrolling to within the helper method that originally
only calculated the new scroll position. Parent method became too long
otherwise.

Fixes #11706

5 years agoUpdated row and spacer handling for Escalator (#11438)
Anna Koskinen [Thu, 29 Aug 2019 13:06:25 +0000 (16:06 +0300)]
Updated row and spacer handling for Escalator (#11438)

Updated row and spacer handling for Escalator.

Main changes:
- Spacers are only maintained and checked for rows that have DOM
representation, and not at all if there is no details generator. This
gives notable performance improvements to some particularly large Grids
- Escalator no longer tries to trim away any rows that don't fit within
the viewport just because a details row gets opened in Grid. This leads
to some increase in simultaneous DOM elements, but simplifies the logic
considerably. For example opening or closing details rows doesn't
require checking the overall content validity beyond the details row
itself anymore, but some repositioning at most. There are also no longer
any orphaned spacers without corresponding DOM rows.
- Spacers are better integrated into the overall position calculations.
- Some public methods that are no longer used by Escalator or have
changed functionality or order of operations. Any extending classes that
tap into row, spacer, or scroll position handling are likely to need
reworking after this update.
- Auto-detecting row height is delayed until Escalator is both attached
and displayed.

5 years agoRead-only styles shouldn't override borderless background styles. (#11692)
Anna Koskinen [Fri, 16 Aug 2019 10:49:38 +0000 (13:49 +0300)]
Read-only styles shouldn't override borderless background styles. (#11692)

* Read-only styles shouldn't override borderless background styles.

- Fixed for ComboBox and DateField styles, other tested components
already do it right.

Fixes #11671

* Merge branch 'master' into issue11671

5 years agoAdd explicit handling of ctrl-a (#11693)
Tatu Lund [Mon, 12 Aug 2019 11:22:38 +0000 (14:22 +0300)]
Add explicit handling of ctrl-a (#11693)

* Add explicit handling of ctrl-a

Fixes https://github.com/vaadin/framework/issues/11678

* Adds test case and formatting the code

5 years agoUpdate Chrome version, snapshots and fix tests (#11684)
Zhe Sun [Mon, 5 Aug 2019 07:15:11 +0000 (10:15 +0300)]
Update Chrome version, snapshots and fix tests (#11684)

5 years agoAdd a missing letter (#11676)
Anastasia Smirnova [Tue, 30 Jul 2019 11:58:51 +0000 (14:58 +0300)]
Add a missing letter (#11676)

Fixes https://github.com/vaadin/framework/issues/11409

5 years agoUpdate the since tag (#11675)
Zhe Sun [Tue, 30 Jul 2019 10:28:51 +0000 (13:28 +0300)]
Update the since tag (#11675)

* Update the since tag

5 years agoUpdate Spring addon to 3.2.1 (#11670)
Zhe Sun [Tue, 30 Jul 2019 08:37:06 +0000 (11:37 +0300)]
Update Spring addon to 3.2.1 (#11670)

5 years agoUpdate screenshot (#11669)
Zhe Sun [Tue, 30 Jul 2019 07:47:07 +0000 (10:47 +0300)]
Update screenshot (#11669)

5 years agoApply offset to column index depending on presense of selection column (#11667)
Tatu Lund [Tue, 30 Jul 2019 06:42:20 +0000 (09:42 +0300)]
Apply offset to column index depending on presense of selection column (#11667)

* Apply offset to column index depending on presense of selection column

After testing this manually I noticed that offset correction needs to be negative

* Add the testing UI

5 years agoEnsure the upload button has been disabled when set Enabled calling from succeedL...
Zhe Sun [Mon, 29 Jul 2019 11:36:39 +0000 (14:36 +0300)]
Ensure the upload button has been disabled when set Enabled calling from succeedL… (#11655)

* Ensure the upload button has been disabled when calling from succeedListener with Push enabled

* Add Tests to verify

5 years agoPrevent excessive getLogger() calls from markAsDirty() (#11664)
Leif Åstrand [Mon, 29 Jul 2019 09:07:40 +0000 (12:07 +0300)]
Prevent excessive getLogger() calls from markAsDirty() (#11664)

Fixes #10339

5 years agoUpdate to 8.10-SNAPSHOT (#11657)
Zhe Sun [Mon, 29 Jul 2019 08:17:15 +0000 (11:17 +0300)]
Update to 8.10-SNAPSHOT (#11657)

5 years agoUse https for Maven repositories (#11668)
Stéphane Nicoll [Mon, 29 Jul 2019 06:45:31 +0000 (08:45 +0200)]
Use https for Maven repositories (#11668)

* Use https for Maven repositories

5 years agoEnsure that VComboBox.selectedOptionKey gets initial selection. (#11665)
Anna Koskinen [Wed, 24 Jul 2019 13:49:25 +0000 (16:49 +0300)]
Ensure that VComboBox.selectedOptionKey gets initial selection. (#11665)

Fixes #10741

5 years agoImprovements to detail row index handling. (#11345)
Anna Koskinen [Tue, 16 Jul 2019 12:21:23 +0000 (15:21 +0300)]
Improvements to detail row index handling. (#11345)

- Escalator should notify when an existing details row is moved to a new
index.
- Grid and DetailsManagerConnector should update their internal indexing
when details manager index changes in Escalator.

5 years ago11642 refresh pagelength 0 combobox items after dataprovider update (#11653)
Olli Tietäväinen [Fri, 12 Jul 2019 07:44:55 +0000 (10:44 +0300)]
11642 refresh pagelength 0 combobox items after dataprovider update (#11653)

* Fixes #11642. ComboBox with pageLength 0 should be updated if DataProvider changes

* added comments, fixed imports

5 years agoEnsure the selection has been changed before updating . (#11658)
Anna Koskinen [Fri, 12 Jul 2019 06:05:20 +0000 (09:05 +0300)]
Ensure the selection has been changed before updating . (#11658)

- Initial fix attempt interfered with selection events, added regression
testing for those and found a better way to ensure shift selection works
on IE11 also with Windows 7.

Fixes #11608

5 years agoInput prompt was renamed to placeholder (#11649) 8.9.0.beta1
Olli Tietäväinen [Thu, 4 Jul 2019 07:43:54 +0000 (10:43 +0300)]
Input prompt was renamed to placeholder (#11649)

5 years agoFix unstable tests (#11648)
Zhe Sun [Thu, 4 Jul 2019 06:42:54 +0000 (09:42 +0300)]
Fix unstable tests (#11648)

* Fix unstable tests

5 years agoSanitize caption used in Grid header (#11644)
Zhe Sun [Mon, 1 Jul 2019 11:56:48 +0000 (14:56 +0300)]
Sanitize caption used in Grid header (#11644)

* Sanitize input used in Grid header

5 years agoFixes unstable/muted tests (#11640) 8.9.0.alpha1
Zhe Sun [Fri, 28 Jun 2019 06:08:07 +0000 (09:08 +0300)]
Fixes unstable/muted tests (#11640)

5 years agoRemoved ';' in lambdas (#11628)
Zhe Sun [Thu, 27 Jun 2019 13:31:25 +0000 (16:31 +0300)]
Removed ';' in lambdas (#11628)

* Removed ';' in lambdas

credits to @voltor

* Merge branch 'master' into ZheSun88-patch-1

5 years agoUpdate release note and Since tag (#11639)
Zhe Sun [Thu, 27 Jun 2019 12:34:37 +0000 (15:34 +0300)]
Update release note and Since tag (#11639)

* Update release note for 8.9

* Missing Since

5 years agoOSGi: Removed static VaadinResourceService access in liferay-integration, osgi-integr...
S.W [Thu, 27 Jun 2019 07:58:37 +0000 (09:58 +0200)]
OSGi: Removed static VaadinResourceService access in liferay-integration, osgi-integration (#11335)

* Made VaadinResourceService a OSGi component, removed static access of OsgiVaadinResources

5 years agoAdd Delay to unstable tests (#11638)
Zhe Sun [Thu, 27 Jun 2019 04:58:21 +0000 (07:58 +0300)]
Add Delay to unstable tests (#11638)

* Add Delay to unstable tests

* Add sleep time

5 years agoAdding css class to Editor when on selected row (#11636)
Tatu Lund [Wed, 26 Jun 2019 10:42:10 +0000 (13:42 +0300)]
Adding css class to Editor when on selected row (#11636)

* Adding "v-grid-editor-selected" stylename in editor cell wrapper element when Grid is opened on selected row.

5 years agoFixing upload handler error handling (#11630)
Tatu Lund [Tue, 25 Jun 2019 12:03:09 +0000 (15:03 +0300)]
Fixing upload handler error handling (#11630)

* Fixing upload handler error handling

For some reason stream variable cleanup did not use UI.getCurrent(), despite current UI was set earlier in handleRequest, what I see specifically for this purpose. So I chanted this. This will address also issue #7289

Furthermore there was TODO in handle request about error handling. I interpreted this to refer to possible corner case, that UI is not found via session. In this case it is more appropriate throw UploadException and abort, than lat NPE happen.

* Fixing exception type

5 years agoClicking on DateField pop-up should select Month/Year (#11531)
Anastasia Smirnova [Tue, 25 Jun 2019 05:37:08 +0000 (08:37 +0300)]
Clicking on DateField pop-up should select Month/Year (#11531)

* Clicking on DateField pop-up should select Month/Year

In Year/Month Resolution DateField should select the value, when user clicks on pop-up

Fixes #8447

5 years agoLimit previous solution for non-push mode UI (#11629)
Zhe Sun [Mon, 24 Jun 2019 08:10:49 +0000 (11:10 +0300)]
Limit previous solution for non-push mode UI (#11629)

* add test case

* Limit the workaround for non-push mode

Fixes #11616

5 years agoAdd IE11 workaround for ListSelect multiselection. (#11631)
Anna Koskinen [Thu, 20 Jun 2019 12:27:54 +0000 (15:27 +0300)]
Add IE11 workaround for ListSelect multiselection. (#11631)

Fixes #11608

5 years agoDeploying Vaadin 8.8.2 on WebSphere Application Server 8.5.5.15 traditional (#11624)
akovac35 [Tue, 18 Jun 2019 06:38:44 +0000 (08:38 +0200)]
Deploying Vaadin 8.8.2 on WebSphere Application Server 8.5.5.15 traditional (#11624)

* Create DeployingVaadinOnWebsphere

* Rename DeployingVaadinOnWebsphere to DeployingVaadinOnWebsphere.asciidoc

5 years agoSeparates a rpc for handling the client event order in DateTimeField (#11574)
Zhe Sun [Fri, 14 Jun 2019 12:31:44 +0000 (15:31 +0300)]
Separates a rpc for handling the client event order in DateTimeField (#11574)

* Using @Delayed annotation for DateField Rpc

* Separate a rpc for handling the time change in DateTimeField

* Add test case for wrong event order

5 years agoImproved fix for #11614 (#11618)
Martin Vysny [Thu, 13 Jun 2019 12:03:00 +0000 (15:03 +0300)]
Improved fix for #11614 (#11618)

* #11614: Added test which demonstrates that the fix is incomplete

* #11614: UI.doRefresh() only calls navigator when the navigation state actually changes

* Added javadoc to Navigator.getCurrentNavigationState()

* Minor: Removed accidental star imports

5 years agoUpdate Chrome version in Test (#11613)
Zhe Sun [Wed, 12 Jun 2019 09:36:55 +0000 (12:36 +0300)]
Update Chrome version in Test (#11613)

1) recalculate the offset, as ChromeDriver starts to follow the standard;
2) update screenshots;
3) correct the `click()` call with using coordinates, related to 1)
4) `sendkey()` with using key.modifier adjustment
5) add sleep
6) workaround for mastery failures

5 years agoFix regression that broke PreserveOnRefresh functionality with Navigator (#11615)
Tatu Lund [Fri, 7 Jun 2019 10:14:38 +0000 (13:14 +0300)]
Fix regression that broke PreserveOnRefresh functionality with Navigator (#11615)

* Fix regression that broke PreserveOnRefresh functionality with Navigator

Fixes https://github.com/vaadin/framework/issues/11614

Old patch https://github.com/vaadin/framework/issues/11416 calls navigateTo allways when Navigator is present, which is wrong, since it is needed only when navigation state has truly changed.

* Add test to the fix

5 years agoUpdate spring addon to 3.2.0 (#11610)
Zhe Sun [Fri, 7 Jun 2019 07:22:35 +0000 (10:22 +0300)]
Update spring addon to 3.2.0 (#11610)

* Update spring addon to 3.2.0

* Merge branch 'master' into ZheSun88-patch-1

5 years agoRecalculate the column widths before the first row is added (#11609)
Zhe Sun [Thu, 6 Jun 2019 05:45:02 +0000 (08:45 +0300)]
Recalculate the column widths before the first row is added (#11609)

* Recalculate the column widths before the first row is added

Fixes #11607

5 years agoGrid Editor: make Tab key skip read-only/disabled fields (#11586)
Martin Vysny [Mon, 3 Jun 2019 10:02:04 +0000 (12:02 +0200)]
Grid Editor: make Tab key skip read-only/disabled fields (#11586)

* Grid Editor: make Tab key skip read-only/disabled fields

Closes #11584

* Extracted DefaultEditorEventHandler.getDeltaFromKeyDownEvent() which allows for easy further Grid Editor customization

* Make DefaultEditorEventHandler.Delta public so that getDeltaFromKeyDownEvent() can be overridden

* Fixed exception in isEditable() if the widget was not a Field

* Refactored DefaultEditorEventHandler.Delta to CursorMoveDelta which expresses the intent more clearly

* Merge branch 'master' into master

5 years agofix misspelled function call (#11602)
Trent Nguyen [Fri, 24 May 2019 05:48:21 +0000 (00:48 -0500)]
fix misspelled function call (#11602)

5 years agoUpdate broken docs syntax in github (#11596)
Zhe Sun [Thu, 23 May 2019 06:43:31 +0000 (09:43 +0300)]
Update broken docs syntax in github (#11596)

* Add delay to the unstable test

* Add delay for unstable tests

* Update broken docs syntax in github

* Merge branch 'master' into ZheSun88-patch-1

* Update doc reference syntax

* Merge branch 'ZheSun88-patch-1' of github.com:vaadin/framework into ZheSun88-patch-1

# Conflicts:
# documentation/components/components-overview.asciidoc

* Merge branch 'master' into ZheSun88-patch-1

* use .asciidoc

* Merge remote-tracking branch 'origin/ZheSun88-patch-1' into ZheSun88-patch-1

* use .asciidoc

* Merge branch 'master' into ZheSun88-patch-1

5 years agoOverride reserved globals for Firefox (#11598)
Artur [Wed, 22 May 2019 12:48:34 +0000 (15:48 +0300)]
Override reserved globals for Firefox (#11598)

Fixes #11597

5 years agoFixing broken links in V8 documentation (#11591)
juhopiirainen [Wed, 22 May 2019 08:50:44 +0000 (11:50 +0300)]
Fixing broken links in V8 documentation (#11591)

5 years agoMigrate blog post (#11579)
Sun Zhe [Wed, 22 May 2019 06:22:12 +0000 (09:22 +0300)]
Migrate blog post (#11579)

* Migrate blog post to articles

* Add to Content list

* Add link to the referred content

5 years agoFix Grid reordering when there are hidden columns
cuong-phan [Mon, 20 May 2019 12:00:38 +0000 (15:00 +0300)]
Fix Grid reordering when there are hidden columns

* Fix grid column reordering

Fix grid column reordering when there are hidden columns and footerRow.join

* Add test

5 years agoDon't attempt to scroll to the beginning or end if Grid has no rows. (#11570)
Anna Koskinen [Mon, 20 May 2019 06:35:49 +0000 (09:35 +0300)]
Don't attempt to scroll to the beginning or end if Grid has no rows. (#11570)

Fixes #11558

5 years agoUpdated instructions on how to run TB3+ tests with Intellij; added Qu… (#11580)
Martin Vysny [Fri, 17 May 2019 12:53:22 +0000 (14:53 +0200)]
Updated instructions on how to run TB3+ tests with Intellij; added Qu… (#11580)

* Updated instructions on how to run TB3+ tests with Intellij; added QuickStart to quickly set up testing environment

* Readme rewording

5 years agoFix duplicate grid column visibility change event (#11565)
cuong-phan [Thu, 16 May 2019 08:53:24 +0000 (11:53 +0300)]
Fix duplicate grid column visibility change event (#11565)

* Fix duplicate grid column visibility change event

Toggle a column visibility through UI will fire 2 event. There should be only 1.

* Add Test

5 years agoGrid editor: TAB now skips non-editable columns (#11573)
Martin Vysny [Thu, 16 May 2019 06:27:33 +0000 (08:27 +0200)]
Grid editor: TAB now skips non-editable columns (#11573)

* Grid editor: TAB now skips non-editable columns

Pressing TAB would shift the focus to non-editable cells when the Grid was in edit mode.
This patch makes DefaultEditorEventHandler to skip such columns.

Closes #10970

* Add tests

5 years agoFix the broken links in the documentation
juhopiirainen [Wed, 15 May 2019 06:27:58 +0000 (09:27 +0300)]
Fix the broken links in the documentation

5 years agoReduce Grid's sort complexity. (#11566)
Anna Koskinen [Wed, 15 May 2019 05:45:13 +0000 (08:45 +0300)]
Reduce Grid's sort complexity. (#11566)

- limit DataCommunicator workaround from #11320 to ComboBox only
- don't reset DataCommunicator before modifying all sorting data

Fixes #11532

5 years agoAdd handling for completely empty Grid's column width calculations. (#11569)
Anna Koskinen [Tue, 14 May 2019 12:05:12 +0000 (15:05 +0300)]
Add handling for completely empty Grid's column width calculations. (#11569)

Fixes #11557

5 years agoUpdate for Liferay 7.2 compatibility (#11564)
Chris Morris [Mon, 13 May 2019 10:00:43 +0000 (11:00 +0100)]
Update for Liferay 7.2 compatibility (#11564)

Change so that liferay 7.2 can run Vaadin portlets

5 years agocode format (#11555)
Sun Zhe [Thu, 2 May 2019 12:13:17 +0000 (15:13 +0300)]
code format (#11555)

5 years agoChanged the handleSessionExpired logic to return a 404 instead of a 410 and added...
edler-san [Thu, 2 May 2019 11:26:14 +0000 (13:26 +0200)]
Changed the handleSessionExpired logic to return a 404 instead of a 410 and added the no-cache parameter to the reply. (#11556)

* Changed the handleSessionExpired logic to return a 404 instead of a 410. Also added the no-cache parameter to the reply.
See https://github.com/vaadin/framework/issues/4417 for discussion.

5 years agoCode format (#11548)
Sun Zhe [Mon, 29 Apr 2019 10:00:28 +0000 (13:00 +0300)]
Code format (#11548)

* Code format

* Merge branch 'master' into code-format

5 years agoUpdate jetty.version to solve vulnerability alert (#11546)
Sun Zhe [Mon, 29 Apr 2019 09:05:58 +0000 (12:05 +0300)]
Update jetty.version to solve vulnerability alert (#11546)

5 years agoReplace the screenshot usage in framework test (#11547)
Sun Zhe [Mon, 29 Apr 2019 08:27:35 +0000 (11:27 +0300)]
Replace the screenshot usage in framework test (#11547)

- Replace the GridDisabledTest screenshot usage
- Replace the screenshot tests in BasicCrudGridEditorRowTest
- Replace the screenshot tests in ComboboxVaadinIcons
- Replace the screenshot tests in ValoThemeUITest::accordions
- Added screenshotcomparetolerance to some screenshot test to make tests stable

5 years agoOpening methods for Spring add-on to be used in the fix (#11551)
Tatu Lund [Thu, 25 Apr 2019 12:30:33 +0000 (15:30 +0300)]
Opening methods for Spring add-on to be used in the fix (#11551)

Spring add-on needs to use these added methods in order to fix #10922

5 years agoUpdate browser version in the test (#11550)
Sun Zhe [Thu, 25 Apr 2019 10:07:20 +0000 (13:07 +0300)]
Update browser version in the test (#11550)

5 years agoReset Combobox internal state (#11412)
Sun Zhe [Wed, 24 Apr 2019 10:28:01 +0000 (13:28 +0300)]
Reset Combobox internal state (#11412)

issue in #11343 and #11385 is not reproducible on top this patch
Three different bugs are involved in this fix:
we bring the old fix(#11094) back and fixed the other related issues:
1) allow adding the same new item after dataProvider got reset, This is cause by the client side parameter `LastNewItemString`, it saves the value added before resetting.
2) clear the pending newItem eagerly, so that the same value will not be added again.

5 years agoUpdate to 8.9 (#11535)
Sun Zhe [Thu, 18 Apr 2019 09:34:11 +0000 (12:34 +0300)]
Update to 8.9 (#11535)

* Update to 8.9-SNAPSHOT

* update in bom module

5 years agoFinish the since tag (#11540) (#11543)
Sun Zhe [Thu, 18 Apr 2019 06:20:20 +0000 (09:20 +0300)]
Finish the since tag (#11540) (#11543)

5 years agoCreate StringToUuidConverter.java (#11387)
Basil Bourque [Wed, 10 Apr 2019 18:28:46 +0000 (11:28 -0700)]
Create StringToUuidConverter.java (#11387)

* Create StringToUuidConverter.java

Implements the `Converter` interface, to support converting back-and-forth between `String` and `UUID` (a type built into Java 5 and later).

See Issue # 11,051.
https://github.com/vaadin/framework/issues/11051

* Formatting cleanup, remove sinces

5 years agoClicking on slider makes handler move (#11519)
Anastasia Smirnova [Wed, 10 Apr 2019 13:17:18 +0000 (16:17 +0300)]
Clicking on slider makes handler move (#11519)

* Clicking on slider makes handler move

Fixes #1496

* Introducing control over clicking behaviour

- User will have to enable process of the click event on handle calling `slider.setEnableClickHandler(true);`
- Clean-up the handler logic in VSlider.java
- Renaming the property to `updateValueOnClick`
- Added JavaDocs
- Fixing tests

5 years agoFixing autocompletion issue with ComboBox on newer Chrome versions (#11524)
Tatu Lund [Wed, 10 Apr 2019 11:42:58 +0000 (14:42 +0300)]
Fixing autocompletion issue with ComboBox on newer Chrome versions (#11524)

Newer Chrome versions do not work with random number hack to prevent auto completion, but it finally supports autocomplete=off.

Adapted from https://github.com/vaadin/framework/pull/11472

Fixes #11437

5 years agoFixing autocompletion issue with ComboBox on newer Chrome versions (#11472)
Tatu Lund [Wed, 10 Apr 2019 10:07:43 +0000 (13:07 +0300)]
Fixing autocompletion issue with ComboBox on newer Chrome versions (#11472)

* Fixing autocompletion issue with ComboBox on newer Chrome versions

Newer Chrome versions do not work with random number hack to prevent auto completion, but it finally supports autocomplete=off.

* Merge branch 'master' into fix11437

* Merge branch 'master' into fix11437

* Merge branch 'master' into fix11437

* Merge branch 'master' into fix11437

* Merge branch 'master' into fix11437

* Merge branch 'master' into fix11437

* Merge branch 'master' into fix11437

* Merge branch 'master' into fix11437

5 years agoAdded note about Java 8 vendors (#11530)
Olli Tietäväinen [Wed, 10 Apr 2019 05:42:01 +0000 (08:42 +0300)]
Added note about Java 8 vendors (#11530)

* Added note about Java 8 vendors

* Update release-notes.html

5 years agoAdd delay to the unstable test (#11538)
Sun Zhe [Tue, 9 Apr 2019 13:45:30 +0000 (16:45 +0300)]
Add delay to the unstable test (#11538)

* Add delay to the unstable test

5 years agoUse Enter and Space keys to fire Window header buttons (#11517) (#11534)
KatriHaapalinna [Mon, 8 Apr 2019 11:31:17 +0000 (14:31 +0300)]
Use Enter and Space keys to fire Window header buttons (#11517) (#11534)

* Fixes 11517. Use ENTER and SPACE keys as shortcuts for header buttons

* Merge branch 'master' into fix-11517

* Increase sleep time for test failing in validation

* Merge branch 'master' into fix-11517