zet-lib 1.3.0 → 1.3.2

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
@@ -379,7 +379,7 @@ Form.field = (obj) => {
379
379
  }
380
380
  let btnAdd = ''
381
381
  if (!obj.isAddButton && !obj.viewOnly) {
382
- btnAdd = `<th><img id="add${obj.id}" src="/assets/icons/plus.svg" class="icons-bg-white boxy-small btn-plus" ></th>`
382
+ btnAdd = `<th class="float-end"><img id="add${obj.id}" src="/assets/icons/plus.svg" class="icons-bg-white boxy-small btn-plus" ></th>`
383
383
  }
384
384
  obj.btnAdd = btnAdd
385
385
  obj.html = html
@@ -677,10 +677,18 @@
677
677
  dropdownRelations('relation_table', 'relation_name', 'relation_concat', $(this).val(), '', 'CONCAT(' + $('body').find('#relation_field').val() + ')')
678
678
  })
679
679
 
680
+ $(document).on('change', '#dragdrop_table', function () {
681
+ dropdownRelations('dragdrop_table', 'dragdrop_name', 'dragdrop_concat', $(this).val(), '', 'CONCAT(' + $('body').find('#relation_field').val() + ')')
682
+ })
683
+
680
684
  $('body').on('change', '#relation_name', function () {
681
685
  $('#relation_concat').val('CONCAT(' + $(this).val() + ')')
682
686
  })
683
687
 
688
+ $('body').on('change', '#dragdrop_name', function () {
689
+ $('#dragdrop_concat').val('CONCAT(' + $(this).val() + ')')
690
+ })
691
+
684
692
  $('body').on('change', '#typeahead_table', function () {
685
693
  dropdownRelations('typeahead_table', 'typeahead_name', 'typeahead_concat', $(this).val())
686
694
  })
@@ -882,8 +890,4 @@
882
890
  function (dt) { }
883
891
  )
884
892
  }
885
- </script>
886
- <script>
887
- //tab draggable
888
- $(function () { })
889
893
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"