@pnp/spfx-property-controls 3.3.0-beta.1412924 → 3.3.0-beta.1439700

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.1412924";
1
+ export var version = "3.3.0-beta.1439700";
2
2
  //# sourceMappingURL=version.js.map
@@ -52,24 +52,22 @@ var PropertyPanePropertyEditorHost = /** @class */ (function (_super) {
52
52
  for (var propName in newProperties) {
53
53
  // Do not update dynamic data properties
54
54
  var currentValue = getPropertyValue(_this.props.webpart.properties, propName);
55
- if (currentValue) {
56
- if (currentValue.__type === "DynamicProperty") {
57
- var currVal = currentValue;
58
- var newVal = newProperties[propName];
59
- if (GeneralHelper.isDefined(newVal.value)) {
60
- currVal.setValue(newVal.value);
61
- }
62
- if (GeneralHelper.isDefined(newVal.reference)) {
63
- currVal.setReference(newVal.reference._reference);
64
- }
55
+ if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.__type) === "DynamicProperty") {
56
+ var currVal = currentValue;
57
+ var newVal = newProperties[propName];
58
+ if (GeneralHelper.isDefined(newVal.value)) {
59
+ currVal.setValue(newVal.value);
65
60
  }
66
- else {
67
- setPropertyValue(_this.props.webpart.properties, propName, newProperties[propName]);
68
- }
69
- if (typeof _this.props.webpart.properties[propName].onChange !== 'undefined' && _this.props.webpart.properties[propName].onChange !== null) {
70
- _this.props.webpart.properties[propName].onChange(propName, newProperties[propName]);
61
+ if (GeneralHelper.isDefined(newVal.reference)) {
62
+ currVal.setReference(newVal.reference._reference);
71
63
  }
72
64
  }
65
+ else {
66
+ setPropertyValue(_this.props.webpart.properties, propName, newProperties[propName]);
67
+ }
68
+ if (typeof _this.props.webpart.properties[propName].onChange !== 'undefined' && _this.props.webpart.properties[propName].onChange !== null) {
69
+ _this.props.webpart.properties[propName].onChange(propName, newProperties[propName]);
70
+ }
73
71
  }
74
72
  _this.props.webpart.render();
75
73
  _this.props.webpart.context.propertyPane.refresh();
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyPanePropertyEditorHost.js","sourceRoot":"","sources":["../../../src/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,aAAa,EAA4B,MAAM,mCAAmC,CAAC;AAC3G,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,MAAM,MAAM,8CAA8C,CAAC;AAClE,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAIhG;IAA4D,kDAA2F;IAMrJ,wCAAY,KAA2C,EAAE,KAA2C;QAApG,YACE,kBAAM,KAAK,CAAC,SAQb;QAZO,YAAM,GAAY,IAAI,CAAC;QACvB,aAAO,GAAqB,IAAI,CAAC;QAajC,gBAAU,GAAG,UAAC,OAAyB;YAC7C,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC,CAAA;QAEO,mBAAa,GAAG;YACtB,IAAI,KAAK,GAAG,EAAE,CAAC;YACf,KAAK,GAAG,KAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;YACtC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC,CAAA;QAED;;WAEG;QACK,YAAM,GAAG;YACf,IAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,KAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;YAC5D,KAAK,IAAI,QAAQ,IAAI,aAAa,EAAE;gBAClC,wCAAwC;gBACxC,IAAM,YAAY,GAAG,gBAAgB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OAAO,CAAC,iBAAiB,EAAE,OAAO,EAAE,KAAI,CAAC,YAAY,GAAI,CAC/I;4BACN,6BAAK,SAAS,EAAC,oDAAoD;gCACjE,oBAAC,aAAa,IAAC,KAAK,EAAC,uBAAuB,EAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,EAAE,OAAO,CAAC,iBAAiB,EAAE,OAAO,EAAE,KAAI,CAAC,UAAU,GAAI;gCAEjL,+BAAO,IAAI,EAAC,MAAM,EAAC,EAAE,EAAC,mBAAmB,EAAC,GAAG,EAAE,KAAI,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAI,CAAC,QAAQ,GAAI;gCAEvH,oBAAC,aAAa,IAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,EAAE,OAAO,CAAC,iBAAiB,EAAE,OAAO,EAAE,cAAQ,KAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,GAAI,CAC7J,CACF,CACF,CACF,CACP,EAnB4B,CAmB5B;gBAED,oBAAC,SAAS,IACR,IAAI,EAAC,eAAe,EACpB,KAAK,EAAC,SAAS,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,EAChC,IAAI,EAAE,sBAAsB,EAC5B,WAAW,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,GACtC,CACI,CACJ,CACP,CAAC;IACJ,CAAC;IACH,qCAAC;AAAD,CAAC,AAtLD,CAA4D,KAAK,CAAC,SAAS,GAsL1E"}
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.1412924",
4
+ "version": "3.3.0-beta.1439700",
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": "62a6e831323bdf55a236",
6
- "time": 12607,
7
- "builtAt": 1635866629232,
5
+ "hash": "30064a145205f25e7498",
6
+ "time": 9802,
7
+ "builtAt": 1636465302812,
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": 9065284,
267
+ "size": 9065228,
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": 8501049,
280
+ "size": 8501013,
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": 6886352,
328
+ "size": 6886296,
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": "2f10977dce64e371bde7",
336
+ "hash": "197b4d5d862295c9980c",
337
337
  "siblings": [],
338
338
  "parents": [],
339
339
  "children": [],
@@ -19300,9 +19300,9 @@
19300
19300
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
19301
19301
  },
19302
19302
  {
19303
- "id": "uwFx",
19304
- "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",
19305
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
19303
+ "id": "j0ZI",
19304
+ "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",
19305
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
19306
19306
  },
19307
19307
  {
19308
19308
  "id": "bwCg",
@@ -31683,9 +31683,9 @@
31683
31683
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
31684
31684
  },
31685
31685
  {
31686
- "id": "uwFx",
31687
- "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",
31688
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
31686
+ "id": "j0ZI",
31687
+ "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",
31688
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
31689
31689
  },
31690
31690
  {
31691
31691
  "id": "bwCg",
@@ -44287,9 +44287,9 @@
44287
44287
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
44288
44288
  },
44289
44289
  {
44290
- "id": "uwFx",
44291
- "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",
44292
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
44290
+ "id": "j0ZI",
44291
+ "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",
44292
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
44293
44293
  },
44294
44294
  {
44295
44295
  "id": "bwCg",
@@ -51595,7 +51595,7 @@
51595
51595
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
51596
51596
  "type": "harmony import specifier",
51597
51597
  "userRequest": "office-ui-fabric-react/lib/Button",
51598
- "loc": "155:32-45"
51598
+ "loc": "153:32-45"
51599
51599
  },
51600
51600
  {
51601
51601
  "moduleId": "lRyN",
@@ -51604,7 +51604,7 @@
51604
51604
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
51605
51605
  "type": "harmony import specifier",
51606
51606
  "userRequest": "office-ui-fabric-react/lib/Button",
51607
- "loc": "160:52-65"
51607
+ "loc": "158:52-65"
51608
51608
  },
51609
51609
  {
51610
51610
  "moduleId": "lRyN",
@@ -51613,7 +51613,7 @@
51613
51613
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
51614
51614
  "type": "harmony import specifier",
51615
51615
  "userRequest": "office-ui-fabric-react/lib/Button",
51616
- "loc": "161:52-65"
51616
+ "loc": "159:52-65"
51617
51617
  },
51618
51618
  {
51619
51619
  "moduleId": "lRyN",
@@ -51622,7 +51622,7 @@
51622
51622
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
51623
51623
  "type": "harmony import specifier",
51624
51624
  "userRequest": "office-ui-fabric-react/lib/Button",
51625
- "loc": "163:52-65"
51625
+ "loc": "161:52-65"
51626
51626
  },
51627
51627
  {
51628
51628
  "moduleId": "lRyN",
@@ -51631,7 +51631,7 @@
51631
51631
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
51632
51632
  "type": "harmony import specifier",
51633
51633
  "userRequest": "office-ui-fabric-react/lib/Button",
51634
- "loc": "165:52-65"
51634
+ "loc": "163:52-65"
51635
51635
  },
51636
51636
  {
51637
51637
  "moduleId": "q7WZ",
@@ -60731,9 +60731,9 @@
60731
60731
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
60732
60732
  },
60733
60733
  {
60734
- "id": "uwFx",
60735
- "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",
60736
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
60734
+ "id": "j0ZI",
60735
+ "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",
60736
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
60737
60737
  },
60738
60738
  {
60739
60739
  "id": "bwCg",
@@ -64436,9 +64436,9 @@
64436
64436
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
64437
64437
  },
64438
64438
  {
64439
- "id": "uwFx",
64440
- "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",
64441
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
64439
+ "id": "j0ZI",
64440
+ "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",
64441
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
64442
64442
  },
64443
64443
  {
64444
64444
  "id": "bwCg",
@@ -113016,9 +113016,9 @@
113016
113016
  "chunks": [
113017
113017
  "property-controls-test-web-part"
113018
113018
  ],
113019
- "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/_nodeUtil.js",
113020
- "issuerId": "mdPL",
113021
- "issuerName": "./node_modules/lodash/_nodeUtil.js",
113019
+ "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/_root.js",
113020
+ "issuerId": "Kz5y",
113021
+ "issuerName": "./node_modules/lodash/_root.js",
113022
113022
  "issuerPath": [
113023
113023
  {
113024
113024
  "id": "fd0V",
@@ -113051,14 +113051,14 @@
113051
113051
  "name": "./node_modules/lodash/_baseClone.js"
113052
113052
  },
113053
113053
  {
113054
- "id": "1+5i",
113055
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isSet.js",
113056
- "name": "./node_modules/lodash/isSet.js"
113054
+ "id": "DSRE",
113055
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isBuffer.js",
113056
+ "name": "./node_modules/lodash/isBuffer.js"
113057
113057
  },
113058
113058
  {
113059
- "id": "mdPL",
113060
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/_nodeUtil.js",
113061
- "name": "./node_modules/lodash/_nodeUtil.js"
113059
+ "id": "Kz5y",
113060
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/_root.js",
113061
+ "name": "./node_modules/lodash/_root.js"
113062
113062
  }
113063
113063
  ],
113064
113064
  "failed": false,
@@ -127035,9 +127035,9 @@
127035
127035
  "chunks": [
127036
127036
  "property-controls-test-web-part"
127037
127037
  ],
127038
- "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",
127039
- "issuerId": "uwFx",
127040
- "issuerName": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
127038
+ "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",
127039
+ "issuerId": "j0ZI",
127040
+ "issuerName": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
127041
127041
  "issuerPath": [
127042
127042
  {
127043
127043
  "id": "fd0V",
@@ -127085,9 +127085,9 @@
127085
127085
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
127086
127086
  },
127087
127087
  {
127088
- "id": "uwFx",
127089
- "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",
127090
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
127088
+ "id": "j0ZI",
127089
+ "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",
127090
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
127091
127091
  }
127092
127092
  ],
127093
127093
  "failed": false,
@@ -144687,7 +144687,7 @@
144687
144687
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144688
144688
  "type": "harmony import specifier",
144689
144689
  "userRequest": "react",
144690
- "loc": "154:16-35"
144690
+ "loc": "152:16-35"
144691
144691
  },
144692
144692
  {
144693
144693
  "moduleId": "lRyN",
@@ -144696,7 +144696,7 @@
144696
144696
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144697
144697
  "type": "harmony import specifier",
144698
144698
  "userRequest": "react",
144699
- "loc": "155:12-31"
144699
+ "loc": "153:12-31"
144700
144700
  },
144701
144701
  {
144702
144702
  "moduleId": "lRyN",
@@ -144705,7 +144705,7 @@
144705
144705
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144706
144706
  "type": "harmony import specifier",
144707
144707
  "userRequest": "react",
144708
- "loc": "156:12-31"
144708
+ "loc": "154:12-31"
144709
144709
  },
144710
144710
  {
144711
144711
  "moduleId": "lRyN",
@@ -144714,7 +144714,7 @@
144714
144714
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144715
144715
  "type": "harmony import specifier",
144716
144716
  "userRequest": "react",
144717
- "loc": "156:249-268"
144717
+ "loc": "154:249-268"
144718
144718
  },
144719
144719
  {
144720
144720
  "moduleId": "lRyN",
@@ -144723,7 +144723,7 @@
144723
144723
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144724
144724
  "type": "harmony import specifier",
144725
144725
  "userRequest": "react",
144726
- "loc": "157:20-39"
144726
+ "loc": "155:20-39"
144727
144727
  },
144728
144728
  {
144729
144729
  "moduleId": "lRyN",
@@ -144732,7 +144732,7 @@
144732
144732
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144733
144733
  "type": "harmony import specifier",
144734
144734
  "userRequest": "react",
144735
- "loc": "158:24-43"
144735
+ "loc": "156:24-43"
144736
144736
  },
144737
144737
  {
144738
144738
  "moduleId": "lRyN",
@@ -144741,7 +144741,7 @@
144741
144741
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144742
144742
  "type": "harmony import specifier",
144743
144743
  "userRequest": "react",
144744
- "loc": "159:28-47"
144744
+ "loc": "157:28-47"
144745
144745
  },
144746
144746
  {
144747
144747
  "moduleId": "lRyN",
@@ -144750,7 +144750,7 @@
144750
144750
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144751
144751
  "type": "harmony import specifier",
144752
144752
  "userRequest": "react",
144753
- "loc": "160:32-51"
144753
+ "loc": "158:32-51"
144754
144754
  },
144755
144755
  {
144756
144756
  "moduleId": "lRyN",
@@ -144759,7 +144759,7 @@
144759
144759
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144760
144760
  "type": "harmony import specifier",
144761
144761
  "userRequest": "react",
144762
- "loc": "161:32-51"
144762
+ "loc": "159:32-51"
144763
144763
  },
144764
144764
  {
144765
144765
  "moduleId": "lRyN",
@@ -144768,7 +144768,7 @@
144768
144768
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144769
144769
  "type": "harmony import specifier",
144770
144770
  "userRequest": "react",
144771
- "loc": "162:28-47"
144771
+ "loc": "160:28-47"
144772
144772
  },
144773
144773
  {
144774
144774
  "moduleId": "lRyN",
@@ -144777,7 +144777,7 @@
144777
144777
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144778
144778
  "type": "harmony import specifier",
144779
144779
  "userRequest": "react",
144780
- "loc": "163:32-51"
144780
+ "loc": "161:32-51"
144781
144781
  },
144782
144782
  {
144783
144783
  "moduleId": "lRyN",
@@ -144786,7 +144786,7 @@
144786
144786
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144787
144787
  "type": "harmony import specifier",
144788
144788
  "userRequest": "react",
144789
- "loc": "164:32-51"
144789
+ "loc": "162:32-51"
144790
144790
  },
144791
144791
  {
144792
144792
  "moduleId": "lRyN",
@@ -144795,7 +144795,7 @@
144795
144795
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144796
144796
  "type": "harmony import specifier",
144797
144797
  "userRequest": "react",
144798
- "loc": "165:32-51"
144798
+ "loc": "163:32-51"
144799
144799
  },
144800
144800
  {
144801
144801
  "moduleId": "lRyN",
@@ -144804,7 +144804,7 @@
144804
144804
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144805
144805
  "type": "harmony import specifier",
144806
144806
  "userRequest": "react",
144807
- "loc": "166:16-35"
144807
+ "loc": "164:16-35"
144808
144808
  },
144809
144809
  {
144810
144810
  "moduleId": "lRyN",
@@ -144813,7 +144813,7 @@
144813
144813
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
144814
144814
  "type": "harmony import specifier",
144815
144815
  "userRequest": "react",
144816
- "loc": "169:2-17"
144816
+ "loc": "167:2-17"
144817
144817
  },
144818
144818
  {
144819
144819
  "moduleId": "lfyH",
@@ -149922,7 +149922,7 @@
149922
149922
  ],
149923
149923
  "optimizationBailout": [],
149924
149924
  "depth": 4,
149925
- "source": "export var version = \"3.3.0-beta.1412924\";\n"
149925
+ "source": "export var version = \"3.3.0-beta.1439700\";\n"
149926
149926
  },
149927
149927
  {
149928
149928
  "id": "cLrF",
@@ -172543,7 +172543,7 @@
172543
172543
  "name": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
172544
172544
  "index": 897,
172545
172545
  "index2": 898,
172546
- "size": 9138,
172546
+ "size": 9082,
172547
172547
  "cacheable": true,
172548
172548
  "built": true,
172549
172549
  "optional": false,
@@ -172595,7 +172595,7 @@
172595
172595
  ],
172596
172596
  "optimizationBailout": [],
172597
172597
  "depth": 2,
172598
- "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 __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport * as React from 'react';\nimport { Panel, PanelType } from 'office-ui-fabric-react/lib/Panel';\nimport { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/Button';\nimport AceEditor from 'react-ace';\nimport * as telemetry from '../../common/telemetry';\nimport styles from './PropertyPanePropertyEditorHost.module.scss';\nimport * as strings from 'PropertyControlStrings';\nimport { GeneralHelper, getPropertyValue, setPropertyValue } from '../../helpers/GeneralHelper';\nvar PropertyPanePropertyEditorHost = /** @class */ (function (_super) {\n __extends(PropertyPanePropertyEditorHost, _super);\n function PropertyPanePropertyEditorHost(props, state) {\n var _this = _super.call(this, props) || this;\n _this.cancel = true;\n _this.fileRef = null;\n _this.setFileRef = function (element) {\n _this.fileRef = element;\n };\n _this.getProperties = function () {\n var props = {};\n props = _this.props.webpart.properties;\n return JSON.stringify(props);\n };\n /**\n * Called when the save button gets clicked\n */\n _this.onSave = function () {\n var newProperties = JSON.parse(_this.state.propertiesJson);\n for (var propName in newProperties) {\n // Do not update dynamic data properties\n var currentValue = getPropertyValue(_this.props.webpart.properties, propName);\n if (currentValue) {\n if (currentValue.__type === \"DynamicProperty\") {\n var currVal = currentValue;\n var newVal = newProperties[propName];\n if (GeneralHelper.isDefined(newVal.value)) {\n currVal.setValue(newVal.value);\n }\n if (GeneralHelper.isDefined(newVal.reference)) {\n currVal.setReference(newVal.reference._reference);\n }\n }\n else {\n setPropertyValue(_this.props.webpart.properties, propName, newProperties[propName]);\n }\n if (typeof _this.props.webpart.properties[propName].onChange !== 'undefined' && _this.props.webpart.properties[propName].onChange !== null) {\n _this.props.webpart.properties[propName].onChange(propName, newProperties[propName]);\n }\n }\n }\n _this.props.webpart.render();\n _this.props.webpart.context.propertyPane.refresh();\n _this.setState(function (current) { return (__assign(__assign({}, current), { openPanel: false })); });\n };\n /**\n * Called when the properties editor changes\n */\n _this.onChange = function (newValue, event) {\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: newValue })); });\n };\n /**\n * Called to open the editor panel\n */\n _this.onOpenPanel = function () {\n // Store the current code value\n _this.previousValue = JSON.stringify(_this.props.webpart.properties, null, '\\t');\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: _this.previousValue })); });\n _this.cancel = true;\n _this.setState({\n openPanel: true,\n });\n };\n /**\n * Close the panel\n */\n _this.onClosePanel = function () {\n _this.setState(function (crntState) {\n var newState = {\n openPanel: false,\n };\n // Check if the property has to be reset\n if (_this.cancel) {\n newState.propertiesJson = _this.previousValue;\n }\n return newState;\n });\n };\n /**\n * Called when clicking 'Download'\n */\n _this.onDownload = function () {\n var a = document.createElement(\"a\");\n document.body.appendChild(a);\n a.setAttribute(\"style\", \"display: none\");\n a.setAttribute(\"data-interception\", \"off\");\n var json = JSON.stringify(JSON.parse(_this.state.propertiesJson), null, '\\t'); // remove indentation\n var blob = new Blob([json], { type: \"octet/stream\" });\n var url = window.URL.createObjectURL(blob);\n a.href = url;\n a.download = \"webpartproperties.json\";\n a.click();\n window.URL.revokeObjectURL(url);\n };\n /**\n * Called when the changed event occurs on the file upload control\n */\n _this.onUpload = function () {\n if (_this.fileRef.files.length > 0 && _this.fileRef.files[0].type === \"application/json\") {\n var fileReader_1 = new FileReader();\n fileReader_1.readAsText(_this.fileRef.files[0]);\n fileReader_1.onload = function () {\n var jsonString = fileReader_1.result;\n var json = JSON.parse(jsonString); // normalize as an object\n jsonString = JSON.stringify(json, null, '\\t'); // and format as an indented string again\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: jsonString })); });\n };\n }\n else {\n alert(strings.JsonFileRequiredMessage);\n }\n };\n telemetry.track('PropertyWebPartInformation', {});\n _this.state = {\n propertiesJson: _this.getProperties(),\n errorMessage: undefined,\n };\n return _this;\n }\n PropertyPanePropertyEditorHost.prototype.render = function () {\n var _this = this;\n return (React.createElement(\"div\", null,\n React.createElement(DefaultButton, { onClick: this.onOpenPanel }, \"Edit Properties\"),\n React.createElement(Panel, { isOpen: this.state.openPanel, hasCloseButton: true, onDismiss: this.onClosePanel, isLightDismiss: true, type: PanelType.medium, headerText: \"Edit Raw Properties\", onRenderFooterContent: function () { return (React.createElement(\"div\", { className: styles.actions },\n React.createElement(\"div\", { className: \"ms-Grid\", dir: \"ltr\" },\n React.createElement(\"div\", { className: \"ms-Grid-row\" },\n React.createElement(\"div\", { className: \"ms-Grid-col ms-sm6 ms-md6 ms-lg6 ms-textAlignLeft\" },\n React.createElement(PrimaryButton, { iconProps: { iconName: 'Accept' }, text: strings.ApplyButtonLabel, value: strings.ApplyButtonLabel, onClick: _this.onSave }),\n React.createElement(DefaultButton, { iconProps: { iconName: 'Cancel' }, text: strings.CancelButtonLabel, value: strings.CancelButtonLabel, onClick: _this.onClosePanel })),\n React.createElement(\"div\", { className: \"ms-Grid-col ms-sm6 ms-md6 ms-lg6 ms-textAlignRight\" },\n React.createElement(DefaultButton, { color: \"ms-bgColor-themeLight\", iconProps: { iconName: 'Download' }, text: strings.ExportButtonLabel, value: strings.ExportButtonLabel, onClick: _this.onDownload }),\n React.createElement(\"input\", { type: \"file\", id: \"uploadwebpartjson\", ref: _this.setFileRef, style: { display: \"none\" }, onChange: _this.onUpload }),\n React.createElement(DefaultButton, { iconProps: { iconName: 'Upload' }, text: strings.ImportButtonLabel, value: strings.ImportButtonLabel, onClick: function () { _this.fileRef.click(); } })))))); } },\n React.createElement(AceEditor, { mode: 'ace/mode/json', theme: \"monokai\", onChange: this.onChange, value: this.state.propertiesJson, name: \"code-property-editor\", editorProps: { $blockScrolling: true } }))));\n };\n return PropertyPanePropertyEditorHost;\n}(React.Component));\nexport default PropertyPanePropertyEditorHost;\n"
172598
+ "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 __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport * as React from 'react';\nimport { Panel, PanelType } from 'office-ui-fabric-react/lib/Panel';\nimport { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/Button';\nimport AceEditor from 'react-ace';\nimport * as telemetry from '../../common/telemetry';\nimport styles from './PropertyPanePropertyEditorHost.module.scss';\nimport * as strings from 'PropertyControlStrings';\nimport { GeneralHelper, getPropertyValue, setPropertyValue } from '../../helpers/GeneralHelper';\nvar PropertyPanePropertyEditorHost = /** @class */ (function (_super) {\n __extends(PropertyPanePropertyEditorHost, _super);\n function PropertyPanePropertyEditorHost(props, state) {\n var _this = _super.call(this, props) || this;\n _this.cancel = true;\n _this.fileRef = null;\n _this.setFileRef = function (element) {\n _this.fileRef = element;\n };\n _this.getProperties = function () {\n var props = {};\n props = _this.props.webpart.properties;\n return JSON.stringify(props);\n };\n /**\n * Called when the save button gets clicked\n */\n _this.onSave = function () {\n var newProperties = JSON.parse(_this.state.propertiesJson);\n for (var propName in newProperties) {\n // Do not update dynamic data properties\n var currentValue = getPropertyValue(_this.props.webpart.properties, propName);\n if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.__type) === \"DynamicProperty\") {\n var currVal = currentValue;\n var newVal = newProperties[propName];\n if (GeneralHelper.isDefined(newVal.value)) {\n currVal.setValue(newVal.value);\n }\n if (GeneralHelper.isDefined(newVal.reference)) {\n currVal.setReference(newVal.reference._reference);\n }\n }\n else {\n setPropertyValue(_this.props.webpart.properties, propName, newProperties[propName]);\n }\n if (typeof _this.props.webpart.properties[propName].onChange !== 'undefined' && _this.props.webpart.properties[propName].onChange !== null) {\n _this.props.webpart.properties[propName].onChange(propName, newProperties[propName]);\n }\n }\n _this.props.webpart.render();\n _this.props.webpart.context.propertyPane.refresh();\n _this.setState(function (current) { return (__assign(__assign({}, current), { openPanel: false })); });\n };\n /**\n * Called when the properties editor changes\n */\n _this.onChange = function (newValue, event) {\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: newValue })); });\n };\n /**\n * Called to open the editor panel\n */\n _this.onOpenPanel = function () {\n // Store the current code value\n _this.previousValue = JSON.stringify(_this.props.webpart.properties, null, '\\t');\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: _this.previousValue })); });\n _this.cancel = true;\n _this.setState({\n openPanel: true,\n });\n };\n /**\n * Close the panel\n */\n _this.onClosePanel = function () {\n _this.setState(function (crntState) {\n var newState = {\n openPanel: false,\n };\n // Check if the property has to be reset\n if (_this.cancel) {\n newState.propertiesJson = _this.previousValue;\n }\n return newState;\n });\n };\n /**\n * Called when clicking 'Download'\n */\n _this.onDownload = function () {\n var a = document.createElement(\"a\");\n document.body.appendChild(a);\n a.setAttribute(\"style\", \"display: none\");\n a.setAttribute(\"data-interception\", \"off\");\n var json = JSON.stringify(JSON.parse(_this.state.propertiesJson), null, '\\t'); // remove indentation\n var blob = new Blob([json], { type: \"octet/stream\" });\n var url = window.URL.createObjectURL(blob);\n a.href = url;\n a.download = \"webpartproperties.json\";\n a.click();\n window.URL.revokeObjectURL(url);\n };\n /**\n * Called when the changed event occurs on the file upload control\n */\n _this.onUpload = function () {\n if (_this.fileRef.files.length > 0 && _this.fileRef.files[0].type === \"application/json\") {\n var fileReader_1 = new FileReader();\n fileReader_1.readAsText(_this.fileRef.files[0]);\n fileReader_1.onload = function () {\n var jsonString = fileReader_1.result;\n var json = JSON.parse(jsonString); // normalize as an object\n jsonString = JSON.stringify(json, null, '\\t'); // and format as an indented string again\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: jsonString })); });\n };\n }\n else {\n alert(strings.JsonFileRequiredMessage);\n }\n };\n telemetry.track('PropertyWebPartInformation', {});\n _this.state = {\n propertiesJson: _this.getProperties(),\n errorMessage: undefined,\n };\n return _this;\n }\n PropertyPanePropertyEditorHost.prototype.render = function () {\n var _this = this;\n return (React.createElement(\"div\", null,\n React.createElement(DefaultButton, { onClick: this.onOpenPanel }, \"Edit Properties\"),\n React.createElement(Panel, { isOpen: this.state.openPanel, hasCloseButton: true, onDismiss: this.onClosePanel, isLightDismiss: true, type: PanelType.medium, headerText: \"Edit Raw Properties\", onRenderFooterContent: function () { return (React.createElement(\"div\", { className: styles.actions },\n React.createElement(\"div\", { className: \"ms-Grid\", dir: \"ltr\" },\n React.createElement(\"div\", { className: \"ms-Grid-row\" },\n React.createElement(\"div\", { className: \"ms-Grid-col ms-sm6 ms-md6 ms-lg6 ms-textAlignLeft\" },\n React.createElement(PrimaryButton, { iconProps: { iconName: 'Accept' }, text: strings.ApplyButtonLabel, value: strings.ApplyButtonLabel, onClick: _this.onSave }),\n React.createElement(DefaultButton, { iconProps: { iconName: 'Cancel' }, text: strings.CancelButtonLabel, value: strings.CancelButtonLabel, onClick: _this.onClosePanel })),\n React.createElement(\"div\", { className: \"ms-Grid-col ms-sm6 ms-md6 ms-lg6 ms-textAlignRight\" },\n React.createElement(DefaultButton, { color: \"ms-bgColor-themeLight\", iconProps: { iconName: 'Download' }, text: strings.ExportButtonLabel, value: strings.ExportButtonLabel, onClick: _this.onDownload }),\n React.createElement(\"input\", { type: \"file\", id: \"uploadwebpartjson\", ref: _this.setFileRef, style: { display: \"none\" }, onChange: _this.onUpload }),\n React.createElement(DefaultButton, { iconProps: { iconName: 'Upload' }, text: strings.ImportButtonLabel, value: strings.ImportButtonLabel, onClick: function () { _this.fileRef.click(); } })))))); } },\n React.createElement(AceEditor, { mode: 'ace/mode/json', theme: \"monokai\", onChange: this.onChange, value: this.state.propertiesJson, name: \"code-property-editor\", editorProps: { $blockScrolling: true } }))));\n };\n return PropertyPanePropertyEditorHost;\n}(React.Component));\nexport default PropertyPanePropertyEditorHost;\n"
172599
172599
  },
172600
172600
  {
172601
172601
  "id": "lSCD",
@@ -173472,7 +173472,7 @@
173472
173472
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
173473
173473
  "type": "harmony import specifier",
173474
173474
  "userRequest": "react-ace",
173475
- "loc": "166:36-45"
173475
+ "loc": "164:36-45"
173476
173476
  }
173477
173477
  ],
173478
173478
  "providedExports": null,
@@ -176443,7 +176443,7 @@
176443
176443
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
176444
176444
  "type": "harmony import specifier",
176445
176445
  "userRequest": "office-ui-fabric-react/lib/Panel",
176446
- "loc": "156:32-37"
176446
+ "loc": "154:32-37"
176447
176447
  },
176448
176448
  {
176449
176449
  "moduleId": "lRyN",
@@ -176452,7 +176452,7 @@
176452
176452
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
176453
176453
  "type": "harmony import specifier",
176454
176454
  "userRequest": "office-ui-fabric-react/lib/Panel",
176455
- "loc": "156:151-160"
176455
+ "loc": "154:151-160"
176456
176456
  }
176457
176457
  ],
176458
176458
  "providedExports": [
@@ -200096,9 +200096,9 @@
200096
200096
  "chunks": [
200097
200097
  "property-controls-test-web-part"
200098
200098
  ],
200099
- "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isMap.js",
200100
- "issuerId": "zEVN",
200101
- "issuerName": "./node_modules/lodash/isMap.js",
200099
+ "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isSet.js",
200100
+ "issuerId": "1+5i",
200101
+ "issuerName": "./node_modules/lodash/isSet.js",
200102
200102
  "issuerPath": [
200103
200103
  {
200104
200104
  "id": "fd0V",
@@ -200131,9 +200131,9 @@
200131
200131
  "name": "./node_modules/lodash/_baseClone.js"
200132
200132
  },
200133
200133
  {
200134
- "id": "zEVN",
200135
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isMap.js",
200136
- "name": "./node_modules/lodash/isMap.js"
200134
+ "id": "1+5i",
200135
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isSet.js",
200136
+ "name": "./node_modules/lodash/isSet.js"
200137
200137
  }
200138
200138
  ],
200139
200139
  "failed": false,
@@ -203286,7 +203286,7 @@
203286
203286
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
203287
203287
  "type": "harmony import specifier",
203288
203288
  "userRequest": "./PropertyPanePropertyEditorHost.module.scss",
203289
- "loc": "156:289-295"
203289
+ "loc": "154:289-295"
203290
203290
  }
203291
203291
  ],
203292
203292
  "providedExports": [
@@ -217736,7 +217736,7 @@
217736
217736
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
217737
217737
  "type": "harmony import specifier",
217738
217738
  "userRequest": "../../helpers/GeneralHelper",
217739
- "loc": "59:28-41"
217739
+ "loc": "58:24-37"
217740
217740
  },
217741
217741
  {
217742
217742
  "moduleId": "lRyN",
@@ -217745,7 +217745,7 @@
217745
217745
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
217746
217746
  "type": "harmony import specifier",
217747
217747
  "userRequest": "../../helpers/GeneralHelper",
217748
- "loc": "62:28-41"
217748
+ "loc": "61:24-37"
217749
217749
  },
217750
217750
  {
217751
217751
  "moduleId": "lRyN",
@@ -217754,7 +217754,7 @@
217754
217754
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
217755
217755
  "type": "harmony import specifier",
217756
217756
  "userRequest": "../../helpers/GeneralHelper",
217757
- "loc": "67:24-40"
217757
+ "loc": "66:20-36"
217758
217758
  },
217759
217759
  {
217760
217760
  "moduleId": "mDP1",
@@ -218838,7 +218838,7 @@
218838
218838
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
218839
218839
  "type": "harmony import specifier",
218840
218840
  "userRequest": "../../common/telemetry",
218841
- "loc": "145:8-23"
218841
+ "loc": "143:8-23"
218842
218842
  },
218843
218843
  {
218844
218844
  "moduleId": "mDP1",
@@ -229291,7 +229291,7 @@
229291
229291
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
229292
229292
  "type": "harmony import specifier",
229293
229293
  "userRequest": "PropertyControlStrings",
229294
- "loc": "142:22-53"
229294
+ "loc": "140:22-53"
229295
229295
  },
229296
229296
  {
229297
229297
  "moduleId": "lRyN",
@@ -229300,7 +229300,7 @@
229300
229300
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
229301
229301
  "type": "harmony import specifier",
229302
229302
  "userRequest": "PropertyControlStrings",
229303
- "loc": "160:110-134"
229303
+ "loc": "158:110-134"
229304
229304
  },
229305
229305
  {
229306
229306
  "moduleId": "lRyN",
@@ -229309,7 +229309,7 @@
229309
229309
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
229310
229310
  "type": "harmony import specifier",
229311
229311
  "userRequest": "PropertyControlStrings",
229312
- "loc": "160:143-167"
229312
+ "loc": "158:143-167"
229313
229313
  },
229314
229314
  {
229315
229315
  "moduleId": "lRyN",
@@ -229318,7 +229318,7 @@
229318
229318
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
229319
229319
  "type": "harmony import specifier",
229320
229320
  "userRequest": "PropertyControlStrings",
229321
- "loc": "161:110-135"
229321
+ "loc": "159:110-135"
229322
229322
  },
229323
229323
  {
229324
229324
  "moduleId": "lRyN",
@@ -229327,7 +229327,7 @@
229327
229327
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
229328
229328
  "type": "harmony import specifier",
229329
229329
  "userRequest": "PropertyControlStrings",
229330
- "loc": "161:144-169"
229330
+ "loc": "159:144-169"
229331
229331
  },
229332
229332
  {
229333
229333
  "moduleId": "lRyN",
@@ -229336,7 +229336,7 @@
229336
229336
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
229337
229337
  "type": "harmony import specifier",
229338
229338
  "userRequest": "PropertyControlStrings",
229339
- "loc": "163:144-169"
229339
+ "loc": "161:144-169"
229340
229340
  },
229341
229341
  {
229342
229342
  "moduleId": "lRyN",
@@ -229345,7 +229345,7 @@
229345
229345
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
229346
229346
  "type": "harmony import specifier",
229347
229347
  "userRequest": "PropertyControlStrings",
229348
- "loc": "163:178-203"
229348
+ "loc": "161:178-203"
229349
229349
  },
229350
229350
  {
229351
229351
  "moduleId": "lRyN",
@@ -229354,7 +229354,7 @@
229354
229354
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
229355
229355
  "type": "harmony import specifier",
229356
229356
  "userRequest": "PropertyControlStrings",
229357
- "loc": "165:110-135"
229357
+ "loc": "163:110-135"
229358
229358
  },
229359
229359
  {
229360
229360
  "moduleId": "lRyN",
@@ -229363,7 +229363,7 @@
229363
229363
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
229364
229364
  "type": "harmony import specifier",
229365
229365
  "userRequest": "PropertyControlStrings",
229366
- "loc": "165:144-169"
229366
+ "loc": "163:144-169"
229367
229367
  },
229368
229368
  {
229369
229369
  "moduleId": "poVe",
@@ -249305,9 +249305,9 @@
249305
249305
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
249306
249306
  },
249307
249307
  {
249308
- "id": "uwFx",
249309
- "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",
249310
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
249308
+ "id": "j0ZI",
249309
+ "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",
249310
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
249311
249311
  },
249312
249312
  {
249313
249313
  "id": "bwCg",
@@ -261688,9 +261688,9 @@
261688
261688
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
261689
261689
  },
261690
261690
  {
261691
- "id": "uwFx",
261692
- "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",
261693
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
261691
+ "id": "j0ZI",
261692
+ "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",
261693
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
261694
261694
  },
261695
261695
  {
261696
261696
  "id": "bwCg",
@@ -274292,9 +274292,9 @@
274292
274292
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
274293
274293
  },
274294
274294
  {
274295
- "id": "uwFx",
274296
- "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",
274297
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
274295
+ "id": "j0ZI",
274296
+ "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",
274297
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
274298
274298
  },
274299
274299
  {
274300
274300
  "id": "bwCg",
@@ -281600,7 +281600,7 @@
281600
281600
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
281601
281601
  "type": "harmony import specifier",
281602
281602
  "userRequest": "office-ui-fabric-react/lib/Button",
281603
- "loc": "155:32-45"
281603
+ "loc": "153:32-45"
281604
281604
  },
281605
281605
  {
281606
281606
  "moduleId": "lRyN",
@@ -281609,7 +281609,7 @@
281609
281609
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
281610
281610
  "type": "harmony import specifier",
281611
281611
  "userRequest": "office-ui-fabric-react/lib/Button",
281612
- "loc": "160:52-65"
281612
+ "loc": "158:52-65"
281613
281613
  },
281614
281614
  {
281615
281615
  "moduleId": "lRyN",
@@ -281618,7 +281618,7 @@
281618
281618
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
281619
281619
  "type": "harmony import specifier",
281620
281620
  "userRequest": "office-ui-fabric-react/lib/Button",
281621
- "loc": "161:52-65"
281621
+ "loc": "159:52-65"
281622
281622
  },
281623
281623
  {
281624
281624
  "moduleId": "lRyN",
@@ -281627,7 +281627,7 @@
281627
281627
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
281628
281628
  "type": "harmony import specifier",
281629
281629
  "userRequest": "office-ui-fabric-react/lib/Button",
281630
- "loc": "163:52-65"
281630
+ "loc": "161:52-65"
281631
281631
  },
281632
281632
  {
281633
281633
  "moduleId": "lRyN",
@@ -281636,7 +281636,7 @@
281636
281636
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
281637
281637
  "type": "harmony import specifier",
281638
281638
  "userRequest": "office-ui-fabric-react/lib/Button",
281639
- "loc": "165:52-65"
281639
+ "loc": "163:52-65"
281640
281640
  },
281641
281641
  {
281642
281642
  "moduleId": "q7WZ",
@@ -290760,9 +290760,9 @@
290760
290760
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
290761
290761
  },
290762
290762
  {
290763
- "id": "uwFx",
290764
- "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",
290765
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
290763
+ "id": "j0ZI",
290764
+ "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",
290765
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
290766
290766
  },
290767
290767
  {
290768
290768
  "id": "bwCg",
@@ -294465,9 +294465,9 @@
294465
294465
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
294466
294466
  },
294467
294467
  {
294468
- "id": "uwFx",
294469
- "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",
294470
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
294468
+ "id": "j0ZI",
294469
+ "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",
294470
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
294471
294471
  },
294472
294472
  {
294473
294473
  "id": "bwCg",
@@ -343045,9 +343045,9 @@
343045
343045
  "chunks": [
343046
343046
  "property-controls-test-web-part"
343047
343047
  ],
343048
- "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/_nodeUtil.js",
343049
- "issuerId": "mdPL",
343050
- "issuerName": "./node_modules/lodash/_nodeUtil.js",
343048
+ "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/_root.js",
343049
+ "issuerId": "Kz5y",
343050
+ "issuerName": "./node_modules/lodash/_root.js",
343051
343051
  "issuerPath": [
343052
343052
  {
343053
343053
  "id": "fd0V",
@@ -343080,14 +343080,14 @@
343080
343080
  "name": "./node_modules/lodash/_baseClone.js"
343081
343081
  },
343082
343082
  {
343083
- "id": "1+5i",
343084
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isSet.js",
343085
- "name": "./node_modules/lodash/isSet.js"
343083
+ "id": "DSRE",
343084
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isBuffer.js",
343085
+ "name": "./node_modules/lodash/isBuffer.js"
343086
343086
  },
343087
343087
  {
343088
- "id": "mdPL",
343089
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/_nodeUtil.js",
343090
- "name": "./node_modules/lodash/_nodeUtil.js"
343088
+ "id": "Kz5y",
343089
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/_root.js",
343090
+ "name": "./node_modules/lodash/_root.js"
343091
343091
  }
343092
343092
  ],
343093
343093
  "failed": false,
@@ -357064,9 +357064,9 @@
357064
357064
  "chunks": [
357065
357065
  "property-controls-test-web-part"
357066
357066
  ],
357067
- "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",
357068
- "issuerId": "uwFx",
357069
- "issuerName": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js",
357067
+ "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",
357068
+ "issuerId": "j0ZI",
357069
+ "issuerName": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js",
357070
357070
  "issuerPath": [
357071
357071
  {
357072
357072
  "id": "fd0V",
@@ -357114,9 +357114,9 @@
357114
357114
  "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/index.js"
357115
357115
  },
357116
357116
  {
357117
- "id": "uwFx",
357118
- "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",
357119
- "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/useKeytipRef.js"
357117
+ "id": "j0ZI",
357118
+ "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",
357119
+ "name": "./node_modules/office-ui-fabric-react/lib/components/KeytipData/KeytipData.js"
357120
357120
  }
357121
357121
  ],
357122
357122
  "failed": false,
@@ -374716,7 +374716,7 @@
374716
374716
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374717
374717
  "type": "harmony import specifier",
374718
374718
  "userRequest": "react",
374719
- "loc": "154:16-35"
374719
+ "loc": "152:16-35"
374720
374720
  },
374721
374721
  {
374722
374722
  "moduleId": "lRyN",
@@ -374725,7 +374725,7 @@
374725
374725
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374726
374726
  "type": "harmony import specifier",
374727
374727
  "userRequest": "react",
374728
- "loc": "155:12-31"
374728
+ "loc": "153:12-31"
374729
374729
  },
374730
374730
  {
374731
374731
  "moduleId": "lRyN",
@@ -374734,7 +374734,7 @@
374734
374734
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374735
374735
  "type": "harmony import specifier",
374736
374736
  "userRequest": "react",
374737
- "loc": "156:12-31"
374737
+ "loc": "154:12-31"
374738
374738
  },
374739
374739
  {
374740
374740
  "moduleId": "lRyN",
@@ -374743,7 +374743,7 @@
374743
374743
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374744
374744
  "type": "harmony import specifier",
374745
374745
  "userRequest": "react",
374746
- "loc": "156:249-268"
374746
+ "loc": "154:249-268"
374747
374747
  },
374748
374748
  {
374749
374749
  "moduleId": "lRyN",
@@ -374752,7 +374752,7 @@
374752
374752
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374753
374753
  "type": "harmony import specifier",
374754
374754
  "userRequest": "react",
374755
- "loc": "157:20-39"
374755
+ "loc": "155:20-39"
374756
374756
  },
374757
374757
  {
374758
374758
  "moduleId": "lRyN",
@@ -374761,7 +374761,7 @@
374761
374761
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374762
374762
  "type": "harmony import specifier",
374763
374763
  "userRequest": "react",
374764
- "loc": "158:24-43"
374764
+ "loc": "156:24-43"
374765
374765
  },
374766
374766
  {
374767
374767
  "moduleId": "lRyN",
@@ -374770,7 +374770,7 @@
374770
374770
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374771
374771
  "type": "harmony import specifier",
374772
374772
  "userRequest": "react",
374773
- "loc": "159:28-47"
374773
+ "loc": "157:28-47"
374774
374774
  },
374775
374775
  {
374776
374776
  "moduleId": "lRyN",
@@ -374779,7 +374779,7 @@
374779
374779
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374780
374780
  "type": "harmony import specifier",
374781
374781
  "userRequest": "react",
374782
- "loc": "160:32-51"
374782
+ "loc": "158:32-51"
374783
374783
  },
374784
374784
  {
374785
374785
  "moduleId": "lRyN",
@@ -374788,7 +374788,7 @@
374788
374788
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374789
374789
  "type": "harmony import specifier",
374790
374790
  "userRequest": "react",
374791
- "loc": "161:32-51"
374791
+ "loc": "159:32-51"
374792
374792
  },
374793
374793
  {
374794
374794
  "moduleId": "lRyN",
@@ -374797,7 +374797,7 @@
374797
374797
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374798
374798
  "type": "harmony import specifier",
374799
374799
  "userRequest": "react",
374800
- "loc": "162:28-47"
374800
+ "loc": "160:28-47"
374801
374801
  },
374802
374802
  {
374803
374803
  "moduleId": "lRyN",
@@ -374806,7 +374806,7 @@
374806
374806
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374807
374807
  "type": "harmony import specifier",
374808
374808
  "userRequest": "react",
374809
- "loc": "163:32-51"
374809
+ "loc": "161:32-51"
374810
374810
  },
374811
374811
  {
374812
374812
  "moduleId": "lRyN",
@@ -374815,7 +374815,7 @@
374815
374815
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374816
374816
  "type": "harmony import specifier",
374817
374817
  "userRequest": "react",
374818
- "loc": "164:32-51"
374818
+ "loc": "162:32-51"
374819
374819
  },
374820
374820
  {
374821
374821
  "moduleId": "lRyN",
@@ -374824,7 +374824,7 @@
374824
374824
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374825
374825
  "type": "harmony import specifier",
374826
374826
  "userRequest": "react",
374827
- "loc": "165:32-51"
374827
+ "loc": "163:32-51"
374828
374828
  },
374829
374829
  {
374830
374830
  "moduleId": "lRyN",
@@ -374833,7 +374833,7 @@
374833
374833
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374834
374834
  "type": "harmony import specifier",
374835
374835
  "userRequest": "react",
374836
- "loc": "166:16-35"
374836
+ "loc": "164:16-35"
374837
374837
  },
374838
374838
  {
374839
374839
  "moduleId": "lRyN",
@@ -374842,7 +374842,7 @@
374842
374842
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
374843
374843
  "type": "harmony import specifier",
374844
374844
  "userRequest": "react",
374845
- "loc": "169:2-17"
374845
+ "loc": "167:2-17"
374846
374846
  },
374847
374847
  {
374848
374848
  "moduleId": "lfyH",
@@ -379951,7 +379951,7 @@
379951
379951
  ],
379952
379952
  "optimizationBailout": [],
379953
379953
  "depth": 4,
379954
- "source": "export var version = \"3.3.0-beta.1412924\";\n"
379954
+ "source": "export var version = \"3.3.0-beta.1439700\";\n"
379955
379955
  },
379956
379956
  {
379957
379957
  "id": "cLrF",
@@ -402572,7 +402572,7 @@
402572
402572
  "name": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
402573
402573
  "index": 897,
402574
402574
  "index2": 898,
402575
- "size": 9138,
402575
+ "size": 9082,
402576
402576
  "cacheable": true,
402577
402577
  "built": true,
402578
402578
  "optional": false,
@@ -402624,7 +402624,7 @@
402624
402624
  ],
402625
402625
  "optimizationBailout": [],
402626
402626
  "depth": 2,
402627
- "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 __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport * as React from 'react';\nimport { Panel, PanelType } from 'office-ui-fabric-react/lib/Panel';\nimport { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/Button';\nimport AceEditor from 'react-ace';\nimport * as telemetry from '../../common/telemetry';\nimport styles from './PropertyPanePropertyEditorHost.module.scss';\nimport * as strings from 'PropertyControlStrings';\nimport { GeneralHelper, getPropertyValue, setPropertyValue } from '../../helpers/GeneralHelper';\nvar PropertyPanePropertyEditorHost = /** @class */ (function (_super) {\n __extends(PropertyPanePropertyEditorHost, _super);\n function PropertyPanePropertyEditorHost(props, state) {\n var _this = _super.call(this, props) || this;\n _this.cancel = true;\n _this.fileRef = null;\n _this.setFileRef = function (element) {\n _this.fileRef = element;\n };\n _this.getProperties = function () {\n var props = {};\n props = _this.props.webpart.properties;\n return JSON.stringify(props);\n };\n /**\n * Called when the save button gets clicked\n */\n _this.onSave = function () {\n var newProperties = JSON.parse(_this.state.propertiesJson);\n for (var propName in newProperties) {\n // Do not update dynamic data properties\n var currentValue = getPropertyValue(_this.props.webpart.properties, propName);\n if (currentValue) {\n if (currentValue.__type === \"DynamicProperty\") {\n var currVal = currentValue;\n var newVal = newProperties[propName];\n if (GeneralHelper.isDefined(newVal.value)) {\n currVal.setValue(newVal.value);\n }\n if (GeneralHelper.isDefined(newVal.reference)) {\n currVal.setReference(newVal.reference._reference);\n }\n }\n else {\n setPropertyValue(_this.props.webpart.properties, propName, newProperties[propName]);\n }\n if (typeof _this.props.webpart.properties[propName].onChange !== 'undefined' && _this.props.webpart.properties[propName].onChange !== null) {\n _this.props.webpart.properties[propName].onChange(propName, newProperties[propName]);\n }\n }\n }\n _this.props.webpart.render();\n _this.props.webpart.context.propertyPane.refresh();\n _this.setState(function (current) { return (__assign(__assign({}, current), { openPanel: false })); });\n };\n /**\n * Called when the properties editor changes\n */\n _this.onChange = function (newValue, event) {\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: newValue })); });\n };\n /**\n * Called to open the editor panel\n */\n _this.onOpenPanel = function () {\n // Store the current code value\n _this.previousValue = JSON.stringify(_this.props.webpart.properties, null, '\\t');\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: _this.previousValue })); });\n _this.cancel = true;\n _this.setState({\n openPanel: true,\n });\n };\n /**\n * Close the panel\n */\n _this.onClosePanel = function () {\n _this.setState(function (crntState) {\n var newState = {\n openPanel: false,\n };\n // Check if the property has to be reset\n if (_this.cancel) {\n newState.propertiesJson = _this.previousValue;\n }\n return newState;\n });\n };\n /**\n * Called when clicking 'Download'\n */\n _this.onDownload = function () {\n var a = document.createElement(\"a\");\n document.body.appendChild(a);\n a.setAttribute(\"style\", \"display: none\");\n a.setAttribute(\"data-interception\", \"off\");\n var json = JSON.stringify(JSON.parse(_this.state.propertiesJson), null, '\\t'); // remove indentation\n var blob = new Blob([json], { type: \"octet/stream\" });\n var url = window.URL.createObjectURL(blob);\n a.href = url;\n a.download = \"webpartproperties.json\";\n a.click();\n window.URL.revokeObjectURL(url);\n };\n /**\n * Called when the changed event occurs on the file upload control\n */\n _this.onUpload = function () {\n if (_this.fileRef.files.length > 0 && _this.fileRef.files[0].type === \"application/json\") {\n var fileReader_1 = new FileReader();\n fileReader_1.readAsText(_this.fileRef.files[0]);\n fileReader_1.onload = function () {\n var jsonString = fileReader_1.result;\n var json = JSON.parse(jsonString); // normalize as an object\n jsonString = JSON.stringify(json, null, '\\t'); // and format as an indented string again\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: jsonString })); });\n };\n }\n else {\n alert(strings.JsonFileRequiredMessage);\n }\n };\n telemetry.track('PropertyWebPartInformation', {});\n _this.state = {\n propertiesJson: _this.getProperties(),\n errorMessage: undefined,\n };\n return _this;\n }\n PropertyPanePropertyEditorHost.prototype.render = function () {\n var _this = this;\n return (React.createElement(\"div\", null,\n React.createElement(DefaultButton, { onClick: this.onOpenPanel }, \"Edit Properties\"),\n React.createElement(Panel, { isOpen: this.state.openPanel, hasCloseButton: true, onDismiss: this.onClosePanel, isLightDismiss: true, type: PanelType.medium, headerText: \"Edit Raw Properties\", onRenderFooterContent: function () { return (React.createElement(\"div\", { className: styles.actions },\n React.createElement(\"div\", { className: \"ms-Grid\", dir: \"ltr\" },\n React.createElement(\"div\", { className: \"ms-Grid-row\" },\n React.createElement(\"div\", { className: \"ms-Grid-col ms-sm6 ms-md6 ms-lg6 ms-textAlignLeft\" },\n React.createElement(PrimaryButton, { iconProps: { iconName: 'Accept' }, text: strings.ApplyButtonLabel, value: strings.ApplyButtonLabel, onClick: _this.onSave }),\n React.createElement(DefaultButton, { iconProps: { iconName: 'Cancel' }, text: strings.CancelButtonLabel, value: strings.CancelButtonLabel, onClick: _this.onClosePanel })),\n React.createElement(\"div\", { className: \"ms-Grid-col ms-sm6 ms-md6 ms-lg6 ms-textAlignRight\" },\n React.createElement(DefaultButton, { color: \"ms-bgColor-themeLight\", iconProps: { iconName: 'Download' }, text: strings.ExportButtonLabel, value: strings.ExportButtonLabel, onClick: _this.onDownload }),\n React.createElement(\"input\", { type: \"file\", id: \"uploadwebpartjson\", ref: _this.setFileRef, style: { display: \"none\" }, onChange: _this.onUpload }),\n React.createElement(DefaultButton, { iconProps: { iconName: 'Upload' }, text: strings.ImportButtonLabel, value: strings.ImportButtonLabel, onClick: function () { _this.fileRef.click(); } })))))); } },\n React.createElement(AceEditor, { mode: 'ace/mode/json', theme: \"monokai\", onChange: this.onChange, value: this.state.propertiesJson, name: \"code-property-editor\", editorProps: { $blockScrolling: true } }))));\n };\n return PropertyPanePropertyEditorHost;\n}(React.Component));\nexport default PropertyPanePropertyEditorHost;\n"
402627
+ "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 __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport * as React from 'react';\nimport { Panel, PanelType } from 'office-ui-fabric-react/lib/Panel';\nimport { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/Button';\nimport AceEditor from 'react-ace';\nimport * as telemetry from '../../common/telemetry';\nimport styles from './PropertyPanePropertyEditorHost.module.scss';\nimport * as strings from 'PropertyControlStrings';\nimport { GeneralHelper, getPropertyValue, setPropertyValue } from '../../helpers/GeneralHelper';\nvar PropertyPanePropertyEditorHost = /** @class */ (function (_super) {\n __extends(PropertyPanePropertyEditorHost, _super);\n function PropertyPanePropertyEditorHost(props, state) {\n var _this = _super.call(this, props) || this;\n _this.cancel = true;\n _this.fileRef = null;\n _this.setFileRef = function (element) {\n _this.fileRef = element;\n };\n _this.getProperties = function () {\n var props = {};\n props = _this.props.webpart.properties;\n return JSON.stringify(props);\n };\n /**\n * Called when the save button gets clicked\n */\n _this.onSave = function () {\n var newProperties = JSON.parse(_this.state.propertiesJson);\n for (var propName in newProperties) {\n // Do not update dynamic data properties\n var currentValue = getPropertyValue(_this.props.webpart.properties, propName);\n if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.__type) === \"DynamicProperty\") {\n var currVal = currentValue;\n var newVal = newProperties[propName];\n if (GeneralHelper.isDefined(newVal.value)) {\n currVal.setValue(newVal.value);\n }\n if (GeneralHelper.isDefined(newVal.reference)) {\n currVal.setReference(newVal.reference._reference);\n }\n }\n else {\n setPropertyValue(_this.props.webpart.properties, propName, newProperties[propName]);\n }\n if (typeof _this.props.webpart.properties[propName].onChange !== 'undefined' && _this.props.webpart.properties[propName].onChange !== null) {\n _this.props.webpart.properties[propName].onChange(propName, newProperties[propName]);\n }\n }\n _this.props.webpart.render();\n _this.props.webpart.context.propertyPane.refresh();\n _this.setState(function (current) { return (__assign(__assign({}, current), { openPanel: false })); });\n };\n /**\n * Called when the properties editor changes\n */\n _this.onChange = function (newValue, event) {\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: newValue })); });\n };\n /**\n * Called to open the editor panel\n */\n _this.onOpenPanel = function () {\n // Store the current code value\n _this.previousValue = JSON.stringify(_this.props.webpart.properties, null, '\\t');\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: _this.previousValue })); });\n _this.cancel = true;\n _this.setState({\n openPanel: true,\n });\n };\n /**\n * Close the panel\n */\n _this.onClosePanel = function () {\n _this.setState(function (crntState) {\n var newState = {\n openPanel: false,\n };\n // Check if the property has to be reset\n if (_this.cancel) {\n newState.propertiesJson = _this.previousValue;\n }\n return newState;\n });\n };\n /**\n * Called when clicking 'Download'\n */\n _this.onDownload = function () {\n var a = document.createElement(\"a\");\n document.body.appendChild(a);\n a.setAttribute(\"style\", \"display: none\");\n a.setAttribute(\"data-interception\", \"off\");\n var json = JSON.stringify(JSON.parse(_this.state.propertiesJson), null, '\\t'); // remove indentation\n var blob = new Blob([json], { type: \"octet/stream\" });\n var url = window.URL.createObjectURL(blob);\n a.href = url;\n a.download = \"webpartproperties.json\";\n a.click();\n window.URL.revokeObjectURL(url);\n };\n /**\n * Called when the changed event occurs on the file upload control\n */\n _this.onUpload = function () {\n if (_this.fileRef.files.length > 0 && _this.fileRef.files[0].type === \"application/json\") {\n var fileReader_1 = new FileReader();\n fileReader_1.readAsText(_this.fileRef.files[0]);\n fileReader_1.onload = function () {\n var jsonString = fileReader_1.result;\n var json = JSON.parse(jsonString); // normalize as an object\n jsonString = JSON.stringify(json, null, '\\t'); // and format as an indented string again\n _this.setState(function (current) { return (__assign(__assign({}, current), { propertiesJson: jsonString })); });\n };\n }\n else {\n alert(strings.JsonFileRequiredMessage);\n }\n };\n telemetry.track('PropertyWebPartInformation', {});\n _this.state = {\n propertiesJson: _this.getProperties(),\n errorMessage: undefined,\n };\n return _this;\n }\n PropertyPanePropertyEditorHost.prototype.render = function () {\n var _this = this;\n return (React.createElement(\"div\", null,\n React.createElement(DefaultButton, { onClick: this.onOpenPanel }, \"Edit Properties\"),\n React.createElement(Panel, { isOpen: this.state.openPanel, hasCloseButton: true, onDismiss: this.onClosePanel, isLightDismiss: true, type: PanelType.medium, headerText: \"Edit Raw Properties\", onRenderFooterContent: function () { return (React.createElement(\"div\", { className: styles.actions },\n React.createElement(\"div\", { className: \"ms-Grid\", dir: \"ltr\" },\n React.createElement(\"div\", { className: \"ms-Grid-row\" },\n React.createElement(\"div\", { className: \"ms-Grid-col ms-sm6 ms-md6 ms-lg6 ms-textAlignLeft\" },\n React.createElement(PrimaryButton, { iconProps: { iconName: 'Accept' }, text: strings.ApplyButtonLabel, value: strings.ApplyButtonLabel, onClick: _this.onSave }),\n React.createElement(DefaultButton, { iconProps: { iconName: 'Cancel' }, text: strings.CancelButtonLabel, value: strings.CancelButtonLabel, onClick: _this.onClosePanel })),\n React.createElement(\"div\", { className: \"ms-Grid-col ms-sm6 ms-md6 ms-lg6 ms-textAlignRight\" },\n React.createElement(DefaultButton, { color: \"ms-bgColor-themeLight\", iconProps: { iconName: 'Download' }, text: strings.ExportButtonLabel, value: strings.ExportButtonLabel, onClick: _this.onDownload }),\n React.createElement(\"input\", { type: \"file\", id: \"uploadwebpartjson\", ref: _this.setFileRef, style: { display: \"none\" }, onChange: _this.onUpload }),\n React.createElement(DefaultButton, { iconProps: { iconName: 'Upload' }, text: strings.ImportButtonLabel, value: strings.ImportButtonLabel, onClick: function () { _this.fileRef.click(); } })))))); } },\n React.createElement(AceEditor, { mode: 'ace/mode/json', theme: \"monokai\", onChange: this.onChange, value: this.state.propertiesJson, name: \"code-property-editor\", editorProps: { $blockScrolling: true } }))));\n };\n return PropertyPanePropertyEditorHost;\n}(React.Component));\nexport default PropertyPanePropertyEditorHost;\n"
402628
402628
  },
402629
402629
  {
402630
402630
  "id": "lSCD",
@@ -403501,7 +403501,7 @@
403501
403501
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
403502
403502
  "type": "harmony import specifier",
403503
403503
  "userRequest": "react-ace",
403504
- "loc": "166:36-45"
403504
+ "loc": "164:36-45"
403505
403505
  }
403506
403506
  ],
403507
403507
  "providedExports": null,
@@ -406472,7 +406472,7 @@
406472
406472
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
406473
406473
  "type": "harmony import specifier",
406474
406474
  "userRequest": "office-ui-fabric-react/lib/Panel",
406475
- "loc": "156:32-37"
406475
+ "loc": "154:32-37"
406476
406476
  },
406477
406477
  {
406478
406478
  "moduleId": "lRyN",
@@ -406481,7 +406481,7 @@
406481
406481
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
406482
406482
  "type": "harmony import specifier",
406483
406483
  "userRequest": "office-ui-fabric-react/lib/Panel",
406484
- "loc": "156:151-160"
406484
+ "loc": "154:151-160"
406485
406485
  }
406486
406486
  ],
406487
406487
  "providedExports": [
@@ -430125,9 +430125,9 @@
430125
430125
  "chunks": [
430126
430126
  "property-controls-test-web-part"
430127
430127
  ],
430128
- "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isMap.js",
430129
- "issuerId": "zEVN",
430130
- "issuerName": "./node_modules/lodash/isMap.js",
430128
+ "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isSet.js",
430129
+ "issuerId": "1+5i",
430130
+ "issuerName": "./node_modules/lodash/isSet.js",
430131
430131
  "issuerPath": [
430132
430132
  {
430133
430133
  "id": "fd0V",
@@ -430160,9 +430160,9 @@
430160
430160
  "name": "./node_modules/lodash/_baseClone.js"
430161
430161
  },
430162
430162
  {
430163
- "id": "zEVN",
430164
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isMap.js",
430165
- "name": "./node_modules/lodash/isMap.js"
430163
+ "id": "1+5i",
430164
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/lodash/isSet.js",
430165
+ "name": "./node_modules/lodash/isSet.js"
430166
430166
  }
430167
430167
  ],
430168
430168
  "failed": false,
@@ -433315,7 +433315,7 @@
433315
433315
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
433316
433316
  "type": "harmony import specifier",
433317
433317
  "userRequest": "./PropertyPanePropertyEditorHost.module.scss",
433318
- "loc": "156:289-295"
433318
+ "loc": "154:289-295"
433319
433319
  }
433320
433320
  ],
433321
433321
  "providedExports": [
@@ -447765,7 +447765,7 @@
447765
447765
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
447766
447766
  "type": "harmony import specifier",
447767
447767
  "userRequest": "../../helpers/GeneralHelper",
447768
- "loc": "59:28-41"
447768
+ "loc": "58:24-37"
447769
447769
  },
447770
447770
  {
447771
447771
  "moduleId": "lRyN",
@@ -447774,7 +447774,7 @@
447774
447774
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
447775
447775
  "type": "harmony import specifier",
447776
447776
  "userRequest": "../../helpers/GeneralHelper",
447777
- "loc": "62:28-41"
447777
+ "loc": "61:24-37"
447778
447778
  },
447779
447779
  {
447780
447780
  "moduleId": "lRyN",
@@ -447783,7 +447783,7 @@
447783
447783
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
447784
447784
  "type": "harmony import specifier",
447785
447785
  "userRequest": "../../helpers/GeneralHelper",
447786
- "loc": "67:24-40"
447786
+ "loc": "66:20-36"
447787
447787
  },
447788
447788
  {
447789
447789
  "moduleId": "mDP1",
@@ -448867,7 +448867,7 @@
448867
448867
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
448868
448868
  "type": "harmony import specifier",
448869
448869
  "userRequest": "../../common/telemetry",
448870
- "loc": "145:8-23"
448870
+ "loc": "143:8-23"
448871
448871
  },
448872
448872
  {
448873
448873
  "moduleId": "mDP1",
@@ -459320,7 +459320,7 @@
459320
459320
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
459321
459321
  "type": "harmony import specifier",
459322
459322
  "userRequest": "PropertyControlStrings",
459323
- "loc": "142:22-53"
459323
+ "loc": "140:22-53"
459324
459324
  },
459325
459325
  {
459326
459326
  "moduleId": "lRyN",
@@ -459329,7 +459329,7 @@
459329
459329
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
459330
459330
  "type": "harmony import specifier",
459331
459331
  "userRequest": "PropertyControlStrings",
459332
- "loc": "160:110-134"
459332
+ "loc": "158:110-134"
459333
459333
  },
459334
459334
  {
459335
459335
  "moduleId": "lRyN",
@@ -459338,7 +459338,7 @@
459338
459338
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
459339
459339
  "type": "harmony import specifier",
459340
459340
  "userRequest": "PropertyControlStrings",
459341
- "loc": "160:143-167"
459341
+ "loc": "158:143-167"
459342
459342
  },
459343
459343
  {
459344
459344
  "moduleId": "lRyN",
@@ -459347,7 +459347,7 @@
459347
459347
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
459348
459348
  "type": "harmony import specifier",
459349
459349
  "userRequest": "PropertyControlStrings",
459350
- "loc": "161:110-135"
459350
+ "loc": "159:110-135"
459351
459351
  },
459352
459352
  {
459353
459353
  "moduleId": "lRyN",
@@ -459356,7 +459356,7 @@
459356
459356
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
459357
459357
  "type": "harmony import specifier",
459358
459358
  "userRequest": "PropertyControlStrings",
459359
- "loc": "161:144-169"
459359
+ "loc": "159:144-169"
459360
459360
  },
459361
459361
  {
459362
459362
  "moduleId": "lRyN",
@@ -459365,7 +459365,7 @@
459365
459365
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
459366
459366
  "type": "harmony import specifier",
459367
459367
  "userRequest": "PropertyControlStrings",
459368
- "loc": "163:144-169"
459368
+ "loc": "161:144-169"
459369
459369
  },
459370
459370
  {
459371
459371
  "moduleId": "lRyN",
@@ -459374,7 +459374,7 @@
459374
459374
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
459375
459375
  "type": "harmony import specifier",
459376
459376
  "userRequest": "PropertyControlStrings",
459377
- "loc": "163:178-203"
459377
+ "loc": "161:178-203"
459378
459378
  },
459379
459379
  {
459380
459380
  "moduleId": "lRyN",
@@ -459383,7 +459383,7 @@
459383
459383
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
459384
459384
  "type": "harmony import specifier",
459385
459385
  "userRequest": "PropertyControlStrings",
459386
- "loc": "165:110-135"
459386
+ "loc": "163:110-135"
459387
459387
  },
459388
459388
  {
459389
459389
  "moduleId": "lRyN",
@@ -459392,7 +459392,7 @@
459392
459392
  "moduleName": "./lib/propertyFields/propertyEditor/PropertyPanePropertyEditorHost.js",
459393
459393
  "type": "harmony import specifier",
459394
459394
  "userRequest": "PropertyControlStrings",
459395
- "loc": "165:144-169"
459395
+ "loc": "163:144-169"
459396
459396
  },
459397
459397
  {
459398
459398
  "moduleId": "poVe",