@pnp/spfx-controls-react 3.7.2-beta.2031786 → 3.8.0-beta.2040473
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.JSON +14 -0
- package/CHANGELOG.md +7 -0
- package/lib/common/telemetry/version.js +1 -1
- package/lib/controls/treeView/TreeItem.d.ts.map +1 -1
- package/lib/controls/treeView/TreeItem.js +6 -6
- package/lib/controls/treeView/TreeItem.js.map +1 -1
- package/package.json +1 -1
- package/release/webpack-stats/sp-dev-fx-controls-react.stats.json +47 -47
package/CHANGELOG.JSON
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"versions": [
|
|
3
|
+
{
|
|
4
|
+
"version": "3.8.0",
|
|
5
|
+
"changes": {
|
|
6
|
+
"new": [],
|
|
7
|
+
"enhancements": [],
|
|
8
|
+
"fixes": [
|
|
9
|
+
"`LocationPicker`: Resolve issue when in root site [#1162](https://github.com/pnp/sp-dev-fx-controls-react/pull/1162)",
|
|
10
|
+
"`TreeView`: TreeView Control is broken after updating to v3.7.0 [#1170](https://github.com/pnp/sp-dev-fx-controls-react/issues/1170)"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"contributors": [
|
|
14
|
+
"[Ravichandran Krishnasamy](https://github.com/ravichandran-blog)"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
3
17
|
{
|
|
4
18
|
"version": "3.7.2",
|
|
5
19
|
"changes": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Releases
|
|
2
2
|
|
|
3
|
+
## 3.8.0
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- `LocationPicker`: Resolve issue when in root site [#1162](https://github.com/pnp/sp-dev-fx-controls-react/pull/1162)
|
|
8
|
+
- `TreeView`: TreeView Control is broken after updating to v3.7.0 [#1170](https://github.com/pnp/sp-dev-fx-controls-react/issues/1170)
|
|
9
|
+
|
|
3
10
|
## 3.7.2
|
|
4
11
|
|
|
5
12
|
## 3.7.0
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export var version = "3.
|
|
1
|
+
export var version = "3.8.0-beta.2040473";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeItem.d.ts","sourceRoot":"","sources":["../../../src/controls/treeView/TreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,aAAa,EAAE,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,WAAW,EAAE,SAAS,EAAE,CAAC;IACzB;;OAEG;IACH,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;IAExD;;OAEG;IACH,4BAA4B,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7E;;OAEG;IACH,sBAAsB,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACvE;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;IAEhD,aAAa,EAAE,GAAG,EAAE,CAAC;IACpB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IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7E;;OAEG;IACH,sBAAsB,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACvE;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;IAEhD,aAAa,EAAE,GAAG,EAAE,CAAC;IACpB;;MAEE;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAID;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AASD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAEnF;;;OAGG;gBACS,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc;IAsBxD;;OAEG;IACH,OAAO,CAAC,aAAa;IAQrB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAQ7B;;;;OAIG;IACI,yBAAyB,CAAC,SAAS,EAAE,cAAc,GAAG,IAAI;IA0BjE;;OAEG;IACH,OAAO,CAAC,UAAU;IA6ClB;;OAEG;IACI,gBAAgB,uCAsCtB;IAED;;OAEG;IACH,OAAO,CAAC,sBAAsB,CAC7B;IAED;;OAEG;IACI,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC;CAuFpD"}
|
|
@@ -58,7 +58,7 @@ var TreeItem = /** @class */ (function (_super) {
|
|
|
58
58
|
// Check if current item is selected
|
|
59
59
|
var active = props.activeItems.filter(function (item) { return item.key === props.treeItem.key; });
|
|
60
60
|
var expanded = props.defaultExpanded;
|
|
61
|
-
if (!expanded && props.nodesToExpand.indexOf(props.treeItem.key)
|
|
61
|
+
if (!expanded && (props.nodesToExpand && props.nodesToExpand.indexOf(props.treeItem.key) !== -1)) {
|
|
62
62
|
expanded = true;
|
|
63
63
|
}
|
|
64
64
|
_this.state = {
|
|
@@ -95,15 +95,15 @@ var TreeItem = /** @class */ (function (_super) {
|
|
|
95
95
|
* @param nextContext
|
|
96
96
|
*/
|
|
97
97
|
TreeItem.prototype.componentWillReceiveProps = function (nextProps) {
|
|
98
|
-
var
|
|
98
|
+
var _a = this.props, selectionMode = _a.selectionMode, nodesToExpand = _a.nodesToExpand, treeItem = _a.treeItem;
|
|
99
99
|
// If selection is turned on, set the item as selected
|
|
100
|
-
if (
|
|
101
|
-
var active = nextProps.activeItems.filter(function (item) { return item.key ===
|
|
100
|
+
if (selectionMode != TreeViewSelectionMode.None) {
|
|
101
|
+
var active = nextProps.activeItems.filter(function (item) { return item.key === treeItem.key; });
|
|
102
102
|
var _isExpanded = this.state.expanded;
|
|
103
|
-
if (!_isExpanded &&
|
|
103
|
+
if (!_isExpanded && (nodesToExpand === null || nodesToExpand === void 0 ? void 0 : nodesToExpand.indexOf(this.props.treeItem.key)) != -1) {
|
|
104
104
|
_isExpanded = true;
|
|
105
105
|
}
|
|
106
|
-
if (_isExpanded &&
|
|
106
|
+
if (_isExpanded && (nodesToExpand === null || nodesToExpand === void 0 ? void 0 : nodesToExpand.indexOf(this.props.treeItem.key)) == -1) {
|
|
107
107
|
_isExpanded = false;
|
|
108
108
|
}
|
|
109
109
|
this.setState({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeItem.js","sourceRoot":"","sources":["../../../src/controls/treeView/TreeItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,UAAU,EA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+
"hash": "b7734e8badcfe74f9de5",
|
|
6
|
+
"time": 19991,
|
|
7
|
+
"builtAt": 1648218494441,
|
|
8
8
|
"publicPath": "",
|
|
9
9
|
"outputPath": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/dist",
|
|
10
10
|
"assetsByChunkName": {
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"name": "controls-test-web-part.js",
|
|
295
|
-
"size":
|
|
295
|
+
"size": 17707127,
|
|
296
296
|
"chunks": [
|
|
297
297
|
"controls-test-web-part"
|
|
298
298
|
],
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
"name": "controls-test-web-part.js.map",
|
|
308
|
-
"size":
|
|
308
|
+
"size": 15955854,
|
|
309
309
|
"chunks": [
|
|
310
310
|
"controls-test-web-part"
|
|
311
311
|
],
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
"rendered": true,
|
|
405
405
|
"initial": true,
|
|
406
406
|
"entry": true,
|
|
407
|
-
"size":
|
|
407
|
+
"size": 12784866,
|
|
408
408
|
"names": [
|
|
409
409
|
"controls-test-web-part"
|
|
410
410
|
],
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"controls-test-web-part.js",
|
|
413
413
|
"controls-test-web-part.js.map"
|
|
414
414
|
],
|
|
415
|
-
"hash": "
|
|
415
|
+
"hash": "9b5a2d7aeab2a3e94ca7",
|
|
416
416
|
"siblings": [],
|
|
417
417
|
"parents": [],
|
|
418
418
|
"children": [],
|
|
@@ -124619,9 +124619,9 @@
|
|
|
124619
124619
|
"controls-test-web-part",
|
|
124620
124620
|
"ootb-fields-field-customizer"
|
|
124621
124621
|
],
|
|
124622
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
124623
|
-
"issuerId": "
|
|
124624
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
124622
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
124623
|
+
"issuerId": "OQ9B",
|
|
124624
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
124625
124625
|
"issuerPath": [
|
|
124626
124626
|
{
|
|
124627
124627
|
"id": "8shM",
|
|
@@ -124659,9 +124659,9 @@
|
|
|
124659
124659
|
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/index.js"
|
|
124660
124660
|
},
|
|
124661
124661
|
{
|
|
124662
|
-
"id": "
|
|
124663
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
124664
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
124662
|
+
"id": "OQ9B",
|
|
124663
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
124664
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js"
|
|
124665
124665
|
}
|
|
124666
124666
|
],
|
|
124667
124667
|
"failed": false,
|
|
@@ -267980,7 +267980,7 @@
|
|
|
267980
267980
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
267981
267981
|
"type": "harmony import specifier",
|
|
267982
267982
|
"userRequest": "./ITreeViewProps",
|
|
267983
|
-
"loc": "100:
|
|
267983
|
+
"loc": "100:29-50"
|
|
267984
267984
|
},
|
|
267985
267985
|
{
|
|
267986
267986
|
"moduleId": "hQoI",
|
|
@@ -371534,7 +371534,7 @@
|
|
|
371534
371534
|
],
|
|
371535
371535
|
"optimizationBailout": [],
|
|
371536
371536
|
"depth": 4,
|
|
371537
|
-
"source": "export var version = \"3.
|
|
371537
|
+
"source": "export var version = \"3.8.0-beta.2040473\";\n"
|
|
371538
371538
|
},
|
|
371539
371539
|
{
|
|
371540
371540
|
"id": "cLrF",
|
|
@@ -414001,7 +414001,7 @@
|
|
|
414001
414001
|
"name": "./lib/controls/treeView/TreeItem.js",
|
|
414002
414002
|
"index": 2321,
|
|
414003
414003
|
"index2": 2321,
|
|
414004
|
-
"size":
|
|
414004
|
+
"size": 10602,
|
|
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 (!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"
|
|
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 && 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 _a = this.props, selectionMode = _a.selectionMode, nodesToExpand = _a.nodesToExpand, treeItem = _a.treeItem;\n // If selection is turned on, set the item as selected\n if (selectionMode != TreeViewSelectionMode.None) {\n var active = nextProps.activeItems.filter(function (item) { return item.key === treeItem.key; });\n var _isExpanded = this.state.expanded;\n if (!_isExpanded && (nodesToExpand === null || nodesToExpand === void 0 ? void 0 : nodesToExpand.indexOf(this.props.treeItem.key)) != -1) {\n _isExpanded = true;\n }\n if (_isExpanded && (nodesToExpand === null || nodesToExpand === void 0 ? void 0 : 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",
|
|
@@ -464861,9 +464861,9 @@
|
|
|
464861
464861
|
"chunks": [
|
|
464862
464862
|
"controls-test-web-part"
|
|
464863
464863
|
],
|
|
464864
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
464865
|
-
"issuerId": "
|
|
464866
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
464864
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
464865
|
+
"issuerId": "DQiM",
|
|
464866
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
464867
464867
|
"issuerPath": [
|
|
464868
464868
|
{
|
|
464869
464869
|
"id": "G6oG",
|
|
@@ -464881,9 +464881,9 @@
|
|
|
464881
464881
|
"name": "./node_modules/@fluentui/react-northstar/dist/es/index.js"
|
|
464882
464882
|
},
|
|
464883
464883
|
{
|
|
464884
|
-
"id": "
|
|
464885
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
464886
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
464884
|
+
"id": "DQiM",
|
|
464885
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
464886
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js"
|
|
464887
464887
|
}
|
|
464888
464888
|
],
|
|
464889
464889
|
"failed": false,
|
|
@@ -542875,7 +542875,7 @@
|
|
|
542875
542875
|
"ootb-fields-field-customizer.js",
|
|
542876
542876
|
"ootb-fields-field-customizer.js.map"
|
|
542877
542877
|
],
|
|
542878
|
-
"hash": "
|
|
542878
|
+
"hash": "7b36b987af5ab776851c",
|
|
542879
542879
|
"siblings": [],
|
|
542880
542880
|
"parents": [],
|
|
542881
542881
|
"children": [],
|
|
@@ -573103,9 +573103,9 @@
|
|
|
573103
573103
|
"controls-test-web-part",
|
|
573104
573104
|
"ootb-fields-field-customizer"
|
|
573105
573105
|
],
|
|
573106
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
573107
|
-
"issuerId": "
|
|
573108
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
573106
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
573107
|
+
"issuerId": "OQ9B",
|
|
573108
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
573109
573109
|
"issuerPath": [
|
|
573110
573110
|
{
|
|
573111
573111
|
"id": "8shM",
|
|
@@ -573143,9 +573143,9 @@
|
|
|
573143
573143
|
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/index.js"
|
|
573144
573144
|
},
|
|
573145
573145
|
{
|
|
573146
|
-
"id": "
|
|
573147
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
573148
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
573146
|
+
"id": "OQ9B",
|
|
573147
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
573148
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js"
|
|
573149
573149
|
}
|
|
573150
573150
|
],
|
|
573151
573151
|
"failed": false,
|
|
@@ -694278,7 +694278,7 @@
|
|
|
694278
694278
|
],
|
|
694279
694279
|
"optimizationBailout": [],
|
|
694280
694280
|
"depth": 4,
|
|
694281
|
-
"source": "export var version = \"3.
|
|
694281
|
+
"source": "export var version = \"3.8.0-beta.2040473\";\n"
|
|
694282
694282
|
},
|
|
694283
694283
|
{
|
|
694284
694284
|
"id": "cPD0",
|
|
@@ -857220,9 +857220,9 @@
|
|
|
857220
857220
|
"controls-test-web-part",
|
|
857221
857221
|
"ootb-fields-field-customizer"
|
|
857222
857222
|
],
|
|
857223
|
-
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
857224
|
-
"issuerId": "
|
|
857225
|
-
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
857223
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
857224
|
+
"issuerId": "OQ9B",
|
|
857225
|
+
"issuerName": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
857226
857226
|
"issuerPath": [
|
|
857227
857227
|
{
|
|
857228
857228
|
"id": "8shM",
|
|
@@ -857260,9 +857260,9 @@
|
|
|
857260
857260
|
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/index.js"
|
|
857261
857261
|
},
|
|
857262
857262
|
{
|
|
857263
|
-
"id": "
|
|
857264
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
857265
|
-
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/
|
|
857263
|
+
"id": "OQ9B",
|
|
857264
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js",
|
|
857265
|
+
"name": "./node_modules/office-ui-fabric-react/lib/components/HoverCard/ExpandingCard.base.js"
|
|
857266
857266
|
}
|
|
857267
857267
|
],
|
|
857268
857268
|
"failed": false,
|
|
@@ -1000659,7 +1000659,7 @@
|
|
|
1000659
1000659
|
"moduleName": "./lib/controls/treeView/TreeItem.js",
|
|
1000660
1000660
|
"type": "harmony import specifier",
|
|
1000661
1000661
|
"userRequest": "./ITreeViewProps",
|
|
1000662
|
-
"loc": "100:
|
|
1000662
|
+
"loc": "100:29-50"
|
|
1000663
1000663
|
},
|
|
1000664
1000664
|
{
|
|
1000665
1000665
|
"moduleId": "hQoI",
|
|
@@ -1104213,7 +1104213,7 @@
|
|
|
1104213
1104213
|
],
|
|
1104214
1104214
|
"optimizationBailout": [],
|
|
1104215
1104215
|
"depth": 4,
|
|
1104216
|
-
"source": "export var version = \"3.
|
|
1104216
|
+
"source": "export var version = \"3.8.0-beta.2040473\";\n"
|
|
1104217
1104217
|
},
|
|
1104218
1104218
|
{
|
|
1104219
1104219
|
"id": "cLrF",
|
|
@@ -1146680,7 +1146680,7 @@
|
|
|
1146680
1146680
|
"name": "./lib/controls/treeView/TreeItem.js",
|
|
1146681
1146681
|
"index": 2321,
|
|
1146682
1146682
|
"index2": 2321,
|
|
1146683
|
-
"size":
|
|
1146683
|
+
"size": 10602,
|
|
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 (!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"
|
|
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 && 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 _a = this.props, selectionMode = _a.selectionMode, nodesToExpand = _a.nodesToExpand, treeItem = _a.treeItem;\n // If selection is turned on, set the item as selected\n if (selectionMode != TreeViewSelectionMode.None) {\n var active = nextProps.activeItems.filter(function (item) { return item.key === treeItem.key; });\n var _isExpanded = this.state.expanded;\n if (!_isExpanded && (nodesToExpand === null || nodesToExpand === void 0 ? void 0 : nodesToExpand.indexOf(this.props.treeItem.key)) != -1) {\n _isExpanded = true;\n }\n if (_isExpanded && (nodesToExpand === null || nodesToExpand === void 0 ? void 0 : 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",
|
|
@@ -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/
|
|
1197604
|
-
"issuerId": "
|
|
1197605
|
-
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
1197603
|
+
"issuer": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
1197604
|
+
"issuerId": "DQiM",
|
|
1197605
|
+
"issuerName": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
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": "
|
|
1197624
|
-
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
1197625
|
-
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/
|
|
1197623
|
+
"id": "DQiM",
|
|
1197624
|
+
"identifier": "/home/runner/work/sp-dev-fx-controls-react/sp-dev-fx-controls-react/node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js",
|
|
1197625
|
+
"name": "./node_modules/@fluentui/react-northstar/dist/es/components/Form/FormButton.js"
|
|
1197626
1197626
|
}
|
|
1197627
1197627
|
],
|
|
1197628
1197628
|
"failed": false,
|