cloud-ide-element 1.0.64 → 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/index.d.ts CHANGED
@@ -836,7 +836,6 @@ declare class CideEleFileImageDirective implements OnInit, OnDestroy {
836
836
  ngOnDestroy(): void;
837
837
  private loadImage;
838
838
  private displayImage;
839
- private isImageFile;
840
839
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFileImageDirective, never>;
841
840
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CideEleFileImageDirective, "[cideEleFileImage]", never, { "fileId": { "alias": "fileId"; "required": false; }; "altText": { "alias": "altText"; "required": false; }; }, {}, never, never, true, never>;
842
841
  }
@@ -990,6 +989,7 @@ interface GridEvent<T = Record<string, unknown>> {
990
989
  targetItem: T;
991
990
  targetIndex: number;
992
991
  newOrder: T[];
992
+ allOrders?: T[];
993
993
  };
994
994
  column?: GridColumn;
995
995
  action?: GridAction;
@@ -1184,6 +1184,10 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
1184
1184
  * Get the current order array from the row order map
1185
1185
  */
1186
1186
  private getCurrentOrderFromMap;
1187
+ /**
1188
+ * Get only the items that have actually changed order
1189
+ */
1190
+ private getChangedOrders;
1187
1191
  /**
1188
1192
  * Update local data order for visual reordering (LOCAL ONLY)
1189
1193
  */
@@ -1206,6 +1210,31 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
1206
1210
  * // value === 'test@example.com'
1207
1211
  */
1208
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;
1209
1238
  formatValue(value: unknown, column: GridColumn): string;
1210
1239
  private formatDate;
1211
1240
  private formatCurrency;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-ide-element",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0"