@humandialog/forms.svelte 0.5.9 → 0.5.10
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 +165 -98
- 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.d.ts +42 -42
- package/components/contextmenu.svelte +31 -9
- 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 +4 -4
- package/components/document/rich.edit.svelte.d.ts +32 -32
- package/components/edit.field.svelte +9 -4
- package/components/edit.field.svelte.d.ts +31 -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.d.ts +52 -52
- package/components/kanban/Kanban.d.ts +43 -43
- package/components/kanban/Kanban.js +79 -79
- package/components/kanban/internal/kanban.card.svelte +106 -106
- package/components/kanban/internal/kanban.card.svelte.d.ts +32 -32
- package/components/kanban/internal/kanban.column.svelte +84 -69
- 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 +135 -135
- package/components/kanban/internal/kanban.move.menu.svelte.d.ts +22 -22
- package/components/kanban/internal/kanban.props.svelte.d.ts +19 -19
- package/components/kanban/kanban.callbacks.svelte +1 -1
- package/components/kanban/kanban.callbacks.svelte.d.ts +18 -18
- package/components/kanban/kanban.column.svelte +2 -2
- package/components/kanban/kanban.column.svelte.d.ts +21 -21
- package/components/kanban/kanban.combo.svelte +3 -3
- package/components/kanban/kanban.combo.svelte.d.ts +24 -24
- package/components/kanban/kanban.date.svelte +1 -1
- package/components/kanban/kanban.date.svelte.d.ts +21 -21
- package/components/kanban/kanban.source.svelte.d.ts +23 -23
- package/components/kanban/kanban.static.svelte.d.ts +20 -20
- package/components/kanban/kanban.summary.svelte.d.ts +18 -18
- package/components/kanban/kanban.svelte +86 -85
- package/components/kanban/kanban.svelte.d.ts +65 -65
- package/components/kanban/kanban.tags.svelte.d.ts +24 -24
- package/components/kanban/kanban.title.svelte +2 -2
- package/components/kanban/kanban.title.svelte.d.ts +18 -18
- package/components/list/List.d.ts +45 -45
- package/components/list/List.js +53 -53
- 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 +46 -46
- package/components/list/internal/list.element.summary.svelte.d.ts +24 -24
- package/components/list/internal/list.element.svelte.d.ts +31 -31
- 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.d.ts +59 -59
- package/components/list/list.title.svelte.d.ts +22 -22
- package/components/menu.d.ts +5 -5
- package/components/menu.js +57 -57
- package/components/radio.svelte.d.ts +26 -26
- package/components/sidebar/sidebar.brand.svelte.d.ts +31 -31
- package/components/sidebar/sidebar.group.svelte.d.ts +33 -33
- package/components/sidebar/sidebar.item.svelte +56 -6
- package/components/sidebar/sidebar.item.svelte.d.ts +29 -28
- package/components/sidebar/sidebar.list.svelte +36 -15
- package/components/sidebar/sidebar.list.svelte.d.ts +35 -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.colors.svelte +20 -20
- package/components/tag.colors.svelte.d.ts +17 -17
- package/components/tag.svelte +24 -24
- package/components/tag.svelte.d.ts +20 -20
- package/components/tags.svelte.d.ts +32 -32
- package/components/textarea.ltop.svelte.d.ts +35 -35
- package/components/tile.title.svelte.d.ts +29 -29
- package/desk.svelte +1 -1
- package/desk.svelte.d.ts +23 -23
- package/form.box.svelte.d.ts +35 -35
- package/horizontal.toolbar.svelte +20 -13
- package/horizontal.toolbar.svelte.d.ts +25 -25
- package/index.d.ts +59 -59
- package/index.js +65 -65
- package/internal/configurable.content.svelte +8 -0
- package/internal/configurable.content.svelte.d.ts +29 -27
- package/internal/loading.svelte.d.ts +23 -23
- package/modal.svelte +5 -2
- package/modal.svelte.d.ts +37 -35
- package/operations.svelte +36 -16
- package/operations.svelte.d.ts +16 -16
- package/package.json +8 -8
- package/page.row.svelte.d.ts +31 -31
- package/page.svelte +17 -4
- package/page.svelte.d.ts +47 -45
- package/stores.d.ts +39 -39
- package/stores.js +0 -0
- 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 -4
- package/updates.js +0 -0
- package/utils.d.ts +35 -35
- package/utils.js +0 -0
- package/vertical.toolbar.svelte.d.ts +27 -27
package/modal.svelte.d.ts
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
title?: string | undefined;
|
|
5
|
-
open?: boolean | undefined;
|
|
6
|
-
content?: string | undefined;
|
|
7
|
-
icon?: undefined;
|
|
8
|
-
OK?: 0 | undefined;
|
|
9
|
-
OKCancel?: 1 | undefined;
|
|
10
|
-
Custom?: 2 | undefined;
|
|
11
|
-
mode?: number | undefined;
|
|
12
|
-
okCaption?: string | undefined;
|
|
13
|
-
cancelCaption?: string | undefined;
|
|
14
|
-
onOkCallback?: Function | undefined;
|
|
15
|
-
onCancelCallback?: Function | undefined;
|
|
16
|
-
show?: ((on_close_callback?: Function | undefined) => void) | undefined;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export type
|
|
28
|
-
export type
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
get
|
|
32
|
-
get
|
|
33
|
-
get
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
title?: string | undefined;
|
|
5
|
+
open?: boolean | undefined;
|
|
6
|
+
content?: string | undefined;
|
|
7
|
+
icon?: undefined;
|
|
8
|
+
OK?: 0 | undefined;
|
|
9
|
+
OKCancel?: 1 | undefined;
|
|
10
|
+
Custom?: 2 | undefined;
|
|
11
|
+
mode?: number | undefined;
|
|
12
|
+
okCaption?: string | undefined;
|
|
13
|
+
cancelCaption?: string | undefined;
|
|
14
|
+
onOkCallback?: Function | undefined;
|
|
15
|
+
onCancelCallback?: Function | undefined;
|
|
16
|
+
show?: ((on_close_callback?: Function | undefined) => void) | undefined;
|
|
17
|
+
hide?: (() => void) | undefined;
|
|
18
|
+
};
|
|
19
|
+
events: {
|
|
20
|
+
[evt: string]: CustomEvent<any>;
|
|
21
|
+
};
|
|
22
|
+
slots: {
|
|
23
|
+
default: {};
|
|
24
|
+
footer: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type ModalProps = typeof __propDef.props;
|
|
28
|
+
export type ModalEvents = typeof __propDef.events;
|
|
29
|
+
export type ModalSlots = typeof __propDef.slots;
|
|
30
|
+
export default class Modal extends SvelteComponentTyped<ModalProps, ModalEvents, ModalSlots> {
|
|
31
|
+
get OK(): 0;
|
|
32
|
+
get OKCancel(): 1;
|
|
33
|
+
get Custom(): 2;
|
|
34
|
+
get show(): (on_close_callback?: Function | undefined) => void;
|
|
35
|
+
get hide(): () => void;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
package/operations.svelte
CHANGED
|
@@ -48,22 +48,42 @@ function mousedown(e) {
|
|
|
48
48
|
|
|
49
49
|
{#each leftOperations as operation}
|
|
50
50
|
{#if !operation.separator}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
51
|
+
{#if operation.toolbox}
|
|
52
|
+
{#each operation.toolbox as operation}
|
|
53
|
+
<button type="button"
|
|
54
|
+
class="py-2.5 px-5
|
|
55
|
+
text-xs font-medium text-stone-100 dark:text-stone-300 dark:hover:text-white
|
|
56
|
+
hover:bg-stone-700 dark:hover:bg-stone-800 active:bg-stone-300 dark:active:bg-stone-600
|
|
57
|
+
border-stone-200 focus:outline-none dark:border-stone-600
|
|
58
|
+
inline-flex items-center"
|
|
59
|
+
on:click={(e) => {on_click(e, operation)}}
|
|
60
|
+
on:mousedown={mousedown}>
|
|
61
|
+
{#if operation.icon}
|
|
62
|
+
<div class="w-3 h-3 mr-1"><svelte:component this={operation.icon}/></div>
|
|
63
|
+
{/if}
|
|
64
|
+
{#if operation.caption}
|
|
65
|
+
<span>{operation.caption}</span>
|
|
66
|
+
{/if}
|
|
67
|
+
</button>
|
|
68
|
+
{/each}
|
|
69
|
+
{:else}
|
|
70
|
+
|
|
71
|
+
<button type="button"
|
|
72
|
+
class="py-2.5 px-5
|
|
73
|
+
text-xs font-medium text-stone-100 dark:text-stone-300 dark:hover:text-white
|
|
74
|
+
hover:bg-stone-700 dark:hover:bg-stone-800 active:bg-stone-300 dark:active:bg-stone-600
|
|
75
|
+
border-stone-200 focus:outline-none dark:border-stone-600
|
|
76
|
+
inline-flex items-center"
|
|
77
|
+
on:click={(e) => {on_click(e, operation)}}
|
|
78
|
+
on:mousedown={mousedown}>
|
|
79
|
+
{#if operation.icon}
|
|
80
|
+
<div class="w-3 h-3 mr-1"><svelte:component this={operation.icon}/></div>
|
|
81
|
+
{/if}
|
|
82
|
+
{#if operation.caption}
|
|
83
|
+
<span>{operation.caption}</span>
|
|
84
|
+
{/if}
|
|
85
|
+
</button>
|
|
86
|
+
{/if}
|
|
67
87
|
{/if}
|
|
68
88
|
{/each}
|
|
69
89
|
</div>
|
package/operations.svelte.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
mobile?: boolean | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type OperationsProps = typeof __propDef.props;
|
|
12
|
-
export type OperationsEvents = typeof __propDef.events;
|
|
13
|
-
export type OperationsSlots = typeof __propDef.slots;
|
|
14
|
-
export default class Operations extends SvelteComponentTyped<OperationsProps, OperationsEvents, OperationsSlots> {
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
mobile?: boolean | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
};
|
|
11
|
+
export type OperationsProps = typeof __propDef.props;
|
|
12
|
+
export type OperationsEvents = typeof __propDef.events;
|
|
13
|
+
export type OperationsSlots = typeof __propDef.slots;
|
|
14
|
+
export default class Operations extends SvelteComponentTyped<OperationsProps, OperationsEvents, OperationsSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humandialog/forms.svelte",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
4
4
|
"description": "Basic Svelte UI components for Object Reef applications",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@playwright/test": "^1.28.1",
|
|
@@ -51,9 +51,6 @@
|
|
|
51
51
|
"homepage": "https://github.com/HumanDialog/forms.svelte#readme",
|
|
52
52
|
"exports": {
|
|
53
53
|
"./package.json": "./package.json",
|
|
54
|
-
"./components/Fab.svelte": "./components/Fab.svelte",
|
|
55
|
-
"./components/Floating_container.svelte": "./components/Floating_container.svelte",
|
|
56
|
-
"./components/Grid.menu.svelte": "./components/Grid.menu.svelte",
|
|
57
54
|
"./components/button.svelte": "./components/button.svelte",
|
|
58
55
|
"./components/checkbox.svelte": "./components/checkbox.svelte",
|
|
59
56
|
"./components/combo/combo.item.svelte": "./components/combo/combo.item.svelte",
|
|
@@ -64,17 +61,19 @@
|
|
|
64
61
|
"./components/date.svelte": "./components/date.svelte",
|
|
65
62
|
"./components/delayed.spinner.svelte": "./components/delayed.spinner.svelte",
|
|
66
63
|
"./components/document/internal/Document_command": "./components/document/internal/Document_command.js",
|
|
67
|
-
"./components/document/internal/Selection_helper": "./components/document/internal/Selection_helper.js",
|
|
68
|
-
"./components/document/internal/Selection_range": "./components/document/internal/Selection_range.js",
|
|
69
64
|
"./components/document/internal/palette.row.svelte": "./components/document/internal/palette.row.svelte",
|
|
70
65
|
"./components/document/internal/palette.svelte": "./components/document/internal/palette.svelte",
|
|
66
|
+
"./components/document/internal/Selection_helper": "./components/document/internal/Selection_helper.js",
|
|
67
|
+
"./components/document/internal/Selection_range": "./components/document/internal/Selection_range.js",
|
|
71
68
|
"./components/document/rich.edit.svelte": "./components/document/rich.edit.svelte",
|
|
72
69
|
"./components/edit.field.svelte": "./components/edit.field.svelte",
|
|
70
|
+
"./components/Fab.svelte": "./components/Fab.svelte",
|
|
73
71
|
"./components/file.loader.svelte": "./components/file.loader.svelte",
|
|
72
|
+
"./components/Floating_container.svelte": "./components/Floating_container.svelte",
|
|
73
|
+
"./components/Grid.menu.svelte": "./components/Grid.menu.svelte",
|
|
74
74
|
"./components/icon.svelte": "./components/icon.svelte",
|
|
75
75
|
"./components/input.text.svelte": "./components/input.text.svelte",
|
|
76
76
|
"./components/inputbox.ltop.svelte": "./components/inputbox.ltop.svelte",
|
|
77
|
-
"./components/kanban/Kanban": "./components/kanban/Kanban.js",
|
|
78
77
|
"./components/kanban/internal/kanban.card.svelte": "./components/kanban/internal/kanban.card.svelte",
|
|
79
78
|
"./components/kanban/internal/kanban.column.svelte": "./components/kanban/internal/kanban.column.svelte",
|
|
80
79
|
"./components/kanban/internal/kanban.inserter.svelte": "./components/kanban/internal/kanban.inserter.svelte",
|
|
@@ -90,7 +89,7 @@
|
|
|
90
89
|
"./components/kanban/kanban.svelte": "./components/kanban/kanban.svelte",
|
|
91
90
|
"./components/kanban/kanban.tags.svelte": "./components/kanban/kanban.tags.svelte",
|
|
92
91
|
"./components/kanban/kanban.title.svelte": "./components/kanban/kanban.title.svelte",
|
|
93
|
-
"./components/
|
|
92
|
+
"./components/kanban/Kanban": "./components/kanban/Kanban.js",
|
|
94
93
|
"./components/list/internal/list.element.props.svelte": "./components/list/internal/list.element.props.svelte",
|
|
95
94
|
"./components/list/internal/list.element.summary.svelte": "./components/list/internal/list.element.summary.svelte",
|
|
96
95
|
"./components/list/internal/list.element.svelte": "./components/list/internal/list.element.svelte",
|
|
@@ -102,6 +101,7 @@
|
|
|
102
101
|
"./components/list/list.summary.svelte": "./components/list/list.summary.svelte",
|
|
103
102
|
"./components/list/list.svelte": "./components/list/list.svelte",
|
|
104
103
|
"./components/list/list.title.svelte": "./components/list/list.title.svelte",
|
|
104
|
+
"./components/list/List": "./components/list/List.js",
|
|
105
105
|
"./components/menu": "./components/menu.js",
|
|
106
106
|
"./components/radio.svelte": "./components/radio.svelte",
|
|
107
107
|
"./components/sidebar/sidebar.brand.svelte": "./components/sidebar/sidebar.brand.svelte",
|
package/page.row.svelte.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} PageProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} PageEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} PageSlots */
|
|
4
|
-
export default class Page 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 PageProps = typeof __propDef.props;
|
|
15
|
-
export type PageEvents = typeof __propDef.events;
|
|
16
|
-
export type PageSlots = 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} PageProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} PageEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} PageSlots */
|
|
4
|
+
export default class Page 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 PageProps = typeof __propDef.props;
|
|
15
|
+
export type PageEvents = typeof __propDef.events;
|
|
16
|
+
export type PageSlots = 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 {};
|
package/page.svelte
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { setContext, onMount } from 'svelte';
|
|
2
|
+
import { setContext, getContext, onMount } from 'svelte';
|
|
3
3
|
import {
|
|
4
4
|
contextItemsStore,
|
|
5
5
|
data_tick_store,
|
|
@@ -38,6 +38,9 @@
|
|
|
38
38
|
//NOP
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
if($$props.class)
|
|
42
|
+
cl += ' ' + $$props.class
|
|
43
|
+
|
|
41
44
|
onMount(() => {
|
|
42
45
|
if (toolbarOperations != undefined && Array.isArray(toolbarOperations))
|
|
43
46
|
$pageToolbarOperations = [...toolbarOperations];
|
|
@@ -54,7 +57,11 @@
|
|
|
54
57
|
};
|
|
55
58
|
});
|
|
56
59
|
|
|
60
|
+
setContext('rIs-page-component', true);
|
|
57
61
|
setContext('ctx', context);
|
|
62
|
+
|
|
63
|
+
const cascadingParams = getContext('rPage-cascading-params')
|
|
64
|
+
|
|
58
65
|
let item = null;
|
|
59
66
|
let visibilty = 'hidden';
|
|
60
67
|
if (inContext == '') inContext = context;
|
|
@@ -70,6 +77,7 @@
|
|
|
70
77
|
if ($contextItemsStore.focused == inContext) visibilty = '';
|
|
71
78
|
} else visibilty = '';
|
|
72
79
|
}
|
|
80
|
+
let heightClass = ''
|
|
73
81
|
let t = 0;
|
|
74
82
|
$: {
|
|
75
83
|
t = $data_tick_store;
|
|
@@ -92,10 +100,15 @@
|
|
|
92
100
|
//console.log(item)
|
|
93
101
|
//console.log("--------------")
|
|
94
102
|
}
|
|
103
|
+
|
|
104
|
+
if(cascadingParams && cascadingParams.min_h_class)
|
|
105
|
+
heightClass = cascadingParams.min_h_class;
|
|
106
|
+
else
|
|
107
|
+
heightClass = '';
|
|
95
108
|
}
|
|
96
109
|
|
|
97
|
-
function clear_selection(e)
|
|
98
|
-
|
|
110
|
+
function clear_selection(e)
|
|
111
|
+
{
|
|
99
112
|
if (!clearsContext) return;
|
|
100
113
|
|
|
101
114
|
let contexts = clearsContext.split(' ');
|
|
@@ -111,7 +124,7 @@
|
|
|
111
124
|
}
|
|
112
125
|
</script>
|
|
113
126
|
|
|
114
|
-
<div class="bg-stone-100 dark:bg-stone-800 {visibilty} {cl}" on:click={clear_selection}>
|
|
127
|
+
<div class="bg-stone-100 dark:bg-stone-800 {visibilty} {cl} {heightClass}" on:click={clear_selection}>
|
|
115
128
|
{#if visibilty == ''}
|
|
116
129
|
<slot />
|
|
117
130
|
{/if}
|
package/page.svelte.d.ts
CHANGED
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} PageProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} PageEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} PageSlots */
|
|
4
|
-
export default class Page extends SvelteComponentTyped<{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type
|
|
23
|
-
export type
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
45
|
-
|
|
1
|
+
/** @typedef {typeof __propDef.props} PageProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} PageEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} PageSlots */
|
|
4
|
+
export default class Page extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
clearsContext?: string | undefined;
|
|
7
|
+
context?: string | undefined;
|
|
8
|
+
self?: null | undefined;
|
|
9
|
+
c?: string | undefined;
|
|
10
|
+
cl?: string | undefined;
|
|
11
|
+
typename?: string | undefined;
|
|
12
|
+
focused_only?: boolean | undefined;
|
|
13
|
+
inContext?: string | undefined;
|
|
14
|
+
toolbarOperations?: any;
|
|
15
|
+
title?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
[evt: string]: CustomEvent<any>;
|
|
18
|
+
}, {
|
|
19
|
+
default: {};
|
|
20
|
+
}> {
|
|
21
|
+
}
|
|
22
|
+
export type PageProps = typeof __propDef.props;
|
|
23
|
+
export type PageEvents = typeof __propDef.events;
|
|
24
|
+
export type PageSlots = typeof __propDef.slots;
|
|
25
|
+
import { SvelteComponentTyped } from "svelte";
|
|
26
|
+
declare const __propDef: {
|
|
27
|
+
props: {
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
clearsContext?: string | undefined;
|
|
30
|
+
context?: string | undefined;
|
|
31
|
+
self?: null | undefined;
|
|
32
|
+
c?: string | undefined;
|
|
33
|
+
cl?: string | undefined;
|
|
34
|
+
typename?: string | undefined;
|
|
35
|
+
focused_only?: boolean | undefined;
|
|
36
|
+
inContext?: string | undefined;
|
|
37
|
+
toolbarOperations?: any;
|
|
38
|
+
title?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
events: {
|
|
41
|
+
[evt: string]: CustomEvent<any>;
|
|
42
|
+
};
|
|
43
|
+
slots: {
|
|
44
|
+
default: {};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export {};
|
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
|
|
@@ -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 {};
|