summaryrefslogtreecommitdiffstats
path: root/shared/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Move read-only to AbstractFieldState (#8514)Teemu Suo-Anttila2016-11-022-1/+5
| | | | Change-Id: I0baea991bd80075d63c5d57e3b07f4e9fcb12676
* Clean up state hierarchy for AbstractFieldStateTeemu Suo-Anttila2016-11-027-46/+19
| | | | Change-Id: I33c8c977bf8cd2d4c637d7988586496ce963465f
* Move setReadOnly from Component to HasValueTeemu Suo-Anttila2016-11-021-0/+2
| | | | Change-Id: Ib867b71cab4cf5cda89f272986930297b7a84ced
* Replace setRequired & HasRequired with setRequiredIndicatorPekka Hyvönen2016-11-017-14/+45
| | | | | | | | | | | Vaadin 7 compatiblity fields still use setRequired via AbstractField (legacy). Public setRequiredIndicator is added to AbstractField, AbstractMultiSelect and AbstractSingleSelect. Internally it is still handled on AbstractComponent & -Connector level. Changes the declarative syntax, required -> required-indicator-visible. Fixes vaadin/framework8-issue#419 Change-Id: I940dc66944d27584bd78e5452aee627ee3abd03a
* Grid html/component content in headersAleksi Hietanen2016-10-251-0/+16
| | | | Change-Id: Ie6129b51d15d4f30a6b4c034999ff02deec1c6a7
* Implement basic footer support for GridTeemu Suo-Anttila2016-10-191-0/+3
| | | | Change-Id: I3db51521320767a28bc3acd9586b1453764a15bc
* Use placeholder instead of inputPrompt for DateFieldPekka Hyvönen2016-10-141-0/+4
| | | | | | | | | Renames the API server side and uses placeholder attribute for input. Removed PopupDateFieldInputPrompt test since it tests input prompt logic, that is no longer there after switching to native placeholder attribute for input element. Change-Id: I5c66456781f8703ba2e253134b88f8372825528f
* Remove AbstractComponent.immediatePekka Hyvönen2016-10-131-2/+0
| | | | | | | | | | | | | All components are now in immediate mode by default. V7 compatibility components will use AbstractLegacyComponent that has immediate. V7 ColorPickerPopup will not have setImmediate, since it extends V8 Window, which is not in V7 compatibility packages. Removed OutOfSync and ResynchronizeAfterAsyncRemoval Tests, since those tested UI in not immediate mode, which is invalid now. Removed WindowResizeListener, LazyWindowResize, test UIs, since both used immediate and there were no test run for either. Change-Id: Ie1c8cfa4c48461db944ff9b13efe8473c5a3298f