@bexis2/bexis2-core-ui 0.4.104 → 0.4.105

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/README.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # bexis-core-ui
2
+ ## 0.4.105
3
+ - Server Table
4
+ - fix missing values for floats are detected as integer (and converted to bigint)
5
+
2
6
  ## 0.4.104
3
7
  - Description
4
8
  - always return description from input container
@@ -181,7 +181,9 @@ export const updateTable = async (pageSize, pageIndex, server, filters, data, se
181
181
  // If the parser thinks it's a number, but we have the raw source text
182
182
  if (context && context.source && typeof value === 'number') {
183
183
  // Check if the number exceeds JavaScript's safe integer limit
184
- if (!Number.isSafeInteger(value)) {
184
+ // and that the source is actually an integer (not a float or
185
+ // scientific-notation value like 1.79769313486232E+307)
186
+ if (/^-?\d+$/.test(context.source) && !Number.isSafeInteger(value)) {
185
187
  // Return it natively as a JavaScript BigInt (e.g., 9223372036854775806n)
186
188
  return BigInt(context.source);
187
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bexis2/bexis2-core-ui",
3
- "version": "0.4.104",
3
+ "version": "0.4.105",
4
4
  "private": false,
5
5
  "description": "Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).",
6
6
  "keywords": [
@@ -230,7 +230,9 @@ export const updateTable = async (
230
230
  // If the parser thinks it's a number, but we have the raw source text
231
231
  if (context && context.source && typeof value === 'number') {
232
232
  // Check if the number exceeds JavaScript's safe integer limit
233
- if (!Number.isSafeInteger(value)) {
233
+ // and that the source is actually an integer (not a float or
234
+ // scientific-notation value like 1.79769313486232E+307)
235
+ if (/^-?\d+$/.test(context.source) && !Number.isSafeInteger(value)) {
234
236
  // Return it natively as a JavaScript BigInt (e.g., 9223372036854775806n)
235
237
  return BigInt(context.source);
236
238
  }