@humandialog/forms.svelte 1.7.28 → 1.8.1
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/components/Fab.25.svelte +473 -0
- package/components/Fab.25.svelte.d.ts +18 -0
- package/components/Fab.svelte +51 -170
- package/components/Floating_container.25.svelte +178 -0
- package/components/Floating_container.25.svelte.d.ts +23 -0
- package/components/Floating_container.svelte +18 -6
- package/components/Grid.menu.svelte +15 -16
- package/components/Grid.menu.svelte.d.ts +2 -2
- package/components/breadcrumb.svelte +27 -27
- package/components/checkbox.svelte +1 -1
- package/components/combo/combo.svelte +60 -79
- package/components/combo/combo.svelte.d.ts +1 -0
- package/components/contextmenu-25.svelte +518 -0
- package/components/contextmenu-25.svelte.d.ts +26 -0
- package/components/contextmenu.svelte +179 -65
- package/components/contextmenu.svelte.d.ts +2 -2
- package/components/date.svelte +42 -21
- package/components/date.svelte.d.ts +1 -0
- package/components/delayed.spinner.svelte +2 -1
- package/components/document/editor.svelte +21 -31
- package/components/document/editor.svelte.d.ts +0 -2
- package/components/document/internal/palette.row.svelte +10 -8
- package/components/document/internal/palette.svelte +7 -8
- package/components/document/rich.edit.svelte +10 -10
- package/components/edit.field.svelte +1 -1
- package/components/input.text.svelte.d.ts +2 -2
- package/components/inputbox.ltop.svelte +1 -1
- package/components/inputbox.ltop.svelte.d.ts +12 -12
- package/components/kanban/internal/kanban.card.svelte +27 -47
- package/components/kanban/internal/kanban.column.svelte +44 -24
- package/components/kanban/internal/kanban.inserter.svelte +11 -14
- package/components/kanban/internal/kanban.move.menu.svelte +12 -12
- package/components/kanban/internal/kanban.props.svelte +24 -9
- package/components/kanban/kanban.svelte +24 -77
- package/components/kanban/kanban.svelte.d.ts +2 -0
- package/components/kanban copy.zip +0 -0
- package/components/list/List.d.ts +1 -0
- package/components/list/List.js +1 -0
- package/components/list/internal/list.element copy.svelte +530 -0
- package/components/list/internal/list.element copy.svelte.d.ts +35 -0
- package/components/list/internal/list.element.svelte +311 -279
- package/components/list/internal/list.element.svelte.d.ts +5 -7
- package/components/list/internal/list.inserter.svelte +38 -6
- package/components/list/internal/note.txt +5 -0
- package/components/list/list.svelte +32 -11
- package/components/list/list.svelte.d.ts +5 -3
- package/components/list/list.title.svelte +2 -0
- package/components/list/list.title.svelte.d.ts +1 -0
- package/components/menu.d.ts +1 -1
- package/components/menu.js +3 -3
- package/components/paginator.svelte +79 -9
- package/components/prose.editable.p.svelte.d.ts +2 -2
- package/components/prose.editable.span.svelte.d.ts +2 -2
- package/components/r.edit.svelte +9 -0
- package/components/r.edit.svelte.d.ts +23 -0
- package/components/r.editable.svelte +75 -0
- package/components/r.editable.svelte.d.ts +31 -0
- package/components/r.figcaption.svelte +5 -0
- package/components/r.figcaption.svelte.d.ts +27 -0
- package/components/r.figure.svelte +25 -0
- package/components/r.figure.svelte.d.ts +29 -0
- package/components/r.icon.svelte +229 -0
- package/components/r.icon.svelte.d.ts +33 -0
- package/components/radio.svelte +1 -1
- package/components/ricons/arrow-up.svelte +11 -0
- package/components/ricons/arrow-up.svelte.d.ts +27 -0
- package/components/ricons/barcode.svelte +14 -0
- package/components/ricons/barcode.svelte.d.ts +27 -0
- package/components/ricons/bold.svelte +10 -0
- package/components/ricons/bold.svelte.d.ts +27 -0
- package/components/ricons/calendar.svelte +13 -0
- package/components/ricons/calendar.svelte.d.ts +27 -0
- package/components/ricons/calendars.svelte +16 -0
- package/components/ricons/calendars.svelte.d.ts +27 -0
- package/components/ricons/cat.svelte +14 -0
- package/components/ricons/cat.svelte.d.ts +27 -0
- package/components/ricons/check-check.svelte +12 -0
- package/components/ricons/check-check.svelte.d.ts +27 -0
- package/components/ricons/check.svelte +18 -0
- package/components/ricons/check.svelte.d.ts +27 -0
- package/components/ricons/chess-rook.svelte +17 -0
- package/components/ricons/chess-rook.svelte.d.ts +27 -0
- package/components/ricons/chevron-down.svelte +11 -0
- package/components/ricons/chevron-down.svelte.d.ts +27 -0
- package/components/ricons/chevron-left.svelte +11 -0
- package/components/ricons/chevron-left.svelte.d.ts +27 -0
- package/components/ricons/chevron-right.svelte +11 -0
- package/components/ricons/chevron-right.svelte.d.ts +27 -0
- package/components/ricons/chevron-up.svelte +11 -0
- package/components/ricons/chevron-up.svelte.d.ts +27 -0
- package/components/ricons/chevrons-down.svelte +12 -0
- package/components/ricons/chevrons-down.svelte.d.ts +27 -0
- package/components/ricons/chevrons-left-right.svelte +12 -0
- package/components/ricons/chevrons-left-right.svelte.d.ts +27 -0
- package/components/ricons/chevrons-left.svelte +12 -0
- package/components/ricons/chevrons-left.svelte.d.ts +27 -0
- package/components/ricons/chevrons-right.svelte +12 -0
- package/components/ricons/chevrons-right.svelte.d.ts +27 -0
- package/components/ricons/chevrons-up-down.svelte +12 -0
- package/components/ricons/chevrons-up-down.svelte.d.ts +27 -0
- package/components/ricons/chevrons-up.svelte +12 -0
- package/components/ricons/chevrons-up.svelte.d.ts +27 -0
- package/components/ricons/circle-check.svelte +28 -0
- package/components/ricons/circle-check.svelte.d.ts +23 -0
- package/components/ricons/circle-dashed.svelte +19 -0
- package/components/ricons/circle-dashed.svelte.d.ts +27 -0
- package/components/ricons/circle-dot-dashed.svelte +20 -0
- package/components/ricons/circle-dot-dashed.svelte.d.ts +27 -0
- package/components/ricons/circle.svelte +30 -0
- package/components/ricons/circle.svelte.d.ts +23 -0
- package/components/ricons/clipboard-list.svelte +17 -0
- package/components/ricons/clipboard-list.svelte.d.ts +27 -0
- package/components/ricons/clipboard-minus.svelte +9 -0
- package/components/ricons/clipboard-minus.svelte.d.ts +23 -0
- package/components/ricons/clipboard-pen-line.svelte +18 -0
- package/components/ricons/clipboard-pen-line.svelte.d.ts +27 -0
- package/components/ricons/code-xml.svelte +12 -0
- package/components/ricons/code-xml.svelte.d.ts +27 -0
- package/components/ricons/download.svelte +13 -0
- package/components/ricons/download.svelte.d.ts +27 -0
- package/components/ricons/ellipsis-vertical.svelte +14 -0
- package/components/ricons/ellipsis-vertical.svelte.d.ts +27 -0
- package/components/ricons/file-archive.svelte +18 -0
- package/components/ricons/file-archive.svelte.d.ts +27 -0
- package/components/ricons/file-text.svelte +17 -0
- package/components/ricons/file-text.svelte.d.ts +27 -0
- package/components/ricons/folder.svelte +12 -0
- package/components/ricons/folder.svelte.d.ts +27 -0
- package/components/ricons/heading-1.svelte +13 -0
- package/components/ricons/heading-1.svelte.d.ts +27 -0
- package/components/ricons/heading-2.svelte +13 -0
- package/components/ricons/heading-2.svelte.d.ts +27 -0
- package/components/ricons/heading-3.svelte +14 -0
- package/components/ricons/heading-3.svelte.d.ts +27 -0
- package/components/ricons/heading-4.svelte +14 -0
- package/components/ricons/heading-4.svelte.d.ts +27 -0
- package/components/ricons/heading-5.svelte +14 -0
- package/components/ricons/heading-5.svelte.d.ts +27 -0
- package/components/ricons/image.svelte +12 -0
- package/components/ricons/image.svelte.d.ts +27 -0
- package/components/ricons/italic.svelte +12 -0
- package/components/ricons/italic.svelte.d.ts +27 -0
- package/components/ricons/languages.svelte +15 -0
- package/components/ricons/languages.svelte.d.ts +27 -0
- package/components/ricons/list-checks.svelte +15 -0
- package/components/ricons/list-checks.svelte.d.ts +27 -0
- package/components/ricons/list-minus.svelte +14 -0
- package/components/ricons/list-minus.svelte.d.ts +27 -0
- package/components/ricons/list-ordered.svelte +16 -0
- package/components/ricons/list-ordered.svelte.d.ts +27 -0
- package/components/ricons/list-plus.svelte +14 -0
- package/components/ricons/list-plus.svelte.d.ts +27 -0
- package/components/ricons/list.svelte +15 -0
- package/components/ricons/list.svelte.d.ts +27 -0
- package/components/ricons/loader-circle.svelte +19 -0
- package/components/ricons/loader-circle.svelte.d.ts +27 -0
- package/components/ricons/log-in.svelte +12 -0
- package/components/ricons/log-in.svelte.d.ts +27 -0
- package/components/ricons/log-out.svelte +12 -0
- package/components/ricons/log-out.svelte.d.ts +27 -0
- package/components/ricons/message-square.svelte +12 -0
- package/components/ricons/message-square.svelte.d.ts +27 -0
- package/components/ricons/messages-square.svelte +15 -0
- package/components/ricons/messages-square.svelte.d.ts +27 -0
- package/components/ricons/minus.svelte +10 -0
- package/components/ricons/minus.svelte.d.ts +27 -0
- package/components/ricons/notebook-tabs.svelte +19 -0
- package/components/ricons/notebook-tabs.svelte.d.ts +27 -0
- package/components/ricons/notebook.svelte +16 -0
- package/components/ricons/notebook.svelte.d.ts +27 -0
- package/components/ricons/package.svelte +22 -0
- package/components/ricons/package.svelte.d.ts +27 -0
- package/components/ricons/paperclip.svelte +12 -0
- package/components/ricons/paperclip.svelte.d.ts +27 -0
- package/components/ricons/pencil.svelte +12 -0
- package/components/ricons/pencil.svelte.d.ts +27 -0
- package/components/ricons/pilcrow.svelte +12 -0
- package/components/ricons/pilcrow.svelte.d.ts +27 -0
- package/components/ricons/save.svelte +12 -0
- package/components/ricons/save.svelte.d.ts +27 -0
- package/components/ricons/square-check-big.svelte +13 -0
- package/components/ricons/square-check-big.svelte.d.ts +27 -0
- package/components/ricons/square-pen.svelte +14 -0
- package/components/ricons/square-pen.svelte.d.ts +27 -0
- package/components/ricons/square.svelte +10 -0
- package/components/ricons/square.svelte.d.ts +27 -0
- package/components/ricons/strikethrough.svelte +13 -0
- package/components/ricons/strikethrough.svelte.d.ts +27 -0
- package/components/ricons/sun-moon.svelte +15 -0
- package/components/ricons/sun-moon.svelte.d.ts +27 -0
- package/components/ricons/table.svelte +13 -0
- package/components/ricons/table.svelte.d.ts +27 -0
- package/components/ricons/tag.svelte +12 -0
- package/components/ricons/tag.svelte.d.ts +27 -0
- package/components/ricons/text-quote.svelte +14 -0
- package/components/ricons/text-quote.svelte.d.ts +27 -0
- package/components/ricons/turtle.svelte +13 -0
- package/components/ricons/turtle.svelte.d.ts +27 -0
- package/components/ricons/underline.svelte +11 -0
- package/components/ricons/underline.svelte.d.ts +27 -0
- package/components/ricons/upload.svelte +13 -0
- package/components/ricons/upload.svelte.d.ts +27 -0
- package/components/ricons/user.svelte +12 -0
- package/components/ricons/user.svelte.d.ts +27 -0
- package/components/ricons/users.svelte +14 -0
- package/components/ricons/users.svelte.d.ts +27 -0
- package/components/ricons/x.svelte +11 -0
- package/components/ricons/x.svelte.d.ts +27 -0
- package/components/sidebar/sidebar.brand.svelte +14 -13
- package/components/sidebar/sidebar.brand.svelte.d.ts +2 -2
- package/components/sidebar/sidebar.group.svelte +52 -30
- package/components/sidebar/sidebar.item.svelte +35 -141
- package/components/sidebar/sidebar.item.svelte.d.ts +2 -5
- package/components/sidebar/sidebar.list.svelte +8 -8
- package/components/sidebar/sidebar.svelte +19 -2
- package/components/simple.table.svelte.d.ts +4 -4
- package/components/table/_template.table.svelte.d.ts +4 -4
- package/components/tags.svelte +10 -3
- package/components/tags.svelte.d.ts +1 -0
- package/components/textarea.ltop.svelte.d.ts +2 -2
- package/components/tile.title.svelte.d.ts +2 -2
- package/desk.svelte +139 -144
- package/dialog.svelte +17 -7
- package/form.box.svelte.d.ts +4 -4
- package/horizontal.nav.tabs.svelte +197 -23
- package/horizontal.nav.tabs.svelte.d.ts +2 -2
- package/horizontal.toolbar.svelte +25 -18
- package/horizontal.toolbar.svelte.d.ts +2 -2
- package/index.d.ts +10 -3
- package/index.js +10 -3
- package/operations.svelte +51 -22
- package/package.json +89 -1
- package/page.row.svelte.d.ts +2 -2
- package/page.svelte +17 -7
- package/page.svelte.d.ts +10 -10
- package/paper.header.svelte +4 -0
- package/paper.header.svelte.d.ts +27 -0
- package/paper.nav.svelte +8 -0
- package/paper.nav.svelte.d.ts +27 -0
- package/paper.svelte +22 -6
- package/paper.svelte.d.ts +2 -0
- package/paper.table.svelte +27 -0
- package/paper.table.svelte.d.ts +27 -0
- package/paper.top.margin.svelte +5 -0
- package/paper.top.margin.svelte.d.ts +27 -0
- package/stores.d.ts +1 -1
- package/tenant.create.svelte +93 -0
- package/tenant.create.svelte.d.ts +29 -0
- package/tenant.members.svelte +116 -93
- package/tile.svelte.d.ts +4 -4
- package/tiles.row.svelte.d.ts +2 -2
- package/tiles.vertical.row.svelte.d.ts +2 -2
- package/updates.d.ts +4 -0
- package/updates.js +56 -14
- package/utils.d.ts +16 -4
- package/utils.js +214 -99
- package/vertical.toolbar.svelte +62 -47
- package/vertical.toolbar.svelte.d.ts +2 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} UnderlineProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} UnderlineEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} UnderlineSlots */
|
|
4
|
+
export default class Underline extends SvelteComponentTyped<{
|
|
5
|
+
w?: number | undefined;
|
|
6
|
+
s?: number | undefined;
|
|
7
|
+
h?: number | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
}, {}> {
|
|
11
|
+
}
|
|
12
|
+
export type UnderlineProps = typeof __propDef.props;
|
|
13
|
+
export type UnderlineEvents = typeof __propDef.events;
|
|
14
|
+
export type UnderlineSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
w?: number | undefined;
|
|
19
|
+
s?: number | undefined;
|
|
20
|
+
h?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
};
|
|
25
|
+
slots: {};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
export let w = 24;
|
|
3
|
+
export let h = 24;
|
|
4
|
+
export let s = 1;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<svg xmlns="http://www.w3.org/2000/svg" width={w} height={h} viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
10
|
+
stroke-width={s} stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-upload-icon lucide-upload">
|
|
11
|
+
<path d="M12 3v12" />
|
|
12
|
+
<path d="m17 8-5-5-5 5" />
|
|
13
|
+
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /></svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} UploadProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} UploadEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} UploadSlots */
|
|
4
|
+
export default class Upload extends SvelteComponentTyped<{
|
|
5
|
+
w?: number | undefined;
|
|
6
|
+
s?: number | undefined;
|
|
7
|
+
h?: number | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
}, {}> {
|
|
11
|
+
}
|
|
12
|
+
export type UploadProps = typeof __propDef.props;
|
|
13
|
+
export type UploadEvents = typeof __propDef.events;
|
|
14
|
+
export type UploadSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
w?: number | undefined;
|
|
19
|
+
s?: number | undefined;
|
|
20
|
+
h?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
};
|
|
25
|
+
slots: {};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
export let w = 24;
|
|
3
|
+
export let h = 24;
|
|
4
|
+
export let s = 1;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<svg xmlns="http://www.w3.org/2000/svg" width={w} height={h} viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
10
|
+
stroke-width={s} stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-user-icon lucide-user">
|
|
11
|
+
<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
|
|
12
|
+
<circle cx="12" cy="7" r="4" /></svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} UserProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} UserEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} UserSlots */
|
|
4
|
+
export default class User extends SvelteComponentTyped<{
|
|
5
|
+
w?: number | undefined;
|
|
6
|
+
s?: number | undefined;
|
|
7
|
+
h?: number | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
}, {}> {
|
|
11
|
+
}
|
|
12
|
+
export type UserProps = typeof __propDef.props;
|
|
13
|
+
export type UserEvents = typeof __propDef.events;
|
|
14
|
+
export type UserSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
w?: number | undefined;
|
|
19
|
+
s?: number | undefined;
|
|
20
|
+
h?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
};
|
|
25
|
+
slots: {};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
export let w = 24;
|
|
3
|
+
export let h = 24;
|
|
4
|
+
export let s = 1;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<svg xmlns="http://www.w3.org/2000/svg" width={w} height={h} viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
10
|
+
stroke-width={s} stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users-icon lucide-users">
|
|
11
|
+
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />
|
|
12
|
+
<path d="M16 3.128a4 4 0 0 1 0 7.744" />
|
|
13
|
+
<path d="M22 21v-2a4 4 0 0 0-3-3.87" />
|
|
14
|
+
<circle cx="9" cy="7" r="4" /></svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} UsersProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} UsersEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} UsersSlots */
|
|
4
|
+
export default class Users extends SvelteComponentTyped<{
|
|
5
|
+
w?: number | undefined;
|
|
6
|
+
s?: number | undefined;
|
|
7
|
+
h?: number | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
}, {}> {
|
|
11
|
+
}
|
|
12
|
+
export type UsersProps = typeof __propDef.props;
|
|
13
|
+
export type UsersEvents = typeof __propDef.events;
|
|
14
|
+
export type UsersSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
w?: number | undefined;
|
|
19
|
+
s?: number | undefined;
|
|
20
|
+
h?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
};
|
|
25
|
+
slots: {};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
export let w = 24;
|
|
3
|
+
export let h = 24;
|
|
4
|
+
export let s = 1;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
<svg xmlns="http://www.w3.org/2000/svg" width={w} height={h} viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
9
|
+
stroke-width={s} stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x-icon lucide-x">
|
|
10
|
+
<path d="M18 6 6 18" />
|
|
11
|
+
<path d="m6 6 12 12" /></svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} XProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} XEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} XSlots */
|
|
4
|
+
export default class X extends SvelteComponentTyped<{
|
|
5
|
+
w?: number | undefined;
|
|
6
|
+
s?: number | undefined;
|
|
7
|
+
h?: number | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
}, {}> {
|
|
11
|
+
}
|
|
12
|
+
export type XProps = typeof __propDef.props;
|
|
13
|
+
export type XEvents = typeof __propDef.events;
|
|
14
|
+
export type XSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
w?: number | undefined;
|
|
19
|
+
s?: number | undefined;
|
|
20
|
+
h?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
};
|
|
25
|
+
slots: {};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -2,22 +2,23 @@
|
|
|
2
2
|
<script>
|
|
3
3
|
export let href = "/";
|
|
4
4
|
export let img = "";
|
|
5
|
+
export let summary = "Current group";
|
|
5
6
|
|
|
6
7
|
let user_class = $$props.class ?? "";
|
|
7
8
|
|
|
8
9
|
</script>
|
|
9
10
|
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
{
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
<figure>
|
|
12
|
+
<h2 class="mb-5 {user_class}">
|
|
13
|
+
<a href={href} class="">
|
|
14
|
+
{#if img}
|
|
15
|
+
<img src={img} class="h-6 mr-3 sm:h-7" alt="" />
|
|
16
|
+
{/if}
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</section>
|
|
18
|
+
<span >
|
|
19
|
+
<slot/>
|
|
20
|
+
</span>
|
|
21
|
+
</a>
|
|
22
|
+
</h2>
|
|
23
|
+
<figcaption>{summary}</figcaption>
|
|
24
|
+
</figure>
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
export default class Sidebar extends SvelteComponentTyped<{
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
img?: string | undefined;
|
|
7
|
+
summary?: string | undefined;
|
|
7
8
|
href?: string | undefined;
|
|
8
9
|
}, {
|
|
9
10
|
[evt: string]: CustomEvent<any>;
|
|
10
11
|
}, {
|
|
11
12
|
default: {};
|
|
12
|
-
summary: {};
|
|
13
13
|
}> {
|
|
14
14
|
}
|
|
15
15
|
export type SidebarProps = typeof __propDef.props;
|
|
@@ -20,6 +20,7 @@ declare const __propDef: {
|
|
|
20
20
|
props: {
|
|
21
21
|
[x: string]: any;
|
|
22
22
|
img?: string | undefined;
|
|
23
|
+
summary?: string | undefined;
|
|
23
24
|
href?: string | undefined;
|
|
24
25
|
};
|
|
25
26
|
events: {
|
|
@@ -27,7 +28,6 @@ declare const __propDef: {
|
|
|
27
28
|
};
|
|
28
29
|
slots: {
|
|
29
30
|
default: {};
|
|
30
|
-
summary: {};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import {FaChevronDown, FaChevronUp} from 'svelte-icons/fa'
|
|
3
|
+
import {navAutoHide} from '../../utils'
|
|
3
4
|
import {i18n} from '../../i18n'
|
|
4
|
-
import {link} from 'svelte-spa-router'
|
|
5
|
+
import {link, push} from 'svelte-spa-router'
|
|
5
6
|
|
|
6
7
|
export let border = false;
|
|
7
8
|
export let title = ''
|
|
@@ -22,43 +23,64 @@
|
|
|
22
23
|
collapsed = !collapsed;
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
function on_link_clicked(e)
|
|
27
|
+
{
|
|
28
|
+
if(!e.target)
|
|
29
|
+
return;
|
|
30
|
+
|
|
31
|
+
let linkNode = e.target;
|
|
32
|
+
while(linkNode && linkNode.tagName != 'A')
|
|
33
|
+
linkNode = linkNode.parentElement;
|
|
34
|
+
|
|
35
|
+
if(!linkNode)
|
|
36
|
+
return;
|
|
37
|
+
|
|
38
|
+
const href = linkNode.getAttribute('href');
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
|
|
41
|
+
navAutoHide()
|
|
42
|
+
redirect_to(href)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function redirect_to(href)
|
|
46
|
+
{
|
|
47
|
+
if(!href)
|
|
48
|
+
return;
|
|
25
49
|
|
|
50
|
+
let absolute_pattern = /^https?:\/\//i;
|
|
51
|
+
if (!absolute_pattern.test(href))
|
|
52
|
+
push(href);
|
|
53
|
+
else
|
|
54
|
+
window.location.href = href;
|
|
55
|
+
}
|
|
26
56
|
|
|
27
57
|
</script>
|
|
28
58
|
|
|
59
|
+
<hr class="my-0">
|
|
29
60
|
{#if title}
|
|
30
|
-
<
|
|
31
|
-
<p class="text-xs uppercase font-semibold">
|
|
32
|
-
{title}
|
|
33
|
-
{#if collapsable}
|
|
34
|
-
<button class="inline-block ml-3 sm:ml-2 sm:mt-0.5 w-4 sm:w-3 h-4 sm:h-3" on:click={toggleCollapsed}>
|
|
35
|
-
{#if collapsed}
|
|
36
|
-
<FaChevronDown/>
|
|
37
|
-
{:else}
|
|
38
|
-
<FaChevronUp/>
|
|
39
|
-
{/if}
|
|
40
|
-
</button>
|
|
41
|
-
{/if}
|
|
42
|
-
</p>
|
|
43
|
-
|
|
61
|
+
<figure >
|
|
44
62
|
{#if moreHref}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
63
|
+
|
|
64
|
+
<figcaption>
|
|
65
|
+
<div class="grid gap-4 grid-cols-2 grid-rows-1">
|
|
66
|
+
<span>{title}</span>
|
|
67
|
+
<a href={moreHref} class="text-right" use:link on:click={on_link_clicked}>
|
|
68
|
+
<span class="text-sky-500 text-right">
|
|
69
|
+
{i18n({en: 'More...', es: 'Más...', pl: 'Więcej...'})}
|
|
70
|
+
</span>
|
|
48
71
|
</a>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</figcaption>
|
|
52
74
|
|
|
53
|
-
{
|
|
75
|
+
{:else}
|
|
76
|
+
<figcaption >
|
|
77
|
+
{title}
|
|
78
|
+
</figcaption>
|
|
79
|
+
{/if}
|
|
80
|
+
</figure>
|
|
54
81
|
|
|
55
|
-
{#if !collapsable}
|
|
56
|
-
<ul class= "{list_border}">
|
|
57
|
-
<slot/>
|
|
58
|
-
</ul>
|
|
59
|
-
{:else if !collapsed}
|
|
60
|
-
<ul class="{list_border}">
|
|
61
|
-
<slot/>
|
|
62
|
-
</ul>
|
|
63
82
|
{/if}
|
|
64
83
|
|
|
84
|
+
<div >
|
|
85
|
+
<slot/>
|
|
86
|
+
</div>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>import { getContext, tick } from "svelte";
|
|
2
|
-
import
|
|
2
|
+
import Rfigure from "../r.figure.svelte";
|
|
3
|
+
import Ricon from "../r.icon.svelte";
|
|
3
4
|
import { contextItemsStore, contextToolbarOperations } from "../../stores";
|
|
4
5
|
import { FaBars, FaEllipsisV } from "svelte-icons/fa";
|
|
5
6
|
import { link, push } from "svelte-spa-router";
|
|
@@ -16,13 +17,14 @@ import {
|
|
|
16
17
|
} from "../../utils";
|
|
17
18
|
import { showMenu } from "../menu";
|
|
18
19
|
export let href;
|
|
19
|
-
export let icon =
|
|
20
|
+
export let icon = "cat";
|
|
20
21
|
export let active = false;
|
|
21
22
|
export let selectable = void 0;
|
|
22
23
|
export let editable = void 0;
|
|
23
24
|
export let operations = void 0;
|
|
24
25
|
export let item = void 0;
|
|
25
26
|
export let summary = void 0;
|
|
27
|
+
export let iicon = void 0;
|
|
26
28
|
let isOnPage = getContext("rIs-page-component");
|
|
27
29
|
let summaryElement = null;
|
|
28
30
|
let summaryPlaceholder = false;
|
|
@@ -33,6 +35,16 @@ $:
|
|
|
33
35
|
isRowActive = calculateIsRowActive($contextItemsStore);
|
|
34
36
|
$:
|
|
35
37
|
summaryText = calculateSummary(summary);
|
|
38
|
+
$:
|
|
39
|
+
activeClass = isRowActive ? "bg-stone-200 dark:bg-stone-700 outline outline-8 outline-stone-200 dark:outline-stone-700 ring-1 ring-offset-8 ring-stone-300 dark:ring-stone-700" : "";
|
|
40
|
+
$:
|
|
41
|
+
icom = fetch_icon(item, icon, iicon);
|
|
42
|
+
function fetch_icon(item2, icon2, iicon2) {
|
|
43
|
+
if (item2 && iicon2)
|
|
44
|
+
icon2 = item2[iicon2];
|
|
45
|
+
if (!icon2)
|
|
46
|
+
icon2 = "file-archive";
|
|
47
|
+
}
|
|
36
48
|
function calculateSummary(...args) {
|
|
37
49
|
if (!summary) {
|
|
38
50
|
summaryEditable = void 0;
|
|
@@ -173,146 +185,28 @@ function on_show_menu(e) {
|
|
|
173
185
|
return;
|
|
174
186
|
showMenu(rect, operations_list);
|
|
175
187
|
}
|
|
176
|
-
function activateRow(e) {
|
|
177
|
-
if (!item)
|
|
178
|
-
return;
|
|
179
|
-
if (!isOnPage)
|
|
180
|
-
return;
|
|
181
|
-
let operationsContainer;
|
|
182
|
-
if (operations) {
|
|
183
|
-
let operationsList = operations(root);
|
|
184
|
-
operationsContainer = {
|
|
185
|
-
opver: 1,
|
|
186
|
-
operations: [
|
|
187
|
-
{
|
|
188
|
-
caption: i18n({ en: "View", es: "Ver", pl: "Widok" }),
|
|
189
|
-
operations: [
|
|
190
|
-
{
|
|
191
|
-
icon: FaEllipsisV,
|
|
192
|
-
menu: operationsList,
|
|
193
|
-
fab: "M00"
|
|
194
|
-
}
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
};
|
|
199
|
-
} else
|
|
200
|
-
operationsContainer = [];
|
|
201
|
-
activateItem("props", item, operationsContainer);
|
|
202
|
-
if (e)
|
|
203
|
-
e.stopPropagation();
|
|
204
|
-
}
|
|
205
188
|
</script>
|
|
206
189
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
<div
|
|
210
|
-
on:click
|
|
211
|
-
on:click={activateRow}
|
|
212
|
-
on:keydown
|
|
213
|
-
on:keyup
|
|
214
|
-
class=" mb-2
|
|
215
|
-
border border-transparent rounded-lg
|
|
216
|
-
text-stone-900 dark:text-white {user_class}"
|
|
217
|
-
class:sm:hover:bg-stone-100={!!href}
|
|
218
|
-
class:sm:dark:hover:bg-stone-700={!!href}
|
|
219
|
-
class:bg-stone-200={isRowActive}
|
|
220
|
-
class:dark:bg-stone-700={isRowActive}
|
|
221
|
-
class:selected={selected(selectable, context_data)}> <!-- on:contextmenu={on_contextmenu} -->
|
|
222
|
-
<div class="flex flex-row justify-between
|
|
223
|
-
text-base font-semibold">
|
|
224
|
-
{#if href}
|
|
225
|
-
{#if isOnPage}
|
|
226
|
-
{#if isRowActive}
|
|
227
|
-
<a on:click={on_link_clicked}
|
|
228
|
-
href={href}
|
|
229
|
-
use:link
|
|
230
|
-
class="flex-1 ml-2 inline-flex items-center underline"
|
|
231
|
-
>
|
|
232
|
-
{#if icon}
|
|
233
|
-
<Icon class="w-5 h-5 mt-0.5 ml-2 mr-1" component={icon}/>
|
|
234
|
-
|
|
235
|
-
{/if}
|
|
236
|
-
<span class="ml-3"
|
|
237
|
-
use:editable_if_needed={editable}>
|
|
238
|
-
<slot/>
|
|
239
|
-
</span>
|
|
240
|
-
</a>
|
|
241
|
-
{:else}
|
|
242
|
-
<span on:click={on_link_clicked}
|
|
243
|
-
class="flex-1 ml-2 inline-flex items-center"
|
|
244
|
-
>
|
|
245
|
-
{#if icon}
|
|
246
|
-
<Icon class="w-5 h-5 mt-0.5 ml-2 mr-1" component={icon}/>
|
|
247
|
-
|
|
248
|
-
{/if}
|
|
249
|
-
<span class="ml-3"
|
|
250
|
-
use:editable_if_needed={editable}>
|
|
251
|
-
<slot/>
|
|
252
|
-
</span>
|
|
253
|
-
</span>
|
|
254
|
-
{/if}
|
|
255
|
-
{:else}
|
|
256
|
-
<a on:click={on_link_clicked}
|
|
257
|
-
href={href}
|
|
258
|
-
use:link
|
|
259
|
-
class="flex-1 ml-2 inline-flex items-center group"
|
|
260
|
-
>
|
|
261
|
-
{#if icon}
|
|
262
|
-
<Icon class="w-5 h-5 mt-0.5 ml-2 mr-1" component={icon}/>
|
|
263
|
-
|
|
264
|
-
{/if}
|
|
265
|
-
<span class="ml-3 group-hover:underline"
|
|
266
|
-
use:editable_if_needed={editable}>
|
|
267
|
-
<slot/>
|
|
268
|
-
</span>
|
|
269
|
-
</a>
|
|
270
|
-
{/if}
|
|
271
|
-
{:else}
|
|
272
|
-
<p class="flex-1 ml-2 inline-flex items-center group cursor-default"
|
|
273
|
-
use:selectable_if_needed={selectable}>
|
|
274
|
-
{#if icon}
|
|
275
|
-
<Icon class="w-5 h-5 mt-0.5 ml-2 mr-1" component={icon}/>
|
|
276
|
-
{/if}
|
|
277
|
-
<span class="ml-3"
|
|
278
|
-
use:editable_if_needed={editable}>
|
|
279
|
-
<slot/>
|
|
280
|
-
</span>
|
|
281
|
-
</p>
|
|
282
|
-
{/if}
|
|
283
|
-
|
|
284
|
-
{#if !isOnPage}
|
|
285
|
-
<section class="flex-0 w-20 sm:w-12 flex-0 flex flex-row"
|
|
286
|
-
use:selectable_if_needed={selectable}>
|
|
287
|
-
{#if can_show_context_menu(selectable, context_data)}
|
|
288
|
-
<button class="w-5 h-5 mt-0.5 mr-3 ml-auto" on:click={on_show_menu}>
|
|
289
|
-
<FaBars/>
|
|
290
|
-
</button>
|
|
291
|
-
{/if}
|
|
292
|
-
</section>
|
|
293
|
-
{/if}
|
|
294
|
-
</div>
|
|
295
|
-
|
|
296
|
-
{#if summaryText || summaryPlaceholder}
|
|
297
|
-
<p class="ml-14 mt-1
|
|
298
|
-
text-stone-900 dark:text-stone-400
|
|
299
|
-
cursor-default
|
|
300
|
-
text-sm "
|
|
301
|
-
use:selectable_if_needed={selectable}
|
|
302
|
-
use:editable_if_needed={summaryEditable}
|
|
303
|
-
bind:this={summaryElement}>
|
|
304
|
-
{summaryText}
|
|
305
|
-
</p>
|
|
306
|
-
{/if}
|
|
307
|
-
|
|
308
|
-
</div>
|
|
309
|
-
</li>
|
|
190
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
191
|
+
<!-- svelte-ignore a11y-structure -->
|
|
310
192
|
|
|
193
|
+
<!-- isRowActive -->
|
|
194
|
+
<figure class="pl-8 {activeClass}" bind:this={root}>
|
|
195
|
+
<a on:click={on_link_clicked}
|
|
196
|
+
href={href}
|
|
197
|
+
use:link>
|
|
198
|
+
<h4 class="-indent-8">
|
|
199
|
+
<div class="inline-block w-4 h-4 ml-0 mr-3 align-baseline
|
|
200
|
+
text-stone-700 dark:text-stone-400 ">
|
|
201
|
+
<Ricon icon = {icon}/>
|
|
202
|
+
</div>
|
|
203
|
+
<slot/>
|
|
204
|
+
</h4>
|
|
205
|
+
</a>
|
|
206
|
+
{#if summaryText}
|
|
207
|
+
<figcaption>
|
|
208
|
+
{summaryText}
|
|
209
|
+
</figcaption>
|
|
210
|
+
{/if}
|
|
311
211
|
|
|
312
|
-
|
|
313
|
-
.selected {
|
|
314
|
-
border-width: 1px;
|
|
315
|
-
--tw-border-opacity: 1 !important;
|
|
316
|
-
border-color: rgb(147 197 253 / var(--tw-border-opacity)) !important
|
|
317
|
-
}
|
|
318
|
-
</style>
|
|
212
|
+
</figure>
|
|
@@ -3,21 +3,18 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
href: string;
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: string | undefined;
|
|
7
7
|
active?: boolean | undefined;
|
|
8
8
|
selectable?: any | undefined;
|
|
9
9
|
editable?: any | undefined;
|
|
10
10
|
operations?: any | undefined;
|
|
11
11
|
item?: object | undefined;
|
|
12
12
|
summary?: string | object | undefined;
|
|
13
|
+
iicon?: string | object | undefined;
|
|
13
14
|
editSummary?: (() => Promise<void>) | undefined;
|
|
14
15
|
updateSummary?: ((txt: any) => void) | undefined;
|
|
15
16
|
};
|
|
16
17
|
events: {
|
|
17
|
-
click: MouseEvent;
|
|
18
|
-
keydown: KeyboardEvent;
|
|
19
|
-
keyup: KeyboardEvent;
|
|
20
|
-
} & {
|
|
21
18
|
[evt: string]: CustomEvent<any>;
|
|
22
19
|
};
|
|
23
20
|
slots: {
|
|
@@ -102,20 +102,20 @@ function onBlurInserter() {
|
|
|
102
102
|
{/key}
|
|
103
103
|
{/each }
|
|
104
104
|
{:else}
|
|
105
|
-
<p class="text-
|
|
106
|
-
{i18n({
|
|
107
|
-
en: 'No elements',
|
|
108
|
-
es: 'Falta de elementos',
|
|
105
|
+
<p class="text-center uppercase text-stone-900 dark:text-stone-400">
|
|
106
|
+
{i18n({
|
|
107
|
+
en: 'No elements',
|
|
108
|
+
es: 'Falta de elementos',
|
|
109
109
|
pl: 'Brak elementów'})}
|
|
110
110
|
</p>
|
|
111
111
|
{/if}
|
|
112
112
|
|
|
113
113
|
{#if inserter}
|
|
114
114
|
<Edit class=" mb-2 ml-2
|
|
115
|
-
text-base font-normal
|
|
116
|
-
text-stone-500 rounded-lg dark:text-stone-400 hover:bg-stone-100 dark:hover:bg-stone-700"
|
|
117
|
-
onEnter={onNewElement}
|
|
118
|
-
placeholder={inserterPlaceholder}
|
|
115
|
+
text-base font-normal
|
|
116
|
+
text-stone-500 rounded-lg dark:text-stone-400 hover:bg-stone-100 dark:hover:bg-stone-700"
|
|
117
|
+
onEnter={onNewElement}
|
|
118
|
+
placeholder={inserterPlaceholder}
|
|
119
119
|
inserter={true}
|
|
120
120
|
onBlur={onBlurInserter}
|
|
121
121
|
bind:this={inserterElement}>
|
|
@@ -2,8 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
<!--div class="prose prose-stone max-w-none
|
|
6
|
+
darkx:prose-invert darkx:text-stone-400
|
|
7
|
+
prose-headings:scroll-mt-28 prose-headings:font-display
|
|
8
|
+
prose-headings:font-normal lg:prose-headings:scroll-mt-[8.5rem]
|
|
9
|
+
prose-lead:text-stone-500 darkx:prose-lead:text-stone-400
|
|
10
|
+
prose-a:font-semibold darkx:prose-a:text-sky-400
|
|
11
|
+
prose-a:no-underline
|
|
12
|
+
prose-a:shadow-[inset_0_-2px_0_0_var(--tw-prose-background,#fff),inset_0_calc(-1*(var(--tw-prose-underline-size,4px)+2px))_0_0_var(--tw-prose-underline,theme(colors.sky.300))]
|
|
13
|
+
hover:prose-a:[--tw-prose-underline-size:6px] darkx:[--tw-prose-background:theme(colors.stone.900)]
|
|
14
|
+
darkx:prose-a:shadow-[inset_0_calc(-1*var(--tw-prose-underline-size,2px))_0_0_var(--tw-prose-underline,theme(colors.sky.800))]
|
|
15
|
+
darkx:hover:prose-a:[--tw-prose-underline-size:6px]
|
|
16
|
+
prose-pre:rounded-xl prose-pre:bg-stone-900 prose-pre:shadow-lg darkx:prose-pre:bg-stone-800/60
|
|
17
|
+
darkx:prose-pre:shadow-none darkx:prose-pre:ring-1 darkx:prose-pre:ring-stone-300/10 darkx:prose-hr:border-stone-800"-->
|
|
18
|
+
|
|
19
|
+
<!--aside class="w-full prose prose-base prose-zinc dark:prose-invert prose-a:no-underline " aria-label="Sidebar"-->
|
|
20
|
+
<aside class="w-full " aria-label="Sidebar">
|
|
21
|
+
<div class= "sidebar-frame overflow-y-auto
|
|
22
|
+
prose prose-base prose-zinc dark:prose-invert prose-a:no-underline
|
|
23
|
+
mx-6 my-6">
|
|
7
24
|
<slot/>
|
|
8
25
|
</div>
|
|
9
26
|
</aside>
|