fuma 2.0.49 → 2.1.0
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/action/index.d.ts +2 -5
- package/dist/action/index.js +2 -5
- package/dist/action/list/handlers.d.ts +6 -6
- package/dist/action/list/handlers.js +6 -5
- package/dist/action/list/index.d.ts +1 -1
- package/dist/action/list/index.js +11 -5
- package/dist/action/list/trigger.js +6 -2
- package/dist/action/list/utils.js +1 -1
- package/dist/action/tip.js +2 -2
- package/dist/command/command.svelte.d.ts +16 -0
- package/dist/command/command.svelte.js +68 -0
- package/dist/command/index.d.ts +1 -0
- package/dist/command/index.js +1 -0
- package/dist/data.d.ts +87 -0
- package/dist/data.js +51 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/input/InputBoolean.svelte +107 -0
- package/dist/input/InputBoolean.svelte.d.ts +12 -0
- package/dist/input/InputNumber.svelte +33 -0
- package/dist/input/InputNumber.svelte.d.ts +10 -0
- package/dist/input/InputRadio.svelte +56 -0
- package/dist/input/InputRadio.svelte.d.ts +11 -0
- package/dist/input/InputRange.svelte +30 -0
- package/dist/input/InputRange.svelte.d.ts +10 -0
- package/dist/input/InputRelation.svelte +119 -0
- package/dist/input/InputRelation.svelte.d.ts +39 -0
- package/dist/input/InputSelect.svelte +113 -0
- package/dist/input/InputSelect.svelte.d.ts +37 -0
- package/dist/input/InputSelectNative.svelte +56 -0
- package/dist/input/InputSelectNative.svelte.d.ts +12 -0
- package/dist/input/InputString.svelte +48 -0
- package/dist/input/InputString.svelte.d.ts +11 -0
- package/dist/input/InputTextarea.svelte +47 -0
- package/dist/input/InputTextarea.svelte.d.ts +11 -0
- package/dist/input/Issues.svelte +21 -0
- package/dist/input/Issues.svelte.d.ts +7 -0
- package/dist/input/index.d.ts +11 -0
- package/dist/input/index.js +10 -0
- package/dist/input/type.d.ts +5 -0
- package/dist/input/type.js +1 -0
- package/dist/popover/Popover.svelte +50 -0
- package/dist/popover/index.d.ts +2 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover/popover.svelte.d.ts +26 -0
- package/dist/popover/popover.svelte.js +101 -0
- package/dist/remote/useForm.d.ts +6 -0
- package/dist/remote/useForm.js +22 -0
- package/dist/search/Spans.svelte +15 -0
- package/dist/search/Spans.svelte.d.ts +7 -0
- package/dist/search/index.d.ts +2 -0
- package/dist/search/index.js +2 -0
- package/dist/search/search.js +96 -0
- package/dist/server/index.d.ts +0 -4
- package/dist/server/index.js +0 -4
- package/dist/server/parseQuery.js +1 -1
- package/dist/server/sse.js +4 -4
- package/dist/server/table.js +1 -1
- package/dist/state/index.d.ts +1 -0
- package/dist/state/index.js +1 -0
- package/dist/state/param.svelte.d.ts +18 -0
- package/dist/state/param.svelte.js +66 -0
- package/dist/ui/button/ButtonDelete.svelte +49 -28
- package/dist/ui/button/ButtonDelete.svelte.d.ts +12 -31
- package/dist/ui/button/index.d.ts +0 -1
- package/dist/ui/button/index.js +0 -1
- package/dist/ui/copy/ButtonCopy.svelte +43 -0
- package/dist/ui/copy/ButtonCopy.svelte.d.ts +17 -0
- package/dist/ui/copy/index.d.ts +2 -0
- package/dist/ui/copy/index.js +2 -0
- package/dist/ui/copy/useCopy.svelte.d.ts +10 -0
- package/dist/ui/copy/useCopy.svelte.js +36 -0
- package/dist/ui/dialog/Dialog.svelte +56 -26
- package/dist/ui/dialog/Dialog.svelte.d.ts +14 -35
- package/dist/ui/dialog/index.d.ts +0 -1
- package/dist/ui/dialog/index.js +0 -1
- package/dist/ui/drawer/Drawer.svelte +53 -45
- package/dist/ui/drawer/Drawer.svelte.d.ts +8 -63
- package/dist/ui/drawer/drawerFly.js +1 -1
- package/dist/ui/drawer/useLayer.svelte.d.ts +5 -0
- package/dist/ui/drawer/useLayer.svelte.js +33 -0
- package/dist/ui/index.d.ts +4 -12
- package/dist/ui/index.js +4 -12
- package/dist/ui/menu/ContextMenu.svelte +27 -26
- package/dist/ui/menu/ContextMenu.svelte.d.ts +9 -35
- package/dist/ui/menu/DropDown.svelte +44 -26
- package/dist/ui/menu/DropDown.svelte.d.ts +18 -43
- package/dist/ui/menu/DropDownMenu.svelte +51 -41
- package/dist/ui/menu/DropDownMenu.svelte.d.ts +7 -29
- package/dist/ui/menu/dropdown.css +4 -4
- package/dist/ui/menu/index.d.ts +1 -1
- package/dist/ui/menu/index.js +2 -1
- package/dist/ui/mode/ToggleMode.svelte +25 -14
- package/dist/ui/mode/ToggleMode.svelte.d.ts +10 -35
- package/dist/ui/mode/index.d.ts +1 -1
- package/dist/ui/mode/index.js +1 -1
- package/dist/ui/mode/useMode.svelte.d.ts +8 -0
- package/dist/ui/mode/useMode.svelte.js +40 -0
- package/dist/ui/pagination/Pagination.svelte +18 -14
- package/dist/ui/pagination/Pagination.svelte.d.ts +4 -18
- package/dist/ui/range/RangePicker.svelte +3 -2
- package/dist/ui/range/RangePickerButton.svelte +49 -37
- package/dist/ui/range/RangePickerButton.svelte.d.ts +7 -21
- package/dist/ui/range/index.d.ts +1 -1
- package/dist/ui/range/index.js +1 -1
- package/dist/ui/table/Table.svelte +15 -21
- package/dist/ui/table/Table.svelte.d.ts +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 +90 -78
- package/dist/ui/table/TableFieldsEdition.svelte.d.ts +14 -13
- package/dist/ui/table/TableHead.svelte +1 -1
- package/dist/ui/table/TableViewSelect.svelte +69 -69
- package/dist/ui/table/TableViewSelect.svelte.d.ts +10 -23
- package/dist/ui/table/cell/TableCellArray.svelte +1 -1
- package/dist/ui/table/cell/TableCellBoolean.svelte +3 -4
- package/dist/ui/table/cell/index.d.ts +1 -1
- package/dist/ui/table/cell/index.js +1 -1
- package/dist/ui/table/head/OrderButtons.svelte +18 -13
- package/dist/ui/table/head/OrderButtons.svelte.d.ts +11 -23
- package/dist/ui/table/head/TableHeadBoolean.svelte +3 -3
- package/dist/ui/table/head/TableHeadDate.svelte +41 -53
- package/dist/ui/table/head/TableHeadDate.svelte.d.ts +1 -1
- package/dist/ui/table/head/TableHeadDefault.svelte +2 -1
- package/dist/ui/table/head/TableHeadNumber.svelte +94 -108
- package/dist/ui/table/head/TableHeadNumber.svelte.d.ts +13 -10
- package/dist/ui/table/head/TableHeadSelect.svelte +55 -52
- package/dist/ui/table/head/TableHeadSelect.svelte.d.ts +13 -10
- package/dist/ui/table/head/TableHeadString.svelte +28 -34
- package/dist/ui/table/head/index.d.ts +3 -3
- package/dist/ui/table/head/index.js +3 -3
- package/dist/ui/table/index.d.ts +5 -5
- package/dist/ui/table/index.js +4 -5
- package/dist/utils/csv.js +1 -1
- package/dist/utils/eventEmitter.d.ts +2 -2
- package/dist/utils/eventEmitter.js +18 -11
- package/dist/utils/index.d.ts +4 -6
- package/dist/utils/index.js +4 -6
- package/dist/utils/normalizePath.js +1 -1
- package/dist/utils/options.d.ts +6 -5
- package/dist/utils/options.js +3 -2
- package/dist/utils/tippy.d.ts +1 -1
- package/dist/utils/tippy.js +1 -1
- package/dist/validation/index.d.ts +0 -1
- package/dist/validation/index.js +0 -1
- package/dist/validation/zod.d.ts +12 -393
- package/dist/validation/zod.js +22 -82
- package/package.json +111 -134
- package/dist/action/heightScreen.d.ts +0 -10
- package/dist/action/heightScreen.js +0 -24
- package/dist/action/portal.d.ts +0 -3
- package/dist/action/portal.js +0 -9
- package/dist/action/selector.d.ts +0 -15
- package/dist/action/selector.js +0 -71
- package/dist/api/client.d.ts +0 -3
- package/dist/api/client.js +0 -24
- package/dist/api/config.d.ts +0 -46
- package/dist/api/config.js +0 -7
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -3
- package/dist/api/server.d.ts +0 -11
- package/dist/api/server.js +0 -17
- package/dist/private/Meta.svelte +0 -16
- package/dist/private/Meta.svelte.d.ts +0 -30
- package/dist/private/api.d.ts +0 -61
- package/dist/private/api.js +0 -10
- package/dist/private/constant.d.ts +0 -14
- package/dist/private/constant.js +0 -6
- package/dist/private/model.d.ts +0 -70
- package/dist/private/model.js +0 -25
- package/dist/private/prisma.d.ts +0 -2
- package/dist/private/prisma.js +0 -2
- package/dist/private/store.d.ts +0 -1
- package/dist/private/store.js +0 -2
- package/dist/server/auth.d.ts +0 -12
- package/dist/server/auth.js +0 -15
- package/dist/server/formAction.d.ts +0 -13
- package/dist/server/formAction.js +0 -8
- package/dist/server/json.d.ts +0 -1
- package/dist/server/json.js +0 -16
- package/dist/server/parseFormData.d.ts +0 -10
- package/dist/server/parseFormData.js +0 -85
- package/dist/server/try.d.ts +0 -9
- package/dist/server/try.js +0 -41
- package/dist/store/index.d.ts +0 -2
- package/dist/store/index.js +0 -2
- package/dist/store/isSmallScreen.d.ts +0 -1
- package/dist/store/isSmallScreen.js +0 -14
- package/dist/store/param.d.ts +0 -22
- package/dist/store/param.js +0 -61
- package/dist/store/session.d.ts +0 -1
- package/dist/store/session.js +0 -13
- package/dist/ui/badge/Badge.svelte +0 -9
- package/dist/ui/badge/Badge.svelte.d.ts +0 -21
- package/dist/ui/badge/index.d.ts +0 -1
- package/dist/ui/badge/index.js +0 -1
- package/dist/ui/button/ButtonCopy.svelte +0 -59
- package/dist/ui/button/ButtonCopy.svelte.d.ts +0 -27
- package/dist/ui/card/Card.svelte +0 -43
- package/dist/ui/card/Card.svelte.d.ts +0 -41
- package/dist/ui/card/CardBasic.svelte +0 -15
- package/dist/ui/card/CardBasic.svelte.d.ts +0 -31
- package/dist/ui/card/CardCollapse.svelte +0 -71
- package/dist/ui/card/CardCollapse.svelte.d.ts +0 -39
- package/dist/ui/card/CardFullScreen.svelte +0 -31
- package/dist/ui/card/CardFullScreen.svelte.d.ts +0 -38
- package/dist/ui/card/CardLink.svelte +0 -22
- package/dist/ui/card/CardLink.svelte.d.ts +0 -31
- package/dist/ui/card/index.d.ts +0 -5
- package/dist/ui/card/index.js +0 -5
- package/dist/ui/context.d.ts +0 -6
- package/dist/ui/context.js +0 -12
- package/dist/ui/dialog/DialogConfirm.svelte +0 -24
- package/dist/ui/dialog/DialogConfirm.svelte.d.ts +0 -35
- package/dist/ui/drawer/layers.d.ts +0 -7
- package/dist/ui/drawer/layers.js +0 -68
- package/dist/ui/form/Form.svelte +0 -168
- package/dist/ui/form/Form.svelte.d.ts +0 -62
- package/dist/ui/form/FormInput.svelte +0 -15
- package/dist/ui/form/FormSection.svelte +0 -78
- package/dist/ui/form/FormSection.svelte.d.ts +0 -39
- package/dist/ui/form/form.d.ts +0 -37
- package/dist/ui/form/form.js +0 -57
- package/dist/ui/form/formInput.js +0 -33
- package/dist/ui/form/index.d.ts +0 -3
- package/dist/ui/form/index.js +0 -3
- package/dist/ui/icon/Icon.svelte +0 -53
- package/dist/ui/icon/Icon.svelte.d.ts +0 -29
- package/dist/ui/icon/index.d.ts +0 -1
- package/dist/ui/icon/index.js +0 -1
- package/dist/ui/input/FormControl.svelte +0 -77
- package/dist/ui/input/FormControl.svelte.d.ts +0 -34
- package/dist/ui/input/InputBoolean.svelte +0 -33
- package/dist/ui/input/InputBoolean.svelte.d.ts +0 -46
- package/dist/ui/input/InputCheckboxs.svelte +0 -71
- package/dist/ui/input/InputCheckboxs.svelte.d.ts +0 -57
- package/dist/ui/input/InputCheckboxsMenu.svelte +0 -106
- package/dist/ui/input/InputCheckboxsMenu.svelte.d.ts +0 -59
- package/dist/ui/input/InputCheckboxsTree.svelte +0 -18
- package/dist/ui/input/InputCheckboxsTree.svelte.d.ts +0 -25
- package/dist/ui/input/InputCheckboxsTreeNodes.svelte +0 -68
- package/dist/ui/input/InputCheckboxsTreeNodes.svelte.d.ts +0 -27
- package/dist/ui/input/InputCombo.svelte +0 -99
- package/dist/ui/input/InputCombo.svelte.d.ts +0 -59
- package/dist/ui/input/InputDate.svelte +0 -47
- package/dist/ui/input/InputDate.svelte.d.ts +0 -46
- package/dist/ui/input/InputDateTime.svelte +0 -41
- package/dist/ui/input/InputDateTime.svelte.d.ts +0 -23
- package/dist/ui/input/InputImage.svelte +0 -116
- package/dist/ui/input/InputImage.svelte.d.ts +0 -48
- package/dist/ui/input/InputImagePreview.svelte +0 -60
- package/dist/ui/input/InputImagePreview.svelte.d.ts +0 -27
- package/dist/ui/input/InputNumber.svelte +0 -31
- package/dist/ui/input/InputNumber.svelte.d.ts +0 -23
- package/dist/ui/input/InputOptionInParam.svelte +0 -36
- package/dist/ui/input/InputOptionInParam.svelte.d.ts +0 -24
- package/dist/ui/input/InputOptions.svelte +0 -85
- package/dist/ui/input/InputOptions.svelte.d.ts +0 -21
- package/dist/ui/input/InputPassword.svelte +0 -25
- package/dist/ui/input/InputPassword.svelte.d.ts +0 -45
- package/dist/ui/input/InputRadio.svelte +0 -84
- package/dist/ui/input/InputRadio.svelte.d.ts +0 -56
- package/dist/ui/input/InputRelation.svelte +0 -171
- package/dist/ui/input/InputRelation.svelte.d.ts +0 -76
- package/dist/ui/input/InputRelations.svelte +0 -166
- package/dist/ui/input/InputRelations.svelte.d.ts +0 -55
- package/dist/ui/input/InputSearch.svelte +0 -59
- package/dist/ui/input/InputSearch.svelte.d.ts +0 -29
- package/dist/ui/input/InputSelect.svelte +0 -84
- package/dist/ui/input/InputSelect.svelte.d.ts +0 -29
- package/dist/ui/input/InputText.svelte +0 -46
- package/dist/ui/input/InputText.svelte.d.ts +0 -30
- package/dist/ui/input/InputTextarea.svelte +0 -23
- package/dist/ui/input/InputTextarea.svelte.d.ts +0 -23
- package/dist/ui/input/InputTime.svelte +0 -47
- package/dist/ui/input/InputTime.svelte.d.ts +0 -46
- package/dist/ui/input/RelationAfter.svelte +0 -34
- package/dist/ui/input/RelationAfter.svelte.d.ts +0 -26
- package/dist/ui/input/SelectorList.svelte +0 -50
- package/dist/ui/input/SelectorList.svelte.d.ts +0 -49
- package/dist/ui/input/action.d.ts +0 -13
- package/dist/ui/input/action.js +0 -56
- package/dist/ui/input/index.d.ts +0 -26
- package/dist/ui/input/index.js +0 -26
- package/dist/ui/input/textRich/InputTextRich.svelte +0 -72
- package/dist/ui/input/textRich/InputTextRich.svelte.d.ts +0 -48
- package/dist/ui/input/textRich/SuggesionList.svelte +0 -25
- package/dist/ui/input/textRich/SuggesionList.svelte.d.ts +0 -23
- package/dist/ui/input/textRich/ToolMark.svelte +0 -22
- package/dist/ui/input/textRich/ToolMark.svelte.d.ts +0 -25
- package/dist/ui/input/textRich/ToolMarkColor.svelte +0 -36
- package/dist/ui/input/textRich/ToolMarkColor.svelte.d.ts +0 -23
- package/dist/ui/input/textRich/ToolMarkLink.svelte +0 -72
- package/dist/ui/input/textRich/ToolMarkLink.svelte.d.ts +0 -21
- package/dist/ui/input/textRich/ToolMenu.svelte +0 -66
- package/dist/ui/input/textRich/ToolMenu.svelte.d.ts +0 -33
- package/dist/ui/input/textRich/ToolMenuAlign.svelte +0 -50
- package/dist/ui/input/textRich/ToolMenuAlign.svelte.d.ts +0 -21
- package/dist/ui/input/textRich/ToolMenuInsert.svelte +0 -54
- package/dist/ui/input/textRich/ToolMenuInsert.svelte.d.ts +0 -23
- package/dist/ui/input/textRich/ToolMenuNode.svelte +0 -60
- package/dist/ui/input/textRich/ToolMenuNode.svelte.d.ts +0 -21
- package/dist/ui/input/textRich/ToolsBar.svelte +0 -61
- package/dist/ui/input/textRich/ToolsBar.svelte.d.ts +0 -24
- package/dist/ui/input/textRich/extensions.d.ts +0 -2
- package/dist/ui/input/textRich/extensions.js +0 -62
- package/dist/ui/input/textRich/indent.d.ts +0 -13
- package/dist/ui/input/textRich/indent.js +0 -112
- package/dist/ui/input/textRich/index.d.ts +0 -3
- package/dist/ui/input/textRich/index.js +0 -3
- package/dist/ui/input/textRich/suggestion.d.ts +0 -7
- package/dist/ui/input/textRich/suggestion.js +0 -55
- package/dist/ui/input/textRich/tiptapParser.d.ts +0 -4
- package/dist/ui/input/textRich/tiptapParser.js +0 -29
- package/dist/ui/input/types.d.ts +0 -15
- package/dist/ui/input/types.js +0 -1
- package/dist/ui/login/Login.svelte +0 -99
- package/dist/ui/login/Login.svelte.d.ts +0 -20
- package/dist/ui/login/index.d.ts +0 -1
- package/dist/ui/login/index.js +0 -1
- package/dist/ui/placeholder/Placeholder.svelte +0 -12
- package/dist/ui/placeholder/Placeholder.svelte.d.ts +0 -30
- package/dist/ui/placeholder/PlaceholderImage.svelte +0 -16
- package/dist/ui/placeholder/PlaceholderImage.svelte.d.ts +0 -30
- package/dist/ui/placeholder/index.d.ts +0 -2
- package/dist/ui/placeholder/index.js +0 -2
- package/dist/ui/tabs/Tabs.svelte +0 -32
- package/dist/ui/tabs/Tabs.svelte.d.ts +0 -22
- package/dist/ui/tabs/TabsIcon.svelte +0 -60
- package/dist/ui/tabs/TabsIcon.svelte.d.ts +0 -24
- package/dist/ui/tabs/index.d.ts +0 -8
- package/dist/ui/tabs/index.js +0 -2
- package/dist/utils/avatar.d.ts +0 -1
- package/dist/utils/avatar.js +0 -5
- package/dist/utils/component.d.ts +0 -6
- package/dist/utils/component.js +0 -3
- package/dist/validation/form.d.ts +0 -34
- package/dist/validation/form.js +0 -103
|
@@ -1,41 +1,15 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
1
2
|
import type { TippyProps } from '../../utils/tippy.js';
|
|
2
|
-
|
|
3
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
-
$$bindings?: Bindings;
|
|
5
|
-
} & Exports;
|
|
6
|
-
(internal: unknown, props: Props & {
|
|
7
|
-
$$events?: Events;
|
|
8
|
-
$$slots?: Slots;
|
|
9
|
-
}): Exports & {
|
|
10
|
-
$set?: any;
|
|
11
|
-
$on?: any;
|
|
12
|
-
};
|
|
13
|
-
z_$$bindings?: Bindings;
|
|
14
|
-
}
|
|
15
|
-
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
16
|
-
default: any;
|
|
17
|
-
} ? Props extends Record<string, never> ? any : {
|
|
18
|
-
children?: any;
|
|
19
|
-
} : {});
|
|
20
|
-
declare const ContextMenu: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
type $$ComponentProps = {
|
|
21
4
|
tippyProps?: Partial<TippyProps>;
|
|
22
5
|
class?: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}>, {
|
|
29
|
-
show: CustomEvent<void>;
|
|
30
|
-
hide: CustomEvent<void>;
|
|
31
|
-
} & {
|
|
32
|
-
[evt: string]: CustomEvent<any>;
|
|
33
|
-
}, {
|
|
34
|
-
header: {};
|
|
35
|
-
default: {};
|
|
36
|
-
}, {
|
|
6
|
+
onShow?: () => void;
|
|
7
|
+
onHide?: () => void;
|
|
8
|
+
children: Snippet;
|
|
9
|
+
};
|
|
10
|
+
declare const ContextMenu: import("svelte").Component<$$ComponentProps, {
|
|
37
11
|
show: (event: MouseEvent) => void;
|
|
38
12
|
hide: () => void;
|
|
39
|
-
},
|
|
40
|
-
type ContextMenu =
|
|
13
|
+
}, "">;
|
|
14
|
+
type ContextMenu = ReturnType<typeof ContextMenu>;
|
|
41
15
|
export default ContextMenu;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<script lang="ts"
|
|
2
|
-
import { createSingleton, type TippyInstance } from '../../utils/tippy.js'
|
|
1
|
+
<script lang="ts" module>
|
|
3
2
|
import type { CreateSingletonInstance } from 'tippy.js'
|
|
3
|
+
import { createSingleton, type TippyInstance } from '../../utils/tippy.js'
|
|
4
4
|
|
|
5
5
|
let sigleton: CreateSingletonInstance | null = null
|
|
6
6
|
const tips: TippyInstance[] = []
|
|
@@ -8,37 +8,55 @@
|
|
|
8
8
|
|
|
9
9
|
<script lang="ts">
|
|
10
10
|
import { tippy, type TippyProps } from '../../utils/tippy.js'
|
|
11
|
-
import { onMount } from 'svelte'
|
|
11
|
+
import { onMount, type Snippet } from 'svelte'
|
|
12
12
|
import { beforeNavigate } from '$app/navigation'
|
|
13
13
|
import './dropdown.css'
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
let {
|
|
16
|
+
tippyProps = {},
|
|
17
|
+
class: klass = '',
|
|
18
|
+
classWrapper = '',
|
|
19
|
+
classActivator = '',
|
|
20
|
+
useSingleton = false,
|
|
21
|
+
autofocus = false,
|
|
22
|
+
hideOnBlur = false,
|
|
23
|
+
hideOnNav = true,
|
|
24
|
+
disable = false,
|
|
25
|
+
tip,
|
|
26
|
+
content,
|
|
27
|
+
activator,
|
|
28
|
+
children
|
|
29
|
+
}: {
|
|
30
|
+
tippyProps?: Partial<TippyProps>
|
|
31
|
+
class?: string
|
|
32
|
+
classWrapper?: string
|
|
33
|
+
classActivator?: string
|
|
34
|
+
useSingleton?: boolean
|
|
35
|
+
autofocus?: boolean
|
|
36
|
+
hideOnBlur?: boolean
|
|
37
|
+
hideOnNav?: boolean
|
|
38
|
+
tip?: TippyInstance
|
|
39
|
+
// By pass dropdown for use in flat mode
|
|
40
|
+
disable?: boolean
|
|
41
|
+
content?: HTMLDivElement
|
|
42
|
+
activator?: Snippet<[{ tip?: TippyInstance; hide: () => void; show: () => void }]>
|
|
43
|
+
children: Snippet<[{ tip?: TippyInstance; hide: () => void; show: () => void }]>
|
|
44
|
+
} = $props()
|
|
45
|
+
|
|
46
|
+
let activatorElement: HTMLDivElement | undefined = $state()
|
|
29
47
|
|
|
30
48
|
beforeNavigate(() => hideOnNav && hide())
|
|
31
49
|
|
|
32
50
|
onMount(() => {
|
|
33
|
-
if (disable) return
|
|
51
|
+
if (disable || !activatorElement) return
|
|
34
52
|
|
|
35
|
-
const triggerTarget =
|
|
53
|
+
const triggerTarget = activatorElement.querySelector('button, input') || activatorElement
|
|
36
54
|
const focusables = Array.from(
|
|
37
55
|
content!.querySelectorAll<HTMLInputElement>(
|
|
38
56
|
'a[href], button, input, textarea, select, details, [tabindex]'
|
|
39
57
|
)
|
|
40
58
|
)
|
|
41
|
-
tip = tippy(
|
|
59
|
+
tip = tippy(activatorElement, {
|
|
42
60
|
content,
|
|
43
61
|
placement: 'bottom-start',
|
|
44
62
|
theme: 'dropdown',
|
|
@@ -96,21 +114,21 @@
|
|
|
96
114
|
|
|
97
115
|
{#if !disable}
|
|
98
116
|
<div class={classWrapper}>
|
|
99
|
-
<div class={classActivator} bind:this={
|
|
100
|
-
|
|
117
|
+
<div class={classActivator} bind:this={activatorElement}>
|
|
118
|
+
{@render activator?.({ tip, hide, show })}
|
|
101
119
|
</div>
|
|
102
120
|
|
|
103
121
|
<div class="hidden">
|
|
104
|
-
<div class="{klass} bg-base-100
|
|
105
|
-
|
|
122
|
+
<div class="{klass} rounded-lg border bg-base-100 p-1 shadow-lg" bind:this={content}>
|
|
123
|
+
{@render children({ tip, hide, show })}
|
|
106
124
|
</div>
|
|
107
125
|
</div>
|
|
108
126
|
</div>
|
|
109
127
|
{:else}
|
|
110
128
|
<div class={classWrapper}>
|
|
111
|
-
|
|
129
|
+
{@render activator?.({ tip, hide, show })}
|
|
112
130
|
<div class="{klass} mt-2">
|
|
113
|
-
|
|
131
|
+
{@render children({ tip, hide, show })}
|
|
114
132
|
</div>
|
|
115
133
|
</div>
|
|
116
134
|
{/if}
|
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
import { type TippyInstance } from '../../utils/tippy.js';
|
|
2
2
|
import { type TippyProps } from '../../utils/tippy.js';
|
|
3
|
+
import { type Snippet } from 'svelte';
|
|
3
4
|
import './dropdown.css';
|
|
4
|
-
|
|
5
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
6
|
-
$$bindings?: Bindings;
|
|
7
|
-
} & Exports;
|
|
8
|
-
(internal: unknown, props: Props & {
|
|
9
|
-
$$events?: Events;
|
|
10
|
-
$$slots?: Slots;
|
|
11
|
-
}): Exports & {
|
|
12
|
-
$set?: any;
|
|
13
|
-
$on?: any;
|
|
14
|
-
};
|
|
15
|
-
z_$$bindings?: Bindings;
|
|
16
|
-
}
|
|
17
|
-
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
18
|
-
default: any;
|
|
19
|
-
} ? Props extends Record<string, never> ? any : {
|
|
20
|
-
children?: any;
|
|
21
|
-
} : {});
|
|
22
|
-
declare const DropDown: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
5
|
+
type $$ComponentProps = {
|
|
23
6
|
tippyProps?: Partial<TippyProps>;
|
|
24
7
|
class?: string;
|
|
25
8
|
classWrapper?: string;
|
|
@@ -28,32 +11,24 @@ declare const DropDown: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsW
|
|
|
28
11
|
autofocus?: boolean;
|
|
29
12
|
hideOnBlur?: boolean;
|
|
30
13
|
hideOnNav?: boolean;
|
|
31
|
-
tip?: TippyInstance
|
|
14
|
+
tip?: TippyInstance;
|
|
32
15
|
disable?: boolean;
|
|
33
|
-
content?: HTMLDivElement
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}, {
|
|
47
|
-
activator: {
|
|
48
|
-
tip: TippyInstance<TippyProps> | undefined;
|
|
49
|
-
};
|
|
50
|
-
default: {
|
|
51
|
-
tip: TippyInstance<TippyProps> | undefined;
|
|
52
|
-
};
|
|
53
|
-
}, {
|
|
16
|
+
content?: HTMLDivElement;
|
|
17
|
+
activator?: Snippet<[{
|
|
18
|
+
tip?: TippyInstance;
|
|
19
|
+
hide: () => void;
|
|
20
|
+
show: () => void;
|
|
21
|
+
}]>;
|
|
22
|
+
children: Snippet<[{
|
|
23
|
+
tip?: TippyInstance;
|
|
24
|
+
hide: () => void;
|
|
25
|
+
show: () => void;
|
|
26
|
+
}]>;
|
|
27
|
+
};
|
|
28
|
+
declare const DropDown: import("svelte").Component<$$ComponentProps, {
|
|
54
29
|
hide: () => void;
|
|
55
30
|
show: () => void;
|
|
56
31
|
setTippyProps: (props: Partial<TippyProps>) => void;
|
|
57
|
-
},
|
|
58
|
-
type DropDown =
|
|
32
|
+
}, "">;
|
|
33
|
+
type DropDown = ReturnType<typeof DropDown>;
|
|
59
34
|
export default DropDown;
|
|
@@ -1,50 +1,60 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { Icon } from '../icon/index.js'
|
|
2
|
+
import { ChevronsUpDownIcon } from '@lucide/svelte'
|
|
3
|
+
import type { Snippet } from 'svelte'
|
|
6
4
|
import { DropDown } from './index.js'
|
|
7
|
-
import { SelectorList } from '../input/index.js'
|
|
8
5
|
import { type Options, parseOptions } from '../../utils/options.js'
|
|
9
6
|
import type { TippyProps } from '../../utils/tippy.js'
|
|
10
7
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
8
|
+
let {
|
|
9
|
+
options: optionsProp,
|
|
10
|
+
tippyProps = {},
|
|
11
|
+
onSelect,
|
|
12
|
+
children: childrenProp
|
|
13
|
+
}: {
|
|
14
|
+
options: Options
|
|
15
|
+
tippyProps?: Partial<TippyProps>
|
|
16
|
+
onSelect?: (value: string) => void
|
|
17
|
+
children?: Snippet
|
|
18
|
+
} = $props()
|
|
19
|
+
|
|
20
|
+
let options = $derived(parseOptions(optionsProp))
|
|
21
|
+
let trigger = $state<HTMLElement>()
|
|
26
22
|
</script>
|
|
27
23
|
|
|
28
|
-
<DropDown
|
|
29
|
-
|
|
30
|
-
<
|
|
31
|
-
|
|
24
|
+
<DropDown {tippyProps}>
|
|
25
|
+
{#snippet activator()}
|
|
26
|
+
<button
|
|
27
|
+
bind:this={trigger}
|
|
28
|
+
type="button"
|
|
29
|
+
class="flex h-12 items-center gap-2 rounded-lg border pr-2 pl-4"
|
|
30
|
+
>
|
|
31
|
+
{#if childrenProp}
|
|
32
|
+
{@render childrenProp()}
|
|
33
|
+
{:else}
|
|
32
34
|
<span>Menu</span>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
{/if}
|
|
36
|
+
<ChevronsUpDownIcon class="ml-auto" size={18} />
|
|
37
|
+
</button>
|
|
38
|
+
{/snippet}
|
|
39
|
+
|
|
40
|
+
{#snippet children({ hide })}
|
|
41
|
+
<span>TODO: use Command or REMOVE THIS COMPONENT</span>
|
|
42
|
+
|
|
43
|
+
<!-- <SelectorList
|
|
44
|
+
{trigger}
|
|
45
|
+
items={options.map((opt) => ({ id: opt.value, ...opt }))}
|
|
46
|
+
onSelect={(index) => {
|
|
47
|
+
onSelect?.(options[index].value);
|
|
48
|
+
hide();
|
|
49
|
+
}}
|
|
50
|
+
class="w-full"
|
|
51
|
+
>
|
|
52
|
+
{#snippet children({ item })}
|
|
53
|
+
{#if item.icon}
|
|
54
|
+
<item.icon size={18} class="opacity-70" />
|
|
55
|
+
{/if}
|
|
56
|
+
<span class="pr-4 whitespace-nowrap">{item.label}</span>
|
|
57
|
+
{/snippet}
|
|
58
|
+
</SelectorList> -->
|
|
59
|
+
{/snippet}
|
|
50
60
|
</DropDown>
|
|
@@ -1,34 +1,12 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
1
2
|
import { type Options } from '../../utils/options.js';
|
|
2
3
|
import type { TippyProps } from '../../utils/tippy.js';
|
|
3
|
-
|
|
4
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
5
|
-
$$bindings?: Bindings;
|
|
6
|
-
} & Exports;
|
|
7
|
-
(internal: unknown, props: Props & {
|
|
8
|
-
$$events?: Events;
|
|
9
|
-
$$slots?: Slots;
|
|
10
|
-
}): Exports & {
|
|
11
|
-
$set?: any;
|
|
12
|
-
$on?: any;
|
|
13
|
-
};
|
|
14
|
-
z_$$bindings?: Bindings;
|
|
15
|
-
}
|
|
16
|
-
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
17
|
-
default: any;
|
|
18
|
-
} ? Props extends Record<string, never> ? any : {
|
|
19
|
-
children?: any;
|
|
20
|
-
} : {});
|
|
21
|
-
declare const DropDownMenu: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
4
|
+
type $$ComponentProps = {
|
|
22
5
|
options: Options;
|
|
23
6
|
tippyProps?: Partial<TippyProps>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
}, {
|
|
31
|
-
default: {};
|
|
32
|
-
}, {}, string>;
|
|
33
|
-
type DropDownMenu = InstanceType<typeof DropDownMenu>;
|
|
7
|
+
onSelect?: (value: string) => void;
|
|
8
|
+
children?: Snippet;
|
|
9
|
+
};
|
|
10
|
+
declare const DropDownMenu: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
11
|
+
type DropDownMenu = ReturnType<typeof DropDownMenu>;
|
|
34
12
|
export default DropDownMenu;
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
padding: 0.25rem;
|
|
19
19
|
border-radius: 0.5rem;
|
|
20
20
|
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
21
|
-
--tw-shadow-colored:
|
|
22
|
-
0 4px 6px -4px var(--tw-shadow-color);
|
|
23
|
-
box-shadow:
|
|
24
|
-
var(--tw-shadow);
|
|
21
|
+
--tw-shadow-colored:
|
|
22
|
+
0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
23
|
+
box-shadow:
|
|
24
|
+
var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.tippy-box[data-theme~='dropdown-border'] > .tippy-content {
|
package/dist/ui/menu/index.d.ts
CHANGED
package/dist/ui/menu/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { default as DropDown } from './DropDown.svelte';
|
|
2
1
|
export { default as ContextMenu } from './ContextMenu.svelte';
|
|
2
|
+
export { default as DropDown } from './DropDown.svelte';
|
|
3
3
|
export { default as DropDownMenu } from './DropDownMenu.svelte';
|
|
4
|
+
// TODO: probably replaced by Popover
|
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { MoonIcon, SunIcon, SunMoonIcon } from '@lucide/svelte'
|
|
3
|
+
import { type Snippet } from 'svelte'
|
|
4
|
+
import { type Mode, type ModeEnum, useMode } from './useMode.svelte.js'
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
let {
|
|
7
|
+
themes = { light: 'light', dark: 'dark' },
|
|
8
|
+
class: klass = '',
|
|
9
|
+
children
|
|
10
|
+
}: {
|
|
11
|
+
themes?: Record<ModeEnum, string>
|
|
12
|
+
class?: string
|
|
13
|
+
children?: Snippet<[{ mode: Mode }]>
|
|
14
|
+
} = $props()
|
|
6
15
|
|
|
7
|
-
let
|
|
8
|
-
export { klass as class }
|
|
9
|
-
export let defaultMode: 'dark' | 'light' | 'system' | undefined = undefined
|
|
10
|
-
|
|
11
|
-
$: path = $mode === 'light' ? mdiWhiteBalanceSunny : mdiWeatherNight
|
|
16
|
+
let mode = $derived(useMode(themes))
|
|
12
17
|
</script>
|
|
13
18
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<button class="btn btn-square btn-sm {klass}"
|
|
18
|
-
|
|
19
|
+
{#if children}
|
|
20
|
+
{@render children({ mode })}
|
|
21
|
+
{:else}
|
|
22
|
+
<button class="btn btn-square btn-sm {klass}" onclick={mode.toggle}>
|
|
23
|
+
{#if mode.choice === 'light'}
|
|
24
|
+
<SunIcon />
|
|
25
|
+
{:else if mode.choice === 'dark'}
|
|
26
|
+
<MoonIcon />
|
|
27
|
+
{:else}
|
|
28
|
+
<SunMoonIcon />
|
|
29
|
+
{/if}
|
|
19
30
|
</button>
|
|
20
|
-
|
|
31
|
+
{/if}
|
|
@@ -1,37 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} & Exports;
|
|
6
|
-
(internal: unknown, props: Props & {
|
|
7
|
-
$$events?: Events;
|
|
8
|
-
$$slots?: Slots;
|
|
9
|
-
}): Exports & {
|
|
10
|
-
$set?: any;
|
|
11
|
-
$on?: any;
|
|
12
|
-
};
|
|
13
|
-
z_$$bindings?: Bindings;
|
|
14
|
-
}
|
|
15
|
-
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
16
|
-
default: any;
|
|
17
|
-
} ? Props extends Record<string, never> ? any : {
|
|
18
|
-
children?: any;
|
|
19
|
-
} : {});
|
|
20
|
-
declare const ToggleMode: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
1
|
+
import { type Snippet } from 'svelte';
|
|
2
|
+
import { type Mode, type ModeEnum } from './useMode.svelte.js';
|
|
3
|
+
type $$ComponentProps = {
|
|
4
|
+
themes?: Record<ModeEnum, string>;
|
|
21
5
|
class?: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}>, {
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
}, {
|
|
31
|
-
default: {
|
|
32
|
-
toggleMode: typeof toggleMode;
|
|
33
|
-
path: string;
|
|
34
|
-
};
|
|
35
|
-
}, {}, string>;
|
|
36
|
-
type ToggleMode = InstanceType<typeof ToggleMode>;
|
|
6
|
+
children?: Snippet<[{
|
|
7
|
+
mode: Mode;
|
|
8
|
+
}]>;
|
|
9
|
+
};
|
|
10
|
+
declare const ToggleMode: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
11
|
+
type ToggleMode = ReturnType<typeof ToggleMode>;
|
|
37
12
|
export default ToggleMode;
|
package/dist/ui/mode/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ToggleMode } from './ToggleMode.svelte';
|
|
2
|
-
export {
|
|
2
|
+
export { useMode } from './useMode.svelte.js';
|
package/dist/ui/mode/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ToggleMode } from './ToggleMode.svelte';
|
|
2
|
-
export {
|
|
2
|
+
export { useMode } from './useMode.svelte.js';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PersistedState } from 'runed';
|
|
2
|
+
import { MediaQuery } from 'svelte/reactivity';
|
|
3
|
+
let mode;
|
|
4
|
+
export function useMode(themes = { light: 'light', dark: 'dark' }) {
|
|
5
|
+
if (!mode)
|
|
6
|
+
mode = createMode(themes);
|
|
7
|
+
return mode;
|
|
8
|
+
}
|
|
9
|
+
function createMode(themes = { light: 'light', dark: 'dark' }) {
|
|
10
|
+
const choice = new PersistedState('mode-choice', null);
|
|
11
|
+
const modeSystemIsLight = new MediaQuery('prefers-color-scheme: light');
|
|
12
|
+
const modeSystem = $derived(modeSystemIsLight.current ? 'light' : 'dark');
|
|
13
|
+
const modeValue = $derived(choice.current || modeSystem);
|
|
14
|
+
$effect(() => {
|
|
15
|
+
const rootEl = document.documentElement;
|
|
16
|
+
rootEl.dataset.theme = themes[modeValue];
|
|
17
|
+
});
|
|
18
|
+
return {
|
|
19
|
+
get current() {
|
|
20
|
+
return modeValue;
|
|
21
|
+
},
|
|
22
|
+
get choice() {
|
|
23
|
+
return choice.current;
|
|
24
|
+
},
|
|
25
|
+
set choice(m) {
|
|
26
|
+
choice.current = m;
|
|
27
|
+
},
|
|
28
|
+
toggle() {
|
|
29
|
+
if (!choice.current) {
|
|
30
|
+
choice.current = 'light';
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (choice.current === 'light') {
|
|
34
|
+
choice.current = 'dark';
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
choice.current = null;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { urlParam } from '../../
|
|
2
|
+
import { ChevronLeftIcon, ChevronRightIcon } from '@lucide/svelte'
|
|
3
|
+
import { tip } from '../../action/tip.js'
|
|
4
|
+
import { param, urlParam } from '../../state/index.ts'
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
let { take = 20 }: { take?: number } = $props()
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
let skip = $derived(+(param.get('skip') || 0))
|
|
9
|
+
$effect(() => {
|
|
10
|
+
take = +(param.get('take') || take)
|
|
11
|
+
})
|
|
10
12
|
</script>
|
|
11
13
|
|
|
12
14
|
<div class="join">
|
|
13
15
|
<a
|
|
14
|
-
href={
|
|
16
|
+
href={urlParam.with({ skip: skip - take, take })}
|
|
15
17
|
data-sveltekit-replacestate
|
|
16
|
-
class:btn-disabled={skip -
|
|
17
|
-
class="btn
|
|
18
|
+
class:btn-disabled={skip - take < 0}
|
|
19
|
+
class="btn join-item btn-square btn-sm"
|
|
20
|
+
use:tip={{ content: 'Afficher les données précédentes' }}
|
|
18
21
|
>
|
|
19
|
-
<
|
|
22
|
+
<ChevronLeftIcon />
|
|
20
23
|
</a>
|
|
21
24
|
<a
|
|
22
|
-
href={
|
|
25
|
+
href={urlParam.with({ skip: skip + take, take })}
|
|
23
26
|
data-sveltekit-replacestate
|
|
24
|
-
class="btn join-item btn-sm
|
|
27
|
+
class="btn join-item pr-1 btn-sm"
|
|
28
|
+
use:tip={{ content: 'Afficher les données suivante' }}
|
|
25
29
|
>
|
|
26
|
-
{skip + 1} - {skip +
|
|
27
|
-
<
|
|
30
|
+
{skip + 1} - {skip + take}
|
|
31
|
+
<ChevronRightIcon />
|
|
28
32
|
</a>
|
|
29
33
|
</div>
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
-
$$bindings?: Bindings;
|
|
4
|
-
} & Exports;
|
|
5
|
-
(internal: unknown, props: Props & {
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
11
|
-
};
|
|
12
|
-
z_$$bindings?: Bindings;
|
|
13
|
-
}
|
|
14
|
-
declare const Pagination: $$__sveltets_2_IsomorphicComponent<{
|
|
1
|
+
type $$ComponentProps = {
|
|
15
2
|
take?: number;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
type Pagination = InstanceType<typeof Pagination>;
|
|
3
|
+
};
|
|
4
|
+
declare const Pagination: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
5
|
+
type Pagination = ReturnType<typeof Pagination>;
|
|
20
6
|
export default Pagination;
|