@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/stores.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
export function setNavigatorTitle(key: any, title: any): void;
|
|
2
|
-
export function hasSelectedItem(): boolean;
|
|
3
|
-
export function hasDataItem(): boolean;
|
|
4
|
-
export function reloadMainView(): void;
|
|
5
|
-
export function set_dark_mode_default(value: any): void;
|
|
6
|
-
export function set_default_tools_visible(value: any): void;
|
|
7
|
-
export function restore_defults(): void;
|
|
8
|
-
export function toggle_sidebar(index: any): void;
|
|
9
|
-
export function auto_hide_sidebar(): void;
|
|
10
|
-
export function hide_sidebar(): void;
|
|
11
|
-
export function show_sidebar(index: any): void;
|
|
12
|
-
export const data_tick_store: import("svelte/store").Writable<number>;
|
|
13
|
-
export const contextItemsStore: import("svelte/store").Writable<{
|
|
14
|
-
focused: string;
|
|
15
|
-
data: null;
|
|
16
|
-
sel: null;
|
|
17
|
-
}>;
|
|
18
|
-
export const context_info_store: import("svelte/store").Writable<{
|
|
19
|
-
data: string;
|
|
20
|
-
sel: string;
|
|
21
|
-
}>;
|
|
22
|
-
export const contextTypesStore: import("svelte/store").Writable<{
|
|
23
|
-
focused: string;
|
|
24
|
-
data: null;
|
|
25
|
-
sel: null;
|
|
26
|
-
}>;
|
|
27
|
-
export const contextToolbarOperations: import("svelte/store").Writable<never[]>;
|
|
28
|
-
export const pageToolbarOperations: import("svelte/store").Writable<never[]>;
|
|
29
|
-
export const page_title: import("svelte/store").Writable<string>;
|
|
30
|
-
export const nav_titles: import("svelte/store").Writable<{}>;
|
|
31
|
-
export const mainViewReloader: import("svelte/store").Writable<number>;
|
|
32
|
-
export const dark_mode_store: import("svelte/store").Writable<any>;
|
|
33
|
-
export const main_sidebar_visible_store: import("svelte/store").Writable<any>;
|
|
34
|
-
export let previously_visible_sidebar: string;
|
|
35
|
-
export let sidebar_left_pos: import("svelte/store").Writable<number>;
|
|
36
|
-
export const tools_visible_store: import("svelte/store").Writable<any>;
|
|
37
|
-
export const bottom_bar_visible_store: import("svelte/store").Writable<any>;
|
|
38
|
-
export const right_sidebar_visible_store: import("svelte/store").Writable<boolean>;
|
|
39
|
-
export const visible_property_tab_store: import("svelte/store").Writable<string>;
|
|
1
|
+
export function setNavigatorTitle(key: any, title: any): void;
|
|
2
|
+
export function hasSelectedItem(): boolean;
|
|
3
|
+
export function hasDataItem(): boolean;
|
|
4
|
+
export function reloadMainView(): void;
|
|
5
|
+
export function set_dark_mode_default(value: any): void;
|
|
6
|
+
export function set_default_tools_visible(value: any): void;
|
|
7
|
+
export function restore_defults(): void;
|
|
8
|
+
export function toggle_sidebar(index: any): void;
|
|
9
|
+
export function auto_hide_sidebar(): void;
|
|
10
|
+
export function hide_sidebar(): void;
|
|
11
|
+
export function show_sidebar(index: any): void;
|
|
12
|
+
export const data_tick_store: import("svelte/store").Writable<number>;
|
|
13
|
+
export const contextItemsStore: import("svelte/store").Writable<{
|
|
14
|
+
focused: string;
|
|
15
|
+
data: null;
|
|
16
|
+
sel: null;
|
|
17
|
+
}>;
|
|
18
|
+
export const context_info_store: import("svelte/store").Writable<{
|
|
19
|
+
data: string;
|
|
20
|
+
sel: string;
|
|
21
|
+
}>;
|
|
22
|
+
export const contextTypesStore: import("svelte/store").Writable<{
|
|
23
|
+
focused: string;
|
|
24
|
+
data: null;
|
|
25
|
+
sel: null;
|
|
26
|
+
}>;
|
|
27
|
+
export const contextToolbarOperations: import("svelte/store").Writable<never[]>;
|
|
28
|
+
export const pageToolbarOperations: import("svelte/store").Writable<never[]>;
|
|
29
|
+
export const page_title: import("svelte/store").Writable<string>;
|
|
30
|
+
export const nav_titles: import("svelte/store").Writable<{}>;
|
|
31
|
+
export const mainViewReloader: import("svelte/store").Writable<number>;
|
|
32
|
+
export const dark_mode_store: import("svelte/store").Writable<any>;
|
|
33
|
+
export const main_sidebar_visible_store: import("svelte/store").Writable<any>;
|
|
34
|
+
export let previously_visible_sidebar: string;
|
|
35
|
+
export let sidebar_left_pos: import("svelte/store").Writable<number>;
|
|
36
|
+
export const tools_visible_store: import("svelte/store").Writable<any>;
|
|
37
|
+
export const bottom_bar_visible_store: import("svelte/store").Writable<any>;
|
|
38
|
+
export const right_sidebar_visible_store: import("svelte/store").Writable<boolean>;
|
|
39
|
+
export const visible_property_tab_store: import("svelte/store").Writable<string>;
|
package/stores.js
CHANGED
|
File without changes
|
package/tenant.members.svelte
CHANGED
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
{
|
|
54
54
|
reef_users.push(
|
|
55
55
|
{
|
|
56
|
+
Id: new_reef_user_id++,
|
|
56
57
|
[nameAttrib]: u[nameAttrib],
|
|
57
58
|
[emailAttrib]: u[emailAttrib],
|
|
58
59
|
[refAttrib]: u[refAttrib],
|
|
@@ -63,8 +64,7 @@
|
|
|
63
64
|
avatar_url : "",
|
|
64
65
|
invitation_not_accepted: false,
|
|
65
66
|
removed: false,
|
|
66
|
-
membership_tag: ""
|
|
67
|
-
__hd_internal_item_id: new_reef_user_id++
|
|
67
|
+
membership_tag: ""
|
|
68
68
|
}
|
|
69
69
|
)
|
|
70
70
|
})
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
handled_no++;
|
|
91
91
|
if(handled_no == reef_users.length)
|
|
92
92
|
{
|
|
93
|
+
//console.log('reload', reef_users)
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
list?.updateObjects(reef_users);
|
|
95
|
+
list?.reload(reef_users);
|
|
96
96
|
}
|
|
97
97
|
} )
|
|
98
98
|
}
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
else
|
|
115
115
|
user.membership_tag = "";
|
|
116
116
|
|
|
117
|
-
user.
|
|
117
|
+
user.Id = new_reef_user_id++;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/*onMount(
|
|
@@ -362,10 +362,10 @@
|
|
|
362
362
|
{
|
|
363
363
|
reef_users.push(
|
|
364
364
|
{
|
|
365
|
+
Id: 1000+i,
|
|
365
366
|
[nameAttrib]: names[i],
|
|
366
367
|
[emailAttrib]: 'u@fake.com',
|
|
367
|
-
[refAttrib]: `./User/${1000+i}
|
|
368
|
-
__hd_internal_item_id: 1000+i
|
|
368
|
+
[refAttrib]: `./User/${1000+i}`
|
|
369
369
|
}
|
|
370
370
|
)
|
|
371
371
|
}
|
|
@@ -402,7 +402,7 @@
|
|
|
402
402
|
set_user_info(new_reef_user, details);
|
|
403
403
|
|
|
404
404
|
reef_users = [...reef_users, new_reef_user]
|
|
405
|
-
list?.
|
|
405
|
+
list?.reload(reef_users);
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
<Page self={data_item}
|
|
427
427
|
cl="!bg-white dark:!bg-stone-900 w-full h-full flex flex-col overflow-y-auto overflow-x-hidden py-1 px-1 border-0"
|
|
428
428
|
toolbarOperations={page_operations}
|
|
429
|
-
|
|
429
|
+
clearsContext='props sel'>
|
|
430
430
|
<!--a href="/" class="underline text-sm font-semibold ml-3"> < Back to root</a-->
|
|
431
431
|
|
|
432
432
|
{#if reef_users && reef_users.length > 0}
|
|
@@ -434,7 +434,6 @@
|
|
|
434
434
|
title='Members'
|
|
435
435
|
toolbarOperations={user_operations}
|
|
436
436
|
contextMenu={user_context_menu}
|
|
437
|
-
key='__hd_internal_item_id'
|
|
438
437
|
bind:this={list}>
|
|
439
438
|
<ListTitle a={nameAttrib} onChange={on_name_changed}/>
|
|
440
439
|
<ListSummary a={emailAttrib} readonly/>
|
|
@@ -487,7 +486,7 @@
|
|
|
487
486
|
<div class="flex flex-row items-center">
|
|
488
487
|
<span class="">Maintainer</span>
|
|
489
488
|
<Icon id="b1" size={4} component={FaInfoCircle} class="text-stone-400 ml-5 pt-0 mt-1"/>
|
|
490
|
-
<Popover class="w-64 text-sm font-light
|
|
489
|
+
<Popover class="w-64 text-sm font-light" title="Maintainer" triggeredBy="#b1" color="dropdown">
|
|
491
490
|
Means that the invited user will be able to add and remove others and manage permissions in this organization.
|
|
492
491
|
</Popover>
|
|
493
492
|
</div>
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} TenantProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} TenantEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} TenantSlots */
|
|
4
|
-
export default class Tenant extends SvelteComponentTyped<{
|
|
5
|
-
users?: any;
|
|
6
|
-
nameAttrib?: string | undefined;
|
|
7
|
-
emailAttrib?: string | undefined;
|
|
8
|
-
refAttrib?: string | undefined;
|
|
9
|
-
showFiles?: boolean | undefined;
|
|
10
|
-
appGroups?: any;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}> {
|
|
14
|
-
}
|
|
15
|
-
export type TenantProps = typeof __propDef.props;
|
|
16
|
-
export type TenantEvents = typeof __propDef.events;
|
|
17
|
-
export type TenantSlots = typeof __propDef.slots;
|
|
18
|
-
import { SvelteComponentTyped } from "svelte";
|
|
19
|
-
declare const __propDef: {
|
|
20
|
-
props: {
|
|
21
|
-
users?: any;
|
|
22
|
-
nameAttrib?: string | undefined;
|
|
23
|
-
emailAttrib?: string | undefined;
|
|
24
|
-
refAttrib?: string | undefined;
|
|
25
|
-
showFiles?: boolean | undefined;
|
|
26
|
-
appGroups?: any;
|
|
27
|
-
};
|
|
28
|
-
events: {
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
};
|
|
31
|
-
slots: {};
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} TenantProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TenantEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TenantSlots */
|
|
4
|
+
export default class Tenant extends SvelteComponentTyped<{
|
|
5
|
+
users?: any;
|
|
6
|
+
nameAttrib?: string | undefined;
|
|
7
|
+
emailAttrib?: string | undefined;
|
|
8
|
+
refAttrib?: string | undefined;
|
|
9
|
+
showFiles?: boolean | undefined;
|
|
10
|
+
appGroups?: any;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}> {
|
|
14
|
+
}
|
|
15
|
+
export type TenantProps = typeof __propDef.props;
|
|
16
|
+
export type TenantEvents = typeof __propDef.events;
|
|
17
|
+
export type TenantSlots = typeof __propDef.slots;
|
|
18
|
+
import { SvelteComponentTyped } from "svelte";
|
|
19
|
+
declare const __propDef: {
|
|
20
|
+
props: {
|
|
21
|
+
users?: any;
|
|
22
|
+
nameAttrib?: string | undefined;
|
|
23
|
+
emailAttrib?: string | undefined;
|
|
24
|
+
refAttrib?: string | undefined;
|
|
25
|
+
showFiles?: boolean | undefined;
|
|
26
|
+
appGroups?: any;
|
|
27
|
+
};
|
|
28
|
+
events: {
|
|
29
|
+
[evt: string]: CustomEvent<any>;
|
|
30
|
+
};
|
|
31
|
+
slots: {};
|
|
32
|
+
};
|
|
33
|
+
export {};
|
package/tile.svelte.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} TileProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} TileEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} TileSlots */
|
|
4
|
-
export default class Tile extends SvelteComponentTyped<{
|
|
5
|
-
context?: string | undefined;
|
|
6
|
-
self?: null | undefined;
|
|
7
|
-
c?: string | undefined;
|
|
8
|
-
cl?: string | undefined;
|
|
9
|
-
}, {
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
}, {
|
|
12
|
-
default: {};
|
|
13
|
-
}> {
|
|
14
|
-
}
|
|
15
|
-
export type TileProps = typeof __propDef.props;
|
|
16
|
-
export type TileEvents = typeof __propDef.events;
|
|
17
|
-
export type TileSlots = typeof __propDef.slots;
|
|
18
|
-
import { SvelteComponentTyped } from "svelte";
|
|
19
|
-
declare const __propDef: {
|
|
20
|
-
props: {
|
|
21
|
-
context?: string | undefined;
|
|
22
|
-
self?: null | undefined;
|
|
23
|
-
c?: string | undefined;
|
|
24
|
-
cl?: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
events: {
|
|
27
|
-
[evt: string]: CustomEvent<any>;
|
|
28
|
-
};
|
|
29
|
-
slots: {
|
|
30
|
-
default: {};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} TileProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TileEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TileSlots */
|
|
4
|
+
export default class Tile extends SvelteComponentTyped<{
|
|
5
|
+
context?: string | undefined;
|
|
6
|
+
self?: null | undefined;
|
|
7
|
+
c?: string | undefined;
|
|
8
|
+
cl?: string | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
}, {
|
|
12
|
+
default: {};
|
|
13
|
+
}> {
|
|
14
|
+
}
|
|
15
|
+
export type TileProps = typeof __propDef.props;
|
|
16
|
+
export type TileEvents = typeof __propDef.events;
|
|
17
|
+
export type TileSlots = typeof __propDef.slots;
|
|
18
|
+
import { SvelteComponentTyped } from "svelte";
|
|
19
|
+
declare const __propDef: {
|
|
20
|
+
props: {
|
|
21
|
+
context?: string | undefined;
|
|
22
|
+
self?: null | undefined;
|
|
23
|
+
c?: string | undefined;
|
|
24
|
+
cl?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
events: {
|
|
27
|
+
[evt: string]: CustomEvent<any>;
|
|
28
|
+
};
|
|
29
|
+
slots: {
|
|
30
|
+
default: {};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export {};
|
package/tiles.row.svelte.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} TilesProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} TilesEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} TilesSlots */
|
|
4
|
-
export default class Tiles extends SvelteComponentTyped<{
|
|
5
|
-
c?: string | undefined;
|
|
6
|
-
cl?: string | undefined;
|
|
7
|
-
w?: string | undefined;
|
|
8
|
-
}, {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
}, {
|
|
11
|
-
default: {};
|
|
12
|
-
}> {
|
|
13
|
-
}
|
|
14
|
-
export type TilesProps = typeof __propDef.props;
|
|
15
|
-
export type TilesEvents = typeof __propDef.events;
|
|
16
|
-
export type TilesSlots = typeof __propDef.slots;
|
|
17
|
-
import { SvelteComponentTyped } from "svelte";
|
|
18
|
-
declare const __propDef: {
|
|
19
|
-
props: {
|
|
20
|
-
c?: string | undefined;
|
|
21
|
-
cl?: string | undefined;
|
|
22
|
-
w?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
events: {
|
|
25
|
-
[evt: string]: CustomEvent<any>;
|
|
26
|
-
};
|
|
27
|
-
slots: {
|
|
28
|
-
default: {};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} TilesProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TilesEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TilesSlots */
|
|
4
|
+
export default class Tiles extends SvelteComponentTyped<{
|
|
5
|
+
c?: string | undefined;
|
|
6
|
+
cl?: string | undefined;
|
|
7
|
+
w?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
}, {
|
|
11
|
+
default: {};
|
|
12
|
+
}> {
|
|
13
|
+
}
|
|
14
|
+
export type TilesProps = typeof __propDef.props;
|
|
15
|
+
export type TilesEvents = typeof __propDef.events;
|
|
16
|
+
export type TilesSlots = typeof __propDef.slots;
|
|
17
|
+
import { SvelteComponentTyped } from "svelte";
|
|
18
|
+
declare const __propDef: {
|
|
19
|
+
props: {
|
|
20
|
+
c?: string | undefined;
|
|
21
|
+
cl?: string | undefined;
|
|
22
|
+
w?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
events: {
|
|
25
|
+
[evt: string]: CustomEvent<any>;
|
|
26
|
+
};
|
|
27
|
+
slots: {
|
|
28
|
+
default: {};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} TilesProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} TilesEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} TilesSlots */
|
|
4
|
-
export default class Tiles extends SvelteComponentTyped<{
|
|
5
|
-
c?: string | undefined;
|
|
6
|
-
cl?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
}, {
|
|
10
|
-
default: {};
|
|
11
|
-
}> {
|
|
12
|
-
}
|
|
13
|
-
export type TilesProps = typeof __propDef.props;
|
|
14
|
-
export type TilesEvents = typeof __propDef.events;
|
|
15
|
-
export type TilesSlots = typeof __propDef.slots;
|
|
16
|
-
import { SvelteComponentTyped } from "svelte";
|
|
17
|
-
declare const __propDef: {
|
|
18
|
-
props: {
|
|
19
|
-
c?: string | undefined;
|
|
20
|
-
cl?: string | undefined;
|
|
21
|
-
};
|
|
22
|
-
events: {
|
|
23
|
-
[evt: string]: CustomEvent<any>;
|
|
24
|
-
};
|
|
25
|
-
slots: {
|
|
26
|
-
default: {};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} TilesProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TilesEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TilesSlots */
|
|
4
|
+
export default class Tiles extends SvelteComponentTyped<{
|
|
5
|
+
c?: string | undefined;
|
|
6
|
+
cl?: string | undefined;
|
|
7
|
+
}, {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
}, {
|
|
10
|
+
default: {};
|
|
11
|
+
}> {
|
|
12
|
+
}
|
|
13
|
+
export type TilesProps = typeof __propDef.props;
|
|
14
|
+
export type TilesEvents = typeof __propDef.events;
|
|
15
|
+
export type TilesSlots = typeof __propDef.slots;
|
|
16
|
+
import { SvelteComponentTyped } from "svelte";
|
|
17
|
+
declare const __propDef: {
|
|
18
|
+
props: {
|
|
19
|
+
c?: string | undefined;
|
|
20
|
+
cl?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
};
|
|
25
|
+
slots: {
|
|
26
|
+
default: {};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export {};
|
package/updates.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export function informModification(itm: any, field_name: any, type_name?: undefined): boolean;
|
|
2
|
-
export function
|
|
3
|
-
export function
|
|
1
|
+
export function informModification(itm: any, field_name: any, type_name?: undefined): boolean;
|
|
2
|
+
export function informModificationEx(typeName: any, itemId: any, attribName: any, attribValue: any): boolean;
|
|
3
|
+
export function informItem(itm: any, type_name?: undefined): boolean;
|
|
4
|
+
export function pushChanges(): void;
|
package/updates.js
CHANGED
|
@@ -34,6 +34,22 @@ export function informModification(itm, field_name, type_name=undefined)
|
|
|
34
34
|
return true;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
+
export function informModificationEx(typeName, itemId, attribName, attribValue)
|
|
38
|
+
{
|
|
39
|
+
let item_entry = {
|
|
40
|
+
Id: [typeName] + itemId,
|
|
41
|
+
type_name: typeName,
|
|
42
|
+
item: { [typeName]:
|
|
43
|
+
{
|
|
44
|
+
Id: itemId,
|
|
45
|
+
[attribName]: attribValue
|
|
46
|
+
} },
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
modified_item_store.set(item_entry);
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
37
53
|
export function informItem(itm, type_name=undefined)
|
|
38
54
|
{
|
|
39
55
|
if(type_name == undefined)
|
package/utils.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
export function isDeviceSmallerThan(br: any): boolean;
|
|
2
|
-
export function selectItem(itm: any): void;
|
|
3
|
-
export function activateItem(context_level: any, itm: any, operations?: null): void;
|
|
4
|
-
export function clearActiveItem(context_level: any): void;
|
|
5
|
-
export function isSelected(itm: any): boolean;
|
|
6
|
-
export function isActive(context_level: any, itm: any): boolean;
|
|
7
|
-
export function getActive(context_level: any): any;
|
|
8
|
-
export function editable(node: any, params: any): {
|
|
9
|
-
destroy(): void;
|
|
10
|
-
} | undefined;
|
|
11
|
-
export function startEditing(element: any, finish_callback: any): void;
|
|
12
|
-
export function selectable(node: any, itm: any): {
|
|
13
|
-
destroy(): void;
|
|
14
|
-
};
|
|
15
|
-
export function handleSelect(e: any): void;
|
|
16
|
-
export function parseWidthDirective(c: any): string;
|
|
17
|
-
export function shouldBeComapact(): boolean;
|
|
18
|
-
export function insertAt(array: any, index: any, element: any): any;
|
|
19
|
-
export function insertAfter(array: any, after: any, element: any): any;
|
|
20
|
-
export function getPrev(array: any, element: any): any;
|
|
21
|
-
export function getNext(array: any, element: any): any;
|
|
22
|
-
export function getFirst(array: any): any;
|
|
23
|
-
export function getLast(array: any): any;
|
|
24
|
-
export function removeAt(array: any, index: any): any;
|
|
25
|
-
export function remove(array: any, element: any): any;
|
|
26
|
-
export function swapElements(array: any, e1: any, e2: any): any;
|
|
27
|
-
export namespace icons {
|
|
28
|
-
const symbols: null;
|
|
29
|
-
}
|
|
30
|
-
export namespace SCREEN_SIZES {
|
|
31
|
-
const sm: number;
|
|
32
|
-
const md: number;
|
|
33
|
-
const lg: number;
|
|
34
|
-
const xl: number;
|
|
35
|
-
}
|
|
1
|
+
export function isDeviceSmallerThan(br: any): boolean;
|
|
2
|
+
export function selectItem(itm: any): void;
|
|
3
|
+
export function activateItem(context_level: any, itm: any, operations?: null): void;
|
|
4
|
+
export function clearActiveItem(context_level: any): void;
|
|
5
|
+
export function isSelected(itm: any): boolean;
|
|
6
|
+
export function isActive(context_level: any, itm: any): boolean;
|
|
7
|
+
export function getActive(context_level: any): any;
|
|
8
|
+
export function editable(node: any, params: any): {
|
|
9
|
+
destroy(): void;
|
|
10
|
+
} | undefined;
|
|
11
|
+
export function startEditing(element: any, finish_callback: any): void;
|
|
12
|
+
export function selectable(node: any, itm: any): {
|
|
13
|
+
destroy(): void;
|
|
14
|
+
};
|
|
15
|
+
export function handleSelect(e: any): void;
|
|
16
|
+
export function parseWidthDirective(c: any): string;
|
|
17
|
+
export function shouldBeComapact(): boolean;
|
|
18
|
+
export function insertAt(array: any, index: any, element: any): any;
|
|
19
|
+
export function insertAfter(array: any, after: any, element: any): any;
|
|
20
|
+
export function getPrev(array: any, element: any): any;
|
|
21
|
+
export function getNext(array: any, element: any): any;
|
|
22
|
+
export function getFirst(array: any): any;
|
|
23
|
+
export function getLast(array: any): any;
|
|
24
|
+
export function removeAt(array: any, index: any): any;
|
|
25
|
+
export function remove(array: any, element: any): any;
|
|
26
|
+
export function swapElements(array: any, e1: any, e2: any): any;
|
|
27
|
+
export namespace icons {
|
|
28
|
+
const symbols: null;
|
|
29
|
+
}
|
|
30
|
+
export namespace SCREEN_SIZES {
|
|
31
|
+
const sm: number;
|
|
32
|
+
const md: number;
|
|
33
|
+
const lg: number;
|
|
34
|
+
const xl: number;
|
|
35
|
+
}
|
package/utils.js
CHANGED
|
@@ -102,11 +102,16 @@ export function editable(node, params)
|
|
|
102
102
|
let action;
|
|
103
103
|
let active = false;
|
|
104
104
|
let onRemove = undefined;
|
|
105
|
+
let onFinish = undefined;
|
|
105
106
|
if(params instanceof Object)
|
|
106
107
|
{
|
|
107
108
|
action = params.action ?? params;
|
|
108
109
|
active = params.active ?? false;
|
|
109
110
|
onRemove = params.remove ?? undefined
|
|
111
|
+
onFinish = params.onFinish ?? undefined
|
|
112
|
+
|
|
113
|
+
if(params.readonly)
|
|
114
|
+
return;
|
|
110
115
|
}
|
|
111
116
|
else
|
|
112
117
|
action = params;
|
|
@@ -246,6 +251,11 @@ export function editable(node, params)
|
|
|
246
251
|
{
|
|
247
252
|
node.contentEditable = "true"
|
|
248
253
|
node.addEventListener('focus', focus_listener);
|
|
254
|
+
|
|
255
|
+
if(onFinish)
|
|
256
|
+
{
|
|
257
|
+
node.addEventListener("finish", (e) => { onFinish(e.detail) })
|
|
258
|
+
}
|
|
249
259
|
}
|
|
250
260
|
else
|
|
251
261
|
{
|
|
@@ -455,7 +465,7 @@ export function removeAt(array, index)
|
|
|
455
465
|
export function remove(array, element)
|
|
456
466
|
{
|
|
457
467
|
let idx = array.findIndex((t) => t == element);
|
|
458
|
-
return
|
|
468
|
+
return removeAt(array, idx);
|
|
459
469
|
}
|
|
460
470
|
|
|
461
471
|
export function swapElements(array, e1, e2)
|
package/vertical.toolbar.svelte
CHANGED
|
@@ -17,13 +17,20 @@
|
|
|
17
17
|
tools_visible_store,
|
|
18
18
|
bottom_bar_visible_store,
|
|
19
19
|
right_sidebar_visible_store,
|
|
20
|
-
main_sidebar_visible_store
|
|
20
|
+
main_sidebar_visible_store,
|
|
21
|
+
contextItemsStore,
|
|
22
|
+
context_info_store,
|
|
23
|
+
contextToolbarOperations,
|
|
24
|
+
data_tick_store
|
|
25
|
+
} from "./stores.js";
|
|
21
26
|
import Icon from './components/icon.svelte';
|
|
22
27
|
import {session, signInHRef, signOutHRef} from '@humandialog/auth.svelte'
|
|
23
28
|
import { push } from 'svelte-spa-router';
|
|
29
|
+
|
|
24
30
|
|
|
25
31
|
export let appConfig;
|
|
26
32
|
export let mobile=false;
|
|
33
|
+
export let clearsContext = 'sel props'
|
|
27
34
|
|
|
28
35
|
|
|
29
36
|
let tabs = new Array();
|
|
@@ -163,17 +170,35 @@
|
|
|
163
170
|
let pt = new DOMPoint(rect.right, rect.top)
|
|
164
171
|
showMenu(pt, options);
|
|
165
172
|
}
|
|
173
|
+
|
|
174
|
+
function clearSelection()
|
|
175
|
+
{
|
|
176
|
+
if (!clearsContext) return;
|
|
177
|
+
|
|
178
|
+
let contexts = clearsContext.split(' ');
|
|
179
|
+
contexts.forEach((c) => {
|
|
180
|
+
$contextItemsStore[c] = null;
|
|
181
|
+
$context_info_store[c] = '';
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
//e.stopPropagation();
|
|
185
|
+
|
|
186
|
+
$contextToolbarOperations = [];
|
|
187
|
+
$data_tick_store = $data_tick_store + 1;
|
|
188
|
+
}
|
|
166
189
|
|
|
167
190
|
</script>
|
|
168
191
|
|
|
192
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
169
193
|
|
|
170
|
-
|
|
194
|
+
<section class="no-print flex flex-col w-full h-full" on:click={clearSelection}>
|
|
195
|
+
<div class="px-0 w-10">
|
|
171
196
|
{#each tabs as tab}
|
|
172
197
|
{@const isSelected = $main_sidebar_visible_store == tab.key}
|
|
173
198
|
<button
|
|
174
199
|
class="h-16 px-0 flex justify-center items-center w-full text-stone-300 hover:text-stone-100"
|
|
175
200
|
class:bg-orange-500={isSelected}
|
|
176
|
-
on:click={()=> (on_tab_clicked(tab.key))}>
|
|
201
|
+
on:click|stopPropagation={()=> (on_tab_clicked(tab.key))}>
|
|
177
202
|
|
|
178
203
|
<Icon size={6} component={tab.icon}/>
|
|
179
204
|
</button>
|
|
@@ -182,18 +207,18 @@
|
|
|
182
207
|
|
|
183
208
|
{#if !mobile}
|
|
184
209
|
|
|
185
|
-
<div class="
|
|
210
|
+
<div class="mt-auto h-auto items-center w-full">
|
|
186
211
|
|
|
187
212
|
<button
|
|
188
213
|
class="h-16 px-0 flex justify-center items-center w-full text-stone-300 hover:text-stone-100"
|
|
189
|
-
on:click={show_options}>
|
|
214
|
+
on:click|stopPropagation={show_options}>
|
|
190
215
|
|
|
191
216
|
<Icon size={4} component={FaCog} />
|
|
192
217
|
</button>
|
|
193
218
|
|
|
194
219
|
</div>
|
|
195
220
|
{/if} <!-- !mobile -->
|
|
196
|
-
|
|
221
|
+
</section>
|
|
197
222
|
|
|
198
223
|
<!--Menu bind:this={menu}/-->
|
|
199
224
|
|