fuma 1.0.16 → 1.0.17
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/private/Meta.svelte +27 -32
- package/dist/private/Meta.svelte.d.ts +0 -1
- package/dist/private/api.d.ts +1 -1
- package/dist/ui/badge/Badge.svelte +3 -4
- package/dist/ui/button/ButtonCopy.svelte +31 -37
- package/dist/ui/button/ButtonDelete.svelte +21 -23
- package/dist/ui/button/ButtonDelete.svelte.d.ts +0 -1
- package/dist/ui/card/Card.svelte +10 -13
- package/dist/ui/card/Card.svelte.d.ts +0 -1
- package/dist/ui/card/CardBasic.svelte +4 -5
- package/dist/ui/card/CardBasic.svelte.d.ts +0 -1
- package/dist/ui/card/CardCollapse.svelte +31 -35
- package/dist/ui/card/CardCollapse.svelte.d.ts +0 -1
- package/dist/ui/card/CardFullScreen.svelte +6 -8
- package/dist/ui/card/CardFullScreen.svelte.d.ts +0 -3
- package/dist/ui/card/CardLink.svelte +4 -5
- package/dist/ui/card/CardLink.svelte.d.ts +0 -1
- package/dist/ui/dialog/Dialog.svelte +34 -41
- package/dist/ui/dialog/Dialog.svelte.d.ts +0 -1
- package/dist/ui/dialog/DialogConfirm.svelte +4 -6
- package/dist/ui/dialog/DialogConfirm.svelte.d.ts +0 -1
- package/dist/ui/drawer/Drawer.svelte +37 -46
- package/dist/ui/drawer/Drawer.svelte.d.ts +0 -16
- package/dist/ui/form/Form.svelte +82 -100
- package/dist/ui/form/Form.svelte.d.ts +0 -1
- package/dist/ui/form/FormInput.svelte +6 -12
- package/dist/ui/form/FormInput.svelte.d.ts +0 -18
- package/dist/ui/form/FormSection.svelte +16 -23
- package/dist/ui/form/formInput.d.ts +0 -1
- package/dist/ui/icon/Icon.svelte +32 -35
- package/dist/ui/input/FormControl.svelte +32 -38
- package/dist/ui/input/FormControl.svelte.d.ts +0 -3
- package/dist/ui/input/InputBoolean.svelte +8 -13
- package/dist/ui/input/InputBoolean.svelte.d.ts +0 -3
- package/dist/ui/input/InputCheckboxs.svelte +20 -22
- package/dist/ui/input/InputCheckboxs.svelte.d.ts +0 -3
- package/dist/ui/input/InputCheckboxsMenu.svelte +35 -51
- package/dist/ui/input/InputCheckboxsMenu.svelte.d.ts +0 -3
- package/dist/ui/input/InputCheckboxsTree.svelte +6 -9
- package/dist/ui/input/InputCheckboxsTreeNodes.svelte +27 -35
- package/dist/ui/input/InputCombo.svelte +34 -43
- package/dist/ui/input/InputCombo.svelte.d.ts +0 -3
- package/dist/ui/input/InputDate.svelte +17 -22
- package/dist/ui/input/InputDateTime.svelte +18 -23
- package/dist/ui/input/InputImage.svelte +45 -52
- package/dist/ui/input/InputImage.svelte.d.ts +0 -1
- package/dist/ui/input/InputImagePreview.svelte +20 -24
- package/dist/ui/input/InputNumber.svelte +5 -10
- package/dist/ui/input/InputOptionInParam.svelte +10 -12
- package/dist/ui/input/InputOptions.svelte +34 -40
- package/dist/ui/input/InputPassword.svelte +5 -7
- package/dist/ui/input/InputPassword.svelte.d.ts +0 -3
- package/dist/ui/input/InputRadio.svelte +32 -36
- package/dist/ui/input/InputRadio.svelte.d.ts +0 -3
- package/dist/ui/input/InputRelation.svelte +67 -83
- package/dist/ui/input/InputRelation.svelte.d.ts +0 -1
- package/dist/ui/input/InputRelations.svelte +79 -92
- package/dist/ui/input/InputSearch.svelte +10 -13
- package/dist/ui/input/InputSelect.svelte +28 -39
- package/dist/ui/input/InputText.svelte +7 -8
- package/dist/ui/input/InputTextarea.svelte +6 -6
- package/dist/ui/input/InputTime.svelte +23 -29
- package/dist/ui/input/RelationAfter.svelte +9 -13
- package/dist/ui/input/SelectorList.svelte +12 -16
- package/dist/ui/input/SelectorList.svelte.d.ts +0 -4
- package/dist/ui/input/textRich/InputTextRich.svelte +50 -57
- package/dist/ui/input/textRich/InputTextRich.svelte.d.ts +0 -3
- package/dist/ui/input/textRich/SuggesionList.svelte +9 -13
- package/dist/ui/input/textRich/ToolMark.svelte +9 -12
- package/dist/ui/input/textRich/ToolMarkColor.svelte +11 -15
- package/dist/ui/input/textRich/ToolMarkLink.svelte +38 -46
- package/dist/ui/input/textRich/ToolMenu.svelte +19 -34
- package/dist/ui/input/textRich/ToolMenuAlign.svelte +9 -13
- package/dist/ui/input/textRich/ToolMenuInsert.svelte +7 -12
- package/dist/ui/input/textRich/ToolMenuNode.svelte +10 -14
- package/dist/ui/input/textRich/ToolsBar.svelte +11 -15
- package/dist/ui/login/Login.svelte +30 -36
- package/dist/ui/menu/ContextMenu.svelte +31 -37
- package/dist/ui/menu/ContextMenu.svelte.d.ts +0 -1
- package/dist/ui/menu/DropDown.svelte +83 -92
- package/dist/ui/menu/DropDown.svelte.d.ts +0 -1
- package/dist/ui/menu/DropDownMenu.svelte +18 -25
- package/dist/ui/menu/DropDownMenu.svelte.d.ts +0 -1
- package/dist/ui/mode/ToggleMode.svelte +14 -15
- package/dist/ui/mode/ToggleMode.svelte.d.ts +1 -6
- package/dist/ui/pagination/Pagination.svelte +8 -9
- package/dist/ui/placeholder/Placeholder.svelte +3 -4
- package/dist/ui/placeholder/Placeholder.svelte.d.ts +0 -1
- package/dist/ui/placeholder/PlaceholderImage.svelte +4 -6
- package/dist/ui/placeholder/PlaceholderImage.svelte.d.ts +0 -1
- package/dist/ui/range/RangePicker.svelte +62 -75
- package/dist/ui/range/RangePicker.svelte.d.ts +2 -2
- package/dist/ui/range/RangePickerButton.svelte +35 -43
- package/dist/ui/slot/Slot.svelte +25 -42
- package/dist/ui/slot/Span.svelte +1 -2
- package/dist/ui/table/Table.svelte +28 -35
- package/dist/ui/table/TableBody.svelte +12 -18
- package/dist/ui/table/TableCell.svelte +10 -13
- package/dist/ui/table/TableFieldsEdition.svelte +51 -57
- package/dist/ui/table/TableHead.svelte +20 -19
- package/dist/ui/table/TableViewSelect.svelte +37 -50
- package/dist/ui/table/cell/TableCellArray.svelte +3 -5
- package/dist/ui/table/cell/TableCellBoolean.svelte +3 -4
- package/dist/ui/table/cell/TableCellNumber.svelte +1 -2
- package/dist/ui/table/cell/TableCellString.svelte +2 -5
- package/dist/ui/table/head/OrderButtons.svelte +37 -0
- package/dist/ui/table/head/OrderButtons.svelte.d.ts +20 -0
- package/dist/ui/table/head/TableHeadBoolean.svelte +3 -6
- package/dist/ui/table/head/TableHeadDate.svelte +110 -61
- package/dist/ui/table/head/TableHeadDefault.svelte +2 -5
- package/dist/ui/table/head/TableHeadNumber.svelte +76 -67
- package/dist/ui/table/head/TableHeadSelect.svelte +41 -47
- package/dist/ui/table/head/TableHeadString.svelte +8 -14
- package/dist/ui/tabs/Tabs.svelte +5 -8
- package/dist/ui/tabs/TabsIcon.svelte +28 -31
- package/dist/validation/zod.d.ts +12 -0
- package/dist/validation/zod.js +4 -2
- package/package.json +1 -1
|
@@ -1,39 +1,33 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})
|
|
32
|
-
let state: 'login' | 'register' = 'login'
|
|
33
|
-
|
|
34
|
-
$: redirectTo = $page.url.searchParams.get('redirectTo')
|
|
35
|
-
|
|
36
|
-
let recorverDialog: HTMLDialogElement
|
|
1
|
+
<script>import { slide } from "svelte/transition";
|
|
2
|
+
import { page } from "$app/stores";
|
|
3
|
+
import { InputText, InputPassword } from "../input/index.js";
|
|
4
|
+
import { useForm } from "../../validation/form.js";
|
|
5
|
+
export let onSuccess = void 0;
|
|
6
|
+
const { enhance } = useForm({
|
|
7
|
+
onSuccess,
|
|
8
|
+
successMessage(action) {
|
|
9
|
+
if (action.search === "?/reset_password") {
|
|
10
|
+
recorverDialog.close();
|
|
11
|
+
state = "login";
|
|
12
|
+
return "Un lien de r\xE9cup\xE9ration t'a \xE9t\xE9 envoy\xE9 par email";
|
|
13
|
+
}
|
|
14
|
+
return "Bienvenue";
|
|
15
|
+
},
|
|
16
|
+
onError(err) {
|
|
17
|
+
if (err === "This account already exists") {
|
|
18
|
+
state = "login";
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (err === "This account already created from an invitation") {
|
|
22
|
+
recorverDialog.showModal();
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
let state = "login";
|
|
28
|
+
$:
|
|
29
|
+
redirectTo = $page.url.searchParams.get("redirectTo");
|
|
30
|
+
let recorverDialog;
|
|
37
31
|
</script>
|
|
38
32
|
|
|
39
33
|
<div class="grid place-content-center p-10">
|
|
@@ -1,40 +1,34 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export function hide() {
|
|
34
|
-
if ($isSmallScreen) dialog?.close()
|
|
35
|
-
else dropdown?.hide()
|
|
36
|
-
dispatch('hide')
|
|
37
|
-
}
|
|
1
|
+
<script>import { createEventDispatcher } from "svelte";
|
|
2
|
+
import { Dialog } from "../dialog/index.js";
|
|
3
|
+
import { DropDown } from "./index.js";
|
|
4
|
+
import { isSmallScreen } from "../../store/index.js";
|
|
5
|
+
export let tippyProps = {};
|
|
6
|
+
let klass = "";
|
|
7
|
+
export { klass as class };
|
|
8
|
+
const dispatch = createEventDispatcher();
|
|
9
|
+
let dropdown;
|
|
10
|
+
let dialog;
|
|
11
|
+
export function show(event) {
|
|
12
|
+
if ($isSmallScreen) {
|
|
13
|
+
dialog?.showModal();
|
|
14
|
+
} else {
|
|
15
|
+
const target = event.target;
|
|
16
|
+
if (!target || !(target instanceof HTMLElement))
|
|
17
|
+
return;
|
|
18
|
+
dropdown?.setTippyProps({
|
|
19
|
+
getReferenceClientRect: () => new DOMRect(event.clientX, event.clientY)
|
|
20
|
+
});
|
|
21
|
+
dropdown?.show();
|
|
22
|
+
}
|
|
23
|
+
dispatch("show");
|
|
24
|
+
}
|
|
25
|
+
export function hide() {
|
|
26
|
+
if ($isSmallScreen)
|
|
27
|
+
dialog?.close();
|
|
28
|
+
else
|
|
29
|
+
dropdown?.hide();
|
|
30
|
+
dispatch("hide");
|
|
31
|
+
}
|
|
38
32
|
</script>
|
|
39
33
|
|
|
40
34
|
{#if $isSmallScreen}
|
|
@@ -1,97 +1,88 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
interactiveDebounce: 50
|
|
11
|
-
})
|
|
12
|
-
: null
|
|
13
|
-
|
|
14
|
-
const tips: TippyInstance[] = []
|
|
1
|
+
<script context="module">import { createSingleton } from "../../utils/tippy.js";
|
|
2
|
+
const sigleton = browser ? createSingleton([], {
|
|
3
|
+
theme: "dropdown",
|
|
4
|
+
arrow: false,
|
|
5
|
+
moveTransition: "transform 0.1s ease-out",
|
|
6
|
+
interactive: true,
|
|
7
|
+
interactiveDebounce: 50
|
|
8
|
+
}) : null;
|
|
9
|
+
const tips = [];
|
|
15
10
|
</script>
|
|
16
11
|
|
|
17
|
-
<script
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
export function setTippyProps(props: Partial<TippyProps>) {
|
|
93
|
-
tip?.setProps(props)
|
|
94
|
-
}
|
|
12
|
+
<script>import { tippy } from "../../utils/tippy.js";
|
|
13
|
+
import { onMount } from "svelte";
|
|
14
|
+
import { browser } from "$app/environment";
|
|
15
|
+
import { beforeNavigate } from "$app/navigation";
|
|
16
|
+
import "./dropdown.css";
|
|
17
|
+
export let tippyProps = {};
|
|
18
|
+
let klass = "";
|
|
19
|
+
export { klass as class };
|
|
20
|
+
export let classWrapper = "";
|
|
21
|
+
export let classActivator = "";
|
|
22
|
+
export let useSingleton = false;
|
|
23
|
+
export let autofocus = false;
|
|
24
|
+
export let hideOnBlur = false;
|
|
25
|
+
export let hideOnNav = true;
|
|
26
|
+
export let tip = void 0;
|
|
27
|
+
export let disable = false;
|
|
28
|
+
export let content = void 0;
|
|
29
|
+
let activator;
|
|
30
|
+
beforeNavigate(() => hideOnNav && hide());
|
|
31
|
+
onMount(() => {
|
|
32
|
+
if (disable)
|
|
33
|
+
return;
|
|
34
|
+
const triggerTarget = activator.querySelector("button, input") || activator;
|
|
35
|
+
const focusables = Array.from(
|
|
36
|
+
content.querySelectorAll(
|
|
37
|
+
"a[href], button, input, textarea, select, details, [tabindex]"
|
|
38
|
+
)
|
|
39
|
+
);
|
|
40
|
+
tip = tippy(activator, {
|
|
41
|
+
content,
|
|
42
|
+
placement: "bottom-start",
|
|
43
|
+
theme: "dropdown",
|
|
44
|
+
arrow: false,
|
|
45
|
+
triggerTarget,
|
|
46
|
+
trigger: "click focus",
|
|
47
|
+
interactive: true,
|
|
48
|
+
interactiveDebounce: 50,
|
|
49
|
+
appendTo: "parent",
|
|
50
|
+
onShown() {
|
|
51
|
+
if (autofocus)
|
|
52
|
+
focusables[0]?.select();
|
|
53
|
+
},
|
|
54
|
+
...tippyProps
|
|
55
|
+
});
|
|
56
|
+
if (useSingleton && tip) {
|
|
57
|
+
tips.push(tip);
|
|
58
|
+
sigleton?.setInstances(tips);
|
|
59
|
+
}
|
|
60
|
+
const lastFocusable = focusables.at(-1);
|
|
61
|
+
if (hideOnBlur)
|
|
62
|
+
lastFocusable?.addEventListener("blur", hide);
|
|
63
|
+
return () => {
|
|
64
|
+
if (hideOnBlur)
|
|
65
|
+
lastFocusable?.removeEventListener("blur", hide);
|
|
66
|
+
if (useSingleton && tip) {
|
|
67
|
+
tips.splice(tips.indexOf(tip), 1);
|
|
68
|
+
tip.destroy();
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
export function hide() {
|
|
73
|
+
if (!tip)
|
|
74
|
+
return;
|
|
75
|
+
if (useSingleton)
|
|
76
|
+
sigleton?.hide();
|
|
77
|
+
else
|
|
78
|
+
tip.hide();
|
|
79
|
+
}
|
|
80
|
+
export function show() {
|
|
81
|
+
tip?.show();
|
|
82
|
+
}
|
|
83
|
+
export function setTippyProps(props) {
|
|
84
|
+
tip?.setProps(props);
|
|
85
|
+
}
|
|
95
86
|
</script>
|
|
96
87
|
|
|
97
88
|
{#if !disable}
|
|
@@ -18,7 +18,6 @@ declare const __propDef: {
|
|
|
18
18
|
hide?: (() => void) | undefined;
|
|
19
19
|
show?: (() => void) | undefined;
|
|
20
20
|
setTippyProps?: ((props: Partial<TippyProps>) => void) | undefined;
|
|
21
|
-
children?: import("svelte").Snippet<[]> | undefined;
|
|
22
21
|
};
|
|
23
22
|
events: {
|
|
24
23
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,28 +1,21 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const dispatch = createEventDispatcher<{ select: string }>()
|
|
20
|
-
|
|
21
|
-
function onSelect(index: number) {
|
|
22
|
-
const option = _options[index]
|
|
23
|
-
dispatch('select', option.value)
|
|
24
|
-
dropDown.hide()
|
|
25
|
-
}
|
|
1
|
+
<script>import { createEventDispatcher } from "svelte";
|
|
2
|
+
import { mdiUnfoldMoreHorizontal } from "@mdi/js";
|
|
3
|
+
import { Icon } from "../icon/index.js";
|
|
4
|
+
import { DropDown } from "./index.js";
|
|
5
|
+
import { SelectorList } from "../input/index.js";
|
|
6
|
+
import { parseOptions } from "../../utils/options.js";
|
|
7
|
+
export let options;
|
|
8
|
+
export let tippyProps = {};
|
|
9
|
+
$:
|
|
10
|
+
_options = parseOptions(options);
|
|
11
|
+
let trigger;
|
|
12
|
+
let dropDown;
|
|
13
|
+
const dispatch = createEventDispatcher();
|
|
14
|
+
function onSelect(index) {
|
|
15
|
+
const option = _options[index];
|
|
16
|
+
dispatch("select", option.value);
|
|
17
|
+
dropDown.hide();
|
|
18
|
+
}
|
|
26
19
|
</script>
|
|
27
20
|
|
|
28
21
|
<DropDown bind:this={dropDown} {tippyProps}>
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
$: path = $mode === 'light' ? mdiWhiteBalanceSunny : mdiWeatherNight
|
|
1
|
+
<script>import { browser } from "$app/environment";
|
|
2
|
+
import { ModeWatcher, toggleMode, mode } from "mode-watcher";
|
|
3
|
+
import { Icon } from "../icon/index.js";
|
|
4
|
+
import { mdiWeatherNight, mdiWhiteBalanceSunny } from "@mdi/js";
|
|
5
|
+
mode.subscribe((_mode) => {
|
|
6
|
+
if (!browser)
|
|
7
|
+
return;
|
|
8
|
+
const [html] = document.getElementsByTagName("html");
|
|
9
|
+
if (!html || !_mode)
|
|
10
|
+
return;
|
|
11
|
+
html.setAttribute("data-theme", _mode);
|
|
12
|
+
});
|
|
13
|
+
$:
|
|
14
|
+
path = $mode === "light" ? mdiWhiteBalanceSunny : mdiWeatherNight;
|
|
16
15
|
</script>
|
|
17
16
|
|
|
18
17
|
<ModeWatcher />
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
import { toggleMode } from 'mode-watcher';
|
|
3
3
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
5
|
-
children?: import("svelte").Snippet<[{
|
|
6
|
-
toggleMode: typeof toggleMode;
|
|
7
|
-
path: string;
|
|
8
|
-
}]> | undefined;
|
|
9
|
-
};
|
|
4
|
+
props: Record<string, never>;
|
|
10
5
|
events: {
|
|
11
6
|
[evt: string]: CustomEvent<any>;
|
|
12
7
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
$: _take = +($urlParam.get('take') || take)
|
|
1
|
+
<script>import { mdiChevronLeft, mdiChevronRight } from "@mdi/js";
|
|
2
|
+
import { Icon } from "../icon/index.js";
|
|
3
|
+
import { urlParam } from "../../store/index.js";
|
|
4
|
+
export let take = 20;
|
|
5
|
+
$:
|
|
6
|
+
skip = +($urlParam.get("skip") || 0);
|
|
7
|
+
$:
|
|
8
|
+
_take = +($urlParam.get("take") || take);
|
|
10
9
|
</script>
|
|
11
10
|
|
|
12
11
|
<div class="join">
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export let x: number
|
|
6
|
-
export let y: number
|
|
1
|
+
<script>import { mdiPlus } from "@mdi/js";
|
|
2
|
+
import { Icon } from "../icon/index.js";
|
|
3
|
+
export let x;
|
|
4
|
+
export let y;
|
|
7
5
|
</script>
|
|
8
6
|
|
|
9
7
|
<div style:width="{x}px" style:height="{y}px" class="rounded-lg bg-base-200 p-2">
|