jqwidgets-ng 14.1.19 → 15.0.0

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 (104) hide show
  1. package/jqwidgets/jqx-all.js +3188 -30
  2. package/jqwidgets/jqxangular.js +1 -1
  3. package/jqwidgets/jqxbarcode.js +1088 -7
  4. package/jqwidgets/jqxbargauge.js +1 -1
  5. package/jqwidgets/jqxbulletchart.js +1 -1
  6. package/jqwidgets/jqxbuttongroup.js +1 -1
  7. package/jqwidgets/jqxbuttons.js +1 -1
  8. package/jqwidgets/jqxcalendar.js +2 -2
  9. package/jqwidgets/jqxchart.annotations.js +2 -2
  10. package/jqwidgets/jqxchart.api.js +1 -1
  11. package/jqwidgets/jqxchart.core.js +1 -1
  12. package/jqwidgets/jqxchart.js +2 -2
  13. package/jqwidgets/jqxchart.rangeselector.js +1 -1
  14. package/jqwidgets/jqxchart.waterfall.js +1 -1
  15. package/jqwidgets/jqxcheckbox.js +1 -1
  16. package/jqwidgets/jqxcheckboxgroup.js +396 -0
  17. package/jqwidgets/jqxcolorpicker.js +1 -1
  18. package/jqwidgets/jqxcombobox.js +1 -1
  19. package/jqwidgets/jqxcomplexinput.js +1 -1
  20. package/jqwidgets/jqxcore.js +1 -1
  21. package/jqwidgets/jqxdata.export.js +1 -1
  22. package/jqwidgets/jqxdata.js +2 -2
  23. package/jqwidgets/jqxdatatable.js +1 -1
  24. package/jqwidgets/jqxdate.js +1 -1
  25. package/jqwidgets/jqxdatetimeinput.js +2 -2
  26. package/jqwidgets/jqxdocking.js +1 -1
  27. package/jqwidgets/jqxdockinglayout.js +1 -1
  28. package/jqwidgets/jqxdockpanel.js +1 -1
  29. package/jqwidgets/jqxdragdrop.js +1 -1
  30. package/jqwidgets/jqxdraw.js +1 -1
  31. package/jqwidgets/jqxdropdownbutton.js +1 -1
  32. package/jqwidgets/jqxdropdownlist.js +1 -1
  33. package/jqwidgets/jqxeditor.js +1 -1
  34. package/jqwidgets/jqxexpander.js +1 -1
  35. package/jqwidgets/jqxfileupload.js +1 -1
  36. package/jqwidgets/jqxform.js +1 -1
  37. package/jqwidgets/jqxformattedinput.js +1 -1
  38. package/jqwidgets/jqxgauge.js +1 -1
  39. package/jqwidgets/jqxgrid.aggregates.js +1 -1
  40. package/jqwidgets/jqxgrid.chart.js +89 -84
  41. package/jqwidgets/jqxgrid.columnsreorder.js +1 -1
  42. package/jqwidgets/jqxgrid.columnsresize.js +1 -1
  43. package/jqwidgets/jqxgrid.edit.js +1 -1
  44. package/jqwidgets/jqxgrid.export.js +2 -2
  45. package/jqwidgets/jqxgrid.filter.js +2 -2
  46. package/jqwidgets/jqxgrid.grouping.js +2 -2
  47. package/jqwidgets/jqxgrid.js +2 -2
  48. package/jqwidgets/jqxgrid.pager.js +1 -1
  49. package/jqwidgets/jqxgrid.selection.js +1 -1
  50. package/jqwidgets/jqxgrid.sort.js +1 -1
  51. package/jqwidgets/jqxgrid.storage.js +1 -1
  52. package/jqwidgets/jqxheatmap.js +1 -1
  53. package/jqwidgets/jqxinput.js +1 -1
  54. package/jqwidgets/jqxkanban.js +1 -1
  55. package/jqwidgets/jqxknob.js +1 -1
  56. package/jqwidgets/jqxknockout.js +1 -1
  57. package/jqwidgets/jqxlayout.js +1 -1
  58. package/jqwidgets/jqxlistbox.js +2 -2
  59. package/jqwidgets/jqxlistmenu.js +1 -1
  60. package/jqwidgets/jqxloader.js +1 -1
  61. package/jqwidgets/jqxmaskedinput.js +2 -2
  62. package/jqwidgets/jqxmenu.js +1 -1
  63. package/jqwidgets/jqxnavbar.js +1 -1
  64. package/jqwidgets/jqxnavigationbar.js +1 -1
  65. package/jqwidgets/jqxnotification.js +1 -1
  66. package/jqwidgets/jqxnumberinput.js +2 -2
  67. package/jqwidgets/jqxpanel.js +1 -1
  68. package/jqwidgets/jqxpasswordinput.js +1 -1
  69. package/jqwidgets/jqxpivot.js +1 -1
  70. package/jqwidgets/jqxpivotdesigner.js +1 -1
  71. package/jqwidgets/jqxpivotgrid.js +1 -1
  72. package/jqwidgets/jqxpopover.js +1 -1
  73. package/jqwidgets/jqxprogressbar.js +1 -1
  74. package/jqwidgets/jqxqrcode.js +1318 -7
  75. package/jqwidgets/jqxradiobutton.js +2 -2
  76. package/jqwidgets/jqxradiobuttongroup.js +384 -0
  77. package/jqwidgets/jqxrangeselector.js +1 -1
  78. package/jqwidgets/jqxrating.js +1 -1
  79. package/jqwidgets/jqxresponsivepanel.js +1 -1
  80. package/jqwidgets/jqxribbon.js +1 -1
  81. package/jqwidgets/jqxscheduler.api.js +2 -2
  82. package/jqwidgets/jqxscheduler.js +1 -1
  83. package/jqwidgets/jqxscrollbar.js +1 -1
  84. package/jqwidgets/jqxscrollview.js +1 -1
  85. package/jqwidgets/jqxslider.js +1 -1
  86. package/jqwidgets/jqxsortable.js +1 -1
  87. package/jqwidgets/jqxsplitlayout.js +6 -2445
  88. package/jqwidgets/jqxsplitter.js +1 -1
  89. package/jqwidgets/jqxswitchbutton.js +1 -1
  90. package/jqwidgets/jqxtabs.js +1 -1
  91. package/jqwidgets/jqxtagcloud.js +1 -1
  92. package/jqwidgets/jqxtextarea.js +1 -1
  93. package/jqwidgets/jqxtimepicker.js +1 -1
  94. package/jqwidgets/jqxtoolbar.js +1 -1
  95. package/jqwidgets/jqxtooltip.js +1 -1
  96. package/jqwidgets/jqxtouch.js +1 -1
  97. package/jqwidgets/jqxtree.js +1 -1
  98. package/jqwidgets/jqxtreegrid.js +1 -1
  99. package/jqwidgets/jqxtreemap.js +1 -1
  100. package/jqwidgets/jqxvalidator.js +1 -1
  101. package/jqwidgets/jqxwindow.js +1 -1
  102. package/jqwidgets/styles/jqx.base.css +123 -109
  103. package/jqwidgets/styles/jqx.light.css +6 -13
  104. package/package.json +6 -3
@@ -0,0 +1,396 @@
1
+ /*
2
+ jQWidgets v15.0.0 (2022-Nov)
3
+ Copyright (c) 2011-2022 jQWidgets.
4
+ License: https://jqwidgets.com/license/
5
+ */
6
+ /* eslint-disable */
7
+
8
+ /* tslint:disable */
9
+ /* eslint-disable */
10
+ (function ($) {
11
+
12
+ $.jqx.jqxWidget("jqxCheckBoxGroup", "", {});
13
+
14
+ $.extend($.jqx._jqxCheckBoxGroup.prototype, {
15
+ defineInstance: function () {
16
+ var settings = {
17
+ layout: 'vertical', // possible values - horizontal and vertical
18
+ labelPosition: 'after', // possible values - before and after
19
+ items: [],
20
+ value: '',
21
+ disabled: false,
22
+ change: null,
23
+ rtl: false
24
+ };
25
+ if (this === $.jqx._jqxCheckBoxGroup.prototype) {
26
+ return settings;
27
+ }
28
+ $.extend(true, this, settings);
29
+ return settings;
30
+ },
31
+
32
+ createInstance: function (args) {
33
+ var that = this;
34
+ that.render();
35
+ },
36
+
37
+ enableAt: function (index) {
38
+ var that = this;
39
+ if (that.groupItems[index]) {
40
+ that.groupItems[index].classList.remove('jqx-fill-state-disabled');
41
+ that.dataItems[index].enabled = true;
42
+ }
43
+ },
44
+
45
+ disableAt: function (index) {
46
+ var that = this;
47
+
48
+ if (that.groupItems[index]) {
49
+ that.groupItems[index].classList.add('jqx-fill-state-disabled');
50
+ that.dataItems[index].enabled = false;
51
+ }
52
+ },
53
+
54
+ getValue: function () {
55
+ var that = this;
56
+
57
+ return this.value;
58
+ },
59
+
60
+ checkAll: function () {
61
+ var that = this;
62
+
63
+ if (!that.checkboxes) {
64
+ return;
65
+ }
66
+
67
+ for (var i = 0; i < that.checkboxes.length; i++) {
68
+ that.checkAt(i);
69
+ }
70
+ },
71
+
72
+ uncheckAll: function () {
73
+ var that = this;
74
+
75
+ if (!that.checkboxes) {
76
+ return;
77
+ }
78
+
79
+ for (var i = 0; i < that.checkboxes.length; i++) {
80
+ this.checkboxes[i].uncheck();
81
+ }
82
+ },
83
+
84
+ checkValue: function (value) {
85
+ var that = this;
86
+
87
+ if (!that.checkboxes) {
88
+ return;
89
+ }
90
+
91
+ for (var i = 0; i < that.dataItems.length; i++) {
92
+ if (this.dataItems[i].value === value) {
93
+ that.checkAt(i);
94
+ }
95
+ }
96
+ },
97
+
98
+ uncheckValue: function (value) {
99
+ var that = this;
100
+
101
+ if (!that.checkboxes) {
102
+ return;
103
+ }
104
+
105
+ for (var i = 0; i < that.dataItems.length; i++) {
106
+ if (this.dataItems[i].value === value) {
107
+ that.uncheckAt(i);
108
+ }
109
+ }
110
+ },
111
+
112
+ checkAt: function (index) {
113
+ var that = this;
114
+
115
+ if (!that.checkboxes) {
116
+ return;
117
+ }
118
+
119
+ if (that.checkboxes[index]) {
120
+ that.checkboxes[index].check();
121
+ }
122
+ },
123
+
124
+ uncheckAt: function (index) {
125
+ var that = this;
126
+
127
+ if (!that.checkboxes) {
128
+ return;
129
+ }
130
+
131
+ if (that.checkboxes[index]) {
132
+ that.checkboxes[index].uncheck();
133
+ }
134
+ },
135
+
136
+ getValueAt: function (index) {
137
+ var that = this;
138
+
139
+ if (!that.dataItems) {
140
+ return null
141
+ }
142
+
143
+ if (that.dataItems[index]) {
144
+ return that.dataItems[index].value;
145
+ }
146
+
147
+ return null;
148
+ },
149
+
150
+ enable: function () {
151
+ var that = this;
152
+
153
+ that.host.removeClass('jqx-fill-state-disabled');
154
+ for (var i = 0; i < that.checkboxes.length; i++) {
155
+ that.checkboxes[i].enable();
156
+ }
157
+ that.disabled = false;
158
+ },
159
+
160
+ disable: function () {
161
+ var that = this;
162
+
163
+ that.host.addClass('jqx-fill-state-disabled');
164
+ for (var i = 0; i < that.checkboxes.length; i++) {
165
+ that.checkboxes[i].disable();
166
+ }
167
+ that.disabled = true;
168
+ },
169
+
170
+ render: function () {
171
+ this.init = true;
172
+ var that = this;
173
+ this.setSize();
174
+ this.propertyChangeMap['width'] = function (instance, key, oldVal, value) {
175
+ me.setSize();
176
+ };
177
+
178
+ this.propertyChangeMap['height'] = function (instance, key, oldVal, value) {
179
+ me.setSize();
180
+ };
181
+
182
+ if (!this.width) this.host.css('overflow-x', 'visible');
183
+ if (!this.height) this.host.css('overflow-y', 'visible');
184
+
185
+ if (this.disabled) {
186
+ this.disable();
187
+ }
188
+
189
+ var items = '<div layout="' + that.layout + '" label-position="' + that.labelPosition + '" class="jqx-container">';
190
+ var dataItems = [];
191
+ for (var i = 0; i < that.items.length; i++) {
192
+ var item = that.items[i];
193
+
194
+ if (typeof item === 'string') {
195
+ item = {
196
+ label: item,
197
+ value: item,
198
+ cssClass: '',
199
+ enabled: true
200
+ }
201
+ }
202
+
203
+ if (item.enabled === undefined) {
204
+ item.enabled = true;
205
+ }
206
+
207
+ if (item.cssClass === undefined) {
208
+ item.cssClass = '';
209
+ }
210
+
211
+ if (item.label === undefined) {
212
+ item.label = '' + (1 + i);
213
+ }
214
+
215
+ if (item.value === undefined) {
216
+ item.value = item.label;
217
+ }
218
+
219
+ dataItems.push(item);
220
+ var cssClass = item.cssClass || '';
221
+ var label = item.label;
222
+ if (item.encoded) {
223
+ label = that.escapeHTML(label);
224
+ }
225
+ var disabledClass = item.enabled === false ? 'jqx-fill-state-disabled' : '';
226
+ var htmlItem = '<div value=' + item.value + 'class="jqx-checkbox-group-item ' + cssClass + ' ' + disabledClass + '"><label class="jqx-checkbox-label"> ' + label + '</label><span checkmark class="jqx-checkbox-group-item-check"></span></div>';
227
+ items += htmlItem;
228
+ }
229
+
230
+ that.dataItems = dataItems;
231
+ items += '</div>';
232
+ that.element.innerHTML = items;
233
+ var labels = [...that.element.querySelectorAll('label')];
234
+ var checkmarks = [...that.element.querySelectorAll('[checkmark]')];
235
+ var checkboxes = [];
236
+ checkmarks.forEach((checkmark, index) => {
237
+ $(checkmark).jqxCheckBox({ rtl: that.rtl, disabled: that.dataItems[index].enabled === false, theme: that.theme, checked: that.value.includes(that.dataItems[index].value) });
238
+
239
+ $(checkmark).on('change', function () {
240
+ if (that.change && that.dataItems[index] && that.dataItems[index].enabled !== false && that.disabled === false) {
241
+ var itemData = JSON.parse(JSON.stringify(that.dataItems[index]));
242
+ that.value = [];
243
+ for (var i = 0; i < that.checkboxes.length; i++) {
244
+ if (that.checkboxes[i].checked) {
245
+ that.value.push(that.dataItems[i].value);
246
+ }
247
+ }
248
+ itemData.checked = that.value.includes(itemData.value);
249
+
250
+ that.change(itemData);
251
+ }
252
+ });
253
+ checkboxes.push($(checkmark).jqxCheckBox('getInstance'));
254
+ });
255
+
256
+ labels.forEach((label, index) => {
257
+ label.onclick = () => {
258
+ checkboxes[index].toggle();
259
+ }
260
+ });
261
+
262
+ that.groupItems = that.element.querySelectorAll('.jqx-checkbox-group-item');
263
+ that.checkboxes = checkboxes;
264
+ that.host.addClass(that.toThemeProperty('jqx-widget jqx-checkbox-group'));
265
+ },
266
+
267
+ escapeHTML: function (value) {
268
+ var entityMap = {
269
+ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', '\'': '&#39;', '/': '&#x2F;', '`': '&#x60;', '=': '&#x3D;'
270
+ };
271
+
272
+ return String(value).replace(/[&<>"'`=\/]/g, function (s) { return entityMap[s] });
273
+ },
274
+
275
+ refresh: function (initialRefresh) {
276
+ if (!initialRefresh) {
277
+ this.setSize();
278
+ this._render();
279
+ }
280
+ },
281
+
282
+ resize: function (width, height) {
283
+ this.width = width;
284
+ this.height = height;
285
+ this.refresh();
286
+ },
287
+
288
+ setSize: function () {
289
+ if (this.width != null && this.width.toString().indexOf("px") != -1) {
290
+ this.host.width(this.width);
291
+ }
292
+ else if (this.width != undefined && !isNaN(this.width)) {
293
+ this.host.width(this.width);
294
+ }
295
+ else if (this.width != null && this.width.toString().indexOf("%") != -1) {
296
+ this.element.style.width = this.width;
297
+ }
298
+
299
+ if (this.height != null && this.height.toString().indexOf("px") != -1) {
300
+ this.host.height(this.height);
301
+ }
302
+ else if (this.height != undefined && !isNaN(this.height)) {
303
+ this.host.height(this.height);
304
+ }
305
+ else if (this.height != null && this.height.toString().indexOf("%") != -1) {
306
+ this.element.style.height = this.height;
307
+ }
308
+ },
309
+
310
+
311
+ val: function (value) {
312
+ if (arguments.length == 0 || (value != null && typeof (value) == "object")) {
313
+ return this.value;
314
+ }
315
+
316
+ this.value = value;
317
+
318
+ if (typeof value == "string") {
319
+ this.uncheckAll();
320
+ if (that.dataItems) {
321
+ for (var i = 0; i < this.dataItems.length; i++) {
322
+ if (this.dataItems[i].value === itemValue) {
323
+ this.checkAt(i);
324
+ }
325
+ }
326
+ }
327
+ }
328
+ else if (Array.isArray(value)) {
329
+ this.uncheckAll();
330
+ value.forEach((itemValue) => {
331
+ if (that.dataItems) {
332
+ for (var i = 0; i < this.dataItems.length; i++) {
333
+ if (this.dataItems[i].value === itemValue) {
334
+ this.checkAt(i);
335
+ }
336
+ }
337
+ }
338
+ });
339
+ }
340
+ return this.value;
341
+ },
342
+
343
+ destroy: function () {
344
+ this.host.remove();
345
+ },
346
+
347
+ propertiesChangedHandler: function (object, key, value) {
348
+ if (value.width && value.height && Object.keys(value).length == 2) {
349
+ object.setSize();
350
+ }
351
+ },
352
+
353
+ propertyChangedHandler: function (object, key, oldvalue, value) {
354
+ if (this.isInitialized == undefined || this.isInitialized == false)
355
+ return;
356
+
357
+ if (object.batchUpdate && object.batchUpdate.width && object.batchUpdate.height && Object.keys(object.batchUpdate).length == 2) {
358
+ return;
359
+ }
360
+
361
+ if (key == "rtl") {
362
+ for (var i = 0; i < this.checkboxes.length; i++) {
363
+ this.checkboxes[i].host.jqxCheckBox({ rtl: value });
364
+ }
365
+ }
366
+
367
+ if (key == 'theme') {
368
+ $.jqx.utilities.setTheme(oldvalue, value, object.host);
369
+ for (var i = 0; i < this.checkboxes.length; i++) {
370
+ this.checkboxes[i].host.jqxCheckBox({ theme: value });
371
+ }
372
+ }
373
+
374
+ if (key === "layout" || key === "labelPosition" || key === "items") {
375
+ this.render();
376
+ }
377
+
378
+ if (key == 'value') {
379
+ this.uncheckAll();
380
+ for (var i = 0; i < this.dataItems.length; i++) {
381
+ if (value.includes(this.dataItems[i].value)) {
382
+ this.checkAt(i);
383
+ }
384
+ }
385
+ }
386
+
387
+ if (key == 'disabled') {
388
+ value ? this.disable() : this.enable();
389
+ }
390
+ }
391
+ });
392
+ })(jqxBaseFramework);
393
+
394
+
395
+
396
+
@@ -1,5 +1,5 @@
1
1
  /*
2
- jQWidgets v14.0.0 (2022-May)
2
+ jQWidgets v15.0.0 (2022-Nov)
3
3
  Copyright (c) 2011-2022 jQWidgets.
4
4
  License: https://jqwidgets.com/license/
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- jQWidgets v14.0.0 (2022-May)
2
+ jQWidgets v15.0.0 (2022-Nov)
3
3
  Copyright (c) 2011-2022 jQWidgets.
4
4
  License: https://jqwidgets.com/license/
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- jQWidgets v14.0.0 (2022-May)
2
+ jQWidgets v15.0.0 (2022-Nov)
3
3
  Copyright (c) 2011-2022 jQWidgets.
4
4
  License: https://jqwidgets.com/license/
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- jQWidgets v14.0.0 (2022-May)
2
+ jQWidgets v15.0.0 (2022-Nov)
3
3
  Copyright (c) 2011-2022 jQWidgets.
4
4
  License: https://jqwidgets.com/license/
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- jQWidgets v14.0.0 (2022-May)
2
+ jQWidgets v15.0.0 (2022-Nov)
3
3
  Copyright (c) 2011-2022 jQWidgets.
4
4
  License: https://jqwidgets.com/license/
5
5
  */