@telperion/elements 7.0.0 → 7.1.0
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/.build-manifest.json +1 -1
- package/README.md +5 -5
- package/custom-elements.json +714 -242
- package/fesm/elements.mjs +501 -216
- package/fesm/elements.mjs.map +1 -1
- package/iife/elements.js +36 -36
- package/iife/elements.js.map +1 -1
- package/iife/router/index.js +23 -23
- package/iife/router/index.js.map +1 -1
- package/index.cjs +23 -18
- package/index.cjs.map +1 -1
- package/index.d.cts +1 -1
- package/index.d.ts +1 -1
- package/index.js +8 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/router/history-managed.cjs +1 -1
- package/router/history-managed.cjs.map +1 -1
- package/router/history-managed.js +1 -1
- package/router/history-managed.js.map +1 -1
- package/router/index.cjs +23 -18
- package/router/index.cjs.map +1 -1
- package/router/index.d.cts +273 -168
- package/router/index.d.ts +273 -168
- package/router/index.js +8 -6
- package/router/index.js.map +1 -1
- package/router/route-element.cjs +244 -0
- package/router/route-element.cjs.map +1 -0
- package/router/route-element.js +239 -0
- package/router/route-element.js.map +1 -0
- package/router/route-events.cjs +14 -0
- package/router/route-events.cjs.map +1 -0
- package/router/route-events.js +10 -0
- package/router/route-events.js.map +1 -0
- package/router/route-source.cjs +134 -0
- package/router/route-source.cjs.map +1 -0
- package/router/route-source.js +129 -0
- package/router/route-source.js.map +1 -0
- package/router/route-templates.cjs +18 -0
- package/router/route-templates.cjs.map +1 -0
- package/router/route-templates.js +16 -0
- package/router/route-templates.js.map +1 -0
- package/router/{tha-router-config.cjs → router-config-element.cjs} +51 -51
- package/router/router-config-element.cjs.map +1 -0
- package/router/{tha-router-config.js → router-config-element.js} +52 -52
- package/router/router-config-element.js.map +1 -0
- package/router/{tha-router.cjs → router-element.cjs} +47 -33
- package/router/router-element.cjs.map +1 -0
- package/router/{tha-router.js → router-element.js} +47 -33
- package/router/router-element.js.map +1 -0
- package/router/{tha-router-link.cjs → router-link-element.cjs} +15 -15
- package/router/router-link-element.cjs.map +1 -0
- package/router/{tha-router-link.js → router-link-element.js} +16 -16
- package/router/router-link-element.js.map +1 -0
- package/router/{tha-router-outlet.cjs → router-outlet-element.cjs} +44 -31
- package/router/router-outlet-element.cjs.map +1 -0
- package/router/{tha-router-outlet.js → router-outlet-element.js} +43 -30
- package/router/router-outlet-element.js.map +1 -0
- package/router/{tha-router-param.cjs → router-param-element.cjs} +62 -62
- package/router/router-param-element.cjs.map +1 -0
- package/router/{tha-router-param.js → router-param-element.js} +62 -62
- package/router/router-param-element.js.map +1 -0
- package/router/tha-route.cjs +0 -128
- package/router/tha-route.cjs.map +0 -1
- package/router/tha-route.js +0 -125
- package/router/tha-route.js.map +0 -1
- package/router/tha-router-config.cjs.map +0 -1
- package/router/tha-router-config.js.map +0 -1
- package/router/tha-router-link.cjs.map +0 -1
- package/router/tha-router-link.js.map +0 -1
- package/router/tha-router-outlet.cjs.map +0 -1
- package/router/tha-router-outlet.js.map +0 -1
- package/router/tha-router-param.cjs.map +0 -1
- package/router/tha-router-param.js.map +0 -1
- package/router/tha-router.cjs.map +0 -1
- package/router/tha-router.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -4521,13 +4521,36 @@
|
|
|
4521
4521
|
},
|
|
4522
4522
|
{
|
|
4523
4523
|
"kind": "javascript-module",
|
|
4524
|
-
"path": "src/router/
|
|
4524
|
+
"path": "src/router/route-element.ts",
|
|
4525
4525
|
"declarations": [
|
|
4526
4526
|
{
|
|
4527
4527
|
"kind": "class",
|
|
4528
|
-
"description": "A custom element that defines a route in the router.\n\
|
|
4529
|
-
"name": "
|
|
4528
|
+
"description": "A custom element that defines a route in the router.\n\nThe route's content comes from either:\n- an inline `<template>` child, or\n- a `src` URL, fetched the first time the route becomes active and cached\n until `src` changes. Optional `<template data-loading>` and\n `<template data-error>` children are rendered while loading and on failure.\n\nThe `path` attribute uses URLPattern syntax and supports:\n- Static paths: `/about`, `/users`\n- Dynamic segments: `/users/:id`, `/posts/:category/:slug`\n- Wildcards: `/blog/*`, `/docs/**`\n\nWhile a `src` is involved, the route reflects its status as one of the\nboolean attributes `loading`, `loaded` or `error`.\n\n#### Examples\n\n```html\n<tp-router>\n <tp-route path=\"/\">\n <template><h1>Home Page</h1></template>\n </tp-route>\n <tp-route path=\"/docs/:slug\" src=\"/partials/docs.html\">\n <template data-loading><p>Loading…</p></template>\n <template data-error><p>Could not load the docs.</p></template>\n </tp-route>\n <tp-router-outlet></tp-router-outlet>\n</tp-router>\n```",
|
|
4529
|
+
"name": "RouteElement",
|
|
4530
4530
|
"members": [
|
|
4531
|
+
{
|
|
4532
|
+
"kind": "field",
|
|
4533
|
+
"name": "#templates",
|
|
4534
|
+
"privacy": "private",
|
|
4535
|
+
"description": "The route's `<template>` children, grouped by role."
|
|
4536
|
+
},
|
|
4537
|
+
{
|
|
4538
|
+
"kind": "field",
|
|
4539
|
+
"name": "#source",
|
|
4540
|
+
"privacy": "private",
|
|
4541
|
+
"default": "new RouteSource(state => this.#onSourceChange(state))",
|
|
4542
|
+
"description": "Loader and cache for the `src` content."
|
|
4543
|
+
},
|
|
4544
|
+
{
|
|
4545
|
+
"kind": "field",
|
|
4546
|
+
"name": "#active",
|
|
4547
|
+
"privacy": "private",
|
|
4548
|
+
"type": {
|
|
4549
|
+
"text": "boolean"
|
|
4550
|
+
},
|
|
4551
|
+
"default": "false",
|
|
4552
|
+
"description": "Whether the router currently matches this route."
|
|
4553
|
+
},
|
|
4531
4554
|
{
|
|
4532
4555
|
"kind": "field",
|
|
4533
4556
|
"name": "path",
|
|
@@ -4538,79 +4561,687 @@
|
|
|
4538
4561
|
"description": "The URL pattern to match for this route.\nUses URLPattern syntax with support for dynamic segments and wildcards.",
|
|
4539
4562
|
"attribute": "path"
|
|
4540
4563
|
},
|
|
4564
|
+
{
|
|
4565
|
+
"kind": "field",
|
|
4566
|
+
"name": "src",
|
|
4567
|
+
"type": {
|
|
4568
|
+
"text": "string | null"
|
|
4569
|
+
},
|
|
4570
|
+
"default": "null",
|
|
4571
|
+
"description": "URL of an HTML file to use as the route's content, resolved against\n`document.baseURI`. Fetched the first time the route becomes active and\ncached until it changes. Takes precedence over the inline `<template>`.\n\nThe fetched HTML is trusted like `innerHTML`: it is inserted as-is,\nalthough its `<script>` elements do not run.",
|
|
4572
|
+
"attribute": "src"
|
|
4573
|
+
},
|
|
4574
|
+
{
|
|
4575
|
+
"kind": "field",
|
|
4576
|
+
"name": "loader",
|
|
4577
|
+
"type": {
|
|
4578
|
+
"text": "RouteSourceLoader"
|
|
4579
|
+
},
|
|
4580
|
+
"default": "defaultRouteSourceLoader",
|
|
4581
|
+
"description": "Function that fetches the `src` content. Override it to add headers,\ncredentials or caching, or to stub requests in tests. It receives the\nabsolute URL and an `AbortSignal`, and must reject on failure."
|
|
4582
|
+
},
|
|
4541
4583
|
{
|
|
4542
4584
|
"kind": "field",
|
|
4543
4585
|
"name": "#templateObserver",
|
|
4544
4586
|
"privacy": "private",
|
|
4545
|
-
"default": "new MutationObserver(() => { this
|
|
4587
|
+
"default": "new MutationObserver(() => { this.#templates.set(readRouteTemplates(this)); })",
|
|
4546
4588
|
"description": "Observes changes to child elements to detect template updates"
|
|
4547
4589
|
},
|
|
4548
4590
|
{
|
|
4549
4591
|
"kind": "method",
|
|
4550
|
-
"name": "#
|
|
4592
|
+
"name": "#syncSource",
|
|
4593
|
+
"privacy": "private",
|
|
4594
|
+
"return": {
|
|
4595
|
+
"type": {
|
|
4596
|
+
"text": "void"
|
|
4597
|
+
}
|
|
4598
|
+
},
|
|
4599
|
+
"description": "Points the source at the current `src` and loads it when active."
|
|
4600
|
+
},
|
|
4601
|
+
{
|
|
4602
|
+
"kind": "method",
|
|
4603
|
+
"name": "#onSourceChange",
|
|
4551
4604
|
"privacy": "private",
|
|
4605
|
+
"return": {
|
|
4606
|
+
"type": {
|
|
4607
|
+
"text": "void"
|
|
4608
|
+
}
|
|
4609
|
+
},
|
|
4610
|
+
"parameters": [
|
|
4611
|
+
{
|
|
4612
|
+
"name": "{ status, url, error }",
|
|
4613
|
+
"type": {
|
|
4614
|
+
"text": "RouteSourceState"
|
|
4615
|
+
}
|
|
4616
|
+
}
|
|
4617
|
+
],
|
|
4618
|
+
"description": "Reflects the source status as attributes and dispatches load/error events."
|
|
4619
|
+
}
|
|
4620
|
+
],
|
|
4621
|
+
"events": [
|
|
4622
|
+
{
|
|
4623
|
+
"description": "The `src` content has loaded. `detail: { src }`",
|
|
4624
|
+
"name": "tp-route-load"
|
|
4625
|
+
},
|
|
4626
|
+
{
|
|
4627
|
+
"description": "The `src` content failed to load. `detail: { src, error }`",
|
|
4628
|
+
"name": "tp-route-error"
|
|
4629
|
+
}
|
|
4630
|
+
],
|
|
4631
|
+
"attributes": [
|
|
4632
|
+
{
|
|
4633
|
+
"name": "path",
|
|
4634
|
+
"type": {
|
|
4635
|
+
"text": "string | null"
|
|
4636
|
+
},
|
|
4637
|
+
"default": "null",
|
|
4638
|
+
"description": "The URL pattern to match for this route.\nUses URLPattern syntax with support for dynamic segments and wildcards.",
|
|
4639
|
+
"fieldName": "path",
|
|
4640
|
+
"attribute": "path"
|
|
4641
|
+
},
|
|
4642
|
+
{
|
|
4643
|
+
"name": "src",
|
|
4644
|
+
"type": {
|
|
4645
|
+
"text": "string | null"
|
|
4646
|
+
},
|
|
4647
|
+
"default": "null",
|
|
4648
|
+
"description": "URL of an HTML file to use as the route's content, resolved against\n`document.baseURI`. Fetched the first time the route becomes active and\ncached until it changes. Takes precedence over the inline `<template>`.\n\nThe fetched HTML is trusted like `innerHTML`: it is inserted as-is,\nalthough its `<script>` elements do not run.",
|
|
4649
|
+
"fieldName": "src",
|
|
4650
|
+
"attribute": "src"
|
|
4651
|
+
}
|
|
4652
|
+
],
|
|
4653
|
+
"superclass": {
|
|
4654
|
+
"name": "LitElement",
|
|
4655
|
+
"package": "lit"
|
|
4656
|
+
},
|
|
4657
|
+
"tagName": "tp-route",
|
|
4658
|
+
"customElement": true
|
|
4659
|
+
}
|
|
4660
|
+
],
|
|
4661
|
+
"exports": [
|
|
4662
|
+
{
|
|
4663
|
+
"kind": "js",
|
|
4664
|
+
"name": "RouteElement",
|
|
4665
|
+
"declaration": {
|
|
4666
|
+
"name": "RouteElement",
|
|
4667
|
+
"module": "src/router/route-element.ts"
|
|
4668
|
+
}
|
|
4669
|
+
},
|
|
4670
|
+
{
|
|
4671
|
+
"kind": "custom-element-definition",
|
|
4672
|
+
"name": "tp-route",
|
|
4673
|
+
"declaration": {
|
|
4674
|
+
"name": "RouteElement",
|
|
4675
|
+
"module": "src/router/route-element.ts"
|
|
4676
|
+
}
|
|
4677
|
+
}
|
|
4678
|
+
]
|
|
4679
|
+
},
|
|
4680
|
+
{
|
|
4681
|
+
"kind": "javascript-module",
|
|
4682
|
+
"path": "src/router/route-events.ts",
|
|
4683
|
+
"declarations": [
|
|
4684
|
+
{
|
|
4685
|
+
"kind": "variable",
|
|
4686
|
+
"name": "ROUTE_LOAD_EVENT",
|
|
4687
|
+
"type": {
|
|
4688
|
+
"text": "string"
|
|
4689
|
+
},
|
|
4690
|
+
"default": "\"tp-route-load\"",
|
|
4691
|
+
"description": "Fired on a `<tp-route>` when its `src` content has loaded. Bubbles and is composed."
|
|
4692
|
+
},
|
|
4693
|
+
{
|
|
4694
|
+
"kind": "variable",
|
|
4695
|
+
"name": "ROUTE_ERROR_EVENT",
|
|
4696
|
+
"type": {
|
|
4697
|
+
"text": "string"
|
|
4698
|
+
},
|
|
4699
|
+
"default": "\"tp-route-error\"",
|
|
4700
|
+
"description": "Fired on a `<tp-route>` when its `src` content failed to load. Bubbles and is composed."
|
|
4701
|
+
},
|
|
4702
|
+
{
|
|
4703
|
+
"kind": "function",
|
|
4704
|
+
"name": "createRouteSourceEvent",
|
|
4705
|
+
"return": {
|
|
4706
|
+
"type": {
|
|
4707
|
+
"text": "RouteSourceEvent"
|
|
4708
|
+
}
|
|
4709
|
+
},
|
|
4710
|
+
"parameters": [
|
|
4711
|
+
{
|
|
4712
|
+
"name": "type",
|
|
4713
|
+
"type": {
|
|
4714
|
+
"text": "typeof ROUTE_LOAD_EVENT | typeof ROUTE_ERROR_EVENT"
|
|
4715
|
+
}
|
|
4716
|
+
},
|
|
4717
|
+
{
|
|
4718
|
+
"name": "detail",
|
|
4719
|
+
"type": {
|
|
4720
|
+
"text": "RouteSourceEventDetail"
|
|
4721
|
+
}
|
|
4722
|
+
}
|
|
4723
|
+
]
|
|
4724
|
+
}
|
|
4725
|
+
],
|
|
4726
|
+
"exports": [
|
|
4727
|
+
{
|
|
4728
|
+
"kind": "js",
|
|
4729
|
+
"name": "ROUTE_LOAD_EVENT",
|
|
4730
|
+
"declaration": {
|
|
4731
|
+
"name": "ROUTE_LOAD_EVENT",
|
|
4732
|
+
"module": "src/router/route-events.ts"
|
|
4733
|
+
}
|
|
4734
|
+
},
|
|
4735
|
+
{
|
|
4736
|
+
"kind": "js",
|
|
4737
|
+
"name": "ROUTE_ERROR_EVENT",
|
|
4738
|
+
"declaration": {
|
|
4739
|
+
"name": "ROUTE_ERROR_EVENT",
|
|
4740
|
+
"module": "src/router/route-events.ts"
|
|
4741
|
+
}
|
|
4742
|
+
},
|
|
4743
|
+
{
|
|
4744
|
+
"kind": "js",
|
|
4745
|
+
"name": "createRouteSourceEvent",
|
|
4746
|
+
"declaration": {
|
|
4747
|
+
"name": "createRouteSourceEvent",
|
|
4748
|
+
"module": "src/router/route-events.ts"
|
|
4749
|
+
}
|
|
4750
|
+
}
|
|
4751
|
+
]
|
|
4752
|
+
},
|
|
4753
|
+
{
|
|
4754
|
+
"kind": "javascript-module",
|
|
4755
|
+
"path": "src/router/route-source.ts",
|
|
4756
|
+
"declarations": [
|
|
4757
|
+
{
|
|
4758
|
+
"kind": "function",
|
|
4759
|
+
"name": "defaultRouteSourceLoader",
|
|
4760
|
+
"parameters": [
|
|
4761
|
+
{
|
|
4762
|
+
"name": "url"
|
|
4763
|
+
},
|
|
4764
|
+
{
|
|
4765
|
+
"name": "signal"
|
|
4766
|
+
}
|
|
4767
|
+
],
|
|
4768
|
+
"description": "Default RouteSourceLoader: a plain `fetch` that rejects on non-2xx\nresponses."
|
|
4769
|
+
},
|
|
4770
|
+
{
|
|
4771
|
+
"kind": "function",
|
|
4772
|
+
"name": "resolveRouteSrc",
|
|
4773
|
+
"return": {
|
|
4774
|
+
"type": {
|
|
4775
|
+
"text": "string"
|
|
4776
|
+
}
|
|
4777
|
+
},
|
|
4778
|
+
"parameters": [
|
|
4779
|
+
{
|
|
4780
|
+
"name": "src",
|
|
4781
|
+
"type": {
|
|
4782
|
+
"text": "string"
|
|
4783
|
+
}
|
|
4784
|
+
},
|
|
4785
|
+
{
|
|
4786
|
+
"name": "base",
|
|
4787
|
+
"default": "document.baseURI",
|
|
4788
|
+
"type": {
|
|
4789
|
+
"text": "string"
|
|
4790
|
+
}
|
|
4791
|
+
}
|
|
4792
|
+
],
|
|
4793
|
+
"description": "Resolves a `src` attribute value against the document base URL."
|
|
4794
|
+
},
|
|
4795
|
+
{
|
|
4796
|
+
"kind": "function",
|
|
4797
|
+
"name": "parseRouteHtml",
|
|
4798
|
+
"return": {
|
|
4799
|
+
"type": {
|
|
4800
|
+
"text": "DocumentFragment"
|
|
4801
|
+
}
|
|
4802
|
+
},
|
|
4803
|
+
"parameters": [
|
|
4804
|
+
{
|
|
4805
|
+
"name": "html",
|
|
4806
|
+
"type": {
|
|
4807
|
+
"text": "string"
|
|
4808
|
+
}
|
|
4809
|
+
}
|
|
4810
|
+
],
|
|
4811
|
+
"description": "Parses an HTML string into an inert `DocumentFragment`.\n\nParsing goes through a detached `<template>`, so `<script>` elements are\nnever executed (not even when the fragment is later cloned into the\ndocument) and `<html>` / `<head>` / `<body>` wrappers are dropped."
|
|
4812
|
+
},
|
|
4813
|
+
{
|
|
4814
|
+
"kind": "class",
|
|
4815
|
+
"description": "Loads, parses and caches the remote content of a single route.\n\n- Content is requested once per URL and cached until the URL changes.\n- Concurrent load calls share the in-flight request.\n- Changing the URL or calling abort cancels the in-flight request;\n late responses for a superseded request are ignored.\n- Failures are not cached: the next load retries.",
|
|
4816
|
+
"name": "RouteSource",
|
|
4817
|
+
"members": [
|
|
4818
|
+
{
|
|
4819
|
+
"kind": "field",
|
|
4820
|
+
"name": "state",
|
|
4821
|
+
"readonly": true,
|
|
4822
|
+
"description": "Reactive snapshot of the current state."
|
|
4823
|
+
},
|
|
4824
|
+
{
|
|
4825
|
+
"kind": "field",
|
|
4826
|
+
"name": "#controller",
|
|
4827
|
+
"privacy": "private",
|
|
4828
|
+
"type": {
|
|
4829
|
+
"text": "AbortController | null"
|
|
4830
|
+
},
|
|
4831
|
+
"default": "null"
|
|
4832
|
+
},
|
|
4833
|
+
{
|
|
4834
|
+
"kind": "field",
|
|
4835
|
+
"name": "#pending",
|
|
4836
|
+
"privacy": "private",
|
|
4837
|
+
"type": {
|
|
4838
|
+
"text": "Promise<void> | null"
|
|
4839
|
+
},
|
|
4840
|
+
"default": "null"
|
|
4841
|
+
},
|
|
4842
|
+
{
|
|
4843
|
+
"kind": "field",
|
|
4844
|
+
"name": "#onChange",
|
|
4845
|
+
"privacy": "private",
|
|
4846
|
+
"type": {
|
|
4847
|
+
"text": "(state: RouteSourceState) => void"
|
|
4848
|
+
},
|
|
4849
|
+
"default": "onChange"
|
|
4850
|
+
},
|
|
4851
|
+
{
|
|
4852
|
+
"kind": "field",
|
|
4853
|
+
"name": "url",
|
|
4854
|
+
"type": {
|
|
4855
|
+
"text": "string | null"
|
|
4856
|
+
},
|
|
4857
|
+
"description": "Current absolute URL, or `null` when the route has no `src`.",
|
|
4858
|
+
"readonly": true
|
|
4859
|
+
},
|
|
4860
|
+
{
|
|
4861
|
+
"kind": "method",
|
|
4862
|
+
"name": "setUrl",
|
|
4863
|
+
"return": {
|
|
4864
|
+
"type": {
|
|
4865
|
+
"text": "void"
|
|
4866
|
+
}
|
|
4867
|
+
},
|
|
4868
|
+
"parameters": [
|
|
4869
|
+
{
|
|
4870
|
+
"name": "url",
|
|
4871
|
+
"type": {
|
|
4872
|
+
"text": "string | null"
|
|
4873
|
+
}
|
|
4874
|
+
}
|
|
4875
|
+
],
|
|
4876
|
+
"description": "Points the source at a new URL. A no-op when the URL is unchanged;\notherwise any in-flight request is cancelled and the cache is dropped."
|
|
4877
|
+
},
|
|
4878
|
+
{
|
|
4879
|
+
"kind": "method",
|
|
4880
|
+
"name": "load",
|
|
4552
4881
|
"return": {
|
|
4553
4882
|
"type": {
|
|
4554
4883
|
"text": ""
|
|
4555
4884
|
}
|
|
4556
4885
|
},
|
|
4557
|
-
"
|
|
4886
|
+
"parameters": [
|
|
4887
|
+
{
|
|
4888
|
+
"name": "loader",
|
|
4889
|
+
"type": {
|
|
4890
|
+
"text": "RouteSourceLoader"
|
|
4891
|
+
}
|
|
4892
|
+
}
|
|
4893
|
+
],
|
|
4894
|
+
"description": "Ensures the content for the current URL is loaded."
|
|
4895
|
+
},
|
|
4896
|
+
{
|
|
4897
|
+
"kind": "method",
|
|
4898
|
+
"name": "abort",
|
|
4899
|
+
"return": {
|
|
4900
|
+
"type": {
|
|
4901
|
+
"text": "void"
|
|
4902
|
+
}
|
|
4903
|
+
},
|
|
4904
|
+
"description": "Cancels the in-flight request, if any. Already loaded content is kept."
|
|
4905
|
+
},
|
|
4906
|
+
{
|
|
4907
|
+
"kind": "method",
|
|
4908
|
+
"name": "#request",
|
|
4909
|
+
"privacy": "private",
|
|
4910
|
+
"return": {
|
|
4911
|
+
"type": {
|
|
4912
|
+
"text": "Promise<void>"
|
|
4913
|
+
}
|
|
4914
|
+
},
|
|
4915
|
+
"parameters": [
|
|
4916
|
+
{
|
|
4917
|
+
"name": "loader",
|
|
4918
|
+
"type": {
|
|
4919
|
+
"text": "RouteSourceLoader"
|
|
4920
|
+
}
|
|
4921
|
+
},
|
|
4922
|
+
{
|
|
4923
|
+
"name": "url",
|
|
4924
|
+
"type": {
|
|
4925
|
+
"text": "string"
|
|
4926
|
+
}
|
|
4927
|
+
},
|
|
4928
|
+
{
|
|
4929
|
+
"name": "controller",
|
|
4930
|
+
"type": {
|
|
4931
|
+
"text": "AbortController"
|
|
4932
|
+
}
|
|
4933
|
+
}
|
|
4934
|
+
]
|
|
4935
|
+
},
|
|
4936
|
+
{
|
|
4937
|
+
"kind": "method",
|
|
4938
|
+
"name": "#cancel",
|
|
4939
|
+
"privacy": "private",
|
|
4940
|
+
"return": {
|
|
4941
|
+
"type": {
|
|
4942
|
+
"text": "void"
|
|
4943
|
+
}
|
|
4944
|
+
}
|
|
4945
|
+
},
|
|
4946
|
+
{
|
|
4947
|
+
"kind": "method",
|
|
4948
|
+
"name": "#set",
|
|
4949
|
+
"privacy": "private",
|
|
4950
|
+
"return": {
|
|
4951
|
+
"type": {
|
|
4952
|
+
"text": "void"
|
|
4953
|
+
}
|
|
4954
|
+
},
|
|
4955
|
+
"parameters": [
|
|
4956
|
+
{
|
|
4957
|
+
"name": "state",
|
|
4958
|
+
"type": {
|
|
4959
|
+
"text": "RouteSourceState"
|
|
4960
|
+
}
|
|
4961
|
+
}
|
|
4962
|
+
]
|
|
4963
|
+
}
|
|
4964
|
+
]
|
|
4965
|
+
}
|
|
4966
|
+
],
|
|
4967
|
+
"exports": [
|
|
4968
|
+
{
|
|
4969
|
+
"kind": "js",
|
|
4970
|
+
"name": "defaultRouteSourceLoader",
|
|
4971
|
+
"declaration": {
|
|
4972
|
+
"name": "defaultRouteSourceLoader",
|
|
4973
|
+
"module": "src/router/route-source.ts"
|
|
4974
|
+
}
|
|
4975
|
+
},
|
|
4976
|
+
{
|
|
4977
|
+
"kind": "js",
|
|
4978
|
+
"name": "resolveRouteSrc",
|
|
4979
|
+
"declaration": {
|
|
4980
|
+
"name": "resolveRouteSrc",
|
|
4981
|
+
"module": "src/router/route-source.ts"
|
|
4982
|
+
}
|
|
4983
|
+
},
|
|
4984
|
+
{
|
|
4985
|
+
"kind": "js",
|
|
4986
|
+
"name": "parseRouteHtml",
|
|
4987
|
+
"declaration": {
|
|
4988
|
+
"name": "parseRouteHtml",
|
|
4989
|
+
"module": "src/router/route-source.ts"
|
|
4990
|
+
}
|
|
4991
|
+
},
|
|
4992
|
+
{
|
|
4993
|
+
"kind": "js",
|
|
4994
|
+
"name": "RouteSource",
|
|
4995
|
+
"declaration": {
|
|
4996
|
+
"name": "RouteSource",
|
|
4997
|
+
"module": "src/router/route-source.ts"
|
|
4998
|
+
}
|
|
4999
|
+
}
|
|
5000
|
+
]
|
|
5001
|
+
},
|
|
5002
|
+
{
|
|
5003
|
+
"kind": "javascript-module",
|
|
5004
|
+
"path": "src/router/route-templates.ts",
|
|
5005
|
+
"declarations": [
|
|
5006
|
+
{
|
|
5007
|
+
"kind": "function",
|
|
5008
|
+
"name": "readRouteTemplates",
|
|
5009
|
+
"return": {
|
|
5010
|
+
"type": {
|
|
5011
|
+
"text": "RouteTemplates"
|
|
5012
|
+
}
|
|
5013
|
+
},
|
|
5014
|
+
"parameters": [
|
|
5015
|
+
{
|
|
5016
|
+
"name": "route",
|
|
5017
|
+
"type": {
|
|
5018
|
+
"text": "Element"
|
|
5019
|
+
}
|
|
5020
|
+
}
|
|
5021
|
+
],
|
|
5022
|
+
"description": "Collects the direct `<template>` children of a route element by role.\nFor each role the first matching template wins."
|
|
5023
|
+
}
|
|
5024
|
+
],
|
|
5025
|
+
"exports": [
|
|
5026
|
+
{
|
|
5027
|
+
"kind": "js",
|
|
5028
|
+
"name": "readRouteTemplates",
|
|
5029
|
+
"declaration": {
|
|
5030
|
+
"name": "readRouteTemplates",
|
|
5031
|
+
"module": "src/router/route-templates.ts"
|
|
5032
|
+
}
|
|
5033
|
+
}
|
|
5034
|
+
]
|
|
5035
|
+
},
|
|
5036
|
+
{
|
|
5037
|
+
"kind": "javascript-module",
|
|
5038
|
+
"path": "src/router/router-config-element.ts",
|
|
5039
|
+
"declarations": [
|
|
5040
|
+
{
|
|
5041
|
+
"kind": "class",
|
|
5042
|
+
"description": "A custom element for configuring router history settings.\n\nThis element serves dual purposes depending on its placement in the DOM:\n\n## Global Configuration (placed in `<head>`)\n\nWhen placed in the `<head>` element, it sets the **global default history**\nfor all routers in the application that don't specify their own history or\ninherit from a parent.\n\n```html\n<head>\n <!-- All routers will use hash routing by default -->\n <tp-router-config history=\"hash\"></tp-router-config>\n</head>\n<body>\n <tp-router>\n <!-- Uses hash history (global default) -->\n <tp-route path=\"/home\">...</tp-route>\n </tp-router>\n</body>\n```\n\n## Local Configuration (placed in `<body>`)\n\nWhen placed in the `<body>` element, it provides history configuration\nfor its **descendant routers only**. This allows different sections of\nyour application to use different history strategies.\n\n```html\n<body>\n <!-- Section 1: Hash routing -->\n <tp-router-config history=\"hash\">\n <tp-router>\n <!-- Uses hash history from parent config -->\n <tp-route path=\"/dashboard\">...</tp-route>\n </tp-router>\n </tp-router-config>\n\n <!-- Section 2: Memory routing (isolated) -->\n <tp-router-config history=\"memory\">\n <tp-router>\n <!-- Uses memory history from parent config -->\n <tp-route path=\"/preview\">...</tp-route>\n </tp-router>\n </tp-router-config>\n</body>\n```\n\n## Usage Patterns\n\n### Set Global Default\n\nPlace in `<head>` to configure all routers:\n\n```html\n<!DOCTYPE html>\n<html>\n <head>\n <tp-router-config history=\"browser\"></tp-router-config>\n </head>\n <body>\n <!-- All routers use browser history -->\n </body>\n</html>\n```\n\n### Override for Specific Section\n\nUse local config to override global default:\n\n```html\n<head>\n <!-- Global: browser history -->\n <tp-router-config history=\"browser\"></tp-router-config>\n</head>\n<body>\n <!-- Main app uses browser history -->\n <tp-router>...</tp-router>\n\n <!-- Admin section uses hash history -->\n <tp-router-config history=\"hash\">\n <tp-router>...</tp-router>\n </tp-router-config>\n</body>\n```\n\n### Isolate Components with Memory History\n\nUse named memory history for component isolation:\n\n```html\n<body>\n <!-- Each component has independent navigation -->\n <tp-router-config history=\"memory:component1\">\n <my-widget>\n <tp-router>...</tp-router>\n </my-widget>\n </tp-router-config>\n\n <tp-router-config history=\"memory:component2\">\n <my-widget>\n <tp-router>...</tp-router>\n </my-widget>\n </tp-router-config>\n</body>\n```\n\n### Testing with Memory History\n\nUse memory history to avoid affecting browser URL during tests:\n\n```typescript\nimport { fixture, html } from '@open-wc/testing';\n\nit('should navigate', async () => {\n const el = await fixture(html`\n <tp-router-config history=\"memory:test\">\n <tp-router>\n <tp-route path=\"/test\">Test Page</tp-route>\n </tp-router>\n </tp-router-config>\n `);\n\n // Test navigation without affecting browser URL\n});\n```\n\n## History Resolution\n\nRouter components resolve their history in this order:\n\n1. **Own `history` attribute** (highest priority)\n2. **Parent `tp-router-config`** (local configuration)\n3. **Global `tp-router-config`** (in `<head>`)\n4. **Default** (`\"browser\"`)\n\n## Best Practices\n\n✅ **DO**: Place one `tp-router-config` in `<head>` for global settings\n\n```html\n<head>\n <tp-router-config history=\"browser\"></tp-router-config>\n</head>\n```\n\n✅ **DO**: Use local configs for sections with different routing needs\n\n```html\n<tp-router-config history=\"memory\">\n <component-preview>...</component-preview>\n</tp-router-config>\n```\n\n✅ **DO**: Use named memory history for isolated components\n\n```html\n<tp-router-config history=\"memory:sidebar\">\n <sidebar-nav>...</sidebar-nav>\n</tp-router-config>\n```\n\n❌ **DON'T**: Place multiple configs in `<head>` (last one wins)\n\n```html\n<head>\n <tp-router-config history=\"browser\"></tp-router-config>\n <tp-router-config history=\"hash\"></tp-router-config> <!-- Overrides above -->\n</head>\n```\n\n❌ **DON'T**: Nest configs unnecessarily (inner configs take precedence)\n\n```html\n<tp-router-config history=\"browser\">\n <tp-router-config history=\"hash\">\n <!-- Uses hash, not browser -->\n </tp-router-config>\n</tp-router-config>\n```",
|
|
5043
|
+
"name": "RouterConfigElement",
|
|
5044
|
+
"members": [
|
|
5045
|
+
{
|
|
5046
|
+
"kind": "field",
|
|
5047
|
+
"name": "#globalHistoryUnsubscribe",
|
|
5048
|
+
"privacy": "private",
|
|
5049
|
+
"default": "noop",
|
|
5050
|
+
"description": "Cleanup function for the global history effect.\nOnly used when the element is placed in `<head>`."
|
|
5051
|
+
},
|
|
5052
|
+
{
|
|
5053
|
+
"kind": "field",
|
|
5054
|
+
"name": "history",
|
|
5055
|
+
"type": {
|
|
5056
|
+
"text": "HistoryType | undefined"
|
|
5057
|
+
},
|
|
5058
|
+
"default": "undefined",
|
|
5059
|
+
"description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
|
|
5060
|
+
"attribute": "history",
|
|
5061
|
+
"inheritedFrom": {
|
|
5062
|
+
"name": "HistoryManaged",
|
|
5063
|
+
"module": "src/router/history-managed.ts"
|
|
5064
|
+
}
|
|
5065
|
+
},
|
|
5066
|
+
{
|
|
5067
|
+
"kind": "field",
|
|
5068
|
+
"name": "#ownHistoryType",
|
|
5069
|
+
"privacy": "private",
|
|
5070
|
+
"description": "Signal for own history type",
|
|
5071
|
+
"inheritedFrom": {
|
|
5072
|
+
"name": "HistoryManaged",
|
|
5073
|
+
"module": "src/router/history-managed.ts"
|
|
5074
|
+
}
|
|
5075
|
+
},
|
|
5076
|
+
{
|
|
5077
|
+
"kind": "field",
|
|
5078
|
+
"name": "#parentHistoryType",
|
|
5079
|
+
"privacy": "private",
|
|
5080
|
+
"description": "Computed signal for parent history type",
|
|
5081
|
+
"inheritedFrom": {
|
|
5082
|
+
"name": "HistoryManaged",
|
|
5083
|
+
"module": "src/router/history-managed.ts"
|
|
5084
|
+
}
|
|
5085
|
+
},
|
|
5086
|
+
{
|
|
5087
|
+
"kind": "field",
|
|
5088
|
+
"name": "[HISTORY_TYPE]",
|
|
5089
|
+
"description": "Resolved history type: own → parent → global",
|
|
5090
|
+
"inheritedFrom": {
|
|
5091
|
+
"name": "HistoryManaged",
|
|
5092
|
+
"module": "src/router/history-managed.ts"
|
|
5093
|
+
}
|
|
5094
|
+
},
|
|
5095
|
+
{
|
|
5096
|
+
"kind": "field",
|
|
5097
|
+
"name": "[HISTORY]",
|
|
5098
|
+
"description": "Resolved history instance: own → parent → global",
|
|
5099
|
+
"inheritedFrom": {
|
|
5100
|
+
"name": "HistoryManaged",
|
|
5101
|
+
"module": "src/router/history-managed.ts"
|
|
5102
|
+
}
|
|
4558
5103
|
}
|
|
4559
5104
|
],
|
|
5105
|
+
"mixins": [
|
|
5106
|
+
{
|
|
5107
|
+
"name": "HistoryManaged",
|
|
5108
|
+
"module": "/src/router/history-managed"
|
|
5109
|
+
}
|
|
5110
|
+
],
|
|
5111
|
+
"superclass": {
|
|
5112
|
+
"name": "SignalWatcherLitElement",
|
|
5113
|
+
"module": "/src/utils/signal-watcher-lit-element"
|
|
5114
|
+
},
|
|
5115
|
+
"tagName": "tp-router-config",
|
|
5116
|
+
"customElement": true,
|
|
4560
5117
|
"attributes": [
|
|
4561
5118
|
{
|
|
4562
|
-
"name": "
|
|
5119
|
+
"name": "history",
|
|
4563
5120
|
"type": {
|
|
4564
|
-
"text": "
|
|
5121
|
+
"text": "HistoryType | undefined"
|
|
4565
5122
|
},
|
|
4566
|
-
"default": "
|
|
4567
|
-
"description": "
|
|
4568
|
-
"fieldName": "
|
|
4569
|
-
"attribute": "
|
|
5123
|
+
"default": "undefined",
|
|
5124
|
+
"description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
|
|
5125
|
+
"fieldName": "history",
|
|
5126
|
+
"attribute": "history",
|
|
5127
|
+
"inheritedFrom": {
|
|
5128
|
+
"name": "HistoryManaged",
|
|
5129
|
+
"module": "src/router/history-managed.ts"
|
|
5130
|
+
}
|
|
4570
5131
|
}
|
|
4571
|
-
]
|
|
4572
|
-
"superclass": {
|
|
4573
|
-
"name": "LitElement",
|
|
4574
|
-
"package": "lit"
|
|
4575
|
-
},
|
|
4576
|
-
"tagName": "tha-route",
|
|
4577
|
-
"customElement": true
|
|
5132
|
+
]
|
|
4578
5133
|
}
|
|
4579
5134
|
],
|
|
4580
5135
|
"exports": [
|
|
4581
5136
|
{
|
|
4582
5137
|
"kind": "js",
|
|
4583
|
-
"name": "
|
|
5138
|
+
"name": "RouterConfigElement",
|
|
4584
5139
|
"declaration": {
|
|
4585
|
-
"name": "
|
|
4586
|
-
"module": "src/router/
|
|
5140
|
+
"name": "RouterConfigElement",
|
|
5141
|
+
"module": "src/router/router-config-element.ts"
|
|
4587
5142
|
}
|
|
4588
5143
|
},
|
|
4589
5144
|
{
|
|
4590
5145
|
"kind": "custom-element-definition",
|
|
4591
|
-
"name": "
|
|
5146
|
+
"name": "tp-router-config",
|
|
4592
5147
|
"declaration": {
|
|
4593
|
-
"name": "
|
|
4594
|
-
"module": "src/router/
|
|
5148
|
+
"name": "RouterConfigElement",
|
|
5149
|
+
"module": "src/router/router-config-element.ts"
|
|
4595
5150
|
}
|
|
4596
5151
|
}
|
|
4597
5152
|
]
|
|
4598
5153
|
},
|
|
4599
5154
|
{
|
|
4600
5155
|
"kind": "javascript-module",
|
|
4601
|
-
"path": "src/router/
|
|
5156
|
+
"path": "src/router/router-element.ts",
|
|
4602
5157
|
"declarations": [
|
|
4603
5158
|
{
|
|
4604
5159
|
"kind": "class",
|
|
4605
|
-
"description": "A custom element
|
|
4606
|
-
"name": "
|
|
5160
|
+
"description": "A custom element that manages client-side routing for single-page applications.\n\nThe router watches for navigation events and matches the current URL against\nregistered routes (tp-route elements), rendering the matching route's content\nin a tp-router-outlet element.\n\n#### Examples\n\n```html\n<tp-router history=\"browser\">\n <tp-route path=\"/\">\n <template><h1>Home</h1></template>\n </tp-route>\n <tp-route path=\"/about\">\n <template><h1>About</h1></template>\n </tp-route>\n <tp-router-outlet></tp-router-outlet>\n</tp-router>\n```",
|
|
5161
|
+
"name": "RouterElement",
|
|
4607
5162
|
"members": [
|
|
4608
5163
|
{
|
|
4609
5164
|
"kind": "field",
|
|
4610
|
-
"name": "#
|
|
5165
|
+
"name": "#routeChildObserver",
|
|
5166
|
+
"privacy": "private",
|
|
5167
|
+
"default": "new MutationObserver((mutations) => { const childListMutations = mutations.filter(mutation => mutation.type === 'childList'); if (!childListMutations.length) return; this.#routeEls.set( Array.from(this.children).filter(child => child instanceof RouteElement).map(routeEl => new WeakRef(routeEl)) ); })",
|
|
5168
|
+
"description": "Observes changes to child elements to detect when routes are added or removed.\nUpdates the #routeEls signal whenever tp-route children change."
|
|
5169
|
+
},
|
|
5170
|
+
{
|
|
5171
|
+
"kind": "field",
|
|
5172
|
+
"name": "#routeChildrenEffectCleaner",
|
|
4611
5173
|
"privacy": "private",
|
|
4612
5174
|
"default": "noop",
|
|
4613
|
-
"description": "Cleanup function for the
|
|
5175
|
+
"description": "Cleanup function for the route children rendering effect"
|
|
5176
|
+
},
|
|
5177
|
+
{
|
|
5178
|
+
"kind": "field",
|
|
5179
|
+
"name": "#historyTypeEffectCleaner",
|
|
5180
|
+
"privacy": "private",
|
|
5181
|
+
"default": "noop",
|
|
5182
|
+
"description": "Cleanup function for the history type change effect"
|
|
5183
|
+
},
|
|
5184
|
+
{
|
|
5185
|
+
"kind": "field",
|
|
5186
|
+
"name": "#historyListenerRemover",
|
|
5187
|
+
"privacy": "private",
|
|
5188
|
+
"default": "noop",
|
|
5189
|
+
"description": "Cleanup function to remove history listener"
|
|
5190
|
+
},
|
|
5191
|
+
{
|
|
5192
|
+
"kind": "field",
|
|
5193
|
+
"name": "#routeEls",
|
|
5194
|
+
"privacy": "private",
|
|
5195
|
+
"description": "Signal containing weak references to all tp-route children"
|
|
5196
|
+
},
|
|
5197
|
+
{
|
|
5198
|
+
"kind": "field",
|
|
5199
|
+
"name": "#activeRoute",
|
|
5200
|
+
"privacy": "private",
|
|
5201
|
+
"description": "Signal containing weak reference to the currently active route"
|
|
5202
|
+
},
|
|
5203
|
+
{
|
|
5204
|
+
"kind": "field",
|
|
5205
|
+
"name": "#outlet",
|
|
5206
|
+
"privacy": "private",
|
|
5207
|
+
"description": "Signal containing weak reference to the assigned outlet element"
|
|
5208
|
+
},
|
|
5209
|
+
{
|
|
5210
|
+
"kind": "field",
|
|
5211
|
+
"name": "#activatedRoute",
|
|
5212
|
+
"privacy": "private",
|
|
5213
|
+
"type": {
|
|
5214
|
+
"text": "WeakRef<RouteElement> | null"
|
|
5215
|
+
},
|
|
5216
|
+
"default": "null",
|
|
5217
|
+
"description": "Last route marked active through SET_ACTIVE (not reactive, see #activate)"
|
|
5218
|
+
},
|
|
5219
|
+
{
|
|
5220
|
+
"kind": "field",
|
|
5221
|
+
"name": "#handleRouteChange",
|
|
5222
|
+
"privacy": "private",
|
|
5223
|
+
"description": "Handles navigation events by matching the new URL against registered routes.\nUpdates the active route signal when a match is found.",
|
|
5224
|
+
"parameters": [
|
|
5225
|
+
{
|
|
5226
|
+
"description": "The history update containing the new location",
|
|
5227
|
+
"name": "update"
|
|
5228
|
+
}
|
|
5229
|
+
]
|
|
5230
|
+
},
|
|
5231
|
+
{
|
|
5232
|
+
"kind": "method",
|
|
5233
|
+
"name": "#activate",
|
|
5234
|
+
"privacy": "private",
|
|
5235
|
+
"parameters": [
|
|
5236
|
+
{
|
|
5237
|
+
"name": "route",
|
|
5238
|
+
"type": {
|
|
5239
|
+
"text": "RouteElement | null"
|
|
5240
|
+
},
|
|
5241
|
+
"description": "The matched route, or null when nothing matches"
|
|
5242
|
+
}
|
|
5243
|
+
],
|
|
5244
|
+
"description": "Marks the matched route as active and the previous one as inactive.\nRe-activating the same route is intentional: it retries a failed `src`.\n\nThe previous route is tracked in a plain field rather than read from\nthe #activeRoute signal, so effects calling #handleRouteChange do not\nstart depending on the signal they write."
|
|
4614
5245
|
},
|
|
4615
5246
|
{
|
|
4616
5247
|
"kind": "field",
|
|
@@ -4675,7 +5306,7 @@
|
|
|
4675
5306
|
"name": "SignalWatcherLitElement",
|
|
4676
5307
|
"module": "/src/utils/signal-watcher-lit-element"
|
|
4677
5308
|
},
|
|
4678
|
-
"tagName": "
|
|
5309
|
+
"tagName": "tp-router",
|
|
4679
5310
|
"customElement": true,
|
|
4680
5311
|
"attributes": [
|
|
4681
5312
|
{
|
|
@@ -4698,30 +5329,30 @@
|
|
|
4698
5329
|
"exports": [
|
|
4699
5330
|
{
|
|
4700
5331
|
"kind": "js",
|
|
4701
|
-
"name": "
|
|
5332
|
+
"name": "RouterElement",
|
|
4702
5333
|
"declaration": {
|
|
4703
|
-
"name": "
|
|
4704
|
-
"module": "src/router/
|
|
5334
|
+
"name": "RouterElement",
|
|
5335
|
+
"module": "src/router/router-element.ts"
|
|
4705
5336
|
}
|
|
4706
5337
|
},
|
|
4707
5338
|
{
|
|
4708
5339
|
"kind": "custom-element-definition",
|
|
4709
|
-
"name": "
|
|
5340
|
+
"name": "tp-router",
|
|
4710
5341
|
"declaration": {
|
|
4711
|
-
"name": "
|
|
4712
|
-
"module": "src/router/
|
|
5342
|
+
"name": "RouterElement",
|
|
5343
|
+
"module": "src/router/router-element.ts"
|
|
4713
5344
|
}
|
|
4714
5345
|
}
|
|
4715
5346
|
]
|
|
4716
5347
|
},
|
|
4717
5348
|
{
|
|
4718
5349
|
"kind": "javascript-module",
|
|
4719
|
-
"path": "src/router/
|
|
5350
|
+
"path": "src/router/router-link-element.ts",
|
|
4720
5351
|
"declarations": [
|
|
4721
5352
|
{
|
|
4722
5353
|
"kind": "class",
|
|
4723
|
-
"description": "A custom element that provides navigation links for client-side routing.\n\nThe link handles click events to navigate using the History API, preventing\nfull page reloads. It supports absolute paths, relative paths, and special\nsymbols ('back', 'forward') for browser history navigation.\n\nThe `active` attribute automatically reflects whether the link's path\nmatches the current route, useful for styling active navigation items.\n\n#### Examples\n\n```html\n<!-- Absolute path -->\n<
|
|
4724
|
-
"name": "
|
|
5354
|
+
"description": "A custom element that provides navigation links for client-side routing.\n\nThe link handles click events to navigate using the History API, preventing\nfull page reloads. It supports absolute paths, relative paths, and special\nsymbols ('back', 'forward') for browser history navigation.\n\nThe `active` attribute automatically reflects whether the link's path\nmatches the current route, useful for styling active navigation items.\n\n#### Examples\n\n```html\n<!-- Absolute path -->\n<tp-router-link to=\"/about\">About</tp-router-link>\n\n<!-- Relative path -->\n<tp-router-link to=\"./details\">Details</tp-router-link>\n<tp-router-link to=\"../users\">Back to Users</tp-router-link>\n\n<!-- History navigation -->\n<tp-router-link to=\"back\">← Back</tp-router-link>\n<tp-router-link to=\"forward\">Forward →</tp-router-link>\n```",
|
|
5355
|
+
"name": "RouterLinkElement",
|
|
4725
5356
|
"members": [
|
|
4726
5357
|
{
|
|
4727
5358
|
"kind": "field",
|
|
@@ -4883,32 +5514,32 @@
|
|
|
4883
5514
|
"name": "SignalWatcherLitElement",
|
|
4884
5515
|
"module": "/src/utils/signal-watcher-lit-element"
|
|
4885
5516
|
},
|
|
4886
|
-
"tagName": "
|
|
5517
|
+
"tagName": "tp-router-link",
|
|
4887
5518
|
"customElement": true
|
|
4888
5519
|
}
|
|
4889
5520
|
],
|
|
4890
5521
|
"exports": [
|
|
4891
5522
|
{
|
|
4892
5523
|
"kind": "js",
|
|
4893
|
-
"name": "
|
|
5524
|
+
"name": "RouterLinkElement",
|
|
4894
5525
|
"declaration": {
|
|
4895
|
-
"name": "
|
|
4896
|
-
"module": "src/router/
|
|
5526
|
+
"name": "RouterLinkElement",
|
|
5527
|
+
"module": "src/router/router-link-element.ts"
|
|
4897
5528
|
}
|
|
4898
5529
|
},
|
|
4899
5530
|
{
|
|
4900
5531
|
"kind": "custom-element-definition",
|
|
4901
|
-
"name": "
|
|
5532
|
+
"name": "tp-router-link",
|
|
4902
5533
|
"declaration": {
|
|
4903
|
-
"name": "
|
|
4904
|
-
"module": "src/router/
|
|
5534
|
+
"name": "RouterLinkElement",
|
|
5535
|
+
"module": "src/router/router-link-element.ts"
|
|
4905
5536
|
}
|
|
4906
5537
|
}
|
|
4907
5538
|
]
|
|
4908
5539
|
},
|
|
4909
5540
|
{
|
|
4910
5541
|
"kind": "javascript-module",
|
|
4911
|
-
"path": "src/router/
|
|
5542
|
+
"path": "src/router/router-outlet-element.ts",
|
|
4912
5543
|
"declarations": [
|
|
4913
5544
|
{
|
|
4914
5545
|
"kind": "variable",
|
|
@@ -4916,8 +5547,8 @@
|
|
|
4916
5547
|
},
|
|
4917
5548
|
{
|
|
4918
5549
|
"kind": "class",
|
|
4919
|
-
"description": "A custom element that serves as a rendering target for router content.\n\nThe outlet automatically binds to its parent
|
|
4920
|
-
"name": "
|
|
5550
|
+
"description": "A custom element that serves as a rendering target for router content.\n\nThe outlet automatically binds to its parent tp-router or to a specific router\nidentified by the `for` attribute. When the router's active route changes,\nthe outlet clones and renders the route's template content.\n\nWhile the active route's `src` content is pending, the outlet has the\n`route-loading` attribute; when it failed, the `route-error` attribute.\n\n#### Examples\n\n```html\n<tp-router>\n <tp-route path=\"/\"><template><h1>Home</h1></template></tp-route>\n <tp-router-outlet></tp-router-outlet>\n</tp-router>\n```\n\n```html\n<!-- Bind to a specific router by ID -->\n<tp-router id=\"main-router\">\n <tp-route path=\"/\"><template><h1>Home</h1></template></tp-route>\n</tp-router>\n<tp-router-outlet for=\"main-router\"></tp-router-outlet>\n```",
|
|
5551
|
+
"name": "RouterOutletElement",
|
|
4921
5552
|
"members": [
|
|
4922
5553
|
{
|
|
4923
5554
|
"kind": "field",
|
|
@@ -4954,6 +5585,16 @@
|
|
|
4954
5585
|
},
|
|
4955
5586
|
"default": "{}"
|
|
4956
5587
|
},
|
|
5588
|
+
{
|
|
5589
|
+
"kind": "field",
|
|
5590
|
+
"name": "#renderedNodes",
|
|
5591
|
+
"privacy": "private",
|
|
5592
|
+
"type": {
|
|
5593
|
+
"text": "Node[]"
|
|
5594
|
+
},
|
|
5595
|
+
"default": "[]",
|
|
5596
|
+
"description": "Nodes inserted for the current route (elements and text alike)"
|
|
5597
|
+
},
|
|
4957
5598
|
{
|
|
4958
5599
|
"kind": "field",
|
|
4959
5600
|
"name": "#fragmentUpdateCleaner",
|
|
@@ -4981,7 +5622,7 @@
|
|
|
4981
5622
|
"text": "string | null"
|
|
4982
5623
|
},
|
|
4983
5624
|
"default": "null",
|
|
4984
|
-
"description": "The ID of a specific
|
|
5625
|
+
"description": "The ID of a specific tp-router element to bind to.\nIf not set, binds to the nearest parent tp-router.",
|
|
4985
5626
|
"attribute": "for"
|
|
4986
5627
|
},
|
|
4987
5628
|
{
|
|
@@ -5016,7 +5657,7 @@
|
|
|
5016
5657
|
"text": ""
|
|
5017
5658
|
}
|
|
5018
5659
|
},
|
|
5019
|
-
"description": "Binds this outlet to a
|
|
5660
|
+
"description": "Binds this outlet to a tp-router element.\n\nIf no router is provided, automatically searches for one:\n- If `for` attribute is set, finds router by ID in the same root\n- Otherwise, finds the nearest parent tp-router\n\nUnbinds from the previous router if already bound to a different one.",
|
|
5020
5661
|
"parameters": [
|
|
5021
5662
|
{
|
|
5022
5663
|
"description": "Optional router to bind to",
|
|
@@ -5029,7 +5670,7 @@
|
|
|
5029
5670
|
"name": "bindToRouter",
|
|
5030
5671
|
"return": {
|
|
5031
5672
|
"type": {
|
|
5032
|
-
"text": "
|
|
5673
|
+
"text": "RouterElement | null"
|
|
5033
5674
|
}
|
|
5034
5675
|
},
|
|
5035
5676
|
"parameters": [
|
|
@@ -5037,7 +5678,7 @@
|
|
|
5037
5678
|
"name": "router",
|
|
5038
5679
|
"optional": true,
|
|
5039
5680
|
"type": {
|
|
5040
|
-
"text": "
|
|
5681
|
+
"text": "RouterElement"
|
|
5041
5682
|
}
|
|
5042
5683
|
}
|
|
5043
5684
|
]
|
|
@@ -5050,7 +5691,7 @@
|
|
|
5050
5691
|
"text": "string | null"
|
|
5051
5692
|
},
|
|
5052
5693
|
"default": "null",
|
|
5053
|
-
"description": "The ID of a specific
|
|
5694
|
+
"description": "The ID of a specific tp-router element to bind to.\nIf not set, binds to the nearest parent tp-router.",
|
|
5054
5695
|
"fieldName": "for",
|
|
5055
5696
|
"attribute": "for"
|
|
5056
5697
|
},
|
|
@@ -5101,7 +5742,7 @@
|
|
|
5101
5742
|
"name": "SignalWatcherLitElement",
|
|
5102
5743
|
"module": "/src/utils/signal-watcher-lit-element"
|
|
5103
5744
|
},
|
|
5104
|
-
"tagName": "
|
|
5745
|
+
"tagName": "tp-router-outlet",
|
|
5105
5746
|
"customElement": true
|
|
5106
5747
|
}
|
|
5107
5748
|
],
|
|
@@ -5111,35 +5752,35 @@
|
|
|
5111
5752
|
"name": "PARAMS",
|
|
5112
5753
|
"declaration": {
|
|
5113
5754
|
"name": "PARAMS",
|
|
5114
|
-
"module": "src/router/
|
|
5755
|
+
"module": "src/router/router-outlet-element.ts"
|
|
5115
5756
|
}
|
|
5116
5757
|
},
|
|
5117
5758
|
{
|
|
5118
5759
|
"kind": "js",
|
|
5119
|
-
"name": "
|
|
5760
|
+
"name": "RouterOutletElement",
|
|
5120
5761
|
"declaration": {
|
|
5121
|
-
"name": "
|
|
5122
|
-
"module": "src/router/
|
|
5762
|
+
"name": "RouterOutletElement",
|
|
5763
|
+
"module": "src/router/router-outlet-element.ts"
|
|
5123
5764
|
}
|
|
5124
5765
|
},
|
|
5125
5766
|
{
|
|
5126
5767
|
"kind": "custom-element-definition",
|
|
5127
|
-
"name": "
|
|
5768
|
+
"name": "tp-router-outlet",
|
|
5128
5769
|
"declaration": {
|
|
5129
|
-
"name": "
|
|
5130
|
-
"module": "src/router/
|
|
5770
|
+
"name": "RouterOutletElement",
|
|
5771
|
+
"module": "src/router/router-outlet-element.ts"
|
|
5131
5772
|
}
|
|
5132
5773
|
}
|
|
5133
5774
|
]
|
|
5134
5775
|
},
|
|
5135
5776
|
{
|
|
5136
5777
|
"kind": "javascript-module",
|
|
5137
|
-
"path": "src/router/
|
|
5778
|
+
"path": "src/router/router-param-element.ts",
|
|
5138
5779
|
"declarations": [
|
|
5139
5780
|
{
|
|
5140
5781
|
"kind": "class",
|
|
5141
|
-
"description": "Custom element for displaying dynamic route parameter values.\n\nThis component provides a declarative way to access and display URL\nparameters extracted from dynamic route segments without writing JavaScript.\nIt must be used inside a `<
|
|
5142
|
-
"name": "
|
|
5782
|
+
"description": "Custom element for displaying dynamic route parameter values.\n\nThis component provides a declarative way to access and display URL\nparameters extracted from dynamic route segments without writing JavaScript.\nIt must be used inside a `<tp-router-outlet>` element.\n\n## Features\n\n- **Declarative**: Access params directly in HTML\n- **Reactive**: Automatically updates when route changes\n- **Hierarchical**: Inherits params from parent outlets\n- **Type-safe**: Integrated with TypeScript definitions\n\n## Usage\n\n### Basic Parameter Display\n\n```html\n<tp-router>\n <tp-route path=\"/users/:id\">\n <template>\n <h1>User Profile</h1>\n <p>User ID: <tp-router-param name=\"id\"></tp-router-param></p>\n </template>\n </tp-route>\n <tp-router-outlet></tp-router-outlet>\n</tp-router>\n```\n\nWhen navigating to `/users/123`, the component renders: `User ID: 123`\n\n### Multiple Parameters\n\n```html\n<tp-route path=\"/blog/:year/:month/:slug\">\n <template>\n <article>\n <header>\n <time>\n <tp-router-param name=\"year\"></tp-router-param>-\n <tp-router-param name=\"month\"></tp-router-param>\n </time>\n <h1><tp-router-param name=\"slug\"></tp-router-param></h1>\n </header>\n </article>\n </template>\n</tp-route>\n```\n\nFor `/blog/2024/12/hello-world`, renders:\n```html\n<time>2024-12</time>\n<h1>hello-world</h1>\n```\n\n### Nested Routes with Parameter Inheritance\n\n```html\n<tp-router>\n <tp-route path=\"/projects/:projectId\">\n <template>\n <h1>Project <tp-router-param name=\"projectId\"></tp-router-param></h1>\n\n <!-- Nested outlet inherits projectId parameter -->\n <tp-router-outlet>\n <tp-route path=\"/tasks/:taskId\">\n <template>\n <!-- Both params are available -->\n <h2>Task Details</h2>\n <p>Project: <tp-router-param name=\"projectId\"></tp-router-param></p>\n <p>Task: <tp-router-param name=\"taskId\"></tp-router-param></p>\n </template>\n </tp-route>\n </tp-router-outlet>\n </template>\n </tp-route>\n <tp-router-outlet></tp-router-outlet>\n</tp-router>\n```\n\n### With Styling\n\n```html\n<style>\n tp-router-param {\n font-weight: bold;\n color: var(--primary-color);\n }\n\n tp-router-param[name=\"id\"] {\n font-family: monospace;\n }\n</style>\n\n<tp-route path=\"/users/:id\">\n <template>\n <span>User: <tp-router-param name=\"id\"></tp-router-param></span>\n </template>\n</tp-route>\n```\n\n## How It Works\n\n1. On connection, finds the nearest parent `<tp-router-outlet>`\n2. Accesses the outlet's PARAMS signal containing all route parameters\n3. Computes and displays the value for the specified parameter name\n4. Automatically re-renders when the route (and thus params) change\n\n## Error Handling\n\nThrows an error if not placed within a `<tp-router-outlet>`:\n\n```javascript\n// ✗ Wrong - not inside outlet\n<tp-router-param name=\"id\"></tp-router-param>\n\n// ✓ Correct - inside outlet\n<tp-router-outlet>\n <tp-router-param name=\"id\"></tp-router-param>\n</tp-router-outlet>\n```\n\n## Alternative: Using Attributes\n\nThe parent `<tp-router-outlet>` also exposes parameters as `param-*` attributes,\nwhich can be used as an alternative approach:\n\n```html\n<tp-router-outlet id=\"outlet\">\n <script>\n const outlet = document.getElementById('outlet');\n // Params available as: outlet.getAttribute('param-id')\n </script>\n</tp-router-outlet>\n```\n\nHowever, `<tp-router-param>` is preferred for declarative templates.\n\n#### Examples\n\n**Basic usage**\n\n```html\n<tp-router>\n <tp-route path=\"/product/:sku\">\n <template>\n <h1>Product: <tp-router-param name=\"sku\"></tp-router-param></h1>\n </template>\n </tp-route>\n <tp-router-outlet></tp-router-outlet>\n</tp-router>\n```\n\n**Multiple params with formatting**\n\n```html\n<tp-route path=\"/user/:username/post/:postId\">\n <template>\n <article>\n <p>@<tp-router-param name=\"username\"></tp-router-param></p>\n <p>Post #<tp-router-param name=\"postId\"></tp-router-param></p>\n </article>\n </template>\n</tp-route>\n```",
|
|
5783
|
+
"name": "RouterParamElement",
|
|
5143
5784
|
"members": [
|
|
5144
5785
|
{
|
|
5145
5786
|
"kind": "field",
|
|
@@ -5186,194 +5827,25 @@
|
|
|
5186
5827
|
"name": "SignalWatcherLitElement",
|
|
5187
5828
|
"module": "/src/utils/signal-watcher-lit-element"
|
|
5188
5829
|
},
|
|
5189
|
-
"tagName": "
|
|
5830
|
+
"tagName": "tp-router-param",
|
|
5190
5831
|
"customElement": true
|
|
5191
5832
|
}
|
|
5192
5833
|
],
|
|
5193
5834
|
"exports": [
|
|
5194
5835
|
{
|
|
5195
5836
|
"kind": "js",
|
|
5196
|
-
"name": "
|
|
5197
|
-
"declaration": {
|
|
5198
|
-
"name": "ThaRouterParam",
|
|
5199
|
-
"module": "src/router/tha-router-param.ts"
|
|
5200
|
-
}
|
|
5201
|
-
},
|
|
5202
|
-
{
|
|
5203
|
-
"kind": "custom-element-definition",
|
|
5204
|
-
"name": "tha-router-param",
|
|
5205
|
-
"declaration": {
|
|
5206
|
-
"name": "ThaRouterParam",
|
|
5207
|
-
"module": "src/router/tha-router-param.ts"
|
|
5208
|
-
}
|
|
5209
|
-
}
|
|
5210
|
-
]
|
|
5211
|
-
},
|
|
5212
|
-
{
|
|
5213
|
-
"kind": "javascript-module",
|
|
5214
|
-
"path": "src/router/tha-router.ts",
|
|
5215
|
-
"declarations": [
|
|
5216
|
-
{
|
|
5217
|
-
"kind": "class",
|
|
5218
|
-
"description": "A custom element that manages client-side routing for single-page applications.\n\nThe router watches for navigation events and matches the current URL against\nregistered routes (tha-route elements), rendering the matching route's content\nin a tha-router-outlet element.\n\n#### Examples\n\n```html\n<tha-router history=\"browser\">\n <tha-route path=\"/\">\n <template><h1>Home</h1></template>\n </tha-route>\n <tha-route path=\"/about\">\n <template><h1>About</h1></template>\n </tha-route>\n <tha-router-outlet></tha-router-outlet>\n</tha-router>\n```",
|
|
5219
|
-
"name": "ThaRouter",
|
|
5220
|
-
"members": [
|
|
5221
|
-
{
|
|
5222
|
-
"kind": "field",
|
|
5223
|
-
"name": "#routeChildObserver",
|
|
5224
|
-
"privacy": "private",
|
|
5225
|
-
"default": "new MutationObserver((mutations) => { const childListMutations = mutations.filter(mutation => mutation.type === 'childList'); if (!childListMutations.length) return; this.#routeEls.set( Array.from(this.children).filter(child => child instanceof ThaRoute).map(routeEl => new WeakRef(routeEl)) ); })",
|
|
5226
|
-
"description": "Observes changes to child elements to detect when routes are added or removed.\nUpdates the #routeEls signal whenever tha-route children change."
|
|
5227
|
-
},
|
|
5228
|
-
{
|
|
5229
|
-
"kind": "field",
|
|
5230
|
-
"name": "#routeChildrenEffectCleaner",
|
|
5231
|
-
"privacy": "private",
|
|
5232
|
-
"default": "noop",
|
|
5233
|
-
"description": "Cleanup function for the route children rendering effect"
|
|
5234
|
-
},
|
|
5235
|
-
{
|
|
5236
|
-
"kind": "field",
|
|
5237
|
-
"name": "#historyTypeEffectCleaner",
|
|
5238
|
-
"privacy": "private",
|
|
5239
|
-
"default": "noop",
|
|
5240
|
-
"description": "Cleanup function for the history type change effect"
|
|
5241
|
-
},
|
|
5242
|
-
{
|
|
5243
|
-
"kind": "field",
|
|
5244
|
-
"name": "#historyListenerRemover",
|
|
5245
|
-
"privacy": "private",
|
|
5246
|
-
"default": "noop",
|
|
5247
|
-
"description": "Cleanup function to remove history listener"
|
|
5248
|
-
},
|
|
5249
|
-
{
|
|
5250
|
-
"kind": "field",
|
|
5251
|
-
"name": "#routeEls",
|
|
5252
|
-
"privacy": "private",
|
|
5253
|
-
"description": "Signal containing weak references to all tha-route children"
|
|
5254
|
-
},
|
|
5255
|
-
{
|
|
5256
|
-
"kind": "field",
|
|
5257
|
-
"name": "#activeRoute",
|
|
5258
|
-
"privacy": "private",
|
|
5259
|
-
"description": "Signal containing weak reference to the currently active route"
|
|
5260
|
-
},
|
|
5261
|
-
{
|
|
5262
|
-
"kind": "field",
|
|
5263
|
-
"name": "#outlet",
|
|
5264
|
-
"privacy": "private",
|
|
5265
|
-
"description": "Signal containing weak reference to the assigned outlet element"
|
|
5266
|
-
},
|
|
5267
|
-
{
|
|
5268
|
-
"kind": "field",
|
|
5269
|
-
"name": "#handleRouteChange",
|
|
5270
|
-
"privacy": "private",
|
|
5271
|
-
"description": "Handles navigation events by matching the new URL against registered routes.\nUpdates the active route signal when a match is found.",
|
|
5272
|
-
"parameters": [
|
|
5273
|
-
{
|
|
5274
|
-
"description": "The history update containing the new location",
|
|
5275
|
-
"name": "update"
|
|
5276
|
-
}
|
|
5277
|
-
]
|
|
5278
|
-
},
|
|
5279
|
-
{
|
|
5280
|
-
"kind": "field",
|
|
5281
|
-
"name": "history",
|
|
5282
|
-
"type": {
|
|
5283
|
-
"text": "HistoryType | undefined"
|
|
5284
|
-
},
|
|
5285
|
-
"default": "undefined",
|
|
5286
|
-
"description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
|
|
5287
|
-
"attribute": "history",
|
|
5288
|
-
"inheritedFrom": {
|
|
5289
|
-
"name": "HistoryManaged",
|
|
5290
|
-
"module": "src/router/history-managed.ts"
|
|
5291
|
-
}
|
|
5292
|
-
},
|
|
5293
|
-
{
|
|
5294
|
-
"kind": "field",
|
|
5295
|
-
"name": "#ownHistoryType",
|
|
5296
|
-
"privacy": "private",
|
|
5297
|
-
"description": "Signal for own history type",
|
|
5298
|
-
"inheritedFrom": {
|
|
5299
|
-
"name": "HistoryManaged",
|
|
5300
|
-
"module": "src/router/history-managed.ts"
|
|
5301
|
-
}
|
|
5302
|
-
},
|
|
5303
|
-
{
|
|
5304
|
-
"kind": "field",
|
|
5305
|
-
"name": "#parentHistoryType",
|
|
5306
|
-
"privacy": "private",
|
|
5307
|
-
"description": "Computed signal for parent history type",
|
|
5308
|
-
"inheritedFrom": {
|
|
5309
|
-
"name": "HistoryManaged",
|
|
5310
|
-
"module": "src/router/history-managed.ts"
|
|
5311
|
-
}
|
|
5312
|
-
},
|
|
5313
|
-
{
|
|
5314
|
-
"kind": "field",
|
|
5315
|
-
"name": "[HISTORY_TYPE]",
|
|
5316
|
-
"description": "Resolved history type: own → parent → global",
|
|
5317
|
-
"inheritedFrom": {
|
|
5318
|
-
"name": "HistoryManaged",
|
|
5319
|
-
"module": "src/router/history-managed.ts"
|
|
5320
|
-
}
|
|
5321
|
-
},
|
|
5322
|
-
{
|
|
5323
|
-
"kind": "field",
|
|
5324
|
-
"name": "[HISTORY]",
|
|
5325
|
-
"description": "Resolved history instance: own → parent → global",
|
|
5326
|
-
"inheritedFrom": {
|
|
5327
|
-
"name": "HistoryManaged",
|
|
5328
|
-
"module": "src/router/history-managed.ts"
|
|
5329
|
-
}
|
|
5330
|
-
}
|
|
5331
|
-
],
|
|
5332
|
-
"mixins": [
|
|
5333
|
-
{
|
|
5334
|
-
"name": "HistoryManaged",
|
|
5335
|
-
"module": "/src/router/history-managed"
|
|
5336
|
-
}
|
|
5337
|
-
],
|
|
5338
|
-
"superclass": {
|
|
5339
|
-
"name": "SignalWatcherLitElement",
|
|
5340
|
-
"module": "/src/utils/signal-watcher-lit-element"
|
|
5341
|
-
},
|
|
5342
|
-
"tagName": "tha-router",
|
|
5343
|
-
"customElement": true,
|
|
5344
|
-
"attributes": [
|
|
5345
|
-
{
|
|
5346
|
-
"name": "history",
|
|
5347
|
-
"type": {
|
|
5348
|
-
"text": "HistoryType | undefined"
|
|
5349
|
-
},
|
|
5350
|
-
"default": "undefined",
|
|
5351
|
-
"description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
|
|
5352
|
-
"fieldName": "history",
|
|
5353
|
-
"attribute": "history",
|
|
5354
|
-
"inheritedFrom": {
|
|
5355
|
-
"name": "HistoryManaged",
|
|
5356
|
-
"module": "src/router/history-managed.ts"
|
|
5357
|
-
}
|
|
5358
|
-
}
|
|
5359
|
-
]
|
|
5360
|
-
}
|
|
5361
|
-
],
|
|
5362
|
-
"exports": [
|
|
5363
|
-
{
|
|
5364
|
-
"kind": "js",
|
|
5365
|
-
"name": "ThaRouter",
|
|
5837
|
+
"name": "RouterParamElement",
|
|
5366
5838
|
"declaration": {
|
|
5367
|
-
"name": "
|
|
5368
|
-
"module": "src/router/
|
|
5839
|
+
"name": "RouterParamElement",
|
|
5840
|
+
"module": "src/router/router-param-element.ts"
|
|
5369
5841
|
}
|
|
5370
5842
|
},
|
|
5371
5843
|
{
|
|
5372
5844
|
"kind": "custom-element-definition",
|
|
5373
|
-
"name": "
|
|
5845
|
+
"name": "tp-router-param",
|
|
5374
5846
|
"declaration": {
|
|
5375
|
-
"name": "
|
|
5376
|
-
"module": "src/router/
|
|
5847
|
+
"name": "RouterParamElement",
|
|
5848
|
+
"module": "src/router/router-param-element.ts"
|
|
5377
5849
|
}
|
|
5378
5850
|
}
|
|
5379
5851
|
]
|