@computec/uibase
v1.1.0
Published
Base AppEngine models, helpers and communication used by other libraries and by plugins.
Keywords
Readme
UI5 Library uibase
Base AppEngine models, helpers and communication used by other libraries and by plugins.
Consuming the library
@computec/uibase ships TypeScript declarations (types/) plus a minified runtime in two
module formats (dist = CommonJS, dist-amd = AMD). How you consume it depends on where your
code runs:
1. AppEngine UI5 plugin (runtime provided by AppEngine)
You only need the types — AppEngine delivers the uibase runtime at launch, so you do not
bundle it. Map the UI5 namespace to the declaration folder in your plugin tsconfig.json:
"paths": {
"computec/appengine/uibase/*": [
"./node_modules/@computec/uibase/types/*"
]
}2. Raw / standalone extension (you bundle the runtime)
Your code runs outside AppEngine, so you bundle uibase yourself. Import it as a normal package:
import { HttpClient } from "@computec/uibase";
import Session from "@computec/uibase/models/Session";This resolves to the minified CommonJS runtime in dist (with its .d.ts). For a UI5 loader
context, the AMD build is in dist-amd (point your UI5 resourceRoots for
computec/appengine/uibase at dist-amd).
As of 1.1.0 the tarball no longer ships
dist-ui5/ui5.yaml, anddist/dist-amdare minified.
