@cloudparker/moldex.js 4.1.19 → 4.1.21
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.
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
2
1
|
<script lang="ts">
|
|
3
2
|
import ButtonListItem from '../../../button/components/button-list-item/button-list-item.svelte';
|
|
4
3
|
import Button from '../../../button/components/button/button.svelte';
|
|
5
|
-
|
|
4
|
+
|
|
6
5
|
import VirtualScrollingList from '../../../common/components/virtual-scrolling/virtual-scrolling-list.svelte';
|
|
7
6
|
import Icon from '../../../icon/components/icon/icon.svelte';
|
|
8
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
mdiCheckCircle,
|
|
9
|
+
mdiCheckCircleOutline,
|
|
10
|
+
mdiUnfoldMoreHorizontal
|
|
11
|
+
} from '../../../icon/index.js';
|
|
9
12
|
import NoData from '../../../no-data/components/no-data/no-data.svelte';
|
|
10
13
|
import { SvelteSet } from 'svelte/reactivity';
|
|
11
|
-
import InputField
|
|
14
|
+
import InputField from '../input-field/input-field.svelte';
|
|
12
15
|
import SearchField from '../search-field/search-field.svelte';
|
|
13
16
|
import type { ComboboxFieldProps, InputFieldProps } from '../../types';
|
|
14
17
|
|
|
@@ -328,7 +331,7 @@
|
|
|
328
331
|
<div class="flex items-center {displayClassName}" title={displayItemsTitle}>
|
|
329
332
|
{#each displayItems?.slice(0, displayItemsCount) as item, index}
|
|
330
333
|
<div
|
|
331
|
-
class="inline-flex items-center bg-neutral-200
|
|
334
|
+
class="mx-1 inline-flex items-center rounded-full bg-neutral-200 px-2 text-sm font-medium text-nowrap text-neutral-700 {chipClassName}"
|
|
332
335
|
>
|
|
333
336
|
{item}
|
|
334
337
|
</div>
|
|
@@ -379,7 +382,7 @@
|
|
|
379
382
|
<!-- svelte-ignore a11y_interactive_supports_focus -->
|
|
380
383
|
<div
|
|
381
384
|
bind:clientHeight={dropdownHeight}
|
|
382
|
-
class="absolute z-10 {placementClassName} max-h-80 w-full flex
|
|
385
|
+
class="absolute z-10 {placementClassName} flex max-h-80 w-full flex-col rounded-md bg-white text-neutral-600 shadow-lg focus:outline-none sm:text-sm dark:bg-neutral-900 {hasDropdownHeader
|
|
383
386
|
? ''
|
|
384
387
|
: 'pt-1'} {hasDropdownFooter ? '' : 'pb-1'} {dropdownClassName}"
|
|
385
388
|
id="options"
|
|
@@ -389,7 +392,7 @@
|
|
|
389
392
|
{#if hasDropdownHeader}
|
|
390
393
|
<div
|
|
391
394
|
id="dropdown-header"
|
|
392
|
-
class=" flex items-center p-2 px-3
|
|
395
|
+
class=" my-1 flex w-full items-center p-2 px-3 {dropdownHeaderClassName}"
|
|
393
396
|
>
|
|
394
397
|
{#if dropdownHeaderSnippet}
|
|
395
398
|
{@render dropdownHeaderSnippet()}
|
|
@@ -407,7 +410,7 @@
|
|
|
407
410
|
{/if}
|
|
408
411
|
<div
|
|
409
412
|
id="dropdown-body"
|
|
410
|
-
class="flex-grow overflow-y-auto
|
|
413
|
+
class="h-60 flex-grow overflow-y-auto {dropdownBodyClassName}"
|
|
411
414
|
bind:clientHeight={bodyHeight}
|
|
412
415
|
>
|
|
413
416
|
{#if dropdownBodySnippet}
|
|
@@ -422,7 +425,7 @@
|
|
|
422
425
|
{#snippet itemSnippet(item, index)}
|
|
423
426
|
{@const isSelected = selectedItemsSet.has(item[identityFieldName])}
|
|
424
427
|
<li
|
|
425
|
-
class="select-none
|
|
428
|
+
class="h-full select-none"
|
|
426
429
|
id="item-{index}"
|
|
427
430
|
role="option"
|
|
428
431
|
tabindex="-1"
|
|
@@ -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}
|