@likable-hair/svelte 4.0.20 → 4.0.22
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/components/composed/forms/DatePickerTextField.svelte +1 -1
- package/dist/components/composed/search/Filters.svelte +1 -0
- package/dist/components/simple/common/Menu.svelte +1 -1
- package/dist/components/simple/common/VerticalDraggableList.css +3 -0
- package/dist/components/simple/common/VerticalDraggableList.svelte +8 -6
- package/dist/components/simple/common/VerticalDraggableList.svelte.d.ts +2 -0
- package/dist/components/simple/dialogs/Dialog.svelte +3 -3
- package/dist/components/simple/dialogs/Dialog.svelte.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { onMount, tick } from 'svelte';
|
|
|
7
7
|
import { DateTime } from 'luxon';
|
|
8
8
|
import MediaQuery from '../../simple/common/MediaQuery.svelte';
|
|
9
9
|
import Dialog from '../../simple/dialogs/Dialog.svelte';
|
|
10
|
-
let { menuOpened = $bindable(
|
|
10
|
+
let { menuOpened = $bindable(), openingId = $bindable(), pattern = "dd/MM/yyyy", selectedYear = $bindable(new Date().getFullYear()), selectedMonth = $bindable(new Date().getMonth()), selectedDate = $bindable(), visibleMonth = $bindable(selectedMonth), visibleYear = $bindable(selectedYear), placeholder, mobileDialog = true, maxYearInRange = 2100, minYearInRange = 1970, disabled = false, flipOnOverflow = true, class: clazz = {}, ondayClick, oninput, activatorSnippet, appendInnerSnippet, appendSnippet, prependInnerSnippet: prependInnerInternalSnippet, prependSnippet, } = $props();
|
|
11
11
|
let activator = $state(), refreshPosition = $state(false), menuElement = $state(), inputElement = $state(), mask = $state({
|
|
12
12
|
value: undefined
|
|
13
13
|
}), maskFactoryArgs = {
|
|
@@ -4,7 +4,7 @@ import { sidebarOpened } from '../../../stores/layouts/unstableSidebarOpened';
|
|
|
4
4
|
let { _activatorGap = 5, _height = 'auto', _overflow = 'auto', _width = 'auto', anchor = 'bottom', closeOnClickOutside = false, flipOnOverflow = $bindable(false), inAnimation = fly, inAnimationConfig = {
|
|
5
5
|
duration: 100,
|
|
6
6
|
y: 10,
|
|
7
|
-
}, open = $bindable(
|
|
7
|
+
}, open = $bindable(), outAnimation = fly, outAnimationConfig = {
|
|
8
8
|
duration: 100,
|
|
9
9
|
y: 10,
|
|
10
10
|
}, refreshPosition = $bindable(false), stayInViewport = $bindable(false), _borderRadius = undefined, _boxShadow = undefined, _left = undefined, _maxHeight = undefined, _minWidth = undefined, _top = undefined, activator = $bindable(), menuElement = $bindable(), openingId = $bindable(), onkeydown, children, } = $props();
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
<script lang="ts">import
|
|
1
|
+
<script lang="ts">import '../../../css/main.css';
|
|
2
|
+
import './VerticalDraggableList.css';
|
|
3
|
+
import { flip } from "svelte/animate";
|
|
2
4
|
import { dndzone } from "svelte-dnd-action";
|
|
3
5
|
import {} from "svelte";
|
|
4
6
|
import { Icon } from "../../..";
|
|
@@ -28,11 +30,8 @@ function handleDndFinalize(e) {
|
|
|
28
30
|
{#each items as item(item.id)}
|
|
29
31
|
<div
|
|
30
32
|
animate:flip="{{duration: flipDurationMs}}"
|
|
31
|
-
style="margin-bottom: 12px;"
|
|
32
33
|
>
|
|
33
|
-
<div
|
|
34
|
-
class="item-container {clazz}"
|
|
35
|
-
>
|
|
34
|
+
<div class="item-container {clazz}">
|
|
36
35
|
<div
|
|
37
36
|
style:grid-cols=1
|
|
38
37
|
>
|
|
@@ -58,7 +57,10 @@ function handleDndFinalize(e) {
|
|
|
58
57
|
.item-container {
|
|
59
58
|
display: grid;
|
|
60
59
|
gap: 12px;
|
|
61
|
-
padding:
|
|
60
|
+
padding: var(
|
|
61
|
+
--vertical-draggable-list-item-padding,
|
|
62
|
+
var(--vertical-draggable-list-default-item-padding)
|
|
63
|
+
);
|
|
62
64
|
cursor: move;
|
|
63
65
|
grid-template-columns: 10px auto;
|
|
64
66
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { BROWSER } from 'esm-env';
|
|
3
3
|
import { onMount } from "svelte";
|
|
4
4
|
import Keyboarder, {} from '../../../utils/keyboarder';
|
|
5
|
-
let { open = $bindable(
|
|
6
|
-
let zIndex = $state(50), localOpen = $state(open), dialogElement, teleportedUid = undefined, hasBeenOpened = $state(false);
|
|
5
|
+
let { open = $bindable(), transition = 'fly-up', _overlayOpacity = "30%", _overlayColor = "#282828", _overlayBackdropFilter, _transitionTimingFunction = 'cubic-bezier(0.075, 0.82, 0.165, 1)', _transitionDuration = '0.5s', topRightSnippet, centerLeftSnippet, centerRightSnippet, children, } = $props();
|
|
6
|
+
let zIndex = $state(50), localOpen = $state(open || false), dialogElement, teleportedUid = undefined, hasBeenOpened = $state(false);
|
|
7
7
|
onMount(() => {
|
|
8
8
|
if (!teleportedUid) {
|
|
9
9
|
let tp = new Teleporter();
|
|
@@ -56,7 +56,7 @@ $effect.pre(() => {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
localOpen = open;
|
|
59
|
+
localOpen = open || false;
|
|
60
60
|
});
|
|
61
61
|
function closeDialog() {
|
|
62
62
|
open = false;
|