cloud-ide-element 1.0.65 → 1.0.66
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 +100 -15
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +30 -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;
|
|
@@ -1183,6 +1184,10 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
1183
1184
|
* Get the current order array from the row order map
|
|
1184
1185
|
*/
|
|
1185
1186
|
private getCurrentOrderFromMap;
|
|
1187
|
+
/**
|
|
1188
|
+
* Get only the items that have actually changed order
|
|
1189
|
+
*/
|
|
1190
|
+
private getChangedOrders;
|
|
1186
1191
|
/**
|
|
1187
1192
|
* Update local data order for visual reordering (LOCAL ONLY)
|
|
1188
1193
|
*/
|
|
@@ -1205,6 +1210,31 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
1205
1210
|
* // value === 'test@example.com'
|
|
1206
1211
|
*/
|
|
1207
1212
|
getNestedValue(obj: T, path: string): unknown;
|
|
1213
|
+
/**
|
|
1214
|
+
* Set a nested value in an object using dot notation
|
|
1215
|
+
* @param obj The object to modify
|
|
1216
|
+
* @param path The dot notation path (e.g., 'contact.email')
|
|
1217
|
+
* @param value The value to set
|
|
1218
|
+
* @example
|
|
1219
|
+
* const obj = { contact: { email: 'old@example.com' } };
|
|
1220
|
+
* setNestedValue(obj, 'contact.email', 'new@example.com');
|
|
1221
|
+
* // obj.contact.email === 'new@example.com'
|
|
1222
|
+
*/
|
|
1223
|
+
setNestedValue(obj: T, path: string, value: unknown): void;
|
|
1224
|
+
/**
|
|
1225
|
+
* Compare two order arrays to check if they are different
|
|
1226
|
+
* This method can be used by parent components to check if order has actually changed
|
|
1227
|
+
* @param currentOrder Current order array
|
|
1228
|
+
* @param originalOrder Original order array
|
|
1229
|
+
* @returns true if orders are different, false if they are the same
|
|
1230
|
+
*/
|
|
1231
|
+
compareOrders(currentOrder: Array<{
|
|
1232
|
+
id: string | undefined;
|
|
1233
|
+
order: number | undefined;
|
|
1234
|
+
}>, originalOrder: Array<{
|
|
1235
|
+
id: string | undefined;
|
|
1236
|
+
order: number | undefined;
|
|
1237
|
+
}>): boolean;
|
|
1208
1238
|
formatValue(value: unknown, column: GridColumn): string;
|
|
1209
1239
|
private formatDate;
|
|
1210
1240
|
private formatCurrency;
|