commit e50cc29313201e637ae403dbad6afe2eeaeac564 parent d23889158b2a7fe68162a8d1388f33c3ac5e5ea4 Author: triesap <137732411+triesap@users.noreply.github.com> Date: Thu, 14 Nov 2024 21:38:41 +0000 apps-lib: edit component styles. add/edit locales, utils Diffstat:
5 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/apps-lib/src/lib/components/envelope_lower.svelte b/apps-lib/src/lib/components/envelope_lower.svelte @@ -33,7 +33,7 @@ <div in:fly={{ y: `100%`, easing: quintInOut }} out:fly={{ y: `100%`, easing: quintInOut }} - class={`z-10 absolute bottom-0 left-0 flex flex-col h-[100vh] w-full justify-start items-start bg-transparent`} + class={`z-50 absolute bottom-0 left-0 flex flex-col h-[100vh] w-full justify-start items-start bg-transparent`} > {#if !basis.full_cover} <button @@ -46,10 +46,10 @@ </button> {/if} <div - class={`relative flex flex-col ${basis.full_cover ? `h-[100vh]` : `h-[calc(100vh-12%)]`} w-full justify-start justify-start items-start rounded-t-3xl overflow-hidden`} + class={`z-50 relative flex flex-col ${basis.full_cover ? `h-[100vh]` : `h-[calc(100vh-12%)]`} w-full justify-start justify-start items-start rounded-t-3xl overflow-hidden`} > <div - class={`absolute z-10 top-0 left-0 grid grid-cols-12 flex flex-row h-12 w-full px-4 pb-2 justify-center items-center ${el_c_scrolled ? `bg-layer-1-surface/30 backdrop-blur-lg` : ``} el-re`} + class={`absolute top-0 left-0 grid grid-cols-12 flex flex-row h-12 w-full px-4 pb-2 justify-center items-center ${el_c_scrolled ? `bg-layer-1-surface/30 backdrop-blur-lg` : ``} el-re`} > <div class={`col-span-4 flex flex-row h-full justify-start items-end`} @@ -92,7 +92,7 @@ <div bind:this={el_c} on:scroll={handle_scroll} - class={`flex flex-col ${basis.full_cover ? `h-full` : `pt-12 `} w-full justify-start items-center overflow-y-scroll overflow-x-hidden scroll-hide`} + class={`z-[100] [flex flex-col ${basis.full_cover ? `h-full` : `pt-12 `} w-full justify-start items-center overflow-y-scroll overflow-x-hidden scroll-hide`} > <slot /> </div> diff --git a/apps-lib/src/lib/components/trellis_row_display_value.svelte b/apps-lib/src/lib/components/trellis_row_display_value.svelte @@ -24,7 +24,6 @@ classes: basis.icon.classes || `${get_label_classes_kind(layer, `shade`, hide_active)}`, - // `text-layer-${layer}-glyph-shade ${hide_active ? `` : `group-active:text-layer-${layer}-glyph_a`}`, key: basis.icon.key, weight: `bold`, dim: `sm`, diff --git a/apps-lib/src/lib/locales/en/common.json b/apps-lib/src/lib/locales/en/common.json @@ -12,6 +12,7 @@ "authenticated": "Authenticated", "available_balance": "Available balance", "back": "Back", + "bags": "Bags", "bank_account": "Bank account", "business_name": "Business name", "cancel": "Cancel", @@ -125,8 +126,10 @@ "unlock": "Unlock", "update": "Update", "url": "URL", + "value": "Value", "wallet": "Wallet", "website": "Website", + "year": "Year", "yes": "Yes", "your_name": "Your name" } \ No newline at end of file diff --git a/apps-lib/src/lib/locales/en/icu.json b/apps-lib/src/lib/locales/en/icu.json @@ -8,8 +8,10 @@ "*_list": "{value} list", "*_month": "{value} month", "*_name": "{value} name", + "*_order": "{value} order", "*_price": "{value} price", "*_quantity": "{value} quantity", + "*_sold": "{value} sold", "*_summary": "{value} summary", "*_the": "{value} the", "*_title": "{value} title", diff --git a/apps-lib/src/lib/utils/client.ts b/apps-lib/src/lib/utils/client.ts @@ -221,7 +221,7 @@ export const route_prev = async (route_fallback: NavigationRoute = `/`, params_f } }; -export const fmt_geol_latitude = (lat: number, fmt_opt: GeolocationLatitudeFmtOption): string => { +export const fmt_geol_latitude = (lat: number, fmt_opt: GeolocationLatitudeFmtOption, precision: number = 5): string => { const _locale = get_store(locale); const options: Intl.NumberFormatOptions = { minimumFractionDigits: 2, @@ -240,11 +240,11 @@ export const fmt_geol_latitude = (lat: number, fmt_opt: GeolocationLatitudeFmtOp const min = (Math.abs(lat) - deg) * 60; return `${fmt_deg.format(deg)}° ${fmt_min.format(min)}' ${lat >= 0 ? 'N' : 'S'}`; } else { - return `${lat.toLocaleString(_locale, { maximumFractionDigits: 5 })}° ${lat >= 0 ? 'N' : 'S'}`; + return `${lat.toLocaleString(_locale, { maximumFractionDigits: precision })}° ${lat >= 0 ? 'N' : 'S'}`; } }; -export const fmt_geol_longitude = (lng: number, fmt_opt: GeolocationLatitudeFmtOption): string => { +export const fmt_geol_longitude = (lng: number, fmt_opt: GeolocationLatitudeFmtOption, precision: number = 5): string => { const _locale = get_store(locale); const options: Intl.NumberFormatOptions = { minimumFractionDigits: 2, @@ -263,7 +263,7 @@ export const fmt_geol_longitude = (lng: number, fmt_opt: GeolocationLatitudeFmtO const minutes = (Math.abs(lng) - degrees) * 60; return `${fmt_deg.format(degrees)}° ${fmt_min.format(minutes)}' ${lng >= 0 ? 'E' : 'W'}`; } else { - return `${lng.toLocaleString(_locale, { maximumFractionDigits: 5 })}° ${lng >= 0 ? 'E' : 'W'}`; + return `${lng.toLocaleString(_locale, { maximumFractionDigits: precision })}° ${lng >= 0 ? 'E' : 'W'}`; } };