← Back to site
← Previous Next →

Module 6: Specialized Logic & Programming

reflects the high-stakes architectural realities . This is the most critical module for a developer because it bridges the gap between a "UI Designer" and a "System Engineer."


Module 6: Specialized Logic & Programming (Technical Deep-Dive)

This module defines the execution environment of the Unicorn P platform. Unlike standard HTML, these elements interact with the core engine's state locks and global variables.

6.1 <up-monaco>

The integrated code editor.

6.2 <up-query> / <up-api>

These are the data-fetching workhorses.

Emmet code

// Fetching data only when 'branch_id' changes up-query#fetcher[api="acc_ledger:get" basedon="branch_id"]

6.3 <up-onload>

Executes logic immediately after the component is mounted.

6.4 <up-value>

The reactive expression engine.


Critical "Under the Hood" Documentation

To prevent developers from breaking the system, the following Global Constraints must be documented:

A. The Mutex System (State Protection)

Developers must be aware of the following internal flags managed by up-core.js:

B. Pathing & The root Variable

The engine defines a constant root = "/".

C. RTL/LTR Directionality

The system uses the DIR variable (RTL or LTR).

D. Automatic Validation (ASTERISK)

The platform manages visual "Required" cues automatically.


Architect's Precision Checklist

Before a consultant marks a screen as "Production Ready," they must verify:

  1. Z-Index Integrity: No custom CSS exceeds a Z-index of 500 (to stay below NONTOPWINDOW).

  2. ID Uniqueness: All IDs used in basedon or expressions are unique within the current up-include scope.

  3. Mutex Safety: No long-running synchronous JS functions are blocking the global_mutex.