diff --git a/dist/1.0.0/incentro.Autosearch.mpk b/dist/1.0.0/incentro.Autosearch.mpk
index 7b635fb..943df6c 100644
Binary files a/dist/1.0.0/incentro.Autosearch.mpk and b/dist/1.0.0/incentro.Autosearch.mpk differ
diff --git a/dist/tmp/widgets/Autosearch.xml b/dist/tmp/widgets/Autosearch.xml
index b8be31d..25dd360 100644
--- a/dist/tmp/widgets/Autosearch.xml
+++ b/dist/tmp/widgets/Autosearch.xml
@@ -16,12 +16,20 @@
+
+ Editable
+
+
On change
+
+ On enter
+
+
diff --git a/dist/tmp/widgets/incentro/autosearch/Autosearch.js b/dist/tmp/widgets/incentro/autosearch/Autosearch.js
index 2938637..aa22e14 100644
--- a/dist/tmp/widgets/incentro/autosearch/Autosearch.js
+++ b/dist/tmp/widgets/incentro/autosearch/Autosearch.js
@@ -244,12 +244,16 @@ __webpack_require__.r(__webpack_exports__);
const defaultStyle = {
container: {},
label: {
- color: "#F6BB42"
+ color: "#003C85"
},
input: {
- height: 45,
borderBottomWidth: 1,
- borderBottomColor: '#de712b',
+ borderBottomColor: '#5997C0',
+ },
+ text: {
+ color: "#003C85",
+ fontSize: 18,
+ paddingBottom: 6,
}
};
class Autosearch extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
@@ -257,18 +261,26 @@ class Autosearch extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
super(props);
this.styles = Object(_mendix_pluggable_widgets_tools__WEBPACK_IMPORTED_MODULE_2__["mergeNativeStyles"])(defaultStyle, this.props.style);
this.onChangeHandler = this.onChange.bind(this);
+ this.onTouchStart = this.onTouch.bind(this);
+ this.onEndHandler = this.onEnd.bind(this);
this.state = {
textboxValue: '',
};
}
render() {
- return (Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(react_native__WEBPACK_IMPORTED_MODULE_1__["View"], { style: this.styles.container },
- Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(react_native__WEBPACK_IMPORTED_MODULE_1__["TextInput"], { style: this.styles.input, value: this.state.textboxValue, onChangeText: this.onChangeHandler, placeholder: 'Zoeken...' })));
+ return (Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(react_native__WEBPACK_IMPORTED_MODULE_1__["View"], { style: this.styles.input },
+ Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(react_native__WEBPACK_IMPORTED_MODULE_1__["TextInput"], { style: this.styles.text, value: this.state.textboxValue, onChangeText: this.onChangeHandler, onTouchStart: this.onTouchStart, onEndEditing: this.onEndHandler, placeholder: 'Zoeken...', placeholderTextColor: "#5997C0", editable: this.props.editable })));
}
onChange(text) {
- var _a;
this.setState({ textboxValue: text });
this.props.searchvalue.setValue(text);
+ }
+ onTouch() {
+ var _a;
+ (_a = this.props.onEnter) === null || _a === void 0 ? void 0 : _a.execute();
+ }
+ onEnd() {
+ var _a;
(_a = this.props.onChange) === null || _a === void 0 ? void 0 : _a.execute();
}
}
diff --git a/dist/tmp/widgets/incentro/autosearch/Autosearch.js.map b/dist/tmp/widgets/incentro/autosearch/Autosearch.js.map
index 89d9381..c34c9ed 100644
--- a/dist/tmp/widgets/incentro/autosearch/Autosearch.js.map
+++ b/dist/tmp/widgets/incentro/autosearch/Autosearch.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/defineProperty.js","webpack:///./node_modules/@babel/runtime/helpers/extends.js","webpack:///./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack:///./node_modules/@mendix/pluggable-widgets-tools/dist/index.js","webpack:///./node_modules/@mendix/pluggable-widgets-tools/dist/native/common.js","webpack:///./node_modules/@mendix/pluggable-widgets-tools/dist/web/common.js","webpack:///./src/Autosearch.tsx","webpack:///external \"react\"","webpack:///external \"react-native\""],"names":["_arrayLikeToArray","arr","len","length","i","arr2","Array","module","exports","arrayLikeToArray","require","_arrayWithoutHoles","isArray","_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","_extends","assign","target","arguments","source","prototype","hasOwnProperty","call","apply","_interopRequireDefault","__esModule","_iterableToArray","iter","Symbol","iterator","from","_nonIterableSpread","TypeError","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread","_toConsumableArray","_unsupportedIterableToArray","o","minLen","n","toString","slice","constructor","name","test","__createBinding","create","m","k","k2","undefined","get","__exportStar","p","mergeNativeStyles","defaultStyle","overrideStyles","styles","filter","object","keys","reduce","flattened","currentKey","styleItems","map","flattenObjects","objects","merged","parseInlineStyle","style","split","styleObject","line","pair","trim","replace","match","toUpperCase","_"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA,QAASA,kBAAT,CAA2BC,GAA3B,CAAgCC,GAAhC,CAAqC,CACnC,GAAIA,GAAG,EAAI,IAAP,EAAeA,GAAG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AI,CAAC,KAAK,CAAC,YAAY,EAAE,YAAY,EAAE,IAAI,CAAC,eAAe,EAAE,WAAW,EAAE,WAAW,GAAc,CAChJ,CACN;IACL,CAAC;IAEO,QAAQ,CAAC,IAAY;;QACzB,IAAI,CAAC,QAAQ,CAAC,EAAC,YAAY,EAAE,IAAI,EAAC,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACtC,UAAI,CAAC,KAAK,CAAC,QAAQ,0CAAE,OAAO,GAAG;IACnC,CAAC;CACJ;;;;;;;;;;;;ACrDD,kC;;;;;;;;;;;ACAA,yC","file":"widgets/incentro/autosearch/Autosearch.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/Autosearch.tsx\");\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./native/common\"), exports);\n__exportStar(require(\"./web/common\"), exports);\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mergeNativeStyles = void 0;\nfunction mergeNativeStyles(defaultStyle, overrideStyles) {\n const styles = [defaultStyle, ...overrideStyles.filter((object) => object !== undefined)];\n return Object.keys(defaultStyle).reduce((flattened, currentKey) => {\n const styleItems = styles.map(object => object[currentKey]);\n return Object.assign(Object.assign({}, flattened), { [currentKey]: flattenObjects(styleItems) });\n }, {});\n}\nexports.mergeNativeStyles = mergeNativeStyles;\nfunction flattenObjects(objects) {\n return objects.reduce((merged, object) => (Object.assign(Object.assign({}, merged), object)), {});\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseInlineStyle = void 0;\nfunction parseInlineStyle(style = \"\") {\n try {\n return style.split(\";\").reduce((styleObject, line) => {\n const pair = line.split(\":\");\n if (pair.length === 2) {\n const name = pair[0].trim().replace(/(-.)/g, match => match[1].toUpperCase());\n styleObject[name] = pair[1].trim();\n }\n return styleObject;\n }, {});\n }\n catch (_) {\n return {};\n }\n}\nexports.parseInlineStyle = parseInlineStyle;\n","import { Component, ReactNode, createElement } from \"react\";\r\nimport { TextStyle, ViewStyle, TextInput, View } from \"react-native\";\r\n\r\nimport { Style, mergeNativeStyles } from \"@mendix/pluggable-widgets-tools\";\r\n\r\nimport { AutosearchProps } from \"../typings/AutosearchProps\";\r\n\r\nexport interface AutosearchStyle extends Style {\r\n container: ViewStyle;\r\n label: TextStyle;\r\n input: ViewStyle;\r\n}\r\n\r\ninterface State {\r\n textboxValue?: string;\r\n}\r\n\r\nconst defaultStyle: AutosearchStyle = {\r\n container: {},\r\n label: {\r\n color: \"#F6BB42\"\r\n },\r\n input: {\r\n height: 45,\r\n borderBottomWidth: 1,\r\n borderBottomColor: '#de712b',\r\n }\r\n};\r\n\r\nexport class Autosearch extends Component, State> {\r\n private readonly styles = mergeNativeStyles(defaultStyle, this.props.style);\r\n private readonly onChangeHandler = this.onChange.bind(this);\r\n constructor(props: AutosearchProps){\r\n super(props)\r\n this.state = {\r\n textboxValue: '',\r\n }\r\n }\r\n\r\n\r\n render(): ReactNode {\r\n return (\r\n \r\n \r\n \r\n )\r\n }\r\n\r\n private onChange(text: string) {\r\n this.setState({textboxValue: text});\r\n this.props.searchvalue.setValue(text);\r\n this.props.onChange?.execute();\r\n }\r\n}\r\n","module.exports = require(\"react\");","module.exports = require(\"react-native\");"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/defineProperty.js","webpack:///./node_modules/@babel/runtime/helpers/extends.js","webpack:///./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack:///./node_modules/@mendix/pluggable-widgets-tools/dist/index.js","webpack:///./node_modules/@mendix/pluggable-widgets-tools/dist/native/common.js","webpack:///./node_modules/@mendix/pluggable-widgets-tools/dist/web/common.js","webpack:///./src/Autosearch.tsx","webpack:///external \"react\"","webpack:///external \"react-native\""],"names":["_arrayLikeToArray","arr","len","length","i","arr2","Array","module","exports","arrayLikeToArray","require","_arrayWithoutHoles","isArray","_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","_extends","assign","target","arguments","source","prototype","hasOwnProperty","call","apply","_interopRequireDefault","__esModule","_iterableToArray","iter","Symbol","iterator","from","_nonIterableSpread","TypeError","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread","_toConsumableArray","_unsupportedIterableToArray","o","minLen","n","toString","slice","constructor","name","test","__createBinding","create","m","k","k2","undefined","get","__exportStar","p","mergeNativeStyles","defaultStyle","overrideStyles","styles","filter","object","keys","reduce","flattened","currentKey","styleItems","map","flattenObjects","objects","merged","parseInlineStyle","style","split","styleObject","line","pair","trim","replace","match","toUpperCase","_"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA,QAASA,kBAAT,CAA2BC,GAA3B,CAAgCC,GAAhC,CAAqC,CACnC,GAAIA,GAAG,EAAI,IAAP,EAAeA,GAAG,CAAGD,GAAG,CAACE,MAA7B,CAAqCD,GAAG,CAAGD,GAAG,CAACE,MAAV,CAErC,IAAK,GAAIC,EAAC,CAAG,CAAR,CAAWC,IAAI,CAAG,GAAIC,MAAJ,CAAUJ,GAAV,CAAvB,CAAuCE,CAAC,CAAGF,GAA3C,CAAgDE,CAAC,EAAjD,CAAqD,CACnDC,IAA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AK,CAAC,YAAY,EAC9B,YAAY,EAAE,IAAI,CAAC,eAAe,EAClC,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,WAAW,EAAE,WAAW,EACxB,oBAAoB,EAAC,SAAS,EAC9B,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAEjB,CACb,CACN;IACL,CAAC;IAEO,QAAQ,CAAC,IAAY;QACzB,IAAI,CAAC,QAAQ,CAAC,EAAC,YAAY,EAAE,IAAI,EAAC,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAEO,OAAO;;QACX,UAAI,CAAC,KAAK,CAAC,OAAO,0CAAE,OAAO,GAAG;IAClC,CAAC;IAEO,KAAK;;QACT,UAAI,CAAC,KAAK,CAAC,QAAQ,0CAAE,OAAO,GAAG;IACnC,CAAC;CACJ;;;;;;;;;;;;AC5ED,kC;;;;;;;;;;;ACAA,yC","file":"widgets/incentro/autosearch/Autosearch.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/Autosearch.tsx\");\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./native/common\"), exports);\n__exportStar(require(\"./web/common\"), exports);\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mergeNativeStyles = void 0;\nfunction mergeNativeStyles(defaultStyle, overrideStyles) {\n const styles = [defaultStyle, ...overrideStyles.filter((object) => object !== undefined)];\n return Object.keys(defaultStyle).reduce((flattened, currentKey) => {\n const styleItems = styles.map(object => object[currentKey]);\n return Object.assign(Object.assign({}, flattened), { [currentKey]: flattenObjects(styleItems) });\n }, {});\n}\nexports.mergeNativeStyles = mergeNativeStyles;\nfunction flattenObjects(objects) {\n return objects.reduce((merged, object) => (Object.assign(Object.assign({}, merged), object)), {});\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseInlineStyle = void 0;\nfunction parseInlineStyle(style = \"\") {\n try {\n return style.split(\";\").reduce((styleObject, line) => {\n const pair = line.split(\":\");\n if (pair.length === 2) {\n const name = pair[0].trim().replace(/(-.)/g, match => match[1].toUpperCase());\n styleObject[name] = pair[1].trim();\n }\n return styleObject;\n }, {});\n }\n catch (_) {\n return {};\n }\n}\nexports.parseInlineStyle = parseInlineStyle;\n","import { Component, ReactNode, createElement } from \"react\";\r\nimport { TextStyle, ViewStyle, TextInput, View } from \"react-native\";\r\n\r\nimport { Style, mergeNativeStyles } from \"@mendix/pluggable-widgets-tools\";\r\n\r\nimport { AutosearchProps } from \"../typings/AutosearchProps\";\r\n\r\nexport interface AutosearchStyle extends Style {\r\n container: ViewStyle;\r\n label: TextStyle;\r\n input: ViewStyle;\r\n}\r\n\r\ninterface State {\r\n textboxValue?: string;\r\n}\r\n\r\nconst defaultStyle: AutosearchStyle = {\r\n container: {\r\n },\r\n label: {\r\n color: \"#003C85\"\r\n },\r\n input: {\r\n borderBottomWidth: 1,\r\n borderBottomColor: '#5997C0',\r\n },\r\n text: {\r\n color: \"#003C85\",\r\n fontSize: 18,\r\n paddingBottom: 6,\r\n }\r\n};\r\n\r\nexport class Autosearch extends Component, State> {\r\n private readonly styles = mergeNativeStyles(defaultStyle, this.props.style);\r\n private readonly onChangeHandler = this.onChange.bind(this);\r\n private readonly onTouchStart = this.onTouch.bind(this);\r\n private readonly onEndHandler = this.onEnd.bind(this);\r\n constructor(props: AutosearchProps){\r\n super(props)\r\n this.state = {\r\n textboxValue: '',\r\n }\r\n }\r\n\r\n\r\n render(): ReactNode {\r\n return (\r\n \r\n \r\n \r\n \r\n )\r\n }\r\n\r\n private onChange(text: string) {\r\n this.setState({textboxValue: text});\r\n this.props.searchvalue.setValue(text);\r\n }\r\n\r\n private onTouch() {\r\n this.props.onEnter?.execute();\r\n }\r\n\r\n private onEnd() {\r\n this.props.onChange?.execute();\r\n }\r\n}\r\n","module.exports = require(\"react\");","module.exports = require(\"react-native\");"],"sourceRoot":""}
\ No newline at end of file
diff --git a/src/Autosearch.tsx b/src/Autosearch.tsx
index 767d035..51b11c7 100644
--- a/src/Autosearch.tsx
+++ b/src/Autosearch.tsx
@@ -16,20 +16,27 @@ interface State {
}
const defaultStyle: AutosearchStyle = {
- container: {},
+ container: {
+ },
label: {
- color: "#F6BB42"
+ color: "#003C85"
},
input: {
- height: 45,
borderBottomWidth: 1,
- borderBottomColor: '#de712b',
+ borderBottomColor: '#5997C0',
+ },
+ text: {
+ color: "#003C85",
+ fontSize: 18,
+ paddingBottom: 6,
}
};
export class Autosearch extends Component, State> {
private readonly styles = mergeNativeStyles(defaultStyle, this.props.style);
private readonly onChangeHandler = this.onChange.bind(this);
+ private readonly onTouchStart = this.onTouch.bind(this);
+ private readonly onEndHandler = this.onEnd.bind(this);
constructor(props: AutosearchProps){
super(props)
this.state = {
@@ -40,8 +47,17 @@ export class Autosearch extends Component, Stat
render(): ReactNode {
return (
-
-
+
+
+
)
}
@@ -49,6 +65,13 @@ export class Autosearch extends Component, Stat
private onChange(text: string) {
this.setState({textboxValue: text});
this.props.searchvalue.setValue(text);
+ }
+
+ private onTouch() {
+ this.props.onEnter?.execute();
+ }
+
+ private onEnd() {
this.props.onChange?.execute();
}
}
diff --git a/src/Autosearch.xml b/src/Autosearch.xml
index b8be31d..25dd360 100644
--- a/src/Autosearch.xml
+++ b/src/Autosearch.xml
@@ -16,12 +16,20 @@
+
+ Editable
+
+
On change
+
+ On enter
+
+
diff --git a/typings/AutosearchProps.d.ts b/typings/AutosearchProps.d.ts
index f1d49c8..081bfe2 100644
--- a/typings/AutosearchProps.d.ts
+++ b/typings/AutosearchProps.d.ts
@@ -1,20 +1,24 @@
-/**
- * This file was generated from Autosearch.xml
- * WARNING: All changes made to this file will be overwritten
- * @author Mendix UI Content Team
- */
-import { ActionValue, EditableValue } from "mendix";
-
-export interface AutosearchProps