eru-grid 0.0.31 → 0.0.32
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/fesm2022/eru-grid.mjs +72 -18
- package/fesm2022/eru-grid.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eru-grid.d.ts +16 -2
package/package.json
CHANGED
package/types/eru-grid.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ interface GridConfiguration {
|
|
|
92
92
|
tokens?: GridTokens;
|
|
93
93
|
preset?: GridPreset;
|
|
94
94
|
pivot?: PivotConfiguration;
|
|
95
|
+
pageSize?: number;
|
|
95
96
|
data?: any[];
|
|
96
97
|
columnConstraints?: {
|
|
97
98
|
global?: ColumnWidthConstraints;
|
|
@@ -153,6 +154,11 @@ interface Field {
|
|
|
153
154
|
enableDrilldown?: boolean;
|
|
154
155
|
open_status?: any[];
|
|
155
156
|
close_status?: any[];
|
|
157
|
+
color_ranges?: {
|
|
158
|
+
from: number;
|
|
159
|
+
to: number;
|
|
160
|
+
color: string;
|
|
161
|
+
}[];
|
|
156
162
|
data_length?: number;
|
|
157
163
|
start_value?: number;
|
|
158
164
|
end_value?: number;
|
|
@@ -589,6 +595,11 @@ declare class EruGridStore {
|
|
|
589
595
|
readonly selectedDesignColumn: _angular_core.Signal<string | null>;
|
|
590
596
|
private readonly _columnDesignUpdate;
|
|
591
597
|
readonly columnDesignUpdate: _angular_core.Signal<Field[] | null>;
|
|
598
|
+
private readonly _columnMetaPatch;
|
|
599
|
+
readonly columnMetaPatch: _angular_core.Signal<{
|
|
600
|
+
name: string;
|
|
601
|
+
patch: Partial<Field>;
|
|
602
|
+
} | null>;
|
|
592
603
|
readonly columns: _angular_core.Signal<Field[]>;
|
|
593
604
|
readonly groups: _angular_core.Signal<RowGroup[]>;
|
|
594
605
|
readonly rows: _angular_core.Signal<Row[]>;
|
|
@@ -625,7 +636,7 @@ declare class EruGridStore {
|
|
|
625
636
|
readonly isPivotMode: _angular_core.Signal<boolean>;
|
|
626
637
|
readonly isEditingEnabled: _angular_core.Signal<boolean>;
|
|
627
638
|
readonly displayColumns: _angular_core.Signal<Field[]>;
|
|
628
|
-
readonly displayData: _angular_core.Signal<
|
|
639
|
+
readonly displayData: _angular_core.Signal<Row[] | PivotRow[]>;
|
|
629
640
|
readonly pivotGrandTotalData: _angular_core.Signal<PivotRow[]>;
|
|
630
641
|
readonly pivotDisplayData: _angular_core.Signal<PivotRow[]>;
|
|
631
642
|
readonly tableDisplayData: _angular_core.Signal<Row[]>;
|
|
@@ -922,7 +933,7 @@ declare class EruGridService {
|
|
|
922
933
|
get pivotConfiguration(): _angular_core.Signal<PivotConfiguration | null>;
|
|
923
934
|
get pivotResult(): _angular_core.Signal<eru_grid.PivotResult | null>;
|
|
924
935
|
get displayColumns(): _angular_core.Signal<Field[]>;
|
|
925
|
-
get displayData(): _angular_core.Signal<eru_grid.
|
|
936
|
+
get displayData(): _angular_core.Signal<eru_grid.Row[] | eru_grid.PivotRow[]>;
|
|
926
937
|
get isEditingEnabled(): _angular_core.Signal<boolean>;
|
|
927
938
|
get configuration(): _angular_core.Signal<GridConfiguration>;
|
|
928
939
|
get isLoading(): _angular_core.Signal<boolean>;
|
|
@@ -1093,6 +1104,8 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
1093
1104
|
*/
|
|
1094
1105
|
private readonly ROWS_PER_PAGE;
|
|
1095
1106
|
private readonly SCROLL_THRESHOLD;
|
|
1107
|
+
/** Rows per lazy page: grid config `pageSize` if set, else ROWS_PER_PAGE. */
|
|
1108
|
+
private get rowsPerPage();
|
|
1096
1109
|
private lastLoadedGroupIds;
|
|
1097
1110
|
private requestedGroupIds;
|
|
1098
1111
|
private columnsInitialized;
|
|
@@ -1882,6 +1895,7 @@ declare class ProgressComponent implements OnInit {
|
|
|
1882
1895
|
editModeChange: EventEmitter<boolean>;
|
|
1883
1896
|
currentValue: _angular_core.WritableSignal<number>;
|
|
1884
1897
|
displayValue: _angular_core.Signal<number>;
|
|
1898
|
+
barColor: _angular_core.Signal<string | null>;
|
|
1885
1899
|
constructor();
|
|
1886
1900
|
ngOnInit(): void;
|
|
1887
1901
|
onActivate(): void;
|