@humandialog/forms.svelte 0.4.7 → 0.4.9

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.
@@ -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
  }
@@ -25,8 +27,10 @@ function focus_first_element() {
25
27
  console.log(focusable);
26
28
  focusable.focus();
27
29
  }
28
- function on_focus_out() {
29
- hide();
30
+ function on_focus_out(e) {
31
+ if (e.relatedTarget && root_element?.contains(e.relatedTarget)) {
32
+ } else
33
+ hide();
30
34
  }
31
35
  </script>
32
36
 
@@ -36,6 +40,6 @@ function on_focus_out() {
36
40
  on:focusout={on_focus_out}
37
41
  bind:this={root_element}>
38
42
  <button class="w-0 h-0 fixed bg-transparent " bind:this={invisible_button}></button>
39
- <svelte:component this={toolbar}/>
43
+ <svelte:component this={toolbar} {...props} hide={() => hide()}/>
40
44
  </div>
41
45
 
@@ -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,132 @@
1
+ <script>
2
+ import {context_items_store} from '..'
3
+
4
+ export let operations = []
5
+ export let hide = undefined;
6
+
7
+ $: grid_cols = init(operations);
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
+ if(hide != undefined)
98
+ hide();
99
+
100
+ if(!operation)
101
+ return;
102
+
103
+ if(!operation.action)
104
+ return;
105
+
106
+ let context_item = null
107
+ if($context_items_store.focused)
108
+ context_item = $context_items_store[$context_items_store.focused]
109
+
110
+ operation.action(context_item);
111
+ }
112
+
113
+ </script>
114
+
115
+
116
+ <div class="grid gap-2 {grid_cols}">
117
+ {#each operations as operation}
118
+ {#if !operation.separator}
119
+ {@const col=col_span(operation.columns ?? 1)}
120
+
121
+ <button class=" py-2.5 px-5 {col}
122
+ text-xs font-medium text-gray-900 dark:text-gray-400 dark:hover:text-white
123
+ bg-slate-100 hover:bg-slate-200 dark:bg-gray-800 dark:hover:bg-gray-700 active:bg-slate-300 dark:active:bg-gray-600
124
+ border rounded border-gray-200 dark:border-gray-600 focus:outline-none
125
+ inline-flex items-center justify-center"
126
+ on:click={(e) => {execute_action(e, operation)}}>
127
+ <div>{operation.caption}</div>
128
+ </button>
129
+ {/if}
130
+ {/each}
131
+ </div>
132
+
@@ -0,0 +1,25 @@
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
+ hide?: any;
6
+ operations?: any[] | undefined;
7
+ }, {
8
+ [evt: string]: CustomEvent<any>;
9
+ }, {}> {
10
+ }
11
+ export type GridProps = typeof __propDef.props;
12
+ export type GridEvents = typeof __propDef.events;
13
+ export type GridSlots = typeof __propDef.slots;
14
+ import { SvelteComponentTyped } from "svelte";
15
+ declare const __propDef: {
16
+ props: {
17
+ hide?: any;
18
+ operations?: any[] | undefined;
19
+ };
20
+ events: {
21
+ [evt: string]: CustomEvent<any>;
22
+ };
23
+ slots: {};
24
+ };
25
+ 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;
@@ -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;
@@ -1,12 +1,14 @@
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) {
6
7
  let menu_element = document.getElementById("__hd_svelte_contextmenu");
7
8
  if (!!!menu_element) {
9
+ let app_div = document.getElementById("__hd_svelte_layout_root");
8
10
  menu_comopnent = new Menu({
9
- target: document.body,
11
+ target: app_div,
10
12
  props: {}
11
13
  });
12
14
  menu_comopnent.show(x, y, operations);
@@ -16,17 +18,21 @@ export function show_menu(x, y, operations) {
16
18
  else
17
19
  console.error('what now?');
18
20
  }
19
- export function show_floating_toolbar(x, y, toolbar) {
21
+ export function show_floating_toolbar(x, y, toolbar, props = {}) {
20
22
  let floating_container = document.getElementById("__hd_svelte_floating_container");
21
23
  if (!!!floating_container) {
24
+ let app_div = document.getElementById("__hd_svelte_layout_root");
22
25
  toolbar_component = new Floating_container({
23
- target: document.body,
26
+ target: app_div,
24
27
  props: {}
25
28
  });
26
- toolbar_component.show(x, y, toolbar);
29
+ toolbar_component.show(x, y, toolbar, props);
27
30
  }
28
31
  else if (toolbar_component)
29
- toolbar_component.show(x, y, toolbar);
32
+ toolbar_component.show(x, y, toolbar, props);
30
33
  else
31
34
  console.error('what now?');
32
35
  }
36
+ export function show_grid_menu(x, y, operations) {
37
+ show_floating_toolbar(x, y, Grid, { operations: operations });
38
+ }
package/desk.svelte CHANGED
@@ -11,7 +11,9 @@
11
11
  auto_hide_sidebar,
12
12
  has_selected_item,
13
13
  dark_mode_store,
14
- data_tick_store } from './stores.js'
14
+ data_tick_store,
15
+ set_default_tools_visible,
16
+ set_dark_mode_default } from './stores.js'
15
17
 
16
18
  import {session, AuthorizedView, Authorized, NotAuthorized, Auth} from '@humandialog/auth.svelte'
17
19
 
@@ -23,6 +25,26 @@
23
25
  let lg_content_area_horizontal_dim = ""
24
26
 
25
27
  let visible_sidebar = "*"
28
+
29
+ if(layout.dark != undefined)
30
+ {
31
+ console.log('layout.dark', layout.dark)
32
+
33
+ if(layout.dark.optional)
34
+ layout.mainToolbar.darkMode = true;
35
+
36
+ if(layout.dark.default)
37
+ set_dark_mode_default(layout.dark.default)
38
+ }
39
+
40
+ if(layout.operations != undefined)
41
+ {
42
+ if(layout.operations.optional)
43
+ layout.mainToolbar.operations = true;
44
+
45
+ if(layout.operations.default)
46
+ set_default_tools_visible(layout.operations.default)
47
+ }
26
48
 
27
49
  $: { visible_sidebar = $main_sidebar_visible_store
28
50
 
@@ -113,7 +135,7 @@
113
135
  <svelte:window bind:innerWidth bind:outerWidth bind:innerHeight bind:outerHeight />
114
136
 
115
137
  <AuthorizedView>
116
- <div class="{$dark_mode_store}">
138
+ <div id="__hd_svelte_layout_root" class="{$dark_mode_store}">
117
139
  <div class="bg-white dark:bg-gray-900 dark:text-white min-h-screen h-screen">
118
140
  <!--###########################################################-->
119
141
  <!--## HORIZONTAL TOOLBAR (FOR PHONES) ######################-->
@@ -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,35 +12,37 @@ function update(...args) {
12
12
  function on_click(e, operation) {
13
13
  if (!operation)
14
14
  return;
15
- if (operation.menu) {
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
 
40
37
  <div class="bg-slate-100 w-full h-10 dark:bg-slate-800 overflow-x-clip overflow-y-hidden py-0 text-xs flex flex-row">
41
38
 
42
39
  {#each operations as operation}
43
- <button type="button" class="py-2.5 px-5 text-xs font-medium text-gray-900 bg-slate-100 hover:bg-slate-200 border-r border-gray-200 focus:outline-none dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 inline-flex items-center"
40
+ <button type="button"
41
+ class="py-2.5 px-5
42
+ text-xs font-medium text-gray-900 dark:text-gray-400 dark:hover:text-white
43
+ bg-slate-100 hover:bg-slate-200 dark:bg-gray-800 dark:hover:bg-gray-700 active:bg-slate-300 dark:active:bg-gray-600
44
+ border-r border-gray-200 focus:outline-none dark:border-gray-600
45
+ inline-flex items-center"
44
46
  on:click={(e) => {on_click(e, operation)}}>
45
47
  <div class="w-3 h-3"><svelte:component this={operation.icon}/></div>
46
48
  <span class="ml-1">{operation.caption}</span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humandialog/forms.svelte",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
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",
@@ -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/stores.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export function has_selected_item(): boolean;
2
2
  export function has_data_item(): boolean;
3
+ export function set_dark_mode_default(value: any): void;
4
+ export function set_default_tools_visible(value: any): void;
3
5
  export function restore_defults(): void;
4
6
  export function toggle_sidebar(index: any): void;
5
7
  export function auto_hide_sidebar(): void;
package/stores.js CHANGED
@@ -21,19 +21,53 @@ export function has_data_item()
21
21
  }
22
22
 
23
23
 
24
- export const dark_mode_store = writable( (localStorage.dark_mode) || '')
24
+ let has_saved_dark_mode = false;
25
+ function create_dark_mode_store()
26
+ {
27
+ if(localStorage.dark_mode != undefined)
28
+ has_saved_dark_mode = true;
29
+ else
30
+ has_saved_dark_mode = false;
31
+
32
+ return writable( (localStorage.dark_mode) || '')
33
+ }
34
+
35
+ export const dark_mode_store = create_dark_mode_store();
25
36
  dark_mode_store.subscribe( (value) => { localStorage.dark_mode = value } );
26
37
 
27
- export const main_sidebar_visible_store = writable((sessionStorage.main_sidebar_visible_store) || '*');
28
- main_sidebar_visible_store.subscribe( (value) => { sessionStorage.main_sidebar_visible_store = value });
38
+ export function set_dark_mode_default(value)
39
+ {
40
+ if(!has_saved_dark_mode)
41
+ dark_mode_store.set(value ? 'dark' : '')
42
+ }
43
+
44
+ export const main_sidebar_visible_store = writable((localStorage.main_sidebar_visible_store) || '*');
45
+ main_sidebar_visible_store.subscribe( (value) => { localStorage.main_sidebar_visible_store = value });
29
46
 
30
47
  export let previously_visible_sidebar = "";
31
48
 
32
- export const tools_visible_store = writable ((sessionStorage.tools_visible_store && sessionStorage.tools_visible_store == 'true') || false);
33
- tools_visible_store.subscribe( (value) => { sessionStorage.tools_visible_store = (value ? 'true' : '') } );
49
+ let has_saved_tools_visible = false;
50
+ function create_tools_visible_store()
51
+ {
52
+ if(localStorage.tools_visible_store != undefined)
53
+ has_saved_tools_visible = true;
54
+ else
55
+ has_saved_tools_visible = false;
56
+
57
+ return writable ((localStorage.tools_visible_store && localStorage.tools_visible_store == 'true') || false);
58
+ }
59
+
60
+ export const tools_visible_store = create_tools_visible_store();
61
+ tools_visible_store.subscribe( (value) => { localStorage.tools_visible_store = (value ? 'true' : '') } );
62
+
63
+ export function set_default_tools_visible(value)
64
+ {
65
+ if(!has_saved_tools_visible)
66
+ tools_visible_store.set(value)
67
+ }
34
68
 
35
- export const bottom_bar_visible_store = writable( (sessionStorage.bottom_bar_visible_store && sessionStorage.bottom_bar_visible_store == 'true') || false);
36
- bottom_bar_visible_store.subscribe( (value) => { sessionStorage.bottom_bar_visible_store = (value ? 'true' : '') } );
69
+ export const bottom_bar_visible_store = writable( (localStorage.bottom_bar_visible_store && localStorage.bottom_bar_visible_store == 'true') || false);
70
+ bottom_bar_visible_store.subscribe( (value) => { localStorage.bottom_bar_visible_store = (value ? 'true' : '') } );
37
71
 
38
72
  export const right_sidebar_visible_store = writable(false)
39
73
  export const visible_property_tab_store = writable('');
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>;
@@ -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>;