l8ui

UI Library

Shared desktop and mobile UI component library.

Overview

l8ui is a configuration-driven JavaScript/CSS component library for building enterprise web applications. It provides both desktop and mobile surfaces with full feature parity. Modules supply only data (configs, enums, columns, forms) while all behavioral logic lives in shared library components.

Architecture

Desktop components use the Layer8D* prefix. Mobile components use Layer8M*. Both follow the same configuration-driven module pattern: a module is bootstrapped by a single factory call (desktop) or registry registration (mobile). All CRUD, navigation, table rendering, and form handling is handled by the library.

Desktop Components

Core

Layer8DConfig
Application configuration (API prefix, auth)
Layer8DUtils
Shared utilities (fetch wrappers, formatting)
Layer8DRenderers
Enum, status, date, and boolean renderers
Layer8DNotification
Toast notification system
Layer8DPopup
Stacked modal system

Factories

Layer8EnumFactory
Enum map creation from value arrays
Layer8ColumnFactory
Column definition builder (text, number, date, enum, status, money, custom)
Layer8FormFactory
Form definition builder (sections, fields, inline tables)
Layer8RefFactory
Reference registry entry builder
Layer8SvgFactory
SVG illustration generator for section headers
Layer8ModuleConfigFactory
Module configuration builder

Data and Tables

Layer8DTable
Full-featured data table with sorting, filtering, pagination, and server-side data
Layer8DDataSource
Shared fetch and pagination engine for all view types
Layer8DReferencePicker
Searchable reference lookup for form fields

View System

Layer8DViewFactory
Registry for view types (table is auto-registered)
Layer8ViewSwitcher
Dropdown UI for switching between view types
Layer8DChart
Bar, line, and pie charts with theme-aware colors
Layer8DKanban
Kanban board with configurable lanes
Layer8DTimeline
Timeline view
Layer8DCalendar
Calendar view
Layer8DGantt
Gantt chart
Layer8DTreeGrid
Hierarchical tree grid
Layer8DWizard
Multi-step wizard
Layer8DDashboard
Dashboard with KPI widget cards

Module System

Layer8DModuleFactory
Orchestrates module initialization from a config object
Layer8DModuleNavigation
Sidebar navigation, tabs, and sub-navigation
Layer8DModuleCRUD
Add, edit, delete operations
Layer8DServiceRegistry
Service endpoint resolution
Layer8DModuleFilter
Module enable/disable toggle tree

Mobile Components

Mobile equivalents provide card-based responsive layouts with hierarchical drill-down navigation:

Layer8MConfig, Layer8MAuth, Layer8MUtils
Core mobile infrastructure
Layer8MTable
Card-based data table with swipe actions
Layer8MPopup
Mobile modal system
Layer8MForms
Mobile form rendering and data collection
Layer8MModuleRegistry
Module registration and navigation
Layer8MEditTable
Inline editing table for mobile

Module Pattern

A module consists of configuration-only files:

A config file defining services, models, and endpoints
Enum definitions with renderers
Column definitions using Layer8ColumnFactory
Form definitions using Layer8FormFactory
An init file that calls Layer8DModuleFactory.create() (~10 lines)

No behavioral code. No CRUD handlers. No navigation logic. Configuration only.

Theming

All components use --layer8d-* CSS custom properties defined in layer8d-theme.css. Dark mode is handled centrally via [data-theme="dark"] overrides. Components never define their own dark mode blocks.