@pnp/spfx-controls-react 3.8.0-beta.2192160 → 3.8.0-beta.2192234
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/CHANGELOG.JSON +4 -2
- package/CHANGELOG.md +1 -0
- package/lib/common/telemetry/version.js +1 -1
- package/lib/controls/listItemPicker/ComboBoxListItemPicker.d.ts.map +1 -1
- package/lib/controls/listItemPicker/ComboBoxListItemPicker.js +7 -1
- package/lib/controls/listItemPicker/ComboBoxListItemPicker.js.map +1 -1
- package/lib/services/PeopleSearchService.js +1 -1
- package/lib/services/PeopleSearchService.js.map +1 -1
- package/package.json +1 -1
- package/release/webpack-stats/sp-dev-fx-controls-react.stats.json +306 -311
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"errors": [],
|
|
3
3
|
"warnings": [],
|
|
4
4
|
"version": "4.44.2",
|
|
5
|
-
"hash": "
|
|
6
|
-
"time":
|
|
7
|
-
"builtAt":
|
|
5
|
+
"hash": "879f7fa850e80eda2633",
|
|
6
|
+
"time": 19957,
|
|
7
|
+
"builtAt": 1650403320712,
|
|
8
8
|
"publicPath": "",
|
|
9
9
|
"outputPath": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/dist",
|
|
10
10
|
"assetsByChunkName": {
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"name": "controls-test-web-part.js",
|
|
295
|
-
"size":
|
|
295
|
+
"size": 17715267,
|
|
296
296
|
"chunks": [
|
|
297
297
|
"controls-test-web-part"
|
|
298
298
|
],
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
"name": "controls-test-web-part.js.map",
|
|
308
|
-
"size":
|
|
308
|
+
"size": 15964850,
|
|
309
309
|
"chunks": [
|
|
310
310
|
"controls-test-web-part"
|
|
311
311
|
],
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
"rendered": true,
|
|
405
405
|
"initial": true,
|
|
406
406
|
"entry": true,
|
|
407
|
-
"size":
|
|
407
|
+
"size": 12792996,
|
|
408
408
|
"names": [
|
|
409
409
|
"controls-test-web-part"
|
|
410
410
|
],
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"controls-test-web-part.js",
|
|
413
413
|
"controls-test-web-part.js.map"
|
|
414
414
|
],
|
|
415
|
-
"hash": "
|
|
415
|
+
"hash": "a9436419c9c8f581b39d",
|
|
416
416
|
"siblings": [],
|
|
417
417
|
"parents": [],
|
|
418
418
|
"children": [],
|
|
@@ -10971,9 +10971,9 @@
|
|
|
10971
10971
|
"chunks": [
|
|
10972
10972
|
"controls-test-web-part"
|
|
10973
10973
|
],
|
|
10974
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/
|
|
10975
|
-
"issuerId": "
|
|
10976
|
-
"issuerName": "./node_modules/@popperjs/core/lib/
|
|
10974
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
10975
|
+
"issuerId": "CSm3",
|
|
10976
|
+
"issuerName": "./node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
10977
10977
|
"issuerPath": [
|
|
10978
10978
|
{
|
|
10979
10979
|
"id": "G6oG",
|
|
@@ -11026,14 +11026,14 @@
|
|
|
11026
11026
|
"name": "./node_modules/@popperjs/core/lib/index.js"
|
|
11027
11027
|
},
|
|
11028
11028
|
{
|
|
11029
|
-
"id": "
|
|
11030
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/
|
|
11031
|
-
"name": "./node_modules/@popperjs/core/lib/
|
|
11029
|
+
"id": "HnbP",
|
|
11030
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/index.js",
|
|
11031
|
+
"name": "./node_modules/@popperjs/core/lib/modifiers/index.js"
|
|
11032
11032
|
},
|
|
11033
11033
|
{
|
|
11034
|
-
"id": "
|
|
11035
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/
|
|
11036
|
-
"name": "./node_modules/@popperjs/core/lib/
|
|
11034
|
+
"id": "CSm3",
|
|
11035
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
11036
|
+
"name": "./node_modules/@popperjs/core/lib/modifiers/arrow.js"
|
|
11037
11037
|
}
|
|
11038
11038
|
],
|
|
11039
11039
|
"failed": false,
|
|
@@ -44384,7 +44384,7 @@
|
|
|
44384
44384
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
44385
44385
|
"type": "harmony import specifier",
|
|
44386
44386
|
"userRequest": "office-ui-fabric-react/lib/Label",
|
|
44387
|
-
"loc": "
|
|
44387
|
+
"loc": "217:37-42"
|
|
44388
44388
|
},
|
|
44389
44389
|
{
|
|
44390
44390
|
"moduleId": "SXK8",
|
|
@@ -45820,14 +45820,14 @@
|
|
|
45820
45820
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
45821
45821
|
},
|
|
45822
45822
|
{
|
|
45823
|
-
"id": "
|
|
45824
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
45825
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
45823
|
+
"id": "0Yof",
|
|
45824
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
45825
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
45826
45826
|
},
|
|
45827
45827
|
{
|
|
45828
|
-
"id": "
|
|
45829
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
45830
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
45828
|
+
"id": "c/6b",
|
|
45829
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
45830
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
45831
45831
|
},
|
|
45832
45832
|
{
|
|
45833
45833
|
"id": "4eMn",
|
|
@@ -47339,9 +47339,9 @@
|
|
|
47339
47339
|
"chunks": [
|
|
47340
47340
|
"controls-test-web-part"
|
|
47341
47341
|
],
|
|
47342
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
47343
|
-
"issuerId": "
|
|
47344
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
47342
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
47343
|
+
"issuerId": "c/6b",
|
|
47344
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
47345
47345
|
"issuerPath": [
|
|
47346
47346
|
{
|
|
47347
47347
|
"id": "G6oG",
|
|
@@ -47369,14 +47369,14 @@
|
|
|
47369
47369
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
47370
47370
|
},
|
|
47371
47371
|
{
|
|
47372
|
-
"id": "
|
|
47373
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
47374
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
47372
|
+
"id": "0Yof",
|
|
47373
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
47374
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
47375
47375
|
},
|
|
47376
47376
|
{
|
|
47377
|
-
"id": "
|
|
47378
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
47379
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
47377
|
+
"id": "c/6b",
|
|
47378
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
47379
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
47380
47380
|
}
|
|
47381
47381
|
],
|
|
47382
47382
|
"failed": false,
|
|
@@ -51425,9 +51425,9 @@
|
|
|
51425
51425
|
"chunks": [
|
|
51426
51426
|
"controls-test-web-part"
|
|
51427
51427
|
],
|
|
51428
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/
|
|
51429
|
-
"issuerId": "
|
|
51430
|
-
"issuerName": "./node_modules/@popperjs/core/lib/modifiers/
|
|
51428
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
51429
|
+
"issuerId": "CSm3",
|
|
51430
|
+
"issuerName": "./node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
51431
51431
|
"issuerPath": [
|
|
51432
51432
|
{
|
|
51433
51433
|
"id": "G6oG",
|
|
@@ -51485,9 +51485,9 @@
|
|
|
51485
51485
|
"name": "./node_modules/@popperjs/core/lib/modifiers/index.js"
|
|
51486
51486
|
},
|
|
51487
51487
|
{
|
|
51488
|
-
"id": "
|
|
51489
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/
|
|
51490
|
-
"name": "./node_modules/@popperjs/core/lib/modifiers/
|
|
51488
|
+
"id": "CSm3",
|
|
51489
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
51490
|
+
"name": "./node_modules/@popperjs/core/lib/modifiers/arrow.js"
|
|
51491
51491
|
}
|
|
51492
51492
|
],
|
|
51493
51493
|
"failed": false,
|
|
@@ -97148,7 +97148,7 @@
|
|
|
97148
97148
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
97149
97149
|
"type": "harmony import specifier",
|
|
97150
97150
|
"userRequest": "office-ui-fabric-react/lib/Spinner",
|
|
97151
|
-
"loc": "
|
|
97151
|
+
"loc": "215:93-100"
|
|
97152
97152
|
},
|
|
97153
97153
|
{
|
|
97154
97154
|
"moduleId": "QnEJ",
|
|
@@ -97157,7 +97157,7 @@
|
|
|
97157
97157
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
97158
97158
|
"type": "harmony import specifier",
|
|
97159
97159
|
"userRequest": "office-ui-fabric-react/lib/Spinner",
|
|
97160
|
-
"loc": "
|
|
97160
|
+
"loc": "215:137-148"
|
|
97161
97161
|
},
|
|
97162
97162
|
{
|
|
97163
97163
|
"moduleId": "XXgc",
|
|
@@ -124619,9 +124619,9 @@
|
|
|
124619
124619
|
"controls-test-web-part",
|
|
124620
124620
|
"ootb-fields-field-customizer"
|
|
124621
124621
|
],
|
|
124622
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
124623
|
-
"issuerId": "
|
|
124624
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
124622
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
124623
|
+
"issuerId": "OQ9B",
|
|
124624
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
124625
124625
|
"issuerPath": [
|
|
124626
124626
|
{
|
|
124627
124627
|
"id": "8shM",
|
|
@@ -124659,9 +124659,9 @@
|
|
|
124659
124659
|
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/index.js"
|
|
124660
124660
|
},
|
|
124661
124661
|
{
|
|
124662
|
-
"id": "
|
|
124663
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
124664
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
124662
|
+
"id": "OQ9B",
|
|
124663
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
124664
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js"
|
|
124665
124665
|
}
|
|
124666
124666
|
],
|
|
124667
124667
|
"failed": false,
|
|
@@ -196450,7 +196450,7 @@
|
|
|
196450
196450
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
196451
196451
|
"type": "harmony import specifier",
|
|
196452
196452
|
"userRequest": "lodash",
|
|
196453
|
-
"loc": "
|
|
196453
|
+
"loc": "165:29-36"
|
|
196454
196454
|
},
|
|
196455
196455
|
{
|
|
196456
196456
|
"moduleId": "dYKm",
|
|
@@ -216034,14 +216034,14 @@
|
|
|
216034
216034
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
216035
216035
|
},
|
|
216036
216036
|
{
|
|
216037
|
-
"id": "
|
|
216038
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
216039
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
216037
|
+
"id": "0Yof",
|
|
216038
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
216039
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
216040
216040
|
},
|
|
216041
216041
|
{
|
|
216042
|
-
"id": "
|
|
216043
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
216044
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
216042
|
+
"id": "c/6b",
|
|
216043
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
216044
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
216045
216045
|
},
|
|
216046
216046
|
{
|
|
216047
216047
|
"id": "4eMn",
|
|
@@ -232441,7 +232441,7 @@
|
|
|
232441
232441
|
"name": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
232442
232442
|
"index": 2233,
|
|
232443
232443
|
"index2": 2248,
|
|
232444
|
-
"size":
|
|
232444
|
+
"size": 12442,
|
|
232445
232445
|
"cacheable": true,
|
|
232446
232446
|
"built": true,
|
|
232447
232447
|
"optional": false,
|
|
@@ -232511,7 +232511,7 @@
|
|
|
232511
232511
|
],
|
|
232512
232512
|
"optimizationBailout": [],
|
|
232513
232513
|
"depth": 2,
|
|
232514
|
-
"source": "var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport * as strings from 'ControlStrings';\nimport * as React from \"react\";\nimport { Label } from \"office-ui-fabric-react/lib/Label\";\nimport * as telemetry from '../../common/telemetry';\nimport { ComboBox } from \"office-ui-fabric-react/lib/ComboBox\";\nimport { ListItemRepository } from '../../common/dal/ListItemRepository';\nimport styles from './ComboBoxListItemPicker.module.scss';\nimport { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner';\nimport { cloneDeep, isEqual } from 'lodash';\nvar ComboBoxListItemPicker = /** @class */ (function (_super) {\n __extends(ComboBoxListItemPicker, _super);\n function ComboBoxListItemPicker(props) {\n var _this = _super.call(this, props) || this;\n _this._options = null;\n /**\n * On Selected Item\n */\n _this.onChanged = function (option, index, value, submitPendingValueEvent) {\n var _a, _b;\n var selectedItems = cloneDeep(_this.state.selectedItems);\n if (_this.props.multiSelect) {\n if (option && option.selected) {\n selectedItems.push((_a = {},\n _a[_this.props.keyColumnInternalName || \"Id\"] = option.key,\n _a[_this.props.columnInternalName] = option.text,\n _a.selected = option.selected,\n _a));\n }\n else {\n selectedItems = selectedItems.filter(function (o) { return o[_this.props.keyColumnInternalName || \"Id\"] !== option.key; });\n }\n }\n else {\n selectedItems.push((_b = {},\n _b[_this.props.keyColumnInternalName || \"Id\"] = option.key,\n _b[_this.props.columnInternalName] = option.text,\n _b));\n selectedItems = selectedItems.filter(function (o) { return o[_this.props.keyColumnInternalName || \"Id\"] === option.key; });\n }\n _this.setState({\n selectedItems: selectedItems,\n });\n _this.props.onSelectedItem(selectedItems);\n };\n telemetry.track('ComboBoxListItemPicker', {});\n // States\n _this.state = {\n noresultsFoundText: !_this.props.noResultsFoundText ? strings.genericNoResultsFoundText : _this.props.noResultsFoundText,\n showError: false,\n errorMessage: \"\",\n suggestionsHeaderText: !_this.props.suggestionsHeaderText ? strings.ListItemPickerSelectValue : _this.props.suggestionsHeaderText,\n selectedItems: _this.props.defaultSelectedItems || [],\n };\n // Get SPService Factory\n _this._listItemRepo = new ListItemRepository(_this.props.webUrl, _this.props.spHttpClient);\n return _this;\n }\n ComboBoxListItemPicker.prototype.componentDidMount = function () {\n this.loadOptions(this.props);\n };\n ComboBoxListItemPicker.prototype.loadOptions = function (props, isInitialLoad) {\n return __awaiter(this, void 0, void 0, function () {\n var filter, keyColumnInternalName, listId, columnInternalName, webUrl, itemLimit, onInitialized, orderBy, query, keyColumnName, listItems, selectedItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n filter = props.filter, keyColumnInternalName = props.keyColumnInternalName, listId = props.listId, columnInternalName = props.columnInternalName, webUrl = props.webUrl, itemLimit = props.itemLimit, onInitialized = props.onInitialized, orderBy = props.orderBy;\n query = filter || \"\";\n keyColumnName = keyColumnInternalName || \"Id\";\n if (!(!this._options || listId !== this.props.listId)) return [3 /*break*/, 2];\n return [4 /*yield*/, this._listItemRepo.getListItemsByFilterClause(query, listId, columnInternalName, keyColumnInternalName, webUrl, itemLimit || 100, orderBy)];\n case 1:\n listItems = _a.sent();\n this._options = listItems.map(function (option) {\n return {\n key: option[keyColumnName],\n text: option[columnInternalName || \"Id\"]\n };\n });\n _a.label = 2;\n case 2:\n selectedItems = this._getSelectedItems(props);\n this.setState({\n availableOptions: this._options,\n selectedItems: selectedItems,\n });\n if (onInitialized && isInitialLoad !== false) {\n onInitialized();\n }\n return [2 /*return*/];\n }\n });\n });\n };\n ComboBoxListItemPicker.prototype.componentWillReceiveProps = function (nextProps) {\n return __awaiter(this, void 0, void 0, function () {\n var selectedItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(nextProps.listId !== this.props.listId)) return [3 /*break*/, 2];\n this.setState({\n selectedItems: [],\n });\n return [4 /*yield*/, this.loadOptions(nextProps, false)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2:\n if (!isEqual(nextProps.defaultSelectedItems, this.props.defaultSelectedItems)) {\n selectedItems = this._getSelectedItems(nextProps);\n this.setState({\n selectedItems: selectedItems,\n });\n }\n return [2 /*return*/];\n }\n });\n });\n };\n ComboBoxListItemPicker.prototype._getSelectedItems = function (props) {\n var _this = this;\n var selectedItems = [];\n var keyColumnName = props.keyColumnInternalName || \"Id\";\n if (props.defaultSelectedItems) {\n //if passed only ids\n if (!isNaN(props.defaultSelectedItems[0])) {\n selectedItems = this._options.filter(function (opt) { return props.defaultSelectedItems.indexOf(opt.key) >= 0; });\n }\n else {\n selectedItems = this._options.filter(function (opt) { return props.defaultSelectedItems.map(function (selected) { return selected[keyColumnName]; }).indexOf(opt.key) >= 0; });\n }\n }\n if ((selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0) {\n selectedItems = selectedItems.map(function (item) {\n var _a;\n return _a = {},\n _a[_this.props.keyColumnInternalName || \"Id\"] = item.key,\n _a[_this.props.columnInternalName] = item.text,\n _a;\n });\n }\n return selectedItems;\n };\n /*public componentDidUpdate(prevProps: IComboBoxListItemPickerProps, prevState: IComboBoxListItemPickerState): void {\n if (this.props.listId !== prevProps.listId) {\n \n }\n }*/\n /**\n * Render the field\n */\n ComboBoxListItemPicker.prototype.render = function () {\n var _this = this;\n var _a;\n var _b = this.props, className = _b.className, disabled = _b.disabled;\n var selectedKeys = ((_a = this.state.selectedItems) === null || _a === void 0 ? void 0 : _a.map(function (item) { return item[_this.props.keyColumnInternalName || \"Id\"]; })) || [];\n return (React.createElement(\"div\", { className: styles.comboBoxListItemPickerWrapper },\n React.createElement(ComboBox, { label: this.props.label, options: this.state.availableOptions, autoComplete: this.props.autoComplete, comboBoxOptionStyles: this.props.comboBoxOptionStyles, allowFreeform: this.props.allowFreeform, keytipProps: this.props.keytipProps, onMenuDismissed: this.props.onMenuDismiss, onMenuOpen: this.props.onMenuOpen, text: this.props.text, onChange: function (e, value) { return _this.onChanged(value); }, multiSelect: this.props.multiSelect, selectedKey: selectedKeys, className: className, disabled: disabled }),\n !this.state.errorMessage && !this.state.availableOptions && (React.createElement(Spinner, { className: styles.loading, size: SpinnerSize.small })),\n !!this.state.errorMessage &&\n (React.createElement(Label, { style: { color: '#FF0000' } },\n \" \",\n this.state.errorMessage,\n \" \"))));\n };\n return ComboBoxListItemPicker;\n}(React.Component));\nexport { ComboBoxListItemPicker };\n"
|
|
232514
|
+
"source": "var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport * as strings from 'ControlStrings';\nimport * as React from \"react\";\nimport { Label } from \"office-ui-fabric-react/lib/Label\";\nimport * as telemetry from '../../common/telemetry';\nimport { ComboBox } from \"office-ui-fabric-react/lib/ComboBox\";\nimport { ListItemRepository } from '../../common/dal/ListItemRepository';\nimport styles from './ComboBoxListItemPicker.module.scss';\nimport { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner';\nimport { cloneDeep, isEqual } from 'lodash';\nvar ComboBoxListItemPicker = /** @class */ (function (_super) {\n __extends(ComboBoxListItemPicker, _super);\n function ComboBoxListItemPicker(props) {\n var _this = _super.call(this, props) || this;\n _this._options = null;\n /**\n * On Selected Item\n */\n _this.onChanged = function (option, index, value, submitPendingValueEvent) {\n var _a, _b;\n var selectedItems = cloneDeep(_this.state.selectedItems);\n if (_this.props.multiSelect) {\n if (option && option.selected) {\n selectedItems.push((_a = {},\n _a[_this.props.keyColumnInternalName || \"Id\"] = option.key,\n _a[_this.props.columnInternalName] = option.text,\n _a.selected = option.selected,\n _a));\n }\n else {\n selectedItems = selectedItems.filter(function (o) { return o[_this.props.keyColumnInternalName || \"Id\"] !== option.key; });\n }\n }\n else {\n selectedItems.push((_b = {},\n _b[_this.props.keyColumnInternalName || \"Id\"] = option.key,\n _b[_this.props.columnInternalName] = option.text,\n _b));\n selectedItems = selectedItems.filter(function (o) { return o[_this.props.keyColumnInternalName || \"Id\"] === option.key; });\n }\n _this.setState({\n selectedItems: selectedItems,\n });\n _this.props.onSelectedItem(selectedItems);\n };\n telemetry.track('ComboBoxListItemPicker', {});\n // States\n _this.state = {\n noresultsFoundText: !_this.props.noResultsFoundText ? strings.genericNoResultsFoundText : _this.props.noResultsFoundText,\n showError: false,\n errorMessage: \"\",\n suggestionsHeaderText: !_this.props.suggestionsHeaderText ? strings.ListItemPickerSelectValue : _this.props.suggestionsHeaderText,\n selectedItems: _this.props.defaultSelectedItems || [],\n };\n // Get SPService Factory\n _this._listItemRepo = new ListItemRepository(_this.props.webUrl, _this.props.spHttpClient);\n return _this;\n }\n ComboBoxListItemPicker.prototype.componentDidMount = function () {\n this.loadOptions(this.props);\n };\n ComboBoxListItemPicker.prototype.loadOptions = function (props, isInitialLoad) {\n return __awaiter(this, void 0, void 0, function () {\n var filter, keyColumnInternalName, listId, columnInternalName, webUrl, itemLimit, onInitialized, orderBy, query, keyColumnName, listItems, selectedItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n filter = props.filter, keyColumnInternalName = props.keyColumnInternalName, listId = props.listId, columnInternalName = props.columnInternalName, webUrl = props.webUrl, itemLimit = props.itemLimit, onInitialized = props.onInitialized, orderBy = props.orderBy;\n query = filter || \"\";\n keyColumnName = keyColumnInternalName || \"Id\";\n if (!(!this._options || listId !== this.props.listId || filter !== this.props.filter)) return [3 /*break*/, 2];\n return [4 /*yield*/, this._listItemRepo.getListItemsByFilterClause(query, listId, columnInternalName, keyColumnInternalName, webUrl, itemLimit || 100, orderBy)];\n case 1:\n listItems = _a.sent();\n this._options = listItems.map(function (option) {\n return {\n key: option[keyColumnName],\n text: option[columnInternalName || \"Id\"]\n };\n });\n _a.label = 2;\n case 2:\n selectedItems = this._getSelectedItems(props);\n this.setState({\n availableOptions: this._options,\n selectedItems: selectedItems,\n });\n if (onInitialized && isInitialLoad !== false) {\n onInitialized();\n }\n return [2 /*return*/];\n }\n });\n });\n };\n ComboBoxListItemPicker.prototype.componentWillReceiveProps = function (nextProps) {\n return __awaiter(this, void 0, void 0, function () {\n var selectedItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(nextProps.listId !== this.props.listId)) return [3 /*break*/, 2];\n this.setState({\n selectedItems: [],\n });\n return [4 /*yield*/, this.loadOptions(nextProps, false)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2:\n if (!(nextProps.filter !== this.props.filter)) return [3 /*break*/, 4];\n return [4 /*yield*/, this.loadOptions(nextProps, false)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4:\n if (!isEqual(nextProps.defaultSelectedItems, this.props.defaultSelectedItems)) {\n selectedItems = this._getSelectedItems(nextProps);\n this.setState({\n selectedItems: selectedItems,\n });\n }\n return [2 /*return*/];\n }\n });\n });\n };\n ComboBoxListItemPicker.prototype._getSelectedItems = function (props) {\n var _this = this;\n var selectedItems = [];\n var keyColumnName = props.keyColumnInternalName || \"Id\";\n if (props.defaultSelectedItems) {\n //if passed only ids\n if (!isNaN(props.defaultSelectedItems[0])) {\n selectedItems = this._options.filter(function (opt) { return props.defaultSelectedItems.indexOf(opt.key) >= 0; });\n }\n else {\n selectedItems = this._options.filter(function (opt) { return props.defaultSelectedItems.map(function (selected) { return selected[keyColumnName]; }).indexOf(opt.key) >= 0; });\n }\n }\n if ((selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0) {\n selectedItems = selectedItems.map(function (item) {\n var _a;\n return _a = {},\n _a[_this.props.keyColumnInternalName || \"Id\"] = item.key,\n _a[_this.props.columnInternalName] = item.text,\n _a;\n });\n }\n return selectedItems;\n };\n /*public componentDidUpdate(prevProps: IComboBoxListItemPickerProps, prevState: IComboBoxListItemPickerState): void {\n if (this.props.listId !== prevProps.listId) {\n \n }\n }*/\n /**\n * Render the field\n */\n ComboBoxListItemPicker.prototype.render = function () {\n var _this = this;\n var _a;\n var _b = this.props, className = _b.className, disabled = _b.disabled;\n var selectedKeys = ((_a = this.state.selectedItems) === null || _a === void 0 ? void 0 : _a.map(function (item) { return item[_this.props.keyColumnInternalName || \"Id\"]; })) || [];\n return (React.createElement(\"div\", { className: styles.comboBoxListItemPickerWrapper },\n React.createElement(ComboBox, { label: this.props.label, options: this.state.availableOptions, autoComplete: this.props.autoComplete, comboBoxOptionStyles: this.props.comboBoxOptionStyles, allowFreeform: this.props.allowFreeform, keytipProps: this.props.keytipProps, onMenuDismissed: this.props.onMenuDismiss, onMenuOpen: this.props.onMenuOpen, text: this.props.text, onChange: function (e, value) { return _this.onChanged(value); }, multiSelect: this.props.multiSelect, selectedKey: selectedKeys, className: className, disabled: disabled }),\n !this.state.errorMessage && !this.state.availableOptions && (React.createElement(Spinner, { className: styles.loading, size: SpinnerSize.small })),\n !!this.state.errorMessage &&\n (React.createElement(Label, { style: { color: '#FF0000' } },\n \" \",\n this.state.errorMessage,\n \" \"))));\n };\n return ComboBoxListItemPicker;\n}(React.Component));\nexport { ComboBoxListItemPicker };\n"
|
|
232515
232515
|
},
|
|
232516
232516
|
{
|
|
232517
232517
|
"id": "Qo0+",
|
|
@@ -234404,9 +234404,9 @@
|
|
|
234404
234404
|
"controls-test-web-part",
|
|
234405
234405
|
"ootb-fields-field-customizer"
|
|
234406
234406
|
],
|
|
234407
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/
|
|
234408
|
-
"issuerId": "
|
|
234409
|
-
"issuerName": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/
|
|
234407
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js",
|
|
234408
|
+
"issuerId": "S9hS",
|
|
234409
|
+
"issuerName": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js",
|
|
234410
234410
|
"issuerPath": [
|
|
234411
234411
|
{
|
|
234412
234412
|
"id": "G6oG",
|
|
@@ -234452,11 +234452,6 @@
|
|
|
234452
234452
|
"id": "S9hS",
|
|
234453
234453
|
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js",
|
|
234454
234454
|
"name": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js"
|
|
234455
|
-
},
|
|
234456
|
-
{
|
|
234457
|
-
"id": "za8M",
|
|
234458
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/elementContains.js",
|
|
234459
|
-
"name": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/elementContains.js"
|
|
234460
234455
|
}
|
|
234461
234456
|
],
|
|
234462
234457
|
"failed": false,
|
|
@@ -276795,9 +276790,9 @@
|
|
|
276795
276790
|
"chunks": [
|
|
276796
276791
|
"controls-test-web-part"
|
|
276797
276792
|
],
|
|
276798
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/prop-types/
|
|
276799
|
-
"issuerId": "
|
|
276800
|
-
"issuerName": "./node_modules/prop-types/
|
|
276793
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/prop-types/checkPropTypes.js",
|
|
276794
|
+
"issuerId": "oVyQ",
|
|
276795
|
+
"issuerName": "./node_modules/prop-types/checkPropTypes.js",
|
|
276801
276796
|
"issuerPath": [
|
|
276802
276797
|
{
|
|
276803
276798
|
"id": "G6oG",
|
|
@@ -276835,14 +276830,19 @@
|
|
|
276835
276830
|
"name": "./node_modules/react-quill/lib/toolbar.js"
|
|
276836
276831
|
},
|
|
276837
276832
|
{
|
|
276838
|
-
"id": "
|
|
276839
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/
|
|
276840
|
-
"name": "./node_modules/
|
|
276833
|
+
"id": "KAy6",
|
|
276834
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/react-dom/server.browser.js",
|
|
276835
|
+
"name": "./node_modules/react-dom/server.browser.js"
|
|
276841
276836
|
},
|
|
276842
276837
|
{
|
|
276843
|
-
"id": "
|
|
276844
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/
|
|
276845
|
-
"name": "./node_modules/
|
|
276838
|
+
"id": "4xsd",
|
|
276839
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/react-dom/cjs/react-dom-server.browser.development.js",
|
|
276840
|
+
"name": "./node_modules/react-dom/cjs/react-dom-server.browser.development.js"
|
|
276841
|
+
},
|
|
276842
|
+
{
|
|
276843
|
+
"id": "oVyQ",
|
|
276844
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/prop-types/checkPropTypes.js",
|
|
276845
|
+
"name": "./node_modules/prop-types/checkPropTypes.js"
|
|
276846
276846
|
}
|
|
276847
276847
|
],
|
|
276848
276848
|
"failed": false,
|
|
@@ -279352,9 +279352,9 @@
|
|
|
279352
279352
|
"chunks": [
|
|
279353
279353
|
"controls-test-web-part"
|
|
279354
279354
|
],
|
|
279355
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
279356
|
-
"issuerId": "
|
|
279357
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
279355
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Checkbox/Checkbox.js",
|
|
279356
|
+
"issuerId": "mFTT",
|
|
279357
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Checkbox/Checkbox.js",
|
|
279358
279358
|
"issuerPath": [
|
|
279359
279359
|
{
|
|
279360
279360
|
"id": "G6oG",
|
|
@@ -279382,14 +279382,14 @@
|
|
|
279382
279382
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
279383
279383
|
},
|
|
279384
279384
|
{
|
|
279385
|
-
"id": "
|
|
279386
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
279387
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
279385
|
+
"id": "hBUa",
|
|
279386
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Checkbox/checkboxStyles.js",
|
|
279387
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Checkbox/checkboxStyles.js"
|
|
279388
279388
|
},
|
|
279389
279389
|
{
|
|
279390
|
-
"id": "
|
|
279391
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
279392
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
279390
|
+
"id": "mFTT",
|
|
279391
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Checkbox/Checkbox.js",
|
|
279392
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Checkbox/Checkbox.js"
|
|
279393
279393
|
}
|
|
279394
279394
|
],
|
|
279395
279395
|
"failed": false,
|
|
@@ -298439,9 +298439,9 @@
|
|
|
298439
298439
|
"controls-test-web-part",
|
|
298440
298440
|
"ootb-fields-field-customizer"
|
|
298441
298441
|
],
|
|
298442
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
298443
|
-
"issuerId": "
|
|
298444
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
298442
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js",
|
|
298443
|
+
"issuerId": "16Wd",
|
|
298444
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js",
|
|
298445
298445
|
"issuerPath": [
|
|
298446
298446
|
{
|
|
298447
298447
|
"id": "G6oG",
|
|
@@ -298459,14 +298459,14 @@
|
|
|
298459
298459
|
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/index.js"
|
|
298460
298460
|
},
|
|
298461
298461
|
{
|
|
298462
|
-
"id": "
|
|
298463
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
298464
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
298462
|
+
"id": "Cv5W",
|
|
298463
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.js",
|
|
298464
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.js"
|
|
298465
298465
|
},
|
|
298466
298466
|
{
|
|
298467
|
-
"id": "
|
|
298468
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
298469
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
298467
|
+
"id": "16Wd",
|
|
298468
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js",
|
|
298469
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js"
|
|
298470
298470
|
}
|
|
298471
298471
|
],
|
|
298472
298472
|
"failed": false,
|
|
@@ -340205,7 +340205,7 @@
|
|
|
340205
340205
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
340206
340206
|
"type": "harmony import specifier",
|
|
340207
340207
|
"userRequest": "react",
|
|
340208
|
-
"loc": "
|
|
340208
|
+
"loc": "213:16-35"
|
|
340209
340209
|
},
|
|
340210
340210
|
{
|
|
340211
340211
|
"moduleId": "QnEJ",
|
|
@@ -340214,7 +340214,7 @@
|
|
|
340214
340214
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
340215
340215
|
"type": "harmony import specifier",
|
|
340216
340216
|
"userRequest": "react",
|
|
340217
|
-
"loc": "
|
|
340217
|
+
"loc": "214:12-31"
|
|
340218
340218
|
},
|
|
340219
340219
|
{
|
|
340220
340220
|
"moduleId": "QnEJ",
|
|
@@ -340223,7 +340223,7 @@
|
|
|
340223
340223
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
340224
340224
|
"type": "harmony import specifier",
|
|
340225
340225
|
"userRequest": "react",
|
|
340226
|
-
"loc": "
|
|
340226
|
+
"loc": "215:73-92"
|
|
340227
340227
|
},
|
|
340228
340228
|
{
|
|
340229
340229
|
"moduleId": "QnEJ",
|
|
@@ -340232,7 +340232,7 @@
|
|
|
340232
340232
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
340233
340233
|
"type": "harmony import specifier",
|
|
340234
340234
|
"userRequest": "react",
|
|
340235
|
-
"loc": "
|
|
340235
|
+
"loc": "217:17-36"
|
|
340236
340236
|
},
|
|
340237
340237
|
{
|
|
340238
340238
|
"moduleId": "QnEJ",
|
|
@@ -340241,7 +340241,7 @@
|
|
|
340241
340241
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
340242
340242
|
"type": "harmony import specifier",
|
|
340243
340243
|
"userRequest": "react",
|
|
340244
|
-
"loc": "
|
|
340244
|
+
"loc": "223:2-17"
|
|
340245
340245
|
},
|
|
340246
340246
|
{
|
|
340247
340247
|
"moduleId": "QoT3",
|
|
@@ -371534,7 +371534,7 @@
|
|
|
371534
371534
|
],
|
|
371535
371535
|
"optimizationBailout": [],
|
|
371536
371536
|
"depth": 4,
|
|
371537
|
-
"source": "export var version = \"3.8.0-beta.
|
|
371537
|
+
"source": "export var version = \"3.8.0-beta.2192234\";\n"
|
|
371538
371538
|
},
|
|
371539
371539
|
{
|
|
371540
371540
|
"id": "cLrF",
|
|
@@ -373164,9 +373164,9 @@
|
|
|
373164
373164
|
"chunks": [
|
|
373165
373165
|
"controls-test-web-part"
|
|
373166
373166
|
],
|
|
373167
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
373168
|
-
"issuerId": "
|
|
373169
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
373167
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Embed/Embed.js",
|
|
373168
|
+
"issuerId": "7WKc",
|
|
373169
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Embed/Embed.js",
|
|
373170
373170
|
"issuerPath": [
|
|
373171
373171
|
{
|
|
373172
373172
|
"id": "G6oG",
|
|
@@ -373194,14 +373194,14 @@
|
|
|
373194
373194
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
373195
373195
|
},
|
|
373196
373196
|
{
|
|
373197
|
-
"id": "
|
|
373198
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
373199
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
373197
|
+
"id": "HHH0",
|
|
373198
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Embed/embedStyles.js",
|
|
373199
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Embed/embedStyles.js"
|
|
373200
373200
|
},
|
|
373201
373201
|
{
|
|
373202
|
-
"id": "
|
|
373203
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
373204
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
373202
|
+
"id": "7WKc",
|
|
373203
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Embed/Embed.js",
|
|
373204
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Embed/Embed.js"
|
|
373205
373205
|
}
|
|
373206
373206
|
],
|
|
373207
373207
|
"failed": false,
|
|
@@ -432790,9 +432790,9 @@
|
|
|
432790
432790
|
"chunks": [
|
|
432791
432791
|
"controls-test-web-part"
|
|
432792
432792
|
],
|
|
432793
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
432794
|
-
"issuerId": "
|
|
432795
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
432793
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Carousel/CarouselNavigationItem.js",
|
|
432794
|
+
"issuerId": "u8WG",
|
|
432795
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Carousel/CarouselNavigationItem.js",
|
|
432796
432796
|
"issuerPath": [
|
|
432797
432797
|
{
|
|
432798
432798
|
"id": "G6oG",
|
|
@@ -432820,14 +432820,14 @@
|
|
|
432820
432820
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
432821
432821
|
},
|
|
432822
432822
|
{
|
|
432823
|
-
"id": "
|
|
432824
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
432825
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
432823
|
+
"id": "Wd04",
|
|
432824
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Carousel/carouselNavigationItemStyles.js",
|
|
432825
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Carousel/carouselNavigationItemStyles.js"
|
|
432826
432826
|
},
|
|
432827
432827
|
{
|
|
432828
|
-
"id": "
|
|
432829
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
432830
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
432828
|
+
"id": "u8WG",
|
|
432829
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Carousel/CarouselNavigationItem.js",
|
|
432830
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Carousel/CarouselNavigationItem.js"
|
|
432831
432831
|
}
|
|
432832
432832
|
],
|
|
432833
432833
|
"failed": false,
|
|
@@ -446867,14 +446867,14 @@
|
|
|
446867
446867
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
446868
446868
|
},
|
|
446869
446869
|
{
|
|
446870
|
-
"id": "
|
|
446871
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
446872
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
446870
|
+
"id": "0Yof",
|
|
446871
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
446872
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
446873
446873
|
},
|
|
446874
446874
|
{
|
|
446875
|
-
"id": "
|
|
446876
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
446877
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
446875
|
+
"id": "c/6b",
|
|
446876
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
446877
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
446878
446878
|
},
|
|
446879
446879
|
{
|
|
446880
446880
|
"id": "4eMn",
|
|
@@ -449917,7 +449917,7 @@
|
|
|
449917
449917
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
449918
449918
|
"type": "harmony import specifier",
|
|
449919
449919
|
"userRequest": "office-ui-fabric-react/lib/ComboBox",
|
|
449920
|
-
"loc": "
|
|
449920
|
+
"loc": "214:32-40"
|
|
449921
449921
|
},
|
|
449922
449922
|
{
|
|
449923
449923
|
"moduleId": "YEex",
|
|
@@ -464861,9 +464861,9 @@
|
|
|
464861
464861
|
"chunks": [
|
|
464862
464862
|
"controls-test-web-part"
|
|
464863
464863
|
],
|
|
464864
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
464865
|
-
"issuerId": "
|
|
464866
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
464864
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
464865
|
+
"issuerId": "DQiM",
|
|
464866
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
464867
464867
|
"issuerPath": [
|
|
464868
464868
|
{
|
|
464869
464869
|
"id": "G6oG",
|
|
@@ -464881,9 +464881,9 @@
|
|
|
464881
464881
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/index.js"
|
|
464882
464882
|
},
|
|
464883
464883
|
{
|
|
464884
|
-
"id": "
|
|
464885
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
464886
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
464884
|
+
"id": "DQiM",
|
|
464885
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
464886
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js"
|
|
464887
464887
|
}
|
|
464888
464888
|
],
|
|
464889
464889
|
"failed": false,
|
|
@@ -465339,14 +465339,14 @@
|
|
|
465339
465339
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
465340
465340
|
},
|
|
465341
465341
|
{
|
|
465342
|
-
"id": "
|
|
465343
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
465344
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
465342
|
+
"id": "0Yof",
|
|
465343
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
465344
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
465345
465345
|
},
|
|
465346
465346
|
{
|
|
465347
|
-
"id": "
|
|
465348
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
465349
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
465347
|
+
"id": "c/6b",
|
|
465348
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
465349
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
465350
465350
|
},
|
|
465351
465351
|
{
|
|
465352
465352
|
"id": "4eMn",
|
|
@@ -470279,7 +470279,7 @@
|
|
|
470279
470279
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
470280
470280
|
"type": "harmony import specifier",
|
|
470281
470281
|
"userRequest": "./ComboBoxListItemPicker.module.scss",
|
|
470282
|
-
"loc": "
|
|
470282
|
+
"loc": "213:56-62"
|
|
470283
470283
|
},
|
|
470284
470284
|
{
|
|
470285
470285
|
"moduleId": "QnEJ",
|
|
@@ -470288,7 +470288,7 @@
|
|
|
470288
470288
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
470289
470289
|
"type": "harmony import specifier",
|
|
470290
470290
|
"userRequest": "./ComboBoxListItemPicker.module.scss",
|
|
470291
|
-
"loc": "
|
|
470291
|
+
"loc": "215:115-121"
|
|
470292
470292
|
}
|
|
470293
470293
|
],
|
|
470294
470294
|
"providedExports": [
|
|
@@ -479396,7 +479396,7 @@
|
|
|
479396
479396
|
"name": "./lib/services/PeopleSearchService.js",
|
|
479397
479397
|
"index": 2770,
|
|
479398
479398
|
"index2": 2771,
|
|
479399
|
-
"size":
|
|
479399
|
+
"size": 28420,
|
|
479400
479400
|
"cacheable": true,
|
|
479401
479401
|
"built": true,
|
|
479402
479402
|
"optional": false,
|
|
@@ -479463,7 +479463,7 @@
|
|
|
479463
479463
|
],
|
|
479464
479464
|
"optimizationBailout": [],
|
|
479465
479465
|
"depth": 5,
|
|
479466
|
-
"source": "var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { SPHttpClient } from '@microsoft/sp-http';\nimport { Environment, EnvironmentType } from '@microsoft/sp-core-library';\nimport { MockUsers, PeoplePickerMockClient } from './PeoplePickerMockClient';\nimport { PrincipalType } from \"../PeoplePicker\";\nimport { cloneDeep, findIndex } from \"@microsoft/sp-lodash-subset\";\nimport { sp } from '@pnp/sp';\nimport \"@pnp/sp/sputilities\";\nimport { Web } from \"@pnp/sp/webs\";\nimport \"@pnp/sp/webs\";\nimport \"@pnp/sp/site-users/web\";\n/**\n * Service implementation to search people in SharePoint\n */\nvar SPPeopleSearchService = /** @class */ (function () {\n /**\n * Service constructor\n */\n function SPPeopleSearchService(context) {\n this.context = context;\n this.cachedPersonas = {};\n this.cachedLocalUsers = {};\n this.cachedLocalUsers[this.context.pageContext.web.absoluteUrl] = [];\n // Setup PnPjs\n sp.setup(this.context);\n }\n /**\n * Generate the user photo link using SharePoint user photo endpoint.\n *\n * @param value\n */\n SPPeopleSearchService.prototype.generateUserPhotoLink = function (value) {\n return this.context.pageContext.web.absoluteUrl + \"/_layouts/15/userphoto.aspx?accountname=\" + encodeURIComponent(value) + \"&size=M\";\n };\n /**\n * Generate sum of principal types\n *\n * PrincipalType controls the type of entities that are returned in the results.\n * Choices are All - 15, Distribution List - 2 , Security Groups - 4, SharePoint Groups - 8, User - 1.\n * These values can be combined (example: 13 is security + SP groups + users)\n *\n * @param principalTypes\n */\n SPPeopleSearchService.prototype.getSumOfPrincipalTypes = function (principalTypes) {\n return !!principalTypes && principalTypes.length > 0 ? principalTypes.reduce(function (a, b) { return a + b; }, 0) : 1;\n };\n /**\n * Retrieve the specified group\n *\n * @param groupName\n * @param siteUrl\n */\n SPPeopleSearchService.prototype.getGroupId = function (groupName, siteUrl) {\n if (siteUrl === void 0) { siteUrl = null; }\n return __awaiter(this, void 0, void 0, function () {\n var groups;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 1];\n return [2 /*return*/, 1];\n case 1: return [4 /*yield*/, this.searchTenant(siteUrl, groupName, 1, [PrincipalType.SharePointGroup], false, 0)];\n case 2:\n groups = _a.sent();\n return [2 /*return*/, (groups && groups.length > 0) ? parseInt(groups[0].id) : null];\n }\n });\n });\n };\n /**\n * Search person by its email or login name\n */\n SPPeopleSearchService.prototype.searchPersonByEmailOrLogin = function (email, principalTypes, siteUrl, groupId, ensureUser) {\n if (siteUrl === void 0) { siteUrl = null; }\n if (groupId === void 0) { groupId = null; }\n if (ensureUser === void 0) { ensureUser = false; }\n return __awaiter(this, void 0, void 0, function () {\n var mockUsers, userResults, _i, groupId_1, id, tmpResults, logins_1, filteredUserResults, userResults;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 2];\n return [4 /*yield*/, this.searchPeopleFromMock(email)];\n case 1:\n mockUsers = _a.sent();\n return [2 /*return*/, (mockUsers && mockUsers.length > 0) ? mockUsers[0] : null];\n case 2:\n if (!Array.isArray(groupId)) return [3 /*break*/, 7];\n userResults = [];\n _i = 0, groupId_1 = groupId;\n _a.label = 3;\n case 3:\n if (!(_i < groupId_1.length)) return [3 /*break*/, 6];\n id = groupId_1[_i];\n return [4 /*yield*/, this.searchTenant(siteUrl, email, 1, principalTypes, ensureUser, id)];\n case 4:\n tmpResults = _a.sent();\n userResults = userResults.concat(tmpResults);\n _a.label = 5;\n case 5:\n _i++;\n return [3 /*break*/, 3];\n case 6:\n logins_1 = userResults.map(function (u) { return u.loginName; });\n filteredUserResults = userResults.filter(function (_a, index) {\n var loginName = _a.loginName;\n return !logins_1.includes(loginName, index + 1);\n });\n return [2 /*return*/, (filteredUserResults && filteredUserResults.length > 0) ? filteredUserResults[0] : null];\n case 7: return [4 /*yield*/, this.searchTenant(siteUrl, email, 1, principalTypes, ensureUser, groupId)];\n case 8:\n userResults = _a.sent();\n return [2 /*return*/, (userResults && userResults.length > 0) ? userResults[0] : null];\n }\n });\n });\n };\n /**\n * Search All Users from the SharePoint People database\n */\n SPPeopleSearchService.prototype.searchPeople = function (query, maximumSuggestions, principalTypes, siteUrl, groupId, ensureUser) {\n if (siteUrl === void 0) { siteUrl = null; }\n if (groupId === void 0) { groupId = null; }\n if (ensureUser === void 0) { ensureUser = false; }\n return __awaiter(this, void 0, void 0, function () {\n var userResults, _i, groupId_2, id, tmpResults, logins_2, filteredUserResults;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 1];\n // If the running environment is local, load the data from the mock\n return [2 /*return*/, this.searchPeopleFromMock(query)];\n case 1:\n if (!Array.isArray(groupId)) return [3 /*break*/, 6];\n userResults = [];\n _i = 0, groupId_2 = groupId;\n _a.label = 2;\n case 2:\n if (!(_i < groupId_2.length)) return [3 /*break*/, 5];\n id = groupId_2[_i];\n return [4 /*yield*/, this.searchTenant(siteUrl, query, maximumSuggestions, principalTypes, ensureUser, id)];\n case 3:\n tmpResults = _a.sent();\n userResults = userResults.concat(tmpResults);\n _a.label = 4;\n case 4:\n _i++;\n return [3 /*break*/, 2];\n case 5:\n logins_2 = userResults.map(function (u) { return u.loginName; });\n filteredUserResults = userResults.filter(function (_a, index) {\n var loginName = _a.loginName;\n return !logins_2.includes(loginName, index + 1);\n });\n return [2 /*return*/, filteredUserResults];\n case 6: return [4 /*yield*/, this.searchTenant(siteUrl, query, maximumSuggestions, principalTypes, ensureUser, groupId)];\n case 7: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n /**\n * Local site search\n */\n SPPeopleSearchService.prototype.localSearch = function (siteUrl, query, principalTypes, showHiddenInUI, groupName, exactMatch) {\n if (exactMatch === void 0) { exactMatch = false; }\n return __awaiter(this, void 0, void 0, function () {\n var stringVal, cachedPropertyName, filterVal, restApi, data, userDataResp, persons, e_1;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 4, , 5]);\n stringVal = \"\";\n cachedPropertyName = null;\n // Check if service needs to search in the site or group\n if (groupName) {\n stringVal = \"/_api/web/sitegroups/GetByName('\" + groupName + \"')/users\";\n cachedPropertyName = siteUrl + \"-\" + groupName;\n }\n else {\n stringVal = \"/_api/web/siteusers\";\n cachedPropertyName = siteUrl;\n }\n if (!(typeof this.cachedPersonas[cachedPropertyName] === \"undefined\")) return [3 /*break*/, 3];\n filterVal = \"\";\n if (principalTypes) {\n filterVal = \"?$filter=(\" + principalTypes.map(function (principalType) { return \"PrincipalType eq \" + principalType; }).join(\" or \") + \")\";\n }\n // filter for showHiddenInUI\n filterVal = filterVal ? filterVal + \" and (IsHiddenInUI eq \" + showHiddenInUI + \")\" : \"?$filter=IsHiddenInUI eq \" + showHiddenInUI;\n restApi = \"\" + siteUrl + stringVal + filterVal;\n return [4 /*yield*/, this.context.spHttpClient.get(restApi, SPHttpClient.configurations.v1, {\n headers: {\n 'Accept': 'application/json;odata.metadata=none'\n }\n })];\n case 1:\n data = _a.sent();\n if (!data.ok) return [3 /*break*/, 3];\n return [4 /*yield*/, data.json()];\n case 2:\n userDataResp = _a.sent();\n if (userDataResp && userDataResp.value && userDataResp.value.length > 0) {\n this.cachedPersonas[cachedPropertyName] = cloneDeep(userDataResp.value);\n }\n _a.label = 3;\n case 3:\n // Check if persons or groups were retrieved and return the ones for the query\n if (this.cachedPersonas[cachedPropertyName]) {\n persons = this.cachedPersonas[cachedPropertyName];\n if (query) {\n // Check if exact match is required\n if (exactMatch) {\n persons = persons.filter(function (element) { return element.Email.toLowerCase() === query.toLowerCase() || element.LoginName.toLowerCase() === query.toLowerCase(); });\n }\n else {\n persons = persons.filter(function (element) { return element.Title.toLowerCase().indexOf(query.toLowerCase()) !== -1 || element.Email.toLowerCase().indexOf(query.toLowerCase()) !== -1 || element.LoginName.toLowerCase().indexOf(query.toLowerCase()) !== -1; });\n }\n }\n return [2 /*return*/, persons.map(function (item) { return ({\n id: item.Id.toString(),\n imageUrl: item.PrincipalType === PrincipalType.User ? _this.generateUserPhotoLink(item.Email) : null,\n imageInitials: _this.getFullNameInitials(item.Title),\n text: item.Title,\n secondaryText: item.Email || item.LoginName,\n tertiaryText: \"\",\n optionalText: \"\" // anything\n }); })];\n }\n // Nothing to return\n return [2 /*return*/, []];\n case 4:\n e_1 = _a.sent();\n console.error(\"PeopleSearchService::localSearch: error occured while fetching the users.\");\n return [2 /*return*/, []];\n case 5: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Tenant search\n */\n SPPeopleSearchService.prototype.searchTenant = function (siteUrl, query, maximumSuggestions, principalTypes, ensureUser, groupId) {\n return __awaiter(this, void 0, void 0, function () {\n var userRequestUrl, searchBody, graphUserRequestUrl, graphClient, graphUserResponse, _users_2, batch, _i, _a, value, userResult, _b, _users_1, user, httpPostOptions, data, userDataResp, values, _c, values_1, value, id, userResults, e_2;\n var _this = this;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n _d.trys.push([0, 14, , 15]);\n userRequestUrl = (siteUrl || this.context.pageContext.web.absoluteUrl) + \"/_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser\";\n searchBody = {\n queryParams: {\n AllowEmailAddresses: true,\n AllowMultipleEntities: false,\n AllUrlZones: false,\n MaximumEntitySuggestions: maximumSuggestions,\n PrincipalSource: 15,\n PrincipalType: this.getSumOfPrincipalTypes(principalTypes),\n QueryString: query\n }\n };\n // Search on the local site when \"0\"\n if (siteUrl) {\n searchBody.queryParams[\"SharePointGroupID\"] = 0;\n }\n if (!(groupId && typeof (groupId) === 'number')) return [3 /*break*/, 1];\n searchBody.queryParams[\"SharePointGroupID\"] = groupId;\n return [3 /*break*/, 6];\n case 1:\n if (!(groupId && typeof (groupId) === 'string')) return [3 /*break*/, 6];\n graphUserRequestUrl = \"/groups/\" + groupId + \"/members?$count=true&$search=\\\"displayName:\" + query + \"\\\" OR \\\"mail:\" + query + \"\\\"\";\n return [4 /*yield*/, this.context.msGraphClientFactory.getClient()];\n case 2:\n graphClient = _d.sent();\n return [4 /*yield*/, graphClient.api(graphUserRequestUrl).header('ConsistencyLevel', 'eventual').get()];\n case 3:\n graphUserResponse = _d.sent();\n if (!(graphUserResponse.value && graphUserResponse.value.length > 0)) return [3 /*break*/, 5];\n _users_2 = [];\n batch = Web(this.context.pageContext.web.absoluteUrl).createBatch();\n for (_i = 0, _a = graphUserResponse.value; _i < _a.length; _i++) {\n value = _a[_i];\n sp.web.inBatch(batch).ensureUser(value.userPrincipalName).then(function (u) { return _users_2.push(u.data); });\n }\n return [4 /*yield*/, batch.execute()];\n case 4:\n _d.sent();\n userResult = [];\n for (_b = 0, _users_1 = _users_2; _b < _users_1.length; _b++) {\n user = _users_1[_b];\n userResult.push({\n id: ensureUser ? user.Id : user.LoginName,\n loginName: user.LoginName,\n imageUrl: this.generateUserPhotoLink(user.Email),\n imageInitials: this.getFullNameInitials(user.Title),\n text: user.Title,\n secondaryText: user.Email,\n tertiaryText: '',\n optionalText: '' // anything\n });\n }\n return [2 /*return*/, userResult];\n case 5: \n //Nothing to return\n return [2 /*return*/, []];\n case 6:\n httpPostOptions = {\n headers: {\n 'accept': 'application/json',\n 'content-type': 'application/json'\n },\n body: JSON.stringify(searchBody)\n };\n return [4 /*yield*/, this.context.spHttpClient.post(userRequestUrl, SPHttpClient.configurations.v1, httpPostOptions)];\n case 7:\n data = _d.sent();\n if (!data.ok) return [3 /*break*/, 13];\n return [4 /*yield*/, data.json()];\n case 8:\n userDataResp = _d.sent();\n if (!(userDataResp && userDataResp.value && userDataResp.value.length > 0)) return [3 /*break*/, 13];\n values = userDataResp.value;\n if (typeof userDataResp.value === \"string\") {\n values = JSON.parse(userDataResp.value);\n }\n // Filter out \"UNVALIDATED_EMAIL_ADDRESS\"\n values = values.filter(function (v) { return !(v.EntityData && v.EntityData.PrincipalType && v.EntityData.PrincipalType === \"UNVALIDATED_EMAIL_ADDRESS\"); });\n if (!ensureUser) return [3 /*break*/, 12];\n _c = 0, values_1 = values;\n _d.label = 9;\n case 9:\n if (!(_c < values_1.length)) return [3 /*break*/, 12];\n value = values_1[_c];\n if (!(!value.EntityData || (value.EntityData && typeof value.EntityData.SPGroupID === \"undefined\"))) return [3 /*break*/, 11];\n return [4 /*yield*/, this.ensureUser(value.Key)];\n case 10:\n id = _d.sent();\n value.LoginName = value.Key;\n value.Key = id;\n _d.label = 11;\n case 11:\n _c++;\n return [3 /*break*/, 9];\n case 12:\n // Filter out NULL keys\n values = values.filter(function (v) { return v.Key !== null; });\n userResults = values.map(function (element) {\n var _a, _b;\n switch (element.EntityType) {\n case 'User':\n var accountName = element.Description || \"\";\n var email = ((_a = element.EntityData) === null || _a === void 0 ? void 0 : _a.Email) || element.Description;\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageUrl: _this.generateUserPhotoLink(accountName),\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: email,\n tertiaryText: \"\",\n optionalText: \"\" // anything\n };\n case 'SecGroup':\n var secondaryText = ((_b = element.EntityData) === null || _b === void 0 ? void 0 : _b.Email) || element.ProviderName;\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: secondaryText,\n };\n case 'FormsRole':\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: element.ProviderName\n };\n default:\n return {\n id: element.EntityData.SPGroupID,\n loginName: element.EntityData.AccountName,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: element.EntityData.AccountName\n };\n }\n });\n return [2 /*return*/, userResults];\n case 13: \n // Nothing to return\n return [2 /*return*/, []];\n case 14:\n e_2 = _d.sent();\n console.error(\"PeopleSearchService::searchTenant: error occured while fetching the users.\");\n return [2 /*return*/, []];\n case 15: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Retrieves the local user ID\n *\n * @param userId\n */\n SPPeopleSearchService.prototype.ensureUser = function (userId) {\n return __awaiter(this, void 0, void 0, function () {\n var siteUrl, users, userIdx, restApi, data, user;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n siteUrl = this.context.pageContext.web.absoluteUrl;\n if (this.cachedLocalUsers && this.cachedLocalUsers[siteUrl]) {\n users = this.cachedLocalUsers[siteUrl];\n userIdx = findIndex(users, function (u) { return u.LoginName === userId; });\n if (userIdx !== -1) {\n return [2 /*return*/, users[userIdx].Id];\n }\n }\n restApi = siteUrl + \"/_api/web/ensureuser\";\n return [4 /*yield*/, this.context.spHttpClient.post(restApi, SPHttpClient.configurations.v1, {\n body: JSON.stringify({ 'logonName': userId })\n })];\n case 1:\n data = _a.sent();\n if (!data.ok) return [3 /*break*/, 3];\n return [4 /*yield*/, data.json()];\n case 2:\n user = _a.sent();\n if (user && user.Id) {\n this.cachedLocalUsers[siteUrl].push(user);\n return [2 /*return*/, user.Id];\n }\n _a.label = 3;\n case 3: return [2 /*return*/, null];\n }\n });\n });\n };\n /**\n * Generates Initials from a full name\n */\n SPPeopleSearchService.prototype.getFullNameInitials = function (fullName) {\n if (fullName === null) {\n return fullName;\n }\n var words = fullName.split(' ');\n if (words.length === 0) {\n return '';\n }\n else if (words.length === 1) {\n return words[0].charAt(0);\n }\n else {\n return (words[0].charAt(0) + words[1].charAt(0));\n }\n };\n /**\n * Gets the user photo url\n */\n SPPeopleSearchService.prototype.getUserPhotoUrl = function (userEmail, siteUrl) {\n return siteUrl + \"/_layouts/15/userphoto.aspx?size=S&accountname=\" + userEmail;\n };\n /**\n * Returns fake people results for the Mock mode\n */\n SPPeopleSearchService.prototype.searchPeopleFromMock = function (query) {\n var mockClient = new PeoplePickerMockClient();\n var filterValue = { valToCompare: query };\n return new Promise(function (resolve) { return resolve(MockUsers.filter(mockClient.filterPeople, filterValue)); });\n };\n return SPPeopleSearchService;\n}());\nexport default SPPeopleSearchService;\n"
|
|
479466
|
+
"source": "var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { SPHttpClient } from '@microsoft/sp-http';\nimport { Environment, EnvironmentType } from '@microsoft/sp-core-library';\nimport { MockUsers, PeoplePickerMockClient } from './PeoplePickerMockClient';\nimport { PrincipalType } from \"../PeoplePicker\";\nimport { cloneDeep, findIndex } from \"@microsoft/sp-lodash-subset\";\nimport { sp } from '@pnp/sp';\nimport \"@pnp/sp/sputilities\";\nimport { Web } from \"@pnp/sp/webs\";\nimport \"@pnp/sp/webs\";\nimport \"@pnp/sp/site-users/web\";\n/**\n * Service implementation to search people in SharePoint\n */\nvar SPPeopleSearchService = /** @class */ (function () {\n /**\n * Service constructor\n */\n function SPPeopleSearchService(context) {\n this.context = context;\n this.cachedPersonas = {};\n this.cachedLocalUsers = {};\n this.cachedLocalUsers[this.context.pageContext.web.absoluteUrl] = [];\n // Setup PnPjs\n sp.setup(this.context);\n }\n /**\n * Generate the user photo link using SharePoint user photo endpoint.\n *\n * @param value\n */\n SPPeopleSearchService.prototype.generateUserPhotoLink = function (value) {\n return this.context.pageContext.web.absoluteUrl + \"/_layouts/15/userphoto.aspx?accountname=\" + encodeURIComponent(value) + \"&size=M\";\n };\n /**\n * Generate sum of principal types\n *\n * PrincipalType controls the type of entities that are returned in the results.\n * Choices are All - 15, Distribution List - 2 , Security Groups - 4, SharePoint Groups - 8, User - 1.\n * These values can be combined (example: 13 is security + SP groups + users)\n *\n * @param principalTypes\n */\n SPPeopleSearchService.prototype.getSumOfPrincipalTypes = function (principalTypes) {\n return !!principalTypes && principalTypes.length > 0 ? principalTypes.reduce(function (a, b) { return a + b; }, 0) : 1;\n };\n /**\n * Retrieve the specified group\n *\n * @param groupName\n * @param siteUrl\n */\n SPPeopleSearchService.prototype.getGroupId = function (groupName, siteUrl) {\n if (siteUrl === void 0) { siteUrl = null; }\n return __awaiter(this, void 0, void 0, function () {\n var groups;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 1];\n return [2 /*return*/, 1];\n case 1: return [4 /*yield*/, this.searchTenant(siteUrl, groupName, 1, [PrincipalType.SharePointGroup], false, 0)];\n case 2:\n groups = _a.sent();\n return [2 /*return*/, (groups && groups.length > 0) ? parseInt(groups[0].id) : null];\n }\n });\n });\n };\n /**\n * Search person by its email or login name\n */\n SPPeopleSearchService.prototype.searchPersonByEmailOrLogin = function (email, principalTypes, siteUrl, groupId, ensureUser) {\n if (siteUrl === void 0) { siteUrl = null; }\n if (groupId === void 0) { groupId = null; }\n if (ensureUser === void 0) { ensureUser = false; }\n return __awaiter(this, void 0, void 0, function () {\n var mockUsers, userResults, _i, groupId_1, id, tmpResults, logins_1, filteredUserResults, userResults;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 2];\n return [4 /*yield*/, this.searchPeopleFromMock(email)];\n case 1:\n mockUsers = _a.sent();\n return [2 /*return*/, (mockUsers && mockUsers.length > 0) ? mockUsers[0] : null];\n case 2:\n if (!Array.isArray(groupId)) return [3 /*break*/, 7];\n userResults = [];\n _i = 0, groupId_1 = groupId;\n _a.label = 3;\n case 3:\n if (!(_i < groupId_1.length)) return [3 /*break*/, 6];\n id = groupId_1[_i];\n return [4 /*yield*/, this.searchTenant(siteUrl, email, 1, principalTypes, ensureUser, id)];\n case 4:\n tmpResults = _a.sent();\n userResults = userResults.concat(tmpResults);\n _a.label = 5;\n case 5:\n _i++;\n return [3 /*break*/, 3];\n case 6:\n logins_1 = userResults.map(function (u) { return u.loginName; });\n filteredUserResults = userResults.filter(function (_a, index) {\n var loginName = _a.loginName;\n return !logins_1.includes(loginName, index + 1);\n });\n return [2 /*return*/, (filteredUserResults && filteredUserResults.length > 0) ? filteredUserResults[0] : null];\n case 7: return [4 /*yield*/, this.searchTenant(siteUrl, email, 1, principalTypes, ensureUser, groupId)];\n case 8:\n userResults = _a.sent();\n return [2 /*return*/, (userResults && userResults.length > 0) ? userResults[0] : null];\n }\n });\n });\n };\n /**\n * Search All Users from the SharePoint People database\n */\n SPPeopleSearchService.prototype.searchPeople = function (query, maximumSuggestions, principalTypes, siteUrl, groupId, ensureUser) {\n if (siteUrl === void 0) { siteUrl = null; }\n if (groupId === void 0) { groupId = null; }\n if (ensureUser === void 0) { ensureUser = false; }\n return __awaiter(this, void 0, void 0, function () {\n var userResults, _i, groupId_2, id, tmpResults, logins_2, filteredUserResults;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 1];\n // If the running environment is local, load the data from the mock\n return [2 /*return*/, this.searchPeopleFromMock(query)];\n case 1:\n if (!Array.isArray(groupId)) return [3 /*break*/, 6];\n userResults = [];\n _i = 0, groupId_2 = groupId;\n _a.label = 2;\n case 2:\n if (!(_i < groupId_2.length)) return [3 /*break*/, 5];\n id = groupId_2[_i];\n return [4 /*yield*/, this.searchTenant(siteUrl, query, maximumSuggestions, principalTypes, ensureUser, id)];\n case 3:\n tmpResults = _a.sent();\n userResults = userResults.concat(tmpResults);\n _a.label = 4;\n case 4:\n _i++;\n return [3 /*break*/, 2];\n case 5:\n logins_2 = userResults.map(function (u) { return u.loginName; });\n filteredUserResults = userResults.filter(function (_a, index) {\n var loginName = _a.loginName;\n return !logins_2.includes(loginName, index + 1);\n });\n return [2 /*return*/, filteredUserResults];\n case 6: return [4 /*yield*/, this.searchTenant(siteUrl, query, maximumSuggestions, principalTypes, ensureUser, groupId)];\n case 7: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n /**\n * Local site search\n */\n SPPeopleSearchService.prototype.localSearch = function (siteUrl, query, principalTypes, showHiddenInUI, groupName, exactMatch) {\n if (exactMatch === void 0) { exactMatch = false; }\n return __awaiter(this, void 0, void 0, function () {\n var stringVal, cachedPropertyName, filterVal, restApi, data, userDataResp, persons, e_1;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 4, , 5]);\n stringVal = \"\";\n cachedPropertyName = null;\n // Check if service needs to search in the site or group\n if (groupName) {\n stringVal = \"/_api/web/sitegroups/GetByName('\" + groupName + \"')/users\";\n cachedPropertyName = siteUrl + \"-\" + groupName;\n }\n else {\n stringVal = \"/_api/web/siteusers\";\n cachedPropertyName = siteUrl;\n }\n if (!(typeof this.cachedPersonas[cachedPropertyName] === \"undefined\")) return [3 /*break*/, 3];\n filterVal = \"\";\n if (principalTypes) {\n filterVal = \"?$filter=(\" + principalTypes.map(function (principalType) { return \"PrincipalType eq \" + principalType; }).join(\" or \") + \")\";\n }\n // filter for showHiddenInUI\n filterVal = filterVal ? filterVal + \" and (IsHiddenInUI eq \" + showHiddenInUI + \")\" : \"?$filter=IsHiddenInUI eq \" + showHiddenInUI;\n restApi = \"\" + siteUrl + stringVal + filterVal;\n return [4 /*yield*/, this.context.spHttpClient.get(restApi, SPHttpClient.configurations.v1, {\n headers: {\n 'Accept': 'application/json;odata.metadata=none'\n }\n })];\n case 1:\n data = _a.sent();\n if (!data.ok) return [3 /*break*/, 3];\n return [4 /*yield*/, data.json()];\n case 2:\n userDataResp = _a.sent();\n if (userDataResp && userDataResp.value && userDataResp.value.length > 0) {\n this.cachedPersonas[cachedPropertyName] = cloneDeep(userDataResp.value);\n }\n _a.label = 3;\n case 3:\n // Check if persons or groups were retrieved and return the ones for the query\n if (this.cachedPersonas[cachedPropertyName]) {\n persons = this.cachedPersonas[cachedPropertyName];\n if (query) {\n // Check if exact match is required\n if (exactMatch) {\n persons = persons.filter(function (element) { return element.Email.toLowerCase() === query.toLowerCase() || element.LoginName.toLowerCase() === query.toLowerCase(); });\n }\n else {\n persons = persons.filter(function (element) { return element.Title.toLowerCase().indexOf(query.toLowerCase()) !== -1 || element.Email.toLowerCase().indexOf(query.toLowerCase()) !== -1 || element.LoginName.toLowerCase().indexOf(query.toLowerCase()) !== -1; });\n }\n }\n return [2 /*return*/, persons.map(function (item) { return ({\n id: item.Id.toString(),\n imageUrl: item.PrincipalType === PrincipalType.User ? _this.generateUserPhotoLink(item.Email) : null,\n imageInitials: _this.getFullNameInitials(item.Title),\n text: item.Title,\n secondaryText: item.Email || item.LoginName,\n tertiaryText: \"\",\n optionalText: \"\" // anything\n }); })];\n }\n // Nothing to return\n return [2 /*return*/, []];\n case 4:\n e_1 = _a.sent();\n console.error(\"PeopleSearchService::localSearch: error occured while fetching the users.\");\n return [2 /*return*/, []];\n case 5: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Tenant search\n */\n SPPeopleSearchService.prototype.searchTenant = function (siteUrl, query, maximumSuggestions, principalTypes, ensureUser, groupId) {\n return __awaiter(this, void 0, void 0, function () {\n var userRequestUrl, searchBody, graphUserRequestUrl, graphClient, graphUserResponse, _users_2, batch, _i, _a, value, userResult, _b, _users_1, user, httpPostOptions, data, userDataResp, values, _c, values_1, value, id, userResults, e_2;\n var _this = this;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n _d.trys.push([0, 14, , 15]);\n userRequestUrl = (siteUrl || this.context.pageContext.web.absoluteUrl) + \"/_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser\";\n searchBody = {\n queryParams: {\n AllowEmailAddresses: true,\n AllowMultipleEntities: false,\n AllUrlZones: false,\n MaximumEntitySuggestions: maximumSuggestions,\n PrincipalSource: 15,\n PrincipalType: this.getSumOfPrincipalTypes(principalTypes),\n QueryString: query\n }\n };\n // Search on the local site when \"0\"\n if (siteUrl) {\n searchBody.queryParams[\"SharePointGroupID\"] = 0;\n }\n if (!(groupId && typeof (groupId) === 'number')) return [3 /*break*/, 1];\n searchBody.queryParams[\"SharePointGroupID\"] = groupId;\n return [3 /*break*/, 6];\n case 1:\n if (!(groupId && typeof (groupId) === 'string')) return [3 /*break*/, 6];\n graphUserRequestUrl = \"/groups/\" + groupId + \"/transitiveMembers?$count=true&$search=\\\"displayName:\" + query + \"\\\" OR \\\"mail:\" + query + \"\\\"\";\n return [4 /*yield*/, this.context.msGraphClientFactory.getClient()];\n case 2:\n graphClient = _d.sent();\n return [4 /*yield*/, graphClient.api(graphUserRequestUrl).header('ConsistencyLevel', 'eventual').get()];\n case 3:\n graphUserResponse = _d.sent();\n if (!(graphUserResponse.value && graphUserResponse.value.length > 0)) return [3 /*break*/, 5];\n _users_2 = [];\n batch = Web(this.context.pageContext.web.absoluteUrl).createBatch();\n for (_i = 0, _a = graphUserResponse.value; _i < _a.length; _i++) {\n value = _a[_i];\n sp.web.inBatch(batch).ensureUser(value.userPrincipalName).then(function (u) { return _users_2.push(u.data); });\n }\n return [4 /*yield*/, batch.execute()];\n case 4:\n _d.sent();\n userResult = [];\n for (_b = 0, _users_1 = _users_2; _b < _users_1.length; _b++) {\n user = _users_1[_b];\n userResult.push({\n id: ensureUser ? user.Id : user.LoginName,\n loginName: user.LoginName,\n imageUrl: this.generateUserPhotoLink(user.Email),\n imageInitials: this.getFullNameInitials(user.Title),\n text: user.Title,\n secondaryText: user.Email,\n tertiaryText: '',\n optionalText: '' // anything\n });\n }\n return [2 /*return*/, userResult];\n case 5: \n //Nothing to return\n return [2 /*return*/, []];\n case 6:\n httpPostOptions = {\n headers: {\n 'accept': 'application/json',\n 'content-type': 'application/json'\n },\n body: JSON.stringify(searchBody)\n };\n return [4 /*yield*/, this.context.spHttpClient.post(userRequestUrl, SPHttpClient.configurations.v1, httpPostOptions)];\n case 7:\n data = _d.sent();\n if (!data.ok) return [3 /*break*/, 13];\n return [4 /*yield*/, data.json()];\n case 8:\n userDataResp = _d.sent();\n if (!(userDataResp && userDataResp.value && userDataResp.value.length > 0)) return [3 /*break*/, 13];\n values = userDataResp.value;\n if (typeof userDataResp.value === \"string\") {\n values = JSON.parse(userDataResp.value);\n }\n // Filter out \"UNVALIDATED_EMAIL_ADDRESS\"\n values = values.filter(function (v) { return !(v.EntityData && v.EntityData.PrincipalType && v.EntityData.PrincipalType === \"UNVALIDATED_EMAIL_ADDRESS\"); });\n if (!ensureUser) return [3 /*break*/, 12];\n _c = 0, values_1 = values;\n _d.label = 9;\n case 9:\n if (!(_c < values_1.length)) return [3 /*break*/, 12];\n value = values_1[_c];\n if (!(!value.EntityData || (value.EntityData && typeof value.EntityData.SPGroupID === \"undefined\"))) return [3 /*break*/, 11];\n return [4 /*yield*/, this.ensureUser(value.Key)];\n case 10:\n id = _d.sent();\n value.LoginName = value.Key;\n value.Key = id;\n _d.label = 11;\n case 11:\n _c++;\n return [3 /*break*/, 9];\n case 12:\n // Filter out NULL keys\n values = values.filter(function (v) { return v.Key !== null; });\n userResults = values.map(function (element) {\n var _a, _b;\n switch (element.EntityType) {\n case 'User':\n var accountName = element.Description || \"\";\n var email = ((_a = element.EntityData) === null || _a === void 0 ? void 0 : _a.Email) || element.Description;\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageUrl: _this.generateUserPhotoLink(accountName),\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: email,\n tertiaryText: \"\",\n optionalText: \"\" // anything\n };\n case 'SecGroup':\n var secondaryText = ((_b = element.EntityData) === null || _b === void 0 ? void 0 : _b.Email) || element.ProviderName;\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: secondaryText,\n };\n case 'FormsRole':\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: element.ProviderName\n };\n default:\n return {\n id: element.EntityData.SPGroupID,\n loginName: element.EntityData.AccountName,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: element.EntityData.AccountName\n };\n }\n });\n return [2 /*return*/, userResults];\n case 13: \n // Nothing to return\n return [2 /*return*/, []];\n case 14:\n e_2 = _d.sent();\n console.error(\"PeopleSearchService::searchTenant: error occured while fetching the users.\");\n return [2 /*return*/, []];\n case 15: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Retrieves the local user ID\n *\n * @param userId\n */\n SPPeopleSearchService.prototype.ensureUser = function (userId) {\n return __awaiter(this, void 0, void 0, function () {\n var siteUrl, users, userIdx, restApi, data, user;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n siteUrl = this.context.pageContext.web.absoluteUrl;\n if (this.cachedLocalUsers && this.cachedLocalUsers[siteUrl]) {\n users = this.cachedLocalUsers[siteUrl];\n userIdx = findIndex(users, function (u) { return u.LoginName === userId; });\n if (userIdx !== -1) {\n return [2 /*return*/, users[userIdx].Id];\n }\n }\n restApi = siteUrl + \"/_api/web/ensureuser\";\n return [4 /*yield*/, this.context.spHttpClient.post(restApi, SPHttpClient.configurations.v1, {\n body: JSON.stringify({ 'logonName': userId })\n })];\n case 1:\n data = _a.sent();\n if (!data.ok) return [3 /*break*/, 3];\n return [4 /*yield*/, data.json()];\n case 2:\n user = _a.sent();\n if (user && user.Id) {\n this.cachedLocalUsers[siteUrl].push(user);\n return [2 /*return*/, user.Id];\n }\n _a.label = 3;\n case 3: return [2 /*return*/, null];\n }\n });\n });\n };\n /**\n * Generates Initials from a full name\n */\n SPPeopleSearchService.prototype.getFullNameInitials = function (fullName) {\n if (fullName === null) {\n return fullName;\n }\n var words = fullName.split(' ');\n if (words.length === 0) {\n return '';\n }\n else if (words.length === 1) {\n return words[0].charAt(0);\n }\n else {\n return (words[0].charAt(0) + words[1].charAt(0));\n }\n };\n /**\n * Gets the user photo url\n */\n SPPeopleSearchService.prototype.getUserPhotoUrl = function (userEmail, siteUrl) {\n return siteUrl + \"/_layouts/15/userphoto.aspx?size=S&accountname=\" + userEmail;\n };\n /**\n * Returns fake people results for the Mock mode\n */\n SPPeopleSearchService.prototype.searchPeopleFromMock = function (query) {\n var mockClient = new PeoplePickerMockClient();\n var filterValue = { valToCompare: query };\n return new Promise(function (resolve) { return resolve(MockUsers.filter(mockClient.filterPeople, filterValue)); });\n };\n return SPPeopleSearchService;\n}());\nexport default SPPeopleSearchService;\n"
|
|
479467
479467
|
},
|
|
479468
479468
|
{
|
|
479469
479469
|
"id": "sUmF",
|
|
@@ -505587,14 +505587,14 @@
|
|
|
505587
505587
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
505588
505588
|
},
|
|
505589
505589
|
{
|
|
505590
|
-
"id": "
|
|
505591
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
505592
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
505590
|
+
"id": "0Yof",
|
|
505591
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
505592
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
505593
505593
|
},
|
|
505594
505594
|
{
|
|
505595
|
-
"id": "
|
|
505596
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
505597
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
505595
|
+
"id": "c/6b",
|
|
505596
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
505597
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
505598
505598
|
},
|
|
505599
505599
|
{
|
|
505600
505600
|
"id": "4eMn",
|
|
@@ -542875,7 +542875,7 @@
|
|
|
542875
542875
|
"ootb-fields-field-customizer.js",
|
|
542876
542876
|
"ootb-fields-field-customizer.js.map"
|
|
542877
542877
|
],
|
|
542878
|
-
"hash": "
|
|
542878
|
+
"hash": "27ef30c4be03fbb7ce72",
|
|
542879
542879
|
"siblings": [],
|
|
542880
542880
|
"parents": [],
|
|
542881
542881
|
"children": [],
|
|
@@ -558874,7 +558874,7 @@
|
|
|
558874
558874
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
558875
558875
|
"type": "harmony import specifier",
|
|
558876
558876
|
"userRequest": "office-ui-fabric-react/lib/Spinner",
|
|
558877
|
-
"loc": "
|
|
558877
|
+
"loc": "215:93-100"
|
|
558878
558878
|
},
|
|
558879
558879
|
{
|
|
558880
558880
|
"moduleId": "QnEJ",
|
|
@@ -558883,7 +558883,7 @@
|
|
|
558883
558883
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
558884
558884
|
"type": "harmony import specifier",
|
|
558885
558885
|
"userRequest": "office-ui-fabric-react/lib/Spinner",
|
|
558886
|
-
"loc": "
|
|
558886
|
+
"loc": "215:137-148"
|
|
558887
558887
|
},
|
|
558888
558888
|
{
|
|
558889
558889
|
"moduleId": "XXgc",
|
|
@@ -573103,9 +573103,9 @@
|
|
|
573103
573103
|
"controls-test-web-part",
|
|
573104
573104
|
"ootb-fields-field-customizer"
|
|
573105
573105
|
],
|
|
573106
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
573107
|
-
"issuerId": "
|
|
573108
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
573106
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
573107
|
+
"issuerId": "OQ9B",
|
|
573108
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
573109
573109
|
"issuerPath": [
|
|
573110
573110
|
{
|
|
573111
573111
|
"id": "8shM",
|
|
@@ -573143,9 +573143,9 @@
|
|
|
573143
573143
|
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/index.js"
|
|
573144
573144
|
},
|
|
573145
573145
|
{
|
|
573146
|
-
"id": "
|
|
573147
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
573148
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
573146
|
+
"id": "OQ9B",
|
|
573147
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
573148
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js"
|
|
573149
573149
|
}
|
|
573150
573150
|
],
|
|
573151
573151
|
"failed": false,
|
|
@@ -618893,9 +618893,9 @@
|
|
|
618893
618893
|
"controls-test-web-part",
|
|
618894
618894
|
"ootb-fields-field-customizer"
|
|
618895
618895
|
],
|
|
618896
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/
|
|
618897
|
-
"issuerId": "
|
|
618898
|
-
"issuerName": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/
|
|
618896
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js",
|
|
618897
|
+
"issuerId": "S9hS",
|
|
618898
|
+
"issuerName": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js",
|
|
618899
618899
|
"issuerPath": [
|
|
618900
618900
|
{
|
|
618901
618901
|
"id": "G6oG",
|
|
@@ -618941,11 +618941,6 @@
|
|
|
618941
618941
|
"id": "S9hS",
|
|
618942
618942
|
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js",
|
|
618943
618943
|
"name": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js"
|
|
618944
|
-
},
|
|
618945
|
-
{
|
|
618946
|
-
"id": "za8M",
|
|
618947
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/elementContains.js",
|
|
618948
|
-
"name": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/elementContains.js"
|
|
618949
618944
|
}
|
|
618950
618945
|
],
|
|
618951
618946
|
"failed": false,
|
|
@@ -634383,9 +634378,9 @@
|
|
|
634383
634378
|
"controls-test-web-part",
|
|
634384
634379
|
"ootb-fields-field-customizer"
|
|
634385
634380
|
],
|
|
634386
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
634387
|
-
"issuerId": "
|
|
634388
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
634381
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js",
|
|
634382
|
+
"issuerId": "16Wd",
|
|
634383
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js",
|
|
634389
634384
|
"issuerPath": [
|
|
634390
634385
|
{
|
|
634391
634386
|
"id": "G6oG",
|
|
@@ -634403,14 +634398,14 @@
|
|
|
634403
634398
|
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/index.js"
|
|
634404
634399
|
},
|
|
634405
634400
|
{
|
|
634406
|
-
"id": "
|
|
634407
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
634408
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
634401
|
+
"id": "Cv5W",
|
|
634402
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.js",
|
|
634403
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.js"
|
|
634409
634404
|
},
|
|
634410
634405
|
{
|
|
634411
|
-
"id": "
|
|
634412
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
634413
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
634406
|
+
"id": "16Wd",
|
|
634407
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js",
|
|
634408
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js"
|
|
634414
634409
|
}
|
|
634415
634410
|
],
|
|
634416
634411
|
"failed": false,
|
|
@@ -663107,7 +663102,7 @@
|
|
|
663107
663102
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
663108
663103
|
"type": "harmony import specifier",
|
|
663109
663104
|
"userRequest": "react",
|
|
663110
|
-
"loc": "
|
|
663105
|
+
"loc": "213:16-35"
|
|
663111
663106
|
},
|
|
663112
663107
|
{
|
|
663113
663108
|
"moduleId": "QnEJ",
|
|
@@ -663116,7 +663111,7 @@
|
|
|
663116
663111
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
663117
663112
|
"type": "harmony import specifier",
|
|
663118
663113
|
"userRequest": "react",
|
|
663119
|
-
"loc": "
|
|
663114
|
+
"loc": "214:12-31"
|
|
663120
663115
|
},
|
|
663121
663116
|
{
|
|
663122
663117
|
"moduleId": "QnEJ",
|
|
@@ -663125,7 +663120,7 @@
|
|
|
663125
663120
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
663126
663121
|
"type": "harmony import specifier",
|
|
663127
663122
|
"userRequest": "react",
|
|
663128
|
-
"loc": "
|
|
663123
|
+
"loc": "215:73-92"
|
|
663129
663124
|
},
|
|
663130
663125
|
{
|
|
663131
663126
|
"moduleId": "QnEJ",
|
|
@@ -663134,7 +663129,7 @@
|
|
|
663134
663129
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
663135
663130
|
"type": "harmony import specifier",
|
|
663136
663131
|
"userRequest": "react",
|
|
663137
|
-
"loc": "
|
|
663132
|
+
"loc": "217:17-36"
|
|
663138
663133
|
},
|
|
663139
663134
|
{
|
|
663140
663135
|
"moduleId": "QnEJ",
|
|
@@ -663143,7 +663138,7 @@
|
|
|
663143
663138
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
663144
663139
|
"type": "harmony import specifier",
|
|
663145
663140
|
"userRequest": "react",
|
|
663146
|
-
"loc": "
|
|
663141
|
+
"loc": "223:2-17"
|
|
663147
663142
|
},
|
|
663148
663143
|
{
|
|
663149
663144
|
"moduleId": "QoT3",
|
|
@@ -694283,7 +694278,7 @@
|
|
|
694283
694278
|
],
|
|
694284
694279
|
"optimizationBailout": [],
|
|
694285
694280
|
"depth": 4,
|
|
694286
|
-
"source": "export var version = \"3.8.0-beta.
|
|
694281
|
+
"source": "export var version = \"3.8.0-beta.2192234\";\n"
|
|
694287
694282
|
},
|
|
694288
694283
|
{
|
|
694289
694284
|
"id": "cPD0",
|
|
@@ -743486,9 +743481,9 @@
|
|
|
743486
743481
|
"chunks": [
|
|
743487
743482
|
"controls-test-web-part"
|
|
743488
743483
|
],
|
|
743489
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/
|
|
743490
|
-
"issuerId": "
|
|
743491
|
-
"issuerName": "./node_modules/@popperjs/core/lib/
|
|
743484
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
743485
|
+
"issuerId": "CSm3",
|
|
743486
|
+
"issuerName": "./node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
743492
743487
|
"issuerPath": [
|
|
743493
743488
|
{
|
|
743494
743489
|
"id": "G6oG",
|
|
@@ -743541,14 +743536,14 @@
|
|
|
743541
743536
|
"name": "./node_modules/@popperjs/core/lib/index.js"
|
|
743542
743537
|
},
|
|
743543
743538
|
{
|
|
743544
|
-
"id": "
|
|
743545
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/
|
|
743546
|
-
"name": "./node_modules/@popperjs/core/lib/
|
|
743539
|
+
"id": "HnbP",
|
|
743540
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/index.js",
|
|
743541
|
+
"name": "./node_modules/@popperjs/core/lib/modifiers/index.js"
|
|
743547
743542
|
},
|
|
743548
743543
|
{
|
|
743549
|
-
"id": "
|
|
743550
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/
|
|
743551
|
-
"name": "./node_modules/@popperjs/core/lib/
|
|
743544
|
+
"id": "CSm3",
|
|
743545
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
743546
|
+
"name": "./node_modules/@popperjs/core/lib/modifiers/arrow.js"
|
|
743552
743547
|
}
|
|
743553
743548
|
],
|
|
743554
743549
|
"failed": false,
|
|
@@ -776899,7 +776894,7 @@
|
|
|
776899
776894
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
776900
776895
|
"type": "harmony import specifier",
|
|
776901
776896
|
"userRequest": "office-ui-fabric-react/lib/Label",
|
|
776902
|
-
"loc": "
|
|
776897
|
+
"loc": "217:37-42"
|
|
776903
776898
|
},
|
|
776904
776899
|
{
|
|
776905
776900
|
"moduleId": "SXK8",
|
|
@@ -778335,14 +778330,14 @@
|
|
|
778335
778330
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
778336
778331
|
},
|
|
778337
778332
|
{
|
|
778338
|
-
"id": "
|
|
778339
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
778340
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
778333
|
+
"id": "0Yof",
|
|
778334
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
778335
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
778341
778336
|
},
|
|
778342
778337
|
{
|
|
778343
|
-
"id": "
|
|
778344
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
778345
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
778338
|
+
"id": "c/6b",
|
|
778339
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
778340
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
778346
778341
|
},
|
|
778347
778342
|
{
|
|
778348
778343
|
"id": "4eMn",
|
|
@@ -779854,9 +779849,9 @@
|
|
|
779854
779849
|
"chunks": [
|
|
779855
779850
|
"controls-test-web-part"
|
|
779856
779851
|
],
|
|
779857
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
779858
|
-
"issuerId": "
|
|
779859
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
779852
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
779853
|
+
"issuerId": "c/6b",
|
|
779854
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
779860
779855
|
"issuerPath": [
|
|
779861
779856
|
{
|
|
779862
779857
|
"id": "G6oG",
|
|
@@ -779884,14 +779879,14 @@
|
|
|
779884
779879
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
779885
779880
|
},
|
|
779886
779881
|
{
|
|
779887
|
-
"id": "
|
|
779888
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
779889
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
779882
|
+
"id": "0Yof",
|
|
779883
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
779884
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
779890
779885
|
},
|
|
779891
779886
|
{
|
|
779892
|
-
"id": "
|
|
779893
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
779894
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
779887
|
+
"id": "c/6b",
|
|
779888
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
779889
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
779895
779890
|
}
|
|
779896
779891
|
],
|
|
779897
779892
|
"failed": false,
|
|
@@ -783940,9 +783935,9 @@
|
|
|
783940
783935
|
"chunks": [
|
|
783941
783936
|
"controls-test-web-part"
|
|
783942
783937
|
],
|
|
783943
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/
|
|
783944
|
-
"issuerId": "
|
|
783945
|
-
"issuerName": "./node_modules/@popperjs/core/lib/modifiers/
|
|
783938
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
783939
|
+
"issuerId": "CSm3",
|
|
783940
|
+
"issuerName": "./node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
783946
783941
|
"issuerPath": [
|
|
783947
783942
|
{
|
|
783948
783943
|
"id": "G6oG",
|
|
@@ -784000,9 +783995,9 @@
|
|
|
784000
783995
|
"name": "./node_modules/@popperjs/core/lib/modifiers/index.js"
|
|
784001
783996
|
},
|
|
784002
783997
|
{
|
|
784003
|
-
"id": "
|
|
784004
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/
|
|
784005
|
-
"name": "./node_modules/@popperjs/core/lib/modifiers/
|
|
783998
|
+
"id": "CSm3",
|
|
783999
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@popperjs/core/lib/modifiers/arrow.js",
|
|
784000
|
+
"name": "./node_modules/@popperjs/core/lib/modifiers/arrow.js"
|
|
784006
784001
|
}
|
|
784007
784002
|
],
|
|
784008
784003
|
"failed": false,
|
|
@@ -829754,7 +829749,7 @@
|
|
|
829754
829749
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
829755
829750
|
"type": "harmony import specifier",
|
|
829756
829751
|
"userRequest": "office-ui-fabric-react/lib/Spinner",
|
|
829757
|
-
"loc": "
|
|
829752
|
+
"loc": "215:93-100"
|
|
829758
829753
|
},
|
|
829759
829754
|
{
|
|
829760
829755
|
"moduleId": "QnEJ",
|
|
@@ -829763,7 +829758,7 @@
|
|
|
829763
829758
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
829764
829759
|
"type": "harmony import specifier",
|
|
829765
829760
|
"userRequest": "office-ui-fabric-react/lib/Spinner",
|
|
829766
|
-
"loc": "
|
|
829761
|
+
"loc": "215:137-148"
|
|
829767
829762
|
},
|
|
829768
829763
|
{
|
|
829769
829764
|
"moduleId": "XXgc",
|
|
@@ -857225,9 +857220,9 @@
|
|
|
857225
857220
|
"controls-test-web-part",
|
|
857226
857221
|
"ootb-fields-field-customizer"
|
|
857227
857222
|
],
|
|
857228
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
857229
|
-
"issuerId": "
|
|
857230
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
857223
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
857224
|
+
"issuerId": "OQ9B",
|
|
857225
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
857231
857226
|
"issuerPath": [
|
|
857232
857227
|
{
|
|
857233
857228
|
"id": "8shM",
|
|
@@ -857265,9 +857260,9 @@
|
|
|
857265
857260
|
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/index.js"
|
|
857266
857261
|
},
|
|
857267
857262
|
{
|
|
857268
|
-
"id": "
|
|
857269
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
857270
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
857263
|
+
"id": "OQ9B",
|
|
857264
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
857265
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js"
|
|
857271
857266
|
}
|
|
857272
857267
|
],
|
|
857273
857268
|
"failed": false,
|
|
@@ -929080,7 +929075,7 @@
|
|
|
929080
929075
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
929081
929076
|
"type": "harmony import specifier",
|
|
929082
929077
|
"userRequest": "lodash",
|
|
929083
|
-
"loc": "
|
|
929078
|
+
"loc": "165:29-36"
|
|
929084
929079
|
},
|
|
929085
929080
|
{
|
|
929086
929081
|
"moduleId": "dYKm",
|
|
@@ -948664,14 +948659,14 @@
|
|
|
948664
948659
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
948665
948660
|
},
|
|
948666
948661
|
{
|
|
948667
|
-
"id": "
|
|
948668
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
948669
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
948662
|
+
"id": "0Yof",
|
|
948663
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
948664
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
948670
948665
|
},
|
|
948671
948666
|
{
|
|
948672
|
-
"id": "
|
|
948673
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
948674
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
948667
|
+
"id": "c/6b",
|
|
948668
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
948669
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
948675
948670
|
},
|
|
948676
948671
|
{
|
|
948677
948672
|
"id": "4eMn",
|
|
@@ -965125,7 +965120,7 @@
|
|
|
965125
965120
|
"name": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
965126
965121
|
"index": 2233,
|
|
965127
965122
|
"index2": 2248,
|
|
965128
|
-
"size":
|
|
965123
|
+
"size": 12442,
|
|
965129
965124
|
"cacheable": true,
|
|
965130
965125
|
"built": true,
|
|
965131
965126
|
"optional": false,
|
|
@@ -965195,7 +965190,7 @@
|
|
|
965195
965190
|
],
|
|
965196
965191
|
"optimizationBailout": [],
|
|
965197
965192
|
"depth": 2,
|
|
965198
|
-
"source": "var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport * as strings from 'ControlStrings';\nimport * as React from \"react\";\nimport { Label } from \"office-ui-fabric-react/lib/Label\";\nimport * as telemetry from '../../common/telemetry';\nimport { ComboBox } from \"office-ui-fabric-react/lib/ComboBox\";\nimport { ListItemRepository } from '../../common/dal/ListItemRepository';\nimport styles from './ComboBoxListItemPicker.module.scss';\nimport { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner';\nimport { cloneDeep, isEqual } from 'lodash';\nvar ComboBoxListItemPicker = /** @class */ (function (_super) {\n __extends(ComboBoxListItemPicker, _super);\n function ComboBoxListItemPicker(props) {\n var _this = _super.call(this, props) || this;\n _this._options = null;\n /**\n * On Selected Item\n */\n _this.onChanged = function (option, index, value, submitPendingValueEvent) {\n var _a, _b;\n var selectedItems = cloneDeep(_this.state.selectedItems);\n if (_this.props.multiSelect) {\n if (option && option.selected) {\n selectedItems.push((_a = {},\n _a[_this.props.keyColumnInternalName || \"Id\"] = option.key,\n _a[_this.props.columnInternalName] = option.text,\n _a.selected = option.selected,\n _a));\n }\n else {\n selectedItems = selectedItems.filter(function (o) { return o[_this.props.keyColumnInternalName || \"Id\"] !== option.key; });\n }\n }\n else {\n selectedItems.push((_b = {},\n _b[_this.props.keyColumnInternalName || \"Id\"] = option.key,\n _b[_this.props.columnInternalName] = option.text,\n _b));\n selectedItems = selectedItems.filter(function (o) { return o[_this.props.keyColumnInternalName || \"Id\"] === option.key; });\n }\n _this.setState({\n selectedItems: selectedItems,\n });\n _this.props.onSelectedItem(selectedItems);\n };\n telemetry.track('ComboBoxListItemPicker', {});\n // States\n _this.state = {\n noresultsFoundText: !_this.props.noResultsFoundText ? strings.genericNoResultsFoundText : _this.props.noResultsFoundText,\n showError: false,\n errorMessage: \"\",\n suggestionsHeaderText: !_this.props.suggestionsHeaderText ? strings.ListItemPickerSelectValue : _this.props.suggestionsHeaderText,\n selectedItems: _this.props.defaultSelectedItems || [],\n };\n // Get SPService Factory\n _this._listItemRepo = new ListItemRepository(_this.props.webUrl, _this.props.spHttpClient);\n return _this;\n }\n ComboBoxListItemPicker.prototype.componentDidMount = function () {\n this.loadOptions(this.props);\n };\n ComboBoxListItemPicker.prototype.loadOptions = function (props, isInitialLoad) {\n return __awaiter(this, void 0, void 0, function () {\n var filter, keyColumnInternalName, listId, columnInternalName, webUrl, itemLimit, onInitialized, orderBy, query, keyColumnName, listItems, selectedItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n filter = props.filter, keyColumnInternalName = props.keyColumnInternalName, listId = props.listId, columnInternalName = props.columnInternalName, webUrl = props.webUrl, itemLimit = props.itemLimit, onInitialized = props.onInitialized, orderBy = props.orderBy;\n query = filter || \"\";\n keyColumnName = keyColumnInternalName || \"Id\";\n if (!(!this._options || listId !== this.props.listId)) return [3 /*break*/, 2];\n return [4 /*yield*/, this._listItemRepo.getListItemsByFilterClause(query, listId, columnInternalName, keyColumnInternalName, webUrl, itemLimit || 100, orderBy)];\n case 1:\n listItems = _a.sent();\n this._options = listItems.map(function (option) {\n return {\n key: option[keyColumnName],\n text: option[columnInternalName || \"Id\"]\n };\n });\n _a.label = 2;\n case 2:\n selectedItems = this._getSelectedItems(props);\n this.setState({\n availableOptions: this._options,\n selectedItems: selectedItems,\n });\n if (onInitialized && isInitialLoad !== false) {\n onInitialized();\n }\n return [2 /*return*/];\n }\n });\n });\n };\n ComboBoxListItemPicker.prototype.componentWillReceiveProps = function (nextProps) {\n return __awaiter(this, void 0, void 0, function () {\n var selectedItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(nextProps.listId !== this.props.listId)) return [3 /*break*/, 2];\n this.setState({\n selectedItems: [],\n });\n return [4 /*yield*/, this.loadOptions(nextProps, false)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2:\n if (!isEqual(nextProps.defaultSelectedItems, this.props.defaultSelectedItems)) {\n selectedItems = this._getSelectedItems(nextProps);\n this.setState({\n selectedItems: selectedItems,\n });\n }\n return [2 /*return*/];\n }\n });\n });\n };\n ComboBoxListItemPicker.prototype._getSelectedItems = function (props) {\n var _this = this;\n var selectedItems = [];\n var keyColumnName = props.keyColumnInternalName || \"Id\";\n if (props.defaultSelectedItems) {\n //if passed only ids\n if (!isNaN(props.defaultSelectedItems[0])) {\n selectedItems = this._options.filter(function (opt) { return props.defaultSelectedItems.indexOf(opt.key) >= 0; });\n }\n else {\n selectedItems = this._options.filter(function (opt) { return props.defaultSelectedItems.map(function (selected) { return selected[keyColumnName]; }).indexOf(opt.key) >= 0; });\n }\n }\n if ((selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0) {\n selectedItems = selectedItems.map(function (item) {\n var _a;\n return _a = {},\n _a[_this.props.keyColumnInternalName || \"Id\"] = item.key,\n _a[_this.props.columnInternalName] = item.text,\n _a;\n });\n }\n return selectedItems;\n };\n /*public componentDidUpdate(prevProps: IComboBoxListItemPickerProps, prevState: IComboBoxListItemPickerState): void {\n if (this.props.listId !== prevProps.listId) {\n \n }\n }*/\n /**\n * Render the field\n */\n ComboBoxListItemPicker.prototype.render = function () {\n var _this = this;\n var _a;\n var _b = this.props, className = _b.className, disabled = _b.disabled;\n var selectedKeys = ((_a = this.state.selectedItems) === null || _a === void 0 ? void 0 : _a.map(function (item) { return item[_this.props.keyColumnInternalName || \"Id\"]; })) || [];\n return (React.createElement(\"div\", { className: styles.comboBoxListItemPickerWrapper },\n React.createElement(ComboBox, { label: this.props.label, options: this.state.availableOptions, autoComplete: this.props.autoComplete, comboBoxOptionStyles: this.props.comboBoxOptionStyles, allowFreeform: this.props.allowFreeform, keytipProps: this.props.keytipProps, onMenuDismissed: this.props.onMenuDismiss, onMenuOpen: this.props.onMenuOpen, text: this.props.text, onChange: function (e, value) { return _this.onChanged(value); }, multiSelect: this.props.multiSelect, selectedKey: selectedKeys, className: className, disabled: disabled }),\n !this.state.errorMessage && !this.state.availableOptions && (React.createElement(Spinner, { className: styles.loading, size: SpinnerSize.small })),\n !!this.state.errorMessage &&\n (React.createElement(Label, { style: { color: '#FF0000' } },\n \" \",\n this.state.errorMessage,\n \" \"))));\n };\n return ComboBoxListItemPicker;\n}(React.Component));\nexport { ComboBoxListItemPicker };\n"
|
|
965193
|
+
"source": "var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport * as strings from 'ControlStrings';\nimport * as React from \"react\";\nimport { Label } from \"office-ui-fabric-react/lib/Label\";\nimport * as telemetry from '../../common/telemetry';\nimport { ComboBox } from \"office-ui-fabric-react/lib/ComboBox\";\nimport { ListItemRepository } from '../../common/dal/ListItemRepository';\nimport styles from './ComboBoxListItemPicker.module.scss';\nimport { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner';\nimport { cloneDeep, isEqual } from 'lodash';\nvar ComboBoxListItemPicker = /** @class */ (function (_super) {\n __extends(ComboBoxListItemPicker, _super);\n function ComboBoxListItemPicker(props) {\n var _this = _super.call(this, props) || this;\n _this._options = null;\n /**\n * On Selected Item\n */\n _this.onChanged = function (option, index, value, submitPendingValueEvent) {\n var _a, _b;\n var selectedItems = cloneDeep(_this.state.selectedItems);\n if (_this.props.multiSelect) {\n if (option && option.selected) {\n selectedItems.push((_a = {},\n _a[_this.props.keyColumnInternalName || \"Id\"] = option.key,\n _a[_this.props.columnInternalName] = option.text,\n _a.selected = option.selected,\n _a));\n }\n else {\n selectedItems = selectedItems.filter(function (o) { return o[_this.props.keyColumnInternalName || \"Id\"] !== option.key; });\n }\n }\n else {\n selectedItems.push((_b = {},\n _b[_this.props.keyColumnInternalName || \"Id\"] = option.key,\n _b[_this.props.columnInternalName] = option.text,\n _b));\n selectedItems = selectedItems.filter(function (o) { return o[_this.props.keyColumnInternalName || \"Id\"] === option.key; });\n }\n _this.setState({\n selectedItems: selectedItems,\n });\n _this.props.onSelectedItem(selectedItems);\n };\n telemetry.track('ComboBoxListItemPicker', {});\n // States\n _this.state = {\n noresultsFoundText: !_this.props.noResultsFoundText ? strings.genericNoResultsFoundText : _this.props.noResultsFoundText,\n showError: false,\n errorMessage: \"\",\n suggestionsHeaderText: !_this.props.suggestionsHeaderText ? strings.ListItemPickerSelectValue : _this.props.suggestionsHeaderText,\n selectedItems: _this.props.defaultSelectedItems || [],\n };\n // Get SPService Factory\n _this._listItemRepo = new ListItemRepository(_this.props.webUrl, _this.props.spHttpClient);\n return _this;\n }\n ComboBoxListItemPicker.prototype.componentDidMount = function () {\n this.loadOptions(this.props);\n };\n ComboBoxListItemPicker.prototype.loadOptions = function (props, isInitialLoad) {\n return __awaiter(this, void 0, void 0, function () {\n var filter, keyColumnInternalName, listId, columnInternalName, webUrl, itemLimit, onInitialized, orderBy, query, keyColumnName, listItems, selectedItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n filter = props.filter, keyColumnInternalName = props.keyColumnInternalName, listId = props.listId, columnInternalName = props.columnInternalName, webUrl = props.webUrl, itemLimit = props.itemLimit, onInitialized = props.onInitialized, orderBy = props.orderBy;\n query = filter || \"\";\n keyColumnName = keyColumnInternalName || \"Id\";\n if (!(!this._options || listId !== this.props.listId || filter !== this.props.filter)) return [3 /*break*/, 2];\n return [4 /*yield*/, this._listItemRepo.getListItemsByFilterClause(query, listId, columnInternalName, keyColumnInternalName, webUrl, itemLimit || 100, orderBy)];\n case 1:\n listItems = _a.sent();\n this._options = listItems.map(function (option) {\n return {\n key: option[keyColumnName],\n text: option[columnInternalName || \"Id\"]\n };\n });\n _a.label = 2;\n case 2:\n selectedItems = this._getSelectedItems(props);\n this.setState({\n availableOptions: this._options,\n selectedItems: selectedItems,\n });\n if (onInitialized && isInitialLoad !== false) {\n onInitialized();\n }\n return [2 /*return*/];\n }\n });\n });\n };\n ComboBoxListItemPicker.prototype.componentWillReceiveProps = function (nextProps) {\n return __awaiter(this, void 0, void 0, function () {\n var selectedItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(nextProps.listId !== this.props.listId)) return [3 /*break*/, 2];\n this.setState({\n selectedItems: [],\n });\n return [4 /*yield*/, this.loadOptions(nextProps, false)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2:\n if (!(nextProps.filter !== this.props.filter)) return [3 /*break*/, 4];\n return [4 /*yield*/, this.loadOptions(nextProps, false)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4:\n if (!isEqual(nextProps.defaultSelectedItems, this.props.defaultSelectedItems)) {\n selectedItems = this._getSelectedItems(nextProps);\n this.setState({\n selectedItems: selectedItems,\n });\n }\n return [2 /*return*/];\n }\n });\n });\n };\n ComboBoxListItemPicker.prototype._getSelectedItems = function (props) {\n var _this = this;\n var selectedItems = [];\n var keyColumnName = props.keyColumnInternalName || \"Id\";\n if (props.defaultSelectedItems) {\n //if passed only ids\n if (!isNaN(props.defaultSelectedItems[0])) {\n selectedItems = this._options.filter(function (opt) { return props.defaultSelectedItems.indexOf(opt.key) >= 0; });\n }\n else {\n selectedItems = this._options.filter(function (opt) { return props.defaultSelectedItems.map(function (selected) { return selected[keyColumnName]; }).indexOf(opt.key) >= 0; });\n }\n }\n if ((selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0) {\n selectedItems = selectedItems.map(function (item) {\n var _a;\n return _a = {},\n _a[_this.props.keyColumnInternalName || \"Id\"] = item.key,\n _a[_this.props.columnInternalName] = item.text,\n _a;\n });\n }\n return selectedItems;\n };\n /*public componentDidUpdate(prevProps: IComboBoxListItemPickerProps, prevState: IComboBoxListItemPickerState): void {\n if (this.props.listId !== prevProps.listId) {\n \n }\n }*/\n /**\n * Render the field\n */\n ComboBoxListItemPicker.prototype.render = function () {\n var _this = this;\n var _a;\n var _b = this.props, className = _b.className, disabled = _b.disabled;\n var selectedKeys = ((_a = this.state.selectedItems) === null || _a === void 0 ? void 0 : _a.map(function (item) { return item[_this.props.keyColumnInternalName || \"Id\"]; })) || [];\n return (React.createElement(\"div\", { className: styles.comboBoxListItemPickerWrapper },\n React.createElement(ComboBox, { label: this.props.label, options: this.state.availableOptions, autoComplete: this.props.autoComplete, comboBoxOptionStyles: this.props.comboBoxOptionStyles, allowFreeform: this.props.allowFreeform, keytipProps: this.props.keytipProps, onMenuDismissed: this.props.onMenuDismiss, onMenuOpen: this.props.onMenuOpen, text: this.props.text, onChange: function (e, value) { return _this.onChanged(value); }, multiSelect: this.props.multiSelect, selectedKey: selectedKeys, className: className, disabled: disabled }),\n !this.state.errorMessage && !this.state.availableOptions && (React.createElement(Spinner, { className: styles.loading, size: SpinnerSize.small })),\n !!this.state.errorMessage &&\n (React.createElement(Label, { style: { color: '#FF0000' } },\n \" \",\n this.state.errorMessage,\n \" \"))));\n };\n return ComboBoxListItemPicker;\n}(React.Component));\nexport { ComboBoxListItemPicker };\n"
|
|
965199
965194
|
},
|
|
965200
965195
|
{
|
|
965201
965196
|
"id": "Qo0+",
|
|
@@ -967088,9 +967083,9 @@
|
|
|
967088
967083
|
"controls-test-web-part",
|
|
967089
967084
|
"ootb-fields-field-customizer"
|
|
967090
967085
|
],
|
|
967091
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/
|
|
967092
|
-
"issuerId": "
|
|
967093
|
-
"issuerName": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/
|
|
967086
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js",
|
|
967087
|
+
"issuerId": "S9hS",
|
|
967088
|
+
"issuerName": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js",
|
|
967094
967089
|
"issuerPath": [
|
|
967095
967090
|
{
|
|
967096
967091
|
"id": "G6oG",
|
|
@@ -967136,11 +967131,6 @@
|
|
|
967136
967131
|
"id": "S9hS",
|
|
967137
967132
|
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js",
|
|
967138
967133
|
"name": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/index.js"
|
|
967139
|
-
},
|
|
967140
|
-
{
|
|
967141
|
-
"id": "za8M",
|
|
967142
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/elementContains.js",
|
|
967143
|
-
"name": "./node_modules/@uifabric/utilities/node_modules/@fluentui/dom-utilities/lib/elementContains.js"
|
|
967144
967134
|
}
|
|
967145
967135
|
],
|
|
967146
967136
|
"failed": false,
|
|
@@ -1009479,9 +1009469,9 @@
|
|
|
1009479
1009469
|
"chunks": [
|
|
1009480
1009470
|
"controls-test-web-part"
|
|
1009481
1009471
|
],
|
|
1009482
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/prop-types/
|
|
1009483
|
-
"issuerId": "
|
|
1009484
|
-
"issuerName": "./node_modules/prop-types/
|
|
1009472
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/prop-types/checkPropTypes.js",
|
|
1009473
|
+
"issuerId": "oVyQ",
|
|
1009474
|
+
"issuerName": "./node_modules/prop-types/checkPropTypes.js",
|
|
1009485
1009475
|
"issuerPath": [
|
|
1009486
1009476
|
{
|
|
1009487
1009477
|
"id": "G6oG",
|
|
@@ -1009519,14 +1009509,19 @@
|
|
|
1009519
1009509
|
"name": "./node_modules/react-quill/lib/toolbar.js"
|
|
1009520
1009510
|
},
|
|
1009521
1009511
|
{
|
|
1009522
|
-
"id": "
|
|
1009523
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/
|
|
1009524
|
-
"name": "./node_modules/
|
|
1009512
|
+
"id": "KAy6",
|
|
1009513
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/react-dom/server.browser.js",
|
|
1009514
|
+
"name": "./node_modules/react-dom/server.browser.js"
|
|
1009525
1009515
|
},
|
|
1009526
1009516
|
{
|
|
1009527
|
-
"id": "
|
|
1009528
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/
|
|
1009529
|
-
"name": "./node_modules/
|
|
1009517
|
+
"id": "4xsd",
|
|
1009518
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/react-dom/cjs/react-dom-server.browser.development.js",
|
|
1009519
|
+
"name": "./node_modules/react-dom/cjs/react-dom-server.browser.development.js"
|
|
1009520
|
+
},
|
|
1009521
|
+
{
|
|
1009522
|
+
"id": "oVyQ",
|
|
1009523
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/prop-types/checkPropTypes.js",
|
|
1009524
|
+
"name": "./node_modules/prop-types/checkPropTypes.js"
|
|
1009530
1009525
|
}
|
|
1009531
1009526
|
],
|
|
1009532
1009527
|
"failed": false,
|
|
@@ -1012036,9 +1012031,9 @@
|
|
|
1012036
1012031
|
"chunks": [
|
|
1012037
1012032
|
"controls-test-web-part"
|
|
1012038
1012033
|
],
|
|
1012039
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1012040
|
-
"issuerId": "
|
|
1012041
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1012034
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Checkbox/Checkbox.js",
|
|
1012035
|
+
"issuerId": "mFTT",
|
|
1012036
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Checkbox/Checkbox.js",
|
|
1012042
1012037
|
"issuerPath": [
|
|
1012043
1012038
|
{
|
|
1012044
1012039
|
"id": "G6oG",
|
|
@@ -1012066,14 +1012061,14 @@
|
|
|
1012066
1012061
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
1012067
1012062
|
},
|
|
1012068
1012063
|
{
|
|
1012069
|
-
"id": "
|
|
1012070
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1012071
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1012064
|
+
"id": "hBUa",
|
|
1012065
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Checkbox/checkboxStyles.js",
|
|
1012066
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Checkbox/checkboxStyles.js"
|
|
1012072
1012067
|
},
|
|
1012073
1012068
|
{
|
|
1012074
|
-
"id": "
|
|
1012075
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1012076
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1012069
|
+
"id": "mFTT",
|
|
1012070
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Checkbox/Checkbox.js",
|
|
1012071
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Checkbox/Checkbox.js"
|
|
1012077
1012072
|
}
|
|
1012078
1012073
|
],
|
|
1012079
1012074
|
"failed": false,
|
|
@@ -1031123,9 +1031118,9 @@
|
|
|
1031123
1031118
|
"controls-test-web-part",
|
|
1031124
1031119
|
"ootb-fields-field-customizer"
|
|
1031125
1031120
|
],
|
|
1031126
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1031127
|
-
"issuerId": "
|
|
1031128
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1031121
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js",
|
|
1031122
|
+
"issuerId": "16Wd",
|
|
1031123
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js",
|
|
1031129
1031124
|
"issuerPath": [
|
|
1031130
1031125
|
{
|
|
1031131
1031126
|
"id": "G6oG",
|
|
@@ -1031143,14 +1031138,14 @@
|
|
|
1031143
1031138
|
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/index.js"
|
|
1031144
1031139
|
},
|
|
1031145
1031140
|
{
|
|
1031146
|
-
"id": "
|
|
1031147
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1031148
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1031141
|
+
"id": "Cv5W",
|
|
1031142
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.js",
|
|
1031143
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.js"
|
|
1031149
1031144
|
},
|
|
1031150
1031145
|
{
|
|
1031151
|
-
"id": "
|
|
1031152
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1031153
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1031146
|
+
"id": "16Wd",
|
|
1031147
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js",
|
|
1031148
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CompoundButton/CompoundButton.styles.js"
|
|
1031154
1031149
|
}
|
|
1031155
1031150
|
],
|
|
1031156
1031151
|
"failed": false,
|
|
@@ -1072889,7 +1072884,7 @@
|
|
|
1072889
1072884
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
1072890
1072885
|
"type": "harmony import specifier",
|
|
1072891
1072886
|
"userRequest": "react",
|
|
1072892
|
-
"loc": "
|
|
1072887
|
+
"loc": "213:16-35"
|
|
1072893
1072888
|
},
|
|
1072894
1072889
|
{
|
|
1072895
1072890
|
"moduleId": "QnEJ",
|
|
@@ -1072898,7 +1072893,7 @@
|
|
|
1072898
1072893
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
1072899
1072894
|
"type": "harmony import specifier",
|
|
1072900
1072895
|
"userRequest": "react",
|
|
1072901
|
-
"loc": "
|
|
1072896
|
+
"loc": "214:12-31"
|
|
1072902
1072897
|
},
|
|
1072903
1072898
|
{
|
|
1072904
1072899
|
"moduleId": "QnEJ",
|
|
@@ -1072907,7 +1072902,7 @@
|
|
|
1072907
1072902
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
1072908
1072903
|
"type": "harmony import specifier",
|
|
1072909
1072904
|
"userRequest": "react",
|
|
1072910
|
-
"loc": "
|
|
1072905
|
+
"loc": "215:73-92"
|
|
1072911
1072906
|
},
|
|
1072912
1072907
|
{
|
|
1072913
1072908
|
"moduleId": "QnEJ",
|
|
@@ -1072916,7 +1072911,7 @@
|
|
|
1072916
1072911
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
1072917
1072912
|
"type": "harmony import specifier",
|
|
1072918
1072913
|
"userRequest": "react",
|
|
1072919
|
-
"loc": "
|
|
1072914
|
+
"loc": "217:17-36"
|
|
1072920
1072915
|
},
|
|
1072921
1072916
|
{
|
|
1072922
1072917
|
"moduleId": "QnEJ",
|
|
@@ -1072925,7 +1072920,7 @@
|
|
|
1072925
1072920
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
1072926
1072921
|
"type": "harmony import specifier",
|
|
1072927
1072922
|
"userRequest": "react",
|
|
1072928
|
-
"loc": "
|
|
1072923
|
+
"loc": "223:2-17"
|
|
1072929
1072924
|
},
|
|
1072930
1072925
|
{
|
|
1072931
1072926
|
"moduleId": "QoT3",
|
|
@@ -1104218,7 +1104213,7 @@
|
|
|
1104218
1104213
|
],
|
|
1104219
1104214
|
"optimizationBailout": [],
|
|
1104220
1104215
|
"depth": 4,
|
|
1104221
|
-
"source": "export var version = \"3.8.0-beta.
|
|
1104216
|
+
"source": "export var version = \"3.8.0-beta.2192234\";\n"
|
|
1104222
1104217
|
},
|
|
1104223
1104218
|
{
|
|
1104224
1104219
|
"id": "cLrF",
|
|
@@ -1105848,9 +1105843,9 @@
|
|
|
1105848
1105843
|
"chunks": [
|
|
1105849
1105844
|
"controls-test-web-part"
|
|
1105850
1105845
|
],
|
|
1105851
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1105852
|
-
"issuerId": "
|
|
1105853
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1105846
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Embed/Embed.js",
|
|
1105847
|
+
"issuerId": "7WKc",
|
|
1105848
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Embed/Embed.js",
|
|
1105854
1105849
|
"issuerPath": [
|
|
1105855
1105850
|
{
|
|
1105856
1105851
|
"id": "G6oG",
|
|
@@ -1105878,14 +1105873,14 @@
|
|
|
1105878
1105873
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
1105879
1105874
|
},
|
|
1105880
1105875
|
{
|
|
1105881
|
-
"id": "
|
|
1105882
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1105883
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1105876
|
+
"id": "HHH0",
|
|
1105877
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Embed/embedStyles.js",
|
|
1105878
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Embed/embedStyles.js"
|
|
1105884
1105879
|
},
|
|
1105885
1105880
|
{
|
|
1105886
|
-
"id": "
|
|
1105887
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1105888
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1105881
|
+
"id": "7WKc",
|
|
1105882
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Embed/Embed.js",
|
|
1105883
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Embed/Embed.js"
|
|
1105889
1105884
|
}
|
|
1105890
1105885
|
],
|
|
1105891
1105886
|
"failed": false,
|
|
@@ -1165474,9 +1165469,9 @@
|
|
|
1165474
1165469
|
"chunks": [
|
|
1165475
1165470
|
"controls-test-web-part"
|
|
1165476
1165471
|
],
|
|
1165477
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1165478
|
-
"issuerId": "
|
|
1165479
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1165472
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Carousel/CarouselNavigationItem.js",
|
|
1165473
|
+
"issuerId": "u8WG",
|
|
1165474
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Carousel/CarouselNavigationItem.js",
|
|
1165480
1165475
|
"issuerPath": [
|
|
1165481
1165476
|
{
|
|
1165482
1165477
|
"id": "G6oG",
|
|
@@ -1165504,14 +1165499,14 @@
|
|
|
1165504
1165499
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
1165505
1165500
|
},
|
|
1165506
1165501
|
{
|
|
1165507
|
-
"id": "
|
|
1165508
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1165509
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1165502
|
+
"id": "Wd04",
|
|
1165503
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Carousel/carouselNavigationItemStyles.js",
|
|
1165504
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Carousel/carouselNavigationItemStyles.js"
|
|
1165510
1165505
|
},
|
|
1165511
1165506
|
{
|
|
1165512
|
-
"id": "
|
|
1165513
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1165514
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1165507
|
+
"id": "u8WG",
|
|
1165508
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Carousel/CarouselNavigationItem.js",
|
|
1165509
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Carousel/CarouselNavigationItem.js"
|
|
1165515
1165510
|
}
|
|
1165516
1165511
|
],
|
|
1165517
1165512
|
"failed": false,
|
|
@@ -1179551,14 +1179546,14 @@
|
|
|
1179551
1179546
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
1179552
1179547
|
},
|
|
1179553
1179548
|
{
|
|
1179554
|
-
"id": "
|
|
1179555
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1179556
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1179549
|
+
"id": "0Yof",
|
|
1179550
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
1179551
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
1179557
1179552
|
},
|
|
1179558
1179553
|
{
|
|
1179559
|
-
"id": "
|
|
1179560
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1179561
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1179554
|
+
"id": "c/6b",
|
|
1179555
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
1179556
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
1179562
1179557
|
},
|
|
1179563
1179558
|
{
|
|
1179564
1179559
|
"id": "4eMn",
|
|
@@ -1182601,7 +1182596,7 @@
|
|
|
1182601
1182596
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
1182602
1182597
|
"type": "harmony import specifier",
|
|
1182603
1182598
|
"userRequest": "office-ui-fabric-react/lib/ComboBox",
|
|
1182604
|
-
"loc": "
|
|
1182599
|
+
"loc": "214:32-40"
|
|
1182605
1182600
|
},
|
|
1182606
1182601
|
{
|
|
1182607
1182602
|
"moduleId": "YEex",
|
|
@@ -1197605,9 +1197600,9 @@
|
|
|
1197605
1197600
|
"chunks": [
|
|
1197606
1197601
|
"controls-test-web-part"
|
|
1197607
1197602
|
],
|
|
1197608
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
1197609
|
-
"issuerId": "
|
|
1197610
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
1197603
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
1197604
|
+
"issuerId": "DQiM",
|
|
1197605
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
1197611
1197606
|
"issuerPath": [
|
|
1197612
1197607
|
{
|
|
1197613
1197608
|
"id": "G6oG",
|
|
@@ -1197625,9 +1197620,9 @@
|
|
|
1197625
1197620
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/index.js"
|
|
1197626
1197621
|
},
|
|
1197627
1197622
|
{
|
|
1197628
|
-
"id": "
|
|
1197629
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
1197630
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
1197623
|
+
"id": "DQiM",
|
|
1197624
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
1197625
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js"
|
|
1197631
1197626
|
}
|
|
1197632
1197627
|
],
|
|
1197633
1197628
|
"failed": false,
|
|
@@ -1198083,14 +1198078,14 @@
|
|
|
1198083
1198078
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
1198084
1198079
|
},
|
|
1198085
1198080
|
{
|
|
1198086
|
-
"id": "
|
|
1198087
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1198088
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1198081
|
+
"id": "0Yof",
|
|
1198082
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
1198083
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
1198089
1198084
|
},
|
|
1198090
1198085
|
{
|
|
1198091
|
-
"id": "
|
|
1198092
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1198093
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1198086
|
+
"id": "c/6b",
|
|
1198087
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
1198088
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
1198094
1198089
|
},
|
|
1198095
1198090
|
{
|
|
1198096
1198091
|
"id": "4eMn",
|
|
@@ -1203023,7 +1203018,7 @@
|
|
|
1203023
1203018
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
1203024
1203019
|
"type": "harmony import specifier",
|
|
1203025
1203020
|
"userRequest": "./ComboBoxListItemPicker.module.scss",
|
|
1203026
|
-
"loc": "
|
|
1203021
|
+
"loc": "213:56-62"
|
|
1203027
1203022
|
},
|
|
1203028
1203023
|
{
|
|
1203029
1203024
|
"moduleId": "QnEJ",
|
|
@@ -1203032,7 +1203027,7 @@
|
|
|
1203032
1203027
|
"moduleName": "./lib/controls/listItemPicker/ComboBoxListItemPicker.js",
|
|
1203033
1203028
|
"type": "harmony import specifier",
|
|
1203034
1203029
|
"userRequest": "./ComboBoxListItemPicker.module.scss",
|
|
1203035
|
-
"loc": "
|
|
1203030
|
+
"loc": "215:115-121"
|
|
1203036
1203031
|
}
|
|
1203037
1203032
|
],
|
|
1203038
1203033
|
"providedExports": [
|
|
@@ -1212140,7 +1212135,7 @@
|
|
|
1212140
1212135
|
"name": "./lib/services/PeopleSearchService.js",
|
|
1212141
1212136
|
"index": 2770,
|
|
1212142
1212137
|
"index2": 2771,
|
|
1212143
|
-
"size":
|
|
1212138
|
+
"size": 28420,
|
|
1212144
1212139
|
"cacheable": true,
|
|
1212145
1212140
|
"built": true,
|
|
1212146
1212141
|
"optional": false,
|
|
@@ -1212207,7 +1212202,7 @@
|
|
|
1212207
1212202
|
],
|
|
1212208
1212203
|
"optimizationBailout": [],
|
|
1212209
1212204
|
"depth": 5,
|
|
1212210
|
-
"source": "var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { SPHttpClient } from '@microsoft/sp-http';\nimport { Environment, EnvironmentType } from '@microsoft/sp-core-library';\nimport { MockUsers, PeoplePickerMockClient } from './PeoplePickerMockClient';\nimport { PrincipalType } from \"../PeoplePicker\";\nimport { cloneDeep, findIndex } from \"@microsoft/sp-lodash-subset\";\nimport { sp } from '@pnp/sp';\nimport \"@pnp/sp/sputilities\";\nimport { Web } from \"@pnp/sp/webs\";\nimport \"@pnp/sp/webs\";\nimport \"@pnp/sp/site-users/web\";\n/**\n * Service implementation to search people in SharePoint\n */\nvar SPPeopleSearchService = /** @class */ (function () {\n /**\n * Service constructor\n */\n function SPPeopleSearchService(context) {\n this.context = context;\n this.cachedPersonas = {};\n this.cachedLocalUsers = {};\n this.cachedLocalUsers[this.context.pageContext.web.absoluteUrl] = [];\n // Setup PnPjs\n sp.setup(this.context);\n }\n /**\n * Generate the user photo link using SharePoint user photo endpoint.\n *\n * @param value\n */\n SPPeopleSearchService.prototype.generateUserPhotoLink = function (value) {\n return this.context.pageContext.web.absoluteUrl + \"/_layouts/15/userphoto.aspx?accountname=\" + encodeURIComponent(value) + \"&size=M\";\n };\n /**\n * Generate sum of principal types\n *\n * PrincipalType controls the type of entities that are returned in the results.\n * Choices are All - 15, Distribution List - 2 , Security Groups - 4, SharePoint Groups - 8, User - 1.\n * These values can be combined (example: 13 is security + SP groups + users)\n *\n * @param principalTypes\n */\n SPPeopleSearchService.prototype.getSumOfPrincipalTypes = function (principalTypes) {\n return !!principalTypes && principalTypes.length > 0 ? principalTypes.reduce(function (a, b) { return a + b; }, 0) : 1;\n };\n /**\n * Retrieve the specified group\n *\n * @param groupName\n * @param siteUrl\n */\n SPPeopleSearchService.prototype.getGroupId = function (groupName, siteUrl) {\n if (siteUrl === void 0) { siteUrl = null; }\n return __awaiter(this, void 0, void 0, function () {\n var groups;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 1];\n return [2 /*return*/, 1];\n case 1: return [4 /*yield*/, this.searchTenant(siteUrl, groupName, 1, [PrincipalType.SharePointGroup], false, 0)];\n case 2:\n groups = _a.sent();\n return [2 /*return*/, (groups && groups.length > 0) ? parseInt(groups[0].id) : null];\n }\n });\n });\n };\n /**\n * Search person by its email or login name\n */\n SPPeopleSearchService.prototype.searchPersonByEmailOrLogin = function (email, principalTypes, siteUrl, groupId, ensureUser) {\n if (siteUrl === void 0) { siteUrl = null; }\n if (groupId === void 0) { groupId = null; }\n if (ensureUser === void 0) { ensureUser = false; }\n return __awaiter(this, void 0, void 0, function () {\n var mockUsers, userResults, _i, groupId_1, id, tmpResults, logins_1, filteredUserResults, userResults;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 2];\n return [4 /*yield*/, this.searchPeopleFromMock(email)];\n case 1:\n mockUsers = _a.sent();\n return [2 /*return*/, (mockUsers && mockUsers.length > 0) ? mockUsers[0] : null];\n case 2:\n if (!Array.isArray(groupId)) return [3 /*break*/, 7];\n userResults = [];\n _i = 0, groupId_1 = groupId;\n _a.label = 3;\n case 3:\n if (!(_i < groupId_1.length)) return [3 /*break*/, 6];\n id = groupId_1[_i];\n return [4 /*yield*/, this.searchTenant(siteUrl, email, 1, principalTypes, ensureUser, id)];\n case 4:\n tmpResults = _a.sent();\n userResults = userResults.concat(tmpResults);\n _a.label = 5;\n case 5:\n _i++;\n return [3 /*break*/, 3];\n case 6:\n logins_1 = userResults.map(function (u) { return u.loginName; });\n filteredUserResults = userResults.filter(function (_a, index) {\n var loginName = _a.loginName;\n return !logins_1.includes(loginName, index + 1);\n });\n return [2 /*return*/, (filteredUserResults && filteredUserResults.length > 0) ? filteredUserResults[0] : null];\n case 7: return [4 /*yield*/, this.searchTenant(siteUrl, email, 1, principalTypes, ensureUser, groupId)];\n case 8:\n userResults = _a.sent();\n return [2 /*return*/, (userResults && userResults.length > 0) ? userResults[0] : null];\n }\n });\n });\n };\n /**\n * Search All Users from the SharePoint People database\n */\n SPPeopleSearchService.prototype.searchPeople = function (query, maximumSuggestions, principalTypes, siteUrl, groupId, ensureUser) {\n if (siteUrl === void 0) { siteUrl = null; }\n if (groupId === void 0) { groupId = null; }\n if (ensureUser === void 0) { ensureUser = false; }\n return __awaiter(this, void 0, void 0, function () {\n var userResults, _i, groupId_2, id, tmpResults, logins_2, filteredUserResults;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 1];\n // If the running environment is local, load the data from the mock\n return [2 /*return*/, this.searchPeopleFromMock(query)];\n case 1:\n if (!Array.isArray(groupId)) return [3 /*break*/, 6];\n userResults = [];\n _i = 0, groupId_2 = groupId;\n _a.label = 2;\n case 2:\n if (!(_i < groupId_2.length)) return [3 /*break*/, 5];\n id = groupId_2[_i];\n return [4 /*yield*/, this.searchTenant(siteUrl, query, maximumSuggestions, principalTypes, ensureUser, id)];\n case 3:\n tmpResults = _a.sent();\n userResults = userResults.concat(tmpResults);\n _a.label = 4;\n case 4:\n _i++;\n return [3 /*break*/, 2];\n case 5:\n logins_2 = userResults.map(function (u) { return u.loginName; });\n filteredUserResults = userResults.filter(function (_a, index) {\n var loginName = _a.loginName;\n return !logins_2.includes(loginName, index + 1);\n });\n return [2 /*return*/, filteredUserResults];\n case 6: return [4 /*yield*/, this.searchTenant(siteUrl, query, maximumSuggestions, principalTypes, ensureUser, groupId)];\n case 7: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n /**\n * Local site search\n */\n SPPeopleSearchService.prototype.localSearch = function (siteUrl, query, principalTypes, showHiddenInUI, groupName, exactMatch) {\n if (exactMatch === void 0) { exactMatch = false; }\n return __awaiter(this, void 0, void 0, function () {\n var stringVal, cachedPropertyName, filterVal, restApi, data, userDataResp, persons, e_1;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 4, , 5]);\n stringVal = \"\";\n cachedPropertyName = null;\n // Check if service needs to search in the site or group\n if (groupName) {\n stringVal = \"/_api/web/sitegroups/GetByName('\" + groupName + \"')/users\";\n cachedPropertyName = siteUrl + \"-\" + groupName;\n }\n else {\n stringVal = \"/_api/web/siteusers\";\n cachedPropertyName = siteUrl;\n }\n if (!(typeof this.cachedPersonas[cachedPropertyName] === \"undefined\")) return [3 /*break*/, 3];\n filterVal = \"\";\n if (principalTypes) {\n filterVal = \"?$filter=(\" + principalTypes.map(function (principalType) { return \"PrincipalType eq \" + principalType; }).join(\" or \") + \")\";\n }\n // filter for showHiddenInUI\n filterVal = filterVal ? filterVal + \" and (IsHiddenInUI eq \" + showHiddenInUI + \")\" : \"?$filter=IsHiddenInUI eq \" + showHiddenInUI;\n restApi = \"\" + siteUrl + stringVal + filterVal;\n return [4 /*yield*/, this.context.spHttpClient.get(restApi, SPHttpClient.configurations.v1, {\n headers: {\n 'Accept': 'application/json;odata.metadata=none'\n }\n })];\n case 1:\n data = _a.sent();\n if (!data.ok) return [3 /*break*/, 3];\n return [4 /*yield*/, data.json()];\n case 2:\n userDataResp = _a.sent();\n if (userDataResp && userDataResp.value && userDataResp.value.length > 0) {\n this.cachedPersonas[cachedPropertyName] = cloneDeep(userDataResp.value);\n }\n _a.label = 3;\n case 3:\n // Check if persons or groups were retrieved and return the ones for the query\n if (this.cachedPersonas[cachedPropertyName]) {\n persons = this.cachedPersonas[cachedPropertyName];\n if (query) {\n // Check if exact match is required\n if (exactMatch) {\n persons = persons.filter(function (element) { return element.Email.toLowerCase() === query.toLowerCase() || element.LoginName.toLowerCase() === query.toLowerCase(); });\n }\n else {\n persons = persons.filter(function (element) { return element.Title.toLowerCase().indexOf(query.toLowerCase()) !== -1 || element.Email.toLowerCase().indexOf(query.toLowerCase()) !== -1 || element.LoginName.toLowerCase().indexOf(query.toLowerCase()) !== -1; });\n }\n }\n return [2 /*return*/, persons.map(function (item) { return ({\n id: item.Id.toString(),\n imageUrl: item.PrincipalType === PrincipalType.User ? _this.generateUserPhotoLink(item.Email) : null,\n imageInitials: _this.getFullNameInitials(item.Title),\n text: item.Title,\n secondaryText: item.Email || item.LoginName,\n tertiaryText: \"\",\n optionalText: \"\" // anything\n }); })];\n }\n // Nothing to return\n return [2 /*return*/, []];\n case 4:\n e_1 = _a.sent();\n console.error(\"PeopleSearchService::localSearch: error occured while fetching the users.\");\n return [2 /*return*/, []];\n case 5: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Tenant search\n */\n SPPeopleSearchService.prototype.searchTenant = function (siteUrl, query, maximumSuggestions, principalTypes, ensureUser, groupId) {\n return __awaiter(this, void 0, void 0, function () {\n var userRequestUrl, searchBody, graphUserRequestUrl, graphClient, graphUserResponse, _users_2, batch, _i, _a, value, userResult, _b, _users_1, user, httpPostOptions, data, userDataResp, values, _c, values_1, value, id, userResults, e_2;\n var _this = this;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n _d.trys.push([0, 14, , 15]);\n userRequestUrl = (siteUrl || this.context.pageContext.web.absoluteUrl) + \"/_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser\";\n searchBody = {\n queryParams: {\n AllowEmailAddresses: true,\n AllowMultipleEntities: false,\n AllUrlZones: false,\n MaximumEntitySuggestions: maximumSuggestions,\n PrincipalSource: 15,\n PrincipalType: this.getSumOfPrincipalTypes(principalTypes),\n QueryString: query\n }\n };\n // Search on the local site when \"0\"\n if (siteUrl) {\n searchBody.queryParams[\"SharePointGroupID\"] = 0;\n }\n if (!(groupId && typeof (groupId) === 'number')) return [3 /*break*/, 1];\n searchBody.queryParams[\"SharePointGroupID\"] = groupId;\n return [3 /*break*/, 6];\n case 1:\n if (!(groupId && typeof (groupId) === 'string')) return [3 /*break*/, 6];\n graphUserRequestUrl = \"/groups/\" + groupId + \"/members?$count=true&$search=\\\"displayName:\" + query + \"\\\" OR \\\"mail:\" + query + \"\\\"\";\n return [4 /*yield*/, this.context.msGraphClientFactory.getClient()];\n case 2:\n graphClient = _d.sent();\n return [4 /*yield*/, graphClient.api(graphUserRequestUrl).header('ConsistencyLevel', 'eventual').get()];\n case 3:\n graphUserResponse = _d.sent();\n if (!(graphUserResponse.value && graphUserResponse.value.length > 0)) return [3 /*break*/, 5];\n _users_2 = [];\n batch = Web(this.context.pageContext.web.absoluteUrl).createBatch();\n for (_i = 0, _a = graphUserResponse.value; _i < _a.length; _i++) {\n value = _a[_i];\n sp.web.inBatch(batch).ensureUser(value.userPrincipalName).then(function (u) { return _users_2.push(u.data); });\n }\n return [4 /*yield*/, batch.execute()];\n case 4:\n _d.sent();\n userResult = [];\n for (_b = 0, _users_1 = _users_2; _b < _users_1.length; _b++) {\n user = _users_1[_b];\n userResult.push({\n id: ensureUser ? user.Id : user.LoginName,\n loginName: user.LoginName,\n imageUrl: this.generateUserPhotoLink(user.Email),\n imageInitials: this.getFullNameInitials(user.Title),\n text: user.Title,\n secondaryText: user.Email,\n tertiaryText: '',\n optionalText: '' // anything\n });\n }\n return [2 /*return*/, userResult];\n case 5: \n //Nothing to return\n return [2 /*return*/, []];\n case 6:\n httpPostOptions = {\n headers: {\n 'accept': 'application/json',\n 'content-type': 'application/json'\n },\n body: JSON.stringify(searchBody)\n };\n return [4 /*yield*/, this.context.spHttpClient.post(userRequestUrl, SPHttpClient.configurations.v1, httpPostOptions)];\n case 7:\n data = _d.sent();\n if (!data.ok) return [3 /*break*/, 13];\n return [4 /*yield*/, data.json()];\n case 8:\n userDataResp = _d.sent();\n if (!(userDataResp && userDataResp.value && userDataResp.value.length > 0)) return [3 /*break*/, 13];\n values = userDataResp.value;\n if (typeof userDataResp.value === \"string\") {\n values = JSON.parse(userDataResp.value);\n }\n // Filter out \"UNVALIDATED_EMAIL_ADDRESS\"\n values = values.filter(function (v) { return !(v.EntityData && v.EntityData.PrincipalType && v.EntityData.PrincipalType === \"UNVALIDATED_EMAIL_ADDRESS\"); });\n if (!ensureUser) return [3 /*break*/, 12];\n _c = 0, values_1 = values;\n _d.label = 9;\n case 9:\n if (!(_c < values_1.length)) return [3 /*break*/, 12];\n value = values_1[_c];\n if (!(!value.EntityData || (value.EntityData && typeof value.EntityData.SPGroupID === \"undefined\"))) return [3 /*break*/, 11];\n return [4 /*yield*/, this.ensureUser(value.Key)];\n case 10:\n id = _d.sent();\n value.LoginName = value.Key;\n value.Key = id;\n _d.label = 11;\n case 11:\n _c++;\n return [3 /*break*/, 9];\n case 12:\n // Filter out NULL keys\n values = values.filter(function (v) { return v.Key !== null; });\n userResults = values.map(function (element) {\n var _a, _b;\n switch (element.EntityType) {\n case 'User':\n var accountName = element.Description || \"\";\n var email = ((_a = element.EntityData) === null || _a === void 0 ? void 0 : _a.Email) || element.Description;\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageUrl: _this.generateUserPhotoLink(accountName),\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: email,\n tertiaryText: \"\",\n optionalText: \"\" // anything\n };\n case 'SecGroup':\n var secondaryText = ((_b = element.EntityData) === null || _b === void 0 ? void 0 : _b.Email) || element.ProviderName;\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: secondaryText,\n };\n case 'FormsRole':\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: element.ProviderName\n };\n default:\n return {\n id: element.EntityData.SPGroupID,\n loginName: element.EntityData.AccountName,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: element.EntityData.AccountName\n };\n }\n });\n return [2 /*return*/, userResults];\n case 13: \n // Nothing to return\n return [2 /*return*/, []];\n case 14:\n e_2 = _d.sent();\n console.error(\"PeopleSearchService::searchTenant: error occured while fetching the users.\");\n return [2 /*return*/, []];\n case 15: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Retrieves the local user ID\n *\n * @param userId\n */\n SPPeopleSearchService.prototype.ensureUser = function (userId) {\n return __awaiter(this, void 0, void 0, function () {\n var siteUrl, users, userIdx, restApi, data, user;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n siteUrl = this.context.pageContext.web.absoluteUrl;\n if (this.cachedLocalUsers && this.cachedLocalUsers[siteUrl]) {\n users = this.cachedLocalUsers[siteUrl];\n userIdx = findIndex(users, function (u) { return u.LoginName === userId; });\n if (userIdx !== -1) {\n return [2 /*return*/, users[userIdx].Id];\n }\n }\n restApi = siteUrl + \"/_api/web/ensureuser\";\n return [4 /*yield*/, this.context.spHttpClient.post(restApi, SPHttpClient.configurations.v1, {\n body: JSON.stringify({ 'logonName': userId })\n })];\n case 1:\n data = _a.sent();\n if (!data.ok) return [3 /*break*/, 3];\n return [4 /*yield*/, data.json()];\n case 2:\n user = _a.sent();\n if (user && user.Id) {\n this.cachedLocalUsers[siteUrl].push(user);\n return [2 /*return*/, user.Id];\n }\n _a.label = 3;\n case 3: return [2 /*return*/, null];\n }\n });\n });\n };\n /**\n * Generates Initials from a full name\n */\n SPPeopleSearchService.prototype.getFullNameInitials = function (fullName) {\n if (fullName === null) {\n return fullName;\n }\n var words = fullName.split(' ');\n if (words.length === 0) {\n return '';\n }\n else if (words.length === 1) {\n return words[0].charAt(0);\n }\n else {\n return (words[0].charAt(0) + words[1].charAt(0));\n }\n };\n /**\n * Gets the user photo url\n */\n SPPeopleSearchService.prototype.getUserPhotoUrl = function (userEmail, siteUrl) {\n return siteUrl + \"/_layouts/15/userphoto.aspx?size=S&accountname=\" + userEmail;\n };\n /**\n * Returns fake people results for the Mock mode\n */\n SPPeopleSearchService.prototype.searchPeopleFromMock = function (query) {\n var mockClient = new PeoplePickerMockClient();\n var filterValue = { valToCompare: query };\n return new Promise(function (resolve) { return resolve(MockUsers.filter(mockClient.filterPeople, filterValue)); });\n };\n return SPPeopleSearchService;\n}());\nexport default SPPeopleSearchService;\n"
|
|
1212205
|
+
"source": "var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { SPHttpClient } from '@microsoft/sp-http';\nimport { Environment, EnvironmentType } from '@microsoft/sp-core-library';\nimport { MockUsers, PeoplePickerMockClient } from './PeoplePickerMockClient';\nimport { PrincipalType } from \"../PeoplePicker\";\nimport { cloneDeep, findIndex } from \"@microsoft/sp-lodash-subset\";\nimport { sp } from '@pnp/sp';\nimport \"@pnp/sp/sputilities\";\nimport { Web } from \"@pnp/sp/webs\";\nimport \"@pnp/sp/webs\";\nimport \"@pnp/sp/site-users/web\";\n/**\n * Service implementation to search people in SharePoint\n */\nvar SPPeopleSearchService = /** @class */ (function () {\n /**\n * Service constructor\n */\n function SPPeopleSearchService(context) {\n this.context = context;\n this.cachedPersonas = {};\n this.cachedLocalUsers = {};\n this.cachedLocalUsers[this.context.pageContext.web.absoluteUrl] = [];\n // Setup PnPjs\n sp.setup(this.context);\n }\n /**\n * Generate the user photo link using SharePoint user photo endpoint.\n *\n * @param value\n */\n SPPeopleSearchService.prototype.generateUserPhotoLink = function (value) {\n return this.context.pageContext.web.absoluteUrl + \"/_layouts/15/userphoto.aspx?accountname=\" + encodeURIComponent(value) + \"&size=M\";\n };\n /**\n * Generate sum of principal types\n *\n * PrincipalType controls the type of entities that are returned in the results.\n * Choices are All - 15, Distribution List - 2 , Security Groups - 4, SharePoint Groups - 8, User - 1.\n * These values can be combined (example: 13 is security + SP groups + users)\n *\n * @param principalTypes\n */\n SPPeopleSearchService.prototype.getSumOfPrincipalTypes = function (principalTypes) {\n return !!principalTypes && principalTypes.length > 0 ? principalTypes.reduce(function (a, b) { return a + b; }, 0) : 1;\n };\n /**\n * Retrieve the specified group\n *\n * @param groupName\n * @param siteUrl\n */\n SPPeopleSearchService.prototype.getGroupId = function (groupName, siteUrl) {\n if (siteUrl === void 0) { siteUrl = null; }\n return __awaiter(this, void 0, void 0, function () {\n var groups;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 1];\n return [2 /*return*/, 1];\n case 1: return [4 /*yield*/, this.searchTenant(siteUrl, groupName, 1, [PrincipalType.SharePointGroup], false, 0)];\n case 2:\n groups = _a.sent();\n return [2 /*return*/, (groups && groups.length > 0) ? parseInt(groups[0].id) : null];\n }\n });\n });\n };\n /**\n * Search person by its email or login name\n */\n SPPeopleSearchService.prototype.searchPersonByEmailOrLogin = function (email, principalTypes, siteUrl, groupId, ensureUser) {\n if (siteUrl === void 0) { siteUrl = null; }\n if (groupId === void 0) { groupId = null; }\n if (ensureUser === void 0) { ensureUser = false; }\n return __awaiter(this, void 0, void 0, function () {\n var mockUsers, userResults, _i, groupId_1, id, tmpResults, logins_1, filteredUserResults, userResults;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 2];\n return [4 /*yield*/, this.searchPeopleFromMock(email)];\n case 1:\n mockUsers = _a.sent();\n return [2 /*return*/, (mockUsers && mockUsers.length > 0) ? mockUsers[0] : null];\n case 2:\n if (!Array.isArray(groupId)) return [3 /*break*/, 7];\n userResults = [];\n _i = 0, groupId_1 = groupId;\n _a.label = 3;\n case 3:\n if (!(_i < groupId_1.length)) return [3 /*break*/, 6];\n id = groupId_1[_i];\n return [4 /*yield*/, this.searchTenant(siteUrl, email, 1, principalTypes, ensureUser, id)];\n case 4:\n tmpResults = _a.sent();\n userResults = userResults.concat(tmpResults);\n _a.label = 5;\n case 5:\n _i++;\n return [3 /*break*/, 3];\n case 6:\n logins_1 = userResults.map(function (u) { return u.loginName; });\n filteredUserResults = userResults.filter(function (_a, index) {\n var loginName = _a.loginName;\n return !logins_1.includes(loginName, index + 1);\n });\n return [2 /*return*/, (filteredUserResults && filteredUserResults.length > 0) ? filteredUserResults[0] : null];\n case 7: return [4 /*yield*/, this.searchTenant(siteUrl, email, 1, principalTypes, ensureUser, groupId)];\n case 8:\n userResults = _a.sent();\n return [2 /*return*/, (userResults && userResults.length > 0) ? userResults[0] : null];\n }\n });\n });\n };\n /**\n * Search All Users from the SharePoint People database\n */\n SPPeopleSearchService.prototype.searchPeople = function (query, maximumSuggestions, principalTypes, siteUrl, groupId, ensureUser) {\n if (siteUrl === void 0) { siteUrl = null; }\n if (groupId === void 0) { groupId = null; }\n if (ensureUser === void 0) { ensureUser = false; }\n return __awaiter(this, void 0, void 0, function () {\n var userResults, _i, groupId_2, id, tmpResults, logins_2, filteredUserResults;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(Environment.type === EnvironmentType.Local)) return [3 /*break*/, 1];\n // If the running environment is local, load the data from the mock\n return [2 /*return*/, this.searchPeopleFromMock(query)];\n case 1:\n if (!Array.isArray(groupId)) return [3 /*break*/, 6];\n userResults = [];\n _i = 0, groupId_2 = groupId;\n _a.label = 2;\n case 2:\n if (!(_i < groupId_2.length)) return [3 /*break*/, 5];\n id = groupId_2[_i];\n return [4 /*yield*/, this.searchTenant(siteUrl, query, maximumSuggestions, principalTypes, ensureUser, id)];\n case 3:\n tmpResults = _a.sent();\n userResults = userResults.concat(tmpResults);\n _a.label = 4;\n case 4:\n _i++;\n return [3 /*break*/, 2];\n case 5:\n logins_2 = userResults.map(function (u) { return u.loginName; });\n filteredUserResults = userResults.filter(function (_a, index) {\n var loginName = _a.loginName;\n return !logins_2.includes(loginName, index + 1);\n });\n return [2 /*return*/, filteredUserResults];\n case 6: return [4 /*yield*/, this.searchTenant(siteUrl, query, maximumSuggestions, principalTypes, ensureUser, groupId)];\n case 7: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n /**\n * Local site search\n */\n SPPeopleSearchService.prototype.localSearch = function (siteUrl, query, principalTypes, showHiddenInUI, groupName, exactMatch) {\n if (exactMatch === void 0) { exactMatch = false; }\n return __awaiter(this, void 0, void 0, function () {\n var stringVal, cachedPropertyName, filterVal, restApi, data, userDataResp, persons, e_1;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 4, , 5]);\n stringVal = \"\";\n cachedPropertyName = null;\n // Check if service needs to search in the site or group\n if (groupName) {\n stringVal = \"/_api/web/sitegroups/GetByName('\" + groupName + \"')/users\";\n cachedPropertyName = siteUrl + \"-\" + groupName;\n }\n else {\n stringVal = \"/_api/web/siteusers\";\n cachedPropertyName = siteUrl;\n }\n if (!(typeof this.cachedPersonas[cachedPropertyName] === \"undefined\")) return [3 /*break*/, 3];\n filterVal = \"\";\n if (principalTypes) {\n filterVal = \"?$filter=(\" + principalTypes.map(function (principalType) { return \"PrincipalType eq \" + principalType; }).join(\" or \") + \")\";\n }\n // filter for showHiddenInUI\n filterVal = filterVal ? filterVal + \" and (IsHiddenInUI eq \" + showHiddenInUI + \")\" : \"?$filter=IsHiddenInUI eq \" + showHiddenInUI;\n restApi = \"\" + siteUrl + stringVal + filterVal;\n return [4 /*yield*/, this.context.spHttpClient.get(restApi, SPHttpClient.configurations.v1, {\n headers: {\n 'Accept': 'application/json;odata.metadata=none'\n }\n })];\n case 1:\n data = _a.sent();\n if (!data.ok) return [3 /*break*/, 3];\n return [4 /*yield*/, data.json()];\n case 2:\n userDataResp = _a.sent();\n if (userDataResp && userDataResp.value && userDataResp.value.length > 0) {\n this.cachedPersonas[cachedPropertyName] = cloneDeep(userDataResp.value);\n }\n _a.label = 3;\n case 3:\n // Check if persons or groups were retrieved and return the ones for the query\n if (this.cachedPersonas[cachedPropertyName]) {\n persons = this.cachedPersonas[cachedPropertyName];\n if (query) {\n // Check if exact match is required\n if (exactMatch) {\n persons = persons.filter(function (element) { return element.Email.toLowerCase() === query.toLowerCase() || element.LoginName.toLowerCase() === query.toLowerCase(); });\n }\n else {\n persons = persons.filter(function (element) { return element.Title.toLowerCase().indexOf(query.toLowerCase()) !== -1 || element.Email.toLowerCase().indexOf(query.toLowerCase()) !== -1 || element.LoginName.toLowerCase().indexOf(query.toLowerCase()) !== -1; });\n }\n }\n return [2 /*return*/, persons.map(function (item) { return ({\n id: item.Id.toString(),\n imageUrl: item.PrincipalType === PrincipalType.User ? _this.generateUserPhotoLink(item.Email) : null,\n imageInitials: _this.getFullNameInitials(item.Title),\n text: item.Title,\n secondaryText: item.Email || item.LoginName,\n tertiaryText: \"\",\n optionalText: \"\" // anything\n }); })];\n }\n // Nothing to return\n return [2 /*return*/, []];\n case 4:\n e_1 = _a.sent();\n console.error(\"PeopleSearchService::localSearch: error occured while fetching the users.\");\n return [2 /*return*/, []];\n case 5: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Tenant search\n */\n SPPeopleSearchService.prototype.searchTenant = function (siteUrl, query, maximumSuggestions, principalTypes, ensureUser, groupId) {\n return __awaiter(this, void 0, void 0, function () {\n var userRequestUrl, searchBody, graphUserRequestUrl, graphClient, graphUserResponse, _users_2, batch, _i, _a, value, userResult, _b, _users_1, user, httpPostOptions, data, userDataResp, values, _c, values_1, value, id, userResults, e_2;\n var _this = this;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n _d.trys.push([0, 14, , 15]);\n userRequestUrl = (siteUrl || this.context.pageContext.web.absoluteUrl) + \"/_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser\";\n searchBody = {\n queryParams: {\n AllowEmailAddresses: true,\n AllowMultipleEntities: false,\n AllUrlZones: false,\n MaximumEntitySuggestions: maximumSuggestions,\n PrincipalSource: 15,\n PrincipalType: this.getSumOfPrincipalTypes(principalTypes),\n QueryString: query\n }\n };\n // Search on the local site when \"0\"\n if (siteUrl) {\n searchBody.queryParams[\"SharePointGroupID\"] = 0;\n }\n if (!(groupId && typeof (groupId) === 'number')) return [3 /*break*/, 1];\n searchBody.queryParams[\"SharePointGroupID\"] = groupId;\n return [3 /*break*/, 6];\n case 1:\n if (!(groupId && typeof (groupId) === 'string')) return [3 /*break*/, 6];\n graphUserRequestUrl = \"/groups/\" + groupId + \"/transitiveMembers?$count=true&$search=\\\"displayName:\" + query + \"\\\" OR \\\"mail:\" + query + \"\\\"\";\n return [4 /*yield*/, this.context.msGraphClientFactory.getClient()];\n case 2:\n graphClient = _d.sent();\n return [4 /*yield*/, graphClient.api(graphUserRequestUrl).header('ConsistencyLevel', 'eventual').get()];\n case 3:\n graphUserResponse = _d.sent();\n if (!(graphUserResponse.value && graphUserResponse.value.length > 0)) return [3 /*break*/, 5];\n _users_2 = [];\n batch = Web(this.context.pageContext.web.absoluteUrl).createBatch();\n for (_i = 0, _a = graphUserResponse.value; _i < _a.length; _i++) {\n value = _a[_i];\n sp.web.inBatch(batch).ensureUser(value.userPrincipalName).then(function (u) { return _users_2.push(u.data); });\n }\n return [4 /*yield*/, batch.execute()];\n case 4:\n _d.sent();\n userResult = [];\n for (_b = 0, _users_1 = _users_2; _b < _users_1.length; _b++) {\n user = _users_1[_b];\n userResult.push({\n id: ensureUser ? user.Id : user.LoginName,\n loginName: user.LoginName,\n imageUrl: this.generateUserPhotoLink(user.Email),\n imageInitials: this.getFullNameInitials(user.Title),\n text: user.Title,\n secondaryText: user.Email,\n tertiaryText: '',\n optionalText: '' // anything\n });\n }\n return [2 /*return*/, userResult];\n case 5: \n //Nothing to return\n return [2 /*return*/, []];\n case 6:\n httpPostOptions = {\n headers: {\n 'accept': 'application/json',\n 'content-type': 'application/json'\n },\n body: JSON.stringify(searchBody)\n };\n return [4 /*yield*/, this.context.spHttpClient.post(userRequestUrl, SPHttpClient.configurations.v1, httpPostOptions)];\n case 7:\n data = _d.sent();\n if (!data.ok) return [3 /*break*/, 13];\n return [4 /*yield*/, data.json()];\n case 8:\n userDataResp = _d.sent();\n if (!(userDataResp && userDataResp.value && userDataResp.value.length > 0)) return [3 /*break*/, 13];\n values = userDataResp.value;\n if (typeof userDataResp.value === \"string\") {\n values = JSON.parse(userDataResp.value);\n }\n // Filter out \"UNVALIDATED_EMAIL_ADDRESS\"\n values = values.filter(function (v) { return !(v.EntityData && v.EntityData.PrincipalType && v.EntityData.PrincipalType === \"UNVALIDATED_EMAIL_ADDRESS\"); });\n if (!ensureUser) return [3 /*break*/, 12];\n _c = 0, values_1 = values;\n _d.label = 9;\n case 9:\n if (!(_c < values_1.length)) return [3 /*break*/, 12];\n value = values_1[_c];\n if (!(!value.EntityData || (value.EntityData && typeof value.EntityData.SPGroupID === \"undefined\"))) return [3 /*break*/, 11];\n return [4 /*yield*/, this.ensureUser(value.Key)];\n case 10:\n id = _d.sent();\n value.LoginName = value.Key;\n value.Key = id;\n _d.label = 11;\n case 11:\n _c++;\n return [3 /*break*/, 9];\n case 12:\n // Filter out NULL keys\n values = values.filter(function (v) { return v.Key !== null; });\n userResults = values.map(function (element) {\n var _a, _b;\n switch (element.EntityType) {\n case 'User':\n var accountName = element.Description || \"\";\n var email = ((_a = element.EntityData) === null || _a === void 0 ? void 0 : _a.Email) || element.Description;\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageUrl: _this.generateUserPhotoLink(accountName),\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: email,\n tertiaryText: \"\",\n optionalText: \"\" // anything\n };\n case 'SecGroup':\n var secondaryText = ((_b = element.EntityData) === null || _b === void 0 ? void 0 : _b.Email) || element.ProviderName;\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: secondaryText,\n };\n case 'FormsRole':\n return {\n id: element.Key,\n loginName: element.LoginName ? element.LoginName : element.Key,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: element.ProviderName\n };\n default:\n return {\n id: element.EntityData.SPGroupID,\n loginName: element.EntityData.AccountName,\n imageInitials: _this.getFullNameInitials(element.DisplayText),\n text: element.DisplayText,\n secondaryText: element.EntityData.AccountName\n };\n }\n });\n return [2 /*return*/, userResults];\n case 13: \n // Nothing to return\n return [2 /*return*/, []];\n case 14:\n e_2 = _d.sent();\n console.error(\"PeopleSearchService::searchTenant: error occured while fetching the users.\");\n return [2 /*return*/, []];\n case 15: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Retrieves the local user ID\n *\n * @param userId\n */\n SPPeopleSearchService.prototype.ensureUser = function (userId) {\n return __awaiter(this, void 0, void 0, function () {\n var siteUrl, users, userIdx, restApi, data, user;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n siteUrl = this.context.pageContext.web.absoluteUrl;\n if (this.cachedLocalUsers && this.cachedLocalUsers[siteUrl]) {\n users = this.cachedLocalUsers[siteUrl];\n userIdx = findIndex(users, function (u) { return u.LoginName === userId; });\n if (userIdx !== -1) {\n return [2 /*return*/, users[userIdx].Id];\n }\n }\n restApi = siteUrl + \"/_api/web/ensureuser\";\n return [4 /*yield*/, this.context.spHttpClient.post(restApi, SPHttpClient.configurations.v1, {\n body: JSON.stringify({ 'logonName': userId })\n })];\n case 1:\n data = _a.sent();\n if (!data.ok) return [3 /*break*/, 3];\n return [4 /*yield*/, data.json()];\n case 2:\n user = _a.sent();\n if (user && user.Id) {\n this.cachedLocalUsers[siteUrl].push(user);\n return [2 /*return*/, user.Id];\n }\n _a.label = 3;\n case 3: return [2 /*return*/, null];\n }\n });\n });\n };\n /**\n * Generates Initials from a full name\n */\n SPPeopleSearchService.prototype.getFullNameInitials = function (fullName) {\n if (fullName === null) {\n return fullName;\n }\n var words = fullName.split(' ');\n if (words.length === 0) {\n return '';\n }\n else if (words.length === 1) {\n return words[0].charAt(0);\n }\n else {\n return (words[0].charAt(0) + words[1].charAt(0));\n }\n };\n /**\n * Gets the user photo url\n */\n SPPeopleSearchService.prototype.getUserPhotoUrl = function (userEmail, siteUrl) {\n return siteUrl + \"/_layouts/15/userphoto.aspx?size=S&accountname=\" + userEmail;\n };\n /**\n * Returns fake people results for the Mock mode\n */\n SPPeopleSearchService.prototype.searchPeopleFromMock = function (query) {\n var mockClient = new PeoplePickerMockClient();\n var filterValue = { valToCompare: query };\n return new Promise(function (resolve) { return resolve(MockUsers.filter(mockClient.filterPeople, filterValue)); });\n };\n return SPPeopleSearchService;\n}());\nexport default SPPeopleSearchService;\n"
|
|
1212211
1212206
|
},
|
|
1212212
1212207
|
{
|
|
1212213
1212208
|
"id": "sUmF",
|
|
@@ -1238331,14 +1238326,14 @@
|
|
|
1238331
1238326
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
1238332
1238327
|
},
|
|
1238333
1238328
|
{
|
|
1238334
|
-
"id": "
|
|
1238335
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1238336
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1238329
|
+
"id": "0Yof",
|
|
1238330
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js",
|
|
1238331
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/Menu/menuItemWrapperStyles.js"
|
|
1238337
1238332
|
},
|
|
1238338
1238333
|
{
|
|
1238339
|
-
"id": "
|
|
1238340
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1238341
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1238334
|
+
"id": "c/6b",
|
|
1238335
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js",
|
|
1238336
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Menu/MenuItem.js"
|
|
1238342
1238337
|
},
|
|
1238343
1238338
|
{
|
|
1238344
1238339
|
"id": "4eMn",
|