@pnp/spfx-controls-react 3.7.0-beta.2005908 → 3.7.0

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.
@@ -2,9 +2,9 @@
2
2
  "errors": [],
3
3
  "warnings": [],
4
4
  "version": "4.44.2",
5
- "hash": "3e49bd174746afa0dd3c",
6
- "time": 21998,
7
- "builtAt": 1647630057165,
5
+ "hash": "1126f4fb5744606bcce7",
6
+ "time": 22470,
7
+ "builtAt": 1647634103577,
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": 17706529,
295
+ "size": 17706916,
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": 15954944,
308
+ "size": 15955731,
309
309
  "chunks": [
310
310
  "controls-test-web-part"
311
311
  ],
@@ -319,7 +319,7 @@
319
319
  },
320
320
  {
321
321
  "name": "ootb-fields-field-customizer.js",
322
- "size": 2389010,
322
+ "size": 2388997,
323
323
  "chunks": [
324
324
  "ootb-fields-field-customizer"
325
325
  ],
@@ -332,7 +332,7 @@
332
332
  },
333
333
  {
334
334
  "name": "ootb-fields-field-customizer.js.map",
335
- "size": 1985391,
335
+ "size": 1985376,
336
336
  "chunks": [
337
337
  "ootb-fields-field-customizer"
338
338
  ],
@@ -404,7 +404,7 @@
404
404
  "rendered": true,
405
405
  "initial": true,
406
406
  "entry": true,
407
- "size": 12784268,
407
+ "size": 12784655,
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": "47a4fd6ccdb5ed5b40bd",
415
+ "hash": "f03729a50f10d76dacb4",
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": "176:44-52"
2666
+ "loc": "183:44-52"
2667
2667
  },
2668
2668
  {
2669
2669
  "moduleId": "ihU0",
@@ -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": "120:52-58"
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": "129:61-67"
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": "133:63-69"
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": "138:60-66"
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": "156:52-58"
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": "156:76-82"
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": "157:61-67"
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": "162:27-33"
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": "163:27-33"
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": "164:27-33"
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": "165:27-33"
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": "176:115-121"
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": "181:64-70"
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/PlainCard/PlainCard.base.js",
124623
- "issuerId": "uz3O",
124624
- "issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/PlainCard/PlainCard.base.js",
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": "uz3O",
124663
- "identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/PlainCard/PlainCard.base.js",
124664
- "name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/PlainCard/PlainCard.base.js"
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": "160:40-50"
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": "161:56-59"
185946
+ "loc": "168:56-59"
185947
185947
  },
185948
185948
  {
185949
185949
  "moduleId": "hrfb",
@@ -246225,7 +246225,7 @@
246225
246225
  "moduleName": "./lib/controls/treeView/TreeItem.js",
246226
246226
  "type": "harmony import specifier",
246227
246227
  "userRequest": "ControlStrings",
246228
- "loc": "160:152-181"
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": "160:184-211"
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": "160:231-260"
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": "160:263-290"
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": "121:53-74"
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": "167:57-78"
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": "175:71-92"
268010
+ "loc": "182:71-92"
268011
268011
  }
268012
268012
  ],
268013
268013
  "providedExports": [
@@ -355514,7 +355514,7 @@
355514
355514
  "moduleName": "./lib/controls/treeView/TreeItem.js",
355515
355515
  "type": "harmony import specifier",
355516
355516
  "userRequest": "react",
355517
- "loc": "120:12-31"
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": "129:20-39"
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": "132:20-39"
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": "133:24-43"
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": "138:20-39"
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": "155:16-35"
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": "156:12-31"
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": "157:16-35"
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": "160:20-39"
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": "161:16-35"
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": "176:24-43"
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": "181:24-43"
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": "182:28-47"
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": "186:12-31"
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": "193:2-17"
355643
+ "loc": "200:2-17"
355644
355644
  },
355645
355645
  {
355646
355646
  "moduleId": "hgRX",
@@ -371466,7 +371466,7 @@
371466
371466
  "name": "./lib/common/telemetry/version.js",
371467
371467
  "index": 1925,
371468
371468
  "index2": 1920,
371469
- "size": 43,
371469
+ "size": 30,
371470
371470
  "cacheable": true,
371471
371471
  "built": true,
371472
371472
  "optional": false,
@@ -371534,7 +371534,7 @@
371534
371534
  ],
371535
371535
  "optimizationBailout": [],
371536
371536
  "depth": 4,
371537
- "source": "export var version = \"3.7.0-beta.2005908\";\n"
371537
+ "source": "export var version = \"3.7.0\";\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": 9477,
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: _this.nodesToExpand })); })));\n };\n return TreeView;\n}(React.Component));\nexport { TreeView };\n"
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": 10044,
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",
@@ -442197,7 +442197,7 @@
442197
442197
  "moduleName": "./lib/controls/treeView/TreeItem.js",
442198
442198
  "type": "harmony import specifier",
442199
442199
  "userRequest": "./TreeItemActionsControl",
442200
- "loc": "182:48-70"
442200
+ "loc": "189:48-70"
442201
442201
  }
442202
442202
  ],
442203
442203
  "providedExports": [
@@ -464861,9 +464861,9 @@
464861
464861
  "chunks": [
464862
464862
  "controls-test-web-part"
464863
464863
  ],
464864
- "issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
464865
- "issuerId": "DQiM",
464866
- "issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
464864
+ "issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormInput.js",
464865
+ "issuerId": "Z9Yp",
464866
+ "issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormInput.js",
464867
464867
  "issuerPath": [
464868
464868
  {
464869
464869
  "id": "G6oG",
@@ -464881,9 +464881,9 @@
464881
464881
  "name": "./node_modules/@fluentui/react-northstar/dist/es/index.js"
464882
464882
  },
464883
464883
  {
464884
- "id": "DQiM",
464885
- "identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
464886
- "name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js"
464884
+ "id": "Z9Yp",
464885
+ "identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormInput.js",
464886
+ "name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormInput.js"
464887
464887
  }
464888
464888
  ],
464889
464889
  "failed": false,
@@ -465167,9 +465167,9 @@
465167
465167
  "chunks": [
465168
465168
  "controls-test-web-part"
465169
465169
  ],
465170
- "issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/fela-plugin-fallback-value/es/index.js",
465171
- "issuerId": "xUb/",
465172
- "issuerName": "./node_modules/fela-plugin-fallback-value/es/index.js",
465170
+ "issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/fela-plugin-embedded/es/index.js",
465171
+ "issuerId": "SI3Q",
465172
+ "issuerName": "./node_modules/fela-plugin-embedded/es/index.js",
465173
465173
  "issuerPath": [
465174
465174
  {
465175
465175
  "id": "G6oG",
@@ -465207,9 +465207,9 @@
465207
465207
  "name": "./node_modules/@fluentui/react-northstar-fela-renderer/dist/es/createFelaRenderer.js"
465208
465208
  },
465209
465209
  {
465210
- "id": "xUb/",
465211
- "identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/fela-plugin-fallback-value/es/index.js",
465212
- "name": "./node_modules/fela-plugin-fallback-value/es/index.js"
465210
+ "id": "SI3Q",
465211
+ "identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/fela-plugin-embedded/es/index.js",
465212
+ "name": "./node_modules/fela-plugin-embedded/es/index.js"
465213
465213
  }
465214
465214
  ],
465215
465215
  "failed": false,
@@ -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": "133:44-48"
541878
+ "loc": "140:44-48"
541879
541879
  },
541880
541880
  {
541881
541881
  "moduleId": "kJOq",
@@ -542867,7 +542867,7 @@
542867
542867
  "rendered": true,
542868
542868
  "initial": true,
542869
542869
  "entry": true,
542870
- "size": 1531762,
542870
+ "size": 1531749,
542871
542871
  "names": [
542872
542872
  "ootb-fields-field-customizer"
542873
542873
  ],
@@ -542875,7 +542875,7 @@
542875
542875
  "ootb-fields-field-customizer.js",
542876
542876
  "ootb-fields-field-customizer.js.map"
542877
542877
  ],
542878
- "hash": "572f7716866e8bbccf7a",
542878
+ "hash": "47249459e5309bb5e974",
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/PlainCard/PlainCard.base.js",
573107
- "issuerId": "uz3O",
573108
- "issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/PlainCard/PlainCard.base.js",
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": "uz3O",
573147
- "identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/PlainCard/PlainCard.base.js",
573148
- "name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/PlainCard/PlainCard.base.js"
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": "160:40-50"
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": "161:56-59"
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": "160:152-181"
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": "160:184-211"
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": "160:231-260"
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": "160:263-290"
624306
+ "loc": "167:263-290"
624307
624307
  },
624308
624308
  {
624309
624309
  "moduleId": "k0SN",
@@ -678411,7 +678411,7 @@
678411
678411
  "moduleName": "./lib/controls/treeView/TreeItem.js",
678412
678412
  "type": "harmony import specifier",
678413
678413
  "userRequest": "react",
678414
- "loc": "120:12-31"
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": "129:20-39"
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": "132:20-39"
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": "133:24-43"
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": "138:20-39"
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": "155:16-35"
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": "156:12-31"
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": "157:16-35"
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": "160:20-39"
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": "161:16-35"
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": "176:24-43"
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": "181:24-43"
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": "182:28-47"
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": "186:12-31"
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": "193:2-17"
678540
+ "loc": "200:2-17"
678541
678541
  },
678542
678542
  {
678543
678543
  "moduleId": "hgRX",
@@ -694210,7 +694210,7 @@
694210
694210
  "name": "./lib/common/telemetry/version.js",
694211
694211
  "index": 1925,
694212
694212
  "index2": 1920,
694213
- "size": 43,
694213
+ "size": 30,
694214
694214
  "cacheable": true,
694215
694215
  "built": true,
694216
694216
  "optional": false,
@@ -694278,7 +694278,7 @@
694278
694278
  ],
694279
694279
  "optimizationBailout": [],
694280
694280
  "depth": 4,
694281
- "source": "export var version = \"3.7.0-beta.2005908\";\n"
694281
+ "source": "export var version = \"3.7.0\";\n"
694282
694282
  },
694283
694283
  {
694284
694284
  "id": "cPD0",
@@ -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": "133:44-48"
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": "176:44-52"
735176
+ "loc": "183:44-52"
735177
735177
  },
735178
735178
  {
735179
735179
  "moduleId": "ihU0",
@@ -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": "120:52-58"
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": "129:61-67"
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": "133:63-69"
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": "138:60-66"
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": "156:52-58"
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": "156:76-82"
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": "157:61-67"
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": "162:27-33"
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": "163:27-33"
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": "164:27-33"
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": "165:27-33"
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": "176:115-121"
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": "181:64-70"
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/PlainCard/PlainCard.base.js",
857224
- "issuerId": "uz3O",
857225
- "issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/PlainCard/PlainCard.base.js",
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": "uz3O",
857264
- "identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/PlainCard/PlainCard.base.js",
857265
- "name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/PlainCard/PlainCard.base.js"
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": "160:40-50"
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": "161:56-59"
918571
+ "loc": "168:56-59"
918572
918572
  },
918573
918573
  {
918574
918574
  "moduleId": "hrfb",
@@ -978904,7 +978904,7 @@
978904
978904
  "moduleName": "./lib/controls/treeView/TreeItem.js",
978905
978905
  "type": "harmony import specifier",
978906
978906
  "userRequest": "ControlStrings",
978907
- "loc": "160:152-181"
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": "160:184-211"
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": "160:231-260"
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": "160:263-290"
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": "121:53-74"
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": "167:57-78"
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": "175:71-92"
1000689
+ "loc": "182:71-92"
1000690
1000690
  }
1000691
1000691
  ],
1000692
1000692
  "providedExports": [
@@ -1088193,7 +1088193,7 @@
1088193
1088193
  "moduleName": "./lib/controls/treeView/TreeItem.js",
1088194
1088194
  "type": "harmony import specifier",
1088195
1088195
  "userRequest": "react",
1088196
- "loc": "120:12-31"
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": "129:20-39"
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": "132:20-39"
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": "133:24-43"
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": "138:20-39"
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": "155:16-35"
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": "156:12-31"
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": "157:16-35"
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": "160:20-39"
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": "161:16-35"
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": "176:24-43"
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": "181:24-43"
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": "182:28-47"
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": "186:12-31"
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": "193:2-17"
1088322
+ "loc": "200:2-17"
1088323
1088323
  },
1088324
1088324
  {
1088325
1088325
  "moduleId": "hgRX",
@@ -1104145,7 +1104145,7 @@
1104145
1104145
  "name": "./lib/common/telemetry/version.js",
1104146
1104146
  "index": 1925,
1104147
1104147
  "index2": 1920,
1104148
- "size": 43,
1104148
+ "size": 30,
1104149
1104149
  "cacheable": true,
1104150
1104150
  "built": true,
1104151
1104151
  "optional": false,
@@ -1104213,7 +1104213,7 @@
1104213
1104213
  ],
1104214
1104214
  "optimizationBailout": [],
1104215
1104215
  "depth": 4,
1104216
- "source": "export var version = \"3.7.0-beta.2005908\";\n"
1104216
+ "source": "export var version = \"3.7.0\";\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": 9477,
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: _this.nodesToExpand })); })));\n };\n return TreeView;\n}(React.Component));\nexport { TreeView };\n"
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": 10044,
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",
@@ -1174876,7 +1174876,7 @@
1174876
1174876
  "moduleName": "./lib/controls/treeView/TreeItem.js",
1174877
1174877
  "type": "harmony import specifier",
1174878
1174878
  "userRequest": "./TreeItemActionsControl",
1174879
- "loc": "182:48-70"
1174879
+ "loc": "189:48-70"
1174880
1174880
  }
1174881
1174881
  ],
1174882
1174882
  "providedExports": [
@@ -1197600,9 +1197600,9 @@
1197600
1197600
  "chunks": [
1197601
1197601
  "controls-test-web-part"
1197602
1197602
  ],
1197603
- "issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
1197604
- "issuerId": "DQiM",
1197605
- "issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
1197603
+ "issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormInput.js",
1197604
+ "issuerId": "Z9Yp",
1197605
+ "issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormInput.js",
1197606
1197606
  "issuerPath": [
1197607
1197607
  {
1197608
1197608
  "id": "G6oG",
@@ -1197620,9 +1197620,9 @@
1197620
1197620
  "name": "./node_modules/@fluentui/react-northstar/dist/es/index.js"
1197621
1197621
  },
1197622
1197622
  {
1197623
- "id": "DQiM",
1197624
- "identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
1197625
- "name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js"
1197623
+ "id": "Z9Yp",
1197624
+ "identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormInput.js",
1197625
+ "name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormInput.js"
1197626
1197626
  }
1197627
1197627
  ],
1197628
1197628
  "failed": false,
@@ -1197906,9 +1197906,9 @@
1197906
1197906
  "chunks": [
1197907
1197907
  "controls-test-web-part"
1197908
1197908
  ],
1197909
- "issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/fela-plugin-fallback-value/es/index.js",
1197910
- "issuerId": "xUb/",
1197911
- "issuerName": "./node_modules/fela-plugin-fallback-value/es/index.js",
1197909
+ "issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/fela-plugin-embedded/es/index.js",
1197910
+ "issuerId": "SI3Q",
1197911
+ "issuerName": "./node_modules/fela-plugin-embedded/es/index.js",
1197912
1197912
  "issuerPath": [
1197913
1197913
  {
1197914
1197914
  "id": "G6oG",
@@ -1197946,9 +1197946,9 @@
1197946
1197946
  "name": "./node_modules/@fluentui/react-northstar-fela-renderer/dist/es/createFelaRenderer.js"
1197947
1197947
  },
1197948
1197948
  {
1197949
- "id": "xUb/",
1197950
- "identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/fela-plugin-fallback-value/es/index.js",
1197951
- "name": "./node_modules/fela-plugin-fallback-value/es/index.js"
1197949
+ "id": "SI3Q",
1197950
+ "identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/fela-plugin-embedded/es/index.js",
1197951
+ "name": "./node_modules/fela-plugin-embedded/es/index.js"
1197952
1197952
  }
1197953
1197953
  ],
1197954
1197954
  "failed": false,
@@ -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": "133:44-48"
1274731
+ "loc": "140:44-48"
1274732
1274732
  },
1274733
1274733
  {
1274734
1274734
  "moduleId": "kJOq",