From cedf76344bb29815e9aa4eb99258da750be64353 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 17 Mar 2026 10:32:39 -0400 Subject: [PATCH] cherry: import element_data_store_v2.svelte from wip-modal-fix-attempt --- src/lib/elements/element_data_store_v2.svelte | 889 ++++++++++++++++++ 1 file changed, 889 insertions(+) create mode 100644 src/lib/elements/element_data_store_v2.svelte diff --git a/src/lib/elements/element_data_store_v2.svelte b/src/lib/elements/element_data_store_v2.svelte new file mode 100644 index 00000000..6996604b --- /dev/null +++ b/src/lib/elements/element_data_store_v2.svelte @@ -0,0 +1,889 @@ + + +
+ {#if ae_ds_tmp} + {#if debug || $ae_loc.debug == 'debug'} +
+    id: {ae_ds_tmp.id},
+    code: {ae_ds_tmp.code},
+    type: {ae_ds_tmp.type},
+    for_type: {ae_ds_tmp.for_type},
+    for_id: {ae_ds_tmp.for_id},
+    access_read: {ae_ds_tmp.access_read},
+    access_write: {ae_ds_tmp.access_write},
+    access_delete: {ae_ds_tmp.access_delete},
+    name: {ae_ds_tmp.name},
+    html: {ae_ds_tmp.html},
+    json: {ae_ds_tmp.json},
+    md: {ae_ds_tmp.md},
+    text: {ae_ds_tmp.text},
+    updated_on: {ae_ds_tmp.updated_on},
+    
+ {/if} + + + + + {#if show_edit} + +
+ + +
+ {#if $ae_loc.trusted_access} + + {/if} + {#if $ae_loc.manager_access} + + + + {/if} +
+ +
+ {#if $ae_loc.trusted_access} + + {/if} +
+ +
+ {#if $ae_loc.manager_access} + + + + + + + {:else} + Code: {ae_ds_tmp.code} + + Type: {ae_ds_tmp.type} + {/if} +
+ +
+ + {#if ae_ds_tmp.type == 'html' || ae_ds_tmp.type == null} + + + {:else if ae_ds_tmp.type == 'sql'} + + + + {:else if ae_ds_tmp.type == 'text'} + + {/if} +
+ +
+ + + + + {#await ds_submit_results} + + {:then ds_submit_results} + {#if ds_submit_results} +
+ + Saved +
+ {/if} + {/await} + +
+ submit: {$ae_sess.ds.submit_status} + create: {$ae_sess.ds.create_status} + update: {$ae_sess.ds.update_status} +
+
+
+ + {#snippet footer()} +
+ +
+ {/snippet} +
+ {/if} + + + + + + + {#if !ae_ds_tmp.type && !ae_ds_tmp.html && !ae_ds_tmp.json && !ae_ds_tmp.md && !ae_ds_tmp.text} + {#if $ae_loc.manager_access} + No data found! Is the data store correct or new? + {:else} + + {/if} + {/if} + + {#if ae_ds_tmp.type == 'html' && ae_ds_tmp.html} + + {:else if ae_ds_tmp.type == 'html'} + {#if $ae_loc.manager_access} + No HTML found! Is the data store type correct? + {:else} + + {/if} + {/if} + + {#if ae_ds_tmp.type == 'text' && ae_ds_tmp.text} + {ae_ds_tmp.text} + {:else if ae_ds_tmp.type == 'text'} + {#if $ae_loc.manager_access} + No text found! Is the data store type correct? + {:else} + + {/if} + {/if} + + + + + {:else} + + {/if} + + + + + + {#await ds_get_results} + + {/await} + + +
+ +