@pnp/spfx-property-controls 3.3.0-beta.1482200 → 3.3.0-beta.1482316

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.
@@ -1,2 +1,2 @@
1
- export var version = "3.3.0-beta.1482200";
1
+ export var version = "3.3.0-beta.1482316";
2
2
  //# sourceMappingURL=version.js.map
@@ -128,7 +128,7 @@ var PropertyFieldOrderHost = /** @class */ (function (_super) {
128
128
  _this.moveItemAtIndexToTargetIndex = function (itemIndex, targetIndex) {
129
129
  if (itemIndex !== targetIndex && itemIndex > -1 && targetIndex > -1 && itemIndex < _this.state.items.length && targetIndex < _this.state.items.length) {
130
130
  var items = _this.state.items;
131
- items.splice.apply(items, __spreadArrays([targetIndex, 0], items.splice(itemIndex, 1)[0]));
131
+ items.splice.apply(items, __spreadArrays([targetIndex, 0], items.splice(itemIndex, 1)));
132
132
  _this.setState({
133
133
  items: items
134
134
  });
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyFieldOrderHost.js","sourceRoot":"","sources":["../../../src/propertyFields/order/PropertyFieldOrderHost.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAiB,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAE/E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AAEpD,OAAO,MAAM,MAAM,sCAAsC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC,CAAC,uCAAuC;AAE1G;IAAoD,0CAA2E;IAS9H,gCAAY,KAAmC,EAAE,KAAmC;QAApF,YACG,kBAAM,KAAK,CAAC,SAoBb;QAoHM,iB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I,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE;aAC9B,CAAC,CAAC;SACJ;IACH,CAAC;IAEK,mDAAkB,GAAzB;QACC,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC1B,CAAC;IAEK,qDAAoB,GAA3B;QACC,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC7B,CAAC;IAmHF,6BAAC;AAAD,CAAC,AAnQD,CAAoD,KAAK,CAAC,SAAS,GAmQlE"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnp/spfx-property-controls",
3
3
  "description": "Reusable property pane controls for SharePoint Framework solutions",
4
- "version": "3.3.0-beta.1482200",
4
+ "version": "3.3.0-beta.1482316",
5
5
  "scripts": {
6
6
  "build": "gulp build",
7
7
  "clean": "gulp clean",
@@ -2,9 +2,9 @@
2
2
  "errors": [],
3
3
  "warnings": [],
4
4
  "version": "4.44.2",
5
- "hash": "ed852efa9b18b289dad9",
6
- "time": 12689,
7
- "builtAt": 1637345988492,
5
+ "hash": "9d6a1a76d5bd504cd24c",
6
+ "time": 10956,
7
+ "builtAt": 1637348154118,
8
8
  "publicPath": "",
9
9
  "outputPath": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/dist",
10
10
  "assetsByChunkName": {
@@ -264,7 +264,7 @@
264
264
  },
265
265
  {
266
266
  "name": "property-controls-test-web-part.js",
267
- "size": 9093611,
267
+ "size": 9093608,
268
268
  "chunks": [
269
269
  "property-controls-test-web-part"
270
270
  ],
@@ -277,7 +277,7 @@
277
277
  },
278
278
  {
279
279
  "name": "property-controls-test-web-part.js.map",
280
- "size": 8514542,
280
+ "size": 8514524,
281
281
  "chunks": [
282
282
  "property-controls-test-web-part"
283
283
  ],
@@ -325,7 +325,7 @@
325
325
  "rendered": true,
326
326
  "initial": true,
327
327
  "entry": true,
328
- "size": 6913074,
328
+ "size": 6913071,
329
329
  "names": [
330
330
  "property-controls-test-web-part"
331
331
  ],
@@ -333,7 +333,7 @@
333
333
  "property-controls-test-web-part.js",
334
334
  "property-controls-test-web-part.js.map"
335
335
  ],
336
- "hash": "768d45e274e117b940b1",
336
+ "hash": "8b30a48e7f3b5b7ef472",
337
337
  "siblings": [],
338
338
  "parents": [],
339
339
  "children": [],
@@ -19327,9 +19327,9 @@
19327
19327
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
19328
19328
  },
19329
19329
  {
19330
- "id": "uwFx",
19331
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
19332
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
19330
+ "id": "j0ZI",
19331
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
19332
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
19333
19333
  },
19334
19334
  {
19335
19335
  "id": "bwCg",
@@ -31710,9 +31710,9 @@
31710
31710
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
31711
31711
  },
31712
31712
  {
31713
- "id": "uwFx",
31714
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
31715
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
31713
+ "id": "j0ZI",
31714
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
31715
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
31716
31716
  },
31717
31717
  {
31718
31718
  "id": "bwCg",
@@ -44323,9 +44323,9 @@
44323
44323
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
44324
44324
  },
44325
44325
  {
44326
- "id": "uwFx",
44327
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
44328
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
44326
+ "id": "j0ZI",
44327
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
44328
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
44329
44329
  },
44330
44330
  {
44331
44331
  "id": "bwCg",
@@ -60767,9 +60767,9 @@
60767
60767
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
60768
60768
  },
60769
60769
  {
60770
- "id": "uwFx",
60771
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
60772
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
60770
+ "id": "j0ZI",
60771
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
60772
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
60773
60773
  },
60774
60774
  {
60775
60775
  "id": "bwCg",
@@ -64472,9 +64472,9 @@
64472
64472
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
64473
64473
  },
64474
64474
  {
64475
- "id": "uwFx",
64476
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
64477
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
64475
+ "id": "j0ZI",
64476
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
64477
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
64478
64478
  },
64479
64479
  {
64480
64480
  "id": "bwCg",
@@ -117502,7 +117502,7 @@
117502
117502
  "name": "./lib/propertyFields/order/PropertyFieldOrderHost.js",
117503
117503
  "index": 863,
117504
117504
  "index2": 864,
117505
- "size": 10944,
117505
+ "size": 10941,
117506
117506
  "cacheable": true,
117507
117507
  "built": true,
117508
117508
  "optional": false,
@@ -117582,7 +117582,7 @@
117582
117582
  ],
117583
117583
  "optimizationBailout": [],
117584
117584
  "depth": 3,
117585
- "source": "var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport { Label } from 'office-ui-fabric-react/lib/Label';\nimport { DragDropHelper } from 'office-ui-fabric-react/lib/utilities/dragdrop';\nimport * as React from 'react';\nimport * as telemetry from '../../common/telemetry';\nimport styles from './PropertyFieldOrderHost.module.scss';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nimport { EventGroup } from 'office-ui-fabric-react/lib/Utilities'; //'@uifabric/utilities/lib/EventGroup';\nvar PropertyFieldOrderHost = /** @class */ (function (_super) {\n __extends(PropertyFieldOrderHost, _super);\n function PropertyFieldOrderHost(props, state) {\n var _this = _super.call(this, props) || this;\n _this.registerRef = function (ref) {\n _this._refs.push(ref);\n };\n _this.setupSubscriptions = function () {\n if (!_this.props.disableDragAndDrop && !_this.props.disabled) {\n _this._refs.forEach(function (value, index) {\n _this._ddSubs.push(_this._ddHelper.subscribe(value, new EventGroup(value), {\n eventMap: [\n {\n callback: function (context, event) {\n _this._draggedItem = context.data;\n },\n eventName: 'dragstart'\n }\n ],\n selectionIndex: index,\n context: { data: _this.state.items[index], index: index },\n updateDropState: function (isDropping, event) {\n if (isDropping) {\n value.classList.add(styles.dragEnter);\n }\n else {\n value.classList.remove(styles.dragEnter);\n }\n },\n canDrop: function (dropContext, dragContext) {\n return true;\n },\n canDrag: function (item) {\n return true;\n },\n onDrop: function (item, event) {\n if (_this._draggedItem) {\n _this.insertBeforeItem(item);\n }\n },\n /*onDragStart: (item?: any, itemIndex?: number, selectedItems?: any[], event?: MouseEvent) => {\n //Never called for some reason, so using eventMap above\n this._draggedItem = item;\n },*/\n onDragEnd: function (item, event) {\n _this._draggedItem = null;\n }\n }));\n });\n //Create dropable area below list to allow items to be dragged to the bottom\n if (_this._refs.length && typeof _this._lastBox !== \"undefined\") {\n _this._ddSubs.push(_this._ddHelper.subscribe(_this._lastBox, new EventGroup(_this._lastBox), {\n selectionIndex: _this._refs.length,\n context: { data: {}, index: _this._refs.length },\n updateDropState: function (isDropping, event) {\n if (isDropping) {\n _this._refs[_this._refs.length - 1].classList.add(styles.dragLast);\n }\n else {\n _this._refs[_this._refs.length - 1].classList.remove(styles.dragLast);\n }\n },\n canDrop: function (dropContext, dragContext) {\n return true;\n },\n onDrop: function (item, event) {\n if (_this._draggedItem) {\n var itemIndex = _this.state.items.indexOf(_this._draggedItem);\n _this.moveItemAtIndexToTargetIndex(itemIndex, _this.state.items.length - 1);\n }\n }\n }));\n }\n }\n };\n _this.cleanupSubscriptions = function () {\n while (_this._ddSubs.length) {\n var sub = _this._ddSubs.pop();\n sub.dispose();\n }\n };\n _this.insertBeforeItem = function (item) {\n var itemIndex = _this.state.items.indexOf(_this._draggedItem);\n var targetIndex = _this.state.items.indexOf(item);\n if (itemIndex < targetIndex) {\n targetIndex -= 1;\n }\n _this.moveItemAtIndexToTargetIndex(itemIndex, targetIndex);\n };\n _this.onMoveUpClick = function (itemIndex) {\n if (itemIndex > 0) {\n _this.moveItemAtIndexToTargetIndex(itemIndex, itemIndex - 1);\n }\n };\n _this.onMoveDownClick = function (itemIndex) {\n if (itemIndex < _this.state.items.length - 1) {\n _this.moveItemAtIndexToTargetIndex(itemIndex, itemIndex + 1);\n }\n };\n _this.moveItemAtIndexToTargetIndex = function (itemIndex, targetIndex) {\n if (itemIndex !== targetIndex && itemIndex > -1 && targetIndex > -1 && itemIndex < _this.state.items.length && targetIndex < _this.state.items.length) {\n var items = _this.state.items;\n items.splice.apply(items, __spreadArrays([targetIndex, 0], items.splice(itemIndex, 1)[0]));\n _this.setState({\n items: items\n });\n _this.props.valueChanged(items);\n }\n };\n telemetry.track('PropertyFieldOrder', {\n disabled: props.disabled\n });\n _this._selection = null;\n _this._ddHelper = new DragDropHelper({\n selection: _this._selection\n });\n _this._refs = new Array();\n _this._ddSubs = new Array();\n _this._draggedItem = null;\n _this.state = {\n items: []\n };\n return _this;\n }\n PropertyFieldOrderHost.prototype.render = function () {\n var _this = this;\n var items = this.state.items;\n return (React.createElement(\"div\", { className: styles.propertyFieldOrder },\n this.props.label && React.createElement(Label, null, this.props.label),\n React.createElement(\"ul\", { style: { maxHeight: this.props.maxHeight ? this.props.maxHeight + 'px' : '100%' }, className: !this.props.disabled ? styles.enabled : styles.disabled },\n (items && items.length > 0) && (items.map(function (value, index) {\n return (React.createElement(\"li\", { ref: _this.registerRef, key: index, draggable: !_this.props.disableDragAndDrop && !_this.props.disabled, style: { cursor: !_this.props.disableDragAndDrop && !_this.props.disabled ? 'pointer' : 'default' } }, _this.renderItem(value, index)));\n })),\n (items && items.length > 0) && React.createElement(\"div\", { className: styles.lastBox, ref: function (ref) { _this._lastBox = ref; } }))));\n };\n PropertyFieldOrderHost.prototype.renderItem = function (item, index) {\n return (React.createElement(\"div\", null,\n React.createElement(\"div\", { className: styles.itemBox }, this.renderDisplayValue(item, index)),\n !this.props.removeArrows &&\n React.createElement(\"div\", null, this.renderArrows(index))));\n };\n PropertyFieldOrderHost.prototype.renderDisplayValue = function (item, index) {\n if (typeof this.props.onRenderItem === \"function\") {\n return this.props.onRenderItem(item, index);\n }\n else {\n return (React.createElement(\"span\", null, this.props.textProperty ? item[this.props.textProperty] : item.toString()));\n }\n };\n PropertyFieldOrderHost.prototype.renderArrows = function (index) {\n var _this = this;\n var arrowButtonStyles = {\n root: {\n width: '14px',\n height: '100%',\n display: 'inline-block'\n },\n rootDisabled: {\n backgroundColor: 'transparent'\n },\n icon: {\n fontSize: \"10px\"\n }\n };\n return (React.createElement(\"div\", null,\n React.createElement(IconButton, { disabled: this.props.disabled || index === 0, iconProps: { iconName: this.props.moveUpIconName }, onClick: function () { _this.onMoveUpClick(index); }, styles: arrowButtonStyles }),\n React.createElement(IconButton, { disabled: this.props.disabled || index === this.props.items.length - 1, iconProps: { iconName: this.props.moveDownIconName }, onClick: function () { _this.onMoveDownClick(index); }, styles: arrowButtonStyles })));\n };\n PropertyFieldOrderHost.prototype.componentWillMount = function () {\n this.setState({\n items: this.props.items || []\n });\n };\n PropertyFieldOrderHost.prototype.componentDidMount = function () {\n this.setupSubscriptions();\n };\n PropertyFieldOrderHost.prototype.componentWillUpdate = function (nextProps) {\n // Check if the provided items are still the same\n if (!isEqual(nextProps.items, this.state.items)) {\n this.setState({\n items: this.props.items || []\n });\n }\n };\n PropertyFieldOrderHost.prototype.componentDidUpdate = function () {\n this.cleanupSubscriptions();\n this.setupSubscriptions();\n };\n PropertyFieldOrderHost.prototype.componentWillUnmount = function () {\n this.cleanupSubscriptions();\n };\n return PropertyFieldOrderHost;\n}(React.Component));\nexport default PropertyFieldOrderHost;\n"
117585
+ "source": "var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport { Label } from 'office-ui-fabric-react/lib/Label';\nimport { DragDropHelper } from 'office-ui-fabric-react/lib/utilities/dragdrop';\nimport * as React from 'react';\nimport * as telemetry from '../../common/telemetry';\nimport styles from './PropertyFieldOrderHost.module.scss';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nimport { EventGroup } from 'office-ui-fabric-react/lib/Utilities'; //'@uifabric/utilities/lib/EventGroup';\nvar PropertyFieldOrderHost = /** @class */ (function (_super) {\n __extends(PropertyFieldOrderHost, _super);\n function PropertyFieldOrderHost(props, state) {\n var _this = _super.call(this, props) || this;\n _this.registerRef = function (ref) {\n _this._refs.push(ref);\n };\n _this.setupSubscriptions = function () {\n if (!_this.props.disableDragAndDrop && !_this.props.disabled) {\n _this._refs.forEach(function (value, index) {\n _this._ddSubs.push(_this._ddHelper.subscribe(value, new EventGroup(value), {\n eventMap: [\n {\n callback: function (context, event) {\n _this._draggedItem = context.data;\n },\n eventName: 'dragstart'\n }\n ],\n selectionIndex: index,\n context: { data: _this.state.items[index], index: index },\n updateDropState: function (isDropping, event) {\n if (isDropping) {\n value.classList.add(styles.dragEnter);\n }\n else {\n value.classList.remove(styles.dragEnter);\n }\n },\n canDrop: function (dropContext, dragContext) {\n return true;\n },\n canDrag: function (item) {\n return true;\n },\n onDrop: function (item, event) {\n if (_this._draggedItem) {\n _this.insertBeforeItem(item);\n }\n },\n /*onDragStart: (item?: any, itemIndex?: number, selectedItems?: any[], event?: MouseEvent) => {\n //Never called for some reason, so using eventMap above\n this._draggedItem = item;\n },*/\n onDragEnd: function (item, event) {\n _this._draggedItem = null;\n }\n }));\n });\n //Create dropable area below list to allow items to be dragged to the bottom\n if (_this._refs.length && typeof _this._lastBox !== \"undefined\") {\n _this._ddSubs.push(_this._ddHelper.subscribe(_this._lastBox, new EventGroup(_this._lastBox), {\n selectionIndex: _this._refs.length,\n context: { data: {}, index: _this._refs.length },\n updateDropState: function (isDropping, event) {\n if (isDropping) {\n _this._refs[_this._refs.length - 1].classList.add(styles.dragLast);\n }\n else {\n _this._refs[_this._refs.length - 1].classList.remove(styles.dragLast);\n }\n },\n canDrop: function (dropContext, dragContext) {\n return true;\n },\n onDrop: function (item, event) {\n if (_this._draggedItem) {\n var itemIndex = _this.state.items.indexOf(_this._draggedItem);\n _this.moveItemAtIndexToTargetIndex(itemIndex, _this.state.items.length - 1);\n }\n }\n }));\n }\n }\n };\n _this.cleanupSubscriptions = function () {\n while (_this._ddSubs.length) {\n var sub = _this._ddSubs.pop();\n sub.dispose();\n }\n };\n _this.insertBeforeItem = function (item) {\n var itemIndex = _this.state.items.indexOf(_this._draggedItem);\n var targetIndex = _this.state.items.indexOf(item);\n if (itemIndex < targetIndex) {\n targetIndex -= 1;\n }\n _this.moveItemAtIndexToTargetIndex(itemIndex, targetIndex);\n };\n _this.onMoveUpClick = function (itemIndex) {\n if (itemIndex > 0) {\n _this.moveItemAtIndexToTargetIndex(itemIndex, itemIndex - 1);\n }\n };\n _this.onMoveDownClick = function (itemIndex) {\n if (itemIndex < _this.state.items.length - 1) {\n _this.moveItemAtIndexToTargetIndex(itemIndex, itemIndex + 1);\n }\n };\n _this.moveItemAtIndexToTargetIndex = function (itemIndex, targetIndex) {\n if (itemIndex !== targetIndex && itemIndex > -1 && targetIndex > -1 && itemIndex < _this.state.items.length && targetIndex < _this.state.items.length) {\n var items = _this.state.items;\n items.splice.apply(items, __spreadArrays([targetIndex, 0], items.splice(itemIndex, 1)));\n _this.setState({\n items: items\n });\n _this.props.valueChanged(items);\n }\n };\n telemetry.track('PropertyFieldOrder', {\n disabled: props.disabled\n });\n _this._selection = null;\n _this._ddHelper = new DragDropHelper({\n selection: _this._selection\n });\n _this._refs = new Array();\n _this._ddSubs = new Array();\n _this._draggedItem = null;\n _this.state = {\n items: []\n };\n return _this;\n }\n PropertyFieldOrderHost.prototype.render = function () {\n var _this = this;\n var items = this.state.items;\n return (React.createElement(\"div\", { className: styles.propertyFieldOrder },\n this.props.label && React.createElement(Label, null, this.props.label),\n React.createElement(\"ul\", { style: { maxHeight: this.props.maxHeight ? this.props.maxHeight + 'px' : '100%' }, className: !this.props.disabled ? styles.enabled : styles.disabled },\n (items && items.length > 0) && (items.map(function (value, index) {\n return (React.createElement(\"li\", { ref: _this.registerRef, key: index, draggable: !_this.props.disableDragAndDrop && !_this.props.disabled, style: { cursor: !_this.props.disableDragAndDrop && !_this.props.disabled ? 'pointer' : 'default' } }, _this.renderItem(value, index)));\n })),\n (items && items.length > 0) && React.createElement(\"div\", { className: styles.lastBox, ref: function (ref) { _this._lastBox = ref; } }))));\n };\n PropertyFieldOrderHost.prototype.renderItem = function (item, index) {\n return (React.createElement(\"div\", null,\n React.createElement(\"div\", { className: styles.itemBox }, this.renderDisplayValue(item, index)),\n !this.props.removeArrows &&\n React.createElement(\"div\", null, this.renderArrows(index))));\n };\n PropertyFieldOrderHost.prototype.renderDisplayValue = function (item, index) {\n if (typeof this.props.onRenderItem === \"function\") {\n return this.props.onRenderItem(item, index);\n }\n else {\n return (React.createElement(\"span\", null, this.props.textProperty ? item[this.props.textProperty] : item.toString()));\n }\n };\n PropertyFieldOrderHost.prototype.renderArrows = function (index) {\n var _this = this;\n var arrowButtonStyles = {\n root: {\n width: '14px',\n height: '100%',\n display: 'inline-block'\n },\n rootDisabled: {\n backgroundColor: 'transparent'\n },\n icon: {\n fontSize: \"10px\"\n }\n };\n return (React.createElement(\"div\", null,\n React.createElement(IconButton, { disabled: this.props.disabled || index === 0, iconProps: { iconName: this.props.moveUpIconName }, onClick: function () { _this.onMoveUpClick(index); }, styles: arrowButtonStyles }),\n React.createElement(IconButton, { disabled: this.props.disabled || index === this.props.items.length - 1, iconProps: { iconName: this.props.moveDownIconName }, onClick: function () { _this.onMoveDownClick(index); }, styles: arrowButtonStyles })));\n };\n PropertyFieldOrderHost.prototype.componentWillMount = function () {\n this.setState({\n items: this.props.items || []\n });\n };\n PropertyFieldOrderHost.prototype.componentDidMount = function () {\n this.setupSubscriptions();\n };\n PropertyFieldOrderHost.prototype.componentWillUpdate = function (nextProps) {\n // Check if the provided items are still the same\n if (!isEqual(nextProps.items, this.state.items)) {\n this.setState({\n items: this.props.items || []\n });\n }\n };\n PropertyFieldOrderHost.prototype.componentDidUpdate = function () {\n this.cleanupSubscriptions();\n this.setupSubscriptions();\n };\n PropertyFieldOrderHost.prototype.componentWillUnmount = function () {\n this.cleanupSubscriptions();\n };\n return PropertyFieldOrderHost;\n}(React.Component));\nexport default PropertyFieldOrderHost;\n"
117586
117586
  },
117587
117587
  {
117588
117588
  "id": "YiMW",
@@ -127152,9 +127152,9 @@
127152
127152
  "chunks": [
127153
127153
  "property-controls-test-web-part"
127154
127154
  ],
127155
- "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
127156
- "issuerId": "uwFx",
127157
- "issuerName": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
127155
+ "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
127156
+ "issuerId": "j0ZI",
127157
+ "issuerName": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
127158
127158
  "issuerPath": [
127159
127159
  {
127160
127160
  "id": "fd0V",
@@ -127202,9 +127202,9 @@
127202
127202
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
127203
127203
  },
127204
127204
  {
127205
- "id": "uwFx",
127206
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
127207
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
127205
+ "id": "j0ZI",
127206
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
127207
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
127208
127208
  }
127209
127209
  ],
127210
127210
  "failed": false,
@@ -150102,7 +150102,7 @@
150102
150102
  ],
150103
150103
  "optimizationBailout": [],
150104
150104
  "depth": 4,
150105
- "source": "export var version = \"3.3.0-beta.1482200\";\n"
150105
+ "source": "export var version = \"3.3.0-beta.1482316\";\n"
150106
150106
  },
150107
150107
  {
150108
150108
  "id": "cLrF",
@@ -249539,9 +249539,9 @@
249539
249539
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
249540
249540
  },
249541
249541
  {
249542
- "id": "uwFx",
249543
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
249544
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
249542
+ "id": "j0ZI",
249543
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
249544
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
249545
249545
  },
249546
249546
  {
249547
249547
  "id": "bwCg",
@@ -261922,9 +261922,9 @@
261922
261922
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
261923
261923
  },
261924
261924
  {
261925
- "id": "uwFx",
261926
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
261927
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
261925
+ "id": "j0ZI",
261926
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
261927
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
261928
261928
  },
261929
261929
  {
261930
261930
  "id": "bwCg",
@@ -274535,9 +274535,9 @@
274535
274535
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
274536
274536
  },
274537
274537
  {
274538
- "id": "uwFx",
274539
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
274540
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
274538
+ "id": "j0ZI",
274539
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
274540
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
274541
274541
  },
274542
274542
  {
274543
274543
  "id": "bwCg",
@@ -291003,9 +291003,9 @@
291003
291003
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
291004
291004
  },
291005
291005
  {
291006
- "id": "uwFx",
291007
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
291008
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
291006
+ "id": "j0ZI",
291007
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
291008
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
291009
291009
  },
291010
291010
  {
291011
291011
  "id": "bwCg",
@@ -294708,9 +294708,9 @@
294708
294708
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
294709
294709
  },
294710
294710
  {
294711
- "id": "uwFx",
294712
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
294713
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
294711
+ "id": "j0ZI",
294712
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
294713
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
294714
294714
  },
294715
294715
  {
294716
294716
  "id": "bwCg",
@@ -347738,7 +347738,7 @@
347738
347738
  "name": "./lib/propertyFields/order/PropertyFieldOrderHost.js",
347739
347739
  "index": 863,
347740
347740
  "index2": 864,
347741
- "size": 10944,
347741
+ "size": 10941,
347742
347742
  "cacheable": true,
347743
347743
  "built": true,
347744
347744
  "optional": false,
@@ -347818,7 +347818,7 @@
347818
347818
  ],
347819
347819
  "optimizationBailout": [],
347820
347820
  "depth": 3,
347821
- "source": "var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport { Label } from 'office-ui-fabric-react/lib/Label';\nimport { DragDropHelper } from 'office-ui-fabric-react/lib/utilities/dragdrop';\nimport * as React from 'react';\nimport * as telemetry from '../../common/telemetry';\nimport styles from './PropertyFieldOrderHost.module.scss';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nimport { EventGroup } from 'office-ui-fabric-react/lib/Utilities'; //'@uifabric/utilities/lib/EventGroup';\nvar PropertyFieldOrderHost = /** @class */ (function (_super) {\n __extends(PropertyFieldOrderHost, _super);\n function PropertyFieldOrderHost(props, state) {\n var _this = _super.call(this, props) || this;\n _this.registerRef = function (ref) {\n _this._refs.push(ref);\n };\n _this.setupSubscriptions = function () {\n if (!_this.props.disableDragAndDrop && !_this.props.disabled) {\n _this._refs.forEach(function (value, index) {\n _this._ddSubs.push(_this._ddHelper.subscribe(value, new EventGroup(value), {\n eventMap: [\n {\n callback: function (context, event) {\n _this._draggedItem = context.data;\n },\n eventName: 'dragstart'\n }\n ],\n selectionIndex: index,\n context: { data: _this.state.items[index], index: index },\n updateDropState: function (isDropping, event) {\n if (isDropping) {\n value.classList.add(styles.dragEnter);\n }\n else {\n value.classList.remove(styles.dragEnter);\n }\n },\n canDrop: function (dropContext, dragContext) {\n return true;\n },\n canDrag: function (item) {\n return true;\n },\n onDrop: function (item, event) {\n if (_this._draggedItem) {\n _this.insertBeforeItem(item);\n }\n },\n /*onDragStart: (item?: any, itemIndex?: number, selectedItems?: any[], event?: MouseEvent) => {\n //Never called for some reason, so using eventMap above\n this._draggedItem = item;\n },*/\n onDragEnd: function (item, event) {\n _this._draggedItem = null;\n }\n }));\n });\n //Create dropable area below list to allow items to be dragged to the bottom\n if (_this._refs.length && typeof _this._lastBox !== \"undefined\") {\n _this._ddSubs.push(_this._ddHelper.subscribe(_this._lastBox, new EventGroup(_this._lastBox), {\n selectionIndex: _this._refs.length,\n context: { data: {}, index: _this._refs.length },\n updateDropState: function (isDropping, event) {\n if (isDropping) {\n _this._refs[_this._refs.length - 1].classList.add(styles.dragLast);\n }\n else {\n _this._refs[_this._refs.length - 1].classList.remove(styles.dragLast);\n }\n },\n canDrop: function (dropContext, dragContext) {\n return true;\n },\n onDrop: function (item, event) {\n if (_this._draggedItem) {\n var itemIndex = _this.state.items.indexOf(_this._draggedItem);\n _this.moveItemAtIndexToTargetIndex(itemIndex, _this.state.items.length - 1);\n }\n }\n }));\n }\n }\n };\n _this.cleanupSubscriptions = function () {\n while (_this._ddSubs.length) {\n var sub = _this._ddSubs.pop();\n sub.dispose();\n }\n };\n _this.insertBeforeItem = function (item) {\n var itemIndex = _this.state.items.indexOf(_this._draggedItem);\n var targetIndex = _this.state.items.indexOf(item);\n if (itemIndex < targetIndex) {\n targetIndex -= 1;\n }\n _this.moveItemAtIndexToTargetIndex(itemIndex, targetIndex);\n };\n _this.onMoveUpClick = function (itemIndex) {\n if (itemIndex > 0) {\n _this.moveItemAtIndexToTargetIndex(itemIndex, itemIndex - 1);\n }\n };\n _this.onMoveDownClick = function (itemIndex) {\n if (itemIndex < _this.state.items.length - 1) {\n _this.moveItemAtIndexToTargetIndex(itemIndex, itemIndex + 1);\n }\n };\n _this.moveItemAtIndexToTargetIndex = function (itemIndex, targetIndex) {\n if (itemIndex !== targetIndex && itemIndex > -1 && targetIndex > -1 && itemIndex < _this.state.items.length && targetIndex < _this.state.items.length) {\n var items = _this.state.items;\n items.splice.apply(items, __spreadArrays([targetIndex, 0], items.splice(itemIndex, 1)[0]));\n _this.setState({\n items: items\n });\n _this.props.valueChanged(items);\n }\n };\n telemetry.track('PropertyFieldOrder', {\n disabled: props.disabled\n });\n _this._selection = null;\n _this._ddHelper = new DragDropHelper({\n selection: _this._selection\n });\n _this._refs = new Array();\n _this._ddSubs = new Array();\n _this._draggedItem = null;\n _this.state = {\n items: []\n };\n return _this;\n }\n PropertyFieldOrderHost.prototype.render = function () {\n var _this = this;\n var items = this.state.items;\n return (React.createElement(\"div\", { className: styles.propertyFieldOrder },\n this.props.label && React.createElement(Label, null, this.props.label),\n React.createElement(\"ul\", { style: { maxHeight: this.props.maxHeight ? this.props.maxHeight + 'px' : '100%' }, className: !this.props.disabled ? styles.enabled : styles.disabled },\n (items && items.length > 0) && (items.map(function (value, index) {\n return (React.createElement(\"li\", { ref: _this.registerRef, key: index, draggable: !_this.props.disableDragAndDrop && !_this.props.disabled, style: { cursor: !_this.props.disableDragAndDrop && !_this.props.disabled ? 'pointer' : 'default' } }, _this.renderItem(value, index)));\n })),\n (items && items.length > 0) && React.createElement(\"div\", { className: styles.lastBox, ref: function (ref) { _this._lastBox = ref; } }))));\n };\n PropertyFieldOrderHost.prototype.renderItem = function (item, index) {\n return (React.createElement(\"div\", null,\n React.createElement(\"div\", { className: styles.itemBox }, this.renderDisplayValue(item, index)),\n !this.props.removeArrows &&\n React.createElement(\"div\", null, this.renderArrows(index))));\n };\n PropertyFieldOrderHost.prototype.renderDisplayValue = function (item, index) {\n if (typeof this.props.onRenderItem === \"function\") {\n return this.props.onRenderItem(item, index);\n }\n else {\n return (React.createElement(\"span\", null, this.props.textProperty ? item[this.props.textProperty] : item.toString()));\n }\n };\n PropertyFieldOrderHost.prototype.renderArrows = function (index) {\n var _this = this;\n var arrowButtonStyles = {\n root: {\n width: '14px',\n height: '100%',\n display: 'inline-block'\n },\n rootDisabled: {\n backgroundColor: 'transparent'\n },\n icon: {\n fontSize: \"10px\"\n }\n };\n return (React.createElement(\"div\", null,\n React.createElement(IconButton, { disabled: this.props.disabled || index === 0, iconProps: { iconName: this.props.moveUpIconName }, onClick: function () { _this.onMoveUpClick(index); }, styles: arrowButtonStyles }),\n React.createElement(IconButton, { disabled: this.props.disabled || index === this.props.items.length - 1, iconProps: { iconName: this.props.moveDownIconName }, onClick: function () { _this.onMoveDownClick(index); }, styles: arrowButtonStyles })));\n };\n PropertyFieldOrderHost.prototype.componentWillMount = function () {\n this.setState({\n items: this.props.items || []\n });\n };\n PropertyFieldOrderHost.prototype.componentDidMount = function () {\n this.setupSubscriptions();\n };\n PropertyFieldOrderHost.prototype.componentWillUpdate = function (nextProps) {\n // Check if the provided items are still the same\n if (!isEqual(nextProps.items, this.state.items)) {\n this.setState({\n items: this.props.items || []\n });\n }\n };\n PropertyFieldOrderHost.prototype.componentDidUpdate = function () {\n this.cleanupSubscriptions();\n this.setupSubscriptions();\n };\n PropertyFieldOrderHost.prototype.componentWillUnmount = function () {\n this.cleanupSubscriptions();\n };\n return PropertyFieldOrderHost;\n}(React.Component));\nexport default PropertyFieldOrderHost;\n"
347821
+ "source": "var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nimport { IconButton } from 'office-ui-fabric-react/lib/Button';\nimport { Label } from 'office-ui-fabric-react/lib/Label';\nimport { DragDropHelper } from 'office-ui-fabric-react/lib/utilities/dragdrop';\nimport * as React from 'react';\nimport * as telemetry from '../../common/telemetry';\nimport styles from './PropertyFieldOrderHost.module.scss';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nimport { EventGroup } from 'office-ui-fabric-react/lib/Utilities'; //'@uifabric/utilities/lib/EventGroup';\nvar PropertyFieldOrderHost = /** @class */ (function (_super) {\n __extends(PropertyFieldOrderHost, _super);\n function PropertyFieldOrderHost(props, state) {\n var _this = _super.call(this, props) || this;\n _this.registerRef = function (ref) {\n _this._refs.push(ref);\n };\n _this.setupSubscriptions = function () {\n if (!_this.props.disableDragAndDrop && !_this.props.disabled) {\n _this._refs.forEach(function (value, index) {\n _this._ddSubs.push(_this._ddHelper.subscribe(value, new EventGroup(value), {\n eventMap: [\n {\n callback: function (context, event) {\n _this._draggedItem = context.data;\n },\n eventName: 'dragstart'\n }\n ],\n selectionIndex: index,\n context: { data: _this.state.items[index], index: index },\n updateDropState: function (isDropping, event) {\n if (isDropping) {\n value.classList.add(styles.dragEnter);\n }\n else {\n value.classList.remove(styles.dragEnter);\n }\n },\n canDrop: function (dropContext, dragContext) {\n return true;\n },\n canDrag: function (item) {\n return true;\n },\n onDrop: function (item, event) {\n if (_this._draggedItem) {\n _this.insertBeforeItem(item);\n }\n },\n /*onDragStart: (item?: any, itemIndex?: number, selectedItems?: any[], event?: MouseEvent) => {\n //Never called for some reason, so using eventMap above\n this._draggedItem = item;\n },*/\n onDragEnd: function (item, event) {\n _this._draggedItem = null;\n }\n }));\n });\n //Create dropable area below list to allow items to be dragged to the bottom\n if (_this._refs.length && typeof _this._lastBox !== \"undefined\") {\n _this._ddSubs.push(_this._ddHelper.subscribe(_this._lastBox, new EventGroup(_this._lastBox), {\n selectionIndex: _this._refs.length,\n context: { data: {}, index: _this._refs.length },\n updateDropState: function (isDropping, event) {\n if (isDropping) {\n _this._refs[_this._refs.length - 1].classList.add(styles.dragLast);\n }\n else {\n _this._refs[_this._refs.length - 1].classList.remove(styles.dragLast);\n }\n },\n canDrop: function (dropContext, dragContext) {\n return true;\n },\n onDrop: function (item, event) {\n if (_this._draggedItem) {\n var itemIndex = _this.state.items.indexOf(_this._draggedItem);\n _this.moveItemAtIndexToTargetIndex(itemIndex, _this.state.items.length - 1);\n }\n }\n }));\n }\n }\n };\n _this.cleanupSubscriptions = function () {\n while (_this._ddSubs.length) {\n var sub = _this._ddSubs.pop();\n sub.dispose();\n }\n };\n _this.insertBeforeItem = function (item) {\n var itemIndex = _this.state.items.indexOf(_this._draggedItem);\n var targetIndex = _this.state.items.indexOf(item);\n if (itemIndex < targetIndex) {\n targetIndex -= 1;\n }\n _this.moveItemAtIndexToTargetIndex(itemIndex, targetIndex);\n };\n _this.onMoveUpClick = function (itemIndex) {\n if (itemIndex > 0) {\n _this.moveItemAtIndexToTargetIndex(itemIndex, itemIndex - 1);\n }\n };\n _this.onMoveDownClick = function (itemIndex) {\n if (itemIndex < _this.state.items.length - 1) {\n _this.moveItemAtIndexToTargetIndex(itemIndex, itemIndex + 1);\n }\n };\n _this.moveItemAtIndexToTargetIndex = function (itemIndex, targetIndex) {\n if (itemIndex !== targetIndex && itemIndex > -1 && targetIndex > -1 && itemIndex < _this.state.items.length && targetIndex < _this.state.items.length) {\n var items = _this.state.items;\n items.splice.apply(items, __spreadArrays([targetIndex, 0], items.splice(itemIndex, 1)));\n _this.setState({\n items: items\n });\n _this.props.valueChanged(items);\n }\n };\n telemetry.track('PropertyFieldOrder', {\n disabled: props.disabled\n });\n _this._selection = null;\n _this._ddHelper = new DragDropHelper({\n selection: _this._selection\n });\n _this._refs = new Array();\n _this._ddSubs = new Array();\n _this._draggedItem = null;\n _this.state = {\n items: []\n };\n return _this;\n }\n PropertyFieldOrderHost.prototype.render = function () {\n var _this = this;\n var items = this.state.items;\n return (React.createElement(\"div\", { className: styles.propertyFieldOrder },\n this.props.label && React.createElement(Label, null, this.props.label),\n React.createElement(\"ul\", { style: { maxHeight: this.props.maxHeight ? this.props.maxHeight + 'px' : '100%' }, className: !this.props.disabled ? styles.enabled : styles.disabled },\n (items && items.length > 0) && (items.map(function (value, index) {\n return (React.createElement(\"li\", { ref: _this.registerRef, key: index, draggable: !_this.props.disableDragAndDrop && !_this.props.disabled, style: { cursor: !_this.props.disableDragAndDrop && !_this.props.disabled ? 'pointer' : 'default' } }, _this.renderItem(value, index)));\n })),\n (items && items.length > 0) && React.createElement(\"div\", { className: styles.lastBox, ref: function (ref) { _this._lastBox = ref; } }))));\n };\n PropertyFieldOrderHost.prototype.renderItem = function (item, index) {\n return (React.createElement(\"div\", null,\n React.createElement(\"div\", { className: styles.itemBox }, this.renderDisplayValue(item, index)),\n !this.props.removeArrows &&\n React.createElement(\"div\", null, this.renderArrows(index))));\n };\n PropertyFieldOrderHost.prototype.renderDisplayValue = function (item, index) {\n if (typeof this.props.onRenderItem === \"function\") {\n return this.props.onRenderItem(item, index);\n }\n else {\n return (React.createElement(\"span\", null, this.props.textProperty ? item[this.props.textProperty] : item.toString()));\n }\n };\n PropertyFieldOrderHost.prototype.renderArrows = function (index) {\n var _this = this;\n var arrowButtonStyles = {\n root: {\n width: '14px',\n height: '100%',\n display: 'inline-block'\n },\n rootDisabled: {\n backgroundColor: 'transparent'\n },\n icon: {\n fontSize: \"10px\"\n }\n };\n return (React.createElement(\"div\", null,\n React.createElement(IconButton, { disabled: this.props.disabled || index === 0, iconProps: { iconName: this.props.moveUpIconName }, onClick: function () { _this.onMoveUpClick(index); }, styles: arrowButtonStyles }),\n React.createElement(IconButton, { disabled: this.props.disabled || index === this.props.items.length - 1, iconProps: { iconName: this.props.moveDownIconName }, onClick: function () { _this.onMoveDownClick(index); }, styles: arrowButtonStyles })));\n };\n PropertyFieldOrderHost.prototype.componentWillMount = function () {\n this.setState({\n items: this.props.items || []\n });\n };\n PropertyFieldOrderHost.prototype.componentDidMount = function () {\n this.setupSubscriptions();\n };\n PropertyFieldOrderHost.prototype.componentWillUpdate = function (nextProps) {\n // Check if the provided items are still the same\n if (!isEqual(nextProps.items, this.state.items)) {\n this.setState({\n items: this.props.items || []\n });\n }\n };\n PropertyFieldOrderHost.prototype.componentDidUpdate = function () {\n this.cleanupSubscriptions();\n this.setupSubscriptions();\n };\n PropertyFieldOrderHost.prototype.componentWillUnmount = function () {\n this.cleanupSubscriptions();\n };\n return PropertyFieldOrderHost;\n}(React.Component));\nexport default PropertyFieldOrderHost;\n"
347822
347822
  },
347823
347823
  {
347824
347824
  "id": "YiMW",
@@ -357388,9 +357388,9 @@
357388
357388
  "chunks": [
357389
357389
  "property-controls-test-web-part"
357390
357390
  ],
357391
- "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
357392
- "issuerId": "uwFx",
357393
- "issuerName": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
357391
+ "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
357392
+ "issuerId": "j0ZI",
357393
+ "issuerName": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
357394
357394
  "issuerPath": [
357395
357395
  {
357396
357396
  "id": "fd0V",
@@ -357438,9 +357438,9 @@
357438
357438
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
357439
357439
  },
357440
357440
  {
357441
- "id": "uwFx",
357442
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
357443
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
357441
+ "id": "j0ZI",
357442
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
357443
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
357444
357444
  }
357445
357445
  ],
357446
357446
  "failed": false,
@@ -380338,7 +380338,7 @@
380338
380338
  ],
380339
380339
  "optimizationBailout": [],
380340
380340
  "depth": 4,
380341
- "source": "export var version = \"3.3.0-beta.1482200\";\n"
380341
+ "source": "export var version = \"3.3.0-beta.1482316\";\n"
380342
380342
  },
380343
380343
  {
380344
380344
  "id": "cLrF",