cloud-ide-element 1.0.65 → 1.0.67
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/cloud-ide-element.mjs +164 -15
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +38 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -989,6 +989,7 @@ interface GridEvent<T = Record<string, unknown>> {
|
|
|
989
989
|
targetItem: T;
|
|
990
990
|
targetIndex: number;
|
|
991
991
|
newOrder: T[];
|
|
992
|
+
allOrders?: T[];
|
|
992
993
|
};
|
|
993
994
|
column?: GridColumn;
|
|
994
995
|
action?: GridAction;
|
|
@@ -1070,6 +1071,14 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
1070
1071
|
*/
|
|
1071
1072
|
private refreshOrderTracking;
|
|
1072
1073
|
private applyFilters;
|
|
1074
|
+
/**
|
|
1075
|
+
* Preserve tree expansion state from current data
|
|
1076
|
+
*/
|
|
1077
|
+
private preserveTreeExpansionState;
|
|
1078
|
+
/**
|
|
1079
|
+
* Apply preserved tree expansion state to new data
|
|
1080
|
+
*/
|
|
1081
|
+
private applyTreeExpansionState;
|
|
1073
1082
|
/**
|
|
1074
1083
|
* Transform flat data to tree structure based on foreign key relationships
|
|
1075
1084
|
*/
|
|
@@ -1183,6 +1192,10 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
1183
1192
|
* Get the current order array from the row order map
|
|
1184
1193
|
*/
|
|
1185
1194
|
private getCurrentOrderFromMap;
|
|
1195
|
+
/**
|
|
1196
|
+
* Get only the items that have actually changed order
|
|
1197
|
+
*/
|
|
1198
|
+
private getChangedOrders;
|
|
1186
1199
|
/**
|
|
1187
1200
|
* Update local data order for visual reordering (LOCAL ONLY)
|
|
1188
1201
|
*/
|
|
@@ -1205,6 +1218,31 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
1205
1218
|
* // value === 'test@example.com'
|
|
1206
1219
|
*/
|
|
1207
1220
|
getNestedValue(obj: T, path: string): unknown;
|
|
1221
|
+
/**
|
|
1222
|
+
* Set a nested value in an object using dot notation
|
|
1223
|
+
* @param obj The object to modify
|
|
1224
|
+
* @param path The dot notation path (e.g., 'contact.email')
|
|
1225
|
+
* @param value The value to set
|
|
1226
|
+
* @example
|
|
1227
|
+
* const obj = { contact: { email: 'old@example.com' } };
|
|
1228
|
+
* setNestedValue(obj, 'contact.email', 'new@example.com');
|
|
1229
|
+
* // obj.contact.email === 'new@example.com'
|
|
1230
|
+
*/
|
|
1231
|
+
setNestedValue(obj: T, path: string, value: unknown): void;
|
|
1232
|
+
/**
|
|
1233
|
+
* Compare two order arrays to check if they are different
|
|
1234
|
+
* This method can be used by parent components to check if order has actually changed
|
|
1235
|
+
* @param currentOrder Current order array
|
|
1236
|
+
* @param originalOrder Original order array
|
|
1237
|
+
* @returns true if orders are different, false if they are the same
|
|
1238
|
+
*/
|
|
1239
|
+
compareOrders(currentOrder: Array<{
|
|
1240
|
+
id: string | undefined;
|
|
1241
|
+
order: number | undefined;
|
|
1242
|
+
}>, originalOrder: Array<{
|
|
1243
|
+
id: string | undefined;
|
|
1244
|
+
order: number | undefined;
|
|
1245
|
+
}>): boolean;
|
|
1208
1246
|
formatValue(value: unknown, column: GridColumn): string;
|
|
1209
1247
|
private formatDate;
|
|
1210
1248
|
private formatCurrency;
|