Still working on upgrading to Tailwind CSS v4 an dSkeleton v3.....

This commit is contained in:
Scott Idem
2025-06-18 17:59:48 -04:00
parent db6e9dd019
commit 13912fd145
169 changed files with 2343 additions and 1634 deletions

View File

@@ -367,7 +367,7 @@ function add_activity_log(
<Element_data_store
ds_code="recovery_meetings_info"
ds_type="html"
class_li="border border-1 rounded-lg bg-gray-100 p-2 max-w-screen-lg space-y-2"
class_li="border border rounded-lg bg-gray-100 p-2 max-w-(--breakpoint-lg) space-y-2"
show_edit_btn={true}
/>
@@ -415,7 +415,7 @@ function add_activity_log(
}
);
}}
class="novi_btn btn btn-sm variant-ghost-warning hover:variant-filled-warning transition"
class="novi_btn btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition"
title={`View meeting: ${$lq__event_obj?.name}`}
>
<span class="fas fa-times m-1"></span> Cancel Edit
@@ -450,7 +450,7 @@ function add_activity_log(
}
);
}}
class="novi_btn btn btn-sm variant-soft-warning hover:variant-ghost-warning"
class="novi_btn btn btn-sm preset-tonal-warning hover:preset-tonal-warning border border-warning-500"
>
<span class="fas fa-times mx-1"></span>
Close
@@ -493,7 +493,7 @@ function add_activity_log(
}
);
}}
class="novi_btn btn btn-sm variant-ghost-warning hover:variant-filled-warning transition"
class="novi_btn btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition"
title={`Edit meeting: ${$lq__event_obj?.name}`}
>
<span class="fas fa-edit m-1"></span> Edit
@@ -503,7 +503,7 @@ function add_activity_log(
{$lq__event_obj?.name ?? '-- not set'}
</h3>
{#if $lq__event_obj?.status == 'unknown'}
<span class="badge badge-warning variant-glass-error" title="This meeting has not been confirmed by IDAA Central Office. Please reach out to the chair for current meeting list info. Meeting attendees can reach out to info@idaa.org if they know this is information is accurate and this meeting is still taking place.">
<span class="badge badge-warning preset-tonal-error" title="This meeting has not been confirmed by IDAA Central Office. Please reach out to the chair for current meeting list info. Meeting attendees can reach out to info@idaa.org if they know this is information is accurate and this meeting is still taking place.">
<span class="fas fa-exclamation-triangle m-1"></span>
Not Confirmed by IDAA
<!-- Unknown Status -->

View File

@@ -621,7 +621,7 @@ function send_staff_notification_email() {
<button
type="submit"
disabled={(disable_submit_btn)}
class="novi_btn btn btn-primary variant-ghost-primary hover:variant-filled-primary transition absolute top-0.5 right-0.5"
class="novi_btn btn btn-primary preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition absolute top-0.5 right-0.5"
>
{#await prom_api__event_obj}
<span class="fas fa-spinner fa-spin m-1"></span> Saving
@@ -1042,7 +1042,7 @@ function send_staff_notification_email() {
{#if ( $ae_loc.administrator_access || $lq__event_obj && ($idaa_slct.event_obj?.show_recurring_text || ($lq__event_obj?.recurring_text && !$lq__event_obj?.recurring_text.includes('*gen*'))) )}
<button
type="button"
class="novi_btn novi_smaller btn btn-info btn-sm ae_width_md variant-ghost-warning hover:variant-filled-warning transition"
class="novi_btn novi_smaller btn btn-info btn-sm ae_width_md preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition"
style=""
on:click={() => {
if (confirm('Are you sure you want to remove the text for the additional details?')) {
@@ -1060,7 +1060,7 @@ function send_staff_notification_email() {
{:else}
<button
type="button"
class="novi_btn novi_smaller btn btn-info btn-sm ae_width_md variant-ghost-success hover:variant-filled-success transition"
class="novi_btn novi_smaller btn btn-info btn-sm ae_width_md preset-tonal-success border border-success-500 hover:preset-filled-success-500 transition"
style=""
on:click|preventDefault={() => {
// Remove *gen* prefix from recurring_text
@@ -1237,7 +1237,7 @@ function send_staff_notification_email() {
on:click={() => {
$idaa_loc.recovery_meetings.show__admin_options = !$idaa_loc.recovery_meetings.show__admin_options;
}}
class="novi_btn btn btn-sm variant-soft-warning float-right"
class="novi_btn btn btn-sm preset-tonal-warning float-right"
>
<span class="fas fa-eye m-1"></span>
{$idaa_loc.recovery_meetings.show__admin_options ? 'Hide' : 'Show'} Admin
@@ -1401,7 +1401,7 @@ function send_staff_notification_email() {
<button
type="submit"
disabled={(disable_submit_btn)}
class="novi_btn btn_primary btn btn-primary variant-ghost-primary hover:variant-filled-primary transition"
class="novi_btn btn_primary btn btn-primary preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition"
>
{#await prom_api__event_obj}
<span class="fas fa-spinner fa-spin m-1"></span> Saving
@@ -1417,7 +1417,7 @@ function send_staff_notification_email() {
if (!confirm('Are you sure you want to create this event?')) {return false;}
// handle_save_event_obj({event_id: $idaa_slct.event_id, method: 'create'});
}}
class="novi_btn btn btn-md variant-ghost-primary hover:variant-filled-primary transition"
class="novi_btn btn btn-md preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition"
>
{#await prom_api__event_obj}
<span class="fas fa-spinner fa-spin m-1"></span> Saving
@@ -1435,7 +1435,7 @@ function send_staff_notification_email() {
if (!confirm('Are you sure you want to delete this event?')) {return false;}
handle_delete_event_obj({event_id: $idaa_slct.event_id, method: 'delete'});
}}
class="novi_btn btn btn-sm variant-soft-warning"
class="novi_btn btn btn-sm preset-tonal-warning"
title="Delete record permanently"
>
<span class="fas fa-minus m-1"></span> Delete
@@ -1447,7 +1447,7 @@ function send_staff_notification_email() {
if (!confirm('Are you sure you want to disable this event?')) {return false;}
handle_delete_event_obj({event_id: $idaa_slct.event_id, method: 'disable'});
}}
class="novi_btn btn btn-sm variant-soft-warning"
class="novi_btn btn btn-sm preset-tonal-warning"
title="Disable record to delete"
>
<span class="fas fa-minus m-1"></span> Delete
@@ -1459,7 +1459,7 @@ function send_staff_notification_email() {
if (!confirm('Are you sure you want to hide this event?')) {return false;}
handle_delete_event_obj({event_id: $idaa_slct.event_id, method: 'hide'});
}}
class="novi_btn btn btn-sm variant-soft-warning"
class="novi_btn btn btn-sm preset-tonal-warning"
title="Hide record to delete"
>
<span class="fas fa-comment-slash m-1"></span> Delete

View File

@@ -113,7 +113,7 @@ function add_activity_log(
{#if idaa_event_obj} <!-- This check for the idaa_event_obj is here in case the IDB entry is deleted. -->
<div
class="container recovery_meeting event_obj border border-1 rounded-lg p-2 mb-2 space-y-2 w-full max-w-screen-lg flex flex-col items-center justify-center bg-white"
class="container recovery_meeting event_obj border border rounded-lg p-2 mb-2 space-y-2 w-full max-w-(--breakpoint-lg) flex flex-col items-center justify-center bg-white"
class:hidden={(idaa_event_obj?.hide || !idaa_event_obj?.enable) && !$ae_loc.trusted_access}
class:dim={idaa_event_obj?.hide}
class:bg-warning-100={!idaa_event_obj?.enable}
@@ -127,7 +127,7 @@ function add_activity_log(
</h3>
{#if idaa_event_obj?.status == 'unknown'}
<span class="badge badge-warning variant-glass-error" title="This meeting has not been confirmed by IDAA Central Office. Please reach out to the chair for current meeting list info. Meeting attendees can reach out to info@idaa.org if they know this is information is accurate and this meeting is still taking place.">
<span class="badge badge-warning preset-tonal-error" title="This meeting has not been confirmed by IDAA Central Office. Please reach out to the chair for current meeting list info. Meeting attendees can reach out to info@idaa.org if they know this is information is accurate and this meeting is still taking place.">
<span class="fas fa-exclamation-triangle m-1"></span>
Not Confirmed by IDAA
<!-- Unknown Status -->
@@ -136,7 +136,7 @@ function add_activity_log(
{/if}
<span class="flex flex-row flex-wrap gap-1 items-center justify-center">
<span class="badge badge-info variant-glass-tertiary">
<span class="badge badge-info preset-tonal-tertiary">
{#if idaa_event_obj?.physical && idaa_event_obj?.virtual}
<span class="fas fa-home m-1"></span> F2F and <span class="fas fa-laptop m-1"></span> Virtual
{:else if idaa_event_obj?.physical}
@@ -146,13 +146,13 @@ function add_activity_log(
{/if}
</span>
{#if idaa_event_obj?.type}
<span class="badge badge-info variant-glass-secondary"><span class="fas fa-user-md m-1"></span> {idaa_event_obj?.type}</span>
<span class="badge badge-info preset-tonal-secondary"><span class="fas fa-user-md m-1"></span> {idaa_event_obj?.type}</span>
{/if}
{#if $ae_loc.trusted_access && idaa_event_obj?.hide}
<span class="badge badge-warning"><span class="fas fa-exclamation-triangle m-1"></span> Hidden</span>
{/if}
{#if $ae_loc.administrator_access && !idaa_event_obj?.enable}
<span class="badge badge-warning variant-glass-warning"><span class="fas fa-exclamation-triangle m-1"></span> Not enabled</span>
<span class="badge badge-warning preset-tonal-warning"><span class="fas fa-exclamation-triangle m-1"></span> Not enabled</span>
{/if}
</span>
</header>
@@ -178,7 +178,7 @@ function add_activity_log(
$idaa_sess.recovery_meetings.show__modal_view = true;
$idaa_sess.recovery_meetings.show__modal_edit = false;
}}
class="novi_btn btn btn-secondary btn-md variant-ghost-primary hover:variant-filled-primary transition"
class="novi_btn btn btn-secondary btn-md preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition"
title={`Open to see details: ${idaa_event_obj?.name}`}
>
<span class="fas fa-envelope-open m-1"></span>
@@ -203,7 +203,7 @@ function add_activity_log(
$idaa_sess.recovery_meetings.show__modal_view = false;
$idaa_sess.recovery_meetings.show__modal_edit = true;
}}
class="novi_btn btn btn-tertiary btn-sm variant-ghost-warning hover:variant-filled-warning transition"
class="novi_btn btn btn-tertiary btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition"
title={`Edit meeting: ${idaa_event_obj?.name}`}
>
<span class="fas fa-edit m-1"></span>

View File

@@ -214,7 +214,7 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
<div class="ae_group flex flex-row flex-wrap gap-2 w-full items-center justify-center">
<button
type="button"
class="novi_btn novi_smallest btn btn-sm variant-ghost-secondary hover:variant-filled-secondary transition-all *:hover:inline"
class="novi_btn novi_smallest btn btn-sm preset-tonal-secondary border border-secondary-500 hover:preset-filled-secondary-500 transition-all *:hover:inline"
on:click={() => {
$idaa_loc.recovery_meetings.qry__fulltext_str = '';
// $idaa_trig.event_li_qry = true;
@@ -243,7 +243,7 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
>
<button
type="submit"
class="novi_btn btn btn-lg variant-ghost-success hover:variant-filled-success text-2xl font-bold w-48 transition-all"
class="novi_btn btn btn-lg preset-tonal-success border border-success-500 hover:preset-filled-success-500 text-2xl font-bold w-48 transition-all"
title="Search for meetings by day of week, location, contacts, etc."
>
<!-- <span class="fas fa-search m-1"></span> -->
@@ -448,7 +448,7 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
$idaa_loc.recovery_meetings.qry__limit = 200;
$idaa_trig.event_li_qry = true;
}}
class="novi_btn btn_show_bb_post ae_btn btn btn-info btn-sm variant-ghost-secondary"
class="novi_btn btn_show_bb_post ae_btn btn btn-info btn-sm preset-tonal-secondary border border-secondary-500"
>
<span class="fas fa-eye m-1"></span> Show Hidden Events
</button>
@@ -460,7 +460,7 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
// $idaa_loc.recovery_meetings.qry__limit = 100;
$idaa_trig.event_li_qry = true;
}}
class="novi_btn btn_hide_bb_post ae_btn btn btn-info btn-sm variant-ghost-secondary"
class="novi_btn btn_hide_bb_post ae_btn btn btn-info btn-sm preset-tonal-secondary border border-secondary-500"
>
<span class="fas fa-eye-slash m-1"></span> Hide Hidden Events
</button>
@@ -475,7 +475,7 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
$idaa_loc.recovery_meetings.qry__limit = 500;
$idaa_trig.event_li_qry = true;
}}
class="novi_btn btn_show_bb_post ae_btn btn btn-warning btn-sm variant-ghost-secondary"
class="novi_btn btn_show_bb_post ae_btn btn btn-warning btn-sm preset-tonal-secondary border border-secondary-500"
>
<span class="fas fa-eye m-1"></span> Show Disabled Events
</button>
@@ -486,7 +486,7 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
$idaa_loc.recovery_meetings.qry__enabled = 'enabled';
$idaa_trig.event_li_qry = true;
}}
class="novi_btn btn_hide_bb_post ae_btn btn btn-warning btn-sm variant-ghost-secondary"
class="novi_btn btn_hide_bb_post ae_btn btn btn-warning btn-sm preset-tonal-secondary border border-secondary-500"
>
<span class="fas fa-eye-slash m-1"></span> Hide Disabled Events
</button>
@@ -518,7 +518,7 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
$idaa_sess.recovery_meetings.show__modal_view = false;
$idaa_sess.recovery_meetings.show__modal_edit = true;
}}
class="novi_btn btn btn-tertiary btn-sm variant-ghost-warning hover:variant-filled-warning transition text-xs"
class="novi_btn btn btn-tertiary btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition text-xs"
disabled={!$ae_loc.authenticated_access}
>
<span class="fas fa-plus m-1"></span> Create New Meeting
@@ -546,7 +546,7 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
});
}}
class="novi_btn btn btn-sm variant-ghost-warning hover:variant-filled-warning transition w-42 mb-1 export_data_btn text-xs"
class="novi_btn btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition w-42 mb-1 export_data_btn text-xs"
title={`Download sponsorship data for ${$ae_loc.account_name}`}
>
{#await ae_promises.download__events_export}