@pnp/spfx-property-controls 3.8.0-beta.2337140 → 3.8.0-beta.2598276

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -7,11 +7,18 @@
7
7
  "Localizations for en-gb [#454](https://github.com/pnp/sp-dev-fx-property-controls/pull/454)"
8
8
  ],
9
9
  "enhancements": [
10
- "`PropertyFieldSitePicker`: Site Picker search for any input string [#386](https://github.com/pnp/sp-dev-fx-property-controls/pull/386)"
10
+ "`PropertyFieldSitePicker`: Site Picker search for any input string [#386](https://github.com/pnp/sp-dev-fx-property-controls/pull/386)",
11
+ "`fast-serve`: bump support to 1.14.0 [#386](https://github.com/pnp/sp-dev-fx-property-controls/pull/386)"
11
12
  ],
12
- "fixes": []
13
+ "fixes": [
14
+ "`PropertyFieldListPicker`: Remove debugger [#455](https://github.com/pnp/sp-dev-fx-property-controls/pull/455)",
15
+ "`PropertyFieldCollectionData`: Add button is invisible on a root site [#462](https://github.com/pnp/sp-dev-fx-property-controls/pull/462)"
16
+ ]
13
17
  },
14
18
  "contributions": [
19
+ "[Gautam Sheth](https://github.com/gautamdsheth)",
20
+ "[Jasey Waegebaert](https://github.com/Jwaegebaert)",
21
+ "[Markus Langer](https://github.com/MarkusLanger)",
15
22
  "[Milan Holemans](https://github.com/milanholemans)",
16
23
  "[Peter Cox](https://github.com/PeterWCox)"
17
24
  ]
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  ## 3.8.0
4
4
 
5
+ ### New control(s)
6
+
7
+ - Localizations for en-gb [#454](https://github.com/pnp/sp-dev-fx-property-controls/pull/454)
8
+
9
+ ### Enhancements
10
+
11
+ - `PropertyFieldSitePicker`: Site Picker search for any input string [#386](https://github.com/pnp/sp-dev-fx-property-controls/pull/386)
12
+ - `fast-serve`: bump support to 1.14.0 [#386](https://github.com/pnp/sp-dev-fx-property-controls/pull/386)
13
+
14
+ ### Fixes
15
+
16
+ - `PropertyFieldListPicker`: Remove debugger [#455](https://github.com/pnp/sp-dev-fx-property-controls/pull/455)
17
+ - `PropertyFieldCollectionData`: Add button is invisible on a root site [#462](https://github.com/pnp/sp-dev-fx-property-controls/pull/462)
18
+
19
+ ### Contributors
20
+
21
+ Special thanks to our contributors (in alphabetical order): [Gautam Sheth](https://github.com/gautamdsheth), [Jasey Waegebaert](https://github.com/Jwaegebaert), [Markus Langer](https://github.com/MarkusLanger), [Milan Holemans](https://github.com/milanholemans), [Peter Cox](https://github.com/PeterWCox).
22
+
5
23
  ## 3.7.0
6
24
 
7
25
  ### Enhancements
@@ -1,2 +1,2 @@
1
- export var version = "3.8.0-beta.2337140";
1
+ export var version = "3.8.0-beta.2598276";
2
2
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- .collectionData_836ee970{background-color:#edebe9;padding:10px}.noCollectionData_836ee970{text-align:center}.panelActions_836ee970{margin-top:15px;text-align:right}.panelActions_836ee970 button{margin-right:15px}.panelActions_836ee970 button:last-child{margin-right:0}.required_836ee970{color:#d83b01;font-size:8px;vertical-align:super}.addBtn_836ee970{color:#0078d4}.inputField_836ee970{color:inherit}.numberField_836ee970{box-sizing:border-box;box-shadow:none;margin:0;padding:0;border:1px solid #a19f9d;background:#fff;height:32px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;position:relative}.numberField_836ee970:hover{border-color:#201f1e}.numberField_836ee970 input{box-sizing:border-box;box-shadow:none;margin:0;font-size:14px;border-radius:0;border:none;background:0 0;color:#323130;padding:0 12px 0 12px;width:100%;text-overflow:ellipsis;outline:0}.numberField_836ee970.invalidField_836ee970{border-color:#a80000}.iconField_836ee970{position:relative}.iconField_836ee970 i{font-size:20px;position:absolute;top:0;right:10px;vertical-align:top}.iconPicker_836ee970{display:-ms-flexbox;display:flex}.iconPicker_836ee970 .requiredField_836ee970{vertical-align:super;display:inline-block}.colorField_836ee970{position:relative}.colorField_836ee970 .colorIndicator_836ee970{width:30px;height:30px;border:1px solid #a6a6a6}.collectionDataField_836ee970>span{display:none}.collectionDataField_836ee970 div[class^=invalid_]{border-color:#a80000!important}.table_836ee970{display:table;width:100%;border-collapse:collapse}.tableRow_836ee970{display:table-row;line-height:30px}.tableRow_836ee970:hover{background-color:#f3f2f1;cursor:pointer;outline:1px solid transparent}.tableRow_836ee970.tableFooter_836ee970{background-color:#edebe9;border-top:1px solid #a19f9d}.tableCell_836ee970{display:table-cell;padding:0 10px;vertical-align:middle}.tableCell_836ee970>div{margin-bottom:8px;margin-top:8px}.tableCell_836ee970>div.ms-TextField{margin-bottom:8px;margin-top:8px}.errorCallout_836ee970{padding:0 15px;min-width:200px}.errorCalloutLink_836ee970:not([disabled]){color:#a80000}.errorMsgs_836ee970{font-size:14px;font-weight:400}.errorMsgs_836ee970 p{font-size:17px;font-weight:300}.errorMsgs_836ee970 ul{padding-left:15px}.errorMsgs_836ee970 li{color:#a80000}.tableHead_836ee970{font-weight:300;font-size:12px;color:#605e5c}.tableHead_836ee970 .tableCell_836ee970{font-weight:400;text-align:left;border-bottom:1px solid #a19f9d}
2
- /*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbGU6Ly8vaG9tZS9ydW5uZXIvd29yay9zcC1kZXYtZngtcHJvcGVydHktY29udHJvbHMvc3AtZGV2LWZ4LXByb3BlcnR5LWNvbnRyb2xzL3NyYy9wcm9wZXJ0eUZpZWxkcy9jb2xsZWN0aW9uRGF0YS9Qcm9wZXJ0eUZpZWxkQ29sbGVjdGlvbkRhdGFIb3N0Lm1vZHVsZS5zY3NzIiwiZmlsZTovLy9ob21lL3J1bm5lci93b3JrL3NwLWRldi1meC1wcm9wZXJ0eS1jb250cm9scy9zcC1kZXYtZngtcHJvcGVydHktY29udHJvbHMvbm9kZV9tb2R1bGVzL29mZmljZS11aS1mYWJyaWMtcmVhY3QvZGlzdC9zYXNzL21peGlucy9fRm9ud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rQkFNSixnQkFDRSxRQUFBLE1BQ0EsTUFBQSxLQUNBLGdCQUFBLFNBR0YsbUJBQ0UsUUFBQSxVQUNBLFlBQUEsS0FFQSx5QkFDRSxpQkFBQSxRQUNBLE9BQUEsUUFDQSxRQUFBLElBQUEsTUFBQSxZQUdGLHdDQUNFLGlCQUFBLFFBQ0EsV0FBQSxJQUFBLE1BQUEsUUFJSixvQkFDRSxRQUFBLFdBQ0EsUUFBQSxFQUFBLEtBQ0EsZUFBQSxPQUVBLHdCQUNFLGNBQUEsSUFDQSxXQUFBLElBSUEscUNBQ0UsY0FBQSxJQUNBLFdBQUEsSUFLTix1QkFDRSxRQUFBLEVBQUEsS0FDQSxVQUFBLE1BR0YsMkNBQ0UsTUFBQSxRQUdGLG9CQ2hJRSxVQUFBLEtBQ0EsWUFBQSxJRGtJQSxzQkMvSUEsVUFBQSxLQUNBLFlBQUEsSURrSkEsdUJBQ0UsYUFBQSxLQUdGLHVCQUNFLE1BQUEsUUFJSixvQkMxR0UsWUFBQSxJQXFDQSxVQUFBLEtEd0VBLE1BQUEsUUFJQSx3Q0FDRSxZQUFBLElBQ0EsV0FBQSxLQUNBLGNBQUEsSUFBQSxNQUFBIn0= */
1
+ .collectionData_f8375039{background-color:#edebe9;padding:10px}.noCollectionData_f8375039{text-align:center}.panelActions_f8375039{margin-top:15px;text-align:right}.panelActions_f8375039 button{margin-right:15px}.panelActions_f8375039 button:last-child{margin-right:0}.required_f8375039{color:#d83b01;font-size:8px;vertical-align:super}.addBtn_f8375039{color:#0078d4}.addBtnDisabled_f8375039{color:#d2d0ce}.inputField_f8375039{color:inherit}.numberField_f8375039{box-sizing:border-box;box-shadow:none;margin:0;padding:0;border:1px solid #a19f9d;background:#fff;height:32px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;position:relative}.numberField_f8375039:hover{border-color:#201f1e}.numberField_f8375039 input{box-sizing:border-box;box-shadow:none;margin:0;font-size:14px;border-radius:0;border:none;background:0 0;color:#323130;padding:0 12px 0 12px;width:100%;text-overflow:ellipsis;outline:0}.numberField_f8375039.invalidField_f8375039{border-color:#a80000}.iconField_f8375039{position:relative}.iconField_f8375039 i{font-size:20px;position:absolute;top:0;right:10px;vertical-align:top}.iconPicker_f8375039{display:-ms-flexbox;display:flex}.iconPicker_f8375039 .requiredField_f8375039{vertical-align:super;display:inline-block}.colorField_f8375039{position:relative}.colorField_f8375039 .colorIndicator_f8375039{width:30px;height:30px;border:1px solid #a6a6a6}.collectionDataField_f8375039>span{display:none}.collectionDataField_f8375039 div[class^=invalid_]{border-color:#a80000!important}.table_f8375039{display:table;width:100%;border-collapse:collapse}.tableRow_f8375039{display:table-row;line-height:30px}.tableRow_f8375039:hover{background-color:#f3f2f1;cursor:pointer;outline:1px solid transparent}.tableRow_f8375039.tableFooter_f8375039{background-color:#edebe9;border-top:1px solid #a19f9d}.tableCell_f8375039{display:table-cell;padding:0 10px;vertical-align:middle}.tableCell_f8375039>div{margin-bottom:8px;margin-top:8px}.tableCell_f8375039>div.ms-TextField{margin-bottom:8px;margin-top:8px}.errorCallout_f8375039{padding:0 15px;min-width:200px}.errorCalloutLink_f8375039:not([disabled]){color:#a80000}.errorMsgs_f8375039{font-size:14px;font-weight:400}.errorMsgs_f8375039 p{font-size:17px;font-weight:300}.errorMsgs_f8375039 ul{padding-left:15px}.errorMsgs_f8375039 li{color:#a80000}.tableHead_f8375039{font-weight:300;font-size:12px;color:#605e5c}.tableHead_f8375039 .tableCell_f8375039{font-weight:400;text-align:left;border-bottom:1px solid #a19f9d}
2
+ /*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbGU6Ly8vaG9tZS9ydW5uZXIvd29yay9zcC1kZXYtZngtcHJvcGVydHktY29udHJvbHMvc3AtZGV2LWZ4LXByb3BlcnR5LWNvbnRyb2xzL3NyYy9wcm9wZXJ0eUZpZWxkcy9jb2xsZWN0aW9uRGF0YS9Q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0FDQSxTQUFBLFNBQ0EsSUFBQSxFQUNBLE1BQUEsS0FDQSxlQUFBLElBSUoscUJBQ0UsUUFBQSxZQUFBLFFBQUEsS0FFQSw2Q0FDRSxlQUFBLE1BQ0EsUUFBQSxhQUlKLHFCQUNFLFNBQUEsU0FFQSw4Q0FDRSxNQUFBLEtBQ0EsT0FBQSxLQUNBLE9BQUEsSUFBQSxNQUFBLFFBTUYsbUNBQ0UsUUFBQSxLQUdGLG1EQUNFLGFBQUEsa0JBTUosZ0JBQ0UsUUFBQSxNQUNBLE1BQUEsS0FDQSxnQkFBQSxTQUdGLG1CQUNFLFFBQUEsVUFDQSxZQUFBLEtBRUEseUJBQ0UsaUJBQUEsUUFDQSxPQUFBLFFBQ0EsUUFBQSxJQUFBLE1BQUEsWUFHRix3Q0FDRSxpQkFBQSxRQUNBLFdBQUEsSUFBQSxNQUFBLFFBSUosb0JBQ0UsUUFBQSxXQUNBLFFBQUEsRUFBQSxLQUNBLGVBQUEsT0FFQSx3QkFDRSxjQUFBLElBQ0EsV0FBQSxJQUlBLHFDQUNFLGNBQUEsSUFDQSxXQUFBLElBS04sdUJBQ0UsUUFBQSxFQUFBLEtBQ0EsVUFBQSxNQUdGLDJDQUNFLE1BQUEsUUFHRixvQkNwSUUsVUFBQSxLQUNBLFlBQUEsSURzSUEsc0JDbkpBLFVBQUEsS0FDQSxZQUFBLElEc0pBLHVCQUNFLGFBQUEsS0FHRix1QkFDRSxNQUFBLFFBSUosb0JDOUdFLFlBQUEsSUFxQ0EsVUFBQSxLRDRFQSxNQUFBLFFBSUEsd0NBQ0UsWUFBQSxJQUNBLFdBQUEsS0FDQSxjQUFBLElBQUEsTUFBQSJ9 */
@@ -4,6 +4,7 @@ declare const styles: {
4
4
  panelActions: string;
5
5
  required: string;
6
6
  addBtn: string;
7
+ addBtnDisabled: string;
7
8
  inputField: string;
8
9
  numberField: string;
9
10
  invalidField: string;
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyFieldCollectionDataHost.module.scss.d.ts","sourceRoot":"","sources":["../../../src/propertyFields/collectionData/PropertyFieldCollectionDataHost.module.scss.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAuBX,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"PropertyFieldCollectionDataHost.module.scss.d.ts","sourceRoot":"","sources":["../../../src/propertyFields/collectionData/PropertyFieldCollectionDataHost.module.scss.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;CAwBX,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,28 +1,29 @@
1
1
  /* tslint:disable */
2
2
  require("./PropertyFieldCollectionDataHost.module.css");
3
3
  var styles = {
4
- collectionData: 'collectionData_836ee970',
5
- noCollectionData: 'noCollectionData_836ee970',
6
- panelActions: 'panelActions_836ee970',
7
- required: 'required_836ee970',
8
- addBtn: 'addBtn_836ee970',
9
- inputField: 'inputField_836ee970',
10
- numberField: 'numberField_836ee970',
11
- invalidField: 'invalidField_836ee970',
12
- iconField: 'iconField_836ee970',
13
- iconPicker: 'iconPicker_836ee970',
14
- requiredField: 'requiredField_836ee970',
15
- colorField: 'colorField_836ee970',
16
- colorIndicator: 'colorIndicator_836ee970',
17
- collectionDataField: 'collectionDataField_836ee970',
18
- table: 'table_836ee970',
19
- tableRow: 'tableRow_836ee970',
20
- tableFooter: 'tableFooter_836ee970',
21
- tableCell: 'tableCell_836ee970',
22
- errorCallout: 'errorCallout_836ee970',
23
- errorCalloutLink: 'errorCalloutLink_836ee970',
24
- errorMsgs: 'errorMsgs_836ee970',
25
- tableHead: 'tableHead_836ee970'
4
+ collectionData: 'collectionData_f8375039',
5
+ noCollectionData: 'noCollectionData_f8375039',
6
+ panelActions: 'panelActions_f8375039',
7
+ required: 'required_f8375039',
8
+ addBtn: 'addBtn_f8375039',
9
+ addBtnDisabled: 'addBtnDisabled_f8375039',
10
+ inputField: 'inputField_f8375039',
11
+ numberField: 'numberField_f8375039',
12
+ invalidField: 'invalidField_f8375039',
13
+ iconField: 'iconField_f8375039',
14
+ iconPicker: 'iconPicker_f8375039',
15
+ requiredField: 'requiredField_f8375039',
16
+ colorField: 'colorField_f8375039',
17
+ colorIndicator: 'colorIndicator_f8375039',
18
+ collectionDataField: 'collectionDataField_f8375039',
19
+ table: 'table_f8375039',
20
+ tableRow: 'tableRow_f8375039',
21
+ tableFooter: 'tableFooter_f8375039',
22
+ tableCell: 'tableCell_f8375039',
23
+ errorCallout: 'errorCallout_f8375039',
24
+ errorCalloutLink: 'errorCalloutLink_f8375039',
25
+ errorMsgs: 'errorMsgs_f8375039',
26
+ tableHead: 'tableHead_f8375039'
26
27
  };
27
28
  export default styles;
28
29
  /* tslint:enable */
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyFieldCollectionDataHost.module.scss.js","sourceRoot":"","sources":["../../../src/propertyFields/collectionData/PropertyFieldCollectionDataHost.module.scss.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,CAAC,8CAA8C,CAAC,CAAC;AACxD,IAAM,MAAM,GAAG;IACb,cAAc,EAAE,yBAAyB;IACzC,gBAAgB,EAAE,2BAA2B;IAC7C,YAAY,EAAE,uBAAuB;IACrC,QAAQ,EAAE,mBAAmB;IAC7B,MAAM,EAAE,iBAAiB;IACzB,UAAU,EAAE,qBAAqB;IACjC,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;IACrC,SAAS,EAAE,oBAAoB;IAC/B,UAAU,EAAE,qBAAqB;IACjC,aAAa,EAAE,wBAAwB;IACvC,UAAU,EAAE,qBAAqB;IACjC,cAAc,EAAE,yBAAyB;IACzC,mBAAmB,EAAE,8BAA8B;IACnD,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,sBAAsB;IACnC,SAAS,EAAE,oBAAoB;IAC/B,YAAY,EAAE,uBAAuB;IACrC,gBAAgB,EAAE,2BAA2B;IAC7C,SAAS,EAAE,oBAAoB;IAC/B,SAAS,EAAE,oBAAoB;CAChC,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,mBAAmB"}
1
+ {"version":3,"file":"PropertyFieldCollectionDataHost.module.scss.js","sourceRoot":"","sources":["../../../src/propertyFields/collectionData/PropertyFieldCollectionDataHost.module.scss.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,CAAC,8CAA8C,CAAC,CAAC;AACxD,IAAM,MAAM,GAAG;IACb,cAAc,EAAE,yBAAyB;IACzC,gBAAgB,EAAE,2BAA2B;IAC7C,YAAY,EAAE,uBAAuB;IACrC,QAAQ,EAAE,mBAAmB;IAC7B,MAAM,EAAE,iBAAiB;IACzB,cAAc,EAAE,yBAAyB;IACzC,UAAU,EAAE,qBAAqB;IACjC,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;IACrC,SAAS,EAAE,oBAAoB;IAC/B,UAAU,EAAE,qBAAqB;IACjC,aAAa,EAAE,wBAAwB;IACvC,UAAU,EAAE,qBAAqB;IACjC,cAAc,EAAE,yBAAyB;IACzC,mBAAmB,EAAE,8BAA8B;IACnD,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,sBAAsB;IACnC,SAAS,EAAE,oBAAoB;IAC/B,YAAY,EAAE,uBAAuB;IACrC,gBAAgB,EAAE,2BAA2B;IAC7C,SAAS,EAAE,oBAAoB;IAC/B,SAAS,EAAE,oBAAoB;CAChC,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,mBAAmB"}
@@ -564,7 +564,7 @@ var CollectionDataItem = /** @class */ (function (_super) {
564
564
  React.createElement("span", { className: styles.tableCell },
565
565
  /* Check add or delete action */
566
566
  this.props.index !== null ? (React.createElement(Link, { title: strings.CollectionDeleteRowButtonLabel, disabled: !this.props.fDeleteItem || this.props.disableItemDeletion, onClick: this.deleteRow },
567
- React.createElement(Icon, { iconName: "Clear" }))) : (React.createElement(Link, { title: strings.CollectionAddRowButtonLabel, className: "" + (disableAdd ? "" : styles.addBtn), disabled: disableAdd, onClick: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
567
+ React.createElement(Icon, { iconName: "Clear" }))) : (React.createElement(Link, { title: strings.CollectionAddRowButtonLabel, className: "" + (disableAdd ? styles.addBtnDisabled : styles.addBtn), disabled: disableAdd, onClick: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
568
568
  switch (_a.label) {
569
569
  case 0: return [4 /*yield*/, this.addRow()];
570
570
  case 1: return [2 /*return*/, _a.sent()];
@@ -1 +1 @@
1
- {"version":3,"file":"CollectionDataItem.js","sourceRoot":"","sources":["../../../../src/propertyFields/collectionData/collectionDataItem/CollectionDataItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,gDAAgD,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,4CAA4C,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,4CAA4C,CAAC;AAClE,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAA0B,yBAAyB,EAAkB,MAAM,IAAI,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAmB,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAA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A;;yBAAA;gBAC/J,oBAAC,IAAI,IAAC,QAAQ,EAAC,KAAK,GAAG,CAClB,CACR,CAEI,CACH,CACP,CAAC;IACJ,CAAC;IACH,yBAAC;AAAD,CAAC,AArfD,CAAwC,KAAK,CAAC,SAAS,GAqftD"}
1
+ {"version":3,"file":"CollectionDataItem.js","sourceRoot":"","sources":["../../../../src/propertyFields/collectionData/collectionDataItem/CollectionDataItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,gDAAgD,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,4CAA4C,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,4CAA4C,CAAC;AAClE,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAA0B,yBAAyB,EAAkB,MAAM,IAAI,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAmB,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAE7F;IAAwC,sCAAmE;IAKzG,4BAAY,K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"@pnp/spfx-property-controls",
3
3
  "description": "Reusable property pane controls for SharePoint Framework solutions",
4
- "version": "3.8.0-beta.2337140",
4
+ "version": "3.8.0-beta.2598276",
5
5
  "scripts": {
6
6
  "build": "gulp build",
7
7
  "clean": "gulp clean",
@@ -60,7 +60,7 @@
60
60
  "husky": "^6.0.0",
61
61
  "request-promise": "4.2.6",
62
62
  "sonarqube-scanner": "2.1.2",
63
- "spfx-fast-serve-helpers": "~1.13.0",
63
+ "spfx-fast-serve-helpers": "~1.14.0",
64
64
  "typescript": "3.7.7"
65
65
  },
66
66
  "repository": {
@@ -2,9 +2,9 @@
2
2
  "errors": [],
3
3
  "warnings": [],
4
4
  "version": "4.44.2",
5
- "hash": "91f5030a071666bf56e3",
6
- "time": 9611,
7
- "builtAt": 1652774332689,
5
+ "hash": "3ec75a32b7d2f405a05b",
6
+ "time": 9028,
7
+ "builtAt": 1656698204958,
8
8
  "publicPath": "",
9
9
  "outputPath": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/dist",
10
10
  "assetsByChunkName": {
@@ -272,7 +272,7 @@
272
272
  },
273
273
  {
274
274
  "name": "property-controls-test-web-part.js",
275
- "size": 9722797,
275
+ "size": 9722980,
276
276
  "chunks": [
277
277
  "property-controls-test-web-part"
278
278
  ],
@@ -285,7 +285,7 @@
285
285
  },
286
286
  {
287
287
  "name": "property-controls-test-web-part.js.map",
288
- "size": 9258137,
288
+ "size": 9258285,
289
289
  "chunks": [
290
290
  "property-controls-test-web-part"
291
291
  ],
@@ -333,7 +333,7 @@
333
333
  "rendered": true,
334
334
  "initial": true,
335
335
  "entry": true,
336
- "size": 7512346,
336
+ "size": 7512451,
337
337
  "names": [
338
338
  "property-controls-test-web-part"
339
339
  ],
@@ -341,7 +341,7 @@
341
341
  "property-controls-test-web-part.js",
342
342
  "property-controls-test-web-part.js.map"
343
343
  ],
344
- "hash": "b23d3a944d32bdda08d6",
344
+ "hash": "a386e6da967c1439449f",
345
345
  "siblings": [],
346
346
  "parents": [],
347
347
  "children": [],
@@ -19554,7 +19554,7 @@
19554
19554
  "name": "./lib/propertyFields/collectionData/PropertyFieldCollectionDataHost.module.scss.js",
19555
19555
  "index": 1113,
19556
19556
  "index2": 1109,
19557
- "size": 1043,
19557
+ "size": 1090,
19558
19558
  "cacheable": true,
19559
19559
  "built": true,
19560
19560
  "optional": false,
@@ -19915,7 +19915,16 @@
19915
19915
  "moduleName": "./lib/propertyFields/collectionData/collectionDataItem/CollectionDataItem.js",
19916
19916
  "type": "harmony import specifier",
19917
19917
  "userRequest": "../PropertyFieldCollectionDataHost.module.scss",
19918
- "loc": "567:177-183"
19918
+ "loc": "567:172-178"
19919
+ },
19920
+ {
19921
+ "moduleId": "Z3D4",
19922
+ "moduleIdentifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/source-map-loader/index.js!/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/lib/propertyFields/collectionData/collectionDataItem/CollectionDataItem.js",
19923
+ "module": "./lib/propertyFields/collectionData/collectionDataItem/CollectionDataItem.js",
19924
+ "moduleName": "./lib/propertyFields/collectionData/collectionDataItem/CollectionDataItem.js",
19925
+ "type": "harmony import specifier",
19926
+ "userRequest": "../PropertyFieldCollectionDataHost.module.scss",
19927
+ "loc": "567:196-202"
19919
19928
  },
19920
19929
  {
19921
19930
  "moduleId": "k2cr",
@@ -19995,7 +20004,7 @@
19995
20004
  ],
19996
20005
  "optimizationBailout": [],
19997
20006
  "depth": 6,
19998
- "source": "/* tslint:disable */\nrequire(\"./PropertyFieldCollectionDataHost.module.css\");\nvar styles = {\n collectionData: 'collectionData_836ee970',\n noCollectionData: 'noCollectionData_836ee970',\n panelActions: 'panelActions_836ee970',\n required: 'required_836ee970',\n addBtn: 'addBtn_836ee970',\n inputField: 'inputField_836ee970',\n numberField: 'numberField_836ee970',\n invalidField: 'invalidField_836ee970',\n iconField: 'iconField_836ee970',\n iconPicker: 'iconPicker_836ee970',\n requiredField: 'requiredField_836ee970',\n colorField: 'colorField_836ee970',\n colorIndicator: 'colorIndicator_836ee970',\n collectionDataField: 'collectionDataField_836ee970',\n table: 'table_836ee970',\n tableRow: 'tableRow_836ee970',\n tableFooter: 'tableFooter_836ee970',\n tableCell: 'tableCell_836ee970',\n errorCallout: 'errorCallout_836ee970',\n errorCalloutLink: 'errorCalloutLink_836ee970',\n errorMsgs: 'errorMsgs_836ee970',\n tableHead: 'tableHead_836ee970'\n};\nexport default styles;\n/* tslint:enable */ \n"
20007
+ "source": "/* tslint:disable */\nrequire(\"./PropertyFieldCollectionDataHost.module.css\");\nvar styles = {\n collectionData: 'collectionData_f8375039',\n noCollectionData: 'noCollectionData_f8375039',\n panelActions: 'panelActions_f8375039',\n required: 'required_f8375039',\n addBtn: 'addBtn_f8375039',\n addBtnDisabled: 'addBtnDisabled_f8375039',\n inputField: 'inputField_f8375039',\n numberField: 'numberField_f8375039',\n invalidField: 'invalidField_f8375039',\n iconField: 'iconField_f8375039',\n iconPicker: 'iconPicker_f8375039',\n requiredField: 'requiredField_f8375039',\n colorField: 'colorField_f8375039',\n colorIndicator: 'colorIndicator_f8375039',\n collectionDataField: 'collectionDataField_f8375039',\n table: 'table_f8375039',\n tableRow: 'tableRow_f8375039',\n tableFooter: 'tableFooter_f8375039',\n tableCell: 'tableCell_f8375039',\n errorCallout: 'errorCallout_f8375039',\n errorCalloutLink: 'errorCalloutLink_f8375039',\n errorMsgs: 'errorMsgs_f8375039',\n tableHead: 'tableHead_f8375039'\n};\nexport default styles;\n/* tslint:enable */ \n"
19999
20008
  },
20000
20009
  {
20001
20010
  "id": "4H+i",
@@ -121597,7 +121606,7 @@
121597
121606
  "name": "./lib/propertyFields/collectionData/collectionDataItem/CollectionDataItem.js",
121598
121607
  "index": 1117,
121599
121608
  "index2": 1137,
121600
- "size": 29168,
121609
+ "size": 29187,
121601
121610
  "cacheable": true,
121602
121611
  "built": true,
121603
121612
  "optional": false,
@@ -121674,7 +121683,7 @@
121674
121683
  ],
121675
121684
  "optimizationBailout": [],
121676
121685
  "depth": 7,
121677
- "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};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport * as React from 'react';\nimport styles from '../PropertyFieldCollectionDataHost.module.scss';\nimport { TextField } from 'office-ui-fabric-react/lib/components/TextField';\nimport { Icon } from 'office-ui-fabric-react/lib/components/Icon';\nimport { Link } from 'office-ui-fabric-react/lib/components/Link';\nimport * as strings from 'PropertyControlStrings';\nimport { CustomCollectionFieldType } from '..';\nimport { Dropdown } from 'office-ui-fabric-react/lib/components/Dropdown';\nimport { Callout, DirectionalHint } from 'office-ui-fabric-react/lib/components/Callout';\nimport { CollectionIconField } from '../collectionIconField';\nimport { clone, findIndex, sortBy } from '@microsoft/sp-lodash-subset';\nimport { CollectionNumberField } from '../collectionNumberField';\nimport { CollectionColorField } from '../collectionColorField';\nimport { Guid } from '@microsoft/sp-core-library';\nimport { CollectionDropdownField } from '../collectionDropdownField/CollectionDropdownField';\nimport { CollectionCheckboxField } from '../collectionCheckboxField/CollectionCheckboxField';\nvar CollectionDataItem = /** @class */ (function (_super) {\n __extends(CollectionDataItem, _super);\n function CollectionDataItem(props) {\n var _this = _super.call(this, props) || this;\n _this.emptyItem = null;\n _this.validation = {};\n /**\n * Update the item value on the field change\n */\n _this.onValueChanged = function (fieldId, value) {\n return new Promise(function (resolve) { return _this.setState(function (prevState) {\n var crntItem = prevState.crntItem;\n // Update the changed field\n crntItem[fieldId] = value;\n // Store this in the current state\n return { crntItem: crntItem };\n }, function () { return resolve(); }); });\n };\n /**\n * Add the current row to the collection\n */\n _this.addRow = function () { return __awaiter(_this, void 0, void 0, function () {\n var crntItem, emptyItem;\n return __generator(this, function (_a) {\n if (this.props.fAddItem) {\n crntItem = this.state.crntItem;\n // Check if all the fields are correctly provided\n if (this.checkRowIsValidForSave(crntItem)) {\n this.props.fAddItem(crntItem);\n emptyItem = this.generateEmptyItem();\n this.setState({\n crntItem: __assign({}, emptyItem)\n });\n }\n }\n return [2 /*return*/];\n });\n }); };\n /**\n * Add the current row to the collection\n */\n _this.updateItem = function () { return __awaiter(_this, void 0, void 0, function () {\n var crntItem, isValid;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n crntItem = this.state.crntItem;\n return [4 /*yield*/, this.checkRowIsValidForSave(crntItem)];\n case 1:\n isValid = _a.sent();\n if (this.props.fUpdateItem) {\n // Check if all the fields are correctly provided\n if (isValid) {\n this.props.fUpdateItem(this.props.index, crntItem);\n }\n }\n // Set the validation for the item\n if (this.props.fValidation) {\n this.props.fValidation(this.props.index, isValid);\n }\n return [2 /*return*/];\n }\n });\n }); };\n /**\n * Delete the item from the collection\n */\n _this.deleteRow = function () {\n if (_this.props.fDeleteItem) {\n _this.props.fDeleteItem(_this.props.index);\n }\n };\n /**\n * Allow custom field validation\n *\n * @param field\n * @param value\n */\n _this.fieldValidation = function (field, value) { return __awaiter(_this, void 0, void 0, function () {\n var validation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n validation = \"\";\n if (!field.onGetErrorMessage) return [3 /*break*/, 2];\n // Set initial field validation\n this.validation[field.id] = false;\n return [4 /*yield*/, field.onGetErrorMessage(value, this.props.index, this.state.crntItem)];\n case 1:\n // Do the validation\n validation = _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/, this.storeFieldValidation(field.id, validation, true)];\n }\n });\n }); };\n /**\n * Custom field validation\n */\n _this.onCustomFieldValidation = function (fieldId, errorMsg) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n console.log(fieldId, errorMsg);\n if (!fieldId) return [3 /*break*/, 2];\n return [4 /*yield*/, this.storeFieldValidation(fieldId, errorMsg, true)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); };\n /**\n * URL field validation\n *\n * @param field\n * @param value\n * @param item\n */\n _this.urlFieldValidation = function (field, value, item) { return __awaiter(_this, void 0, void 0, function () {\n var isValid, validation, regEx;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n isValid = true;\n validation = \"\";\n if (!field.onGetErrorMessage) return [3 /*break*/, 2];\n return [4 /*yield*/, field.onGetErrorMessage(value, this.props.index, item)];\n case 1:\n // Using the custom validation\n validation = _a.sent();\n isValid = validation === \"\";\n return [3 /*break*/, 3];\n case 2:\n regEx = /(http|https)?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&\\/\\/=]*)/;\n isValid = (value === null || value.length === 0 || regEx.test(value));\n validation = isValid ? \"\" : strings.InvalidUrlError;\n _a.label = 3;\n case 3: return [2 /*return*/, this.storeFieldValidation(field.id, validation, true)];\n }\n });\n }); };\n /**\n * Toggle the error callout\n */\n _this.toggleErrorCallout = function () {\n _this.setState(function (prevState) { return ({\n showCallout: !prevState.showCallout\n }); });\n };\n _this.hideErrorCallout = function () {\n _this.setState({\n showCallout: false\n });\n };\n // Create an empty item with all properties\n var emptyItem = _this.generateEmptyItem();\n _this.state = {\n crntItem: clone(_this.props.item) || __assign({}, emptyItem),\n errorMsgs: [],\n showCallout: false,\n disableAdd: false\n };\n return _this;\n }\n /**\n * componentDidUpdate lifecycle hook\n * @param prevProps\n * @param prevState\n */\n CollectionDataItem.prototype.componentDidUpdate = function (prevProps) {\n if (this.props.item !== prevProps.item) {\n this.setState({\n crntItem: clone(this.props.item)\n });\n }\n };\n /**\n * Perform all required field checks at once\n */\n CollectionDataItem.prototype.doAllFieldChecks = function () {\n return __awaiter(this, void 0, void 0, function () {\n var crntItem, disableAdd;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n crntItem = this.state.crntItem;\n disableAdd = null;\n if (!this.props.fAddInCreation) return [3 /*break*/, 2];\n return [4 /*yield*/, this.checkRowIsValidForSave(crntItem)];\n case 1:\n if (_a.sent()) {\n disableAdd = false;\n this.props.fAddInCreation(crntItem, true);\n }\n else {\n disableAdd = true;\n this.props.fAddInCreation(crntItem, false);\n }\n _a.label = 2;\n case 2:\n this.setState({ disableAdd: disableAdd });\n if (!this.props.fUpdateItem) return [3 /*break*/, 4];\n return [4 /*yield*/, this.updateItem()];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Check if all values of the required fields are provided\n */\n CollectionDataItem.prototype.checkAllRequiredFieldsValid = function (item) {\n // Get all the required fields\n var requiredFields = this.props.fields.filter(function (f) { return f.required; });\n // Check all the required field values\n for (var _i = 0, requiredFields_1 = requiredFields; _i < requiredFields_1.length; _i++) {\n var field = requiredFields_1[_i];\n if (typeof item[field.id] === \"undefined\" || item[field.id] === null || item[field.id] === \"\") {\n return false;\n }\n }\n return true;\n };\n /**\n * Check if any of the fields contain a value\n * @param item\n */\n CollectionDataItem.prototype.checkAnyFieldContainsValue = function (item) {\n var fields = this.props.fields;\n for (var _i = 0, fields_1 = fields; _i < fields_1.length; _i++) {\n var field = fields_1[_i];\n if (typeof item[field.id] !== \"undefined\" && item[field.id] !== null && item[field.id] !== \"\") {\n return true;\n }\n }\n return false;\n };\n /**\n * Check onGetCustomErrorMessage\n * @param item\n */\n CollectionDataItem.prototype.checkAnyFieldCustomErrorMessage = function (item) {\n return __awaiter(this, void 0, void 0, function () {\n var _a, fields, index, validations;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this.props, fields = _a.fields, index = _a.index;\n return [4 /*yield*/, Promise.all(fields.filter(function (f) { return f.onGetErrorMessage; }).map(function (f) { return __awaiter(_this, void 0, void 0, function () {\n var validation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, f.onGetErrorMessage(item[f.id], index, item)];\n case 1:\n validation = _a.sent();\n return [2 /*return*/, this.storeFieldValidation(f.id, validation)];\n }\n });\n }); }))];\n case 1:\n validations = _b.sent();\n return [2 /*return*/, validations.filter(function (v) { return v && v.length > 0; }).length == 0];\n }\n });\n });\n };\n /**\n * Check if row is ready for save\n */\n CollectionDataItem.prototype.checkRowIsValidForSave = function (item) {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this.checkAllRequiredFieldsValid(item) &&\n this.checkAnyFieldContainsValue(item);\n if (!_a) return [3 /*break*/, 2];\n return [4 /*yield*/, this.checkAnyFieldCustomErrorMessage(item)];\n case 1:\n _a = (_b.sent());\n _b.label = 2;\n case 2: return [2 /*return*/, _a &&\n this.checkAllFieldsAreValid()];\n }\n });\n });\n };\n /**\n * Checks if all fields are valid\n */\n CollectionDataItem.prototype.checkAllFieldsAreValid = function () {\n if (this.validation) {\n var keys = Object.keys(this.validation);\n for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {\n var key = keys_1[_i];\n if (!this.validation[key]) {\n return false;\n }\n }\n }\n return true;\n };\n /**\n * Updates callout and validation state\n */\n CollectionDataItem.prototype.storeFieldValidation = function (fieldId, validation, doAllFieldChecks) {\n if (doAllFieldChecks === void 0) { doAllFieldChecks = false; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n // Store the field validation\n this.validation[fieldId] = validation === \"\";\n // Add message for the error callout\n this.errorCalloutHandler(fieldId, validation);\n if (!doAllFieldChecks) return [3 /*break*/, 2];\n return [4 /*yield*/, this.doAllFieldChecks()];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/, validation];\n }\n });\n });\n };\n /**\n * Error callout message handler\n *\n * @param field\n * @param message\n */\n CollectionDataItem.prototype.errorCalloutHandler = function (fieldId, message) {\n var _this = this;\n this.setState(function (prevState) {\n var crntItem = prevState.crntItem, errorMsgs = prevState.errorMsgs;\n // Get the current field\n var fieldIdx = findIndex(_this.props.fields, function (f) { return f.id === fieldId; });\n if (fieldIdx === -1) {\n return;\n }\n var field = _this.props.fields[fieldIdx];\n // Check if there already is a message for the field\n var fieldMsgIdx = findIndex(errorMsgs, function (msg) { return msg.field === field.title; });\n // Add message\n var fieldMsg;\n if (fieldMsgIdx === -1) {\n fieldMsg = {\n field: field.title,\n message: message\n };\n }\n else {\n // Update message\n fieldMsg = errorMsgs[fieldMsgIdx];\n if (fieldMsg) {\n fieldMsg.message = message;\n }\n }\n // Check if field required message needs to be shown\n if (field.required) {\n if (typeof crntItem[field.id] === \"undefined\" || crntItem[field.id] === null || crntItem[field.id] === \"\") {\n fieldMsg.isRequired = true;\n }\n else {\n fieldMsg.isRequired = false;\n }\n }\n // If required and message are false, it doesn't need to be added\n if (!fieldMsg.message && !fieldMsg.isRequired) {\n // Remove the item\n if (fieldMsgIdx !== -1) {\n errorMsgs.splice(fieldMsgIdx, 1);\n }\n }\n else {\n if (fieldMsgIdx === -1) {\n errorMsgs.push(fieldMsg);\n }\n }\n // Sort based on the index\n errorMsgs = sortBy(errorMsgs, [\"field\"]);\n return {\n errorMsgs: errorMsgs\n };\n });\n };\n /**\n * Render the field\n *\n * @param field\n * @param item\n */\n CollectionDataItem.prototype.renderField = function (field, item) {\n var _this = this;\n var disableFieldOnEdit = field.disableEdit && !!this.props.fUpdateItem;\n switch (field.type) {\n case CustomCollectionFieldType.boolean:\n return React.createElement(CollectionCheckboxField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.dropdown:\n return React.createElement(CollectionDropdownField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.number:\n return React.createElement(CollectionNumberField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.fabricIcon:\n return React.createElement(CollectionIconField, { renderMode: field.iconFieldRenderMode, field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.color:\n return React.createElement(CollectionColorField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.url:\n return React.createElement(TextField, { placeholder: field.placeholder || field.title, value: item[field.id] ? item[field.id] : \"\", required: field.required, disabled: disableFieldOnEdit, className: styles.collectionDataField, onChange: function (e, value) { return _this.onValueChanged(field.id, value); }, deferredValidationTime: field.deferredValidationTime || field.deferredValidationTime >= 0 ? field.deferredValidationTime : 200, onGetErrorMessage: function (value) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n return [2 /*return*/, this.urlFieldValidation(field, value, item)];\n }); }); }, inputClassName: \"PropertyFieldCollectionData__panel__url-field\" });\n case CustomCollectionFieldType.custom:\n if (field.onCustomRender) {\n return field.onCustomRender(field, item[field.id], function (fieldId, value) {\n _this.onValueChanged(fieldId, value);\n if (field.onGetErrorMessage) {\n _this.fieldValidation(field, value);\n }\n }, item, item.uniqueId, this.onCustomFieldValidation);\n }\n return null;\n case CustomCollectionFieldType.string:\n default:\n return React.createElement(TextField, { placeholder: field.placeholder || field.title, className: styles.collectionDataField, value: item[field.id] ? item[field.id] : \"\", required: field.required, disabled: disableFieldOnEdit, onChange: function (e, value) { return _this.onValueChanged(field.id, value); }, deferredValidationTime: field.deferredValidationTime || field.deferredValidationTime >= 0 ? field.deferredValidationTime : 200, onGetErrorMessage: function (value) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.fieldValidation(field, value)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }, inputClassName: \"PropertyFieldCollectionData__panel__string-field\" });\n }\n };\n /**\n * Retrieve all dropdown options\n */\n CollectionDataItem.prototype.getSortingOptions = function () {\n var opts = [];\n var totalItems = this.props.totalItems;\n for (var i = 1; i <= totalItems; i++) {\n opts.push({\n text: i.toString(),\n key: i\n });\n }\n return opts;\n };\n /**\n * Creates an empty item with a unique id\n */\n CollectionDataItem.prototype.generateEmptyItem = function () {\n // Create an empty item with all properties\n var emptyItem = {};\n emptyItem.uniqueId = Guid.newGuid().toString();\n for (var _i = 0, _a = this.props.fields; _i < _a.length; _i++) {\n var field = _a[_i];\n // Assign default value or null to the emptyItem\n emptyItem[field.id] = field.defaultValue || null;\n }\n return emptyItem;\n };\n /**\n * Default React render\n */\n CollectionDataItem.prototype.render = function () {\n var _this = this;\n var _a = this.state, crntItem = _a.crntItem, disableAdd = _a.disableAdd;\n var opts = this.getSortingOptions();\n return (React.createElement(\"div\", { className: \"PropertyFieldCollectionData__panel__table-row \" + styles.tableRow + \" \" + (this.props.index === null ? styles.tableFooter : \"\") },\n (this.props.sortingEnabled && this.props.totalItems) && (React.createElement(\"span\", { className: \"PropertyFieldCollectionData__panel__sorting-field \" + styles.tableCell },\n React.createElement(Dropdown, { options: opts, selectedKey: this.props.index + 1, onChanged: function (opt) { return _this.props.fOnSorting(_this.props.index, opt.key); } }))),\n (this.props.sortingEnabled && this.props.totalItems === null) && (React.createElement(\"span\", { className: \"\" + styles.tableCell })),\n this.props.fields.map(function (f) { return (React.createElement(\"span\", { key: \"dataitem-\" + f.id, className: styles.tableCell + \" \" + styles.inputField }, _this.renderField(f, crntItem))); }),\n React.createElement(\"span\", { className: styles.tableCell },\n React.createElement(\"span\", { ref: function (ref) { return _this.calloutCellRef = ref; } },\n React.createElement(Link, { title: strings.CollectionDataItemShowErrorsLabel, className: styles.errorCalloutLink, disabled: !this.state.errorMsgs || this.state.errorMsgs.length === 0, onClick: this.toggleErrorCallout },\n React.createElement(Icon, { iconName: \"Error\" }))),\n this.state.showCallout && (React.createElement(Callout, { className: styles.errorCallout, target: this.calloutCellRef, isBeakVisible: true, directionalHint: DirectionalHint.bottomLeftEdge, directionalHintForRTL: DirectionalHint.rightBottomEdge, onDismiss: this.hideErrorCallout }, (this.state.errorMsgs && this.state.errorMsgs.length > 0) && (React.createElement(\"div\", { className: styles.errorMsgs },\n React.createElement(\"p\", null, \"Field issues:\"),\n React.createElement(\"ul\", null, this.state.errorMsgs.map(function (msg, idx) { return (React.createElement(\"li\", { key: msg.field + \"-\" + idx },\n React.createElement(\"b\", null, msg.field),\n \": \",\n msg.message ? msg.message : msg.isRequired ? strings.CollectionDataItemFieldRequiredLabel : null)); }))))))),\n React.createElement(\"span\", { className: styles.tableCell }, \n /* Check add or delete action */\n this.props.index !== null ? (React.createElement(Link, { title: strings.CollectionDeleteRowButtonLabel, disabled: !this.props.fDeleteItem || this.props.disableItemDeletion, onClick: this.deleteRow },\n React.createElement(Icon, { iconName: \"Clear\" }))) : (React.createElement(Link, { title: strings.CollectionAddRowButtonLabel, className: \"\" + (disableAdd ? \"\" : styles.addBtn), disabled: disableAdd, onClick: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.addRow()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); } },\n React.createElement(Icon, { iconName: \"Add\" }))))));\n };\n return CollectionDataItem;\n}(React.Component));\nexport { CollectionDataItem };\n"
121686
+ "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};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport * as React from 'react';\nimport styles from '../PropertyFieldCollectionDataHost.module.scss';\nimport { TextField } from 'office-ui-fabric-react/lib/components/TextField';\nimport { Icon } from 'office-ui-fabric-react/lib/components/Icon';\nimport { Link } from 'office-ui-fabric-react/lib/components/Link';\nimport * as strings from 'PropertyControlStrings';\nimport { CustomCollectionFieldType } from '..';\nimport { Dropdown } from 'office-ui-fabric-react/lib/components/Dropdown';\nimport { Callout, DirectionalHint } from 'office-ui-fabric-react/lib/components/Callout';\nimport { CollectionIconField } from '../collectionIconField';\nimport { clone, findIndex, sortBy } from '@microsoft/sp-lodash-subset';\nimport { CollectionNumberField } from '../collectionNumberField';\nimport { CollectionColorField } from '../collectionColorField';\nimport { Guid } from '@microsoft/sp-core-library';\nimport { CollectionDropdownField } from '../collectionDropdownField/CollectionDropdownField';\nimport { CollectionCheckboxField } from '../collectionCheckboxField/CollectionCheckboxField';\nvar CollectionDataItem = /** @class */ (function (_super) {\n __extends(CollectionDataItem, _super);\n function CollectionDataItem(props) {\n var _this = _super.call(this, props) || this;\n _this.emptyItem = null;\n _this.validation = {};\n /**\n * Update the item value on the field change\n */\n _this.onValueChanged = function (fieldId, value) {\n return new Promise(function (resolve) { return _this.setState(function (prevState) {\n var crntItem = prevState.crntItem;\n // Update the changed field\n crntItem[fieldId] = value;\n // Store this in the current state\n return { crntItem: crntItem };\n }, function () { return resolve(); }); });\n };\n /**\n * Add the current row to the collection\n */\n _this.addRow = function () { return __awaiter(_this, void 0, void 0, function () {\n var crntItem, emptyItem;\n return __generator(this, function (_a) {\n if (this.props.fAddItem) {\n crntItem = this.state.crntItem;\n // Check if all the fields are correctly provided\n if (this.checkRowIsValidForSave(crntItem)) {\n this.props.fAddItem(crntItem);\n emptyItem = this.generateEmptyItem();\n this.setState({\n crntItem: __assign({}, emptyItem)\n });\n }\n }\n return [2 /*return*/];\n });\n }); };\n /**\n * Add the current row to the collection\n */\n _this.updateItem = function () { return __awaiter(_this, void 0, void 0, function () {\n var crntItem, isValid;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n crntItem = this.state.crntItem;\n return [4 /*yield*/, this.checkRowIsValidForSave(crntItem)];\n case 1:\n isValid = _a.sent();\n if (this.props.fUpdateItem) {\n // Check if all the fields are correctly provided\n if (isValid) {\n this.props.fUpdateItem(this.props.index, crntItem);\n }\n }\n // Set the validation for the item\n if (this.props.fValidation) {\n this.props.fValidation(this.props.index, isValid);\n }\n return [2 /*return*/];\n }\n });\n }); };\n /**\n * Delete the item from the collection\n */\n _this.deleteRow = function () {\n if (_this.props.fDeleteItem) {\n _this.props.fDeleteItem(_this.props.index);\n }\n };\n /**\n * Allow custom field validation\n *\n * @param field\n * @param value\n */\n _this.fieldValidation = function (field, value) { return __awaiter(_this, void 0, void 0, function () {\n var validation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n validation = \"\";\n if (!field.onGetErrorMessage) return [3 /*break*/, 2];\n // Set initial field validation\n this.validation[field.id] = false;\n return [4 /*yield*/, field.onGetErrorMessage(value, this.props.index, this.state.crntItem)];\n case 1:\n // Do the validation\n validation = _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/, this.storeFieldValidation(field.id, validation, true)];\n }\n });\n }); };\n /**\n * Custom field validation\n */\n _this.onCustomFieldValidation = function (fieldId, errorMsg) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n console.log(fieldId, errorMsg);\n if (!fieldId) return [3 /*break*/, 2];\n return [4 /*yield*/, this.storeFieldValidation(fieldId, errorMsg, true)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); };\n /**\n * URL field validation\n *\n * @param field\n * @param value\n * @param item\n */\n _this.urlFieldValidation = function (field, value, item) { return __awaiter(_this, void 0, void 0, function () {\n var isValid, validation, regEx;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n isValid = true;\n validation = \"\";\n if (!field.onGetErrorMessage) return [3 /*break*/, 2];\n return [4 /*yield*/, field.onGetErrorMessage(value, this.props.index, item)];\n case 1:\n // Using the custom validation\n validation = _a.sent();\n isValid = validation === \"\";\n return [3 /*break*/, 3];\n case 2:\n regEx = /(http|https)?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&\\/\\/=]*)/;\n isValid = (value === null || value.length === 0 || regEx.test(value));\n validation = isValid ? \"\" : strings.InvalidUrlError;\n _a.label = 3;\n case 3: return [2 /*return*/, this.storeFieldValidation(field.id, validation, true)];\n }\n });\n }); };\n /**\n * Toggle the error callout\n */\n _this.toggleErrorCallout = function () {\n _this.setState(function (prevState) { return ({\n showCallout: !prevState.showCallout\n }); });\n };\n _this.hideErrorCallout = function () {\n _this.setState({\n showCallout: false\n });\n };\n // Create an empty item with all properties\n var emptyItem = _this.generateEmptyItem();\n _this.state = {\n crntItem: clone(_this.props.item) || __assign({}, emptyItem),\n errorMsgs: [],\n showCallout: false,\n disableAdd: false\n };\n return _this;\n }\n /**\n * componentDidUpdate lifecycle hook\n * @param prevProps\n * @param prevState\n */\n CollectionDataItem.prototype.componentDidUpdate = function (prevProps) {\n if (this.props.item !== prevProps.item) {\n this.setState({\n crntItem: clone(this.props.item)\n });\n }\n };\n /**\n * Perform all required field checks at once\n */\n CollectionDataItem.prototype.doAllFieldChecks = function () {\n return __awaiter(this, void 0, void 0, function () {\n var crntItem, disableAdd;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n crntItem = this.state.crntItem;\n disableAdd = null;\n if (!this.props.fAddInCreation) return [3 /*break*/, 2];\n return [4 /*yield*/, this.checkRowIsValidForSave(crntItem)];\n case 1:\n if (_a.sent()) {\n disableAdd = false;\n this.props.fAddInCreation(crntItem, true);\n }\n else {\n disableAdd = true;\n this.props.fAddInCreation(crntItem, false);\n }\n _a.label = 2;\n case 2:\n this.setState({ disableAdd: disableAdd });\n if (!this.props.fUpdateItem) return [3 /*break*/, 4];\n return [4 /*yield*/, this.updateItem()];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Check if all values of the required fields are provided\n */\n CollectionDataItem.prototype.checkAllRequiredFieldsValid = function (item) {\n // Get all the required fields\n var requiredFields = this.props.fields.filter(function (f) { return f.required; });\n // Check all the required field values\n for (var _i = 0, requiredFields_1 = requiredFields; _i < requiredFields_1.length; _i++) {\n var field = requiredFields_1[_i];\n if (typeof item[field.id] === \"undefined\" || item[field.id] === null || item[field.id] === \"\") {\n return false;\n }\n }\n return true;\n };\n /**\n * Check if any of the fields contain a value\n * @param item\n */\n CollectionDataItem.prototype.checkAnyFieldContainsValue = function (item) {\n var fields = this.props.fields;\n for (var _i = 0, fields_1 = fields; _i < fields_1.length; _i++) {\n var field = fields_1[_i];\n if (typeof item[field.id] !== \"undefined\" && item[field.id] !== null && item[field.id] !== \"\") {\n return true;\n }\n }\n return false;\n };\n /**\n * Check onGetCustomErrorMessage\n * @param item\n */\n CollectionDataItem.prototype.checkAnyFieldCustomErrorMessage = function (item) {\n return __awaiter(this, void 0, void 0, function () {\n var _a, fields, index, validations;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this.props, fields = _a.fields, index = _a.index;\n return [4 /*yield*/, Promise.all(fields.filter(function (f) { return f.onGetErrorMessage; }).map(function (f) { return __awaiter(_this, void 0, void 0, function () {\n var validation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, f.onGetErrorMessage(item[f.id], index, item)];\n case 1:\n validation = _a.sent();\n return [2 /*return*/, this.storeFieldValidation(f.id, validation)];\n }\n });\n }); }))];\n case 1:\n validations = _b.sent();\n return [2 /*return*/, validations.filter(function (v) { return v && v.length > 0; }).length == 0];\n }\n });\n });\n };\n /**\n * Check if row is ready for save\n */\n CollectionDataItem.prototype.checkRowIsValidForSave = function (item) {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this.checkAllRequiredFieldsValid(item) &&\n this.checkAnyFieldContainsValue(item);\n if (!_a) return [3 /*break*/, 2];\n return [4 /*yield*/, this.checkAnyFieldCustomErrorMessage(item)];\n case 1:\n _a = (_b.sent());\n _b.label = 2;\n case 2: return [2 /*return*/, _a &&\n this.checkAllFieldsAreValid()];\n }\n });\n });\n };\n /**\n * Checks if all fields are valid\n */\n CollectionDataItem.prototype.checkAllFieldsAreValid = function () {\n if (this.validation) {\n var keys = Object.keys(this.validation);\n for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {\n var key = keys_1[_i];\n if (!this.validation[key]) {\n return false;\n }\n }\n }\n return true;\n };\n /**\n * Updates callout and validation state\n */\n CollectionDataItem.prototype.storeFieldValidation = function (fieldId, validation, doAllFieldChecks) {\n if (doAllFieldChecks === void 0) { doAllFieldChecks = false; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n // Store the field validation\n this.validation[fieldId] = validation === \"\";\n // Add message for the error callout\n this.errorCalloutHandler(fieldId, validation);\n if (!doAllFieldChecks) return [3 /*break*/, 2];\n return [4 /*yield*/, this.doAllFieldChecks()];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/, validation];\n }\n });\n });\n };\n /**\n * Error callout message handler\n *\n * @param field\n * @param message\n */\n CollectionDataItem.prototype.errorCalloutHandler = function (fieldId, message) {\n var _this = this;\n this.setState(function (prevState) {\n var crntItem = prevState.crntItem, errorMsgs = prevState.errorMsgs;\n // Get the current field\n var fieldIdx = findIndex(_this.props.fields, function (f) { return f.id === fieldId; });\n if (fieldIdx === -1) {\n return;\n }\n var field = _this.props.fields[fieldIdx];\n // Check if there already is a message for the field\n var fieldMsgIdx = findIndex(errorMsgs, function (msg) { return msg.field === field.title; });\n // Add message\n var fieldMsg;\n if (fieldMsgIdx === -1) {\n fieldMsg = {\n field: field.title,\n message: message\n };\n }\n else {\n // Update message\n fieldMsg = errorMsgs[fieldMsgIdx];\n if (fieldMsg) {\n fieldMsg.message = message;\n }\n }\n // Check if field required message needs to be shown\n if (field.required) {\n if (typeof crntItem[field.id] === \"undefined\" || crntItem[field.id] === null || crntItem[field.id] === \"\") {\n fieldMsg.isRequired = true;\n }\n else {\n fieldMsg.isRequired = false;\n }\n }\n // If required and message are false, it doesn't need to be added\n if (!fieldMsg.message && !fieldMsg.isRequired) {\n // Remove the item\n if (fieldMsgIdx !== -1) {\n errorMsgs.splice(fieldMsgIdx, 1);\n }\n }\n else {\n if (fieldMsgIdx === -1) {\n errorMsgs.push(fieldMsg);\n }\n }\n // Sort based on the index\n errorMsgs = sortBy(errorMsgs, [\"field\"]);\n return {\n errorMsgs: errorMsgs\n };\n });\n };\n /**\n * Render the field\n *\n * @param field\n * @param item\n */\n CollectionDataItem.prototype.renderField = function (field, item) {\n var _this = this;\n var disableFieldOnEdit = field.disableEdit && !!this.props.fUpdateItem;\n switch (field.type) {\n case CustomCollectionFieldType.boolean:\n return React.createElement(CollectionCheckboxField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.dropdown:\n return React.createElement(CollectionDropdownField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.number:\n return React.createElement(CollectionNumberField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.fabricIcon:\n return React.createElement(CollectionIconField, { renderMode: field.iconFieldRenderMode, field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.color:\n return React.createElement(CollectionColorField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.url:\n return React.createElement(TextField, { placeholder: field.placeholder || field.title, value: item[field.id] ? item[field.id] : \"\", required: field.required, disabled: disableFieldOnEdit, className: styles.collectionDataField, onChange: function (e, value) { return _this.onValueChanged(field.id, value); }, deferredValidationTime: field.deferredValidationTime || field.deferredValidationTime >= 0 ? field.deferredValidationTime : 200, onGetErrorMessage: function (value) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n return [2 /*return*/, this.urlFieldValidation(field, value, item)];\n }); }); }, inputClassName: \"PropertyFieldCollectionData__panel__url-field\" });\n case CustomCollectionFieldType.custom:\n if (field.onCustomRender) {\n return field.onCustomRender(field, item[field.id], function (fieldId, value) {\n _this.onValueChanged(fieldId, value);\n if (field.onGetErrorMessage) {\n _this.fieldValidation(field, value);\n }\n }, item, item.uniqueId, this.onCustomFieldValidation);\n }\n return null;\n case CustomCollectionFieldType.string:\n default:\n return React.createElement(TextField, { placeholder: field.placeholder || field.title, className: styles.collectionDataField, value: item[field.id] ? item[field.id] : \"\", required: field.required, disabled: disableFieldOnEdit, onChange: function (e, value) { return _this.onValueChanged(field.id, value); }, deferredValidationTime: field.deferredValidationTime || field.deferredValidationTime >= 0 ? field.deferredValidationTime : 200, onGetErrorMessage: function (value) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.fieldValidation(field, value)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }, inputClassName: \"PropertyFieldCollectionData__panel__string-field\" });\n }\n };\n /**\n * Retrieve all dropdown options\n */\n CollectionDataItem.prototype.getSortingOptions = function () {\n var opts = [];\n var totalItems = this.props.totalItems;\n for (var i = 1; i <= totalItems; i++) {\n opts.push({\n text: i.toString(),\n key: i\n });\n }\n return opts;\n };\n /**\n * Creates an empty item with a unique id\n */\n CollectionDataItem.prototype.generateEmptyItem = function () {\n // Create an empty item with all properties\n var emptyItem = {};\n emptyItem.uniqueId = Guid.newGuid().toString();\n for (var _i = 0, _a = this.props.fields; _i < _a.length; _i++) {\n var field = _a[_i];\n // Assign default value or null to the emptyItem\n emptyItem[field.id] = field.defaultValue || null;\n }\n return emptyItem;\n };\n /**\n * Default React render\n */\n CollectionDataItem.prototype.render = function () {\n var _this = this;\n var _a = this.state, crntItem = _a.crntItem, disableAdd = _a.disableAdd;\n var opts = this.getSortingOptions();\n return (React.createElement(\"div\", { className: \"PropertyFieldCollectionData__panel__table-row \" + styles.tableRow + \" \" + (this.props.index === null ? styles.tableFooter : \"\") },\n (this.props.sortingEnabled && this.props.totalItems) && (React.createElement(\"span\", { className: \"PropertyFieldCollectionData__panel__sorting-field \" + styles.tableCell },\n React.createElement(Dropdown, { options: opts, selectedKey: this.props.index + 1, onChanged: function (opt) { return _this.props.fOnSorting(_this.props.index, opt.key); } }))),\n (this.props.sortingEnabled && this.props.totalItems === null) && (React.createElement(\"span\", { className: \"\" + styles.tableCell })),\n this.props.fields.map(function (f) { return (React.createElement(\"span\", { key: \"dataitem-\" + f.id, className: styles.tableCell + \" \" + styles.inputField }, _this.renderField(f, crntItem))); }),\n React.createElement(\"span\", { className: styles.tableCell },\n React.createElement(\"span\", { ref: function (ref) { return _this.calloutCellRef = ref; } },\n React.createElement(Link, { title: strings.CollectionDataItemShowErrorsLabel, className: styles.errorCalloutLink, disabled: !this.state.errorMsgs || this.state.errorMsgs.length === 0, onClick: this.toggleErrorCallout },\n React.createElement(Icon, { iconName: \"Error\" }))),\n this.state.showCallout && (React.createElement(Callout, { className: styles.errorCallout, target: this.calloutCellRef, isBeakVisible: true, directionalHint: DirectionalHint.bottomLeftEdge, directionalHintForRTL: DirectionalHint.rightBottomEdge, onDismiss: this.hideErrorCallout }, (this.state.errorMsgs && this.state.errorMsgs.length > 0) && (React.createElement(\"div\", { className: styles.errorMsgs },\n React.createElement(\"p\", null, \"Field issues:\"),\n React.createElement(\"ul\", null, this.state.errorMsgs.map(function (msg, idx) { return (React.createElement(\"li\", { key: msg.field + \"-\" + idx },\n React.createElement(\"b\", null, msg.field),\n \": \",\n msg.message ? msg.message : msg.isRequired ? strings.CollectionDataItemFieldRequiredLabel : null)); }))))))),\n React.createElement(\"span\", { className: styles.tableCell }, \n /* Check add or delete action */\n this.props.index !== null ? (React.createElement(Link, { title: strings.CollectionDeleteRowButtonLabel, disabled: !this.props.fDeleteItem || this.props.disableItemDeletion, onClick: this.deleteRow },\n React.createElement(Icon, { iconName: \"Clear\" }))) : (React.createElement(Link, { title: strings.CollectionAddRowButtonLabel, className: \"\" + (disableAdd ? styles.addBtnDisabled : styles.addBtn), disabled: disableAdd, onClick: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.addRow()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); } },\n React.createElement(Icon, { iconName: \"Add\" }))))));\n };\n return CollectionDataItem;\n}(React.Component));\nexport { CollectionDataItem };\n"
121678
121687
  },
121679
121688
  {
121680
121689
  "id": "Z3ef",
@@ -153262,7 +153271,7 @@
153262
153271
  ],
153263
153272
  "optimizationBailout": [],
153264
153273
  "depth": 4,
153265
- "source": "export var version = \"3.8.0-beta.2337140\";\n"
153274
+ "source": "export var version = \"3.8.0-beta.2598276\";\n"
153266
153275
  },
153267
153276
  {
153268
153277
  "id": "cLrF",
@@ -167845,7 +167854,7 @@
167845
167854
  "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src??postcss!./lib/propertyFields/collectionData/PropertyFieldCollectionDataHost.module.css",
167846
167855
  "index": 1115,
167847
167856
  "index2": 1107,
167848
- "size": 2615,
167857
+ "size": 2654,
167849
167858
  "cacheable": true,
167850
167859
  "built": true,
167851
167860
  "optional": false,
@@ -167916,7 +167925,7 @@
167916
167925
  "providedExports": null,
167917
167926
  "optimizationBailout": [],
167918
167927
  "depth": 8,
167919
- "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".collectionData_836ee970{background-color:#edebe9;padding:10px}.noCollectionData_836ee970{text-align:center}.panelActions_836ee970{margin-top:15px;text-align:right}.panelActions_836ee970 button{margin-right:15px}.panelActions_836ee970 button:last-child{margin-right:0}.required_836ee970{color:#d83b01;font-size:8px;vertical-align:super}.addBtn_836ee970{color:#0078d4}.inputField_836ee970{color:inherit}.numberField_836ee970{box-sizing:border-box;box-shadow:none;margin:0;padding:0;border:1px solid #a19f9d;background:#fff;height:32px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;position:relative}.numberField_836ee970:hover{border-color:#201f1e}.numberField_836ee970 input{box-sizing:border-box;box-shadow:none;margin:0;font-size:14px;border-radius:0;border:none;background:0 0;color:#323130;padding:0 12px 0 12px;width:100%;text-overflow:ellipsis;outline:0}.numberField_836ee970.invalidField_836ee970{border-color:#a80000}.iconField_836ee970{position:relative}.iconField_836ee970 i{font-size:20px;position:absolute;top:0;right:10px;vertical-align:top}.iconPicker_836ee970{display:-ms-flexbox;display:flex}.iconPicker_836ee970 .requiredField_836ee970{vertical-align:super;display:inline-block}.colorField_836ee970{position:relative}.colorField_836ee970 .colorIndicator_836ee970{width:30px;height:30px;border:1px solid #a6a6a6}.collectionDataField_836ee970>span{display:none}.collectionDataField_836ee970 div[class^=invalid_]{border-color:#a80000!important}.table_836ee970{display:table;width:100%;border-collapse:collapse}.tableRow_836ee970{display:table-row;line-height:30px}.tableRow_836ee970:hover{background-color:#f3f2f1;cursor:pointer;outline:1px solid transparent}.tableRow_836ee970.tableFooter_836ee970{background-color:#edebe9;border-top:1px solid #a19f9d}.tableCell_836ee970{display:table-cell;padding:0 10px;vertical-align:middle}.tableCell_836ee970>div,.tableCell_836ee970>div.ms-TextField{margin-bottom:8px;margin-top:8px}.errorCallout_836ee970{padding:0 15px;min-width:200px}.errorCalloutLink_836ee970:not([disabled]){color:#a80000}.errorMsgs_836ee970{font-size:14px;font-weight:400}.errorMsgs_836ee970 p{font-size:17px;font-weight:300}.errorMsgs_836ee970 ul{padding-left:15px}.errorMsgs_836ee970 li{color:#a80000}.tableHead_836ee970{font-weight:300;font-size:12px;color:#605e5c}.tableHead_836ee970 .tableCell_836ee970{font-weight:400;text-align:left;border-bottom:1px solid #a19f9d}\", \"\"]);\n"
167928
+ "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".collectionData_f8375039{background-color:#edebe9;padding:10px}.noCollectionData_f8375039{text-align:center}.panelActions_f8375039{margin-top:15px;text-align:right}.panelActions_f8375039 button{margin-right:15px}.panelActions_f8375039 button:last-child{margin-right:0}.required_f8375039{color:#d83b01;font-size:8px;vertical-align:super}.addBtn_f8375039{color:#0078d4}.addBtnDisabled_f8375039{color:#d2d0ce}.inputField_f8375039{color:inherit}.numberField_f8375039{box-sizing:border-box;box-shadow:none;margin:0;padding:0;border:1px solid #a19f9d;background:#fff;height:32px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;position:relative}.numberField_f8375039:hover{border-color:#201f1e}.numberField_f8375039 input{box-sizing:border-box;box-shadow:none;margin:0;font-size:14px;border-radius:0;border:none;background:0 0;color:#323130;padding:0 12px 0 12px;width:100%;text-overflow:ellipsis;outline:0}.numberField_f8375039.invalidField_f8375039{border-color:#a80000}.iconField_f8375039{position:relative}.iconField_f8375039 i{font-size:20px;position:absolute;top:0;right:10px;vertical-align:top}.iconPicker_f8375039{display:-ms-flexbox;display:flex}.iconPicker_f8375039 .requiredField_f8375039{vertical-align:super;display:inline-block}.colorField_f8375039{position:relative}.colorField_f8375039 .colorIndicator_f8375039{width:30px;height:30px;border:1px solid #a6a6a6}.collectionDataField_f8375039>span{display:none}.collectionDataField_f8375039 div[class^=invalid_]{border-color:#a80000!important}.table_f8375039{display:table;width:100%;border-collapse:collapse}.tableRow_f8375039{display:table-row;line-height:30px}.tableRow_f8375039:hover{background-color:#f3f2f1;cursor:pointer;outline:1px solid transparent}.tableRow_f8375039.tableFooter_f8375039{background-color:#edebe9;border-top:1px solid #a19f9d}.tableCell_f8375039{display:table-cell;padding:0 10px;vertical-align:middle}.tableCell_f8375039>div,.tableCell_f8375039>div.ms-TextField{margin-bottom:8px;margin-top:8px}.errorCallout_f8375039{padding:0 15px;min-width:200px}.errorCalloutLink_f8375039:not([disabled]){color:#a80000}.errorMsgs_f8375039{font-size:14px;font-weight:400}.errorMsgs_f8375039 p{font-size:17px;font-weight:300}.errorMsgs_f8375039 ul{padding-left:15px}.errorMsgs_f8375039 li{color:#a80000}.tableHead_f8375039{font-weight:300;font-size:12px;color:#605e5c}.tableHead_f8375039 .tableCell_f8375039{font-weight:400;text-align:left;border-bottom:1px solid #a19f9d}\", \"\"]);\n"
167920
167929
  },
167921
167930
  {
167922
167931
  "id": "hq+I",
@@ -254344,7 +254353,7 @@
254344
254353
  "name": "./lib/propertyFields/collectionData/PropertyFieldCollectionDataHost.module.scss.js",
254345
254354
  "index": 1113,
254346
254355
  "index2": 1109,
254347
- "size": 1043,
254356
+ "size": 1090,
254348
254357
  "cacheable": true,
254349
254358
  "built": true,
254350
254359
  "optional": false,
@@ -254705,7 +254714,16 @@
254705
254714
  "moduleName": "./lib/propertyFields/collectionData/collectionDataItem/CollectionDataItem.js",
254706
254715
  "type": "harmony import specifier",
254707
254716
  "userRequest": "../PropertyFieldCollectionDataHost.module.scss",
254708
- "loc": "567:177-183"
254717
+ "loc": "567:172-178"
254718
+ },
254719
+ {
254720
+ "moduleId": "Z3D4",
254721
+ "moduleIdentifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/source-map-loader/index.js!/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/lib/propertyFields/collectionData/collectionDataItem/CollectionDataItem.js",
254722
+ "module": "./lib/propertyFields/collectionData/collectionDataItem/CollectionDataItem.js",
254723
+ "moduleName": "./lib/propertyFields/collectionData/collectionDataItem/CollectionDataItem.js",
254724
+ "type": "harmony import specifier",
254725
+ "userRequest": "../PropertyFieldCollectionDataHost.module.scss",
254726
+ "loc": "567:196-202"
254709
254727
  },
254710
254728
  {
254711
254729
  "moduleId": "k2cr",
@@ -254785,7 +254803,7 @@
254785
254803
  ],
254786
254804
  "optimizationBailout": [],
254787
254805
  "depth": 6,
254788
- "source": "/* tslint:disable */\nrequire(\"./PropertyFieldCollectionDataHost.module.css\");\nvar styles = {\n collectionData: 'collectionData_836ee970',\n noCollectionData: 'noCollectionData_836ee970',\n panelActions: 'panelActions_836ee970',\n required: 'required_836ee970',\n addBtn: 'addBtn_836ee970',\n inputField: 'inputField_836ee970',\n numberField: 'numberField_836ee970',\n invalidField: 'invalidField_836ee970',\n iconField: 'iconField_836ee970',\n iconPicker: 'iconPicker_836ee970',\n requiredField: 'requiredField_836ee970',\n colorField: 'colorField_836ee970',\n colorIndicator: 'colorIndicator_836ee970',\n collectionDataField: 'collectionDataField_836ee970',\n table: 'table_836ee970',\n tableRow: 'tableRow_836ee970',\n tableFooter: 'tableFooter_836ee970',\n tableCell: 'tableCell_836ee970',\n errorCallout: 'errorCallout_836ee970',\n errorCalloutLink: 'errorCalloutLink_836ee970',\n errorMsgs: 'errorMsgs_836ee970',\n tableHead: 'tableHead_836ee970'\n};\nexport default styles;\n/* tslint:enable */ \n"
254806
+ "source": "/* tslint:disable */\nrequire(\"./PropertyFieldCollectionDataHost.module.css\");\nvar styles = {\n collectionData: 'collectionData_f8375039',\n noCollectionData: 'noCollectionData_f8375039',\n panelActions: 'panelActions_f8375039',\n required: 'required_f8375039',\n addBtn: 'addBtn_f8375039',\n addBtnDisabled: 'addBtnDisabled_f8375039',\n inputField: 'inputField_f8375039',\n numberField: 'numberField_f8375039',\n invalidField: 'invalidField_f8375039',\n iconField: 'iconField_f8375039',\n iconPicker: 'iconPicker_f8375039',\n requiredField: 'requiredField_f8375039',\n colorField: 'colorField_f8375039',\n colorIndicator: 'colorIndicator_f8375039',\n collectionDataField: 'collectionDataField_f8375039',\n table: 'table_f8375039',\n tableRow: 'tableRow_f8375039',\n tableFooter: 'tableFooter_f8375039',\n tableCell: 'tableCell_f8375039',\n errorCallout: 'errorCallout_f8375039',\n errorCalloutLink: 'errorCalloutLink_f8375039',\n errorMsgs: 'errorMsgs_f8375039',\n tableHead: 'tableHead_f8375039'\n};\nexport default styles;\n/* tslint:enable */ \n"
254789
254807
  },
254790
254808
  {
254791
254809
  "id": "4H+i",
@@ -356411,7 +356429,7 @@
356411
356429
  "name": "./lib/propertyFields/collectionData/collectionDataItem/CollectionDataItem.js",
356412
356430
  "index": 1117,
356413
356431
  "index2": 1137,
356414
- "size": 29168,
356432
+ "size": 29187,
356415
356433
  "cacheable": true,
356416
356434
  "built": true,
356417
356435
  "optional": false,
@@ -356488,7 +356506,7 @@
356488
356506
  ],
356489
356507
  "optimizationBailout": [],
356490
356508
  "depth": 7,
356491
- "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};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport * as React from 'react';\nimport styles from '../PropertyFieldCollectionDataHost.module.scss';\nimport { TextField } from 'office-ui-fabric-react/lib/components/TextField';\nimport { Icon } from 'office-ui-fabric-react/lib/components/Icon';\nimport { Link } from 'office-ui-fabric-react/lib/components/Link';\nimport * as strings from 'PropertyControlStrings';\nimport { CustomCollectionFieldType } from '..';\nimport { Dropdown } from 'office-ui-fabric-react/lib/components/Dropdown';\nimport { Callout, DirectionalHint } from 'office-ui-fabric-react/lib/components/Callout';\nimport { CollectionIconField } from '../collectionIconField';\nimport { clone, findIndex, sortBy } from '@microsoft/sp-lodash-subset';\nimport { CollectionNumberField } from '../collectionNumberField';\nimport { CollectionColorField } from '../collectionColorField';\nimport { Guid } from '@microsoft/sp-core-library';\nimport { CollectionDropdownField } from '../collectionDropdownField/CollectionDropdownField';\nimport { CollectionCheckboxField } from '../collectionCheckboxField/CollectionCheckboxField';\nvar CollectionDataItem = /** @class */ (function (_super) {\n __extends(CollectionDataItem, _super);\n function CollectionDataItem(props) {\n var _this = _super.call(this, props) || this;\n _this.emptyItem = null;\n _this.validation = {};\n /**\n * Update the item value on the field change\n */\n _this.onValueChanged = function (fieldId, value) {\n return new Promise(function (resolve) { return _this.setState(function (prevState) {\n var crntItem = prevState.crntItem;\n // Update the changed field\n crntItem[fieldId] = value;\n // Store this in the current state\n return { crntItem: crntItem };\n }, function () { return resolve(); }); });\n };\n /**\n * Add the current row to the collection\n */\n _this.addRow = function () { return __awaiter(_this, void 0, void 0, function () {\n var crntItem, emptyItem;\n return __generator(this, function (_a) {\n if (this.props.fAddItem) {\n crntItem = this.state.crntItem;\n // Check if all the fields are correctly provided\n if (this.checkRowIsValidForSave(crntItem)) {\n this.props.fAddItem(crntItem);\n emptyItem = this.generateEmptyItem();\n this.setState({\n crntItem: __assign({}, emptyItem)\n });\n }\n }\n return [2 /*return*/];\n });\n }); };\n /**\n * Add the current row to the collection\n */\n _this.updateItem = function () { return __awaiter(_this, void 0, void 0, function () {\n var crntItem, isValid;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n crntItem = this.state.crntItem;\n return [4 /*yield*/, this.checkRowIsValidForSave(crntItem)];\n case 1:\n isValid = _a.sent();\n if (this.props.fUpdateItem) {\n // Check if all the fields are correctly provided\n if (isValid) {\n this.props.fUpdateItem(this.props.index, crntItem);\n }\n }\n // Set the validation for the item\n if (this.props.fValidation) {\n this.props.fValidation(this.props.index, isValid);\n }\n return [2 /*return*/];\n }\n });\n }); };\n /**\n * Delete the item from the collection\n */\n _this.deleteRow = function () {\n if (_this.props.fDeleteItem) {\n _this.props.fDeleteItem(_this.props.index);\n }\n };\n /**\n * Allow custom field validation\n *\n * @param field\n * @param value\n */\n _this.fieldValidation = function (field, value) { return __awaiter(_this, void 0, void 0, function () {\n var validation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n validation = \"\";\n if (!field.onGetErrorMessage) return [3 /*break*/, 2];\n // Set initial field validation\n this.validation[field.id] = false;\n return [4 /*yield*/, field.onGetErrorMessage(value, this.props.index, this.state.crntItem)];\n case 1:\n // Do the validation\n validation = _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/, this.storeFieldValidation(field.id, validation, true)];\n }\n });\n }); };\n /**\n * Custom field validation\n */\n _this.onCustomFieldValidation = function (fieldId, errorMsg) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n console.log(fieldId, errorMsg);\n if (!fieldId) return [3 /*break*/, 2];\n return [4 /*yield*/, this.storeFieldValidation(fieldId, errorMsg, true)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); };\n /**\n * URL field validation\n *\n * @param field\n * @param value\n * @param item\n */\n _this.urlFieldValidation = function (field, value, item) { return __awaiter(_this, void 0, void 0, function () {\n var isValid, validation, regEx;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n isValid = true;\n validation = \"\";\n if (!field.onGetErrorMessage) return [3 /*break*/, 2];\n return [4 /*yield*/, field.onGetErrorMessage(value, this.props.index, item)];\n case 1:\n // Using the custom validation\n validation = _a.sent();\n isValid = validation === \"\";\n return [3 /*break*/, 3];\n case 2:\n regEx = /(http|https)?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&\\/\\/=]*)/;\n isValid = (value === null || value.length === 0 || regEx.test(value));\n validation = isValid ? \"\" : strings.InvalidUrlError;\n _a.label = 3;\n case 3: return [2 /*return*/, this.storeFieldValidation(field.id, validation, true)];\n }\n });\n }); };\n /**\n * Toggle the error callout\n */\n _this.toggleErrorCallout = function () {\n _this.setState(function (prevState) { return ({\n showCallout: !prevState.showCallout\n }); });\n };\n _this.hideErrorCallout = function () {\n _this.setState({\n showCallout: false\n });\n };\n // Create an empty item with all properties\n var emptyItem = _this.generateEmptyItem();\n _this.state = {\n crntItem: clone(_this.props.item) || __assign({}, emptyItem),\n errorMsgs: [],\n showCallout: false,\n disableAdd: false\n };\n return _this;\n }\n /**\n * componentDidUpdate lifecycle hook\n * @param prevProps\n * @param prevState\n */\n CollectionDataItem.prototype.componentDidUpdate = function (prevProps) {\n if (this.props.item !== prevProps.item) {\n this.setState({\n crntItem: clone(this.props.item)\n });\n }\n };\n /**\n * Perform all required field checks at once\n */\n CollectionDataItem.prototype.doAllFieldChecks = function () {\n return __awaiter(this, void 0, void 0, function () {\n var crntItem, disableAdd;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n crntItem = this.state.crntItem;\n disableAdd = null;\n if (!this.props.fAddInCreation) return [3 /*break*/, 2];\n return [4 /*yield*/, this.checkRowIsValidForSave(crntItem)];\n case 1:\n if (_a.sent()) {\n disableAdd = false;\n this.props.fAddInCreation(crntItem, true);\n }\n else {\n disableAdd = true;\n this.props.fAddInCreation(crntItem, false);\n }\n _a.label = 2;\n case 2:\n this.setState({ disableAdd: disableAdd });\n if (!this.props.fUpdateItem) return [3 /*break*/, 4];\n return [4 /*yield*/, this.updateItem()];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Check if all values of the required fields are provided\n */\n CollectionDataItem.prototype.checkAllRequiredFieldsValid = function (item) {\n // Get all the required fields\n var requiredFields = this.props.fields.filter(function (f) { return f.required; });\n // Check all the required field values\n for (var _i = 0, requiredFields_1 = requiredFields; _i < requiredFields_1.length; _i++) {\n var field = requiredFields_1[_i];\n if (typeof item[field.id] === \"undefined\" || item[field.id] === null || item[field.id] === \"\") {\n return false;\n }\n }\n return true;\n };\n /**\n * Check if any of the fields contain a value\n * @param item\n */\n CollectionDataItem.prototype.checkAnyFieldContainsValue = function (item) {\n var fields = this.props.fields;\n for (var _i = 0, fields_1 = fields; _i < fields_1.length; _i++) {\n var field = fields_1[_i];\n if (typeof item[field.id] !== \"undefined\" && item[field.id] !== null && item[field.id] !== \"\") {\n return true;\n }\n }\n return false;\n };\n /**\n * Check onGetCustomErrorMessage\n * @param item\n */\n CollectionDataItem.prototype.checkAnyFieldCustomErrorMessage = function (item) {\n return __awaiter(this, void 0, void 0, function () {\n var _a, fields, index, validations;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this.props, fields = _a.fields, index = _a.index;\n return [4 /*yield*/, Promise.all(fields.filter(function (f) { return f.onGetErrorMessage; }).map(function (f) { return __awaiter(_this, void 0, void 0, function () {\n var validation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, f.onGetErrorMessage(item[f.id], index, item)];\n case 1:\n validation = _a.sent();\n return [2 /*return*/, this.storeFieldValidation(f.id, validation)];\n }\n });\n }); }))];\n case 1:\n validations = _b.sent();\n return [2 /*return*/, validations.filter(function (v) { return v && v.length > 0; }).length == 0];\n }\n });\n });\n };\n /**\n * Check if row is ready for save\n */\n CollectionDataItem.prototype.checkRowIsValidForSave = function (item) {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this.checkAllRequiredFieldsValid(item) &&\n this.checkAnyFieldContainsValue(item);\n if (!_a) return [3 /*break*/, 2];\n return [4 /*yield*/, this.checkAnyFieldCustomErrorMessage(item)];\n case 1:\n _a = (_b.sent());\n _b.label = 2;\n case 2: return [2 /*return*/, _a &&\n this.checkAllFieldsAreValid()];\n }\n });\n });\n };\n /**\n * Checks if all fields are valid\n */\n CollectionDataItem.prototype.checkAllFieldsAreValid = function () {\n if (this.validation) {\n var keys = Object.keys(this.validation);\n for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {\n var key = keys_1[_i];\n if (!this.validation[key]) {\n return false;\n }\n }\n }\n return true;\n };\n /**\n * Updates callout and validation state\n */\n CollectionDataItem.prototype.storeFieldValidation = function (fieldId, validation, doAllFieldChecks) {\n if (doAllFieldChecks === void 0) { doAllFieldChecks = false; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n // Store the field validation\n this.validation[fieldId] = validation === \"\";\n // Add message for the error callout\n this.errorCalloutHandler(fieldId, validation);\n if (!doAllFieldChecks) return [3 /*break*/, 2];\n return [4 /*yield*/, this.doAllFieldChecks()];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/, validation];\n }\n });\n });\n };\n /**\n * Error callout message handler\n *\n * @param field\n * @param message\n */\n CollectionDataItem.prototype.errorCalloutHandler = function (fieldId, message) {\n var _this = this;\n this.setState(function (prevState) {\n var crntItem = prevState.crntItem, errorMsgs = prevState.errorMsgs;\n // Get the current field\n var fieldIdx = findIndex(_this.props.fields, function (f) { return f.id === fieldId; });\n if (fieldIdx === -1) {\n return;\n }\n var field = _this.props.fields[fieldIdx];\n // Check if there already is a message for the field\n var fieldMsgIdx = findIndex(errorMsgs, function (msg) { return msg.field === field.title; });\n // Add message\n var fieldMsg;\n if (fieldMsgIdx === -1) {\n fieldMsg = {\n field: field.title,\n message: message\n };\n }\n else {\n // Update message\n fieldMsg = errorMsgs[fieldMsgIdx];\n if (fieldMsg) {\n fieldMsg.message = message;\n }\n }\n // Check if field required message needs to be shown\n if (field.required) {\n if (typeof crntItem[field.id] === \"undefined\" || crntItem[field.id] === null || crntItem[field.id] === \"\") {\n fieldMsg.isRequired = true;\n }\n else {\n fieldMsg.isRequired = false;\n }\n }\n // If required and message are false, it doesn't need to be added\n if (!fieldMsg.message && !fieldMsg.isRequired) {\n // Remove the item\n if (fieldMsgIdx !== -1) {\n errorMsgs.splice(fieldMsgIdx, 1);\n }\n }\n else {\n if (fieldMsgIdx === -1) {\n errorMsgs.push(fieldMsg);\n }\n }\n // Sort based on the index\n errorMsgs = sortBy(errorMsgs, [\"field\"]);\n return {\n errorMsgs: errorMsgs\n };\n });\n };\n /**\n * Render the field\n *\n * @param field\n * @param item\n */\n CollectionDataItem.prototype.renderField = function (field, item) {\n var _this = this;\n var disableFieldOnEdit = field.disableEdit && !!this.props.fUpdateItem;\n switch (field.type) {\n case CustomCollectionFieldType.boolean:\n return React.createElement(CollectionCheckboxField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.dropdown:\n return React.createElement(CollectionDropdownField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.number:\n return React.createElement(CollectionNumberField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.fabricIcon:\n return React.createElement(CollectionIconField, { renderMode: field.iconFieldRenderMode, field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.color:\n return React.createElement(CollectionColorField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.url:\n return React.createElement(TextField, { placeholder: field.placeholder || field.title, value: item[field.id] ? item[field.id] : \"\", required: field.required, disabled: disableFieldOnEdit, className: styles.collectionDataField, onChange: function (e, value) { return _this.onValueChanged(field.id, value); }, deferredValidationTime: field.deferredValidationTime || field.deferredValidationTime >= 0 ? field.deferredValidationTime : 200, onGetErrorMessage: function (value) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n return [2 /*return*/, this.urlFieldValidation(field, value, item)];\n }); }); }, inputClassName: \"PropertyFieldCollectionData__panel__url-field\" });\n case CustomCollectionFieldType.custom:\n if (field.onCustomRender) {\n return field.onCustomRender(field, item[field.id], function (fieldId, value) {\n _this.onValueChanged(fieldId, value);\n if (field.onGetErrorMessage) {\n _this.fieldValidation(field, value);\n }\n }, item, item.uniqueId, this.onCustomFieldValidation);\n }\n return null;\n case CustomCollectionFieldType.string:\n default:\n return React.createElement(TextField, { placeholder: field.placeholder || field.title, className: styles.collectionDataField, value: item[field.id] ? item[field.id] : \"\", required: field.required, disabled: disableFieldOnEdit, onChange: function (e, value) { return _this.onValueChanged(field.id, value); }, deferredValidationTime: field.deferredValidationTime || field.deferredValidationTime >= 0 ? field.deferredValidationTime : 200, onGetErrorMessage: function (value) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.fieldValidation(field, value)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }, inputClassName: \"PropertyFieldCollectionData__panel__string-field\" });\n }\n };\n /**\n * Retrieve all dropdown options\n */\n CollectionDataItem.prototype.getSortingOptions = function () {\n var opts = [];\n var totalItems = this.props.totalItems;\n for (var i = 1; i <= totalItems; i++) {\n opts.push({\n text: i.toString(),\n key: i\n });\n }\n return opts;\n };\n /**\n * Creates an empty item with a unique id\n */\n CollectionDataItem.prototype.generateEmptyItem = function () {\n // Create an empty item with all properties\n var emptyItem = {};\n emptyItem.uniqueId = Guid.newGuid().toString();\n for (var _i = 0, _a = this.props.fields; _i < _a.length; _i++) {\n var field = _a[_i];\n // Assign default value or null to the emptyItem\n emptyItem[field.id] = field.defaultValue || null;\n }\n return emptyItem;\n };\n /**\n * Default React render\n */\n CollectionDataItem.prototype.render = function () {\n var _this = this;\n var _a = this.state, crntItem = _a.crntItem, disableAdd = _a.disableAdd;\n var opts = this.getSortingOptions();\n return (React.createElement(\"div\", { className: \"PropertyFieldCollectionData__panel__table-row \" + styles.tableRow + \" \" + (this.props.index === null ? styles.tableFooter : \"\") },\n (this.props.sortingEnabled && this.props.totalItems) && (React.createElement(\"span\", { className: \"PropertyFieldCollectionData__panel__sorting-field \" + styles.tableCell },\n React.createElement(Dropdown, { options: opts, selectedKey: this.props.index + 1, onChanged: function (opt) { return _this.props.fOnSorting(_this.props.index, opt.key); } }))),\n (this.props.sortingEnabled && this.props.totalItems === null) && (React.createElement(\"span\", { className: \"\" + styles.tableCell })),\n this.props.fields.map(function (f) { return (React.createElement(\"span\", { key: \"dataitem-\" + f.id, className: styles.tableCell + \" \" + styles.inputField }, _this.renderField(f, crntItem))); }),\n React.createElement(\"span\", { className: styles.tableCell },\n React.createElement(\"span\", { ref: function (ref) { return _this.calloutCellRef = ref; } },\n React.createElement(Link, { title: strings.CollectionDataItemShowErrorsLabel, className: styles.errorCalloutLink, disabled: !this.state.errorMsgs || this.state.errorMsgs.length === 0, onClick: this.toggleErrorCallout },\n React.createElement(Icon, { iconName: \"Error\" }))),\n this.state.showCallout && (React.createElement(Callout, { className: styles.errorCallout, target: this.calloutCellRef, isBeakVisible: true, directionalHint: DirectionalHint.bottomLeftEdge, directionalHintForRTL: DirectionalHint.rightBottomEdge, onDismiss: this.hideErrorCallout }, (this.state.errorMsgs && this.state.errorMsgs.length > 0) && (React.createElement(\"div\", { className: styles.errorMsgs },\n React.createElement(\"p\", null, \"Field issues:\"),\n React.createElement(\"ul\", null, this.state.errorMsgs.map(function (msg, idx) { return (React.createElement(\"li\", { key: msg.field + \"-\" + idx },\n React.createElement(\"b\", null, msg.field),\n \": \",\n msg.message ? msg.message : msg.isRequired ? strings.CollectionDataItemFieldRequiredLabel : null)); }))))))),\n React.createElement(\"span\", { className: styles.tableCell }, \n /* Check add or delete action */\n this.props.index !== null ? (React.createElement(Link, { title: strings.CollectionDeleteRowButtonLabel, disabled: !this.props.fDeleteItem || this.props.disableItemDeletion, onClick: this.deleteRow },\n React.createElement(Icon, { iconName: \"Clear\" }))) : (React.createElement(Link, { title: strings.CollectionAddRowButtonLabel, className: \"\" + (disableAdd ? \"\" : styles.addBtn), disabled: disableAdd, onClick: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.addRow()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); } },\n React.createElement(Icon, { iconName: \"Add\" }))))));\n };\n return CollectionDataItem;\n}(React.Component));\nexport { CollectionDataItem };\n"
356509
+ "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};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport * as React from 'react';\nimport styles from '../PropertyFieldCollectionDataHost.module.scss';\nimport { TextField } from 'office-ui-fabric-react/lib/components/TextField';\nimport { Icon } from 'office-ui-fabric-react/lib/components/Icon';\nimport { Link } from 'office-ui-fabric-react/lib/components/Link';\nimport * as strings from 'PropertyControlStrings';\nimport { CustomCollectionFieldType } from '..';\nimport { Dropdown } from 'office-ui-fabric-react/lib/components/Dropdown';\nimport { Callout, DirectionalHint } from 'office-ui-fabric-react/lib/components/Callout';\nimport { CollectionIconField } from '../collectionIconField';\nimport { clone, findIndex, sortBy } from '@microsoft/sp-lodash-subset';\nimport { CollectionNumberField } from '../collectionNumberField';\nimport { CollectionColorField } from '../collectionColorField';\nimport { Guid } from '@microsoft/sp-core-library';\nimport { CollectionDropdownField } from '../collectionDropdownField/CollectionDropdownField';\nimport { CollectionCheckboxField } from '../collectionCheckboxField/CollectionCheckboxField';\nvar CollectionDataItem = /** @class */ (function (_super) {\n __extends(CollectionDataItem, _super);\n function CollectionDataItem(props) {\n var _this = _super.call(this, props) || this;\n _this.emptyItem = null;\n _this.validation = {};\n /**\n * Update the item value on the field change\n */\n _this.onValueChanged = function (fieldId, value) {\n return new Promise(function (resolve) { return _this.setState(function (prevState) {\n var crntItem = prevState.crntItem;\n // Update the changed field\n crntItem[fieldId] = value;\n // Store this in the current state\n return { crntItem: crntItem };\n }, function () { return resolve(); }); });\n };\n /**\n * Add the current row to the collection\n */\n _this.addRow = function () { return __awaiter(_this, void 0, void 0, function () {\n var crntItem, emptyItem;\n return __generator(this, function (_a) {\n if (this.props.fAddItem) {\n crntItem = this.state.crntItem;\n // Check if all the fields are correctly provided\n if (this.checkRowIsValidForSave(crntItem)) {\n this.props.fAddItem(crntItem);\n emptyItem = this.generateEmptyItem();\n this.setState({\n crntItem: __assign({}, emptyItem)\n });\n }\n }\n return [2 /*return*/];\n });\n }); };\n /**\n * Add the current row to the collection\n */\n _this.updateItem = function () { return __awaiter(_this, void 0, void 0, function () {\n var crntItem, isValid;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n crntItem = this.state.crntItem;\n return [4 /*yield*/, this.checkRowIsValidForSave(crntItem)];\n case 1:\n isValid = _a.sent();\n if (this.props.fUpdateItem) {\n // Check if all the fields are correctly provided\n if (isValid) {\n this.props.fUpdateItem(this.props.index, crntItem);\n }\n }\n // Set the validation for the item\n if (this.props.fValidation) {\n this.props.fValidation(this.props.index, isValid);\n }\n return [2 /*return*/];\n }\n });\n }); };\n /**\n * Delete the item from the collection\n */\n _this.deleteRow = function () {\n if (_this.props.fDeleteItem) {\n _this.props.fDeleteItem(_this.props.index);\n }\n };\n /**\n * Allow custom field validation\n *\n * @param field\n * @param value\n */\n _this.fieldValidation = function (field, value) { return __awaiter(_this, void 0, void 0, function () {\n var validation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n validation = \"\";\n if (!field.onGetErrorMessage) return [3 /*break*/, 2];\n // Set initial field validation\n this.validation[field.id] = false;\n return [4 /*yield*/, field.onGetErrorMessage(value, this.props.index, this.state.crntItem)];\n case 1:\n // Do the validation\n validation = _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/, this.storeFieldValidation(field.id, validation, true)];\n }\n });\n }); };\n /**\n * Custom field validation\n */\n _this.onCustomFieldValidation = function (fieldId, errorMsg) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n console.log(fieldId, errorMsg);\n if (!fieldId) return [3 /*break*/, 2];\n return [4 /*yield*/, this.storeFieldValidation(fieldId, errorMsg, true)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); };\n /**\n * URL field validation\n *\n * @param field\n * @param value\n * @param item\n */\n _this.urlFieldValidation = function (field, value, item) { return __awaiter(_this, void 0, void 0, function () {\n var isValid, validation, regEx;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n isValid = true;\n validation = \"\";\n if (!field.onGetErrorMessage) return [3 /*break*/, 2];\n return [4 /*yield*/, field.onGetErrorMessage(value, this.props.index, item)];\n case 1:\n // Using the custom validation\n validation = _a.sent();\n isValid = validation === \"\";\n return [3 /*break*/, 3];\n case 2:\n regEx = /(http|https)?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&\\/\\/=]*)/;\n isValid = (value === null || value.length === 0 || regEx.test(value));\n validation = isValid ? \"\" : strings.InvalidUrlError;\n _a.label = 3;\n case 3: return [2 /*return*/, this.storeFieldValidation(field.id, validation, true)];\n }\n });\n }); };\n /**\n * Toggle the error callout\n */\n _this.toggleErrorCallout = function () {\n _this.setState(function (prevState) { return ({\n showCallout: !prevState.showCallout\n }); });\n };\n _this.hideErrorCallout = function () {\n _this.setState({\n showCallout: false\n });\n };\n // Create an empty item with all properties\n var emptyItem = _this.generateEmptyItem();\n _this.state = {\n crntItem: clone(_this.props.item) || __assign({}, emptyItem),\n errorMsgs: [],\n showCallout: false,\n disableAdd: false\n };\n return _this;\n }\n /**\n * componentDidUpdate lifecycle hook\n * @param prevProps\n * @param prevState\n */\n CollectionDataItem.prototype.componentDidUpdate = function (prevProps) {\n if (this.props.item !== prevProps.item) {\n this.setState({\n crntItem: clone(this.props.item)\n });\n }\n };\n /**\n * Perform all required field checks at once\n */\n CollectionDataItem.prototype.doAllFieldChecks = function () {\n return __awaiter(this, void 0, void 0, function () {\n var crntItem, disableAdd;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n crntItem = this.state.crntItem;\n disableAdd = null;\n if (!this.props.fAddInCreation) return [3 /*break*/, 2];\n return [4 /*yield*/, this.checkRowIsValidForSave(crntItem)];\n case 1:\n if (_a.sent()) {\n disableAdd = false;\n this.props.fAddInCreation(crntItem, true);\n }\n else {\n disableAdd = true;\n this.props.fAddInCreation(crntItem, false);\n }\n _a.label = 2;\n case 2:\n this.setState({ disableAdd: disableAdd });\n if (!this.props.fUpdateItem) return [3 /*break*/, 4];\n return [4 /*yield*/, this.updateItem()];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Check if all values of the required fields are provided\n */\n CollectionDataItem.prototype.checkAllRequiredFieldsValid = function (item) {\n // Get all the required fields\n var requiredFields = this.props.fields.filter(function (f) { return f.required; });\n // Check all the required field values\n for (var _i = 0, requiredFields_1 = requiredFields; _i < requiredFields_1.length; _i++) {\n var field = requiredFields_1[_i];\n if (typeof item[field.id] === \"undefined\" || item[field.id] === null || item[field.id] === \"\") {\n return false;\n }\n }\n return true;\n };\n /**\n * Check if any of the fields contain a value\n * @param item\n */\n CollectionDataItem.prototype.checkAnyFieldContainsValue = function (item) {\n var fields = this.props.fields;\n for (var _i = 0, fields_1 = fields; _i < fields_1.length; _i++) {\n var field = fields_1[_i];\n if (typeof item[field.id] !== \"undefined\" && item[field.id] !== null && item[field.id] !== \"\") {\n return true;\n }\n }\n return false;\n };\n /**\n * Check onGetCustomErrorMessage\n * @param item\n */\n CollectionDataItem.prototype.checkAnyFieldCustomErrorMessage = function (item) {\n return __awaiter(this, void 0, void 0, function () {\n var _a, fields, index, validations;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this.props, fields = _a.fields, index = _a.index;\n return [4 /*yield*/, Promise.all(fields.filter(function (f) { return f.onGetErrorMessage; }).map(function (f) { return __awaiter(_this, void 0, void 0, function () {\n var validation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, f.onGetErrorMessage(item[f.id], index, item)];\n case 1:\n validation = _a.sent();\n return [2 /*return*/, this.storeFieldValidation(f.id, validation)];\n }\n });\n }); }))];\n case 1:\n validations = _b.sent();\n return [2 /*return*/, validations.filter(function (v) { return v && v.length > 0; }).length == 0];\n }\n });\n });\n };\n /**\n * Check if row is ready for save\n */\n CollectionDataItem.prototype.checkRowIsValidForSave = function (item) {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this.checkAllRequiredFieldsValid(item) &&\n this.checkAnyFieldContainsValue(item);\n if (!_a) return [3 /*break*/, 2];\n return [4 /*yield*/, this.checkAnyFieldCustomErrorMessage(item)];\n case 1:\n _a = (_b.sent());\n _b.label = 2;\n case 2: return [2 /*return*/, _a &&\n this.checkAllFieldsAreValid()];\n }\n });\n });\n };\n /**\n * Checks if all fields are valid\n */\n CollectionDataItem.prototype.checkAllFieldsAreValid = function () {\n if (this.validation) {\n var keys = Object.keys(this.validation);\n for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {\n var key = keys_1[_i];\n if (!this.validation[key]) {\n return false;\n }\n }\n }\n return true;\n };\n /**\n * Updates callout and validation state\n */\n CollectionDataItem.prototype.storeFieldValidation = function (fieldId, validation, doAllFieldChecks) {\n if (doAllFieldChecks === void 0) { doAllFieldChecks = false; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n // Store the field validation\n this.validation[fieldId] = validation === \"\";\n // Add message for the error callout\n this.errorCalloutHandler(fieldId, validation);\n if (!doAllFieldChecks) return [3 /*break*/, 2];\n return [4 /*yield*/, this.doAllFieldChecks()];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/, validation];\n }\n });\n });\n };\n /**\n * Error callout message handler\n *\n * @param field\n * @param message\n */\n CollectionDataItem.prototype.errorCalloutHandler = function (fieldId, message) {\n var _this = this;\n this.setState(function (prevState) {\n var crntItem = prevState.crntItem, errorMsgs = prevState.errorMsgs;\n // Get the current field\n var fieldIdx = findIndex(_this.props.fields, function (f) { return f.id === fieldId; });\n if (fieldIdx === -1) {\n return;\n }\n var field = _this.props.fields[fieldIdx];\n // Check if there already is a message for the field\n var fieldMsgIdx = findIndex(errorMsgs, function (msg) { return msg.field === field.title; });\n // Add message\n var fieldMsg;\n if (fieldMsgIdx === -1) {\n fieldMsg = {\n field: field.title,\n message: message\n };\n }\n else {\n // Update message\n fieldMsg = errorMsgs[fieldMsgIdx];\n if (fieldMsg) {\n fieldMsg.message = message;\n }\n }\n // Check if field required message needs to be shown\n if (field.required) {\n if (typeof crntItem[field.id] === \"undefined\" || crntItem[field.id] === null || crntItem[field.id] === \"\") {\n fieldMsg.isRequired = true;\n }\n else {\n fieldMsg.isRequired = false;\n }\n }\n // If required and message are false, it doesn't need to be added\n if (!fieldMsg.message && !fieldMsg.isRequired) {\n // Remove the item\n if (fieldMsgIdx !== -1) {\n errorMsgs.splice(fieldMsgIdx, 1);\n }\n }\n else {\n if (fieldMsgIdx === -1) {\n errorMsgs.push(fieldMsg);\n }\n }\n // Sort based on the index\n errorMsgs = sortBy(errorMsgs, [\"field\"]);\n return {\n errorMsgs: errorMsgs\n };\n });\n };\n /**\n * Render the field\n *\n * @param field\n * @param item\n */\n CollectionDataItem.prototype.renderField = function (field, item) {\n var _this = this;\n var disableFieldOnEdit = field.disableEdit && !!this.props.fUpdateItem;\n switch (field.type) {\n case CustomCollectionFieldType.boolean:\n return React.createElement(CollectionCheckboxField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.dropdown:\n return React.createElement(CollectionDropdownField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.number:\n return React.createElement(CollectionNumberField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.fabricIcon:\n return React.createElement(CollectionIconField, { renderMode: field.iconFieldRenderMode, field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.color:\n return React.createElement(CollectionColorField, { field: field, item: item, disableEdit: disableFieldOnEdit, fOnValueChange: this.onValueChanged, fValidation: this.fieldValidation });\n case CustomCollectionFieldType.url:\n return React.createElement(TextField, { placeholder: field.placeholder || field.title, value: item[field.id] ? item[field.id] : \"\", required: field.required, disabled: disableFieldOnEdit, className: styles.collectionDataField, onChange: function (e, value) { return _this.onValueChanged(field.id, value); }, deferredValidationTime: field.deferredValidationTime || field.deferredValidationTime >= 0 ? field.deferredValidationTime : 200, onGetErrorMessage: function (value) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n return [2 /*return*/, this.urlFieldValidation(field, value, item)];\n }); }); }, inputClassName: \"PropertyFieldCollectionData__panel__url-field\" });\n case CustomCollectionFieldType.custom:\n if (field.onCustomRender) {\n return field.onCustomRender(field, item[field.id], function (fieldId, value) {\n _this.onValueChanged(fieldId, value);\n if (field.onGetErrorMessage) {\n _this.fieldValidation(field, value);\n }\n }, item, item.uniqueId, this.onCustomFieldValidation);\n }\n return null;\n case CustomCollectionFieldType.string:\n default:\n return React.createElement(TextField, { placeholder: field.placeholder || field.title, className: styles.collectionDataField, value: item[field.id] ? item[field.id] : \"\", required: field.required, disabled: disableFieldOnEdit, onChange: function (e, value) { return _this.onValueChanged(field.id, value); }, deferredValidationTime: field.deferredValidationTime || field.deferredValidationTime >= 0 ? field.deferredValidationTime : 200, onGetErrorMessage: function (value) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.fieldValidation(field, value)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }, inputClassName: \"PropertyFieldCollectionData__panel__string-field\" });\n }\n };\n /**\n * Retrieve all dropdown options\n */\n CollectionDataItem.prototype.getSortingOptions = function () {\n var opts = [];\n var totalItems = this.props.totalItems;\n for (var i = 1; i <= totalItems; i++) {\n opts.push({\n text: i.toString(),\n key: i\n });\n }\n return opts;\n };\n /**\n * Creates an empty item with a unique id\n */\n CollectionDataItem.prototype.generateEmptyItem = function () {\n // Create an empty item with all properties\n var emptyItem = {};\n emptyItem.uniqueId = Guid.newGuid().toString();\n for (var _i = 0, _a = this.props.fields; _i < _a.length; _i++) {\n var field = _a[_i];\n // Assign default value or null to the emptyItem\n emptyItem[field.id] = field.defaultValue || null;\n }\n return emptyItem;\n };\n /**\n * Default React render\n */\n CollectionDataItem.prototype.render = function () {\n var _this = this;\n var _a = this.state, crntItem = _a.crntItem, disableAdd = _a.disableAdd;\n var opts = this.getSortingOptions();\n return (React.createElement(\"div\", { className: \"PropertyFieldCollectionData__panel__table-row \" + styles.tableRow + \" \" + (this.props.index === null ? styles.tableFooter : \"\") },\n (this.props.sortingEnabled && this.props.totalItems) && (React.createElement(\"span\", { className: \"PropertyFieldCollectionData__panel__sorting-field \" + styles.tableCell },\n React.createElement(Dropdown, { options: opts, selectedKey: this.props.index + 1, onChanged: function (opt) { return _this.props.fOnSorting(_this.props.index, opt.key); } }))),\n (this.props.sortingEnabled && this.props.totalItems === null) && (React.createElement(\"span\", { className: \"\" + styles.tableCell })),\n this.props.fields.map(function (f) { return (React.createElement(\"span\", { key: \"dataitem-\" + f.id, className: styles.tableCell + \" \" + styles.inputField }, _this.renderField(f, crntItem))); }),\n React.createElement(\"span\", { className: styles.tableCell },\n React.createElement(\"span\", { ref: function (ref) { return _this.calloutCellRef = ref; } },\n React.createElement(Link, { title: strings.CollectionDataItemShowErrorsLabel, className: styles.errorCalloutLink, disabled: !this.state.errorMsgs || this.state.errorMsgs.length === 0, onClick: this.toggleErrorCallout },\n React.createElement(Icon, { iconName: \"Error\" }))),\n this.state.showCallout && (React.createElement(Callout, { className: styles.errorCallout, target: this.calloutCellRef, isBeakVisible: true, directionalHint: DirectionalHint.bottomLeftEdge, directionalHintForRTL: DirectionalHint.rightBottomEdge, onDismiss: this.hideErrorCallout }, (this.state.errorMsgs && this.state.errorMsgs.length > 0) && (React.createElement(\"div\", { className: styles.errorMsgs },\n React.createElement(\"p\", null, \"Field issues:\"),\n React.createElement(\"ul\", null, this.state.errorMsgs.map(function (msg, idx) { return (React.createElement(\"li\", { key: msg.field + \"-\" + idx },\n React.createElement(\"b\", null, msg.field),\n \": \",\n msg.message ? msg.message : msg.isRequired ? strings.CollectionDataItemFieldRequiredLabel : null)); }))))))),\n React.createElement(\"span\", { className: styles.tableCell }, \n /* Check add or delete action */\n this.props.index !== null ? (React.createElement(Link, { title: strings.CollectionDeleteRowButtonLabel, disabled: !this.props.fDeleteItem || this.props.disableItemDeletion, onClick: this.deleteRow },\n React.createElement(Icon, { iconName: \"Clear\" }))) : (React.createElement(Link, { title: strings.CollectionAddRowButtonLabel, className: \"\" + (disableAdd ? styles.addBtnDisabled : styles.addBtn), disabled: disableAdd, onClick: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.addRow()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); } },\n React.createElement(Icon, { iconName: \"Add\" }))))));\n };\n return CollectionDataItem;\n}(React.Component));\nexport { CollectionDataItem };\n"
356492
356510
  },
356493
356511
  {
356494
356512
  "id": "Z3ef",
@@ -388076,7 +388094,7 @@
388076
388094
  ],
388077
388095
  "optimizationBailout": [],
388078
388096
  "depth": 4,
388079
- "source": "export var version = \"3.8.0-beta.2337140\";\n"
388097
+ "source": "export var version = \"3.8.0-beta.2598276\";\n"
388080
388098
  },
388081
388099
  {
388082
388100
  "id": "cLrF",
@@ -402659,7 +402677,7 @@
402659
402677
  "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src??postcss!./lib/propertyFields/collectionData/PropertyFieldCollectionDataHost.module.css",
402660
402678
  "index": 1115,
402661
402679
  "index2": 1107,
402662
- "size": 2615,
402680
+ "size": 2654,
402663
402681
  "cacheable": true,
402664
402682
  "built": true,
402665
402683
  "optional": false,
@@ -402730,7 +402748,7 @@
402730
402748
  "providedExports": null,
402731
402749
  "optimizationBailout": [],
402732
402750
  "depth": 8,
402733
- "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".collectionData_836ee970{background-color:#edebe9;padding:10px}.noCollectionData_836ee970{text-align:center}.panelActions_836ee970{margin-top:15px;text-align:right}.panelActions_836ee970 button{margin-right:15px}.panelActions_836ee970 button:last-child{margin-right:0}.required_836ee970{color:#d83b01;font-size:8px;vertical-align:super}.addBtn_836ee970{color:#0078d4}.inputField_836ee970{color:inherit}.numberField_836ee970{box-sizing:border-box;box-shadow:none;margin:0;padding:0;border:1px solid #a19f9d;background:#fff;height:32px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;position:relative}.numberField_836ee970:hover{border-color:#201f1e}.numberField_836ee970 input{box-sizing:border-box;box-shadow:none;margin:0;font-size:14px;border-radius:0;border:none;background:0 0;color:#323130;padding:0 12px 0 12px;width:100%;text-overflow:ellipsis;outline:0}.numberField_836ee970.invalidField_836ee970{border-color:#a80000}.iconField_836ee970{position:relative}.iconField_836ee970 i{font-size:20px;position:absolute;top:0;right:10px;vertical-align:top}.iconPicker_836ee970{display:-ms-flexbox;display:flex}.iconPicker_836ee970 .requiredField_836ee970{vertical-align:super;display:inline-block}.colorField_836ee970{position:relative}.colorField_836ee970 .colorIndicator_836ee970{width:30px;height:30px;border:1px solid #a6a6a6}.collectionDataField_836ee970>span{display:none}.collectionDataField_836ee970 div[class^=invalid_]{border-color:#a80000!important}.table_836ee970{display:table;width:100%;border-collapse:collapse}.tableRow_836ee970{display:table-row;line-height:30px}.tableRow_836ee970:hover{background-color:#f3f2f1;cursor:pointer;outline:1px solid transparent}.tableRow_836ee970.tableFooter_836ee970{background-color:#edebe9;border-top:1px solid #a19f9d}.tableCell_836ee970{display:table-cell;padding:0 10px;vertical-align:middle}.tableCell_836ee970>div,.tableCell_836ee970>div.ms-TextField{margin-bottom:8px;margin-top:8px}.errorCallout_836ee970{padding:0 15px;min-width:200px}.errorCalloutLink_836ee970:not([disabled]){color:#a80000}.errorMsgs_836ee970{font-size:14px;font-weight:400}.errorMsgs_836ee970 p{font-size:17px;font-weight:300}.errorMsgs_836ee970 ul{padding-left:15px}.errorMsgs_836ee970 li{color:#a80000}.tableHead_836ee970{font-weight:300;font-size:12px;color:#605e5c}.tableHead_836ee970 .tableCell_836ee970{font-weight:400;text-align:left;border-bottom:1px solid #a19f9d}\", \"\"]);\n"
402751
+ "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".collectionData_f8375039{background-color:#edebe9;padding:10px}.noCollectionData_f8375039{text-align:center}.panelActions_f8375039{margin-top:15px;text-align:right}.panelActions_f8375039 button{margin-right:15px}.panelActions_f8375039 button:last-child{margin-right:0}.required_f8375039{color:#d83b01;font-size:8px;vertical-align:super}.addBtn_f8375039{color:#0078d4}.addBtnDisabled_f8375039{color:#d2d0ce}.inputField_f8375039{color:inherit}.numberField_f8375039{box-sizing:border-box;box-shadow:none;margin:0;padding:0;border:1px solid #a19f9d;background:#fff;height:32px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;position:relative}.numberField_f8375039:hover{border-color:#201f1e}.numberField_f8375039 input{box-sizing:border-box;box-shadow:none;margin:0;font-size:14px;border-radius:0;border:none;background:0 0;color:#323130;padding:0 12px 0 12px;width:100%;text-overflow:ellipsis;outline:0}.numberField_f8375039.invalidField_f8375039{border-color:#a80000}.iconField_f8375039{position:relative}.iconField_f8375039 i{font-size:20px;position:absolute;top:0;right:10px;vertical-align:top}.iconPicker_f8375039{display:-ms-flexbox;display:flex}.iconPicker_f8375039 .requiredField_f8375039{vertical-align:super;display:inline-block}.colorField_f8375039{position:relative}.colorField_f8375039 .colorIndicator_f8375039{width:30px;height:30px;border:1px solid #a6a6a6}.collectionDataField_f8375039>span{display:none}.collectionDataField_f8375039 div[class^=invalid_]{border-color:#a80000!important}.table_f8375039{display:table;width:100%;border-collapse:collapse}.tableRow_f8375039{display:table-row;line-height:30px}.tableRow_f8375039:hover{background-color:#f3f2f1;cursor:pointer;outline:1px solid transparent}.tableRow_f8375039.tableFooter_f8375039{background-color:#edebe9;border-top:1px solid #a19f9d}.tableCell_f8375039{display:table-cell;padding:0 10px;vertical-align:middle}.tableCell_f8375039>div,.tableCell_f8375039>div.ms-TextField{margin-bottom:8px;margin-top:8px}.errorCallout_f8375039{padding:0 15px;min-width:200px}.errorCalloutLink_f8375039:not([disabled]){color:#a80000}.errorMsgs_f8375039{font-size:14px;font-weight:400}.errorMsgs_f8375039 p{font-size:17px;font-weight:300}.errorMsgs_f8375039 ul{padding-left:15px}.errorMsgs_f8375039 li{color:#a80000}.tableHead_f8375039{font-weight:300;font-size:12px;color:#605e5c}.tableHead_f8375039 .tableCell_f8375039{font-weight:400;text-align:left;border-bottom:1px solid #a19f9d}\", \"\"]);\n"
402734
402752
  },
402735
402753
  {
402736
402754
  "id": "hq+I",