sveltekit-ui 1.0.20 → 1.0.22

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.
@@ -294,7 +294,11 @@ export function create_content_input_manager(config) {
294
294
  return
295
295
  }
296
296
  setTimeout(() => {
297
- add_child_el(element?.selector_id, input)
297
+ if (location_to_add_element == "sibling") {
298
+ add_sibling_el(element?.selector_id, input)
299
+ } else {
300
+ add_child_el(element?.selector_id, input)
301
+ }
298
302
  }, 500)
299
303
  },
300
304
  })
@@ -445,6 +449,7 @@ export function create_content_input_manager(config) {
445
449
  }
446
450
 
447
451
  function add_sibling_el(selector_id, el_type_id, element_to_add = null) {
452
+ console.log("add_sibling_el", selector_id, el_type_id)
448
453
  let dom_el_parent = get_parent_el(selector_id)
449
454
  const element_index_of_siblings = Array.isArray(dom_el_parent?.children)
450
455
  ? dom_el_parent.children.findIndex((h) => h.selector_id == selector_id)
@@ -464,8 +469,10 @@ export function create_content_input_manager(config) {
464
469
  }
465
470
 
466
471
  function initiate_add_sibling_el_to_selector(selector_id) {
472
+ console.log("initiate_add_sibling_el_to_selector", selector_id)
467
473
  const dom_el_parent = get_parent_el(selector_id)
468
474
  const avail_element_ids = calc_child_element_options(dom_el_parent)
475
+ console.log("avail_element_ids", avail_element_ids)
469
476
  if (avail_element_ids.length > 1) {
470
477
  location_to_add_element = "sibling"
471
478
  find_and_open_add_element_popover_selector_id(selected_version_prepped, selector_id ?? "root")
@@ -511,6 +518,7 @@ export function create_content_input_manager(config) {
511
518
  }
512
519
 
513
520
  function add_el_to_el_children(selector_id, new_element) {
521
+ console.log("add_el_to_el_children", selector_id)
514
522
  add_version(add_child_to_el_recursive(selected_version_prepped?.element, selector_id, new_element))
515
523
  }
516
524
 
@@ -646,12 +646,10 @@ export function create_table_advanced_manager(config) {
646
646
  })
647
647
  .map(([column_id, val]) => {
648
648
  if (val?.is_autogenerated) {
649
- // let guessed_column_display_content = variables_data_type_remaining_to_astc(val?.db_data_type, "display", [
650
- // "variables",
651
- // "rows",
652
- // ["row_i"],
653
- // column_id,
654
- // ])
649
+ let guessed_column_display_content = variables_data_type_remaining_to_astc(val?.db_data_type, "display", [
650
+ row_edit_def_identifier,
651
+ column_id,
652
+ ])
655
653
  return {
656
654
  type_id: "div",
657
655
  selector_id: create_unique_id(null, 8),
@@ -675,7 +673,7 @@ export function create_table_advanced_manager(config) {
675
673
  ],
676
674
  attributes: {},
677
675
  },
678
- // guessed_column_display_content,
676
+ guessed_column_display_content,
679
677
  {
680
678
  type_id: "br",
681
679
  selector_id: create_unique_id(null, 8),
@@ -19,7 +19,6 @@
19
19
  <p>{manager?.val_text}</p>
20
20
  <Dropdown manager={manager?.def_dropdown_manager} />
21
21
  {#if manager?.def_dropdown_manager?.val}
22
- <Button manager={manager?.add_path_item_button_manager} />
23
22
  <p class="label">Path Items (optional)</p>
24
23
  {#if Array.isArray(manager?.path_prepped) && manager?.path_prepped.length > 0}
25
24
  {#each manager?.path_prepped as path_item}
@@ -54,6 +53,7 @@
54
53
  {:else}
55
54
  <p>No Path Items</p>
56
55
  {/if}
56
+ <Button manager={manager?.add_path_item_button_manager} />
57
57
  {/if}
58
58
  </div>
59
59
  {/snippet}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sveltekit-ui",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "A SvelteKit UI component library for building modern web applications",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,14 +19,14 @@
19
19
  "dependencies": {
20
20
  "context-filter-polyfill": "^0.3.23",
21
21
  "qr-code-styling": "^1.9.2",
22
- "svelte": "^5.38.1"
22
+ "svelte": "^5.38.2"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@sveltejs/kit": "^2.22.2"
26
26
  },
27
27
  "devDependencies": {
28
- "@sveltejs/adapter-vercel": "^5.8.2",
29
- "@sveltejs/kit": "^2.29.0",
28
+ "@sveltejs/adapter-vercel": "^5.9.1",
29
+ "@sveltejs/kit": "^2.31.1",
30
30
  "@sveltejs/package": "^2.4.1",
31
31
  "@sveltejs/vite-plugin-svelte": "^6.1.2",
32
32
  "@vercel/analytics": "^1.5.0",
@@ -294,7 +294,11 @@ export function create_content_input_manager(config) {
294
294
  return
295
295
  }
296
296
  setTimeout(() => {
297
- add_child_el(element?.selector_id, input)
297
+ if (location_to_add_element == "sibling") {
298
+ add_sibling_el(element?.selector_id, input)
299
+ } else {
300
+ add_child_el(element?.selector_id, input)
301
+ }
298
302
  }, 500)
299
303
  },
300
304
  })
@@ -445,6 +449,7 @@ export function create_content_input_manager(config) {
445
449
  }
446
450
 
447
451
  function add_sibling_el(selector_id, el_type_id, element_to_add = null) {
452
+ console.log("add_sibling_el", selector_id, el_type_id)
448
453
  let dom_el_parent = get_parent_el(selector_id)
449
454
  const element_index_of_siblings = Array.isArray(dom_el_parent?.children)
450
455
  ? dom_el_parent.children.findIndex((h) => h.selector_id == selector_id)
@@ -464,8 +469,10 @@ export function create_content_input_manager(config) {
464
469
  }
465
470
 
466
471
  function initiate_add_sibling_el_to_selector(selector_id) {
472
+ console.log("initiate_add_sibling_el_to_selector", selector_id)
467
473
  const dom_el_parent = get_parent_el(selector_id)
468
474
  const avail_element_ids = calc_child_element_options(dom_el_parent)
475
+ console.log("avail_element_ids", avail_element_ids)
469
476
  if (avail_element_ids.length > 1) {
470
477
  location_to_add_element = "sibling"
471
478
  find_and_open_add_element_popover_selector_id(selected_version_prepped, selector_id ?? "root")
@@ -511,6 +518,7 @@ export function create_content_input_manager(config) {
511
518
  }
512
519
 
513
520
  function add_el_to_el_children(selector_id, new_element) {
521
+ console.log("add_el_to_el_children", selector_id)
514
522
  add_version(add_child_to_el_recursive(selected_version_prepped?.element, selector_id, new_element))
515
523
  }
516
524
 
@@ -646,12 +646,10 @@ export function create_table_advanced_manager(config) {
646
646
  })
647
647
  .map(([column_id, val]) => {
648
648
  if (val?.is_autogenerated) {
649
- // let guessed_column_display_content = variables_data_type_remaining_to_astc(val?.db_data_type, "display", [
650
- // "variables",
651
- // "rows",
652
- // ["row_i"],
653
- // column_id,
654
- // ])
649
+ let guessed_column_display_content = variables_data_type_remaining_to_astc(val?.db_data_type, "display", [
650
+ row_edit_def_identifier,
651
+ column_id,
652
+ ])
655
653
  return {
656
654
  type_id: "div",
657
655
  selector_id: create_unique_id(null, 8),
@@ -675,7 +673,7 @@ export function create_table_advanced_manager(config) {
675
673
  ],
676
674
  attributes: {},
677
675
  },
678
- // guessed_column_display_content,
676
+ guessed_column_display_content,
679
677
  {
680
678
  type_id: "br",
681
679
  selector_id: create_unique_id(null, 8),
@@ -19,7 +19,6 @@
19
19
  <p>{manager?.val_text}</p>
20
20
  <Dropdown manager={manager?.def_dropdown_manager} />
21
21
  {#if manager?.def_dropdown_manager?.val}
22
- <Button manager={manager?.add_path_item_button_manager} />
23
22
  <p class="label">Path Items (optional)</p>
24
23
  {#if Array.isArray(manager?.path_prepped) && manager?.path_prepped.length > 0}
25
24
  {#each manager?.path_prepped as path_item}
@@ -54,6 +53,7 @@
54
53
  {:else}
55
54
  <p>No Path Items</p>
56
55
  {/if}
56
+ <Button manager={manager?.add_path_item_button_manager} />
57
57
  {/if}
58
58
  </div>
59
59
  {/snippet}
@@ -1,12 +1,217 @@
1
1
  <script>
2
+ import Content from "$lib/Components/Content/index.svelte"
3
+ import { create_content_manager } from "$lib/Components/Content/index.svelte.js"
2
4
  import Button from "$lib/Components/Button/index.svelte"
3
5
  import { create_button_manager } from "$lib/Components/Button/index.svelte.js"
4
- import Code from "$lib/Components/Code/index.svelte"
5
- import { create_code_manager } from "$lib/Components/Code/index.svelte.js"
6
6
  import { goto } from "$app/navigation"
7
7
  import { definitions, docs_definition_to_sample_code, docs_overview_code_sample } from "$lib/client/docs/index.js"
8
8
  import { copy_to_clipboard } from "$lib/client/index.js"
9
9
 
10
+ let content_manager = create_content_manager({
11
+ val: {
12
+ type_id: "div",
13
+ children: [
14
+ {
15
+ type_id: "h1",
16
+ children: [
17
+ {
18
+ type_id: "base_text",
19
+ children: [],
20
+ attributes: { content: "Welcome to Sveltekit-UI", text_color: null },
21
+ selector_id: "bbnzrnzw",
22
+ },
23
+ ],
24
+ attributes: null,
25
+ selector_id: "pbteeefl",
26
+ },
27
+ {
28
+ type_id: "p",
29
+ children: [
30
+ {
31
+ type_id: "link",
32
+ children: [
33
+ {
34
+ type_id: "base_text",
35
+ children: [],
36
+ attributes: { content: "View on npm", text_color: null },
37
+ selector_id: "blkoesdt",
38
+ },
39
+ ],
40
+ attributes: {
41
+ href: "https://www.npmjs.com/package/sveltekit-ui",
42
+ display_text: "View on npm",
43
+ text_color: null,
44
+ is_show_preview: null,
45
+ },
46
+ selector_id: "ubywmlua",
47
+ },
48
+ ],
49
+ attributes: null,
50
+ selector_id: "eqmjdjek",
51
+ },
52
+ {
53
+ type_id: "p",
54
+ children: [
55
+ {
56
+ type_id: "base_text",
57
+ children: [],
58
+ attributes: { content: "Install using:", text_color: null },
59
+ selector_id: "dfbrrcxs",
60
+ },
61
+ ],
62
+ attributes: null,
63
+ selector_id: "hqknvvyg",
64
+ },
65
+ {
66
+ type_id: "code_inline",
67
+ children: [],
68
+ attributes: { content: "npm i sveltekit-ui" },
69
+ selector_id: "wzxmkjdq",
70
+ },
71
+ {
72
+ type_id: "p",
73
+ children: [
74
+ {
75
+ type_id: "base_text",
76
+ children: [],
77
+ attributes: { content: "Quick start with our recommended starter template:", text_color: null },
78
+ selector_id: "nkrvpazw",
79
+ },
80
+ ],
81
+ attributes: null,
82
+ selector_id: "ooilajut",
83
+ },
84
+ {
85
+ type_id: "code_inline",
86
+ children: [],
87
+ attributes: { content: "npx create-sveltekit-ui-site my-project" },
88
+ selector_id: "fvxsjfnx",
89
+ },
90
+ {
91
+ type_id: "p",
92
+ children: [
93
+ {
94
+ type_id: "base_text",
95
+ children: [],
96
+ attributes: {
97
+ content:
98
+ "Our components use Svelte 5 Runes and are primarily built in JavaScript. This architecture gives you complete control over your component tree via a single parent object, which you can pass down through your HTML and CSS components as needed.",
99
+ text_color: null,
100
+ },
101
+ selector_id: "wfysglbt",
102
+ },
103
+ ],
104
+ attributes: null,
105
+ selector_id: "inasxfam",
106
+ },
107
+ {
108
+ type_id: "p",
109
+ children: [
110
+ {
111
+ type_id: "base_text",
112
+ children: [],
113
+ attributes: {
114
+ content:
115
+ "After extensive work, we are excited to announce a public release as of July 2025, and we welcome you to use and contribute to sveltekit-ui.",
116
+ text_color: null,
117
+ },
118
+ selector_id: "padlkhfq",
119
+ },
120
+ ],
121
+ attributes: null,
122
+ selector_id: "nvyunqlk",
123
+ },
124
+ {
125
+ type_id: "p",
126
+ children: [
127
+ {
128
+ type_id: "base_text",
129
+ children: [],
130
+ attributes: { content: "For easier building, check out the ", text_color: null },
131
+ selector_id: "upxajwlo",
132
+ },
133
+ {
134
+ type_id: "link",
135
+ children: [
136
+ {
137
+ type_id: "base_text",
138
+ children: [],
139
+ attributes: { content: "contibase code generator", text_color: null },
140
+ selector_id: "gfxhzqfl",
141
+ },
142
+ ],
143
+ attributes: {
144
+ href: "https://www.contibase.com/code_generator",
145
+ display_text: "contibase code generator",
146
+ text_color: null,
147
+ is_show_preview: null,
148
+ },
149
+ selector_id: "cbmfgeuw",
150
+ },
151
+ {
152
+ type_id: "base_text",
153
+ children: [],
154
+ attributes: {
155
+ content: ". Contibase is also highly compatible with sveltekit-ui and is a great companion project.",
156
+ text_color: null,
157
+ },
158
+ selector_id: "jygcousk",
159
+ },
160
+ ],
161
+ attributes: null,
162
+ selector_id: "tdiisewe",
163
+ },
164
+ {
165
+ type_id: "h2",
166
+ children: [
167
+ {
168
+ type_id: "base_text",
169
+ children: [],
170
+ attributes: { content: "Sample Usage", text_color: null },
171
+ selector_id: "rlhqrfgt",
172
+ },
173
+ ],
174
+ attributes: null,
175
+ selector_id: "zxmfiiet",
176
+ },
177
+ {
178
+ type_id: "code",
179
+ children: [],
180
+ attributes: {
181
+ content: docs_overview_code_sample,
182
+ language: "svelte",
183
+ },
184
+ selector_id: "tqjlpmsi",
185
+ },
186
+ {
187
+ type_id: "p",
188
+ children: [
189
+ {
190
+ type_id: "base_text",
191
+ children: [],
192
+ attributes: {
193
+ content: "Explore the documentation to learn more about each component and for further usage examples.",
194
+ text_color: null,
195
+ },
196
+ selector_id: "gsqceimv",
197
+ },
198
+ ],
199
+ attributes: null,
200
+ selector_id: "amkvgomx",
201
+ },
202
+ ],
203
+ attributes: {
204
+ background_color: null,
205
+ border_color: null,
206
+ border_radius: null,
207
+ padding: null,
208
+ align_content: null,
209
+ justify_content: null,
210
+ },
211
+ selector_id: "nguqpvmf",
212
+ },
213
+ })
214
+
10
215
  let button_manager = create_button_manager({
11
216
  text: "Visit Docs",
12
217
  mt: 2,
@@ -14,13 +219,6 @@
14
219
  on_click: () => goto("/button"),
15
220
  })
16
221
 
17
- let overview_sample_code_manager = create_code_manager({
18
- language: "svelte",
19
- content: docs_overview_code_sample,
20
- })
21
-
22
- const overview_intro = `Each component can be combined into a more complex component. This is intended for sveltekit projects. The whole "tree" of components should be initialized at the parent-most level which is likely in the <script> tags of a +page.svelte file.`
23
-
24
222
  let copy_all_docs_button_manager = create_button_manager({
25
223
  type: "outlined",
26
224
  text: "Copy All Docs",
@@ -29,7 +227,7 @@
29
227
  mt: 2,
30
228
  support_icon: "clipboard",
31
229
  on_click: () => {
32
- const overview = `${overview_intro}
230
+ const overview = `Each component can be combined into a more complex component. This is intended for sveltekit projects. The whole "tree" of components should be initialized at the parent-most level which is likely in the <script> tags of a +page.svelte file.
33
231
 
34
232
  ${docs_overview_code_sample}
35
233
 
@@ -48,56 +246,10 @@ below are the docs for each component individually
48
246
  copy_to_clipboard(overview + JSON.stringify(docs_prepped))
49
247
  },
50
248
  })
51
-
52
- let copy_npm_button_manager = create_button_manager({
53
- type: "outlined",
54
- is_uniform: true,
55
- is_success_animation: true,
56
- support_icon: "clipboard",
57
- on_click: () => copy_to_clipboard("npm i sveltekit-ui"),
58
- })
59
- let copy_quick_start_button_manager = create_button_manager({
60
- type: "outlined",
61
- is_uniform: true,
62
- is_success_animation: true,
63
- support_icon: "clipboard",
64
- on_click: () => copy_to_clipboard("npx create-sveltekit-ui-site my-project"),
65
- })
66
249
  </script>
67
250
 
68
251
  <div class="container">
69
- <h1>Welcome to Sveltekit-UI</h1>
70
- <p>
71
- npm package at <a href="https://www.npmjs.com/package/sveltekit-ui" target="_blank" rel="noopener noreferrer"
72
- >https://www.npmjs.com/package/sveltekit-ui</a
73
- >
74
- </p>
75
- <div style="display: inline-flex; gap: .5rem;">
76
- <code>npm i sveltekit-ui</code>
77
- <Button manager={copy_npm_button_manager} />
78
- </div>
79
-
80
- <h4>Quick start project with starter template (recommended)</h4>
81
- <div style="display: inline-flex; gap: .5rem;">
82
- <code>npx create-sveltekit-ui-site my-project</code>
83
- <Button manager={copy_quick_start_button_manager} />
84
- </div>
85
- <p>
86
- Our components use svelte 5 Runes. We have taken an approach where components are mostly built in javascript to
87
- allow for control of your entire tree of components in one parent object that can then be passed down through all
88
- HTML and CSS components.
89
- </p>
90
- <p>
91
- After a lot of work, these components are in a state that we are happy to release to the public and encourage people
92
- to use as of July 2025. You can also go to
93
- <a href="https://www.contibase.com/code_generator" target="_blank" rel="noopener noreferrer"
94
- >www.contibase.com/code_generator</a
95
- >
96
- to help you build with sveltekit-ui. Contibase is also a very compatible project to use alongside sveltekit-ui.
97
- </p>
98
- <br />
99
- <Code manager={overview_sample_code_manager} />
100
- <p>Explore the docs for details on each individual component</p>
252
+ <Content manager={content_manager} />
101
253
  <Button manager={button_manager} />
102
254
  <Button manager={copy_all_docs_button_manager} />
103
255
  <p>
@@ -4,226 +4,6 @@
4
4
  import { PUBLIC_APPLE_MAPKIT_JS_API_KEY } from "$env/static/public"
5
5
  import { deep_copy } from "$lib/client/index.js"
6
6
 
7
- const test_row_input_content = {
8
- type_id: "div",
9
- selector_id: "div_jxhvczqm",
10
- children: [
11
- {
12
- type_id: "div",
13
- selector_id: "div_hghtjdix",
14
- children: [
15
- {
16
- type_id: "span",
17
- selector_id: "span_pnxoxyns",
18
- children: [
19
- {
20
- type_id: "strong",
21
- selector_id: "strong_wzqcpnxy",
22
- children: [],
23
- attributes: {
24
- content: "id",
25
- },
26
- },
27
- {
28
- type_id: "em",
29
- selector_id: "em_vdjulmfu",
30
- children: [],
31
- attributes: {
32
- content: " autogenerated ",
33
- },
34
- },
35
- ],
36
- attributes: {},
37
- },
38
- {
39
- type_id: "base_text",
40
- selector_id: "dvobhkqp",
41
- children: [],
42
- attributes: {
43
- content_from_variable_path: ["rows", ["row_i"], "id"],
44
- size: 10,
45
- },
46
- },
47
- {
48
- type_id: "br",
49
- selector_id: "br_gqfqxajt",
50
- children: [],
51
- attributes: {},
52
- },
53
- ],
54
- attributes: {},
55
- },
56
- {
57
- type_id: "div",
58
- selector_id: "div_escitwrx",
59
- children: [
60
- {
61
- type_id: "div",
62
- selector_id: "ymcklbcy",
63
- children: [
64
- {
65
- type_id: "div",
66
- selector_id: "drsdciju",
67
- children: [
68
- {
69
- type_id: "base_text",
70
- selector_id: "oejzzhrk",
71
- children: [],
72
- attributes: {
73
- content: "label:",
74
- },
75
- },
76
- {
77
- type_id: "text_input",
78
- selector_id: "lkblpxsl",
79
- children: [],
80
- attributes: {
81
- val_from_variable_path: ["rows", ["row_i"], "label"],
82
- },
83
- },
84
- ],
85
- attributes: {},
86
- },
87
- ],
88
- attributes: {
89
- val_from_variable_path: ["rows", ["row_i"], "label"],
90
- },
91
- },
92
- ],
93
- attributes: {},
94
- },
95
- {
96
- type_id: "div",
97
- selector_id: "div_escitwrx",
98
- children: [
99
- {
100
- type_id: "div",
101
- selector_id: "ymcklbcy",
102
- children: [
103
- {
104
- type_id: "div",
105
- selector_id: "drsdciju",
106
- children: [
107
- {
108
- type_id: "base_text",
109
- selector_id: "oejzzhrk",
110
- children: [],
111
- attributes: {
112
- content: "fav_color:",
113
- },
114
- },
115
- {
116
- type_id: "color_input",
117
- selector_id: "lkblpxsl",
118
- children: [],
119
- attributes: {
120
- val_from_variable_path: ["rows", ["row_i"], "fav_color"],
121
- },
122
- },
123
- ],
124
- attributes: {},
125
- },
126
- ],
127
- attributes: {
128
- val_from_variable_path: ["rows", ["row_i"], "fav_color"],
129
- },
130
- },
131
- ],
132
- attributes: {},
133
- },
134
- {
135
- type_id: "div",
136
- selector_id: "div_erlnynoa",
137
- children: [
138
- {
139
- type_id: "span",
140
- selector_id: "span_zhksqepo",
141
- children: [
142
- {
143
- type_id: "strong",
144
- selector_id: "strong_gxtxtoar",
145
- children: [],
146
- attributes: {
147
- content: "db_epoch_created",
148
- },
149
- },
150
- {
151
- type_id: "em",
152
- selector_id: "em_zmhymiri",
153
- children: [],
154
- attributes: {
155
- content: " autogenerated ",
156
- },
157
- },
158
- ],
159
- attributes: {},
160
- },
161
- {
162
- type_id: "time",
163
- selector_id: "fiujqeqz",
164
- children: [],
165
- attributes: {
166
- format: "epoch",
167
- val_from_variable_path: ["rows", ["row_i"], "db_epoch_created"],
168
- },
169
- },
170
- {
171
- type_id: "br",
172
- selector_id: "br_ncfvgeks",
173
- children: [],
174
- attributes: {},
175
- },
176
- ],
177
- attributes: {},
178
- },
179
- {
180
- type_id: "div",
181
- selector_id: "div_ctqanaev",
182
- children: [
183
- {
184
- type_id: "span",
185
- selector_id: "span_egiboqfu",
186
- children: [
187
- {
188
- type_id: "strong",
189
- selector_id: "strong_jnvuzdvr",
190
- children: [],
191
- attributes: {
192
- content: "db_epoch_updated",
193
- },
194
- },
195
- {
196
- type_id: "em",
197
- selector_id: "em_nvxliucw",
198
- children: [],
199
- attributes: {
200
- content: " autogenerated ",
201
- },
202
- },
203
- ],
204
- attributes: {},
205
- },
206
- {
207
- type_id: "time",
208
- selector_id: "ubzlhrul",
209
- children: [],
210
- attributes: {
211
- format: "epoch",
212
- val_from_variable_path: ["rows", ["row_i"], "db_epoch_updated"],
213
- },
214
- },
215
- {
216
- type_id: "br",
217
- selector_id: "br_wtxsndxh",
218
- children: [],
219
- attributes: {},
220
- },
221
- ],
222
- attributes: {},
223
- },
224
- ],
225
- }
226
-
227
7
  let data = $state({
228
8
  id: "cbsemvrsoidhrzyhugue",
229
9
  name: "test",
@@ -244,7 +24,7 @@
244
24
  children: [],
245
25
  attributes: {
246
26
  size: 10,
247
- content_from_variable_path: ["variables", "rows", ["row_i"], "id"],
27
+ content_from_variable_path: ["rows", ["row_i"], "id"],
248
28
  },
249
29
  selector_id: "hcsqz",
250
30
  },
@@ -357,7 +137,7 @@
357
137
  children: [],
358
138
  attributes: {
359
139
  format: "epoch",
360
- val_from_variable_path: ["variables", "rows", ["row_i"], "db_epoch_created"],
140
+ val_from_variable_path: ["rows", ["row_i"], "db_epoch_created"],
361
141
  },
362
142
  selector_id: "time_urzjm",
363
143
  },
@@ -394,7 +174,7 @@
394
174
  children: [],
395
175
  attributes: {
396
176
  format: "epoch",
397
- val_from_variable_path: ["variables", "rows", ["row_i"], "db_epoch_updated"],
177
+ val_from_variable_path: ["rows", ["row_i"], "db_epoch_updated"],
398
178
  },
399
179
  selector_id: "epoch_rozyy",
400
180
  },
@@ -430,9 +210,62 @@
430
210
  let table_manager = $state(null)
431
211
  let variables = $state({
432
212
  rows: [
433
- { us_state: "cccc", population: 200 },
434
- { us_state: "zzzz", population: 20 },
435
- { us_state: "aaaaa", population: 400 },
213
+ {
214
+ id: "zuetqjdinawjrvftztif",
215
+ us_state: "Ohio",
216
+ population: 11700000,
217
+ db_epoch_created: 1734451200,
218
+ db_epoch_updated: 1734451200,
219
+ },
220
+ {
221
+ id: "blwigkbhwbrdrpfgtjht",
222
+ us_state: "California",
223
+ population: 39500000,
224
+ db_epoch_created: 1734451200,
225
+ db_epoch_updated: 1734451200,
226
+ },
227
+ {
228
+ id: "szjefrcsfaovgqgbvomk",
229
+ us_state: "Texas",
230
+ population: 29000000,
231
+ db_epoch_created: 1734451200,
232
+ db_epoch_updated: 1734451200,
233
+ },
234
+ {
235
+ id: "idyqhgokgtootefrpjlk",
236
+ us_state: "Florida",
237
+ population: 21500000,
238
+ db_epoch_created: 1734451200,
239
+ db_epoch_updated: 1734451200,
240
+ },
241
+ {
242
+ id: "fsbdlpaujxcbenalzxrd",
243
+ us_state: "New York",
244
+ population: 19400000,
245
+ db_epoch_created: 1734451200,
246
+ db_epoch_updated: 1734451200,
247
+ },
248
+ {
249
+ id: "lgljuheyjeuhuxffxqrw",
250
+ us_state: "Illinois",
251
+ population: 12600000,
252
+ db_epoch_created: 1734451200,
253
+ db_epoch_updated: 1734451200,
254
+ },
255
+ {
256
+ id: "ydhrlhktgyvjyuenxsfl",
257
+ us_state: "Pennsylvania",
258
+ population: 12800000,
259
+ db_epoch_created: 1734451200,
260
+ db_epoch_updated: 1734451200,
261
+ },
262
+ {
263
+ id: "jqruaftavlvjkbzmcifm",
264
+ us_state: "Georgia",
265
+ population: 10700000,
266
+ db_epoch_created: 1734451200,
267
+ db_epoch_updated: 1734451200,
268
+ },
436
269
  ],
437
270
  })
438
271
 
@@ -613,6 +446,6 @@
613
446
  </script>
614
447
 
615
448
  <div>
616
- <pre>{JSON.stringify(variables, null, 2)}</pre>
449
+ <!-- <pre>{JSON.stringify(variables, null, 2)}</pre> -->
617
450
  <TableAdvanced manager={table_manager} />
618
451
  </div>