Commit 83c634ac authored by Sergey Antonovich's avatar Sergey Antonovich 🇯🇵

Update jSynergy.js HOT FIX (1.0.10)

parent 0bd2f3bb
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
* Docs: `http://gitlab.lan.arta.kz/community/synergy-components/blob/master/interpreter/jSynergyDocs.md` * Docs: `http://gitlab.lan.arta.kz/community/synergy-components/blob/master/interpreter/jSynergyDocs.md`
* *
* Belongs to `TOO Arta Software` * Belongs to `TOO Arta Software`
* Last modified: 08.03.2022 * Last modified: 10.07.2024
* Contributes users: none * Contributes users: none
* Version: 1.0.9 * Version: 1.0.10
* *
* By yandexphp * By yandexphp
*/ */
...@@ -926,10 +926,12 @@ function __classSynergy() { ...@@ -926,10 +926,12 @@ function __classSynergy() {
*/ */
getPropsByComp: function (componentId, tableId) { getPropsByComp: function (componentId, tableId) {
if ( if (
tableId && componentId && __CLIENT__.isExistsComp(tableId) || !__FORM_EXT__ ||
componentId && __CLIENT__.isExistsComp(componentId) (!tableId && !componentId) ||
(componentId && !tableId && !__CLIENT__.isExistsComp(componentId)) ||
(componentId && tableId && !__CLIENT__.isExistsComp(tableId))
) { ) {
return __CLIENT__; return null;
} }
let data = (__FORM_EXT__.properties || []); let data = (__FORM_EXT__.properties || []);
...@@ -1090,13 +1092,29 @@ function __classSynergy() { ...@@ -1090,13 +1092,29 @@ function __classSynergy() {
* @param {String} tableID Идентификатор (id) таблицы * @param {String} tableID Идентификатор (id) таблицы
*/ */
clearTable: function (tableID) { clearTable: function (tableID) {
if (tableID) { if (tableID && __CLIENT__.isExistsComp(tableID)) {
let isCleared = false;
__DATA__.forEach(function (item) { __DATA__.forEach(function (item) {
if (item.id === tableID) { if (item.id === tableID) {
isCleared = true;
item.data = []; item.data = [];
return; return;
} }
}); });
if(!isCleared) {
let table = __CLIENT__.getPropsByComp(tableID)
if(table && table.config && table.config.appendRows) {
isCleared = true;
__CLIENT__.addAsfData({
id: table.id,
type: 'appendable_table',
data: []
});
}
}
} }
return __CLIENT__; return __CLIENT__;
...@@ -1500,9 +1518,9 @@ function __classSynergy() { ...@@ -1500,9 +1518,9 @@ function __classSynergy() {
this.about = { this.about = {
name: 'jSynergy', name: 'jSynergy',
type: 'Library', type: 'Library',
version: '1.0.9 Release', version: '1.0.10 Release',
created: '17.10.2018', created: '17.10.2018',
update: '08.03.2022', update: '10.07.2024',
company: 'Arta Software', company: 'Arta Software',
platform_versions: { platform_versions: {
'3.12': '[Not support]', '3.12': '[Not support]',
...@@ -1510,6 +1528,7 @@ function __classSynergy() { ...@@ -1510,6 +1528,7 @@ function __classSynergy() {
'3.15': '[Not support] - not verified', '3.15': '[Not support] - not verified',
'4.0': true, '4.0': true,
'4.1': true, '4.1': true,
'5.0': true
}, },
git: 'https://gitlab.lan.arta.kz/community/synergy-components/-/blob/master/interpreter/jSynergyDocs.md', git: 'https://gitlab.lan.arta.kz/community/synergy-components/-/blob/master/interpreter/jSynergyDocs.md',
contributes: {}, contributes: {},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment