nubond 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +155 -0
- package/package.json +6 -4
- package/src/CallBackEvent.d.ts +5 -5
- package/src/CallBackEvent.js +6 -6
- package/src/Decorators.d.ts +82 -82
- package/src/Decorators.d.ts.map +1 -1
- package/src/Decorators.js +26 -26
- package/src/Helpers.d.ts +53 -32
- package/src/Helpers.d.ts.map +1 -1
- package/src/Helpers.js +54 -33
- package/src/Router.d.ts +13 -13
- package/src/Router.js +14 -14
- package/src/interfaces/IEntityDependencyConstructor.d.ts +1 -1
- package/src/interfaces/IEntityDependencyConstructor.js +1 -1
- package/src/interfaces/IGlobalConfig.d.ts +12 -12
- package/src/interfaces/IGlobalConfig.js +1 -1
- package/src/interfaces/IInjectable.d.ts +2 -2
- package/src/interfaces/IInjectable.js +1 -1
- package/src/interfaces/IShadowRootConfig.d.ts +11 -11
- package/src/interfaces/IShadowRootConfig.js +1 -1
- package/src/interfaces/ITemplateProvider.d.ts +3 -3
- package/src/interfaces/ITemplateProvider.js +1 -1
- package/src/interfaces/contexts/IAspectContext.d.ts +3 -3
- package/src/interfaces/contexts/IAspectContext.js +1 -1
- package/src/interfaces/contexts/IComponentContext.d.ts +2 -2
- package/src/interfaces/contexts/IComponentContext.js +1 -1
- package/src/interfaces/contexts/IContext.d.ts +2 -2
- package/src/interfaces/contexts/IContext.js +1 -1
- package/src/interfaces/contexts/IContextWithEvents.d.ts +6 -6
- package/src/interfaces/contexts/IContextWithEvents.d.ts.map +1 -1
- package/src/interfaces/contexts/IContextWithEvents.js +1 -1
- package/src/interfaces/contexts/ITransformerContext.d.ts +4 -4
- package/src/interfaces/contexts/ITransformerContext.js +1 -1
- package/src/interfaces/contexts/configs/IComponentContextConfig.d.ts +4 -4
- package/src/interfaces/contexts/configs/IComponentContextConfig.js +1 -1
- package/src/interfaces/contexts/configs/IContextConfig.d.ts +5 -5
- package/src/interfaces/contexts/configs/IContextConfig.js +1 -1
- package/src/models/injections/ChangeDetector.d.ts +3 -3
- package/src/models/injections/ChangeDetector.js +4 -4
- package/src/models/injections/ElementManipulations.d.ts +67 -50
- package/src/models/injections/ElementManipulations.d.ts.map +1 -1
- package/src/models/injections/ElementManipulations.js +68 -51
- package/src/models/injections/ElementSubscriptions.d.ts +82 -70
- package/src/models/injections/ElementSubscriptions.d.ts.map +1 -1
- package/src/models/injections/ElementSubscriptions.js +3 -3
- package/src/models/injections/EventDispatcher.d.ts +15 -13
- package/src/models/injections/EventDispatcher.d.ts.map +1 -1
- package/src/models/injections/EventDispatcher.js +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<h1 align="center">WEB Development made simple and fun again</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/nubond/nubond/refs/heads/main/assets/icon.png" alt="nuBond" width="100" height="100" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<h1 align="center">nuBond</h1>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<strong>A declarative TypeScript progressive framework with Web Components, Shadow DOM, and an attribute-driven binding system.</strong>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<a href="https://github.com/nubond/nubond/blob/main/LICENSE"><img alt="license" src="https://img.shields.io/npm/l/nubond.svg"></a>
|
|
15
|
+
<img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-5.x-3178c6?logo=typescript&logoColor=white">
|
|
16
|
+
<img alt="web components" src="https://img.shields.io/badge/Web%20Components-Shadow%20DOM-blue">
|
|
17
|
+
<img alt="Made in Ukraine" src="https://img.shields.io/badge/Made_in-Ukraine-FFD800.svg?labelColor=0056B9">
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## What is nuBond?
|
|
23
|
+
|
|
24
|
+
nuBond is a lightweight UI framework for building reactive progressive web applications in TypeScript that respects vanilla web development. It pairs **Web Components and Shadow DOM** with a familiar **decorator + HTML/CSS templates** authoring model, an **attribute-based binding system**, **dependency injection**, **routing**, and **automatic change detection** — all in one cohesive package.
|
|
25
|
+
|
|
26
|
+
## Why nuBond?
|
|
27
|
+
- **Simple** — 15 minutes and you know all the basics, 15 minutes more and you know everything
|
|
28
|
+
- **No dependencies** — the framework has no release dependencies and only one dev dependency — `tslib`
|
|
29
|
+
- **Lightweight** — as lightweight as possible without compromising functionality
|
|
30
|
+
- **Fast** — blazingly fast performance at any application size
|
|
31
|
+
- **Feature rich** — powerful and feature rich, no compromises and no limitations
|
|
32
|
+
- **Portable** — can be compiled into a single JavaScript file
|
|
33
|
+
- **Easy migration** — can co-exist with other UI frameworks/libraries on the same page and integrate with them
|
|
34
|
+
|
|
35
|
+
## Highlights
|
|
36
|
+
|
|
37
|
+
- **Declarative templates** — `nb-value`, `nb-class`, `nb-if`, `nb-repeat`, `nb-event:click`, and more.
|
|
38
|
+
- **Decorator-based metadata** — `@AppRoot`, `@Container`, `@Component`, `@Aspect`, `@Transformer`, `@Injectable`.
|
|
39
|
+
- **Web Components first** — components are real Custom Elements with isolated Shadow DOM and scoped styles.
|
|
40
|
+
- **Built-in DI** — constructor injection with singleton or transient lifetimes.
|
|
41
|
+
- **Automatic change detection** — automatically triggered based on events and input changes, with the ability to trigger manually via injection or the `@Detector()` / `@Eventer()` decorators.
|
|
42
|
+
- **Routing** — hash-based or path-based routing with declarative slot binding (`nb-container="%slot"`).
|
|
43
|
+
- **Aspects** — reusable element-level behaviors that mix into any element without creating a new scope.
|
|
44
|
+
- **Transformers** — global pure functions usable from any expression (`{{ dateFormat(...) }}`).
|
|
45
|
+
- **Content projection** — powerful HTML template processing based on named and default slots with append-or-replace semantics.
|
|
46
|
+
- **Adopted styles** — share `CSSStyleSheet` instances across components.
|
|
47
|
+
- **W3C compliance mode** — switch from `nb-*` to `data-nb-*` attributes when strict HTML conformance is required.
|
|
48
|
+
|
|
49
|
+
## Quick Start
|
|
50
|
+
|
|
51
|
+
The fastest way to scaffold a new app is via `create nubond`:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npm create nubond blank my-app
|
|
55
|
+
cd my-app
|
|
56
|
+
npm start
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Or add nuBond to an existing TypeScript project:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npm install nubond
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
> **Requires** TypeScript with `experimentalDecorators` and `emitDecoratorMetadata` enabled.
|
|
66
|
+
|
|
67
|
+
## Hello, world
|
|
68
|
+
|
|
69
|
+
**`src/index.ts`** — bootstrap the app with `@AppRoot`:
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
import { AppRoot } from 'nubond';
|
|
73
|
+
import { Main } from './pages/main/main';
|
|
74
|
+
|
|
75
|
+
@AppRoot(
|
|
76
|
+
{ showDebugInfo: true },
|
|
77
|
+
'/#[page=main]',
|
|
78
|
+
Main
|
|
79
|
+
)
|
|
80
|
+
export class App { }
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**`src/pages/main/main.ts`** — a container with HTML template:
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
import html from './main.html';
|
|
87
|
+
import { Container } from 'nubond';
|
|
88
|
+
|
|
89
|
+
@Container(html)
|
|
90
|
+
export class Main {
|
|
91
|
+
public name = 'world';
|
|
92
|
+
|
|
93
|
+
public greet() {
|
|
94
|
+
this.name = 'nuBond';
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**`src/pages/main/main.html`** — declarative binding via `nb-*` attributes:
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<h1>Hello, {{this.name}}</h1>
|
|
103
|
+
<button nb-event:click="this.greet()">Greet</button>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## A taste of the binding system
|
|
107
|
+
|
|
108
|
+
```html
|
|
109
|
+
<!-- Text & HTML -->
|
|
110
|
+
<p nb-value="this.user.fullName"></p>
|
|
111
|
+
<div nb-html="this.richContent"></div>
|
|
112
|
+
|
|
113
|
+
<!-- Classes & styles -->
|
|
114
|
+
<div nb-class="{active: this.isOpen; disabled: !this.canEdit}"></div>
|
|
115
|
+
<div nb-style="opacity: this.fade; color: this.theme.text"></div>
|
|
116
|
+
|
|
117
|
+
<!-- Conditional & iteration -->
|
|
118
|
+
<p nb-if="this.items.length">You have items.</p>
|
|
119
|
+
<li nb-repeat="this.items" nb-value="`${index + 1}. ${item.title}`"></li>
|
|
120
|
+
|
|
121
|
+
<!-- Events with optional debounce -->
|
|
122
|
+
<input nb-event:input:300="this.search(event)" />
|
|
123
|
+
|
|
124
|
+
<!-- Components & containers with input passing -->
|
|
125
|
+
<my-card nb-in:title="this.headline" nb-event:save="this.onSave(data)"></my-card>
|
|
126
|
+
<div nb-container="@SettingsPanel" nb-in-ref:user="this.currentUser"></div>
|
|
127
|
+
|
|
128
|
+
<!-- Route slot binding -->
|
|
129
|
+
<div nb-container="%page"></div>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Documentation
|
|
133
|
+
|
|
134
|
+
**[`Documentation & Feature Reference`](https://github.com/nubond/nubond/blob/main/FEATURES.md)**
|
|
135
|
+
|
|
136
|
+
In addition all features and details are available in the `showcase` app:
|
|
137
|
+
```bash
|
|
138
|
+
npm create nubond showcase showcase-app
|
|
139
|
+
cd showcase-app
|
|
140
|
+
npm start
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Ecosystem
|
|
144
|
+
|
|
145
|
+
nuBond ships alongside a set of satellite packages:
|
|
146
|
+
|
|
147
|
+
| Package | Purpose |
|
|
148
|
+
|---|---|
|
|
149
|
+
| **[`create-nubond`](https://www.npmjs.com/package/nubond)** | Project scaffolder — `npm create nubond`. Includes `blank`, `native`, and `showcase` templates. |
|
|
150
|
+
| **[`posthtml-value-interpolation`](https://www.npmjs.com/package/@nubond/posthtml-value-interpolation)** | Parcel/PostHTML plugin enabling `{{ expression }}` text interpolation in templates. |
|
|
151
|
+
| **[`nuBond Language Service`](https://marketplace.visualstudio.com/items?itemName=nuBond.nubond-language-service)** | VS Code extension: hover, completion, go-to-definition, rename, references, diagnostics, CodeLens, and a TypeScript plugin for cross-file template ↔ class navigation. |
|
|
152
|
+
|
|
153
|
+
## License
|
|
154
|
+
|
|
155
|
+
[MIT](https://github.com/nubond/nubond/blob/main/LICENSE) © Dmytro Tomayly
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nubond",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "A declarative TypeScript progressive framework with Web Components, Shadow DOM, and an attribute-driven binding system — featuring dependency injection, routing, automatic change detection, aspects, transformers, and content projection.",
|
|
4
4
|
"author": "Dmytro Tomayly",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"typescript", "web-components", "
|
|
7
|
-
"
|
|
6
|
+
"typescript", "web-components", "custom-elements", "shadow-dom", "framework", "progressive", "spa", "pwa",
|
|
7
|
+
"reactive", "declarative", "ui-framework", "data-binding", "attribute-binding", "decorators",
|
|
8
|
+
"dependency-injection", "routing", "change-detection", "aspects", "transformers", "content-projection",
|
|
9
|
+
"adopted-styles", "lightweight", "zero-dependencies"
|
|
8
10
|
],
|
|
9
11
|
"homepage": "https://github.com/nubond/nubond",
|
|
10
12
|
"repository": {
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
"url": "git+https://github.com/nubond/nubond.git"
|
|
13
15
|
},
|
|
14
16
|
"license": "MIT",
|
|
15
|
-
"version": "1.0.
|
|
17
|
+
"version": "1.0.5",
|
|
16
18
|
"main": "src/index.js",
|
|
17
19
|
"types": "src/index.d.ts",
|
|
18
20
|
"devDependencies": {
|
package/src/CallBackEvent.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Typed TypeScript events
|
|
2
|
+
* Typed TypeScript events backed by callbacks.
|
|
3
3
|
*/
|
|
4
4
|
export declare class CallBackEvent<T extends Function> {
|
|
5
5
|
private readonly _callBacks;
|
|
6
6
|
/**
|
|
7
|
-
* Subscribe to
|
|
7
|
+
* Subscribe to the event.
|
|
8
8
|
*
|
|
9
9
|
* @param callBack event callback
|
|
10
|
-
* @returns function to
|
|
10
|
+
* @returns function to unsubscribe from the event
|
|
11
11
|
*/
|
|
12
12
|
subscribe(callBack: T): () => void;
|
|
13
13
|
/**
|
|
14
|
-
* Raise
|
|
14
|
+
* Raise the event.
|
|
15
15
|
*
|
|
16
|
-
* @param data data
|
|
16
|
+
* @param data data passed to each subscribed callback
|
|
17
17
|
*/
|
|
18
18
|
raise(...data: Array<any>): void;
|
|
19
19
|
}
|
package/src/CallBackEvent.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CallBackEvent = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* Typed TypeScript events
|
|
5
|
+
* Typed TypeScript events backed by callbacks.
|
|
6
6
|
*/
|
|
7
7
|
class CallBackEvent {
|
|
8
8
|
_callBacks = [];
|
|
9
9
|
/**
|
|
10
|
-
* Subscribe to
|
|
10
|
+
* Subscribe to the event.
|
|
11
11
|
*
|
|
12
12
|
* @param callBack event callback
|
|
13
|
-
* @returns function to
|
|
13
|
+
* @returns function to unsubscribe from the event
|
|
14
14
|
*/
|
|
15
15
|
subscribe(callBack) {
|
|
16
16
|
if (this._callBacks.indexOf(callBack) < 0) {
|
|
@@ -25,9 +25,9 @@ class CallBackEvent {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Raise
|
|
28
|
+
* Raise the event.
|
|
29
29
|
*
|
|
30
|
-
* @param data data
|
|
30
|
+
* @param data data passed to each subscribed callback
|
|
31
31
|
*/
|
|
32
32
|
raise(...data) {
|
|
33
33
|
const erroredCallbacks = [];
|
|
@@ -45,4 +45,4 @@ class CallBackEvent {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
exports.CallBackEvent = CallBackEvent;
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2FsbEJhY2tFdmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9DYWxsQmFja0V2ZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBOztFQUVFO0FBQ0YsTUFBYSxhQUFhO0lBQ0wsVUFBVSxHQUFhLEVBQUUsQ0FBQztJQUUzQzs7Ozs7TUFLRTtJQUNLLFNBQVMsQ0FBQyxRQUFXO1FBQ3hCLElBQUksSUFBSSxDQUFDLFVBQVUsQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUM7WUFDeEMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDbkMsQ0FBQztRQUVELE1BQU0sSUFBSSxHQUFHLElBQUksQ0FBQztRQUNsQixPQUFPO1lBQ0gsTUFBTSxlQUFlLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDLENBQUM7WUFDMUQsSUFBSSxlQUFlLElBQUksQ0FBQyxFQUFFLENBQUM7Z0JBQ3ZCLElBQUksQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLGVBQWUsRUFBRSxDQUFDLENBQUMsQ0FBQztZQUMvQyxDQUFDO1FBQ0wsQ0FBQyxDQUFDO0lBQ04sQ0FBQztJQUVEOzs7O01BSUU7SUFDSyxLQUFLLENBQUMsR0FBRyxJQUFnQjtRQUM1QixNQUFNLGdCQUFnQixHQUFrQixFQUFFLENB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B2b2lkIHtcclxuICAgICAgICBpZiAodGhpcy5fY2FsbEJhY2tzLmluZGV4T2YoY2FsbEJhY2spIDwgMCkge1xyXG4gICAgICAgICAgICB0aGlzLl9jYWxsQmFja3MucHVzaChjYWxsQmFjayk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBjb25zdCB0aGF0ID0gdGhpcztcclxuICAgICAgICByZXR1cm4gZnVuY3Rpb24gKCk6IHZvaWQge1xyXG4gICAgICAgICAgICBjb25zdCBleHBlY3RlZEZuSW5kZXggPSB0aGF0Ll9jYWxsQmFja3MuaW5kZXhPZihjYWxsQmFjayk7XHJcbiAgICAgICAgICAgIGlmIChleHBlY3RlZEZuSW5kZXggPj0gMCkge1xyXG4gICAgICAgICAgICAgICAgdGhhdC5fY2FsbEJhY2tzLnNwbGljZShleHBlY3RlZEZuSW5kZXgsIDEpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICogUmFpc2UgdGhlIGV2ZW50LlxyXG4gICAgKlxyXG4gICAgKiBAcGFyYW0gZGF0YSBkYXRhIHBhc3NlZCB0byBlYWNoIHN1YnNjcmliZWQgY2FsbGJhY2tcclxuICAgICovXHJcbiAgICBwdWJsaWMgcmFpc2UoLi4uZGF0YTogQXJyYXk8YW55Pik6IHZvaWQge1xyXG4gICAgICAgIGNvbnN0IGVycm9yZWRDYWxsYmFja3M6IEFycmF5PHN0cmluZz4gPSBbXTtcclxuXHJcbiAgICAgICAgZm9yIChjb25zdCBjYWxsQmFjayBvZiB0aGlzLl9jYWxsQmFja3Muc2xpY2UoKSkge1xyXG4gICAgICAgICAgICB0cnkge1xyXG4gICAgICAgICAgICAgICAgY2FsbEJhY2soLi4uZGF0YSk7XHJcbiAgICAgICAgICAgIH0gY2F0Y2ggKGV4KSB7XHJcbiAgICAgICAgICAgICAgICBlcnJvcmVkQ2FsbGJhY2tzLnB1c2goYGNhbGxiYWNrICgke2NhbGxCYWNrfSkgZmFpbGVkIHdpdGggZXhjZXB0aW9uOiAke2V4fWApO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAoZXJyb3JlZENhbGxiYWNrcy5sZW5ndGggPiAwKSB7XHJcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgb25lIG9yIG1vcmUgY2FsbGJhY2tzIGZhaWxlZDogJHtlcnJvcmVkQ2FsbGJhY2tzLmpvaW4oJywnKX1gKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcbn0iXX0=
|
package/src/Decorators.d.ts
CHANGED
|
@@ -9,220 +9,220 @@ import { IContextConfig } from './interfaces/contexts/configs/IContextConfig';
|
|
|
9
9
|
import { IComponentContextConfig } from './interfaces/contexts/configs/IComponentContextConfig';
|
|
10
10
|
import { ITemplateProvider } from './interfaces/ITemplateProvider';
|
|
11
11
|
/**
|
|
12
|
-
* Register application root
|
|
12
|
+
* Register the application root.
|
|
13
13
|
*
|
|
14
14
|
* @param appBootstrapMetaData bootstrap metadata:
|
|
15
|
-
* * string: app route template
|
|
15
|
+
* * string: if it starts with '/' - the app route template; otherwise the app root element selector
|
|
16
16
|
* * Element: app root element
|
|
17
17
|
* * IContextConfig: root context (decorated class) configuration
|
|
18
18
|
* * IGlobalConfig: global configuration
|
|
19
19
|
* * Array<string>: $Template or $AdoptedStyle registration
|
|
20
|
-
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used globally or in application root
|
|
20
|
+
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used globally or in the application root
|
|
21
21
|
*/
|
|
22
22
|
export declare function AppRoot<T extends IContextConstructor>(...appBootstrapMetaData: Array<string | Element | IContextConfig | IGlobalConfig | Array<string> | IEntityDependencyConstructor>): (target: T) => T;
|
|
23
23
|
/**
|
|
24
|
-
* Register container
|
|
24
|
+
* Register a container - a swappable HTML template with context.
|
|
25
25
|
*
|
|
26
|
-
* @param htmlTemplateOrPath
|
|
26
|
+
* @param htmlTemplateOrPath HTML template or path to an HTML template file
|
|
27
27
|
* @param containerBootstrapMetaData bootstrap metadata:
|
|
28
28
|
* * IContextConfig: container context configuration
|
|
29
29
|
* * Array<string>: $Template or $AdoptedStyle registration
|
|
30
|
-
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used
|
|
30
|
+
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used inside the container or its child entities
|
|
31
31
|
*/
|
|
32
32
|
export declare function Container<T extends IContextConstructor>(htmlTemplateOrPath: string, ...containerBootstrapMetaData: Array<IContextConfig | Array<string> | IEntityDependencyConstructor>): (target: T) => T;
|
|
33
33
|
/**
|
|
34
|
-
* Register container
|
|
34
|
+
* Register a container - a swappable HTML template with context.
|
|
35
35
|
*
|
|
36
|
-
* @param htmlTemplateProvider
|
|
36
|
+
* @param htmlTemplateProvider HTML template provider
|
|
37
37
|
* @param containerBootstrapMetaData bootstrap metadata:
|
|
38
38
|
* * IContextConfig: container context configuration
|
|
39
39
|
* * Array<string>: $Template or $AdoptedStyle registration
|
|
40
|
-
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used
|
|
40
|
+
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used inside the container or its child entities
|
|
41
41
|
*/
|
|
42
42
|
export declare function Container<T extends IContextConstructor>(htmlTemplateProvider: ITemplateProvider, ...containerBootstrapMetaData: Array<IContextConfig | Array<string> | IEntityDependencyConstructor>): (target: T) => T;
|
|
43
43
|
/**
|
|
44
|
-
* Register container
|
|
44
|
+
* Register a container - a swappable HTML template with context.
|
|
45
45
|
*
|
|
46
|
-
* @param nameWithHtmlTemplateOrPath [container name,
|
|
46
|
+
* @param nameWithHtmlTemplateOrPath [container name, HTML template or path to an HTML template file]
|
|
47
47
|
* @param containerBootstrapMetaData bootstrap metadata:
|
|
48
48
|
* * IContextConfig: container context configuration
|
|
49
49
|
* * Array<string>: $Template or $AdoptedStyle registration
|
|
50
|
-
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used
|
|
50
|
+
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used inside the container or its child entities
|
|
51
51
|
*/
|
|
52
52
|
export declare function Container<T extends IContextConstructor>(nameWithHtmlTemplateOrPath: [string, string], ...containerBootstrapMetaData: Array<IContextConfig | Array<string> | IEntityDependencyConstructor>): (target: T) => T;
|
|
53
53
|
/**
|
|
54
|
-
* Register container
|
|
54
|
+
* Register a container - a swappable HTML template with context.
|
|
55
55
|
*
|
|
56
|
-
* @param nameWithHtmlTemplateProvider [container name,
|
|
56
|
+
* @param nameWithHtmlTemplateProvider [container name, HTML template provider]
|
|
57
57
|
* @param containerBootstrapMetaData bootstrap metadata:
|
|
58
58
|
* * IContextConfig: container context configuration
|
|
59
59
|
* * Array<string>: $Template or $AdoptedStyle registration
|
|
60
|
-
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used
|
|
60
|
+
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used inside the container or its child entities
|
|
61
61
|
*/
|
|
62
62
|
export declare function Container<T extends IContextConstructor>(nameWithHtmlTemplateProvider: [string, ITemplateProvider], ...containerBootstrapMetaData: Array<IContextConfig | Array<string> | IEntityDependencyConstructor>): (target: T) => T;
|
|
63
63
|
/**
|
|
64
|
-
* Register component
|
|
64
|
+
* Register a component - a reusable, isolated component with context.
|
|
65
65
|
*
|
|
66
|
-
* @param htmlTemplateOrPath
|
|
66
|
+
* @param htmlTemplateOrPath HTML template or path to an HTML template file
|
|
67
67
|
* @param componentBootstrapMetaData bootstrap metadata:
|
|
68
|
-
* * CustomElementConstructor:
|
|
69
|
-
* * string: path to style template
|
|
70
|
-
* * ITemplateProvider: a provider
|
|
68
|
+
* * CustomElementConstructor: Web Component element class extending HTMLElement
|
|
69
|
+
* * string: path to a style template
|
|
70
|
+
* * ITemplateProvider: a provider that returns the style template
|
|
71
71
|
* * IComponentContextConfig: component context configuration
|
|
72
|
-
* * Array<string>: adopted
|
|
73
|
-
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used
|
|
72
|
+
* * Array<string>: adopted-style names
|
|
73
|
+
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used inside the component or its child entities
|
|
74
74
|
*/
|
|
75
75
|
export declare function Component<T extends IComponentContextConstructor>(htmlTemplateOrPath: string, ...componentBootstrapMetaData: Array<CustomElementConstructor | string | ITemplateProvider | IComponentContextConfig | Array<string> | IEntityDependencyConstructor>): (target: T) => T;
|
|
76
76
|
/**
|
|
77
|
-
* Register component
|
|
77
|
+
* Register a component - a reusable, isolated component with context.
|
|
78
78
|
*
|
|
79
|
-
* @param htmlTemplateProvider
|
|
79
|
+
* @param htmlTemplateProvider HTML template provider
|
|
80
80
|
* @param componentBootstrapMetaData bootstrap metadata:
|
|
81
|
-
* * CustomElementConstructor:
|
|
82
|
-
* * string: path to style template
|
|
83
|
-
* * ITemplateProvider: a provider
|
|
81
|
+
* * CustomElementConstructor: Web Component element class extending HTMLElement
|
|
82
|
+
* * string: path to a style template
|
|
83
|
+
* * ITemplateProvider: a provider that returns the style template
|
|
84
84
|
* * IComponentContextConfig: component context configuration
|
|
85
|
-
* * Array<string>: adopted
|
|
86
|
-
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used
|
|
85
|
+
* * Array<string>: adopted-style names
|
|
86
|
+
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used inside the component or its child entities
|
|
87
87
|
*/
|
|
88
88
|
export declare function Component<T extends IComponentContextConstructor>(htmlTemplateProvider: ITemplateProvider, ...componentBootstrapMetaData: Array<CustomElementConstructor | string | ITemplateProvider | IComponentContextConfig | Array<string> | IEntityDependencyConstructor>): (target: T) => T;
|
|
89
89
|
/**
|
|
90
|
-
* Register component
|
|
90
|
+
* Register a component - a reusable, isolated component with context.
|
|
91
91
|
*
|
|
92
|
-
* @param nameWithHtmlTemplateOrPath [component name,
|
|
92
|
+
* @param nameWithHtmlTemplateOrPath [component name, HTML template or path to an HTML template file]
|
|
93
93
|
* @param componentBootstrapMetaData bootstrap metadata:
|
|
94
|
-
* * CustomElementConstructor:
|
|
95
|
-
* * string: path to style template
|
|
96
|
-
* * ITemplateProvider: a provider
|
|
94
|
+
* * CustomElementConstructor: Web Component element class extending HTMLElement
|
|
95
|
+
* * string: path to a style template
|
|
96
|
+
* * ITemplateProvider: a provider that returns the style template
|
|
97
97
|
* * IComponentContextConfig: component context configuration
|
|
98
|
-
* * Array<string>: adopted
|
|
99
|
-
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used
|
|
98
|
+
* * Array<string>: adopted-style names
|
|
99
|
+
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used inside the component or its child entities
|
|
100
100
|
*/
|
|
101
101
|
export declare function Component<T extends IComponentContextConstructor>(nameWithHtmlTemplateOrPath: [string, string], ...componentBootstrapMetaData: Array<CustomElementConstructor | string | ITemplateProvider | IComponentContextConfig | Array<string> | IEntityDependencyConstructor>): (target: T) => T;
|
|
102
102
|
/**
|
|
103
|
-
* Register component
|
|
103
|
+
* Register a component - a reusable, isolated component with context.
|
|
104
104
|
*
|
|
105
|
-
* @param nameWithHtmlTemplateProvider [component name,
|
|
105
|
+
* @param nameWithHtmlTemplateProvider [component name, HTML template provider]
|
|
106
106
|
* @param componentBootstrapMetaData bootstrap metadata:
|
|
107
|
-
* * CustomElementConstructor:
|
|
108
|
-
* * string: path to style template
|
|
109
|
-
* * ITemplateProvider: a provider
|
|
107
|
+
* * CustomElementConstructor: Web Component element class extending HTMLElement
|
|
108
|
+
* * string: path to a style template
|
|
109
|
+
* * ITemplateProvider: a provider that returns the style template
|
|
110
110
|
* * IComponentContextConfig: component context configuration
|
|
111
|
-
* * Array<string>: adopted
|
|
112
|
-
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used
|
|
111
|
+
* * Array<string>: adopted-style names
|
|
112
|
+
* * IEntityDependencyConstructor: dependencies (containers, components, aspects, transformers or injectables) used inside the component or its child entities
|
|
113
113
|
*/
|
|
114
114
|
export declare function Component<T extends IComponentContextConstructor>(nameWithHtmlTemplateProvider: [string, ITemplateProvider], ...componentBootstrapMetaData: Array<CustomElementConstructor | string | ITemplateProvider | IComponentContextConfig | Array<string> | IEntityDependencyConstructor>): (target: T) => T;
|
|
115
115
|
/**
|
|
116
|
-
* Register aspect
|
|
116
|
+
* Register an aspect - an element extender.
|
|
117
117
|
*
|
|
118
|
-
* @param styleTemplateOrPath style template or path to style template file
|
|
118
|
+
* @param styleTemplateOrPath style template or path to a style template file
|
|
119
119
|
* @param aspectBootstrapMetaData bootstrap metadata:
|
|
120
|
-
* * Array<string>: adopted
|
|
120
|
+
* * Array<string>: adopted-style names
|
|
121
121
|
* * ((style: string) => string): style sanitizer
|
|
122
122
|
*/
|
|
123
123
|
export declare function Aspect<T extends IAspectContextConstructor>(styleTemplateOrPath?: string, ...aspectBootstrapMetaData: Array<Array<string> | ((style: string) => string)>): (target: T) => T;
|
|
124
124
|
/**
|
|
125
|
-
* Register aspect
|
|
125
|
+
* Register an aspect - an element extender.
|
|
126
126
|
*
|
|
127
127
|
* @param styleTemplateProvider style template provider
|
|
128
128
|
* @param aspectBootstrapMetaData bootstrap metadata:
|
|
129
|
-
* * Array<string>: adopted
|
|
129
|
+
* * Array<string>: adopted-style names
|
|
130
130
|
* * ((style: string) => string): style sanitizer
|
|
131
131
|
*/
|
|
132
132
|
export declare function Aspect<T extends IAspectContextConstructor>(styleTemplateProvider: ITemplateProvider, ...aspectBootstrapMetaData: Array<Array<string> | ((style: string) => string)>): (target: T) => T;
|
|
133
133
|
/**
|
|
134
|
-
* Register aspect
|
|
134
|
+
* Register an aspect - an element extender.
|
|
135
135
|
*
|
|
136
|
-
* @param nameWithStyleTemplateOrPath [aspect name, style template or path to style template file]
|
|
136
|
+
* @param nameWithStyleTemplateOrPath [aspect name, style template or path to a style template file]
|
|
137
137
|
* @param aspectBootstrapMetaData bootstrap metadata:
|
|
138
|
-
* * Array<string>: adopted
|
|
138
|
+
* * Array<string>: adopted-style names
|
|
139
139
|
* * ((style: string) => string): style sanitizer
|
|
140
140
|
*/
|
|
141
141
|
export declare function Aspect<T extends IAspectContextConstructor>(nameWithStyleTemplateOrPath: [string, string], ...aspectBootstrapMetaData: Array<Array<string> | ((style: string) => string)>): (target: T) => T;
|
|
142
142
|
/**
|
|
143
|
-
* Register aspect
|
|
143
|
+
* Register an aspect - an element extender.
|
|
144
144
|
*
|
|
145
145
|
* @param nameWithStyleTemplateProvider [aspect name, style template provider]
|
|
146
146
|
* @param aspectBootstrapMetaData bootstrap metadata:
|
|
147
|
-
* * Array<string>: adopted
|
|
147
|
+
* * Array<string>: adopted-style names
|
|
148
148
|
* * ((style: string) => string): style sanitizer
|
|
149
149
|
*/
|
|
150
150
|
export declare function Aspect<T extends IAspectContextConstructor>(nameWithStyleTemplateProvider: [string, ITemplateProvider], ...aspectBootstrapMetaData: Array<Array<string> | ((style: string) => string)>): (target: T) => T;
|
|
151
151
|
/**
|
|
152
|
-
* Register transformer
|
|
152
|
+
* Register a transformer - an expression extender.
|
|
153
153
|
*
|
|
154
154
|
* @param name optional transformer name
|
|
155
155
|
*/
|
|
156
156
|
export declare function Transformer<T extends ITransformerContextConstructor>(name?: string): (target: T) => T;
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
158
|
+
* Register a class for dependency injection.
|
|
159
159
|
*
|
|
160
|
-
* @param singleton true - class
|
|
160
|
+
* @param singleton true - the class is constructed only once; false - a new instance is constructed each time the class is requested
|
|
161
161
|
*/
|
|
162
162
|
export declare function Injectable<T extends IInjectableConstructor>(singleton?: boolean): (target: T) => T;
|
|
163
163
|
/**
|
|
164
|
-
* Mark property
|
|
165
|
-
* Only a simple configurable property can be marked as detector.
|
|
166
|
-
*
|
|
164
|
+
* Mark a property as a change-detector property.
|
|
165
|
+
* Only a simple, configurable property can be marked as a detector.
|
|
166
|
+
* Changes to the property value trigger change detection.
|
|
167
167
|
*/
|
|
168
168
|
export declare function Detector<T extends IContext | IComponentContext>(): (targetPrototype: T, propName: string) => void;
|
|
169
169
|
/**
|
|
170
|
-
* Mark property
|
|
171
|
-
* Only a simple configurable property can be marked as eventer.
|
|
172
|
-
*
|
|
170
|
+
* Mark a property as an eventer property.
|
|
171
|
+
* Only a simple, configurable property can be marked as an eventer.
|
|
172
|
+
* Changes to the property value dispatch a CustomEvent carrying the property value as `data`.
|
|
173
173
|
*
|
|
174
174
|
* @param name optional event name
|
|
175
175
|
*/
|
|
176
176
|
export declare function Eventer<T extends IContext | IComponentContext>(name?: string): (targetPrototype: T, propName: string) => void;
|
|
177
177
|
/**
|
|
178
|
-
* Register a template for nb-template
|
|
178
|
+
* Register a template for nb-template.
|
|
179
179
|
*
|
|
180
180
|
* @param name template name
|
|
181
|
-
* @param htmlTemplateOrPathOrProvider
|
|
182
|
-
* @param htmlSanitizer
|
|
181
|
+
* @param htmlTemplateOrPathOrProvider HTML template, path to an HTML template file, or HTML template provider
|
|
182
|
+
* @param htmlSanitizer HTML sanitizer
|
|
183
183
|
* @returns template name
|
|
184
184
|
*/
|
|
185
185
|
export declare function $Template(name: string, htmlTemplateOrPathOrProvider: string | ITemplateProvider, htmlSanitizer?: (html: string) => string): string;
|
|
186
186
|
/**
|
|
187
|
-
* Register an adopted style
|
|
187
|
+
* Register an adopted style.
|
|
188
188
|
*
|
|
189
|
-
* @param name adopted
|
|
190
|
-
* @param styleTemplateOrPathOrProvider style template
|
|
189
|
+
* @param name adopted-style name
|
|
190
|
+
* @param styleTemplateOrPathOrProvider style template, path to a style template file, or style template provider
|
|
191
191
|
* @param styleSanitizer style sanitizer
|
|
192
|
-
* @returns adopted
|
|
192
|
+
* @returns adopted-style name
|
|
193
193
|
*/
|
|
194
194
|
export declare function $AdoptedStyle(name: string, styleTemplateOrPathOrProvider: string | ITemplateProvider, styleSanitizer?: (style: string) => string): string;
|
|
195
195
|
/**
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
* For internal application classes use Injectable decorator.
|
|
196
|
+
* Register an external class for dependency injection.
|
|
197
|
+
* Use this for application-external classes that cannot be registered with the @Injectable decorator.
|
|
198
|
+
* For internal application classes use the @Injectable decorator.
|
|
199
199
|
*
|
|
200
200
|
* @param target external class
|
|
201
201
|
* @returns external class
|
|
202
202
|
*/
|
|
203
203
|
export declare function $Injectable<T extends IInjectable>(target: T): IInjectable | IInjectableConstructor;
|
|
204
204
|
/**
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
* For internal application classes use Injectable decorator.
|
|
205
|
+
* Register an external class for dependency injection.
|
|
206
|
+
* Use this for application-external classes that cannot be registered with the @Injectable decorator.
|
|
207
|
+
* For internal application classes use the @Injectable decorator.
|
|
208
208
|
*
|
|
209
209
|
* @param target external class
|
|
210
|
-
* @param singleton true - external class
|
|
210
|
+
* @param singleton true - the external class is constructed only once; false - a new instance is constructed each time the class is requested
|
|
211
211
|
* @returns external class
|
|
212
212
|
*/
|
|
213
213
|
export declare function $Injectable<T extends IInjectableConstructor>(target: T, singleton: boolean, ...dependencies: Array<IInjectableConstructor>): IInjectable | IInjectableConstructor;
|
|
214
214
|
/**
|
|
215
|
-
* Configure global config.
|
|
216
|
-
*
|
|
217
|
-
* Otherwise provide global config in AppRoot
|
|
215
|
+
* Configure the global config.
|
|
216
|
+
* Use this when the application has multiple @AppRoot entries.
|
|
217
|
+
* Otherwise, provide the global config in @AppRoot.
|
|
218
218
|
*
|
|
219
219
|
* @param config global config
|
|
220
220
|
*/
|
|
221
221
|
export declare function $Config(config: IGlobalConfig): void;
|
|
222
222
|
/**
|
|
223
|
-
* Configure
|
|
224
|
-
*
|
|
225
|
-
* Otherwise provide route config in AppRoot
|
|
223
|
+
* Configure routing.
|
|
224
|
+
* Use this when the application has multiple @AppRoot entries.
|
|
225
|
+
* Otherwise, provide the route config in @AppRoot.
|
|
226
226
|
*
|
|
227
227
|
* @param routeConfig route config
|
|
228
228
|
*/
|
package/src/Decorators.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Decorators.d.ts","sourceRoot":"","sources":["../../src/Decorators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,4BAA4B,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC1G,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE/E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAEhG,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA6CnE;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,mBAAmB,EAAE,GAAG,oBAAoB,EAAE,KAAK,CAAC,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,aAAa,GACvD,KAAK,CAAC,MAAM,CAAC,GAAG,4BAA4B,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CA+D/I;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,EAC1B,GAAG,0BAA0B,EAAE,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,4BAA4B,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC;AAChL;;;;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