@rxdi/router 0.7.220 → 0.7.221
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 +101 -0
- package/dist/decorators.d.ts +1 -2
- package/dist/decorators.js +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/helpers.js +11 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/injection.tokens.d.ts +23 -16
- package/dist/injection.tokens.js +3 -1
- package/dist/lib/constants.d.ts +3 -0
- package/dist/lib/constants.js +6 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/{slot → lib}/index.js +6 -4
- package/dist/lib/path-to-regexp.d.ts +6 -0
- package/dist/lib/path-to-regexp.js +228 -0
- package/dist/lib/resolver.d.ts +70 -0
- package/dist/lib/resolver.js +426 -0
- package/dist/{vaadin/vaadin-router.d.ts → lib/router.d.ts} +98 -201
- package/dist/lib/router.js +833 -0
- package/dist/lib/triggers.d.ts +6 -0
- package/dist/lib/triggers.js +98 -0
- package/dist/lib/types.d.ts +134 -0
- package/dist/lib/types.js +6 -0
- package/dist/lib/utils.d.ts +20 -0
- package/dist/lib/utils.js +155 -0
- package/dist/not-found.component.js +3 -3
- package/dist/outlet.d.ts +7 -62
- package/dist/outlet.js +15 -84
- package/dist/router.component.d.ts +3 -3
- package/dist/router.component.js +4 -4
- package/package.json +3 -3
- package/dist/slot/index.d.ts +0 -8
- package/dist/slot/slot.d.ts +0 -11
- package/dist/slot/slot.js +0 -44
- package/dist/vaadin/vaadin-router.js +0 -2065
- package/slot/index.d.ts +0 -8
- package/slot/index.js +0 -8
- package/slot/slot.d.ts +0 -11
- package/slot/slot.js +0 -45
package/slot/index.d.ts
DELETED
package/slot/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function __export(m) {
|
|
3
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
-
}
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var router_slot_1 = require("router-slot");
|
|
7
|
-
exports.RouterSlot = router_slot_1.RouterSlot;
|
|
8
|
-
__export(require("./slot"));
|
package/slot/slot.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LitElement } from '@rxdi/lit-html';
|
|
2
|
-
import { IRoute } from 'router-slot';
|
|
3
|
-
import 'router-slot';
|
|
4
|
-
/**
|
|
5
|
-
* @customElement router-slots
|
|
6
|
-
*/
|
|
7
|
-
export declare class RouterSlots extends LitElement {
|
|
8
|
-
slots: IRoute[];
|
|
9
|
-
private routerSlot;
|
|
10
|
-
OnUpdate(): void;
|
|
11
|
-
}
|
package/slot/slot.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const lit_html_1 = require("@rxdi/lit-html");
|
|
13
|
-
const router_slot_1 = require("router-slot");
|
|
14
|
-
require("router-slot");
|
|
15
|
-
/**
|
|
16
|
-
* @customElement router-slots
|
|
17
|
-
*/
|
|
18
|
-
let RouterSlots = class RouterSlots extends lit_html_1.LitElement {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
this.slots = [];
|
|
22
|
-
}
|
|
23
|
-
OnUpdate() {
|
|
24
|
-
this.routerSlot.add(this.slots);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
__decorate([
|
|
28
|
-
lit_html_1.property({ type: Array }),
|
|
29
|
-
__metadata("design:type", Array)
|
|
30
|
-
], RouterSlots.prototype, "slots", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
lit_html_1.query('router-slot'),
|
|
33
|
-
__metadata("design:type", router_slot_1.RouterSlot)
|
|
34
|
-
], RouterSlots.prototype, "routerSlot", void 0);
|
|
35
|
-
RouterSlots = __decorate([
|
|
36
|
-
lit_html_1.Component({
|
|
37
|
-
selector: 'router-slots',
|
|
38
|
-
template() {
|
|
39
|
-
return lit_html_1.html `
|
|
40
|
-
<router-slot></router-slot>
|
|
41
|
-
`;
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
], RouterSlots);
|
|
45
|
-
exports.RouterSlots = RouterSlots;
|