fuma 0.1.34 → 0.2.2
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/Meta.svelte +4 -2
- package/dist/ui/{ButtonCopy.svelte → button/ButtonCopy.svelte} +1 -1
- package/dist/ui/button/index.d.ts +2 -0
- package/dist/ui/button/index.js +2 -0
- package/dist/ui/card/Card.svelte +1 -1
- package/dist/ui/card/CardCollapse.svelte +1 -1
- package/dist/ui/card/CardFullScreen.svelte +3 -2
- package/dist/ui/{Dialog.svelte → dialog/Dialog.svelte} +5 -5
- package/dist/ui/{DialogConfirm.svelte → dialog/DialogConfirm.svelte} +1 -1
- package/dist/ui/dialog/index.d.ts +2 -0
- package/dist/ui/dialog/index.js +2 -0
- package/dist/ui/drawer/Drawer.svelte +8 -19
- package/dist/ui/drawer/layers.js +47 -13
- package/dist/ui/form/FormSection.svelte +1 -1
- package/dist/ui/form/formInput.d.ts +13 -2
- package/dist/ui/form/formInput.js +12 -1
- package/dist/ui/{Icon.svelte → icon/Icon.svelte} +1 -1
- package/dist/ui/{Icon.svelte.d.ts → icon/Icon.svelte.d.ts} +1 -1
- package/dist/ui/icon/index.d.ts +1 -0
- package/dist/ui/icon/index.js +1 -0
- package/dist/ui/index.d.ts +8 -12
- package/dist/ui/index.js +8 -12
- package/dist/ui/input/FormControl.svelte.d.ts +1 -1
- package/dist/ui/input/InputBoolean.svelte.d.ts +1 -1
- package/dist/ui/input/InputCheckboxs.svelte.d.ts +1 -1
- package/dist/ui/input/InputCheckboxsMenu.svelte +2 -1
- package/dist/ui/input/InputCheckboxsMenu.svelte.d.ts +1 -1
- package/dist/ui/input/InputCombo.svelte +3 -1
- package/dist/ui/input/InputCombo.svelte.d.ts +3 -3
- package/dist/ui/input/InputImage.svelte +3 -1
- package/dist/ui/input/InputImagePreview.svelte +1 -1
- package/dist/ui/input/InputOptionInParam.svelte +1 -1
- package/dist/ui/input/InputOptions.svelte +1 -1
- package/dist/ui/input/InputPassword.svelte.d.ts +1 -1
- package/dist/ui/input/InputRadio.svelte.d.ts +1 -1
- package/dist/ui/input/InputRelation.svelte +4 -1
- package/dist/ui/input/InputRelation.svelte.d.ts +1 -1
- package/dist/ui/input/InputRelations.svelte +4 -1
- package/dist/ui/input/InputRelations.svelte.d.ts +1 -1
- package/dist/ui/input/InputSearch.svelte +2 -1
- package/dist/ui/input/InputSelect.svelte +4 -2
- package/dist/ui/input/InputSelect.svelte.d.ts +2 -2
- package/dist/ui/input/RelationAfter.svelte +1 -1
- package/dist/ui/input/action.js +1 -1
- package/dist/ui/input/textRich/InputTextRich.svelte +1 -1
- package/dist/ui/input/textRich/InputTextRich.svelte.d.ts +1 -1
- package/dist/ui/input/textRich/ToolMark.svelte +1 -1
- package/dist/ui/input/textRich/ToolMarkColor.svelte +1 -1
- package/dist/ui/input/textRich/ToolMarkLink.svelte +2 -1
- package/dist/ui/input/textRich/ToolMenu.svelte +2 -1
- package/dist/ui/input/textRich/ToolMenuInsert.svelte +1 -1
- package/dist/ui/{Login.svelte → login/Login.svelte} +2 -2
- package/dist/ui/login/index.d.ts +1 -0
- package/dist/ui/login/index.js +1 -0
- package/dist/ui/menu/ContextMenu.svelte +2 -1
- package/dist/ui/menu/DropDownMenu.svelte +4 -2
- package/dist/ui/{ToggleMode.svelte → mode/ToggleMode.svelte} +1 -1
- package/dist/ui/mode/index.d.ts +2 -0
- package/dist/ui/mode/index.js +2 -0
- package/dist/ui/{Pagination.svelte → pagination/Pagination.svelte} +2 -2
- package/dist/ui/pagination/index.d.ts +1 -0
- package/dist/ui/pagination/index.js +1 -0
- package/dist/ui/period/PeriodPickerButton.svelte +5 -2
- package/dist/ui/{PlaceholderImage.svelte → placeholder/PlaceholderImage.svelte} +1 -1
- package/dist/ui/placeholder/index.d.ts +2 -0
- package/dist/ui/placeholder/index.js +2 -0
- package/dist/ui/{Slot.svelte → slot/Slot.svelte} +1 -1
- package/dist/ui/slot/index.d.ts +1 -0
- package/dist/ui/slot/index.js +1 -0
- package/dist/ui/table/Table.svelte +1 -1
- package/dist/ui/table/TableBody.svelte +1 -1
- package/dist/ui/table/TableBody.svelte.d.ts +1 -1
- package/dist/ui/table/TableFieldsEdition.svelte +2 -1
- package/dist/ui/table/TableFieldsEdition.svelte.d.ts +1 -1
- package/dist/ui/table/TableViewSelect.svelte +4 -1
- package/dist/ui/table/cell/TableCellBoolean.svelte +1 -1
- package/dist/ui/table/field.d.ts +1 -1
- package/dist/ui/table/head/TableHeadDate.svelte +2 -1
- package/dist/ui/table/head/TableHeadDate.svelte.d.ts +1 -1
- package/dist/ui/table/head/TableHeadDefault.svelte.d.ts +1 -1
- package/dist/ui/table/head/TableHeadNumber.svelte +2 -1
- package/dist/ui/table/head/TableHeadSelect.svelte +2 -1
- package/dist/ui/table/head/TableHeadSelect.svelte.d.ts +1 -1
- package/dist/ui/table/head/TableHeadString.svelte +3 -1
- package/dist/ui/table/head/TableHeadString.svelte.d.ts +1 -1
- package/dist/ui/tabs/Tabs.svelte +1 -1
- package/dist/ui/tabs/TabsIcon.svelte +2 -1
- package/dist/ui/tabs/TabsIcon.svelte.d.ts +1 -1
- package/dist/utils/component.js +0 -1
- package/dist/validation/zod.d.ts +1 -1
- package/package.json +23 -3
- /package/dist/ui/{ButtonCopy.svelte.d.ts → button/ButtonCopy.svelte.d.ts} +0 -0
- /package/dist/ui/{ButtonDelete.svelte → button/ButtonDelete.svelte} +0 -0
- /package/dist/ui/{ButtonDelete.svelte.d.ts → button/ButtonDelete.svelte.d.ts} +0 -0
- /package/dist/ui/{Dialog.svelte.d.ts → dialog/Dialog.svelte.d.ts} +0 -0
- /package/dist/ui/{DialogConfirm.svelte.d.ts → dialog/DialogConfirm.svelte.d.ts} +0 -0
- /package/dist/ui/{Login.svelte.d.ts → login/Login.svelte.d.ts} +0 -0
- /package/dist/ui/{ToggleMode.svelte.d.ts → mode/ToggleMode.svelte.d.ts} +0 -0
- /package/dist/ui/{Pagination.svelte.d.ts → pagination/Pagination.svelte.d.ts} +0 -0
- /package/dist/ui/{Placeholder.svelte → placeholder/Placeholder.svelte} +0 -0
- /package/dist/ui/{Placeholder.svelte.d.ts → placeholder/Placeholder.svelte.d.ts} +0 -0
- /package/dist/ui/{PlaceholderImage.svelte.d.ts → placeholder/PlaceholderImage.svelte.d.ts} +0 -0
- /package/dist/ui/{Span.svelte → slot/Span.svelte} +0 -0
- /package/dist/ui/{Span.svelte.d.ts → slot/Span.svelte.d.ts} +0 -0
package/dist/Meta.svelte
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<script>import {} from "svelte";
|
|
2
|
-
import { Card, Table, Icon } from "./index.js";
|
|
3
|
-
import { mdiEyeOffOutline, mdiEyeOutline } from "@mdi/js";
|
|
4
2
|
import { slide } from "svelte/transition";
|
|
3
|
+
import { mdiEyeOffOutline, mdiEyeOutline } from "@mdi/js";
|
|
4
|
+
import { Card } from "./ui/card/index.js";
|
|
5
|
+
import { Table } from "./ui/table/index.js";
|
|
6
|
+
import { Icon } from "./ui/icon/index.js";
|
|
5
7
|
export let name = "";
|
|
6
8
|
export let description = "";
|
|
7
9
|
export let component;
|
package/dist/ui/card/Card.svelte
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { onDestroy } from "svelte";
|
|
2
2
|
import { slide } from "svelte/transition";
|
|
3
3
|
import { mdiChevronRight } from "@mdi/js";
|
|
4
|
-
import { Icon } from "
|
|
4
|
+
import { Icon } from "../icon/index.js";
|
|
5
5
|
import { urlParam } from "../../store/index.js";
|
|
6
6
|
export let value;
|
|
7
7
|
let klass = "";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import {
|
|
1
|
+
<script>import { mdiArrowCollapse, mdiArrowExpand } from "@mdi/js";
|
|
2
|
+
import { Icon } from "../icon/index.js";
|
|
3
|
+
import { Card } from "./index.js";
|
|
3
4
|
export let isFullScreen = false;
|
|
4
5
|
let klass = "";
|
|
5
6
|
export { klass as class };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>import { createEventDispatcher, onMount } from "svelte";
|
|
2
2
|
import { mdiClose } from "@mdi/js";
|
|
3
|
-
import { Icon } from "../index.js";
|
|
3
|
+
import { Icon } from "../icon/index.js";
|
|
4
4
|
export let dialog;
|
|
5
5
|
export let hideCloseButton = false;
|
|
6
6
|
let klass = "";
|
|
@@ -33,8 +33,8 @@ onMount(() => {
|
|
|
33
33
|
</script>
|
|
34
34
|
|
|
35
35
|
<dialog bind:this={dialog} class="modal" tabindex="-1">
|
|
36
|
-
<div class="modal-box
|
|
37
|
-
<div class="
|
|
36
|
+
<div class="modal-box bordered flex flex-col rounded-lg border p-0">
|
|
37
|
+
<div class="relative flex items-center border-b p-4">
|
|
38
38
|
<div class="grow">
|
|
39
39
|
<slot name="header" />
|
|
40
40
|
</div>
|
|
@@ -42,14 +42,14 @@ onMount(() => {
|
|
|
42
42
|
{#if !hideCloseButton}
|
|
43
43
|
<button
|
|
44
44
|
type="button"
|
|
45
|
-
class="btn btn-square btn-ghost btn-sm
|
|
45
|
+
class="ml btn btn-square btn-ghost btn-sm"
|
|
46
46
|
on:click={() => dialog.close()}
|
|
47
47
|
>
|
|
48
48
|
<Icon path={mdiClose} />
|
|
49
49
|
</button>
|
|
50
50
|
{/if}
|
|
51
51
|
</div>
|
|
52
|
-
<div class="
|
|
52
|
+
<div class="grow overflow-auto p-4 {klass}">
|
|
53
53
|
<slot />
|
|
54
54
|
</div>
|
|
55
55
|
|
|
@@ -3,7 +3,7 @@ import { fade, fly } from "svelte/transition";
|
|
|
3
3
|
import { mdiClose } from "@mdi/js";
|
|
4
4
|
import { goto } from "$app/navigation";
|
|
5
5
|
import { urlParam } from "../../store/param.js";
|
|
6
|
-
import { Icon } from "../index.js";
|
|
6
|
+
import { Icon } from "../icon/index.js";
|
|
7
7
|
import { subscibeDrawerLayers } from "./layers.js";
|
|
8
8
|
import { contextContainer } from "../context.js";
|
|
9
9
|
export let title = "";
|
|
@@ -15,43 +15,32 @@ export let maxWidth = "32rem";
|
|
|
15
15
|
export let classHeader = "";
|
|
16
16
|
export let classBody = "";
|
|
17
17
|
export function open() {
|
|
18
|
-
goto($urlParam.with({ [key]: value }), { replaceState: true });
|
|
18
|
+
goto($urlParam.with({ [key]: value }), { replaceState: true, noScroll: true });
|
|
19
19
|
}
|
|
20
20
|
export function close() {
|
|
21
|
-
goto($urlParam.without(key), { replaceState: true });
|
|
21
|
+
goto($urlParam.without(key), { replaceState: true, noScroll: true });
|
|
22
22
|
}
|
|
23
23
|
const { offset, destroy, isActive } = subscibeDrawerLayers(key, value);
|
|
24
24
|
onDestroy(destroy);
|
|
25
25
|
contextContainer.set("drawer");
|
|
26
26
|
</script>
|
|
27
27
|
|
|
28
|
-
<svelte:head>
|
|
29
|
-
{#if $isActive}
|
|
30
|
-
<style>
|
|
31
|
-
:root {
|
|
32
|
-
scrollbar-width: none;
|
|
33
|
-
}
|
|
34
|
-
</style>
|
|
35
|
-
{/if}
|
|
36
|
-
</svelte:head>
|
|
37
|
-
|
|
38
28
|
{#if $isActive}
|
|
39
29
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
40
30
|
<div
|
|
41
31
|
on:click={close}
|
|
42
32
|
on:keyup={close}
|
|
43
33
|
transition:fade={{ duration: 200 }}
|
|
44
|
-
class="
|
|
45
|
-
fixed inset-0 z-10 bg-black/15 backdrop-blur-[1.5px]
|
|
46
|
-
dark:bg-white/15"
|
|
34
|
+
class="fixed inset-0 z-10 bg-black/15 backdrop-blur-[1.5px] dark:bg-white/15"
|
|
47
35
|
/>
|
|
48
36
|
|
|
49
37
|
<aside
|
|
50
|
-
transition:fly|local={{ x: 500, duration: 200 }}
|
|
38
|
+
transition:fly|local={{ x: 500, duration: 200, opacity: 1 }}
|
|
51
39
|
style="max-width: min(100%, {maxWidth}); transform: translateX({-$offset * 4}rem);"
|
|
52
40
|
class="{klass}
|
|
53
|
-
fixed bottom-0 right-0 top-0 z-10 flex
|
|
54
|
-
flex-col overflow-y-scroll bg-base-100
|
|
41
|
+
fixed bottom-0 right-0 top-0 z-10 flex
|
|
42
|
+
w-full flex-col overflow-y-scroll bg-base-100
|
|
43
|
+
transition-transform
|
|
55
44
|
"
|
|
56
45
|
>
|
|
57
46
|
<div
|
package/dist/ui/drawer/layers.js
CHANGED
|
@@ -1,26 +1,43 @@
|
|
|
1
|
-
import { derived, writable } from 'svelte/store';
|
|
1
|
+
import { derived, get, writable } from 'svelte/store';
|
|
2
2
|
import { page } from '$app/stores';
|
|
3
|
+
import { browser } from '$app/environment';
|
|
3
4
|
const layers = writable([]);
|
|
4
|
-
const layersOffset = derived(layers, (
|
|
5
|
-
const nbDrawer =
|
|
6
|
-
return
|
|
5
|
+
const layersOffset = derived(layers, ($layers) => {
|
|
6
|
+
const nbDrawer = $layers.length;
|
|
7
|
+
return $layers.reduce((acc, layer, index) => {
|
|
7
8
|
const drawerOffset = nbDrawer - index - 1;
|
|
8
|
-
|
|
9
|
+
console.log({ drawerOffset });
|
|
10
|
+
return { ...acc, [layer]: drawerOffset };
|
|
9
11
|
}, {});
|
|
10
12
|
});
|
|
11
13
|
export function subscibeDrawerLayers(key, value) {
|
|
12
14
|
const layerId = Math.random().toString().slice(2, 12);
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
let isInitialized = false;
|
|
16
|
+
const isActive = derived(page, ({ url }) => url.searchParams.get(key) === value, false);
|
|
17
|
+
const isActiveUnsubscribe = isActive.subscribe(($isActive) => {
|
|
18
|
+
if ($isActive)
|
|
19
|
+
addLayer();
|
|
20
|
+
else if (isInitialized)
|
|
18
21
|
removeLayer();
|
|
22
|
+
isInitialized = true;
|
|
19
23
|
});
|
|
24
|
+
function addLayer() {
|
|
25
|
+
layers.update(($layers) => {
|
|
26
|
+
if ($layers.length === 0)
|
|
27
|
+
hideRootScrollBar();
|
|
28
|
+
return [...$layers, layerId];
|
|
29
|
+
});
|
|
30
|
+
}
|
|
20
31
|
function removeLayer() {
|
|
21
|
-
layers.update((
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
layers.update(($layers) => {
|
|
33
|
+
if (!$layers.length)
|
|
34
|
+
return $layers;
|
|
35
|
+
if ($layers.length === 1) {
|
|
36
|
+
restoreRootScrollBar();
|
|
37
|
+
return [];
|
|
38
|
+
}
|
|
39
|
+
const index = $layers.indexOf(layerId);
|
|
40
|
+
return $layers.toSpliced(index, 1);
|
|
24
41
|
});
|
|
25
42
|
}
|
|
26
43
|
return {
|
|
@@ -32,3 +49,20 @@ export function subscibeDrawerLayers(key, value) {
|
|
|
32
49
|
}
|
|
33
50
|
};
|
|
34
51
|
}
|
|
52
|
+
function hideRootScrollBar() {
|
|
53
|
+
if (!browser)
|
|
54
|
+
return;
|
|
55
|
+
const root = document.documentElement;
|
|
56
|
+
const scrollbarWidth = window.innerWidth - root.offsetWidth;
|
|
57
|
+
if (!scrollbarWidth)
|
|
58
|
+
return;
|
|
59
|
+
root.style.scrollbarWidth = 'none';
|
|
60
|
+
root.style.paddingRight = `${scrollbarWidth}px`;
|
|
61
|
+
}
|
|
62
|
+
function restoreRootScrollBar() {
|
|
63
|
+
if (!browser)
|
|
64
|
+
return;
|
|
65
|
+
const root = document.documentElement;
|
|
66
|
+
root.style.scrollbarWidth = '';
|
|
67
|
+
root.style.paddingRight = '';
|
|
68
|
+
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type { ComponentProps } from 'svelte';
|
|
2
|
-
import
|
|
2
|
+
import InputText from '../input/InputText.svelte';
|
|
3
|
+
import InputTextarea from '../input/InputTextarea.svelte';
|
|
4
|
+
import InputBoolean from '../input/InputBoolean.svelte';
|
|
5
|
+
import InputDate from '../input/InputDate.svelte';
|
|
6
|
+
import InputDatetime from '../input/InputDatetime.svelte';
|
|
7
|
+
import InputNumber from '../input/InputNumber.svelte';
|
|
8
|
+
import InputPassword from '../input/InputPassword.svelte';
|
|
9
|
+
import InputRadio from '../input/InputRadio.svelte';
|
|
10
|
+
import InputSelect from '../input/InputSelect.svelte';
|
|
11
|
+
import InputRelation from '../input/InputRelation.svelte';
|
|
12
|
+
import InputRelations from '../input/InputRelations.svelte';
|
|
13
|
+
import InputTextRich from '../input/textRich/InputTextRich.svelte';
|
|
3
14
|
export declare const formInputs: {
|
|
4
15
|
readonly text: typeof InputText;
|
|
5
16
|
readonly textarea: typeof InputTextarea;
|
|
@@ -20,7 +31,7 @@ export type FormInputProps<T extends FormInputsType> = ComponentProps<InstanceTy
|
|
|
20
31
|
export type FormInputsProps = {
|
|
21
32
|
[T in FormInputsType]: FormInputProps<T>;
|
|
22
33
|
};
|
|
23
|
-
export declare const formInputsType: ("number" | "boolean" | "select" | "
|
|
34
|
+
export declare const formInputsType: ("number" | "boolean" | "select" | "textarea" | "date" | "text" | "password" | "radio" | "textrich" | "datetime" | "relation" | "relations")[];
|
|
24
35
|
export declare function relationProps<Item extends {
|
|
25
36
|
id: string;
|
|
26
37
|
}>(props: ComponentProps<InstanceType<typeof InputRelation<Item>>>): {
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import InputText from '../input/InputText.svelte';
|
|
2
|
+
import InputTextarea from '../input/InputTextarea.svelte';
|
|
3
|
+
import InputBoolean from '../input/InputBoolean.svelte';
|
|
4
|
+
import InputDate from '../input/InputDate.svelte';
|
|
5
|
+
import InputDatetime from '../input/InputDatetime.svelte';
|
|
6
|
+
import InputNumber from '../input/InputNumber.svelte';
|
|
7
|
+
import InputPassword from '../input/InputPassword.svelte';
|
|
8
|
+
import InputRadio from '../input/InputRadio.svelte';
|
|
9
|
+
import InputSelect from '../input/InputSelect.svelte';
|
|
10
|
+
import InputRelation from '../input/InputRelation.svelte';
|
|
11
|
+
import InputRelations from '../input/InputRelations.svelte';
|
|
12
|
+
import InputTextRich from '../input/textRich/InputTextRich.svelte';
|
|
2
13
|
export const formInputs = {
|
|
3
14
|
text: InputText,
|
|
4
15
|
textarea: InputTextarea,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Icon } from './Icon.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Icon } from './Icon.svelte';
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -6,15 +6,11 @@ export * from './menu/index.js';
|
|
|
6
6
|
export * from './period/index.js';
|
|
7
7
|
export * from './table/index.js';
|
|
8
8
|
export * from './tabs/index.js';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export { default as Login } from './Login.svelte';
|
|
18
|
-
export { default as ToggleMode } from './ToggleMode.svelte';
|
|
19
|
-
export { default as Slot } from './Slot.svelte';
|
|
20
|
-
export { mode, setMode, resetMode, toggleMode, userPrefersMode, systemPrefersMode } from 'mode-watcher';
|
|
9
|
+
export * from './button/index.js';
|
|
10
|
+
export * from './dialog/index.js';
|
|
11
|
+
export * from './placeholder/index.js';
|
|
12
|
+
export * from './icon/index.js';
|
|
13
|
+
export * from './login/index.js';
|
|
14
|
+
export * from './slot/index.js';
|
|
15
|
+
export * from './pagination/index.js';
|
|
16
|
+
export * from './mode/index.js';
|
package/dist/ui/index.js
CHANGED
|
@@ -6,15 +6,11 @@ export * from './menu/index.js';
|
|
|
6
6
|
export * from './period/index.js';
|
|
7
7
|
export * from './table/index.js';
|
|
8
8
|
export * from './tabs/index.js';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export { default as Login } from './Login.svelte';
|
|
18
|
-
export { default as ToggleMode } from './ToggleMode.svelte';
|
|
19
|
-
export { default as Slot } from './Slot.svelte';
|
|
20
|
-
export { mode, setMode, resetMode, toggleMode, userPrefersMode, systemPrefersMode } from 'mode-watcher';
|
|
9
|
+
export * from './button/index.js';
|
|
10
|
+
export * from './dialog/index.js';
|
|
11
|
+
export * from './placeholder/index.js';
|
|
12
|
+
export * from './icon/index.js';
|
|
13
|
+
export * from './login/index.js';
|
|
14
|
+
export * from './slot/index.js';
|
|
15
|
+
export * from './pagination/index.js';
|
|
16
|
+
export * from './mode/index.js';
|
|
@@ -12,7 +12,7 @@ declare const __propDef: {
|
|
|
12
12
|
prefix?: string | number | undefined;
|
|
13
13
|
prefixFor?: string | number | undefined;
|
|
14
14
|
enhanceDisabled?: boolean | undefined;
|
|
15
|
-
labelPosition?: ("top" | "
|
|
15
|
+
labelPosition?: ("top" | "right" | "left") | undefined;
|
|
16
16
|
};
|
|
17
17
|
events: {
|
|
18
18
|
[evt: string]: CustomEvent<any>;
|
|
@@ -11,7 +11,7 @@ declare const __propDef: {
|
|
|
11
11
|
prefix?: string | number | undefined;
|
|
12
12
|
prefixFor?: string | number | undefined;
|
|
13
13
|
enhanceDisabled?: boolean | undefined;
|
|
14
|
-
labelPosition?: ("top" | "
|
|
14
|
+
labelPosition?: ("top" | "right" | "left") | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
input?: HTMLInputAttributes | undefined;
|
|
17
17
|
inputElement?: HTMLInputElement | undefined;
|
|
@@ -11,7 +11,7 @@ declare const __propDef: {
|
|
|
11
11
|
prefix?: string | number | undefined;
|
|
12
12
|
prefixFor?: string | number | undefined;
|
|
13
13
|
enhanceDisabled?: boolean | undefined;
|
|
14
|
-
labelPosition?: ("top" | "
|
|
14
|
+
labelPosition?: ("top" | "right" | "left") | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
input?: import("svelte/elements.js").HTMLInputAttributes | undefined;
|
|
17
17
|
inputElement?: HTMLInputElement | undefined;
|
|
@@ -3,7 +3,8 @@ import { page } from "$app/stores";
|
|
|
3
3
|
import { mdiClose } from "@mdi/js";
|
|
4
4
|
import { urlParam } from "../../store/index.js";
|
|
5
5
|
import { jsonParse, parseOptions } from "../../utils/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Icon } from "../icon/index.js";
|
|
7
|
+
import { DropDown } from "../menu/index.js";
|
|
7
8
|
import { FormControl } from "./index.js";
|
|
8
9
|
$:
|
|
9
10
|
({
|
|
@@ -11,7 +11,7 @@ declare const __propDef: {
|
|
|
11
11
|
prefix?: string | number | undefined;
|
|
12
12
|
prefixFor?: string | number | undefined;
|
|
13
13
|
enhanceDisabled?: boolean | undefined;
|
|
14
|
-
labelPosition?: ("top" | "
|
|
14
|
+
labelPosition?: ("top" | "right" | "left") | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
input?: import("svelte/elements.js").HTMLInputAttributes | undefined;
|
|
17
17
|
inputElement?: HTMLInputElement | undefined;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script>import { createEventDispatcher, tick } from "svelte";
|
|
2
2
|
import { parseOptions } from "../../utils/options.js";
|
|
3
|
-
import { FormControl,
|
|
3
|
+
import { FormControl, SelectorList } from "./index.js";
|
|
4
|
+
import { DropDown } from "../menu/index.js";
|
|
5
|
+
import { Icon } from "../icon/index.js";
|
|
4
6
|
$:
|
|
5
7
|
({ input, value: _value, options, tippyProps, ...props } = $$props);
|
|
6
8
|
$:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type { TippyProps } from '../../
|
|
2
|
+
import type { TippyProps } from '../../utils/tippy.js';
|
|
3
3
|
import { type Options } from '../../utils/options.js';
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: {
|
|
@@ -8,13 +8,13 @@ declare const __propDef: {
|
|
|
8
8
|
class?: string | undefined;
|
|
9
9
|
classLabel?: string | undefined;
|
|
10
10
|
key?: string | undefined;
|
|
11
|
-
label?: string | import("svelte").ComponentType | import("
|
|
11
|
+
label?: string | import("svelte").ComponentType | import("../..").ComponentAndProps | undefined;
|
|
12
12
|
error?: string | undefined;
|
|
13
13
|
hint?: string | undefined;
|
|
14
14
|
prefix?: string | number | undefined;
|
|
15
15
|
prefixFor?: string | number | undefined;
|
|
16
16
|
enhanceDisabled?: boolean | undefined;
|
|
17
|
-
labelPosition?: ("top" | "
|
|
17
|
+
labelPosition?: ("top" | "right" | "left") | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
input?: import("svelte/elements").HTMLInputAttributes | undefined;
|
|
20
20
|
inputElement?: HTMLInputElement | undefined;
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
<script>import { onMount, createEventDispatcher } from "svelte";
|
|
4
4
|
import Cropper from "svelte-easy-crop";
|
|
5
5
|
import { mdiTrayArrowUp } from "@mdi/js";
|
|
6
|
-
import {
|
|
6
|
+
import { Icon } from "../icon/index.js";
|
|
7
|
+
import { DropDown } from "../menu/index.js";
|
|
8
|
+
import { Dialog } from "../dialog/index.js";
|
|
7
9
|
export let aspect = 1;
|
|
8
10
|
export let title = "Image";
|
|
9
11
|
export let formaction = void 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { slide } from "svelte/transition";
|
|
2
2
|
import { mdiPlus, mdiTrashCanOutline } from "@mdi/js";
|
|
3
3
|
import { toast } from "svelte-sonner";
|
|
4
|
-
import { Icon } from "../index.js";
|
|
4
|
+
import { Icon } from "../icon/index.js";
|
|
5
5
|
import { listEditable } from "../../action/list/index.js";
|
|
6
6
|
export let key;
|
|
7
7
|
export let value = "[]";
|
|
@@ -10,7 +10,7 @@ declare const __propDef: {
|
|
|
10
10
|
prefix?: string | number | undefined;
|
|
11
11
|
prefixFor?: string | number | undefined;
|
|
12
12
|
enhanceDisabled?: boolean | undefined;
|
|
13
|
-
labelPosition?: ("top" | "
|
|
13
|
+
labelPosition?: ("top" | "right" | "left") | undefined;
|
|
14
14
|
} & {
|
|
15
15
|
input?: import("svelte/elements.js").HTMLInputAttributes | undefined;
|
|
16
16
|
inputElement?: HTMLInputElement | undefined;
|
|
@@ -11,7 +11,7 @@ declare const __propDef: {
|
|
|
11
11
|
prefix?: string | number | undefined;
|
|
12
12
|
prefixFor?: string | number | undefined;
|
|
13
13
|
enhanceDisabled?: boolean | undefined;
|
|
14
|
-
labelPosition?: ("top" | "
|
|
14
|
+
labelPosition?: ("top" | "right" | "left") | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
input?: import("svelte/elements.js").HTMLInputAttributes | undefined;
|
|
17
17
|
inputElement?: HTMLInputElement | undefined;
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
import debounce from "debounce";
|
|
3
3
|
import { toast } from "svelte-sonner";
|
|
4
4
|
import { mdiClose } from "@mdi/js";
|
|
5
|
-
import {
|
|
5
|
+
import { Icon } from "../icon/index.js";
|
|
6
|
+
import { Slot } from "../slot/index.js";
|
|
7
|
+
import { DropDown } from "../menu/index.js";
|
|
8
|
+
import { FormControl, SelectorList } from "./index.js";
|
|
6
9
|
import RelationAfter from "./RelationAfter.svelte";
|
|
7
10
|
export let key = Math.random().toString();
|
|
8
11
|
export let label = "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { TippyProps } from '../../utils/tippy.js';
|
|
3
|
-
import type { ComponentAndProps } from '../../
|
|
3
|
+
import type { ComponentAndProps } from '../../utils/component.js';
|
|
4
4
|
declare class __sveltets_Render<RelationItem extends {
|
|
5
5
|
id: string;
|
|
6
6
|
}> {
|
|
@@ -3,7 +3,10 @@ import { slide } from "svelte/transition";
|
|
|
3
3
|
import { toast } from "svelte-sonner";
|
|
4
4
|
import { mdiClose } from "@mdi/js";
|
|
5
5
|
import debounce from "debounce";
|
|
6
|
-
import {
|
|
6
|
+
import { Icon } from "../icon/index.js";
|
|
7
|
+
import { Slot } from "../slot/index.js";
|
|
8
|
+
import { FormControl, SelectorList } from "./index.js";
|
|
9
|
+
import { DropDown } from "../menu/index.js";
|
|
7
10
|
import RelationAfter from "./RelationAfter.svelte";
|
|
8
11
|
export let key = "";
|
|
9
12
|
export let label = "";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script>import { mdiClose } from "@mdi/js";
|
|
2
2
|
import { browser } from "$app/environment";
|
|
3
3
|
import { page } from "$app/stores";
|
|
4
|
-
import { Icon
|
|
4
|
+
import { Icon } from "../icon/index.js";
|
|
5
|
+
import { InputText } from "./index.js";
|
|
5
6
|
let klass = "";
|
|
6
7
|
export { klass as class };
|
|
7
8
|
export let key = "search";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<script>import { createEventDispatcher, onMount } from "svelte";
|
|
2
|
-
import { SelectorList, DropDown, Icon, FormControl } from "../index.js";
|
|
3
|
-
import { parseOptions } from "../../utils/options.js";
|
|
4
2
|
import { mdiUnfoldMoreHorizontal } from "@mdi/js";
|
|
3
|
+
import { Icon } from "../icon/index.js";
|
|
4
|
+
import { DropDown } from "../menu/index.js";
|
|
5
|
+
import { SelectorList, FormControl } from "./index.js";
|
|
6
|
+
import { parseOptions } from "../../utils/options.js";
|
|
5
7
|
$:
|
|
6
8
|
({ value: _value, options, tippyProps, placeholder, ...props } = $$props);
|
|
7
9
|
export let value = _value;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { type InputProps } from '
|
|
2
|
+
import { type InputProps } from './index.js';
|
|
3
3
|
import { type Options } from '../../utils/options.js';
|
|
4
|
-
import type { TippyProps } from '../../
|
|
4
|
+
import type { TippyProps } from '../../utils/tippy.js';
|
|
5
5
|
declare const __propDef: {
|
|
6
6
|
props: Omit<InputProps, "input" | "inputElement"> & {
|
|
7
7
|
options: Options;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { fade } from "svelte/transition";
|
|
2
2
|
import { createEventDispatcher } from "svelte";
|
|
3
3
|
import { mdiLoading, mdiPlus } from "@mdi/js";
|
|
4
|
-
import Icon from "../Icon.svelte";
|
|
4
|
+
import Icon from "../icon/Icon.svelte";
|
|
5
5
|
export let isLoading;
|
|
6
6
|
export let createUrl = "";
|
|
7
7
|
export let createTitle = "";
|
package/dist/ui/input/action.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { get } from 'svelte/store';
|
|
2
2
|
import debounce from 'debounce';
|
|
3
|
-
import { urlParam } from '../../
|
|
3
|
+
import { urlParam } from '../../store/param.js';
|
|
4
4
|
import { goto } from '$app/navigation';
|
|
5
5
|
export function bindValueWithParams(node, { bindEnable = false, debounceTime = 200, initValue = (initalValue) => (node.value = initalValue), listenerType = 'input' }) {
|
|
6
6
|
const { name } = node;
|