intelliwaketssveltekitv25 0.1.154 → 0.1.157
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/DisplayHTML.svelte +3 -1
- package/dist/DisplayHTML.svelte.d.ts +1 -0
- package/dist/TextArea.svelte +28 -0
- package/dist/TextArea.svelte.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/DisplayHTML.svelte
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
let {
|
|
6
6
|
value,
|
|
7
7
|
anchorClasses = '',
|
|
8
|
+
hidden,
|
|
8
9
|
/**
|
|
9
10
|
* Use the noLinkReplace property to not try to change a URL into an anchor link
|
|
10
11
|
*/
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
}: {
|
|
13
14
|
value: string | null | undefined | Snippet
|
|
14
15
|
anchorClasses?: string
|
|
16
|
+
hidden?: boolean
|
|
15
17
|
/**
|
|
16
18
|
* Use the noLinkReplace property to not try to change a URL into an anchor link
|
|
17
19
|
*/
|
|
@@ -25,7 +27,7 @@
|
|
|
25
27
|
let isHTML = $derived(!isSnippet && IncludesHTML((valueLink ?? '').toString()))
|
|
26
28
|
</script>
|
|
27
29
|
|
|
28
|
-
{#if !!value}
|
|
30
|
+
{#if !!value && !hidden}
|
|
29
31
|
{#if typeof value === 'function'}
|
|
30
32
|
{@render value()}
|
|
31
33
|
{:else}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
|
|
3
|
+
import type { HTMLTextareaAttributes } from 'svelte/elements'
|
|
4
|
+
import { type ActionArray, useActions } from './useActions'
|
|
5
|
+
import { DisplayHTML } from './index'
|
|
6
|
+
|
|
7
|
+
let {
|
|
8
|
+
value = $bindable(),
|
|
9
|
+
// thisRef = $bindable<HTMLTextAreaElement>(),
|
|
10
|
+
readonly,
|
|
11
|
+
use = [],
|
|
12
|
+
...otherProps
|
|
13
|
+
}: Omit<
|
|
14
|
+
HTMLTextareaAttributes,
|
|
15
|
+
'value' | 'this' | 'use'
|
|
16
|
+
> & {
|
|
17
|
+
value: string | null
|
|
18
|
+
// thisRef?: HTMLTextAreaElement
|
|
19
|
+
use?: ActionArray
|
|
20
|
+
} = $props()
|
|
21
|
+
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
{#if readonly}
|
|
25
|
+
<DisplayHTML {value} hidden={!!otherProps.hidden} />
|
|
26
|
+
{:else}
|
|
27
|
+
<textarea {...otherProps} bind:value={value} use:useActions={use}></textarea>
|
|
28
|
+
{/if}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLTextareaAttributes } from 'svelte/elements';
|
|
2
|
+
import { type ActionArray } from './useActions';
|
|
3
|
+
type $$ComponentProps = Omit<HTMLTextareaAttributes, 'value' | 'this' | 'use'> & {
|
|
4
|
+
value: string | null;
|
|
5
|
+
use?: ActionArray;
|
|
6
|
+
};
|
|
7
|
+
declare const TextArea: import("svelte").Component<$$ComponentProps, {}, "value">;
|
|
8
|
+
type TextArea = ReturnType<typeof TextArea>;
|
|
9
|
+
export default TextArea;
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ import Switch from './Switch.svelte';
|
|
|
30
30
|
import SwitchDateNull from './SwitchDateNull.svelte';
|
|
31
31
|
import TabHeader from './TabHeader.svelte';
|
|
32
32
|
import TabHref from './TabHref.svelte';
|
|
33
|
+
import TextArea from './TextArea.svelte';
|
|
33
34
|
import TextSpan from './TextSpan.svelte';
|
|
34
35
|
export * from './AboutData';
|
|
35
36
|
export * from './BreakAtManager';
|
|
@@ -78,4 +79,5 @@ export { Switch };
|
|
|
78
79
|
export { SwitchDateNull };
|
|
79
80
|
export { TabHeader };
|
|
80
81
|
export { TabHref };
|
|
82
|
+
export { TextArea };
|
|
81
83
|
export { TextSpan };
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,7 @@ import Switch from './Switch.svelte';
|
|
|
31
31
|
import SwitchDateNull from './SwitchDateNull.svelte';
|
|
32
32
|
import TabHeader from './TabHeader.svelte';
|
|
33
33
|
import TabHref from './TabHref.svelte';
|
|
34
|
+
import TextArea from './TextArea.svelte';
|
|
34
35
|
import TextSpan from './TextSpan.svelte';
|
|
35
36
|
export * from './AboutData';
|
|
36
37
|
export * from './BreakAtManager';
|
|
@@ -79,4 +80,5 @@ export { Switch };
|
|
|
79
80
|
export { SwitchDateNull };
|
|
80
81
|
export { TabHeader };
|
|
81
82
|
export { TabHref };
|
|
83
|
+
export { TextArea };
|
|
82
84
|
export { TextSpan };
|