coer-elements 1.1.24 → 1.1.26

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.
@@ -1,4 +1,4 @@
1
- import { IGridButtonByRow, IGridColumn, IGridDataSource, IGridImport, IGridHeaderButton, IGridHeaderExportButton, IGridKeyupEnter, IGridSearch, IGridInputSwitchChange, IGridInputTextbox, IGridSort, IGridCheckbox, IGridInputCheckbox, IGridHeader, IGridHeaderImportButton } from "coer-elements/interfaces";
1
+ import { IGridButtonByRow, IGridColumn, IGridDataSource, IGridImport, IGridHeaderButton, IGridHeaderExportButton, IGridKeyupEnter, IGridSearch, IGridInput, IGridSort, IGridCheckbox, IGridInputCheckbox, IGridHeader, IGridHeaderImportButton } from "coer-elements/interfaces";
2
2
  import { AfterViewInit, ElementRef } from "@angular/core";
3
3
  import { CoerCheckbox } from "../../lib/coer-checkbox/coer-checkbox.component";
4
4
  import { CoerNumberBox } from "../../lib/coer-numberbox/coer-numberbox.component";
@@ -67,9 +67,9 @@ export declare class CoerGridExtension<T> extends ControlValue implements AfterV
67
67
  onClickGoRow: import("@angular/core").OutputEmitterRef<T>;
68
68
  onKeyupEnter: import("@angular/core").OutputEmitterRef<IGridKeyupEnter>;
69
69
  onKeyupEnterLast: import("@angular/core").OutputEmitterRef<void>;
70
- onSwitchChange: import("@angular/core").OutputEmitterRef<IGridInputSwitchChange<T>>;
71
- onTextboxChange: import("@angular/core").OutputEmitterRef<IGridInputTextbox<T>>;
72
- onSelectboxChange: import("@angular/core").OutputEmitterRef<IGridInputTextbox<T>>;
70
+ onSwitchChange: import("@angular/core").OutputEmitterRef<IGridInput<T>>;
71
+ onTextboxChange: import("@angular/core").OutputEmitterRef<IGridInput<T>>;
72
+ onSelectboxChange: import("@angular/core").OutputEmitterRef<IGridInput<T>>;
73
73
  onCheckboxChange: import("@angular/core").OutputEmitterRef<IGridInputCheckbox<T>>;
74
74
  protected _isDisabled: import("@angular/core").Signal<boolean>;
75
75
  protected _isGrouped: import("@angular/core").Signal<boolean>;
@@ -1657,7 +1657,6 @@ class CoerGridExtension extends ControlValue {
1657
1657
  this.value_signal = signal([]);
1658
1658
  this._gridSearch = signal('');
1659
1659
  this._isLoading = signal(true);
1660
- //protected _isLoadingS = signal<boolean>(false);
1661
1660
  this._isLoadingMessage = true;
1662
1661
  this._id = Tools.GetGuid('coer-grid');
1663
1662
  this._expandedGroups = [];
@@ -1949,7 +1948,7 @@ class CoerGridExtension extends ControlValue {
1949
1948
  const inputConfig = columnConfig;
1950
1949
  response = inputConfig.hasOwnProperty(type)
1951
1950
  && typeof inputConfig[type] === 'function'
1952
- && inputConfig[type]({ property, row, value }).isInput;
1951
+ && inputConfig[type]({ indexRow: data.indexRow, property, row, value }).isInput;
1953
1952
  }
1954
1953
  else
1955
1954
  switch (type) {
@@ -1958,7 +1957,7 @@ class CoerGridExtension extends ControlValue {
1958
1957
  response = columnConfig.typeNumber;
1959
1958
  }
1960
1959
  else if (typeof columnConfig.typeNumber === 'function') {
1961
- response = (data === null) ? false : columnConfig.typeNumber({ indexRow: row.indexRow, property, row, value });
1960
+ response = (data === null) ? false : columnConfig.typeNumber({ indexRow: data.indexRow, property, row, value });
1962
1961
  }
1963
1962
  break;
1964
1963
  }
@@ -1969,7 +1968,7 @@ class CoerGridExtension extends ControlValue {
1969
1968
  response = columnConfig.typeDate;
1970
1969
  }
1971
1970
  else if (typeof columnConfig.typeDate === 'function') {
1972
- response = (data === null) ? false : columnConfig.typeDate({ indexRow: row.indexRow, property, row, value });
1971
+ response = (data === null) ? false : columnConfig.typeDate({ indexRow: data.indexRow, property, row, value });
1973
1972
  }
1974
1973
  break;
1975
1974
  }
@@ -1980,7 +1979,7 @@ class CoerGridExtension extends ControlValue {
1980
1979
  response = columnConfig.typeDateTime;
1981
1980
  }
1982
1981
  else if (typeof columnConfig.typeDateTime === 'function') {
1983
- response = (data === null) ? false : columnConfig.typeDateTime({ indexRow: row.indexRow, property, row, value });
1982
+ response = (data === null) ? false : columnConfig.typeDateTime({ indexRow: data.indexRow, property, row, value });
1984
1983
  }
1985
1984
  break;
1986
1985
  }
@@ -1992,7 +1991,7 @@ class CoerGridExtension extends ControlValue {
1992
1991
  response = columnConfig.toLocalZone;
1993
1992
  }
1994
1993
  else if (typeof columnConfig.toLocalZone === 'function') {
1995
- response = (data === null) ? true : columnConfig.toLocalZone({ indexRow: row.indexRow, property, row, value });
1994
+ response = (data === null) ? true : columnConfig.toLocalZone({ indexRow: data.indexRow, property, row, value });
1996
1995
  }
1997
1996
  break;
1998
1997
  }
@@ -2016,6 +2015,7 @@ class CoerGridExtension extends ControlValue {
2016
2015
  }
2017
2016
  else if (typeof columnConfig[color] === 'function') {
2018
2017
  response = columnConfig[color]({
2018
+ indexRow: data.indexRow,
2019
2019
  property,
2020
2020
  row: Tools.BreakReference(data),
2021
2021
  value: data[property]
@@ -2042,7 +2042,7 @@ class CoerGridExtension extends ControlValue {
2042
2042
  return inputConfig[attribute];
2043
2043
  }
2044
2044
  else if (typeof inputConfig[attribute] === 'function') {
2045
- return inputConfig[attribute]({ property, row, value }) || '';
2045
+ return inputConfig[attribute]({ indexRow: data.indexRow, property, row, value }) || '';
2046
2046
  }
2047
2047
  }
2048
2048
  }
@@ -2051,7 +2051,7 @@ class CoerGridExtension extends ControlValue {
2051
2051
  else if (['coerTextbox', 'coerNumberbox', 'coerSelectbox', 'coerSwitch'].includes(type)) {
2052
2052
  const inputConfig = columnConfig;
2053
2053
  if (inputConfig.hasOwnProperty(type) && typeof inputConfig[type] === 'function') {
2054
- return inputConfig[type]({ property, row, value })[attribute] || null;
2054
+ return inputConfig[type]({ indexRow: data.indexRow, property, row, value })[attribute] || null;
2055
2055
  }
2056
2056
  }
2057
2057
  }
@@ -2070,7 +2070,7 @@ class CoerGridExtension extends ControlValue {
2070
2070
  response = buttonByRow[property];
2071
2071
  }
2072
2072
  else if (typeof buttonByRow[property] === 'function') {
2073
- response = buttonByRow[property]({ property, row, value: null });
2073
+ response = buttonByRow[property]({ indexRow: data.indexRow, property, row, value: null });
2074
2074
  }
2075
2075
  }
2076
2076
  return response ? (this._value && this._value.length > 0) : false;
@@ -2542,7 +2542,7 @@ class CoerGrid extends CoerGridExtension {
2542
2542
  }
2543
2543
  /** */
2544
2544
  ClickCheck(id, checked, all, row = null) {
2545
- if (!this._isLoading)
2545
+ if (!this._isLoading())
2546
2546
  Tools.Sleep().then(async (_) => {
2547
2547
  this._isLoading.set(true);
2548
2548
  let element = this.coerCheckboxList().find(x => x.id() == id);