Version Description
/ 16.03.2021 = * Major fix: Import fix (removed rows), * WP 5.7 Fix, * Fix for SSP, * Added SETTINGS - Preview Table Feature, * Import fix (another check of cell type - date time)
Download this release
Release Info
Developer | supsystic.com |
Plugin | Data Tables Generator by Supsystic |
Version | 1.10.6 |
Comparing to | |
See all releases |
Code changes from version 1.10.5 to 1.10.6
- app/SupsysticTables.php +1 -1
- app/assets/css/supsystic-ui.css +32 -0
- index.php +1 -1
- readme.txt +9 -1
- src/SupsysticTables/Tables/Model/Tables.php +4 -4
- src/SupsysticTables/Tables/Module.php +1 -1
- src/SupsysticTables/Tables/assets/js/tables.view.js +39 -2
- src/SupsysticTables/Tables/views/shortcode.twig +1 -1
- src/SupsysticTables/Tables/views/view.twig +2 -0
app/SupsysticTables.php
CHANGED
@@ -18,7 +18,7 @@ class SupsysticTables
|
|
18 |
|
19 |
$menuSlug = 'supsystic-tables';
|
20 |
$pluginPath = dirname(dirname(__FILE__));
|
21 |
-
$environment = new Rsc_Environment('st', '1.10.
|
22 |
|
23 |
/* Configure */
|
24 |
$environment->configure(
|
18 |
|
19 |
$menuSlug = 'supsystic-tables';
|
20 |
$pluginPath = dirname(dirname(__FILE__));
|
21 |
+
$environment = new Rsc_Environment('st', '1.10.6', $pluginPath);
|
22 |
|
23 |
/* Configure */
|
24 |
$environment->configure(
|
app/assets/css/supsystic-ui.css
CHANGED
@@ -898,3 +898,35 @@ h3.nav-tab-wrapper {
|
|
898 |
[dir="rtl"] .tables-view .subsubsub.tabs-wrapper h2 {
|
899 |
padding: 9px 0 4px 15px;
|
900 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
898 |
[dir="rtl"] .tables-view .subsubsub.tabs-wrapper h2 {
|
899 |
padding: 9px 0 4px 15px;
|
900 |
}
|
901 |
+
#loadPreviewBtn {
|
902 |
+
display:inline-block;
|
903 |
+
position:relative;
|
904 |
+
width: 49.5%;
|
905 |
+
margin-right: 1%;
|
906 |
+
float:left;
|
907 |
+
text-align:center;
|
908 |
+
padding:5px 10px;
|
909 |
+
margin-bottom:10px;
|
910 |
+
cursor:pointer;
|
911 |
+
color: #28282a !important;
|
912 |
+
border: 1px solid #000 !important;
|
913 |
+
}
|
914 |
+
#loadPreviewAutoBtn {
|
915 |
+
display:inline-block;
|
916 |
+
position:relative;
|
917 |
+
width:49.5%;
|
918 |
+
text-align:center;
|
919 |
+
padding:5px 10px;
|
920 |
+
margin-bottom:10px;
|
921 |
+
cursor:pointer;
|
922 |
+
color: #28282a !important;
|
923 |
+
border: 1px solid #000 !important;
|
924 |
+
}
|
925 |
+
#loadPreviewBtn:hover {
|
926 |
+
background: #4ae8ea !important;
|
927 |
+
border-color: #4ae8ea !important;
|
928 |
+
}
|
929 |
+
#loadPreviewAutoBtn:hover {
|
930 |
+
background: #4ae8ea !important;
|
931 |
+
border-color: #4ae8ea !important;
|
932 |
+
}
|
index.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Data Tables Generator by Supsystic
|
5 |
* Plugin URI: http://supsystic.com
|
6 |
* Description: Create and manage beautiful data tables with custom design. No HTML knowledge is required
|
7 |
-
* Version: 1.10.
|
8 |
* Author: supsystic.com
|
9 |
* Author URI: http://supsystic.com
|
10 |
* Text Domain: supsystic_tables
|
4 |
* Plugin Name: Data Tables Generator by Supsystic
|
5 |
* Plugin URI: http://supsystic.com
|
6 |
* Description: Create and manage beautiful data tables with custom design. No HTML knowledge is required
|
7 |
+
* Version: 1.10.6
|
8 |
* Author: supsystic.com
|
9 |
* Author URI: http://supsystic.com
|
10 |
* Text Domain: supsystic_tables
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: supsystic.com
|
3 |
Tags: data table, spreadsheet, table builder, charts, graphs, wordpress table plugin, excel, line chart, pie chart, visualise data
|
4 |
Tested up to: 5.7
|
5 |
-
Stable tag: 1.10.
|
6 |
|
7 |
Create data tables with charts and graphs. Custom design, navigation, searching and ordering functions. Export to PDF, CSV, Print. Excel spreadsheet. WooCommerce Integration.
|
8 |
|
@@ -215,6 +215,14 @@ Create custom order forms which increase your conversion rate!
|
|
215 |
|
216 |
== Changelog ==
|
217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
= 1.10.5 / 11.03.2021 =
|
219 |
* Fix for table-layout add option
|
220 |
* Add fixed table layout
|
2 |
Contributors: supsystic.com
|
3 |
Tags: data table, spreadsheet, table builder, charts, graphs, wordpress table plugin, excel, line chart, pie chart, visualise data
|
4 |
Tested up to: 5.7
|
5 |
+
Stable tag: 1.10.6
|
6 |
|
7 |
Create data tables with charts and graphs. Custom design, navigation, searching and ordering functions. Export to PDF, CSV, Print. Excel spreadsheet. WooCommerce Integration.
|
8 |
|
215 |
|
216 |
== Changelog ==
|
217 |
|
218 |
+
= 1.10.6 / 16.03.2021 =
|
219 |
+
* Major fix: Import fix (removed rows),
|
220 |
+
* WP 5.7 Fix,
|
221 |
+
* Fix for SSP,
|
222 |
+
* Added SETTINGS - Preview Table Feature,
|
223 |
+
* Import fix (another check of cell type - date time)
|
224 |
+
|
225 |
+
|
226 |
= 1.10.5 / 11.03.2021 =
|
227 |
* Fix for table-layout add option
|
228 |
* Add fixed table layout
|
src/SupsysticTables/Tables/Model/Tables.php
CHANGED
@@ -1457,16 +1457,16 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
|
|
1457 |
* @param int $id Table id
|
1458 |
* @param array $rows An array of the rows
|
1459 |
*/
|
1460 |
-
public function setRows($id, array $rows
|
1461 |
{
|
1462 |
if (count($rows) === 0) {
|
1463 |
throw new InvalidArgumentException('Too few rows.');
|
1464 |
}
|
1465 |
|
1466 |
try {
|
1467 |
-
if($remove) {
|
1468 |
-
|
1469 |
-
}
|
1470 |
|
1471 |
foreach ($rows as $row) {
|
1472 |
$this->addRow($id, $row);
|
1457 |
* @param int $id Table id
|
1458 |
* @param array $rows An array of the rows
|
1459 |
*/
|
1460 |
+
public function setRows($id, array $rows)
|
1461 |
{
|
1462 |
if (count($rows) === 0) {
|
1463 |
throw new InvalidArgumentException('Too few rows.');
|
1464 |
}
|
1465 |
|
1466 |
try {
|
1467 |
+
// if($remove) {
|
1468 |
+
// $this->removeRows($id);
|
1469 |
+
// }
|
1470 |
|
1471 |
foreach ($rows as $row) {
|
1472 |
$this->addRow($id, $row);
|
src/SupsysticTables/Tables/Module.php
CHANGED
@@ -736,7 +736,7 @@ class SupsysticTables_Tables_Module extends SupsysticTables_Core_BaseModule
|
|
736 |
}
|
737 |
|
738 |
if ($show_edit_link) {
|
739 |
-
wp_localize_script('tables-core', 'g_stbTblEditLink_' . $attributes['id'], base64_encode($show_edit_link));
|
740 |
}
|
741 |
}
|
742 |
|
736 |
}
|
737 |
|
738 |
if ($show_edit_link) {
|
739 |
+
wp_localize_script('tables-core', 'g_stbTblEditLink_' . $attributes['id'], (array)base64_encode($show_edit_link));
|
740 |
}
|
741 |
}
|
742 |
|
src/SupsysticTables/Tables/assets/js/tables.view.js
CHANGED
@@ -38,6 +38,20 @@ var g_stbCopyPasteColsCount = [];
|
|
38 |
jQuery('#row-tab-woocommerce').addClass('active');
|
39 |
});
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
$mainTabsContent.filter($currentTab).addClass('active');
|
42 |
$mainTabs.on('click', function (e) {
|
43 |
e.preventDefault();
|
@@ -55,7 +69,7 @@ var g_stbCopyPasteColsCount = [];
|
|
55 |
editor.render();
|
56 |
break;
|
57 |
case '#row-tab-settings':
|
58 |
-
tablesModel.saveTable('#table-preview');
|
59 |
break;
|
60 |
case '#row-tab-css':
|
61 |
cssEditor.resize();
|
@@ -1019,7 +1033,30 @@ var g_stbCopyPasteColsCount = [];
|
|
1019 |
if($this.attr('data-need-data-save') == '1') {
|
1020 |
g_stbIsDataEdited['data'] = true;
|
1021 |
}
|
1022 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1023 |
});
|
1024 |
|
1025 |
// Pro Notifications and Dialog Windows
|
38 |
jQuery('#row-tab-woocommerce').addClass('active');
|
39 |
});
|
40 |
|
41 |
+
var enablePreviewAutoloading = false;
|
42 |
+
|
43 |
+
jQuery('[href="#row-tab-settings"]').click(function(){
|
44 |
+
if (!enablePreviewAutoloading) {
|
45 |
+
jQuery('#table-preview').html('');
|
46 |
+
jQuery('#table-preview').hide();
|
47 |
+
jQuery('#loadPreviewBtn').fadeIn();
|
48 |
+
jQuery('#loadPreviewAutoBtn').fadeIn();
|
49 |
+
} else {
|
50 |
+
tablesModel.saveTable('#table-preview', 2);
|
51 |
+
jQuery('#table-preview').show();
|
52 |
+
}
|
53 |
+
});
|
54 |
+
|
55 |
$mainTabsContent.filter($currentTab).addClass('active');
|
56 |
$mainTabs.on('click', function (e) {
|
57 |
e.preventDefault();
|
69 |
editor.render();
|
70 |
break;
|
71 |
case '#row-tab-settings':
|
72 |
+
//tablesModel.saveTable('#table-preview');
|
73 |
break;
|
74 |
case '#row-tab-css':
|
75 |
cssEditor.resize();
|
1033 |
if($this.attr('data-need-data-save') == '1') {
|
1034 |
g_stbIsDataEdited['data'] = true;
|
1035 |
}
|
1036 |
+
if (!enablePreviewAutoloading) {
|
1037 |
+
jQuery('#table-preview').html('');
|
1038 |
+
jQuery('#table-preview').hide();
|
1039 |
+
jQuery('#loadPreviewBtn').fadeIn();
|
1040 |
+
jQuery('#loadPreviewAutoBtn').fadeIn();
|
1041 |
+
} else {
|
1042 |
+
tablesModel.saveTable('#table-preview', 2);
|
1043 |
+
jQuery('#table-preview').show();
|
1044 |
+
}
|
1045 |
+
});
|
1046 |
+
|
1047 |
+
jQuery('#loadPreviewBtn').click(function(){
|
1048 |
+
tablesModel.saveTable('#table-preview', 2);
|
1049 |
+
jQuery('#table-preview').show();
|
1050 |
+
jQuery('#loadPreviewBtn').fadeOut();
|
1051 |
+
jQuery('#loadPreviewAutoBtn').fadeOut();
|
1052 |
+
});
|
1053 |
+
|
1054 |
+
jQuery('#loadPreviewAutoBtn').click(function(){
|
1055 |
+
tablesModel.saveTable('#table-preview', 2);
|
1056 |
+
enablePreviewAutoloading = true;
|
1057 |
+
jQuery('#table-preview').show();
|
1058 |
+
jQuery('#loadPreviewBtn').fadeOut().remove();
|
1059 |
+
jQuery('#loadPreviewAutoBtn').fadeOut().remove();
|
1060 |
});
|
1061 |
|
1062 |
// Pro Notifications and Dialog Windows
|
src/SupsysticTables/Tables/views/shortcode.twig
CHANGED
@@ -77,7 +77,7 @@
|
|
77 |
and context.table.meta.columnsWidth[cellIndex] is defined
|
78 |
and context.table.meta.columnsWidth[cellIndex] is not empty
|
79 |
%}
|
80 |
-
{style="min-width: {{ context.table.meta.columnsWidth[cellIndex] }}%; width: {{ context.table.meta.columnsWidth[cellIndex] }}%;"#}
|
81 |
{% if context.table.settings.responsiveMode == 2 %}
|
82 |
style="min-width: {{ context.table.meta.columnsWidth[cellIndex] }}%; width: {{ context.table.meta.columnsWidth[cellIndex] }}%;"
|
83 |
{% else %}
|
77 |
and context.table.meta.columnsWidth[cellIndex] is defined
|
78 |
and context.table.meta.columnsWidth[cellIndex] is not empty
|
79 |
%}
|
80 |
+
{#style="min-width: {{ context.table.meta.columnsWidth[cellIndex] }}%; width: {{ context.table.meta.columnsWidth[cellIndex] }}%;"#}
|
81 |
{% if context.table.settings.responsiveMode == 2 %}
|
82 |
style="min-width: {{ context.table.meta.columnsWidth[cellIndex] }}%; width: {{ context.table.meta.columnsWidth[cellIndex] }}%;"
|
83 |
{% else %}
|
src/SupsysticTables/Tables/views/view.twig
CHANGED
@@ -1865,6 +1865,8 @@
|
|
1865 |
</div>
|
1866 |
<div id="preview-container">
|
1867 |
<style type="text/css" id="stb-preview-css"></style>
|
|
|
|
|
1868 |
<div id="table-preview"></div>
|
1869 |
<p class="description">
|
1870 |
<i class="fa fa-fw fa-exclamation-circle"></i>
|
1865 |
</div>
|
1866 |
<div id="preview-container">
|
1867 |
<style type="text/css" id="stb-preview-css"></style>
|
1868 |
+
<div id="loadPreviewBtn"><i class="fa fa-eye" aria-hidden="true"></i>{{' '}}{{ environment.translate('Load Preview') }}</div>
|
1869 |
+
<div id="loadPreviewAutoBtn"><i class="fa fa-check-square" aria-hidden="true"></i>{{' '}}{{ environment.translate('Enable Preview Autoloading') }}</div>
|
1870 |
<div id="table-preview"></div>
|
1871 |
<p class="description">
|
1872 |
<i class="fa fa-fw fa-exclamation-circle"></i>
|