@cloudparker/moldex.js 0.0.101 → 0.0.103
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/views/core/button/components/button-list-item/button-list-item.svelte +12 -1
- package/dist/views/core/button/components/button-list-item/button-list-item.svelte.d.ts +2 -0
- package/dist/views/core/dialog/components/picker-dialog/picker-dialog.svelte +10 -0
- package/dist/views/core/dialog/components/picker-dialog/picker-dialog.svelte.d.ts +5 -0
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
} from "../../../icon";
|
|
9
9
|
import Button, {} from "../button/button.svelte";
|
|
10
10
|
import ButtonMenu from "../button-menu/button-menu.svelte";
|
|
11
|
+
import IconCircle from "../../../icon/components/icon-circle/icon-circle.svelte";
|
|
11
12
|
let {
|
|
12
13
|
appearance,
|
|
13
14
|
size,
|
|
@@ -23,6 +24,8 @@ let {
|
|
|
23
24
|
hasImg = false,
|
|
24
25
|
imgClassName = "",
|
|
25
26
|
iconPath,
|
|
27
|
+
isCircularIcon,
|
|
28
|
+
circularIconClassName = "",
|
|
26
29
|
imgSrc,
|
|
27
30
|
hasArrow = false,
|
|
28
31
|
arrowIconPath = mdiChevronRight,
|
|
@@ -53,7 +56,15 @@ let {
|
|
|
53
56
|
{#snippet itemInternal()}
|
|
54
57
|
{#if hasIcon && iconPath}
|
|
55
58
|
<div>
|
|
56
|
-
|
|
59
|
+
{#if isCircularIcon}
|
|
60
|
+
<IconCircle
|
|
61
|
+
{iconPath}
|
|
62
|
+
iconClassName=" {iconClassName}"
|
|
63
|
+
circleClassName=" {circularIconClassName}"
|
|
64
|
+
/>
|
|
65
|
+
{:else}
|
|
66
|
+
<Icon path={iconPath} className=" {iconClassName}" />
|
|
67
|
+
{/if}
|
|
57
68
|
</div>
|
|
58
69
|
{/if}
|
|
59
70
|
|
|
@@ -26,6 +26,11 @@ let {
|
|
|
26
26
|
uncheckboxIconClassName = "",
|
|
27
27
|
arrowClassName = "",
|
|
28
28
|
checkboxClassName = "",
|
|
29
|
+
isCircularIcon,
|
|
30
|
+
hasIcon,
|
|
31
|
+
iconClassName,
|
|
32
|
+
circularIconClassName,
|
|
33
|
+
iconPath,
|
|
29
34
|
itemTileSnippet,
|
|
30
35
|
closeDialog,
|
|
31
36
|
setResult,
|
|
@@ -141,6 +146,11 @@ onMount(() => {
|
|
|
141
146
|
{checkboxClassName}
|
|
142
147
|
{arrowIconPath}
|
|
143
148
|
{arrowClassName}
|
|
149
|
+
{hasIcon}
|
|
150
|
+
{isCircularIcon}
|
|
151
|
+
{circularIconClassName}
|
|
152
|
+
{iconClassName}
|
|
153
|
+
{iconPath}
|
|
144
154
|
/>
|
|
145
155
|
{/if}
|
|
146
156
|
</div>
|
|
@@ -17,6 +17,11 @@ export type PickerDialogProps = {
|
|
|
17
17
|
checkboxClassName?: string;
|
|
18
18
|
arrowIconPath?: string;
|
|
19
19
|
arrowClassName?: string;
|
|
20
|
+
hasIcon?: boolean;
|
|
21
|
+
iconPath?: string;
|
|
22
|
+
iconClassName?: string;
|
|
23
|
+
isCircularIcon?: boolean;
|
|
24
|
+
circularIconClassName?: string;
|
|
20
25
|
itemTileSnippet?: Snippet<[item: any, index: number]>;
|
|
21
26
|
};
|
|
22
27
|
import { type Snippet } from 'svelte';
|