igniteui-angular 22.1.0-beta.4 → 22.1.0-beta.6
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 +3 -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 +3 -2
- 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 +2 -2
- package/fesm2022/igniteui-angular-button-group.mjs.map +1 -1
- package/fesm2022/igniteui-angular-calendar.mjs +9 -8
- package/fesm2022/igniteui-angular-calendar.mjs.map +1 -1
- package/fesm2022/igniteui-angular-card.mjs +2 -2
- 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 +6 -17
- package/fesm2022/igniteui-angular-combo.mjs.map +1 -1
- package/fesm2022/igniteui-angular-core.mjs +337 -16
- package/fesm2022/igniteui-angular-core.mjs.map +1 -1
- package/fesm2022/igniteui-angular-date-picker.mjs +14 -12
- 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 +67 -48
- package/fesm2022/igniteui-angular-directives.mjs.map +1 -1
- package/fesm2022/igniteui-angular-drop-down.mjs +2 -3
- package/fesm2022/igniteui-angular-drop-down.mjs.map +1 -1
- package/fesm2022/igniteui-angular-expansion-panel.mjs +12 -23
- package/fesm2022/igniteui-angular-expansion-panel.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-core.mjs +223 -491
- package/fesm2022/igniteui-angular-grids-core.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-grid.mjs +98 -116
- package/fesm2022/igniteui-angular-grids-grid.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-hierarchical-grid.mjs +21 -16
- 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 +153 -75
- package/fesm2022/igniteui-angular-grids-pivot-grid.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-tree-grid.mjs +35 -28
- 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 +19 -4
- 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 +3 -2
- package/fesm2022/igniteui-angular-navigation-drawer.mjs.map +1 -1
- package/fesm2022/igniteui-angular-paginator.mjs +2 -1
- package/fesm2022/igniteui-angular-paginator.mjs.map +1 -1
- package/fesm2022/igniteui-angular-progressbar.mjs +2 -5
- package/fesm2022/igniteui-angular-progressbar.mjs.map +1 -1
- package/fesm2022/igniteui-angular-query-builder.mjs +21 -20
- 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 +7 -10
- 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 +6 -3
- package/fesm2022/igniteui-angular-time-picker.mjs.map +1 -1
- package/fesm2022/igniteui-angular-tree.mjs +10 -8
- package/fesm2022/igniteui-angular-tree.mjs.map +1 -1
- package/lib/core/styles/components/button/_button-theme.scss +24 -31
- package/lib/core/styles/components/icon-button/_icon-button-theme.scss +21 -0
- package/lib/core/styles/spec/_mixins.spec.scss +21 -1
- package/lib/core/styles/themes/_scoping.scss +12 -0
- package/lib/core/styles/themes/generators/_base.scss +0 -1
- package/lib/grids/core/src/filtering/excel-style/themes/_derived.scss +3 -2
- package/migrations/migration-collection.json +7 -0
- package/migrations/update-22_1_0_import-migration/index.d.ts +2 -0
- package/migrations/update-22_1_0_import-migration/index.js +228 -0
- package/migrations/update-22_1_0_import-migration/index.spec.d.ts +1 -0
- package/migrations/update-22_1_0_import-migration/index.spec.js +188 -0
- package/package.json +1 -1
- package/styles/igniteui-angular-dark.css +1 -1
- package/styles/igniteui-angular.css +1 -1
- package/styles/igniteui-bootstrap-dark.css +1 -1
- package/styles/igniteui-bootstrap-light.css +1 -1
- package/styles/igniteui-dark-green.css +1 -1
- package/styles/igniteui-fluent-dark-excel.css +1 -1
- package/styles/igniteui-fluent-dark-word.css +1 -1
- package/styles/igniteui-fluent-dark.css +1 -1
- package/styles/igniteui-fluent-light-excel.css +1 -1
- package/styles/igniteui-fluent-light-word.css +1 -1
- package/styles/igniteui-fluent-light.css +1 -1
- package/styles/igniteui-indigo-dark.css +1 -1
- package/styles/igniteui-indigo-light.css +1 -1
- package/styles/maps/igniteui-angular-dark.css.map +1 -1
- package/styles/maps/igniteui-angular.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
- package/styles/maps/igniteui-dark-green.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-light.css.map +1 -1
- package/styles/maps/igniteui-indigo-dark.css.map +1 -1
- package/styles/maps/igniteui-indigo-light.css.map +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 +2 -2
- 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 +13 -17
- package/types/igniteui-angular-core.d.ts +495 -200
- 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 +59 -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 +782 -1044
- package/types/igniteui-angular-grids-grid.d.ts +267 -104
- package/types/igniteui-angular-grids-hierarchical-grid.d.ts +547 -68
- package/types/igniteui-angular-grids-lite.d.ts +7 -7
- package/types/igniteui-angular-grids-pivot-grid.d.ts +129 -94
- package/types/igniteui-angular-grids-tree-grid.d.ts +51 -5
- package/types/igniteui-angular-icon.d.ts +2 -2
- package/types/igniteui-angular-input-group.d.ts +19 -6
- 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 +0 -1
- 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
|
@@ -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 | undefined);
|
|
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 | null;
|
|
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> | undefined;
|
|
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 | null;
|
|
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): OverlayInfo;
|
|
1106
|
+
getOverlayById(id: string | undefined): 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): void;
|
|
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): void;
|
|
1226
1226
|
/**
|
|
1227
1227
|
* Attaches the strategy
|
|
1228
1228
|
* ```typescript
|
|
@@ -2046,6 +2046,385 @@ 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
|
+
|
|
2049
2428
|
/**
|
|
2050
2429
|
* Minimal type stubs for grid types to avoid circular dependencies.
|
|
2051
2430
|
* These are simple interfaces that core uses for typing only.
|
|
@@ -2222,7 +2601,8 @@ interface ColumnType extends FieldType {
|
|
|
2222
2601
|
* Custom CSS styling, applied to every column
|
|
2223
2602
|
* calcWidth, minWidthPx, maxWidthPx, minWidth, maxWidth, minWidthPercent, maxWidthPercent, resolvedWidth
|
|
2224
2603
|
*/
|
|
2225
|
-
calcWidth:
|
|
2604
|
+
calcWidth: string | number | null;
|
|
2605
|
+
defaultWidth: string;
|
|
2226
2606
|
minWidthPx: number;
|
|
2227
2607
|
maxWidthPx: number;
|
|
2228
2608
|
minWidth: string;
|
|
@@ -2248,7 +2628,7 @@ interface ColumnType extends FieldType {
|
|
|
2248
2628
|
/**
|
|
2249
2629
|
* Sets properties on the default column editors
|
|
2250
2630
|
*/
|
|
2251
|
-
editorOptions
|
|
2631
|
+
editorOptions?: IColumnEditorOptions;
|
|
2252
2632
|
/**
|
|
2253
2633
|
* The template reference for the custom inline editor of the column
|
|
2254
2634
|
* It is of type TemplateRef, which represents an embedded template, used to instantiate embedded views
|
|
@@ -2304,7 +2684,7 @@ interface ColumnType extends FieldType {
|
|
|
2304
2684
|
*/
|
|
2305
2685
|
filteringExpressionsTree: FilteringExpressionsTree;
|
|
2306
2686
|
hasSummary: boolean;
|
|
2307
|
-
summaries:
|
|
2687
|
+
summaries: IgxSummaryOperand;
|
|
2308
2688
|
disabledSummaries?: string[];
|
|
2309
2689
|
/**
|
|
2310
2690
|
* The template reference for a summary of the column
|
|
@@ -2457,6 +2837,99 @@ interface ISummaryRecord {
|
|
|
2457
2837
|
max?: number;
|
|
2458
2838
|
cellIndentation?: number;
|
|
2459
2839
|
}
|
|
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>>;
|
|
2460
2933
|
/**
|
|
2461
2934
|
* Enumeration representing different calculation modes for grid summaries.
|
|
2462
2935
|
* - rootLevelOnly: Summaries are calculated only for the root level.
|
|
@@ -2759,29 +3232,6 @@ declare function getYearRange(current: DayParameter, range: number): {
|
|
|
2759
3232
|
declare function isDateInRanges(date: DayParameter, ranges: DateRangeDescriptor[]): boolean;
|
|
2760
3233
|
declare function formatToParts(date: Date, locale: string, options: Intl.DateTimeFormatOptions, parts: string[]): Record<string, any>;
|
|
2761
3234
|
|
|
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
|
-
|
|
2785
3235
|
declare class FilterUtil {
|
|
2786
3236
|
static filter<T>(data: T[], state: IFilteringState, grid?: GridTypeBase): T[];
|
|
2787
3237
|
}
|
|
@@ -2829,7 +3279,7 @@ declare class FormattedValuesFilteringStrategy extends FilteringStrategy {
|
|
|
2829
3279
|
* @param fields An array of column field names that should be formatted.
|
|
2830
3280
|
* If omitted the values of all columns which has formatter will be formatted.
|
|
2831
3281
|
*/
|
|
2832
|
-
constructor(fields?: string[]);
|
|
3282
|
+
constructor(fields?: string[] | undefined);
|
|
2833
3283
|
protected shouldFormatFilterValues(column: ColumnType): boolean;
|
|
2834
3284
|
}
|
|
2835
3285
|
|
|
@@ -2840,8 +3290,8 @@ declare interface IFilteringState {
|
|
|
2840
3290
|
}
|
|
2841
3291
|
|
|
2842
3292
|
declare class TreeGridFilteringStrategy extends BaseFilteringStrategy {
|
|
2843
|
-
hierarchicalFilterFields?: string[];
|
|
2844
|
-
constructor(hierarchicalFilterFields?: string[]);
|
|
3293
|
+
hierarchicalFilterFields?: string[] | undefined;
|
|
3294
|
+
constructor(hierarchicalFilterFields?: string[] | undefined);
|
|
2845
3295
|
filter(data: ITreeGridRecord[], expressionsTree: IFilteringExpressionsTree, advancedExpressionsTree?: IFilteringExpressionsTree, grid?: GridTypeBase): ITreeGridRecord[];
|
|
2846
3296
|
protected getFieldValue(rec: any, fieldName: string, isDate?: boolean, isTime?: boolean, grid?: GridTypeBase): any;
|
|
2847
3297
|
private getHierarchicalFieldValue;
|
|
@@ -2859,7 +3309,7 @@ declare class TreeGridFormattedValuesFilteringStrategy extends TreeGridFiltering
|
|
|
2859
3309
|
* @param fields An array of column field names that should be formatted.
|
|
2860
3310
|
* If omitted the values of all columns which has formatter will be formatted.
|
|
2861
3311
|
*/
|
|
2862
|
-
constructor(fields?: string[]);
|
|
3312
|
+
constructor(fields?: string[] | undefined);
|
|
2863
3313
|
protected shouldFormatFilterValues(column: ColumnType): boolean;
|
|
2864
3314
|
}
|
|
2865
3315
|
declare class TreeGridMatchingRecordsOnlyFilteringStrategy extends TreeGridFilteringStrategy {
|
|
@@ -2890,7 +3340,7 @@ interface IGridMergeStrategy {
|
|
|
2890
3340
|
declare class DefaultMergeStrategy implements IGridMergeStrategy {
|
|
2891
3341
|
protected static _instance: DefaultMergeStrategy;
|
|
2892
3342
|
static instance(): DefaultMergeStrategy;
|
|
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[];
|
|
3343
|
+
merge(data: any[], field: string, comparer: ((prevRecord: any, record: any, field: string, isDate?: boolean, isTime?: boolean) => boolean) | undefined, result: any[], activeRowIndexes: number[], isDate?: boolean, isTime?: boolean, grid?: GridTypeBase): any[];
|
|
2894
3344
|
comparer(prevRecord: any, record: any, field: string, isDate?: boolean, isTime?: boolean): boolean;
|
|
2895
3345
|
/**
|
|
2896
3346
|
* Retrieves the value of the specified field from the given object, considering date and time data types.
|
|
@@ -2904,7 +3354,7 @@ declare class DefaultMergeStrategy implements IGridMergeStrategy {
|
|
|
2904
3354
|
/**
|
|
2905
3355
|
* @internal
|
|
2906
3356
|
*/
|
|
2907
|
-
protected getDateValue<T>(obj: T, isDate?: boolean, isTime?: boolean):
|
|
3357
|
+
protected getDateValue<T>(obj: T, isDate?: boolean, isTime?: boolean): number | undefined;
|
|
2908
3358
|
}
|
|
2909
3359
|
declare class DefaultTreeGridMergeStrategy extends DefaultMergeStrategy {
|
|
2910
3360
|
comparer(prevRecord: any, record: any, field: string, isDate?: boolean, isTime?: boolean): boolean;
|
|
@@ -2970,22 +3420,6 @@ interface IGroupByKey {
|
|
|
2970
3420
|
value: any;
|
|
2971
3421
|
}
|
|
2972
3422
|
|
|
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
|
-
|
|
2989
3423
|
interface IGroupingExpression extends ISortingExpression {
|
|
2990
3424
|
groupingComparer?: (a: any, b: any, currRec?: any, groupRec?: any) => number;
|
|
2991
3425
|
}
|
|
@@ -3076,7 +3510,7 @@ declare class IgxGrouping extends IgxSorting implements IGridGroupingStrategy {
|
|
|
3076
3510
|
* Returns an array containing the visible grouped result.
|
|
3077
3511
|
* @internal
|
|
3078
3512
|
*/
|
|
3079
|
-
protected groupData(data: any[], state: IGroupingState, grid: GridTypeBase, groupsRecords: any[], fullResult: IGroupByResult): IGroupByResult;
|
|
3513
|
+
protected groupData(data: any[], state: IGroupingState, grid: GridTypeBase | undefined, groupsRecords: any[] | undefined, fullResult: IGroupByResult): IGroupByResult;
|
|
3080
3514
|
/**
|
|
3081
3515
|
* Groups the records in the provided data array based on the given grouping expression.
|
|
3082
3516
|
* `groupingComparer`: (Optional) A custom grouping comparator to determine the members of the group.
|
|
@@ -3122,145 +3556,6 @@ declare interface IPagingState {
|
|
|
3122
3556
|
};
|
|
3123
3557
|
}
|
|
3124
3558
|
|
|
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
|
-
|
|
3264
3559
|
/**
|
|
3265
3560
|
* @hidden
|
|
3266
3561
|
*/
|
|
@@ -3269,7 +3564,7 @@ declare class DataUtil {
|
|
|
3269
3564
|
static treeGridSort(hierarchicalData: ITreeGridRecord[], expressions: ISortingExpression[], sorting?: IGridSortingStrategy, grid?: GridTypeBase): ITreeGridRecord[];
|
|
3270
3565
|
static cloneTreeGridRecord(hierarchicalRecord: ITreeGridRecord): ITreeGridRecord;
|
|
3271
3566
|
static group<T>(data: T[], state: IGroupingState, grouping?: IGridGroupingStrategy, grid?: GridTypeBase, groupsRecords?: any[], fullResult?: IGroupByResult): IGroupByResult;
|
|
3272
|
-
static merge<T>(data: T[], columns: ColumnType[], strategy?: IGridMergeStrategy, activeRowIndexes?:
|
|
3567
|
+
static merge<T>(data: T[], columns: ColumnType[], strategy?: IGridMergeStrategy, activeRowIndexes?: number[], grid?: GridTypeBase): any[];
|
|
3273
3568
|
static page<T>(data: T[], state: IPagingState, dataLength?: number): T[];
|
|
3274
3569
|
static correctPagingState(state: IPagingState, length: number): void;
|
|
3275
3570
|
static getHierarchy(gRow: IGroupByRecord): Array<IGroupByKey>;
|
|
@@ -3387,7 +3682,7 @@ declare class ConnectedPositioningStrategy implements IPositionStrategy {
|
|
|
3387
3682
|
*
|
|
3388
3683
|
* @returns target and element DomRect objects
|
|
3389
3684
|
*/
|
|
3390
|
-
protected calculateElementRectangles(contentElement:
|
|
3685
|
+
protected calculateElementRectangles(contentElement: HTMLElement, target: Point | HTMLElement): {
|
|
3391
3686
|
targetRect: Partial<DOMRect>;
|
|
3392
3687
|
elementRect: Partial<DOMRect>;
|
|
3393
3688
|
};
|
|
@@ -3468,7 +3763,7 @@ declare abstract class BaseFitPositionStrategy extends ConnectedPositioningStrat
|
|
|
3468
3763
|
* @param element element to fit in viewport
|
|
3469
3764
|
* @param connectedFit connectedFit object containing all necessary parameters
|
|
3470
3765
|
*/
|
|
3471
|
-
protected abstract fitInViewport(element: HTMLElement, connectedFit: ConnectedFit):
|
|
3766
|
+
protected abstract fitInViewport(element: HTMLElement, connectedFit: ConnectedFit): void;
|
|
3472
3767
|
}
|
|
3473
3768
|
|
|
3474
3769
|
/**
|
|
@@ -4027,5 +4322,5 @@ declare global {
|
|
|
4027
4322
|
}
|
|
4028
4323
|
}
|
|
4029
4324
|
|
|
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 };
|
|
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, IgxDateSummaryOperand, IgxDateTimeFilteringOperand, IgxFilteringOperand, IgxFlatTransactionFactory, IgxGridTransaction, IgxGrouping, IgxHierarchicalTransactionFactory, IgxHierarchicalTransactionService, IgxNavigationCloseDirective, IgxNavigationService, IgxNavigationToggleDirective, IgxNumberFilteringOperand, IgxNumberFormatterPipe, IgxNumberSummaryOperand, IgxOverlayOutletDirective, IgxOverlayService, IgxPercentFormatterPipe, IgxPickerActionsDirective, IgxPickerClearComponent, IgxPickerToggleComponent, IgxSelectionAPIService, IgxSorting, IgxStringFilteringOperand, IgxStylesRegistrar, IgxSummaryOperand, IgxTimeFilteringOperand, IgxTimeSummaryOperand, 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 };
|
|
4326
|
+
export type { Action, AnimationPlayer, AnimationService, CalendarRangeParams, CancelableBrowserEventArgs, CancelableEventArgs, ColumnType, ConnectedFit, CustomDateRange, DatePartDeltas, DatePartInfo, DateRange, DateRangeDescriptor, DayInterval, DayParameter, EditorProvider, EntityType, FieldType, GridSelectionRange, GridTypeBase, HierarchicalState, HierarchicalTransaction, HierarchicalTransactionService, IActionStripResourceStrings, IBannerResourceStrings, IBaseCancelableBrowserEventArgs, IBaseCancelableEventArgs, IBaseEventArgs, ICalendarResourceStrings, ICarouselResourceStrings, IChipResourceStrings, IColumnEditorOptions, IColumnPipeArgs, IColumnSelectionState, 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, IMultiRowLayoutNode, IPaginatorResourceStrings, IPagingState, IPathSegment, IPositionStrategy, IQueryBuilderResourceStrings, IResourceStrings, IScrollStrategy, ISelectionKeyboardState, ISelectionNode, ISelectionPointerState, 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, SelectionState, Size, State, StateUpdateEvent, Transaction, TransactionService, WeekDays };
|