jsl-ui 9.18.2 → 9.18.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 (214) hide show
  1. package/lib/grid.css +0 -8
  2. package/lib/index.css.map +1 -1
  3. package/lib/index.js +10198 -61
  4. package/lib/index.js.map +1 -1
  5. package/package.json +1 -1
  6. package/lib/components/IntervalComponent.d.ts +0 -17
  7. package/lib/components/IntervalComponent.js +0 -68
  8. package/lib/components/auto-suggest/AutoSuggestComponent.d.ts +0 -22
  9. package/lib/components/auto-suggest/AutoSuggestComponent.js +0 -49
  10. package/lib/components/button/ButtonComponent.d.ts +0 -18
  11. package/lib/components/button/ButtonComponent.js +0 -46
  12. package/lib/components/checkbox/CheckBoxComponent.d.ts +0 -28
  13. package/lib/components/checkbox/CheckBoxComponent.js +0 -94
  14. package/lib/components/checkbox/CheckBoxStyle.scss +0 -86
  15. package/lib/components/date/DateComponent.d.ts +0 -32
  16. package/lib/components/date/DateComponent.js +0 -106
  17. package/lib/components/date-range/DateRangeComponent.d.ts +0 -35
  18. package/lib/components/date-range/DateRangeComponent.js +0 -136
  19. package/lib/components/date-range/DateRangeStyle.scss +0 -12
  20. package/lib/components/date-time/DateTimeComponent.d.ts +0 -15
  21. package/lib/components/date-time/DateTimeComponent.js +0 -53
  22. package/lib/components/date-time/DateTimeStyle.scss +0 -7
  23. package/lib/components/dialog/DialogComponent.d.ts +0 -67
  24. package/lib/components/dialog/DialogComponent.js +0 -242
  25. package/lib/components/drop-down/DropDownComponent.d.ts +0 -27
  26. package/lib/components/drop-down/DropDownComponent.js +0 -74
  27. package/lib/components/expander/ExpanderComponent.d.ts +0 -27
  28. package/lib/components/expander/ExpanderComponent.js +0 -90
  29. package/lib/components/expander/ExpanderStyle.scss +0 -47
  30. package/lib/components/expander/OldExpanderStyle.scss +0 -37
  31. package/lib/components/form-field/FormComponent.d.ts +0 -12
  32. package/lib/components/form-field/FormComponent.js +0 -26
  33. package/lib/components/form-field/FormFieldComponent.d.ts +0 -38
  34. package/lib/components/form-field/FormFieldComponent.js +0 -139
  35. package/lib/components/form-field/FormFieldStyle.scss +0 -87
  36. package/lib/components/grid/GridComponent.d.ts +0 -26
  37. package/lib/components/grid/GridComponent.js +0 -116
  38. package/lib/components/input/InputComponent.d.ts +0 -33
  39. package/lib/components/input/InputComponent.js +0 -144
  40. package/lib/components/loading/LoadingComponent.d.ts +0 -8
  41. package/lib/components/loading/LoadingComponent.js +0 -22
  42. package/lib/components/loading/LoadingStyle.css +0 -29
  43. package/lib/components/navigation/NavigationComponent.d.ts +0 -34
  44. package/lib/components/navigation/NavigationComponent.js +0 -70
  45. package/lib/components/navigation/NavigationStyle.scss +0 -226
  46. package/lib/components/notification/Notification.d.ts +0 -17
  47. package/lib/components/notification/Notification.js +0 -56
  48. package/lib/components/notification/Notification.scss +0 -19
  49. package/lib/components/number/NumberComponent.d.ts +0 -25
  50. package/lib/components/number/NumberComponent.js +0 -87
  51. package/lib/components/overlay/OverlayComponent.d.ts +0 -27
  52. package/lib/components/overlay/OverlayComponent.js +0 -149
  53. package/lib/components/overlay/overlay.css +0 -57
  54. package/lib/components/progress/ProgressComponent.d.ts +0 -18
  55. package/lib/components/progress/ProgressComponent.js +0 -42
  56. package/lib/components/progress/ProgressStyle.scss +0 -15
  57. package/lib/components/ribbon-menu/RibbonMenuComponent.d.ts +0 -12
  58. package/lib/components/ribbon-menu/RibbonMenuComponent.js +0 -34
  59. package/lib/components/ribbon-menu/RibbonMenuStyle.scss +0 -76
  60. package/lib/components/select/SelectComponent.d.ts +0 -79
  61. package/lib/components/select/SelectComponent.js +0 -362
  62. package/lib/components/select/SelectDDAreaComponent.d.ts +0 -32
  63. package/lib/components/select/SelectDDAreaComponent.js +0 -317
  64. package/lib/components/select/SelectStyle.scss +0 -187
  65. package/lib/components/slider/nouislider.css +0 -310
  66. package/lib/components/slider/nouislider.d.ts +0 -44
  67. package/lib/components/slider/nouislider.js +0 -2158
  68. package/lib/components/stack-panel/SplitterComponent.d.ts +0 -21
  69. package/lib/components/stack-panel/SplitterComponent.js +0 -126
  70. package/lib/components/stack-panel/SplitterStyle.scss +0 -45
  71. package/lib/components/stack-panel/StackPanelComponent.d.ts +0 -20
  72. package/lib/components/stack-panel/StackPanelComponent.js +0 -64
  73. package/lib/components/stack-panel/StackPanelStyle.scss +0 -53
  74. package/lib/components/tabs/TabsComponent.d.ts +0 -39
  75. package/lib/components/tabs/TabsComponent.js +0 -177
  76. package/lib/components/tabs/TabsStyle.scss +0 -76
  77. package/lib/components/time/TimeComponent.d.ts +0 -29
  78. package/lib/components/time/TimeComponent.js +0 -113
  79. package/lib/components/time/TimeComponent.scss +0 -4
  80. package/lib/components/tree-view/TreeViewComponent.d.ts +0 -23
  81. package/lib/components/tree-view/TreeViewComponent.js +0 -45
  82. package/lib/components/tree-view/TreeViewStyle.scss +0 -96
  83. package/lib/components/virtual-render/VirtualRenderComponent.d.ts +0 -30
  84. package/lib/components/virtual-render/VirtualRenderComponent.js +0 -104
  85. package/lib/components/virtual-render/VirtualRenderStyle.scss +0 -9
  86. package/lib/core/culture.d.ts +0 -5
  87. package/lib/core/culture.js +0 -385
  88. package/lib/core/date.d.ts +0 -14
  89. package/lib/core/date.js +0 -350
  90. package/lib/core/helper.d.ts +0 -12
  91. package/lib/core/helper.js +0 -101
  92. package/lib/core/jq.d.ts +0 -37
  93. package/lib/core/jq.js +0 -371
  94. package/lib/core/lang.d.ts +0 -24
  95. package/lib/core/lang.js +0 -28
  96. package/lib/core/numeric.d.ts +0 -7
  97. package/lib/core/numeric.js +0 -143
  98. package/lib/core/polyfills.d.ts +0 -0
  99. package/lib/core/polyfills.js +0 -22
  100. package/lib/core.d.ts +0 -6
  101. package/lib/core.js +0 -6
  102. package/lib/grid/controls/slick.columnpicker.css +0 -46
  103. package/lib/grid/controls/slick.draggablegrouping.css +0 -52
  104. package/lib/grid/controls/slick.gridmenu.css +0 -127
  105. package/lib/grid/controls/slick.pager.css +0 -41
  106. package/lib/grid/examples/examples.css +0 -203
  107. package/lib/grid/filterDialogs/dateRangeFilter.d.ts +0 -7
  108. package/lib/grid/filterDialogs/dateRangeFilter.js +0 -156
  109. package/lib/grid/filterDialogs/excelFilter.d.ts +0 -9
  110. package/lib/grid/filterDialogs/excelFilter.js +0 -313
  111. package/lib/grid/plugins/ext.overlay.css +0 -28
  112. package/lib/grid/plugins/ext.overlay.d.ts +0 -2
  113. package/lib/grid/plugins/ext.overlay.js +0 -291
  114. package/lib/grid/plugins/slick.cellrangedecorator.d.ts +0 -12
  115. package/lib/grid/plugins/slick.cellrangedecorator.js +0 -68
  116. package/lib/grid/plugins/slick.cellrangeselector.d.ts +0 -1
  117. package/lib/grid/plugins/slick.cellrangeselector.js +0 -144
  118. package/lib/grid/plugins/slick.cellselectionmodel.d.ts +0 -1
  119. package/lib/grid/plugins/slick.cellselectionmodel.js +0 -194
  120. package/lib/grid/plugins/slick.headerbuttons.css +0 -40
  121. package/lib/grid/plugins/slick.headerbuttons.d.ts +0 -55
  122. package/lib/grid/plugins/slick.headerbuttons.js +0 -156
  123. package/lib/grid/plugins/slick.headermenu.css +0 -101
  124. package/lib/grid/plugins/slick.headermenu.d.ts +0 -74
  125. package/lib/grid/plugins/slick.headermenu.js +0 -260
  126. package/lib/grid/plugins/slick.rowdetailview.css +0 -37
  127. package/lib/grid/plugins/slick.rowmovemanager.css +0 -8
  128. package/lib/grid/plugins/slick.rowmovemanager.d.ts +0 -18
  129. package/lib/grid/plugins/slick.rowmovemanager.js +0 -249
  130. package/lib/grid/plugins/slick.rowselectionmodel.d.ts +0 -1
  131. package/lib/grid/plugins/slick.rowselectionmodel.js +0 -167
  132. package/lib/grid/slick-default-theme.css +0 -154
  133. package/lib/grid/slick.core.d.ts +0 -90
  134. package/lib/grid/slick.core.js +0 -574
  135. package/lib/grid/slick.creator.d.ts +0 -80
  136. package/lib/grid/slick.creator.js +0 -723
  137. package/lib/grid/slick.dataview.d.ts +0 -71
  138. package/lib/grid/slick.dataview.js +0 -1080
  139. package/lib/grid/slick.editors.core.d.ts +0 -4
  140. package/lib/grid/slick.editors.core.js +0 -232
  141. package/lib/grid/slick.editors.date.d.ts +0 -2
  142. package/lib/grid/slick.editors.date.js +0 -125
  143. package/lib/grid/slick.editors.lookup.d.ts +0 -14
  144. package/lib/grid/slick.editors.lookup.js +0 -353
  145. package/lib/grid/slick.editors.nav.d.ts +0 -6
  146. package/lib/grid/slick.editors.nav.js +0 -22
  147. package/lib/grid/slick.formatters.d.ts +0 -17
  148. package/lib/grid/slick.formatters.js +0 -137
  149. package/lib/grid/slick.grid.css +0 -325
  150. package/lib/grid/slick.grid.d.ts +0 -284
  151. package/lib/grid/slick.grid.js +0 -5395
  152. package/lib/grid/slick.groupitemmetadataprovider.d.ts +0 -39
  153. package/lib/grid/slick.groupitemmetadataprovider.js +0 -165
  154. package/lib/grid/slick.tree.css +0 -20
  155. package/lib/grid/slick.tree.d.ts +0 -33
  156. package/lib/grid/slick.tree.js +0 -220
  157. package/lib/grid.d.ts +0 -13
  158. package/lib/grid.js +0 -13
  159. package/lib/index.css +0 -2584
  160. package/lib/index.d.ts +0 -56
  161. package/lib/interaction/dataconverter.d.ts +0 -4
  162. package/lib/interaction/dataconverter.js +0 -1
  163. package/lib/interaction/eventhandler.d.ts +0 -13
  164. package/lib/interaction/eventhandler.js +0 -42
  165. package/lib/interaction/moveable.css +0 -0
  166. package/lib/interaction/moveable.d.ts +0 -39
  167. package/lib/interaction/moveable.js +0 -172
  168. package/lib/interaction/resizable.css +0 -33
  169. package/lib/interaction/resizable.d.ts +0 -37
  170. package/lib/interaction/resizable.js +0 -123
  171. package/lib/ui/auto.suggest.css +0 -14
  172. package/lib/ui/auto.suggest.d.ts +0 -17
  173. package/lib/ui/auto.suggest.js +0 -255
  174. package/lib/ui/base.css +0 -150
  175. package/lib/ui/date.picker/css/date-range-picker.css +0 -87
  176. package/lib/ui/date.picker/css/tiny-date-picker.css +0 -326
  177. package/lib/ui/date.picker/date-picker-options.d.ts +0 -11
  178. package/lib/ui/date.picker/date-picker-options.js +0 -76
  179. package/lib/ui/date.picker/lib/date-manip.d.ts +0 -74
  180. package/lib/ui/date.picker/lib/date-manip.js +0 -120
  181. package/lib/ui/date.picker/lib/dom.d.ts +0 -23
  182. package/lib/ui/date.picker/lib/dom.js +0 -28
  183. package/lib/ui/date.picker/lib/emitter.d.ts +0 -13
  184. package/lib/ui/date.picker/lib/emitter.js +0 -49
  185. package/lib/ui/date.picker/lib/fns.d.ts +0 -23
  186. package/lib/ui/date.picker/lib/fns.js +0 -43
  187. package/lib/ui/date.picker/mode/base-mode.d.ts +0 -26
  188. package/lib/ui/date.picker/mode/base-mode.js +0 -248
  189. package/lib/ui/date.picker/mode/dropdown-mode.d.ts +0 -28
  190. package/lib/ui/date.picker/mode/dropdown-mode.js +0 -50
  191. package/lib/ui/date.picker/mode/index.d.ts +0 -28
  192. package/lib/ui/date.picker/mode/index.js +0 -18
  193. package/lib/ui/date.picker/mode/modal-mode.d.ts +0 -25
  194. package/lib/ui/date.picker/mode/modal-mode.js +0 -17
  195. package/lib/ui/date.picker/mode/permanent-mode.d.ts +0 -29
  196. package/lib/ui/date.picker/mode/permanent-mode.js +0 -19
  197. package/lib/ui/date.picker/views/day-picker.d.ts +0 -40
  198. package/lib/ui/date.picker/views/day-picker.js +0 -155
  199. package/lib/ui/date.picker/views/month-picker.d.ts +0 -26
  200. package/lib/ui/date.picker/views/month-picker.js +0 -65
  201. package/lib/ui/date.picker/views/year-picker.d.ts +0 -20
  202. package/lib/ui/date.picker/views/year-picker.js +0 -66
  203. package/lib/ui/date.picker.d.ts +0 -66
  204. package/lib/ui/date.picker.js +0 -32
  205. package/lib/ui/dialog.css +0 -109
  206. package/lib/ui/dialog.d.ts +0 -22
  207. package/lib/ui/dialog.js +0 -113
  208. package/lib/ui/drop.down.css +0 -472
  209. package/lib/ui/drop.down.d.ts +0 -52
  210. package/lib/ui/drop.down.js +0 -2112
  211. package/lib/ui/number.input.css +0 -3
  212. package/lib/ui/number.input.d.ts +0 -12
  213. package/lib/ui/number.input.js +0 -64
  214. package/lib/ui/tabs.css +0 -53
@@ -1,255 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import "./auto.suggest.css";
13
- var autoComplete = (function () {
14
- function autoComplete(options) {
15
- // helpers
16
- function hasClass(el, className) { return el.classList.contains(className); }
17
- function addEvent(el, type, handler) {
18
- el.addEventListener(type, handler);
19
- }
20
- function removeEvent(el, type, handler) {
21
- // if (el.removeEventListener) not working in IE11
22
- el.removeEventListener(type, handler);
23
- }
24
- function live(elClass, event, cb, context) {
25
- addEvent(context || document, event, function (e) {
26
- var found;
27
- var el = e.target || e.srcElement;
28
- while (el && !(found = hasClass(el, elClass))) {
29
- el = el.parentElement;
30
- }
31
- if (found) {
32
- cb.call(el, e);
33
- }
34
- });
35
- }
36
- var o = {
37
- selector: "",
38
- source: function (val, s) { return []; },
39
- minChars: 0,
40
- delay: 150,
41
- offsetLeft: 0,
42
- offsetTop: 1,
43
- cache: false,
44
- menuClass: '',
45
- renderItem: function (item, search) {
46
- // escape special characters
47
- search = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
48
- var re = new RegExp("(" + search.split(' ').join('|') + ")", "gi");
49
- return '<div class="autocomplete-suggestion" data-val="' + item + '">' + item.replace(re, "<b>$1</b>") + '</div>';
50
- },
51
- onSelect: function (e, term, item) { }
52
- };
53
- for (var k in options) {
54
- if (options.hasOwnProperty(k)) {
55
- o[k] = options[k];
56
- }
57
- }
58
- // init
59
- var elems = typeof o.selector === 'object' ? [o.selector] : document.querySelectorAll(o.selector);
60
- var _loop_1 = function (i) {
61
- var that = elems[i];
62
- // create suggestions container "sc"
63
- that.sc = document.createElement('div');
64
- that.sc.className = 'autocomplete-suggestions ' + o.menuClass;
65
- that.autocompleteAttr = that.getAttribute('autocomplete');
66
- that.setAttribute('autocomplete', 'off');
67
- that.cache = {};
68
- that.last_val = '';
69
- that.updateSC = function (resize, next) {
70
- var rect = that.getBoundingClientRect();
71
- that.sc.style.left = Math.round(rect.left + (window.pageXOffset || document.documentElement.scrollLeft) + o.offsetLeft) + 'px';
72
- that.sc.style.top = Math.round(rect.bottom + (window.pageYOffset || document.documentElement.scrollTop) + o.offsetTop) + 'px';
73
- that.sc.style.width = Math.round(rect.right - rect.left) + 'px'; // outerWidth
74
- if (!resize) {
75
- that.sc.style.display = 'block';
76
- if (!that.sc.maxHeight) {
77
- that.sc.maxHeight = parseInt((window.getComputedStyle ? getComputedStyle(that.sc, null) : that.sc.currentStyle).maxHeight, 10);
78
- }
79
- if (!that.sc.suggestionHeight) {
80
- that.sc.suggestionHeight = that.sc.querySelector('.autocomplete-suggestion').offsetHeight;
81
- }
82
- if (that.sc.suggestionHeight) {
83
- if (!next) {
84
- that.sc.scrollTop = 0;
85
- }
86
- else {
87
- var scrTop = that.sc.scrollTop, selTop = next.getBoundingClientRect().top - that.sc.getBoundingClientRect().top;
88
- if (selTop + that.sc.suggestionHeight - that.sc.maxHeight > 0) {
89
- that.sc.scrollTop = selTop + that.sc.suggestionHeight + scrTop - that.sc.maxHeight;
90
- }
91
- else if (selTop < 0) {
92
- that.sc.scrollTop = selTop + scrTop;
93
- }
94
- }
95
- }
96
- }
97
- };
98
- addEvent(window, 'resize', that.updateSC);
99
- document.body.appendChild(that.sc);
100
- live('autocomplete-suggestion', 'mouseleave', function (e) {
101
- var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
102
- if (sel) {
103
- setTimeout(function () { sel.className = sel.className.replace('selected', ''); }, 20);
104
- }
105
- }, that.sc);
106
- live('autocomplete-suggestion', 'mouseover', function (e) {
107
- var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
108
- if (sel) {
109
- sel.className = sel.className.replace('selected', '');
110
- }
111
- this.className += ' selected';
112
- }, that.sc);
113
- live('autocomplete-suggestion', 'mousedown', function (e) {
114
- // window.setTimeout(() => {
115
- if (hasClass(this, 'autocomplete-suggestion')) { // else outside click
116
- var v = this.getAttribute('data-val');
117
- that.value = v;
118
- o.onSelect(e, v, this);
119
- that.sc.style.display = 'none';
120
- }
121
- // }, 1000);
122
- }, that.sc);
123
- that.blurHandler = function () {
124
- //var over_sb;
125
- //try { over_sb = document.querySelector('.autocomplete-suggestions:hover'); } catch (e) { over_sb = 0; }
126
- //if (!over_sb) {
127
- that.last_val = that.value;
128
- that.sc.style.display = 'none';
129
- //setTimeout(function() { that.sc.style.display = 'none'; }, 350); // hide suggestions on fast input
130
- //} else if (that !== document.activeElement) { setTimeout(function() { that.focus(); }, 200); }
131
- };
132
- addEvent(that, 'blur', that.blurHandler);
133
- suggest = function (data) {
134
- var val = that.value;
135
- that.cache[val] = data;
136
- if (data.length && val.length >= o.minChars) {
137
- var s = '';
138
- for (var i = 0; i < data.length; i++) {
139
- s += o.renderItem(data[i], val);
140
- }
141
- that.sc.innerHTML = s;
142
- that.updateSC(0);
143
- }
144
- else {
145
- that.sc.style.display = 'none';
146
- }
147
- };
148
- that.keydownHandler = function (e) {
149
- var key = window.event ? e.keyCode : e.which;
150
- // down (40), up (38)
151
- if ((key === 40 || key === 38) && that.sc.innerHTML) {
152
- var next, sel = that.sc.querySelector('.autocomplete-suggestion.selected');
153
- if (!sel) {
154
- next = (key == 40) ? that.sc.querySelector('.autocomplete-suggestion') : that.sc.childNodes[that.sc.childNodes.length - 1]; // first : last
155
- next.className += ' selected';
156
- that.value = next.getAttribute('data-val');
157
- }
158
- else {
159
- next = (key == 40) ? sel.nextSibling : sel.previousSibling;
160
- if (next) {
161
- sel.className = sel.className.replace('selected', '');
162
- next.className += ' selected';
163
- that.value = next.getAttribute('data-val');
164
- }
165
- else {
166
- sel.className = sel.className.replace('selected', '');
167
- that.value = that.last_val;
168
- next = 0;
169
- }
170
- }
171
- that.updateSC(0, next);
172
- return false;
173
- }
174
- else if (key == 27) {
175
- that.value = that.last_val;
176
- that.sc.style.display = 'none';
177
- }
178
- else if (key == 13 || key == 9) {
179
- var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
180
- if (sel && that.sc.style.display != 'none') {
181
- o.onSelect(e, sel.getAttribute('data-val'), sel);
182
- setTimeout(function () { that.sc.style.display = 'none'; }, 20);
183
- }
184
- }
185
- };
186
- addEvent(that, 'keydown', that.keydownHandler);
187
- that.keyupHandler = function (e) {
188
- var key = window.event ? e.keyCode : e.which;
189
- if (!key || (key < 35 || key > 40) && key != 13 && key != 27) {
190
- var val = that.value;
191
- if (val.length >= o.minChars) {
192
- if (val != that.last_val) {
193
- that.last_val = val;
194
- clearTimeout(that.timer);
195
- if (o.cache) {
196
- if (val in that.cache) {
197
- suggest(that.cache[val]);
198
- return;
199
- }
200
- // no requests if previous suggestions were empty
201
- for (var i = 1; i < val.length - o.minChars; i++) {
202
- var part = val.slice(0, val.length - i);
203
- if (part in that.cache && !that.cache[part].length) {
204
- suggest([]);
205
- return;
206
- }
207
- }
208
- }
209
- that.timer = setTimeout(function () { o.source(val, suggest); }, o.delay);
210
- }
211
- }
212
- else {
213
- that.last_val = val;
214
- that.sc.style.display = 'none';
215
- }
216
- }
217
- };
218
- addEvent(that, 'keyup', that.keyupHandler);
219
- that.focusHandler = function (e) {
220
- that.last_val = '\n';
221
- that.keyupHandler(e);
222
- };
223
- if (!o.minChars) {
224
- addEvent(that, 'focus', that.focusHandler);
225
- }
226
- };
227
- var suggest;
228
- for (var i = 0; i < elems.length; i++) {
229
- _loop_1(i);
230
- }
231
- // public destroy method
232
- this.destroy = function () {
233
- for (var i = 0; i < elems.length; i++) {
234
- var that = elems[i];
235
- removeEvent(window, 'resize', that.updateSC);
236
- removeEvent(that, 'blur', that.blurHandler);
237
- removeEvent(that, 'focus', that.focusHandler);
238
- removeEvent(that, 'keydown', that.keydownHandler);
239
- removeEvent(that, 'keyup', that.keyupHandler);
240
- if (that.autocompleteAttr) {
241
- that.setAttribute('autocomplete', that.autocompleteAttr);
242
- }
243
- else {
244
- that.removeAttribute('autocomplete');
245
- }
246
- document.body.removeChild(that.sc);
247
- that = null;
248
- }
249
- };
250
- }
251
- return autoComplete;
252
- })();
253
- export function AutoSuggest(input, opts) {
254
- return new autoComplete(__assign({ selector: input }, opts));
255
- }
package/lib/ui/base.css DELETED
@@ -1,150 +0,0 @@
1
- /* reset some browser inconsistencies */
2
-
3
- html
4
- {
5
- /* line-height:1.15; */
6
- -ms-text-size-adjust:100%;
7
- -webkit-text-size-adjust:100%
8
- }
9
-
10
- hr
11
- {
12
- box-sizing:content-box;
13
- height:0;
14
- overflow:visible
15
- }
16
-
17
- pre,code
18
- {
19
- font-family:monospace,monospace;
20
- font-size:1em
21
- }
22
-
23
- a
24
- {
25
- -webkit-text-decoration-skip:objects
26
- }
27
-
28
- sub,sup
29
- {
30
- font-size:75%;
31
- line-height:0;
32
- position:relative;
33
- vertical-align:baseline
34
- }
35
-
36
- sub
37
- {
38
- bottom:-.25em
39
- }
40
-
41
- sup
42
- {
43
- top:-.5em
44
- }
45
-
46
- input,optgroup,select,textarea
47
- {
48
- font-size:100%;
49
- line-height:1.15;
50
- margin:0;
51
- text-transform:none;
52
- }
53
-
54
- button,input
55
- {
56
- overflow:visible
57
- }
58
-
59
- button,html [type="button"],
60
- [type="reset"],[type="submit"]
61
- {
62
- -webkit-appearance:button
63
- }
64
-
65
- button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner
66
- {
67
- border-style:none;
68
- padding:0
69
- }
70
-
71
- button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring
72
- {
73
- outline:1px dotted ButtonText
74
- }
75
-
76
- textarea
77
- {
78
- overflow:auto
79
- }
80
-
81
- /*
82
- html {
83
- color: #393939;
84
- } */
85
-
86
- /* html,input,textarea,button,optgroup,select {
87
- font-family: Tahoma;
88
- } */
89
-
90
- .jsl-button {
91
- background-color: #3B99FF;
92
- border: 1px solid #3B99FF;
93
- vertical-align:middle;
94
- color: white;
95
-
96
- border-radius: .3rem;
97
- /* color: white; */
98
- cursor: pointer;
99
- display: inline-block;
100
- /* font-weight: 700; */
101
- height: 2rem;
102
- box-sizing: border-box;
103
- letter-spacing: .1rem;
104
- line-height: 2rem;
105
- padding: 0rem 1.0rem;
106
- text-align: center;
107
- text-decoration: none;
108
- white-space: nowrap;
109
- }
110
-
111
- .jsl-button.jsl-button-outline {
112
- background: white;
113
- color: #444444;
114
- }
115
-
116
- .jsl-button:active {
117
- background-color: #3B99FF;
118
- border-color:black;
119
- }
120
-
121
- .jsl-button:hover {
122
- background-color: rgba(59, 154, 255, 0.5);
123
- border-color: #C0C0C0;
124
- color: black;
125
- outline: 0;
126
- }
127
-
128
- .jsl-button:focus {
129
- outline: 0;
130
- border-color: gray;
131
- }
132
-
133
- .jsl-button[disabled] {
134
- cursor: default;
135
- opacity: .5;
136
- }
137
-
138
- .right {
139
- text-align: right;
140
- }
141
-
142
- .center {
143
- text-align: center;
144
- }
145
-
146
- div.jsl-fill {
147
- height: 100%;
148
- box-sizing: border-box;
149
- position: relative;
150
- }
@@ -1,87 +0,0 @@
1
- .dr-cals {
2
- display: flex;
3
- justify-content: space-between;
4
- background: white;
5
- box-shadow: 8px 8px 32px -16px rgba(0, 0, 0, 0.5);
6
- padding-top: 6px;
7
- position: relative;
8
- border-radius: 6px;
9
- overflow: hidden;
10
- }
11
-
12
- .dr-cals:before {
13
- content: ' ';
14
- height: 6px;
15
- position: absolute;
16
- top: 0;
17
- left: 0;
18
- right: 0;
19
- background: #3B99FF;
20
- background: linear-gradient(-90deg, #3B99FF 0%, #8AEFC8 100%);
21
- }
22
-
23
- .dr-cals .dp-edge-day {
24
- visibility: hidden;
25
- }
26
-
27
- .dr-cals .dp-cal-footer {
28
- display: none;
29
- }
30
-
31
- .dr-cals .dp {
32
- border: 0;
33
- }
34
-
35
- .dr-cals .dp-permanent {
36
- max-width: 300px;
37
- }
38
-
39
- .dr-cals .dp-selected:focus,
40
- .dr-cals .dp-selected,
41
- .dr-cals .dp-current:focus,
42
- .dr-cals .dp-current {
43
- background: transparent;
44
- color: inherit;
45
- border-radius: 0;
46
- }
47
-
48
- .dr-cals .dp-day-disabled,
49
- .dr-cals .dp-day-disabled:focus {
50
- color: #DDD;
51
- }
52
-
53
- .dr-cal-end .dp {
54
- border-left: 8px solid #F5F5F5;
55
- }
56
-
57
- .dr-cal-start .dp-next,
58
- .dr-cal-end .dp-prev {
59
- visibility: hidden;
60
- }
61
-
62
- .dr-cals .dp-current:hover,
63
- .dr-cals .dr-in-range:hover,
64
- .dr-cals .dr-in-range:focus,
65
- .dr-cals .dr-in-range {
66
- background: #75BCFC;
67
- color: white;
68
- border-radius: 0;
69
- }
70
-
71
- .dr-cals .dr-selected:hover,
72
- .dr-cals .dr-selected:focus,
73
- .dr-cals .dr-selected {
74
- background: #3B99FF;
75
- color: white;
76
- border-radius: 0;
77
- }
78
-
79
- @media (max-width: 616px), (max-height: 480px) {
80
- .dr-cal-end {
81
- display: none;
82
- }
83
-
84
- .dr-cal-start .dp-next {
85
- visibility: visible;
86
- }
87
- }