intelliwaketssveltekitv25 0.3.19 → 0.3.20
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/dist/Functions.d.ts +0 -1
- package/dist/Functions.js +0 -2
- package/dist/InputNumber.svelte +3 -3
- package/package.json +1 -1
package/dist/Functions.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export declare const DownloadBase64Data: (fileName: string, base64: string) => v
|
|
|
25
25
|
export declare function CopyRefToClipboard(ref: HTMLElement | null | undefined, tryFormatted?: boolean): boolean;
|
|
26
26
|
export declare const TableIDToExcel: (tableID: string, fileName?: string, appendDateTime?: boolean) => void;
|
|
27
27
|
export declare const DoIDsMatch: (a: any, b: any) => boolean;
|
|
28
|
-
export declare const IsProd: () => boolean;
|
|
29
28
|
/**
|
|
30
29
|
* A Svelte "Use Action" that transfers focus to the current element when the object is added to the DOM
|
|
31
30
|
* Usage: <input use:autoFocus />
|
package/dist/Functions.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CleanNumberNull, IsEqual, isNullUndefined, ReplaceAll, YYYY_MM_DD_HH_mm_ss } from '@solidbasisventures/intelliwaketsfoundation';
|
|
2
|
-
import { env } from '$env/dynamic/public';
|
|
3
2
|
import { tick } from 'svelte';
|
|
4
3
|
import { goto } from '$app/navigation';
|
|
5
4
|
import { browser } from '$app/environment';
|
|
@@ -176,7 +175,6 @@ export const TableIDToExcel = (tableID, fileName, appendDateTime = true) => {
|
|
|
176
175
|
a.click();
|
|
177
176
|
};
|
|
178
177
|
export const DoIDsMatch = (a, b) => IsEqual(a, b) || IsEqual(a?.id, b?.id);
|
|
179
|
-
export const IsProd = () => !!env.VITE_APP_STAGE?.toLowerCase().startsWith('prod');
|
|
180
178
|
/**
|
|
181
179
|
* A Svelte "Use Action" that transfers focus to the current element when the object is added to the DOM
|
|
182
180
|
* Usage: <input use:autoFocus />
|
package/dist/InputNumber.svelte
CHANGED
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
} else {
|
|
55
55
|
const workingValue = useValue * (ro ? 1 : displayMultiplier)
|
|
56
56
|
newDisplayValue = ToNumberString(workingValue, {
|
|
57
|
-
currency: !!
|
|
58
|
-
percent: !!
|
|
59
|
-
fixedDecimals,
|
|
57
|
+
currency: !!currency && ro,
|
|
58
|
+
percent: !!percent && ro,
|
|
59
|
+
fixedDecimals: fixedDecimals ?? (currency ? 2 : percent ? 0 : undefined),
|
|
60
60
|
minDecimals,
|
|
61
61
|
maxDecimals,
|
|
62
62
|
zeroBlank,
|