cloud-ide-element 1.1.85 → 1.1.87

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
@@ -3056,7 +3056,7 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
3056
3056
  private extractValueFromRowForTemplateColumn;
3057
3057
  /**
3058
3058
  * Get a stable key for filter value comparison
3059
- * Handles objects by using _id or JSON stringification
3059
+ * Handles objects by using trackBy/primaryKey or JSON stringification
3060
3060
  */
3061
3061
  getFilterValueKey(value: unknown): string;
3062
3062
  formatFilterValue(value: unknown, column: GridColumn): string;
@@ -3076,6 +3076,14 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
3076
3076
  * // value === 'test@example.com'
3077
3077
  */
3078
3078
  getNestedValue(obj: T, path: string): unknown;
3079
+ /**
3080
+ * Extract ID from foreign key value generically
3081
+ * Handles both string IDs and nested objects (e.g., { _id: "...", name: "..." })
3082
+ * @param foreignKeyValue - The foreign key value (can be string, object, or null/undefined)
3083
+ * @param primaryKey - The primary key field name (from tree config or defaults to trackBy or '_id')
3084
+ * @returns The extracted ID as a string, or empty string if not found
3085
+ */
3086
+ private extractIdFromForeignKey;
3079
3087
  /**
3080
3088
  * Set a nested value in an object using dot notation
3081
3089
  * @param obj The object to modify
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-ide-element",
3
- "version": "1.1.85",
3
+ "version": "1.1.87",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0"