Lots of work related to the IDAA Recovery Meetings. Better pulling in off lookup list data.
This commit is contained in:
@@ -29,6 +29,7 @@ export async function load_ae_obj_li__country(
|
||||
let limit: number = (params.qry__limit ?? 300); // Actual is 249 in 2024
|
||||
let offset: number = (params.qry__offset ?? 0); // 0
|
||||
|
||||
let order_by_li = {'sort': 'DESC', 'english_short_name': 'ASC', 'alpha_2_code': 'ASC'};
|
||||
|
||||
let params_json: key_val = {};
|
||||
|
||||
@@ -43,7 +44,7 @@ export async function load_ae_obj_li__country(
|
||||
use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value
|
||||
enabled: enabled,
|
||||
hidden: hidden,
|
||||
order_by_li: {'english_short_name': 'ASC'},
|
||||
order_by_li: order_by_li,
|
||||
limit: limit,
|
||||
offset: offset,
|
||||
params_json: params_json,
|
||||
|
||||
@@ -8,27 +8,30 @@ let ae_promises: key_val = {};
|
||||
|
||||
// Updated 2024-10-14
|
||||
export async function load_ae_obj_li__country_subdivision(
|
||||
{
|
||||
api_cfg,
|
||||
// account_id,
|
||||
params = {},
|
||||
try_cache = true,
|
||||
log_lvl = 0
|
||||
}: {
|
||||
api_cfg: any,
|
||||
// account_id: string,
|
||||
params?: key_val,
|
||||
try_cache?: boolean,
|
||||
log_lvl?: number
|
||||
}
|
||||
) {
|
||||
console.log(`*** load_ae_obj_li__country_subdivision() ***`);
|
||||
{
|
||||
api_cfg,
|
||||
// account_id,
|
||||
params = {},
|
||||
try_cache = true,
|
||||
log_lvl = 0
|
||||
}: {
|
||||
api_cfg: any,
|
||||
// account_id: string,
|
||||
params?: key_val,
|
||||
try_cache?: boolean,
|
||||
log_lvl?: number
|
||||
}
|
||||
) {
|
||||
if (log_lvl) {
|
||||
console.log(`*** load_ae_obj_li__country_subdivision() ***`);
|
||||
}
|
||||
|
||||
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 ?? 300); // Actual is 249 in 2024
|
||||
let offset: number = (params.qry__offset ?? 0); // 0
|
||||
|
||||
let order_by_li = {'sort': 'DESC', 'name': 'ASC', 'code': 'ASC'};
|
||||
|
||||
let params_json: key_val = {};
|
||||
|
||||
@@ -43,7 +46,7 @@ export async function load_ae_obj_li__country_subdivision(
|
||||
use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value
|
||||
enabled: enabled,
|
||||
hidden: hidden,
|
||||
order_by_li: {'name': 'ASC', 'code': 'ASC'},
|
||||
order_by_li: order_by_li,
|
||||
limit: limit,
|
||||
offset: offset,
|
||||
params_json: params_json,
|
||||
|
||||
@@ -510,13 +510,19 @@ export function db_save_ae_obj_li__event(
|
||||
created_on: obj.created_on,
|
||||
updated_on: obj.updated_on,
|
||||
|
||||
// IDAA Recovery Meetings
|
||||
// IDAA Recovery Meetings:
|
||||
// Currently only really used for IDAA
|
||||
contact_li_json: obj.contact_li_json,
|
||||
external_person_id: obj.external_person_id,
|
||||
|
||||
physical: obj.physical,
|
||||
virtual: obj.virtual,
|
||||
|
||||
recurring: obj.recurring,
|
||||
recurring_start_time: obj.recurring_start_time,
|
||||
recurring_end_time: obj.recurring_end_time,
|
||||
recurring_text: obj.recurring_text,
|
||||
|
||||
weekday_sunday: obj.weekday_sunday,
|
||||
weekday_monday: obj.weekday_monday,
|
||||
weekday_tuesday: obj.weekday_tuesday,
|
||||
@@ -525,7 +531,11 @@ export function db_save_ae_obj_li__event(
|
||||
weekday_friday: obj.weekday_friday,
|
||||
weekday_saturday: obj.weekday_saturday,
|
||||
|
||||
recurring_start_time: obj.recurring_start_time,
|
||||
attend_url: obj.attend_url,
|
||||
attend_url_text: obj.attend_url_text,
|
||||
attend_url_passcode: obj.attend_url_passcode,
|
||||
attend_phone: obj.attend_phone,
|
||||
attend_phone_passcode: obj.attend_phone_passcode,
|
||||
|
||||
// From SQL view
|
||||
file_count: obj.file_count,
|
||||
|
||||
@@ -47,13 +47,20 @@ export interface Event {
|
||||
created_on: Date;
|
||||
updated_on?: null|Date;
|
||||
|
||||
// IDAA Recovery Meetings
|
||||
// IDAA Recovery Meetings:
|
||||
// Currently only really used for IDAA
|
||||
contact_li_json?: null|string[]; // full_name, email, phone_mobile, phone_home, phone_office, other_text
|
||||
// contact_li_json_ext?: null|string;
|
||||
external_person_id?: null|string;
|
||||
|
||||
physical?: null|boolean;
|
||||
virtual?: null|boolean;
|
||||
|
||||
recurring?: null|boolean;
|
||||
recurring_start_time?: null|string;
|
||||
recurring_end_time?: null|string;
|
||||
recurring_text?: null|string;
|
||||
|
||||
weekday_sunday?: null|boolean;
|
||||
weekday_monday?: null|boolean;
|
||||
weekday_tuesday?: null|boolean;
|
||||
@@ -62,7 +69,11 @@ export interface Event {
|
||||
weekday_friday?: null|boolean;
|
||||
weekday_saturday?: null|boolean;
|
||||
|
||||
recurring_start_time?: null|string;
|
||||
attend_url?: null|string;
|
||||
attend_url_text?: null|string;
|
||||
attend_url_passcode?: null|string;
|
||||
attend_phone?: null|string;
|
||||
attend_phone_passcode?: null|string;
|
||||
|
||||
// Additional fields for convenience (database views)
|
||||
file_count?: null|number;
|
||||
|
||||
@@ -19,6 +19,7 @@ import "./element_tiptap_editor.scss";
|
||||
export let html_text: string = '';
|
||||
export let default_minimal: boolean = false;
|
||||
export let show_menu: boolean = true;
|
||||
export let placeholder: string = 'Type your text here...';
|
||||
|
||||
if (default_minimal) {
|
||||
show_menu = false;
|
||||
@@ -415,7 +416,13 @@ function getContent() {
|
||||
<div
|
||||
bind:this={element}
|
||||
class="tiptap bg-slate-100 px-1 py-2"
|
||||
/>
|
||||
>
|
||||
<span
|
||||
class="placeholder text-sm text-gray-400 italic"
|
||||
contenteditable="false"
|
||||
hidden={editor?.getHTML() !== '<p></p>'}
|
||||
>{placeholder}</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user