@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
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} ConfigurableProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} ConfigurableEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} ConfigurableSlots */
|
|
4
|
-
export default class Configurable extends SvelteComponentTyped<{
|
|
5
|
-
config: any;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {
|
|
9
|
-
alt: {};
|
|
10
|
-
}> {
|
|
11
|
-
}
|
|
12
|
-
export type ConfigurableProps = typeof __propDef.props;
|
|
13
|
-
export type ConfigurableEvents = typeof __propDef.events;
|
|
14
|
-
export type ConfigurableSlots = typeof __propDef.slots;
|
|
15
|
-
import { SvelteComponentTyped } from "svelte";
|
|
16
|
-
declare const __propDef: {
|
|
17
|
-
props: {
|
|
18
|
-
config: any;
|
|
19
|
-
};
|
|
20
|
-
events: {
|
|
21
|
-
[evt: string]: CustomEvent<any>;
|
|
22
|
-
};
|
|
23
|
-
slots: {
|
|
24
|
-
alt: {};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} ConfigurableProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} ConfigurableEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} ConfigurableSlots */
|
|
4
|
+
export default class Configurable extends SvelteComponentTyped<{
|
|
5
|
+
config: any;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
alt: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type ConfigurableProps = typeof __propDef.props;
|
|
13
|
+
export type ConfigurableEvents = typeof __propDef.events;
|
|
14
|
+
export type ConfigurableSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
config: any;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
alt: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} LoadingProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} LoadingEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} LoadingSlots */
|
|
4
|
-
export default class Loading extends SvelteComponentTyped<{
|
|
5
|
-
params: any;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type LoadingProps = typeof __propDef.props;
|
|
11
|
-
export type LoadingEvents = typeof __propDef.events;
|
|
12
|
-
export type LoadingSlots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponentTyped } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
params: any;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
1
|
+
/** @typedef {typeof __propDef.props} LoadingProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} LoadingEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} LoadingSlots */
|
|
4
|
+
export default class Loading extends SvelteComponentTyped<{
|
|
5
|
+
params: any;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type LoadingProps = typeof __propDef.props;
|
|
11
|
+
export type LoadingEvents = typeof __propDef.events;
|
|
12
|
+
export type LoadingSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
params: any;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
package/modal.svelte
CHANGED
|
@@ -70,9 +70,9 @@ function on_cancel(event) {
|
|
|
70
70
|
From: "opacity-100 translate-y-0 sm:scale-100"
|
|
71
71
|
To: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
72
72
|
-->
|
|
73
|
-
<div class=" transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all
|
|
73
|
+
<div class=" transform overflow-hidden rounded-lg bg-white dark:bg-stone-700 text-left shadow-xl transition-all
|
|
74
74
|
sm:my-8 w-full sm:max-w-lg">
|
|
75
|
-
<div class="bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4">
|
|
75
|
+
<div class="bg-white dark:bg-stone-700 px-4 pb-4 pt-5 sm:p-6 sm:pb-4">
|
|
76
76
|
<div class="sm:flex sm:items-start">
|
|
77
77
|
<div class="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-blue-100 sm:mx-0 sm:h-10 sm:w-10">
|
|
78
78
|
{#if icon}
|
|
@@ -80,7 +80,7 @@ function on_cancel(event) {
|
|
|
80
80
|
{/if}
|
|
81
81
|
</div>
|
|
82
82
|
<div class="grow mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left">
|
|
83
|
-
<h3 class="text-base font-semibold leading-6 text-stone-900" id="modal-title">{title}</h3>
|
|
83
|
+
<h3 class="text-base font-semibold leading-6 text-stone-900 dark:text-stone-100" id="modal-title">{title}</h3>
|
|
84
84
|
<div class="mt-2">
|
|
85
85
|
{#if content}
|
|
86
86
|
<p class="text-sm text-stone-500">{content}</p>
|
|
@@ -91,16 +91,16 @@ function on_cancel(event) {
|
|
|
91
91
|
</div>
|
|
92
92
|
</div>
|
|
93
93
|
</div>
|
|
94
|
-
<div class="bg-stone-50 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6">
|
|
94
|
+
<div class="bg-stone-50 dark:bg-stone-700 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6">
|
|
95
95
|
{#if mode == OK}
|
|
96
|
-
<button type="button" class="inline-flex w-full justify-center rounded-md bg-blue-700 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-800 sm:ml-3 sm:w-auto"
|
|
96
|
+
<button type="button" class="inline-flex w-full justify-center rounded-md bg-blue-700 dark:bg-blue-700 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-800 sm:ml-3 sm:w-auto"
|
|
97
97
|
on:click={on_ok}>
|
|
98
98
|
{okCaption}</button>
|
|
99
99
|
{:else if mode == OKCancel}
|
|
100
|
-
<button type="button" class="inline-flex w-full justify-center rounded-md bg-blue-700 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-800 sm:ml-3 sm:w-auto"
|
|
100
|
+
<button type="button" class="inline-flex w-full justify-center rounded-md bg-blue-700 dark:bg-blue-700 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-800 sm:ml-3 sm:w-auto"
|
|
101
101
|
on:click={on_ok}>
|
|
102
102
|
{okCaption}</button>
|
|
103
|
-
<button type="button" class="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-stone-900 shadow-sm
|
|
103
|
+
<button type="button" class="mt-3 inline-flex w-full justify-center rounded-md bg-white dark:bg-stone-400 px-3 py-2 text-sm font-semibold text-stone-900 shadow-sm hover:bg-stone-50 sm:mt-0 sm:w-auto"
|
|
104
104
|
on:click={on_cancel}>
|
|
105
105
|
{cancelCaption}</button>
|
|
106
106
|
{:else if mode == Custom}
|
package/modal.svelte.d.ts
CHANGED
|
@@ -1,35 +1,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
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {
|
|
22
|
-
default: {};
|
|
23
|
-
footer: {};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export type ModalProps = typeof __propDef.props;
|
|
27
|
-
export type ModalEvents = typeof __propDef.events;
|
|
28
|
-
export type ModalSlots = typeof __propDef.slots;
|
|
29
|
-
export default class Modal extends SvelteComponentTyped<ModalProps, ModalEvents, ModalSlots> {
|
|
30
|
-
get OK(): 0;
|
|
31
|
-
get OKCancel(): 1;
|
|
32
|
-
get Custom(): 2;
|
|
33
|
-
get show(): (on_close_callback?: Function | undefined) => void;
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
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
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {
|
|
22
|
+
default: {};
|
|
23
|
+
footer: {};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export type ModalProps = typeof __propDef.props;
|
|
27
|
+
export type ModalEvents = typeof __propDef.events;
|
|
28
|
+
export type ModalSlots = typeof __propDef.slots;
|
|
29
|
+
export default class Modal extends SvelteComponentTyped<ModalProps, ModalEvents, ModalSlots> {
|
|
30
|
+
get OK(): 0;
|
|
31
|
+
get OKCancel(): 1;
|
|
32
|
+
get Custom(): 2;
|
|
33
|
+
get show(): (on_close_callback?: Function | undefined) => void;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
package/operations.svelte
CHANGED
|
@@ -4,11 +4,15 @@ export let mobile = false;
|
|
|
4
4
|
$:
|
|
5
5
|
update($pageToolbarOperations, $contextToolbarOperations);
|
|
6
6
|
let operations = [];
|
|
7
|
+
let leftOperations = [];
|
|
8
|
+
let rightOperations = [];
|
|
7
9
|
function update(...args) {
|
|
8
10
|
if ($contextToolbarOperations && $contextToolbarOperations.length > 0)
|
|
9
11
|
operations = $contextToolbarOperations;
|
|
10
12
|
else
|
|
11
13
|
operations = $pageToolbarOperations;
|
|
14
|
+
leftOperations = operations.filter((o) => !o.right);
|
|
15
|
+
rightOperations = operations.filter((o) => o.right == true);
|
|
12
16
|
}
|
|
13
17
|
function on_click(e, operation) {
|
|
14
18
|
if (!operation)
|
|
@@ -38,30 +42,55 @@ function mousedown(e) {
|
|
|
38
42
|
}
|
|
39
43
|
</script>
|
|
40
44
|
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
{#
|
|
45
|
+
<section class="flex flex-row no-print h-10 bg-stone-600 dark:bg-stone-950 overflow-x-clip overflow-y-hidden py-0 text-xs ">
|
|
46
|
+
<div class="flex flex-row"
|
|
47
|
+
class:flex-row-reverse={mobile}>
|
|
48
|
+
|
|
49
|
+
{#each leftOperations as operation}
|
|
50
|
+
{#if !operation.separator}
|
|
46
51
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</div>
|
|
52
|
+
<button type="button"
|
|
53
|
+
class="py-2.5 px-5
|
|
54
|
+
text-xs font-medium text-stone-100 dark:text-stone-300 dark:hover:text-white
|
|
55
|
+
hover:bg-stone-700 dark:hover:bg-stone-800 active:bg-stone-300 dark:active:bg-stone-600
|
|
56
|
+
border-stone-200 focus:outline-none dark:border-stone-600
|
|
57
|
+
inline-flex items-center"
|
|
58
|
+
on:click={(e) => {on_click(e, operation)}}
|
|
59
|
+
on:mousedown={mousedown}>
|
|
60
|
+
{#if operation.icon}
|
|
61
|
+
<div class="w-3 h-3 mr-1"><svelte:component this={operation.icon}/></div>
|
|
62
|
+
{/if}
|
|
63
|
+
{#if operation.caption}
|
|
64
|
+
<span>{operation.caption}</span>
|
|
65
|
+
{/if}
|
|
66
|
+
</button>
|
|
67
|
+
{/if}
|
|
68
|
+
{/each}
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
<div class="ml-auto flex flex-row">
|
|
72
|
+
{#each rightOperations as operation}
|
|
73
|
+
{#if !operation.separator}
|
|
74
|
+
|
|
75
|
+
<button type="button"
|
|
76
|
+
class="py-2.5 px-5
|
|
77
|
+
text-xs font-medium text-stone-100 dark:text-stone-300 dark:hover:text-white
|
|
78
|
+
hover:bg-stone-700 dark:hover:bg-stone-800 active:bg-stone-300 dark:active:bg-stone-600
|
|
79
|
+
border-stone-200 focus:outline-none dark:border-stone-600
|
|
80
|
+
inline-flex items-center"
|
|
81
|
+
on:click={(e) => {on_click(e, operation)}}
|
|
82
|
+
on:mousedown={mousedown}>
|
|
83
|
+
{#if operation.icon}
|
|
84
|
+
<div class="w-3 h-3 mr-1"><svelte:component this={operation.icon}/></div>
|
|
85
|
+
{/if}
|
|
86
|
+
{#if operation.caption}
|
|
87
|
+
<span>{operation.caption}</span>
|
|
88
|
+
{/if}
|
|
89
|
+
</button>
|
|
90
|
+
{/if}
|
|
91
|
+
{/each}
|
|
92
|
+
</div>
|
|
93
|
+
</section>
|
|
65
94
|
|
|
66
95
|
<style>
|
|
67
96
|
@media print
|
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.6",
|
|
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,27 +61,35 @@
|
|
|
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",
|
|
81
80
|
"./components/kanban/internal/kanban.move.menu.svelte": "./components/kanban/internal/kanban.move.menu.svelte",
|
|
81
|
+
"./components/kanban/internal/kanban.props.svelte": "./components/kanban/internal/kanban.props.svelte",
|
|
82
82
|
"./components/kanban/kanban.callbacks.svelte": "./components/kanban/kanban.callbacks.svelte",
|
|
83
83
|
"./components/kanban/kanban.column.svelte": "./components/kanban/kanban.column.svelte",
|
|
84
|
+
"./components/kanban/kanban.combo.svelte": "./components/kanban/kanban.combo.svelte",
|
|
85
|
+
"./components/kanban/kanban.date.svelte": "./components/kanban/kanban.date.svelte",
|
|
86
|
+
"./components/kanban/kanban.source.svelte": "./components/kanban/kanban.source.svelte",
|
|
87
|
+
"./components/kanban/kanban.static.svelte": "./components/kanban/kanban.static.svelte",
|
|
84
88
|
"./components/kanban/kanban.summary.svelte": "./components/kanban/kanban.summary.svelte",
|
|
85
89
|
"./components/kanban/kanban.svelte": "./components/kanban/kanban.svelte",
|
|
90
|
+
"./components/kanban/kanban.tags.svelte": "./components/kanban/kanban.tags.svelte",
|
|
86
91
|
"./components/kanban/kanban.title.svelte": "./components/kanban/kanban.title.svelte",
|
|
87
|
-
"./components/
|
|
92
|
+
"./components/kanban/Kanban": "./components/kanban/Kanban.js",
|
|
88
93
|
"./components/list/internal/list.element.props.svelte": "./components/list/internal/list.element.props.svelte",
|
|
89
94
|
"./components/list/internal/list.element.summary.svelte": "./components/list/internal/list.element.summary.svelte",
|
|
90
95
|
"./components/list/internal/list.element.svelte": "./components/list/internal/list.element.svelte",
|
|
@@ -96,6 +101,7 @@
|
|
|
96
101
|
"./components/list/list.summary.svelte": "./components/list/list.summary.svelte",
|
|
97
102
|
"./components/list/list.svelte": "./components/list/list.svelte",
|
|
98
103
|
"./components/list/list.title.svelte": "./components/list/list.title.svelte",
|
|
104
|
+
"./components/list/List": "./components/list/List.js",
|
|
99
105
|
"./components/menu": "./components/menu.js",
|
|
100
106
|
"./components/radio.svelte": "./components/radio.svelte",
|
|
101
107
|
"./components/sidebar/sidebar.brand.svelte": "./components/sidebar/sidebar.brand.svelte",
|
|
@@ -108,6 +114,8 @@
|
|
|
108
114
|
"./components/table/item.svelte": "./components/table/item.svelte",
|
|
109
115
|
"./components/table/table.svelte": "./components/table/table.svelte",
|
|
110
116
|
"./components/table/table": "./components/table/table.js",
|
|
117
|
+
"./components/tag.svelte": "./components/tag.svelte",
|
|
118
|
+
"./components/tags.svelte": "./components/tags.svelte",
|
|
111
119
|
"./components/textarea.ltop.svelte": "./components/textarea.ltop.svelte",
|
|
112
120
|
"./components/tile.title.svelte": "./components/tile.title.svelte",
|
|
113
121
|
"./desk.svelte": "./desk.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
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
export let c = '';
|
|
23
23
|
|
|
24
24
|
export let toolbarOperations = undefined;
|
|
25
|
-
export let
|
|
25
|
+
export let clearsContext = '';
|
|
26
26
|
export let title = '';
|
|
27
27
|
|
|
28
28
|
switch (c) {
|
|
@@ -96,9 +96,9 @@
|
|
|
96
96
|
|
|
97
97
|
function clear_selection(e) {
|
|
98
98
|
//console.log('page click', chnages.just_changed_context)
|
|
99
|
-
if (!
|
|
99
|
+
if (!clearsContext) return;
|
|
100
100
|
|
|
101
|
-
let contexts =
|
|
101
|
+
let contexts = clearsContext.split(' ');
|
|
102
102
|
contexts.forEach((c) => {
|
|
103
103
|
$contextItemsStore[c] = null;
|
|
104
104
|
$context_info_store[c] = '';
|
package/page.svelte.d.ts
CHANGED
|
@@ -1,45 +1,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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
title?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
[evt: string]: CustomEvent<any>;
|
|
17
|
-
}, {
|
|
18
|
-
default: {};
|
|
19
|
-
}> {
|
|
20
|
-
}
|
|
21
|
-
export type PageProps = typeof __propDef.props;
|
|
22
|
-
export type PageEvents = typeof __propDef.events;
|
|
23
|
-
export type PageSlots = typeof __propDef.slots;
|
|
24
|
-
import { SvelteComponentTyped } from "svelte";
|
|
25
|
-
declare const __propDef: {
|
|
26
|
-
props: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
title?: string | undefined;
|
|
37
|
-
};
|
|
38
|
-
events: {
|
|
39
|
-
[evt: string]: CustomEvent<any>;
|
|
40
|
-
};
|
|
41
|
-
slots: {
|
|
42
|
-
default: {};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
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
|
+
clearsContext?: string | undefined;
|
|
6
|
+
context?: string | undefined;
|
|
7
|
+
self?: null | undefined;
|
|
8
|
+
c?: string | undefined;
|
|
9
|
+
cl?: string | undefined;
|
|
10
|
+
typename?: string | undefined;
|
|
11
|
+
focused_only?: boolean | undefined;
|
|
12
|
+
inContext?: string | undefined;
|
|
13
|
+
toolbarOperations?: any;
|
|
14
|
+
title?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {
|
|
18
|
+
default: {};
|
|
19
|
+
}> {
|
|
20
|
+
}
|
|
21
|
+
export type PageProps = typeof __propDef.props;
|
|
22
|
+
export type PageEvents = typeof __propDef.events;
|
|
23
|
+
export type PageSlots = typeof __propDef.slots;
|
|
24
|
+
import { SvelteComponentTyped } from "svelte";
|
|
25
|
+
declare const __propDef: {
|
|
26
|
+
props: {
|
|
27
|
+
clearsContext?: string | undefined;
|
|
28
|
+
context?: string | undefined;
|
|
29
|
+
self?: null | undefined;
|
|
30
|
+
c?: string | undefined;
|
|
31
|
+
cl?: string | undefined;
|
|
32
|
+
typename?: string | undefined;
|
|
33
|
+
focused_only?: boolean | undefined;
|
|
34
|
+
inContext?: string | undefined;
|
|
35
|
+
toolbarOperations?: any;
|
|
36
|
+
title?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
events: {
|
|
39
|
+
[evt: string]: CustomEvent<any>;
|
|
40
|
+
};
|
|
41
|
+
slots: {
|
|
42
|
+
default: {};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export {};
|