Commit Graph

36 Commits

Author SHA1 Message Date
Franck Cornu d9fefb7bd4 [react-search-refiners] Replaced string based properties by @pnp PropertyFieldCollectionData controls (#704)
* * Migrated to SPFx 1.7.0
* Fixed sort feature
* Added a sample TypeScript function to demonstrate NLP processing for the search query
* Miscelleanous improvements

* * Fixed wrong ids and dependencies

* * Updated README

* * Replaced JSOM taxonomy methods by the @pnp/sp-taxonomy counterparts + refactored refiners translation logic
* Updated the filter panel to close on click out
* Updgraded to @pnp 1.2.6
* Added a event listeners for hash change when the search box in bound to the 'URL fragment' SPFx builtin data source property so you can now build predefined filters with '#'.
* Fix suggestions panel position to be absolute

* * Quick fix on the search box

* * Added a default query option (related to https://github.com/SharePoint/sp-dev-fx-webparts/issues/556)

* * Added the ability to search by clicking on the search box icon

* * Replaced 'refiners' property by a property collection.

* * Replaced the 'sortList' WP property by a collection data control from PnP.

* * Replaced 'sortableFields' by a collection data pnp control.
2018-12-03 20:58:46 +01:00
Mikael Svenson 845e7d618c Allow webparts to be used in full-width comm sites 2018-12-03 12:41:30 +01:00
Mikael Svenson e95fbcb122 Load handlebar-helpers as needed, instead of a switch. 2018-12-03 09:49:34 +01:00
Mikael Svenson 53b04d5b81 Updated readme on 2.2.0.0 upgrade issues 2018-11-30 15:16:31 +01:00
Mikael Svenson d01f5fd2c6 Remove debugger statemen - oops 2018-11-29 13:23:03 +01:00
Mikael Svenson b92b716b2b #556 Added try/catch to ignore errors if resize listener fails. 2018-11-29 13:18:13 +01:00
Franck Cornu 398d3b0363 [react-search-refiners] Miscellaneous updates (#695)
* * Migrated to SPFx 1.7.0
* Fixed sort feature
* Added a sample TypeScript function to demonstrate NLP processing for the search query
* Miscelleanous improvements

* * Fixed wrong ids and dependencies

* * Updated README

* * Replaced JSOM taxonomy methods by the @pnp/sp-taxonomy counterparts + refactored refiners translation logic
* Updated the filter panel to close on click out
* Updgraded to @pnp 1.2.6
* Added a event listeners for hash change when the search box in bound to the 'URL fragment' SPFx builtin data source property so you can now build predefined filters with '#'.
* Fix suggestions panel position to be absolute

* * Quick fix on the search box

* * Added a default query option (related to https://github.com/SharePoint/sp-dev-fx-webparts/issues/556)

* * Added the ability to search by clicking on the search box icon
2018-11-29 09:40:19 +01:00
Mikael Svenson 5da47fe4d1 Remove System. in front of import as it's no longer needed
Moved css of video-js to dynamic loading
Updated pnp property controls to 1.12.0
Updated webpack anaylyser to 3.0.3
2018-11-15 09:32:10 +01:00
Franck Cornu bee8dc5c5a [react-search-refiners] Migrated to SPFx 1.7.0 + Added LUIS Azure Function (#677)
* * Migrated to SPFx 1.7.0
* Fixed sort feature
* Added a sample TypeScript function to demonstrate NLP processing for the search query
* Miscelleanous improvements

* * Fixed wrong ids and dependencies

* * Updated README
2018-11-13 16:08:20 +01:00
Mikael Svenson 7ba57edbc8 Updated pnpjs to 1.2.5
Updated spfx-controls to 1.10.0
Updated ouifr to 5.131.2
Updted video.js to 7.3.0
2018-11-09 15:03:05 +01:00
Mikael Svenson 0952df826b
Updared readme (#671)
Added query variables
Support query template and result id
2018-11-09 14:13:26 +01:00
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