@pnp/spfx-property-controls 3.4.0-beta.1671773 → 3.4.0-beta.1671802

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
@@ -10,7 +10,8 @@
10
10
  "fixes": [
11
11
  "`PropertyFieldSearch`: documentation fix [#417](https://github.com/pnp/sp-dev-fx-property-controls/pull/417)",
12
12
  "`FilePicker`: cannot find library by its name in multilingual sites [#389](https://github.com/pnp/sp-dev-fx-property-controls/issues/389)",
13
- "`PropertyFieldDateTimePicker`: `formatDate` property doesn't apply to the textbox value in the property pane [#388](https://github.com/pnp/sp-dev-fx-property-controls/issues/388)"
13
+ "`PropertyFieldDateTimePicker`: `formatDate` property doesn't apply to the textbox value in the property pane [#388](https://github.com/pnp/sp-dev-fx-property-controls/issues/388)",
14
+ "`PropertyFieldCollectionData`: number input shows placeholder instead of 0 [#379](https://github.com/pnp/sp-dev-fx-property-controls/issues/379)"
14
15
  ]
15
16
  },
16
17
  "contributions": [
package/CHANGELOG.md CHANGED
@@ -11,6 +11,7 @@
11
11
  - `PropertyFieldSearch`: documentation fix [#417](https://github.com/pnp/sp-dev-fx-property-controls/pull/417)
12
12
  - `FilePicker`: cannot find library by its name in multilingual sites [#389](https://github.com/pnp/sp-dev-fx-property-controls/issues/389)
13
13
  - `PropertyFieldDateTimePicker`: `formatDate` property doesn't apply to the textbox value in the property pane [#388](https://github.com/pnp/sp-dev-fx-property-controls/issues/388)
14
+ - `PropertyFieldCollectionData`: number input shows placeholder instead of 0 [#379](https://github.com/pnp/sp-dev-fx-property-controls/issues/379)
14
15
 
15
16
  ### Contributors
16
17
 
@@ -1,2 +1,2 @@
1
- export var version = "3.4.0-beta.1671773";
1
+ export var version = "3.4.0-beta.1671802";
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CollectionNumberField.d.ts","sourceRoot":"","sources":["../../../../src/propertyFields/collectionData/collectionNumberField/CollectionNumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,GAAG,CAAC;AAI7E,qBAAa,qBAAsB,SAAQ,KAAK,CAAC,SAAS,CAAC,2BAA2B,EAAE,2BAA2B,CAAC;IAClH,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,eAAe,CAA4D;gBAEvE,KAAK,EAAE,2BAA2B;IAY9C;;OAEG;IACI,kBAAkB,IAAI,IAAI;IAOjC;;;;;OAKG;IACI,mBAAmB,CAAC,SAAS,EAAE,2BAA2B,EAAE,SAAS,EAAE,2BAA2B,GAAG,IAAI;IAQhH;;;;;OAKG;IACH,OAAO,CAAC,WAAW,CAOlB;IAED;;OAEG;IACH,OAAO,CAAC,eAAe,CAOtB;IAED;;OAEG;IACI,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,2BAA2B,CAAC;CAgBjE"}
1
+ {"version":3,"file":"CollectionNumberField.d.ts","sourceRoot":"","sources":["../../../../src/propertyFields/collectionData/collectionNumberField/CollectionNumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,GAAG,CAAC;AAI7E,qBAAa,qBAAsB,SAAQ,KAAK,CAAC,SAAS,CAAC,2BAA2B,EAAE,2BAA2B,CAAC;IAClH,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,eAAe,CAA4D;gBAEvE,KAAK,EAAE,2BAA2B;IAY9C;;OAEG;IACI,kBAAkB,IAAI,IAAI;IAOjC;;;;;OAKG;IACI,mBAAmB,CAAC,SAAS,EAAE,2BAA2B,EAAE,SAAS,EAAE,2BAA2B,GAAG,IAAI;IAQhH;;;;;OAKG;IACH,OAAO,CAAC,WAAW,CAOlB;IAED;;OAEG;IACH,OAAO,CAAC,eAAe,CAOtB;IAED;;OAEG;IACI,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,2BAA2B,CAAC;CAoBjE"}
@@ -131,8 +131,9 @@ var CollectionNumberField = /** @class */ (function (_super) {
131
131
  */
132
132
  CollectionNumberField.prototype.render = function () {
133
133
  var _this = this;
134
- return (React.createElement("div", { className: "PropertyFieldCollectionData__panel__number-field " + styles.numberField + " " + (this.state.errorMessage ? styles.invalidField : "") },
135
- React.createElement("input", { type: "number", role: "spinbutton", placeholder: this.props.field.placeholder || this.props.field.title, "aria-valuemax": 99999, "aria-valuemin": -999999, "aria-valuenow": this.props.item[this.props.field.id] || '', "aria-invalid": !!this.state.errorMessage, value: this.state.value || '', onChange: function (ev) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
134
+ var _a = this.state, errorMessage = _a.errorMessage, value = _a.value;
135
+ return (React.createElement("div", { className: "PropertyFieldCollectionData__panel__number-field " + styles.numberField + " " + (errorMessage ? styles.invalidField : "") },
136
+ React.createElement("input", { type: "number", role: "spinbutton", placeholder: this.props.field.placeholder || this.props.field.title, "aria-valuemax": 99999, "aria-valuemin": -999999, "aria-valuenow": this.props.item[this.props.field.id] || '', "aria-invalid": !!errorMessage, value: (!value && value !== 0) ? '' : value, onChange: function (ev) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
136
137
  switch (_a.label) {
137
138
  case 0: return [4 /*yield*/, this.valueChange(this.props.field, ev.target.value)];
138
139
  case 1: return [2 /*return*/, _a.sent()];
@@ -1 +1 @@
1
- {"version":3,"file":"CollectionNumberField.js","sourceRoot":"","sources":["../../../../src/propertyFields/collectionData/collectionNumberField/CollectionNumberField.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,gDAAgD,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CA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AAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,kBAC3C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,EACvC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,EAC7B,QAAQ,EAAE,UAAO,EAAE;;gCAAK,qBAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAA;gCAAzD,sBAAA,SAAyD,EAAA;;yBAAA,EACjF,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAAI,CACvC,CACP,CAAC;IACJ,CAAC;IACH,4BAAC;AAAD,CAAC,AAtFD,CAA2C,KAAK,CAAC,SAAS,GAsFzD"}
1
+ {"version":3,"file":"CollectionNumberField.js","sourceRoot":"","sources":["../../../../src/propertyFields/collectionData/collectionNumberField/CollectionNumberField.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,gDAAgD,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAG7D,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD;IAA2C,yCAAyE;IAIlH,+BAAY,KAAkC;QAA9C,YACE,kBAAM,KAAK,CAAC,SASb;QA0BD;;;;;WAKG;QACK,iBAAW,GAAG,UAAO,KAA6B,EAAE,KAAsB;;;;;wBAC1E,QAAQ,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;wBACrE,IAAI,CAAC,QAAQ,CAAC;4BACZ,KAAK,EAAE,QAAQ;yBAChB,CAAC,CAAC;wBACH,qBAAM,IAAI,CAA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AA,SAAyD,EAAA;;yBAAA,EACjF,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAAI,CACvC,CACP,CAAC;IACJ,CAAC;IACH,4BAAC;AAAD,CAAC,AA1FD,CAA2C,KAAK,CAAC,SAAS,GA0FzD"}
@@ -1,5 +1,5 @@
1
1
  export interface ICollectionNumberFieldState {
2
- value: number;
2
+ value: number | null | undefined;
3
3
  errorMessage: string;
4
4
  }
5
5
  //# sourceMappingURL=ICollectionNumberFieldState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ICollectionNumberFieldState.d.ts","sourceRoot":"","sources":["../../../../src/propertyFields/collectionData/collectionNumberField/ICollectionNumberFieldState.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"ICollectionNumberFieldState.d.ts","sourceRoot":"","sources":["../../../../src/propertyFields/collectionData/collectionNumberField/ICollectionNumberFieldState.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;CACtB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnp/spfx-property-controls",
3
3
  "description": "Reusable property pane controls for SharePoint Framework solutions",
4
- "version": "3.4.0-beta.1671773",
4
+ "version": "3.4.0-beta.1671802",
5
5
  "scripts": {
6
6
  "build": "gulp build",
7
7
  "clean": "gulp clean",
@@ -2,9 +2,9 @@
2
2
  "errors": [],
3
3
  "warnings": [],
4
4
  "version": "4.44.2",
5
- "hash": "f4bfb634493c388763ec",
6
- "time": 9699,
7
- "builtAt": 1641661560830,
5
+ "hash": "6fd528dc377a43b20d45",
6
+ "time": 9744,
7
+ "builtAt": 1641662370834,
8
8
  "publicPath": "",
9
9
  "outputPath": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/dist",
10
10
  "assetsByChunkName": {
@@ -264,7 +264,7 @@
264
264
  },
265
265
  {
266
266
  "name": "property-controls-test-web-part.js",
267
- "size": 9105137,
267
+ "size": 9105208,
268
268
  "chunks": [
269
269
  "property-controls-test-web-part"
270
270
  ],
@@ -277,7 +277,7 @@
277
277
  },
278
278
  {
279
279
  "name": "property-controls-test-web-part.js.map",
280
- "size": 8526880,
280
+ "size": 8527003,
281
281
  "chunks": [
282
282
  "property-controls-test-web-part"
283
283
  ],
@@ -325,7 +325,7 @@
325
325
  "rendered": true,
326
326
  "initial": true,
327
327
  "entry": true,
328
- "size": 6923609,
328
+ "size": 6923680,
329
329
  "names": [
330
330
  "property-controls-test-web-part"
331
331
  ],
@@ -333,7 +333,7 @@
333
333
  "property-controls-test-web-part.js",
334
334
  "property-controls-test-web-part.js.map"
335
335
  ],
336
- "hash": "d329ecd77f5941af6155",
336
+ "hash": "3000c7f2bb3161bc0e5b",
337
337
  "siblings": [],
338
338
  "parents": [],
339
339
  "children": [],
@@ -8162,9 +8162,9 @@
8162
8162
  "chunks": [
8163
8163
  "property-controls-test-web-part"
8164
8164
  ],
8165
- "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/brace/mode/html.js",
8166
- "issuerId": "vp08",
8167
- "issuerName": "./node_modules/brace/mode/html.js",
8165
+ "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/brace/mode/handlebars.js",
8166
+ "issuerId": "W7H4",
8167
+ "issuerName": "./node_modules/brace/mode/handlebars.js",
8168
8168
  "issuerPath": [
8169
8169
  {
8170
8170
  "id": "fd0V",
@@ -8187,9 +8187,9 @@
8187
8187
  "name": "./lib/propertyFields/codeEditor/PropertyFieldCodeEditorHost.js"
8188
8188
  },
8189
8189
  {
8190
- "id": "vp08",
8191
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/brace/mode/html.js",
8192
- "name": "./node_modules/brace/mode/html.js"
8190
+ "id": "W7H4",
8191
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/brace/mode/handlebars.js",
8192
+ "name": "./node_modules/brace/mode/handlebars.js"
8193
8193
  }
8194
8194
  ],
8195
8195
  "failed": false,
@@ -19010,7 +19010,7 @@
19010
19010
  "moduleName": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
19011
19011
  "type": "harmony import specifier",
19012
19012
  "userRequest": "../PropertyFieldCollectionDataHost.module.scss",
19013
- "loc": "134:110-116"
19013
+ "loc": "135:110-116"
19014
19014
  },
19015
19015
  {
19016
19016
  "moduleId": "Luwt",
@@ -19019,7 +19019,7 @@
19019
19019
  "moduleName": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
19020
19020
  "type": "harmony import specifier",
19021
19021
  "userRequest": "../PropertyFieldCollectionDataHost.module.scss",
19022
- "loc": "134:164-170"
19022
+ "loc": "135:153-159"
19023
19023
  },
19024
19024
  {
19025
19025
  "moduleId": "Nir2",
@@ -81461,7 +81461,7 @@
81461
81461
  "name": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
81462
81462
  "index": 846,
81463
81463
  "index2": 837,
81464
- "size": 7335,
81464
+ "size": 7406,
81465
81465
  "cacheable": true,
81466
81466
  "built": true,
81467
81467
  "optional": false,
@@ -81548,7 +81548,7 @@
81548
81548
  ],
81549
81549
  "optimizationBailout": [],
81550
81550
  "depth": 9,
81551
- "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 __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 { Async } from 'office-ui-fabric-react/lib/Utilities';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nvar CollectionNumberField = /** @class */ (function (_super) {\n __extends(CollectionNumberField, _super);\n function CollectionNumberField(props) {\n var _this = _super.call(this, props) || this;\n /**\n * Value change event handler\n *\n * @param field\n * @param value\n */\n _this.valueChange = function (field, value) { return __awaiter(_this, void 0, void 0, function () {\n var inputVal;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n inputVal = typeof value === \"string\" ? parseInt(value) : value;\n this.setState({\n value: inputVal\n });\n return [4 /*yield*/, this.props.fOnValueChange(field.id, value)];\n case 1:\n _a.sent();\n this.delayedValidate(field, inputVal);\n return [2 /*return*/];\n }\n });\n }); };\n /**\n * Delayed field validation\n */\n _this.valueValidation = 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: return [4 /*yield*/, this.props.fValidation(field, value)];\n case 1:\n validation = _a.sent();\n // Update the error message\n this.setState({\n errorMessage: validation\n });\n return [2 /*return*/];\n }\n });\n }); };\n _this.state = {\n value: null,\n errorMessage: ''\n };\n _this.async = new Async(_this);\n _this.delayedValidate = _this.async.debounce(_this.valueValidation, (_this.props.field.deferredValidationTime || _this.props.field.deferredValidationTime >= 0) ? _this.props.field.deferredValidationTime : 200);\n return _this;\n }\n /**\n * componentWillMount lifecycle hook\n */\n CollectionNumberField.prototype.componentWillMount = function () {\n this.setState({\n value: this.props.item[this.props.field.id]\n });\n this.valueChange(this.props.field, this.props.item[this.props.field.id]);\n };\n /**\n * componentWillUpdate lifecycle hook\n *\n * @param nextProps\n * @param nextState\n */\n CollectionNumberField.prototype.componentWillUpdate = function (nextProps, nextState) {\n if (!isEqual(nextProps.item, this.props.item)) {\n this.setState({\n value: nextProps.item[nextProps.field.id]\n });\n }\n };\n /**\n * Default React render method\n */\n CollectionNumberField.prototype.render = function () {\n var _this = this;\n return (React.createElement(\"div\", { className: \"PropertyFieldCollectionData__panel__number-field \" + styles.numberField + \" \" + (this.state.errorMessage ? styles.invalidField : \"\") },\n React.createElement(\"input\", { type: \"number\", role: \"spinbutton\", placeholder: this.props.field.placeholder || this.props.field.title, \"aria-valuemax\": 99999, \"aria-valuemin\": -999999, \"aria-valuenow\": this.props.item[this.props.field.id] || '', \"aria-invalid\": !!this.state.errorMessage, value: this.state.value || '', onChange: function (ev) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.valueChange(this.props.field, ev.target.value)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }, disabled: this.props.disableEdit })));\n };\n return CollectionNumberField;\n}(React.Component));\nexport { CollectionNumberField };\n"
81551
+ "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 __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 { Async } from 'office-ui-fabric-react/lib/Utilities';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nvar CollectionNumberField = /** @class */ (function (_super) {\n __extends(CollectionNumberField, _super);\n function CollectionNumberField(props) {\n var _this = _super.call(this, props) || this;\n /**\n * Value change event handler\n *\n * @param field\n * @param value\n */\n _this.valueChange = function (field, value) { return __awaiter(_this, void 0, void 0, function () {\n var inputVal;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n inputVal = typeof value === \"string\" ? parseInt(value) : value;\n this.setState({\n value: inputVal\n });\n return [4 /*yield*/, this.props.fOnValueChange(field.id, value)];\n case 1:\n _a.sent();\n this.delayedValidate(field, inputVal);\n return [2 /*return*/];\n }\n });\n }); };\n /**\n * Delayed field validation\n */\n _this.valueValidation = 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: return [4 /*yield*/, this.props.fValidation(field, value)];\n case 1:\n validation = _a.sent();\n // Update the error message\n this.setState({\n errorMessage: validation\n });\n return [2 /*return*/];\n }\n });\n }); };\n _this.state = {\n value: null,\n errorMessage: ''\n };\n _this.async = new Async(_this);\n _this.delayedValidate = _this.async.debounce(_this.valueValidation, (_this.props.field.deferredValidationTime || _this.props.field.deferredValidationTime >= 0) ? _this.props.field.deferredValidationTime : 200);\n return _this;\n }\n /**\n * componentWillMount lifecycle hook\n */\n CollectionNumberField.prototype.componentWillMount = function () {\n this.setState({\n value: this.props.item[this.props.field.id]\n });\n this.valueChange(this.props.field, this.props.item[this.props.field.id]);\n };\n /**\n * componentWillUpdate lifecycle hook\n *\n * @param nextProps\n * @param nextState\n */\n CollectionNumberField.prototype.componentWillUpdate = function (nextProps, nextState) {\n if (!isEqual(nextProps.item, this.props.item)) {\n this.setState({\n value: nextProps.item[nextProps.field.id]\n });\n }\n };\n /**\n * Default React render method\n */\n CollectionNumberField.prototype.render = function () {\n var _this = this;\n var _a = this.state, errorMessage = _a.errorMessage, value = _a.value;\n return (React.createElement(\"div\", { className: \"PropertyFieldCollectionData__panel__number-field \" + styles.numberField + \" \" + (errorMessage ? styles.invalidField : \"\") },\n React.createElement(\"input\", { type: \"number\", role: \"spinbutton\", placeholder: this.props.field.placeholder || this.props.field.title, \"aria-valuemax\": 99999, \"aria-valuemin\": -999999, \"aria-valuenow\": this.props.item[this.props.field.id] || '', \"aria-invalid\": !!errorMessage, value: (!value && value !== 0) ? '' : value, onChange: function (ev) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.valueChange(this.props.field, ev.target.value)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }, disabled: this.props.disableEdit })));\n };\n return CollectionNumberField;\n}(React.Component));\nexport { CollectionNumberField };\n"
81552
81552
  },
81553
81553
  {
81554
81554
  "id": "LxWX",
@@ -137075,7 +137075,7 @@
137075
137075
  "moduleName": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
137076
137076
  "type": "harmony import specifier",
137077
137077
  "userRequest": "react",
137078
- "loc": "134:16-35"
137078
+ "loc": "135:16-35"
137079
137079
  },
137080
137080
  {
137081
137081
  "moduleId": "Luwt",
@@ -137084,7 +137084,7 @@
137084
137084
  "moduleName": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
137085
137085
  "type": "harmony import specifier",
137086
137086
  "userRequest": "react",
137087
- "loc": "135:12-31"
137087
+ "loc": "136:12-31"
137088
137088
  },
137089
137089
  {
137090
137090
  "moduleId": "Luwt",
@@ -137093,7 +137093,7 @@
137093
137093
  "moduleName": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
137094
137094
  "type": "harmony import specifier",
137095
137095
  "userRequest": "react",
137096
- "loc": "143:2-17"
137096
+ "loc": "144:2-17"
137097
137097
  },
137098
137098
  {
137099
137099
  "moduleId": "MObJ",
@@ -150284,7 +150284,7 @@
150284
150284
  ],
150285
150285
  "optimizationBailout": [],
150286
150286
  "depth": 4,
150287
- "source": "export var version = \"3.4.0-beta.1671773\";\n"
150287
+ "source": "export var version = \"3.4.0-beta.1671802\";\n"
150288
150288
  },
150289
150289
  {
150290
150290
  "id": "cLrF",
@@ -238556,9 +238556,9 @@
238556
238556
  "chunks": [
238557
238557
  "property-controls-test-web-part"
238558
238558
  ],
238559
- "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/brace/mode/html.js",
238560
- "issuerId": "vp08",
238561
- "issuerName": "./node_modules/brace/mode/html.js",
238559
+ "issuer": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/brace/mode/handlebars.js",
238560
+ "issuerId": "W7H4",
238561
+ "issuerName": "./node_modules/brace/mode/handlebars.js",
238562
238562
  "issuerPath": [
238563
238563
  {
238564
238564
  "id": "fd0V",
@@ -238581,9 +238581,9 @@
238581
238581
  "name": "./lib/propertyFields/codeEditor/PropertyFieldCodeEditorHost.js"
238582
238582
  },
238583
238583
  {
238584
- "id": "vp08",
238585
- "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/brace/mode/html.js",
238586
- "name": "./node_modules/brace/mode/html.js"
238584
+ "id": "W7H4",
238585
+ "identifier": "/home/runner/work/sp-dev-fx-property-controls/sp-dev-fx-property-controls/node_modules/brace/mode/handlebars.js",
238586
+ "name": "./node_modules/brace/mode/handlebars.js"
238587
238587
  }
238588
238588
  ],
238589
238589
  "failed": false,
@@ -249404,7 +249404,7 @@
249404
249404
  "moduleName": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
249405
249405
  "type": "harmony import specifier",
249406
249406
  "userRequest": "../PropertyFieldCollectionDataHost.module.scss",
249407
- "loc": "134:110-116"
249407
+ "loc": "135:110-116"
249408
249408
  },
249409
249409
  {
249410
249410
  "moduleId": "Luwt",
@@ -249413,7 +249413,7 @@
249413
249413
  "moduleName": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
249414
249414
  "type": "harmony import specifier",
249415
249415
  "userRequest": "../PropertyFieldCollectionDataHost.module.scss",
249416
- "loc": "134:164-170"
249416
+ "loc": "135:153-159"
249417
249417
  },
249418
249418
  {
249419
249419
  "moduleId": "Nir2",
@@ -311879,7 +311879,7 @@
311879
311879
  "name": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
311880
311880
  "index": 846,
311881
311881
  "index2": 837,
311882
- "size": 7335,
311882
+ "size": 7406,
311883
311883
  "cacheable": true,
311884
311884
  "built": true,
311885
311885
  "optional": false,
@@ -311966,7 +311966,7 @@
311966
311966
  ],
311967
311967
  "optimizationBailout": [],
311968
311968
  "depth": 9,
311969
- "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 __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 { Async } from 'office-ui-fabric-react/lib/Utilities';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nvar CollectionNumberField = /** @class */ (function (_super) {\n __extends(CollectionNumberField, _super);\n function CollectionNumberField(props) {\n var _this = _super.call(this, props) || this;\n /**\n * Value change event handler\n *\n * @param field\n * @param value\n */\n _this.valueChange = function (field, value) { return __awaiter(_this, void 0, void 0, function () {\n var inputVal;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n inputVal = typeof value === \"string\" ? parseInt(value) : value;\n this.setState({\n value: inputVal\n });\n return [4 /*yield*/, this.props.fOnValueChange(field.id, value)];\n case 1:\n _a.sent();\n this.delayedValidate(field, inputVal);\n return [2 /*return*/];\n }\n });\n }); };\n /**\n * Delayed field validation\n */\n _this.valueValidation = 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: return [4 /*yield*/, this.props.fValidation(field, value)];\n case 1:\n validation = _a.sent();\n // Update the error message\n this.setState({\n errorMessage: validation\n });\n return [2 /*return*/];\n }\n });\n }); };\n _this.state = {\n value: null,\n errorMessage: ''\n };\n _this.async = new Async(_this);\n _this.delayedValidate = _this.async.debounce(_this.valueValidation, (_this.props.field.deferredValidationTime || _this.props.field.deferredValidationTime >= 0) ? _this.props.field.deferredValidationTime : 200);\n return _this;\n }\n /**\n * componentWillMount lifecycle hook\n */\n CollectionNumberField.prototype.componentWillMount = function () {\n this.setState({\n value: this.props.item[this.props.field.id]\n });\n this.valueChange(this.props.field, this.props.item[this.props.field.id]);\n };\n /**\n * componentWillUpdate lifecycle hook\n *\n * @param nextProps\n * @param nextState\n */\n CollectionNumberField.prototype.componentWillUpdate = function (nextProps, nextState) {\n if (!isEqual(nextProps.item, this.props.item)) {\n this.setState({\n value: nextProps.item[nextProps.field.id]\n });\n }\n };\n /**\n * Default React render method\n */\n CollectionNumberField.prototype.render = function () {\n var _this = this;\n return (React.createElement(\"div\", { className: \"PropertyFieldCollectionData__panel__number-field \" + styles.numberField + \" \" + (this.state.errorMessage ? styles.invalidField : \"\") },\n React.createElement(\"input\", { type: \"number\", role: \"spinbutton\", placeholder: this.props.field.placeholder || this.props.field.title, \"aria-valuemax\": 99999, \"aria-valuemin\": -999999, \"aria-valuenow\": this.props.item[this.props.field.id] || '', \"aria-invalid\": !!this.state.errorMessage, value: this.state.value || '', onChange: function (ev) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.valueChange(this.props.field, ev.target.value)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }, disabled: this.props.disableEdit })));\n };\n return CollectionNumberField;\n}(React.Component));\nexport { CollectionNumberField };\n"
311969
+ "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 __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 { Async } from 'office-ui-fabric-react/lib/Utilities';\nimport { isEqual } from '@microsoft/sp-lodash-subset';\nvar CollectionNumberField = /** @class */ (function (_super) {\n __extends(CollectionNumberField, _super);\n function CollectionNumberField(props) {\n var _this = _super.call(this, props) || this;\n /**\n * Value change event handler\n *\n * @param field\n * @param value\n */\n _this.valueChange = function (field, value) { return __awaiter(_this, void 0, void 0, function () {\n var inputVal;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n inputVal = typeof value === \"string\" ? parseInt(value) : value;\n this.setState({\n value: inputVal\n });\n return [4 /*yield*/, this.props.fOnValueChange(field.id, value)];\n case 1:\n _a.sent();\n this.delayedValidate(field, inputVal);\n return [2 /*return*/];\n }\n });\n }); };\n /**\n * Delayed field validation\n */\n _this.valueValidation = 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: return [4 /*yield*/, this.props.fValidation(field, value)];\n case 1:\n validation = _a.sent();\n // Update the error message\n this.setState({\n errorMessage: validation\n });\n return [2 /*return*/];\n }\n });\n }); };\n _this.state = {\n value: null,\n errorMessage: ''\n };\n _this.async = new Async(_this);\n _this.delayedValidate = _this.async.debounce(_this.valueValidation, (_this.props.field.deferredValidationTime || _this.props.field.deferredValidationTime >= 0) ? _this.props.field.deferredValidationTime : 200);\n return _this;\n }\n /**\n * componentWillMount lifecycle hook\n */\n CollectionNumberField.prototype.componentWillMount = function () {\n this.setState({\n value: this.props.item[this.props.field.id]\n });\n this.valueChange(this.props.field, this.props.item[this.props.field.id]);\n };\n /**\n * componentWillUpdate lifecycle hook\n *\n * @param nextProps\n * @param nextState\n */\n CollectionNumberField.prototype.componentWillUpdate = function (nextProps, nextState) {\n if (!isEqual(nextProps.item, this.props.item)) {\n this.setState({\n value: nextProps.item[nextProps.field.id]\n });\n }\n };\n /**\n * Default React render method\n */\n CollectionNumberField.prototype.render = function () {\n var _this = this;\n var _a = this.state, errorMessage = _a.errorMessage, value = _a.value;\n return (React.createElement(\"div\", { className: \"PropertyFieldCollectionData__panel__number-field \" + styles.numberField + \" \" + (errorMessage ? styles.invalidField : \"\") },\n React.createElement(\"input\", { type: \"number\", role: \"spinbutton\", placeholder: this.props.field.placeholder || this.props.field.title, \"aria-valuemax\": 99999, \"aria-valuemin\": -999999, \"aria-valuenow\": this.props.item[this.props.field.id] || '', \"aria-invalid\": !!errorMessage, value: (!value && value !== 0) ? '' : value, onChange: function (ev) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.valueChange(this.props.field, ev.target.value)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }, disabled: this.props.disableEdit })));\n };\n return CollectionNumberField;\n}(React.Component));\nexport { CollectionNumberField };\n"
311970
311970
  },
311971
311971
  {
311972
311972
  "id": "LxWX",
@@ -367493,7 +367493,7 @@
367493
367493
  "moduleName": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
367494
367494
  "type": "harmony import specifier",
367495
367495
  "userRequest": "react",
367496
- "loc": "134:16-35"
367496
+ "loc": "135:16-35"
367497
367497
  },
367498
367498
  {
367499
367499
  "moduleId": "Luwt",
@@ -367502,7 +367502,7 @@
367502
367502
  "moduleName": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
367503
367503
  "type": "harmony import specifier",
367504
367504
  "userRequest": "react",
367505
- "loc": "135:12-31"
367505
+ "loc": "136:12-31"
367506
367506
  },
367507
367507
  {
367508
367508
  "moduleId": "Luwt",
@@ -367511,7 +367511,7 @@
367511
367511
  "moduleName": "./lib/propertyFields/collectionData/collectionNumberField/CollectionNumberField.js",
367512
367512
  "type": "harmony import specifier",
367513
367513
  "userRequest": "react",
367514
- "loc": "143:2-17"
367514
+ "loc": "144:2-17"
367515
367515
  },
367516
367516
  {
367517
367517
  "moduleId": "MObJ",
@@ -380702,7 +380702,7 @@
380702
380702
  ],
380703
380703
  "optimizationBailout": [],
380704
380704
  "depth": 4,
380705
- "source": "export var version = \"3.4.0-beta.1671773\";\n"
380705
+ "source": "export var version = \"3.4.0-beta.1671802\";\n"
380706
380706
  },
380707
380707
  {
380708
380708
  "id": "cLrF",