coer-elements 1.1.24 → 1.1.25
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/components/lib/coer-grid/coer-grid.extension.d.ts +4 -4
- package/fesm2022/coer-elements-components.mjs +9 -8
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-interfaces.mjs.map +1 -1
- package/interfaces/lib/coer-grid/grid-input-textbox.interface.d.ts +1 -1
- package/interfaces/public-api.d.ts +0 -1
- package/package.json +1 -1
- package/interfaces/lib/coer-grid/grid-input-switch-change.interface.d.ts +0 -5
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IGridButtonByRow, IGridColumn, IGridDataSource, IGridImport, IGridHeaderButton, IGridHeaderExportButton, IGridKeyupEnter, IGridSearch,
|
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<
|
71
|
-
onTextboxChange: import("@angular/core").OutputEmitterRef<
|
72
|
-
onSelectboxChange: import("@angular/core").OutputEmitterRef<
|
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>;
|
@@ -1949,7 +1949,7 @@ class CoerGridExtension extends ControlValue {
|
|
1949
1949
|
const inputConfig = columnConfig;
|
1950
1950
|
response = inputConfig.hasOwnProperty(type)
|
1951
1951
|
&& typeof inputConfig[type] === 'function'
|
1952
|
-
&& inputConfig[type]({ property, row, value }).isInput;
|
1952
|
+
&& inputConfig[type]({ indexRow: data.indexRow, property, row, value }).isInput;
|
1953
1953
|
}
|
1954
1954
|
else
|
1955
1955
|
switch (type) {
|
@@ -1958,7 +1958,7 @@ class CoerGridExtension extends ControlValue {
|
|
1958
1958
|
response = columnConfig.typeNumber;
|
1959
1959
|
}
|
1960
1960
|
else if (typeof columnConfig.typeNumber === 'function') {
|
1961
|
-
response = (data === null) ? false : columnConfig.typeNumber({ indexRow:
|
1961
|
+
response = (data === null) ? false : columnConfig.typeNumber({ indexRow: data.indexRow, property, row, value });
|
1962
1962
|
}
|
1963
1963
|
break;
|
1964
1964
|
}
|
@@ -1969,7 +1969,7 @@ class CoerGridExtension extends ControlValue {
|
|
1969
1969
|
response = columnConfig.typeDate;
|
1970
1970
|
}
|
1971
1971
|
else if (typeof columnConfig.typeDate === 'function') {
|
1972
|
-
response = (data === null) ? false : columnConfig.typeDate({ indexRow:
|
1972
|
+
response = (data === null) ? false : columnConfig.typeDate({ indexRow: data.indexRow, property, row, value });
|
1973
1973
|
}
|
1974
1974
|
break;
|
1975
1975
|
}
|
@@ -1980,7 +1980,7 @@ class CoerGridExtension extends ControlValue {
|
|
1980
1980
|
response = columnConfig.typeDateTime;
|
1981
1981
|
}
|
1982
1982
|
else if (typeof columnConfig.typeDateTime === 'function') {
|
1983
|
-
response = (data === null) ? false : columnConfig.typeDateTime({ indexRow:
|
1983
|
+
response = (data === null) ? false : columnConfig.typeDateTime({ indexRow: data.indexRow, property, row, value });
|
1984
1984
|
}
|
1985
1985
|
break;
|
1986
1986
|
}
|
@@ -1992,7 +1992,7 @@ class CoerGridExtension extends ControlValue {
|
|
1992
1992
|
response = columnConfig.toLocalZone;
|
1993
1993
|
}
|
1994
1994
|
else if (typeof columnConfig.toLocalZone === 'function') {
|
1995
|
-
response = (data === null) ? true : columnConfig.toLocalZone({ indexRow:
|
1995
|
+
response = (data === null) ? true : columnConfig.toLocalZone({ indexRow: data.indexRow, property, row, value });
|
1996
1996
|
}
|
1997
1997
|
break;
|
1998
1998
|
}
|
@@ -2016,6 +2016,7 @@ class CoerGridExtension extends ControlValue {
|
|
2016
2016
|
}
|
2017
2017
|
else if (typeof columnConfig[color] === 'function') {
|
2018
2018
|
response = columnConfig[color]({
|
2019
|
+
indexRow: data.indexRow,
|
2019
2020
|
property,
|
2020
2021
|
row: Tools.BreakReference(data),
|
2021
2022
|
value: data[property]
|
@@ -2042,7 +2043,7 @@ class CoerGridExtension extends ControlValue {
|
|
2042
2043
|
return inputConfig[attribute];
|
2043
2044
|
}
|
2044
2045
|
else if (typeof inputConfig[attribute] === 'function') {
|
2045
|
-
return inputConfig[attribute]({ property, row, value }) || '';
|
2046
|
+
return inputConfig[attribute]({ indexRow: data.indexRow, property, row, value }) || '';
|
2046
2047
|
}
|
2047
2048
|
}
|
2048
2049
|
}
|
@@ -2051,7 +2052,7 @@ class CoerGridExtension extends ControlValue {
|
|
2051
2052
|
else if (['coerTextbox', 'coerNumberbox', 'coerSelectbox', 'coerSwitch'].includes(type)) {
|
2052
2053
|
const inputConfig = columnConfig;
|
2053
2054
|
if (inputConfig.hasOwnProperty(type) && typeof inputConfig[type] === 'function') {
|
2054
|
-
return inputConfig[type]({ property, row, value })[attribute] || null;
|
2055
|
+
return inputConfig[type]({ indexRow: data.indexRow, property, row, value })[attribute] || null;
|
2055
2056
|
}
|
2056
2057
|
}
|
2057
2058
|
}
|
@@ -2070,7 +2071,7 @@ class CoerGridExtension extends ControlValue {
|
|
2070
2071
|
response = buttonByRow[property];
|
2071
2072
|
}
|
2072
2073
|
else if (typeof buttonByRow[property] === 'function') {
|
2073
|
-
response = buttonByRow[property]({ property, row, value: null });
|
2074
|
+
response = buttonByRow[property]({ indexRow: data.indexRow, property, row, value: null });
|
2074
2075
|
}
|
2075
2076
|
}
|
2076
2077
|
return response ? (this._value && this._value.length > 0) : false;
|