piral-aurelia 1.6.0-beta.7240 → 1.6.0-beta.7243
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/convert.d.ts +1 -1
- package/convert.js +1 -1
- package/lib/DefaultLoader.js +6 -10
- package/lib/DefaultLoader.js.map +1 -1
- package/lib/converter.js +8 -12
- package/lib/converter.js.map +1 -1
- package/lib/create.js +3 -7
- package/lib/create.js.map +1 -1
- package/lib/extension.js +20 -24
- package/lib/extension.js.map +1 -1
- package/lib/index.js +2 -5
- package/lib/index.js.map +1 -1
- package/lib/types.js +1 -2
- package/package.json +9 -25
- package/esm/DefaultLoader.d.ts +0 -66
- package/esm/DefaultLoader.js +0 -85
- package/esm/DefaultLoader.js.map +0 -1
- package/esm/converter.d.ts +0 -13
- package/esm/converter.js +0 -30
- package/esm/converter.js.map +0 -1
- package/esm/create.d.ts +0 -12
- package/esm/create.js +0 -20
- package/esm/create.js.map +0 -1
- package/esm/extension.d.ts +0 -3
- package/esm/extension.js +0 -44
- package/esm/extension.js.map +0 -1
- package/esm/index.d.ts +0 -2
- package/esm/index.js +0 -3
- package/esm/index.js.map +0 -1
- package/esm/types.d.ts +0 -34
- package/esm/types.js +0 -2
- package/esm/types.js.map +0 -1
package/convert.d.ts
CHANGED
package/convert.js
CHANGED
package/lib/DefaultLoader.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
require("aurelia-history-browser");
|
|
8
|
-
const aurelia_framework_1 = require("aurelia-framework");
|
|
9
|
-
class DefaultLoader extends aurelia_framework_1.Loader {
|
|
1
|
+
import 'aurelia-templating-binding';
|
|
2
|
+
import 'aurelia-templating-resources';
|
|
3
|
+
import 'aurelia-event-aggregator';
|
|
4
|
+
import 'aurelia-history-browser';
|
|
5
|
+
import { Loader } from 'aurelia-framework';
|
|
6
|
+
export class DefaultLoader extends Loader {
|
|
10
7
|
constructor() {
|
|
11
8
|
super(...arguments);
|
|
12
9
|
this.mapping = {};
|
|
@@ -85,5 +82,4 @@ class DefaultLoader extends aurelia_framework_1.Loader {
|
|
|
85
82
|
*/
|
|
86
83
|
addPlugin(_pluginName, _implementation) { }
|
|
87
84
|
}
|
|
88
|
-
exports.DefaultLoader = DefaultLoader;
|
|
89
85
|
//# sourceMappingURL=DefaultLoader.js.map
|
package/lib/DefaultLoader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultLoader.js","sourceRoot":"","sources":["../src/DefaultLoader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DefaultLoader.js","sourceRoot":"","sources":["../src/DefaultLoader.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AACpC,OAAO,8BAA8B,CAAC;AACtC,OAAO,0BAA0B,CAAC;AAClC,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,OAAO,aAAc,SAAQ,MAAM;IAAzC;;QACU,YAAO,GAA2B,EAAE,CAAC;IAmF/C,CAAC;IAjFC;;;;OAIG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM;QACZ,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC;IAC5B,CAAC;IAED;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,EAAE,WAAW;QACjC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,EAAE,UAAU;QAC5B,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;IACnE,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,EAAE;QACX,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,GAAG;QAChB,OAAO,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,GAAG;QACd,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,GAAG;QACV,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;OAKG;IACH,gBAAgB,CAAC,GAAG,EAAE,UAAU;QAC9B,OAAO,GAAG,GAAG,WAAW,UAAU,EAAE,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,WAAW,EAAE,eAAe,IAAG,CAAC;CAC3C"}
|
package/lib/converter.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const DefaultLoader_1 = require("./DefaultLoader");
|
|
7
|
-
const extension_1 = require("./extension");
|
|
8
|
-
function createConverter(config = {}) {
|
|
1
|
+
import { Aurelia } from 'aurelia-framework';
|
|
2
|
+
import { initialize } from 'aurelia-pal-browser';
|
|
3
|
+
import { DefaultLoader } from './DefaultLoader';
|
|
4
|
+
import { createExtension } from './extension';
|
|
5
|
+
export function createConverter(config = {}) {
|
|
9
6
|
const { rootName = 'piral-slot' } = config;
|
|
10
|
-
|
|
11
|
-
const Extension =
|
|
7
|
+
initialize();
|
|
8
|
+
const Extension = createExtension(rootName);
|
|
12
9
|
const convert = (root) => ({
|
|
13
10
|
mount(el, props, ctx, locals) {
|
|
14
|
-
const aurelia = new
|
|
11
|
+
const aurelia = new Aurelia(new DefaultLoader());
|
|
15
12
|
aurelia.use.eventAggregator().history().defaultBindingLanguage().globalResources([Extension]).defaultResources();
|
|
16
13
|
aurelia.container.registerInstance('props', props);
|
|
17
14
|
aurelia.container.registerInstance('ctx', ctx);
|
|
@@ -30,5 +27,4 @@ function createConverter(config = {}) {
|
|
|
30
27
|
convert.Extension = Extension;
|
|
31
28
|
return convert;
|
|
32
29
|
}
|
|
33
|
-
exports.createConverter = createConverter;
|
|
34
30
|
//# sourceMappingURL=converter.js.map
|
package/lib/converter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAe9C,MAAM,UAAU,eAAe,CAAC,SAAkC,EAAE;IAClE,MAAM,EAAE,QAAQ,GAAG,YAAY,EAAE,GAAG,MAAM,CAAC;IAE3C,UAAU,EAAE,CAAC;IAEb,MAAM,SAAS,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAE5C,MAAM,OAAO,GAAG,CAAoC,IAA2B,EAA4B,EAAE,CAAC,CAAC;QAC7G,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAqB;YACzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,aAAa,EAAE,CAAC,CAAC;YAEjD,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,CAAC,sBAAsB,EAAE,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;YAEjH,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YACnD,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;YAC/C,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;YAEzD,OAAO,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;YACtD,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QAC3B,CAAC;QACD,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAqB;YAC1C,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YAC1D,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACxD,CAAC;QACD,OAAO,CAAC,EAAE,EAAE,MAAqB;YAC/B,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;QAC7B,CAAC;KACF,CAAC,CAAC;IACH,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAC9B,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/lib/create.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createAureliaApi = void 0;
|
|
4
|
-
const converter_1 = require("./converter");
|
|
1
|
+
import { createConverter } from './converter';
|
|
5
2
|
/**
|
|
6
3
|
* Creates new Pilet API extensions for integrating Aurelia.
|
|
7
4
|
*/
|
|
8
|
-
function createAureliaApi(config = {}) {
|
|
5
|
+
export function createAureliaApi(config = {}) {
|
|
9
6
|
return (context) => {
|
|
10
|
-
const convert =
|
|
7
|
+
const convert = createConverter(config);
|
|
11
8
|
context.converters.aurelia = ({ root }) => convert(root);
|
|
12
9
|
return {
|
|
13
10
|
fromAurelia(root) {
|
|
@@ -20,5 +17,4 @@ function createAureliaApi(config = {}) {
|
|
|
20
17
|
};
|
|
21
18
|
};
|
|
22
19
|
}
|
|
23
|
-
exports.createAureliaApi = createAureliaApi;
|
|
24
20
|
//# sourceMappingURL=create.js.map
|
package/lib/create.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAA2B,MAAM,aAAa,CAAC;AAQvE;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAwB,EAAE;IACzD,OAAO,CAAC,OAAO,EAAE,EAAE;QACjB,MAAM,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,UAAU,CAAC,OAAO,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEzD,OAAO;YACL,WAAW,CAAC,IAAI;gBACd,OAAO;oBACL,IAAI,EAAE,SAAS;oBACf,IAAI;iBACL,CAAC;YACJ,CAAC;YACD,gBAAgB,EAAE,OAAO,CAAC,SAAS;SACpC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
package/lib/extension.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const aurelia_framework_1 = require("aurelia-framework");
|
|
6
|
-
function createExtension(rootName) {
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { inlineView, customElement, bindable, inject } from 'aurelia-framework';
|
|
3
|
+
export function createExtension(rootName) {
|
|
7
4
|
let AureliaExtension = class AureliaExtension {
|
|
8
5
|
constructor(piral) {
|
|
9
6
|
this.piral = piral;
|
|
@@ -17,32 +14,31 @@ function createExtension(rootName) {
|
|
|
17
14
|
});
|
|
18
15
|
}
|
|
19
16
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
__decorate([
|
|
18
|
+
bindable(),
|
|
19
|
+
__metadata("design:type", String)
|
|
23
20
|
], AureliaExtension.prototype, "name", void 0);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
__decorate([
|
|
22
|
+
bindable(),
|
|
23
|
+
__metadata("design:type", Object)
|
|
27
24
|
], AureliaExtension.prototype, "render", void 0);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
__decorate([
|
|
26
|
+
bindable(),
|
|
27
|
+
__metadata("design:type", Object)
|
|
31
28
|
], AureliaExtension.prototype, "empty", void 0);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
__decorate([
|
|
30
|
+
bindable(),
|
|
31
|
+
__metadata("design:type", Object)
|
|
35
32
|
], AureliaExtension.prototype, "params", void 0);
|
|
36
|
-
AureliaExtension =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
AureliaExtension = __decorate([
|
|
34
|
+
inject('piral'),
|
|
35
|
+
customElement('extension-component'),
|
|
36
|
+
inlineView(`
|
|
40
37
|
<template>
|
|
41
38
|
<${rootName} ref="host"></${rootName}>
|
|
42
39
|
<template>`),
|
|
43
|
-
|
|
40
|
+
__metadata("design:paramtypes", [Object])
|
|
44
41
|
], AureliaExtension);
|
|
45
42
|
return AureliaExtension;
|
|
46
43
|
}
|
|
47
|
-
exports.createExtension = createExtension;
|
|
48
44
|
//# sourceMappingURL=extension.js.map
|
package/lib/extension.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAIhF,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC9C,IAMM,gBAAgB,GANtB,MAMM,gBAAgB;QAOpB,YAAoB,KAAe;YAAf,UAAK,GAAL,KAAK,CAAU;QAAG,CAAC;QAEvC,QAAQ;YACN,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,EAAE;gBACxC,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC,CAAC;QACL,CAAC;KACF,CAAA;IAfqB;QAAnB,QAAQ,EAAE;;kDAAsB;IACb;QAAnB,QAAQ,EAAE;;oDAAqB;IACZ;QAAnB,QAAQ,EAAE;;mDAAoB;IACX;QAAnB,QAAQ,EAAE;;oDAAqB;IAL5B,gBAAgB;QANrB,MAAM,CAAC,OAAO,CAAC;QACf,aAAa,CAAC,qBAAqB,CAAC;QACpC,UAAU,CAAC;;SAEL,QAAQ,iBAAiB,QAAQ;eAC3B,CAAC;;OACR,gBAAgB,CAiBrB;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./create"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
1
|
+
export * from './create';
|
|
2
|
+
export * from './types';
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
package/lib/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-aurelia",
|
|
3
|
-
"version": "1.6.0-beta.
|
|
3
|
+
"version": "1.6.0-beta.7243",
|
|
4
4
|
"description": "Plugin for integrating Aurelia components in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -16,32 +16,17 @@
|
|
|
16
16
|
"author": "smapiot",
|
|
17
17
|
"homepage": "https://piral.io",
|
|
18
18
|
"license": "MIT",
|
|
19
|
-
"module": "
|
|
19
|
+
"module": "lib/index.js",
|
|
20
20
|
"main": "lib/index.js",
|
|
21
21
|
"typings": "lib/index.d.ts",
|
|
22
22
|
"exports": {
|
|
23
|
-
".":
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
"./convert": {
|
|
28
|
-
"import": "./convert.js"
|
|
29
|
-
},
|
|
30
|
-
"./esm/*": {
|
|
31
|
-
"import": "./esm/*"
|
|
32
|
-
},
|
|
33
|
-
"./lib/*": {
|
|
34
|
-
"require": "./lib/*"
|
|
35
|
-
},
|
|
36
|
-
"./_/*": {
|
|
37
|
-
"import": "./esm/*.js",
|
|
38
|
-
"require": "./lib/*.js"
|
|
39
|
-
},
|
|
23
|
+
".": "./lib/index.js",
|
|
24
|
+
"./convert": "./convert.js",
|
|
25
|
+
"./lib/*": "./lib/*",
|
|
40
26
|
"./package.json": "./package.json"
|
|
41
27
|
},
|
|
42
28
|
"sideEffects": false,
|
|
43
29
|
"files": [
|
|
44
|
-
"esm",
|
|
45
30
|
"lib",
|
|
46
31
|
"src",
|
|
47
32
|
"convert.d.ts",
|
|
@@ -56,10 +41,9 @@
|
|
|
56
41
|
},
|
|
57
42
|
"scripts": {
|
|
58
43
|
"cleanup": "rimraf esm lib convert.d.ts convert.js",
|
|
59
|
-
"build": "yarn build:
|
|
44
|
+
"build": "yarn build:esnext && yarn build:convert",
|
|
60
45
|
"build:convert": "tsc convert.ts --skipLibCheck --declaration --module esnext",
|
|
61
|
-
"build:
|
|
62
|
-
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
|
|
46
|
+
"build:esnext": "tsc --project tsconfig.json --outDir lib --module esnext",
|
|
63
47
|
"typedoc": "typedoc --json ../../../docs/types/piral-aurelia.json src --exclude \"src/**/*.test.*\"",
|
|
64
48
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
65
49
|
},
|
|
@@ -70,7 +54,7 @@
|
|
|
70
54
|
"aurelia-pal-browser": "1.8.1",
|
|
71
55
|
"aurelia-templating-binding": "1.5.3",
|
|
72
56
|
"aurelia-templating-resources": "1.13.1",
|
|
73
|
-
"piral-core": "1.6.0-beta.
|
|
57
|
+
"piral-core": "1.6.0-beta.7243"
|
|
74
58
|
},
|
|
75
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "bbb6e4f78c61b6ef753099a5b378ad2708565ce3"
|
|
76
60
|
}
|
package/esm/DefaultLoader.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/// <reference types="systemjs" />
|
|
2
|
-
import 'aurelia-templating-binding';
|
|
3
|
-
import 'aurelia-templating-resources';
|
|
4
|
-
import 'aurelia-event-aggregator';
|
|
5
|
-
import 'aurelia-history-browser';
|
|
6
|
-
import { Loader } from 'aurelia-framework';
|
|
7
|
-
export declare class DefaultLoader extends Loader {
|
|
8
|
-
private mapping;
|
|
9
|
-
/**
|
|
10
|
-
* Maps a module id to a source.
|
|
11
|
-
* @param id The module id.
|
|
12
|
-
* @param source The source to map the module to.
|
|
13
|
-
*/
|
|
14
|
-
map(id: any, source: any): void;
|
|
15
|
-
/**
|
|
16
|
-
* Normalizes a module id.
|
|
17
|
-
* @param moduleId The module id to normalize.
|
|
18
|
-
* @param relativeTo What the module id should be normalized relative to.
|
|
19
|
-
* @return The normalized module id.
|
|
20
|
-
*/
|
|
21
|
-
normalizeSync(moduleId: any, _relativeTo: any): any;
|
|
22
|
-
/**
|
|
23
|
-
* Normalizes a module id.
|
|
24
|
-
* @param moduleId The module id to normalize.
|
|
25
|
-
* @param relativeTo What the module id should be normalized relative to.
|
|
26
|
-
* @return A promise for the normalized module id.
|
|
27
|
-
*/
|
|
28
|
-
normalize(moduleId: any, relativeTo: any): Promise<any>;
|
|
29
|
-
/**
|
|
30
|
-
* Loads a module.
|
|
31
|
-
* @param id The module id to normalize.
|
|
32
|
-
* @return A Promise for the loaded module.
|
|
33
|
-
*/
|
|
34
|
-
loadModule(id: any): Promise<System.Module>;
|
|
35
|
-
/**
|
|
36
|
-
* Loads a collection of modules.
|
|
37
|
-
* @param ids The set of module ids to load.
|
|
38
|
-
* @return A Promise for an array of loaded modules.
|
|
39
|
-
*/
|
|
40
|
-
loadAllModules(ids: any): Promise<any[]>;
|
|
41
|
-
/**
|
|
42
|
-
* Loads a template.
|
|
43
|
-
* @param url The url of the template to load.
|
|
44
|
-
* @return A Promise for a TemplateRegistryEntry containing the template.
|
|
45
|
-
*/
|
|
46
|
-
loadTemplate(url: any): Promise<any>;
|
|
47
|
-
/**
|
|
48
|
-
* Loads a text-based resource.
|
|
49
|
-
* @param url The url of the text file to load.
|
|
50
|
-
* @return A Promise for text content.
|
|
51
|
-
*/
|
|
52
|
-
loadText(url: any): Promise<string>;
|
|
53
|
-
/**
|
|
54
|
-
* Alters a module id so that it includes a plugin loader.
|
|
55
|
-
* @param url The url of the module to load.
|
|
56
|
-
* @param pluginName The plugin to apply to the module id.
|
|
57
|
-
* @return The plugin-based module id.
|
|
58
|
-
*/
|
|
59
|
-
applyPluginToUrl(url: any, pluginName: any): string;
|
|
60
|
-
/**
|
|
61
|
-
* Registers a plugin with the loader.
|
|
62
|
-
* @param pluginName The name of the plugin.
|
|
63
|
-
* @param implementation The plugin implementation.
|
|
64
|
-
*/
|
|
65
|
-
addPlugin(_pluginName: any, _implementation: any): void;
|
|
66
|
-
}
|
package/esm/DefaultLoader.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import 'aurelia-templating-binding';
|
|
2
|
-
import 'aurelia-templating-resources';
|
|
3
|
-
import 'aurelia-event-aggregator';
|
|
4
|
-
import 'aurelia-history-browser';
|
|
5
|
-
import { Loader } from 'aurelia-framework';
|
|
6
|
-
export class DefaultLoader extends Loader {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.mapping = {};
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Maps a module id to a source.
|
|
13
|
-
* @param id The module id.
|
|
14
|
-
* @param source The source to map the module to.
|
|
15
|
-
*/
|
|
16
|
-
map(id, source) {
|
|
17
|
-
this.mapping[id] = source;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Normalizes a module id.
|
|
21
|
-
* @param moduleId The module id to normalize.
|
|
22
|
-
* @param relativeTo What the module id should be normalized relative to.
|
|
23
|
-
* @return The normalized module id.
|
|
24
|
-
*/
|
|
25
|
-
normalizeSync(moduleId, _relativeTo) {
|
|
26
|
-
return moduleId;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Normalizes a module id.
|
|
30
|
-
* @param moduleId The module id to normalize.
|
|
31
|
-
* @param relativeTo What the module id should be normalized relative to.
|
|
32
|
-
* @return A promise for the normalized module id.
|
|
33
|
-
*/
|
|
34
|
-
normalize(moduleId, relativeTo) {
|
|
35
|
-
return Promise.resolve(this.normalizeSync(moduleId, relativeTo));
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Loads a module.
|
|
39
|
-
* @param id The module id to normalize.
|
|
40
|
-
* @return A Promise for the loaded module.
|
|
41
|
-
*/
|
|
42
|
-
loadModule(id) {
|
|
43
|
-
return System.import(id);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Loads a collection of modules.
|
|
47
|
-
* @param ids The set of module ids to load.
|
|
48
|
-
* @return A Promise for an array of loaded modules.
|
|
49
|
-
*/
|
|
50
|
-
loadAllModules(ids) {
|
|
51
|
-
return Promise.all(ids.map((id) => this.loadModule(id)));
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Loads a template.
|
|
55
|
-
* @param url The url of the template to load.
|
|
56
|
-
* @return A Promise for a TemplateRegistryEntry containing the template.
|
|
57
|
-
*/
|
|
58
|
-
loadTemplate(url) {
|
|
59
|
-
return fetch(url).then((res) => res.json());
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Loads a text-based resource.
|
|
63
|
-
* @param url The url of the text file to load.
|
|
64
|
-
* @return A Promise for text content.
|
|
65
|
-
*/
|
|
66
|
-
loadText(url) {
|
|
67
|
-
return fetch(url).then((res) => res.text());
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Alters a module id so that it includes a plugin loader.
|
|
71
|
-
* @param url The url of the module to load.
|
|
72
|
-
* @param pluginName The plugin to apply to the module id.
|
|
73
|
-
* @return The plugin-based module id.
|
|
74
|
-
*/
|
|
75
|
-
applyPluginToUrl(url, pluginName) {
|
|
76
|
-
return `${url}?plugin=${pluginName}`;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Registers a plugin with the loader.
|
|
80
|
-
* @param pluginName The name of the plugin.
|
|
81
|
-
* @param implementation The plugin implementation.
|
|
82
|
-
*/
|
|
83
|
-
addPlugin(_pluginName, _implementation) { }
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=DefaultLoader.js.map
|
package/esm/DefaultLoader.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultLoader.js","sourceRoot":"","sources":["../src/DefaultLoader.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AACpC,OAAO,8BAA8B,CAAC;AACtC,OAAO,0BAA0B,CAAC;AAClC,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,OAAO,aAAc,SAAQ,MAAM;IAAzC;;QACU,YAAO,GAA2B,EAAE,CAAC;IAmF/C,CAAC;IAjFC;;;;OAIG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM;QACZ,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC;IAC5B,CAAC;IAED;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,EAAE,WAAW;QACjC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,EAAE,UAAU;QAC5B,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;IACnE,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,EAAE;QACX,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,GAAG;QAChB,OAAO,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,GAAG;QACd,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,GAAG;QACV,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;OAKG;IACH,gBAAgB,CAAC,GAAG,EAAE,UAAU;QAC9B,OAAO,GAAG,GAAG,WAAW,UAAU,EAAE,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,WAAW,EAAE,eAAe,IAAG,CAAC;CAC3C"}
|
package/esm/converter.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ForeignComponent, BaseComponentProps } from 'piral-core';
|
|
2
|
-
import type { AureliaModule } from './types';
|
|
3
|
-
export interface AureliaConverterOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Defines the name of the root element.
|
|
6
|
-
* @default piral-slot
|
|
7
|
-
*/
|
|
8
|
-
rootName?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function createConverter(config?: AureliaConverterOptions): {
|
|
11
|
-
<TProps extends BaseComponentProps>(root: any): ForeignComponent<TProps>;
|
|
12
|
-
Extension: any;
|
|
13
|
-
};
|
package/esm/converter.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Aurelia } from 'aurelia-framework';
|
|
2
|
-
import { initialize } from 'aurelia-pal-browser';
|
|
3
|
-
import { DefaultLoader } from './DefaultLoader';
|
|
4
|
-
import { createExtension } from './extension';
|
|
5
|
-
export function createConverter(config = {}) {
|
|
6
|
-
const { rootName = 'piral-slot' } = config;
|
|
7
|
-
initialize();
|
|
8
|
-
const Extension = createExtension(rootName);
|
|
9
|
-
const convert = (root) => ({
|
|
10
|
-
mount(el, props, ctx, locals) {
|
|
11
|
-
const aurelia = new Aurelia(new DefaultLoader());
|
|
12
|
-
aurelia.use.eventAggregator().history().defaultBindingLanguage().globalResources([Extension]).defaultResources();
|
|
13
|
-
aurelia.container.registerInstance('props', props);
|
|
14
|
-
aurelia.container.registerInstance('ctx', ctx);
|
|
15
|
-
aurelia.container.registerInstance('piral', props.piral);
|
|
16
|
-
aurelia.start().then(() => aurelia.setRoot(root, el));
|
|
17
|
-
locals.aurelia = aurelia;
|
|
18
|
-
},
|
|
19
|
-
update(el, props, ctx, locals) {
|
|
20
|
-
locals.aurelia.container.registerInstance('props', props);
|
|
21
|
-
locals.aurelia.container.registerInstance('ctx', ctx);
|
|
22
|
-
},
|
|
23
|
-
unmount(el, locals) {
|
|
24
|
-
locals.aurelia = undefined;
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
convert.Extension = Extension;
|
|
28
|
-
return convert;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=converter.js.map
|
package/esm/converter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAe9C,MAAM,UAAU,eAAe,CAAC,SAAkC,EAAE;IAClE,MAAM,EAAE,QAAQ,GAAG,YAAY,EAAE,GAAG,MAAM,CAAC;IAE3C,UAAU,EAAE,CAAC;IAEb,MAAM,SAAS,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAE5C,MAAM,OAAO,GAAG,CAAoC,IAA2B,EAA4B,EAAE,CAAC,CAAC;QAC7G,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAqB;YACzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,aAAa,EAAE,CAAC,CAAC;YAEjD,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,CAAC,sBAAsB,EAAE,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;YAEjH,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YACnD,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;YAC/C,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;YAEzD,OAAO,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;YACtD,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QAC3B,CAAC;QACD,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAqB;YAC1C,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YAC1D,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACxD,CAAC;QACD,OAAO,CAAC,EAAE,EAAE,MAAqB;YAC/B,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;QAC7B,CAAC;KACF,CAAC,CAAC;IACH,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAC9B,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/esm/create.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { PiralPlugin } from 'piral-core';
|
|
2
|
-
import { AureliaConverterOptions } from './converter';
|
|
3
|
-
import type { PiletAureliaApi } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Available configuration options for the Aurelia plugin.
|
|
6
|
-
*/
|
|
7
|
-
export interface AureliaConfig extends AureliaConverterOptions {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Creates new Pilet API extensions for integrating Aurelia.
|
|
11
|
-
*/
|
|
12
|
-
export declare function createAureliaApi(config?: AureliaConfig): PiralPlugin<PiletAureliaApi>;
|
package/esm/create.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { createConverter } from './converter';
|
|
2
|
-
/**
|
|
3
|
-
* Creates new Pilet API extensions for integrating Aurelia.
|
|
4
|
-
*/
|
|
5
|
-
export function createAureliaApi(config = {}) {
|
|
6
|
-
return (context) => {
|
|
7
|
-
const convert = createConverter(config);
|
|
8
|
-
context.converters.aurelia = ({ root }) => convert(root);
|
|
9
|
-
return {
|
|
10
|
-
fromAurelia(root) {
|
|
11
|
-
return {
|
|
12
|
-
type: 'aurelia',
|
|
13
|
-
root,
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
AureliaExtension: convert.Extension,
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=create.js.map
|
package/esm/create.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAA2B,MAAM,aAAa,CAAC;AAQvE;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAwB,EAAE;IACzD,OAAO,CAAC,OAAO,EAAE,EAAE;QACjB,MAAM,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,UAAU,CAAC,OAAO,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEzD,OAAO;YACL,WAAW,CAAC,IAAI;gBACd,OAAO;oBACL,IAAI,EAAE,SAAS;oBACf,IAAI;iBACL,CAAC;YACJ,CAAC;YACD,gBAAgB,EAAE,OAAO,CAAC,SAAS;SACpC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
package/esm/extension.d.ts
DELETED
package/esm/extension.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { inlineView, customElement, bindable, inject } from 'aurelia-framework';
|
|
3
|
-
export function createExtension(rootName) {
|
|
4
|
-
let AureliaExtension = class AureliaExtension {
|
|
5
|
-
constructor(piral) {
|
|
6
|
-
this.piral = piral;
|
|
7
|
-
}
|
|
8
|
-
attached() {
|
|
9
|
-
this.piral.renderHtmlExtension(this.host, {
|
|
10
|
-
name: this.name,
|
|
11
|
-
render: this.render,
|
|
12
|
-
empty: this.empty,
|
|
13
|
-
params: this.params,
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
__decorate([
|
|
18
|
-
bindable(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], AureliaExtension.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
bindable(),
|
|
23
|
-
__metadata("design:type", Object)
|
|
24
|
-
], AureliaExtension.prototype, "render", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
bindable(),
|
|
27
|
-
__metadata("design:type", Object)
|
|
28
|
-
], AureliaExtension.prototype, "empty", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
bindable(),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], AureliaExtension.prototype, "params", void 0);
|
|
33
|
-
AureliaExtension = __decorate([
|
|
34
|
-
inject('piral'),
|
|
35
|
-
customElement('extension-component'),
|
|
36
|
-
inlineView(`
|
|
37
|
-
<template>
|
|
38
|
-
<${rootName} ref="host"></${rootName}>
|
|
39
|
-
<template>`),
|
|
40
|
-
__metadata("design:paramtypes", [Object])
|
|
41
|
-
], AureliaExtension);
|
|
42
|
-
return AureliaExtension;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=extension.js.map
|
package/esm/extension.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAIhF,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC9C,IAMM,gBAAgB,GANtB,MAMM,gBAAgB;QAOpB,YAAoB,KAAe;YAAf,UAAK,GAAL,KAAK,CAAU;QAAG,CAAC;QAEvC,QAAQ;YACN,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,EAAE;gBACxC,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC,CAAC;QACL,CAAC;KACF,CAAA;IAfqB;QAAnB,QAAQ,EAAE;;kDAAsB;IACb;QAAnB,QAAQ,EAAE;;oDAAqB;IACZ;QAAnB,QAAQ,EAAE;;mDAAoB;IACX;QAAnB,QAAQ,EAAE;;oDAAqB;IAL5B,gBAAgB;QANrB,MAAM,CAAC,OAAO,CAAC;QACf,aAAa,CAAC,qBAAqB,CAAC;QACpC,UAAU,CAAC;;SAEL,QAAQ,iBAAiB,QAAQ;eAC3B,CAAC;;OACR,gBAAgB,CAiBrB;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
|
package/esm/index.d.ts
DELETED
package/esm/index.js
DELETED
package/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
package/esm/types.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { ForeignComponent, ExtensionSlotProps } from 'piral-core';
|
|
2
|
-
declare module 'piral-core/lib/types/custom' {
|
|
3
|
-
interface PiletCustomApi extends PiletAureliaApi {
|
|
4
|
-
}
|
|
5
|
-
interface PiralCustomComponentConverters<TProps> {
|
|
6
|
-
aurelia(component: AureliaComponent<TProps>): ForeignComponent<TProps>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export type AureliaModule<TProps> = any;
|
|
10
|
-
export interface AureliaComponent<TProps> {
|
|
11
|
-
/**
|
|
12
|
-
* The component root.
|
|
13
|
-
*/
|
|
14
|
-
root: AureliaModule<TProps>;
|
|
15
|
-
/**
|
|
16
|
-
* The type of the Aurelia component.
|
|
17
|
-
*/
|
|
18
|
-
type: 'aurelia';
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Defines the provided set of Aurelia Pilet API extensions.
|
|
22
|
-
*/
|
|
23
|
-
export interface PiletAureliaApi {
|
|
24
|
-
/**
|
|
25
|
-
* Wraps an Aurelia component for use in Piral.
|
|
26
|
-
* @param component The component root.
|
|
27
|
-
* @returns The Piral Aurelia component.
|
|
28
|
-
*/
|
|
29
|
-
fromAurelia<TProps>(component: AureliaModule<TProps>): AureliaComponent<TProps>;
|
|
30
|
-
/**
|
|
31
|
-
* Aurelia component for displaying extensions of the given name.
|
|
32
|
-
*/
|
|
33
|
-
AureliaExtension: AureliaModule<ExtensionSlotProps>;
|
|
34
|
-
}
|
package/esm/types.js
DELETED
package/esm/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|