jqwidgets-ng 19.2.2 → 19.2.3

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.
Files changed (189) hide show
  1. package/esm2020/jqxinput/angular_jqxinput.mjs +25 -3
  2. package/fesm2015/jqwidgets-ng-jqxinput.mjs +25 -3
  3. package/fesm2020/jqwidgets-ng-jqxinput.mjs +25 -3
  4. package/jqwidgets/jqx-all.js +13 -13
  5. package/jqwidgets/jqxangular.js +1 -1
  6. package/jqwidgets/jqxbarcode.js +1 -1
  7. package/jqwidgets/jqxbargauge.js +2 -2
  8. package/jqwidgets/jqxbulletchart.js +1 -1
  9. package/jqwidgets/jqxbuttongroup.js +1 -1
  10. package/jqwidgets/jqxbuttons.js +2 -2
  11. package/jqwidgets/jqxcalendar.js +1 -1
  12. package/jqwidgets/jqxchart.annotations.js +1 -1
  13. package/jqwidgets/jqxchart.api.js +1 -1
  14. package/jqwidgets/jqxchart.core.js +1 -1
  15. package/jqwidgets/jqxchart.js +1 -1
  16. package/jqwidgets/jqxchart.rangeselector.js +1 -1
  17. package/jqwidgets/jqxchart.waterfall.js +1 -1
  18. package/jqwidgets/jqxcheckbox.js +1 -1
  19. package/jqwidgets/jqxcheckboxgroup.js +1 -1
  20. package/jqwidgets/jqxcolorpicker.js +1 -1
  21. package/jqwidgets/jqxcombobox.js +1 -1
  22. package/jqwidgets/jqxcomplexinput.js +1 -1
  23. package/jqwidgets/jqxcore.js +1 -1
  24. package/jqwidgets/jqxdata.export.js +1 -1
  25. package/jqwidgets/jqxdata.js +1 -1
  26. package/jqwidgets/jqxdatatable.js +2 -2
  27. package/jqwidgets/jqxdate.js +1 -1
  28. package/jqwidgets/jqxdatetimeinput.js +1 -1
  29. package/jqwidgets/jqxdocking.js +1 -1
  30. package/jqwidgets/jqxdockinglayout.js +1 -1
  31. package/jqwidgets/jqxdockpanel.js +1 -1
  32. package/jqwidgets/jqxdragdrop.js +1 -1
  33. package/jqwidgets/jqxdraw.js +1 -1
  34. package/jqwidgets/jqxdropdownbutton.js +1 -1
  35. package/jqwidgets/jqxdropdownlist.js +2 -2
  36. package/jqwidgets/jqxeditor.js +1 -1
  37. package/jqwidgets/jqxexpander.js +1 -1
  38. package/jqwidgets/jqxfileupload.js +1 -1
  39. package/jqwidgets/jqxform.js +1 -1
  40. package/jqwidgets/jqxformattedinput.js +1 -1
  41. package/jqwidgets/jqxgantt.js +1 -1
  42. package/jqwidgets/jqxgauge.js +1 -1
  43. package/jqwidgets/jqxgrid.aggregates.js +1 -1
  44. package/jqwidgets/jqxgrid.columnsreorder.js +1 -1
  45. package/jqwidgets/jqxgrid.columnsresize.js +1 -1
  46. package/jqwidgets/jqxgrid.edit.js +1 -1
  47. package/jqwidgets/jqxgrid.export.js +1 -1
  48. package/jqwidgets/jqxgrid.filter.js +2 -2
  49. package/jqwidgets/jqxgrid.grouping.js +1 -1
  50. package/jqwidgets/jqxgrid.js +2 -2
  51. package/jqwidgets/jqxgrid.pager.js +1 -1
  52. package/jqwidgets/jqxgrid.selection.js +2 -2
  53. package/jqwidgets/jqxgrid.sort.js +1 -1
  54. package/jqwidgets/jqxgrid.storage.js +1 -1
  55. package/jqwidgets/jqxheatmap.js +1 -1
  56. package/jqwidgets/jqxinput.js +2 -2
  57. package/jqwidgets/jqxkanban.js +2 -2
  58. package/jqwidgets/jqxknob.js +1 -1
  59. package/jqwidgets/jqxknockout.js +1 -1
  60. package/jqwidgets/jqxlayout.js +1 -1
  61. package/jqwidgets/jqxlistbox.js +1 -1
  62. package/jqwidgets/jqxlistmenu.js +1 -1
  63. package/jqwidgets/jqxloader.js +1 -1
  64. package/jqwidgets/jqxmaskedinput.js +1 -1
  65. package/jqwidgets/jqxmenu.js +1 -1
  66. package/jqwidgets/jqxnavbar.js +1 -1
  67. package/jqwidgets/jqxnavigationbar.js +1 -1
  68. package/jqwidgets/jqxnotification.js +1 -1
  69. package/jqwidgets/jqxnumberinput.js +1 -1
  70. package/jqwidgets/jqxpanel.js +1 -1
  71. package/jqwidgets/jqxpasswordinput.js +1 -1
  72. package/jqwidgets/jqxpivot.js +1 -1
  73. package/jqwidgets/jqxpivotdesigner.js +2 -2
  74. package/jqwidgets/jqxpivotgrid.js +1 -1
  75. package/jqwidgets/jqxpopover.js +1 -1
  76. package/jqwidgets/jqxprogressbar.js +1 -1
  77. package/jqwidgets/jqxqrcode.js +1 -1
  78. package/jqwidgets/jqxradiobutton.js +1 -1
  79. package/jqwidgets/jqxradiobuttongroup.js +2 -2
  80. package/jqwidgets/jqxrangeselector.js +1 -1
  81. package/jqwidgets/jqxrating.js +1 -1
  82. package/jqwidgets/jqxresponsivepanel.js +1 -1
  83. package/jqwidgets/jqxribbon.js +1 -1
  84. package/jqwidgets/jqxscheduler.api.js +1 -1
  85. package/jqwidgets/jqxscheduler.js +1 -1
  86. package/jqwidgets/jqxscrollbar.js +1 -1
  87. package/jqwidgets/jqxscrollview.js +1 -1
  88. package/jqwidgets/jqxslider.js +1 -1
  89. package/jqwidgets/jqxsortable.js +1 -1
  90. package/jqwidgets/jqxsplitter.js +1 -1
  91. package/jqwidgets/jqxswitchbutton.js +1 -1
  92. package/jqwidgets/jqxtabs.js +2 -2
  93. package/jqwidgets/jqxtagcloud.js +1 -1
  94. package/jqwidgets/jqxtextarea.js +1 -1
  95. package/jqwidgets/jqxtimeline.js +1 -1
  96. package/jqwidgets/jqxtimepicker.js +1 -1
  97. package/jqwidgets/jqxtoolbar.js +1 -1
  98. package/jqwidgets/jqxtooltip.js +1 -1
  99. package/jqwidgets/jqxtouch.js +1 -1
  100. package/jqwidgets/jqxtree.js +1 -1
  101. package/jqwidgets/jqxtreegrid.js +1 -1
  102. package/jqwidgets/jqxtreemap.js +1 -1
  103. package/jqwidgets/jqxvalidator.js +1 -1
  104. package/jqwidgets/jqxwindow.js +1 -1
  105. package/jqwidgets/modules/jqxbarcode.js +31 -1
  106. package/jqwidgets/modules/jqxbargauge.js +47 -17
  107. package/jqwidgets/modules/jqxbulletchart.js +31 -1
  108. package/jqwidgets/modules/jqxbuttongroup.js +52 -16
  109. package/jqwidgets/modules/jqxbuttons.js +50 -14
  110. package/jqwidgets/modules/jqxcalendar.js +56 -20
  111. package/jqwidgets/modules/jqxchart.js +31 -1
  112. package/jqwidgets/modules/jqxcheckbox.js +54 -18
  113. package/jqwidgets/modules/jqxcheckboxgroup.js +54 -18
  114. package/jqwidgets/modules/jqxcolorpicker.js +56 -20
  115. package/jqwidgets/modules/jqxcombobox.js +61 -25
  116. package/jqwidgets/modules/jqxcomplexinput.js +52 -16
  117. package/jqwidgets/modules/jqxdatatable.js +90 -50
  118. package/jqwidgets/modules/jqxdatetimeinput.js +75 -39
  119. package/jqwidgets/modules/jqxdocking.js +54 -18
  120. package/jqwidgets/modules/jqxdockinglayout.js +62 -26
  121. package/jqwidgets/modules/jqxdockpanel.js +52 -16
  122. package/jqwidgets/modules/jqxdragdrop.js +54 -18
  123. package/jqwidgets/modules/jqxdraw.js +31 -1
  124. package/jqwidgets/modules/jqxdropdownbutton.js +52 -16
  125. package/jqwidgets/modules/jqxdropdownlist.js +73 -37
  126. package/jqwidgets/modules/jqxeditor.js +85 -49
  127. package/jqwidgets/modules/jqxexpander.js +58 -22
  128. package/jqwidgets/modules/jqxfileupload.js +31 -1
  129. package/jqwidgets/modules/jqxform.js +83 -47
  130. package/jqwidgets/modules/jqxformattedinput.js +75 -39
  131. package/jqwidgets/modules/jqxgantt.js +31 -1
  132. package/jqwidgets/modules/jqxgauge.js +56 -20
  133. package/jqwidgets/modules/jqxgrid.js +3988 -3932
  134. package/jqwidgets/modules/jqxheatmap.js +31 -1
  135. package/jqwidgets/modules/jqxinput.js +1232 -972
  136. package/jqwidgets/modules/jqxkanban.js +1300 -1241
  137. package/jqwidgets/modules/jqxknob.js +54 -18
  138. package/jqwidgets/modules/jqxlayout.js +62 -26
  139. package/jqwidgets/modules/jqxlineargauge.js +56 -20
  140. package/jqwidgets/modules/jqxlinkbutton.js +50 -14
  141. package/jqwidgets/modules/jqxlistbox.js +64 -28
  142. package/jqwidgets/modules/jqxlistmenu.js +81 -45
  143. package/jqwidgets/modules/jqxloader.js +31 -1
  144. package/jqwidgets/modules/jqxmaskedinput.js +31 -1
  145. package/jqwidgets/modules/jqxmenu.js +62 -26
  146. package/jqwidgets/modules/jqxnavbar.js +58 -22
  147. package/jqwidgets/modules/jqxnavigationbar.js +66 -30
  148. package/jqwidgets/modules/jqxnotification.js +58 -22
  149. package/jqwidgets/modules/jqxnumberinput.js +65 -29
  150. package/jqwidgets/modules/jqxpanel.js +56 -20
  151. package/jqwidgets/modules/jqxpasswordinput.js +58 -22
  152. package/jqwidgets/modules/jqxpivotdesigner.js +90 -54
  153. package/jqwidgets/modules/jqxpivotgrid.js +90 -54
  154. package/jqwidgets/modules/jqxpopover.js +52 -16
  155. package/jqwidgets/modules/jqxprogressbar.js +31 -1
  156. package/jqwidgets/modules/jqxqrcode.js +31 -1
  157. package/jqwidgets/modules/jqxradiobutongroup.js +55 -19
  158. package/jqwidgets/modules/jqxradiobutton.js +52 -16
  159. package/jqwidgets/modules/jqxrangeselector.js +31 -1
  160. package/jqwidgets/modules/jqxrating.js +52 -16
  161. package/jqwidgets/modules/jqxrepeatbutton.js +50 -14
  162. package/jqwidgets/modules/jqxresponsivepanel.js +31 -1
  163. package/jqwidgets/modules/jqxribbon.js +54 -18
  164. package/jqwidgets/modules/jqxscheduler.js +1291 -1005
  165. package/jqwidgets/modules/jqxscrollbar.js +10618 -91150
  166. package/jqwidgets/modules/jqxscrollview.js +52 -16
  167. package/jqwidgets/modules/jqxslider.js +52 -16
  168. package/jqwidgets/modules/jqxsortable.js +52 -16
  169. package/jqwidgets/modules/jqxsplitlayout.js +2033 -2075
  170. package/jqwidgets/modules/jqxsplitter.js +52 -16
  171. package/jqwidgets/modules/jqxswitchbutton.js +56 -20
  172. package/jqwidgets/modules/jqxtabs.js +65 -29
  173. package/jqwidgets/modules/jqxtagcloud.js +58 -22
  174. package/jqwidgets/modules/jqxtextarea.js +58 -22
  175. package/jqwidgets/modules/jqxtimeline.js +31 -1
  176. package/jqwidgets/modules/jqxtimepicker.js +31 -1
  177. package/jqwidgets/modules/jqxtogglebutton.js +50 -14
  178. package/jqwidgets/modules/jqxtoolbar.js +1262 -996
  179. package/jqwidgets/modules/jqxtooltip.js +31 -1
  180. package/jqwidgets/modules/jqxtree.js +6381 -195
  181. package/jqwidgets/modules/jqxtreegrid.js +92 -52
  182. package/jqwidgets/modules/jqxtreemap.js +31 -1
  183. package/jqwidgets/modules/jqxvalidator.js +56 -20
  184. package/jqwidgets/modules/jqxwindow.js +52 -16
  185. package/jqwidgets/styles/gantt/jqx.gantt.css +98 -98
  186. package/jqwidgets/styles/jqx.base.css +20 -20
  187. package/jqwidgets.d.ts +2 -0
  188. package/jqxinput/angular_jqxinput.d.ts +5 -1
  189. package/package.json +1 -1
@@ -20,6 +20,30 @@ Copyright (c) 2011-2024 jQWidgets.
20
20
  License: https://jqwidgets.com/license/ */
21
21
 
22
22
 
23
+ /******/ (() => { // webpackBootstrap
24
+ var __webpack_exports__ = {};
25
+
26
+ /* Release Date: 28-May-2024
27
+ Copyright (c) 2011-2024 jQWidgets.
28
+ License: https://jqwidgets.com/license/ */
29
+
30
+
31
+ /******/ (() => { // webpackBootstrap
32
+ var __webpack_exports__ = {};
33
+
34
+ /* Release Date: 28-May-2024
35
+ Copyright (c) 2011-2024 jQWidgets.
36
+ License: https://jqwidgets.com/license/ */
37
+
38
+
39
+ /******/ (() => { // webpackBootstrap
40
+ var __webpack_exports__ = {};
41
+
42
+ /* Release Date: 28-May-2024
43
+ Copyright (c) 2011-2024 jQWidgets.
44
+ License: https://jqwidgets.com/license/ */
45
+
46
+
23
47
  /******/ (() => { // webpackBootstrap
24
48
  /******/ var __webpack_modules__ = ({
25
49
 
@@ -2861,6 +2885,12 @@ document.Globalize = Globalize;
2861
2885
  that.element.disabled = true;
2862
2886
  that.element.setAttribute('disabled', 'true');
2863
2887
  }
2888
+
2889
+ if (that.textPosition){
2890
+ $.jqx.utilities.resize(this.host, function () {
2891
+ that._positionTextAndImage();
2892
+ });
2893
+ }
2864
2894
  }, // createInstance
2865
2895
 
2866
2896
  resize: function (width, height) {
@@ -11410,7 +11440,7 @@ document.Globalize = Globalize;
11410
11440
  /***/ }),
11411
11441
 
11412
11442
  /***/ 5459:
11413
- /***/ ((module, exports, __nested_webpack_require_453647__) => {
11443
+ /***/ ((module, exports, __nested_webpack_require_453785__) => {
11414
11444
 
11415
11445
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* tslint:disable */
11416
11446
  /* eslint-disable */
@@ -19590,7 +19620,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* tslint:disabl
19590
19620
  // file names, and JQXLite is normally delivered in a lowercase file name.
19591
19621
  // Do this after creating the global so that if an AMD module wants to call
19592
19622
  // noConflict to hide this version of JQXLite, it will work.
19593
- if ( true && __nested_webpack_require_453647__.amdO.JQXLite) {
19623
+ if ( true && __nested_webpack_require_453785__.amdO.JQXLite) {
19594
19624
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { return JQXLite; }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
19595
19625
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
19596
19626
  }
@@ -41053,7 +41083,7 @@ var saveAs = window.jqxSaveAs = saveAs
41053
41083
  }
41054
41084
  else self.focus();
41055
41085
 
41056
- event.stopPropagation();
41086
+ // event.stopPropagation();
41057
41087
  }
41058
41088
  }
41059
41089
  }
@@ -45990,1169 +46020,1399 @@ ${attr.formula} </cfRule>
45990
46020
 
45991
46021
  /* tslint:disable */
45992
46022
  /* eslint-disable */
45993
- (function(){
45994
- if (typeof document === 'undefined') {
45995
- return;
45996
- }
46023
+ (function () {
46024
+ if (typeof document === 'undefined') {
46025
+ return;
46026
+ }
45997
46027
 
45998
- (function ($) {
45999
- 'use strict';
46000
- $.jqx.jqxWidget('jqxInput', '', {});
46028
+ (function ($) {
46029
+ 'use strict';
46030
+ $.jqx.jqxWidget('jqxInput', '', {});
46001
46031
 
46002
- $.extend($.jqx._jqxInput.prototype, {
46003
- defineInstance: function () {
46004
- var that = this;
46005
- var settings = {
46006
- disabled: false,
46007
- filter: that._filter,
46008
- sort: that._sort,
46009
- highlight: that._highlight,
46010
- dropDownWidth: null,
46011
- renderer: that._renderer,
46012
- opened: false,
46013
- $popup: document.createElement('ul'),
46014
- source: [],
46015
- roundedCorners: true,
46016
- searchMode: 'default',
46017
- placeHolder: '',
46018
- width: null,
46019
- height: null,
46020
- value: '',
46021
- rtl: false,
46022
- enableBrowserBoundsDetection: true,
46023
- hint: true,
46024
- displayMember: '',
46025
- valueMember: '',
46026
- events: ['select', 'open', 'close', 'change'],
46027
- popupZIndex: 1000,
46028
- items: 8,
46029
- minLength: 1,
46030
- maxLength: null
46031
- };
46032
- if (this === $.jqx._jqxInput.prototype) {
46032
+ $.extend($.jqx._jqxInput.prototype, {
46033
+ defineInstance: function () {
46034
+ var that = this;
46035
+ var settings = {
46036
+ disabled: false,
46037
+ filter: that._filter,
46038
+ sort: that._sort,
46039
+ highlight: that._highlight,
46040
+ dropDownWidth: null,
46041
+ renderer: that._renderer,
46042
+ opened: false,
46043
+ $popup: document.createElement('ul'),
46044
+ source: [],
46045
+ roundedCorners: true,
46046
+ searchMode: 'default',
46047
+ placeHolder: '',
46048
+ width: null,
46049
+ height: null,
46050
+ value: '',
46051
+ rtl: false,
46052
+ enableBrowserBoundsDetection: true,
46053
+ hint: true,
46054
+ displayMember: '',
46055
+ valueMember: '',
46056
+ inlineAutoComplete: false,
46057
+ events: ['select', 'open', 'close', 'change'],
46058
+ popupZIndex: 1000,
46059
+ items: 8,
46060
+ minLength: 1,
46061
+ maxLength: null,
46062
+ aiKey: ''
46063
+ };
46064
+ if (this === $.jqx._jqxInput.prototype) {
46065
+ return settings;
46066
+ }
46067
+ $.extend(true, this, settings);
46033
46068
  return settings;
46034
- }
46035
- $.extend(true, this, settings);
46036
- return settings;
46037
- },
46038
-
46039
- createInstance: function () {
46040
- var that = this;
46041
- if (that.host.css('display') === 'none' || document.body.contains(that.element) === false) {
46042
- that._initiallyHidden = true;
46043
- }
46044
- that._popupHelper = $(that.$popup);
46045
- that.render();
46046
- },
46069
+ },
46047
46070
 
46048
- render: function () {
46049
- var that = this;
46071
+ createInstance: function () {
46072
+ var that = this;
46073
+ if (that.host.css('display') === 'none' || document.body.contains(that.element) === false) {
46074
+ that._initiallyHidden = true;
46075
+ }
46076
+ that._popupHelper = $(that.$popup);
46077
+ that.render();
46078
+ },
46050
46079
 
46051
- this.input = this.element;
46080
+ getAISuggestions: function (callback) {
46081
+ var that = this;
46082
+ var response = '';
46083
+ if (!that.aiKey) {
46084
+ callback('');
46085
+ }
46052
46086
 
46053
- if (that.isMaterialized() && this.input instanceof HTMLInputElement) {
46054
- var children = this.host.children();
46055
- $.each(children, function (index) {
46056
- var classToAdd = 'jqx-input-group-addon';
46057
- $(this).removeClass(that.toThemeProperty('jqx-rc-all'));
46058
- if (index === 0) {
46059
- classToAdd += ' jqx-rc-l';
46060
- }
46061
- if (index === children.length - 1) {
46062
- classToAdd += ' jqx-rc-r';
46063
- }
46064
- if (this !== that.element) {
46065
- classToAdd += ' jqx-fill-state-normal';
46066
- }
46067
- this.className += ' ' + that.toThemeProperty(classToAdd);
46068
- });
46087
+ function buildPrompt(textBefore, textAfter) {
46088
+ var systemMessageBuilder = [];
46089
+ systemMessageBuilder.push("Predict what text the user in the given ROLE would insert after the cursor position indicated by ^^^. Auto-correct the text.\n");
46090
+ systemMessageBuilder.push("RULES:\n");
46091
+ systemMessageBuilder.push("1. Reply with OK:, then in square brackets the predicted text, then END_INSERTION, and no other output.\n");
46092
+ systemMessageBuilder.push("2. When a specific value or quantity cannot be inferred and would need to be provided, use the word NEED_INFO.\n");
46093
+ systemMessageBuilder.push("3. If there isn't enough information to predict any words that the user would type next, just reply with the word NO_PREDICTION.\n");
46094
+ systemMessageBuilder.push("4. NEVER invent new information. If you can't be sure what the user is about to type, ALWAYS stop the prediction with END_INSERTION.\n");
46069
46095
 
46070
- var group = $("<div></div>");
46071
- group.addClass(that.toThemeProperty('jqx-input-group'));
46072
- this.host.after(group);
46073
- var input = this.element;
46074
- var data = this.host.data();
46096
+ /*
46097
+ if (that.userPhrases.length) {
46098
+ systemMessageBuilder.push("\nAlways try to use variations on the following phrases as part of the predictions:\n");
46099
+ for (let i = 0; i < that.userPhrases.length; i++) {
46100
+ systemMessageBuilder.push("- {0}\n", that.userPhrases[i]);
46101
+ }
46102
+ }*/
46075
46103
 
46076
- group.append(input);
46077
- var label = $("<label></label");
46104
+ systemMessageBuilder.push("\n\nROLE: " + "User" + " USER_TEXT: " + textBefore + textAfter + "^^^");
46078
46105
 
46079
- if (this.hint) {
46080
- label[0].innerHTML = this.placeHolder;
46106
+ return systemMessageBuilder.join('\n');
46081
46107
  }
46082
46108
 
46083
- label.addClass(that.toThemeProperty('jqx-input-label'));
46084
- group.append(label);
46109
+ function fetchAIResponse(prompt, callback) {
46110
+ var apiKey = that.aiKey; // Replace this with your OpenAI API key (don't expose it on public websites)
46111
+
46112
+ var headers = {
46113
+ 'Content-Type': 'application/json',
46114
+ 'Authorization': 'Bearer ' + apiKey
46115
+ };
46085
46116
 
46086
- var bar = $("<span></span>");
46087
- group.append(bar);
46088
- bar.addClass(that.toThemeProperty('jqx-input-bar'));
46117
+ var body = JSON.stringify({
46118
+ model: "gpt-3.5-turbo", // or "gpt-4" if you have access
46119
+ messages: [{ role: "user", content: prompt }], // The conversation format
46120
+ // stop_frequences: ["END_INSERTION", "NEED_INFO"],
46121
+ max_tokens: 200 // You can adjust token length based on your needs,
46122
+ });
46089
46123
 
46090
- group[0].id = this.element.id;
46091
- this.element.removeAttribute('id');
46124
+ var xhr = new XMLHttpRequest();
46125
+ xhr.open('POST', 'https://api.openai.com/v1/chat/completions', true);
46126
+ xhr.setRequestHeader('Content-Type', 'application/json');
46127
+ xhr.setRequestHeader('Authorization', 'Bearer ' + apiKey);
46128
+
46129
+ xhr.onreadystatechange = function () {
46130
+ if (xhr.readyState === 4) {
46131
+ if (xhr.status === 200) {
46132
+ var response = JSON.parse(xhr.responseText);
46133
+ // Make sure there are choices and content in the response
46134
+ if (response.choices && response.choices.length > 0 && response.choices[0].message.content) {
46135
+ var content = response.choices[0].message.content;
46136
+
46137
+ if (content.length > 5 && content.startsWith("OK")) {
46138
+ content = content.substring(4);
46139
+ content = content.replace('END_INSERTION', '');
46140
+
46141
+ var matches = content.match(/\[(.*?)\]/g);
46142
+
46143
+ // Remove the brackets from the extracted text
46144
+ if (matches) {
46145
+ // Use map to strip out brackets
46146
+ var extractedText = matches.map(function (match) {
46147
+ return match.replace(/^\[|\]$/g, '');
46148
+ });
46149
+
46150
+ content = extractedText[0]
46151
+ }
46092
46152
 
46093
- group[0].style.cssText = this.element.style.cssText;
46094
- if (this.element.className.indexOf('underlined') >= 0) {
46095
- group.addClass('underlined');
46153
+ content = content.replace('[', '');
46154
+ content = content.replace(']', '');
46155
+ }
46156
+
46157
+ if (content.indexOf('NO_PREDICTION') >= 0) {
46158
+ content = '';
46159
+ }
46160
+
46161
+ callback(null, content);
46162
+ }
46163
+ else {
46164
+ callback('Error: No valid response from AI', null);
46165
+ }
46166
+ } else {
46167
+ callback('Error fetching AI response: ' + xhr.statusText, null);
46168
+ }
46169
+ }
46170
+ };
46171
+
46172
+ xhr.send(body);
46096
46173
  }
46097
46174
 
46098
- that.input = that.element;
46099
- if (!(this.input instanceof HTMLInputElement)) {
46100
- this.input = this.host.find('input');
46101
- if (this.input.length > 0) {
46102
- this.input = this.input[0];
46175
+ var textBefore = that.input.value.substring(0, that.input.selectionStart);
46176
+ var textAfter = that.input.value.substring(that.input.selectionStart + 1);
46177
+ var text = textBefore + textAfter;
46178
+ if (text.endsWith(' ')) {
46179
+ var prompt = buildPrompt(textBefore, textAfter);
46180
+ fetchAIResponse(prompt.toString(), function (error, aiResponse) {
46181
+ if (error) {
46182
+ callback('');
46183
+ } else {
46184
+ callback(aiResponse);
46185
+ }
46103
46186
  }
46104
- $(this.input).addClass(this.toThemeProperty("jqx-input-widget"));
46187
+ );
46105
46188
  }
46106
- this.label = label;
46107
- this.bar = bar;
46108
- this.element.style.cssText = '';
46109
- this.host = group;
46110
- this.element = group[0];
46111
- this.host.data(data);
46189
+ },
46112
46190
 
46191
+ render: function () {
46113
46192
  var that = this;
46114
46193
 
46115
- if (that.template) {
46116
- that.bar.addClass(that.toThemeProperty("jqx-" + that.template));
46117
- that.label.addClass(that.toThemeProperty("jqx-" + that.template));
46118
- }
46194
+ this.input = this.element;
46119
46195
 
46120
- if (children.length > 0) {
46121
- that._hasAddons = true;
46122
- }
46123
- }
46124
- else if (this.element.nodeName.toLowerCase() === 'textarea') {
46125
- this.element.style.overflow = 'auto';
46126
- } else
46127
- if (this.element.nodeName.toLowerCase() === 'div') {
46128
- this.baseHost = this.element;
46129
- var input = that.element.getElementsByTagName('input');
46130
- var hasTextInput = false;
46131
-
46132
- $.each(input, function () {
46133
- var type = this.type;
46134
- if (type == null || type === 'text' || type === 'textarea') {
46135
- input = $(this);
46136
- hasTextInput = true;
46137
- return false;
46196
+ if (that.isMaterialized() && this.input instanceof HTMLInputElement) {
46197
+ var children = this.host.children();
46198
+ $.each(children, function (index) {
46199
+ var classToAdd = 'jqx-input-group-addon';
46200
+ $(this).removeClass(that.toThemeProperty('jqx-rc-all'));
46201
+ if (index === 0) {
46202
+ classToAdd += ' jqx-rc-l';
46138
46203
  }
46204
+ if (index === children.length - 1) {
46205
+ classToAdd += ' jqx-rc-r';
46206
+ }
46207
+ if (this !== that.element) {
46208
+ classToAdd += ' jqx-fill-state-normal';
46209
+ }
46210
+ this.className += ' ' + that.toThemeProperty(classToAdd);
46139
46211
  });
46140
- if (!hasTextInput) {
46141
- throw new Error('jqxInput: Missing Text Input in the Input Group');
46142
- }
46143
-
46144
- if (input.length > 0) {
46145
- this.baseHost = $(this.element);
46146
- that.baseElement = that.element;
46147
- var data = this.host.data();
46148
- this.host = input;
46149
- this.element = input[0];
46150
- that.input = input[0];
46151
- this.host.data(data);
46152
- that.baseElement.className += ' ' + that.toThemeProperty('jqx-widget jqx-rc-all jqx-input-group');
46153
- var children = this.baseHost.children();
46154
- $.each(children, function (index) {
46155
- var classToAdd = 'jqx-input-group-addon';
46156
- $(this).removeClass(that.toThemeProperty('jqx-rc-all'));
46157
- if (index === 0) {
46158
- classToAdd += ' jqx-rc-l';
46159
- }
46160
- if (index === children.length - 1) {
46161
- classToAdd += ' jqx-rc-r';
46162
- }
46163
- if (this !== that.element) {
46164
- classToAdd += ' jqx-fill-state-normal';
46165
- }
46166
- this.className += ' ' + that.toThemeProperty(classToAdd);
46167
- });
46212
+
46213
+ var group = $("<div></div>");
46214
+ group.addClass(that.toThemeProperty('jqx-input-group'));
46215
+ this.host.after(group);
46216
+ var input = this.element;
46217
+ var data = this.host.data();
46218
+
46219
+
46220
+ group.append(input);
46221
+ var label = $("<label></label");
46222
+
46223
+ if (this.hint) {
46224
+ label[0].innerHTML = this.placeHolder;
46168
46225
  }
46169
- }
46170
46226
 
46171
- this.addHandlers();
46172
- if (this.rtl) {
46173
- that.element.className += ' ' + that.toThemeProperty('jqx-rtl');
46174
- }
46175
- that.element.setAttribute('role', 'textbox');
46176
- $.jqx.aria(this, 'aria-autocomplete', 'both');
46177
- $.jqx.aria(this, 'aria-disabled', this.disabled);
46178
- $.jqx.aria(this, 'aria-readonly', false);
46179
- $.jqx.aria(this, 'aria-multiline', false);
46180
- if (this.source && this.source.length) {
46181
- $.jqx.aria(this, 'aria-haspopup', true);
46182
- }
46183
- if (this.value !== '') {
46184
- this.input.value = this.value;
46185
- }
46227
+ label.addClass(that.toThemeProperty('jqx-input-label'));
46228
+ group.append(label);
46186
46229
 
46187
- this._oldsource = this.source;
46188
- this._updateSource();
46189
- },
46230
+ var autoCompleteLabel = $("<label class='jqx-input-inline'></label");
46231
+ autoCompleteLabel[0].style.display = 'none';
46232
+ this._inlineLabel = autoCompleteLabel[0];
46190
46233
 
46191
- _updateSource: function () {
46192
- var that = this;
46234
+ group.append(autoCompleteLabel);
46193
46235
 
46194
- var mapItem = function (item) {
46195
- if (item === undefined) {
46196
- return null;
46197
- }
46198
46236
 
46199
- if (typeof item === 'string' || item instanceof String) {
46200
- return { label: item, value: item };
46201
- }
46237
+ var bar = $("<span></span>");
46238
+ group.append(bar);
46239
+ bar.addClass(that.toThemeProperty('jqx-input-bar'));
46202
46240
 
46203
- if (typeof item !== 'string' && item instanceof String === false) {
46204
- var label = '';
46205
- var value = '';
46241
+ group[0].id = this.element.id;
46242
+ this.element.removeAttribute('id');
46243
+
46244
+ group[0].style.cssText = this.element.style.cssText;
46245
+ if (this.element.className.indexOf('underlined') >= 0) {
46246
+ group.addClass('underlined');
46247
+ }
46206
46248
 
46207
- if (that.displayMember !== '' && that.displayMember !== undefined) {
46208
- if (item[that.displayMember]) {
46209
- label = item[that.displayMember];
46249
+ that.input = that.element;
46250
+ if (!(this.input instanceof HTMLInputElement)) {
46251
+ this.input = this.host.find('input');
46252
+ if (this.input.length > 0) {
46253
+ this.input = this.input[0];
46210
46254
  }
46255
+ $(this.input).addClass(this.toThemeProperty("jqx-input-widget"));
46211
46256
  }
46257
+ this.label = label;
46258
+ this.bar = bar;
46259
+ this.element.style.cssText = '';
46260
+ this.host = group;
46261
+ this.element = group[0];
46262
+ this.host.data(data);
46212
46263
 
46213
- if (that.valueMember !== '' && that.valueMember !== undefined) {
46214
- value = item[that.valueMember];
46264
+ var that = this;
46265
+
46266
+ if (that.template) {
46267
+ that.bar.addClass(that.toThemeProperty("jqx-" + that.template));
46268
+ that.label.addClass(that.toThemeProperty("jqx-" + that.template));
46215
46269
  }
46216
46270
 
46217
- if (label === '') {
46218
- label = item.label;
46271
+ if (children.length > 0) {
46272
+ that._hasAddons = true;
46219
46273
  }
46220
- if (value === '') {
46221
- value = item.value;
46274
+ }
46275
+ else if (this.element.nodeName.toLowerCase() === 'textarea') {
46276
+ this.element.style.overflow = 'auto';
46277
+ } else
46278
+ if (this.element.nodeName.toLowerCase() === 'div') {
46279
+ this.baseHost = this.element;
46280
+ var input = that.element.getElementsByTagName('input');
46281
+ var hasTextInput = false;
46282
+
46283
+ $.each(input, function () {
46284
+ var type = this.type;
46285
+ if (type == null || type === 'text' || type === 'textarea') {
46286
+ input = $(this);
46287
+ hasTextInput = true;
46288
+ return false;
46289
+ }
46290
+ });
46291
+ if (!hasTextInput) {
46292
+ throw new Error('jqxInput: Missing Text Input in the Input Group');
46293
+ }
46294
+
46295
+ if (input.length > 0) {
46296
+ this.baseHost = $(this.element);
46297
+ that.baseElement = that.element;
46298
+ var data = this.host.data();
46299
+ this.host = input;
46300
+ this.element = input[0];
46301
+ that.input = input[0];
46302
+ this.host.data(data);
46303
+ that.baseElement.className += ' ' + that.toThemeProperty('jqx-widget jqx-rc-all jqx-input-group');
46304
+ var children = this.baseHost.children();
46305
+ $.each(children, function (index) {
46306
+ var classToAdd = 'jqx-input-group-addon';
46307
+ $(this).removeClass(that.toThemeProperty('jqx-rc-all'));
46308
+ if (index === 0) {
46309
+ classToAdd += ' jqx-rc-l';
46310
+ }
46311
+ if (index === children.length - 1) {
46312
+ classToAdd += ' jqx-rc-r';
46313
+ }
46314
+ if (this !== that.element) {
46315
+ classToAdd += ' jqx-fill-state-normal';
46316
+ }
46317
+ this.className += ' ' + that.toThemeProperty(classToAdd);
46318
+ });
46319
+ }
46222
46320
  }
46223
46321
 
46224
- return { label: label, value: value };
46322
+ this.addHandlers();
46323
+ if (this.rtl) {
46324
+ that.element.className += ' ' + that.toThemeProperty('jqx-rtl');
46225
46325
  }
46226
46326
 
46227
- return item;
46228
- };
46327
+ that.input.setAttribute('autocomplete', 'off');
46328
+ that.input.setAttribute('autocorrect', 'off');
46329
+ that.input.setAttribute('spellcheck', false);
46229
46330
 
46230
- var mapItems = function (source) {
46231
- var items = [];
46232
- for (var i = 0; i < source.length; i++) {
46233
- items[i] = mapItem(source[i]);
46331
+ that.element.setAttribute('role', 'textbox');
46332
+ $.jqx.aria(this, 'aria-autocomplete', 'both');
46333
+ $.jqx.aria(this, 'aria-disabled', this.disabled);
46334
+ $.jqx.aria(this, 'aria-readonly', false);
46335
+ $.jqx.aria(this, 'aria-multiline', false);
46336
+ if (this.source && this.source.length) {
46337
+ $.jqx.aria(this, 'aria-haspopup', true);
46234
46338
  }
46235
- return items;
46236
- };
46237
-
46238
- if (this.source && this.source._source) {
46239
- this.adapter = this.source;
46240
- if (this.adapter._source.localdata != null) {
46241
- this.adapter.unbindBindingUpdate(this.element.id);
46242
- this.adapter.bindBindingUpdate(this.element.id, function () {
46243
- that.source = mapItems(that.adapter.records);
46244
- });
46339
+ if (this.value !== '') {
46340
+ this.input.value = this.value;
46245
46341
  }
46246
- else {
46247
- var postdata = {};
46248
- if (this.adapter._options.data) {
46249
- $.extend(that.adapter._options.data, postdata);
46342
+
46343
+ this._oldsource = this.source;
46344
+ this._updateSource();
46345
+ },
46346
+
46347
+ _updateSource: function () {
46348
+ var that = this;
46349
+
46350
+ var mapItem = function (item) {
46351
+ if (item === undefined) {
46352
+ return null;
46250
46353
  }
46251
- else {
46252
- if (this.source._source.data) {
46253
- $.extend(postdata, this.source._source.data);
46254
- }
46255
- this.adapter._options.data = postdata;
46354
+
46355
+ if (typeof item === 'string' || item instanceof String) {
46356
+ return { label: item, value: item };
46256
46357
  }
46257
- this.adapter.unbindDownloadComplete(this.element.id);
46258
- this.adapter.bindDownloadComplete(this.element.id, function () {
46259
- that.source = mapItems(that.adapter.records);
46260
- });
46261
- }
46262
- this.source.dataBind();
46263
- return;
46264
- }
46265
46358
 
46266
- if (!$.isFunction(this.source)) {
46267
- this.source = mapItems(this.source);
46268
- }
46269
- },
46359
+ if (typeof item !== 'string' && item instanceof String === false) {
46360
+ var label = '';
46361
+ var value = '';
46270
46362
 
46271
- _refreshClasses: function (add) {
46272
- var func = add ? 'addClass' : 'removeClass',
46273
- hostClass = 'jqx-widget-content jqx-input-widget jqx-input jqx-widget',
46274
- popupClass = 'jqx-popup jqx-input-popup jqx-menu jqx-menu-vertical jqx-menu-dropdown jqx-widget jqx-widget-content';
46363
+ if (that.displayMember !== '' && that.displayMember !== undefined) {
46364
+ if (item[that.displayMember]) {
46365
+ label = item[that.displayMember];
46366
+ }
46367
+ }
46275
46368
 
46276
- if ($.jqx.browser.msie) {
46277
- popupClass += ' jqx-noshadow';
46278
- }
46279
- if (this.roundedCorners) {
46280
- hostClass += ' jqx-rc-all';
46281
- popupClass += ' jqx-rc-all';
46282
- }
46283
- if (this.disabled) {
46284
- hostClass += ' jqx-fill-state-disabled';
46285
- } else {
46286
- this.host.removeClass(this.toThemeProperty('jqx-fill-state-disabled'));
46287
- }
46288
- this.host[func](this.toThemeProperty(hostClass));
46289
- this._popupHelper[func](this.toThemeProperty(popupClass));
46290
- },
46369
+ if (that.valueMember !== '' && that.valueMember !== undefined) {
46370
+ value = item[that.valueMember];
46371
+ }
46291
46372
 
46292
- selectAll: function () {
46293
- var that = this;
46294
- var textbox = this.host;
46373
+ if (label === '') {
46374
+ label = item.label;
46375
+ }
46376
+ if (value === '') {
46377
+ value = item.value;
46378
+ }
46295
46379
 
46296
- if (textbox[0] instanceof HTMLInputElement === false) {
46297
- textbox = $(that.input);
46298
- }
46380
+ return { label: label, value: value };
46381
+ }
46299
46382
 
46300
- setTimeout(function () {
46301
- if ('selectionStart' in textbox[0]) {
46302
- textbox[0].focus();
46303
- textbox[0].setSelectionRange(0, textbox[0].value.length);
46383
+ return item;
46384
+ };
46385
+
46386
+ var mapItems = function (source) {
46387
+ var items = [];
46388
+ for (var i = 0; i < source.length; i++) {
46389
+ items[i] = mapItem(source[i]);
46390
+ }
46391
+ return items;
46392
+ };
46393
+
46394
+ if (this.source && this.source._source) {
46395
+ this.adapter = this.source;
46396
+ if (this.adapter._source.localdata != null) {
46397
+ this.adapter.unbindBindingUpdate(this.element.id);
46398
+ this.adapter.bindBindingUpdate(this.element.id, function () {
46399
+ that.source = mapItems(that.adapter.records);
46400
+ });
46401
+ }
46402
+ else {
46403
+ var postdata = {};
46404
+ if (this.adapter._options.data) {
46405
+ $.extend(that.adapter._options.data, postdata);
46406
+ }
46407
+ else {
46408
+ if (this.source._source.data) {
46409
+ $.extend(postdata, this.source._source.data);
46410
+ }
46411
+ this.adapter._options.data = postdata;
46412
+ }
46413
+ this.adapter.unbindDownloadComplete(this.element.id);
46414
+ this.adapter.bindDownloadComplete(this.element.id, function () {
46415
+ that.source = mapItems(that.adapter.records);
46416
+ });
46417
+ }
46418
+ this.source.dataBind();
46419
+ return;
46304
46420
  }
46305
- else {
46306
- var range = textbox[0].createTextRange();
46307
- range.collapse(true);
46308
- range.moveEnd('character', textbox[0].value.length);
46309
- range.moveStart('character', 0);
46310
- range.select();
46421
+
46422
+ if (!$.isFunction(this.source)) {
46423
+ this.source = mapItems(this.source);
46311
46424
  }
46312
- }, 10);
46313
- },
46425
+ },
46314
46426
 
46315
- selectLast: function () {
46316
- var that = this;
46317
- var textbox = this.host;
46427
+ _refreshClasses: function (add) {
46428
+ var func = add ? 'addClass' : 'removeClass',
46429
+ hostClass = 'jqx-widget-content jqx-input-widget jqx-input jqx-widget',
46430
+ popupClass = 'jqx-popup jqx-input-popup jqx-menu jqx-menu-vertical jqx-menu-dropdown jqx-widget jqx-widget-content';
46318
46431
 
46319
- if (textbox[0] instanceof HTMLInputElement === false) {
46320
- textbox = $(that.input);
46321
- }
46432
+ if ($.jqx.browser.msie) {
46433
+ popupClass += ' jqx-noshadow';
46434
+ }
46435
+ if (this.roundedCorners) {
46436
+ hostClass += ' jqx-rc-all';
46437
+ popupClass += ' jqx-rc-all';
46438
+ }
46439
+ if (this.disabled) {
46440
+ hostClass += ' jqx-fill-state-disabled';
46441
+ } else {
46442
+ this.host.removeClass(this.toThemeProperty('jqx-fill-state-disabled'));
46443
+ }
46444
+ this.host[func](this.toThemeProperty(hostClass));
46445
+ this._popupHelper[func](this.toThemeProperty(popupClass));
46446
+ },
46322
46447
 
46323
- this.selectStart(textbox[0].value.length);
46324
- },
46448
+ selectAll: function () {
46449
+ var that = this;
46450
+ var textbox = this.host;
46325
46451
 
46326
- selectFirst: function () {
46327
- //var textbox = this.host;
46328
- this.selectStart(0);
46329
- },
46452
+ if (textbox[0] instanceof HTMLInputElement === false) {
46453
+ textbox = $(that.input);
46454
+ }
46330
46455
 
46331
- selectStart: function (index) {
46332
- var that = this;
46333
- var textbox = this.host;
46456
+ setTimeout(function () {
46457
+ if ('selectionStart' in textbox[0]) {
46458
+ textbox[0].focus();
46459
+ textbox[0].setSelectionRange(0, textbox[0].value.length);
46460
+ }
46461
+ else {
46462
+ var range = textbox[0].createTextRange();
46463
+ range.collapse(true);
46464
+ range.moveEnd('character', textbox[0].value.length);
46465
+ range.moveStart('character', 0);
46466
+ range.select();
46467
+ }
46468
+ }, 10);
46469
+ },
46334
46470
 
46335
- if (textbox[0] instanceof HTMLInputElement === false) {
46336
- textbox = $(that.input);
46337
- }
46471
+ selectLast: function () {
46472
+ var that = this;
46473
+ var textbox = this.host;
46338
46474
 
46339
- setTimeout(function () {
46340
- if ('selectionStart' in textbox[0]) {
46341
- textbox[0].focus();
46342
- textbox[0].setSelectionRange(index, index);
46475
+ if (textbox[0] instanceof HTMLInputElement === false) {
46476
+ textbox = $(that.input);
46343
46477
  }
46344
- else {
46345
- var range = textbox[0].createTextRange();
46346
- range.collapse(true);
46347
- range.moveEnd('character', index);
46348
- range.moveStart('character', index);
46349
- range.select();
46350
- }
46351
- }, 10);
46352
- },
46353
46478
 
46354
- focus: function () {
46355
- try {
46479
+ this.selectStart(textbox[0].value.length);
46480
+ },
46481
+
46482
+ selectFirst: function () {
46483
+ //var textbox = this.host;
46484
+ this.selectStart(0);
46485
+ },
46486
+
46487
+ selectStart: function (index) {
46356
46488
  var that = this;
46357
- that.element.focus();
46358
- setTimeout(function () {
46359
- that.element.focus();
46360
- }, 25);
46489
+ var textbox = this.host;
46361
46490
 
46362
- }
46363
- catch (error) {
46364
- }
46365
- },
46491
+ if (textbox[0] instanceof HTMLInputElement === false) {
46492
+ textbox = $(that.input);
46493
+ }
46366
46494
 
46367
- resize: function (width, height) {
46368
- this.width = width;
46369
- this.height = height;
46370
- this.refresh();
46371
- },
46495
+ setTimeout(function () {
46496
+ if ('selectionStart' in textbox[0]) {
46497
+ textbox[0].focus();
46498
+ textbox[0].setSelectionRange(index, index);
46499
+ }
46500
+ else {
46501
+ var range = textbox[0].createTextRange();
46502
+ range.collapse(true);
46503
+ range.moveEnd('character', index);
46504
+ range.moveStart('character', index);
46505
+ range.select();
46506
+ }
46507
+ }, 10);
46508
+ },
46372
46509
 
46373
- refresh: function () {
46374
- this._refreshClasses(false);
46375
- this._refreshClasses(true);
46510
+ focus: function () {
46511
+ try {
46512
+ var that = this;
46513
+ that.element.focus();
46514
+ setTimeout(function () {
46515
+ that.element.focus();
46516
+ }, 25);
46376
46517
 
46377
- if (!this.baseHost) {
46378
- if (this.width != null && this.width.toString().indexOf("px") != -1) {
46379
- this.element.style.width = parseInt(this.width) + 'px';
46380
- }
46381
- else if (this.width != undefined && !isNaN(this.width)) {
46382
- this.element.style.width = this.width + 'px';
46383
46518
  }
46384
- else {
46385
- this.element.style.width = this.width;
46519
+ catch (error) {
46386
46520
  }
46521
+ },
46387
46522
 
46388
- if (this.height != null && this.height.toString().indexOf("px") != -1) {
46389
- this.element.style.height = parseInt(this.height) + 'px';;
46390
- }
46391
- else if (this.height != undefined && !isNaN(this.height)) {
46392
- this.element.style.height = this.height + 'px';
46393
- }
46394
- else {
46395
- this.element.style.height = this.height;
46396
- }
46397
- if (this._hasAddons) {
46398
- this._addonsWidth = 35;
46399
- this.input.style.width = 'calc(100% - ' + this._addonsWidth + 'px)';
46400
- }
46401
- } else {
46402
- if (this.width != null && this.width.toString().indexOf("px") != -1) {
46403
- this.baseElement.style.width = parseInt(this.width) + 'px';
46404
- }
46405
- else if (this.width != undefined && !isNaN(this.width)) {
46406
- this.baseElement.style.width = this.width + 'px';
46407
- }
46523
+ resize: function (width, height) {
46524
+ this.width = width;
46525
+ this.height = height;
46526
+ this.refresh();
46527
+ },
46408
46528
 
46409
- if (this.height != null && this.height.toString().indexOf("px") != -1) {
46410
- this.baseElement.style.height = parseInt(this.height) + 'px';
46411
- }
46412
- else if (this.height != undefined && !isNaN(this.height)) {
46413
- this.baseElement.style.height = this.height + 'px';
46414
- };
46415
- var that = this,
46416
- IE8 = $.jqx.browser.msie && $.jqx.browser.version < 9,
46417
- totalWidth = 0;
46418
- $.each(this.baseHost.children(), function () {
46419
- this.style.height = '100%';
46420
- if (this !== that.element) {
46421
- totalWidth += $(this).outerWidth();
46529
+ refresh: function () {
46530
+ this._refreshClasses(false);
46531
+ this._refreshClasses(true);
46532
+
46533
+ if (!this.baseHost) {
46534
+ if (this.width != null && this.width.toString().indexOf("px") != -1) {
46535
+ this.element.style.width = parseInt(this.width) + 'px';
46536
+ }
46537
+ else if (this.width != undefined && !isNaN(this.width)) {
46538
+ this.element.style.width = this.width + 'px';
46539
+ }
46540
+ else {
46541
+ this.element.style.width = this.width;
46542
+ }
46543
+
46544
+ if (this.height != null && this.height.toString().indexOf("px") != -1) {
46545
+ this.element.style.height = parseInt(this.height) + 'px';;
46546
+ }
46547
+ else if (this.height != undefined && !isNaN(this.height)) {
46548
+ this.element.style.height = this.height + 'px';
46549
+ }
46550
+ else {
46551
+ this.element.style.height = this.height;
46552
+ }
46553
+ if (this._hasAddons) {
46554
+ this._addonsWidth = 35;
46555
+ this.input.style.width = 'calc(100% - ' + this._addonsWidth + 'px)';
46422
46556
  }
46423
- });
46424
- that._addonsWidth = totalWidth;
46425
- if (IE8) {
46426
- var height = Math.max(0, that.baseElement.offsetHeight - 2);
46427
- that.element.style.width = Math.max(0, (that.baseElement.offsetWidth - totalWidth - 1)) + 'px';
46428
- that.element.style.minHeight = height + 'px';
46429
- that.element.style.lineHeight = height + 'px';
46430
46557
  } else {
46431
- that.element.style.width = 'calc(100% - ' + totalWidth + 'px)';
46432
- }
46433
- $.jqx.utilities.resize(that.baseHost, function () {
46434
- if (IE8 && typeof that.width === 'string' && that.width.indexOf('%') !== -1 && !that._initiallyHidden) {
46435
- that.element.style.width = (that.baseElement.offsetWidth - that._addonsWidth - 1) + 'px';
46436
- } else if (that._initiallyHidden) {
46437
- that._addonsWidth = that._getAddonsWidth();
46438
- if (!IE8) {
46439
- that.element.style.width = 'calc(100% - ' + that._addonsWidth + 'px)';
46440
- } else {
46441
- that.element.style.width = (that.baseElement.offsetWidth - that._addonsWidth - 1) + 'px';
46442
- var height = that.baseElement.offsetHeight - 2;
46443
- that.element.style.minHeight = height + 'px';
46444
- that.element.style.lineHeight = height + 'px';
46558
+ if (this.width != null && this.width.toString().indexOf("px") != -1) {
46559
+ this.baseElement.style.width = parseInt(this.width) + 'px';
46560
+ }
46561
+ else if (this.width != undefined && !isNaN(this.width)) {
46562
+ this.baseElement.style.width = this.width + 'px';
46563
+ }
46564
+
46565
+ if (this.height != null && this.height.toString().indexOf("px") != -1) {
46566
+ this.baseElement.style.height = parseInt(this.height) + 'px';
46567
+ }
46568
+ else if (this.height != undefined && !isNaN(this.height)) {
46569
+ this.baseElement.style.height = this.height + 'px';
46570
+ };
46571
+ var that = this,
46572
+ IE8 = $.jqx.browser.msie && $.jqx.browser.version < 9,
46573
+ totalWidth = 0;
46574
+ $.each(this.baseHost.children(), function () {
46575
+ this.style.height = '100%';
46576
+ if (this !== that.element) {
46577
+ totalWidth += $(this).outerWidth();
46445
46578
  }
46446
- that._initiallyHidden = false;
46579
+ });
46580
+ that._addonsWidth = totalWidth;
46581
+ if (IE8) {
46582
+ var height = Math.max(0, that.baseElement.offsetHeight - 2);
46583
+ that.element.style.width = Math.max(0, (that.baseElement.offsetWidth - totalWidth - 1)) + 'px';
46584
+ that.element.style.minHeight = height + 'px';
46585
+ that.element.style.lineHeight = height + 'px';
46586
+ } else {
46587
+ that.element.style.width = 'calc(100% - ' + totalWidth + 'px)';
46447
46588
  }
46448
- });
46449
- }
46589
+ $.jqx.utilities.resize(that.baseHost, function () {
46590
+ if (IE8 && typeof that.width === 'string' && that.width.indexOf('%') !== -1 && !that._initiallyHidden) {
46591
+ that.element.style.width = (that.baseElement.offsetWidth - that._addonsWidth - 1) + 'px';
46592
+ } else if (that._initiallyHidden) {
46593
+ that._addonsWidth = that._getAddonsWidth();
46594
+ if (!IE8) {
46595
+ that.element.style.width = 'calc(100% - ' + that._addonsWidth + 'px)';
46596
+ } else {
46597
+ that.element.style.width = (that.baseElement.offsetWidth - that._addonsWidth - 1) + 'px';
46598
+ var height = that.baseElement.offsetHeight - 2;
46599
+ that.element.style.minHeight = height + 'px';
46600
+ that.element.style.lineHeight = height + 'px';
46601
+ }
46602
+ that._initiallyHidden = false;
46603
+ }
46604
+ });
46605
+ }
46450
46606
 
46451
- if (this.disabled) {
46452
- this.element.setAttribute('disabled', true);
46453
- } else {
46454
- this.element.removeAttribute('disabled');
46455
- }
46456
- if (this.maxLength) {
46457
- this.element.setAttribute('maxlength', this.maxLength);
46607
+ if (this.disabled) {
46608
+ this.element.setAttribute('disabled', true);
46609
+ } else {
46610
+ this.element.removeAttribute('disabled');
46611
+ }
46612
+ if (this.maxLength) {
46613
+ this.element.setAttribute('maxlength', this.maxLength);
46458
46614
 
46459
- if (this.input) {
46460
- this.input.setAttribute('maxlength', this.maxLength);
46615
+ if (this.input) {
46616
+ this.input.setAttribute('maxlength', this.maxLength);
46617
+ }
46461
46618
  }
46462
- }
46463
46619
 
46464
- if (!this.element.getAttribute('placeholder')) {
46465
- this._refreshPlaceHolder();
46466
- }
46467
- },
46620
+ if (!this.element.getAttribute('placeholder')) {
46621
+ this._refreshPlaceHolder();
46622
+ }
46623
+ },
46468
46624
 
46469
- _refreshPlaceHolder: function () {
46470
- var that = this;
46625
+ _refreshPlaceHolder: function () {
46626
+ var that = this;
46471
46627
 
46472
- if (!that.isMaterialized() || !that.hint) {
46473
- if ('placeholder' in this.input && !($.jqx.browser.msie && $.jqx.browser.version < 9)) {
46474
- that.input.setAttribute('placeHolder', that.placeHolder);
46475
- } else {
46476
- if (that.input.value === '') {
46477
- that.input.value = that.placeHolder;
46628
+ if (!that.isMaterialized() || !that.hint) {
46629
+
46630
+ if ('placeholder' in this.input && !($.jqx.browser.msie && $.jqx.browser.version < 9)) {
46631
+ that.input.setAttribute('placeHolder', that.placeHolder);
46632
+ } else {
46633
+ if (that.input.value === '') {
46634
+ that.input.value = that.placeHolder;
46635
+ }
46478
46636
  }
46479
46637
  }
46480
- }
46481
46638
 
46482
- if (!that.hint) {
46483
- return;
46484
- }
46639
+ if (!that.hint) {
46640
+ return;
46641
+ }
46485
46642
 
46486
- if (that.input.value !== "") {
46487
- that.element.setAttribute("hint", true);
46488
- }
46489
- else {
46490
- that.element.removeAttribute("hint");
46491
- }
46643
+ if (that.input.value !== "") {
46644
+ that.element.setAttribute("hint", true);
46645
+ }
46646
+ else {
46647
+ that.element.removeAttribute("hint");
46648
+ }
46492
46649
 
46493
- if (that.label) {
46494
- that.label.innerHTML = that.placeHolder;
46495
- }
46496
- },
46650
+ if (that.label) {
46651
+ that.label.innerHTML = that.placeHolder;
46652
+ }
46497
46653
 
46498
- destroy: function () {
46499
- this.removeHandlers();
46500
- if (this.baseHost) {
46501
- this.baseHost.remove();
46502
- } else {
46503
- this.host.remove();
46504
- }
46505
- if (this.$popup) {
46506
- this._popupHelper.remove();
46507
- }
46508
- },
46654
+ if (this._inlineLabel && that.inlineAutoComplete) {
46655
+ this._inlineLabel.style.display = 'none';
46656
+ that.host.css('overflow', 'visible');
46657
+ }
46509
46658
 
46510
- propertiesChangedHandler: function (object, key, value) {
46511
- if (value.width && value.height && Object.keys(value).length === 2) {
46512
- object.refresh();
46513
- }
46514
- },
46659
+ },
46515
46660
 
46516
- propertyChangedHandler: function (object, key, oldvalue, value) {
46517
- if (key === 'width' && value !== oldvalue) {
46518
- if (object.baseHost) {
46519
- object.baseElement.style.width = object._toPx(value);
46520
- if ($.jqx.browser.msie && $.jqx.browser.version < 9) {
46521
- object.element.style.width = (object.baseElement.offsetWidth - object._addonsWidth - 1) + 'px';
46522
- }
46661
+ destroy: function () {
46662
+ this.removeHandlers();
46663
+ if (this.baseHost) {
46664
+ this.baseHost.remove();
46523
46665
  } else {
46524
- object.element.style.width = object._toPx(value);
46666
+ this.host.remove();
46525
46667
  }
46526
- return;
46527
- }
46668
+ if (this.$popup) {
46669
+ this._popupHelper.remove();
46670
+ }
46671
+ },
46528
46672
 
46529
- if (key === 'placeHolder') {
46530
- if ((!('placeholder' in object.element) || ($.jqx.browser.msie && $.jqx.browser.version < 9)) && object.input.value === oldvalue) {
46531
- object.input.value = '';
46673
+ propertiesChangedHandler: function (object, key, value) {
46674
+ if (value.width && value.height && Object.keys(value).length === 2) {
46675
+ object.refresh();
46532
46676
  }
46533
- object._refreshPlaceHolder();
46534
- return;
46535
- }
46677
+ },
46536
46678
 
46537
- if (object.batchUpdate && object.batchUpdate.width && object.batchUpdate.height && Object.keys(object.batchUpdate).length === 2) {
46538
- return;
46539
- }
46679
+ propertyChangedHandler: function (object, key, oldvalue, value) {
46680
+ if (key === 'width' && value !== oldvalue) {
46681
+ if (object.baseHost) {
46682
+ object.baseElement.style.width = object._toPx(value);
46683
+ if ($.jqx.browser.msie && $.jqx.browser.version < 9) {
46684
+ object.element.style.width = (object.baseElement.offsetWidth - object._addonsWidth - 1) + 'px';
46685
+ }
46686
+ } else {
46687
+ object.element.style.width = object._toPx(value);
46688
+ }
46689
+ return;
46690
+ }
46540
46691
 
46541
- if (key === 'theme') {
46542
- $.jqx.utilities.setTheme(oldvalue, value, object.host);
46543
- }
46692
+ if (key === 'placeHolder') {
46693
+ if ((!('placeholder' in object.element) || ($.jqx.browser.msie && $.jqx.browser.version < 9)) && object.input.value === oldvalue) {
46694
+ object.input.value = '';
46695
+ }
46696
+ object._refreshPlaceHolder();
46697
+ return;
46698
+ }
46544
46699
 
46545
- if (key === 'opened') {
46546
- if (value) {
46547
- object.open();
46548
- } else {
46549
- object.close();
46700
+ if (object.batchUpdate && object.batchUpdate.width && object.batchUpdate.height && Object.keys(object.batchUpdate).length === 2) {
46701
+ return;
46550
46702
  }
46551
- return;
46552
- }
46553
- if (key === 'source') {
46554
- object._oldsource = value;
46555
- object._updateSource();
46556
- }
46557
- if (key === 'displayMember' || key === 'valueMember') {
46558
- object.source = object._oldsource;
46559
- object._updateSource();
46560
- }
46561
- if (key === 'disabled') {
46562
- $.jqx.aria(object, 'aria-disabled', object.disabled);
46563
- }
46564
46703
 
46565
- if (key === 'value') {
46566
- object.input.value = value;
46567
- object._refreshPlaceHolder();
46568
- }
46704
+ if (key === 'theme') {
46705
+ $.jqx.utilities.setTheme(oldvalue, value, object.host);
46706
+ }
46569
46707
 
46570
- object.refresh();
46571
- },
46708
+ if (key === 'opened') {
46709
+ if (value) {
46710
+ object.open();
46711
+ } else {
46712
+ object.close();
46713
+ }
46714
+ return;
46715
+ }
46716
+ if (key === 'source') {
46717
+ object._oldsource = value;
46718
+ object._updateSource();
46719
+ }
46720
+ if (key === 'displayMember' || key === 'valueMember') {
46721
+ object.source = object._oldsource;
46722
+ object._updateSource();
46723
+ }
46724
+ if (key === 'disabled') {
46725
+ $.jqx.aria(object, 'aria-disabled', object.disabled);
46726
+ }
46572
46727
 
46573
- select: function (event, ui, changeType) {
46574
- var selectedItem = this._find('jqx-fill-state-pressed', this._popupHelper);
46575
- var val = selectedItem.getAttribute('data-value');
46576
- var label = selectedItem.getAttribute('data-name');
46577
- this.input.value = this.renderer(label, this.input.value);
46578
- this.selectedItem = { 'label': label, 'value': val };
46579
- this.element.setAttribute('data-value', val);
46580
- this.element.setAttribute('data-label', label);
46581
- this._raiseEvent('0', { 'item': { 'label': label, 'value': val }, 'label': label, 'value': val });
46582
- this._raiseEvent('3', { type: changeType, 'item': { 'label': label, 'value': val }, 'label': label, 'value': val });
46583
- this.value = label;
46584
- return this.close();
46585
- },
46728
+ if (key === 'value') {
46729
+ object.input.value = value;
46730
+ object._refreshPlaceHolder();
46731
+ }
46586
46732
 
46587
- val: function (value) {
46588
- if (arguments.length === 0 || (value != null && typeof (value) === 'object' && !value.label && !value.value)) {
46589
- if (this.displayMember !== '' && this.valueMember !== '' && this.selectedItem) {
46590
- if (this.input.value === '') {
46591
- return '';
46733
+ object.refresh();
46734
+ },
46735
+
46736
+ select: function (event, ui, changeType) {
46737
+ var that = this;
46738
+ var selectedItem = this._find('jqx-fill-state-pressed', this._popupHelper);
46739
+
46740
+ if (this.inlineAutoComplete) {
46741
+ selectedItem = this.element.querySelector('.jqx-input-inline');
46742
+ selectedItem.style.display = 'none';
46743
+ that.host.css('overflow', 'visible');
46744
+ }
46745
+
46746
+ var val = selectedItem.getAttribute('data-value');
46747
+ var label = selectedItem.getAttribute('data-name');
46748
+ this.input.value = this.renderer(label, this.input.value);
46749
+ this.selectedItem = { 'label': label, 'value': val };
46750
+ this.element.setAttribute('data-value', val);
46751
+ this.element.setAttribute('data-label', label);
46752
+ this._raiseEvent('0', { 'item': { 'label': label, 'value': val }, 'label': label, 'value': val });
46753
+ this._raiseEvent('3', { type: changeType, 'item': { 'label': label, 'value': val }, 'label': label, 'value': val });
46754
+ this.value = label;
46755
+ return this.close();
46756
+ },
46757
+
46758
+ val: function (value) {
46759
+ if (arguments.length === 0 || (value != null && typeof (value) === 'object' && !value.label && !value.value)) {
46760
+ if (this.displayMember !== '' && this.valueMember !== '' && this.selectedItem) {
46761
+ if (this.input.value === '') {
46762
+ return '';
46763
+ }
46764
+ return this.selectedItem;
46592
46765
  }
46593
- return this.selectedItem;
46594
- }
46595
46766
 
46596
- return this.input.value;
46597
- }
46767
+ return this.input.value;
46768
+ }
46598
46769
 
46599
- if (value && value.label) {
46600
- this.selectedItem = { 'label': value.label, 'value': value.value };
46601
- this.element.setAttribute('data-value', value.value);
46602
- this.element.setAttribute('data-label', value.label);
46603
- this.value = value;
46604
- this.input.value = value.label;
46605
- if (this.input) {
46770
+ if (value && value.label) {
46771
+ this.selectedItem = { 'label': value.label, 'value': value.value };
46772
+ this.element.setAttribute('data-value', value.value);
46773
+ this.element.setAttribute('data-label', value.label);
46774
+ this.value = value;
46606
46775
  this.input.value = value.label;
46776
+ if (this.input) {
46777
+ this.input.value = value.label;
46778
+ }
46779
+ return this.input.value;
46607
46780
  }
46608
- return this.input.value;
46609
- }
46610
46781
 
46611
- this.value = value;
46612
- this.input.value = value;
46782
+ this.value = value;
46783
+ this.input.value = value;
46613
46784
 
46614
- this.element.setAttribute('data-value', value);
46615
- this.element.setAttribute('data-label', value);
46616
- if (value && value.label) {
46617
- this._raiseEvent('3', { type: null, 'item': { 'label': value.label, 'value': value.value }, 'label': value.label, 'value': value.value });
46618
- }
46619
- else {
46620
- this._raiseEvent('3', { type: null, 'item': { 'label': value, 'value': value }, 'label': value, 'value': value });
46621
- }
46622
- this._refreshPlaceHolder();
46623
- return this.input.value;
46624
- },
46785
+ this.element.setAttribute('data-value', value);
46786
+ this.element.setAttribute('data-label', value);
46787
+ if (value && value.label) {
46788
+ this._raiseEvent('3', { type: null, 'item': { 'label': value.label, 'value': value.value }, 'label': value.label, 'value': value.value });
46789
+ }
46790
+ else {
46791
+ this._raiseEvent('3', { type: null, 'item': { 'label': value, 'value': value }, 'label': value, 'value': value });
46792
+ }
46793
+ this._refreshPlaceHolder();
46794
+ return this.input.value;
46795
+ },
46625
46796
 
46626
- _raiseEvent: function (id, arg) {
46627
- if (arg === undefined) {
46628
- arg = { owner: null };
46629
- }
46797
+ _raiseEvent: function (id, arg) {
46798
+ if (arg === undefined) {
46799
+ arg = { owner: null };
46800
+ }
46630
46801
 
46631
- var evt = this.events[id];
46632
- arg.owner = this;
46802
+ var evt = this.events[id];
46803
+ arg.owner = this;
46633
46804
 
46634
- var event = new $.Event(evt);
46635
- event.owner = this;
46636
- event.args = arg;
46637
- if (event.preventDefault) {
46638
- event.preventDefault();
46639
- }
46805
+ var event = new $.Event(evt);
46806
+ event.owner = this;
46807
+ event.args = arg;
46808
+ if (event.preventDefault) {
46809
+ event.preventDefault();
46810
+ }
46640
46811
 
46641
- var result = this.host.trigger(event);
46642
- return result;
46643
- },
46812
+ var result = this.host.trigger(event);
46813
+ return result;
46814
+ },
46644
46815
 
46645
- _renderer: function (item) {
46646
- return item;
46647
- },
46816
+ _renderer: function (item) {
46817
+ return item;
46818
+ },
46648
46819
 
46649
- open: function () {
46650
- if ($.jqx.isHidden(this.host)) {
46651
- return;
46652
- }
46820
+ open: function () {
46821
+ if ($.jqx.isHidden(this.host)) {
46822
+ return;
46823
+ }
46653
46824
 
46654
- var position = $.extend({}, this.host.coord(true), {
46655
- height: this.element.offsetHeight
46656
- });
46825
+ var position = $.extend({}, this.host.coord(true), {
46826
+ height: this.element.offsetHeight
46827
+ });
46657
46828
 
46658
- if (this.$popup.parentNode !== document.body) {
46659
- var popupId = this.element.id + '_popup';
46660
- this.$popup.id = popupId;
46661
- $.jqx.aria(this, 'aria-owns', popupId);
46662
- document.body.appendChild(this.$popup);
46663
- }
46829
+ if (this.$popup.parentNode !== document.body) {
46830
+ var popupId = this.element.id + '_popup';
46831
+ this.$popup.id = popupId;
46832
+ $.jqx.aria(this, 'aria-owns', popupId);
46833
+ document.body.appendChild(this.$popup);
46834
+ }
46664
46835
 
46665
- this.$popup.style.position = 'absolute';
46666
- this.$popup.style.zIndex = this.popupZIndex;
46667
- this.$popup.style.top = this._toPx(position.top + position.height);
46668
- this.$popup.style.left = this._toPx(position.left);
46669
- this.$popup.style.display = 'block';
46836
+ this.$popup.style.position = 'absolute';
46837
+ this.$popup.style.zIndex = this.popupZIndex;
46838
+ this.$popup.style.top = this._toPx(position.top + position.height);
46839
+ this.$popup.style.left = this._toPx(position.left);
46840
+ this.$popup.style.display = 'block';
46670
46841
 
46671
- var height = 0;
46672
- var children = this._popupHelper.children();
46673
- $.each(children, function () {
46674
- height += $(this).outerHeight() + 1;
46675
- });
46676
- this.$popup.style.height = this._toPx(height);
46842
+ var height = 0;
46843
+ var children = this._popupHelper.children();
46844
+ $.each(children, function () {
46845
+ height += $(this).outerHeight() + 1;
46846
+ });
46847
+ this.$popup.style.height = this._toPx(height);
46677
46848
 
46678
- if (this.enableBrowserBoundsDetection) {
46679
- var viewHeight = $(window).height() + $(window).scrollTop();
46680
- var offset = $(this.$popup).offset();
46681
- var dpHeight = $(this.$popup).outerHeight();
46849
+ if (this.enableBrowserBoundsDetection) {
46850
+ var viewHeight = $(window).height() + $(window).scrollTop();
46851
+ var offset = $(this.$popup).offset();
46852
+ var dpHeight = $(this.$popup).outerHeight();
46682
46853
 
46683
- if (offset.top + dpHeight > viewHeight) {
46684
- var newPosition = position.top + position.height - dpHeight - this.host.height();
46685
- if (newPosition < 0) {
46686
- newPosition = 0;
46854
+ if (offset.top + dpHeight > viewHeight) {
46855
+ var newPosition = position.top + position.height - dpHeight - this.host.height();
46856
+ if (newPosition < 0) {
46857
+ newPosition = 0;
46858
+ }
46859
+ this.$popup.style.top = newPosition + 'px';
46687
46860
  }
46688
- this.$popup.style.top = newPosition + 'px';
46689
46861
  }
46690
- }
46691
46862
 
46692
- this.opened = true;
46693
- this._raiseEvent('1', { popup: this.$popup });
46694
- $.jqx.aria(this, 'aria-expanded', true);
46695
- return this;
46696
- },
46697
-
46698
- close: function () {
46699
- if (!this.opened) {
46700
- return;
46701
- }
46863
+ this.opened = true;
46864
+ this._raiseEvent('1', { popup: this.$popup });
46865
+ $.jqx.aria(this, 'aria-expanded', true);
46866
+ return this;
46867
+ },
46702
46868
 
46703
- this.$popup.style.display = 'none';
46704
- this.opened = false;
46705
- this._raiseEvent('2', { popup: this.$popup });
46706
- $.jqx.aria(this, 'aria-expanded', false);
46707
- this._refreshPlaceHolder();
46708
- return this;
46709
- },
46869
+ close: function () {
46870
+ if (this._inlineLabel) {
46871
+ this._inlineLabel.style.display = 'none';
46872
+ }
46710
46873
 
46711
- suggest: function () {
46712
- var items;
46713
- this.query = this.input.value;
46874
+ if (!this.opened) {
46875
+ return;
46876
+ }
46714
46877
 
46715
- if (!this.query || this.query.length < this.minLength) {
46716
- return this.opened ? this.close() : this;
46717
- }
46878
+ this.$popup.style.display = 'none';
46879
+ this.opened = false;
46880
+ this._raiseEvent('2', { popup: this.$popup });
46881
+ $.jqx.aria(this, 'aria-expanded', false);
46882
+ this._refreshPlaceHolder();
46883
+ return this;
46884
+ },
46718
46885
 
46719
- if ($.isFunction(this.source)) {
46720
- items = this.source(this.query, $.proxy(this.load, this));
46721
- }
46722
- else {
46723
- items = this.source;
46724
- }
46886
+ suggest: function () {
46887
+ var items;
46888
+ var that = this;
46889
+ this.query = this.input.value;
46725
46890
 
46726
- if (items) {
46727
- return this.load(items);
46728
- }
46891
+ if (that.inlineAutoComplete && that.aiKey) {
46892
+ this.load([]);
46893
+ return;
46894
+ }
46895
+ if (!this.query || this.query.length < this.minLength) {
46896
+ if (this._inlineLabel) {
46897
+ this._inlineLabel.style.display = 'none';
46898
+ }
46729
46899
 
46730
- return this;
46731
- },
46900
+ return this.opened ? this.close() : this;
46901
+ }
46732
46902
 
46733
- load: function (originalItems) {
46734
- var that = this,
46735
- items = [];
46903
+ if ($.isFunction(this.source)) {
46904
+ items = this.source(this.query, $.proxy(this.load, this));
46905
+ }
46906
+ else {
46907
+ items = this.source;
46908
+ }
46736
46909
 
46737
- for (var i = 0; i < originalItems.length; i++) {
46738
- var item = originalItems[i];
46739
- if (that.filter(item)) {
46740
- items.push(item);
46910
+ if (items) {
46911
+ return this.load(items);
46741
46912
  }
46742
- }
46743
46913
 
46744
- items = this.sort(items);
46914
+ return this;
46915
+ },
46745
46916
 
46746
- if (!items.length) {
46747
- if (this.opened) {
46748
- return this.close();
46917
+ load: function (originalItems) {
46918
+ var that = this,
46919
+ items = [];
46920
+
46921
+ var searchMode = this.searchMode;
46922
+ if (this.inlineAutoComplete) {
46923
+ this.searchMode = 'startswith';
46749
46924
  }
46750
- else {
46751
- return this;
46925
+
46926
+ for (var i = 0; i < originalItems.length; i++) {
46927
+ var item = originalItems[i];
46928
+ if (that.filter(item)) {
46929
+ items.push(item);
46930
+ }
46752
46931
  }
46753
- }
46754
46932
 
46755
- return this._render(items.slice(0, this.items)).open();
46756
- },
46933
+ items = this.sort(items);
46757
46934
 
46758
- _filter: function (item) {
46759
- var value = this.query;
46760
- var itemValue = item;
46761
- if (item.label != null) {
46762
- itemValue = item.label;
46763
- }
46764
- else if (this.displayMember) {
46765
- itemValue = item[this.displayMember];
46766
- }
46935
+ if (!items.length) {
46936
+ if (this.inlineAutoComplete) {
46937
+ var labelElement = this.element.querySelector('.jqx-input-inline');
46938
+ labelElement.style.display = 'none';
46939
+ that.host.css('overflow', 'visible');
46767
46940
 
46768
- switch (this.searchMode) {
46769
- case 'none':
46770
- break;
46771
- default: // ('containsignorecase')
46772
- return $.jqx.string.containsIgnoreCase(itemValue, value);
46773
- case 'contains':
46774
- return $.jqx.string.contains(itemValue, value);
46775
- case 'equals':
46776
- return $.jqx.string.equals(itemValue, value);
46777
- case 'equalsignorecase':
46778
- return $.jqx.string.equalsIgnoreCase(itemValue, value);
46779
- case 'startswith':
46780
- return $.jqx.string.startsWith(itemValue, value);
46781
- case 'startswithignorecase':
46782
- return $.jqx.string.startsWithIgnoreCase(itemValue, value);
46783
- case 'endswith':
46784
- return $.jqx.string.endsWith(itemValue, value);
46785
- case 'endswithignorecase':
46786
- return $.jqx.string.endsWithIgnoreCase(itemValue, value);
46787
- }
46788
- },
46941
+ if (that._writeTimer) {
46942
+ clearTimeout(that._writeTimer);
46943
+ }
46944
+ that._writeTimer = setTimeout(function () {
46945
+ that.getAISuggestions(function (suggestion) {
46946
+ if (suggestion) {
46947
+ suggestion = that.input.value + suggestion;
46948
+ labelElement.textContent = suggestion;
46949
+ labelElement.setAttribute('data-value', suggestion);
46950
+ labelElement.setAttribute('data-name', suggestion);
46951
+ labelElement.style.opacity = 0.5;
46952
+ labelElement.style.position = 'absolute';
46953
+ labelElement.style.zIndex = 5;
46954
+ labelElement.style.display = '';
46955
+ labelElement.style.left = '6px';
46956
+ labelElement.style.lineHeight = that.height + 'px';
46957
+ that.host.css('overflow', 'hidden');
46958
+ that.searchMode = searchMode;
46959
+ }
46960
+ });
46961
+ }, 500);
46962
+ }
46789
46963
 
46790
- _sort: function (items) {
46791
- var bw = [], cs = [], cis = [];
46964
+ if (this.opened) {
46965
+ return this.close();
46966
+ }
46967
+ else {
46968
+ return this;
46969
+ }
46970
+ }
46792
46971
 
46793
- for (var i = 0; i < items.length; i++) {
46794
- var item = items[i];
46972
+ if (this.inlineAutoComplete) {
46973
+ var item = items.length ? items[0] : '';
46974
+ var label = typeof item === 'string' ? item : item.label;
46975
+ var value = typeof item === 'string' ? item : item.value;
46976
+ var labelElement = this.element.querySelector('.jqx-input-inline');
46977
+ labelElement.textContent = label;
46978
+ labelElement.setAttribute('data-value', value);
46979
+ labelElement.setAttribute('data-name', label);
46980
+ labelElement.style.opacity = 0.5;
46981
+ labelElement.style.position = 'absolute';
46982
+ labelElement.style.zIndex = 5;
46983
+ labelElement.style.display = '';
46984
+ labelElement.style.left = '6px';
46985
+ labelElement.style.lineHeight = that.height + 'px';
46986
+ this.searchMode = searchMode;
46987
+ that.host.css('overflow', 'hidden');
46988
+
46989
+ this.getAISuggestions(function (suggestion) {
46990
+ if (suggestion) {
46991
+ labelElement.textContent = suggestion;
46992
+ }
46993
+ });
46994
+ return;
46995
+ }
46996
+ return this._render(items.slice(0, this.items)).open();
46997
+ },
46795
46998
 
46999
+ _filter: function (item) {
47000
+ var value = this.query;
46796
47001
  var itemValue = item;
46797
- if (item.label) {
47002
+ if (item.label != null) {
46798
47003
  itemValue = item.label;
46799
47004
  }
46800
47005
  else if (this.displayMember) {
46801
47006
  itemValue = item[this.displayMember];
46802
47007
  }
46803
47008
 
46804
- if (itemValue.toString().toLowerCase().indexOf(this.query.toString().toLowerCase()) === 0) {
46805
- bw.push(item);
46806
- }
46807
- else if (itemValue.toString().indexOf(this.query) >= 0) {
46808
- cs.push(item);
46809
- }
46810
- else if (itemValue.toString().toLowerCase().indexOf(this.query.toString().toLowerCase()) >= 0) {
46811
- cis.push(item);
47009
+ switch (this.searchMode) {
47010
+ case 'none':
47011
+ break;
47012
+ default: // ('containsignorecase')
47013
+ return $.jqx.string.containsIgnoreCase(itemValue, value);
47014
+ case 'contains':
47015
+ return $.jqx.string.contains(itemValue, value);
47016
+ case 'equals':
47017
+ return $.jqx.string.equals(itemValue, value);
47018
+ case 'equalsignorecase':
47019
+ return $.jqx.string.equalsIgnoreCase(itemValue, value);
47020
+ case 'startswith':
47021
+ return $.jqx.string.startsWith(itemValue, value);
47022
+ case 'startswithignorecase':
47023
+ return $.jqx.string.startsWithIgnoreCase(itemValue, value);
47024
+ case 'endswith':
47025
+ return $.jqx.string.endsWith(itemValue, value);
47026
+ case 'endswithignorecase':
47027
+ return $.jqx.string.endsWithIgnoreCase(itemValue, value);
46812
47028
  }
46813
- }
47029
+ },
46814
47030
 
46815
- return bw.concat(cs, cis);
46816
- },
47031
+ _sort: function (items) {
47032
+ var bw = [], cs = [], cis = [];
46817
47033
 
46818
- _highlight: function (item) {
46819
- var query = this.query;
46820
- query = query.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
47034
+ for (var i = 0; i < items.length; i++) {
47035
+ var item = items[i];
46821
47036
 
46822
- var regex = new RegExp('(' + query + ')', 'ig');
46823
- return item.replace(regex, function ($1, match) {
46824
- return '<b>' + match + '</b>';
46825
- });
46826
- },
47037
+ var itemValue = item;
47038
+ if (item.label) {
47039
+ itemValue = item.label;
47040
+ }
47041
+ else if (this.displayMember) {
47042
+ itemValue = item[this.displayMember];
47043
+ }
46827
47044
 
46828
- escapeHTML: function (value) {
46829
- var entityMap = {
46830
- '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', '\'': '&#39;', '/': '&#x2F;', '`': '&#x60;', '=': '&#x3D;'
46831
- };
47045
+ if (itemValue.toString().toLowerCase().indexOf(this.query.toString().toLowerCase()) === 0) {
47046
+ bw.push(item);
47047
+ }
47048
+ else if (itemValue.toString().indexOf(this.query) >= 0) {
47049
+ cs.push(item);
47050
+ }
47051
+ else if (itemValue.toString().toLowerCase().indexOf(this.query.toString().toLowerCase()) >= 0) {
47052
+ cis.push(item);
47053
+ }
47054
+ }
46832
47055
 
46833
- return String(value).replace(/[&<>"'`=\/]/g, function (s) { return entityMap[s] });
46834
- },
47056
+ return bw.concat(cs, cis);
47057
+ },
46835
47058
 
46836
- sanitizeHTML: function (value) {
46837
- var that = this;
46838
- var regExp = new RegExp('<\s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)[^>]*>(.*?)<\s*/\s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)>', 'ig');
46839
- var result = String(value).replace(regExp, function (s) { return that.escapeHTML(s) });
47059
+ _highlight: function (item) {
47060
+ var query = this.query;
47061
+ query = query.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
46840
47062
 
46841
- return result;
46842
- },
47063
+ var regex = new RegExp('(' + query + ')', 'ig');
47064
+ return item.replace(regex, function ($1, match) {
47065
+ return '<b>' + match + '</b>';
47066
+ });
47067
+ },
46843
47068
 
46844
- escape_HTML: function (html_str) {
46845
- if (html_str && (html_str.indexOf('onclick') >= 0 || html_str.indexOf('onload') >= 0 || html_str.indexOf('onerror') >= 0)) {
46846
- return this.escapeHTML(html_str)
46847
- }
47069
+ escapeHTML: function (value) {
47070
+ var entityMap = {
47071
+ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', '\'': '&#39;', '/': '&#x2F;', '`': '&#x60;', '=': '&#x3D;'
47072
+ };
46848
47073
 
46849
- var sanitized = this.sanitizeHTML(html_str);
47074
+ return String(value).replace(/[&<>"'`=\/]/g, function (s) { return entityMap[s] });
47075
+ },
46850
47076
 
46851
- return sanitized;
46852
- },
47077
+ sanitizeHTML: function (value) {
47078
+ var that = this;
47079
+ var regExp = new RegExp('<\s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)[^>]*>(.*?)<\s*/\s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)>', 'ig');
47080
+ var result = String(value).replace(regExp, function (s) { return that.escapeHTML(s) });
46853
47081
 
46854
- _render: function (originalItems) {
46855
- var that = this,
46856
- popupChildren = that._popupHelper.children();
47082
+ return result;
47083
+ },
46857
47084
 
46858
- if (popupChildren.length > 0) {
46859
- for (var j = 0; j < popupChildren.length; j++) {
46860
- $(popupChildren[j]).remove();
47085
+ escape_HTML: function (html_str) {
47086
+ if (html_str && html_str.indexOf && (html_str.indexOf('onclick') >= 0 || html_str.indexOf('onload') >= 0 || html_str.indexOf('onerror') >= 0)) {
47087
+ return this.escapeHTML(html_str)
46861
47088
  }
46862
- }
46863
47089
 
46864
- var mapItem = function (item, index) {
46865
- var itemValue = item,
46866
- i = document.createElement('li'),
46867
- a = document.createElement('a'),
46868
- dataName, dataValue;
46869
- a.setAttribute('href', '#');
46870
- i.appendChild(a);
46871
- if (item.value !== undefined && item.value !== null) {
46872
- if (item.label !== undefined && item.label !== null) {
46873
- dataName = item.label;
46874
- dataValue = that.escape_HTML(item.value);
46875
- } else {
46876
- dataName = item.value;
46877
- dataValue = that.escape_HTML(item.value);
46878
- }
46879
- } else if (item.label !== undefined && item.label !== null) {
46880
- dataName = item.label;
46881
- dataValue = item.label;
46882
- } else if (that.displayMember !== undefined && that.displayMember !== '') {
46883
- dataName = item[that.displayMember];
46884
- dataValue = item[that.valueMember];
46885
- } else {
46886
- dataName = item;
46887
- dataValue = item;
46888
- }
46889
- i.setAttribute('data-value', dataValue);
46890
- i.setAttribute('data-name', dataName);
47090
+ var sanitized = this.sanitizeHTML(html_str);
46891
47091
 
46892
- if (item.label) {
46893
- itemValue = item.label;
46894
- }
46895
- else if (that.displayMember) {
46896
- itemValue = item[that.displayMember];
46897
- }
47092
+ return sanitized;
47093
+ },
46898
47094
 
46899
- a.innerHTML = that.highlight(itemValue);
46900
- var plusClass = '';
46901
- if (that.rtl) {
46902
- plusClass = ' jqx-rtl';
46903
- }
46904
- if (index === 0) {
46905
- plusClass += ' jqx-fill-state-pressed';
47095
+ _render: function (originalItems) {
47096
+ var that = this,
47097
+ popupChildren = that._popupHelper.children();
47098
+
47099
+ if (popupChildren.length > 0) {
47100
+ for (var j = 0; j < popupChildren.length; j++) {
47101
+ $(popupChildren[j]).remove();
47102
+ }
46906
47103
  }
46907
- i.className = that.toThemeProperty('jqx-item jqx-menu-item jqx-rc-all' + plusClass);
46908
- that.$popup.appendChild(i);
46909
47104
 
46910
- that.addHandler(i, 'mouseenter', function (event) { that.mouseenter(event); });
46911
- };
47105
+ var mapItem = function (item, index) {
47106
+ var itemValue = item,
47107
+ i = document.createElement('li'),
47108
+ a = document.createElement('a'),
47109
+ dataName, dataValue;
47110
+ a.setAttribute('href', '#');
47111
+ i.appendChild(a);
47112
+ if (item.value !== undefined && item.value !== null) {
47113
+ if (item.label !== undefined && item.label !== null) {
47114
+ dataName = item.label;
47115
+ dataValue = that.escape_HTML(item.value);
47116
+ } else {
47117
+ dataName = item.value;
47118
+ dataValue = that.escape_HTML(item.value);
47119
+ }
47120
+ } else if (item.label !== undefined && item.label !== null) {
47121
+ dataName = item.label;
47122
+ dataValue = item.label;
47123
+ } else if (that.displayMember !== undefined && that.displayMember !== '') {
47124
+ dataName = item[that.displayMember];
47125
+ dataValue = item[that.valueMember];
47126
+ } else {
47127
+ dataName = item;
47128
+ dataValue = item;
47129
+ }
47130
+ i.setAttribute('data-value', dataValue);
47131
+ i.setAttribute('data-name', dataName);
46912
47132
 
46913
- var mapItems = function (source) {
46914
- for (var i = 0; i < source.length; i++) {
46915
- mapItem(source[i], i);
46916
- }
46917
- };
47133
+ if (item.label) {
47134
+ itemValue = item.label;
47135
+ }
47136
+ else if (that.displayMember) {
47137
+ itemValue = item[that.displayMember];
47138
+ }
46918
47139
 
46919
- mapItems(originalItems);
47140
+ a.innerHTML = that.highlight(itemValue);
47141
+ var plusClass = '';
47142
+ if (that.rtl) {
47143
+ plusClass = ' jqx-rtl';
47144
+ }
47145
+ if (index === 0) {
47146
+ plusClass += ' jqx-fill-state-pressed';
47147
+ }
47148
+ i.className = that.toThemeProperty('jqx-item jqx-menu-item jqx-rc-all' + plusClass);
47149
+ that.$popup.appendChild(i);
46920
47150
 
46921
- if (!this.dropDownWidth) {
46922
- this.$popup.style.width = that._toPx(that.element.offsetWidth - 6);
46923
- } else {
46924
- this.$popup.style.width = that._toPx(that.dropDownWidth);
46925
- }
47151
+ that.addHandler(i, 'mouseenter', function (event) { that.mouseenter(event); });
47152
+ };
46926
47153
 
46927
- return this;
46928
- },
47154
+ var mapItems = function (source) {
47155
+ for (var i = 0; i < source.length; i++) {
47156
+ mapItem(source[i], i);
47157
+ }
47158
+ };
46929
47159
 
46930
- next: function () {
46931
- var active = this._find('jqx-fill-state-pressed', this._popupHelper),
46932
- next = active.nextSibling;
46933
- $(active).removeClass(this.toThemeProperty('jqx-fill-state-pressed'));
46934
- if (!next) {
46935
- next = this.$popup.firstChild;
46936
- }
47160
+ mapItems(originalItems);
46937
47161
 
46938
- next.className += ' ' + this.toThemeProperty('jqx-fill-state-pressed');
46939
- },
47162
+ if (!this.dropDownWidth) {
47163
+ this.$popup.style.width = that._toPx(that.element.offsetWidth - 6);
47164
+ } else {
47165
+ this.$popup.style.width = that._toPx(that.dropDownWidth);
47166
+ }
46940
47167
 
46941
- prev: function () {
46942
- var active = this._find('jqx-fill-state-pressed', this._popupHelper),
46943
- prev = active.previousSibling;
46944
- $(active).removeClass(this.toThemeProperty('jqx-fill-state-pressed'));
46945
- if (!prev) {
46946
- prev = this.$popup.lastChild;
46947
- }
47168
+ return this;
47169
+ },
46948
47170
 
46949
- prev.className += ' ' + this.toThemeProperty('jqx-fill-state-pressed');
46950
- },
47171
+ next: function () {
47172
+ var active = this._find('jqx-fill-state-pressed', this._popupHelper),
47173
+ next = active.nextSibling;
47174
+ $(active).removeClass(this.toThemeProperty('jqx-fill-state-pressed'));
47175
+ if (!next) {
47176
+ next = this.$popup.firstChild;
47177
+ }
46951
47178
 
46952
- addHandlers: function () {
46953
- var that = this,
46954
- eventNamespace = '.jqxInput' + that.element.id;
46955
- that.addHandler(that.host, 'focus' + eventNamespace, function () { that.onFocus(); });
46956
- that.addHandler(that.host, 'blur' + eventNamespace, function () { that.onBlur(); });
46957
- if (that.isMaterialized() && this.input instanceof HTMLInputElement) {
46958
- that.addHandler(that.input, 'blur' + eventNamespace, function () { that.onBlur(); });
46959
- }
47179
+ next.className += ' ' + this.toThemeProperty('jqx-fill-state-pressed');
47180
+ },
46960
47181
 
46961
- that.addHandler(that.host, 'change' + eventNamespace, function (event) {
46962
- if (that.opened && !event.args) {
46963
- event.stopPropagation();
46964
- event.preventDefault();
46965
- event.stopImmediatePropagation();
47182
+ prev: function () {
47183
+ var active = this._find('jqx-fill-state-pressed', this._popupHelper),
47184
+ prev = active.previousSibling;
47185
+ $(active).removeClass(this.toThemeProperty('jqx-fill-state-pressed'));
47186
+ if (!prev) {
47187
+ prev = this.$popup.lastChild;
47188
+ }
46966
47189
 
46967
- return;
47190
+ prev.className += ' ' + this.toThemeProperty('jqx-fill-state-pressed');
47191
+ },
47192
+
47193
+ addHandlers: function () {
47194
+ var that = this,
47195
+ eventNamespace = '.jqxInput' + that.element.id;
47196
+ that.addHandler(that.host, 'focus' + eventNamespace, function () { that.onFocus(); });
47197
+ that.addHandler(that.host, 'blur' + eventNamespace, function () { that.onBlur(); });
47198
+ if (that.isMaterialized() && this.input instanceof HTMLInputElement) {
47199
+ that.addHandler(that.input, 'blur' + eventNamespace, function () { that.onBlur(); });
46968
47200
  }
46969
- if (!event.args) {
46970
- event.stopPropagation();
46971
- event.preventDefault();
46972
- event.stopImmediatePropagation();
46973
47201
 
46974
- var item = that.val(),
46975
- label, val;
46976
- if (item && item.label) {
46977
- label = item.label;
46978
- val = item.val;
46979
- }
46980
- else {
46981
- label = item;
46982
- val = item;
47202
+ that.addHandler(that.host, 'change' + eventNamespace, function (event) {
47203
+ if (that.opened && !event.args) {
47204
+ event.stopPropagation();
47205
+ event.preventDefault();
47206
+ event.stopImmediatePropagation();
47207
+
47208
+ return;
46983
47209
  }
46984
- that._raiseEvent('3', { type: 'keyboard', 'item': { 'label': label, 'value': val }, 'label': label, 'value': val });
46985
- that.value = label;
46986
- that._refreshPlaceHolder();
46987
- }
46988
- });
47210
+ if (!event.args) {
47211
+ event.stopPropagation();
47212
+ event.preventDefault();
47213
+ event.stopImmediatePropagation();
46989
47214
 
46990
- that.addHandler(that.host, 'keypress' + eventNamespace, function (event) { that.keypress(event); });
46991
- that.addHandler(that.host, 'keyup' + eventNamespace, function (event) { that.keyup(event); });
46992
- that.addHandler(that.host, 'keydown' + eventNamespace, function (event) { that.keydown(event); });
46993
- that.addHandler(that.$popup, 'pointerdown' + eventNamespace, function (event) { that.click(event); });
46994
- },
47215
+ var item = that.val(),
47216
+ label, val;
47217
+ if (item && item.label) {
47218
+ label = item.label;
47219
+ val = item.val;
47220
+ }
47221
+ else {
47222
+ label = item;
47223
+ val = item;
47224
+ }
47225
+ that._raiseEvent('3', { type: 'keyboard', 'item': { 'label': label, 'value': val }, 'label': label, 'value': val });
47226
+ that.value = label;
47227
+ that._refreshPlaceHolder();
47228
+ }
47229
+ });
46995
47230
 
46996
- removeHandlers: function () {
46997
- var that = this,
46998
- eventNamespace = '.jqxInput' + that.element.id;
46999
- that.removeHandler(that.host, 'change' + eventNamespace);
47000
- that.removeHandler(that.host, 'focus' + eventNamespace);
47001
- that.removeHandler(that.host, 'blur' + eventNamespace);
47002
- that.removeHandler(that.host, 'keypress' + eventNamespace);
47003
- that.removeHandler(that.host, 'keyup' + eventNamespace);
47004
- that.removeHandler(that.host, 'keydown' + eventNamespace);
47005
- that.removeHandler(that.$popup, 'pointerdown' + eventNamespace);
47006
- },
47007
-
47008
- move: function (e) {
47009
- if (!this.opened) {
47010
- return;
47011
- }
47231
+ that.addHandler(that.host, 'keypress' + eventNamespace, function (event) { that.keypress(event); });
47232
+ that.addHandler(that.host, 'keyup' + eventNamespace, function (event) { that.keyup(event); });
47233
+ that.addHandler(that.host, 'keydown' + eventNamespace, function (event) { that.keydown(event); });
47234
+ that.addHandler(that.$popup, 'pointerdown' + eventNamespace, function (event) { that.click(event); });
47235
+ },
47012
47236
 
47013
- switch (e.keyCode) {
47014
- case 9: // tab
47015
- case 13: // enter
47016
- case 27: // escape
47017
- e.preventDefault();
47018
- break;
47237
+ removeHandlers: function () {
47238
+ var that = this,
47239
+ eventNamespace = '.jqxInput' + that.element.id;
47240
+ that.removeHandler(that.host, 'change' + eventNamespace);
47241
+ that.removeHandler(that.host, 'focus' + eventNamespace);
47242
+ that.removeHandler(that.host, 'blur' + eventNamespace);
47243
+ that.removeHandler(that.host, 'keypress' + eventNamespace);
47244
+ that.removeHandler(that.host, 'keyup' + eventNamespace);
47245
+ that.removeHandler(that.host, 'keydown' + eventNamespace);
47246
+ that.removeHandler(that.$popup, 'pointerdown' + eventNamespace);
47247
+ },
47019
47248
 
47020
- case 38: // up arrow
47021
- if (!e.shiftKey) {
47022
- e.preventDefault();
47023
- this.prev();
47024
- }
47025
- break;
47249
+ move: function (e) {
47250
+ if (!this.opened) {
47251
+ return;
47252
+ }
47026
47253
 
47027
- case 40: // down arrow
47028
- if (!e.shiftKey) {
47254
+ switch (e.keyCode) {
47255
+ case 9: // tab
47256
+ case 13: // enter
47257
+ case 27: // escape
47029
47258
  e.preventDefault();
47030
- this.next();
47031
- }
47032
- break;
47033
- }
47259
+ break;
47034
47260
 
47035
- e.stopPropagation();
47036
- },
47261
+ case 38: // up arrow
47262
+ if (!e.shiftKey) {
47263
+ e.preventDefault();
47264
+ this.prev();
47265
+ }
47266
+ break;
47037
47267
 
47038
- keydown: function (e) {
47039
- var arr = [40, 38, 9, 13, 27];
47040
- this.suppressKeyPressRepeat = arr.indexOf(e.keyCode) !== -1;
47041
- this.move(e);
47042
- },
47268
+ case 40: // down arrow
47269
+ if (!e.shiftKey) {
47270
+ e.preventDefault();
47271
+ this.next();
47272
+ }
47273
+ break;
47274
+ }
47043
47275
 
47044
- keypress: function (e) {
47045
- if (this.suppressKeyPressRepeat) {
47046
- return;
47047
- }
47048
- this.move(e);
47049
- },
47276
+ e.stopPropagation();
47277
+ },
47050
47278
 
47051
- keyup: function (e) {
47052
- switch (e.keyCode) {
47053
- case 40: // down arrow
47054
- case 38: // up arrow
47055
- case 16: // shift
47056
- case 17: // ctrl
47057
- case 18: // alt
47058
- e.stopPropagation();
47059
- e.preventDefault();
47060
- break;
47279
+ keydown: function (e) {
47280
+ var arr = [40, 38, 9, 13, 27];
47281
+ this.suppressKeyPressRepeat = arr.indexOf(e.keyCode) !== -1;
47061
47282
 
47062
- case 9: // tab
47063
- case 13: // enter
47283
+ if (e.key === 'Tab') {
47064
47284
  if (!this.opened) {
47285
+ if (this.inlineAutoComplete) {
47286
+ this.select(e, this, 'keyboard');
47287
+ }
47065
47288
  return;
47066
47289
  }
47067
- this.select(e, this, 'keyboard');
47068
- e.stopPropagation();
47069
- e.preventDefault();
47070
- break;
47290
+ }
47291
+ this.move(e);
47292
+ },
47071
47293
 
47072
- case 27: // escape
47073
- if (!this.opened) {
47074
- return;
47075
- }
47076
- this.close();
47077
- e.stopPropagation();
47078
- e.preventDefault();
47079
- break;
47294
+ keypress: function (e) {
47295
+ if (this.suppressKeyPressRepeat) {
47296
+ return;
47297
+ }
47298
+ this.move(e);
47299
+ },
47080
47300
 
47081
- default:
47082
- {
47083
- var me = this;
47084
- if (this.timer) {
47085
- clearTimeout(this.timer);
47301
+ keyup: function (e) {
47302
+ switch (e.keyCode) {
47303
+ case 40: // down arrow
47304
+ case 38: // up arrow
47305
+ case 16: // shift
47306
+ case 17: // ctrl
47307
+ case 18: // alt
47308
+ e.stopPropagation();
47309
+ e.preventDefault();
47310
+ break;
47311
+
47312
+ case 9: // tab
47313
+ case 13: // enter
47314
+ if (!this.opened) {
47315
+ if (this.inlineAutoComplete) {
47316
+ this.select(e, this, 'keyboard');
47317
+ e.stopPropagation();
47318
+ e.preventDefault();
47319
+ }
47320
+ return;
47086
47321
  }
47087
- this.timer = setTimeout(function () {
47088
- me.suggest();
47089
- }, 300);
47090
- }
47091
- }
47322
+ this.select(e, this, 'keyboard');
47323
+ e.stopPropagation();
47324
+ e.preventDefault();
47325
+ break;
47092
47326
 
47093
- },
47327
+ case 27: // escape
47328
+ if (!this.opened) {
47329
+ return;
47330
+ }
47331
+ this.close();
47332
+ e.stopPropagation();
47333
+ e.preventDefault();
47334
+ break;
47094
47335
 
47095
- clear: function () {
47096
- this.val('');
47097
- },
47336
+ default:
47337
+ {
47338
+ var me = this;
47339
+ if (this.timer) {
47340
+ clearTimeout(this.timer);
47341
+ }
47098
47342
 
47099
- onBlur: function () {
47100
- var that = this;
47101
- setTimeout(function () { that.close(); }, 150);
47102
- that.host.removeClass(that.toThemeProperty('jqx-fill-state-focus'));
47103
- that._refreshPlaceHolder();
47104
- },
47343
+ if (this.inlineAutoComplete) {
47344
+ me.suggest();
47345
+ return;
47346
+ }
47347
+ this.timer = setTimeout(function () {
47348
+ me.suggest();
47349
+ }, 300);
47350
+ }
47351
+ }
47105
47352
 
47106
- onFocus: function () {
47107
- var that = this;
47108
- that.element.className += ' ' + that.toThemeProperty('jqx-fill-state-focus');
47109
- that._refreshPlaceHolder();
47110
- },
47353
+ },
47111
47354
 
47112
- click: function (e) {
47113
- e.stopPropagation();
47114
- e.preventDefault();
47115
- this.select(e, this, 'mouse');
47116
- },
47355
+ clear: function () {
47356
+ this.val('');
47357
+ },
47117
47358
 
47118
- mouseenter: function (e) {
47119
- $(this._find('jqx-fill-state-pressed', this._popupHelper)).removeClass(this.toThemeProperty('jqx-fill-state-pressed'));
47120
- e.currentTarget.className += ' ' + this.toThemeProperty('jqx-fill-state-pressed');
47121
- },
47359
+ onBlur: function () {
47360
+ var that = this;
47361
+ setTimeout(function () { that.close(); }, 150);
47362
+ that.host.removeClass(that.toThemeProperty('jqx-fill-state-focus'));
47363
+ that._refreshPlaceHolder();
47364
+ },
47122
47365
 
47123
- _toPx: function (value) {
47124
- if (typeof value === 'number') {
47125
- return value + 'px';
47126
- } else {
47127
- return value;
47128
- }
47129
- },
47366
+ onFocus: function () {
47367
+ var that = this;
47368
+ that.element.className += ' ' + that.toThemeProperty('jqx-fill-state-focus');
47369
+ that._refreshPlaceHolder();
47370
+ },
47371
+
47372
+ click: function (e) {
47373
+ e.stopPropagation();
47374
+ e.preventDefault();
47375
+ this.select(e, this, 'mouse');
47376
+ },
47377
+
47378
+ mouseenter: function (e) {
47379
+ $(this._find('jqx-fill-state-pressed', this._popupHelper)).removeClass(this.toThemeProperty('jqx-fill-state-pressed'));
47380
+ e.currentTarget.className += ' ' + this.toThemeProperty('jqx-fill-state-pressed');
47381
+ },
47130
47382
 
47131
- _find: function (className, parentElement) {
47132
- var children = parentElement.children();
47133
- for (var i = 0; i < children.length; i++) {
47134
- var child = children[i];
47135
- if (child.className.indexOf(className) !== -1) {
47136
- return child;
47383
+ _toPx: function (value) {
47384
+ if (typeof value === 'number') {
47385
+ return value + 'px';
47386
+ } else {
47387
+ return value;
47137
47388
  }
47138
- }
47139
- },
47389
+ },
47140
47390
 
47141
- _getAddonsWidth: function () {
47142
- var that = this,
47143
- children = that.baseHost.children(),
47144
- result = 0;
47391
+ _find: function (className, parentElement) {
47392
+ var children = parentElement.children();
47393
+ for (var i = 0; i < children.length; i++) {
47394
+ var child = children[i];
47395
+ if (child.className.indexOf(className) !== -1) {
47396
+ return child;
47397
+ }
47398
+ }
47399
+ },
47400
+
47401
+ _getAddonsWidth: function () {
47402
+ var that = this,
47403
+ children = that.baseHost.children(),
47404
+ result = 0;
47145
47405
 
47146
- for (var i = 0; i < children.length; i++) {
47147
- if (children[i] !== that.element) {
47148
- result += $(children[i]).outerWidth();
47406
+ for (var i = 0; i < children.length; i++) {
47407
+ if (children[i] !== that.element) {
47408
+ result += $(children[i]).outerWidth();
47409
+ }
47149
47410
  }
47150
- }
47151
47411
 
47152
- return result;
47153
- }
47154
- });
47155
- })(jqxBaseFramework); //ignore jslint
47412
+ return result;
47413
+ }
47414
+ });
47415
+ })(jqxBaseFramework); //ignore jslint
47156
47416
  })();
47157
47417
 
47158
47418
  /***/ }),
@@ -61723,7 +61983,7 @@ ${attr.formula} </cfRule>
61723
61983
  /******/ var __webpack_module_cache__ = {};
61724
61984
  /******/
61725
61985
  /******/ // The require function
61726
- /******/ function __nested_webpack_require_2472597__(moduleId) {
61986
+ /******/ function __nested_webpack_require_2488271__(moduleId) {
61727
61987
  /******/ // Check if module is in cache
61728
61988
  /******/ var cachedModule = __webpack_module_cache__[moduleId];
61729
61989
  /******/ if (cachedModule !== undefined) {
@@ -61737,7 +61997,7 @@ ${attr.formula} </cfRule>
61737
61997
  /******/ };
61738
61998
  /******/
61739
61999
  /******/ // Execute the module function
61740
- /******/ __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_2472597__);
62000
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_2488271__);
61741
62001
  /******/
61742
62002
  /******/ // Return the exports of the module
61743
62003
  /******/ return module.exports;
@@ -61746,17 +62006,17 @@ ${attr.formula} </cfRule>
61746
62006
  /************************************************************************/
61747
62007
  /******/ /* webpack/runtime/amd options */
61748
62008
  /******/ (() => {
61749
- /******/ __nested_webpack_require_2472597__.amdO = {};
62009
+ /******/ __nested_webpack_require_2488271__.amdO = {};
61750
62010
  /******/ })();
61751
62011
  /******/
61752
62012
  /******/ /* webpack/runtime/compat get default export */
61753
62013
  /******/ (() => {
61754
62014
  /******/ // getDefaultExport function for compatibility with non-harmony modules
61755
- /******/ __nested_webpack_require_2472597__.n = (module) => {
62015
+ /******/ __nested_webpack_require_2488271__.n = (module) => {
61756
62016
  /******/ var getter = module && module.__esModule ?
61757
62017
  /******/ () => (module['default']) :
61758
62018
  /******/ () => (module);
61759
- /******/ __nested_webpack_require_2472597__.d(getter, { a: getter });
62019
+ /******/ __nested_webpack_require_2488271__.d(getter, { a: getter });
61760
62020
  /******/ return getter;
61761
62021
  /******/ };
61762
62022
  /******/ })();
@@ -61764,9 +62024,9 @@ ${attr.formula} </cfRule>
61764
62024
  /******/ /* webpack/runtime/define property getters */
61765
62025
  /******/ (() => {
61766
62026
  /******/ // define getter functions for harmony exports
61767
- /******/ __nested_webpack_require_2472597__.d = (exports, definition) => {
62027
+ /******/ __nested_webpack_require_2488271__.d = (exports, definition) => {
61768
62028
  /******/ for(var key in definition) {
61769
- /******/ if(__nested_webpack_require_2472597__.o(definition, key) && !__nested_webpack_require_2472597__.o(exports, key)) {
62029
+ /******/ if(__nested_webpack_require_2488271__.o(definition, key) && !__nested_webpack_require_2488271__.o(exports, key)) {
61770
62030
  /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
61771
62031
  /******/ }
61772
62032
  /******/ }
@@ -61775,7 +62035,7 @@ ${attr.formula} </cfRule>
61775
62035
  /******/
61776
62036
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
61777
62037
  /******/ (() => {
61778
- /******/ __nested_webpack_require_2472597__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
62038
+ /******/ __nested_webpack_require_2488271__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
61779
62039
  /******/ })();
61780
62040
  /******/
61781
62041
  /************************************************************************/
@@ -61783,42 +62043,42 @@ var __webpack_exports__ = {};
61783
62043
  // This entry need to be wrapped in an IIFE because it need to be in strict mode.
61784
62044
  (() => {
61785
62045
  "use strict";
61786
- /* harmony import */ var _jqxcore__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_2472597__(5459);
61787
- /* harmony import */ var _jqxcore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxcore__WEBPACK_IMPORTED_MODULE_0__);
61788
- /* harmony import */ var _jqxdata__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_2472597__(4198);
61789
- /* harmony import */ var _jqxdata__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxdata__WEBPACK_IMPORTED_MODULE_1__);
61790
- /* harmony import */ var _jqxdata_export__WEBPACK_IMPORTED_MODULE_2__ = __nested_webpack_require_2472597__(3907);
61791
- /* harmony import */ var _jqxdata_export__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxdata_export__WEBPACK_IMPORTED_MODULE_2__);
61792
- /* harmony import */ var _jqxexport__WEBPACK_IMPORTED_MODULE_3__ = __nested_webpack_require_2472597__(714);
61793
- /* harmony import */ var _jqxexport__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxexport__WEBPACK_IMPORTED_MODULE_3__);
61794
- /* harmony import */ var _jqxbuttons__WEBPACK_IMPORTED_MODULE_4__ = __nested_webpack_require_2472597__(7351);
61795
- /* harmony import */ var _jqxbuttons__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxbuttons__WEBPACK_IMPORTED_MODULE_4__);
61796
- /* harmony import */ var _jqxbuttongroup__WEBPACK_IMPORTED_MODULE_5__ = __nested_webpack_require_2472597__(7196);
61797
- /* harmony import */ var _jqxbuttongroup__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxbuttongroup__WEBPACK_IMPORTED_MODULE_5__);
61798
- /* harmony import */ var _jqxscrollbar__WEBPACK_IMPORTED_MODULE_6__ = __nested_webpack_require_2472597__(4240);
61799
- /* harmony import */ var _jqxscrollbar__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxscrollbar__WEBPACK_IMPORTED_MODULE_6__);
61800
- /* harmony import */ var _jqxmenu__WEBPACK_IMPORTED_MODULE_7__ = __nested_webpack_require_2472597__(1610);
61801
- /* harmony import */ var _jqxmenu__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxmenu__WEBPACK_IMPORTED_MODULE_7__);
61802
- /* harmony import */ var _jqxlistbox__WEBPACK_IMPORTED_MODULE_8__ = __nested_webpack_require_2472597__(1062);
61803
- /* harmony import */ var _jqxlistbox__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxlistbox__WEBPACK_IMPORTED_MODULE_8__);
61804
- /* harmony import */ var _jqxdropdownlist__WEBPACK_IMPORTED_MODULE_9__ = __nested_webpack_require_2472597__(5868);
61805
- /* harmony import */ var _jqxdropdownlist__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxdropdownlist__WEBPACK_IMPORTED_MODULE_9__);
61806
- /* harmony import */ var _jqxcombobox__WEBPACK_IMPORTED_MODULE_10__ = __nested_webpack_require_2472597__(4720);
61807
- /* harmony import */ var _jqxcombobox__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxcombobox__WEBPACK_IMPORTED_MODULE_10__);
61808
- /* harmony import */ var _jqxnumberinput__WEBPACK_IMPORTED_MODULE_11__ = __nested_webpack_require_2472597__(7995);
61809
- /* harmony import */ var _jqxnumberinput__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxnumberinput__WEBPACK_IMPORTED_MODULE_11__);
61810
- /* harmony import */ var _jqxcheckbox__WEBPACK_IMPORTED_MODULE_12__ = __nested_webpack_require_2472597__(4545);
61811
- /* harmony import */ var _jqxcheckbox__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxcheckbox__WEBPACK_IMPORTED_MODULE_12__);
61812
- /* harmony import */ var _globalization_globalize__WEBPACK_IMPORTED_MODULE_13__ = __nested_webpack_require_2472597__(2497);
61813
- /* harmony import */ var _globalization_globalize__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_globalization_globalize__WEBPACK_IMPORTED_MODULE_13__);
61814
- /* harmony import */ var _jqxcalendar__WEBPACK_IMPORTED_MODULE_14__ = __nested_webpack_require_2472597__(5725);
61815
- /* harmony import */ var _jqxcalendar__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxcalendar__WEBPACK_IMPORTED_MODULE_14__);
61816
- /* harmony import */ var _jqxdatetimeinput__WEBPACK_IMPORTED_MODULE_15__ = __nested_webpack_require_2472597__(4993);
61817
- /* harmony import */ var _jqxdatetimeinput__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxdatetimeinput__WEBPACK_IMPORTED_MODULE_15__);
61818
- /* harmony import */ var _jqxinput__WEBPACK_IMPORTED_MODULE_16__ = __nested_webpack_require_2472597__(5875);
61819
- /* harmony import */ var _jqxinput__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxinput__WEBPACK_IMPORTED_MODULE_16__);
61820
- /* harmony import */ var _jqxtoolbar__WEBPACK_IMPORTED_MODULE_17__ = __nested_webpack_require_2472597__(6167);
61821
- /* harmony import */ var _jqxtoolbar__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__nested_webpack_require_2472597__.n(_jqxtoolbar__WEBPACK_IMPORTED_MODULE_17__);
62046
+ /* harmony import */ var _jqxcore__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_2488271__(5459);
62047
+ /* harmony import */ var _jqxcore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxcore__WEBPACK_IMPORTED_MODULE_0__);
62048
+ /* harmony import */ var _jqxdata__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_2488271__(4198);
62049
+ /* harmony import */ var _jqxdata__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxdata__WEBPACK_IMPORTED_MODULE_1__);
62050
+ /* harmony import */ var _jqxdata_export__WEBPACK_IMPORTED_MODULE_2__ = __nested_webpack_require_2488271__(3907);
62051
+ /* harmony import */ var _jqxdata_export__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxdata_export__WEBPACK_IMPORTED_MODULE_2__);
62052
+ /* harmony import */ var _jqxexport__WEBPACK_IMPORTED_MODULE_3__ = __nested_webpack_require_2488271__(714);
62053
+ /* harmony import */ var _jqxexport__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxexport__WEBPACK_IMPORTED_MODULE_3__);
62054
+ /* harmony import */ var _jqxbuttons__WEBPACK_IMPORTED_MODULE_4__ = __nested_webpack_require_2488271__(7351);
62055
+ /* harmony import */ var _jqxbuttons__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxbuttons__WEBPACK_IMPORTED_MODULE_4__);
62056
+ /* harmony import */ var _jqxbuttongroup__WEBPACK_IMPORTED_MODULE_5__ = __nested_webpack_require_2488271__(7196);
62057
+ /* harmony import */ var _jqxbuttongroup__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxbuttongroup__WEBPACK_IMPORTED_MODULE_5__);
62058
+ /* harmony import */ var _jqxscrollbar__WEBPACK_IMPORTED_MODULE_6__ = __nested_webpack_require_2488271__(4240);
62059
+ /* harmony import */ var _jqxscrollbar__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxscrollbar__WEBPACK_IMPORTED_MODULE_6__);
62060
+ /* harmony import */ var _jqxmenu__WEBPACK_IMPORTED_MODULE_7__ = __nested_webpack_require_2488271__(1610);
62061
+ /* harmony import */ var _jqxmenu__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxmenu__WEBPACK_IMPORTED_MODULE_7__);
62062
+ /* harmony import */ var _jqxlistbox__WEBPACK_IMPORTED_MODULE_8__ = __nested_webpack_require_2488271__(1062);
62063
+ /* harmony import */ var _jqxlistbox__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxlistbox__WEBPACK_IMPORTED_MODULE_8__);
62064
+ /* harmony import */ var _jqxdropdownlist__WEBPACK_IMPORTED_MODULE_9__ = __nested_webpack_require_2488271__(5868);
62065
+ /* harmony import */ var _jqxdropdownlist__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxdropdownlist__WEBPACK_IMPORTED_MODULE_9__);
62066
+ /* harmony import */ var _jqxcombobox__WEBPACK_IMPORTED_MODULE_10__ = __nested_webpack_require_2488271__(4720);
62067
+ /* harmony import */ var _jqxcombobox__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxcombobox__WEBPACK_IMPORTED_MODULE_10__);
62068
+ /* harmony import */ var _jqxnumberinput__WEBPACK_IMPORTED_MODULE_11__ = __nested_webpack_require_2488271__(7995);
62069
+ /* harmony import */ var _jqxnumberinput__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxnumberinput__WEBPACK_IMPORTED_MODULE_11__);
62070
+ /* harmony import */ var _jqxcheckbox__WEBPACK_IMPORTED_MODULE_12__ = __nested_webpack_require_2488271__(4545);
62071
+ /* harmony import */ var _jqxcheckbox__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxcheckbox__WEBPACK_IMPORTED_MODULE_12__);
62072
+ /* harmony import */ var _globalization_globalize__WEBPACK_IMPORTED_MODULE_13__ = __nested_webpack_require_2488271__(2497);
62073
+ /* harmony import */ var _globalization_globalize__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_globalization_globalize__WEBPACK_IMPORTED_MODULE_13__);
62074
+ /* harmony import */ var _jqxcalendar__WEBPACK_IMPORTED_MODULE_14__ = __nested_webpack_require_2488271__(5725);
62075
+ /* harmony import */ var _jqxcalendar__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxcalendar__WEBPACK_IMPORTED_MODULE_14__);
62076
+ /* harmony import */ var _jqxdatetimeinput__WEBPACK_IMPORTED_MODULE_15__ = __nested_webpack_require_2488271__(4993);
62077
+ /* harmony import */ var _jqxdatetimeinput__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxdatetimeinput__WEBPACK_IMPORTED_MODULE_15__);
62078
+ /* harmony import */ var _jqxinput__WEBPACK_IMPORTED_MODULE_16__ = __nested_webpack_require_2488271__(5875);
62079
+ /* harmony import */ var _jqxinput__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxinput__WEBPACK_IMPORTED_MODULE_16__);
62080
+ /* harmony import */ var _jqxtoolbar__WEBPACK_IMPORTED_MODULE_17__ = __nested_webpack_require_2488271__(6167);
62081
+ /* harmony import */ var _jqxtoolbar__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__nested_webpack_require_2488271__.n(_jqxtoolbar__WEBPACK_IMPORTED_MODULE_17__);
61822
62082
 
61823
62083
 
61824
62084
 
@@ -61840,6 +62100,12 @@ var __webpack_exports__ = {};
61840
62100
 
61841
62101
  })();
61842
62102
 
62103
+ /******/ })()
62104
+ ;
62105
+ /******/ })()
62106
+ ;
62107
+ /******/ })()
62108
+ ;
61843
62109
  /******/ })()
61844
62110
  ;
61845
62111
  /******/ })()