jsxgrid 2.2.0 → 2.3.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.
- package/README.md +7 -0
- package/dist/fields/jsgrid.field.XDateTimeField.min.js +2 -2
- package/dist/fields/jsgrid.field.XRowSelectField.min.js +2 -2
- package/dist/fields/jsgrid.field.Xcheckbox.min.js +2 -2
- package/dist/fields/jsgrid.field.Xcontrol.min.js +2 -2
- package/dist/fields/jsgrid.field.XimgField.min.js +2 -2
- package/dist/fields/jsgrid.field.Xjsoneditor.min.js +2 -2
- package/dist/fields/jsgrid.field.Xnumber.min.js +2 -2
- package/dist/fields/jsgrid.field.Xselect.min.js +2 -2
- package/dist/fields/jsgrid.field.Xtext.min.js +2 -2
- package/dist/fields/jsgrid.field.Xtextarea.min.js +2 -2
- package/dist/fields/lib/jsGridSummaryPlugin.min.js +1 -1
- package/dist/fields/lib/jsgrid.popup.basic.min.js +1 -1
- package/dist/i18n/jsgrid-Ko.js +10 -2
- package/dist/i18n/jsgrid-cs.js +10 -2
- package/dist/i18n/jsgrid-de.js +10 -2
- package/dist/i18n/jsgrid-el.js +10 -2
- package/dist/i18n/jsgrid-es.js +10 -2
- package/dist/i18n/jsgrid-fa.js +10 -2
- package/dist/i18n/jsgrid-fr.js +10 -2
- package/dist/i18n/jsgrid-he.js +10 -2
- package/dist/i18n/jsgrid-it.js +10 -2
- package/dist/i18n/jsgrid-ja.js +10 -2
- package/dist/i18n/jsgrid-ka.js +10 -2
- package/dist/i18n/jsgrid-lt.js +10 -2
- package/dist/i18n/jsgrid-pl.js +10 -2
- package/dist/i18n/jsgrid-pt-br.js +10 -2
- package/dist/i18n/jsgrid-pt.js +10 -2
- package/dist/i18n/jsgrid-ru.js +10 -2
- package/dist/i18n/jsgrid-tr.js +10 -2
- package/dist/i18n/jsgrid-zh-cn.js +10 -2
- package/dist/i18n/jsgrid-zh-tw.js +10 -2
- package/dist/jsxgrid-fields.js +61 -13
- package/dist/jsxgrid-fields.min.js +2 -2
- package/dist/jsxgrid-theme.css +1 -1
- package/dist/jsxgrid-xfields.js +98 -18
- package/dist/jsxgrid-xfields.min.js +2 -2
- package/dist/jsxgrid.css +1 -1
- package/dist/jsxgrid.js +9 -2
- package/dist/jsxgrid.min.js +2 -2
- package/package.json +1 -1
- package/src/fields/jsgrid.field.XDateTimeField.js +10 -2
- package/src/fields/jsgrid.field.XRowSelectField.js +10 -2
- package/src/fields/jsgrid.field.Xcheckbox.js +10 -2
- package/src/fields/jsgrid.field.Xcontrol.js +9 -1
- package/src/fields/jsgrid.field.XimgField.js +10 -2
- package/src/fields/jsgrid.field.Xjsoneditor.js +10 -2
- package/src/fields/jsgrid.field.Xnumber.js +9 -1
- package/src/fields/jsgrid.field.Xselect.js +10 -2
- package/src/fields/jsgrid.field.Xtext.js +9 -1
- package/src/fields/jsgrid.field.Xtextarea.js +10 -2
- package/src/fields/jsgrid.field.checkbox.js +10 -2
- package/src/fields/jsgrid.field.control.js +10 -2
- package/src/fields/jsgrid.field.number.js +10 -2
- package/src/fields/jsgrid.field.select.js +10 -2
- package/src/fields/jsgrid.field.text.js +10 -2
- package/src/fields/jsgrid.field.textarea.js +10 -2
- package/src/i18n/Ko.js +10 -2
- package/src/i18n/cs.js +10 -2
- package/src/i18n/de.js +10 -2
- package/src/i18n/el.js +10 -2
- package/src/i18n/es.js +10 -2
- package/src/i18n/fa.js +10 -2
- package/src/i18n/fr.js +10 -2
- package/src/i18n/he.js +10 -2
- package/src/i18n/it.js +10 -2
- package/src/i18n/ja.js +10 -2
- package/src/i18n/ka.js +10 -2
- package/src/i18n/lt.js +10 -2
- package/src/i18n/pl.js +10 -2
- package/src/i18n/pt-br.js +10 -2
- package/src/i18n/pt.js +10 -2
- package/src/i18n/ru.js +10 -2
- package/src/i18n/tr.js +10 -2
- package/src/i18n/zh-cn.js +10 -2
- package/src/i18n/zh-tw.js +10 -2
- package/src/jsgrid.core.js +7 -0
package/src/i18n/he.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] he.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales.he = {
|
|
4
12
|
grid: {
|
|
@@ -61,4 +69,4 @@
|
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
}(jsGrid, jQuery));
|
|
72
|
+
}(window.jsGrid, window.jQuery));
|
package/src/i18n/it.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] it.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales.it = {
|
|
4
12
|
grid: {
|
|
@@ -61,5 +69,5 @@
|
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
}(jsGrid, jQuery));
|
|
72
|
+
}(window.jsGrid, window.jQuery));
|
|
65
73
|
|
package/src/i18n/ja.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] ja.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales.ja = {
|
|
4
12
|
grid: {
|
|
@@ -61,4 +69,4 @@
|
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
}(jsGrid, jQuery));
|
|
72
|
+
}(window.jsGrid, window.jQuery));
|
package/src/i18n/ka.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] ka.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales.ka = {
|
|
4
12
|
grid: {
|
|
@@ -61,4 +69,4 @@
|
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
}(jsGrid, jQuery));
|
|
72
|
+
}(window.jsGrid, window.jQuery));
|
package/src/i18n/lt.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] lt.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales.lt = {
|
|
4
12
|
grid: {
|
|
@@ -61,5 +69,5 @@
|
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
}(jsGrid, jQuery));
|
|
72
|
+
}(window.jsGrid, window.jQuery));
|
|
65
73
|
|
package/src/i18n/pl.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] pl.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales.pl = {
|
|
4
12
|
grid: {
|
|
@@ -77,4 +85,4 @@
|
|
|
77
85
|
}
|
|
78
86
|
};
|
|
79
87
|
|
|
80
|
-
}(jsGrid, jQuery));
|
|
88
|
+
}(window.jsGrid, window.jQuery));
|
package/src/i18n/pt-br.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] pt-br.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales["pt-br"] = {
|
|
4
12
|
grid: {
|
|
@@ -61,4 +69,4 @@
|
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
}(jsGrid, jQuery));
|
|
72
|
+
}(window.jsGrid, window.jQuery));
|
package/src/i18n/pt.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] pt.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales.pt = {
|
|
4
12
|
grid: {
|
|
@@ -61,4 +69,4 @@
|
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
}(jsGrid, jQuery));
|
|
72
|
+
}(window.jsGrid, window.jQuery));
|
package/src/i18n/ru.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] ru.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales.ru = {
|
|
4
12
|
grid: {
|
|
@@ -61,5 +69,5 @@
|
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
}(jsGrid, jQuery));
|
|
72
|
+
}(window.jsGrid, window.jQuery));
|
|
65
73
|
|
package/src/i18n/tr.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] tr.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales.tr = {
|
|
4
12
|
grid: {
|
|
@@ -61,5 +69,5 @@
|
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
}(jsGrid, jQuery));
|
|
72
|
+
}(window.jsGrid, window.jQuery));
|
|
65
73
|
|
package/src/i18n/zh-cn.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] zh-cn.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales["zh-cn"] = {
|
|
4
12
|
grid: {
|
|
@@ -61,4 +69,4 @@
|
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
}(jsGrid, jQuery));
|
|
72
|
+
}(window.jsGrid, window.jQuery));
|
package/src/i18n/zh-tw.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(jsGrid) {
|
|
1
|
+
(function(jsGrid) {
|
|
2
|
+
|
|
3
|
+
if (!jsGrid) {
|
|
4
|
+
if (window.console) {
|
|
5
|
+
console.error("[jsxgrid] zh-tw.js was loaded before the jsxgrid engine (jsxgrid.js) - include the engine first.");
|
|
6
|
+
}
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
jsGrid.locales["zh-tw"] = {
|
|
4
12
|
grid: {
|
|
@@ -61,4 +69,4 @@
|
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
}(jsGrid, jQuery));
|
|
72
|
+
}(window.jsGrid, window.jQuery));
|
package/src/jsgrid.core.js
CHANGED
|
@@ -271,6 +271,13 @@
|
|
|
271
271
|
var fieldsLocale = self._fieldsLocaleConfig;
|
|
272
272
|
self.fields = $.map(self.fields, function(field) {
|
|
273
273
|
if($.isPlainObject(field)) {
|
|
274
|
+
if(field.type && !jsGrid.fields[field.type] && window.console) {
|
|
275
|
+
// falls back to the plain base Field below (no filter/insert/edit
|
|
276
|
+
// templates), which otherwise fails completely silently - most
|
|
277
|
+
// often caused by the field's script loading before the engine,
|
|
278
|
+
// or before the field type it's supposed to register
|
|
279
|
+
console.warn("[jsxgrid] unknown field type \"" + field.type + "\" - falling back to the base field (no filtering/inserting/editing UI). Check that its script is loaded, and after jsxgrid.js.");
|
|
280
|
+
}
|
|
274
281
|
var fieldConstructor = (field.type && jsGrid.fields[field.type]) || jsGrid.Field;
|
|
275
282
|
var fieldLocale = fieldsLocale && field.type && fieldsLocale[field.type];
|
|
276
283
|
if(fieldLocale) {
|