cronapp-lib-js 2.8.8 → 2.9.1-SP.3

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.
@@ -29,7 +29,7 @@
29
29
  //FIX_028 - CRONAPP-4939 Criar componente breadcumb (Adicionado componente breadcrumb)
30
30
  //FIX_029 - CRONAPP-5473 Erro no componente Caixa de checagem
31
31
  //FIX_030 - CRONAPP-6933 Caixa de Seleção dinâmica trava e recarrega em loop quando são acessado pelas tecla Tab+seta para baixo. Componente não fica em foco quando acessado com a tecla Tab
32
-
32
+ //FIX_031 - CRONAPP-7237 Problemas ao usar a coluna "checkbox" na Grade
33
33
 
34
34
  /**
35
35
  * Kendo UI v2019.1.220 (http://www.telerik.com/kendo-ui)
@@ -67711,8 +67711,16 @@
67711
67711
 
67712
67712
  if (checked) {
67713
67713
  that.select(parentGrid.items());
67714
+ //BEGIN FIX_031
67715
+ //NEW FIX_031
67716
+ parentGrid.items().each(function() {$(this).data(SELECTED, true);});
67717
+ //END FIX_031
67714
67718
  } else {
67715
67719
  that.clearSelection();
67720
+ //BEGIN FIX_031
67721
+ //NEW FIX_031
67722
+ parentGrid.items().each(function() {$(this).data(SELECTED, false);});
67723
+ //END FIX_031
67716
67724
  }
67717
67725
 
67718
67726
  //BEGIN FIX_015
@@ -67723,10 +67731,31 @@
67723
67731
  //END FIX_015
67724
67732
  },
67725
67733
  _checkboxClick: function (e) {
67734
+ //BEGIN FIX_031
67735
+ //OLD
67736
+ /*
67726
67737
  var that = this, row = $(e.target).closest('tr'), isSelecting = !row.hasClass(SELECTED);
67738
+ */
67739
+ //NEW FIX_031
67740
+ var that = this, row = $(e.target).closest('tr');
67741
+ //END FIX_031
67727
67742
  if (that !== row.closest('.k-grid.k-widget').getKendoGrid()) {
67728
67743
  return;
67729
67744
  }
67745
+
67746
+ //BEGIN FIX_031
67747
+ //NEW FIX_031
67748
+ let $row = $(row);
67749
+ isSelecting = !$row.data(SELECTED);
67750
+ if (that.options.selectable === false) {
67751
+ $row.find('input[type=checkbox]').prop('checked',false);
67752
+ return;
67753
+ }
67754
+ else if (that.options.selectable === true) {
67755
+ that._deselectCheckRows(that.items());
67756
+ that.items().each(function() {$(this).data(SELECTED, false)});
67757
+ }
67758
+ //END FIX_031
67730
67759
 
67731
67760
  //BEGIN FIX_015
67732
67761
  //NEW FIX_015
@@ -67735,8 +67764,16 @@
67735
67764
 
67736
67765
  if (isSelecting) {
67737
67766
  that.select(row);
67767
+ //BEGIN FIX_031
67768
+ //NEW FIX_031
67769
+ $row.data(SELECTED, true);
67770
+ //END FIX_031
67738
67771
  } else {
67739
67772
  that._deselectCheckRows(row);
67773
+ //BEGIN FIX_031
67774
+ //NEW FIX_031
67775
+ $row.data(SELECTED, false);
67776
+ //END FIX_031
67740
67777
  }
67741
67778
 
67742
67779
  //BEGIN FIX_015
@@ -68194,7 +68231,16 @@
68194
68231
  if (index > -1) {
68195
68232
  html += kendo.attr('index') + '=\'' + index + '\'';
68196
68233
  }
68197
- text = th.headerTemplate ? text : kendo.template(SELECTCOLUMNHEADERTMPL)({});
68234
+ //BEGIN FIX_031
68235
+ //OLD
68236
+ /**
68237
+ text = th.headerTemplate ? text : kendo.template(SELECTCOLUMNHEADERTMPL)({});
68238
+ */
68239
+ //NEW FIX_031
68240
+ if (that.options.selectable === "multiple") {
68241
+ text = th.headerTemplate ? text : kendo.template(SELECTCOLUMNHEADERTMPL)({});
68242
+ }
68243
+ //END FIX_031
68198
68244
  html += '>' + text + '</th>';
68199
68245
  } else if (th.command) {
68200
68246
  html += '<th scope=\'col\'' + stringifyAttributes(th.headerAttributes);