cronapp-lib-js 2.8.0 → 2.8.4

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.
@@ -24,6 +24,8 @@
24
24
  //FIX_023 - CRONAPP-2241 - Falha ao colocar sumário tipo COUNT em um campo tipo DATA numa grade
25
25
  //FIX_024 - CRONAPP-2406 - Adicionar opções de segurança na Grade
26
26
  //FIX_025 - CRONAPP-2964 [Câmara] Número 00 não aparece na grade
27
+ //FIX_026 - CRONAPP-4565 Checkbox acionado ao clicar em botão customizado
28
+ //FIX_027 - CRONAPP-4621 Permitir validação reativa
27
29
 
28
30
  /**
29
31
  * Kendo UI v2019.1.220 (http://www.telerik.com/kendo-ui)
@@ -24141,7 +24143,12 @@
24141
24143
  validateInput: function (input) {
24142
24144
  input = $(input);
24143
24145
  this._isValidated = true;
24144
- var that = this, template = that._errorTemplate, result = that._checkValidity(input), valid = result.valid, className = '.' + INVALIDMSG, fieldName = input.attr(NAME) || '', lbl = that._findMessageContainer(fieldName).add(input.next(className).filter(function () {
24146
+ //BEGIN_FIX_027
24147
+ // fieldName = input.attr(NAME) || ''
24148
+ // passou para
24149
+ // fieldName = input.attr(NAME) || input.attr('id')
24150
+ //END_FIX_027
24151
+ var that = this, template = that._errorTemplate, result = that._checkValidity(input), valid = result.valid, className = '.' + INVALIDMSG, fieldName = input.attr(NAME) || input.attr('id'), lbl = that._findMessageContainer(fieldName).add(input.next(className).filter(function () {
24145
24152
  var element = $(this);
24146
24153
  if (element.filter('[' + kendo.attr('for') + ']').length) {
24147
24154
  return element.attr(kendo.attr('for')) === fieldName;
@@ -65509,6 +65516,9 @@
65509
65516
  },
65510
65517
  select: function (items) {
65511
65518
  var that = this, selectable = that.selectable, selectableoptions = kendo.ui.Selectable.parseOptions(this.options.selectable), cell = selectableoptions.cell;
65519
+ //BEGIN FIX_026
65520
+ let canFireCheckbox = items && ((items.prevObject && items.prevObject[0].type === 'checkbox') || items.length > 1);
65521
+ //END FIX_026
65512
65522
  items = that.table.add(that.lockedTable).find(items);
65513
65523
  if (items.length) {
65514
65524
  if (selectable && !selectable.options.multiple) {
@@ -65542,7 +65552,13 @@
65542
65552
  //NEW FIX_015
65543
65553
  var existCheckBox = false;
65544
65554
  items.each(function () { existCheckBox = $(this).find(CHECKBOXINPUT).length; });
65555
+ //BEGIN FIX_026
65556
+ //OLD FIX_026
65557
+ /*
65545
65558
  if (existCheckBox) {
65559
+ * */
65560
+ if (existCheckBox && canFireCheckbox) {
65561
+ //END FIX_026
65546
65562
  items.each(function () {
65547
65563
  $(this).addClass(SELECTED).find(CHECKBOXINPUT).prop('checked', true).attr('aria-label', 'Deselect row').attr('aria-checked', true);
65548
65564
  });