intelliwaketssveltekitv25 0.1.83 → 0.1.85
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/DropDownControl.svelte +0 -2
- package/dist/Functions.d.ts +2 -1
- package/dist/InputCurrency.svelte +2 -0
- package/dist/InputCurrency.svelte.d.ts +1 -1
- package/dist/InputNumber.svelte +2 -0
- package/dist/InputNumber.svelte.d.ts +1 -1
- package/dist/InputPercent.svelte +2 -0
- package/dist/InputPercent.svelte.d.ts +1 -1
- package/package.json +1 -1
package/dist/Functions.d.ts
CHANGED
|
@@ -192,7 +192,7 @@ export declare function IsMobileOrTablet(): boolean;
|
|
|
192
192
|
*/
|
|
193
193
|
export declare function DownloadString(filename: string, text: string): void;
|
|
194
194
|
export declare function HandleKeyDownNumerics(event: KeyboardEvent, allowDecimals?: boolean): void;
|
|
195
|
-
export type TInputNumberAttributes = HTMLInputAttributes & {
|
|
195
|
+
export type TInputNumberAttributes = Omit<HTMLInputAttributes, 'this'> & {
|
|
196
196
|
value: number | null;
|
|
197
197
|
onchange?: (value: number | null) => void;
|
|
198
198
|
inputClass?: string;
|
|
@@ -204,4 +204,5 @@ export type TInputNumberAttributes = HTMLInputAttributes & {
|
|
|
204
204
|
suffix?: string;
|
|
205
205
|
shiftDigits?: number;
|
|
206
206
|
use?: ActionArray;
|
|
207
|
+
thisRef?: HTMLInputElement;
|
|
207
208
|
};
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
let {
|
|
6
6
|
value = $bindable(),
|
|
7
7
|
decimals = 2,
|
|
8
|
+
thisRef = $bindable<HTMLInputElement>(),
|
|
8
9
|
...otherProps
|
|
9
10
|
}: TInputNumberAttributes = $props()
|
|
10
11
|
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<InputNumber bind:value
|
|
15
|
+
bind:thisRef
|
|
14
16
|
{decimals}
|
|
15
17
|
{...otherProps}
|
|
16
18
|
prefix="$"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { TInputNumberAttributes } from './Functions';
|
|
2
|
-
declare const InputCurrency: import("svelte").Component<TInputNumberAttributes, {}, "value">;
|
|
2
|
+
declare const InputCurrency: import("svelte").Component<TInputNumberAttributes, {}, "value" | "thisRef">;
|
|
3
3
|
type InputCurrency = ReturnType<typeof InputCurrency>;
|
|
4
4
|
export default InputCurrency;
|
package/dist/InputNumber.svelte
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
suffix,
|
|
18
18
|
shiftDigits = 0,
|
|
19
19
|
use = [],
|
|
20
|
+
thisRef = $bindable<HTMLInputElement>(),
|
|
20
21
|
...otherProps
|
|
21
22
|
}: TInputNumberAttributes = $props()
|
|
22
23
|
|
|
@@ -93,6 +94,7 @@
|
|
|
93
94
|
}}
|
|
94
95
|
bind:focused={isFocused}
|
|
95
96
|
use:useActions={use}
|
|
97
|
+
bind:this={thisRef}
|
|
96
98
|
/>
|
|
97
99
|
{#if prefix}
|
|
98
100
|
<div class="absolute pointer-events-none left-1 top-1/2 -translate-y-1/2">{prefix}</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type TInputNumberAttributes } from './Functions';
|
|
2
|
-
declare const InputNumber: import("svelte").Component<TInputNumberAttributes, {}, "value">;
|
|
2
|
+
declare const InputNumber: import("svelte").Component<TInputNumberAttributes, {}, "value" | "thisRef">;
|
|
3
3
|
type InputNumber = ReturnType<typeof InputNumber>;
|
|
4
4
|
export default InputNumber;
|
package/dist/InputPercent.svelte
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
let {
|
|
6
6
|
value = $bindable(),
|
|
7
7
|
decimals = 0,
|
|
8
|
+
thisRef = $bindable<HTMLInputElement>(),
|
|
8
9
|
...otherProps
|
|
9
10
|
}: TInputNumberAttributes = $props()
|
|
10
11
|
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
|
|
13
14
|
<InputNumber bind:value
|
|
14
15
|
{decimals}
|
|
16
|
+
bind:thisRef
|
|
15
17
|
{...otherProps}
|
|
16
18
|
shiftDigits={2}
|
|
17
19
|
suffix="%"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { TInputNumberAttributes } from './Functions';
|
|
2
|
-
declare const InputPercent: import("svelte").Component<TInputNumberAttributes, {}, "value">;
|
|
2
|
+
declare const InputPercent: import("svelte").Component<TInputNumberAttributes, {}, "value" | "thisRef">;
|
|
3
3
|
type InputPercent = ReturnType<typeof InputPercent>;
|
|
4
4
|
export default InputPercent;
|