@gisce/ooui 2.45.0 → 2.45.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"SearchFilter.d.ts","sourceRoot":"","sources":["../src/SearchFilter.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAO,MAAM,gBAAgB,EAAE,GAY9B,CAAC;AAEF,cAAM,YAAY;IAChB;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC;IACnB,IAAI,YAAY,QAEf;IAED;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,MAAM,QAET;IAED,sBAAsB,EAAE,SAAS,CAAC;IAClC,IAAI,qBAAqB,IAAI,SAAS,CAErC;IAED,wBAAwB,EAAE,SAAS,CAAC;IACpC,IAAI,uBAAuB,IAAI,SAAS,CAEvC;gBAEW,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,MAAU;IAOrE,KAAK;IAqBL,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,aAAa;IAiBhE;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAGpC;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"SearchFilter.d.ts","sourceRoot":"","sources":["../src/SearchFilter.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAO,MAAM,gBAAgB,EAAE,GAY9B,CAAC;AAEF,cAAM,YAAY;IAChB;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC;IACnB,IAAI,YAAY,QAEf;IAED;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,MAAM,QAET;IAED,sBAAsB,EAAE,SAAS,CAAC;IAClC,IAAI,qBAAqB,IAAI,SAAS,CAErC;IAED,wBAAwB,EAAE,SAAS,CAAC;IACpC,IAAI,uBAAuB,IAAI,SAAS,CAEvC;gBAEW,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,MAAU;IAOrE,KAAK;IAqBL,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,aAAa;IA6BhE;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAGpC;AAED,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetFactory.d.ts","sourceRoot":"","sources":["../src/WidgetFactory.ts"],"names":[],"mappings":"AAkDA,cAAM,aAAa;IACjB;;OAEG;IACH,YAAY,EAAE,GAAG,CAAC;IAElB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAgKlC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;CAmCtC;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"WidgetFactory.d.ts","sourceRoot":"","sources":["../src/WidgetFactory.ts"],"names":[],"mappings":"AAiDA,cAAM,aAAa;IACjB;;OAEG;IACH,YAAY,EAAE,GAAG,CAAC;IAElB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAgKlC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;CAmCtC;AAED,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fieldParser.d.ts","sourceRoot":"","sources":["../../src/helpers/fieldParser.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,EAC/B,MAAW,EACX,SAAS,EACT,MAAW,GACZ,EAAE;IACD,MAAM,EAAE,GAAG,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,GAAG,CAAC;CACb,OAkBA"}
1
+ {"version":3,"file":"fieldParser.d.ts","sourceRoot":"","sources":["../../src/helpers/fieldParser.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,EAC/B,MAAW,EACX,SAAS,EACT,MAAW,GACZ,EAAE;IACD,MAAM,EAAE,GAAG,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,GAAG,CAAC;CACb,OAkBA"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * ID Utilities for safe handling of BigInt and non-numeric IDs
3
+ *
4
+ * This module provides utilities for safely parsing and comparing IDs that may:
5
+ * - Exceed JavaScript's MAX_SAFE_INTEGER (BigInt IDs from PostgreSQL timeseries)
6
+ * - Be non-numeric (UUIDs, alphanumeric identifiers, etc.)
7
+ * - Be negative (temporary/new record IDs)
8
+ */
9
+ /**
10
+ * Safely parse an ID value.
11
+ *
12
+ * - If the value is already a number, return it as-is
13
+ * - If the value is a string representing a number within MAX_SAFE_INTEGER, return as number
14
+ * - If the value is a string representing a number LARGER than MAX_SAFE_INTEGER, return as string
15
+ * - If the value is a non-numeric string (UUID, alphanumeric, etc.), return as string
16
+ * - If the value is null/undefined, return null
17
+ *
18
+ * This preserves backward compatibility for normal IDs while preventing
19
+ * precision loss for BigInt IDs and supporting non-numeric ID formats.
20
+ */
21
+ export declare function safeParseId(value: unknown): number | string | null;
22
+ /**
23
+ * Check if an ID is a BigInt (exceeds MAX_SAFE_INTEGER)
24
+ */
25
+ export declare function isBigIntId(value: unknown): boolean;
26
+ /**
27
+ * Check if an ID represents a temporary/new record (negative number)
28
+ * Note: Only numeric negative IDs are considered temporary.
29
+ * Non-numeric strings (UUIDs, etc.) are NOT temp IDs.
30
+ */
31
+ export declare function isTempId(value: unknown): boolean;
32
+ /**
33
+ * Check if an ID represents an existing record
34
+ * - Positive numbers: existing
35
+ * - BigInt strings: existing (server returns them)
36
+ * - Non-numeric strings (UUIDs, etc.): existing (server returns them)
37
+ * - Negative numbers: NOT existing (temp/new record)
38
+ * - null/undefined: NOT existing
39
+ */
40
+ export declare function isExistingId(value: unknown): boolean;
41
+ /**
42
+ * Compare two IDs for equality (handles mixed number/string)
43
+ */
44
+ export declare function idsEqual(a: unknown, b: unknown): boolean;
45
+ /**
46
+ * Compare two IDs for sorting (descending by default)
47
+ * Works correctly for:
48
+ * - Normal numeric IDs
49
+ * - BigInt IDs (string)
50
+ * - Non-numeric IDs like UUIDs (lexicographic sort)
51
+ */
52
+ export declare function compareIds(a: unknown, b: unknown, descending?: boolean): number;
53
+ //# sourceMappingURL=idUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"idUtils.d.ts","sourceRoot":"","sources":["../../src/helpers/idUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAkDlE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAWlD;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAQhD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAOpD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAQxD;AASD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,UAAO,GAAG,MAAM,CA0C5E"}