Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
grassick committed Sep 8, 2020
1 parent fe66eba commit 09e1563
Show file tree
Hide file tree
Showing 84 changed files with 7,179 additions and 8,950 deletions.
4 changes: 1 addition & 3 deletions lib/AdminRegionDataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
var $, AdminRegionDataSource;
$ = require('jquery'); // Gets the admin region information from an mWater server. Here as a convenience for creating the form context

module.exports = AdminRegionDataSource =
/*#__PURE__*/
function () {
module.exports = AdminRegionDataSource = /*#__PURE__*/function () {
function AdminRegionDataSource(apiUrl) {
(0, _classCallCheck2["default"])(this, AdminRegionDataSource);
this.getAdminRegionPath = this.getAdminRegionPath.bind(this);
Expand Down
14 changes: 9 additions & 5 deletions lib/AdminRegionDisplayComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));

var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));

var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));

var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

var AdminRegionDisplayComponent, AsyncLoadComponent, PropTypes, R, React, _;

Expand All @@ -21,14 +25,14 @@ R = React.createElement;
AsyncLoadComponent = require('react-library/lib/AsyncLoadComponent'); // Loads and displays an admin region

module.exports = AdminRegionDisplayComponent = function () {
var AdminRegionDisplayComponent =
/*#__PURE__*/
function (_AsyncLoadComponent) {
var AdminRegionDisplayComponent = /*#__PURE__*/function (_AsyncLoadComponent) {
(0, _inherits2["default"])(AdminRegionDisplayComponent, _AsyncLoadComponent);

var _super = _createSuper(AdminRegionDisplayComponent);

function AdminRegionDisplayComponent() {
(0, _classCallCheck2["default"])(this, AdminRegionDisplayComponent);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AdminRegionDisplayComponent).apply(this, arguments));
return _super.apply(this, arguments);
}

(0, _createClass2["default"])(AdminRegionDisplayComponent, [{
Expand Down
20 changes: 12 additions & 8 deletions lib/AdminRegionSelectComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));

var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));

var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));

var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));

var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));

var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

var AdminRegionSelectComponent,
AsyncLoadComponent,
PropTypes,
Expand All @@ -35,16 +39,16 @@ R = React.createElement;
AsyncLoadComponent = require('react-library/lib/AsyncLoadComponent'); // Allows selecting an admin region via cascading dropdowns

module.exports = AdminRegionSelectComponent = function () {
var AdminRegionSelectComponent =
/*#__PURE__*/
function (_AsyncLoadComponent) {
var AdminRegionSelectComponent = /*#__PURE__*/function (_AsyncLoadComponent) {
(0, _inherits2["default"])(AdminRegionSelectComponent, _AsyncLoadComponent);

var _super = _createSuper(AdminRegionSelectComponent);

function AdminRegionSelectComponent() {
var _this;

(0, _classCallCheck2["default"])(this, AdminRegionSelectComponent);
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AdminRegionSelectComponent).apply(this, arguments)); // props.imageManager.getImageUrl(props.imageId, (url) =>
_this = _super.apply(this, arguments); // props.imageManager.getImageUrl(props.imageId, (url) =>
// callback(url: url, error: false)
// , => callback(error: true))

Expand Down
4 changes: 1 addition & 3 deletions lib/AssignmentModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ formUtils = require('./formUtils'); // Model of an assignment object that allows
// user: current username. Required
// groups: group names of user

module.exports = AssignmentModel =
/*#__PURE__*/
function () {
module.exports = AssignmentModel = /*#__PURE__*/function () {
function AssignmentModel(options) {
(0, _classCallCheck2["default"])(this, AssignmentModel);
this.assignment = options.assignment;
Expand Down
27 changes: 20 additions & 7 deletions lib/CalculationsDisplayComponent.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
Expand Down Expand Up @@ -35,14 +54,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CalculationsDisplayComponent = void 0;
var react_1 = __importStar(require("react"));
var formUtils_1 = require("./formUtils");
var mwater_expressions_1 = require("mwater-expressions");
Expand Down
4 changes: 1 addition & 3 deletions lib/ConditionsExprCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ _ = require('lodash');
formUtils = require('./formUtils');
conditionUtils = require('./conditionUtils'); // Compiles conditions into mWater expressions

module.exports = ConditionsExprCompiler =
/*#__PURE__*/
function () {
module.exports = ConditionsExprCompiler = /*#__PURE__*/function () {
function ConditionsExprCompiler(formDesign) {
(0, _classCallCheck2["default"])(this, ConditionsExprCompiler);
var i, item, len, ref;
Expand Down
2 changes: 1 addition & 1 deletion lib/CurrentPositionFinder.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference types="node" />
import EventEmitter from 'events';
import { EventEmitter } from 'events';
import LocationFinder from './LocationFinder';
import { PositionStrength } from './utils';
/** Status of the position finding */
Expand Down
7 changes: 2 additions & 5 deletions lib/CurrentPositionFinder.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var events_1 = __importDefault(require("events"));
var events_1 = require("events");
var utils_1 = require("./utils");
var initialDelay = 10;
var goodDelay = 5;
Expand Down Expand Up @@ -56,7 +53,7 @@ var CurrentPositionFinder = /** @class */ (function () {
};
this.running = false;
// Add events
this.eventEmitter = new events_1.default();
this.eventEmitter = new events_1.EventEmitter();
// "error" messages are handled specially and will crash if not handled!
this.eventEmitter.on('error', function () { });
this.locationFinder = options.locationFinder;
Expand Down
1 change: 1 addition & 0 deletions lib/CustomRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomRow = void 0;
var EntityRow_1 = __importDefault(require("./EntityRow"));
/*
Implements the type of row object required by mwater-expressions' PromiseExprEvaluator. Allows expressions to be evaluated
Expand Down
1 change: 1 addition & 0 deletions lib/CustomTablesetSchemaBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomTablesetSchemaBuilder = void 0;
var lodash_1 = __importDefault(require("lodash"));
// Custom tableset is defined in mwater-common
/** Creates schema table for a custom tableset */
Expand Down
16 changes: 10 additions & 6 deletions lib/DateTimePickerComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));

var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));

var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));

var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));

var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }

var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

var $,
DateTimePickerComponent,
Expand Down Expand Up @@ -41,16 +45,16 @@ if (process.browser) {
}

module.exports = DateTimePickerComponent = function () {
var DateTimePickerComponent =
/*#__PURE__*/
function (_React$Component) {
var DateTimePickerComponent = /*#__PURE__*/function (_React$Component) {
(0, _inherits2["default"])(DateTimePickerComponent, _React$Component);

var _super = _createSuper(DateTimePickerComponent);

function DateTimePickerComponent() {
var _this;

(0, _classCallCheck2["default"])(this, DateTimePickerComponent);
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(DateTimePickerComponent).apply(this, arguments));
_this = _super.apply(this, arguments);
_this.onChange = _this.onChange.bind((0, _assertThisInitialized2["default"])(_this));
_this.handleInputFocus = _this.handleInputFocus.bind((0, _assertThisInitialized2["default"])(_this));
return _this;
Expand Down
4 changes: 1 addition & 3 deletions lib/DefaultValueApplier.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ formUtils = require('./formUtils'); // The DefaultValueApplier applies a value s
// - The question needs to have a default value
// - The data for that question needs to be undefined or null, alternate needs to be null or undefined

module.exports = DefaultValueApplier =
/*#__PURE__*/
function () {
module.exports = DefaultValueApplier = /*#__PURE__*/function () {
// entity is an object
// entityType is a string
function DefaultValueApplier(formDesign, stickyStorage, entity, entityType) {
Expand Down
14 changes: 9 additions & 5 deletions lib/EntityDisplayComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));

var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));

var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));

var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

var AsyncLoadComponent, EntityDisplayComponent, PropTypes, R, React;
PropTypes = require('prop-types');
Expand All @@ -19,14 +23,14 @@ R = React.createElement;
AsyncLoadComponent = require('react-library/lib/AsyncLoadComponent'); // Loads and displays an entity

module.exports = EntityDisplayComponent = function () {
var EntityDisplayComponent =
/*#__PURE__*/
function (_AsyncLoadComponent) {
var EntityDisplayComponent = /*#__PURE__*/function (_AsyncLoadComponent) {
(0, _inherits2["default"])(EntityDisplayComponent, _AsyncLoadComponent);

var _super = _createSuper(EntityDisplayComponent);

function EntityDisplayComponent() {
(0, _classCallCheck2["default"])(this, EntityDisplayComponent);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(EntityDisplayComponent).apply(this, arguments));
return _super.apply(this, arguments);
}

(0, _createClass2["default"])(EntityDisplayComponent, [{
Expand Down
Loading

0 comments on commit 09e1563

Please sign in to comment.