zet-lib 1.0.22 → 1.0.23

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
@@ -371,7 +371,7 @@ Form.field = (obj) => {
371
371
  }
372
372
  let btnAdd = '';
373
373
  if (!obj.isAddButton && !obj.viewOnly) {
374
- btnAdd = `<th><button type="button" class="btn" title="Add" id="add${obj.id}"><img src="/assets/icons/plus.svg" class="icons-bg-black" ></button></th>`;
374
+ btnAdd = `<th><img id="add${obj.id}" src="/assets/icons/plus.svg" class="icons-bg-black boxy-small" ></th>`;
375
375
  }
376
376
  obj.btnAdd = btnAdd;
377
377
  obj.html = html;
@@ -557,12 +557,12 @@ Form.breadcrumbImport = (routeName) => {
557
557
 
558
558
  Form.breadcrumbApproval = (routeName, id) => {
559
559
  return Form.breadcrumbs( [
560
- {text: LANGUAGE['home'], href: "/dashboard"},
561
- {text: LANGUAGE['grid_list'],href: "/" + routeName},
562
- {text: LANGUAGE['update'], href: '/' + routeName + '/update/' + id},
563
- {text: LANGUAGE['create'],href: '/' + routeName + '/create'},
564
- {text: "Approval", active: true}
565
- ]);
560
+ {text: LANGUAGE['home'], href: "/dashboard"},
561
+ {text: LANGUAGE['grid_list'],href: "/" + routeName},
562
+ {text: LANGUAGE['update'], href: '/' + routeName + '/update/' + id},
563
+ {text: LANGUAGE['create'],href: '/' + routeName + '/create'},
564
+ {text: "Approval", active: true}
565
+ ]);
566
566
  }
567
567
 
568
568
  Form.grid = (type, obj) => {
package/lib/zRoute.js CHANGED
@@ -2750,7 +2750,7 @@ zRoute.generateJS = (req, res, MYMODEL, relations, zForms = "", data = {}) => {
2750
2750
  trtd += `<td class="td_${key}_${MYMODEL.widgets[keys].table}">${cForm.field(obj)}</td>`;
2751
2751
  }
2752
2752
 
2753
- trtd += `<td style="vertical-align:top"><span class="fas fa-trash-alt ${trash}" ></span></td></tr>`;
2753
+ trtd += `<td style="vertical-align:top"><span class="icon-small icons-danger ${trash}" title="Delete"><img class="icons-bg-white griddelete icon-image" src="/assets/icons/trash-filled.svg"></span></td></tr>`;
2754
2754
  let subname = MYMODEL.table + "_" + keys;
2755
2755
  scriptForm += `$("table").on("click", ".${trash}", function () {$(this).closest('tr').remove();});`;
2756
2756
  scriptForm += Util.newLine;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"