diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cb2b3b47..7bdf3a137 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ Sjekk ut [release notes](./releasenotes/1.8.0.md) for høydepunkter og mer detal ### Forbedringer +- Dersom bruker har "Full kontroll" tilgangsnivå på området får bruker fulle rettigheter på området [#1054](https://github.com/Puzzlepart/prosjektportalen365/issues/1054) + ### Feilrettinger - Fikset et problem i oppgraderingsskript der noen tenants ikke kunne hente alle hub children diff --git a/SharePointFramework/@Shared/package-lock.json b/SharePointFramework/@Shared/package-lock.json index 9f5bf5b20..b3706bc37 100644 --- a/SharePointFramework/@Shared/package-lock.json +++ b/SharePointFramework/@Shared/package-lock.json @@ -1,12 +1,12 @@ { "name": "pp365-shared", - "version": "1.8.0", + "version": "1.8.0-1055.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pp365-shared", - "version": "1.8.0", + "version": "1.8.0-1055.1", "license": "MIT", "dependencies": { "@microsoft/sp-application-base": "1.15.2", diff --git a/SharePointFramework/@Shared/package.json b/SharePointFramework/@Shared/package.json index 6fe93df22..be637f1fb 100644 --- a/SharePointFramework/@Shared/package.json +++ b/SharePointFramework/@Shared/package.json @@ -1,6 +1,6 @@ { "name": "pp365-shared", - "version": "1.8.0", + "version": "1.8.0-1055.1", "repository": { "type": "git", "url": "https://github.com/Puzzlepart/prosjektportalen365.git", @@ -67,4 +67,4 @@ "prettier": "^2.1.1", "typescript": "4.5.5" } -} \ No newline at end of file +} diff --git a/SharePointFramework/@Shared/src/data/SPDataAdapterBase/index.ts b/SharePointFramework/@Shared/src/data/SPDataAdapterBase/index.ts index 2aa2aa97a..5021e2a1b 100644 --- a/SharePointFramework/@Shared/src/data/SPDataAdapterBase/index.ts +++ b/SharePointFramework/@Shared/src/data/SPDataAdapterBase/index.ts @@ -4,7 +4,7 @@ import { SPUser } from '@microsoft/sp-page-context' import { WebPartContext } from '@microsoft/sp-webpart-base' import { dateAdd, PnPClientStorage, PnPClientStore } from '@pnp/common' import '@pnp/polyfill-ie11' -import { sp, SPConfiguration, SPRest, Web } from '@pnp/sp' +import { sp, SPConfiguration, SPRest, Web, PermissionKind } from '@pnp/sp' import { format } from 'office-ui-fabric-react/lib/Utilities' import { SpEntityPortalService } from 'sp-entityportal-service' import _ from 'underscore' @@ -116,8 +116,8 @@ export class SPDataAdapterBase { const userPermissions = [] const rolesToCheck = properties.GtProjectAdminRoles if (!_.isArray(rolesToCheck) || _.isEmpty(rolesToCheck)) { - if (pageContext.legacyPageContext.isSiteAdmin === true) return true - else return false + const currentUserHasManageWebPermisson = await sp.web.currentUserHasPermissions(PermissionKind.ManageWeb) + if (currentUserHasManageWebPermisson) return true } const currentUser = await this.getCurrentUser(pageContext.user) const projectAdminRoles = (await this.portal.getProjectAdminRoles()).filter( @@ -128,7 +128,8 @@ export class SPDataAdapterBase { switch (role.type) { case ProjectAdminRoleType.SiteAdmin: { - if (pageContext.legacyPageContext.isSiteAdmin === true) + const currentUserHasManageWebPermisson = await sp.web.currentUserHasPermissions(PermissionKind.ManageWeb) + if (currentUserHasManageWebPermisson) userPermissions.push(...role.permissions) } break @@ -165,7 +166,7 @@ export class SPDataAdapterBase { ).length > 0 ) userPermissions.push(...role.permissions) - } catch {} + } catch { } } break } diff --git a/SharePointFramework/PortfolioWebParts/package-lock.json b/SharePointFramework/PortfolioWebParts/package-lock.json index 5a0a1cc2e..3fd1fcab2 100644 --- a/SharePointFramework/PortfolioWebParts/package-lock.json +++ b/SharePointFramework/PortfolioWebParts/package-lock.json @@ -1,12 +1,12 @@ { "name": "pp365-portfoliowebparts", - "version": "1.8.0", + "version": "1.8.0-1055.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pp365-portfoliowebparts", - "version": "1.8.0", + "version": "1.8.0-1055.1", "license": "MIT", "dependencies": { "@fluentui/react": "8.98.1", @@ -36,7 +36,7 @@ "moment": "2.24.0", "msgraph-helper": "0.7.3", "object-assign": "4.1.1", - "pp365-shared": "1.8.0", + "pp365-shared": "1.8.0-1055.1", "react": "16.13.1", "react-calendar-timeline": "0.27.0", "react-dom": "16.13.1", @@ -27329,6 +27329,187 @@ "is-stream": "^1.0.1" } }, + "node_modules/pp365-projectwebparts/node_modules/pp365-shared": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0.tgz", + "integrity": "sha512-Aan77+PVlaraiGNC2v+hFcMd5dVutr0kk2GQzbH7AXvVpG0NgA7yJSUdypuFZ0yc/PfpEh0zbDPZpNMydR9ejw==", + "dev": true, + "dependencies": { + "@microsoft/sp-application-base": "1.15.2", + "@microsoft/sp-core-library": "1.15.2", + "@microsoft/sp-listview-extensibility": "1.15.2", + "@microsoft/sp-page-context": "1.15.2", + "@microsoft/sp-webpart-base": "1.15.2", + "@pnp/common": "1.3.8", + "@pnp/logging": "1.3.8", + "@pnp/odata": "1.3.8", + "@pnp/polyfill-ie11": "^1.0.2", + "@pnp/sp": "1.3.8", + "@pnp/sp-clientsvc": "1.3.8", + "@pnp/sp-taxonomy": "1.3.8", + "es6-promise": "^4.2.8", + "file-saver": "^2.0.5", + "gulp": "^4.0.2", + "object-get": "^2.1.0", + "office-ui-fabric-react": "6.214.0", + "react": "16.8.5", + "react-dom": "16.8.5", + "react-markdown": "^8.0.3", + "rehype-raw": "^6.1.1", + "scriptjs": "^2.5.9", + "sp-entityportal-service": "1.3.3", + "spfx-jsom": "0.6.6", + "underscore": "^1.9.1", + "xlsx": "^0.16.9", + "xmldom": "^0.1.27" + } + }, + "node_modules/pp365-projectwebparts/node_modules/pp365-shared/node_modules/@pnp/polyfill-ie11": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@pnp/polyfill-ie11/-/polyfill-ie11-1.0.2.tgz", + "integrity": "sha512-vJstDMgwCsRWbZIzUJGvBmd8932jL1DwItyESQFV0HWaOKIe5erjnbeVHSOHkxTWNNx/KWDjB2IcbW6er0MfMw==", + "dev": true, + "dependencies": { + "@types/core-js": "2.5.0", + "core-js": "2.6.2", + "es6-map": "0.1.5", + "whatwg-fetch": "3.0.0" + }, + "peerDependencies": { + "@pnp/common": "*", + "@pnp/logging": "*", + "@pnp/odata": "*", + "@pnp/sp": "*" + } + }, + "node_modules/pp365-projectwebparts/node_modules/pp365-shared/node_modules/@uifabric/foundation": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/@uifabric/foundation/-/foundation-0.8.3.tgz", + "integrity": "sha512-r3WhRj7Out8QAOe50BGA36R8zgRPy0D0GNPuwFK9BB9oIidf91ycj7/miY8U0TZRZi5fB3Kg+dy/uxSDfgC6Og==", + "dev": true, + "dependencies": { + "@uifabric/set-version": "^1.1.3", + "@uifabric/styling": "^6.50.7", + "@uifabric/utilities": "^6.41.7", + "tslib": "^1.7.1" + }, + "peerDependencies": { + "@types/react": "^0.14.x || ^15.x || ^16.x", + "@types/react-dom": "^0.14.x || ^15.x || ^16.x", + "react": "^0.14.9 || ^15.0.1-0 || ^16.0.0-0", + "react-dom": "^0.14.9 || ^15.0.1-0 || ^16.0.0-0" + } + }, + "node_modules/pp365-projectwebparts/node_modules/pp365-shared/node_modules/@uifabric/icons": { + "version": "6.5.5", + "resolved": "https://registry.npmjs.org/@uifabric/icons/-/icons-6.5.5.tgz", + "integrity": "sha512-cGjzdpT0jzQ2RJvzlCVTrewaHCi4rb+ZNL2LWoceMi+5h196Y32qJwKMsc0ggR6u5CjMrzBiAxUFNppBSCutdA==", + "dev": true, + "dependencies": { + "@uifabric/set-version": "^1.1.3", + "@uifabric/styling": "^6.50.7", + "tslib": "^1.7.1" + } + }, + "node_modules/pp365-projectwebparts/node_modules/pp365-shared/node_modules/@uifabric/set-version": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@uifabric/set-version/-/set-version-1.1.3.tgz", + "integrity": "sha512-IYpwVIuN7MJOeiWzZzr9AmFSvA5zc6gJn4fNHtEFIQnNB8WVWIcYrvx8Tbf7wWj9MvhdHYp70F054zZlHbL/Ag==", + "dev": true, + "dependencies": { + "tslib": "^1.7.1" + } + }, + "node_modules/pp365-projectwebparts/node_modules/pp365-shared/node_modules/@uifabric/styling": { + "version": "6.50.7", + "resolved": "https://registry.npmjs.org/@uifabric/styling/-/styling-6.50.7.tgz", + "integrity": "sha512-F2aBiB30ZiFxlZzy5hzLXODWOl6jySvPFAsoaTofk37xucHiunBLZYjX6WkfZrCWiyGPva+DLssNcwly9ZHVjg==", + "dev": true, + "dependencies": { + "@microsoft/load-themed-styles": "^1.7.13", + "@uifabric/merge-styles": "^6.19.4", + "@uifabric/set-version": "^1.1.3", + "@uifabric/utilities": "^6.41.7", + "tslib": "^1.7.1" + } + }, + "node_modules/pp365-projectwebparts/node_modules/pp365-shared/node_modules/@uifabric/utilities": { + "version": "6.45.2", + "resolved": "https://registry.npmjs.org/@uifabric/utilities/-/utilities-6.45.2.tgz", + "integrity": "sha512-JiC92OjMOkVoiIAeS2b3R9B1XQU0cJ5bDr9B7VvrxlwKe1W9xMtVsCer7b8gNCU5NFNYBN5ckM3Q7x2Zs5cH0A==", + "dev": true, + "dependencies": { + "@uifabric/merge-styles": "^6.19.4", + "@uifabric/set-version": "^1.1.3", + "prop-types": "^15.5.10", + "tslib": "^1.7.1" + }, + "peerDependencies": { + "@types/react": ">=16.3.0 <17.0.0", + "@types/react-dom": ">=16.3.0 <17.0.0", + "react": ">=16.3.2-0 <17.0.0", + "react-dom": ">=16.3.2-0 <17.0.0" + } + }, + "node_modules/pp365-projectwebparts/node_modules/pp365-shared/node_modules/office-ui-fabric-react": { + "version": "6.214.0", + "resolved": "https://registry.npmjs.org/office-ui-fabric-react/-/office-ui-fabric-react-6.214.0.tgz", + "integrity": "sha512-sYqi0bhZSdEWpQAsHSropoHm0SxLJkdvQDE+3reSnP+rWABD+WCLvMxRuunoQIFjZKDHZ1f+w+L6Nr7nXc+wbQ==", + "dev": true, + "dependencies": { + "@microsoft/load-themed-styles": "^1.7.13", + "@uifabric/foundation": "^0.8.3", + "@uifabric/icons": "^6.5.5", + "@uifabric/merge-styles": "^6.19.4", + "@uifabric/set-version": "^1.1.3", + "@uifabric/styling": "^6.50.7", + "@uifabric/utilities": "^6.45.2", + "prop-types": "^15.5.10", + "tslib": "^1.7.1" + }, + "peerDependencies": { + "@types/react": ">=16.3.0 <17.0.0", + "@types/react-dom": ">=16.3.0 <17.0.0", + "react": ">=16.3.2-0 <17.0.0", + "react-dom": ">=16.3.2-0 <17.0.0" + } + }, + "node_modules/pp365-projectwebparts/node_modules/pp365-shared/node_modules/react": { + "version": "16.8.5", + "resolved": "https://registry.npmjs.org/react/-/react-16.8.5.tgz", + "integrity": "sha512-daCb9TD6FZGvJ3sg8da1tRAtIuw29PbKZW++NN4wqkbEvxL+bZpaaYb4xuftW/SpXmgacf1skXl/ddX6CdOlDw==", + "dev": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2", + "scheduler": "^0.13.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pp365-projectwebparts/node_modules/pp365-shared/node_modules/react-dom": { + "version": "16.8.5", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.8.5.tgz", + "integrity": "sha512-VIEIvZLpFafsfu4kgmftP5L8j7P1f0YThfVTrANMhZUFMDOsA6e0kfR6wxw/8xxKs4NB59TZYbxNdPCDW34x4w==", + "dev": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2", + "scheduler": "^0.13.5" + }, + "peerDependencies": { + "react": "^16.0.0" + } + }, + "node_modules/pp365-projectwebparts/node_modules/pp365-shared/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, "node_modules/pp365-projectwebparts/node_modules/react-calendar-timeline": { "version": "0.26.0", "resolved": "https://registry.npmjs.org/react-calendar-timeline/-/react-calendar-timeline-0.26.0.tgz", @@ -27362,6 +27543,16 @@ "react": "^0.14.0 || ^15.0.0 || ^16.0.0" } }, + "node_modules/pp365-projectwebparts/node_modules/scheduler": { + "version": "0.13.6", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.13.6.tgz", + "integrity": "sha512-IWnObHt413ucAYKsD9J1QShUKkbKLQQHdxRyw73sw4FN26iWr3DY/H34xGPe4nmL1DwXyWmSWmMrA9TfQbE/XQ==", + "dev": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, "node_modules/pp365-projectwebparts/node_modules/whatwg-fetch": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz", @@ -27369,9 +27560,9 @@ "dev": true }, "node_modules/pp365-shared": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0.tgz", - "integrity": "sha512-Aan77+PVlaraiGNC2v+hFcMd5dVutr0kk2GQzbH7AXvVpG0NgA7yJSUdypuFZ0yc/PfpEh0zbDPZpNMydR9ejw==", + "version": "1.8.0-1055.1", + "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0-1055.1.tgz", + "integrity": "sha512-Oq6JW9FhvGA+UIo0RcgbTPNcuW0sxeIv3tEt3Fh0VRN8ngK2DZsmf3fQCE3hlk1pwaz/xlwXGqBVCGSDCozCGQ==", "dependencies": { "@microsoft/sp-application-base": "1.15.2", "@microsoft/sp-core-library": "1.15.2", @@ -57015,6 +57206,159 @@ "is-stream": "^1.0.1" } }, + "pp365-shared": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0.tgz", + "integrity": "sha512-Aan77+PVlaraiGNC2v+hFcMd5dVutr0kk2GQzbH7AXvVpG0NgA7yJSUdypuFZ0yc/PfpEh0zbDPZpNMydR9ejw==", + "dev": true, + "requires": { + "@microsoft/sp-application-base": "1.15.2", + "@microsoft/sp-core-library": "1.15.2", + "@microsoft/sp-listview-extensibility": "1.15.2", + "@microsoft/sp-page-context": "1.15.2", + "@microsoft/sp-webpart-base": "1.15.2", + "@pnp/common": "1.3.8", + "@pnp/logging": "1.3.8", + "@pnp/odata": "1.3.8", + "@pnp/polyfill-ie11": "^1.0.2", + "@pnp/sp": "1.3.8", + "@pnp/sp-clientsvc": "1.3.8", + "@pnp/sp-taxonomy": "1.3.8", + "es6-promise": "^4.2.8", + "file-saver": "^2.0.5", + "gulp": "^4.0.2", + "object-get": "^2.1.0", + "office-ui-fabric-react": "6.214.0", + "react": "16.8.5", + "react-dom": "16.8.5", + "react-markdown": "^8.0.3", + "rehype-raw": "^6.1.1", + "scriptjs": "^2.5.9", + "sp-entityportal-service": "1.3.3", + "spfx-jsom": "0.6.6", + "underscore": "^1.9.1", + "xlsx": "^0.16.9", + "xmldom": "^0.1.27" + }, + "dependencies": { + "@pnp/polyfill-ie11": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@pnp/polyfill-ie11/-/polyfill-ie11-1.0.2.tgz", + "integrity": "sha512-vJstDMgwCsRWbZIzUJGvBmd8932jL1DwItyESQFV0HWaOKIe5erjnbeVHSOHkxTWNNx/KWDjB2IcbW6er0MfMw==", + "dev": true, + "requires": { + "@types/core-js": "2.5.0", + "core-js": "2.6.2", + "es6-map": "0.1.5", + "whatwg-fetch": "3.0.0" + } + }, + "@uifabric/foundation": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/@uifabric/foundation/-/foundation-0.8.3.tgz", + "integrity": "sha512-r3WhRj7Out8QAOe50BGA36R8zgRPy0D0GNPuwFK9BB9oIidf91ycj7/miY8U0TZRZi5fB3Kg+dy/uxSDfgC6Og==", + "dev": true, + "requires": { + "@uifabric/set-version": "^1.1.3", + "@uifabric/styling": "^6.50.7", + "@uifabric/utilities": "^6.41.7", + "tslib": "^1.7.1" + } + }, + "@uifabric/icons": { + "version": "6.5.5", + "resolved": "https://registry.npmjs.org/@uifabric/icons/-/icons-6.5.5.tgz", + "integrity": "sha512-cGjzdpT0jzQ2RJvzlCVTrewaHCi4rb+ZNL2LWoceMi+5h196Y32qJwKMsc0ggR6u5CjMrzBiAxUFNppBSCutdA==", + "dev": true, + "requires": { + "@uifabric/set-version": "^1.1.3", + "@uifabric/styling": "^6.50.7", + "tslib": "^1.7.1" + } + }, + "@uifabric/set-version": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@uifabric/set-version/-/set-version-1.1.3.tgz", + "integrity": "sha512-IYpwVIuN7MJOeiWzZzr9AmFSvA5zc6gJn4fNHtEFIQnNB8WVWIcYrvx8Tbf7wWj9MvhdHYp70F054zZlHbL/Ag==", + "dev": true, + "requires": { + "tslib": "^1.7.1" + } + }, + "@uifabric/styling": { + "version": "6.50.7", + "resolved": "https://registry.npmjs.org/@uifabric/styling/-/styling-6.50.7.tgz", + "integrity": "sha512-F2aBiB30ZiFxlZzy5hzLXODWOl6jySvPFAsoaTofk37xucHiunBLZYjX6WkfZrCWiyGPva+DLssNcwly9ZHVjg==", + "dev": true, + "requires": { + "@microsoft/load-themed-styles": "^1.7.13", + "@uifabric/merge-styles": "^6.19.4", + "@uifabric/set-version": "^1.1.3", + "@uifabric/utilities": "^6.41.7", + "tslib": "^1.7.1" + } + }, + "@uifabric/utilities": { + "version": "6.45.2", + "resolved": "https://registry.npmjs.org/@uifabric/utilities/-/utilities-6.45.2.tgz", + "integrity": "sha512-JiC92OjMOkVoiIAeS2b3R9B1XQU0cJ5bDr9B7VvrxlwKe1W9xMtVsCer7b8gNCU5NFNYBN5ckM3Q7x2Zs5cH0A==", + "dev": true, + "requires": { + "@uifabric/merge-styles": "^6.19.4", + "@uifabric/set-version": "^1.1.3", + "prop-types": "^15.5.10", + "tslib": "^1.7.1" + } + }, + "office-ui-fabric-react": { + "version": "6.214.0", + "resolved": "https://registry.npmjs.org/office-ui-fabric-react/-/office-ui-fabric-react-6.214.0.tgz", + "integrity": "sha512-sYqi0bhZSdEWpQAsHSropoHm0SxLJkdvQDE+3reSnP+rWABD+WCLvMxRuunoQIFjZKDHZ1f+w+L6Nr7nXc+wbQ==", + "dev": true, + "requires": { + "@microsoft/load-themed-styles": "^1.7.13", + "@uifabric/foundation": "^0.8.3", + "@uifabric/icons": "^6.5.5", + "@uifabric/merge-styles": "^6.19.4", + "@uifabric/set-version": "^1.1.3", + "@uifabric/styling": "^6.50.7", + "@uifabric/utilities": "^6.45.2", + "prop-types": "^15.5.10", + "tslib": "^1.7.1" + } + }, + "react": { + "version": "16.8.5", + "resolved": "https://registry.npmjs.org/react/-/react-16.8.5.tgz", + "integrity": "sha512-daCb9TD6FZGvJ3sg8da1tRAtIuw29PbKZW++NN4wqkbEvxL+bZpaaYb4xuftW/SpXmgacf1skXl/ddX6CdOlDw==", + "dev": true, + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2", + "scheduler": "^0.13.5" + } + }, + "react-dom": { + "version": "16.8.5", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.8.5.tgz", + "integrity": "sha512-VIEIvZLpFafsfu4kgmftP5L8j7P1f0YThfVTrANMhZUFMDOsA6e0kfR6wxw/8xxKs4NB59TZYbxNdPCDW34x4w==", + "dev": true, + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2", + "scheduler": "^0.13.5" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, "react-calendar-timeline": { "version": "0.26.0", "resolved": "https://registry.npmjs.org/react-calendar-timeline/-/react-calendar-timeline-0.26.0.tgz", @@ -57039,6 +57383,16 @@ } } }, + "scheduler": { + "version": "0.13.6", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.13.6.tgz", + "integrity": "sha512-IWnObHt413ucAYKsD9J1QShUKkbKLQQHdxRyw73sw4FN26iWr3DY/H34xGPe4nmL1DwXyWmSWmMrA9TfQbE/XQ==", + "dev": true, + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, "whatwg-fetch": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz", @@ -57048,9 +57402,9 @@ } }, "pp365-shared": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0.tgz", - "integrity": "sha512-Aan77+PVlaraiGNC2v+hFcMd5dVutr0kk2GQzbH7AXvVpG0NgA7yJSUdypuFZ0yc/PfpEh0zbDPZpNMydR9ejw==", + "version": "1.8.0-1055.1", + "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0-1055.1.tgz", + "integrity": "sha512-Oq6JW9FhvGA+UIo0RcgbTPNcuW0sxeIv3tEt3Fh0VRN8ngK2DZsmf3fQCE3hlk1pwaz/xlwXGqBVCGSDCozCGQ==", "requires": { "@microsoft/sp-application-base": "1.15.2", "@microsoft/sp-core-library": "1.15.2", diff --git a/SharePointFramework/PortfolioWebParts/package.json b/SharePointFramework/PortfolioWebParts/package.json index f9aadfa8a..67d9ac274 100644 --- a/SharePointFramework/PortfolioWebParts/package.json +++ b/SharePointFramework/PortfolioWebParts/package.json @@ -1,6 +1,6 @@ { "name": "pp365-portfoliowebparts", - "version": "1.8.0", + "version": "1.8.0-1055.1", "repository": { "type": "git", "url": "https://github.com/Puzzlepart/prosjektportalen365.git", @@ -46,7 +46,7 @@ "moment": "2.24.0", "msgraph-helper": "0.7.3", "object-assign": "4.1.1", - "pp365-shared": "1.8.0", + "pp365-shared": "1.8.0-1055.1", "react": "16.13.1", "react-calendar-timeline": "0.27.0", "react-dom": "16.13.1", @@ -85,4 +85,4 @@ "typescript": "4.5.5", "webpack": "5.74.0" } -} \ No newline at end of file +} diff --git a/SharePointFramework/ProgramWebParts/package-lock.json b/SharePointFramework/ProgramWebParts/package-lock.json index dbe392e23..659511884 100644 --- a/SharePointFramework/ProgramWebParts/package-lock.json +++ b/SharePointFramework/ProgramWebParts/package-lock.json @@ -36,7 +36,7 @@ "moment": "^2.24.0", "msgraph-helper": "0.7.3", "object-assign": "4.1.1", - "pp365-shared": "1.8.0", + "pp365-shared": "1.8.0-1055.1", "pzl-react-reusable-components": "^0.0.14", "react": "16.13.1", "react-calendar-timeline": "0.27.0", @@ -70,8 +70,8 @@ "find": "0.3.0", "gulp": "4.0.2", "livereload": "0.9.1", - "pp365-portfoliowebparts": "1.8.0", - "pp365-projectwebparts": "1.8.0", + "pp365-portfoliowebparts": "1.8.0-1055.1", + "pp365-projectwebparts": "1.8.0-1055.1", "prettier": "2.3.2", "typescript": "4.5.5", "webpack": "5.74.0", @@ -28181,9 +28181,9 @@ "dev": true }, "node_modules/pp365-portfoliowebparts": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/pp365-portfoliowebparts/-/pp365-portfoliowebparts-1.8.0.tgz", - "integrity": "sha512-y76Yhnjh+zCXpQtIwqWTqzNiD3rYx8oaELO7ELsnC0295o1L/BW7u86tlhf0M1ga8jUO7Bi2df3wUpZ9+h3ycA==", + "version": "1.8.0-1055.1", + "resolved": "https://registry.npmjs.org/pp365-portfoliowebparts/-/pp365-portfoliowebparts-1.8.0-1055.1.tgz", + "integrity": "sha512-VowkdYESbe0l7o+G0GJ5Zxyp08L6w3QkPdYA+EIq3PqhpO8ZvAEHA9r2P5yM/Gp9rCPuIQduri5p7voP6qOLGw==", "dev": true, "dependencies": { "@fluentui/react": "8.98.1", @@ -28213,7 +28213,7 @@ "moment": "2.24.0", "msgraph-helper": "0.7.3", "object-assign": "4.1.1", - "pp365-shared": "1.8.0", + "pp365-shared": "1.8.0-1055.1", "react": "16.13.1", "react-calendar-timeline": "0.27.0", "react-dom": "16.13.1", @@ -28454,9 +28454,9 @@ "dev": true }, "node_modules/pp365-projectwebparts": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/pp365-projectwebparts/-/pp365-projectwebparts-1.8.0.tgz", - "integrity": "sha512-pnkG3Mi4nRIJOYAOaFxm+W/89Q4JRmQJRok0tDBtzH0XliygC7Tg41UxH4w80vPprSM5q5dA8HUWrGooQaC22A==", + "version": "1.8.0-1055.1", + "resolved": "https://registry.npmjs.org/pp365-projectwebparts/-/pp365-projectwebparts-1.8.0-1055.1.tgz", + "integrity": "sha512-A1CCtG/tnOcaJmm+6uaGUTTmcheb6CHzzTHUPaxT7++vdFfBJ37/TIpUvAOCuKVGMCkhObH8tmlF7DGMg9/jQw==", "dev": true, "dependencies": { "@fluentui/react": "8.98.1", @@ -28485,7 +28485,7 @@ "get-value": "3.0.1", "interactjs": "1.6.2", "msgraph-helper": "0.7.1", - "pp365-shared": "1.8.0", + "pp365-shared": "1.8.0-1055.1", "pzl-spfx-components": "0.0.11", "react": "16.13.1", "react-calendar-timeline": "0.26.0", @@ -29182,24 +29182,6 @@ "node": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0 || >=16.13.0 <17.0.0" } }, - "node_modules/pp365-projectwebparts/node_modules/@microsoft/sp-http/node_modules/@microsoft/microsoft-graph-clientv1": { - "name": "@microsoft/microsoft-graph-client", - "version": "1.7.2-spfx", - "resolved": "https://registry.npmjs.org/@microsoft/microsoft-graph-client/-/microsoft-graph-client-1.7.2-spfx.tgz", - "integrity": "sha512-BQN50r3tohWYOaQ0de7LJ5eCRjI6eg4RQqLhGDlgRmZIZhWzH0bhR6QBMmmxtYtwKWifhPhJSxYDW+cP67TJVw==", - "dev": true, - "dependencies": { - "es6-promise": "^4.2.6", - "isomorphic-fetch": "^3.0.0", - "tslib": "^1.9.3" - } - }, - "node_modules/pp365-projectwebparts/node_modules/@microsoft/sp-http/node_modules/@microsoft/microsoft-graph-clientv1/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, "node_modules/pp365-projectwebparts/node_modules/@microsoft/sp-http/node_modules/@microsoft/sp-core-library": { "version": "1.16.0", "resolved": "https://registry.npmjs.org/@microsoft/sp-core-library/-/sp-core-library-1.16.0.tgz", @@ -30455,9 +30437,9 @@ "dev": true }, "node_modules/pp365-shared": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0.tgz", - "integrity": "sha512-Aan77+PVlaraiGNC2v+hFcMd5dVutr0kk2GQzbH7AXvVpG0NgA7yJSUdypuFZ0yc/PfpEh0zbDPZpNMydR9ejw==", + "version": "1.8.0-1055.1", + "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0-1055.1.tgz", + "integrity": "sha512-Oq6JW9FhvGA+UIo0RcgbTPNcuW0sxeIv3tEt3Fh0VRN8ngK2DZsmf3fQCE3hlk1pwaz/xlwXGqBVCGSDCozCGQ==", "dependencies": { "@microsoft/sp-application-base": "1.15.2", "@microsoft/sp-core-library": "1.15.2", @@ -34912,7 +34894,8 @@ "node_modules/trim": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/trim/-/trim-0.0.1.tgz", - "integrity": "sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ==" + "integrity": "sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ==", + "deprecated": "Use String.prototype.trim() instead" }, "node_modules/trim-lines": { "version": "3.0.1", @@ -60629,9 +60612,9 @@ "dev": true }, "pp365-portfoliowebparts": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/pp365-portfoliowebparts/-/pp365-portfoliowebparts-1.8.0.tgz", - "integrity": "sha512-y76Yhnjh+zCXpQtIwqWTqzNiD3rYx8oaELO7ELsnC0295o1L/BW7u86tlhf0M1ga8jUO7Bi2df3wUpZ9+h3ycA==", + "version": "1.8.0-1055.1", + "resolved": "https://registry.npmjs.org/pp365-portfoliowebparts/-/pp365-portfoliowebparts-1.8.0-1055.1.tgz", + "integrity": "sha512-VowkdYESbe0l7o+G0GJ5Zxyp08L6w3QkPdYA+EIq3PqhpO8ZvAEHA9r2P5yM/Gp9rCPuIQduri5p7voP6qOLGw==", "dev": true, "requires": { "@fluentui/react": "8.98.1", @@ -60661,7 +60644,7 @@ "moment": "2.24.0", "msgraph-helper": "0.7.3", "object-assign": "4.1.1", - "pp365-shared": "1.8.0", + "pp365-shared": "1.8.0-1055.1", "react": "16.13.1", "react-calendar-timeline": "0.27.0", "react-dom": "16.13.1", @@ -60884,9 +60867,9 @@ } }, "pp365-projectwebparts": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/pp365-projectwebparts/-/pp365-projectwebparts-1.8.0.tgz", - "integrity": "sha512-pnkG3Mi4nRIJOYAOaFxm+W/89Q4JRmQJRok0tDBtzH0XliygC7Tg41UxH4w80vPprSM5q5dA8HUWrGooQaC22A==", + "version": "1.8.0-1055.1", + "resolved": "https://registry.npmjs.org/pp365-projectwebparts/-/pp365-projectwebparts-1.8.0-1055.1.tgz", + "integrity": "sha512-A1CCtG/tnOcaJmm+6uaGUTTmcheb6CHzzTHUPaxT7++vdFfBJ37/TIpUvAOCuKVGMCkhObH8tmlF7DGMg9/jQw==", "dev": true, "requires": { "@fluentui/react": "8.98.1", @@ -60915,7 +60898,7 @@ "get-value": "3.0.1", "interactjs": "1.6.2", "msgraph-helper": "0.7.1", - "pp365-shared": "1.8.0", + "pp365-shared": "1.8.0-1055.1", "pzl-spfx-components": "0.0.11", "react": "16.13.1", "react-calendar-timeline": "0.26.0", @@ -61524,25 +61507,6 @@ "tslib": "2.3.1" }, "dependencies": { - "@microsoft/microsoft-graph-clientv1": { - "version": "npm:@microsoft/microsoft-graph-client@1.7.2-spfx", - "resolved": "https://registry.npmjs.org/@microsoft/microsoft-graph-client/-/microsoft-graph-client-1.7.2-spfx.tgz", - "integrity": "sha512-BQN50r3tohWYOaQ0de7LJ5eCRjI6eg4RQqLhGDlgRmZIZhWzH0bhR6QBMmmxtYtwKWifhPhJSxYDW+cP67TJVw==", - "dev": true, - "requires": { - "es6-promise": "^4.2.6", - "isomorphic-fetch": "^3.0.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, "@microsoft/sp-core-library": { "version": "1.16.0", "resolved": "https://registry.npmjs.org/@microsoft/sp-core-library/-/sp-core-library-1.16.0.tgz", @@ -62623,9 +62587,9 @@ } }, "pp365-shared": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0.tgz", - "integrity": "sha512-Aan77+PVlaraiGNC2v+hFcMd5dVutr0kk2GQzbH7AXvVpG0NgA7yJSUdypuFZ0yc/PfpEh0zbDPZpNMydR9ejw==", + "version": "1.8.0-1055.1", + "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0-1055.1.tgz", + "integrity": "sha512-Oq6JW9FhvGA+UIo0RcgbTPNcuW0sxeIv3tEt3Fh0VRN8ngK2DZsmf3fQCE3hlk1pwaz/xlwXGqBVCGSDCozCGQ==", "requires": { "@microsoft/sp-application-base": "1.15.2", "@microsoft/sp-core-library": "1.15.2", diff --git a/SharePointFramework/ProgramWebParts/package.json b/SharePointFramework/ProgramWebParts/package.json index 8e2f8d315..71a1b51ad 100644 --- a/SharePointFramework/ProgramWebParts/package.json +++ b/SharePointFramework/ProgramWebParts/package.json @@ -49,7 +49,7 @@ "moment": "^2.24.0", "msgraph-helper": "0.7.3", "object-assign": "4.1.1", - "pp365-shared": "1.8.0", + "pp365-shared": "1.8.0-1055.1", "pzl-react-reusable-components": "^0.0.14", "react": "16.13.1", "react-calendar-timeline": "0.27.0", @@ -86,11 +86,11 @@ "find": "0.3.0", "gulp": "4.0.2", "livereload": "0.9.1", - "pp365-portfoliowebparts": "1.8.0", - "pp365-projectwebparts": "1.8.0", + "pp365-portfoliowebparts": "1.8.0-1055.1", + "pp365-projectwebparts": "1.8.0-1055.1", "prettier": "2.3.2", "typescript": "4.5.5", "webpack": "5.74.0", "yargs": "14.2.0" } -} \ No newline at end of file +} diff --git a/SharePointFramework/ProjectWebParts/package-lock.json b/SharePointFramework/ProjectWebParts/package-lock.json index 63c32cefa..423fc4001 100644 --- a/SharePointFramework/ProjectWebParts/package-lock.json +++ b/SharePointFramework/ProjectWebParts/package-lock.json @@ -1,12 +1,12 @@ { "name": "pp365-projectwebparts", - "version": "1.8.0", + "version": "1.8.0-1055.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pp365-projectwebparts", - "version": "1.8.0", + "version": "1.8.0-1055.1", "license": "MIT", "dependencies": { "@fluentui/react": "8.98.1", @@ -35,7 +35,7 @@ "get-value": "3.0.1", "interactjs": "1.6.2", "msgraph-helper": "0.7.1", - "pp365-shared": "1.8.0", + "pp365-shared": "1.8.0-1055.1", "pzl-spfx-components": "0.0.11", "react": "16.13.1", "react-calendar-timeline": "0.26.0", @@ -9766,9 +9766,9 @@ "integrity": "sha512-61MNgoBY6iEsHhFGiElSjEu8HbHOahJLGh9BdGSfzgAN+2qOuFJKuG3f7F+/ggKr+0yEM3Y4fCWAgxU6es0otg==" }, "node_modules/@types/scheduler": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz", - "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==", + "version": "0.16.3", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", + "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==", "peer": true }, "node_modules/@types/semver": { @@ -27600,9 +27600,9 @@ } }, "node_modules/pp365-shared": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0.tgz", - "integrity": "sha512-Aan77+PVlaraiGNC2v+hFcMd5dVutr0kk2GQzbH7AXvVpG0NgA7yJSUdypuFZ0yc/PfpEh0zbDPZpNMydR9ejw==", + "version": "1.8.0-1055.1", + "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0-1055.1.tgz", + "integrity": "sha512-Oq6JW9FhvGA+UIo0RcgbTPNcuW0sxeIv3tEt3Fh0VRN8ngK2DZsmf3fQCE3hlk1pwaz/xlwXGqBVCGSDCozCGQ==", "dependencies": { "@microsoft/sp-application-base": "1.15.2", "@microsoft/sp-core-library": "1.15.2", @@ -42443,9 +42443,9 @@ "integrity": "sha512-61MNgoBY6iEsHhFGiElSjEu8HbHOahJLGh9BdGSfzgAN+2qOuFJKuG3f7F+/ggKr+0yEM3Y4fCWAgxU6es0otg==" }, "@types/scheduler": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz", - "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==", + "version": "0.16.3", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", + "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==", "peer": true }, "@types/semver": { @@ -56854,9 +56854,9 @@ } }, "pp365-shared": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0.tgz", - "integrity": "sha512-Aan77+PVlaraiGNC2v+hFcMd5dVutr0kk2GQzbH7AXvVpG0NgA7yJSUdypuFZ0yc/PfpEh0zbDPZpNMydR9ejw==", + "version": "1.8.0-1055.1", + "resolved": "https://registry.npmjs.org/pp365-shared/-/pp365-shared-1.8.0-1055.1.tgz", + "integrity": "sha512-Oq6JW9FhvGA+UIo0RcgbTPNcuW0sxeIv3tEt3Fh0VRN8ngK2DZsmf3fQCE3hlk1pwaz/xlwXGqBVCGSDCozCGQ==", "requires": { "@microsoft/sp-application-base": "1.15.2", "@microsoft/sp-core-library": "1.15.2", diff --git a/SharePointFramework/ProjectWebParts/package.json b/SharePointFramework/ProjectWebParts/package.json index 03f76a4b0..0ebd2d1f1 100644 --- a/SharePointFramework/ProjectWebParts/package.json +++ b/SharePointFramework/ProjectWebParts/package.json @@ -1,6 +1,6 @@ { "name": "pp365-projectwebparts", - "version": "1.8.0", + "version": "1.8.0-1055.1", "repository": { "type": "git", "url": "https://github.com/Puzzlepart/prosjektportalen365.git", @@ -46,7 +46,7 @@ "get-value": "3.0.1", "interactjs": "1.6.2", "msgraph-helper": "0.7.1", - "pp365-shared": "1.8.0", + "pp365-shared": "1.8.0-1055.1", "pzl-spfx-components": "0.0.11", "react": "16.13.1", "react-calendar-timeline": "0.26.0", @@ -92,4 +92,4 @@ "typescript": "4.5.5", "webpack": "5.74.0" } -} \ No newline at end of file +}