@humandialog/forms.svelte 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Floating_container.svelte +4 -2
- package/components/Floating_container.svelte.d.ts +2 -2
- package/components/Grid.menu.svelte +131 -0
- package/components/Grid.menu.svelte.d.ts +23 -0
- package/components/inputbox.ltop.svelte.d.ts +2 -2
- package/components/menu.d.ts +2 -1
- package/components/menu.js +8 -3
- package/form.box.svelte.d.ts +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/operations.svelte +15 -18
- package/package.json +2 -1
- package/page.row.svelte.d.ts +2 -2
- package/page.svelte.d.ts +4 -4
- package/tile.svelte.d.ts +2 -2
- package/tiles.row.svelte.d.ts +2 -2
- package/tiles.vertical.row.svelte.d.ts +2 -2
|
@@ -3,15 +3,17 @@ let x;
|
|
|
3
3
|
let y;
|
|
4
4
|
let visible = false;
|
|
5
5
|
let toolbar;
|
|
6
|
+
let props = {};
|
|
6
7
|
let root_element;
|
|
7
8
|
let invisible_button;
|
|
8
9
|
$:
|
|
9
10
|
display = visible ? "fixed" : "hidden";
|
|
10
|
-
export async function show(_x, _y, _toolbar) {
|
|
11
|
+
export async function show(_x, _y, _toolbar, _props = {}) {
|
|
11
12
|
x = _x;
|
|
12
13
|
y = _y;
|
|
13
14
|
visible = true;
|
|
14
15
|
toolbar = _toolbar;
|
|
16
|
+
props = _props;
|
|
15
17
|
await tick();
|
|
16
18
|
focus_first_element();
|
|
17
19
|
}
|
|
@@ -36,6 +38,6 @@ function on_focus_out() {
|
|
|
36
38
|
on:focusout={on_focus_out}
|
|
37
39
|
bind:this={root_element}>
|
|
38
40
|
<button class="w-0 h-0 fixed bg-transparent " bind:this={invisible_button}></button>
|
|
39
|
-
<svelte:component this={toolbar}/>
|
|
41
|
+
<svelte:component this={toolbar} {...props}/>
|
|
40
42
|
</div>
|
|
41
43
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
show?: ((_x: number, _y: number, _toolbar: any) => Promise<void>) | undefined;
|
|
4
|
+
show?: ((_x: number, _y: number, _toolbar: any, _props?: {}) => Promise<void>) | undefined;
|
|
5
5
|
hide?: (() => void) | undefined;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
@@ -13,7 +13,7 @@ export type FloatingContainerProps = typeof __propDef.props;
|
|
|
13
13
|
export type FloatingContainerEvents = typeof __propDef.events;
|
|
14
14
|
export type FloatingContainerSlots = typeof __propDef.slots;
|
|
15
15
|
export default class FloatingContainer extends SvelteComponentTyped<FloatingContainerProps, FloatingContainerEvents, FloatingContainerSlots> {
|
|
16
|
-
get show(): (_x: number, _y: number, _toolbar: any) => Promise<void>;
|
|
16
|
+
get show(): (_x: number, _y: number, _toolbar: any, _props?: {}) => Promise<void>;
|
|
17
17
|
get hide(): () => void;
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import {context_items_store} from '..'
|
|
3
|
+
|
|
4
|
+
export let operations = []
|
|
5
|
+
|
|
6
|
+
$: grid_cols = init(operations);
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
function init(operations)
|
|
10
|
+
{
|
|
11
|
+
let cols_no = 0;
|
|
12
|
+
let current_row_cols_no = 0;
|
|
13
|
+
|
|
14
|
+
for(let i=0; i<operations.length; i++)
|
|
15
|
+
{
|
|
16
|
+
let operation = operations[i];
|
|
17
|
+
if(operation.separator)
|
|
18
|
+
{
|
|
19
|
+
if(current_row_cols_no > cols_no)
|
|
20
|
+
cols_no = current_row_cols_no;
|
|
21
|
+
|
|
22
|
+
current_row_cols_no = 0;
|
|
23
|
+
}
|
|
24
|
+
else
|
|
25
|
+
{
|
|
26
|
+
let cols = operation.columns ?? 1;
|
|
27
|
+
current_row_cols_no += cols;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if(current_row_cols_no > cols_no)
|
|
32
|
+
cols_no = current_row_cols_no;
|
|
33
|
+
|
|
34
|
+
switch(cols_no)
|
|
35
|
+
{
|
|
36
|
+
case 1:
|
|
37
|
+
return "grid-cols-1";
|
|
38
|
+
|
|
39
|
+
case 2:
|
|
40
|
+
return "grid-cols-2";
|
|
41
|
+
|
|
42
|
+
case 3:
|
|
43
|
+
return "grid-cols-3";
|
|
44
|
+
|
|
45
|
+
case 4:
|
|
46
|
+
return "grid-cols-4";
|
|
47
|
+
|
|
48
|
+
case 5:
|
|
49
|
+
return "grid-cols-5";
|
|
50
|
+
|
|
51
|
+
case 6:
|
|
52
|
+
return "grid-cols-6";
|
|
53
|
+
|
|
54
|
+
case 7:
|
|
55
|
+
return "grid-cols-7";
|
|
56
|
+
|
|
57
|
+
case 8:
|
|
58
|
+
return "grid-cols-8";
|
|
59
|
+
|
|
60
|
+
case 9:
|
|
61
|
+
return "grid-cols-9";
|
|
62
|
+
|
|
63
|
+
case 10:
|
|
64
|
+
return "grid-cols-10";
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function col_span(n)
|
|
69
|
+
{
|
|
70
|
+
switch(n)
|
|
71
|
+
{
|
|
72
|
+
case 1:
|
|
73
|
+
return "col-span-1";
|
|
74
|
+
case 2:
|
|
75
|
+
return "col-span-2";
|
|
76
|
+
case 3:
|
|
77
|
+
return "col-span-3";
|
|
78
|
+
case 4:
|
|
79
|
+
return "col-span-4";
|
|
80
|
+
case 5:
|
|
81
|
+
return "col-span-5";
|
|
82
|
+
case 6:
|
|
83
|
+
return "col-span-6";
|
|
84
|
+
case 7:
|
|
85
|
+
return "col-span-7";
|
|
86
|
+
case 8:
|
|
87
|
+
return "col-span-8";
|
|
88
|
+
case 9:
|
|
89
|
+
return "col-span-9";
|
|
90
|
+
case 10:
|
|
91
|
+
return "col-span-10";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function execute_action(e, operation)
|
|
96
|
+
{
|
|
97
|
+
|
|
98
|
+
if(!operation)
|
|
99
|
+
return;
|
|
100
|
+
|
|
101
|
+
if(!operation.action)
|
|
102
|
+
return;
|
|
103
|
+
|
|
104
|
+
let context_item = null
|
|
105
|
+
if($context_items_store.focused)
|
|
106
|
+
context_item = $context_items_store[$context_items_store.focused]
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
operation.action(context_item);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
</script>
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
<div class="grid gap-2 {grid_cols}">
|
|
116
|
+
{#each operations as operation}
|
|
117
|
+
{#if !operation.separator}
|
|
118
|
+
{@const col=col_span(operation.columns ?? 1)}
|
|
119
|
+
|
|
120
|
+
<button class=" py-2.5 px-5 {col}
|
|
121
|
+
text-xs font-medium text-gray-900 dark:text-gray-400 dark:hover:text-white
|
|
122
|
+
bg-slate-100 hover:bg-slate-200 dark:bg-gray-800 dark:hover:bg-gray-700
|
|
123
|
+
border rounded border-gray-200 dark:border-gray-600 focus:outline-none
|
|
124
|
+
inline-flex items-center justify-center"
|
|
125
|
+
on:click={(e) => {execute_action(e, operation)}}>
|
|
126
|
+
<div>{operation.caption}</div>
|
|
127
|
+
</button>
|
|
128
|
+
{/if}
|
|
129
|
+
{/each}
|
|
130
|
+
</div>
|
|
131
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} GridProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} GridEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} GridSlots */
|
|
4
|
+
export default class Grid extends SvelteComponentTyped<{
|
|
5
|
+
operations?: any[] | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type GridProps = typeof __propDef.props;
|
|
11
|
+
export type GridEvents = typeof __propDef.events;
|
|
12
|
+
export type GridSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
operations?: any[] | undefined;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -6,8 +6,8 @@ export default class Inputbox extends SvelteComponentTyped<{
|
|
|
6
6
|
label?: string | undefined;
|
|
7
7
|
context?: string | undefined;
|
|
8
8
|
self?: null | undefined;
|
|
9
|
-
c?: string | undefined;
|
|
10
9
|
typename?: string | undefined;
|
|
10
|
+
c?: string | undefined;
|
|
11
11
|
a?: string | undefined;
|
|
12
12
|
s?: string | undefined;
|
|
13
13
|
placeholder?: string | undefined;
|
|
@@ -28,8 +28,8 @@ declare const __propDef: {
|
|
|
28
28
|
label?: string | undefined;
|
|
29
29
|
context?: string | undefined;
|
|
30
30
|
self?: null | undefined;
|
|
31
|
-
c?: string | undefined;
|
|
32
31
|
typename?: string | undefined;
|
|
32
|
+
c?: string | undefined;
|
|
33
33
|
a?: string | undefined;
|
|
34
34
|
s?: string | undefined;
|
|
35
35
|
placeholder?: string | undefined;
|
package/components/menu.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare function show_menu(x: number, y: number, operations: any): void;
|
|
2
|
-
export declare function show_floating_toolbar(x: number, y: number, toolbar: any): void;
|
|
2
|
+
export declare function show_floating_toolbar(x: number, y: number, toolbar: any, props?: {}): void;
|
|
3
|
+
export declare function show_grid_menu(x: number, y: number, operations: any): void;
|
package/components/menu.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Menu from './contextmenu.svelte';
|
|
2
2
|
import Floating_container from './Floating_container.svelte';
|
|
3
|
+
import Grid from './Grid.menu.svelte';
|
|
3
4
|
let menu_comopnent = null;
|
|
4
5
|
let toolbar_component = null;
|
|
5
6
|
export function show_menu(x, y, operations) {
|
|
@@ -16,17 +17,21 @@ export function show_menu(x, y, operations) {
|
|
|
16
17
|
else
|
|
17
18
|
console.error('what now?');
|
|
18
19
|
}
|
|
19
|
-
export function show_floating_toolbar(x, y, toolbar) {
|
|
20
|
+
export function show_floating_toolbar(x, y, toolbar, props = {}) {
|
|
20
21
|
let floating_container = document.getElementById("__hd_svelte_floating_container");
|
|
21
22
|
if (!!!floating_container) {
|
|
22
23
|
toolbar_component = new Floating_container({
|
|
23
24
|
target: document.body,
|
|
24
25
|
props: {}
|
|
25
26
|
});
|
|
26
|
-
toolbar_component.show(x, y, toolbar);
|
|
27
|
+
toolbar_component.show(x, y, toolbar, props);
|
|
27
28
|
}
|
|
28
29
|
else if (toolbar_component)
|
|
29
|
-
toolbar_component.show(x, y, toolbar);
|
|
30
|
+
toolbar_component.show(x, y, toolbar, props);
|
|
30
31
|
else
|
|
31
32
|
console.error('what now?');
|
|
32
33
|
}
|
|
34
|
+
export function show_grid_menu(x, y, operations) {
|
|
35
|
+
console.log('show_grid_menu', operations);
|
|
36
|
+
show_floating_toolbar(x, y, Grid, { operations: operations });
|
|
37
|
+
}
|
package/form.box.svelte.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
export default class Form extends SvelteComponentTyped<{
|
|
5
5
|
context?: string | undefined;
|
|
6
6
|
self?: null | undefined;
|
|
7
|
-
c?: string | undefined;
|
|
8
7
|
cl?: string | undefined;
|
|
8
|
+
c?: string | undefined;
|
|
9
9
|
fit?: boolean | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
@@ -21,8 +21,8 @@ declare const __propDef: {
|
|
|
21
21
|
props: {
|
|
22
22
|
context?: string | undefined;
|
|
23
23
|
self?: null | undefined;
|
|
24
|
-
c?: string | undefined;
|
|
25
24
|
cl?: string | undefined;
|
|
25
|
+
c?: string | undefined;
|
|
26
26
|
fit?: boolean | undefined;
|
|
27
27
|
};
|
|
28
28
|
events: {
|
package/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export { default as ComboSource } from './components/combo/combo.source.svelte';
|
|
|
22
22
|
export { default as ComboItem } from './components/combo/combo.item.svelte';
|
|
23
23
|
export { default as RichEdit } from './components/document/rich.edit.svelte';
|
|
24
24
|
export { default as Spinner } from './components/delayed.spinner.svelte';
|
|
25
|
-
export { show_menu } from './components/menu';
|
|
25
|
+
export { show_menu, show_grid_menu, show_floating_toolbar } from './components/menu';
|
|
26
26
|
export { default as Fab } from './components/Fab.svelte';
|
|
27
27
|
export { data_tick_store, has_selected_item, has_data_item } from "./stores";
|
|
28
28
|
export { context_toolbar_operations, page_toolbar_operations, context_items_store } from './stores';
|
package/index.js
CHANGED
|
@@ -27,7 +27,7 @@ export { default as ComboItem } from './components/combo/combo.item.svelte';
|
|
|
27
27
|
export { default as RichEdit } from './components/document/rich.edit.svelte';
|
|
28
28
|
export { default as Spinner } from './components/delayed.spinner.svelte';
|
|
29
29
|
//export { default as Menu } from './components/contextmenu.svelte'
|
|
30
|
-
export { show_menu } from './components/menu';
|
|
30
|
+
export { show_menu, show_grid_menu, show_floating_toolbar } from './components/menu';
|
|
31
31
|
export { default as Fab } from './components/Fab.svelte';
|
|
32
32
|
export { data_tick_store, has_selected_item, has_data_item } from "./stores";
|
|
33
33
|
export { context_toolbar_operations, page_toolbar_operations, context_items_store } from './stores'; // tmp
|
package/operations.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script>import { show_floating_toolbar, show_menu } from "./components/menu.js";
|
|
1
|
+
<script>import { show_floating_toolbar, show_menu, show_grid_menu } from "./components/menu.js";
|
|
2
2
|
import { context_toolbar_operations, page_toolbar_operations, context_items_store } from "./stores.js";
|
|
3
3
|
$:
|
|
4
4
|
update($page_toolbar_operations, $context_toolbar_operations);
|
|
@@ -12,28 +12,25 @@ function update(...args) {
|
|
|
12
12
|
function on_click(e, operation) {
|
|
13
13
|
if (!operation)
|
|
14
14
|
return;
|
|
15
|
-
if (operation.
|
|
16
|
-
let owner = e.target;
|
|
17
|
-
while (owner && owner.tagName != "BUTTON")
|
|
18
|
-
owner = owner.parentElement;
|
|
19
|
-
if (!owner)
|
|
20
|
-
return;
|
|
21
|
-
let rect = owner.getBoundingClientRect();
|
|
22
|
-
show_menu(rect.left, rect.bottom, operation.menu);
|
|
23
|
-
} else if (operation.toolbar) {
|
|
24
|
-
let owner = e.target;
|
|
25
|
-
while (owner && owner.tagName != "BUTTON")
|
|
26
|
-
owner = owner.parentElement;
|
|
27
|
-
if (!owner)
|
|
28
|
-
return;
|
|
29
|
-
let rect = owner.getBoundingClientRect();
|
|
30
|
-
show_floating_toolbar(rect.left, rect.bottom, operation.toolbar);
|
|
31
|
-
} else if (operation.action) {
|
|
15
|
+
if (operation.action) {
|
|
32
16
|
let focused_item = null;
|
|
33
17
|
if ($context_items_store.focused)
|
|
34
18
|
focused_item = $context_items_store[$context_items_store.focused];
|
|
35
19
|
operation.action(focused_item);
|
|
20
|
+
return;
|
|
36
21
|
}
|
|
22
|
+
let owner = e.target;
|
|
23
|
+
while (owner && owner.tagName != "BUTTON")
|
|
24
|
+
owner = owner.parentElement;
|
|
25
|
+
if (!owner)
|
|
26
|
+
return;
|
|
27
|
+
let rect = owner.getBoundingClientRect();
|
|
28
|
+
if (operation.menu)
|
|
29
|
+
show_menu(rect.left, rect.bottom, operation.menu);
|
|
30
|
+
else if (operation.toolbar)
|
|
31
|
+
show_floating_toolbar(rect.left, rect.bottom, operation.toolbar);
|
|
32
|
+
else if (operation.grid)
|
|
33
|
+
show_grid_menu(rect.left, rect.bottom, operation.grid);
|
|
37
34
|
}
|
|
38
35
|
</script>
|
|
39
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humandialog/forms.svelte",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "Basic Svelte UI components for Object Reef applications",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@playwright/test": "^1.28.1",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"./components/Fab.svelte": "./components/Fab.svelte",
|
|
71
71
|
"./components/file.loader.svelte": "./components/file.loader.svelte",
|
|
72
72
|
"./components/Floating_container.svelte": "./components/Floating_container.svelte",
|
|
73
|
+
"./components/Grid.menu.svelte": "./components/Grid.menu.svelte",
|
|
73
74
|
"./components/icon.svelte": "./components/icon.svelte",
|
|
74
75
|
"./components/input.text.svelte": "./components/input.text.svelte",
|
|
75
76
|
"./components/inputbox.ltop.svelte": "./components/inputbox.ltop.svelte",
|
package/page.row.svelte.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} PageEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} PageSlots */
|
|
4
4
|
export default class Page extends SvelteComponentTyped<{
|
|
5
|
-
c?: string | undefined;
|
|
6
5
|
cl?: string | undefined;
|
|
6
|
+
c?: string | undefined;
|
|
7
7
|
w?: string | undefined;
|
|
8
8
|
}, {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
@@ -17,8 +17,8 @@ export type PageSlots = typeof __propDef.slots;
|
|
|
17
17
|
import { SvelteComponentTyped } from "svelte";
|
|
18
18
|
declare const __propDef: {
|
|
19
19
|
props: {
|
|
20
|
-
c?: string | undefined;
|
|
21
20
|
cl?: string | undefined;
|
|
21
|
+
c?: string | undefined;
|
|
22
22
|
w?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
events: {
|
package/page.svelte.d.ts
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
export default class Page extends SvelteComponentTyped<{
|
|
5
5
|
context?: string | undefined;
|
|
6
6
|
self?: null | undefined;
|
|
7
|
-
c?: string | undefined;
|
|
8
|
-
cl?: string | undefined;
|
|
9
7
|
typename?: string | undefined;
|
|
10
8
|
focused_only?: boolean | undefined;
|
|
11
9
|
in_context?: string | undefined;
|
|
10
|
+
cl?: string | undefined;
|
|
11
|
+
c?: string | undefined;
|
|
12
12
|
toolbar_operations?: any;
|
|
13
13
|
clears_context?: string | undefined;
|
|
14
14
|
}, {
|
|
@@ -25,11 +25,11 @@ declare const __propDef: {
|
|
|
25
25
|
props: {
|
|
26
26
|
context?: string | undefined;
|
|
27
27
|
self?: null | undefined;
|
|
28
|
-
c?: string | undefined;
|
|
29
|
-
cl?: string | undefined;
|
|
30
28
|
typename?: string | undefined;
|
|
31
29
|
focused_only?: boolean | undefined;
|
|
32
30
|
in_context?: string | undefined;
|
|
31
|
+
cl?: string | undefined;
|
|
32
|
+
c?: string | undefined;
|
|
33
33
|
toolbar_operations?: any;
|
|
34
34
|
clears_context?: string | undefined;
|
|
35
35
|
};
|
package/tile.svelte.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
export default class Tile extends SvelteComponentTyped<{
|
|
5
5
|
context?: string | undefined;
|
|
6
6
|
self?: null | undefined;
|
|
7
|
-
c?: string | undefined;
|
|
8
7
|
cl?: string | undefined;
|
|
8
|
+
c?: string | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
}, {
|
|
@@ -20,8 +20,8 @@ declare const __propDef: {
|
|
|
20
20
|
props: {
|
|
21
21
|
context?: string | undefined;
|
|
22
22
|
self?: null | undefined;
|
|
23
|
-
c?: string | undefined;
|
|
24
23
|
cl?: string | undefined;
|
|
24
|
+
c?: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
events: {
|
|
27
27
|
[evt: string]: CustomEvent<any>;
|
package/tiles.row.svelte.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} TilesEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} TilesSlots */
|
|
4
4
|
export default class Tiles extends SvelteComponentTyped<{
|
|
5
|
-
c?: string | undefined;
|
|
6
5
|
cl?: string | undefined;
|
|
6
|
+
c?: string | undefined;
|
|
7
7
|
w?: string | undefined;
|
|
8
8
|
}, {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
@@ -17,8 +17,8 @@ export type TilesSlots = typeof __propDef.slots;
|
|
|
17
17
|
import { SvelteComponentTyped } from "svelte";
|
|
18
18
|
declare const __propDef: {
|
|
19
19
|
props: {
|
|
20
|
-
c?: string | undefined;
|
|
21
20
|
cl?: string | undefined;
|
|
21
|
+
c?: string | undefined;
|
|
22
22
|
w?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
events: {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} TilesEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} TilesSlots */
|
|
4
4
|
export default class Tiles extends SvelteComponentTyped<{
|
|
5
|
-
c?: string | undefined;
|
|
6
5
|
cl?: string | undefined;
|
|
6
|
+
c?: string | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
9
9
|
}, {
|
|
@@ -16,8 +16,8 @@ export type TilesSlots = typeof __propDef.slots;
|
|
|
16
16
|
import { SvelteComponentTyped } from "svelte";
|
|
17
17
|
declare const __propDef: {
|
|
18
18
|
props: {
|
|
19
|
-
c?: string | undefined;
|
|
20
19
|
cl?: string | undefined;
|
|
20
|
+
c?: string | undefined;
|
|
21
21
|
};
|
|
22
22
|
events: {
|
|
23
23
|
[evt: string]: CustomEvent<any>;
|