@pnp/spfx-controls-react 3.7.0-beta.2005908 → 3.7.0-beta.2018695
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 +7 -1
- package/CHANGELOG.md +4 -0
- package/lib/common/telemetry/version.js +1 -1
- package/lib/controls/locationPicker/LocationPicker.js +1 -1
- package/lib/controls/locationPicker/LocationPicker.js.map +1 -1
- package/lib/controls/treeView/ITreeViewProps.d.ts +4 -0
- package/lib/controls/treeView/ITreeViewProps.d.ts.map +1 -1
- package/lib/controls/treeView/TreeItem.d.ts.map +1 -1
- package/lib/controls/treeView/TreeItem.js +9 -2
- package/lib/controls/treeView/TreeItem.js.map +1 -1
- package/lib/controls/treeView/TreeView.d.ts.map +1 -1
- package/lib/controls/treeView/TreeView.js +2 -2
- package/lib/controls/treeView/TreeView.js.map +1 -1
- package/package.json +1 -1
- package/release/webpack-stats/sp-dev-fx-controls-react.stats.json +290 -290
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"errors": [],
|
|
3
3
|
"warnings": [],
|
|
4
4
|
"version": "4.44.2",
|
|
5
|
-
"hash": "
|
|
6
|
-
"time":
|
|
7
|
-
"builtAt":
|
|
5
|
+
"hash": "ee6e2e2e1dc133369de4",
|
|
6
|
+
"time": 19612,
|
|
7
|
+
"builtAt": 1647896198528,
|
|
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": 17706923,
|
|
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": 15955738,
|
|
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": 12784662,
|
|
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": "822d9845849b8fdc5893",
|
|
416
416
|
"siblings": [],
|
|
417
417
|
"parents": [],
|
|
418
418
|
"children": [],
|
|
@@ -2663,7 +2663,7 @@
|
|
|
2663
2663
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
2664
2664
|
"type": "harmony import specifier",
|
|
2665
2665
|
"userRequest": "office-ui-fabric-react/lib/Checkbox",
|
|
2666
|
-
"loc": "
|
|
2666
|
+
"loc": "183:44-52"
|
|
2667
2667
|
},
|
|
2668
2668
|
{
|
|
2669
2669
|
"moduleId": "ihU0",
|
|
@@ -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": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
45825
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.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": "mvdJ",
|
|
45829
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
45830
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.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/List/ListItem.js",
|
|
47343
|
+
"issuerId": "mvdJ",
|
|
47344
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.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": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
47374
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.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": "mvdJ",
|
|
47378
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
47379
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js"
|
|
47380
47380
|
}
|
|
47381
47381
|
],
|
|
47382
47382
|
"failed": false,
|
|
@@ -122057,7 +122057,7 @@
|
|
|
122057
122057
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122058
122058
|
"type": "harmony import specifier",
|
|
122059
122059
|
"userRequest": "./TreeView.module.scss",
|
|
122060
|
-
"loc": "
|
|
122060
|
+
"loc": "127:52-58"
|
|
122061
122061
|
},
|
|
122062
122062
|
{
|
|
122063
122063
|
"moduleId": "hQoI",
|
|
@@ -122066,7 +122066,7 @@
|
|
|
122066
122066
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122067
122067
|
"type": "harmony import specifier",
|
|
122068
122068
|
"userRequest": "./TreeView.module.scss",
|
|
122069
|
-
"loc": "
|
|
122069
|
+
"loc": "136:61-67"
|
|
122070
122070
|
},
|
|
122071
122071
|
{
|
|
122072
122072
|
"moduleId": "hQoI",
|
|
@@ -122075,7 +122075,7 @@
|
|
|
122075
122075
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122076
122076
|
"type": "harmony import specifier",
|
|
122077
122077
|
"userRequest": "./TreeView.module.scss",
|
|
122078
|
-
"loc": "
|
|
122078
|
+
"loc": "140:63-69"
|
|
122079
122079
|
},
|
|
122080
122080
|
{
|
|
122081
122081
|
"moduleId": "hQoI",
|
|
@@ -122084,7 +122084,7 @@
|
|
|
122084
122084
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122085
122085
|
"type": "harmony import specifier",
|
|
122086
122086
|
"userRequest": "./TreeView.module.scss",
|
|
122087
|
-
"loc": "
|
|
122087
|
+
"loc": "145:60-66"
|
|
122088
122088
|
},
|
|
122089
122089
|
{
|
|
122090
122090
|
"moduleId": "hQoI",
|
|
@@ -122093,7 +122093,7 @@
|
|
|
122093
122093
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122094
122094
|
"type": "harmony import specifier",
|
|
122095
122095
|
"userRequest": "./TreeView.module.scss",
|
|
122096
|
-
"loc": "
|
|
122096
|
+
"loc": "163:52-58"
|
|
122097
122097
|
},
|
|
122098
122098
|
{
|
|
122099
122099
|
"moduleId": "hQoI",
|
|
@@ -122102,7 +122102,7 @@
|
|
|
122102
122102
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122103
122103
|
"type": "harmony import specifier",
|
|
122104
122104
|
"userRequest": "./TreeView.module.scss",
|
|
122105
|
-
"loc": "
|
|
122105
|
+
"loc": "163:76-82"
|
|
122106
122106
|
},
|
|
122107
122107
|
{
|
|
122108
122108
|
"moduleId": "hQoI",
|
|
@@ -122111,7 +122111,7 @@
|
|
|
122111
122111
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122112
122112
|
"type": "harmony import specifier",
|
|
122113
122113
|
"userRequest": "./TreeView.module.scss",
|
|
122114
|
-
"loc": "
|
|
122114
|
+
"loc": "164:61-67"
|
|
122115
122115
|
},
|
|
122116
122116
|
{
|
|
122117
122117
|
"moduleId": "hQoI",
|
|
@@ -122120,7 +122120,7 @@
|
|
|
122120
122120
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122121
122121
|
"type": "harmony import specifier",
|
|
122122
122122
|
"userRequest": "./TreeView.module.scss",
|
|
122123
|
-
"loc": "
|
|
122123
|
+
"loc": "169:27-33"
|
|
122124
122124
|
},
|
|
122125
122125
|
{
|
|
122126
122126
|
"moduleId": "hQoI",
|
|
@@ -122129,7 +122129,7 @@
|
|
|
122129
122129
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122130
122130
|
"type": "harmony import specifier",
|
|
122131
122131
|
"userRequest": "./TreeView.module.scss",
|
|
122132
|
-
"loc": "
|
|
122132
|
+
"loc": "170:27-33"
|
|
122133
122133
|
},
|
|
122134
122134
|
{
|
|
122135
122135
|
"moduleId": "hQoI",
|
|
@@ -122138,7 +122138,7 @@
|
|
|
122138
122138
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122139
122139
|
"type": "harmony import specifier",
|
|
122140
122140
|
"userRequest": "./TreeView.module.scss",
|
|
122141
|
-
"loc": "
|
|
122141
|
+
"loc": "171:27-33"
|
|
122142
122142
|
},
|
|
122143
122143
|
{
|
|
122144
122144
|
"moduleId": "hQoI",
|
|
@@ -122147,7 +122147,7 @@
|
|
|
122147
122147
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122148
122148
|
"type": "harmony import specifier",
|
|
122149
122149
|
"userRequest": "./TreeView.module.scss",
|
|
122150
|
-
"loc": "
|
|
122150
|
+
"loc": "172:27-33"
|
|
122151
122151
|
},
|
|
122152
122152
|
{
|
|
122153
122153
|
"moduleId": "hQoI",
|
|
@@ -122156,7 +122156,7 @@
|
|
|
122156
122156
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122157
122157
|
"type": "harmony import specifier",
|
|
122158
122158
|
"userRequest": "./TreeView.module.scss",
|
|
122159
|
-
"loc": "
|
|
122159
|
+
"loc": "183:115-121"
|
|
122160
122160
|
},
|
|
122161
122161
|
{
|
|
122162
122162
|
"moduleId": "hQoI",
|
|
@@ -122165,7 +122165,7 @@
|
|
|
122165
122165
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
122166
122166
|
"type": "harmony import specifier",
|
|
122167
122167
|
"userRequest": "./TreeView.module.scss",
|
|
122168
|
-
"loc": "
|
|
122168
|
+
"loc": "188:64-70"
|
|
122169
122169
|
}
|
|
122170
122170
|
],
|
|
122171
122171
|
"providedExports": [
|
|
@@ -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,
|
|
@@ -136891,7 +136891,7 @@
|
|
|
136891
136891
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
136892
136892
|
"type": "harmony import specifier",
|
|
136893
136893
|
"userRequest": "office-ui-fabric-react/lib/Button",
|
|
136894
|
-
"loc": "
|
|
136894
|
+
"loc": "167:40-50"
|
|
136895
136895
|
},
|
|
136896
136896
|
{
|
|
136897
136897
|
"moduleId": "huR6",
|
|
@@ -185943,7 +185943,7 @@
|
|
|
185943
185943
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
185944
185944
|
"type": "harmony import specifier",
|
|
185945
185945
|
"userRequest": "office-ui-fabric-react/lib/Utilities",
|
|
185946
|
-
"loc": "
|
|
185946
|
+
"loc": "168:56-59"
|
|
185947
185947
|
},
|
|
185948
185948
|
{
|
|
185949
185949
|
"moduleId": "hrfb",
|
|
@@ -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": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
216039
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.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": "mvdJ",
|
|
216043
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
216044
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js"
|
|
216045
216045
|
},
|
|
216046
216046
|
{
|
|
216047
216047
|
"id": "4eMn",
|
|
@@ -246225,7 +246225,7 @@
|
|
|
246225
246225
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
246226
246226
|
"type": "harmony import specifier",
|
|
246227
246227
|
"userRequest": "ControlStrings",
|
|
246228
|
-
"loc": "
|
|
246228
|
+
"loc": "167:152-181"
|
|
246229
246229
|
},
|
|
246230
246230
|
{
|
|
246231
246231
|
"moduleId": "hQoI",
|
|
@@ -246234,7 +246234,7 @@
|
|
|
246234
246234
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
246235
246235
|
"type": "harmony import specifier",
|
|
246236
246236
|
"userRequest": "ControlStrings",
|
|
246237
|
-
"loc": "
|
|
246237
|
+
"loc": "167:184-211"
|
|
246238
246238
|
},
|
|
246239
246239
|
{
|
|
246240
246240
|
"moduleId": "hQoI",
|
|
@@ -246243,7 +246243,7 @@
|
|
|
246243
246243
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
246244
246244
|
"type": "harmony import specifier",
|
|
246245
246245
|
"userRequest": "ControlStrings",
|
|
246246
|
-
"loc": "
|
|
246246
|
+
"loc": "167:231-260"
|
|
246247
246247
|
},
|
|
246248
246248
|
{
|
|
246249
246249
|
"moduleId": "hQoI",
|
|
@@ -246252,7 +246252,7 @@
|
|
|
246252
246252
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
246253
246253
|
"type": "harmony import specifier",
|
|
246254
246254
|
"userRequest": "ControlStrings",
|
|
246255
|
-
"loc": "
|
|
246255
|
+
"loc": "167:263-290"
|
|
246256
246256
|
},
|
|
246257
246257
|
{
|
|
246258
246258
|
"moduleId": "k0SN",
|
|
@@ -267989,7 +267989,7 @@
|
|
|
267989
267989
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
267990
267990
|
"type": "harmony import specifier",
|
|
267991
267991
|
"userRequest": "./ITreeViewProps",
|
|
267992
|
-
"loc": "
|
|
267992
|
+
"loc": "128:53-74"
|
|
267993
267993
|
},
|
|
267994
267994
|
{
|
|
267995
267995
|
"moduleId": "hQoI",
|
|
@@ -267998,7 +267998,7 @@
|
|
|
267998
267998
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
267999
267999
|
"type": "harmony import specifier",
|
|
268000
268000
|
"userRequest": "./ITreeViewProps",
|
|
268001
|
-
"loc": "
|
|
268001
|
+
"loc": "174:57-78"
|
|
268002
268002
|
},
|
|
268003
268003
|
{
|
|
268004
268004
|
"moduleId": "hQoI",
|
|
@@ -268007,7 +268007,7 @@
|
|
|
268007
268007
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
268008
268008
|
"type": "harmony import specifier",
|
|
268009
268009
|
"userRequest": "./ITreeViewProps",
|
|
268010
|
-
"loc": "
|
|
268010
|
+
"loc": "182:71-92"
|
|
268011
268011
|
}
|
|
268012
268012
|
],
|
|
268013
268013
|
"providedExports": [
|
|
@@ -274331,9 +274331,9 @@
|
|
|
274331
274331
|
"chunks": [
|
|
274332
274332
|
"controls-test-web-part"
|
|
274333
274333
|
],
|
|
274334
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/source-map-loader/index.js!/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/lib/controls/accessibleAccordion/components/
|
|
274335
|
-
"issuerId": "
|
|
274336
|
-
"issuerName": "./lib/controls/accessibleAccordion/components/
|
|
274334
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/source-map-loader/index.js!/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/lib/controls/accessibleAccordion/components/AccordionItemHeading.js",
|
|
274335
|
+
"issuerId": "PVoh",
|
|
274336
|
+
"issuerName": "./lib/controls/accessibleAccordion/components/AccordionItemHeading.js",
|
|
274337
274337
|
"issuerPath": [
|
|
274338
274338
|
{
|
|
274339
274339
|
"id": "G6oG",
|
|
@@ -274351,9 +274351,9 @@
|
|
|
274351
274351
|
"name": "./lib/controls/accessibleAccordion/index.js"
|
|
274352
274352
|
},
|
|
274353
274353
|
{
|
|
274354
|
-
"id": "
|
|
274355
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/source-map-loader/index.js!/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/lib/controls/accessibleAccordion/components/
|
|
274356
|
-
"name": "./lib/controls/accessibleAccordion/components/
|
|
274354
|
+
"id": "PVoh",
|
|
274355
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/source-map-loader/index.js!/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/lib/controls/accessibleAccordion/components/AccordionItemHeading.js",
|
|
274356
|
+
"name": "./lib/controls/accessibleAccordion/components/AccordionItemHeading.js"
|
|
274357
274357
|
}
|
|
274358
274358
|
],
|
|
274359
274359
|
"failed": false,
|
|
@@ -286451,7 +286451,7 @@
|
|
|
286451
286451
|
"name": "./lib/controls/locationPicker/LocationPicker.js",
|
|
286452
286452
|
"index": 2900,
|
|
286453
286453
|
"index2": 2902,
|
|
286454
|
-
"size":
|
|
286454
|
+
"size": 15729,
|
|
286455
286455
|
"cacheable": true,
|
|
286456
286456
|
"built": true,
|
|
286457
286457
|
"optional": false,
|
|
@@ -286503,7 +286503,7 @@
|
|
|
286503
286503
|
],
|
|
286504
286504
|
"optimizationBailout": [],
|
|
286505
286505
|
"depth": 2,
|
|
286506
|
-
"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 React from 'react';\nimport { Mode } from './ILocationPicker';\nimport styles from './LocationPicker.module.scss';\nimport { SPHttpClient, HttpClient } from '@microsoft/sp-http';\nimport { Text } from 'office-ui-fabric-react/lib/Text';\nimport { Persona, PersonaSize } from 'office-ui-fabric-react/lib/Persona';\nimport { ComboBox } from 'office-ui-fabric-react/lib/ComboBox';\nimport { FontIcon } from 'office-ui-fabric-react/lib/Icon';\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport * as strings from 'ControlStrings';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nvar LocationPicker = /** @class */ (function (_super) {\n __extends(LocationPicker, _super);\n /**\n * Constructor method\n */\n function LocationPicker(props) {\n var _this = _super.call(this, props) || this;\n _this._token = null;\n _this.focusRef = null;\n _this.onRenderOption = function (item) {\n var text = item.text, locationItem = item.locationItem;\n if (locationItem.EntityType === \"Custom\") {\n return React.createElement(Persona, { text: text, imageAlt: locationItem.EntityType, secondaryText: locationItem.DisplayName, size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials });\n }\n else\n return React.createElement(Persona, { text: text, imageAlt: locationItem.EntityType, secondaryText: _this.getLocationText(locationItem, \"full\"), size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials });\n };\n _this.getMainContent = function () {\n var _a = _this.state, options = _a.options, selectedItem = _a.selectedItem, currentMode = _a.currentMode;\n var _b = _this.props, className = _b.className, disabled = _b.disabled, placeholder = _b.placeholder, errorMessage = _b.errorMessage;\n switch (currentMode) {\n case Mode.empty:\n return React.createElement(ComboBox, { className: className, disabled: disabled, placeholder: placeholder, allowFreeform: true, autoComplete: \"on\", options: options, onRenderOption: _this.onRenderOption, calloutProps: { className: styles.callout }, buttonIconProps: { iconName: \"MapPin\" }, useComboBoxAsMenuWidth: true, openOnKeyboardFocus: true, scrollSelectedToTop: true, isButtonAriaHidden: true, onInput: function (e) { return _this.getLocatios(e.target[\"value\"]); }, onChange: _this.onChange, errorMessage: errorMessage });\n case Mode.editView:\n if (selectedItem.EntityType === \"Custom\") {\n return React.createElement(\"div\", { ref: _this.focusRef, \"data-selection-index\": 0, \"data-is-focusable\": true, role: \"listitem\", className: styles.pickerItemContainer, onBlur: _this.onBlur, tabIndex: 0 },\n React.createElement(Persona, { \"data-is-focusable\": \"false\", imageAlt: selectedItem.EntityType, tabIndex: 0, text: selectedItem.DisplayName, title: \"Location\", className: styles.persona, size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials }),\n React.createElement(IconButton, { \"data-is-focusable\": \"false\", tabIndex: 0, iconProps: { iconName: \"Cancel\" }, title: \"Clear\", ariaLabel: \"Clear\", disabled: disabled, className: styles.closeButton, onClick: _this.onIconButtonClick }));\n }\n return React.createElement(\"div\", { ref: _this.focusRef, \"data-selection-index\": 0, \"data-is-focusable\": true, role: \"listitem\", className: styles.pickerItemContainer, onBlur: _this.onBlur, tabIndex: 0 },\n React.createElement(Persona, { \"data-is-focusable\": \"false\", imageAlt: selectedItem.EntityType, tabIndex: 0, text: selectedItem.DisplayName, title: \"Location\", className: styles.persona, secondaryText: _this.getLocationText(selectedItem, \"full\"), size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials }),\n !disabled ?\n React.createElement(IconButton, { \"data-is-focusable\": \"false\", tabIndex: 0, iconProps: { iconName: \"Cancel\" }, title: \"Clear\", ariaLabel: \"Clear\", disabled: disabled, className: styles.closeButton, onClick: _this.onIconButtonClick }) : null);\n case Mode.view:\n if (selectedItem.EntityType === 'Custom') {\n return React.createElement(\"div\", { className: styles.locationAddressContainer, onClick: _this.onClick },\n React.createElement(\"div\", { className: styles.locationContainer, tabIndex: 0 },\n React.createElement(\"div\", { className: styles.locationDisplayName }, selectedItem.DisplayName)));\n }\n return React.createElement(\"div\", { className: styles.locationAddressContainer, onClick: _this.onClick },\n React.createElement(\"div\", { className: styles.locationContainer, tabIndex: 0 },\n React.createElement(\"div\", { className: styles.locationDisplayName }, selectedItem.DisplayName),\n React.createElement(\"div\", { className: styles.locationContent },\n React.createElement(\"div\", { className: styles.locationAddress }, _this.getLocationText(selectedItem, \"street\")),\n React.createElement(\"div\", { className: styles.locationAddress }, _this.getLocationText(selectedItem, \"noStreet\")))));\n }\n return null;\n };\n _this.getLocationText = function (item, mode) {\n if (!item.Address) {\n return '';\n }\n var address = item.Address;\n switch (mode) {\n case \"street\":\n return address.Street || \"\";\n case \"noStreet\":\n return \"\" + (address.City ? address.City + \", \" : '') + (address.State ? address.State + \", \" : \"\") + (address.CountryOrRegion || \"\");\n }\n return \"\" + (address.Street ? address.Street + \", \" : '') + (address.City ? address.City + \", \" : \"\") + (address.State ? address.State + \", \" : '') + (address.CountryOrRegion || \"\");\n };\n _this.onIconButtonClick = function () {\n _this.setState({ currentMode: Mode.empty, selectedItem: null });\n };\n _this.onClick = function () {\n _this.setState({ currentMode: Mode.editView }, function () {\n if (_this.focusRef.current != null)\n _this.focusRef.current.focus();\n });\n };\n _this.onBlur = function (ev) {\n try {\n if (ev !== null && ev.relatedTarget[\"title\"] !== \"Location\" && ev.relatedTarget[\"title\"] !== \"Clear\") {\n _this.setState({ currentMode: Mode.view });\n }\n }\n catch (_a) { }\n };\n _this.onChange = function (ev, option) {\n _this.setState({ selectedItem: option.locationItem, currentMode: Mode.editView }, function () {\n if (_this.focusRef.current != null)\n _this.focusRef.current.focus();\n });\n if (_this.props.onChange) {\n _this.props.onChange(option.locationItem);\n }\n };\n _this.getToken();\n _this.focusRef = React.createRef();\n if (props.defaultValue) {\n _this.state = {\n options: [],\n currentMode: Mode.view,\n searchText: null,\n isCalloutVisible: true,\n selectedItem: props.defaultValue,\n };\n }\n else {\n _this.state = {\n options: [],\n currentMode: Mode.empty,\n searchText: null,\n isCalloutVisible: true,\n selectedItem: props.defaultValue,\n };\n }\n return _this;\n }\n LocationPicker.prototype.componentWillReceiveProps = function (nextProps) {\n if (!isEqual(nextProps.defaultValue, this.props.defaultValue)) {\n if (nextProps.defaultValue) {\n this.setState({ selectedItem: nextProps.defaultValue, currentMode: Mode.view });\n }\n }\n };\n /**\n * Renders the LocationPicker controls with Office UI Fabric\n */\n LocationPicker.prototype.render = function () {\n var label = this.props.label;\n return (React.createElement(\"div\", null,\n label ? React.createElement(Text, null, label) : null,\n this.getMainContent()));\n };\n LocationPicker.prototype.customRenderInitials = function (props) {\n if (props.imageAlt === \"Custom\")\n return React.createElement(FontIcon, { \"aria-label\": \"Poi\", iconName: \"Poi\", style: { fontSize: \"14pt\" } });\n else\n return React.createElement(FontIcon, { \"aria-label\": \"EMI\", iconName: \"EMI\", style: { fontSize: \"14pt\" } });\n };\n LocationPicker.prototype.getToken = function () {\n return __awaiter(this, void 0, void 0, function () {\n var requestHeaders, spOpts, response, PrimaryQueryResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n requestHeaders = new Headers();\n requestHeaders.append(\"Content-type\", \"application/json\");\n requestHeaders.append(\"Cache-Control\", \"no-cache\");\n spOpts = {\n body: \"{\\\"resource\\\":\\\"https://outlook.office365.com\\\"}\",\n headers: requestHeaders\n };\n return [4 /*yield*/, this.props.context.spHttpClient.post(this.props.context.pageContext.web.serverRelativeUrl + \"/_api/SP.OAuth.Token/Acquire\", SPHttpClient.configurations.v1, spOpts)];\n case 1:\n response = _a.sent();\n return [4 /*yield*/, response.json()];\n case 2:\n PrimaryQueryResult = _a.sent();\n this._token = PrimaryQueryResult.access_token;\n return [2 /*return*/];\n }\n });\n });\n };\n LocationPicker.prototype.getLocatios = function (searchText) {\n return __awaiter(this, void 0, void 0, function () {\n var optionsForCustomRender_1, requestHeaders, spOpts, response1, json, error_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 3, , 4]);\n optionsForCustomRender_1 = [];\n requestHeaders = new Headers();\n requestHeaders.append(\"Content-type\", \"application/json\");\n requestHeaders.append(\"Cache-Control\", \"no-cache\");\n requestHeaders.append(\"Authorization\", \"Bearer \" + this._token);\n spOpts = {\n body: \"{\\\"QueryConstraint\\\":{\\\"Query\\\":\\\"\" + searchText + \"\\\"},\\\"LocationProvider\\\":32,\\\"BingMarket\\\":\\\"en-IN\\\"}\",\n headers: requestHeaders\n };\n return [4 /*yield*/, this.props.context.httpClient.post(\"https://outlook.office365.com/SchedulingB2/api/v1.0/me/findmeetinglocations\", HttpClient.configurations.v1, spOpts)];\n case 1:\n response1 = _a.sent();\n return [4 /*yield*/, response1.json()];\n case 2:\n json = _a.sent();\n json.MeetingLocations.forEach(function (v, i) {\n var loc = v[\"MeetingLocation\"];\n optionsForCustomRender_1.push({ text: v.MeetingLocation[\"DisplayName\"], key: i, locationItem: loc });\n });\n optionsForCustomRender_1.push({ text: strings.customDisplayName, key: 7, locationItem: { DisplayName: searchText, EntityType: \"Custom\" } });\n this.setState({ options: optionsForCustomRender_1 });\n return [3 /*break*/, 4];\n case 3:\n error_1 = _a.sent();\n console.log(\"Error get Items\", error_1);\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return LocationPicker;\n}(React.Component));\nexport { LocationPicker };\n"
|
|
286506
|
+
"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 React from 'react';\nimport { Mode } from './ILocationPicker';\nimport styles from './LocationPicker.module.scss';\nimport { SPHttpClient, HttpClient } from '@microsoft/sp-http';\nimport { Text } from 'office-ui-fabric-react/lib/Text';\nimport { Persona, PersonaSize } from 'office-ui-fabric-react/lib/Persona';\nimport { ComboBox } from 'office-ui-fabric-react/lib/ComboBox';\nimport { FontIcon } from 'office-ui-fabric-react/lib/Icon';\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport * as strings from 'ControlStrings';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nvar LocationPicker = /** @class */ (function (_super) {\n __extends(LocationPicker, _super);\n /**\n * Constructor method\n */\n function LocationPicker(props) {\n var _this = _super.call(this, props) || this;\n _this._token = null;\n _this.focusRef = null;\n _this.onRenderOption = function (item) {\n var text = item.text, locationItem = item.locationItem;\n if (locationItem.EntityType === \"Custom\") {\n return React.createElement(Persona, { text: text, imageAlt: locationItem.EntityType, secondaryText: locationItem.DisplayName, size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials });\n }\n else\n return React.createElement(Persona, { text: text, imageAlt: locationItem.EntityType, secondaryText: _this.getLocationText(locationItem, \"full\"), size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials });\n };\n _this.getMainContent = function () {\n var _a = _this.state, options = _a.options, selectedItem = _a.selectedItem, currentMode = _a.currentMode;\n var _b = _this.props, className = _b.className, disabled = _b.disabled, placeholder = _b.placeholder, errorMessage = _b.errorMessage;\n switch (currentMode) {\n case Mode.empty:\n return React.createElement(ComboBox, { className: className, disabled: disabled, placeholder: placeholder, allowFreeform: true, autoComplete: \"on\", options: options, onRenderOption: _this.onRenderOption, calloutProps: { className: styles.callout }, buttonIconProps: { iconName: \"MapPin\" }, useComboBoxAsMenuWidth: true, openOnKeyboardFocus: true, scrollSelectedToTop: true, isButtonAriaHidden: true, onInput: function (e) { return _this.getLocatios(e.target[\"value\"]); }, onChange: _this.onChange, errorMessage: errorMessage });\n case Mode.editView:\n if (selectedItem.EntityType === \"Custom\") {\n return React.createElement(\"div\", { ref: _this.focusRef, \"data-selection-index\": 0, \"data-is-focusable\": true, role: \"listitem\", className: styles.pickerItemContainer, onBlur: _this.onBlur, tabIndex: 0 },\n React.createElement(Persona, { \"data-is-focusable\": \"false\", imageAlt: selectedItem.EntityType, tabIndex: 0, text: selectedItem.DisplayName, title: \"Location\", className: styles.persona, size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials }),\n React.createElement(IconButton, { \"data-is-focusable\": \"false\", tabIndex: 0, iconProps: { iconName: \"Cancel\" }, title: \"Clear\", ariaLabel: \"Clear\", disabled: disabled, className: styles.closeButton, onClick: _this.onIconButtonClick }));\n }\n return React.createElement(\"div\", { ref: _this.focusRef, \"data-selection-index\": 0, \"data-is-focusable\": true, role: \"listitem\", className: styles.pickerItemContainer, onBlur: _this.onBlur, tabIndex: 0 },\n React.createElement(Persona, { \"data-is-focusable\": \"false\", imageAlt: selectedItem.EntityType, tabIndex: 0, text: selectedItem.DisplayName, title: \"Location\", className: styles.persona, secondaryText: _this.getLocationText(selectedItem, \"full\"), size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials }),\n !disabled ?\n React.createElement(IconButton, { \"data-is-focusable\": \"false\", tabIndex: 0, iconProps: { iconName: \"Cancel\" }, title: \"Clear\", ariaLabel: \"Clear\", disabled: disabled, className: styles.closeButton, onClick: _this.onIconButtonClick }) : null);\n case Mode.view:\n if (selectedItem.EntityType === 'Custom') {\n return React.createElement(\"div\", { className: styles.locationAddressContainer, onClick: _this.onClick },\n React.createElement(\"div\", { className: styles.locationContainer, tabIndex: 0 },\n React.createElement(\"div\", { className: styles.locationDisplayName }, selectedItem.DisplayName)));\n }\n return React.createElement(\"div\", { className: styles.locationAddressContainer, onClick: _this.onClick },\n React.createElement(\"div\", { className: styles.locationContainer, tabIndex: 0 },\n React.createElement(\"div\", { className: styles.locationDisplayName }, selectedItem.DisplayName),\n React.createElement(\"div\", { className: styles.locationContent },\n React.createElement(\"div\", { className: styles.locationAddress }, _this.getLocationText(selectedItem, \"street\")),\n React.createElement(\"div\", { className: styles.locationAddress }, _this.getLocationText(selectedItem, \"noStreet\")))));\n }\n return null;\n };\n _this.getLocationText = function (item, mode) {\n if (!item.Address) {\n return '';\n }\n var address = item.Address;\n switch (mode) {\n case \"street\":\n return address.Street || \"\";\n case \"noStreet\":\n return \"\" + (address.City ? address.City + \", \" : '') + (address.State ? address.State + \", \" : \"\") + (address.CountryOrRegion || \"\");\n }\n return \"\" + (address.Street ? address.Street + \", \" : '') + (address.City ? address.City + \", \" : \"\") + (address.State ? address.State + \", \" : '') + (address.CountryOrRegion || \"\");\n };\n _this.onIconButtonClick = function () {\n _this.setState({ currentMode: Mode.empty, selectedItem: null });\n };\n _this.onClick = function () {\n _this.setState({ currentMode: Mode.editView }, function () {\n if (_this.focusRef.current != null)\n _this.focusRef.current.focus();\n });\n };\n _this.onBlur = function (ev) {\n try {\n if (ev !== null && ev.relatedTarget[\"title\"] !== \"Location\" && ev.relatedTarget[\"title\"] !== \"Clear\") {\n _this.setState({ currentMode: Mode.view });\n }\n }\n catch (_a) { }\n };\n _this.onChange = function (ev, option) {\n _this.setState({ selectedItem: option.locationItem, currentMode: Mode.editView }, function () {\n if (_this.focusRef.current != null)\n _this.focusRef.current.focus();\n });\n if (_this.props.onChange) {\n _this.props.onChange(option.locationItem);\n }\n };\n _this.getToken();\n _this.focusRef = React.createRef();\n if (props.defaultValue) {\n _this.state = {\n options: [],\n currentMode: Mode.view,\n searchText: null,\n isCalloutVisible: true,\n selectedItem: props.defaultValue,\n };\n }\n else {\n _this.state = {\n options: [],\n currentMode: Mode.empty,\n searchText: null,\n isCalloutVisible: true,\n selectedItem: props.defaultValue,\n };\n }\n return _this;\n }\n LocationPicker.prototype.componentWillReceiveProps = function (nextProps) {\n if (!isEqual(nextProps.defaultValue, this.props.defaultValue)) {\n if (nextProps.defaultValue) {\n this.setState({ selectedItem: nextProps.defaultValue, currentMode: Mode.view });\n }\n }\n };\n /**\n * Renders the LocationPicker controls with Office UI Fabric\n */\n LocationPicker.prototype.render = function () {\n var label = this.props.label;\n return (React.createElement(\"div\", null,\n label ? React.createElement(Text, null, label) : null,\n this.getMainContent()));\n };\n LocationPicker.prototype.customRenderInitials = function (props) {\n if (props.imageAlt === \"Custom\")\n return React.createElement(FontIcon, { \"aria-label\": \"Poi\", iconName: \"Poi\", style: { fontSize: \"14pt\" } });\n else\n return React.createElement(FontIcon, { \"aria-label\": \"EMI\", iconName: \"EMI\", style: { fontSize: \"14pt\" } });\n };\n LocationPicker.prototype.getToken = function () {\n return __awaiter(this, void 0, void 0, function () {\n var requestHeaders, spOpts, response, PrimaryQueryResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n requestHeaders = new Headers();\n requestHeaders.append(\"Content-type\", \"application/json\");\n requestHeaders.append(\"Cache-Control\", \"no-cache\");\n spOpts = {\n body: \"{\\\"resource\\\":\\\"https://outlook.office365.com\\\"}\",\n headers: requestHeaders\n };\n return [4 /*yield*/, this.props.context.spHttpClient.post(this.props.context.pageContext.web.absoluteUrl + \"/_api/SP.OAuth.Token/Acquire\", SPHttpClient.configurations.v1, spOpts)];\n case 1:\n response = _a.sent();\n return [4 /*yield*/, response.json()];\n case 2:\n PrimaryQueryResult = _a.sent();\n this._token = PrimaryQueryResult.access_token;\n return [2 /*return*/];\n }\n });\n });\n };\n LocationPicker.prototype.getLocatios = function (searchText) {\n return __awaiter(this, void 0, void 0, function () {\n var optionsForCustomRender_1, requestHeaders, spOpts, response1, json, error_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 3, , 4]);\n optionsForCustomRender_1 = [];\n requestHeaders = new Headers();\n requestHeaders.append(\"Content-type\", \"application/json\");\n requestHeaders.append(\"Cache-Control\", \"no-cache\");\n requestHeaders.append(\"Authorization\", \"Bearer \" + this._token);\n spOpts = {\n body: \"{\\\"QueryConstraint\\\":{\\\"Query\\\":\\\"\" + searchText + \"\\\"},\\\"LocationProvider\\\":32,\\\"BingMarket\\\":\\\"en-IN\\\"}\",\n headers: requestHeaders\n };\n return [4 /*yield*/, this.props.context.httpClient.post(\"https://outlook.office365.com/SchedulingB2/api/v1.0/me/findmeetinglocations\", HttpClient.configurations.v1, spOpts)];\n case 1:\n response1 = _a.sent();\n return [4 /*yield*/, response1.json()];\n case 2:\n json = _a.sent();\n json.MeetingLocations.forEach(function (v, i) {\n var loc = v[\"MeetingLocation\"];\n optionsForCustomRender_1.push({ text: v.MeetingLocation[\"DisplayName\"], key: i, locationItem: loc });\n });\n optionsForCustomRender_1.push({ text: strings.customDisplayName, key: 7, locationItem: { DisplayName: searchText, EntityType: \"Custom\" } });\n this.setState({ options: optionsForCustomRender_1 });\n return [3 /*break*/, 4];\n case 3:\n error_1 = _a.sent();\n console.log(\"Error get Items\", error_1);\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return LocationPicker;\n}(React.Component));\nexport { LocationPicker };\n"
|
|
286507
286507
|
},
|
|
286508
286508
|
{
|
|
286509
286509
|
"id": "YFYv",
|
|
@@ -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/DefaultButton/DefaultButton.styles.js",
|
|
298443
|
+
"issuerId": "k/69",
|
|
298444
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.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": "sByA",
|
|
298463
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.js",
|
|
298464
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.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": "k/69",
|
|
298468
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.styles.js",
|
|
298469
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.styles.js"
|
|
298470
298470
|
}
|
|
298471
298471
|
],
|
|
298472
298472
|
"failed": false,
|
|
@@ -355514,7 +355514,7 @@
|
|
|
355514
355514
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355515
355515
|
"type": "harmony import specifier",
|
|
355516
355516
|
"userRequest": "react",
|
|
355517
|
-
"loc": "
|
|
355517
|
+
"loc": "127:12-31"
|
|
355518
355518
|
},
|
|
355519
355519
|
{
|
|
355520
355520
|
"moduleId": "hQoI",
|
|
@@ -355523,7 +355523,7 @@
|
|
|
355523
355523
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355524
355524
|
"type": "harmony import specifier",
|
|
355525
355525
|
"userRequest": "react",
|
|
355526
|
-
"loc": "
|
|
355526
|
+
"loc": "136:20-39"
|
|
355527
355527
|
},
|
|
355528
355528
|
{
|
|
355529
355529
|
"moduleId": "hQoI",
|
|
@@ -355532,7 +355532,7 @@
|
|
|
355532
355532
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355533
355533
|
"type": "harmony import specifier",
|
|
355534
355534
|
"userRequest": "react",
|
|
355535
|
-
"loc": "
|
|
355535
|
+
"loc": "139:20-39"
|
|
355536
355536
|
},
|
|
355537
355537
|
{
|
|
355538
355538
|
"moduleId": "hQoI",
|
|
@@ -355541,7 +355541,7 @@
|
|
|
355541
355541
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355542
355542
|
"type": "harmony import specifier",
|
|
355543
355543
|
"userRequest": "react",
|
|
355544
|
-
"loc": "
|
|
355544
|
+
"loc": "140:24-43"
|
|
355545
355545
|
},
|
|
355546
355546
|
{
|
|
355547
355547
|
"moduleId": "hQoI",
|
|
@@ -355550,7 +355550,7 @@
|
|
|
355550
355550
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355551
355551
|
"type": "harmony import specifier",
|
|
355552
355552
|
"userRequest": "react",
|
|
355553
|
-
"loc": "
|
|
355553
|
+
"loc": "145:20-39"
|
|
355554
355554
|
},
|
|
355555
355555
|
{
|
|
355556
355556
|
"moduleId": "hQoI",
|
|
@@ -355559,7 +355559,7 @@
|
|
|
355559
355559
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355560
355560
|
"type": "harmony import specifier",
|
|
355561
355561
|
"userRequest": "react",
|
|
355562
|
-
"loc": "
|
|
355562
|
+
"loc": "162:16-35"
|
|
355563
355563
|
},
|
|
355564
355564
|
{
|
|
355565
355565
|
"moduleId": "hQoI",
|
|
@@ -355568,7 +355568,7 @@
|
|
|
355568
355568
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355569
355569
|
"type": "harmony import specifier",
|
|
355570
355570
|
"userRequest": "react",
|
|
355571
|
-
"loc": "
|
|
355571
|
+
"loc": "163:12-31"
|
|
355572
355572
|
},
|
|
355573
355573
|
{
|
|
355574
355574
|
"moduleId": "hQoI",
|
|
@@ -355577,7 +355577,7 @@
|
|
|
355577
355577
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355578
355578
|
"type": "harmony import specifier",
|
|
355579
355579
|
"userRequest": "react",
|
|
355580
|
-
"loc": "
|
|
355580
|
+
"loc": "164:16-35"
|
|
355581
355581
|
},
|
|
355582
355582
|
{
|
|
355583
355583
|
"moduleId": "hQoI",
|
|
@@ -355586,7 +355586,7 @@
|
|
|
355586
355586
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355587
355587
|
"type": "harmony import specifier",
|
|
355588
355588
|
"userRequest": "react",
|
|
355589
|
-
"loc": "
|
|
355589
|
+
"loc": "167:20-39"
|
|
355590
355590
|
},
|
|
355591
355591
|
{
|
|
355592
355592
|
"moduleId": "hQoI",
|
|
@@ -355595,7 +355595,7 @@
|
|
|
355595
355595
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355596
355596
|
"type": "harmony import specifier",
|
|
355597
355597
|
"userRequest": "react",
|
|
355598
|
-
"loc": "
|
|
355598
|
+
"loc": "168:16-35"
|
|
355599
355599
|
},
|
|
355600
355600
|
{
|
|
355601
355601
|
"moduleId": "hQoI",
|
|
@@ -355604,7 +355604,7 @@
|
|
|
355604
355604
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355605
355605
|
"type": "harmony import specifier",
|
|
355606
355606
|
"userRequest": "react",
|
|
355607
|
-
"loc": "
|
|
355607
|
+
"loc": "183:24-43"
|
|
355608
355608
|
},
|
|
355609
355609
|
{
|
|
355610
355610
|
"moduleId": "hQoI",
|
|
@@ -355613,7 +355613,7 @@
|
|
|
355613
355613
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355614
355614
|
"type": "harmony import specifier",
|
|
355615
355615
|
"userRequest": "react",
|
|
355616
|
-
"loc": "
|
|
355616
|
+
"loc": "188:24-43"
|
|
355617
355617
|
},
|
|
355618
355618
|
{
|
|
355619
355619
|
"moduleId": "hQoI",
|
|
@@ -355622,7 +355622,7 @@
|
|
|
355622
355622
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355623
355623
|
"type": "harmony import specifier",
|
|
355624
355624
|
"userRequest": "react",
|
|
355625
|
-
"loc": "
|
|
355625
|
+
"loc": "189:28-47"
|
|
355626
355626
|
},
|
|
355627
355627
|
{
|
|
355628
355628
|
"moduleId": "hQoI",
|
|
@@ -355631,7 +355631,7 @@
|
|
|
355631
355631
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355632
355632
|
"type": "harmony import specifier",
|
|
355633
355633
|
"userRequest": "react",
|
|
355634
|
-
"loc": "
|
|
355634
|
+
"loc": "193:12-31"
|
|
355635
355635
|
},
|
|
355636
355636
|
{
|
|
355637
355637
|
"moduleId": "hQoI",
|
|
@@ -355640,7 +355640,7 @@
|
|
|
355640
355640
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
355641
355641
|
"type": "harmony import specifier",
|
|
355642
355642
|
"userRequest": "react",
|
|
355643
|
-
"loc": "
|
|
355643
|
+
"loc": "200:2-17"
|
|
355644
355644
|
},
|
|
355645
355645
|
{
|
|
355646
355646
|
"moduleId": "hgRX",
|
|
@@ -371534,7 +371534,7 @@
|
|
|
371534
371534
|
],
|
|
371535
371535
|
"optimizationBailout": [],
|
|
371536
371536
|
"depth": 4,
|
|
371537
|
-
"source": "export var version = \"3.7.0-beta.
|
|
371537
|
+
"source": "export var version = \"3.7.0-beta.2018695\";\n"
|
|
371538
371538
|
},
|
|
371539
371539
|
{
|
|
371540
371540
|
"id": "cLrF",
|
|
@@ -402076,7 +402076,7 @@
|
|
|
402076
402076
|
"name": "./lib/controls/treeView/TreeView.js",
|
|
402077
402077
|
"index": 2316,
|
|
402078
402078
|
"index2": 2322,
|
|
402079
|
-
"size":
|
|
402079
|
+
"size": 9523,
|
|
402080
402080
|
"cacheable": true,
|
|
402081
402081
|
"built": true,
|
|
402082
402082
|
"optional": false,
|
|
@@ -402133,7 +402133,7 @@
|
|
|
402133
402133
|
],
|
|
402134
402134
|
"optimizationBailout": [],
|
|
402135
402135
|
"depth": 3,
|
|
402136
|
-
"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})();\nimport * as React from 'react';\nimport styles from './TreeView.module.scss';\nimport uniqBy from 'lodash/uniqBy';\nimport { SelectChildrenMode, TreeViewSelectionMode } from './ITreeViewProps';\nimport TreeItem from './TreeItem';\nimport * as telemetry from '../../common/telemetry';\n/**\n * Renders the controls for TreeItem component\n */\nvar TreeView = /** @class */ (function (_super) {\n __extends(TreeView, _super);\n /**\n * Constructor method\n * @param props properties interface\n */\n function TreeView(props) {\n var _this = _super.call(this, props) || this;\n _this.nodesToExpand = [];\n _this.pathTo = function (array, target) {\n var result;\n if (array) {\n array.some(function (_a) {\n var key = _a.key, _b = _a.children, children = _b === void 0 ? [] : _b;\n if (key === target) {\n _this.nodesToExpand.push(key);\n result = key;\n return true;\n }\n var temp = _this.pathTo(children, target);\n if (temp) {\n _this.nodesToExpand.push(key);\n result = key + '.' + temp;\n return true;\n }\n });\n }\n return result;\n };\n telemetry.track('TreeView');\n _this.state = {\n loaded: true,\n defaultExpanded: props.defaultExpanded,\n activeItems: []\n };\n // Bind control events\n _this.handleTreeExpandCollapse = _this.handleTreeExpandCollapse.bind(_this);\n _this.handleOnSelect = _this.handleOnSelect.bind(_this);\n if (props.expandToSelected && props.defaultSelectedKeys) {\n props.defaultSelectedKeys.forEach(function (element) {\n _this.pathTo(props.items, element);\n });\n }\n return _this;\n }\n TreeView.prototype.getSelectedItems = function (treeItems, selectedKeys, selectedChildren) {\n var _this = this;\n var selectedItems = [];\n treeItems.forEach(function (item) {\n if (selectedKeys.indexOf(item.key) !== -1 && item.selectable !== false && !item.disabled) {\n selectedItems.push(item);\n if (selectedChildren) {\n _this.selectAllChildren(item, selectedItems);\n }\n else {\n if (item.children) {\n selectedItems.push.apply(selectedItems, _this.getSelectedItems(item.children, selectedKeys, selectedChildren));\n }\n }\n }\n else {\n if (item.children) {\n selectedItems.push.apply(selectedItems, _this.getSelectedItems(item.children, selectedKeys, selectedChildren));\n }\n }\n });\n return selectedItems;\n };\n /**\n * Fires When expand / collapse item in TreeView\n * @argument item The expanded / collapsed item\n * @argument isExpanded The status of item (expanded / collapsed)\n */\n TreeView.prototype.handleTreeExpandCollapse = function (item, isExpanded) {\n if (typeof this.props.onExpandCollapse === \"function\") {\n this.props.onExpandCollapse(item, isExpanded);\n }\n };\n /**\n * Selects all child nodes when parent node is selected.\n * @param item current tree item\n */\n TreeView.prototype.selectAllChildren = function (item, selectedItems) {\n var _this = this;\n if (item.children) {\n item.children.forEach(function (element) {\n if (!element.disabled && element.selectable !== false) {\n selectedItems.push(element);\n }\n if (element.children) {\n _this.selectAllChildren(element, selectedItems);\n }\n });\n }\n };\n /**\n * Unselects all child nodes of selected parent.\n */\n TreeView.prototype.unSelectChildren = function (item, unselectArray) {\n var _this = this;\n var tempItem = item;\n if (tempItem.children) {\n tempItem.children.forEach(function (element) {\n unselectArray.push(element.key);\n if (element.children) {\n _this.unSelectChildren(element, unselectArray);\n }\n });\n }\n };\n /**\n * Fires When Tree Item is selected in TreeView\n * @argument item The selected item\n * @argument isSelected The status of item selection\n */\n TreeView.prototype.handleOnSelect = function (item, isSelected) {\n var selectedItems = this.state.activeItems;\n if (isSelected) {\n if (this.props.selectionMode == TreeViewSelectionMode.Multiple) {\n // Add the checked term\n selectedItems.push(item);\n if (this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Select)) {\n this.selectAllChildren(item, selectedItems);\n }\n selectedItems = uniqBy(selectedItems, 'key');\n // Filter out the duplicate terms\n this.setState({\n activeItems: selectedItems\n });\n }\n else {\n // Only store the current selected item\n this.setState({\n activeItems: [item]\n });\n selectedItems = [item];\n }\n }\n else {\n // Remove the item from the list of active nodes\n var unselectArray = [];\n unselectArray.push(item.key);\n if (this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Unselect)) {\n this.unSelectChildren(item, unselectArray);\n }\n unselectArray.forEach(function (element) {\n selectedItems = selectedItems.filter(function (i) { return i.key != element; });\n });\n this.setState({\n activeItems: selectedItems\n });\n }\n if (typeof this.props.onSelect === \"function\") {\n this.props.onSelect(selectedItems);\n }\n };\n TreeView.prototype.checkIfChildrenShouldBeSelected = function (testMode) {\n var selectChildrenMode = SelectChildrenMode.None;\n if (this.props.selectChildrenMode) {\n selectChildrenMode = this.props.selectChildrenMode;\n }\n else {\n if (this.props.selectChildrenIfParentSelected) {\n selectChildrenMode = SelectChildrenMode.All;\n }\n }\n if ((selectChildrenMode & testMode) === testMode) {\n return true;\n }\n return false;\n };\n TreeView.prototype.componentDidMount = function () {\n var _a = this.props, items = _a.items, defaultSelectedKeys = _a.defaultSelectedKeys;\n if (defaultSelectedKeys) {\n var selectedItems = this.getSelectedItems(items, defaultSelectedKeys, this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Mount));\n this.setState({\n activeItems: selectedItems\n });\n }\n };\n TreeView.prototype.componentWillReceiveProps = function (nextProps) {\n var items = nextProps.items, defaultSelectedKeys = nextProps.defaultSelectedKeys;\n if (defaultSelectedKeys) {\n var selectedItems = this.getSelectedItems(items, defaultSelectedKeys, this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Update));\n this.setState({\n activeItems: selectedItems\n });\n }\n };\n /**\n * Default React render method\n */\n TreeView.prototype.render = function () {\n var _this = this;\n var _a = this.props, items = _a.items, selectionMode = _a.selectionMode, onRenderItem = _a.onRenderItem, showCheckboxes = _a.showCheckboxes, treeItemActionsDisplayMode = _a.treeItemActionsDisplayMode, defaultExpanded = _a.defaultExpanded, defaultExpandedChildren = _a.defaultExpandedChildren;\n return (React.createElement(\"div\", { className: styles.treeView }, items.map(function (treeNodeItem, index) { return (React.createElement(TreeItem, { treeItem: treeNodeItem, leftOffset: 20, isFirstRender: true, defaultExpanded: defaultExpanded, defaultExpandedChildren: defaultExpandedChildren !== undefined ? defaultExpandedChildren : true, selectionMode: selectionMode, activeItems: _this.state.activeItems, parentCallbackExpandCollapse: _this.handleTreeExpandCollapse, parentCallbackOnSelect: _this.handleOnSelect, onRenderItem: onRenderItem, showCheckboxes: showCheckboxes, treeItemActionsDisplayMode: treeItemActionsDisplayMode, nodesToExpand:
|
|
402136
|
+
"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})();\nimport * as React from 'react';\nimport styles from './TreeView.module.scss';\nimport uniqBy from 'lodash/uniqBy';\nimport { SelectChildrenMode, TreeViewSelectionMode } from './ITreeViewProps';\nimport TreeItem from './TreeItem';\nimport * as telemetry from '../../common/telemetry';\n/**\n * Renders the controls for TreeItem component\n */\nvar TreeView = /** @class */ (function (_super) {\n __extends(TreeView, _super);\n /**\n * Constructor method\n * @param props properties interface\n */\n function TreeView(props) {\n var _this = _super.call(this, props) || this;\n _this.nodesToExpand = [];\n _this.pathTo = function (array, target) {\n var result;\n if (array) {\n array.some(function (_a) {\n var key = _a.key, _b = _a.children, children = _b === void 0 ? [] : _b;\n if (key === target) {\n _this.nodesToExpand.push(key);\n result = key;\n return true;\n }\n var temp = _this.pathTo(children, target);\n if (temp) {\n _this.nodesToExpand.push(key);\n result = key + '.' + temp;\n return true;\n }\n });\n }\n return result;\n };\n telemetry.track('TreeView');\n _this.state = {\n loaded: true,\n defaultExpanded: props.defaultExpanded,\n activeItems: []\n };\n // Bind control events\n _this.handleTreeExpandCollapse = _this.handleTreeExpandCollapse.bind(_this);\n _this.handleOnSelect = _this.handleOnSelect.bind(_this);\n if (props.expandToSelected && props.defaultSelectedKeys) {\n props.defaultSelectedKeys.forEach(function (element) {\n _this.pathTo(props.items, element);\n });\n }\n return _this;\n }\n TreeView.prototype.getSelectedItems = function (treeItems, selectedKeys, selectedChildren) {\n var _this = this;\n var selectedItems = [];\n treeItems.forEach(function (item) {\n if (selectedKeys.indexOf(item.key) !== -1 && item.selectable !== false && !item.disabled) {\n selectedItems.push(item);\n if (selectedChildren) {\n _this.selectAllChildren(item, selectedItems);\n }\n else {\n if (item.children) {\n selectedItems.push.apply(selectedItems, _this.getSelectedItems(item.children, selectedKeys, selectedChildren));\n }\n }\n }\n else {\n if (item.children) {\n selectedItems.push.apply(selectedItems, _this.getSelectedItems(item.children, selectedKeys, selectedChildren));\n }\n }\n });\n return selectedItems;\n };\n /**\n * Fires When expand / collapse item in TreeView\n * @argument item The expanded / collapsed item\n * @argument isExpanded The status of item (expanded / collapsed)\n */\n TreeView.prototype.handleTreeExpandCollapse = function (item, isExpanded) {\n if (typeof this.props.onExpandCollapse === \"function\") {\n this.props.onExpandCollapse(item, isExpanded);\n }\n };\n /**\n * Selects all child nodes when parent node is selected.\n * @param item current tree item\n */\n TreeView.prototype.selectAllChildren = function (item, selectedItems) {\n var _this = this;\n if (item.children) {\n item.children.forEach(function (element) {\n if (!element.disabled && element.selectable !== false) {\n selectedItems.push(element);\n }\n if (element.children) {\n _this.selectAllChildren(element, selectedItems);\n }\n });\n }\n };\n /**\n * Unselects all child nodes of selected parent.\n */\n TreeView.prototype.unSelectChildren = function (item, unselectArray) {\n var _this = this;\n var tempItem = item;\n if (tempItem.children) {\n tempItem.children.forEach(function (element) {\n unselectArray.push(element.key);\n if (element.children) {\n _this.unSelectChildren(element, unselectArray);\n }\n });\n }\n };\n /**\n * Fires When Tree Item is selected in TreeView\n * @argument item The selected item\n * @argument isSelected The status of item selection\n */\n TreeView.prototype.handleOnSelect = function (item, isSelected) {\n var selectedItems = this.state.activeItems;\n if (isSelected) {\n if (this.props.selectionMode == TreeViewSelectionMode.Multiple) {\n // Add the checked term\n selectedItems.push(item);\n if (this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Select)) {\n this.selectAllChildren(item, selectedItems);\n }\n selectedItems = uniqBy(selectedItems, 'key');\n // Filter out the duplicate terms\n this.setState({\n activeItems: selectedItems\n });\n }\n else {\n // Only store the current selected item\n this.setState({\n activeItems: [item]\n });\n selectedItems = [item];\n }\n }\n else {\n // Remove the item from the list of active nodes\n var unselectArray = [];\n unselectArray.push(item.key);\n if (this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Unselect)) {\n this.unSelectChildren(item, unselectArray);\n }\n unselectArray.forEach(function (element) {\n selectedItems = selectedItems.filter(function (i) { return i.key != element; });\n });\n this.setState({\n activeItems: selectedItems\n });\n }\n if (typeof this.props.onSelect === \"function\") {\n this.props.onSelect(selectedItems);\n }\n };\n TreeView.prototype.checkIfChildrenShouldBeSelected = function (testMode) {\n var selectChildrenMode = SelectChildrenMode.None;\n if (this.props.selectChildrenMode) {\n selectChildrenMode = this.props.selectChildrenMode;\n }\n else {\n if (this.props.selectChildrenIfParentSelected) {\n selectChildrenMode = SelectChildrenMode.All;\n }\n }\n if ((selectChildrenMode & testMode) === testMode) {\n return true;\n }\n return false;\n };\n TreeView.prototype.componentDidMount = function () {\n var _a = this.props, items = _a.items, defaultSelectedKeys = _a.defaultSelectedKeys;\n if (defaultSelectedKeys) {\n var selectedItems = this.getSelectedItems(items, defaultSelectedKeys, this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Mount));\n this.setState({\n activeItems: selectedItems\n });\n }\n };\n TreeView.prototype.componentWillReceiveProps = function (nextProps) {\n var items = nextProps.items, defaultSelectedKeys = nextProps.defaultSelectedKeys;\n if (defaultSelectedKeys) {\n var selectedItems = this.getSelectedItems(items, defaultSelectedKeys, this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Update));\n this.setState({\n activeItems: selectedItems\n });\n }\n };\n /**\n * Default React render method\n */\n TreeView.prototype.render = function () {\n var _this = this;\n var _a = this.props, items = _a.items, selectionMode = _a.selectionMode, onRenderItem = _a.onRenderItem, showCheckboxes = _a.showCheckboxes, treeItemActionsDisplayMode = _a.treeItemActionsDisplayMode, defaultExpanded = _a.defaultExpanded, defaultExpandedChildren = _a.defaultExpandedChildren, defaultExpandedKeys = _a.defaultExpandedKeys;\n return (React.createElement(\"div\", { className: styles.treeView }, items.map(function (treeNodeItem, index) { return (React.createElement(TreeItem, { treeItem: treeNodeItem, leftOffset: 20, isFirstRender: true, defaultExpanded: defaultExpanded, defaultExpandedChildren: defaultExpandedChildren !== undefined ? defaultExpandedChildren : true, selectionMode: selectionMode, activeItems: _this.state.activeItems, parentCallbackExpandCollapse: _this.handleTreeExpandCollapse, parentCallbackOnSelect: _this.handleOnSelect, onRenderItem: onRenderItem, showCheckboxes: showCheckboxes, treeItemActionsDisplayMode: treeItemActionsDisplayMode, nodesToExpand: defaultExpandedKeys })); })));\n };\n return TreeView;\n}(React.Component));\nexport { TreeView };\n"
|
|
402137
402137
|
},
|
|
402138
402138
|
{
|
|
402139
402139
|
"id": "fYfa",
|
|
@@ -414001,7 +414001,7 @@
|
|
|
414001
414001
|
"name": "./lib/controls/treeView/TreeItem.js",
|
|
414002
414002
|
"index": 2321,
|
|
414003
414003
|
"index2": 2321,
|
|
414004
|
-
"size":
|
|
414004
|
+
"size": 10398,
|
|
414005
414005
|
"cacheable": true,
|
|
414006
414006
|
"built": true,
|
|
414007
414007
|
"optional": false,
|
|
@@ -414063,7 +414063,7 @@
|
|
|
414063
414063
|
],
|
|
414064
414064
|
"optimizationBailout": [],
|
|
414065
414065
|
"depth": 4,
|
|
414066
|
-
"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})();\nimport * as React from 'react';\nimport styles from './TreeView.module.scss';\nimport { Checkbox } from 'office-ui-fabric-react/lib/Checkbox';\nimport { Icon } from 'office-ui-fabric-react/lib/Icon';\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport * as strings from 'ControlStrings';\nimport { TreeViewSelectionMode } from './ITreeViewProps';\nimport TreeItemActionsControl from './TreeItemActionsControl';\nimport { css } from 'office-ui-fabric-react/lib/Utilities';\n/**\n * CSS styles for checkbox\n */\nvar checkBoxStyle = {\n display: \"inline-flex\"\n};\n/**\n * Renders the controls for TreeItem component\n */\nvar TreeItem = /** @class */ (function (_super) {\n __extends(TreeItem, _super);\n /**\n * Constructor method\n * @param props properties interface\n */\n function TreeItem(props, state) {\n var _this = _super.call(this, props) || this;\n /**\n * Process the child nodes\n */\n _this.createChildNodes = function (list, paddingLeft) {\n if (list.length) {\n var _a = _this.props, treeItem = _a.treeItem, selectionMode_1 = _a.selectionMode, activeItems_1 = _a.activeItems, parentCallbackExpandCollapse_1 = _a.parentCallbackExpandCollapse, parentCallbackOnSelect_1 = _a.parentCallbackOnSelect, onRenderItem_1 = _a.onRenderItem, showCheckboxes_1 = _a.showCheckboxes, treeItemActionsDisplayMode_1 = _a.treeItemActionsDisplayMode, defaultExpandedChildren_1 = _a.defaultExpandedChildren;\n var expanded_1 = _this.state.expanded;\n var childrenWithHandlers = list.map(function (item, index) {\n return (React.createElement(TreeItem, { treeItem: item, defaultExpanded: defaultExpandedChildren_1 ? expanded_1 : expanded_1 && !item.hasOwnProperty('children'), defaultExpandedChildren: defaultExpandedChildren_1, leftOffset: paddingLeft, selectionMode: selectionMode_1, activeItems: activeItems_1, isFirstRender: !paddingLeft ? true : false, parentCallbackExpandCollapse: parentCallbackExpandCollapse_1, parentCallbackOnSelect: parentCallbackOnSelect_1, onRenderItem: onRenderItem_1, showCheckboxes: showCheckboxes_1, treeItemActionsDisplayMode: treeItemActionsDisplayMode_1, nodesToExpand: _this.props.nodesToExpand }));\n });\n return childrenWithHandlers;\n }\n };\n /**\n * Default action callback\n */\n _this.treeItemActionCallback = function () {\n };\n // Check if current item is selected\n var active = props.activeItems.filter(function (item) { return item.key === props.treeItem.key; });\n var expanded = props.defaultExpanded;\n if (props.nodesToExpand.indexOf(props.treeItem.key) != -1) {\n expanded = true;\n }\n _this.state = {\n selected: active.length > 0,\n // expanded: this.props.defaultExpanded\n expanded: expanded\n };\n // Bind control events\n _this._itemSelected = _this._itemSelected.bind(_this);\n _this._handleExpandCollapse = _this._handleExpandCollapse.bind(_this);\n return _this;\n }\n /**\n * Handle the checkbox change trigger\n */\n TreeItem.prototype._itemSelected = function (ev, isChecked) {\n this.setState({\n selected: !this.state.selected\n });\n this.props.parentCallbackOnSelect(this.props.treeItem, isChecked);\n };\n /**\n * Handle the click event: collapse or expand\n */\n TreeItem.prototype._handleExpandCollapse = function () {\n this.setState({\n expanded: !this.state.expanded\n });\n this.props.parentCallbackExpandCollapse(this.props.treeItem, !this.state.expanded);\n };\n /**\n * Lifecycle event hook when component retrieves new properties\n * @param nextProps\n * @param nextContext\n */\n TreeItem.prototype.componentWillReceiveProps = function (nextProps) {\n var _this = this;\n // If selection is turned on, set the item as selected\n if (this.props.selectionMode != TreeViewSelectionMode.None) {\n var active = nextProps.activeItems.filter(function (item) { return item.key === _this.props.treeItem.key; });\n this.setState({\n selected: active.length > 0,\n expanded: this.state.expanded\n });\n }\n };\n /**\n * Default or custom rendering of tree item\n */\n TreeItem.prototype.renderItem = function (item) {\n var _this = this;\n if (typeof this.props.onRenderItem === \"function\") {\n // Custom rendering of tree item\n return this.props.onRenderItem(item);\n }\n else {\n return (\n // Default rendering of tree item\n React.createElement(\"div\", { className: styles.labels, onClick: function (e) {\n if (_this.props.selectionMode != TreeViewSelectionMode.None && item.selectable != false) {\n e.stopPropagation();\n if (!item.disabled) {\n _this._itemSelected(e, !_this.state.selected);\n }\n }\n } },\n this.props.showCheckboxes && item.selectable == false && !item.children &&\n React.createElement(\"span\", { className: styles.blankspace }, \"\\u00A0\"),\n // Rendering when item has iconProps\n item.iconProps &&\n React.createElement(\"span\", null,\n React.createElement(Icon, { className: styles.icon, iconName: item.iconProps.iconName, style: item.iconProps.style }),\n \"\\u00A0\"),\n item.label,\n // Render sublabel\n item.subLabel &&\n React.createElement(\"div\", { className: styles.itemSubLabel }, item.subLabel)));\n }\n };\n /**\n * Default React render method\n */\n TreeItem.prototype.render = function () {\n var _a;\n var _this = this;\n var _b = this.props, treeItem = _b.treeItem, leftOffset = _b.leftOffset, showCheckboxes = _b.showCheckboxes, selectionMode = _b.selectionMode, treeItemActionsDisplayMode = _b.treeItemActionsDisplayMode;\n var _c = this.state, expanded = _c.expanded, selected = _c.selected;\n var styleProps = {\n marginLeft: leftOffset + \"px\"\n };\n var contentStyles = {\n marginLeft: treeItem.children ? '0' : leftOffset + \"px\"\n };\n return (React.createElement(\"div\", null,\n React.createElement(\"div\", { className: styles.listItem + \" \" + styles.tree },\n React.createElement(\"div\", { className: \"\" + styles.treeSelector }, \n // Render expand / collapse icons for items which has children.\n treeItem.children &&\n React.createElement(IconButton, { iconProps: expanded ? { iconName: 'ChevronDown' } : { iconName: 'ChevronRight' }, alt: expanded ? strings.TreeViewCollapseTitle : strings.TreeViewExpandTitle, title: expanded ? strings.TreeViewCollapseTitle : strings.TreeViewExpandTitle, onClick: function () { return _this._handleExpandCollapse(); } })),\n React.createElement(\"div\", { className: css((_a = {},\n _a[styles.itemContent] = true,\n _a[styles.noCheckBox] = !showCheckboxes,\n _a[styles.checked] = selected,\n _a[styles.disabled] = !!treeItem.disabled,\n _a)), style: contentStyles, onClick: function (e) {\n if (_this.props.selectionMode != TreeViewSelectionMode.None && treeItem.selectable != false) {\n e.stopPropagation();\n if (!treeItem.disabled && e.currentTarget === e.target) {\n _this._itemSelected(e, !_this.state.selected);\n }\n }\n } },\n // Render checkbox (if item is selectable, Selection mode is not None, and showCheckboxes property is set to true)\n (treeItem.selectable != false) && selectionMode != TreeViewSelectionMode.None && showCheckboxes &&\n React.createElement(Checkbox, { checked: selected, disabled: treeItem.disabled, className: styles.checkbox, onChange: this._itemSelected }),\n // Call default render item function\n this.renderItem(treeItem),\n // Render actions for tree item\n treeItem.actions &&\n React.createElement(\"div\", { className: styles.itemMenu },\n React.createElement(TreeItemActionsControl, { treeItem: treeItem, treeItemActions: {\n actions: treeItem.actions,\n treeItemActionsDisplayMode: treeItemActionsDisplayMode\n }, treeItemActionCallback: this.treeItemActionCallback })))),\n React.createElement(\"div\", { style: styleProps || {} }, \n // Render child nodes\n expanded && treeItem.children\n ? this.createChildNodes(treeItem.children, leftOffset) // we double left padding on every recursion/depth\n : null)));\n };\n return TreeItem;\n}(React.Component));\nexport default TreeItem;\n"
|
|
414066
|
+
"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})();\nimport * as React from 'react';\nimport styles from './TreeView.module.scss';\nimport { Checkbox } from 'office-ui-fabric-react/lib/Checkbox';\nimport { Icon } from 'office-ui-fabric-react/lib/Icon';\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport * as strings from 'ControlStrings';\nimport { TreeViewSelectionMode } from './ITreeViewProps';\nimport TreeItemActionsControl from './TreeItemActionsControl';\nimport { css } from 'office-ui-fabric-react/lib/Utilities';\n/**\n * CSS styles for checkbox\n */\nvar checkBoxStyle = {\n display: \"inline-flex\"\n};\n/**\n * Renders the controls for TreeItem component\n */\nvar TreeItem = /** @class */ (function (_super) {\n __extends(TreeItem, _super);\n /**\n * Constructor method\n * @param props properties interface\n */\n function TreeItem(props, state) {\n var _this = _super.call(this, props) || this;\n /**\n * Process the child nodes\n */\n _this.createChildNodes = function (list, paddingLeft) {\n if (list.length) {\n var _a = _this.props, treeItem = _a.treeItem, selectionMode_1 = _a.selectionMode, activeItems_1 = _a.activeItems, parentCallbackExpandCollapse_1 = _a.parentCallbackExpandCollapse, parentCallbackOnSelect_1 = _a.parentCallbackOnSelect, onRenderItem_1 = _a.onRenderItem, showCheckboxes_1 = _a.showCheckboxes, treeItemActionsDisplayMode_1 = _a.treeItemActionsDisplayMode, defaultExpandedChildren_1 = _a.defaultExpandedChildren;\n var expanded_1 = _this.state.expanded;\n var childrenWithHandlers = list.map(function (item, index) {\n return (React.createElement(TreeItem, { treeItem: item, defaultExpanded: defaultExpandedChildren_1 ? expanded_1 : expanded_1 && !item.hasOwnProperty('children'), defaultExpandedChildren: defaultExpandedChildren_1, leftOffset: paddingLeft, selectionMode: selectionMode_1, activeItems: activeItems_1, isFirstRender: !paddingLeft ? true : false, parentCallbackExpandCollapse: parentCallbackExpandCollapse_1, parentCallbackOnSelect: parentCallbackOnSelect_1, onRenderItem: onRenderItem_1, showCheckboxes: showCheckboxes_1, treeItemActionsDisplayMode: treeItemActionsDisplayMode_1, nodesToExpand: _this.props.nodesToExpand }));\n });\n return childrenWithHandlers;\n }\n };\n /**\n * Default action callback\n */\n _this.treeItemActionCallback = function () {\n };\n // Check if current item is selected\n var active = props.activeItems.filter(function (item) { return item.key === props.treeItem.key; });\n var expanded = props.defaultExpanded;\n if (!expanded && props.nodesToExpand.indexOf(props.treeItem.key) != -1) {\n expanded = true;\n }\n _this.state = {\n selected: active.length > 0,\n // expanded: this.props.defaultExpanded\n expanded: expanded\n };\n // Bind control events\n _this._itemSelected = _this._itemSelected.bind(_this);\n _this._handleExpandCollapse = _this._handleExpandCollapse.bind(_this);\n return _this;\n }\n /**\n * Handle the checkbox change trigger\n */\n TreeItem.prototype._itemSelected = function (ev, isChecked) {\n this.setState({\n selected: !this.state.selected\n });\n this.props.parentCallbackOnSelect(this.props.treeItem, isChecked);\n };\n /**\n * Handle the click event: collapse or expand\n */\n TreeItem.prototype._handleExpandCollapse = function () {\n this.setState({\n expanded: !this.state.expanded\n });\n this.props.parentCallbackExpandCollapse(this.props.treeItem, !this.state.expanded);\n };\n /**\n * Lifecycle event hook when component retrieves new properties\n * @param nextProps\n * @param nextContext\n */\n TreeItem.prototype.componentWillReceiveProps = function (nextProps) {\n var _this = this;\n // If selection is turned on, set the item as selected\n if (this.props.selectionMode != TreeViewSelectionMode.None) {\n var active = nextProps.activeItems.filter(function (item) { return item.key === _this.props.treeItem.key; });\n var _isExpanded = this.state.expanded;\n if (!_isExpanded && this.props.nodesToExpand.indexOf(this.props.treeItem.key) != -1) {\n _isExpanded = true;\n }\n if (_isExpanded && this.props.nodesToExpand.indexOf(this.props.treeItem.key) == -1) {\n _isExpanded = false;\n }\n this.setState({\n selected: active.length > 0,\n expanded: _isExpanded\n });\n }\n };\n /**\n * Default or custom rendering of tree item\n */\n TreeItem.prototype.renderItem = function (item) {\n var _this = this;\n if (typeof this.props.onRenderItem === \"function\") {\n // Custom rendering of tree item\n return this.props.onRenderItem(item);\n }\n else {\n return (\n // Default rendering of tree item\n React.createElement(\"div\", { className: styles.labels, onClick: function (e) {\n if (_this.props.selectionMode != TreeViewSelectionMode.None && item.selectable != false) {\n e.stopPropagation();\n if (!item.disabled) {\n _this._itemSelected(e, !_this.state.selected);\n }\n }\n } },\n this.props.showCheckboxes && item.selectable == false && !item.children &&\n React.createElement(\"span\", { className: styles.blankspace }, \"\\u00A0\"),\n // Rendering when item has iconProps\n item.iconProps &&\n React.createElement(\"span\", null,\n React.createElement(Icon, { className: styles.icon, iconName: item.iconProps.iconName, style: item.iconProps.style }),\n \"\\u00A0\"),\n item.label,\n // Render sublabel\n item.subLabel &&\n React.createElement(\"div\", { className: styles.itemSubLabel }, item.subLabel)));\n }\n };\n /**\n * Default React render method\n */\n TreeItem.prototype.render = function () {\n var _a;\n var _this = this;\n var _b = this.props, treeItem = _b.treeItem, leftOffset = _b.leftOffset, showCheckboxes = _b.showCheckboxes, selectionMode = _b.selectionMode, treeItemActionsDisplayMode = _b.treeItemActionsDisplayMode;\n var _c = this.state, expanded = _c.expanded, selected = _c.selected;\n var styleProps = {\n marginLeft: leftOffset + \"px\"\n };\n var contentStyles = {\n marginLeft: treeItem.children ? '0' : leftOffset + \"px\"\n };\n return (React.createElement(\"div\", null,\n React.createElement(\"div\", { className: styles.listItem + \" \" + styles.tree },\n React.createElement(\"div\", { className: \"\" + styles.treeSelector }, \n // Render expand / collapse icons for items which has children.\n treeItem.children &&\n React.createElement(IconButton, { iconProps: expanded ? { iconName: 'ChevronDown' } : { iconName: 'ChevronRight' }, alt: expanded ? strings.TreeViewCollapseTitle : strings.TreeViewExpandTitle, title: expanded ? strings.TreeViewCollapseTitle : strings.TreeViewExpandTitle, onClick: function () { return _this._handleExpandCollapse(); } })),\n React.createElement(\"div\", { className: css((_a = {},\n _a[styles.itemContent] = true,\n _a[styles.noCheckBox] = !showCheckboxes,\n _a[styles.checked] = selected,\n _a[styles.disabled] = !!treeItem.disabled,\n _a)), style: contentStyles, onClick: function (e) {\n if (_this.props.selectionMode != TreeViewSelectionMode.None && treeItem.selectable != false) {\n e.stopPropagation();\n if (!treeItem.disabled && e.currentTarget === e.target) {\n _this._itemSelected(e, !_this.state.selected);\n }\n }\n } },\n // Render checkbox (if item is selectable, Selection mode is not None, and showCheckboxes property is set to true)\n (treeItem.selectable != false) && selectionMode != TreeViewSelectionMode.None && showCheckboxes &&\n React.createElement(Checkbox, { checked: selected, disabled: treeItem.disabled, className: styles.checkbox, onChange: this._itemSelected }),\n // Call default render item function\n this.renderItem(treeItem),\n // Render actions for tree item\n treeItem.actions &&\n React.createElement(\"div\", { className: styles.itemMenu },\n React.createElement(TreeItemActionsControl, { treeItem: treeItem, treeItemActions: {\n actions: treeItem.actions,\n treeItemActionsDisplayMode: treeItemActionsDisplayMode\n }, treeItemActionCallback: this.treeItemActionCallback })))),\n React.createElement(\"div\", { style: styleProps || {} }, \n // Render child nodes\n expanded && treeItem.children\n ? this.createChildNodes(treeItem.children, leftOffset) // we double left padding on every recursion/depth\n : null)));\n };\n return TreeItem;\n}(React.Component));\nexport default TreeItem;\n"
|
|
414067
414067
|
},
|
|
414068
414068
|
{
|
|
414069
414069
|
"id": "hR4L",
|
|
@@ -427503,9 +427503,9 @@
|
|
|
427503
427503
|
"controls-test-web-part",
|
|
427504
427504
|
"ootb-fields-field-customizer"
|
|
427505
427505
|
],
|
|
427506
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
427507
|
-
"issuerId": "
|
|
427508
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
427506
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js",
|
|
427507
|
+
"issuerId": "pd4o",
|
|
427508
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js",
|
|
427509
427509
|
"issuerPath": [
|
|
427510
427510
|
{
|
|
427511
427511
|
"id": "G6oG",
|
|
@@ -427523,14 +427523,14 @@
|
|
|
427523
427523
|
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/index.js"
|
|
427524
427524
|
},
|
|
427525
427525
|
{
|
|
427526
|
-
"id": "
|
|
427527
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
427528
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
427526
|
+
"id": "2ihB",
|
|
427527
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.js",
|
|
427528
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.js"
|
|
427529
427529
|
},
|
|
427530
427530
|
{
|
|
427531
|
-
"id": "
|
|
427532
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
427533
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
427531
|
+
"id": "pd4o",
|
|
427532
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js",
|
|
427533
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js"
|
|
427534
427534
|
}
|
|
427535
427535
|
],
|
|
427536
427536
|
"failed": false,
|
|
@@ -442197,7 +442197,7 @@
|
|
|
442197
442197
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
442198
442198
|
"type": "harmony import specifier",
|
|
442199
442199
|
"userRequest": "./TreeItemActionsControl",
|
|
442200
|
-
"loc": "
|
|
442200
|
+
"loc": "189:48-70"
|
|
442201
442201
|
}
|
|
442202
442202
|
],
|
|
442203
442203
|
"providedExports": [
|
|
@@ -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": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
446872
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.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": "mvdJ",
|
|
446876
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
446877
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js"
|
|
446878
446878
|
},
|
|
446879
446879
|
{
|
|
446880
446880
|
"id": "4eMn",
|
|
@@ -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": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
465344
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.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": "mvdJ",
|
|
465348
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
465349
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js"
|
|
465350
465350
|
},
|
|
465351
465351
|
{
|
|
465352
465352
|
"id": "4eMn",
|
|
@@ -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": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
505592
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.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": "mvdJ",
|
|
505596
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
505597
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js"
|
|
505598
505598
|
},
|
|
505599
505599
|
{
|
|
505600
505600
|
"id": "4eMn",
|
|
@@ -506422,7 +506422,7 @@
|
|
|
506422
506422
|
"moduleName": "./lib/controls/locationPicker/LocationPicker.js",
|
|
506423
506423
|
"type": "harmony import specifier",
|
|
506424
506424
|
"userRequest": "@microsoft/sp-http",
|
|
506425
|
-
"loc": "205:
|
|
506425
|
+
"loc": "205:163-175"
|
|
506426
506426
|
},
|
|
506427
506427
|
{
|
|
506428
506428
|
"moduleId": "YEex",
|
|
@@ -541875,7 +541875,7 @@
|
|
|
541875
541875
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
541876
541876
|
"type": "harmony import specifier",
|
|
541877
541877
|
"userRequest": "office-ui-fabric-react/lib/Icon",
|
|
541878
|
-
"loc": "
|
|
541878
|
+
"loc": "140:44-48"
|
|
541879
541879
|
},
|
|
541880
541880
|
{
|
|
541881
541881
|
"moduleId": "kJOq",
|
|
@@ -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": "83b92659dd66028fdbcd",
|
|
542879
542879
|
"siblings": [],
|
|
542880
542880
|
"parents": [],
|
|
542881
542881
|
"children": [],
|
|
@@ -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,
|
|
@@ -577279,7 +577279,7 @@
|
|
|
577279
577279
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
577280
577280
|
"type": "harmony import specifier",
|
|
577281
577281
|
"userRequest": "office-ui-fabric-react/lib/Button",
|
|
577282
|
-
"loc": "
|
|
577282
|
+
"loc": "167:40-50"
|
|
577283
577283
|
},
|
|
577284
577284
|
{
|
|
577285
577285
|
"moduleId": "huR6",
|
|
@@ -599090,7 +599090,7 @@
|
|
|
599090
599090
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
599091
599091
|
"type": "harmony import specifier",
|
|
599092
599092
|
"userRequest": "office-ui-fabric-react/lib/Utilities",
|
|
599093
|
-
"loc": "
|
|
599093
|
+
"loc": "168:56-59"
|
|
599094
599094
|
},
|
|
599095
599095
|
{
|
|
599096
599096
|
"moduleId": "hrfb",
|
|
@@ -624276,7 +624276,7 @@
|
|
|
624276
624276
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
624277
624277
|
"type": "harmony import specifier",
|
|
624278
624278
|
"userRequest": "ControlStrings",
|
|
624279
|
-
"loc": "
|
|
624279
|
+
"loc": "167:152-181"
|
|
624280
624280
|
},
|
|
624281
624281
|
{
|
|
624282
624282
|
"moduleId": "hQoI",
|
|
@@ -624285,7 +624285,7 @@
|
|
|
624285
624285
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
624286
624286
|
"type": "harmony import specifier",
|
|
624287
624287
|
"userRequest": "ControlStrings",
|
|
624288
|
-
"loc": "
|
|
624288
|
+
"loc": "167:184-211"
|
|
624289
624289
|
},
|
|
624290
624290
|
{
|
|
624291
624291
|
"moduleId": "hQoI",
|
|
@@ -624294,7 +624294,7 @@
|
|
|
624294
624294
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
624295
624295
|
"type": "harmony import specifier",
|
|
624296
624296
|
"userRequest": "ControlStrings",
|
|
624297
|
-
"loc": "
|
|
624297
|
+
"loc": "167:231-260"
|
|
624298
624298
|
},
|
|
624299
624299
|
{
|
|
624300
624300
|
"moduleId": "hQoI",
|
|
@@ -624303,7 +624303,7 @@
|
|
|
624303
624303
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
624304
624304
|
"type": "harmony import specifier",
|
|
624305
624305
|
"userRequest": "ControlStrings",
|
|
624306
|
-
"loc": "
|
|
624306
|
+
"loc": "167:263-290"
|
|
624307
624307
|
},
|
|
624308
624308
|
{
|
|
624309
624309
|
"moduleId": "k0SN",
|
|
@@ -634378,9 +634378,9 @@
|
|
|
634378
634378
|
"controls-test-web-part",
|
|
634379
634379
|
"ootb-fields-field-customizer"
|
|
634380
634380
|
],
|
|
634381
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
634382
|
-
"issuerId": "
|
|
634383
|
-
"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/DefaultButton/DefaultButton.styles.js",
|
|
634382
|
+
"issuerId": "k/69",
|
|
634383
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.styles.js",
|
|
634384
634384
|
"issuerPath": [
|
|
634385
634385
|
{
|
|
634386
634386
|
"id": "G6oG",
|
|
@@ -634398,14 +634398,14 @@
|
|
|
634398
634398
|
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/index.js"
|
|
634399
634399
|
},
|
|
634400
634400
|
{
|
|
634401
|
-
"id": "
|
|
634402
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
634403
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
634401
|
+
"id": "sByA",
|
|
634402
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.js",
|
|
634403
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.js"
|
|
634404
634404
|
},
|
|
634405
634405
|
{
|
|
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/
|
|
634406
|
+
"id": "k/69",
|
|
634407
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.styles.js",
|
|
634408
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.styles.js"
|
|
634409
634409
|
}
|
|
634410
634410
|
],
|
|
634411
634411
|
"failed": false,
|
|
@@ -678411,7 +678411,7 @@
|
|
|
678411
678411
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678412
678412
|
"type": "harmony import specifier",
|
|
678413
678413
|
"userRequest": "react",
|
|
678414
|
-
"loc": "
|
|
678414
|
+
"loc": "127:12-31"
|
|
678415
678415
|
},
|
|
678416
678416
|
{
|
|
678417
678417
|
"moduleId": "hQoI",
|
|
@@ -678420,7 +678420,7 @@
|
|
|
678420
678420
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678421
678421
|
"type": "harmony import specifier",
|
|
678422
678422
|
"userRequest": "react",
|
|
678423
|
-
"loc": "
|
|
678423
|
+
"loc": "136:20-39"
|
|
678424
678424
|
},
|
|
678425
678425
|
{
|
|
678426
678426
|
"moduleId": "hQoI",
|
|
@@ -678429,7 +678429,7 @@
|
|
|
678429
678429
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678430
678430
|
"type": "harmony import specifier",
|
|
678431
678431
|
"userRequest": "react",
|
|
678432
|
-
"loc": "
|
|
678432
|
+
"loc": "139:20-39"
|
|
678433
678433
|
},
|
|
678434
678434
|
{
|
|
678435
678435
|
"moduleId": "hQoI",
|
|
@@ -678438,7 +678438,7 @@
|
|
|
678438
678438
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678439
678439
|
"type": "harmony import specifier",
|
|
678440
678440
|
"userRequest": "react",
|
|
678441
|
-
"loc": "
|
|
678441
|
+
"loc": "140:24-43"
|
|
678442
678442
|
},
|
|
678443
678443
|
{
|
|
678444
678444
|
"moduleId": "hQoI",
|
|
@@ -678447,7 +678447,7 @@
|
|
|
678447
678447
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678448
678448
|
"type": "harmony import specifier",
|
|
678449
678449
|
"userRequest": "react",
|
|
678450
|
-
"loc": "
|
|
678450
|
+
"loc": "145:20-39"
|
|
678451
678451
|
},
|
|
678452
678452
|
{
|
|
678453
678453
|
"moduleId": "hQoI",
|
|
@@ -678456,7 +678456,7 @@
|
|
|
678456
678456
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678457
678457
|
"type": "harmony import specifier",
|
|
678458
678458
|
"userRequest": "react",
|
|
678459
|
-
"loc": "
|
|
678459
|
+
"loc": "162:16-35"
|
|
678460
678460
|
},
|
|
678461
678461
|
{
|
|
678462
678462
|
"moduleId": "hQoI",
|
|
@@ -678465,7 +678465,7 @@
|
|
|
678465
678465
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678466
678466
|
"type": "harmony import specifier",
|
|
678467
678467
|
"userRequest": "react",
|
|
678468
|
-
"loc": "
|
|
678468
|
+
"loc": "163:12-31"
|
|
678469
678469
|
},
|
|
678470
678470
|
{
|
|
678471
678471
|
"moduleId": "hQoI",
|
|
@@ -678474,7 +678474,7 @@
|
|
|
678474
678474
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678475
678475
|
"type": "harmony import specifier",
|
|
678476
678476
|
"userRequest": "react",
|
|
678477
|
-
"loc": "
|
|
678477
|
+
"loc": "164:16-35"
|
|
678478
678478
|
},
|
|
678479
678479
|
{
|
|
678480
678480
|
"moduleId": "hQoI",
|
|
@@ -678483,7 +678483,7 @@
|
|
|
678483
678483
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678484
678484
|
"type": "harmony import specifier",
|
|
678485
678485
|
"userRequest": "react",
|
|
678486
|
-
"loc": "
|
|
678486
|
+
"loc": "167:20-39"
|
|
678487
678487
|
},
|
|
678488
678488
|
{
|
|
678489
678489
|
"moduleId": "hQoI",
|
|
@@ -678492,7 +678492,7 @@
|
|
|
678492
678492
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678493
678493
|
"type": "harmony import specifier",
|
|
678494
678494
|
"userRequest": "react",
|
|
678495
|
-
"loc": "
|
|
678495
|
+
"loc": "168:16-35"
|
|
678496
678496
|
},
|
|
678497
678497
|
{
|
|
678498
678498
|
"moduleId": "hQoI",
|
|
@@ -678501,7 +678501,7 @@
|
|
|
678501
678501
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678502
678502
|
"type": "harmony import specifier",
|
|
678503
678503
|
"userRequest": "react",
|
|
678504
|
-
"loc": "
|
|
678504
|
+
"loc": "183:24-43"
|
|
678505
678505
|
},
|
|
678506
678506
|
{
|
|
678507
678507
|
"moduleId": "hQoI",
|
|
@@ -678510,7 +678510,7 @@
|
|
|
678510
678510
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678511
678511
|
"type": "harmony import specifier",
|
|
678512
678512
|
"userRequest": "react",
|
|
678513
|
-
"loc": "
|
|
678513
|
+
"loc": "188:24-43"
|
|
678514
678514
|
},
|
|
678515
678515
|
{
|
|
678516
678516
|
"moduleId": "hQoI",
|
|
@@ -678519,7 +678519,7 @@
|
|
|
678519
678519
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678520
678520
|
"type": "harmony import specifier",
|
|
678521
678521
|
"userRequest": "react",
|
|
678522
|
-
"loc": "
|
|
678522
|
+
"loc": "189:28-47"
|
|
678523
678523
|
},
|
|
678524
678524
|
{
|
|
678525
678525
|
"moduleId": "hQoI",
|
|
@@ -678528,7 +678528,7 @@
|
|
|
678528
678528
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678529
678529
|
"type": "harmony import specifier",
|
|
678530
678530
|
"userRequest": "react",
|
|
678531
|
-
"loc": "
|
|
678531
|
+
"loc": "193:12-31"
|
|
678532
678532
|
},
|
|
678533
678533
|
{
|
|
678534
678534
|
"moduleId": "hQoI",
|
|
@@ -678537,7 +678537,7 @@
|
|
|
678537
678537
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
678538
678538
|
"type": "harmony import specifier",
|
|
678539
678539
|
"userRequest": "react",
|
|
678540
|
-
"loc": "
|
|
678540
|
+
"loc": "200:2-17"
|
|
678541
678541
|
},
|
|
678542
678542
|
{
|
|
678543
678543
|
"moduleId": "hgRX",
|
|
@@ -694278,7 +694278,7 @@
|
|
|
694278
694278
|
],
|
|
694279
694279
|
"optimizationBailout": [],
|
|
694280
694280
|
"depth": 4,
|
|
694281
|
-
"source": "export var version = \"3.7.0-beta.
|
|
694281
|
+
"source": "export var version = \"3.7.0-beta.2018695\";\n"
|
|
694282
694282
|
},
|
|
694283
694283
|
{
|
|
694284
694284
|
"id": "cPD0",
|
|
@@ -705639,9 +705639,9 @@
|
|
|
705639
705639
|
"controls-test-web-part",
|
|
705640
705640
|
"ootb-fields-field-customizer"
|
|
705641
705641
|
],
|
|
705642
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
705643
|
-
"issuerId": "
|
|
705644
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
705642
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js",
|
|
705643
|
+
"issuerId": "pd4o",
|
|
705644
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js",
|
|
705645
705645
|
"issuerPath": [
|
|
705646
705646
|
{
|
|
705647
705647
|
"id": "G6oG",
|
|
@@ -705659,14 +705659,14 @@
|
|
|
705659
705659
|
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/index.js"
|
|
705660
705660
|
},
|
|
705661
705661
|
{
|
|
705662
|
-
"id": "
|
|
705663
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
705664
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
705662
|
+
"id": "2ihB",
|
|
705663
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.js",
|
|
705664
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.js"
|
|
705665
705665
|
},
|
|
705666
705666
|
{
|
|
705667
|
-
"id": "
|
|
705668
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
705669
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
705667
|
+
"id": "pd4o",
|
|
705668
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js",
|
|
705669
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js"
|
|
705670
705670
|
}
|
|
705671
705671
|
],
|
|
705672
705672
|
"failed": false,
|
|
@@ -720863,7 +720863,7 @@
|
|
|
720863
720863
|
"moduleName": "./lib/controls/locationPicker/LocationPicker.js",
|
|
720864
720864
|
"type": "harmony import specifier",
|
|
720865
720865
|
"userRequest": "@microsoft/sp-http",
|
|
720866
|
-
"loc": "205:
|
|
720866
|
+
"loc": "205:163-175"
|
|
720867
720867
|
},
|
|
720868
720868
|
{
|
|
720869
720869
|
"moduleId": "YEex",
|
|
@@ -732187,7 +732187,7 @@
|
|
|
732187
732187
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
732188
732188
|
"type": "harmony import specifier",
|
|
732189
732189
|
"userRequest": "office-ui-fabric-react/lib/Icon",
|
|
732190
|
-
"loc": "
|
|
732190
|
+
"loc": "140:44-48"
|
|
732191
732191
|
},
|
|
732192
732192
|
{
|
|
732193
732193
|
"moduleId": "kJOq",
|
|
@@ -735173,7 +735173,7 @@
|
|
|
735173
735173
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
735174
735174
|
"type": "harmony import specifier",
|
|
735175
735175
|
"userRequest": "office-ui-fabric-react/lib/Checkbox",
|
|
735176
|
-
"loc": "
|
|
735176
|
+
"loc": "183:44-52"
|
|
735177
735177
|
},
|
|
735178
735178
|
{
|
|
735179
735179
|
"moduleId": "ihU0",
|
|
@@ -778330,14 +778330,14 @@
|
|
|
778330
778330
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
778331
778331
|
},
|
|
778332
778332
|
{
|
|
778333
|
-
"id": "
|
|
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/
|
|
778335
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
778333
|
+
"id": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
778335
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.js"
|
|
778336
778336
|
},
|
|
778337
778337
|
{
|
|
778338
|
-
"id": "
|
|
778339
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
778340
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
778338
|
+
"id": "mvdJ",
|
|
778339
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
778340
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js"
|
|
778341
778341
|
},
|
|
778342
778342
|
{
|
|
778343
778343
|
"id": "4eMn",
|
|
@@ -779849,9 +779849,9 @@
|
|
|
779849
779849
|
"chunks": [
|
|
779850
779850
|
"controls-test-web-part"
|
|
779851
779851
|
],
|
|
779852
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
779853
|
-
"issuerId": "
|
|
779854
|
-
"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/List/ListItem.js",
|
|
779853
|
+
"issuerId": "mvdJ",
|
|
779854
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
779855
779855
|
"issuerPath": [
|
|
779856
779856
|
{
|
|
779857
779857
|
"id": "G6oG",
|
|
@@ -779879,14 +779879,14 @@
|
|
|
779879
779879
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
779880
779880
|
},
|
|
779881
779881
|
{
|
|
779882
|
-
"id": "
|
|
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/
|
|
779884
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
779882
|
+
"id": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
779884
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.js"
|
|
779885
779885
|
},
|
|
779886
779886
|
{
|
|
779887
|
-
"id": "
|
|
779888
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
779889
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
779887
|
+
"id": "mvdJ",
|
|
779888
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
779889
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js"
|
|
779890
779890
|
}
|
|
779891
779891
|
],
|
|
779892
779892
|
"failed": false,
|
|
@@ -854658,7 +854658,7 @@
|
|
|
854658
854658
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854659
854659
|
"type": "harmony import specifier",
|
|
854660
854660
|
"userRequest": "./TreeView.module.scss",
|
|
854661
|
-
"loc": "
|
|
854661
|
+
"loc": "127:52-58"
|
|
854662
854662
|
},
|
|
854663
854663
|
{
|
|
854664
854664
|
"moduleId": "hQoI",
|
|
@@ -854667,7 +854667,7 @@
|
|
|
854667
854667
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854668
854668
|
"type": "harmony import specifier",
|
|
854669
854669
|
"userRequest": "./TreeView.module.scss",
|
|
854670
|
-
"loc": "
|
|
854670
|
+
"loc": "136:61-67"
|
|
854671
854671
|
},
|
|
854672
854672
|
{
|
|
854673
854673
|
"moduleId": "hQoI",
|
|
@@ -854676,7 +854676,7 @@
|
|
|
854676
854676
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854677
854677
|
"type": "harmony import specifier",
|
|
854678
854678
|
"userRequest": "./TreeView.module.scss",
|
|
854679
|
-
"loc": "
|
|
854679
|
+
"loc": "140:63-69"
|
|
854680
854680
|
},
|
|
854681
854681
|
{
|
|
854682
854682
|
"moduleId": "hQoI",
|
|
@@ -854685,7 +854685,7 @@
|
|
|
854685
854685
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854686
854686
|
"type": "harmony import specifier",
|
|
854687
854687
|
"userRequest": "./TreeView.module.scss",
|
|
854688
|
-
"loc": "
|
|
854688
|
+
"loc": "145:60-66"
|
|
854689
854689
|
},
|
|
854690
854690
|
{
|
|
854691
854691
|
"moduleId": "hQoI",
|
|
@@ -854694,7 +854694,7 @@
|
|
|
854694
854694
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854695
854695
|
"type": "harmony import specifier",
|
|
854696
854696
|
"userRequest": "./TreeView.module.scss",
|
|
854697
|
-
"loc": "
|
|
854697
|
+
"loc": "163:52-58"
|
|
854698
854698
|
},
|
|
854699
854699
|
{
|
|
854700
854700
|
"moduleId": "hQoI",
|
|
@@ -854703,7 +854703,7 @@
|
|
|
854703
854703
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854704
854704
|
"type": "harmony import specifier",
|
|
854705
854705
|
"userRequest": "./TreeView.module.scss",
|
|
854706
|
-
"loc": "
|
|
854706
|
+
"loc": "163:76-82"
|
|
854707
854707
|
},
|
|
854708
854708
|
{
|
|
854709
854709
|
"moduleId": "hQoI",
|
|
@@ -854712,7 +854712,7 @@
|
|
|
854712
854712
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854713
854713
|
"type": "harmony import specifier",
|
|
854714
854714
|
"userRequest": "./TreeView.module.scss",
|
|
854715
|
-
"loc": "
|
|
854715
|
+
"loc": "164:61-67"
|
|
854716
854716
|
},
|
|
854717
854717
|
{
|
|
854718
854718
|
"moduleId": "hQoI",
|
|
@@ -854721,7 +854721,7 @@
|
|
|
854721
854721
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854722
854722
|
"type": "harmony import specifier",
|
|
854723
854723
|
"userRequest": "./TreeView.module.scss",
|
|
854724
|
-
"loc": "
|
|
854724
|
+
"loc": "169:27-33"
|
|
854725
854725
|
},
|
|
854726
854726
|
{
|
|
854727
854727
|
"moduleId": "hQoI",
|
|
@@ -854730,7 +854730,7 @@
|
|
|
854730
854730
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854731
854731
|
"type": "harmony import specifier",
|
|
854732
854732
|
"userRequest": "./TreeView.module.scss",
|
|
854733
|
-
"loc": "
|
|
854733
|
+
"loc": "170:27-33"
|
|
854734
854734
|
},
|
|
854735
854735
|
{
|
|
854736
854736
|
"moduleId": "hQoI",
|
|
@@ -854739,7 +854739,7 @@
|
|
|
854739
854739
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854740
854740
|
"type": "harmony import specifier",
|
|
854741
854741
|
"userRequest": "./TreeView.module.scss",
|
|
854742
|
-
"loc": "
|
|
854742
|
+
"loc": "171:27-33"
|
|
854743
854743
|
},
|
|
854744
854744
|
{
|
|
854745
854745
|
"moduleId": "hQoI",
|
|
@@ -854748,7 +854748,7 @@
|
|
|
854748
854748
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854749
854749
|
"type": "harmony import specifier",
|
|
854750
854750
|
"userRequest": "./TreeView.module.scss",
|
|
854751
|
-
"loc": "
|
|
854751
|
+
"loc": "172:27-33"
|
|
854752
854752
|
},
|
|
854753
854753
|
{
|
|
854754
854754
|
"moduleId": "hQoI",
|
|
@@ -854757,7 +854757,7 @@
|
|
|
854757
854757
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854758
854758
|
"type": "harmony import specifier",
|
|
854759
854759
|
"userRequest": "./TreeView.module.scss",
|
|
854760
|
-
"loc": "
|
|
854760
|
+
"loc": "183:115-121"
|
|
854761
854761
|
},
|
|
854762
854762
|
{
|
|
854763
854763
|
"moduleId": "hQoI",
|
|
@@ -854766,7 +854766,7 @@
|
|
|
854766
854766
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
854767
854767
|
"type": "harmony import specifier",
|
|
854768
854768
|
"userRequest": "./TreeView.module.scss",
|
|
854769
|
-
"loc": "
|
|
854769
|
+
"loc": "188:64-70"
|
|
854770
854770
|
}
|
|
854771
854771
|
],
|
|
854772
854772
|
"providedExports": [
|
|
@@ -857220,9 +857220,9 @@
|
|
|
857220
857220
|
"controls-test-web-part",
|
|
857221
857221
|
"ootb-fields-field-customizer"
|
|
857222
857222
|
],
|
|
857223
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
857224
|
-
"issuerId": "
|
|
857225
|
-
"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",
|
|
857226
857226
|
"issuerPath": [
|
|
857227
857227
|
{
|
|
857228
857228
|
"id": "8shM",
|
|
@@ -857260,9 +857260,9 @@
|
|
|
857260
857260
|
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/index.js"
|
|
857261
857261
|
},
|
|
857262
857262
|
{
|
|
857263
|
-
"id": "
|
|
857264
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
857265
|
-
"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"
|
|
857266
857266
|
}
|
|
857267
857267
|
],
|
|
857268
857268
|
"failed": false,
|
|
@@ -869492,7 +869492,7 @@
|
|
|
869492
869492
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
869493
869493
|
"type": "harmony import specifier",
|
|
869494
869494
|
"userRequest": "office-ui-fabric-react/lib/Button",
|
|
869495
|
-
"loc": "
|
|
869495
|
+
"loc": "167:40-50"
|
|
869496
869496
|
},
|
|
869497
869497
|
{
|
|
869498
869498
|
"moduleId": "huR6",
|
|
@@ -918568,7 +918568,7 @@
|
|
|
918568
918568
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
918569
918569
|
"type": "harmony import specifier",
|
|
918570
918570
|
"userRequest": "office-ui-fabric-react/lib/Utilities",
|
|
918571
|
-
"loc": "
|
|
918571
|
+
"loc": "168:56-59"
|
|
918572
918572
|
},
|
|
918573
918573
|
{
|
|
918574
918574
|
"moduleId": "hrfb",
|
|
@@ -948659,14 +948659,14 @@
|
|
|
948659
948659
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
948660
948660
|
},
|
|
948661
948661
|
{
|
|
948662
|
-
"id": "
|
|
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/
|
|
948664
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
948662
|
+
"id": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
948664
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.js"
|
|
948665
948665
|
},
|
|
948666
948666
|
{
|
|
948667
|
-
"id": "
|
|
948668
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
948669
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
948667
|
+
"id": "mvdJ",
|
|
948668
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
948669
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js"
|
|
948670
948670
|
},
|
|
948671
948671
|
{
|
|
948672
948672
|
"id": "4eMn",
|
|
@@ -978904,7 +978904,7 @@
|
|
|
978904
978904
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
978905
978905
|
"type": "harmony import specifier",
|
|
978906
978906
|
"userRequest": "ControlStrings",
|
|
978907
|
-
"loc": "
|
|
978907
|
+
"loc": "167:152-181"
|
|
978908
978908
|
},
|
|
978909
978909
|
{
|
|
978910
978910
|
"moduleId": "hQoI",
|
|
@@ -978913,7 +978913,7 @@
|
|
|
978913
978913
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
978914
978914
|
"type": "harmony import specifier",
|
|
978915
978915
|
"userRequest": "ControlStrings",
|
|
978916
|
-
"loc": "
|
|
978916
|
+
"loc": "167:184-211"
|
|
978917
978917
|
},
|
|
978918
978918
|
{
|
|
978919
978919
|
"moduleId": "hQoI",
|
|
@@ -978922,7 +978922,7 @@
|
|
|
978922
978922
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
978923
978923
|
"type": "harmony import specifier",
|
|
978924
978924
|
"userRequest": "ControlStrings",
|
|
978925
|
-
"loc": "
|
|
978925
|
+
"loc": "167:231-260"
|
|
978926
978926
|
},
|
|
978927
978927
|
{
|
|
978928
978928
|
"moduleId": "hQoI",
|
|
@@ -978931,7 +978931,7 @@
|
|
|
978931
978931
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
978932
978932
|
"type": "harmony import specifier",
|
|
978933
978933
|
"userRequest": "ControlStrings",
|
|
978934
|
-
"loc": "
|
|
978934
|
+
"loc": "167:263-290"
|
|
978935
978935
|
},
|
|
978936
978936
|
{
|
|
978937
978937
|
"moduleId": "k0SN",
|
|
@@ -1000668,7 +1000668,7 @@
|
|
|
1000668
1000668
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1000669
1000669
|
"type": "harmony import specifier",
|
|
1000670
1000670
|
"userRequest": "./ITreeViewProps",
|
|
1000671
|
-
"loc": "
|
|
1000671
|
+
"loc": "128:53-74"
|
|
1000672
1000672
|
},
|
|
1000673
1000673
|
{
|
|
1000674
1000674
|
"moduleId": "hQoI",
|
|
@@ -1000677,7 +1000677,7 @@
|
|
|
1000677
1000677
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1000678
1000678
|
"type": "harmony import specifier",
|
|
1000679
1000679
|
"userRequest": "./ITreeViewProps",
|
|
1000680
|
-
"loc": "
|
|
1000680
|
+
"loc": "174:57-78"
|
|
1000681
1000681
|
},
|
|
1000682
1000682
|
{
|
|
1000683
1000683
|
"moduleId": "hQoI",
|
|
@@ -1000686,7 +1000686,7 @@
|
|
|
1000686
1000686
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1000687
1000687
|
"type": "harmony import specifier",
|
|
1000688
1000688
|
"userRequest": "./ITreeViewProps",
|
|
1000689
|
-
"loc": "
|
|
1000689
|
+
"loc": "182:71-92"
|
|
1000690
1000690
|
}
|
|
1000691
1000691
|
],
|
|
1000692
1000692
|
"providedExports": [
|
|
@@ -1007010,9 +1007010,9 @@
|
|
|
1007010
1007010
|
"chunks": [
|
|
1007011
1007011
|
"controls-test-web-part"
|
|
1007012
1007012
|
],
|
|
1007013
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/source-map-loader/index.js!/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/lib/controls/accessibleAccordion/components/
|
|
1007014
|
-
"issuerId": "
|
|
1007015
|
-
"issuerName": "./lib/controls/accessibleAccordion/components/
|
|
1007013
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/source-map-loader/index.js!/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/lib/controls/accessibleAccordion/components/AccordionItemHeading.js",
|
|
1007014
|
+
"issuerId": "PVoh",
|
|
1007015
|
+
"issuerName": "./lib/controls/accessibleAccordion/components/AccordionItemHeading.js",
|
|
1007016
1007016
|
"issuerPath": [
|
|
1007017
1007017
|
{
|
|
1007018
1007018
|
"id": "G6oG",
|
|
@@ -1007030,9 +1007030,9 @@
|
|
|
1007030
1007030
|
"name": "./lib/controls/accessibleAccordion/index.js"
|
|
1007031
1007031
|
},
|
|
1007032
1007032
|
{
|
|
1007033
|
-
"id": "
|
|
1007034
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/source-map-loader/index.js!/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/lib/controls/accessibleAccordion/components/
|
|
1007035
|
-
"name": "./lib/controls/accessibleAccordion/components/
|
|
1007033
|
+
"id": "PVoh",
|
|
1007034
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/source-map-loader/index.js!/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/lib/controls/accessibleAccordion/components/AccordionItemHeading.js",
|
|
1007035
|
+
"name": "./lib/controls/accessibleAccordion/components/AccordionItemHeading.js"
|
|
1007036
1007036
|
}
|
|
1007037
1007037
|
],
|
|
1007038
1007038
|
"failed": false,
|
|
@@ -1019130,7 +1019130,7 @@
|
|
|
1019130
1019130
|
"name": "./lib/controls/locationPicker/LocationPicker.js",
|
|
1019131
1019131
|
"index": 2900,
|
|
1019132
1019132
|
"index2": 2902,
|
|
1019133
|
-
"size":
|
|
1019133
|
+
"size": 15729,
|
|
1019134
1019134
|
"cacheable": true,
|
|
1019135
1019135
|
"built": true,
|
|
1019136
1019136
|
"optional": false,
|
|
@@ -1019182,7 +1019182,7 @@
|
|
|
1019182
1019182
|
],
|
|
1019183
1019183
|
"optimizationBailout": [],
|
|
1019184
1019184
|
"depth": 2,
|
|
1019185
|
-
"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 React from 'react';\nimport { Mode } from './ILocationPicker';\nimport styles from './LocationPicker.module.scss';\nimport { SPHttpClient, HttpClient } from '@microsoft/sp-http';\nimport { Text } from 'office-ui-fabric-react/lib/Text';\nimport { Persona, PersonaSize } from 'office-ui-fabric-react/lib/Persona';\nimport { ComboBox } from 'office-ui-fabric-react/lib/ComboBox';\nimport { FontIcon } from 'office-ui-fabric-react/lib/Icon';\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport * as strings from 'ControlStrings';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nvar LocationPicker = /** @class */ (function (_super) {\n __extends(LocationPicker, _super);\n /**\n * Constructor method\n */\n function LocationPicker(props) {\n var _this = _super.call(this, props) || this;\n _this._token = null;\n _this.focusRef = null;\n _this.onRenderOption = function (item) {\n var text = item.text, locationItem = item.locationItem;\n if (locationItem.EntityType === \"Custom\") {\n return React.createElement(Persona, { text: text, imageAlt: locationItem.EntityType, secondaryText: locationItem.DisplayName, size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials });\n }\n else\n return React.createElement(Persona, { text: text, imageAlt: locationItem.EntityType, secondaryText: _this.getLocationText(locationItem, \"full\"), size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials });\n };\n _this.getMainContent = function () {\n var _a = _this.state, options = _a.options, selectedItem = _a.selectedItem, currentMode = _a.currentMode;\n var _b = _this.props, className = _b.className, disabled = _b.disabled, placeholder = _b.placeholder, errorMessage = _b.errorMessage;\n switch (currentMode) {\n case Mode.empty:\n return React.createElement(ComboBox, { className: className, disabled: disabled, placeholder: placeholder, allowFreeform: true, autoComplete: \"on\", options: options, onRenderOption: _this.onRenderOption, calloutProps: { className: styles.callout }, buttonIconProps: { iconName: \"MapPin\" }, useComboBoxAsMenuWidth: true, openOnKeyboardFocus: true, scrollSelectedToTop: true, isButtonAriaHidden: true, onInput: function (e) { return _this.getLocatios(e.target[\"value\"]); }, onChange: _this.onChange, errorMessage: errorMessage });\n case Mode.editView:\n if (selectedItem.EntityType === \"Custom\") {\n return React.createElement(\"div\", { ref: _this.focusRef, \"data-selection-index\": 0, \"data-is-focusable\": true, role: \"listitem\", className: styles.pickerItemContainer, onBlur: _this.onBlur, tabIndex: 0 },\n React.createElement(Persona, { \"data-is-focusable\": \"false\", imageAlt: selectedItem.EntityType, tabIndex: 0, text: selectedItem.DisplayName, title: \"Location\", className: styles.persona, size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials }),\n React.createElement(IconButton, { \"data-is-focusable\": \"false\", tabIndex: 0, iconProps: { iconName: \"Cancel\" }, title: \"Clear\", ariaLabel: \"Clear\", disabled: disabled, className: styles.closeButton, onClick: _this.onIconButtonClick }));\n }\n return React.createElement(\"div\", { ref: _this.focusRef, \"data-selection-index\": 0, \"data-is-focusable\": true, role: \"listitem\", className: styles.pickerItemContainer, onBlur: _this.onBlur, tabIndex: 0 },\n React.createElement(Persona, { \"data-is-focusable\": \"false\", imageAlt: selectedItem.EntityType, tabIndex: 0, text: selectedItem.DisplayName, title: \"Location\", className: styles.persona, secondaryText: _this.getLocationText(selectedItem, \"full\"), size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials }),\n !disabled ?\n React.createElement(IconButton, { \"data-is-focusable\": \"false\", tabIndex: 0, iconProps: { iconName: \"Cancel\" }, title: \"Clear\", ariaLabel: \"Clear\", disabled: disabled, className: styles.closeButton, onClick: _this.onIconButtonClick }) : null);\n case Mode.view:\n if (selectedItem.EntityType === 'Custom') {\n return React.createElement(\"div\", { className: styles.locationAddressContainer, onClick: _this.onClick },\n React.createElement(\"div\", { className: styles.locationContainer, tabIndex: 0 },\n React.createElement(\"div\", { className: styles.locationDisplayName }, selectedItem.DisplayName)));\n }\n return React.createElement(\"div\", { className: styles.locationAddressContainer, onClick: _this.onClick },\n React.createElement(\"div\", { className: styles.locationContainer, tabIndex: 0 },\n React.createElement(\"div\", { className: styles.locationDisplayName }, selectedItem.DisplayName),\n React.createElement(\"div\", { className: styles.locationContent },\n React.createElement(\"div\", { className: styles.locationAddress }, _this.getLocationText(selectedItem, \"street\")),\n React.createElement(\"div\", { className: styles.locationAddress }, _this.getLocationText(selectedItem, \"noStreet\")))));\n }\n return null;\n };\n _this.getLocationText = function (item, mode) {\n if (!item.Address) {\n return '';\n }\n var address = item.Address;\n switch (mode) {\n case \"street\":\n return address.Street || \"\";\n case \"noStreet\":\n return \"\" + (address.City ? address.City + \", \" : '') + (address.State ? address.State + \", \" : \"\") + (address.CountryOrRegion || \"\");\n }\n return \"\" + (address.Street ? address.Street + \", \" : '') + (address.City ? address.City + \", \" : \"\") + (address.State ? address.State + \", \" : '') + (address.CountryOrRegion || \"\");\n };\n _this.onIconButtonClick = function () {\n _this.setState({ currentMode: Mode.empty, selectedItem: null });\n };\n _this.onClick = function () {\n _this.setState({ currentMode: Mode.editView }, function () {\n if (_this.focusRef.current != null)\n _this.focusRef.current.focus();\n });\n };\n _this.onBlur = function (ev) {\n try {\n if (ev !== null && ev.relatedTarget[\"title\"] !== \"Location\" && ev.relatedTarget[\"title\"] !== \"Clear\") {\n _this.setState({ currentMode: Mode.view });\n }\n }\n catch (_a) { }\n };\n _this.onChange = function (ev, option) {\n _this.setState({ selectedItem: option.locationItem, currentMode: Mode.editView }, function () {\n if (_this.focusRef.current != null)\n _this.focusRef.current.focus();\n });\n if (_this.props.onChange) {\n _this.props.onChange(option.locationItem);\n }\n };\n _this.getToken();\n _this.focusRef = React.createRef();\n if (props.defaultValue) {\n _this.state = {\n options: [],\n currentMode: Mode.view,\n searchText: null,\n isCalloutVisible: true,\n selectedItem: props.defaultValue,\n };\n }\n else {\n _this.state = {\n options: [],\n currentMode: Mode.empty,\n searchText: null,\n isCalloutVisible: true,\n selectedItem: props.defaultValue,\n };\n }\n return _this;\n }\n LocationPicker.prototype.componentWillReceiveProps = function (nextProps) {\n if (!isEqual(nextProps.defaultValue, this.props.defaultValue)) {\n if (nextProps.defaultValue) {\n this.setState({ selectedItem: nextProps.defaultValue, currentMode: Mode.view });\n }\n }\n };\n /**\n * Renders the LocationPicker controls with Office UI Fabric\n */\n LocationPicker.prototype.render = function () {\n var label = this.props.label;\n return (React.createElement(\"div\", null,\n label ? React.createElement(Text, null, label) : null,\n this.getMainContent()));\n };\n LocationPicker.prototype.customRenderInitials = function (props) {\n if (props.imageAlt === \"Custom\")\n return React.createElement(FontIcon, { \"aria-label\": \"Poi\", iconName: \"Poi\", style: { fontSize: \"14pt\" } });\n else\n return React.createElement(FontIcon, { \"aria-label\": \"EMI\", iconName: \"EMI\", style: { fontSize: \"14pt\" } });\n };\n LocationPicker.prototype.getToken = function () {\n return __awaiter(this, void 0, void 0, function () {\n var requestHeaders, spOpts, response, PrimaryQueryResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n requestHeaders = new Headers();\n requestHeaders.append(\"Content-type\", \"application/json\");\n requestHeaders.append(\"Cache-Control\", \"no-cache\");\n spOpts = {\n body: \"{\\\"resource\\\":\\\"https://outlook.office365.com\\\"}\",\n headers: requestHeaders\n };\n return [4 /*yield*/, this.props.context.spHttpClient.post(this.props.context.pageContext.web.serverRelativeUrl + \"/_api/SP.OAuth.Token/Acquire\", SPHttpClient.configurations.v1, spOpts)];\n case 1:\n response = _a.sent();\n return [4 /*yield*/, response.json()];\n case 2:\n PrimaryQueryResult = _a.sent();\n this._token = PrimaryQueryResult.access_token;\n return [2 /*return*/];\n }\n });\n });\n };\n LocationPicker.prototype.getLocatios = function (searchText) {\n return __awaiter(this, void 0, void 0, function () {\n var optionsForCustomRender_1, requestHeaders, spOpts, response1, json, error_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 3, , 4]);\n optionsForCustomRender_1 = [];\n requestHeaders = new Headers();\n requestHeaders.append(\"Content-type\", \"application/json\");\n requestHeaders.append(\"Cache-Control\", \"no-cache\");\n requestHeaders.append(\"Authorization\", \"Bearer \" + this._token);\n spOpts = {\n body: \"{\\\"QueryConstraint\\\":{\\\"Query\\\":\\\"\" + searchText + \"\\\"},\\\"LocationProvider\\\":32,\\\"BingMarket\\\":\\\"en-IN\\\"}\",\n headers: requestHeaders\n };\n return [4 /*yield*/, this.props.context.httpClient.post(\"https://outlook.office365.com/SchedulingB2/api/v1.0/me/findmeetinglocations\", HttpClient.configurations.v1, spOpts)];\n case 1:\n response1 = _a.sent();\n return [4 /*yield*/, response1.json()];\n case 2:\n json = _a.sent();\n json.MeetingLocations.forEach(function (v, i) {\n var loc = v[\"MeetingLocation\"];\n optionsForCustomRender_1.push({ text: v.MeetingLocation[\"DisplayName\"], key: i, locationItem: loc });\n });\n optionsForCustomRender_1.push({ text: strings.customDisplayName, key: 7, locationItem: { DisplayName: searchText, EntityType: \"Custom\" } });\n this.setState({ options: optionsForCustomRender_1 });\n return [3 /*break*/, 4];\n case 3:\n error_1 = _a.sent();\n console.log(\"Error get Items\", error_1);\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return LocationPicker;\n}(React.Component));\nexport { LocationPicker };\n"
|
|
1019185
|
+
"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 React from 'react';\nimport { Mode } from './ILocationPicker';\nimport styles from './LocationPicker.module.scss';\nimport { SPHttpClient, HttpClient } from '@microsoft/sp-http';\nimport { Text } from 'office-ui-fabric-react/lib/Text';\nimport { Persona, PersonaSize } from 'office-ui-fabric-react/lib/Persona';\nimport { ComboBox } from 'office-ui-fabric-react/lib/ComboBox';\nimport { FontIcon } from 'office-ui-fabric-react/lib/Icon';\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport * as strings from 'ControlStrings';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nvar LocationPicker = /** @class */ (function (_super) {\n __extends(LocationPicker, _super);\n /**\n * Constructor method\n */\n function LocationPicker(props) {\n var _this = _super.call(this, props) || this;\n _this._token = null;\n _this.focusRef = null;\n _this.onRenderOption = function (item) {\n var text = item.text, locationItem = item.locationItem;\n if (locationItem.EntityType === \"Custom\") {\n return React.createElement(Persona, { text: text, imageAlt: locationItem.EntityType, secondaryText: locationItem.DisplayName, size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials });\n }\n else\n return React.createElement(Persona, { text: text, imageAlt: locationItem.EntityType, secondaryText: _this.getLocationText(locationItem, \"full\"), size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials });\n };\n _this.getMainContent = function () {\n var _a = _this.state, options = _a.options, selectedItem = _a.selectedItem, currentMode = _a.currentMode;\n var _b = _this.props, className = _b.className, disabled = _b.disabled, placeholder = _b.placeholder, errorMessage = _b.errorMessage;\n switch (currentMode) {\n case Mode.empty:\n return React.createElement(ComboBox, { className: className, disabled: disabled, placeholder: placeholder, allowFreeform: true, autoComplete: \"on\", options: options, onRenderOption: _this.onRenderOption, calloutProps: { className: styles.callout }, buttonIconProps: { iconName: \"MapPin\" }, useComboBoxAsMenuWidth: true, openOnKeyboardFocus: true, scrollSelectedToTop: true, isButtonAriaHidden: true, onInput: function (e) { return _this.getLocatios(e.target[\"value\"]); }, onChange: _this.onChange, errorMessage: errorMessage });\n case Mode.editView:\n if (selectedItem.EntityType === \"Custom\") {\n return React.createElement(\"div\", { ref: _this.focusRef, \"data-selection-index\": 0, \"data-is-focusable\": true, role: \"listitem\", className: styles.pickerItemContainer, onBlur: _this.onBlur, tabIndex: 0 },\n React.createElement(Persona, { \"data-is-focusable\": \"false\", imageAlt: selectedItem.EntityType, tabIndex: 0, text: selectedItem.DisplayName, title: \"Location\", className: styles.persona, size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials }),\n React.createElement(IconButton, { \"data-is-focusable\": \"false\", tabIndex: 0, iconProps: { iconName: \"Cancel\" }, title: \"Clear\", ariaLabel: \"Clear\", disabled: disabled, className: styles.closeButton, onClick: _this.onIconButtonClick }));\n }\n return React.createElement(\"div\", { ref: _this.focusRef, \"data-selection-index\": 0, \"data-is-focusable\": true, role: \"listitem\", className: styles.pickerItemContainer, onBlur: _this.onBlur, tabIndex: 0 },\n React.createElement(Persona, { \"data-is-focusable\": \"false\", imageAlt: selectedItem.EntityType, tabIndex: 0, text: selectedItem.DisplayName, title: \"Location\", className: styles.persona, secondaryText: _this.getLocationText(selectedItem, \"full\"), size: PersonaSize.size40, onRenderInitials: _this.customRenderInitials }),\n !disabled ?\n React.createElement(IconButton, { \"data-is-focusable\": \"false\", tabIndex: 0, iconProps: { iconName: \"Cancel\" }, title: \"Clear\", ariaLabel: \"Clear\", disabled: disabled, className: styles.closeButton, onClick: _this.onIconButtonClick }) : null);\n case Mode.view:\n if (selectedItem.EntityType === 'Custom') {\n return React.createElement(\"div\", { className: styles.locationAddressContainer, onClick: _this.onClick },\n React.createElement(\"div\", { className: styles.locationContainer, tabIndex: 0 },\n React.createElement(\"div\", { className: styles.locationDisplayName }, selectedItem.DisplayName)));\n }\n return React.createElement(\"div\", { className: styles.locationAddressContainer, onClick: _this.onClick },\n React.createElement(\"div\", { className: styles.locationContainer, tabIndex: 0 },\n React.createElement(\"div\", { className: styles.locationDisplayName }, selectedItem.DisplayName),\n React.createElement(\"div\", { className: styles.locationContent },\n React.createElement(\"div\", { className: styles.locationAddress }, _this.getLocationText(selectedItem, \"street\")),\n React.createElement(\"div\", { className: styles.locationAddress }, _this.getLocationText(selectedItem, \"noStreet\")))));\n }\n return null;\n };\n _this.getLocationText = function (item, mode) {\n if (!item.Address) {\n return '';\n }\n var address = item.Address;\n switch (mode) {\n case \"street\":\n return address.Street || \"\";\n case \"noStreet\":\n return \"\" + (address.City ? address.City + \", \" : '') + (address.State ? address.State + \", \" : \"\") + (address.CountryOrRegion || \"\");\n }\n return \"\" + (address.Street ? address.Street + \", \" : '') + (address.City ? address.City + \", \" : \"\") + (address.State ? address.State + \", \" : '') + (address.CountryOrRegion || \"\");\n };\n _this.onIconButtonClick = function () {\n _this.setState({ currentMode: Mode.empty, selectedItem: null });\n };\n _this.onClick = function () {\n _this.setState({ currentMode: Mode.editView }, function () {\n if (_this.focusRef.current != null)\n _this.focusRef.current.focus();\n });\n };\n _this.onBlur = function (ev) {\n try {\n if (ev !== null && ev.relatedTarget[\"title\"] !== \"Location\" && ev.relatedTarget[\"title\"] !== \"Clear\") {\n _this.setState({ currentMode: Mode.view });\n }\n }\n catch (_a) { }\n };\n _this.onChange = function (ev, option) {\n _this.setState({ selectedItem: option.locationItem, currentMode: Mode.editView }, function () {\n if (_this.focusRef.current != null)\n _this.focusRef.current.focus();\n });\n if (_this.props.onChange) {\n _this.props.onChange(option.locationItem);\n }\n };\n _this.getToken();\n _this.focusRef = React.createRef();\n if (props.defaultValue) {\n _this.state = {\n options: [],\n currentMode: Mode.view,\n searchText: null,\n isCalloutVisible: true,\n selectedItem: props.defaultValue,\n };\n }\n else {\n _this.state = {\n options: [],\n currentMode: Mode.empty,\n searchText: null,\n isCalloutVisible: true,\n selectedItem: props.defaultValue,\n };\n }\n return _this;\n }\n LocationPicker.prototype.componentWillReceiveProps = function (nextProps) {\n if (!isEqual(nextProps.defaultValue, this.props.defaultValue)) {\n if (nextProps.defaultValue) {\n this.setState({ selectedItem: nextProps.defaultValue, currentMode: Mode.view });\n }\n }\n };\n /**\n * Renders the LocationPicker controls with Office UI Fabric\n */\n LocationPicker.prototype.render = function () {\n var label = this.props.label;\n return (React.createElement(\"div\", null,\n label ? React.createElement(Text, null, label) : null,\n this.getMainContent()));\n };\n LocationPicker.prototype.customRenderInitials = function (props) {\n if (props.imageAlt === \"Custom\")\n return React.createElement(FontIcon, { \"aria-label\": \"Poi\", iconName: \"Poi\", style: { fontSize: \"14pt\" } });\n else\n return React.createElement(FontIcon, { \"aria-label\": \"EMI\", iconName: \"EMI\", style: { fontSize: \"14pt\" } });\n };\n LocationPicker.prototype.getToken = function () {\n return __awaiter(this, void 0, void 0, function () {\n var requestHeaders, spOpts, response, PrimaryQueryResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n requestHeaders = new Headers();\n requestHeaders.append(\"Content-type\", \"application/json\");\n requestHeaders.append(\"Cache-Control\", \"no-cache\");\n spOpts = {\n body: \"{\\\"resource\\\":\\\"https://outlook.office365.com\\\"}\",\n headers: requestHeaders\n };\n return [4 /*yield*/, this.props.context.spHttpClient.post(this.props.context.pageContext.web.absoluteUrl + \"/_api/SP.OAuth.Token/Acquire\", SPHttpClient.configurations.v1, spOpts)];\n case 1:\n response = _a.sent();\n return [4 /*yield*/, response.json()];\n case 2:\n PrimaryQueryResult = _a.sent();\n this._token = PrimaryQueryResult.access_token;\n return [2 /*return*/];\n }\n });\n });\n };\n LocationPicker.prototype.getLocatios = function (searchText) {\n return __awaiter(this, void 0, void 0, function () {\n var optionsForCustomRender_1, requestHeaders, spOpts, response1, json, error_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 3, , 4]);\n optionsForCustomRender_1 = [];\n requestHeaders = new Headers();\n requestHeaders.append(\"Content-type\", \"application/json\");\n requestHeaders.append(\"Cache-Control\", \"no-cache\");\n requestHeaders.append(\"Authorization\", \"Bearer \" + this._token);\n spOpts = {\n body: \"{\\\"QueryConstraint\\\":{\\\"Query\\\":\\\"\" + searchText + \"\\\"},\\\"LocationProvider\\\":32,\\\"BingMarket\\\":\\\"en-IN\\\"}\",\n headers: requestHeaders\n };\n return [4 /*yield*/, this.props.context.httpClient.post(\"https://outlook.office365.com/SchedulingB2/api/v1.0/me/findmeetinglocations\", HttpClient.configurations.v1, spOpts)];\n case 1:\n response1 = _a.sent();\n return [4 /*yield*/, response1.json()];\n case 2:\n json = _a.sent();\n json.MeetingLocations.forEach(function (v, i) {\n var loc = v[\"MeetingLocation\"];\n optionsForCustomRender_1.push({ text: v.MeetingLocation[\"DisplayName\"], key: i, locationItem: loc });\n });\n optionsForCustomRender_1.push({ text: strings.customDisplayName, key: 7, locationItem: { DisplayName: searchText, EntityType: \"Custom\" } });\n this.setState({ options: optionsForCustomRender_1 });\n return [3 /*break*/, 4];\n case 3:\n error_1 = _a.sent();\n console.log(\"Error get Items\", error_1);\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return LocationPicker;\n}(React.Component));\nexport { LocationPicker };\n"
|
|
1019186
1019186
|
},
|
|
1019187
1019187
|
{
|
|
1019188
1019188
|
"id": "YFYv",
|
|
@@ -1031118,9 +1031118,9 @@
|
|
|
1031118
1031118
|
"controls-test-web-part",
|
|
1031119
1031119
|
"ootb-fields-field-customizer"
|
|
1031120
1031120
|
],
|
|
1031121
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1031122
|
-
"issuerId": "
|
|
1031123
|
-
"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/DefaultButton/DefaultButton.styles.js",
|
|
1031122
|
+
"issuerId": "k/69",
|
|
1031123
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.styles.js",
|
|
1031124
1031124
|
"issuerPath": [
|
|
1031125
1031125
|
{
|
|
1031126
1031126
|
"id": "G6oG",
|
|
@@ -1031138,14 +1031138,14 @@
|
|
|
1031138
1031138
|
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/index.js"
|
|
1031139
1031139
|
},
|
|
1031140
1031140
|
{
|
|
1031141
|
-
"id": "
|
|
1031142
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1031143
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1031141
|
+
"id": "sByA",
|
|
1031142
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.js",
|
|
1031143
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.js"
|
|
1031144
1031144
|
},
|
|
1031145
1031145
|
{
|
|
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/
|
|
1031146
|
+
"id": "k/69",
|
|
1031147
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.styles.js",
|
|
1031148
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/DefaultButton/DefaultButton.styles.js"
|
|
1031149
1031149
|
}
|
|
1031150
1031150
|
],
|
|
1031151
1031151
|
"failed": false,
|
|
@@ -1088193,7 +1088193,7 @@
|
|
|
1088193
1088193
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088194
1088194
|
"type": "harmony import specifier",
|
|
1088195
1088195
|
"userRequest": "react",
|
|
1088196
|
-
"loc": "
|
|
1088196
|
+
"loc": "127:12-31"
|
|
1088197
1088197
|
},
|
|
1088198
1088198
|
{
|
|
1088199
1088199
|
"moduleId": "hQoI",
|
|
@@ -1088202,7 +1088202,7 @@
|
|
|
1088202
1088202
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088203
1088203
|
"type": "harmony import specifier",
|
|
1088204
1088204
|
"userRequest": "react",
|
|
1088205
|
-
"loc": "
|
|
1088205
|
+
"loc": "136:20-39"
|
|
1088206
1088206
|
},
|
|
1088207
1088207
|
{
|
|
1088208
1088208
|
"moduleId": "hQoI",
|
|
@@ -1088211,7 +1088211,7 @@
|
|
|
1088211
1088211
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088212
1088212
|
"type": "harmony import specifier",
|
|
1088213
1088213
|
"userRequest": "react",
|
|
1088214
|
-
"loc": "
|
|
1088214
|
+
"loc": "139:20-39"
|
|
1088215
1088215
|
},
|
|
1088216
1088216
|
{
|
|
1088217
1088217
|
"moduleId": "hQoI",
|
|
@@ -1088220,7 +1088220,7 @@
|
|
|
1088220
1088220
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088221
1088221
|
"type": "harmony import specifier",
|
|
1088222
1088222
|
"userRequest": "react",
|
|
1088223
|
-
"loc": "
|
|
1088223
|
+
"loc": "140:24-43"
|
|
1088224
1088224
|
},
|
|
1088225
1088225
|
{
|
|
1088226
1088226
|
"moduleId": "hQoI",
|
|
@@ -1088229,7 +1088229,7 @@
|
|
|
1088229
1088229
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088230
1088230
|
"type": "harmony import specifier",
|
|
1088231
1088231
|
"userRequest": "react",
|
|
1088232
|
-
"loc": "
|
|
1088232
|
+
"loc": "145:20-39"
|
|
1088233
1088233
|
},
|
|
1088234
1088234
|
{
|
|
1088235
1088235
|
"moduleId": "hQoI",
|
|
@@ -1088238,7 +1088238,7 @@
|
|
|
1088238
1088238
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088239
1088239
|
"type": "harmony import specifier",
|
|
1088240
1088240
|
"userRequest": "react",
|
|
1088241
|
-
"loc": "
|
|
1088241
|
+
"loc": "162:16-35"
|
|
1088242
1088242
|
},
|
|
1088243
1088243
|
{
|
|
1088244
1088244
|
"moduleId": "hQoI",
|
|
@@ -1088247,7 +1088247,7 @@
|
|
|
1088247
1088247
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088248
1088248
|
"type": "harmony import specifier",
|
|
1088249
1088249
|
"userRequest": "react",
|
|
1088250
|
-
"loc": "
|
|
1088250
|
+
"loc": "163:12-31"
|
|
1088251
1088251
|
},
|
|
1088252
1088252
|
{
|
|
1088253
1088253
|
"moduleId": "hQoI",
|
|
@@ -1088256,7 +1088256,7 @@
|
|
|
1088256
1088256
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088257
1088257
|
"type": "harmony import specifier",
|
|
1088258
1088258
|
"userRequest": "react",
|
|
1088259
|
-
"loc": "
|
|
1088259
|
+
"loc": "164:16-35"
|
|
1088260
1088260
|
},
|
|
1088261
1088261
|
{
|
|
1088262
1088262
|
"moduleId": "hQoI",
|
|
@@ -1088265,7 +1088265,7 @@
|
|
|
1088265
1088265
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088266
1088266
|
"type": "harmony import specifier",
|
|
1088267
1088267
|
"userRequest": "react",
|
|
1088268
|
-
"loc": "
|
|
1088268
|
+
"loc": "167:20-39"
|
|
1088269
1088269
|
},
|
|
1088270
1088270
|
{
|
|
1088271
1088271
|
"moduleId": "hQoI",
|
|
@@ -1088274,7 +1088274,7 @@
|
|
|
1088274
1088274
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088275
1088275
|
"type": "harmony import specifier",
|
|
1088276
1088276
|
"userRequest": "react",
|
|
1088277
|
-
"loc": "
|
|
1088277
|
+
"loc": "168:16-35"
|
|
1088278
1088278
|
},
|
|
1088279
1088279
|
{
|
|
1088280
1088280
|
"moduleId": "hQoI",
|
|
@@ -1088283,7 +1088283,7 @@
|
|
|
1088283
1088283
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088284
1088284
|
"type": "harmony import specifier",
|
|
1088285
1088285
|
"userRequest": "react",
|
|
1088286
|
-
"loc": "
|
|
1088286
|
+
"loc": "183:24-43"
|
|
1088287
1088287
|
},
|
|
1088288
1088288
|
{
|
|
1088289
1088289
|
"moduleId": "hQoI",
|
|
@@ -1088292,7 +1088292,7 @@
|
|
|
1088292
1088292
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088293
1088293
|
"type": "harmony import specifier",
|
|
1088294
1088294
|
"userRequest": "react",
|
|
1088295
|
-
"loc": "
|
|
1088295
|
+
"loc": "188:24-43"
|
|
1088296
1088296
|
},
|
|
1088297
1088297
|
{
|
|
1088298
1088298
|
"moduleId": "hQoI",
|
|
@@ -1088301,7 +1088301,7 @@
|
|
|
1088301
1088301
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088302
1088302
|
"type": "harmony import specifier",
|
|
1088303
1088303
|
"userRequest": "react",
|
|
1088304
|
-
"loc": "
|
|
1088304
|
+
"loc": "189:28-47"
|
|
1088305
1088305
|
},
|
|
1088306
1088306
|
{
|
|
1088307
1088307
|
"moduleId": "hQoI",
|
|
@@ -1088310,7 +1088310,7 @@
|
|
|
1088310
1088310
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088311
1088311
|
"type": "harmony import specifier",
|
|
1088312
1088312
|
"userRequest": "react",
|
|
1088313
|
-
"loc": "
|
|
1088313
|
+
"loc": "193:12-31"
|
|
1088314
1088314
|
},
|
|
1088315
1088315
|
{
|
|
1088316
1088316
|
"moduleId": "hQoI",
|
|
@@ -1088319,7 +1088319,7 @@
|
|
|
1088319
1088319
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1088320
1088320
|
"type": "harmony import specifier",
|
|
1088321
1088321
|
"userRequest": "react",
|
|
1088322
|
-
"loc": "
|
|
1088322
|
+
"loc": "200:2-17"
|
|
1088323
1088323
|
},
|
|
1088324
1088324
|
{
|
|
1088325
1088325
|
"moduleId": "hgRX",
|
|
@@ -1104213,7 +1104213,7 @@
|
|
|
1104213
1104213
|
],
|
|
1104214
1104214
|
"optimizationBailout": [],
|
|
1104215
1104215
|
"depth": 4,
|
|
1104216
|
-
"source": "export var version = \"3.7.0-beta.
|
|
1104216
|
+
"source": "export var version = \"3.7.0-beta.2018695\";\n"
|
|
1104217
1104217
|
},
|
|
1104218
1104218
|
{
|
|
1104219
1104219
|
"id": "cLrF",
|
|
@@ -1134755,7 +1134755,7 @@
|
|
|
1134755
1134755
|
"name": "./lib/controls/treeView/TreeView.js",
|
|
1134756
1134756
|
"index": 2316,
|
|
1134757
1134757
|
"index2": 2322,
|
|
1134758
|
-
"size":
|
|
1134758
|
+
"size": 9523,
|
|
1134759
1134759
|
"cacheable": true,
|
|
1134760
1134760
|
"built": true,
|
|
1134761
1134761
|
"optional": false,
|
|
@@ -1134812,7 +1134812,7 @@
|
|
|
1134812
1134812
|
],
|
|
1134813
1134813
|
"optimizationBailout": [],
|
|
1134814
1134814
|
"depth": 3,
|
|
1134815
|
-
"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})();\nimport * as React from 'react';\nimport styles from './TreeView.module.scss';\nimport uniqBy from 'lodash/uniqBy';\nimport { SelectChildrenMode, TreeViewSelectionMode } from './ITreeViewProps';\nimport TreeItem from './TreeItem';\nimport * as telemetry from '../../common/telemetry';\n/**\n * Renders the controls for TreeItem component\n */\nvar TreeView = /** @class */ (function (_super) {\n __extends(TreeView, _super);\n /**\n * Constructor method\n * @param props properties interface\n */\n function TreeView(props) {\n var _this = _super.call(this, props) || this;\n _this.nodesToExpand = [];\n _this.pathTo = function (array, target) {\n var result;\n if (array) {\n array.some(function (_a) {\n var key = _a.key, _b = _a.children, children = _b === void 0 ? [] : _b;\n if (key === target) {\n _this.nodesToExpand.push(key);\n result = key;\n return true;\n }\n var temp = _this.pathTo(children, target);\n if (temp) {\n _this.nodesToExpand.push(key);\n result = key + '.' + temp;\n return true;\n }\n });\n }\n return result;\n };\n telemetry.track('TreeView');\n _this.state = {\n loaded: true,\n defaultExpanded: props.defaultExpanded,\n activeItems: []\n };\n // Bind control events\n _this.handleTreeExpandCollapse = _this.handleTreeExpandCollapse.bind(_this);\n _this.handleOnSelect = _this.handleOnSelect.bind(_this);\n if (props.expandToSelected && props.defaultSelectedKeys) {\n props.defaultSelectedKeys.forEach(function (element) {\n _this.pathTo(props.items, element);\n });\n }\n return _this;\n }\n TreeView.prototype.getSelectedItems = function (treeItems, selectedKeys, selectedChildren) {\n var _this = this;\n var selectedItems = [];\n treeItems.forEach(function (item) {\n if (selectedKeys.indexOf(item.key) !== -1 && item.selectable !== false && !item.disabled) {\n selectedItems.push(item);\n if (selectedChildren) {\n _this.selectAllChildren(item, selectedItems);\n }\n else {\n if (item.children) {\n selectedItems.push.apply(selectedItems, _this.getSelectedItems(item.children, selectedKeys, selectedChildren));\n }\n }\n }\n else {\n if (item.children) {\n selectedItems.push.apply(selectedItems, _this.getSelectedItems(item.children, selectedKeys, selectedChildren));\n }\n }\n });\n return selectedItems;\n };\n /**\n * Fires When expand / collapse item in TreeView\n * @argument item The expanded / collapsed item\n * @argument isExpanded The status of item (expanded / collapsed)\n */\n TreeView.prototype.handleTreeExpandCollapse = function (item, isExpanded) {\n if (typeof this.props.onExpandCollapse === \"function\") {\n this.props.onExpandCollapse(item, isExpanded);\n }\n };\n /**\n * Selects all child nodes when parent node is selected.\n * @param item current tree item\n */\n TreeView.prototype.selectAllChildren = function (item, selectedItems) {\n var _this = this;\n if (item.children) {\n item.children.forEach(function (element) {\n if (!element.disabled && element.selectable !== false) {\n selectedItems.push(element);\n }\n if (element.children) {\n _this.selectAllChildren(element, selectedItems);\n }\n });\n }\n };\n /**\n * Unselects all child nodes of selected parent.\n */\n TreeView.prototype.unSelectChildren = function (item, unselectArray) {\n var _this = this;\n var tempItem = item;\n if (tempItem.children) {\n tempItem.children.forEach(function (element) {\n unselectArray.push(element.key);\n if (element.children) {\n _this.unSelectChildren(element, unselectArray);\n }\n });\n }\n };\n /**\n * Fires When Tree Item is selected in TreeView\n * @argument item The selected item\n * @argument isSelected The status of item selection\n */\n TreeView.prototype.handleOnSelect = function (item, isSelected) {\n var selectedItems = this.state.activeItems;\n if (isSelected) {\n if (this.props.selectionMode == TreeViewSelectionMode.Multiple) {\n // Add the checked term\n selectedItems.push(item);\n if (this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Select)) {\n this.selectAllChildren(item, selectedItems);\n }\n selectedItems = uniqBy(selectedItems, 'key');\n // Filter out the duplicate terms\n this.setState({\n activeItems: selectedItems\n });\n }\n else {\n // Only store the current selected item\n this.setState({\n activeItems: [item]\n });\n selectedItems = [item];\n }\n }\n else {\n // Remove the item from the list of active nodes\n var unselectArray = [];\n unselectArray.push(item.key);\n if (this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Unselect)) {\n this.unSelectChildren(item, unselectArray);\n }\n unselectArray.forEach(function (element) {\n selectedItems = selectedItems.filter(function (i) { return i.key != element; });\n });\n this.setState({\n activeItems: selectedItems\n });\n }\n if (typeof this.props.onSelect === \"function\") {\n this.props.onSelect(selectedItems);\n }\n };\n TreeView.prototype.checkIfChildrenShouldBeSelected = function (testMode) {\n var selectChildrenMode = SelectChildrenMode.None;\n if (this.props.selectChildrenMode) {\n selectChildrenMode = this.props.selectChildrenMode;\n }\n else {\n if (this.props.selectChildrenIfParentSelected) {\n selectChildrenMode = SelectChildrenMode.All;\n }\n }\n if ((selectChildrenMode & testMode) === testMode) {\n return true;\n }\n return false;\n };\n TreeView.prototype.componentDidMount = function () {\n var _a = this.props, items = _a.items, defaultSelectedKeys = _a.defaultSelectedKeys;\n if (defaultSelectedKeys) {\n var selectedItems = this.getSelectedItems(items, defaultSelectedKeys, this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Mount));\n this.setState({\n activeItems: selectedItems\n });\n }\n };\n TreeView.prototype.componentWillReceiveProps = function (nextProps) {\n var items = nextProps.items, defaultSelectedKeys = nextProps.defaultSelectedKeys;\n if (defaultSelectedKeys) {\n var selectedItems = this.getSelectedItems(items, defaultSelectedKeys, this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Update));\n this.setState({\n activeItems: selectedItems\n });\n }\n };\n /**\n * Default React render method\n */\n TreeView.prototype.render = function () {\n var _this = this;\n var _a = this.props, items = _a.items, selectionMode = _a.selectionMode, onRenderItem = _a.onRenderItem, showCheckboxes = _a.showCheckboxes, treeItemActionsDisplayMode = _a.treeItemActionsDisplayMode, defaultExpanded = _a.defaultExpanded, defaultExpandedChildren = _a.defaultExpandedChildren;\n return (React.createElement(\"div\", { className: styles.treeView }, items.map(function (treeNodeItem, index) { return (React.createElement(TreeItem, { treeItem: treeNodeItem, leftOffset: 20, isFirstRender: true, defaultExpanded: defaultExpanded, defaultExpandedChildren: defaultExpandedChildren !== undefined ? defaultExpandedChildren : true, selectionMode: selectionMode, activeItems: _this.state.activeItems, parentCallbackExpandCollapse: _this.handleTreeExpandCollapse, parentCallbackOnSelect: _this.handleOnSelect, onRenderItem: onRenderItem, showCheckboxes: showCheckboxes, treeItemActionsDisplayMode: treeItemActionsDisplayMode, nodesToExpand:
|
|
1134815
|
+
"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})();\nimport * as React from 'react';\nimport styles from './TreeView.module.scss';\nimport uniqBy from 'lodash/uniqBy';\nimport { SelectChildrenMode, TreeViewSelectionMode } from './ITreeViewProps';\nimport TreeItem from './TreeItem';\nimport * as telemetry from '../../common/telemetry';\n/**\n * Renders the controls for TreeItem component\n */\nvar TreeView = /** @class */ (function (_super) {\n __extends(TreeView, _super);\n /**\n * Constructor method\n * @param props properties interface\n */\n function TreeView(props) {\n var _this = _super.call(this, props) || this;\n _this.nodesToExpand = [];\n _this.pathTo = function (array, target) {\n var result;\n if (array) {\n array.some(function (_a) {\n var key = _a.key, _b = _a.children, children = _b === void 0 ? [] : _b;\n if (key === target) {\n _this.nodesToExpand.push(key);\n result = key;\n return true;\n }\n var temp = _this.pathTo(children, target);\n if (temp) {\n _this.nodesToExpand.push(key);\n result = key + '.' + temp;\n return true;\n }\n });\n }\n return result;\n };\n telemetry.track('TreeView');\n _this.state = {\n loaded: true,\n defaultExpanded: props.defaultExpanded,\n activeItems: []\n };\n // Bind control events\n _this.handleTreeExpandCollapse = _this.handleTreeExpandCollapse.bind(_this);\n _this.handleOnSelect = _this.handleOnSelect.bind(_this);\n if (props.expandToSelected && props.defaultSelectedKeys) {\n props.defaultSelectedKeys.forEach(function (element) {\n _this.pathTo(props.items, element);\n });\n }\n return _this;\n }\n TreeView.prototype.getSelectedItems = function (treeItems, selectedKeys, selectedChildren) {\n var _this = this;\n var selectedItems = [];\n treeItems.forEach(function (item) {\n if (selectedKeys.indexOf(item.key) !== -1 && item.selectable !== false && !item.disabled) {\n selectedItems.push(item);\n if (selectedChildren) {\n _this.selectAllChildren(item, selectedItems);\n }\n else {\n if (item.children) {\n selectedItems.push.apply(selectedItems, _this.getSelectedItems(item.children, selectedKeys, selectedChildren));\n }\n }\n }\n else {\n if (item.children) {\n selectedItems.push.apply(selectedItems, _this.getSelectedItems(item.children, selectedKeys, selectedChildren));\n }\n }\n });\n return selectedItems;\n };\n /**\n * Fires When expand / collapse item in TreeView\n * @argument item The expanded / collapsed item\n * @argument isExpanded The status of item (expanded / collapsed)\n */\n TreeView.prototype.handleTreeExpandCollapse = function (item, isExpanded) {\n if (typeof this.props.onExpandCollapse === \"function\") {\n this.props.onExpandCollapse(item, isExpanded);\n }\n };\n /**\n * Selects all child nodes when parent node is selected.\n * @param item current tree item\n */\n TreeView.prototype.selectAllChildren = function (item, selectedItems) {\n var _this = this;\n if (item.children) {\n item.children.forEach(function (element) {\n if (!element.disabled && element.selectable !== false) {\n selectedItems.push(element);\n }\n if (element.children) {\n _this.selectAllChildren(element, selectedItems);\n }\n });\n }\n };\n /**\n * Unselects all child nodes of selected parent.\n */\n TreeView.prototype.unSelectChildren = function (item, unselectArray) {\n var _this = this;\n var tempItem = item;\n if (tempItem.children) {\n tempItem.children.forEach(function (element) {\n unselectArray.push(element.key);\n if (element.children) {\n _this.unSelectChildren(element, unselectArray);\n }\n });\n }\n };\n /**\n * Fires When Tree Item is selected in TreeView\n * @argument item The selected item\n * @argument isSelected The status of item selection\n */\n TreeView.prototype.handleOnSelect = function (item, isSelected) {\n var selectedItems = this.state.activeItems;\n if (isSelected) {\n if (this.props.selectionMode == TreeViewSelectionMode.Multiple) {\n // Add the checked term\n selectedItems.push(item);\n if (this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Select)) {\n this.selectAllChildren(item, selectedItems);\n }\n selectedItems = uniqBy(selectedItems, 'key');\n // Filter out the duplicate terms\n this.setState({\n activeItems: selectedItems\n });\n }\n else {\n // Only store the current selected item\n this.setState({\n activeItems: [item]\n });\n selectedItems = [item];\n }\n }\n else {\n // Remove the item from the list of active nodes\n var unselectArray = [];\n unselectArray.push(item.key);\n if (this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Unselect)) {\n this.unSelectChildren(item, unselectArray);\n }\n unselectArray.forEach(function (element) {\n selectedItems = selectedItems.filter(function (i) { return i.key != element; });\n });\n this.setState({\n activeItems: selectedItems\n });\n }\n if (typeof this.props.onSelect === \"function\") {\n this.props.onSelect(selectedItems);\n }\n };\n TreeView.prototype.checkIfChildrenShouldBeSelected = function (testMode) {\n var selectChildrenMode = SelectChildrenMode.None;\n if (this.props.selectChildrenMode) {\n selectChildrenMode = this.props.selectChildrenMode;\n }\n else {\n if (this.props.selectChildrenIfParentSelected) {\n selectChildrenMode = SelectChildrenMode.All;\n }\n }\n if ((selectChildrenMode & testMode) === testMode) {\n return true;\n }\n return false;\n };\n TreeView.prototype.componentDidMount = function () {\n var _a = this.props, items = _a.items, defaultSelectedKeys = _a.defaultSelectedKeys;\n if (defaultSelectedKeys) {\n var selectedItems = this.getSelectedItems(items, defaultSelectedKeys, this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Mount));\n this.setState({\n activeItems: selectedItems\n });\n }\n };\n TreeView.prototype.componentWillReceiveProps = function (nextProps) {\n var items = nextProps.items, defaultSelectedKeys = nextProps.defaultSelectedKeys;\n if (defaultSelectedKeys) {\n var selectedItems = this.getSelectedItems(items, defaultSelectedKeys, this.checkIfChildrenShouldBeSelected(SelectChildrenMode.Update));\n this.setState({\n activeItems: selectedItems\n });\n }\n };\n /**\n * Default React render method\n */\n TreeView.prototype.render = function () {\n var _this = this;\n var _a = this.props, items = _a.items, selectionMode = _a.selectionMode, onRenderItem = _a.onRenderItem, showCheckboxes = _a.showCheckboxes, treeItemActionsDisplayMode = _a.treeItemActionsDisplayMode, defaultExpanded = _a.defaultExpanded, defaultExpandedChildren = _a.defaultExpandedChildren, defaultExpandedKeys = _a.defaultExpandedKeys;\n return (React.createElement(\"div\", { className: styles.treeView }, items.map(function (treeNodeItem, index) { return (React.createElement(TreeItem, { treeItem: treeNodeItem, leftOffset: 20, isFirstRender: true, defaultExpanded: defaultExpanded, defaultExpandedChildren: defaultExpandedChildren !== undefined ? defaultExpandedChildren : true, selectionMode: selectionMode, activeItems: _this.state.activeItems, parentCallbackExpandCollapse: _this.handleTreeExpandCollapse, parentCallbackOnSelect: _this.handleOnSelect, onRenderItem: onRenderItem, showCheckboxes: showCheckboxes, treeItemActionsDisplayMode: treeItemActionsDisplayMode, nodesToExpand: defaultExpandedKeys })); })));\n };\n return TreeView;\n}(React.Component));\nexport { TreeView };\n"
|
|
1134816
1134816
|
},
|
|
1134817
1134817
|
{
|
|
1134818
1134818
|
"id": "fYfa",
|
|
@@ -1146680,7 +1146680,7 @@
|
|
|
1146680
1146680
|
"name": "./lib/controls/treeView/TreeItem.js",
|
|
1146681
1146681
|
"index": 2321,
|
|
1146682
1146682
|
"index2": 2321,
|
|
1146683
|
-
"size":
|
|
1146683
|
+
"size": 10398,
|
|
1146684
1146684
|
"cacheable": true,
|
|
1146685
1146685
|
"built": true,
|
|
1146686
1146686
|
"optional": false,
|
|
@@ -1146742,7 +1146742,7 @@
|
|
|
1146742
1146742
|
],
|
|
1146743
1146743
|
"optimizationBailout": [],
|
|
1146744
1146744
|
"depth": 4,
|
|
1146745
|
-
"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})();\nimport * as React from 'react';\nimport styles from './TreeView.module.scss';\nimport { Checkbox } from 'office-ui-fabric-react/lib/Checkbox';\nimport { Icon } from 'office-ui-fabric-react/lib/Icon';\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport * as strings from 'ControlStrings';\nimport { TreeViewSelectionMode } from './ITreeViewProps';\nimport TreeItemActionsControl from './TreeItemActionsControl';\nimport { css } from 'office-ui-fabric-react/lib/Utilities';\n/**\n * CSS styles for checkbox\n */\nvar checkBoxStyle = {\n display: \"inline-flex\"\n};\n/**\n * Renders the controls for TreeItem component\n */\nvar TreeItem = /** @class */ (function (_super) {\n __extends(TreeItem, _super);\n /**\n * Constructor method\n * @param props properties interface\n */\n function TreeItem(props, state) {\n var _this = _super.call(this, props) || this;\n /**\n * Process the child nodes\n */\n _this.createChildNodes = function (list, paddingLeft) {\n if (list.length) {\n var _a = _this.props, treeItem = _a.treeItem, selectionMode_1 = _a.selectionMode, activeItems_1 = _a.activeItems, parentCallbackExpandCollapse_1 = _a.parentCallbackExpandCollapse, parentCallbackOnSelect_1 = _a.parentCallbackOnSelect, onRenderItem_1 = _a.onRenderItem, showCheckboxes_1 = _a.showCheckboxes, treeItemActionsDisplayMode_1 = _a.treeItemActionsDisplayMode, defaultExpandedChildren_1 = _a.defaultExpandedChildren;\n var expanded_1 = _this.state.expanded;\n var childrenWithHandlers = list.map(function (item, index) {\n return (React.createElement(TreeItem, { treeItem: item, defaultExpanded: defaultExpandedChildren_1 ? expanded_1 : expanded_1 && !item.hasOwnProperty('children'), defaultExpandedChildren: defaultExpandedChildren_1, leftOffset: paddingLeft, selectionMode: selectionMode_1, activeItems: activeItems_1, isFirstRender: !paddingLeft ? true : false, parentCallbackExpandCollapse: parentCallbackExpandCollapse_1, parentCallbackOnSelect: parentCallbackOnSelect_1, onRenderItem: onRenderItem_1, showCheckboxes: showCheckboxes_1, treeItemActionsDisplayMode: treeItemActionsDisplayMode_1, nodesToExpand: _this.props.nodesToExpand }));\n });\n return childrenWithHandlers;\n }\n };\n /**\n * Default action callback\n */\n _this.treeItemActionCallback = function () {\n };\n // Check if current item is selected\n var active = props.activeItems.filter(function (item) { return item.key === props.treeItem.key; });\n var expanded = props.defaultExpanded;\n if (props.nodesToExpand.indexOf(props.treeItem.key) != -1) {\n expanded = true;\n }\n _this.state = {\n selected: active.length > 0,\n // expanded: this.props.defaultExpanded\n expanded: expanded\n };\n // Bind control events\n _this._itemSelected = _this._itemSelected.bind(_this);\n _this._handleExpandCollapse = _this._handleExpandCollapse.bind(_this);\n return _this;\n }\n /**\n * Handle the checkbox change trigger\n */\n TreeItem.prototype._itemSelected = function (ev, isChecked) {\n this.setState({\n selected: !this.state.selected\n });\n this.props.parentCallbackOnSelect(this.props.treeItem, isChecked);\n };\n /**\n * Handle the click event: collapse or expand\n */\n TreeItem.prototype._handleExpandCollapse = function () {\n this.setState({\n expanded: !this.state.expanded\n });\n this.props.parentCallbackExpandCollapse(this.props.treeItem, !this.state.expanded);\n };\n /**\n * Lifecycle event hook when component retrieves new properties\n * @param nextProps\n * @param nextContext\n */\n TreeItem.prototype.componentWillReceiveProps = function (nextProps) {\n var _this = this;\n // If selection is turned on, set the item as selected\n if (this.props.selectionMode != TreeViewSelectionMode.None) {\n var active = nextProps.activeItems.filter(function (item) { return item.key === _this.props.treeItem.key; });\n this.setState({\n selected: active.length > 0,\n expanded: this.state.expanded\n });\n }\n };\n /**\n * Default or custom rendering of tree item\n */\n TreeItem.prototype.renderItem = function (item) {\n var _this = this;\n if (typeof this.props.onRenderItem === \"function\") {\n // Custom rendering of tree item\n return this.props.onRenderItem(item);\n }\n else {\n return (\n // Default rendering of tree item\n React.createElement(\"div\", { className: styles.labels, onClick: function (e) {\n if (_this.props.selectionMode != TreeViewSelectionMode.None && item.selectable != false) {\n e.stopPropagation();\n if (!item.disabled) {\n _this._itemSelected(e, !_this.state.selected);\n }\n }\n } },\n this.props.showCheckboxes && item.selectable == false && !item.children &&\n React.createElement(\"span\", { className: styles.blankspace }, \"\\u00A0\"),\n // Rendering when item has iconProps\n item.iconProps &&\n React.createElement(\"span\", null,\n React.createElement(Icon, { className: styles.icon, iconName: item.iconProps.iconName, style: item.iconProps.style }),\n \"\\u00A0\"),\n item.label,\n // Render sublabel\n item.subLabel &&\n React.createElement(\"div\", { className: styles.itemSubLabel }, item.subLabel)));\n }\n };\n /**\n * Default React render method\n */\n TreeItem.prototype.render = function () {\n var _a;\n var _this = this;\n var _b = this.props, treeItem = _b.treeItem, leftOffset = _b.leftOffset, showCheckboxes = _b.showCheckboxes, selectionMode = _b.selectionMode, treeItemActionsDisplayMode = _b.treeItemActionsDisplayMode;\n var _c = this.state, expanded = _c.expanded, selected = _c.selected;\n var styleProps = {\n marginLeft: leftOffset + \"px\"\n };\n var contentStyles = {\n marginLeft: treeItem.children ? '0' : leftOffset + \"px\"\n };\n return (React.createElement(\"div\", null,\n React.createElement(\"div\", { className: styles.listItem + \" \" + styles.tree },\n React.createElement(\"div\", { className: \"\" + styles.treeSelector }, \n // Render expand / collapse icons for items which has children.\n treeItem.children &&\n React.createElement(IconButton, { iconProps: expanded ? { iconName: 'ChevronDown' } : { iconName: 'ChevronRight' }, alt: expanded ? strings.TreeViewCollapseTitle : strings.TreeViewExpandTitle, title: expanded ? strings.TreeViewCollapseTitle : strings.TreeViewExpandTitle, onClick: function () { return _this._handleExpandCollapse(); } })),\n React.createElement(\"div\", { className: css((_a = {},\n _a[styles.itemContent] = true,\n _a[styles.noCheckBox] = !showCheckboxes,\n _a[styles.checked] = selected,\n _a[styles.disabled] = !!treeItem.disabled,\n _a)), style: contentStyles, onClick: function (e) {\n if (_this.props.selectionMode != TreeViewSelectionMode.None && treeItem.selectable != false) {\n e.stopPropagation();\n if (!treeItem.disabled && e.currentTarget === e.target) {\n _this._itemSelected(e, !_this.state.selected);\n }\n }\n } },\n // Render checkbox (if item is selectable, Selection mode is not None, and showCheckboxes property is set to true)\n (treeItem.selectable != false) && selectionMode != TreeViewSelectionMode.None && showCheckboxes &&\n React.createElement(Checkbox, { checked: selected, disabled: treeItem.disabled, className: styles.checkbox, onChange: this._itemSelected }),\n // Call default render item function\n this.renderItem(treeItem),\n // Render actions for tree item\n treeItem.actions &&\n React.createElement(\"div\", { className: styles.itemMenu },\n React.createElement(TreeItemActionsControl, { treeItem: treeItem, treeItemActions: {\n actions: treeItem.actions,\n treeItemActionsDisplayMode: treeItemActionsDisplayMode\n }, treeItemActionCallback: this.treeItemActionCallback })))),\n React.createElement(\"div\", { style: styleProps || {} }, \n // Render child nodes\n expanded && treeItem.children\n ? this.createChildNodes(treeItem.children, leftOffset) // we double left padding on every recursion/depth\n : null)));\n };\n return TreeItem;\n}(React.Component));\nexport default TreeItem;\n"
|
|
1146745
|
+
"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})();\nimport * as React from 'react';\nimport styles from './TreeView.module.scss';\nimport { Checkbox } from 'office-ui-fabric-react/lib/Checkbox';\nimport { Icon } from 'office-ui-fabric-react/lib/Icon';\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport * as strings from 'ControlStrings';\nimport { TreeViewSelectionMode } from './ITreeViewProps';\nimport TreeItemActionsControl from './TreeItemActionsControl';\nimport { css } from 'office-ui-fabric-react/lib/Utilities';\n/**\n * CSS styles for checkbox\n */\nvar checkBoxStyle = {\n display: \"inline-flex\"\n};\n/**\n * Renders the controls for TreeItem component\n */\nvar TreeItem = /** @class */ (function (_super) {\n __extends(TreeItem, _super);\n /**\n * Constructor method\n * @param props properties interface\n */\n function TreeItem(props, state) {\n var _this = _super.call(this, props) || this;\n /**\n * Process the child nodes\n */\n _this.createChildNodes = function (list, paddingLeft) {\n if (list.length) {\n var _a = _this.props, treeItem = _a.treeItem, selectionMode_1 = _a.selectionMode, activeItems_1 = _a.activeItems, parentCallbackExpandCollapse_1 = _a.parentCallbackExpandCollapse, parentCallbackOnSelect_1 = _a.parentCallbackOnSelect, onRenderItem_1 = _a.onRenderItem, showCheckboxes_1 = _a.showCheckboxes, treeItemActionsDisplayMode_1 = _a.treeItemActionsDisplayMode, defaultExpandedChildren_1 = _a.defaultExpandedChildren;\n var expanded_1 = _this.state.expanded;\n var childrenWithHandlers = list.map(function (item, index) {\n return (React.createElement(TreeItem, { treeItem: item, defaultExpanded: defaultExpandedChildren_1 ? expanded_1 : expanded_1 && !item.hasOwnProperty('children'), defaultExpandedChildren: defaultExpandedChildren_1, leftOffset: paddingLeft, selectionMode: selectionMode_1, activeItems: activeItems_1, isFirstRender: !paddingLeft ? true : false, parentCallbackExpandCollapse: parentCallbackExpandCollapse_1, parentCallbackOnSelect: parentCallbackOnSelect_1, onRenderItem: onRenderItem_1, showCheckboxes: showCheckboxes_1, treeItemActionsDisplayMode: treeItemActionsDisplayMode_1, nodesToExpand: _this.props.nodesToExpand }));\n });\n return childrenWithHandlers;\n }\n };\n /**\n * Default action callback\n */\n _this.treeItemActionCallback = function () {\n };\n // Check if current item is selected\n var active = props.activeItems.filter(function (item) { return item.key === props.treeItem.key; });\n var expanded = props.defaultExpanded;\n if (!expanded && props.nodesToExpand.indexOf(props.treeItem.key) != -1) {\n expanded = true;\n }\n _this.state = {\n selected: active.length > 0,\n // expanded: this.props.defaultExpanded\n expanded: expanded\n };\n // Bind control events\n _this._itemSelected = _this._itemSelected.bind(_this);\n _this._handleExpandCollapse = _this._handleExpandCollapse.bind(_this);\n return _this;\n }\n /**\n * Handle the checkbox change trigger\n */\n TreeItem.prototype._itemSelected = function (ev, isChecked) {\n this.setState({\n selected: !this.state.selected\n });\n this.props.parentCallbackOnSelect(this.props.treeItem, isChecked);\n };\n /**\n * Handle the click event: collapse or expand\n */\n TreeItem.prototype._handleExpandCollapse = function () {\n this.setState({\n expanded: !this.state.expanded\n });\n this.props.parentCallbackExpandCollapse(this.props.treeItem, !this.state.expanded);\n };\n /**\n * Lifecycle event hook when component retrieves new properties\n * @param nextProps\n * @param nextContext\n */\n TreeItem.prototype.componentWillReceiveProps = function (nextProps) {\n var _this = this;\n // If selection is turned on, set the item as selected\n if (this.props.selectionMode != TreeViewSelectionMode.None) {\n var active = nextProps.activeItems.filter(function (item) { return item.key === _this.props.treeItem.key; });\n var _isExpanded = this.state.expanded;\n if (!_isExpanded && this.props.nodesToExpand.indexOf(this.props.treeItem.key) != -1) {\n _isExpanded = true;\n }\n if (_isExpanded && this.props.nodesToExpand.indexOf(this.props.treeItem.key) == -1) {\n _isExpanded = false;\n }\n this.setState({\n selected: active.length > 0,\n expanded: _isExpanded\n });\n }\n };\n /**\n * Default or custom rendering of tree item\n */\n TreeItem.prototype.renderItem = function (item) {\n var _this = this;\n if (typeof this.props.onRenderItem === \"function\") {\n // Custom rendering of tree item\n return this.props.onRenderItem(item);\n }\n else {\n return (\n // Default rendering of tree item\n React.createElement(\"div\", { className: styles.labels, onClick: function (e) {\n if (_this.props.selectionMode != TreeViewSelectionMode.None && item.selectable != false) {\n e.stopPropagation();\n if (!item.disabled) {\n _this._itemSelected(e, !_this.state.selected);\n }\n }\n } },\n this.props.showCheckboxes && item.selectable == false && !item.children &&\n React.createElement(\"span\", { className: styles.blankspace }, \"\\u00A0\"),\n // Rendering when item has iconProps\n item.iconProps &&\n React.createElement(\"span\", null,\n React.createElement(Icon, { className: styles.icon, iconName: item.iconProps.iconName, style: item.iconProps.style }),\n \"\\u00A0\"),\n item.label,\n // Render sublabel\n item.subLabel &&\n React.createElement(\"div\", { className: styles.itemSubLabel }, item.subLabel)));\n }\n };\n /**\n * Default React render method\n */\n TreeItem.prototype.render = function () {\n var _a;\n var _this = this;\n var _b = this.props, treeItem = _b.treeItem, leftOffset = _b.leftOffset, showCheckboxes = _b.showCheckboxes, selectionMode = _b.selectionMode, treeItemActionsDisplayMode = _b.treeItemActionsDisplayMode;\n var _c = this.state, expanded = _c.expanded, selected = _c.selected;\n var styleProps = {\n marginLeft: leftOffset + \"px\"\n };\n var contentStyles = {\n marginLeft: treeItem.children ? '0' : leftOffset + \"px\"\n };\n return (React.createElement(\"div\", null,\n React.createElement(\"div\", { className: styles.listItem + \" \" + styles.tree },\n React.createElement(\"div\", { className: \"\" + styles.treeSelector }, \n // Render expand / collapse icons for items which has children.\n treeItem.children &&\n React.createElement(IconButton, { iconProps: expanded ? { iconName: 'ChevronDown' } : { iconName: 'ChevronRight' }, alt: expanded ? strings.TreeViewCollapseTitle : strings.TreeViewExpandTitle, title: expanded ? strings.TreeViewCollapseTitle : strings.TreeViewExpandTitle, onClick: function () { return _this._handleExpandCollapse(); } })),\n React.createElement(\"div\", { className: css((_a = {},\n _a[styles.itemContent] = true,\n _a[styles.noCheckBox] = !showCheckboxes,\n _a[styles.checked] = selected,\n _a[styles.disabled] = !!treeItem.disabled,\n _a)), style: contentStyles, onClick: function (e) {\n if (_this.props.selectionMode != TreeViewSelectionMode.None && treeItem.selectable != false) {\n e.stopPropagation();\n if (!treeItem.disabled && e.currentTarget === e.target) {\n _this._itemSelected(e, !_this.state.selected);\n }\n }\n } },\n // Render checkbox (if item is selectable, Selection mode is not None, and showCheckboxes property is set to true)\n (treeItem.selectable != false) && selectionMode != TreeViewSelectionMode.None && showCheckboxes &&\n React.createElement(Checkbox, { checked: selected, disabled: treeItem.disabled, className: styles.checkbox, onChange: this._itemSelected }),\n // Call default render item function\n this.renderItem(treeItem),\n // Render actions for tree item\n treeItem.actions &&\n React.createElement(\"div\", { className: styles.itemMenu },\n React.createElement(TreeItemActionsControl, { treeItem: treeItem, treeItemActions: {\n actions: treeItem.actions,\n treeItemActionsDisplayMode: treeItemActionsDisplayMode\n }, treeItemActionCallback: this.treeItemActionCallback })))),\n React.createElement(\"div\", { style: styleProps || {} }, \n // Render child nodes\n expanded && treeItem.children\n ? this.createChildNodes(treeItem.children, leftOffset) // we double left padding on every recursion/depth\n : null)));\n };\n return TreeItem;\n}(React.Component));\nexport default TreeItem;\n"
|
|
1146746
1146746
|
},
|
|
1146747
1146747
|
{
|
|
1146748
1146748
|
"id": "hR4L",
|
|
@@ -1160182,9 +1160182,9 @@
|
|
|
1160182
1160182
|
"controls-test-web-part",
|
|
1160183
1160183
|
"ootb-fields-field-customizer"
|
|
1160184
1160184
|
],
|
|
1160185
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1160186
|
-
"issuerId": "
|
|
1160187
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1160185
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js",
|
|
1160186
|
+
"issuerId": "pd4o",
|
|
1160187
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js",
|
|
1160188
1160188
|
"issuerPath": [
|
|
1160189
1160189
|
{
|
|
1160190
1160190
|
"id": "G6oG",
|
|
@@ -1160202,14 +1160202,14 @@
|
|
|
1160202
1160202
|
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/index.js"
|
|
1160203
1160203
|
},
|
|
1160204
1160204
|
{
|
|
1160205
|
-
"id": "
|
|
1160206
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1160207
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1160205
|
+
"id": "2ihB",
|
|
1160206
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.js",
|
|
1160207
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.js"
|
|
1160208
1160208
|
},
|
|
1160209
1160209
|
{
|
|
1160210
|
-
"id": "
|
|
1160211
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1160212
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/
|
|
1160210
|
+
"id": "pd4o",
|
|
1160211
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js",
|
|
1160212
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js"
|
|
1160213
1160213
|
}
|
|
1160214
1160214
|
],
|
|
1160215
1160215
|
"failed": false,
|
|
@@ -1174876,7 +1174876,7 @@
|
|
|
1174876
1174876
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1174877
1174877
|
"type": "harmony import specifier",
|
|
1174878
1174878
|
"userRequest": "./TreeItemActionsControl",
|
|
1174879
|
-
"loc": "
|
|
1174879
|
+
"loc": "189:48-70"
|
|
1174880
1174880
|
}
|
|
1174881
1174881
|
],
|
|
1174882
1174882
|
"providedExports": [
|
|
@@ -1179546,14 +1179546,14 @@
|
|
|
1179546
1179546
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
1179547
1179547
|
},
|
|
1179548
1179548
|
{
|
|
1179549
|
-
"id": "
|
|
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/
|
|
1179551
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1179549
|
+
"id": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
1179551
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.js"
|
|
1179552
1179552
|
},
|
|
1179553
1179553
|
{
|
|
1179554
|
-
"id": "
|
|
1179555
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1179556
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1179554
|
+
"id": "mvdJ",
|
|
1179555
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
1179556
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js"
|
|
1179557
1179557
|
},
|
|
1179558
1179558
|
{
|
|
1179559
1179559
|
"id": "4eMn",
|
|
@@ -1198078,14 +1198078,14 @@
|
|
|
1198078
1198078
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
1198079
1198079
|
},
|
|
1198080
1198080
|
{
|
|
1198081
|
-
"id": "
|
|
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/
|
|
1198083
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1198081
|
+
"id": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
1198083
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.js"
|
|
1198084
1198084
|
},
|
|
1198085
1198085
|
{
|
|
1198086
|
-
"id": "
|
|
1198087
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1198088
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1198086
|
+
"id": "mvdJ",
|
|
1198087
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
1198088
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js"
|
|
1198089
1198089
|
},
|
|
1198090
1198090
|
{
|
|
1198091
1198091
|
"id": "4eMn",
|
|
@@ -1238326,14 +1238326,14 @@
|
|
|
1238326
1238326
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/componentStyles.js"
|
|
1238327
1238327
|
},
|
|
1238328
1238328
|
{
|
|
1238329
|
-
"id": "
|
|
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/
|
|
1238331
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/
|
|
1238329
|
+
"id": "pFc4",
|
|
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/List/listItemStyles.js",
|
|
1238331
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/themes/teams/components/List/listItemStyles.js"
|
|
1238332
1238332
|
},
|
|
1238333
1238333
|
{
|
|
1238334
|
-
"id": "
|
|
1238335
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1238336
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/
|
|
1238334
|
+
"id": "mvdJ",
|
|
1238335
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js",
|
|
1238336
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/List/ListItem.js"
|
|
1238337
1238337
|
},
|
|
1238338
1238338
|
{
|
|
1238339
1238339
|
"id": "4eMn",
|
|
@@ -1239161,7 +1239161,7 @@
|
|
|
1239161
1239161
|
"moduleName": "./lib/controls/locationPicker/LocationPicker.js",
|
|
1239162
1239162
|
"type": "harmony import specifier",
|
|
1239163
1239163
|
"userRequest": "@microsoft/sp-http",
|
|
1239164
|
-
"loc": "205:
|
|
1239164
|
+
"loc": "205:163-175"
|
|
1239165
1239165
|
},
|
|
1239166
1239166
|
{
|
|
1239167
1239167
|
"moduleId": "YEex",
|
|
@@ -1274728,7 +1274728,7 @@
|
|
|
1274728
1274728
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1274729
1274729
|
"type": "harmony import specifier",
|
|
1274730
1274730
|
"userRequest": "office-ui-fabric-react/lib/Icon",
|
|
1274731
|
-
"loc": "
|
|
1274731
|
+
"loc": "140:44-48"
|
|
1274732
1274732
|
},
|
|
1274733
1274733
|
{
|
|
1274734
1274734
|
"moduleId": "kJOq",
|