zet-lib 1.3.6 → 1.3.7

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/lib/Form.js CHANGED
@@ -62,7 +62,7 @@ Form.field = (obj) => {
62
62
  }
63
63
  }
64
64
  let type = obj.type || 'text',
65
- id = Form.addProperty('id', [obj.id]),
65
+ id = obj.isTableModule ? '' : Form.addProperty('id', [obj.id]),
66
66
  name = obj.name ? ` name="${obj.name}" ` : '',
67
67
  title = obj.title || '',
68
68
  prepend = obj.prepend || '',
@@ -13,7 +13,7 @@ langs['grid_labeling'] = 'Labeling'
13
13
  langs['grid_configure_field_labeling'] = 'Configure Field Labeling'
14
14
  langs['grid_personalize_labeling'] = 'Personalize Labeling'
15
15
  langs['grid_personalize_setting'] = 'Personalize grid settings'
16
- langs['grid_refresh'] = 'Refresh / Factory Reset'
16
+ langs['grid_refresh'] = 'Refresh / Reset Filter'
17
17
  langs.settings = 'Setting'
18
18
  langs.settings_info = 'Settings'
19
19
  langs.grid_settings = 'Settings Grid'
@@ -13,7 +13,7 @@ langs['grid_labeling'] = 'Penamaan'
13
13
  langs['grid_configure_field_labeling'] = 'Configure Field Labeling'
14
14
  langs['grid_personalize_labeling'] = 'Personalize Labeling'
15
15
  langs['grid_personalize_setting'] = 'Personalize grid settings'
16
- langs['grid_refresh'] = 'Muat Ulang / Kembali setelan pabrik'
16
+ langs['grid_refresh'] = 'Muat Ulang / Hapus filter'
17
17
  langs.settings = 'Pengaturan'
18
18
  langs.settings_info = 'Pengaturan'
19
19
  langs.grid_settings = 'Pengaturan Grid'
package/lib/zRoute.js CHANGED
@@ -2475,7 +2475,7 @@ zRoute.forms = (req, res, MYMODEL, relations, data = {}, tableRelations = {}) =>
2475
2475
  break
2476
2476
  case 'radio':
2477
2477
  obj.type = 'radio'
2478
- obj.class = '';
2478
+ obj.class = ''
2479
2479
  obj.data = relations[key]
2480
2480
  obj.array = relations[key + 'Array']
2481
2481
  break
@@ -4736,6 +4736,7 @@ zRoute.tableBody = (req, res, relations, dataObject, parentTable, fieldName, MYM
4736
4736
  myobj.class = `${parentTable}_${fieldName}_${key}`
4737
4737
  myobj.name = `${parentTable}[${fieldName}][${index}][${key}]`
4738
4738
  myobj.additional_attributes = ` data-name="${key}" data-id="${parentTable}_${fieldName}_${key}" `
4739
+ myobj.isTableModule = 1
4739
4740
  html += `<td class="td_${key}_${MYMODEL.table}">${cForm.field(myobj)}</td>`
4740
4741
  }
4741
4742
  html += `<td style="vertical-align:top"><span class="icon-small icons-danger trash_${fieldName}_${MYMODEL.table}" onclick="$(this).closest('tr').remove()" title="Delete"><img class="icons-bg-white griddelete icon-image" src="/assets/icons/trash-filled.svg"></span></td>`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"