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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Editor } from "@tiptap/core";
|
|
3
3
|
import debounce from "debounce";
|
|
4
4
|
import { jsonParse } from "../../../utils/jsonParse.js";
|
|
5
|
-
import { FormControl } from "
|
|
5
|
+
import { FormControl } from "../index.js";
|
|
6
6
|
import ToolsBar from "./ToolsBar.svelte";
|
|
7
7
|
import { extensions } from "./extensions.js";
|
|
8
8
|
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
|
value?: string | undefined;
|
|
16
16
|
classToolbar?: string | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>import { mdiLinkVariant } from "@mdi/js";
|
|
2
|
-
import { Dialog
|
|
2
|
+
import { Dialog } from "../../dialog/index.js";
|
|
3
|
+
import { InputText } from "../index.js";
|
|
3
4
|
import { z } from "../../../validation/zod.js";
|
|
4
5
|
import ToolMark from "./ToolMark.svelte";
|
|
5
6
|
export let editor;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>import { mdiChevronDown } from "@mdi/js";
|
|
2
|
-
import { Icon
|
|
2
|
+
import { Icon } from "../../icon/index.js";
|
|
3
|
+
import { DropDown } from "../../menu/index.js";
|
|
3
4
|
export let editor;
|
|
4
5
|
export let tools;
|
|
5
6
|
export let hideLabel = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>import { createEventDispatcher } from "svelte";
|
|
2
2
|
import { mdiPlus, mdiMinus, mdiImageOutline, mdiYoutube, mdiAt } from "@mdi/js";
|
|
3
|
-
import { Icon } from "../../index.js";
|
|
3
|
+
import { Icon } from "../../icon/index.js";
|
|
4
4
|
import ToolMenu from "./ToolMenu.svelte";
|
|
5
5
|
import { suggestionItems } from "./suggestion.js";
|
|
6
6
|
export let editor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { slide } from "svelte/transition";
|
|
2
|
-
import { InputText, InputPassword } from "./index.js";
|
|
3
|
-
import { useForm } from "../validation/form.js";
|
|
4
2
|
import { page } from "$app/stores";
|
|
3
|
+
import { InputText, InputPassword } from "../input/index.js";
|
|
4
|
+
import { useForm } from "../../validation/form.js";
|
|
5
5
|
export let onSuccess = void 0;
|
|
6
6
|
const { enhance } = useForm({
|
|
7
7
|
onSuccess,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Login } from './Login.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Login } from './Login.svelte';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>import { createEventDispatcher } from "svelte";
|
|
2
|
-
import { Dialog
|
|
2
|
+
import { Dialog } from "../dialog/index.js";
|
|
3
|
+
import { DropDown } from "./index.js";
|
|
3
4
|
import { isSmallScreen } from "../../store/index.js";
|
|
4
5
|
export let tippyProps = {};
|
|
5
6
|
let klass = "";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<script>import { createEventDispatcher } from "svelte";
|
|
2
|
-
import { SelectorList, DropDown, Icon } 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 "./index.js";
|
|
5
|
+
import { SelectorList } from "../input/index.js";
|
|
6
|
+
import { parseOptions } from "../../utils/options.js";
|
|
5
7
|
export let options;
|
|
6
8
|
$:
|
|
7
9
|
_options = parseOptions(options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>import { browser } from "$app/environment";
|
|
2
2
|
import { ModeWatcher, toggleMode, mode } from "mode-watcher";
|
|
3
|
-
import { Icon } from "../index.js";
|
|
3
|
+
import { Icon } from "../icon/index.js";
|
|
4
4
|
import { mdiWeatherNight, mdiWhiteBalanceSunny } from "@mdi/js";
|
|
5
5
|
mode.subscribe((_mode) => {
|
|
6
6
|
if (!browser)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>import { mdiChevronLeft, mdiChevronRight } from "@mdi/js";
|
|
2
|
-
import { Icon } from "../index.js";
|
|
3
|
-
import { urlParam } from "
|
|
2
|
+
import { Icon } from "../icon/index.js";
|
|
3
|
+
import { urlParam } from "../../store/index.js";
|
|
4
4
|
export let take = 20;
|
|
5
5
|
$:
|
|
6
6
|
skip = +($urlParam.get("skip") || 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Pagination } from './Pagination.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Pagination } from './Pagination.svelte';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
<script>import { mdiCalendarMonthOutline, mdiClose } from "@mdi/js";
|
|
2
2
|
import { goto } from "$app/navigation";
|
|
3
3
|
import { page } from "$app/stores";
|
|
4
|
-
import { Icon, DropDown, InputTime, PeriodPicker } from "../index.js";
|
|
5
|
-
import { formatRange } from "../../utils/formatRange.js";
|
|
6
4
|
import { urlParam } from "../../store/param.js";
|
|
5
|
+
import { formatRange } from "../../utils/formatRange.js";
|
|
6
|
+
import { Icon } from "../icon/index.js";
|
|
7
|
+
import { DropDown } from "../menu/index.js";
|
|
8
|
+
import { InputTime } from "../input/index.js";
|
|
9
|
+
import { PeriodPicker } from "./index.js";
|
|
7
10
|
let dropDown;
|
|
8
11
|
const start = $page.url.searchParams.get("start")?.split("T") || [];
|
|
9
12
|
const end = $page.url.searchParams.get("end")?.split("T") || [];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Slot } from './Slot.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Slot } from './Slot.svelte';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { type TableField } from '
|
|
2
|
+
import { type TableField } from './index.js';
|
|
3
3
|
import type { ComponentAndProps } from '../../utils/component.js';
|
|
4
4
|
declare class __sveltets_Render<Item extends {
|
|
5
5
|
id: string;
|
|
@@ -11,8 +11,9 @@ import { page } from "$app/stores";
|
|
|
11
11
|
import { urlParam } from "../../store/param.js";
|
|
12
12
|
import { listEditable } from "../../action/list/index.js";
|
|
13
13
|
import { jsonParse } from "../../utils/jsonParse.js";
|
|
14
|
-
import { Icon, DropDown } from "../index.js";
|
|
15
14
|
import { context } from "./context.js";
|
|
15
|
+
import { Icon } from "../icon/index.js";
|
|
16
|
+
import { DropDown } from "../menu/index.js";
|
|
16
17
|
export let fields;
|
|
17
18
|
export let key;
|
|
18
19
|
export let onCreateField = void 0;
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
import { mdiChevronDown, mdiContentSaveEditOutline, mdiPlus } from "@mdi/js";
|
|
3
3
|
import { page } from "$app/stores";
|
|
4
4
|
import { enhance } from "$app/forms";
|
|
5
|
-
import {
|
|
5
|
+
import { Icon } from "../icon/index.js";
|
|
6
|
+
import { Dialog } from "../dialog/index.js";
|
|
7
|
+
import { DropDown } from "../menu/index.js";
|
|
8
|
+
import { InputText } from "../input/index.js";
|
|
6
9
|
import { useForm } from "../../validation/form.js";
|
|
7
10
|
export let key;
|
|
8
11
|
export let views;
|
package/dist/ui/table/field.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export declare function syncFieldsWithParams(tablekey: string, fields: TableFiel
|
|
|
49
49
|
$visible: boolean;
|
|
50
50
|
key: string;
|
|
51
51
|
label: string;
|
|
52
|
-
type: "string" | "number" | "boolean" | "
|
|
52
|
+
type: "string" | "number" | "boolean" | "textarea" | "date";
|
|
53
53
|
options?: Options | undefined;
|
|
54
54
|
hint?: string | undefined;
|
|
55
55
|
locked?: boolean | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script>import { goto } from "$app/navigation";
|
|
2
2
|
import { page } from "$app/stores";
|
|
3
|
-
import { DropDown
|
|
3
|
+
import { DropDown } from "../../menu/index.js";
|
|
4
|
+
import { InputTime } from "../../input/index.js";
|
|
4
5
|
import { formatRange } from "../../../utils/formatRange.js";
|
|
5
6
|
import { PeriodPicker } from "../../period/index.js";
|
|
6
7
|
import { urlParam } from "../../../store/param.js";
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import debounce from "debounce";
|
|
3
3
|
import { goto } from "$app/navigation";
|
|
4
4
|
import { page } from "$app/stores";
|
|
5
|
-
import { DropDown
|
|
5
|
+
import { DropDown } from "../../menu/index.js";
|
|
6
|
+
import { InputNumber } from "../../input/index.js";
|
|
6
7
|
import { urlParam } from "../../../store/param.js";
|
|
7
8
|
import { jsonParse } from "../../../utils/jsonParse.js";
|
|
8
9
|
export let field;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script>import { derived } from "svelte/store";
|
|
2
2
|
import { page } from "$app/stores";
|
|
3
3
|
import { jsonParse } from "../../../utils/jsonParse.js";
|
|
4
|
-
import { DropDown
|
|
4
|
+
import { DropDown } from "../../menu/index.js";
|
|
5
|
+
import { Icon } from "../../icon/index.js";
|
|
5
6
|
import { parseOptions } from "../../../utils/options.js";
|
|
6
7
|
import { urlParam } from "../../../store/param.js";
|
|
7
8
|
export let field;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script>import { mdiMagnify } from "@mdi/js";
|
|
2
2
|
import { page } from "$app/stores";
|
|
3
|
-
import { DropDown
|
|
3
|
+
import { DropDown } from "../../menu/index.js";
|
|
4
|
+
import { Icon } from "../../icon/index.js";
|
|
5
|
+
import { InputSearch } from "../../input/index.js";
|
|
4
6
|
export let field;
|
|
5
7
|
let tip;
|
|
6
8
|
let searchValue = $page.url.searchParams.get(field.key) || "";
|
package/dist/ui/tabs/Tabs.svelte
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script>import { page } from "$app/stores";
|
|
2
2
|
import { onMount } from "svelte";
|
|
3
3
|
import { urlParam } from "../../store/index.js";
|
|
4
|
-
import { Icon
|
|
4
|
+
import { Icon } from "../icon/index.js";
|
|
5
|
+
import { parseOptions } from "../../utils/options.js";
|
|
5
6
|
export let options;
|
|
6
7
|
export let showLabel = false;
|
|
7
8
|
export let key;
|
package/dist/utils/component.js
CHANGED
package/dist/validation/zod.d.ts
CHANGED
|
@@ -164,7 +164,7 @@ export declare const z: {
|
|
|
164
164
|
map: "map";
|
|
165
165
|
set: "set";
|
|
166
166
|
};
|
|
167
|
-
getParsedType: (data: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "
|
|
167
|
+
getParsedType: (data: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "date" | "map" | "set" | "nan" | "integer" | "float" | "null" | "array" | "unknown" | "promise" | "void" | "never";
|
|
168
168
|
ZodType: typeof zod.ZodType;
|
|
169
169
|
ZodString: typeof zod.ZodString;
|
|
170
170
|
ZodNumber: typeof zod.ZodNumber;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fuma",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "My fullstack material build with sveltekit, daisyui, zod and more",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jonas Voisard",
|
|
@@ -12,7 +12,27 @@
|
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
|
-
"
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./ui": {
|
|
18
|
+
"types": "./dist/ui/index.d.ts",
|
|
19
|
+
"default": "./dist/ui/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./utils": {
|
|
22
|
+
"types": "./dist/utils/index.d.ts",
|
|
23
|
+
"default": "./dist/utils/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./store": {
|
|
26
|
+
"types": "./dist/store/index.d.ts",
|
|
27
|
+
"default": "./dist/store/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./validation": {
|
|
30
|
+
"types": "./dist/validation/index.d.ts",
|
|
31
|
+
"default": "./dist/validation/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./action": {
|
|
34
|
+
"types": "./dist/action/index.d.ts",
|
|
35
|
+
"default": "./dist/action/index.js"
|
|
16
36
|
},
|
|
17
37
|
"./server": {
|
|
18
38
|
"types": "./dist/server/index.d.ts",
|
|
@@ -56,7 +76,7 @@
|
|
|
56
76
|
"tailwindcss": "^3.3.6",
|
|
57
77
|
"tslib": "^2.4.1",
|
|
58
78
|
"typescript": "^5.0.0",
|
|
59
|
-
"vite": "^5.
|
|
79
|
+
"vite": "^5.2.10",
|
|
60
80
|
"vitest": "^1.2.0"
|
|
61
81
|
},
|
|
62
82
|
"dependencies": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|