diff --git a/config/package-solution.json b/config/package-solution.json index d6f566f..a6eb25d 100644 --- a/config/package-solution.json +++ b/config/package-solution.json @@ -3,7 +3,7 @@ "solution": { "name": "react-handlebars-search-client-side-solution", "id": "490f3be2-7e8a-4fe5-8d6b-49ae5d7c4a2e", - "version": "1.0.0.4", + "version": "1.0.0.13", "title": "Search result visualizer", "supportedLocales": [ "en-US", diff --git a/package-lock.json b/package-lock.json index ff3fb53..23751e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1205,6 +1205,23 @@ "tslib": "1.8.1" } }, + "@microsoft/sp-office-ui-fabric-core": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@microsoft/sp-office-ui-fabric-core/-/sp-office-ui-fabric-core-1.4.1.tgz", + "integrity": "sha1-sTXjdC/q8cpkvB5n9PoXsC+b9MM=", + "requires": { + "@types/webpack-env": "1.13.1", + "office-ui-fabric-core": "9.1.0", + "tslib": "1.8.1" + }, + "dependencies": { + "@types/webpack-env": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/@types/webpack-env/-/webpack-env-1.13.1.tgz", + "integrity": "sha512-oHyg0NssP2RCpCvE35hhbSqMJRsc5lSW+GFe+Vc65JL+kHII1VMYM+0KeV/z4utFuUqPoQRmq8KMMp7ba0dj6Q==" + } + } + }, "@microsoft/sp-page-context": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/@microsoft/sp-page-context/-/sp-page-context-1.4.1.tgz", @@ -12580,6 +12597,11 @@ "resolved": "https://registry.npmjs.org/office-ui-fabric/-/office-ui-fabric-2.6.1.tgz", "integrity": "sha1-4qyf8+T8eI2mYReN6/CUA2sKLiY=" }, + "office-ui-fabric-core": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/office-ui-fabric-core/-/office-ui-fabric-core-9.1.0.tgz", + "integrity": "sha512-VwGbHIT89e+9XdGcb2gdPgKgYQGjRG5peyPNO982znlCSB/UIM9g7gF6JmHpaMHb8xvEScY7UGJ8GRz6GQVBRg==" + }, "office-ui-fabric-react": { "version": "5.21.0", "resolved": "https://registry.npmjs.org/office-ui-fabric-react/-/office-ui-fabric-react-5.21.0.tgz", diff --git a/src/webparts/searchVisualizer/SearchVisualizerWebPart.manifest.json b/src/webparts/searchVisualizer/SearchVisualizerWebPart.manifest.json index f039acd..e28a045 100644 --- a/src/webparts/searchVisualizer/SearchVisualizerWebPart.manifest.json +++ b/src/webparts/searchVisualizer/SearchVisualizerWebPart.manifest.json @@ -13,6 +13,8 @@ */ "safeWithCustomScriptDisabled": false, + "supportsFullBleed": true, + "preconfiguredEntries": [{ "groupId": "0651b316-c8f2-4e27-887a-b7a46b3e94c1", "group": { diff --git a/src/webparts/searchVisualizer/components/ui-fabric-colortheme.module.scss b/src/webparts/searchVisualizer/components/ui-fabric-colortheme.module.scss index 64dc5af..ec29886 100644 --- a/src/webparts/searchVisualizer/components/ui-fabric-colortheme.module.scss +++ b/src/webparts/searchVisualizer/components/ui-fabric-colortheme.module.scss @@ -74,19 +74,19 @@ $colors: ( @each $name, $color-value in $colors { .ms-fontColor-#{$name} { color: $color-value; - &--hover { + &--hover:hover { color: $color-value; } } .ms-bgColor-#{$name} { background-color: $color-value; - &--hover { + &--hover:hover { background-color: $color-value; } } .ms-borderColor-#{$name} { border-color: $color-value; - &--hover { + &--hover:hover { border-color: $color-value; } } diff --git a/src/webparts/searchVisualizer/helpers/VariousHelper.ts b/src/webparts/searchVisualizer/helpers/VariousHelper.ts new file mode 100644 index 0000000..dd2579d --- /dev/null +++ b/src/webparts/searchVisualizer/helpers/VariousHelper.ts @@ -0,0 +1,23 @@ +import { IWebPartContext } from '@microsoft/sp-webpart-base'; + +/** + * Various helpers + */ +export default class VariousHelpers { + constructor(private _context: IWebPartContext) {} + + /** + * Return the URL Parameter + * @param paramToRetrieve + */ + public getQueryStringParameter(paramToRetrieve) { + if (document.URL.split("?").length > 1) { + let params = document.URL.split("?")[1].split("&"); + for (let i = 0; i < params.length; i = i + 1) { + let singleParam = params[i].split("="); + if (singleParam[0] == paramToRetrieve) + return decodeURIComponent(singleParam[1]); + } + } + } +}