General improvement for archive content creation. Better show/hide for enable and hide fields. Novi and iframe related updates.
This commit is contained in:
@@ -66,6 +66,10 @@ export async function load_ae_obj_li__archive_content(
|
||||
api_cfg,
|
||||
for_obj_type = 'archive',
|
||||
for_obj_id,
|
||||
enabled = 'enabled',
|
||||
hidden = 'not_hidden',
|
||||
limit = 99,
|
||||
offset = 0,
|
||||
order_by_li = {'priority': 'DESC', 'sort': 'DESC', 'original_datetime': 'ASC', 'name': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'},
|
||||
params = {},
|
||||
try_cache = true,
|
||||
@@ -74,6 +78,10 @@ export async function load_ae_obj_li__archive_content(
|
||||
api_cfg: any,
|
||||
for_obj_type: string,
|
||||
for_obj_id: string,
|
||||
enabled?: string,
|
||||
hidden?: string,
|
||||
limit?: number,
|
||||
offset?: number,
|
||||
order_by_li?: key_val,
|
||||
params?: key_val,
|
||||
try_cache?: boolean,
|
||||
@@ -82,10 +90,10 @@ export async function load_ae_obj_li__archive_content(
|
||||
) {
|
||||
console.log(`*** load_ae_obj_li__archive_content() *** for_obj_type=${for_obj_type} for_obj_id=${for_obj_id}`);
|
||||
|
||||
let enabled: string = (params.qry__enabled ?? 'enabled'); // all, disabled, enabled
|
||||
let hidden: string = (params.qry__hidden ?? 'not_hidden'); // all, hidden, not_hidden
|
||||
let limit: number = (params.qry__limit ?? 99); // 99
|
||||
let offset: number = (params.qry__offset ?? 0); // 0
|
||||
// let enabled: string = (params.qry__enabled ?? 'enabled'); // all, disabled, enabled
|
||||
// let hidden: string = (params.qry__hidden ?? 'not_hidden'); // all, hidden, not_hidden
|
||||
// let limit: number = (params.qry__limit ?? 99); // 99
|
||||
// let offset: number = (params.qry__offset ?? 0); // 0
|
||||
|
||||
let params_json: key_val = {};
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ let idaa_session_data_struct: key_val = {
|
||||
export let idaa_sess = writable(idaa_session_data_struct);
|
||||
|
||||
|
||||
/* *** BEGIN *** Initialize idaa_slct and idaa_trigger */
|
||||
/* *** BEGIN *** Initialize idaa_slct and idaa_trig */
|
||||
/* The slct and slct_trigger variable should not be stored in local storage. Only use session storage because browser tabs can be open to different idaa, badges, exhibits, etc. */
|
||||
|
||||
// Intended for temporary session storage.
|
||||
@@ -151,8 +151,25 @@ export let idaa_slct = writable(idaa_slct_obj_template);
|
||||
// export let idaa_slct: Writable<key_val> = localStorageStore('ae_idaa_slct', idaa_slct_obj_template);
|
||||
|
||||
|
||||
/* *** BEGIN *** Initialize idaa_trigger */
|
||||
/* *** BEGIN *** Initialize idaa_trig */
|
||||
// Intended for temporary session storage.
|
||||
// Updated 2024-03-06
|
||||
export let idaa_trigger: any = writable(null);
|
||||
// console.log(`AE IDAA Stores - IDAA Trigger:`, idaa_trigger);
|
||||
// Updated 2024-11-19
|
||||
let idaa_trig_template: key_val = {
|
||||
archive_id: false,
|
||||
archive_content_li: false,
|
||||
event_id: false,
|
||||
};
|
||||
export let idaa_trig: any = writable(idaa_trig_template);
|
||||
// console.log(`AE IDAA Stores - IDAA Trigger:`, idaa_trig);
|
||||
|
||||
|
||||
/* *** BEGIN *** Initialize idaa_prom */
|
||||
// Intended for temporary session storage.
|
||||
// Updated 2024-11-19
|
||||
let idaa_prom_template: key_val = {
|
||||
archive_id: false,
|
||||
archive_content_li: false,
|
||||
event_id: false,
|
||||
};
|
||||
export let idaa_prom: any = writable(idaa_prom_template);
|
||||
// console.log(`AE IDAA Stores - IDAA Trigger:`, idaa_prom);
|
||||
|
||||
@@ -134,7 +134,8 @@ function getContent() {
|
||||
}
|
||||
|
||||
let mouse_entered_timer: any;
|
||||
let mouse_entered_wait: number = 2500;
|
||||
let mouse_enter_wait: number = 500;
|
||||
let mouse_leave_wait: number = 2000;
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
@@ -148,11 +149,13 @@ let mouse_entered_wait: number = 2500;
|
||||
}
|
||||
}}
|
||||
on:mouseleave={() => {
|
||||
clearTimeout(mouse_entered_timer);
|
||||
|
||||
mouse_entered_timer = setTimeout(() => {
|
||||
if (default_minimal) {
|
||||
show_menu = false;
|
||||
}
|
||||
}, mouse_entered_wait);
|
||||
}, mouse_leave_wait);
|
||||
|
||||
// if (default_minimal) {
|
||||
// show_menu = false;
|
||||
@@ -161,9 +164,15 @@ let mouse_entered_wait: number = 2500;
|
||||
on:mouseenter={() => {
|
||||
clearTimeout(mouse_entered_timer);
|
||||
|
||||
if (default_minimal) {
|
||||
show_menu = true;
|
||||
}
|
||||
mouse_entered_timer = setTimeout(() => {
|
||||
if (default_minimal) {
|
||||
show_menu = true;
|
||||
}
|
||||
}, mouse_enter_wait);
|
||||
|
||||
// if (default_minimal) {
|
||||
// show_menu = true;
|
||||
// }
|
||||
}}
|
||||
class="editor textarea p-1 transition-all duration-1000"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user