simplr-forms-dom
Version:
DOM components for simplr-forms.
1,055 lines (969 loc) • 138 kB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("./abstractions"), require("simplr-forms"), require("prop-types"), require("simplr-forms/modifiers"));
else if(typeof define === 'function' && define.amd)
define(["react", "./abstractions", "simplr-forms", "prop-types", "simplr-forms/modifiers"], factory);
else {
var a = typeof exports === 'object' ? factory(require("react"), require("./abstractions"), require("simplr-forms"), require("prop-types"), require("simplr-forms/modifiers")) : factory(root["react"], root["./abstractions"], root["simplr-forms"], root["prop-types"], root["simplr-forms/modifiers"]);
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_26__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 25);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_0__;
/***/ }),
/* 1 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_1__;
/***/ }),
/* 2 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_2__;
/***/ }),
/* 3 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_3__;
/***/ }),
/* 4 */,
/* 5 */,
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var base_dom_field_1 = __webpack_require__(1);
var CheckBox = (function (_super) {
__extends(CheckBox, _super);
function CheckBox() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.OnChangeHandler = function (event) {
_this.OnValueChange(_this.GetValueFromEvent(event));
var newValue = _this.FormStore.GetField(_this.FieldId).Value;
if (_this.props.onChange != null) {
event.persist();
_this.props.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
var formStoreState = _this.FormStore.GetState();
var formProps = formStoreState.Form.Props;
if (formProps.onChange != null) {
event.persist();
formProps.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
};
return _this;
}
CheckBox.prototype.GetValueFromEvent = function (event) {
return event.currentTarget.checked;
};
Object.defineProperty(CheckBox.prototype, "RawDefaultValue", {
get: function () {
if (this.props.defaultValue != null) {
return this.props.defaultValue;
}
return false;
},
enumerable: true,
configurable: true
});
CheckBox.prototype.renderField = function () {
return React.createElement("input", __assign({ ref: this.SetElementRef, type: "checkbox", name: this.FieldId, checked: this.Value, onChange: this.OnChangeHandler, disabled: this.Disabled, onFocus: this.OnFocus, onBlur: this.OnBlur }, this.GetHTMLProps(this.props)));
};
return CheckBox;
}(base_dom_field_1.BaseDomField));
exports.CheckBox = CheckBox;
/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var base_form_button_1 = __webpack_require__(1);
var Clear = (function (_super) {
__extends(Clear, _super);
function Clear() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.OnButtonClick = function (event) {
_this.FormStore.ClearFields(_this.props.fieldIds);
if (_this.props.onClick != null) {
event.persist();
_this.props.onClick(event);
}
};
return _this;
}
Clear.prototype.render = function () {
// TODO: Pass all other props.
return React.createElement("button", { type: "button", className: this.ClassName, style: this.InlineStyles, disabled: this.Disabled, onClick: this.OnButtonClick }, this.props.children);
};
return Clear;
}(base_form_button_1.BaseFormButton));
exports.Clear = Clear;
/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var base_dom_field_1 = __webpack_require__(1);
var Email = (function (_super) {
__extends(Email, _super);
function Email() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.OnChangeHandler = function (event) {
_this.OnValueChange(_this.GetValueFromEvent(event));
var newValue = _this.FormStore.GetField(_this.FieldId).Value;
if (_this.props.onChange != null) {
event.persist();
_this.props.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
var formStoreState = _this.FormStore.GetState();
var formProps = formStoreState.Form.Props;
if (formProps.onChange != null) {
event.persist();
formProps.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
};
return _this;
}
Email.prototype.GetValueFromEvent = function (event) {
return event.currentTarget.value;
};
Object.defineProperty(Email.prototype, "RawDefaultValue", {
get: function () {
if (this.props.defaultValue != null) {
return this.props.defaultValue;
}
return "";
},
enumerable: true,
configurable: true
});
Email.prototype.renderField = function () {
return React.createElement("input", __assign({ ref: this.SetElementRef, type: "email", name: this.FieldId, value: this.Value, onChange: this.OnChangeHandler, disabled: this.Disabled, onFocus: this.OnFocus, onBlur: this.OnBlur }, this.GetHTMLProps(this.props)));
};
return Email;
}(base_dom_field_1.BaseDomField));
exports.Email = Email;
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var simplr_forms_1 = __webpack_require__(2);
var FieldsArray = (function (_super) {
__extends(FieldsArray, _super);
function FieldsArray() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.SetElementRef = function (element) {
_this.Element = element;
};
return _this;
}
FieldsArray.prototype.GetHTMLProps = function (props) {
var _a = this.props, name = _a.name, index = _a.index, destroyOnUnmount = _a.destroyOnUnmount, children = _a.children, restProps = __rest(_a, ["name", "index", "destroyOnUnmount", "children"]);
return restProps;
};
FieldsArray.prototype.render = function () {
return React.createElement("div", __assign({ ref: this.SetElementRef }, this.GetHTMLProps(this.props)), this.props.children);
};
return FieldsArray;
}(simplr_forms_1.BaseFieldsArray));
exports.FieldsArray = FieldsArray;
/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var simplr_forms_1 = __webpack_require__(2);
var FieldsGroup = (function (_super) {
__extends(FieldsGroup, _super);
function FieldsGroup() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.SetElementRef = function (element) {
_this.Element = element;
};
return _this;
}
FieldsGroup.prototype.GetHTMLProps = function (props) {
var _a = this.props, name = _a.name, destroyOnUnmount = _a.destroyOnUnmount, children = _a.children, restProps = __rest(_a, ["name", "destroyOnUnmount", "children"]);
return restProps;
};
FieldsGroup.prototype.render = function () {
return React.createElement("div", __assign({ ref: this.SetElementRef }, this.GetHTMLProps(this.props)), this.props.children);
};
return FieldsGroup;
}(simplr_forms_1.BaseFieldsGroup));
exports.FieldsGroup = FieldsGroup;
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var simplr_forms_1 = __webpack_require__(2);
var Form = (function (_super) {
__extends(Form, _super);
function Form() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.SetElementRef = function (element) {
_this.Element = element;
if (_this.FormStore != null && element != null) {
_this.FormStore.SetFormSubmitCallback(function () {
element.dispatchEvent(new Event("submit"));
});
}
};
_this.FormSubmitHandler = function (event) {
if (_this.props.preventSubmitDefaultAndPropagation) {
event.preventDefault();
event.stopPropagation();
}
if (!_this.ShouldFormSubmit()) {
return;
}
_this.FormStore.TouchFields();
if (_this.props.onSubmit == null) {
return;
}
// Persist synthetic event, because it's passed into another method.
event.persist();
// Pass onSubmit result to FormStore for further processing.
var result = _this.props.onSubmit(event, _this.FormStore);
_this.FormStore.SubmitForm(result);
};
return _this;
}
Form.prototype.render = function () {
return React.createElement("form", { ref: this.SetElementRef, onSubmit: this.FormSubmitHandler }, this.props.children);
};
return Form;
}(simplr_forms_1.BaseForm));
Form.defaultProps = __assign({}, simplr_forms_1.BaseForm.defaultProps, { preventSubmitDefaultAndPropagation: true });
exports.Form = Form;
/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var simplr_forms_1 = __webpack_require__(2);
var Hidden = (function (_super) {
__extends(Hidden, _super);
function Hidden() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(Hidden.prototype, "IsControlled", {
get: function () {
return true;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Hidden.prototype, "RawDefaultValue", {
get: function () {
return this.props.defaultValue;
},
enumerable: true,
configurable: true
});
Hidden.prototype.render = function () {
return null;
};
return Hidden;
}(simplr_forms_1.BaseField));
exports.Hidden = Hidden;
/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var base_dom_field_1 = __webpack_require__(1);
var modifiers_1 = __webpack_require__(26);
var Number = (function (_super) {
__extends(Number, _super);
function Number() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.OnChangeHandler = function (event) {
_this.OnValueChange(_this.GetValueFromEvent(event));
var newValue = _this.FormStore.GetField(_this.FieldId).Value;
if (_this.props.onChange != null) {
event.persist();
_this.props.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
var formStoreState = _this.FormStore.GetState();
var formProps = formStoreState.Form.Props;
if (formProps.onChange != null) {
event.persist();
formProps.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
};
return _this;
}
Object.defineProperty(Number.prototype, "DefaultModifiers", {
get: function () {
return [React.createElement(modifiers_1.StringToDecimalModifier, null)];
},
enumerable: true,
configurable: true
});
Number.prototype.GetValueFromEvent = function (event) {
return event.currentTarget.value;
};
Object.defineProperty(Number.prototype, "RawDefaultValue", {
get: function () {
if (this.props.defaultValue != null) {
return this.props.defaultValue;
}
return "";
},
enumerable: true,
configurable: true
});
Number.prototype.renderField = function () {
return React.createElement("input", __assign({ ref: this.SetElementRef, type: "number", name: this.FieldId, value: this.Value, onChange: this.OnChangeHandler, disabled: this.Disabled, onFocus: this.OnFocus, onBlur: this.OnBlur }, this.GetHTMLProps(this.props)));
};
return Number;
}(base_dom_field_1.BaseDomField));
exports.Number = Number;
/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var base_dom_field_1 = __webpack_require__(1);
var Password = (function (_super) {
__extends(Password, _super);
function Password() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.OnChangeHandler = function (event) {
_this.OnValueChange(_this.GetValueFromEvent(event));
var newValue = _this.FormStore.GetField(_this.FieldId).Value;
if (_this.props.onChange != null) {
event.persist();
_this.props.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
var formStoreState = _this.FormStore.GetState();
var formProps = formStoreState.Form.Props;
if (formProps.onChange != null) {
event.persist();
formProps.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
};
return _this;
}
Password.prototype.GetValueFromEvent = function (event) {
return event.currentTarget.value;
};
Object.defineProperty(Password.prototype, "RawDefaultValue", {
get: function () {
if (this.props.defaultValue != null) {
return this.props.defaultValue;
}
return "";
},
enumerable: true,
configurable: true
});
Password.prototype.renderField = function () {
return React.createElement("input", __assign({ ref: this.SetElementRef, type: "password", name: this.FieldId, value: this.Value, onChange: this.OnChangeHandler, disabled: this.Disabled, onFocus: this.OnFocus, onBlur: this.OnBlur }, this.GetHTMLProps(this.props)));
};
return Password;
}(base_dom_field_1.BaseDomField));
exports.Password = Password;
/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var PropTypes = __webpack_require__(3);
var abstractions_1 = __webpack_require__(23);
var RadioGroup = (function (_super) {
__extends(RadioGroup, _super);
function RadioGroup() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.OnChangeHandler = function (event, value) {
_this.OnValueChange(value);
var newValue = _this.FormStore.GetField(_this.FieldId).Value;
if (_this.props.onChange != null) {
event.persist();
_this.props.onChange(event, newValue, _this.FieldId, _this.FormId);
}
var formStoreState = _this.FormStore.GetState();
var formProps = formStoreState.Form.Props;
if (formProps.onChange != null) {
event.persist();
formProps.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
};
return _this;
}
RadioGroup.prototype.getChildContext = function () {
return __assign({}, _super.prototype.getChildContext.call(this), { FieldId: this.FieldId, RadioGroupOnChangeHandler: this.OnChangeHandler, RadioGroupOnBlur: this.OnBlur, RadioGroupOnFocus: this.OnFocus });
};
Object.defineProperty(RadioGroup.prototype, "RawDefaultValue", {
get: function () {
if (this.props.defaultValue != null) {
return this.props.defaultValue;
}
return "";
},
enumerable: true,
configurable: true
});
RadioGroup.prototype.GetHTMLProps = function (props) {
var cleanedProps = _super.prototype.GetHTMLProps.call(this, props);
var radioTemplate = cleanedProps.radioTemplate, restProps = __rest(cleanedProps, ["radioTemplate"]);
return restProps;
};
RadioGroup.prototype.renderField = function () {
return React.createElement("div", __assign({ ref: this.SetElementRef }, this.GetHTMLProps(this.props)), this.props.children);
};
return RadioGroup;
}(abstractions_1.BaseDomField));
RadioGroup.childContextTypes = __assign({}, abstractions_1.BaseDomField.childContextTypes, { RadioGroupOnChangeHandler: PropTypes.func.isRequired, RadioGroupOnBlur: PropTypes.func.isRequired, RadioGroupOnFocus: PropTypes.func.isRequired });
exports.RadioGroup = RadioGroup;
/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var PropTypes = __webpack_require__(3);
var simplr_forms_1 = __webpack_require__(2);
var Radio = (function (_super) {
__extends(Radio, _super);
function Radio() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.state = {};
_this.OnChangeHandler = function (event) {
_this.context.RadioGroupOnChangeHandler(event, _this.props.value);
};
_this.OnFocus = function (event) {
_this.context.RadioGroupOnFocus(event);
};
_this.OnBlur = function (event) {
_this.context.RadioGroupOnBlur(event);
};
_this.SetElementRef = function (element) {
_this.Element = element;
};
return _this;
}
Radio.prototype.componentWillMount = function () {
var _this = this;
_super.prototype.componentWillMount.call(this);
this.setState(function (state) {
state.FormStoreState = _this.FormStore.GetState();
state.Value = _this.FieldState.Value;
return state;
});
};
Object.defineProperty(Radio.prototype, "FieldState", {
get: function () {
if (this.FieldId == null) {
throw new Error("simplr-forms-dom: Radio must be in RadioGroup component.");
}
return this.FormStore.GetField(this.FieldId);
},
enumerable: true,
configurable: true
});
Object.defineProperty(Radio.prototype, "FieldsGroupId", {
get: function () {
if (this.FieldState.FieldsGroup != null) {
return this.FieldState.FieldsGroup.Id;
}
},
enumerable: true,
configurable: true
});
Object.defineProperty(Radio.prototype, "Disabled", {
get: function () {
// FormStore can only enforce disabling
if (this.FormStore.GetState().Disabled === true) {
return true;
}
if (this.FieldId != null) {
var fieldProps = this.FieldState.Props;
if (fieldProps != null && fieldProps.disabled != null) {
return fieldProps.disabled;
}
}
if (this.props.disabled != null) {
return this.props.disabled;
}
},
enumerable: true,
configurable: true
});
Object.defineProperty(Radio.prototype, "FieldTemplate", {
get: function () {
var radioGroupProps = this.FieldState.Props;
if (this.props.template != null) {
return this.props.template;
}
if (radioGroupProps.radioTemplate) {
return radioGroupProps.radioTemplate;
}
},
enumerable: true,
configurable: true
});
Radio.prototype.OnStoreUpdated = function () {
var _this = this;
var newFormStoreState = this.FormStore.GetState();
var isStateDifferent = this.state == null ||
this.state.FormStoreState !== newFormStoreState;
if (isStateDifferent) {
this.setState(function (state) {
if (state == null) {
state = {
FormStoreState: newFormStoreState
};
}
else {
state.FormStoreState = newFormStoreState;
}
if (_this.FieldId != null) {
var newFieldState = _this.FormStore.GetField(_this.FieldId);
state.Value = newFieldState.Value;
}
return state;
});
}
};
Radio.prototype.GetHTMLProps = function (props) {
var ref = props.ref, template = props.template, otherProps = __rest(props, ["ref", "template"]);
return otherProps;
};
Radio.prototype.renderField = function () {
return React.createElement("input", __assign({ ref: this.SetElementRef, type: "radio", checked: (this.state.Value === this.props.value), onChange: this.OnChangeHandler, onFocus: this.OnFocus, onBlur: this.OnBlur, disabled: this.Disabled }, this.GetHTMLProps(this.props)));
};
Radio.prototype.render = function () {
if (this.FieldTemplate == null) {
return this.renderField();
}
return this.FieldTemplate(this.renderField.bind(this), {
name: this.FieldState.Name,
fieldGroupId: this.FieldsGroupId,
id: this.FieldId
}, this.FormStore, {
props: this.props,
state: this.FieldState
});
};
return Radio;
}(simplr_forms_1.BaseContainer));
Radio.contextTypes = __assign({}, simplr_forms_1.BaseContainer.contextTypes, { FieldId: PropTypes.string.isRequired, RadioGroupOnChangeHandler: PropTypes.func.isRequired, RadioGroupOnBlur: PropTypes.func.isRequired, RadioGroupOnFocus: PropTypes.func.isRequired });
exports.Radio = Radio;
/***/ }),
/* 17 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var base_form_button_1 = __webpack_require__(1);
var Reset = (function (_super) {
__extends(Reset, _super);
function Reset() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.OnButtonClick = function (event) {
_this.FormStore.ResetFields(_this.props.fieldIds);
if (_this.props.onClick != null) {
event.persist();
_this.props.onClick(event);
}
};
return _this;
}
Reset.prototype.render = function () {
// TODO: Pass all other props.
return React.createElement("button", { type: "button", className: this.ClassName, style: this.InlineStyles, disabled: this.Disabled, onClick: this.OnButtonClick }, this.props.children);
};
return Reset;
}(base_form_button_1.BaseFormButton));
exports.Reset = Reset;
/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var base_dom_field_1 = __webpack_require__(1);
var Search = (function (_super) {
__extends(Search, _super);
function Search() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.OnChangeHandler = function (event) {
_this.OnValueChange(_this.GetValueFromEvent(event));
var newValue = _this.FormStore.GetField(_this.FieldId).Value;
if (_this.props.onChange != null) {
event.persist();
_this.props.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
var formStoreState = _this.FormStore.GetState();
var formProps = formStoreState.Form.Props;
if (formProps.onChange != null) {
event.persist();
formProps.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
};
return _this;
}
Search.prototype.GetValueFromEvent = function (event) {
return event.currentTarget.value;
};
Object.defineProperty(Search.prototype, "RawDefaultValue", {
get: function () {
if (this.props.defaultValue != null) {
return this.props.defaultValue;
}
return "";
},
enumerable: true,
configurable: true
});
Search.prototype.renderField = function () {
return React.createElement("input", __assign({ ref: this.SetElementRef, type: "search", name: this.FieldId, value: this.Value, onChange: this.OnChangeHandler, disabled: this.Disabled, onFocus: this.OnFocus, onBlur: this.OnBlur }, this.GetHTMLProps(this.props)));
};
return Search;
}(base_dom_field_1.BaseDomField));
exports.Search = Search;
/***/ }),
/* 19 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var base_dom_field_1 = __webpack_require__(1);
var Select = (function (_super) {
__extends(Select, _super);
function Select() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.OnChangeHandler = function (event) {
_this.OnValueChange(_this.GetValueFromEvent(event));
var newValue = _this.FormStore.GetField(_this.FieldId).Value;
// Check if it's immutable.
// TODO: When using Immutable v4 use isImmutable instead.
if (newValue.toArray != null) {
newValue = newValue.toArray();
}
_this.setState(function (state) {
state.RenderValue = newValue;
return state;
});
if (_this.props.onChange != null) {
event.persist();
_this.props.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
var formStoreState = _this.FormStore.GetState();
var formProps = formStoreState.Form.Props;
if (formProps.onChange != null) {
event.persist();
formProps.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
};
return _this;
}
Object.defineProperty(Select.prototype, "RawInitialValue", {
get: function () {
if (this.props.multiple ||
this.props.initialValue != null) {
return this.props.initialValue;
}
// If select does not have multiple options, then we need to get the first option value.
var options = React
.Children
.toArray(this.props.children)
.filter(function (x) { return x.type != null && x.type === "option"; });
if (options.length === 0) {
throw new Error("simplr-forms-dom: Select MUST have at least one option!");
}
var firstOption = options[0];
if (firstOption.props.value != null) {
return firstOption.props.value;
}
return firstOption.props.children;
},
enumerable: true,
configurable: true
});
Select.prototype.GetValueFromEvent = function (event) {
if (this.props.multiple) {
var newValue = [];
for (var i = 0; i < event.currentTarget.options.length; i++) {
var option = event.currentTarget.options[i];
if (option.selected) {
newValue.push(option.value);
}
}
return newValue;
}
return event.currentTarget.value;
};
Object.defineProperty(Select.prototype, "RawDefaultValue", {
get: function () {
if (this.props.defaultValue != null) {
return this.props.defaultValue;
}
return (this.props.multiple) ? [] : "";
},
enumerable: true,
configurable: true
});
Object.defineProperty(Select.prototype, "Value", {
get: function () {
if (this.state != null && this.state.RenderValue != null) {
return this.state.RenderValue;
}
return this.RawDefaultValue;
},
enumerable: true,
configurable: true
});
Select.prototype.renderField = function () {
return React.createElement("select", __assign({ ref: this.SetElementRef, name: this.FieldId, value: this.Value, onChange: this.OnChangeHandler, disabled: this.Disabled, onFocus: this.OnFocus, onBlur: this.OnBlur }, this.GetHTMLProps(this.props)), this.props.children);
};
return Select;
}(base_dom_field_1.BaseDomField));
exports.Select = Select;
/***/ }),
/* 20 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var base_form_button_1 = __webpack_require__(1);
var Submit = (function (_super) {
__extends(Submit, _super);
function Submit() {
return _super !== null && _super.apply(this, arguments) || this;
}
Submit.prototype.render = function () {
return React.createElement("button", { type: "submit", className: this.ClassName, style: this.InlineStyles, disabled: this.Disabled }, this.props.children);
};
return Submit;
}(base_form_button_1.BaseFormButton));
Submit.defaultProps = __assign({}, base_form_button_1.BaseFormButton.defaultProps, { disableOnError: true });
exports.Submit = Submit;
/***/ }),
/* 21 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var base_dom_field_1 = __webpack_require__(1);
var Text = (function (_super) {
__extends(Text, _super);
function Text() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.OnChangeHandler = function (event) {
var newValue;
if (!_this.IsControlled) {
_this.OnValueChange(_this.GetValueFromEvent(event));
newValue = _this.FormStore.GetField(_this.FieldId).Value;
}
else {
newValue = _this.GetValueFromEvent(event);
}
if (_this.props.onChange != null) {
event.persist();
_this.props.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
var formStoreState = _this.FormStore.GetState();
var formProps = formStoreState.Form.Props;
if (formProps.onChange != null) {
event.persist();
formProps.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
};
return _this;
}
Text.prototype.GetValueFromEvent = function (event) {
return event.target.value;
};
Object.defineProperty(Text.prototype, "RawDefaultValue", {
get: function () {
if (this.props.defaultValue != null) {
return this.props.defaultValue;
}
return "";
},
enumerable: true,
configurable: true
});
Text.prototype.renderField = function () {
return React.createElement("input", __assign({ ref: this.SetElementRef, type: "text", name: this.FieldId, value: this.Value, onChange: this.OnChangeHandler, disabled: this.Disabled, onFocus: this.OnFocus, onBlur: this.OnBlur }, this.GetHTMLProps(this.props)));
};
return Text;
}(base_dom_field_1.BaseDomField));
exports.Text = Text;
/***/ }),
/* 22 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(0);
var base_dom_field_1 = __webpack_require__(1);
var TextArea = (function (_super) {
__extends(TextArea, _super);
function TextArea() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.OnChangeHandler = function (event) {
var newValue;
if (!_this.IsControlled) {
_this.OnValueChange(_this.GetValueFromEvent(event));
newValue = _this.FormStore.GetField(_this.FieldId).Value;
}
else {
newValue = _this.GetValueFromEvent(event);
}
if (_this.props.onChange != null) {
event.persist();
_this.props.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
var formStoreState = _this.FormStore.GetState();
var formProps = formStoreState.Form.Props;
if (formProps.onChange != null) {
event.persist();
formProps.onChange(event, newValue, _this.FieldId, _this.FormStore);
}
};
return _this;
}
TextArea.prototype.GetValueFromEvent = function (event) {
return event.currentTarget.value;
};
Object.defineProperty(TextArea.prototype, "RawDefaultValue", {
get: function () {
if (this.props.defaultValue != null) {
return this.props.defaultValue;
}
return "";
},
enumerable: true,
configurable: true
});
TextArea.prototype.renderField = function () {
return React.createElement("textarea", __assign({ ref: this.SetElementRef, name: this.FieldId, value: this.Value, onChange: this.OnChangeHandler, disabled: this.Disabled, onFocus: this.OnFocus, onBlur: this.OnBlur }, this.GetHTMLProps(this.props)));
};
return TextArea;
}(base_dom_field_1.BaseDomField));
exports.TextArea = TextArea;
/***/ }),
/* 23 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(__webpack_require__(1));
/***/ }),
/* 24 */,
/* 25 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(__webpack_require__(11));
__export(__webpack_require__(20));
__export(__webpack_require__(17));
__export(__webpack_require__(7));
__export(__webpack_require__(10));
__export(__webpack_require__(9));
// Fields
__export(__webpack_require__(21));
__export(__webpack_require__(14));
__export(__webpack_require__(8));
__export(__webpack_require__(18));
__export(__webpack_require__(22));
__export(__webpack_require__(13));
__export(__webpack_require__(12));
__export(__webpack_require__(6));
__export(__webpack_require__(19));
__export(__webpack_require__(15));
__export(__webpack_require__(16));
/***/ }),
/* 26 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_26__;
/***/ })
/******/ ]);
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIiwid2VicGFjazovLy93ZWJwYWNrL2Jvb3RzdHJhcCAzMzcwZTY4ODJhMjI3ZjEwZTNmNiIsIndlYnBhY2s6Ly8vZXh0ZXJuYWwgXCJyZWFjdFwiIiwid2VicGFjazovLy9leHRlcm5hbCBcIi4vYWJzdHJhY3Rpb25zXCIiLCJ3ZWJwY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