@cloudparker/moldex.js 4.1.18 → 4.1.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.
|
@@ -32,6 +32,11 @@
|
|
|
32
32
|
toggleDrawer();
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
function preventScroll(e: Event) {
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
e.stopPropagation();
|
|
38
|
+
}
|
|
39
|
+
|
|
35
40
|
export function toggleDrawer() {
|
|
36
41
|
if (!isPlaced) {
|
|
37
42
|
openDrawer();
|
|
@@ -102,6 +107,8 @@
|
|
|
102
107
|
class="flex-grow cursor-auto"
|
|
103
108
|
type="button"
|
|
104
109
|
onclick={handelBackdropClick}
|
|
110
|
+
onwheel={preventScroll}
|
|
111
|
+
ontouchmove={preventScroll}
|
|
105
112
|
aria-label="Close drawer"
|
|
106
113
|
title="Close drawer"
|
|
107
114
|
></button>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Button from '../../../button/components/button/button.svelte';
|
|
3
|
-
import {
|
|
3
|
+
import { copyToClipboard, showToast } from '../../../../../services/index.js';
|
|
4
4
|
import { mdiContentCopy } from '../../../icon';
|
|
5
5
|
|
|
6
6
|
type PropsType = {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
buttonClassName?: string;
|
|
10
10
|
iconClassName?: string;
|
|
11
11
|
iconPath?: string;
|
|
12
|
+
textClassName?: string;
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
let {
|
|
@@ -16,7 +17,8 @@
|
|
|
16
17
|
containerClassName = '',
|
|
17
18
|
buttonClassName = '',
|
|
18
19
|
iconClassName = '',
|
|
19
|
-
iconPath = mdiContentCopy
|
|
20
|
+
iconPath = mdiContentCopy,
|
|
21
|
+
textClassName = ''
|
|
20
22
|
}: PropsType = $props();
|
|
21
23
|
|
|
22
24
|
function handleCopy() {
|
|
@@ -28,7 +30,7 @@
|
|
|
28
30
|
</script>
|
|
29
31
|
|
|
30
32
|
<span class="flex items-center {containerClassName}">
|
|
31
|
-
<span>{input || ''}</span>
|
|
33
|
+
<span class={textClassName}>{input || ''}</span>
|
|
32
34
|
{#if input}
|
|
33
35
|
<Button
|
|
34
36
|
onClick={handleCopy}
|