@humandialog/forms.svelte 0.5.4 → 0.5.6
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/README.md +0 -0
- package/components/Fab.svelte +5 -3
- package/components/Fab.svelte.d.ts +14 -14
- package/components/Floating_container.svelte.d.ts +21 -21
- package/components/Grid.menu.svelte.d.ts +25 -25
- package/components/button.svelte.d.ts +24 -24
- package/components/checkbox.svelte.d.ts +26 -26
- package/components/combo/combo.d.ts +17 -17
- package/components/combo/combo.item.svelte.d.ts +19 -19
- package/components/combo/combo.js +17 -17
- package/components/combo/combo.source.svelte.d.ts +22 -22
- package/components/combo/combo.svelte +1 -1
- package/components/combo/combo.svelte.d.ts +42 -42
- package/components/contextmenu.svelte.d.ts +26 -26
- package/components/date.svelte.d.ts +31 -31
- package/components/delayed.spinner.svelte.d.ts +19 -19
- package/components/document/internal/Document_command.d.ts +9 -9
- package/components/document/internal/Document_command.js +9 -9
- package/components/document/internal/Selection_helper.d.ts +7 -7
- package/components/document/internal/Selection_helper.js +133 -133
- package/components/document/internal/Selection_range.d.ts +26 -26
- package/components/document/internal/Selection_range.js +58 -58
- package/components/document/internal/palette.row.svelte.d.ts +36 -36
- package/components/document/internal/palette.svelte.d.ts +67 -67
- package/components/document/rich.edit.svelte +49 -8
- package/components/document/rich.edit.svelte.d.ts +32 -32
- package/components/edit.field.svelte.d.ts +28 -28
- package/components/file.loader.svelte.d.ts +25 -25
- package/components/icon.svelte.d.ts +62 -62
- package/components/input.text.svelte.d.ts +29 -29
- package/components/inputbox.ltop.svelte +1 -1
- package/components/inputbox.ltop.svelte.d.ts +52 -52
- package/components/kanban/Kanban.d.ts +43 -23
- package/components/kanban/Kanban.js +79 -23
- package/components/kanban/internal/kanban.card.svelte +195 -117
- package/components/kanban/internal/kanban.card.svelte.d.ts +32 -35
- package/components/kanban/internal/kanban.column.svelte +152 -108
- package/components/kanban/internal/kanban.column.svelte.d.ts +51 -51
- package/components/kanban/internal/kanban.inserter.svelte +14 -14
- package/components/kanban/internal/kanban.inserter.svelte.d.ts +18 -18
- package/components/kanban/internal/kanban.move.menu.svelte +138 -135
- package/components/kanban/internal/kanban.move.menu.svelte.d.ts +22 -19
- package/components/kanban/internal/kanban.props.svelte +140 -0
- package/components/kanban/internal/kanban.props.svelte.d.ts +19 -0
- package/components/kanban/kanban.callbacks.svelte +3 -9
- package/components/kanban/kanban.callbacks.svelte.d.ts +18 -21
- package/components/kanban/kanban.column.svelte +10 -10
- package/components/kanban/kanban.column.svelte.d.ts +21 -21
- package/components/kanban/kanban.combo.svelte +36 -0
- package/components/kanban/kanban.combo.svelte.d.ts +24 -0
- package/components/kanban/kanban.date.svelte +30 -0
- package/components/kanban/kanban.date.svelte.d.ts +21 -0
- package/components/kanban/kanban.source.svelte +25 -0
- package/components/kanban/kanban.source.svelte.d.ts +23 -0
- package/components/kanban/kanban.static.svelte +28 -0
- package/components/kanban/kanban.static.svelte.d.ts +20 -0
- package/components/kanban/kanban.summary.svelte +4 -0
- package/components/kanban/kanban.summary.svelte.d.ts +18 -16
- package/components/kanban/kanban.svelte +459 -124
- package/components/kanban/kanban.svelte.d.ts +63 -43
- package/components/kanban/kanban.tags.svelte +34 -0
- package/components/kanban/kanban.tags.svelte.d.ts +23 -0
- package/components/kanban/kanban.title.svelte +4 -2
- package/components/kanban/kanban.title.svelte.d.ts +18 -17
- package/components/list/List.d.ts +44 -36
- package/components/list/List.js +52 -42
- package/components/list/internal/list.element.props.svelte +65 -65
- package/components/list/internal/list.element.props.svelte.d.ts +21 -21
- package/components/list/internal/list.element.summary.svelte +44 -30
- package/components/list/internal/list.element.summary.svelte.d.ts +25 -24
- package/components/list/internal/list.element.svelte +24 -11
- package/components/list/internal/list.element.svelte.d.ts +29 -29
- package/components/list/internal/list.inserter.svelte.d.ts +19 -19
- package/components/list/list.combo.svelte.d.ts +21 -21
- package/components/list/list.date.svelte.d.ts +18 -18
- package/components/list/list.inserter.svelte.d.ts +17 -17
- package/components/list/list.static.svelte.d.ts +17 -17
- package/components/list/list.summary.svelte.d.ts +19 -19
- package/components/list/list.svelte +2 -2
- package/components/list/list.svelte.d.ts +59 -59
- package/components/list/list.title.svelte +2 -0
- package/components/list/list.title.svelte.d.ts +22 -21
- package/components/menu.d.ts +4 -4
- package/components/menu.js +56 -56
- package/components/radio.svelte.d.ts +26 -26
- package/components/sidebar/sidebar.brand.svelte.d.ts +31 -31
- package/components/sidebar/sidebar.group.svelte +41 -3
- package/components/sidebar/sidebar.group.svelte.d.ts +33 -27
- package/components/sidebar/sidebar.item.svelte.d.ts +28 -28
- package/components/sidebar/sidebar.list.svelte +15 -15
- package/components/sidebar/sidebar.list.svelte.d.ts +33 -33
- package/components/sidebar/sidebar.svelte.d.ts +27 -27
- package/components/simple.table.svelte.d.ts +41 -41
- package/components/table/_template.table.svelte.d.ts +57 -57
- package/components/table/column.svelte.d.ts +19 -19
- package/components/table/item.svelte.d.ts +17 -17
- package/components/table/table.d.ts +11 -11
- package/components/table/table.js +11 -11
- package/components/table/table.svelte.d.ts +75 -75
- package/components/tag.svelte +40 -0
- package/components/tag.svelte.d.ts +19 -0
- package/components/tags.svelte +207 -0
- package/components/tags.svelte.d.ts +31 -0
- package/components/textarea.ltop.svelte.d.ts +35 -35
- package/components/tile.title.svelte.d.ts +29 -29
- package/desk.svelte.d.ts +23 -23
- package/form.box.svelte.d.ts +35 -35
- package/horizontal.toolbar.svelte +23 -4
- package/horizontal.toolbar.svelte.d.ts +25 -23
- package/index.d.ts +59 -52
- package/index.js +65 -58
- package/internal/configurable.content.svelte.d.ts +27 -27
- package/internal/loading.svelte.d.ts +23 -23
- package/modal.svelte +7 -7
- package/modal.svelte.d.ts +35 -35
- package/operations.svelte +52 -23
- package/operations.svelte.d.ts +16 -16
- package/package.json +16 -8
- package/page.row.svelte.d.ts +31 -31
- package/page.svelte +3 -3
- package/page.svelte.d.ts +45 -45
- package/stores.d.ts +39 -39
- package/stores.js +0 -0
- package/tenant.members.svelte +10 -11
- package/tenant.members.svelte.d.ts +33 -33
- package/tile.svelte.d.ts +33 -33
- package/tiles.row.svelte.d.ts +31 -31
- package/tiles.vertical.row.svelte.d.ts +29 -29
- package/updates.d.ts +4 -3
- package/updates.js +16 -0
- package/utils.d.ts +35 -35
- package/utils.js +11 -1
- package/vertical.toolbar.svelte +31 -6
- package/vertical.toolbar.svelte.d.ts +27 -25
package/components/menu.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import Menu from './contextmenu.svelte';
|
|
2
|
-
import Floating_container from './Floating_container.svelte';
|
|
3
|
-
import Grid from './Grid.menu.svelte';
|
|
4
|
-
let menu_comopnent = null;
|
|
5
|
-
let toolbar_component = null;
|
|
6
|
-
export function showMenu(around, operations) {
|
|
7
|
-
let menu_element = document.getElementById("__hd_svelte_contextmenu");
|
|
8
|
-
if (!menu_element) {
|
|
9
|
-
let app_div = document.getElementById("__hd_svelte_layout_root");
|
|
10
|
-
menu_comopnent = new Menu({
|
|
11
|
-
target: app_div,
|
|
12
|
-
props: {}
|
|
13
|
-
});
|
|
14
|
-
menu_comopnent.show(around, operations);
|
|
15
|
-
}
|
|
16
|
-
else if (menu_comopnent) {
|
|
17
|
-
if (menu_comopnent.isVisible())
|
|
18
|
-
menu_comopnent.hide();
|
|
19
|
-
else
|
|
20
|
-
menu_comopnent.show(around, operations);
|
|
21
|
-
}
|
|
22
|
-
else
|
|
23
|
-
console.error('what now?');
|
|
24
|
-
}
|
|
25
|
-
export function hideWholeContextMenu() {
|
|
26
|
-
if (menu_comopnent) {
|
|
27
|
-
if (menu_comopnent.isVisible())
|
|
28
|
-
menu_comopnent.hide();
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export function showFloatingToolbar(around, toolbar, props = {}) {
|
|
32
|
-
let floating_container = document.getElementById("__hd_svelte_floating_container");
|
|
33
|
-
if (!floating_container) {
|
|
34
|
-
let app_div = document.getElementById("__hd_svelte_layout_root");
|
|
35
|
-
toolbar_component = new Floating_container({
|
|
36
|
-
target: app_div,
|
|
37
|
-
props: {}
|
|
38
|
-
});
|
|
39
|
-
toolbar_component.show(around, toolbar, props);
|
|
40
|
-
}
|
|
41
|
-
else if (toolbar_component) {
|
|
42
|
-
//if(toolbar_component.isVisible())
|
|
43
|
-
//{
|
|
44
|
-
// toolbar_component.hide();
|
|
45
|
-
//}
|
|
46
|
-
//else
|
|
47
|
-
//{
|
|
48
|
-
toolbar_component.show(around, toolbar, props);
|
|
49
|
-
//}
|
|
50
|
-
}
|
|
51
|
-
else
|
|
52
|
-
console.error('what now?');
|
|
53
|
-
}
|
|
54
|
-
export function showGridMenu(around, operations) {
|
|
55
|
-
showFloatingToolbar(around, Grid, { operations: operations });
|
|
56
|
-
}
|
|
1
|
+
import Menu from './contextmenu.svelte';
|
|
2
|
+
import Floating_container from './Floating_container.svelte';
|
|
3
|
+
import Grid from './Grid.menu.svelte';
|
|
4
|
+
let menu_comopnent = null;
|
|
5
|
+
let toolbar_component = null;
|
|
6
|
+
export function showMenu(around, operations) {
|
|
7
|
+
let menu_element = document.getElementById("__hd_svelte_contextmenu");
|
|
8
|
+
if (!menu_element) {
|
|
9
|
+
let app_div = document.getElementById("__hd_svelte_layout_root");
|
|
10
|
+
menu_comopnent = new Menu({
|
|
11
|
+
target: app_div,
|
|
12
|
+
props: {}
|
|
13
|
+
});
|
|
14
|
+
menu_comopnent.show(around, operations);
|
|
15
|
+
}
|
|
16
|
+
else if (menu_comopnent) {
|
|
17
|
+
if (menu_comopnent.isVisible())
|
|
18
|
+
menu_comopnent.hide();
|
|
19
|
+
else
|
|
20
|
+
menu_comopnent.show(around, operations);
|
|
21
|
+
}
|
|
22
|
+
else
|
|
23
|
+
console.error('what now?');
|
|
24
|
+
}
|
|
25
|
+
export function hideWholeContextMenu() {
|
|
26
|
+
if (menu_comopnent) {
|
|
27
|
+
if (menu_comopnent.isVisible())
|
|
28
|
+
menu_comopnent.hide();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export function showFloatingToolbar(around, toolbar, props = {}) {
|
|
32
|
+
let floating_container = document.getElementById("__hd_svelte_floating_container");
|
|
33
|
+
if (!floating_container) {
|
|
34
|
+
let app_div = document.getElementById("__hd_svelte_layout_root");
|
|
35
|
+
toolbar_component = new Floating_container({
|
|
36
|
+
target: app_div,
|
|
37
|
+
props: {}
|
|
38
|
+
});
|
|
39
|
+
toolbar_component.show(around, toolbar, props);
|
|
40
|
+
}
|
|
41
|
+
else if (toolbar_component) {
|
|
42
|
+
//if(toolbar_component.isVisible())
|
|
43
|
+
//{
|
|
44
|
+
// toolbar_component.hide();
|
|
45
|
+
//}
|
|
46
|
+
//else
|
|
47
|
+
//{
|
|
48
|
+
toolbar_component.show(around, toolbar, props);
|
|
49
|
+
//}
|
|
50
|
+
}
|
|
51
|
+
else
|
|
52
|
+
console.error('what now?');
|
|
53
|
+
}
|
|
54
|
+
export function showGridMenu(around, operations) {
|
|
55
|
+
showFloatingToolbar(around, Grid, { operations: operations });
|
|
56
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
value: any;
|
|
6
|
-
disabled?: boolean | undefined;
|
|
7
|
-
self?: null | undefined;
|
|
8
|
-
a?: string | undefined;
|
|
9
|
-
context?: string | undefined;
|
|
10
|
-
typename?: string | undefined;
|
|
11
|
-
c?: string | undefined;
|
|
12
|
-
pushChangesImmediately?: boolean | undefined;
|
|
13
|
-
};
|
|
14
|
-
events: {
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
};
|
|
17
|
-
slots: {
|
|
18
|
-
default: {};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export type RadioProps = typeof __propDef.props;
|
|
22
|
-
export type RadioEvents = typeof __propDef.events;
|
|
23
|
-
export type RadioSlots = typeof __propDef.slots;
|
|
24
|
-
export default class Radio extends SvelteComponentTyped<RadioProps, RadioEvents, RadioSlots> {
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
value: any;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
self?: null | undefined;
|
|
8
|
+
a?: string | undefined;
|
|
9
|
+
context?: string | undefined;
|
|
10
|
+
typename?: string | undefined;
|
|
11
|
+
c?: string | undefined;
|
|
12
|
+
pushChangesImmediately?: boolean | undefined;
|
|
13
|
+
};
|
|
14
|
+
events: {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
};
|
|
17
|
+
slots: {
|
|
18
|
+
default: {};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export type RadioProps = typeof __propDef.props;
|
|
22
|
+
export type RadioEvents = typeof __propDef.events;
|
|
23
|
+
export type RadioSlots = typeof __propDef.slots;
|
|
24
|
+
export default class Radio extends SvelteComponentTyped<RadioProps, RadioEvents, RadioSlots> {
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} SidebarProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} SidebarEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} SidebarSlots */
|
|
4
|
-
export default class Sidebar extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
img?: string | undefined;
|
|
7
|
-
href?: string | undefined;
|
|
8
|
-
}, {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
}, {
|
|
11
|
-
default: {};
|
|
12
|
-
}> {
|
|
13
|
-
}
|
|
14
|
-
export type SidebarProps = typeof __propDef.props;
|
|
15
|
-
export type SidebarEvents = typeof __propDef.events;
|
|
16
|
-
export type SidebarSlots = typeof __propDef.slots;
|
|
17
|
-
import { SvelteComponentTyped } from "svelte";
|
|
18
|
-
declare const __propDef: {
|
|
19
|
-
props: {
|
|
20
|
-
[x: string]: any;
|
|
21
|
-
img?: string | undefined;
|
|
22
|
-
href?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
events: {
|
|
25
|
-
[evt: string]: CustomEvent<any>;
|
|
26
|
-
};
|
|
27
|
-
slots: {
|
|
28
|
-
default: {};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} SidebarProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} SidebarEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} SidebarSlots */
|
|
4
|
+
export default class Sidebar extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
img?: string | undefined;
|
|
7
|
+
href?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
}, {
|
|
11
|
+
default: {};
|
|
12
|
+
}> {
|
|
13
|
+
}
|
|
14
|
+
export type SidebarProps = typeof __propDef.props;
|
|
15
|
+
export type SidebarEvents = typeof __propDef.events;
|
|
16
|
+
export type SidebarSlots = typeof __propDef.slots;
|
|
17
|
+
import { SvelteComponentTyped } from "svelte";
|
|
18
|
+
declare const __propDef: {
|
|
19
|
+
props: {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
img?: string | undefined;
|
|
22
|
+
href?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
events: {
|
|
25
|
+
[evt: string]: CustomEvent<any>;
|
|
26
|
+
};
|
|
27
|
+
slots: {
|
|
28
|
+
default: {};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -1,9 +1,47 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import {FaChevronDown, FaChevronUp} from 'svelte-icons/fa'
|
|
3
|
+
|
|
2
4
|
export let border = false;
|
|
5
|
+
export let title = ''
|
|
6
|
+
export let collapsable = false;
|
|
7
|
+
export let onExpand = undefined
|
|
3
8
|
|
|
4
9
|
let border_class = border ? " pt-4 mt-4 border-t border-stone-200 dark:border-stone-700" : ""
|
|
10
|
+
let title_border = title ? border_class : ""
|
|
11
|
+
let list_border = title ? "" : border_class
|
|
12
|
+
let collapsed = true;
|
|
13
|
+
|
|
14
|
+
function toggleCollapsed()
|
|
15
|
+
{
|
|
16
|
+
if(collapsed && !!onExpand)
|
|
17
|
+
onExpand();
|
|
18
|
+
|
|
19
|
+
collapsed = !collapsed;
|
|
20
|
+
}
|
|
5
21
|
</script>
|
|
6
22
|
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
23
|
+
{#if title}
|
|
24
|
+
<p class="text-base sm:text-xs uppercase font-semibold {title_border}">
|
|
25
|
+
{title}
|
|
26
|
+
{#if collapsable}
|
|
27
|
+
<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}>
|
|
28
|
+
{#if collapsed}
|
|
29
|
+
<FaChevronDown/>
|
|
30
|
+
{:else}
|
|
31
|
+
<FaChevronUp/>
|
|
32
|
+
{/if}
|
|
33
|
+
</button>
|
|
34
|
+
{/if}
|
|
35
|
+
</p>
|
|
36
|
+
{/if}
|
|
37
|
+
|
|
38
|
+
{#if !collapsable}
|
|
39
|
+
<ul class="space-y-2 {list_border}">
|
|
40
|
+
<slot/>
|
|
41
|
+
</ul>
|
|
42
|
+
{:else if !collapsed}
|
|
43
|
+
<ul class="space-y-2 {list_border}">
|
|
44
|
+
<slot/>
|
|
45
|
+
</ul>
|
|
46
|
+
{/if}
|
|
47
|
+
|
|
@@ -1,27 +1,33 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} SidebarProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} SidebarEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} SidebarSlots */
|
|
4
|
-
export default class Sidebar extends SvelteComponentTyped<{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
/** @typedef {typeof __propDef.props} SidebarProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} SidebarEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} SidebarSlots */
|
|
4
|
+
export default class Sidebar extends SvelteComponentTyped<{
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
border?: boolean | undefined;
|
|
7
|
+
collapsable?: boolean | undefined;
|
|
8
|
+
onExpand?: any;
|
|
9
|
+
}, {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
}, {
|
|
12
|
+
default: {};
|
|
13
|
+
}> {
|
|
14
|
+
}
|
|
15
|
+
export type SidebarProps = typeof __propDef.props;
|
|
16
|
+
export type SidebarEvents = typeof __propDef.events;
|
|
17
|
+
export type SidebarSlots = typeof __propDef.slots;
|
|
18
|
+
import { SvelteComponentTyped } from "svelte";
|
|
19
|
+
declare const __propDef: {
|
|
20
|
+
props: {
|
|
21
|
+
title?: string | undefined;
|
|
22
|
+
border?: boolean | undefined;
|
|
23
|
+
collapsable?: boolean | undefined;
|
|
24
|
+
onExpand?: any;
|
|
25
|
+
};
|
|
26
|
+
events: {
|
|
27
|
+
[evt: string]: CustomEvent<any>;
|
|
28
|
+
};
|
|
29
|
+
slots: {
|
|
30
|
+
default: {};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
href: string;
|
|
6
|
-
icon?: any | undefined;
|
|
7
|
-
active?: boolean | undefined;
|
|
8
|
-
selectable?: any | undefined;
|
|
9
|
-
editable?: any | undefined;
|
|
10
|
-
operations?: any | undefined;
|
|
11
|
-
};
|
|
12
|
-
events: {
|
|
13
|
-
click: MouseEvent;
|
|
14
|
-
keydown: KeyboardEvent;
|
|
15
|
-
keyup: KeyboardEvent;
|
|
16
|
-
} & {
|
|
17
|
-
[evt: string]: CustomEvent<any>;
|
|
18
|
-
};
|
|
19
|
-
slots: {
|
|
20
|
-
default: {};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export type SidebarProps = typeof __propDef.props;
|
|
24
|
-
export type SidebarEvents = typeof __propDef.events;
|
|
25
|
-
export type SidebarSlots = typeof __propDef.slots;
|
|
26
|
-
export default class Sidebar extends SvelteComponentTyped<SidebarProps, SidebarEvents, SidebarSlots> {
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
href: string;
|
|
6
|
+
icon?: any | undefined;
|
|
7
|
+
active?: boolean | undefined;
|
|
8
|
+
selectable?: any | undefined;
|
|
9
|
+
editable?: any | undefined;
|
|
10
|
+
operations?: any | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
click: MouseEvent;
|
|
14
|
+
keydown: KeyboardEvent;
|
|
15
|
+
keyup: KeyboardEvent;
|
|
16
|
+
} & {
|
|
17
|
+
[evt: string]: CustomEvent<any>;
|
|
18
|
+
};
|
|
19
|
+
slots: {
|
|
20
|
+
default: {};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type SidebarProps = typeof __propDef.props;
|
|
24
|
+
export type SidebarEvents = typeof __propDef.events;
|
|
25
|
+
export type SidebarSlots = typeof __propDef.slots;
|
|
26
|
+
export default class Sidebar extends SvelteComponentTyped<SidebarProps, SidebarEvents, SidebarSlots> {
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -52,19 +52,19 @@ function onNewElement(text) {
|
|
|
52
52
|
} else
|
|
53
53
|
inserter(text);
|
|
54
54
|
}
|
|
55
|
-
</script>
|
|
56
|
-
|
|
57
|
-
{#each objects as item (item.Id)}
|
|
58
|
-
{#key item} <!-- Forces to fully rerender when item changed to fire use: callbacks again -->
|
|
59
|
-
<slot {item}/>
|
|
60
|
-
{/key}
|
|
61
|
-
{/each }
|
|
62
|
-
|
|
63
|
-
{#if inserter}
|
|
64
|
-
<Edit class="p-3 sm:p-2 text-lg sm:text-base font-normal text-stone-500 rounded-lg dark:text-stone-400 hover:bg-stone-100 dark:hover:bg-stone-700"
|
|
65
|
-
onEnter={onNewElement}
|
|
66
|
-
placeholder={inserterPlaceholder}
|
|
67
|
-
inserter={true}>
|
|
68
|
-
<Icon size={5} component={FaPlus} class="mr-3"/>
|
|
69
|
-
</Edit>
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
{#each objects as item (item.Id)}
|
|
58
|
+
{#key item} <!-- Forces to fully rerender when item changed to fire use: callbacks again -->
|
|
59
|
+
<slot {item}/>
|
|
60
|
+
{/key}
|
|
61
|
+
{/each }
|
|
62
|
+
|
|
63
|
+
{#if inserter}
|
|
64
|
+
<Edit class="p-3 sm:p-2 text-lg sm:text-base font-normal text-stone-500 rounded-lg dark:text-stone-400 hover:bg-stone-100 dark:hover:bg-stone-700"
|
|
65
|
+
onEnter={onNewElement}
|
|
66
|
+
placeholder={inserterPlaceholder}
|
|
67
|
+
inserter={true}>
|
|
68
|
+
<Icon size={5} component={FaPlus} class="mr-3"/>
|
|
69
|
+
</Edit>
|
|
70
70
|
{/if}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
objects: object[];
|
|
5
|
-
orderAttrib?: string | undefined;
|
|
6
|
-
inserter?: Function | undefined;
|
|
7
|
-
inserterPlaceholder?: string | undefined;
|
|
8
|
-
ORDER_STEP?: 64 | undefined;
|
|
9
|
-
MIN_ORDER?: 0 | undefined;
|
|
10
|
-
reload?: ((_objects: object[]) => void) | undefined;
|
|
11
|
-
moveUp?: ((element: object) => void) | undefined;
|
|
12
|
-
moveDown?: ((element: object) => void) | undefined;
|
|
13
|
-
};
|
|
14
|
-
events: {
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
};
|
|
17
|
-
slots: {
|
|
18
|
-
default: {
|
|
19
|
-
item: object;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export type SidebarProps = typeof __propDef.props;
|
|
24
|
-
export type SidebarEvents = typeof __propDef.events;
|
|
25
|
-
export type SidebarSlots = typeof __propDef.slots;
|
|
26
|
-
export default class Sidebar extends SvelteComponentTyped<SidebarProps, SidebarEvents, SidebarSlots> {
|
|
27
|
-
get ORDER_STEP(): 64;
|
|
28
|
-
get MIN_ORDER(): 0;
|
|
29
|
-
get reload(): (_objects: object[]) => void;
|
|
30
|
-
get moveUp(): (element: object) => void;
|
|
31
|
-
get moveDown(): (element: object) => void;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
objects: object[];
|
|
5
|
+
orderAttrib?: string | undefined;
|
|
6
|
+
inserter?: Function | undefined;
|
|
7
|
+
inserterPlaceholder?: string | undefined;
|
|
8
|
+
ORDER_STEP?: 64 | undefined;
|
|
9
|
+
MIN_ORDER?: 0 | undefined;
|
|
10
|
+
reload?: ((_objects: object[]) => void) | undefined;
|
|
11
|
+
moveUp?: ((element: object) => void) | undefined;
|
|
12
|
+
moveDown?: ((element: object) => void) | undefined;
|
|
13
|
+
};
|
|
14
|
+
events: {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
};
|
|
17
|
+
slots: {
|
|
18
|
+
default: {
|
|
19
|
+
item: object;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type SidebarProps = typeof __propDef.props;
|
|
24
|
+
export type SidebarEvents = typeof __propDef.events;
|
|
25
|
+
export type SidebarSlots = typeof __propDef.slots;
|
|
26
|
+
export default class Sidebar extends SvelteComponentTyped<SidebarProps, SidebarEvents, SidebarSlots> {
|
|
27
|
+
get ORDER_STEP(): 64;
|
|
28
|
+
get MIN_ORDER(): 0;
|
|
29
|
+
get reload(): (_objects: object[]) => void;
|
|
30
|
+
get moveUp(): (element: object) => void;
|
|
31
|
+
get moveDown(): (element: object) => void;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} SidebarProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} SidebarEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} SidebarSlots */
|
|
4
|
-
export default class Sidebar extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {
|
|
9
|
-
default: {};
|
|
10
|
-
}> {
|
|
11
|
-
}
|
|
12
|
-
export type SidebarProps = typeof __propDef.props;
|
|
13
|
-
export type SidebarEvents = typeof __propDef.events;
|
|
14
|
-
export type SidebarSlots = typeof __propDef.slots;
|
|
15
|
-
import { SvelteComponentTyped } from "svelte";
|
|
16
|
-
declare const __propDef: {
|
|
17
|
-
props: {
|
|
18
|
-
[x: string]: never;
|
|
19
|
-
};
|
|
20
|
-
events: {
|
|
21
|
-
[evt: string]: CustomEvent<any>;
|
|
22
|
-
};
|
|
23
|
-
slots: {
|
|
24
|
-
default: {};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} SidebarProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} SidebarEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} SidebarSlots */
|
|
4
|
+
export default class Sidebar extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type SidebarProps = typeof __propDef.props;
|
|
13
|
+
export type SidebarEvents = typeof __propDef.events;
|
|
14
|
+
export type SidebarSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} SimpleProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} SimpleEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} SimpleSlots */
|
|
4
|
-
export default class Simple extends SvelteComponentTyped<{
|
|
5
|
-
focus?: boolean | undefined;
|
|
6
|
-
select?: string | undefined;
|
|
7
|
-
context?: string | undefined;
|
|
8
|
-
self?: null | undefined;
|
|
9
|
-
nav?: boolean | undefined;
|
|
10
|
-
collection?: string | undefined;
|
|
11
|
-
objects?: null | undefined;
|
|
12
|
-
headers?: any[] | undefined;
|
|
13
|
-
fields?: any[] | undefined;
|
|
14
|
-
cinfo?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
[evt: string]: CustomEvent<any>;
|
|
17
|
-
}, {}> {
|
|
18
|
-
}
|
|
19
|
-
export type SimpleProps = typeof __propDef.props;
|
|
20
|
-
export type SimpleEvents = typeof __propDef.events;
|
|
21
|
-
export type SimpleSlots = typeof __propDef.slots;
|
|
22
|
-
import { SvelteComponentTyped } from "svelte";
|
|
23
|
-
declare const __propDef: {
|
|
24
|
-
props: {
|
|
25
|
-
focus?: boolean | undefined;
|
|
26
|
-
select?: string | undefined;
|
|
27
|
-
context?: string | undefined;
|
|
28
|
-
self?: null | undefined;
|
|
29
|
-
nav?: boolean | undefined;
|
|
30
|
-
collection?: string | undefined;
|
|
31
|
-
objects?: null | undefined;
|
|
32
|
-
headers?: any[] | undefined;
|
|
33
|
-
fields?: any[] | undefined;
|
|
34
|
-
cinfo?: string | undefined;
|
|
35
|
-
};
|
|
36
|
-
events: {
|
|
37
|
-
[evt: string]: CustomEvent<any>;
|
|
38
|
-
};
|
|
39
|
-
slots: {};
|
|
40
|
-
};
|
|
41
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} SimpleProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} SimpleEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} SimpleSlots */
|
|
4
|
+
export default class Simple extends SvelteComponentTyped<{
|
|
5
|
+
focus?: boolean | undefined;
|
|
6
|
+
select?: string | undefined;
|
|
7
|
+
context?: string | undefined;
|
|
8
|
+
self?: null | undefined;
|
|
9
|
+
nav?: boolean | undefined;
|
|
10
|
+
collection?: string | undefined;
|
|
11
|
+
objects?: null | undefined;
|
|
12
|
+
headers?: any[] | undefined;
|
|
13
|
+
fields?: any[] | undefined;
|
|
14
|
+
cinfo?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}> {
|
|
18
|
+
}
|
|
19
|
+
export type SimpleProps = typeof __propDef.props;
|
|
20
|
+
export type SimpleEvents = typeof __propDef.events;
|
|
21
|
+
export type SimpleSlots = typeof __propDef.slots;
|
|
22
|
+
import { SvelteComponentTyped } from "svelte";
|
|
23
|
+
declare const __propDef: {
|
|
24
|
+
props: {
|
|
25
|
+
focus?: boolean | undefined;
|
|
26
|
+
select?: string | undefined;
|
|
27
|
+
context?: string | undefined;
|
|
28
|
+
self?: null | undefined;
|
|
29
|
+
nav?: boolean | undefined;
|
|
30
|
+
collection?: string | undefined;
|
|
31
|
+
objects?: null | undefined;
|
|
32
|
+
headers?: any[] | undefined;
|
|
33
|
+
fields?: any[] | undefined;
|
|
34
|
+
cinfo?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
events: {
|
|
37
|
+
[evt: string]: CustomEvent<any>;
|
|
38
|
+
};
|
|
39
|
+
slots: {};
|
|
40
|
+
};
|
|
41
|
+
export {};
|