y200subcontrols 0.0.396 → 0.0.397
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.
|
@@ -77,8 +77,8 @@ function handlePageChanged() {
|
|
|
77
77
|
on:click={() => handlePageIndexChanged(-1)}
|
|
78
78
|
type="button"
|
|
79
79
|
class="px-3 py-2 border border-teal-600 rounded text-teal-600 hover:bg-teal-600/10 active:bg-teal-600 active:text-teal-50
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
outline-none focus:outline-none
|
|
81
|
+
transition-all ease-in-out duration-300"
|
|
82
82
|
>
|
|
83
83
|
<svg
|
|
84
84
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -93,7 +93,6 @@ function handlePageChanged() {
|
|
|
93
93
|
/>
|
|
94
94
|
</svg>
|
|
95
95
|
</button>
|
|
96
|
-
|
|
97
96
|
<button
|
|
98
97
|
on:click={() => handlePageIndexChanged(1)}
|
|
99
98
|
type="button"
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
<script>import { formatDateTime } from "../date-utils.js";
|
|
2
2
|
export let date;
|
|
3
3
|
export let showTimeStamp = true;
|
|
4
|
+
export let timeStyle = "short";
|
|
5
|
+
export let dateStyle = "short";
|
|
4
6
|
let dateFormatted = "";
|
|
5
7
|
$: {
|
|
6
8
|
if (typeof date === "string") {
|
|
7
9
|
date = new Date(date);
|
|
8
10
|
}
|
|
9
|
-
dateFormatted = formatDateTime(date, showTimeStamp);
|
|
11
|
+
dateFormatted = formatDateTime(date, showTimeStamp, timeStyle, dateStyle);
|
|
10
12
|
}
|
|
11
13
|
</script>
|
|
12
14
|
|
|
@@ -3,6 +3,8 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
date: Date | string;
|
|
5
5
|
showTimeStamp?: boolean;
|
|
6
|
+
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
|
|
7
|
+
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
|
|
6
8
|
};
|
|
7
9
|
events: {
|
|
8
10
|
[evt: string]: CustomEvent<any>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
direction?: "horizontal" | "vertical";
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
exports?: {} | undefined;
|
|
11
|
+
bindings?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
export type DividerProps = typeof __propDef.props;
|
|
14
|
+
export type DividerEvents = typeof __propDef.events;
|
|
15
|
+
export type DividerSlots = typeof __propDef.slots;
|
|
16
|
+
export default class Divider extends SvelteComponent<DividerProps, DividerEvents, DividerSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|