igniteui-angular 22.1.0-beta.6 → 22.1.0-beta.7
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/igniteui-angular-accordion.mjs +4 -4
- package/fesm2022/igniteui-angular-accordion.mjs.map +1 -1
- package/fesm2022/igniteui-angular-action-strip.mjs +0 -1
- package/fesm2022/igniteui-angular-action-strip.mjs.map +1 -1
- package/fesm2022/igniteui-angular-avatar.mjs.map +1 -1
- package/fesm2022/igniteui-angular-badge.mjs +0 -1
- package/fesm2022/igniteui-angular-badge.mjs.map +1 -1
- package/fesm2022/igniteui-angular-banner.mjs +2 -2
- package/fesm2022/igniteui-angular-banner.mjs.map +1 -1
- package/fesm2022/igniteui-angular-button-group.mjs.map +1 -1
- package/fesm2022/igniteui-angular-calendar.mjs +4 -5
- package/fesm2022/igniteui-angular-calendar.mjs.map +1 -1
- package/fesm2022/igniteui-angular-card.mjs.map +1 -1
- package/fesm2022/igniteui-angular-carousel.mjs.map +1 -1
- package/fesm2022/igniteui-angular-chips.mjs.map +1 -1
- package/fesm2022/igniteui-angular-combo.mjs +17 -6
- package/fesm2022/igniteui-angular-combo.mjs.map +1 -1
- package/fesm2022/igniteui-angular-core.mjs +16 -337
- package/fesm2022/igniteui-angular-core.mjs.map +1 -1
- package/fesm2022/igniteui-angular-date-picker.mjs +12 -14
- package/fesm2022/igniteui-angular-date-picker.mjs.map +1 -1
- package/fesm2022/igniteui-angular-dialog.mjs +1 -1
- package/fesm2022/igniteui-angular-dialog.mjs.map +1 -1
- package/fesm2022/igniteui-angular-directives.mjs +45 -47
- package/fesm2022/igniteui-angular-directives.mjs.map +1 -1
- package/fesm2022/igniteui-angular-drop-down.mjs +3 -2
- package/fesm2022/igniteui-angular-drop-down.mjs.map +1 -1
- package/fesm2022/igniteui-angular-expansion-panel.mjs +23 -12
- package/fesm2022/igniteui-angular-expansion-panel.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-core.mjs +484 -202
- package/fesm2022/igniteui-angular-grids-core.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-grid.mjs +115 -94
- package/fesm2022/igniteui-angular-grids-grid.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-hierarchical-grid.mjs +15 -19
- package/fesm2022/igniteui-angular-grids-hierarchical-grid.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-lite.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-pivot-grid.mjs +75 -153
- package/fesm2022/igniteui-angular-grids-pivot-grid.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-tree-grid.mjs +28 -35
- package/fesm2022/igniteui-angular-grids-tree-grid.mjs.map +1 -1
- package/fesm2022/igniteui-angular-icon.mjs.map +1 -1
- package/fesm2022/igniteui-angular-input-group.mjs +1 -1
- package/fesm2022/igniteui-angular-input-group.mjs.map +1 -1
- package/fesm2022/igniteui-angular-list.mjs.map +1 -1
- package/fesm2022/igniteui-angular-navbar.mjs.map +1 -1
- package/fesm2022/igniteui-angular-navigation-drawer.mjs +2 -3
- package/fesm2022/igniteui-angular-navigation-drawer.mjs.map +1 -1
- package/fesm2022/igniteui-angular-paginator.mjs.map +1 -1
- package/fesm2022/igniteui-angular-progressbar.mjs +5 -2
- package/fesm2022/igniteui-angular-progressbar.mjs.map +1 -1
- package/fesm2022/igniteui-angular-query-builder.mjs +18 -19
- package/fesm2022/igniteui-angular-query-builder.mjs.map +1 -1
- package/fesm2022/igniteui-angular-radio.mjs +1 -1
- package/fesm2022/igniteui-angular-radio.mjs.map +1 -1
- package/fesm2022/igniteui-angular-select.mjs.map +1 -1
- package/fesm2022/igniteui-angular-simple-combo.mjs +10 -7
- package/fesm2022/igniteui-angular-simple-combo.mjs.map +1 -1
- package/fesm2022/igniteui-angular-slider.mjs +3 -3
- package/fesm2022/igniteui-angular-slider.mjs.map +1 -1
- package/fesm2022/igniteui-angular-splitter.mjs +1 -1
- package/fesm2022/igniteui-angular-splitter.mjs.map +1 -1
- package/fesm2022/igniteui-angular-stepper.mjs +1 -1
- package/fesm2022/igniteui-angular-stepper.mjs.map +1 -1
- package/fesm2022/igniteui-angular-tabs.mjs.map +1 -1
- package/fesm2022/igniteui-angular-time-picker.mjs +3 -6
- package/fesm2022/igniteui-angular-time-picker.mjs.map +1 -1
- package/fesm2022/igniteui-angular-tree.mjs +8 -10
- package/fesm2022/igniteui-angular-tree.mjs.map +1 -1
- package/migrations/migration-collection.json +0 -7
- package/package.json +1 -1
- package/types/igniteui-angular-avatar.d.ts +1 -1
- package/types/igniteui-angular-banner.d.ts +3 -3
- package/types/igniteui-angular-calendar.d.ts +9 -9
- package/types/igniteui-angular-card.d.ts +1 -1
- package/types/igniteui-angular-carousel.d.ts +9 -9
- package/types/igniteui-angular-chat.d.ts +1 -1
- package/types/igniteui-angular-chips.d.ts +5 -5
- package/types/igniteui-angular-combo.d.ts +17 -13
- package/types/igniteui-angular-core.d.ts +200 -495
- package/types/igniteui-angular-date-picker.d.ts +3 -3
- package/types/igniteui-angular-dialog.d.ts +4 -4
- package/types/igniteui-angular-directives.d.ts +60 -59
- package/types/igniteui-angular-drop-down.d.ts +16 -16
- package/types/igniteui-angular-expansion-panel.d.ts +6 -6
- package/types/igniteui-angular-grids-core.d.ts +1053 -791
- package/types/igniteui-angular-grids-grid.d.ts +104 -267
- package/types/igniteui-angular-grids-hierarchical-grid.d.ts +68 -547
- package/types/igniteui-angular-grids-lite.d.ts +7 -7
- package/types/igniteui-angular-grids-pivot-grid.d.ts +94 -129
- package/types/igniteui-angular-grids-tree-grid.d.ts +5 -51
- package/types/igniteui-angular-icon.d.ts +2 -2
- package/types/igniteui-angular-input-group.d.ts +4 -4
- package/types/igniteui-angular-list.d.ts +4 -4
- package/types/igniteui-angular-navigation-drawer.d.ts +3 -3
- package/types/igniteui-angular-progressbar.d.ts +1 -0
- package/types/igniteui-angular-query-builder.d.ts +9 -9
- package/types/igniteui-angular-radio.d.ts +1 -1
- package/types/igniteui-angular-select.d.ts +5 -5
- package/types/igniteui-angular-simple-combo.d.ts +2 -2
- package/types/igniteui-angular-slider.d.ts +4 -4
- package/types/igniteui-angular-splitter.d.ts +3 -3
- package/types/igniteui-angular-time-picker.d.ts +8 -8
- package/types/igniteui-angular-tree.d.ts +8 -8
- package/migrations/update-22_1_0_import-migration/index.d.ts +0 -2
- package/migrations/update-22_1_0_import-migration/index.js +0 -228
- package/migrations/update-22_1_0_import-migration/index.spec.d.ts +0 -1
- package/migrations/update-22_1_0_import-migration/index.spec.js +0 -188
|
@@ -115,7 +115,7 @@ declare class ThemeToken {
|
|
|
115
115
|
private t?;
|
|
116
116
|
private document;
|
|
117
117
|
subject: BehaviorSubject<IgxTheme>;
|
|
118
|
-
constructor(t?: IgxTheme
|
|
118
|
+
constructor(t?: IgxTheme);
|
|
119
119
|
onChange(callback: (theme: IgxTheme) => void): rxjs.Subscription;
|
|
120
120
|
set(theme: IgxTheme): void;
|
|
121
121
|
get theme(): IgxTheme;
|
|
@@ -287,7 +287,7 @@ declare class PlatformUtil {
|
|
|
287
287
|
isChromium: boolean;
|
|
288
288
|
browserVersion: number;
|
|
289
289
|
/** @hidden @internal */
|
|
290
|
-
isElements: boolean
|
|
290
|
+
isElements: boolean;
|
|
291
291
|
KEYMAP: {
|
|
292
292
|
readonly ENTER: "Enter";
|
|
293
293
|
readonly SPACE: " ";
|
|
@@ -562,7 +562,7 @@ declare class IgxSelectionAPIService {
|
|
|
562
562
|
*
|
|
563
563
|
* @returns Selection after the item is removed.
|
|
564
564
|
*/
|
|
565
|
-
delete_item(componentID: string, itemID: any, sel?: Set<any>): Set<any
|
|
565
|
+
delete_item(componentID: string, itemID: any, sel?: Set<any>): Set<any>;
|
|
566
566
|
/**
|
|
567
567
|
* Creates new selection that consist of the new items removed to the current component selection.
|
|
568
568
|
* The returned collection is new Set,
|
|
@@ -689,7 +689,7 @@ interface IgxGestureEvent {
|
|
|
689
689
|
y: number;
|
|
690
690
|
};
|
|
691
691
|
/** The original event target. */
|
|
692
|
-
target: EventTarget
|
|
692
|
+
target: EventTarget;
|
|
693
693
|
/** The underlying native pointer event. */
|
|
694
694
|
originalEvent: PointerEvent;
|
|
695
695
|
/** Prevents the default action of the underlying native pointer event. */
|
|
@@ -1103,7 +1103,7 @@ declare class IgxOverlayService implements OnDestroy {
|
|
|
1103
1103
|
/** @hidden */
|
|
1104
1104
|
ngOnDestroy(): void;
|
|
1105
1105
|
/** @hidden @internal */
|
|
1106
|
-
getOverlayById(id: string
|
|
1106
|
+
getOverlayById(id: string): OverlayInfo;
|
|
1107
1107
|
private _hide;
|
|
1108
1108
|
/**
|
|
1109
1109
|
* Creates overlayInfo. Sets the info's `elementRef`, `componentRef`and `settings`. Also
|
|
@@ -1194,7 +1194,7 @@ interface IScrollStrategy {
|
|
|
1194
1194
|
* settings.scrollStrategy.initialize(document, overlay, id);
|
|
1195
1195
|
* ```
|
|
1196
1196
|
*/
|
|
1197
|
-
initialize(document: Document, overlayService: IgxOverlayService, id: string):
|
|
1197
|
+
initialize(document: Document, overlayService: IgxOverlayService, id: string): any;
|
|
1198
1198
|
/**
|
|
1199
1199
|
* Attaches the strategy
|
|
1200
1200
|
* ```typescript
|
|
@@ -1222,7 +1222,7 @@ declare abstract class ScrollStrategy implements IScrollStrategy {
|
|
|
1222
1222
|
* settings.scrollStrategy.initialize(document, overlay, id);
|
|
1223
1223
|
* ```
|
|
1224
1224
|
*/
|
|
1225
|
-
abstract initialize(document: Document, overlayService: IgxOverlayService, id: string):
|
|
1225
|
+
abstract initialize(document: Document, overlayService: IgxOverlayService, id: string): any;
|
|
1226
1226
|
/**
|
|
1227
1227
|
* Attaches the strategy
|
|
1228
1228
|
* ```typescript
|
|
@@ -2046,385 +2046,6 @@ declare class FilteringExpressionsTree implements IFilteringExpressionsTree {
|
|
|
2046
2046
|
findIndex(fieldName: string): number;
|
|
2047
2047
|
}
|
|
2048
2048
|
|
|
2049
|
-
/**
|
|
2050
|
-
* @hidden
|
|
2051
|
-
*/
|
|
2052
|
-
declare class GroupedRecords extends Array<any> {
|
|
2053
|
-
}
|
|
2054
|
-
interface IGroupByRecord {
|
|
2055
|
-
expression: ISortingExpression;
|
|
2056
|
-
level: number;
|
|
2057
|
-
records: GroupedRecords;
|
|
2058
|
-
value: any;
|
|
2059
|
-
groupParent: IGroupByRecord;
|
|
2060
|
-
groups?: IGroupByRecord[];
|
|
2061
|
-
height: number;
|
|
2062
|
-
column?: ColumnType;
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
|
-
declare class IgxSummaryOperand {
|
|
2066
|
-
/**
|
|
2067
|
-
* Counts all the records in the data source.
|
|
2068
|
-
* If filtering is applied, counts only the filtered records.
|
|
2069
|
-
* ```typescript
|
|
2070
|
-
* IgxSummaryOperand.count(dataSource);
|
|
2071
|
-
* ```
|
|
2072
|
-
*
|
|
2073
|
-
* @memberof IgxSummaryOperand
|
|
2074
|
-
*/
|
|
2075
|
-
static count(data: any[]): number;
|
|
2076
|
-
/**
|
|
2077
|
-
* Executes the static `count` method and returns summary result[]`.
|
|
2078
|
-
* ```typescript
|
|
2079
|
-
* interface IgxSummaryResult {
|
|
2080
|
-
* key: string;
|
|
2081
|
-
* label: string;
|
|
2082
|
-
* summaryResult: any;
|
|
2083
|
-
* }
|
|
2084
|
-
* ```
|
|
2085
|
-
* Can be overridden in the inherited classes to provide customization for the `summary`.
|
|
2086
|
-
* ```typescript
|
|
2087
|
-
* class CustomSummary extends IgxSummaryOperand {
|
|
2088
|
-
* constructor() {
|
|
2089
|
-
* super();
|
|
2090
|
-
* }
|
|
2091
|
-
* public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
|
|
2092
|
-
* const result = [];
|
|
2093
|
-
* result.push({
|
|
2094
|
-
* key: "test",
|
|
2095
|
-
* label: "Test",
|
|
2096
|
-
* summaryResult: IgxSummaryOperand.count(data)
|
|
2097
|
-
* });
|
|
2098
|
-
* return result;
|
|
2099
|
-
* }
|
|
2100
|
-
* }
|
|
2101
|
-
* this.grid.getColumnByName('ColumnName').summaries = CustomSummary;
|
|
2102
|
-
* ```
|
|
2103
|
-
*
|
|
2104
|
-
* @memberof IgxSummaryOperand
|
|
2105
|
-
*/
|
|
2106
|
-
operate(data?: any[], _allData?: any[], _fieldName?: string, _groupRecord?: IGroupByRecord): IgxSummaryResult[];
|
|
2107
|
-
}
|
|
2108
|
-
declare class IgxNumberSummaryOperand extends IgxSummaryOperand {
|
|
2109
|
-
/**
|
|
2110
|
-
* Returns the minimum numeric value in the provided data records.
|
|
2111
|
-
* If filtering is applied, returns the minimum value in the filtered data records.
|
|
2112
|
-
* ```typescript
|
|
2113
|
-
* IgxNumberSummaryOperand.min(data);
|
|
2114
|
-
* ```
|
|
2115
|
-
*
|
|
2116
|
-
* @memberof IgxNumberSummaryOperand
|
|
2117
|
-
*/
|
|
2118
|
-
static min(data: any[]): number;
|
|
2119
|
-
/**
|
|
2120
|
-
* Returns the maximum numeric value in the provided data records.
|
|
2121
|
-
* If filtering is applied, returns the maximum value in the filtered data records.
|
|
2122
|
-
* ```typescript
|
|
2123
|
-
* IgxNumberSummaryOperand.max(data);
|
|
2124
|
-
* ```
|
|
2125
|
-
*
|
|
2126
|
-
* @memberof IgxNumberSummaryOperand
|
|
2127
|
-
*/
|
|
2128
|
-
static max(data: any[]): number;
|
|
2129
|
-
/**
|
|
2130
|
-
* Returns the sum of the numeric values in the provided data records.
|
|
2131
|
-
* If filtering is applied, returns the sum of the numeric values in the data records.
|
|
2132
|
-
* ```typescript
|
|
2133
|
-
* IgxNumberSummaryOperand.sum(data);
|
|
2134
|
-
* ```
|
|
2135
|
-
*
|
|
2136
|
-
* @memberof IgxNumberSummaryOperand
|
|
2137
|
-
*/
|
|
2138
|
-
static sum(data: any[]): number;
|
|
2139
|
-
/**
|
|
2140
|
-
* Returns the average numeric value in the data provided data records.
|
|
2141
|
-
* If filtering is applied, returns the average numeric value in the filtered data records.
|
|
2142
|
-
* ```typescript
|
|
2143
|
-
* IgxSummaryOperand.average(data);
|
|
2144
|
-
* ```
|
|
2145
|
-
*
|
|
2146
|
-
* @memberof IgxNumberSummaryOperand
|
|
2147
|
-
*/
|
|
2148
|
-
static average(data: any[]): number;
|
|
2149
|
-
/**
|
|
2150
|
-
* Executes the static methods and returns summary result[]`.
|
|
2151
|
-
* ```typescript
|
|
2152
|
-
* interface IgxSummaryResult {
|
|
2153
|
-
* key: string;
|
|
2154
|
-
* label: string;
|
|
2155
|
-
* summaryResult: any;
|
|
2156
|
-
* }
|
|
2157
|
-
* ```
|
|
2158
|
-
* Can be overridden in the inherited classes to provide customization for the `summary`.
|
|
2159
|
-
* ```typescript
|
|
2160
|
-
* class CustomNumberSummary extends IgxNumberSummaryOperand {
|
|
2161
|
-
* constructor() {
|
|
2162
|
-
* super();
|
|
2163
|
-
* }
|
|
2164
|
-
* public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
|
|
2165
|
-
* const result = super.operate(data, allData, fieldName, groupRecord);
|
|
2166
|
-
* result.push({
|
|
2167
|
-
* key: "avg",
|
|
2168
|
-
* label: "Avg",
|
|
2169
|
-
* summaryResult: IgxNumberSummaryOperand.average(data)
|
|
2170
|
-
* });
|
|
2171
|
-
* result.push({
|
|
2172
|
-
* key: 'mdn',
|
|
2173
|
-
* label: 'Median',
|
|
2174
|
-
* summaryResult: this.findMedian(data)
|
|
2175
|
-
* });
|
|
2176
|
-
* return result;
|
|
2177
|
-
* }
|
|
2178
|
-
* }
|
|
2179
|
-
* this.grid.getColumnByName('ColumnName').summaries = CustomNumberSummary;
|
|
2180
|
-
* ```
|
|
2181
|
-
*
|
|
2182
|
-
* @memberof IgxNumberSummaryOperand
|
|
2183
|
-
*/
|
|
2184
|
-
operate(data?: any[], allData?: any[], fieldName?: string, groupRecord?: IGroupByRecord): IgxSummaryResult[];
|
|
2185
|
-
}
|
|
2186
|
-
declare class IgxDateSummaryOperand extends IgxSummaryOperand {
|
|
2187
|
-
/**
|
|
2188
|
-
* Returns the latest date value in the data records.
|
|
2189
|
-
* If filtering is applied, returns the latest date value in the filtered data records.
|
|
2190
|
-
* ```typescript
|
|
2191
|
-
* IgxDateSummaryOperand.latest(data);
|
|
2192
|
-
* ```
|
|
2193
|
-
*
|
|
2194
|
-
* @memberof IgxDateSummaryOperand
|
|
2195
|
-
*/
|
|
2196
|
-
static latest(data: any[]): any;
|
|
2197
|
-
/**
|
|
2198
|
-
* Returns the earliest date value in the data records.
|
|
2199
|
-
* If filtering is applied, returns the latest date value in the filtered data records.
|
|
2200
|
-
* ```typescript
|
|
2201
|
-
* IgxDateSummaryOperand.earliest(data);
|
|
2202
|
-
* ```
|
|
2203
|
-
*
|
|
2204
|
-
* @memberof IgxDateSummaryOperand
|
|
2205
|
-
*/
|
|
2206
|
-
static earliest(data: any[]): any;
|
|
2207
|
-
/**
|
|
2208
|
-
* Executes the static methods and returns summary result[]`.
|
|
2209
|
-
* ```typescript
|
|
2210
|
-
* interface IgxSummaryResult {
|
|
2211
|
-
* key: string;
|
|
2212
|
-
* label: string;
|
|
2213
|
-
* summaryResult: any;
|
|
2214
|
-
* }
|
|
2215
|
-
* ```
|
|
2216
|
-
* Can be overridden in the inherited classes to provide customization for the `summary`.
|
|
2217
|
-
* ```typescript
|
|
2218
|
-
* class CustomDateSummary extends IgxDateSummaryOperand {
|
|
2219
|
-
* constructor() {
|
|
2220
|
-
* super();
|
|
2221
|
-
* }
|
|
2222
|
-
* public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
|
|
2223
|
-
* const result = super.operate(data, allData, fieldName, groupRecord);
|
|
2224
|
-
* result.push({
|
|
2225
|
-
* key: "deadline",
|
|
2226
|
-
* label: "Deadline Date",
|
|
2227
|
-
* summaryResult: this.calculateDeadline(data);
|
|
2228
|
-
* });
|
|
2229
|
-
* return result;
|
|
2230
|
-
* }
|
|
2231
|
-
* }
|
|
2232
|
-
* this.grid.getColumnByName('ColumnName').summaries = CustomDateSummary;
|
|
2233
|
-
* ```
|
|
2234
|
-
*
|
|
2235
|
-
* @memberof IgxDateSummaryOperand
|
|
2236
|
-
*/
|
|
2237
|
-
operate(data?: any[], allData?: any[], fieldName?: string, groupRecord?: IGroupByRecord): IgxSummaryResult[];
|
|
2238
|
-
}
|
|
2239
|
-
declare class IgxTimeSummaryOperand extends IgxSummaryOperand {
|
|
2240
|
-
/**
|
|
2241
|
-
* Returns the latest time value in the data records. Compare only the time part of the date.
|
|
2242
|
-
* If filtering is applied, returns the latest time value in the filtered data records.
|
|
2243
|
-
* ```typescript
|
|
2244
|
-
* IgxTimeSummaryOperand.latestTime(data);
|
|
2245
|
-
* ```
|
|
2246
|
-
*
|
|
2247
|
-
* @memberof IgxTimeSummaryOperand
|
|
2248
|
-
*/
|
|
2249
|
-
static latestTime(data: any[]): any;
|
|
2250
|
-
/**
|
|
2251
|
-
* Returns the earliest time value in the data records. Compare only the time part of the date.
|
|
2252
|
-
* If filtering is applied, returns the earliest time value in the filtered data records.
|
|
2253
|
-
* ```typescript
|
|
2254
|
-
* IgxTimeSummaryOperand.earliestTime(data);
|
|
2255
|
-
* ```
|
|
2256
|
-
*
|
|
2257
|
-
* @memberof IgxTimeSummaryOperand
|
|
2258
|
-
*/
|
|
2259
|
-
static earliestTime(data: any[]): any;
|
|
2260
|
-
/**
|
|
2261
|
-
* @memberof IgxTimeSummaryOperand
|
|
2262
|
-
*/
|
|
2263
|
-
operate(data?: any[], allData?: any[], fieldName?: string, groupRecord?: IGroupByRecord): IgxSummaryResult[];
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
|
-
interface IDataCloneStrategy {
|
|
2267
|
-
/**
|
|
2268
|
-
* Clones provided data
|
|
2269
|
-
* @param data primitive value, date and object to be cloned
|
|
2270
|
-
* @returns deep copy of provided value
|
|
2271
|
-
*/
|
|
2272
|
-
clone(data: any): any;
|
|
2273
|
-
}
|
|
2274
|
-
/**
|
|
2275
|
-
* Simplified data clone strategy that deep clones primitive values, dates and objects.
|
|
2276
|
-
* Does not support circular references in objects.
|
|
2277
|
-
*/
|
|
2278
|
-
declare class DefaultDataCloneStrategy implements IDataCloneStrategy {
|
|
2279
|
-
clone(data: any): any;
|
|
2280
|
-
}
|
|
2281
|
-
/**
|
|
2282
|
-
* Data clone strategy that is uses cache to deep clone primitive values, dates and objects.
|
|
2283
|
-
* It allows using circular references inside object.
|
|
2284
|
-
*/
|
|
2285
|
-
declare class CachedDataCloneStrategy implements IDataCloneStrategy {
|
|
2286
|
-
clone(data: any): any;
|
|
2287
|
-
}
|
|
2288
|
-
|
|
2289
|
-
declare enum TransactionType {
|
|
2290
|
-
ADD = "add",
|
|
2291
|
-
DELETE = "delete",
|
|
2292
|
-
UPDATE = "update"
|
|
2293
|
-
}
|
|
2294
|
-
declare enum TransactionEventOrigin {
|
|
2295
|
-
UNDO = "undo",
|
|
2296
|
-
REDO = "redo",
|
|
2297
|
-
CLEAR = "clear",
|
|
2298
|
-
ADD = "add",
|
|
2299
|
-
END = "endPending"
|
|
2300
|
-
}
|
|
2301
|
-
interface Transaction {
|
|
2302
|
-
id: any;
|
|
2303
|
-
type: TransactionType;
|
|
2304
|
-
newValue: any;
|
|
2305
|
-
}
|
|
2306
|
-
/**
|
|
2307
|
-
* @experimental
|
|
2308
|
-
* @hidden
|
|
2309
|
-
*/
|
|
2310
|
-
interface HierarchicalTransaction extends Transaction {
|
|
2311
|
-
path?: any[];
|
|
2312
|
-
}
|
|
2313
|
-
interface State {
|
|
2314
|
-
value: any;
|
|
2315
|
-
recordRef: any;
|
|
2316
|
-
type: TransactionType;
|
|
2317
|
-
}
|
|
2318
|
-
interface Action<T extends Transaction> {
|
|
2319
|
-
transaction: T;
|
|
2320
|
-
recordRef: any;
|
|
2321
|
-
}
|
|
2322
|
-
interface StateUpdateEvent {
|
|
2323
|
-
origin: TransactionEventOrigin;
|
|
2324
|
-
actions: Action<Transaction>[];
|
|
2325
|
-
}
|
|
2326
|
-
/**
|
|
2327
|
-
* @experimental
|
|
2328
|
-
* @hidden
|
|
2329
|
-
*/
|
|
2330
|
-
interface HierarchicalState extends State {
|
|
2331
|
-
path: any[];
|
|
2332
|
-
}
|
|
2333
|
-
interface TransactionService<T extends Transaction, S extends State> {
|
|
2334
|
-
/**
|
|
2335
|
-
* Returns whether transaction is enabled for this service
|
|
2336
|
-
*/
|
|
2337
|
-
readonly enabled: boolean;
|
|
2338
|
-
/**
|
|
2339
|
-
* Gets/Sets the data clone strategy used to clone data
|
|
2340
|
-
*/
|
|
2341
|
-
cloneStrategy: IDataCloneStrategy;
|
|
2342
|
-
/**
|
|
2343
|
-
* Event fired when transaction state has changed - add transaction, commit all transactions, undo and redo
|
|
2344
|
-
*/
|
|
2345
|
-
onStateUpdate?: EventEmitter<StateUpdateEvent>;
|
|
2346
|
-
/**
|
|
2347
|
-
* @returns if there are any transactions in the Undo stack
|
|
2348
|
-
*/
|
|
2349
|
-
canUndo: boolean;
|
|
2350
|
-
/**
|
|
2351
|
-
* @returns if there are any transactions in the Redo stack
|
|
2352
|
-
*/
|
|
2353
|
-
canRedo: boolean;
|
|
2354
|
-
/**
|
|
2355
|
-
* Adds provided transaction with recordRef if any
|
|
2356
|
-
*
|
|
2357
|
-
* @param transaction Transaction to be added
|
|
2358
|
-
* @param recordRef Reference to the value of the record in the data source related to the changed item
|
|
2359
|
-
*/
|
|
2360
|
-
add(transaction: T, recordRef?: any): void;
|
|
2361
|
-
/**
|
|
2362
|
-
* Returns all recorded transactions in chronological order
|
|
2363
|
-
*
|
|
2364
|
-
* @param id Optional record id to get transactions for
|
|
2365
|
-
* @returns All transaction in the service or for the specified record
|
|
2366
|
-
*/
|
|
2367
|
-
getTransactionLog(id?: any): T[];
|
|
2368
|
-
/**
|
|
2369
|
-
* Remove the last transaction if any
|
|
2370
|
-
*/
|
|
2371
|
-
undo(): void;
|
|
2372
|
-
/**
|
|
2373
|
-
* Applies the last undone transaction if any
|
|
2374
|
-
*/
|
|
2375
|
-
redo(): void;
|
|
2376
|
-
/**
|
|
2377
|
-
* Returns aggregated changes from all transactions
|
|
2378
|
-
*
|
|
2379
|
-
* @param mergeChanges If set to true will merge each state's value over relate recordRef
|
|
2380
|
-
* and will record resulting value in the related transaction
|
|
2381
|
-
* @returns Collection of aggregated transactions for each changed record
|
|
2382
|
-
*/
|
|
2383
|
-
getAggregatedChanges(mergeChanges: boolean): T[];
|
|
2384
|
-
/**
|
|
2385
|
-
* Returns the state of the record with provided id
|
|
2386
|
-
*
|
|
2387
|
-
* @param id The id of the record
|
|
2388
|
-
* @param pending Should get pending state
|
|
2389
|
-
* @returns State of the record if any
|
|
2390
|
-
*/
|
|
2391
|
-
getState(id: any, pending?: boolean): S;
|
|
2392
|
-
/**
|
|
2393
|
-
* Returns value of the required id including all uncommitted changes
|
|
2394
|
-
*
|
|
2395
|
-
* @param id The id of the record to return value for
|
|
2396
|
-
* @param mergeChanges If set to true will merge state's value over relate recordRef
|
|
2397
|
-
* and will return merged value
|
|
2398
|
-
* @returns Value with changes or **null**
|
|
2399
|
-
*/
|
|
2400
|
-
getAggregatedValue(id: any, mergeChanges: boolean): any;
|
|
2401
|
-
/**
|
|
2402
|
-
* Applies all transactions over the provided data
|
|
2403
|
-
*
|
|
2404
|
-
* @param data Data source to update
|
|
2405
|
-
* @param id Optional record id to commit transactions for
|
|
2406
|
-
*/
|
|
2407
|
-
commit(data: any[], id?: any): void;
|
|
2408
|
-
/**
|
|
2409
|
-
* Clears all transactions
|
|
2410
|
-
*
|
|
2411
|
-
* @param id Optional record id to clear transactions for
|
|
2412
|
-
*/
|
|
2413
|
-
clear(id?: any): void;
|
|
2414
|
-
/**
|
|
2415
|
-
* Starts pending transactions. All transactions passed after call to startPending
|
|
2416
|
-
* will not be added to transaction log
|
|
2417
|
-
*/
|
|
2418
|
-
startPending(): void;
|
|
2419
|
-
/**
|
|
2420
|
-
* Clears all pending transactions and aggregated pending state. If commit is set to true
|
|
2421
|
-
* commits pending states as single transaction
|
|
2422
|
-
*
|
|
2423
|
-
* @param commit Should commit the pending states
|
|
2424
|
-
*/
|
|
2425
|
-
endPending(commit: boolean): void;
|
|
2426
|
-
}
|
|
2427
|
-
|
|
2428
2049
|
/**
|
|
2429
2050
|
* Minimal type stubs for grid types to avoid circular dependencies.
|
|
2430
2051
|
* These are simple interfaces that core uses for typing only.
|
|
@@ -2601,8 +2222,7 @@ interface ColumnType extends FieldType {
|
|
|
2601
2222
|
* Custom CSS styling, applied to every column
|
|
2602
2223
|
* calcWidth, minWidthPx, maxWidthPx, minWidth, maxWidth, minWidthPercent, maxWidthPercent, resolvedWidth
|
|
2603
2224
|
*/
|
|
2604
|
-
calcWidth:
|
|
2605
|
-
defaultWidth: string;
|
|
2225
|
+
calcWidth: any;
|
|
2606
2226
|
minWidthPx: number;
|
|
2607
2227
|
maxWidthPx: number;
|
|
2608
2228
|
minWidth: string;
|
|
@@ -2628,7 +2248,7 @@ interface ColumnType extends FieldType {
|
|
|
2628
2248
|
/**
|
|
2629
2249
|
* Sets properties on the default column editors
|
|
2630
2250
|
*/
|
|
2631
|
-
editorOptions
|
|
2251
|
+
editorOptions: IColumnEditorOptions;
|
|
2632
2252
|
/**
|
|
2633
2253
|
* The template reference for the custom inline editor of the column
|
|
2634
2254
|
* It is of type TemplateRef, which represents an embedded template, used to instantiate embedded views
|
|
@@ -2684,7 +2304,7 @@ interface ColumnType extends FieldType {
|
|
|
2684
2304
|
*/
|
|
2685
2305
|
filteringExpressionsTree: FilteringExpressionsTree;
|
|
2686
2306
|
hasSummary: boolean;
|
|
2687
|
-
summaries:
|
|
2307
|
+
summaries: any;
|
|
2688
2308
|
disabledSummaries?: string[];
|
|
2689
2309
|
/**
|
|
2690
2310
|
* The template reference for a summary of the column
|
|
@@ -2837,99 +2457,6 @@ interface ISummaryRecord {
|
|
|
2837
2457
|
max?: number;
|
|
2838
2458
|
cellIndentation?: number;
|
|
2839
2459
|
}
|
|
2840
|
-
/**
|
|
2841
|
-
* Represents a range selection between certain rows and columns of the grid.
|
|
2842
|
-
* Range selection can be made either through drag selection or through keyboard selection.
|
|
2843
|
-
*/
|
|
2844
|
-
interface GridSelectionRange {
|
|
2845
|
-
/** The index of the starting row of the selection range. */
|
|
2846
|
-
rowStart: number;
|
|
2847
|
-
/** The index of the ending row of the selection range. */
|
|
2848
|
-
rowEnd: number;
|
|
2849
|
-
/**
|
|
2850
|
-
* The identifier or index of the starting column of the selection range.
|
|
2851
|
-
* It can be either a string representing the column's field name or a numeric index.
|
|
2852
|
-
*/
|
|
2853
|
-
columnStart: string | number;
|
|
2854
|
-
/**
|
|
2855
|
-
* The identifier or index of the ending column of the selection range.
|
|
2856
|
-
* It can be either a string representing the column's field name or a numeric index.
|
|
2857
|
-
*/
|
|
2858
|
-
columnEnd: string | number;
|
|
2859
|
-
}
|
|
2860
|
-
/**
|
|
2861
|
-
* Represents a single selected cell or node in a grid.
|
|
2862
|
-
*/
|
|
2863
|
-
interface ISelectionNode {
|
|
2864
|
-
/**
|
|
2865
|
-
* The index of the selected row.
|
|
2866
|
-
*/
|
|
2867
|
-
row: number;
|
|
2868
|
-
/**
|
|
2869
|
-
* The index of the selected column.
|
|
2870
|
-
*/
|
|
2871
|
-
column: number;
|
|
2872
|
-
/**
|
|
2873
|
-
* (Optional)
|
|
2874
|
-
* Additional layout information for multi-row selection nodes.
|
|
2875
|
-
*/
|
|
2876
|
-
layout?: IMultiRowLayoutNode;
|
|
2877
|
-
/**
|
|
2878
|
-
* (Optional)
|
|
2879
|
-
* Indicates if the selected node is a summary row.
|
|
2880
|
-
* This property is true if the selected row is a summary row; otherwise, it is false.
|
|
2881
|
-
*/
|
|
2882
|
-
isSummaryRow?: boolean;
|
|
2883
|
-
}
|
|
2884
|
-
interface IMultiRowLayoutNode {
|
|
2885
|
-
rowStart: number;
|
|
2886
|
-
colStart: number;
|
|
2887
|
-
rowEnd: number;
|
|
2888
|
-
colEnd: number;
|
|
2889
|
-
columnVisibleIndex: number;
|
|
2890
|
-
}
|
|
2891
|
-
/**
|
|
2892
|
-
* Represents the state of the keyboard when selecting.
|
|
2893
|
-
*/
|
|
2894
|
-
interface ISelectionKeyboardState {
|
|
2895
|
-
/** The selected node in the grid, if any. Can be null if no node is selected. */
|
|
2896
|
-
node: null | ISelectionNode;
|
|
2897
|
-
/** Indicates whether the Shift key is currently pressed during the selection. */
|
|
2898
|
-
shift: boolean;
|
|
2899
|
-
/** The range of the selected cells in the grid. Can be null when resetting the selection. */
|
|
2900
|
-
range: GridSelectionRange;
|
|
2901
|
-
/** Indicates whether the selection is currently active (being performed). `False` when resetting the selection. */
|
|
2902
|
-
active: boolean;
|
|
2903
|
-
}
|
|
2904
|
-
/**
|
|
2905
|
-
* Represents the state of the grid selection using pointer interactions (mouse).
|
|
2906
|
-
* Extends ISelectionKeyboardState to include pointer-specific properties.
|
|
2907
|
-
*/
|
|
2908
|
-
interface ISelectionPointerState extends ISelectionKeyboardState {
|
|
2909
|
-
/** Indicates whether the Ctrl key is currently pressed during the selection. */
|
|
2910
|
-
ctrl: boolean;
|
|
2911
|
-
/** Indicates whether the primary pointer button is pressed during the selection (clicked). */
|
|
2912
|
-
primaryButton: boolean;
|
|
2913
|
-
}
|
|
2914
|
-
/**
|
|
2915
|
-
* Represents the state of the columns in the grid.
|
|
2916
|
-
*/
|
|
2917
|
-
interface IColumnSelectionState {
|
|
2918
|
-
/** Represents the field name of the selected column, if any. Can be null if no column is selected. */
|
|
2919
|
-
field: null | string;
|
|
2920
|
-
/** An array of strings representing the ranges of selected columns in the grid. */
|
|
2921
|
-
range: string[];
|
|
2922
|
-
}
|
|
2923
|
-
/**
|
|
2924
|
-
* Represents the overall state of grid selection, combining both keyboard and pointer interaction states.
|
|
2925
|
-
* It can be either an ISelectionKeyboardState or an ISelectionPointerState.
|
|
2926
|
-
*/
|
|
2927
|
-
type SelectionState = ISelectionKeyboardState | ISelectionPointerState;
|
|
2928
|
-
/**
|
|
2929
|
-
* Injection token for accessing the grid transaction object.
|
|
2930
|
-
* This allows injecting the grid transaction object into components or services.
|
|
2931
|
-
*/
|
|
2932
|
-
declare const IgxGridTransaction: InjectionToken<TransactionService<Transaction, State>>;
|
|
2933
2460
|
/**
|
|
2934
2461
|
* Enumeration representing different calculation modes for grid summaries.
|
|
2935
2462
|
* - rootLevelOnly: Summaries are calculated only for the root level.
|
|
@@ -3232,6 +2759,29 @@ declare function getYearRange(current: DayParameter, range: number): {
|
|
|
3232
2759
|
declare function isDateInRanges(date: DayParameter, ranges: DateRangeDescriptor[]): boolean;
|
|
3233
2760
|
declare function formatToParts(date: Date, locale: string, options: Intl.DateTimeFormatOptions, parts: string[]): Record<string, any>;
|
|
3234
2761
|
|
|
2762
|
+
interface IDataCloneStrategy {
|
|
2763
|
+
/**
|
|
2764
|
+
* Clones provided data
|
|
2765
|
+
* @param data primitive value, date and object to be cloned
|
|
2766
|
+
* @returns deep copy of provided value
|
|
2767
|
+
*/
|
|
2768
|
+
clone(data: any): any;
|
|
2769
|
+
}
|
|
2770
|
+
/**
|
|
2771
|
+
* Simplified data clone strategy that deep clones primitive values, dates and objects.
|
|
2772
|
+
* Does not support circular references in objects.
|
|
2773
|
+
*/
|
|
2774
|
+
declare class DefaultDataCloneStrategy implements IDataCloneStrategy {
|
|
2775
|
+
clone(data: any): any;
|
|
2776
|
+
}
|
|
2777
|
+
/**
|
|
2778
|
+
* Data clone strategy that is uses cache to deep clone primitive values, dates and objects.
|
|
2779
|
+
* It allows using circular references inside object.
|
|
2780
|
+
*/
|
|
2781
|
+
declare class CachedDataCloneStrategy implements IDataCloneStrategy {
|
|
2782
|
+
clone(data: any): any;
|
|
2783
|
+
}
|
|
2784
|
+
|
|
3235
2785
|
declare class FilterUtil {
|
|
3236
2786
|
static filter<T>(data: T[], state: IFilteringState, grid?: GridTypeBase): T[];
|
|
3237
2787
|
}
|
|
@@ -3279,7 +2829,7 @@ declare class FormattedValuesFilteringStrategy extends FilteringStrategy {
|
|
|
3279
2829
|
* @param fields An array of column field names that should be formatted.
|
|
3280
2830
|
* If omitted the values of all columns which has formatter will be formatted.
|
|
3281
2831
|
*/
|
|
3282
|
-
constructor(fields?: string[]
|
|
2832
|
+
constructor(fields?: string[]);
|
|
3283
2833
|
protected shouldFormatFilterValues(column: ColumnType): boolean;
|
|
3284
2834
|
}
|
|
3285
2835
|
|
|
@@ -3290,8 +2840,8 @@ declare interface IFilteringState {
|
|
|
3290
2840
|
}
|
|
3291
2841
|
|
|
3292
2842
|
declare class TreeGridFilteringStrategy extends BaseFilteringStrategy {
|
|
3293
|
-
hierarchicalFilterFields?: string[]
|
|
3294
|
-
constructor(hierarchicalFilterFields?: string[]
|
|
2843
|
+
hierarchicalFilterFields?: string[];
|
|
2844
|
+
constructor(hierarchicalFilterFields?: string[]);
|
|
3295
2845
|
filter(data: ITreeGridRecord[], expressionsTree: IFilteringExpressionsTree, advancedExpressionsTree?: IFilteringExpressionsTree, grid?: GridTypeBase): ITreeGridRecord[];
|
|
3296
2846
|
protected getFieldValue(rec: any, fieldName: string, isDate?: boolean, isTime?: boolean, grid?: GridTypeBase): any;
|
|
3297
2847
|
private getHierarchicalFieldValue;
|
|
@@ -3309,7 +2859,7 @@ declare class TreeGridFormattedValuesFilteringStrategy extends TreeGridFiltering
|
|
|
3309
2859
|
* @param fields An array of column field names that should be formatted.
|
|
3310
2860
|
* If omitted the values of all columns which has formatter will be formatted.
|
|
3311
2861
|
*/
|
|
3312
|
-
constructor(fields?: string[]
|
|
2862
|
+
constructor(fields?: string[]);
|
|
3313
2863
|
protected shouldFormatFilterValues(column: ColumnType): boolean;
|
|
3314
2864
|
}
|
|
3315
2865
|
declare class TreeGridMatchingRecordsOnlyFilteringStrategy extends TreeGridFilteringStrategy {
|
|
@@ -3340,7 +2890,7 @@ interface IGridMergeStrategy {
|
|
|
3340
2890
|
declare class DefaultMergeStrategy implements IGridMergeStrategy {
|
|
3341
2891
|
protected static _instance: DefaultMergeStrategy;
|
|
3342
2892
|
static instance(): DefaultMergeStrategy;
|
|
3343
|
-
merge(data: any[], field: string, comparer: (
|
|
2893
|
+
merge(data: any[], field: string, comparer: (prevRecord: any, record: any, field: string, isDate?: boolean, isTime?: boolean) => boolean, result: any[], activeRowIndexes: number[], isDate?: boolean, isTime?: boolean, grid?: GridTypeBase): any[];
|
|
3344
2894
|
comparer(prevRecord: any, record: any, field: string, isDate?: boolean, isTime?: boolean): boolean;
|
|
3345
2895
|
/**
|
|
3346
2896
|
* Retrieves the value of the specified field from the given object, considering date and time data types.
|
|
@@ -3354,7 +2904,7 @@ declare class DefaultMergeStrategy implements IGridMergeStrategy {
|
|
|
3354
2904
|
/**
|
|
3355
2905
|
* @internal
|
|
3356
2906
|
*/
|
|
3357
|
-
protected getDateValue<T>(obj: T, isDate?: boolean, isTime?: boolean):
|
|
2907
|
+
protected getDateValue<T>(obj: T, isDate?: boolean, isTime?: boolean): any;
|
|
3358
2908
|
}
|
|
3359
2909
|
declare class DefaultTreeGridMergeStrategy extends DefaultMergeStrategy {
|
|
3360
2910
|
comparer(prevRecord: any, record: any, field: string, isDate?: boolean, isTime?: boolean): boolean;
|
|
@@ -3420,6 +2970,22 @@ interface IGroupByKey {
|
|
|
3420
2970
|
value: any;
|
|
3421
2971
|
}
|
|
3422
2972
|
|
|
2973
|
+
/**
|
|
2974
|
+
* @hidden
|
|
2975
|
+
*/
|
|
2976
|
+
declare class GroupedRecords extends Array<any> {
|
|
2977
|
+
}
|
|
2978
|
+
interface IGroupByRecord {
|
|
2979
|
+
expression: ISortingExpression;
|
|
2980
|
+
level: number;
|
|
2981
|
+
records: GroupedRecords;
|
|
2982
|
+
value: any;
|
|
2983
|
+
groupParent: IGroupByRecord;
|
|
2984
|
+
groups?: IGroupByRecord[];
|
|
2985
|
+
height: number;
|
|
2986
|
+
column?: ColumnType;
|
|
2987
|
+
}
|
|
2988
|
+
|
|
3423
2989
|
interface IGroupingExpression extends ISortingExpression {
|
|
3424
2990
|
groupingComparer?: (a: any, b: any, currRec?: any, groupRec?: any) => number;
|
|
3425
2991
|
}
|
|
@@ -3510,7 +3076,7 @@ declare class IgxGrouping extends IgxSorting implements IGridGroupingStrategy {
|
|
|
3510
3076
|
* Returns an array containing the visible grouped result.
|
|
3511
3077
|
* @internal
|
|
3512
3078
|
*/
|
|
3513
|
-
protected groupData(data: any[], state: IGroupingState, grid: GridTypeBase
|
|
3079
|
+
protected groupData(data: any[], state: IGroupingState, grid: GridTypeBase, groupsRecords: any[], fullResult: IGroupByResult): IGroupByResult;
|
|
3514
3080
|
/**
|
|
3515
3081
|
* Groups the records in the provided data array based on the given grouping expression.
|
|
3516
3082
|
* `groupingComparer`: (Optional) A custom grouping comparator to determine the members of the group.
|
|
@@ -3556,6 +3122,145 @@ declare interface IPagingState {
|
|
|
3556
3122
|
};
|
|
3557
3123
|
}
|
|
3558
3124
|
|
|
3125
|
+
declare enum TransactionType {
|
|
3126
|
+
ADD = "add",
|
|
3127
|
+
DELETE = "delete",
|
|
3128
|
+
UPDATE = "update"
|
|
3129
|
+
}
|
|
3130
|
+
declare enum TransactionEventOrigin {
|
|
3131
|
+
UNDO = "undo",
|
|
3132
|
+
REDO = "redo",
|
|
3133
|
+
CLEAR = "clear",
|
|
3134
|
+
ADD = "add",
|
|
3135
|
+
END = "endPending"
|
|
3136
|
+
}
|
|
3137
|
+
interface Transaction {
|
|
3138
|
+
id: any;
|
|
3139
|
+
type: TransactionType;
|
|
3140
|
+
newValue: any;
|
|
3141
|
+
}
|
|
3142
|
+
/**
|
|
3143
|
+
* @experimental
|
|
3144
|
+
* @hidden
|
|
3145
|
+
*/
|
|
3146
|
+
interface HierarchicalTransaction extends Transaction {
|
|
3147
|
+
path?: any[];
|
|
3148
|
+
}
|
|
3149
|
+
interface State {
|
|
3150
|
+
value: any;
|
|
3151
|
+
recordRef: any;
|
|
3152
|
+
type: TransactionType;
|
|
3153
|
+
}
|
|
3154
|
+
interface Action<T extends Transaction> {
|
|
3155
|
+
transaction: T;
|
|
3156
|
+
recordRef: any;
|
|
3157
|
+
}
|
|
3158
|
+
interface StateUpdateEvent {
|
|
3159
|
+
origin: TransactionEventOrigin;
|
|
3160
|
+
actions: Action<Transaction>[];
|
|
3161
|
+
}
|
|
3162
|
+
/**
|
|
3163
|
+
* @experimental
|
|
3164
|
+
* @hidden
|
|
3165
|
+
*/
|
|
3166
|
+
interface HierarchicalState extends State {
|
|
3167
|
+
path: any[];
|
|
3168
|
+
}
|
|
3169
|
+
interface TransactionService<T extends Transaction, S extends State> {
|
|
3170
|
+
/**
|
|
3171
|
+
* Returns whether transaction is enabled for this service
|
|
3172
|
+
*/
|
|
3173
|
+
readonly enabled: boolean;
|
|
3174
|
+
/**
|
|
3175
|
+
* Gets/Sets the data clone strategy used to clone data
|
|
3176
|
+
*/
|
|
3177
|
+
cloneStrategy: IDataCloneStrategy;
|
|
3178
|
+
/**
|
|
3179
|
+
* Event fired when transaction state has changed - add transaction, commit all transactions, undo and redo
|
|
3180
|
+
*/
|
|
3181
|
+
onStateUpdate?: EventEmitter<StateUpdateEvent>;
|
|
3182
|
+
/**
|
|
3183
|
+
* @returns if there are any transactions in the Undo stack
|
|
3184
|
+
*/
|
|
3185
|
+
canUndo: boolean;
|
|
3186
|
+
/**
|
|
3187
|
+
* @returns if there are any transactions in the Redo stack
|
|
3188
|
+
*/
|
|
3189
|
+
canRedo: boolean;
|
|
3190
|
+
/**
|
|
3191
|
+
* Adds provided transaction with recordRef if any
|
|
3192
|
+
*
|
|
3193
|
+
* @param transaction Transaction to be added
|
|
3194
|
+
* @param recordRef Reference to the value of the record in the data source related to the changed item
|
|
3195
|
+
*/
|
|
3196
|
+
add(transaction: T, recordRef?: any): void;
|
|
3197
|
+
/**
|
|
3198
|
+
* Returns all recorded transactions in chronological order
|
|
3199
|
+
*
|
|
3200
|
+
* @param id Optional record id to get transactions for
|
|
3201
|
+
* @returns All transaction in the service or for the specified record
|
|
3202
|
+
*/
|
|
3203
|
+
getTransactionLog(id?: any): T[];
|
|
3204
|
+
/**
|
|
3205
|
+
* Remove the last transaction if any
|
|
3206
|
+
*/
|
|
3207
|
+
undo(): void;
|
|
3208
|
+
/**
|
|
3209
|
+
* Applies the last undone transaction if any
|
|
3210
|
+
*/
|
|
3211
|
+
redo(): void;
|
|
3212
|
+
/**
|
|
3213
|
+
* Returns aggregated changes from all transactions
|
|
3214
|
+
*
|
|
3215
|
+
* @param mergeChanges If set to true will merge each state's value over relate recordRef
|
|
3216
|
+
* and will record resulting value in the related transaction
|
|
3217
|
+
* @returns Collection of aggregated transactions for each changed record
|
|
3218
|
+
*/
|
|
3219
|
+
getAggregatedChanges(mergeChanges: boolean): T[];
|
|
3220
|
+
/**
|
|
3221
|
+
* Returns the state of the record with provided id
|
|
3222
|
+
*
|
|
3223
|
+
* @param id The id of the record
|
|
3224
|
+
* @param pending Should get pending state
|
|
3225
|
+
* @returns State of the record if any
|
|
3226
|
+
*/
|
|
3227
|
+
getState(id: any, pending?: boolean): S;
|
|
3228
|
+
/**
|
|
3229
|
+
* Returns value of the required id including all uncommitted changes
|
|
3230
|
+
*
|
|
3231
|
+
* @param id The id of the record to return value for
|
|
3232
|
+
* @param mergeChanges If set to true will merge state's value over relate recordRef
|
|
3233
|
+
* and will return merged value
|
|
3234
|
+
* @returns Value with changes or **null**
|
|
3235
|
+
*/
|
|
3236
|
+
getAggregatedValue(id: any, mergeChanges: boolean): any;
|
|
3237
|
+
/**
|
|
3238
|
+
* Applies all transactions over the provided data
|
|
3239
|
+
*
|
|
3240
|
+
* @param data Data source to update
|
|
3241
|
+
* @param id Optional record id to commit transactions for
|
|
3242
|
+
*/
|
|
3243
|
+
commit(data: any[], id?: any): void;
|
|
3244
|
+
/**
|
|
3245
|
+
* Clears all transactions
|
|
3246
|
+
*
|
|
3247
|
+
* @param id Optional record id to clear transactions for
|
|
3248
|
+
*/
|
|
3249
|
+
clear(id?: any): void;
|
|
3250
|
+
/**
|
|
3251
|
+
* Starts pending transactions. All transactions passed after call to startPending
|
|
3252
|
+
* will not be added to transaction log
|
|
3253
|
+
*/
|
|
3254
|
+
startPending(): void;
|
|
3255
|
+
/**
|
|
3256
|
+
* Clears all pending transactions and aggregated pending state. If commit is set to true
|
|
3257
|
+
* commits pending states as single transaction
|
|
3258
|
+
*
|
|
3259
|
+
* @param commit Should commit the pending states
|
|
3260
|
+
*/
|
|
3261
|
+
endPending(commit: boolean): void;
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3559
3264
|
/**
|
|
3560
3265
|
* @hidden
|
|
3561
3266
|
*/
|
|
@@ -3564,7 +3269,7 @@ declare class DataUtil {
|
|
|
3564
3269
|
static treeGridSort(hierarchicalData: ITreeGridRecord[], expressions: ISortingExpression[], sorting?: IGridSortingStrategy, grid?: GridTypeBase): ITreeGridRecord[];
|
|
3565
3270
|
static cloneTreeGridRecord(hierarchicalRecord: ITreeGridRecord): ITreeGridRecord;
|
|
3566
3271
|
static group<T>(data: T[], state: IGroupingState, grouping?: IGridGroupingStrategy, grid?: GridTypeBase, groupsRecords?: any[], fullResult?: IGroupByResult): IGroupByResult;
|
|
3567
|
-
static merge<T>(data: T[], columns: ColumnType[], strategy?: IGridMergeStrategy, activeRowIndexes?:
|
|
3272
|
+
static merge<T>(data: T[], columns: ColumnType[], strategy?: IGridMergeStrategy, activeRowIndexes?: any[], grid?: GridTypeBase): any[];
|
|
3568
3273
|
static page<T>(data: T[], state: IPagingState, dataLength?: number): T[];
|
|
3569
3274
|
static correctPagingState(state: IPagingState, length: number): void;
|
|
3570
3275
|
static getHierarchy(gRow: IGroupByRecord): Array<IGroupByKey>;
|
|
@@ -3682,7 +3387,7 @@ declare class ConnectedPositioningStrategy implements IPositionStrategy {
|
|
|
3682
3387
|
*
|
|
3683
3388
|
* @returns target and element DomRect objects
|
|
3684
3389
|
*/
|
|
3685
|
-
protected calculateElementRectangles(contentElement:
|
|
3390
|
+
protected calculateElementRectangles(contentElement: any, target: Point | HTMLElement): {
|
|
3686
3391
|
targetRect: Partial<DOMRect>;
|
|
3687
3392
|
elementRect: Partial<DOMRect>;
|
|
3688
3393
|
};
|
|
@@ -3763,7 +3468,7 @@ declare abstract class BaseFitPositionStrategy extends ConnectedPositioningStrat
|
|
|
3763
3468
|
* @param element element to fit in viewport
|
|
3764
3469
|
* @param connectedFit connectedFit object containing all necessary parameters
|
|
3765
3470
|
*/
|
|
3766
|
-
protected abstract fitInViewport(element: HTMLElement, connectedFit: ConnectedFit):
|
|
3471
|
+
protected abstract fitInViewport(element: HTMLElement, connectedFit: ConnectedFit): any;
|
|
3767
3472
|
}
|
|
3768
3473
|
|
|
3769
3474
|
/**
|
|
@@ -4322,5 +4027,5 @@ declare global {
|
|
|
4322
4027
|
}
|
|
4323
4028
|
}
|
|
4324
4029
|
|
|
4325
|
-
export { AbsolutePosition, AbsoluteScrollStrategy, ActionStripResourceStringsEN, AutoPositionStrategy, BannerResourceStringsEN, BaseFilteringStrategy, BaseFitPositionStrategy, BaseFormatter, BlockScrollStrategy, ByLevelTreeGridMergeStrategy, CachedDataCloneStrategy, CalendarDay, CalendarResourceStringsEN, CarouselResourceStringsEN, ChipResourceStringsEN, CloseScrollStrategy, ColumnPinningPosition, ComboResourceStringsEN, ConnectedPositioningStrategy, ContainerPositionStrategy, DEFAULT_LOCALE, DataUtil, DatePart, DatePickerResourceStringsEN, DateRangePickerResourceStringsEN, DateRangeType, DateTimeUtil, DefaultDataCloneStrategy, DefaultMergeStrategy, DefaultSortingStrategy, DefaultTreeGridMergeStrategy, EDITOR_PROVIDER, ELEMENTS_TOKEN, ElasticPositionStrategy, ExpressionsTreeUtil, FilterUtil, FilteringExpressionsTree, FilteringExpressionsTreeType, FilteringLogic, FilteringStrategy, FormattedValuesFilteringStrategy, FormattedValuesSortingStrategy, GlobalPositionStrategy, GridColumnDataType, GridResourceStringsEN, GridSummaryCalculationMode, GroupMemberCountSortingStrategy, GroupedRecords, HorizontalAlignment, I18N_FORMATTER, IgxActionStripActionsToken, IgxActionStripToken, IgxAngularAnimationPlayer, IgxAngularAnimationService, IgxBaseTransactionService, IgxBooleanFilteringOperand, IgxCurrencyFormatterPipe, IgxDataRecordSorting, IgxDateFilteringOperand, IgxDateFormatterPipe,
|
|
4326
|
-
export type { Action, AnimationPlayer, AnimationService, CalendarRangeParams, CancelableBrowserEventArgs, CancelableEventArgs, ColumnType, ConnectedFit, CustomDateRange, DatePartDeltas, DatePartInfo, DateRange, DateRangeDescriptor, DayInterval, DayParameter, EditorProvider, EntityType, FieldType,
|
|
4030
|
+
export { AbsolutePosition, AbsoluteScrollStrategy, ActionStripResourceStringsEN, AutoPositionStrategy, BannerResourceStringsEN, BaseFilteringStrategy, BaseFitPositionStrategy, BaseFormatter, BlockScrollStrategy, ByLevelTreeGridMergeStrategy, CachedDataCloneStrategy, CalendarDay, CalendarResourceStringsEN, CarouselResourceStringsEN, ChipResourceStringsEN, CloseScrollStrategy, ColumnPinningPosition, ComboResourceStringsEN, ConnectedPositioningStrategy, ContainerPositionStrategy, DEFAULT_LOCALE, DataUtil, DatePart, DatePickerResourceStringsEN, DateRangePickerResourceStringsEN, DateRangeType, DateTimeUtil, DefaultDataCloneStrategy, DefaultMergeStrategy, DefaultSortingStrategy, DefaultTreeGridMergeStrategy, EDITOR_PROVIDER, ELEMENTS_TOKEN, ElasticPositionStrategy, ExpressionsTreeUtil, FilterUtil, FilteringExpressionsTree, FilteringExpressionsTreeType, FilteringLogic, FilteringStrategy, FormattedValuesFilteringStrategy, FormattedValuesSortingStrategy, GlobalPositionStrategy, GridColumnDataType, GridResourceStringsEN, GridSummaryCalculationMode, GroupMemberCountSortingStrategy, GroupedRecords, HorizontalAlignment, I18N_FORMATTER, IgxActionStripActionsToken, IgxActionStripToken, IgxAngularAnimationPlayer, IgxAngularAnimationService, IgxBaseTransactionService, IgxBooleanFilteringOperand, IgxCurrencyFormatterPipe, IgxDataRecordSorting, IgxDateFilteringOperand, IgxDateFormatterPipe, IgxDateTimeFilteringOperand, IgxFilteringOperand, IgxFlatTransactionFactory, IgxGrouping, IgxHierarchicalTransactionFactory, IgxHierarchicalTransactionService, IgxNavigationCloseDirective, IgxNavigationService, IgxNavigationToggleDirective, IgxNumberFilteringOperand, IgxNumberFormatterPipe, IgxOverlayOutletDirective, IgxOverlayService, IgxPercentFormatterPipe, IgxPickerActionsDirective, IgxPickerClearComponent, IgxPickerToggleComponent, IgxSelectionAPIService, IgxSorting, IgxStringFilteringOperand, IgxStylesRegistrar, IgxTimeFilteringOperand, IgxTouchManager, IgxTransactionService, InputResourceStringsEN, IntlFormatter, ListResourceStringsEN, NAVIGATION_KEYS, NoOpScrollStrategy, NoopFilteringStrategy, NoopSortingStrategy, OffsetMode, PaginatorResourceStringsEN, PagingError, PickerCalendarOrientation, PickerHeaderOrientation, PickerInteractionMode, PlatformUtil, Point, QueryBuilderResourceStringsEN, RelativePosition, RelativePositionStrategy, ScrollStrategy, SortingDirection, THEME_TOKEN, TRANSACTION_TYPE, ThemeToken, TimePickerResourceStringsEN, TransactionEventOrigin, TransactionType, TreeGridFilteringStrategy, TreeGridFormattedValuesFilteringStrategy, TreeGridMatchingRecordsOnlyFilteringStrategy, TreeResourceStringsEN, Util, VerticalAlignment, WEEKDAYS, areEqualArrays, areSameMonth, calendarRange, changei18n, clamp, cloneArray, cloneHierarchicalArray, cloneValue, cloneValueCached, columnFieldPath, compareMaps, copyDescriptors, daysInWeek, first, flatten, formatToParts, generateMonth, getClosestActiveDate, getComponentCssSizeVar, getComponentSize, getComponentTheme, getCurrentResourceStrings, getHierarchy, getNextActiveDate, getPreviousActiveDate, getResizeObserver, getYearRange, intoChunks, isConstructor, isDate, isDateInRanges, isEqual, isHierarchyMatch, isLeftToRight, isNextMonth, isObject, isPreviousMonth, isTree, last, mergeObjects, modulo, normalizeURI, onResourceChangeHandle, parseDate, provideIgniteIntl, recreateExpression, recreateTree, recreateTreeFromFields, registerI18n, rem, resizeObservable, resolveNestedPath, reverseMapper, runAfterRenderOnce, showMessage, toCalendarDay, trackByIdentity, uniqueDates, Size$1 as ɵSize };
|
|
4031
|
+
export type { Action, AnimationPlayer, AnimationService, CalendarRangeParams, CancelableBrowserEventArgs, CancelableEventArgs, ColumnType, ConnectedFit, CustomDateRange, DatePartDeltas, DatePartInfo, DateRange, DateRangeDescriptor, DayInterval, DayParameter, EditorProvider, EntityType, FieldType, GridTypeBase, HierarchicalState, HierarchicalTransaction, HierarchicalTransactionService, IActionStripResourceStrings, IBannerResourceStrings, IBaseCancelableBrowserEventArgs, IBaseCancelableEventArgs, IBaseEventArgs, ICalendarResourceStrings, ICarouselResourceStrings, IChipResourceStrings, IColumnEditorOptions, IColumnPipeArgs, IComboResourceStrings, IDataCloneStrategy, IDateParts, IDatePickerResourceStrings, IDateRangePickerResourceStrings, IExpressionTree, IFieldEditorOptions, IFieldPipeArgs, IFilteringExpression, IFilteringExpressionsTree, IFilteringOperation, IFilteringState, IFilteringStrategy, IGridGroupingStrategy, IGridMergeStrategy, IGridResourceStrings, IGridSortingStrategy, IGroupByExpandState, IGroupByKey, IGroupByRecord, IGroupByResult, IGroupingExpression, IGroupingState, IInputResourceStrings, IListResourceStrings, IMergeByResult, IPaginatorResourceStrings, IPagingState, IPathSegment, IPositionStrategy, IQueryBuilderResourceStrings, IResourceStrings, IScrollStrategy, ISortingExpression, ISortingOptions, ISortingStrategy, ISummaryExpression, ISummaryRecord, ITimePickerResourceStrings, IToggleView, ITreeGridRecord, ITreeResourceStrings, IgcCalendarBaseEventMap, IgxFilterItem, IgxGestureEvent, IgxSummaryResult, IgxTheme, IgxTouchManagerCallbacks, IgxTouchManagerOptions, IgxTreeGridAPIService, KeyOfOrString, MRLColumnSizeInfo, MRLResizeColumnInfo, OverlayAnimationEventArgs, OverlayCancelableEventArgs, OverlayClosingEventArgs, OverlayCreateSettings, OverlayEventArgs, OverlaySettings, PositionSettings, RenderPhase, Size, State, StateUpdateEvent, Transaction, TransactionService, WeekDays };
|