summaryrefslogtreecommitdiffstats
path: root/shared
Commit message (Collapse)AuthorAgeFilesLines
* Initial implementation of ComponentRenderer for Grid (#8743)Teemu Suo-Anttila2017-03-091-0/+26
| | | | Fixes #8622 Fixes #8623
* Remove tracking of unregistered connectors (#8153)Aleksi Hietanen2017-03-071-2/+0
|
* Add @author and @since tags to drag and drop related new files (#8693) (#8694)Adam Wagner2017-03-016-0/+18
| | | | * Add @author and @since tags to drag and drop related new files (#8693)
* Add initial implementation of TreeGrid (#8572)Aleksi Hietanen2017-02-233-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | * Add initial implementation of TreeGrid * Refactor TreeGrid and related classes * Fix potential class cast exception in TreeGrid#getDataProvider * Add smoke tests for TreeGrid * Add communication constants for TreeGrid Use shared constant values for hierarchy data serialization and deserialization * Fix event ordering in TreeGrid, add javadocs, keyboard navigation test * TreeGrid improvements * Add TreeGrid.getDataProvider to StateGetDoesNotMarkDirtyTest exclude list * Merge remote-tracking branch 'github/master' into tree-grid * Remove getEscalator override from TreeGrid
* Make DragSource extension/component available in DropEvent (#8636)Adam Wagner2017-02-221-1/+3
| | | | | | | | | | * Make DragSource extension/component available in DropEvent (resolves #8439) * Update drag and drop test to use new API * Change type of drag source and update javadoc * Use existing data map instead of DataTransfer
* Add support for rendering HTML in ButtonRenderer (#8606)Artur2017-02-221-1/+1
|
* Pick changes from 7.7.7 (#8577)Teemu Suo-Anttila2017-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix java packaging order (#106) Closes vaadin/archetypes#113 * Use proper UTF-8 encoding for Content-Disposition filenames (#19527) (#6607) * Enable changing the backing bean for BeanItem (#4302) (#77) When storing a bean to the database, you typically get a new and updated bean instance back. By allowing to change the bean instance, we make it possible to just update the single BeanItem instance which can be used in many places. * Make AtmospherePushConnection methods public (#7973) There is no sensible way to use a custom version of APC, so protected access does not help in any way to access the underlying resource and/or connected UI. * Use correct indexes in multiselect checkboxes after removing rows (#8072) Fixes #8011 * Fix removal of hidden Grid columns (#8071) Fixes #8018 * Call error handler for exceptions in UI.init() (#8055) Fixes #4995 * Render font icon correctly on the 'more' menu item (#8126) * Render font icon correctly on the 'more' menu item Fixes #8125 * Reopen Grid details on attach, fixes #8015 (#8074) Fixes #8015 * Fix broken Grid tests after picking changes from 7.7.7 Removed duplicate setDetailsVisible calls from onDetach * Correctly detach components in merged cells when a static row is removed (#8142) Fixes #8140
* Translate "context://" to the context root of the web appArtur2017-02-222-0/+24
| | | Fixes #2523
* Fix since tags for 8.0 (#8575)Henri Sara2017-02-1626-20/+57
| | | Fix since tags for the server and shared modules and new types in client.
* Reduce ComboBox initial requests (#8571)Pekka Hyvönen2017-02-161-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reduce ComboBox initial requests Use initial fetched data on client side, do not request data from server side for each time popup is opened. Fixed initial filter being null for ComboBox on DataProvider, causing unnecessary size & fetch for not-changed filter. Fixed ComboBox sending default filter unnecessarily to server. Fixed wrong page indexing in VComboBox -> ComboBoxConnector. Fixes #8496 Fixes vaadin/framework8-issues#488 * Fix last item missing When pageLength was 0 and nullSelectionAllowed, the last item was not shown. Tried to sensify the API for total suggestions versus total suggestions + null selection item. * Fix ComboBox selected item updates Handles changing of ItemCaptionGenerator or ItemIconGenerator, need to update the selected item caption and icon separately. Previously it worked because all data was sent all the time to client. Doesn't fix the issue, when selected item is updated with refreshItem(), and it is not on the active range that will be sent to client. For that, ComboBox would need a separate notification about item update. * Updated screenshots
* HTML5 Drag and Drop Support (#8264)Adam Wagner2017-02-106-0/+292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add DragSource Extension (#8169) * Add DropTarget Extension (#8170) * Add DragStart Event to DragSource Extension (#8171) * Make DataTransfer.dropEffect configurable (#8174) * Make DragSource.dataTransfer data configurable (#8172) * Add server-side Event for drop (#8177) * Added license headers * Extract handler methods, move DropEvent and DropListener to new file, move enums to top * Replaced LinkedHashMap with Map and added List to preserve order of data * Add API for adding a JS acceptance criteria for dragover and drop (#8178, #8179) * Make DragSource Extension extendable (#8175) * Make DropTarget Extension extendable (#8176) * Added javadoc to protected methods * Moved EffectAllowed to shared so that it could be used in shared state directly * Moved DropEffect to separate file, some review fixes and javadoc * Added list to DropTargetRpc to preserve order of data * Remove event listeners on unregister * Changed method names set/getData() to more descriptive set/getTransferData() * Add server side dragStart event (#8171) * Add style to prevent text selection to allow drag * Remove target indicator style on drop * Add client side dragend event listener for drag source * Add server side dragend listener. Attach client side listener only when server side listener added. * Add drag source information to server side dragstart and dragend events. * Fixed some issues addressed in review * Trigger server side dragstart only when there is a listener attached * Criteria script can be set as null to clear * Use Js Interop instead of JSNI for handling event listeners * Use elemental package instead of Js Interop for handling event listeners * Add missing javadoc for public methods * Add default value "uninitialized" to effectAllowed parameter * Simple test UI for HTML5 DnD functionality (#8395) * Add javadoc and other minor changes
* Provide a way to set styles for Header/Footer Cells and Rows in a Grid (#8499)Denis2017-02-081-0/+5
| | | Fixes #8422
* Make one-arg addColumn use natural sort for mutually comparable values (#8458)Leif Åstrand2017-02-071-1/+1
| | | | Fixes #8371 Fixes #8128
* Add Grid editor events. (#8365)Denis2017-02-021-3/+7
| | | | | | | | | | * Migrate v7 Grid tests. Next round. Fixes #8419 * Add Grid editor events. Fixes #8202.
* Add scrollTo methods to Grid (#8203) (#8410)caalador2017-02-021-0/+53
| | | | | | | | | | | | | | * Add scroll methods to serverside grid (#8203) Added scrollToTop(), scrollToEnd() and scrollTo(int row) * Fix scrolling to view of opened details (#8203) Removed dependency for DetailsManagerConnector from GridConnector. GridConnector now handles one off listeners. * Rename detailsRefresh to better show that it's one-off. Add missing copyright header.
* Add a maven plugin for formatting according to Eclipse settingsLeif Åstrand2017-02-011-1/+1
| | | | | Running formatter:format will format all files in a submodule using an embedded Eclipse compiler (based on Neon SR1) according to the regular formatting settings file.
* Introduce empty selection functionality for NativeSelect. (#8336)Denis2017-01-271-0/+12
| | | | | | * Introduce empty selection functionality for NativeSelect. Fixes vaadin/framework8-issues#545
* Show unsupported browser page for FF version less than 45. (#8328)Denis2017-01-251-1/+1
| | | Fixes vaadin/framework8-issues#569
* Overload AbstarctComponent.setDescription() with content mode parameter (#8252)Denis2017-01-203-1/+5
| | | | | | * Overload AbstarctComponent.setDescription() with content mode parameter Fixes #8185
* Introduce DateTimeFile and InlineDateTimeField. (#8218)Denis2017-01-193-2/+28
| | | | | | | | | | * Introduce DateTimeFile and InlineDateTimeField. Fixes #8132 * Correct and provide declarative tests. * Provide a date converter and UI tests.
* Support for HTML5 push/replaceState for proper deep linking features (#8116)Matti Tahvonen2017-01-132-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | * Added support for HTML5 push/replaceState for proper deep linkin features * Automated test script now works at least on chrome * Uses html5 push/popstate to implement uri fragment feature * fire legacy fragment change events also via popstate events rpc calls * send new fragments via pushstate mechanism * formatting * Formatting and adding test and workaround for IE bug * Formatting and depracated UriFragmentListener * Aligned naming in the new API * Ignored IE due to web driver bug Tested a workaround with javascript based window.location.href fetch, but that don’t seem to work stable enough.
* Add "deselect allowed" feature to the Grid. (#8227)Denis2017-01-131-0/+3
| | | | | | * Add "deselect allowed" feature to the Grid. Fixes #8149
* Refactor AbstractDateField. (#8146)Denis2017-01-108-31/+144
| | | First round for #8132.
* Update @since tags for 7.7.5Denis Anisimov2017-01-032-0/+4
| | | | | | | | | | | Change-Id: I73201908b537ca0a65106e03c9bad913b59fae9f Re-added back disappeared commit from 7.7.5 migration PR: Mark TextField/TextArea as busy when a text change event is pending (#20469) Change-Id: I404985ae0be1e7dc65171b610032f8649e700f50
* Partial javadocs fix for vaadin-shared (#8068)Ilia Motornyi2016-12-226-20/+17
|
* Global java code cleanup using Eclipse Neon.1Leif Åstrand2016-12-2012-25/+25
|
* @since tag is set (#8021)Denis2016-12-165-5/+5
|
* Delete CheckboxRendererIlia Motornyi2016-12-151-25/+0
| | | Fixes vaadin/framework8-issues#551
* Redesign user-defined column identifiers for Grid (#7983)Teemu Suo-Anttila2016-12-152-16/+17
| | | Closes vaadin/framework8-issues#494
* Allow defining a focus delegate component for CustomField (#20336)Pekka Hyvönen2016-12-151-1/+8
|
* Migrate 7.7.5 branch patches to v8. (#7969)Denis2016-12-152-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent adding several scrollbar handlers (#19189). Change-Id: Ib0cc6c6835aab6d263f153362a328bcf2be7bc5c * Prevent adding several scrollbar handlers (#19189). * Keep expand ratio for last row/column when reducing grid layout size (#20297) Change-Id: Iff53a803596f4fc1eae8e4bfa307b9c1f4df961a * Fixed drag and drop failure when message dragged from email client (#20451) When dragging message form email client on Windows, item.webkitGetAsEntry() might return null creating NPE on the client side. Added additional checks for this situation. Change-Id: I569f7e6d0d7b137f24be53d1fbce384695ae8c73 * Change expected pre-release version number pattern in publish report Change-Id: Icdacecc490d2490ea9e262f5c5736c1dece2a89d * Mark TextField/TextArea as busy when a text change event is pending (#20469) Change-Id: I404985ae0be1e7dc65171b610032f8649e700f50 # Conflicts: # client/src/main/java/com/vaadin/client/ui/VTextField.java # uitest/src/main/java/com/vaadin/tests/components/textfield/TextChangeEvents.java * Fixed touch scrolling issue in Surface and WP devices (#18737) Fixed by using pointerevents instead of touchevents when the browser is IE11, or Edge. Also added touch-action: none; css rules into escalator.css to prevent default touch behaviour on IE11 and Edge. Does not affect IE8 to IE10 browsers, behaviour on those will stay the same as before the fix. No new unit tests since we do not have automatic touch testing possibilities yet. Please test manually with Surface: IE11 and Edge, use for example uitest: com.vaadin.tests.components.grid.basics.GridBasicsomponents.grid.basics.GridBasics Change-Id: Iddbf1852e6ffafc855f749d6f4ebb235ed0f5703 * Add lazy/simple resize mode to Grid (#20108) Change-Id: I47427efc28c350382dba8c1f50fd332a3f4585e4 # Conflicts: # client/src/main/java/com/vaadin/client/connectors/GridConnector.java # client/src/main/java/com/vaadin/client/widgets/Grid.java # server/src/main/java/com/vaadin/ui/Grid.java # shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java # themes/src/main/themes/VAADIN/themes/base/grid/grid.scss # uitest/src/main/java/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java Change-Id: Ieca56121875198ed559a41c143b28926e2695433 * Fix NPE in case some items don't contain all properties of Grid. This could occur in when parent is a different entity than its children in hierarchical data. Change-Id: Icd53b5b5e5544a3680d0cd99702ab78224b2dc08 # Conflicts: # server/src/main/java/com/vaadin/data/fieldgroup/FieldGroup.java # server/src/main/java/com/vaadin/ui/Grid.java * Mark TextField/TextArea as busy when a text change event is pending (#20469) Change-Id: I404985ae0be1e7dc65171b610032f8649e700f50 # Conflicts: # client/src/main/java/com/vaadin/client/ui/VTextField.java # uitest/src/test/java/com/vaadin/tests/components/textfield/TextChangeEventsTest.java * Add lazy/simple resize mode to Grid (#20108) Change-Id: I47427efc28c350382dba8c1f50fd332a3f4585e4 * Removed V8 VTextField unused import, forgotten @RunLocally. * Don't rely on selenium "sendKeys" behavior. * Revert "Change expected pre-release version number pattern in publish report" This reverts commit 8df27b952dddb691aead6a633c5b3724c98bf343. * Migrate TextField/TextArea patch from 7.7 to master (modern components) Mark TextField/TextArea as busy when a text change event is pending (#20469) Change-Id: I404985ae0be1e7dc65171b610032f8649e700f50
* VerticalLayout has spacing = true and margin = true by default .Ilia Motornyi2016-12-121-0/+11
| | | | | HorizontalLayout has spacing = true and margin = false by default. Fixes vaadin/framework8-issues#526
* Change Upload to be in immediate mode by default (#111)Pekka Hyvönen2016-12-121-1/+1
| | | Fixes vaadin/framework8-issues#547
* Update @since tag for 7.7.4.Denis Anisimov2016-12-091-1/+1
| | | | Change-Id: Ic6711221d0f09ad369c4074d805b237eccb2e5a7
* Make UPPER_CASE_PROPERTY_IDS more human friendly by default (#20380)Artur Signell2016-12-092-0/+58
| | | | Change-Id: I9bd845a08fa3c440f05d102ccf8920dfc1c95b6b
* Check for duplicate property ids when setting Grid columns or column order ↵Artur Signell2016-12-092-0/+73
| | | | | | (#20386) Change-Id: I76be83642f0e56e55b0c0e502ac6769de1ee8af0
* Change default suggestion popup width in ComboBox (#91)Aleksi Hietanen2016-12-081-1/+1
| | | Closes vaadin/framework8-issues#522
* Introduce dedicated shared states for every core vaadin component/ext. (#98)Denis2016-12-0832-35/+621
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce dedicated shared states for every core vaadin component/ext. Updated components are: - PasswordField - CustomField - AbstractListing - AbstractMultiSelect - ColorPicker - ColorPickerArea - DataCommunicator - Responsive - AbstractListingExtension - DetailsManager - AbstractRenderer - ClickableRenderer - ButtonRenderer - CheckBoxRenderer - DateRenderer - HtmlRenderer - ImageRenderer - NumberRenderer - ProgressBarRenderer - TextRenderer Fixes vaadin/framework8-issues#480.
* Add read-only support for single and multi select views for Grid. (#84)Denis2016-12-061-0/+5
| | | | | | * Add read-only support for single and multi select views for Grid. Fixes vaadin/framework8-issues#516
* Allow to set caption for the empty selection in a ComboBox.Denis Anisimov2016-12-011-0/+5
| | | | | | | Fixes vaadin/framework8-issues#163 Change-Id: Ib68ad5421934c8375a91d7948d860381a5adb9bb
* Add AbstractSelectionModel for GridPekka Hyvönen2016-11-303-5/+58
| | | | | | | | Also adds shared state for grid's selection models. This is mostly for making it possible later to modify the selection models, without breaking backwards API compatibility and having to duplicate code. Change-Id: If93720df282bf5ca3aff17a20b455d60b33f764c
* Enable select all checkbox for MultiSelection Grid.Pekka Hyvönen2016-11-301-0/+33
| | | | | | | It is by default shown only if used data provider is in-memory. Can be configured to be explicitly shown or hidden. Change-Id: I50569d915604c3722a22e14b7628663d5680ed83
* Provide access to window order position in windows stack (#14325).Denis Anisimov2016-11-292-0/+42
| | | Change-Id: I259c659987b5b15b354e16d0be1523f4ede809f0
* Correct all tests that introspect classpath for Vaadin classes.Denis Anisimov2016-11-291-2/+9
| | | | | | | | Fixes vaadin/framework8-issues#399 RemoveListenersDeprecatedTest test is fixed. Corrections are made to make the test above passes. Change-Id: I209a4693d241a1488b69b4742f48549dbf4bf0ac
* Add MultiSelect support for GridPekka Hyvönen2016-11-291-0/+39
| | | | | | | | | | | Still missing following things coming in next patches: - select all checkbox - firing an event when data provider is changed in grid - read only selection models for grid Part 1 for vaadin/framework8-issues#232 Change-Id: Ib2c7c81a838f43cb7c521a56d50139c91961f54a
* Add shared state for CustomComponent and DragAndDropWrapperHenri Sara2016-11-282-0/+54
| | | | Change-Id: Ib640e5ea97bccffb889d3213a4f588b828fb07bf
* Add state classes for Abstract(Single)ComponentContainerHenri Sara2016-11-288-13/+79
| | | | Change-Id: I6939fbc6f7aed0897f50b19f85fb62d0b8368cc7
* Reintroduce Grid Editor using BinderTeemu Suo-Anttila2016-11-254-0/+167
| | | | | | This patch restores the bean type to BinderValidationStatusHandler Change-Id: I9ace77a492c4823c15591fb1426e9bd216895fb0
* Grid merging header cellselmot2016-11-241-0/+4
| | | | Change-Id: Ia52bbef412fc8701f6b862960dfed9c08c17ff7a
* Make SelectionModel API only server side.Denis Anisimov2016-11-021-225/+0
| | | | | | | Client side doesn't use selection model anymore. Fixes vaadin/framework8-issues#421 Change-Id: If3ecb1c2f3a0024df9bfdfd182eaf8cf8625ac75