@likable-hair/svelte 0.0.74 → 0.0.76
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/dates/DatePicker.svelte
CHANGED
|
@@ -3,9 +3,8 @@ import YearSelector from "./YearSelector.svelte";
|
|
|
3
3
|
import MonthSelector from "./MonthSelector.svelte";
|
|
4
4
|
import Calendar from "./Calendar.svelte";
|
|
5
5
|
import Button from "../buttons/Button.svelte";
|
|
6
|
-
export let selectedYear = new Date().getFullYear(), selectedMonth = new Date().getMonth(), selectedDate = new Date(), view = "day", locale = "it", primaryColor = "#008080", headerBackgroundColor = primaryColor, arrowColor = primaryColor, hoverColor = "#00808012", selectedDayColor = "black", headerColor = "white", cardColor = "black", cardBackGroundColor = "rgba(255,255,255,0)", height = "100%", width = "100%";
|
|
6
|
+
export let selectedYear = new Date().getFullYear(), selectedMonth = new Date().getMonth(), selectedDate = new Date(), view = "day", locale = "it", primaryColor = "#008080", headerBackgroundColor = primaryColor, arrowColor = primaryColor, hoverColor = "#00808012", selectedDayColor = "black", headerColor = "white", cardColor = "black", cardBackGroundColor = "rgba(255,255,255,0)", selectableYears = [...Array(150).keys()].map((i) => i + (new Date().getFullYear() - 75)), height = "100%", width = "100%";
|
|
7
7
|
let selectorText = undefined;
|
|
8
|
-
let selectableYears = [...Array(150).keys()].map((i) => i + (new Date().getFullYear() - 75));
|
|
9
8
|
let elementDisabled = "date";
|
|
10
9
|
$: visibleSelector = view == "day" || view == "month";
|
|
11
10
|
$: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script>export let title = undefined, description = undefined, borderColor = "#B8B8B8", iconColor = "#8D8D8D", borderWidth = '1px', maxWidth = undefined, maxHeight = undefined, minWidth = undefined, minHeight = undefined, width = 'fit-content', height = undefined;
|
|
1
|
+
<script>export let title = undefined, description = undefined, borderColor = "#B8B8B8", iconColor = "#8D8D8D", iconSize = 40, iconName = 'mdi-file', borderWidth = '1px', maxWidth = undefined, maxHeight = undefined, minWidth = undefined, minHeight = undefined, width = 'fit-content', height = undefined;
|
|
2
2
|
import Icon from './Icon.svelte';
|
|
3
3
|
import Card from '../common/Card.svelte';
|
|
4
4
|
</script>
|
|
@@ -31,10 +31,11 @@ import Card from '../common/Card.svelte';
|
|
|
31
31
|
<div
|
|
32
32
|
style:display="flex"
|
|
33
33
|
style:align-items="center"
|
|
34
|
+
style:gap="10px"
|
|
34
35
|
>
|
|
35
36
|
<Icon
|
|
36
|
-
name=
|
|
37
|
-
size={
|
|
37
|
+
name={iconName}
|
|
38
|
+
size={iconSize}
|
|
38
39
|
color={iconColor}
|
|
39
40
|
></Icon>
|
|
40
41
|
<div
|