@kwiz/common 1.0.92 → 1.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +24 -24
- package/.madgerc +2 -2
- package/LICENSE +21 -21
- package/fix-folder-imports.js +26 -26
- package/lib/cjs/helpers/diagrams.js +38 -0
- package/lib/cjs/helpers/diagrams.js.map +1 -0
- package/lib/cjs/helpers/exports-index.js +1 -0
- package/lib/cjs/helpers/exports-index.js.map +1 -1
- package/lib/cjs/types/libs/msal.types.js +26 -26
- package/lib/cjs/utils/sharepoint.rest/user.js +11 -11
- package/lib/esm/helpers/diagrams.js +35 -0
- package/lib/esm/helpers/diagrams.js.map +1 -0
- package/lib/esm/helpers/exports-index.js +1 -0
- package/lib/esm/helpers/exports-index.js.map +1 -1
- package/lib/esm/types/libs/msal.types.js +26 -26
- package/lib/esm/utils/sharepoint.rest/user.js +11 -11
- package/lib/types/helpers/diagrams.d.ts +10 -0
- package/lib/types/helpers/exports-index.d.ts +1 -0
- package/package.json +81 -81
- package/readme.md +17 -17
- package/src/_dependencies.ts +12 -12
- package/src/config.ts +17 -17
- package/src/helpers/Guid.ts +181 -181
- package/src/helpers/base64.ts +173 -173
- package/src/helpers/browser.test.js +13 -13
- package/src/helpers/browser.ts +1386 -1386
- package/src/helpers/browserinfo.ts +292 -292
- package/src/helpers/collections.base.test.js +25 -25
- package/src/helpers/collections.base.ts +437 -437
- package/src/helpers/collections.ts +107 -107
- package/src/helpers/color.ts +54 -54
- package/src/helpers/cookies.ts +59 -59
- package/src/helpers/date.test.js +119 -119
- package/src/helpers/date.ts +188 -188
- package/src/helpers/debug.ts +186 -186
- package/src/helpers/diagrams.ts +44 -0
- package/src/helpers/emails.ts +6 -6
- package/src/helpers/eval.ts +5 -5
- package/src/helpers/exports-index.ts +1 -0
- package/src/helpers/file.test.js +50 -50
- package/src/helpers/file.ts +60 -60
- package/src/helpers/flatted.ts +149 -149
- package/src/helpers/functions.ts +16 -16
- package/src/helpers/graph/calendar.types.ts +10 -10
- package/src/helpers/http.ts +69 -69
- package/src/helpers/images.ts +22 -22
- package/src/helpers/json.ts +38 -38
- package/src/helpers/md5.ts +189 -189
- package/src/helpers/objects.test.js +33 -33
- package/src/helpers/objects.ts +274 -274
- package/src/helpers/promises.test.js +37 -37
- package/src/helpers/promises.ts +165 -165
- package/src/helpers/random.ts +27 -27
- package/src/helpers/scheduler/scheduler.test.js +103 -103
- package/src/helpers/scheduler/scheduler.ts +131 -131
- package/src/helpers/sharepoint.ts +776 -776
- package/src/helpers/strings.test.js +101 -101
- package/src/helpers/strings.ts +317 -317
- package/src/helpers/typecheckers.test.js +34 -34
- package/src/helpers/typecheckers.ts +266 -266
- package/src/helpers/url.test.js +43 -43
- package/src/helpers/url.ts +207 -207
- package/src/helpers/urlhelper.ts +111 -111
- package/src/index.ts +6 -6
- package/src/types/auth.ts +54 -54
- package/src/types/common.types.ts +15 -15
- package/src/types/flatted.types.ts +59 -59
- package/src/types/globals.types.ts +6 -6
- package/src/types/graph/calendar.types.ts +80 -80
- package/src/types/knownscript.types.ts +18 -18
- package/src/types/libs/datajs.types.ts +28 -28
- package/src/types/libs/ics.types.ts +30 -30
- package/src/types/libs/msal.types.ts +49 -49
- package/src/types/locales.ts +124 -124
- package/src/types/localstoragecache.types.ts +8 -8
- package/src/types/location.types.ts +27 -27
- package/src/types/moment.ts +11 -11
- package/src/types/regex.types.ts +16 -16
- package/src/types/rest.types.ts +95 -95
- package/src/types/sharepoint.types.ts +1465 -1465
- package/src/types/sharepoint.utils.types.ts +287 -287
- package/src/utils/auth/common.ts +74 -74
- package/src/utils/auth/discovery.test.js +12 -12
- package/src/utils/auth/discovery.ts +132 -132
- package/src/utils/base64.ts +27 -27
- package/src/utils/consolelogger.ts +320 -320
- package/src/utils/date.ts +35 -35
- package/src/utils/emails.ts +24 -24
- package/src/utils/knownscript.ts +286 -286
- package/src/utils/localstoragecache.ts +441 -441
- package/src/utils/rest.ts +501 -501
- package/src/utils/script.ts +170 -170
- package/src/utils/sharepoint.rest/common.ts +154 -154
- package/src/utils/sharepoint.rest/date.ts +62 -62
- package/src/utils/sharepoint.rest/file.folder.ts +598 -598
- package/src/utils/sharepoint.rest/item.ts +547 -547
- package/src/utils/sharepoint.rest/list.ts +1480 -1480
- package/src/utils/sharepoint.rest/listutils/GetListItemsByCaml.ts +774 -774
- package/src/utils/sharepoint.rest/listutils/GetListItemsById.ts +275 -275
- package/src/utils/sharepoint.rest/listutils/common.ts +206 -206
- package/src/utils/sharepoint.rest/location.ts +141 -141
- package/src/utils/sharepoint.rest/navigation-links.ts +86 -86
- package/src/utils/sharepoint.rest/user-search.ts +252 -252
- package/src/utils/sharepoint.rest/user.ts +491 -491
- package/src/utils/sharepoint.rest/web.ts +1384 -1384
- package/src/utils/sod.ts +194 -194
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: Node.js Package
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
tags:
|
|
9
|
-
- 'v*.*.*' # run every time we commit with a new version number
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
build-publish-npm:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v4
|
|
16
|
-
- uses: actions/setup-node@v4
|
|
17
|
-
with:
|
|
18
|
-
node-version: 18
|
|
19
|
-
registry-url: https://registry.npmjs.org/
|
|
20
|
-
- run: npm ci
|
|
21
|
-
- run: npm run build
|
|
22
|
-
- run: npm run npm-publish
|
|
23
|
-
env:
|
|
24
|
-
NODE_AUTH_TOKEN: ${{secrets.KWIZ_NPM_TOKEN}}
|
|
1
|
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
+
|
|
4
|
+
name: Node.js Package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
tags:
|
|
9
|
+
- 'v*.*.*' # run every time we commit with a new version number
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-publish-npm:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: actions/setup-node@v4
|
|
17
|
+
with:
|
|
18
|
+
node-version: 18
|
|
19
|
+
registry-url: https://registry.npmjs.org/
|
|
20
|
+
- run: npm ci
|
|
21
|
+
- run: npm run build
|
|
22
|
+
- run: npm run npm-publish
|
|
23
|
+
env:
|
|
24
|
+
NODE_AUTH_TOKEN: ${{secrets.KWIZ_NPM_TOKEN}}
|
package/.madgerc
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"fileExtensions": ["js", "ts"]
|
|
1
|
+
{
|
|
2
|
+
"fileExtensions": ["js", "ts"]
|
|
3
3
|
}
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 KWIZ Corp
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 KWIZ Corp
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/fix-folder-imports.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
const glob = require('glob');
|
|
2
|
-
const fs = require("fs-extra");
|
|
3
|
-
const exportsFileName = "exports-index";
|
|
4
|
-
const exportsFileNameWithExt = `${exportsFileName}.ts`;
|
|
5
|
-
const exportsIndexFiles = glob.sync(`./src/**/${exportsFileNameWithExt}`);
|
|
6
|
-
//loop every exportsIndexFiles and find any import to a directory, and replace with /exports-index
|
|
7
|
-
console.time("fixing direcry imports");
|
|
8
|
-
exportsIndexFiles.forEach(file => {
|
|
9
|
-
var content = fs.readFileSync(file, "utf8").split("\n");
|
|
10
|
-
var parentFolderContent = fs.readdirSync(file.replace(exportsFileNameWithExt, ''));
|
|
11
|
-
var hasChanges = false;
|
|
12
|
-
//loop every import - if it does not match a file in the folder, but matches a sub-folder - append exports-index to it
|
|
13
|
-
content.forEach((line, idx) => {
|
|
14
|
-
if (line.replace(/ /g, '').length > 0) {
|
|
15
|
-
let importName = line.slice(line.indexOf('./') + 2, line.length - 2);
|
|
16
|
-
if (parentFolderContent.includes(importName))//its a folder, otherwise it would be .ts
|
|
17
|
-
{
|
|
18
|
-
content[idx] = line.replace(`./${importName}`, `./${importName}/${exportsFileName}`);
|
|
19
|
-
hasChanges = true;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
if (hasChanges) {
|
|
24
|
-
fs.writeFileSync(file, content.join('\n'));
|
|
25
|
-
}
|
|
26
|
-
});
|
|
1
|
+
const glob = require('glob');
|
|
2
|
+
const fs = require("fs-extra");
|
|
3
|
+
const exportsFileName = "exports-index";
|
|
4
|
+
const exportsFileNameWithExt = `${exportsFileName}.ts`;
|
|
5
|
+
const exportsIndexFiles = glob.sync(`./src/**/${exportsFileNameWithExt}`);
|
|
6
|
+
//loop every exportsIndexFiles and find any import to a directory, and replace with /exports-index
|
|
7
|
+
console.time("fixing direcry imports");
|
|
8
|
+
exportsIndexFiles.forEach(file => {
|
|
9
|
+
var content = fs.readFileSync(file, "utf8").split("\n");
|
|
10
|
+
var parentFolderContent = fs.readdirSync(file.replace(exportsFileNameWithExt, ''));
|
|
11
|
+
var hasChanges = false;
|
|
12
|
+
//loop every import - if it does not match a file in the folder, but matches a sub-folder - append exports-index to it
|
|
13
|
+
content.forEach((line, idx) => {
|
|
14
|
+
if (line.replace(/ /g, '').length > 0) {
|
|
15
|
+
let importName = line.slice(line.indexOf('./') + 2, line.length - 2);
|
|
16
|
+
if (parentFolderContent.includes(importName))//its a folder, otherwise it would be .ts
|
|
17
|
+
{
|
|
18
|
+
content[idx] = line.replace(`./${importName}`, `./${importName}/${exportsFileName}`);
|
|
19
|
+
hasChanges = true;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
if (hasChanges) {
|
|
24
|
+
fs.writeFileSync(file, content.join('\n'));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
27
|
console.timeEnd("fixing direcry imports");
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiagramOptions = exports.stockUrl = void 0;
|
|
4
|
+
const collections_base_1 = require("./collections.base");
|
|
5
|
+
const typecheckers_1 = require("./typecheckers");
|
|
6
|
+
exports.stockUrl = "https://apps.kwizcom.com/products/apsig/images/diagrams";
|
|
7
|
+
const diagrams = (0, collections_base_1.sortArray)([
|
|
8
|
+
{ name: "Body, male, all", folderPrefix: "body-all", filePrefix: "body-all-" },
|
|
9
|
+
{ name: "Body, female, all", folderPrefix: "body-all", filePrefix: "body-all-fem-" },
|
|
10
|
+
{ name: "Body, male, front", folderPrefix: "body-frontal", filePrefix: "body-frontal-" },
|
|
11
|
+
{ name: "Body, female, front", folderPrefix: "body-frontal", filePrefix: "body-frontal-fem-" },
|
|
12
|
+
{ name: "Car", folderPrefix: "car", filePrefix: "car-" },
|
|
13
|
+
{ name: "Cat & Dog", folderPrefix: "cat-dog", filePrefix: "cat-dog-" },
|
|
14
|
+
{ name: "Cat", folderPrefix: "cat-dog", filePrefix: "cat-" },
|
|
15
|
+
{ name: "Dog", folderPrefix: "cat-dog", filePrefix: "dog-" },
|
|
16
|
+
{ name: "Face", folderPrefix: "face", filePrefix: "face-" },
|
|
17
|
+
{ name: "Pickup truck", folderPrefix: "pickup", filePrefix: "pickup-" },
|
|
18
|
+
{ name: "Shoulder & head", folderPrefix: "shoulder-head", filePrefix: "shoulder-head-" },
|
|
19
|
+
{ name: "Shoulder & head, female", folderPrefix: "shoulder-head", filePrefix: "shoulder-head-fem-" },
|
|
20
|
+
{ name: "Shoulder & head, all", folderPrefix: "shoulder-head-all", filePrefix: "shoulder-head-all-" },
|
|
21
|
+
{ name: "Shoulder & head, female, all", folderPrefix: "shoulder-head-all", filePrefix: "shoulder-head-all-fem-" },
|
|
22
|
+
{ name: "Signature line", folderPrefix: "signature", filePrefix: "signature-" }
|
|
23
|
+
], d => d.name);
|
|
24
|
+
const diagramTypes = [{ suffix: "diagram-transparent", label: "transparent" }, { suffix: "diagram-whitebg-transparent", label: "partially transparent" }, { suffix: "diagram-whitebg", label: "" }];
|
|
25
|
+
var diagramOptionsHiRes = [];
|
|
26
|
+
var diagramOptions = [];
|
|
27
|
+
function addDiagramOptions(info, options) {
|
|
28
|
+
diagramTypes.forEach(type => options.push({
|
|
29
|
+
name: `${info.name}${(0, typecheckers_1.isNullOrEmptyString)(type.label) ? '' : `, ${type.label}`}`,
|
|
30
|
+
url: `${info.folderPrefix}/${info.filePrefix}${type.suffix}.png`
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
diagrams.forEach(d => {
|
|
34
|
+
addDiagramOptions(d, diagramOptionsHiRes);
|
|
35
|
+
addDiagramOptions({ folderPrefix: `${d.folderPrefix}/small`, filePrefix: d.filePrefix, name: `${d.name}, small` }, diagramOptions);
|
|
36
|
+
});
|
|
37
|
+
exports.DiagramOptions = { options: diagramOptions, hiRes: diag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,mBAAmB,CAAC,CAAC;IAC1C,iBAAiB,CAAC,EAAE,YAAY,EAAE,GAAG,CAAC,CAAC,YAAY,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC,UAAU,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,IAAI,SAAS,EAAE,EAAE,cAAc,CAAC,CAAC;AACvI,CAAC,CAAC,CAAC;AACU,QAAA,cAAc,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -26,6 +26,7 @@ __exportStar(require("./color"), exports);
|
|
|
26
26
|
__exportStar(require("./cookies"), exports);
|
|
27
27
|
__exportStar(require("./date"), exports);
|
|
28
28
|
__exportStar(require("./debug"), exports);
|
|
29
|
+
__exportStar(require("./diagrams"), exports);
|
|
29
30
|
__exportStar(require("./emails"), exports);
|
|
30
31
|
__exportStar(require("./eval"), exports);
|
|
31
32
|
__exportStar(require("./file"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports-index.js","sourceRoot":"","sources":["../../../src/helpers/exports-index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,4DAA0C;AAC1C,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,gDAA8B;AAC9B,qDAAmC;AACnC,gDAA8B;AAC9B,0CAAwB;AACxB,4CAA0B;AAC1B,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,yCAAuB;AACvB,yCAAuB;AACvB,4CAA0B;AAC1B,8CAA4B;AAC5B,yCAAuB;AACvB,2CAAyB;AACzB,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,6CAA2B;AAC3B,2CAAyB;AACzB,+CAA6B;AAC7B,4CAA0B;AAC1B,iDAA+B;AAC/B,wCAAsB;AACtB,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"exports-index.js","sourceRoot":"","sources":["../../../src/helpers/exports-index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,4DAA0C;AAC1C,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,gDAA8B;AAC9B,qDAAmC;AACnC,gDAA8B;AAC9B,0CAAwB;AACxB,4CAA0B;AAC1B,yCAAuB;AACvB,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,yCAAuB;AACvB,yCAAuB;AACvB,4CAA0B;AAC1B,8CAA4B;AAC5B,yCAAuB;AACvB,2CAAyB;AACzB,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,6CAA2B;AAC3B,2CAAyB;AACzB,+CAA6B;AAC7B,4CAA0B;AAC1B,iDAA+B;AAC/B,wCAAsB;AACtB,8CAA4B"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MSALSampleLoginPopupScript = void 0;
|
|
4
|
-
exports.MSALSampleLoginPopupScript = `<p id="msg">please wait...</p>
|
|
5
|
-
<script>
|
|
6
|
-
function finish() {
|
|
7
|
-
try {
|
|
8
|
-
var hash = window.location.hash;
|
|
9
|
-
if (hash[0] === "#") hash = hash.slice(1);//get rid of #
|
|
10
|
-
var hashDictionary = {};
|
|
11
|
-
hash.split("&").forEach(function (keyValue) {
|
|
12
|
-
if (keyValue !== "") {
|
|
13
|
-
var vals = keyValue.split("=");
|
|
14
|
-
hashDictionary[vals[0]] = decodeURIComponent(vals[1]);
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
if (Object.keys(hashDictionary).length < 1)
|
|
18
|
-
window.close();//we lose the hash!
|
|
19
|
-
else if (hashDictionary.error && hashDictionary.error_description)
|
|
20
|
-
document.getElementById("msg").innerHTML = hashDictionary.error_description.replace(/\\+/g," ").replace(/\\n/g,"<br /><br />");
|
|
21
|
-
else if (hashDictionary.state) {
|
|
22
|
-
var origin = hashDictionary.state.split("|")[1];
|
|
23
|
-
if (origin) {
|
|
24
|
-
window.location.href = origin.split("#")[0] + window.location.hash;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
} catch (e) { }
|
|
28
|
-
}
|
|
29
|
-
finish();
|
|
4
|
+
exports.MSALSampleLoginPopupScript = `<p id="msg">please wait...</p>
|
|
5
|
+
<script>
|
|
6
|
+
function finish() {
|
|
7
|
+
try {
|
|
8
|
+
var hash = window.location.hash;
|
|
9
|
+
if (hash[0] === "#") hash = hash.slice(1);//get rid of #
|
|
10
|
+
var hashDictionary = {};
|
|
11
|
+
hash.split("&").forEach(function (keyValue) {
|
|
12
|
+
if (keyValue !== "") {
|
|
13
|
+
var vals = keyValue.split("=");
|
|
14
|
+
hashDictionary[vals[0]] = decodeURIComponent(vals[1]);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
if (Object.keys(hashDictionary).length < 1)
|
|
18
|
+
window.close();//we lose the hash!
|
|
19
|
+
else if (hashDictionary.error && hashDictionary.error_description)
|
|
20
|
+
document.getElementById("msg").innerHTML = hashDictionary.error_description.replace(/\\+/g," ").replace(/\\n/g,"<br /><br />");
|
|
21
|
+
else if (hashDictionary.state) {
|
|
22
|
+
var origin = hashDictionary.state.split("|")[1];
|
|
23
|
+
if (origin) {
|
|
24
|
+
window.location.href = origin.split("#")[0] + window.location.hash;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
} catch (e) { }
|
|
28
|
+
}
|
|
29
|
+
finish();
|
|
30
30
|
</script>`;
|
|
31
31
|
//# sourceMappingURL=msal.types.js.map
|
|
@@ -409,17 +409,17 @@ async function SetGroupOwner(siteUrl, groupId, ownerId, ownerIsAGroup) {
|
|
|
409
409
|
try {
|
|
410
410
|
let soapUrl = `${(0, common_1.GetSiteUrl)(siteUrl)}_vti_bin/client.svc/ProcessQuery`;
|
|
411
411
|
let siteId = await (0, web_1.GetSiteId)(siteUrl);
|
|
412
|
-
let serviceJSONResponse = await (0, rest_1.GetJson)(soapUrl, `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="15.0.0.0" ApplicationName=".NET Library" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009">
|
|
413
|
-
<Actions>
|
|
414
|
-
<SetProperty Id="1" ObjectPathId="2" Name="Owner">
|
|
415
|
-
<Parameter ObjectPathId="3" />
|
|
416
|
-
</SetProperty>
|
|
417
|
-
<Method Name="Update" Id="4" ObjectPathId="2" />
|
|
418
|
-
</Actions>
|
|
419
|
-
<ObjectPaths>
|
|
420
|
-
<Identity Id="2" Name="740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:${siteId}:g:${groupId}" />
|
|
421
|
-
<Identity Id="3" Name="740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:${siteId}:g:${ownerId}" />
|
|
422
|
-
</ObjectPaths>
|
|
412
|
+
let serviceJSONResponse = await (0, rest_1.GetJson)(soapUrl, `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="15.0.0.0" ApplicationName=".NET Library" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009">
|
|
413
|
+
<Actions>
|
|
414
|
+
<SetProperty Id="1" ObjectPathId="2" Name="Owner">
|
|
415
|
+
<Parameter ObjectPathId="3" />
|
|
416
|
+
</SetProperty>
|
|
417
|
+
<Method Name="Update" Id="4" ObjectPathId="2" />
|
|
418
|
+
</Actions>
|
|
419
|
+
<ObjectPaths>
|
|
420
|
+
<Identity Id="2" Name="740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:${siteId}:g:${groupId}" />
|
|
421
|
+
<Identity Id="3" Name="740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:${siteId}:g:${ownerId}" />
|
|
422
|
+
</ObjectPaths>
|
|
423
423
|
</Request>`, {
|
|
424
424
|
headers: {
|
|
425
425
|
Accept: rest_types_1.jsonTypes.standard,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { sortArray } from "./collections.base";
|
|
2
|
+
import { isNullOrEmptyString } from "./typecheckers";
|
|
3
|
+
export const stockUrl = "https://apps.kwizcom.com/products/apsig/images/diagrams";
|
|
4
|
+
const diagrams = sortArray([
|
|
5
|
+
{ name: "Body, male, all", folderPrefix: "body-all", filePrefix: "body-all-" },
|
|
6
|
+
{ name: "Body, female, all", folderPrefix: "body-all", filePrefix: "body-all-fem-" },
|
|
7
|
+
{ name: "Body, male, front", folderPrefix: "body-frontal", filePrefix: "body-frontal-" },
|
|
8
|
+
{ name: "Body, female, front", folderPrefix: "body-frontal", filePrefix: "body-frontal-fem-" },
|
|
9
|
+
{ name: "Car", folderPrefix: "car", filePrefix: "car-" },
|
|
10
|
+
{ name: "Cat & Dog", folderPrefix: "cat-dog", filePrefix: "cat-dog-" },
|
|
11
|
+
{ name: "Cat", folderPrefix: "cat-dog", filePrefix: "cat-" },
|
|
12
|
+
{ name: "Dog", folderPrefix: "cat-dog", filePrefix: "dog-" },
|
|
13
|
+
{ name: "Face", folderPrefix: "face", filePrefix: "face-" },
|
|
14
|
+
{ name: "Pickup truck", folderPrefix: "pickup", filePrefix: "pickup-" },
|
|
15
|
+
{ name: "Shoulder & head", folderPrefix: "shoulder-head", filePrefix: "shoulder-head-" },
|
|
16
|
+
{ name: "Shoulder & head, female", folderPrefix: "shoulder-head", filePrefix: "shoulder-head-fem-" },
|
|
17
|
+
{ name: "Shoulder & head, all", folderPrefix: "shoulder-head-all", filePrefix: "shoulder-head-all-" },
|
|
18
|
+
{ name: "Shoulder & head, female, all", folderPrefix: "shoulder-head-all", filePrefix: "shoulder-head-all-fem-" },
|
|
19
|
+
{ name: "Signature line", folderPrefix: "signature", filePrefix: "signature-" }
|
|
20
|
+
], d => d.name);
|
|
21
|
+
const diagramTypes = [{ suffix: "diagram-transparent", label: "transparent" }, { suffix: "diagram-whitebg-transparent", label: "partially transparent" }, { suffix: "diagram-whitebg", label: "" }];
|
|
22
|
+
var diagramOptionsHiRes = [];
|
|
23
|
+
var diagramOptions = [];
|
|
24
|
+
function addDiagramOptions(info, options) {
|
|
25
|
+
diagramTypes.forEach(type => options.push({
|
|
26
|
+
name: `${info.name}${isNullOrEmptyString(type.label) ? '' : `, ${type.label}`}`,
|
|
27
|
+
url: `${info.folderPrefix}/${info.filePrefix}${type.suffix}.png`
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
diagrams.forEach(d => {
|
|
31
|
+
addDiagramOptions(d, diagramOptionsHiRes);
|
|
32
|
+
addDiagramOptions({ folderPrefix: `${d.folderPrefix}/small`, filePrefix: d.filePrefix, name: `${d.name}, small` }, diagramOptions);
|
|
33
|
+
});
|
|
34
|
+
export const DiagramOptions = { options: diagramOptions, hiRes: diagramOptionsHiRes };
|
|
35
|
+
//# sourceMappingURL=diagrams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagrams.js","sourceRoot":"","sources":["../../../src/helpers/diagrams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,QAAQ,GAAG,yDAAyD,CAAC;AAMlF,MAAM,QAAQ,GAAkB,SAAS,CAAC;IACtC,EAAE,IAAI,EAAE,iBAAiB,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE;IAC9E,EAAE,IAAI,EAAE,mBAAmB,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE;IACpF,EAAE,IAAI,EAAE,mBAAmB,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,eAAe,EAAE;IACxF,EAAE,IAAI,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,mBAAmB,EAAE;IAC9F,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE;IACxD,EAAE,IAAI,EAAE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O,CAAC;AACtB,cAAc,aAAa,CAAC"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export const MSALSampleLoginPopupScript = `<p id="msg">please wait...</p>
|
|
2
|
-
<script>
|
|
3
|
-
function finish() {
|
|
4
|
-
try {
|
|
5
|
-
var hash = window.location.hash;
|
|
6
|
-
if (hash[0] === "#") hash = hash.slice(1);//get rid of #
|
|
7
|
-
var hashDictionary = {};
|
|
8
|
-
hash.split("&").forEach(function (keyValue) {
|
|
9
|
-
if (keyValue !== "") {
|
|
10
|
-
var vals = keyValue.split("=");
|
|
11
|
-
hashDictionary[vals[0]] = decodeURIComponent(vals[1]);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
if (Object.keys(hashDictionary).length < 1)
|
|
15
|
-
window.close();//we lose the hash!
|
|
16
|
-
else if (hashDictionary.error && hashDictionary.error_description)
|
|
17
|
-
document.getElementById("msg").innerHTML = hashDictionary.error_description.replace(/\\+/g," ").replace(/\\n/g,"<br /><br />");
|
|
18
|
-
else if (hashDictionary.state) {
|
|
19
|
-
var origin = hashDictionary.state.split("|")[1];
|
|
20
|
-
if (origin) {
|
|
21
|
-
window.location.href = origin.split("#")[0] + window.location.hash;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
} catch (e) { }
|
|
25
|
-
}
|
|
26
|
-
finish();
|
|
1
|
+
export const MSALSampleLoginPopupScript = `<p id="msg">please wait...</p>
|
|
2
|
+
<script>
|
|
3
|
+
function finish() {
|
|
4
|
+
try {
|
|
5
|
+
var hash = window.location.hash;
|
|
6
|
+
if (hash[0] === "#") hash = hash.slice(1);//get rid of #
|
|
7
|
+
var hashDictionary = {};
|
|
8
|
+
hash.split("&").forEach(function (keyValue) {
|
|
9
|
+
if (keyValue !== "") {
|
|
10
|
+
var vals = keyValue.split("=");
|
|
11
|
+
hashDictionary[vals[0]] = decodeURIComponent(vals[1]);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
if (Object.keys(hashDictionary).length < 1)
|
|
15
|
+
window.close();//we lose the hash!
|
|
16
|
+
else if (hashDictionary.error && hashDictionary.error_description)
|
|
17
|
+
document.getElementById("msg").innerHTML = hashDictionary.error_description.replace(/\\+/g," ").replace(/\\n/g,"<br /><br />");
|
|
18
|
+
else if (hashDictionary.state) {
|
|
19
|
+
var origin = hashDictionary.state.split("|")[1];
|
|
20
|
+
if (origin) {
|
|
21
|
+
window.location.href = origin.split("#")[0] + window.location.hash;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
} catch (e) { }
|
|
25
|
+
}
|
|
26
|
+
finish();
|
|
27
27
|
</script>`;
|
|
28
28
|
//# sourceMappingURL=msal.types.js.map
|
|
@@ -384,17 +384,17 @@ export async function SetGroupOwner(siteUrl, groupId, ownerId, ownerIsAGroup) {
|
|
|
384
384
|
try {
|
|
385
385
|
let soapUrl = `${GetSiteUrl(siteUrl)}_vti_bin/client.svc/ProcessQuery`;
|
|
386
386
|
let siteId = await GetSiteId(siteUrl);
|
|
387
|
-
let serviceJSONResponse = await GetJson(soapUrl, `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="15.0.0.0" ApplicationName=".NET Library" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009">
|
|
388
|
-
<Actions>
|
|
389
|
-
<SetProperty Id="1" ObjectPathId="2" Name="Owner">
|
|
390
|
-
<Parameter ObjectPathId="3" />
|
|
391
|
-
</SetProperty>
|
|
392
|
-
<Method Name="Update" Id="4" ObjectPathId="2" />
|
|
393
|
-
</Actions>
|
|
394
|
-
<ObjectPaths>
|
|
395
|
-
<Identity Id="2" Name="740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:${siteId}:g:${groupId}" />
|
|
396
|
-
<Identity Id="3" Name="740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:${siteId}:g:${ownerId}" />
|
|
397
|
-
</ObjectPaths>
|
|
387
|
+
let serviceJSONResponse = await GetJson(soapUrl, `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="15.0.0.0" ApplicationName=".NET Library" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009">
|
|
388
|
+
<Actions>
|
|
389
|
+
<SetProperty Id="1" ObjectPathId="2" Name="Owner">
|
|
390
|
+
<Parameter ObjectPathId="3" />
|
|
391
|
+
</SetProperty>
|
|
392
|
+
<Method Name="Update" Id="4" ObjectPathId="2" />
|
|
393
|
+
</Actions>
|
|
394
|
+
<ObjectPaths>
|
|
395
|
+
<Identity Id="2" Name="740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:${siteId}:g:${groupId}" />
|
|
396
|
+
<Identity Id="3" Name="740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:${siteId}:g:${ownerId}" />
|
|
397
|
+
</ObjectPaths>
|
|
398
398
|
</Request>`, {
|
|
399
399
|
headers: {
|
|
400
400
|
Accept: jsonTypes.standard,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const stockUrl = "https://apps.kwizcom.com/products/apsig/images/diagrams";
|
|
2
|
+
type DiagramOption = {
|
|
3
|
+
url: string;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const DiagramOptions: {
|
|
7
|
+
options: DiagramOption[];
|
|
8
|
+
hiRes: DiagramOption[];
|
|
9
|
+
};
|
|
10
|
+
export {};
|