poe-svelte-ui-lib 1.0.15 → 1.1.0
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.
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
class="grid w-full p-4 sm:p-3 {image ? 'gap-x-2' : 'gap-2'} {outline ? '' : 'border-t border-[var(--border-color)]'}"
|
|
71
71
|
transition:slide={{ duration: 250 }}
|
|
72
72
|
style="grid-template-columns: repeat({size.width || 10}, minmax(0, 1fr));
|
|
73
|
-
grid-template-rows: repeat({size.height || 2}, {image ? 'minmax(
|
|
73
|
+
grid-template-rows: repeat({size.height || 2}, {image ? 'minmax(6.5rem, auto)' : 'auto'});
|
|
74
74
|
{image ? `background-image: url(${image}); background-size: cover; background-position: center;` : ''}"
|
|
75
75
|
>
|
|
76
76
|
{@render children?.()}
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
}
|
|
31
31
|
reader.readAsDataURL(file)
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
let currentImage = $derived(component.properties.image)
|
|
33
35
|
</script>
|
|
34
36
|
|
|
35
37
|
{#if component && component.properties}
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
type="image"
|
|
64
66
|
label={{ name: $t('constructor.props.image') }}
|
|
65
67
|
accept="image/png, image/jpeg, image/webp"
|
|
66
|
-
bind:currentImage
|
|
68
|
+
bind:currentImage
|
|
67
69
|
onChange={handleImageUpload}
|
|
68
70
|
/>
|
|
69
71
|
<UI.Button
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
{/if}
|
|
99
99
|
|
|
100
100
|
<!-- Слайдер -->
|
|
101
|
-
<div {id} class="relative flex h-
|
|
101
|
+
<div {id} class="relative flex h-7 w-full justify-center rounded-full {disabled ? 'cursor-not-allowed opacity-50' : ''}">
|
|
102
102
|
{#if isRange}
|
|
103
103
|
<!-- Трек и активная зона -->
|
|
104
104
|
<div
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
</div>
|
|
200
200
|
|
|
201
201
|
<!-- Кнопки управления -->
|
|
202
|
-
<div class={`mt-
|
|
202
|
+
<div class={`mt-2 flex w-full ${isRange ? 'justify-between' : 'justify-center'} gap-2`}>
|
|
203
203
|
{#if isRange}
|
|
204
204
|
{#each ['lower', 'upper'] as type (type)}
|
|
205
205
|
<div
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- appIcons/IconGripVerticalDual.svelte -->
|
|
2
2
|
<script lang="ts"></script>
|
|
3
3
|
|
|
4
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1.75rem" height="1.75rem" viewBox="0 0 24 24">
|
|
5
5
|
<g stroke="currentColor" stroke-linecap="round" stroke-width="1.5" fill="none">
|
|
6
6
|
<line x1="4" y1="11" x2="4" y2="13" />
|
|
7
7
|
<line x1="8" y1="9" x2="8" y2="15" />
|