Commit Graph

25 Commits

Author SHA1 Message Date
Alex Terentiev 5723134c29 react-search-refiners: mapToIcon fix if filename has query string (#667) 2018-11-09 09:43:57 +02:00
Mikael Svenson 67a3279ef7 Hide <object> node which causes border in IE11 2018-11-08 08:09:10 +01:00
Mikael Svenson 6712cb4412 Added IE11 polyfills for common-tags
Load video.js if previews are present
2018-11-08 08:08:48 +01:00
Mikael Svenson c2ae011223 Updated npm packages 2018-11-08 08:01:46 +01:00
Mikael Svenson 788bb8c778 Fix for IE11 to avoid showing scroll arrows in the div 2018-11-06 14:52:48 +01:00
Mikael Svenson 03e4b2307f Updated npm packages
Added IE11 polyfill
Re-use sortdirection from PnP instead of separate enum #656
2018-11-06 08:01:22 +01:00
Stijn Brouwers 2df0641eb7 Add sort panel (#656)
* Add SortPanel to select a field to sort by and it's sortorder

* Fix bug with ordering the sorted results

* apply state from searchresultcontainer to the sort panel

* Fix issue with sortorder being undefined in certain scenarios

* - Fix error on opening the web part without any settings configured
- Show relevant error message when using an invalid sort field
- Fix styling difference between 'Filter' and 'Sort' buttons

* Add info to readme.md

* Add new property_pane images to reflect latest changes

* Remove black line at the bottom of property_pane3.png

* Merge 'Dev' with current branch
and show Sort button when "SortError" is shown

* apply state from searchresultcontainer to the sort panel

* - Fix error on opening the web part without any settings configured
- Show relevant error message when using an invalid sort field
- Fix styling difference between 'Filter' and 'Sort' buttons

* Add info to readme.md

* Add new property_pane images to reflect latest changes

* Remove black line at the bottom of property_pane3.png

* Add missing localization for SortPanel, Update componentReceiveProps, rename sortOrder to sortDirection, fix typo when setting sort direction
2018-11-06 07:53:16 +01:00
Mikael Svenson 27977d9235
Added support for page query variables and fixes (#661)
* Added support for {Page} query variables
* Bugfix for making sure the property pane shows the right template on Edit after a change.
* Added getUniqueCount
* Bugfix for dynamic loading of video.js
* Updated readme
2018-10-30 10:25:27 +01:00
Franck Cornu 910d377a77 [react-search-refiners] Bug fixes + added previews + best bets (#649)
* * Updated data source connection for searchbox WP

* * Updated filters behavior. Now total count per refiner value is updated every time a new filter is selected like the default SharePoint behavior
* Updated shimmers
* Updated data sources binding logic to be more efficient

* * Updated static CSS classes to use SPFx modules instead
* Added previews for documents in the default list template
* Fixed bug https://github.com/SharePoint/sp-dev-fx-webparts/issues/642. The current page state was never updated after a new search.
* Fixed bug https://github.com/SharePoint/sp-dev-fx-webparts/issues/641. Now the result count is updated every time for each refiner.

* * CSS fixes

* * Removed unecessary lodash references
* Added responsive behavior for iframes using https://www.npmjs.com/package/on-el-resize

* * Updated README
* Added hover effect on the result image

* * Bug fix on videos

* * Added best bets support

* * Removed the jQuery reference. Replaced DOM manipulations by plain JS
2018-10-24 08:26:16 +02:00
Mikael Svenson 1a7b1c1386 Bug fix for parsing URL mp 2018-10-10 10:40:26 +02:00
Mikael Svenson 5d971a1589 Include SPFx ouif styles as they render the correct colors.
Moved import to root of wp as template styles can change.
2018-09-25 15:33:37 +02:00
Mikael Svenson be87310b4f
Updated react-search-refiners sample (#627)
* Updated packages
* Bundle each part as a bundle to reduce size when not needing all.
* Dynamically load if used/needed
* Added support for sort list
* Load moment with handlebars helpers
* Change shimmer rendering wait instead of spinner
* Added web part title option
* Rework code so webpack dynamic loadig works from scratch
* Updated readme
* Added sortlist description
2018-09-24 13:27:49 +02:00
Mikael Svenson 758a0793a4 #590 Updated imaged 2018-08-09 15:03:27 +02:00
Mikael Svenson df2648f8f4 Improvements to react-search-refiner web part (#589)
* Added weburl/siteurl tokens
Added getUrlField helper method
Changed property pane settings headers/grouping
Updated ouifr version to v5.118.0
Updated handlebar helper to v0.8.4
Updated readme

* Added webpack-bundle-analyzer

* Fixed ouifr static references to limit bundle size
2018-08-07 17:27:46 +03:00
Franck Cornu 48ac608381 [react-search-refiners] Added Handlebars templating feature + Replaced event aggregator by dynamic data from SPFx 1.5.1-plusbeta (#550)
* [react-search-refiners]
* Upgraded to SPFx 1.4.1
* Added the ability to set you own refiners labels in the filters panel.
* Replaced the `pushState` method by the SPFx `eventAggregator` for the communication between the search box and results web parts.
* CSS improvements
* Added an option to show the results count

* [react-search-refiners]
* Added the query suggestions feature to the search box
* Added the ability to send the query to an other page
* Added a result count option

* [react-search-refiners] Update images

* [react-search-refiners] Updated version in the README file.

* [react-search-refiners]
* Added a templating feature for search results with Handlebars inspired by the react-content-query-webpart sample.
* Upgraded to 1.5.1-plusbeta to use the new SPFx dynamic data feature instead of event aggregator for Web Parts communication.
* Code refactoring and reorganization.

* * Removed unused test sample folder
2018-07-02 12:44:04 +03:00
Franck Cornu 30f2baa665 [react-search-refiners] Added query suggestions + send query to new page features (#508)
* [react-search-refiners]
* Upgraded to SPFx 1.4.1
* Added the ability to set you own refiners labels in the filters panel.
* Replaced the `pushState` method by the SPFx `eventAggregator` for the communication between the search box and results web parts.
* CSS improvements
* Added an option to show the results count

* [react-search-refiners]
* Added the query suggestions feature to the search box
* Added the ability to send the query to an other page
* Added a result count option

* [react-search-refiners] Update images

* [react-search-refiners] Updated version in the README file.
2018-06-07 14:07:15 +03:00
Franck Cornu 74fd5ca5ce [react-search-refiners] (#465)
* Upgraded to SPFx 1.4.1
* Added the ability to set you own refiners labels in the filters panel.
* Replaced the `pushState` method by the SPFx `eventAggregator` for the communication between the search box and results web parts.
* CSS improvements
* Added an option to show the results count
2018-04-04 16:53:53 +02:00
Mikael Svenson b2bdeff4d3 Update moment to 2.21.0 as previous version had vulnerability 2018-03-08 13:40:16 -08:00
Franck Cornu 4bc95a15c0 [react-search-refiners] Added local configuration for pnp js library instead of global (#436)
* Added the react-search-refiners folder

* Updated pagination + format date for DateTime filters

* Added grouped list in the filter panel + fixed some bugs

* Added custom scrollbar style

* Added a placeholder when the Web Part is not configured

* Cleaned code

* Miscellaneous fixes before PR.

* Added Web Part sample images

* Updated images

* Adde the link to the associated blog post.

* Replaced toggle by checkbox + added query template parameter.

* react-search-refiners: CSS fixes

* Quick fix

* Updated the panel position to the left + added an overlay between each search operation to notify the user

* [react-search-refiners] Updated the screenshots + npm packages

* Synced the remote branch from the upstream to merge things correctly

* [react-search-refiners] Removed useless files generated by the upstream merge

* [react-search-refiners] Removed remaining useless files

* [react-search-refiners] Added a search box and a result source Id  + enable query rules parameters

* [react-search-refiners] Added field descriptions

* [react-search-refiners] Updated the README file + solution demo animation

* [react-search-refiners] Added local configuration for pnp js library instead of global
2018-03-02 13:00:26 +01:00
Franck Cornu f421c5cd3b [react-search-refiners] Added SearchBox WP + "Result Source Id" and "Enable Query Rules" parameters (#413)
* Added the react-search-refiners folder

* Updated pagination + format date for DateTime filters

* Added grouped list in the filter panel + fixed some bugs

* Added custom scrollbar style

* Added a placeholder when the Web Part is not configured

* Cleaned code

* Miscellaneous fixes before PR.

* Added Web Part sample images

* Updated images

* Adde the link to the associated blog post.

* Replaced toggle by checkbox + added query template parameter.

* react-search-refiners: CSS fixes

* Quick fix

* Updated the panel position to the left + added an overlay between each search operation to notify the user

* [react-search-refiners] Updated the screenshots + npm packages

* Synced the remote branch from the upstream to merge things correctly

* [react-search-refiners] Removed useless files generated by the upstream merge

* [react-search-refiners] Removed remaining useless files

* [react-search-refiners] Added a search box and a result source Id  + enable query rules parameters

* [react-search-refiners] Added field descriptions

* [react-search-refiners] Updated the README file + solution demo animation
2018-02-26 08:56:57 +01:00
Mikael Svenson 120af41c95 Improvements (#395)
* Updated @pnp packages to solve an issue with application insights tracking failing the component in IE/Edge.

* Explicit load of the Overlay component to reduce bundle size.

* Store the inital result in order to prevent two calls per page which slows down result loading and is unneeded.
2018-01-20 15:59:21 +02:00
Joel Rodrigues 764d8f10e0 Add tslint at the root of each SPFx project (#394) 2018-01-08 15:58:48 +02:00
Mikael Svenson cf1d8d40de Updated to drop 1.4, fixed property pane issues, and added more settings (#393)
* Updated to SPFx Drop 1.4

* Store last query in order to update the results when changing the search properties.

* Bugfix: Make sure selected properties are passed along and updated on each search query.

* Support more properties for preview image depending on item type.

* Moved default values to web part config instead of hard coded in the web part.

* Added support to show/hide file icon per result

* Remove empty check for query template as it's not required, but optional.

* Don't render filter control if there are no refiners specified.

* Added support to show/hide the created date field.

* Added more default properties for default image preview

* Updated preview image based on new properties

* Updated version to 1.1
Updated readme with new version, author and drop
2018-01-02 17:34:14 +02:00
Franck Cornu 14f6753b62 [react-search-refiners] Web Part improvements (#390)
* Added the react-search-refiners folder

* Updated pagination + format date for DateTime filters

* Added grouped list in the filter panel + fixed some bugs

* Added custom scrollbar style

* Added a placeholder when the Web Part is not configured

* Cleaned code

* Miscellaneous fixes before PR.

* Added Web Part sample images

* Updated images

* Adde the link to the associated blog post.

* Replaced toggle by checkbox + added query template parameter.

* react-search-refiners: CSS fixes

* Quick fix

* Updated the panel position to the left + added an overlay between each search operation to notify the user

* [react-search-refiners] Updated the screenshots + npm packages

* Synced the remote branch from the upstream to merge things correctly

* [react-search-refiners] Removed useless files generated by the upstream merge

* [react-search-refiners] Removed remaining useless files
2017-12-20 17:51:40 +02:00
Franck Cornu 89cd64eadb New sample - SPFx React Textbox.io rich text editor integration (#340)
* Added the react-search-refiners folder

* Updated pagination + format date for DateTime filters

* Added grouped list in the filter panel + fixed some bugs

* Added custom scrollbar style

* Added a placeholder when the Web Part is not configured

* Cleaned code

* Miscellaneous fixes before PR.

* Added Web Part sample images

* Updated images

* react-textboxio - Initial release. Need README

* Updated README

* Added missing image

* Updated README

* Updated the crawl property in Web Part metadata fro search indexing

* Updated the gif image with better quality
2017-10-27 18:14:14 +03:00