Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89cba595a7 | ||
|
|
02456263e0 | ||
|
|
a00f3134a5 | ||
|
|
d1e2c48641 | ||
|
|
b2d0708a51 | ||
|
|
2a8e43aff0 | ||
|
|
a9d1b7e23d | ||
|
|
8f5ebc425c | ||
|
|
809a6d2a45 | ||
|
|
5d34943550 | ||
|
|
f81cf0034b | ||
|
|
76a68e4629 | ||
|
|
53fb2905fd | ||
|
|
a1a8ba85bb | ||
|
|
72e8c23ecd | ||
|
|
d584c93c21 | ||
|
|
0e51cf1595 | ||
|
|
a9556e4901 | ||
|
|
505a7caeaa | ||
|
|
161eb6ad3c | ||
|
|
5d393395d3 | ||
|
|
ac1b23751d | ||
|
|
d9a095dea4 | ||
|
|
3dab196131 | ||
|
|
7f73379a7c | ||
|
|
abda804f39 | ||
|
|
b9858daaab | ||
|
|
0807bbe045 | ||
|
|
0269306a15 | ||
|
|
be3fcd7a70 | ||
|
|
4921d70e32 | ||
|
|
bef34677cd | ||
|
|
2e393282c9 | ||
|
|
ecfff506b9 | ||
|
|
87161a14a5 | ||
|
|
b1893f4ef6 | ||
|
|
fa5244e544 | ||
|
|
d0e18dab3e | ||
|
|
e4d8d28253 | ||
|
|
77e5de20c8 | ||
|
|
17ea00ef3c | ||
|
|
04975203b7 | ||
|
|
2ad4148057 | ||
|
|
5b23d0a963 | ||
|
|
987d118b0b | ||
|
|
a380c95899 | ||
|
|
fe60bd2490 | ||
|
|
ba27560096 | ||
|
|
dcca52d3b2 | ||
|
|
e04eccc868 | ||
|
|
5266d14dac | ||
|
|
4477c02512 | ||
|
|
d55d438ef0 | ||
|
|
70135edf3a | ||
|
|
2ac03a16d4 | ||
|
|
31c83d9d12 | ||
|
|
0c34dde9e8 | ||
|
|
f1794e755a | ||
|
|
87f2094890 | ||
|
|
0963fe20b7 | ||
|
|
19fbe0bde7 | ||
|
|
06a995eebb | ||
|
|
71938d06a2 | ||
|
|
e81ddbdb4b | ||
|
|
89356a9824 | ||
|
|
d3759f9ee1 | ||
|
|
8b041ece8f | ||
|
|
63e60ec44c | ||
|
|
4350c67e44 | ||
|
|
b4ade9d887 | ||
|
|
b63d12b0e4 | ||
|
|
d09ddb6404 | ||
|
|
1c3f59def5 | ||
|
|
fdd70c6607 | ||
|
|
d38cbac770 | ||
|
|
30f23ae9f5 | ||
|
|
707325863d | ||
|
|
5688365fb3 | ||
|
|
9862cec6e8 | ||
|
|
b18e5a9228 | ||
|
|
c1450932cb | ||
|
|
0a299f7118 | ||
|
|
51efbde09f | ||
|
|
eea9396f11 | ||
|
|
35e276a33d | ||
|
|
2586fb26b2 | ||
|
|
c6ed6b629e | ||
|
|
d5a55f8541 | ||
|
|
26aac36334 | ||
|
|
50fe570566 | ||
|
|
fa5e7659fc | ||
|
|
3b85413a05 | ||
|
|
302481846e | ||
|
|
8e22a3dcd1 | ||
|
|
077168dac9 | ||
|
|
e4debc5ecb | ||
|
|
de8b11e892 | ||
|
|
64bbbf997b | ||
|
|
c7f561ce41 | ||
|
|
116d250255 | ||
|
|
49b727ca0d | ||
|
|
811a814ef9 | ||
|
|
54d5a17c13 | ||
|
|
fccc260627 | ||
|
|
f946a3ee3a | ||
|
|
d582e6208e | ||
|
|
625d54fdad | ||
|
|
841fb96543 | ||
|
|
9dab13aef7 | ||
|
|
df6d6f8aeb | ||
|
|
875bfd8300 | ||
|
|
cb640b6208 | ||
|
|
6a032e54cd | ||
|
|
a3902ce3bb | ||
|
|
8237f1ccaa | ||
|
|
90bd5e911e | ||
|
|
8297018cb5 | ||
|
|
0f8ade3867 | ||
|
|
7f7f346af4 | ||
|
|
1b7e8aac04 | ||
|
|
8d36e66a21 | ||
|
|
8369c36e88 | ||
|
|
2e5b6e0d31 | ||
|
|
2752ad19b2 | ||
|
|
b4e942b34f | ||
|
|
1e33313473 | ||
|
|
45c04dda6c | ||
|
|
b1235589bb | ||
|
|
e2fbb3e5fb | ||
|
|
90aee31ff7 | ||
|
|
b3ddc6e77f | ||
|
|
871ad4b97a | ||
|
|
24d92f8f1d | ||
|
|
06fa4a528d | ||
|
|
3992b01883 | ||
|
|
909a6cf1c4 | ||
|
|
cdd0623792 | ||
|
|
0fd63998b9 | ||
|
|
7466383539 | ||
|
|
31ea9450b6 | ||
|
|
e70bf214b8 | ||
|
|
fb46c75128 | ||
|
|
4b2ed58009 | ||
|
|
c86778cc7b | ||
|
|
99bb8f64f6 | ||
|
|
3691e75d77 | ||
|
|
3904e85e61 | ||
|
|
4fcee649df | ||
|
|
e4bf096aaf | ||
|
|
cdb0d80cde | ||
|
|
e358a4f418 | ||
|
|
0f6c84f976 | ||
|
|
63788874db | ||
|
|
ac450cbd28 | ||
|
|
2ffcb6a012 | ||
|
|
998b9207f3 | ||
|
|
c290bea476 | ||
|
|
f2ed84a256 | ||
|
|
7f3f55c94e | ||
|
|
ffcf9f9034 | ||
|
|
6116bc2627 | ||
|
|
b7c9bb024a | ||
|
|
8c412f6748 | ||
|
|
53ce49e929 | ||
|
|
b27268f7db | ||
|
|
2c1b968bff | ||
|
|
3342166f7f | ||
|
|
72f09369de | ||
|
|
6e7ff0defc | ||
|
|
193e7f565a | ||
|
|
65bcbb4777 | ||
|
|
98975ec0f5 | ||
|
|
2e9b493a05 | ||
|
|
8f1f7fe9f3 | ||
|
|
93b4fa449b | ||
|
|
ee16638d07 | ||
|
|
2e76547a79 | ||
|
|
d7b25e79aa | ||
|
|
e0efa5f28d | ||
|
|
1b98f9d99f | ||
|
|
3bb4ba919f | ||
|
|
9cf31324ff | ||
|
|
1af1b48afb | ||
|
|
86ef073aca | ||
|
|
33193e3749 | ||
|
|
9d2dc11e08 | ||
|
|
44da0e40c5 | ||
|
|
cafe8e6541 | ||
|
|
66858926cc | ||
|
|
c37b691dd5 | ||
|
|
0e3ba9922c | ||
|
|
36992fc01b | ||
|
|
5f2aab6cbe | ||
|
|
fd90487afc | ||
|
|
06b9b1fc59 | ||
|
|
0dfccdf016 | ||
|
|
69e0817503 | ||
|
|
19629000ca | ||
|
|
d13cd3333c | ||
|
|
20c396d8d7 | ||
|
|
b6903a0ad8 | ||
|
|
8d898d7170 | ||
|
|
7dd69094d1 | ||
|
|
e79e5cd235 | ||
|
|
86a051ca63 | ||
|
|
28d0338ee0 | ||
|
|
3ec9271e83 | ||
|
|
19dd66469c | ||
|
|
43d61fe909 | ||
|
|
1038a7f682 | ||
|
|
947091adf7 | ||
|
|
728aa746a0 | ||
|
|
32da247bc1 | ||
|
|
f21bb0f097 | ||
|
|
e6a5af1a96 | ||
|
|
36a0c6b103 | ||
|
|
e63653cbe1 | ||
|
|
4ca8139f77 | ||
|
|
24caaad7d9 | ||
|
|
8c2a507fcf | ||
|
|
c76f2a2556 | ||
|
|
0d7f507677 | ||
|
|
b3155d9603 | ||
|
|
9139a01e18 | ||
|
|
0541db0f28 | ||
|
|
200678a619 | ||
|
|
66556ea45c | ||
|
|
b1c23f8dee | ||
|
|
81f2fc1a84 | ||
|
|
1543daa010 | ||
|
|
500d15fec0 | ||
|
|
a30dfb2886 | ||
|
|
f16c5fb13d | ||
|
|
a134c76d50 | ||
|
|
6753d715e2 | ||
|
|
c3722987c5 | ||
|
|
7f96d8c725 | ||
|
|
7666f2d97a | ||
|
|
b73bb075fd | ||
|
|
486ae96765 | ||
|
|
eca4c14f05 | ||
|
|
3dbc0c8263 | ||
|
|
81edbf2387 | ||
|
|
cb0b2124ec | ||
|
|
eef739789f | ||
|
|
98fa89ea57 | ||
|
|
107c075d88 | ||
|
|
2f3effb33f | ||
|
|
c580023063 | ||
|
|
0f77aaf2db | ||
|
|
cc7291248f | ||
|
|
81d9ff1995 | ||
|
|
71c7d80e54 | ||
|
|
95cd90d790 | ||
|
|
c0fb92b87f | ||
|
|
9de2a0760e | ||
|
|
38efaa1e8f | ||
|
|
502d1f7077 | ||
|
|
01b0de6e80 | ||
|
|
7d8e33e12c | ||
|
|
1069d8b4ab | ||
|
|
9992cc07a3 | ||
|
|
3aed6eee31 | ||
|
|
c470b85c34 | ||
|
|
3a2ab6ec27 | ||
|
|
63eee58f89 | ||
|
|
0642e2112b | ||
|
|
e6973d0c55 | ||
|
|
7668a3cf62 | ||
|
|
cfddc2e642 | ||
|
|
1cef0acb10 | ||
|
|
c5e4047206 | ||
|
|
63c9ee02a5 | ||
|
|
2e7fe14315 | ||
|
|
f61e47c698 | ||
|
|
922f43387b | ||
|
|
73526e40b8 | ||
|
|
7ce073d3fe | ||
|
|
1b07d10212 | ||
|
|
8983749600 | ||
|
|
fa8d76e20c | ||
|
|
91fa34ebc7 | ||
|
|
14fd26b38f | ||
|
|
2301be8f6c | ||
|
|
94cf9b52b6 | ||
|
|
00e7012192 | ||
|
|
2204753a37 | ||
|
|
cd791f735c | ||
|
|
b9c65a794d | ||
|
|
b16eed45a3 | ||
|
|
ed44918e29 | ||
|
|
51a431e6ad | ||
|
|
dab04ff606 | ||
|
|
1c6540e770 | ||
|
|
02eabdf6c5 | ||
|
|
5a2e8e9bf4 | ||
|
|
5c8f2468be | ||
|
|
0d757ad96a | ||
|
|
e80b5acb0c | ||
|
|
41bf08cee2 | ||
|
|
3c3ce88192 | ||
|
|
8c0f457f23 | ||
|
|
bc14bfea99 | ||
|
|
8af821f5b8 | ||
|
|
32cb024b42 | ||
|
|
c386872443 | ||
|
|
4c95d03958 | ||
|
|
8a54bf0a71 | ||
|
|
159ceef81e | ||
|
|
c9068ed4c0 | ||
|
|
acab74d2b9 | ||
|
|
3d7ed854c7 | ||
|
|
46afd68218 | ||
|
|
6342807b26 | ||
|
|
03f5914ecf | ||
|
|
f97439c703 | ||
|
|
352c80b8b6 | ||
|
|
cecdb9c0cd | ||
|
|
052f07b103 | ||
|
|
5f31f277db | ||
|
|
793288593c | ||
|
|
bc637cc951 | ||
|
|
993a314eb6 | ||
|
|
5b7fc526bc | ||
|
|
dfb62b67e0 | ||
|
|
b85a855b7e | ||
|
|
57abf83ec5 | ||
|
|
a9eba9ddb4 | ||
|
|
1286103494 | ||
|
|
b9cd35bf20 | ||
|
|
cc15712e03 | ||
|
|
8afeb4c6c9 | ||
|
|
ccb3e41441 | ||
|
|
b74a92328c | ||
|
|
b01be99602 | ||
|
|
279de8512c | ||
|
|
6f1b29a40a | ||
|
|
a76a78c568 | ||
|
|
2207229f25 | ||
|
|
eaee160c88 | ||
|
|
b4c51b089a | ||
|
|
db473aeb45 | ||
|
|
ce43527435 | ||
|
|
174d2ec88d | ||
|
|
7152cfd6c2 | ||
|
|
9e254846f5 | ||
|
|
a1142adfe5 | ||
|
|
2d0f3aa119 | ||
|
|
587e450cdf | ||
|
|
e48b0305d5 | ||
|
|
ecd4406c42 | ||
|
|
fa1c145f94 | ||
|
|
062ca67692 | ||
|
|
0615f89ef8 | ||
|
|
67c8bf0565 | ||
|
|
f0d22ccc26 | ||
|
|
65e1cfabfe | ||
|
|
ac4fbbf247 | ||
|
|
1be0c8eb21 | ||
|
|
f57e4988b0 | ||
|
|
0df64cf8b8 | ||
|
|
444dc18700 | ||
|
|
aacebf599d | ||
|
|
8839341860 | ||
|
|
1557658d90 | ||
|
|
070faa8453 | ||
|
|
020dcf93b7 | ||
|
|
96e62cc26d | ||
|
|
c8b64b1e99 | ||
|
|
0320bf2926 | ||
|
|
668aacae7e | ||
|
|
8fee03af6d | ||
|
|
ce43b6c4af | ||
|
|
38c00319ce | ||
|
|
c67103ae33 | ||
|
|
30b2b9cdf5 | ||
|
|
ced468a360 | ||
|
|
354195d163 | ||
|
|
a3b73a5e3a | ||
|
|
bb6b8c122e | ||
|
|
3d036a08a3 | ||
|
|
1d5e097556 | ||
|
|
94bc599203 | ||
|
|
55fcc4b9f2 | ||
|
|
9f77b8c7a2 | ||
|
|
6398aa0a11 | ||
|
|
1c4399400f | ||
|
|
d1e210990f | ||
|
|
8ac5362c7c | ||
|
|
2542b5ac73 | ||
|
|
510232d6a1 | ||
|
|
2466debdaa | ||
|
|
c4dd4a24aa | ||
|
|
a3ae03e507 | ||
|
|
c14a19435c | ||
|
|
4c700e2beb | ||
|
|
373aad41d5 | ||
|
|
1326c53ae9 | ||
|
|
ce2a55406f | ||
|
|
af5f4019d3 | ||
|
|
81086f94bb | ||
|
|
7baec40185 | ||
|
|
a41f237f74 | ||
|
|
9ca5040457 | ||
|
|
aae7600497 | ||
|
|
b847b3b9c0 | ||
|
|
d8a17ea0db | ||
|
|
c9f08cd1c7 | ||
|
|
5611991490 | ||
|
|
7f24e5ebeb | ||
|
|
b4b6b75c0e | ||
|
|
5c1c6e195f | ||
|
|
12ccf40284 | ||
|
|
d6757c5228 | ||
|
|
367d7f8b30 | ||
|
|
6157a6123d | ||
|
|
7b3a8ae0bb | ||
|
|
b2cb08e0f1 | ||
|
|
50301e6afb | ||
|
|
266411cdc4 | ||
|
|
7e6c9d2106 | ||
|
|
d7b0171f9a | ||
|
|
cef8b5e20e | ||
|
|
34c7f7c0ad | ||
|
|
f293988f4f | ||
|
|
0ad2529e1d | ||
|
|
437946f7f3 | ||
|
|
b5edd7b8b2 | ||
|
|
52ccef83d3 | ||
|
|
6b324459ee | ||
|
|
33e9d3a125 | ||
|
|
6020525ad2 | ||
|
|
b3a147bb89 | ||
|
|
03bea5cfb4 | ||
|
|
3b3e212517 | ||
|
|
bf2f7059d1 | ||
|
|
803641b5ef | ||
|
|
cb0f2b789f | ||
|
|
696575a925 | ||
|
|
c96037ff3f | ||
|
|
76f4f6d90b | ||
|
|
5c9a238abf | ||
|
|
54dde87b47 |
@@ -0,0 +1,32 @@
|
||||
name: 🐛 Bug Report
|
||||
description: Report a bug in the ion-icon component. Incorrect icons should use the "Incorrect Icon" template instead.
|
||||
labels: ['triage']
|
||||
title: 'bug: '
|
||||
body:
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Current Behavior
|
||||
description: A clear description of what the bug is and how it manifests.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Expected Behavior
|
||||
description: A clear description of what you expected to happen.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Steps to Reproduce
|
||||
description: Please explain the steps required to duplicate this issue.
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
attributes:
|
||||
label: Code Reproduction URL
|
||||
description: Please provide an application with the minimum code required to reproduce the issue. This is the best way to ensure this issue is triaged quickly. Issues without a code reproduction may be closed if the Ionic Team cannot reproduce the issue you are reporting.
|
||||
placeholder: https://github.com/...
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional Information
|
||||
description: List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc.
|
||||
@@ -0,0 +1,23 @@
|
||||
name: 💡 Feature Request
|
||||
description: Suggest a new feature for the ion-icon component. Icon requests should use the "Icon Request" template instead.
|
||||
labels: ['triage']
|
||||
title: 'feat: '
|
||||
body:
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe Problem
|
||||
description: A clear and concise description of what the problem is. Ex. I am always frustrated when [...]
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe Preferred Solution
|
||||
description: A clear and concise description of what you want to happen.
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe Alternatives
|
||||
description: A clear and concise description of any alternative solutions or features you have considered.
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional Information
|
||||
description: Add any other context or screenshots about the feature request here.
|
||||
@@ -0,0 +1,19 @@
|
||||
name: 🚀 Icon Request
|
||||
description: Request a new icon
|
||||
labels: ['triage']
|
||||
title: 'icon request: '
|
||||
body:
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe the Icon
|
||||
description: A clear and concise description of the icon you would like added.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Links to Examples
|
||||
description: Add links to any examples of the icon in other libraries that you like.
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional Information
|
||||
description: Add any other context about the icon request here.
|
||||
@@ -0,0 +1,17 @@
|
||||
name: 😒 Incorrect Icon
|
||||
description: Report an incorrect icon
|
||||
labels: ['triage']
|
||||
title: 'incorrect icon: '
|
||||
body:
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe the Issue
|
||||
description: A clear description of what is wrong with the icon. Please include any relevant screenshots.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Expected Behavior
|
||||
description: A clear description of what the icon should look like. Please include any relevant screenshots.
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1,105 @@
|
||||
triage:
|
||||
label: triage
|
||||
dryRun: false
|
||||
|
||||
closeAndLock:
|
||||
labels:
|
||||
- label: 'ionitron: support'
|
||||
message: >
|
||||
Thanks for the issue! This issue appears to be a support request. We use this issue tracker exclusively for
|
||||
bug reports and feature requests. Please use our [forum](https://forum.ionicframework.com/) for help or
|
||||
questions about Ionicons.
|
||||
|
||||
|
||||
Thank you for using Ionicons!
|
||||
- label: 'ionitron: missing template'
|
||||
message: >
|
||||
Thanks for the issue! It appears that you have not filled out the provided issue template. We use this issue
|
||||
template in order to gather more information and further assist you. Please create a new issue and ensure the
|
||||
template is fully filled out.
|
||||
|
||||
|
||||
Thank you for using Ionicons!
|
||||
close: true
|
||||
lock: true
|
||||
dryRun: false
|
||||
|
||||
comment:
|
||||
labels:
|
||||
- label: 'help wanted'
|
||||
message: >
|
||||
This issue has been labeled as `help wanted`. This label is added to issues
|
||||
that we believe would be good for contributors.
|
||||
|
||||
|
||||
If you'd like to work on this issue, please comment here letting us know that
|
||||
you would like to submit a pull request for it. This helps us to keep track of
|
||||
the pull request and make sure there isn't duplicated effort.
|
||||
|
||||
|
||||
For a guide on how to create a pull request and test this project locally to see
|
||||
your changes, see our [contributing documentation](https://github.com/ionic-team/ionicons/blob/main/.github/CONTRIBUTING.md#creating-a-pull-request).
|
||||
|
||||
|
||||
Thank you!
|
||||
- label: 'ionitron: needs reproduction'
|
||||
message: >
|
||||
Thanks for the issue! This issue has been labeled as `needs reproduction`. This label is added to issues that
|
||||
need a code reproduction.
|
||||
|
||||
|
||||
Please reproduce this issue and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a
|
||||
reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
|
||||
|
||||
|
||||
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was
|
||||
not enough for our team to reproduce the issue.
|
||||
- label: 'community feedback wanted'
|
||||
message: >
|
||||
This issue has been labeled as `community feedback wanted`. This label is added to issues that we would like to hear from the community on before moving forward with any final decision on the feature request.
|
||||
|
||||
|
||||
If the requested feature is something you would find useful for your applications, please react to the original post with 👍 (`+1`). If you would like to provide an additional use case for the feature, please post a comment.
|
||||
|
||||
|
||||
The team will review this feedback and make a final decision. Any decision will be posted on this thread, but please note that we may ultimately decide not to pursue this feature.
|
||||
|
||||
|
||||
Thank you!
|
||||
dryRun: false
|
||||
|
||||
noReply:
|
||||
days: 14
|
||||
maxIssuesPerRun: 100
|
||||
label: 'needs: reply'
|
||||
responseLabel: triage
|
||||
exemptProjects: true
|
||||
exemptMilestones: true
|
||||
message: >
|
||||
Thanks for the issue! This issue is being closed due to the lack of a reply. If this is still
|
||||
an issue with the latest version of Ionicons, please create a new issue and ensure the
|
||||
template is fully filled out.
|
||||
|
||||
|
||||
Thank you for using Ionicons!
|
||||
close: true
|
||||
lock: true
|
||||
dryRun: false
|
||||
|
||||
noReproduction:
|
||||
days: 14
|
||||
maxIssuesPerRun: 100
|
||||
label: 'ionitron: needs reproduction'
|
||||
responseLabel: triage
|
||||
exemptProjects: true
|
||||
exemptMilestones: true
|
||||
message: >
|
||||
Thanks for the issue! This issue is being closed due to the lack of a code reproduction. If this is still
|
||||
an issue with the latest version of Ionicons, please create a new issue and ensure the
|
||||
template is fully filled out.
|
||||
|
||||
|
||||
Thank you for using Ionicons!
|
||||
close: true
|
||||
lock: true
|
||||
dryRun: false
|
||||
@@ -0,0 +1,34 @@
|
||||
name: 'Build Ionicons'
|
||||
description: 'Build Ionicons'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
# Checkout the latest commit in this branch
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- uses: actions/setup-node@v4
|
||||
|
||||
- name: Cache Node Modules
|
||||
uses: actions/cache@v4
|
||||
env:
|
||||
cache-name: node-modules
|
||||
with:
|
||||
path: ./node_modules
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./package-lock.json') }}-v1
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
shell: bash
|
||||
- name: Build
|
||||
run: npm run build
|
||||
shell: bash
|
||||
- uses: ./.github/workflows/actions/upload-archive
|
||||
with:
|
||||
name: ionicons-build
|
||||
output: IoniconsBuild.zip
|
||||
paths: dist components icons www
|
||||
- uses: ./.github/workflows/actions/upload-archive
|
||||
with:
|
||||
name: ionicons-src
|
||||
output: IoniconsSrc.zip
|
||||
paths: src
|
||||
@@ -0,0 +1,19 @@
|
||||
name: 'Archive Download'
|
||||
description: 'Downloads and decompresses an archive from a previous job'
|
||||
inputs:
|
||||
path:
|
||||
description: 'Input archive name'
|
||||
filename:
|
||||
description: 'Input file name'
|
||||
name:
|
||||
description: 'Archive name'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: ${{ inputs.path }}
|
||||
- name: Exract Archive
|
||||
run: unzip -q -o ${{ inputs.path }}/${{ inputs.filename }}
|
||||
shell: bash
|
||||
@@ -0,0 +1,63 @@
|
||||
name: 'Release'
|
||||
description: 'Releases a package'
|
||||
inputs:
|
||||
version:
|
||||
description: 'The type of version to release.'
|
||||
tag:
|
||||
description: 'The tag to publish to on NPM.'
|
||||
working-directory:
|
||||
description: 'The directory of the package.'
|
||||
folder:
|
||||
default: './'
|
||||
description: 'A folder containing a package.json file.'
|
||||
createRelease:
|
||||
description: 'Create a release on GitHub.'
|
||||
default: 'false'
|
||||
ghToken:
|
||||
description: 'The GitHub authentication token required to create a release.'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22.x
|
||||
- name: Install latest npm
|
||||
run: npm install -g npm@latest
|
||||
shell: bash
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
- name: Set Git User
|
||||
run: |
|
||||
git config user.name ionitron
|
||||
git config user.email hi@ionicframework.com
|
||||
shell: bash
|
||||
- name: Update Version
|
||||
id: update_version
|
||||
run: |
|
||||
npm version ${{ inputs.version }}
|
||||
echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
- name: Run Build
|
||||
run: npm run build
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
- name: Publish to NPM
|
||||
run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }} --provenance
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
|
||||
- name: Create Release
|
||||
if: ${{ inputs.createRelease == 'true' }}
|
||||
run: |
|
||||
git remote set-url origin https://${GH_TOKEN}:x-oauth-basic@github.com/ionic-team/ionicons.git
|
||||
git remote -v
|
||||
git push origin main --tags
|
||||
gh release create "v$VERSION" --title "v$VERSION" --generate-notes
|
||||
shell: bash
|
||||
env:
|
||||
GH_TOKEN: ${{ inputs.ghToken }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
@@ -0,0 +1,84 @@
|
||||
name: 'Test E2E'
|
||||
description: 'Test E2E'
|
||||
inputs:
|
||||
shard:
|
||||
description: 'Playwright Test Shard (ex: 2)'
|
||||
totalShards:
|
||||
description: 'Playwright total number of test shards (ex: 4)'
|
||||
update:
|
||||
description: 'Whether or not to update the reference snapshots'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/setup-node@v4
|
||||
|
||||
- name: Cache Node Modules
|
||||
uses: actions/cache@v4
|
||||
env:
|
||||
cache-name: node-modules
|
||||
with:
|
||||
path: ./node_modules
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./package-lock.json') }}-v1
|
||||
- uses: ./.github/workflows/actions/download-archive
|
||||
with:
|
||||
name: ionicons-build
|
||||
path: .
|
||||
filename: IoniconsBuild.zip
|
||||
- uses: ./.github/workflows/actions/download-archive
|
||||
with:
|
||||
name: ionicons-src
|
||||
path: .
|
||||
filename: IoniconsSrc.zip
|
||||
- name: Install Playwright Dependencies
|
||||
run: npx playwright install && npx playwright install-deps
|
||||
shell: bash
|
||||
- name: Test
|
||||
if: inputs.update != 'true'
|
||||
run: npx playwright test --shard=${{ inputs.shard }}/${{ inputs.totalShards }}
|
||||
shell: bash
|
||||
- name: Test and Update
|
||||
id: test-and-update
|
||||
if: inputs.update == 'true'
|
||||
# Keep track of the files that were
|
||||
# changed so they can be correctly restored
|
||||
# in the combine step.
|
||||
# To do this, we move only the changed files
|
||||
# to a separate directory, while preserving the
|
||||
# directory structure of the source.
|
||||
# When, we create and archive of these results
|
||||
# so that the combine step can simply
|
||||
# unzip and move the changed files into place.
|
||||
# We have extra logic added so that job runners
|
||||
# that do not have any new screenshots do not create
|
||||
# an unnecessary .zip.
|
||||
run: |
|
||||
npx playwright test --shard=${{ inputs.shard }}/${{ inputs.totalShards }} --update-snapshots
|
||||
git add src/\*.png --force
|
||||
mkdir updated-screenshots
|
||||
rsync -R --progress $(git diff --name-only --cached) updated-screenshots
|
||||
if [ "$(ls -A updated-screenshots)" ]; then
|
||||
echo "hasUpdatedScreenshots=$(echo 'true')" >> $GITHUB_OUTPUT
|
||||
cd updated-screenshots
|
||||
ls
|
||||
zip -q -r ../UpdatedScreenshots-${{ inputs.shard }}-${{ inputs.totalShards }}.zip ./
|
||||
fi
|
||||
shell: bash
|
||||
- name: Archive Updated Screenshots
|
||||
if: inputs.update == 'true' && steps.test-and-update.outputs.hasUpdatedScreenshots == 'true'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: updated-screenshots-${{ inputs.shard }}-${{ inputs.totalShards }}
|
||||
path: UpdatedScreenshots-${{ inputs.shard }}-${{ inputs.totalShards }}.zip
|
||||
- name: Archive Test Results
|
||||
# The always() ensures that this step
|
||||
# runs even if the previous step fails.
|
||||
# We want the test results to be archived
|
||||
# even if the test fails in the previous
|
||||
# step, otherwise there would be no way
|
||||
# to debug these tests.
|
||||
if: always()
|
||||
uses: ./.github/workflows/actions/upload-archive
|
||||
with:
|
||||
name: test-results-${{ inputs.shard }}-${{ inputs.totalShards }}
|
||||
output: TestResults-${{ inputs.shard }}-${{ inputs.totalShards }}.zip
|
||||
paths: playwright-report
|
||||
@@ -0,0 +1,22 @@
|
||||
name: 'Test Spec'
|
||||
description: 'Test Spec'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/setup-node@v4
|
||||
|
||||
- name: Cache Node Modules
|
||||
uses: actions/cache@v4
|
||||
env:
|
||||
cache-name: node-modules
|
||||
with:
|
||||
path: ./node_modules
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./package-lock.json') }}-v1
|
||||
- uses: ./.github/workflows/actions/download-archive
|
||||
with:
|
||||
name: ionicons-build
|
||||
path: .
|
||||
filename: IoniconsBuild.zip
|
||||
- name: Test
|
||||
run: npm run test.spec -- --ci
|
||||
shell: bash
|
||||
@@ -0,0 +1,38 @@
|
||||
name: 'Update Reference Screenshots'
|
||||
description: 'Update Reference Screenshots'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: ./artifacts
|
||||
- name: Extract Archives
|
||||
# This finds all .zip files in the ./artifacts
|
||||
# directory, including nested directories.
|
||||
# It then unzips every .zip to the root directory
|
||||
run: |
|
||||
find . -type f -name 'UpdatedScreenshots-*.zip' -exec unzip -q -o -d ../ {} \;
|
||||
shell: bash
|
||||
working-directory: ./artifacts
|
||||
- name: Push Screenshots
|
||||
# Configure user as Ionitron
|
||||
# and push only the changed .png snapshots
|
||||
# to the remote branch.
|
||||
# Screenshots are in .gitignore
|
||||
# to prevent local screenshots from getting
|
||||
# pushed to Git. As a result, we need --force
|
||||
# here so that CI generated screenshots can
|
||||
# get added to git. Screenshot ground truths
|
||||
# should only be added via this CI process.
|
||||
run: |
|
||||
git config user.name ionitron
|
||||
git config user.email hi@ionicframework.com
|
||||
git add src/\*.png --force
|
||||
git commit -m "chore(): add updated snapshots"
|
||||
git push
|
||||
shell: bash
|
||||
@@ -0,0 +1,19 @@
|
||||
name: 'Archive Upload'
|
||||
description: 'Compresses and uploads an archive to be reused across jobs'
|
||||
inputs:
|
||||
paths:
|
||||
description: 'Paths to files or directories to archive'
|
||||
output:
|
||||
description: 'Output file name'
|
||||
name:
|
||||
description: 'Archive name'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Create Archive
|
||||
run: zip -q -r ${{ inputs.output }} ${{ inputs.paths }}
|
||||
shell: bash
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: ${{ inputs.output }}
|
||||
@@ -0,0 +1,43 @@
|
||||
name: 'Dev Release'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
create-dev-hash:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
dev-hash: ${{ steps.create-dev-hash.outputs.DEV_HASH }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Dependencies
|
||||
run: npm ci --no-package-lock
|
||||
shell: bash
|
||||
- id: create-dev-hash
|
||||
name: Create Dev Hash
|
||||
run: |
|
||||
echo "DEV_HASH=$(node ./scripts/bump-version.js)-dev.1$(date +%s).1$(git log -1 --format=%H | cut -c 1-7)" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
release-ionicons:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [create-dev-hash]
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Publish to NPM
|
||||
uses: ./.github/workflows/actions/publish-npm
|
||||
with:
|
||||
tag: dev
|
||||
version: ${{ needs.create-dev-hash.outputs.dev-hash }}
|
||||
working-directory: './'
|
||||
createRelease: 'false'
|
||||
|
||||
get-build:
|
||||
name: Get your dev build!
|
||||
runs-on: ubuntu-latest
|
||||
needs: [create-dev-hash, release-ionicons]
|
||||
steps:
|
||||
- run: echo ${{ needs.create-dev-hash.outputs.dev-hash }}
|
||||
@@ -0,0 +1,28 @@
|
||||
name: 'Production Release'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
version:
|
||||
required: false
|
||||
type: string
|
||||
description: npm version (major, minor, or patch)
|
||||
|
||||
jobs:
|
||||
release-ionicons:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.IONITRON_TOKEN }}
|
||||
- name: Publish to NPM
|
||||
uses: ./.github/workflows/actions/publish-npm
|
||||
with:
|
||||
tag: latest
|
||||
version: ${{ inputs.version }}
|
||||
working-directory: './'
|
||||
createRelease: true
|
||||
ghToken: ${{ secrets.IONITRON_TOKEN }}
|
||||
@@ -0,0 +1,37 @@
|
||||
name: 'Release Orchestrator'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release-type:
|
||||
description: 'Release type'
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- dev
|
||||
- production
|
||||
version:
|
||||
description: 'Version for production releases'
|
||||
required: false
|
||||
type: choice
|
||||
options:
|
||||
- patch
|
||||
- minor
|
||||
- major
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
run-dev:
|
||||
if: ${{ inputs.release-type == 'dev' }}
|
||||
uses: ./.github/workflows/dev-release.yml
|
||||
secrets: inherit
|
||||
|
||||
run-production:
|
||||
if: ${{ inputs.release-type == 'production' }}
|
||||
uses: ./.github/workflows/production-release.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
version: ${{ inputs.version }}
|
||||
@@ -0,0 +1,52 @@
|
||||
name: 'Update Reference Screenshots'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-core:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/workflows/actions/build-core
|
||||
|
||||
test-e2e:
|
||||
strategy:
|
||||
# This ensures that all screenshot shard
|
||||
# failures are reported so the dev can
|
||||
# review everything at once.
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# Divide the tests into n buckets
|
||||
# and run those buckets in parallel.
|
||||
# To increase the number of shards,
|
||||
# add new items to the shard array
|
||||
# and change the value of totalShards
|
||||
# to be the length of the shard array.
|
||||
shard: [1, 2, 3]
|
||||
totalShards: [3]
|
||||
needs: [build-core]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/workflows/actions/test-e2e
|
||||
with:
|
||||
shard: ${{ matrix.shard }}
|
||||
totalShards: ${{ matrix.totalShards }}
|
||||
update: true
|
||||
|
||||
update-reference-screenshots:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test-e2e]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# Normally, we could just push with the
|
||||
# default GITHUB_TOKEN, but that will
|
||||
# not cause the build workflow
|
||||
# to re-run. We use Ionitron's
|
||||
# Personal Access Token instead
|
||||
# to allow for this build workflow
|
||||
# to run when the screenshots are pushed.
|
||||
with:
|
||||
token: ${{ secrets.IONITRON_TOKEN }}
|
||||
- uses: ./.github/workflows/actions/update-reference-screenshots
|
||||
@@ -0,0 +1,73 @@
|
||||
name: 'Validation'
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ['**']
|
||||
push:
|
||||
branches: ['main']
|
||||
|
||||
# When pushing a new commit we should
|
||||
# cancel the previous test run to not
|
||||
# consume more runners than we need to.
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-core:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
# Checkout the latest commit in this branch
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- uses: ./.github/workflows/actions/build-core
|
||||
|
||||
test-spec:
|
||||
needs: [build-core]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/workflows/actions/test-spec
|
||||
|
||||
test-e2e:
|
||||
strategy:
|
||||
# This ensures that all screenshot shard
|
||||
# failures are reported so the dev can
|
||||
# review everything at once.
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# Divide the tests into n buckets
|
||||
# and run those buckets in parallel.
|
||||
# To increase the number of shards,
|
||||
# add new items to the shard array
|
||||
# and change the value of totalShards
|
||||
# to be the length of the shard array.
|
||||
shard: [1, 2, 3]
|
||||
totalShards: [3]
|
||||
needs: [build-core]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/workflows/actions/test-e2e
|
||||
with:
|
||||
shard: ${{ matrix.shard }}
|
||||
totalShards: ${{ matrix.totalShards }}
|
||||
|
||||
# Screenshots are required to pass
|
||||
# in order for the branch to be merge
|
||||
# eligible. However, the screenshot tests
|
||||
# are run on n runners where n can change
|
||||
# over time. The verify-screenshots step allows
|
||||
# us to have a required status check for screenshot
|
||||
# results without having to manually add each
|
||||
# matrix run in the branch protection rules
|
||||
# Source: https://github.community/t/status-check-for-a-matrix-jobs/127354
|
||||
verify-e2e:
|
||||
if: ${{ always() }}
|
||||
needs: test-e2e
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check build matrix status
|
||||
if: ${{ needs.test-e2e.result != 'success' }}
|
||||
run: exit 1
|
||||
@@ -8,10 +8,20 @@ log.txt
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
.idea/
|
||||
.sass-cache/
|
||||
.versions/
|
||||
.vscode/
|
||||
/components/
|
||||
node_modules/
|
||||
tmp/
|
||||
dist/
|
||||
icons/
|
||||
.DS_Store
|
||||
scripts/*.js
|
||||
!scripts/install-loader.js
|
||||
|
||||
www/
|
||||
/test-results/
|
||||
/playwright-report/
|
||||
/playwright/.cache/
|
||||
/src/**/*-snapshots
|
||||
*.tgz
|
||||
@@ -0,0 +1 @@
|
||||
src/components.d.ts
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"arrowParens": "always",
|
||||
"bracketSpacing": true,
|
||||
"jsxBracketSameLine": false,
|
||||
"jsxSingleQuote": false,
|
||||
"quoteProps": "consistent",
|
||||
"printWidth": 120,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "all",
|
||||
"useTabs": false
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# Change Log
|
||||
|
||||
Please see https://github.com/ionic-team/ionicons/releases
|
||||
@@ -0,0 +1,11 @@
|
||||
# Contributor Code of Conduct
|
||||
|
||||
As contributors and maintainers of the Ionicons project, we pledge to respect everyone who contributes by posting issues, updating documentation, submitting pull requests, providing feedback in comments, and any other activities.
|
||||
|
||||
Communication through any of Ionic's channels (GitHub, Slack, Forum, IRC, mailing lists, Twitter, etc.) must be constructive and never resort to personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
||||
|
||||
We promise to extend courtesy and respect to everyone involved in this project regardless of gender, gender identity, sexual orientation, disability, age, race, ethnicity, religion, or level of experience. We expect anyone contributing to the Ionicons project to do the same.
|
||||
|
||||
If any member of the community violates this code of conduct, the maintainers of the Ionicons project may take action, removing issues, comments, and PRs or blocking accounts as deemed appropriate.
|
||||
|
||||
If you are subject to or witness unacceptable behavior, or have any other concerns, please email us at [hi@ionicframework.com](mailto:hi@ionicframework.com).
|
||||
@@ -0,0 +1,196 @@
|
||||
# Contributing to Ionicons
|
||||
|
||||
Thank you for your interest in contributing to Ionicons! :tada:
|
||||
|
||||
This document outlines the guidelines and processes for contributing to this project.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Code of Conduct](#code-of-conduct)
|
||||
- [Getting Started](#getting-started)
|
||||
* [Prerequisites](#prerequisites)
|
||||
* [Environment Setup](#environment-setup)
|
||||
- [Development Workflow](#development-workflow)
|
||||
* [Branch Strategy](#branch-strategy)
|
||||
* [Component Modifications](#component-modifications)
|
||||
* [Testing](#testing)
|
||||
* [Code Style](#code-style)
|
||||
* [Building](#building)
|
||||
- [Submitting Issues](#submitting-issues)
|
||||
- [Submitting Pull Requests](#submitting-pull-requests)
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
Please read our [Contributor Code of Conduct](./CODE_OF_CONDUCT.md) for information on our rules of conduct. By contributing to Ionicons, you agree to abide by its terms.
|
||||
|
||||
## Getting Started
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- [Node.js](https://nodejs.org/) (LTS version recommended)
|
||||
- [npm](https://www.npmjs.com/) (comes with Node.js)
|
||||
- Git
|
||||
|
||||
### Environment Setup
|
||||
|
||||
1. We recommend using [nvm](https://github.com/nvm-sh/nvm) (Node Version Manager) to manage Node.js versions:
|
||||
- For macOS/Linux: `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`
|
||||
- For Windows: Use [nvm-windows](https://github.com/coreybutler/nvm-windows)
|
||||
- Install and use the LTS version: `nvm install --lts && nvm use --lts`
|
||||
|
||||
Alternatively, you can [download the installer](https://nodejs.org/) for the LTS version of Node.js directly.
|
||||
|
||||
2. Fork the repository on GitHub
|
||||
3. Clone your fork locally:
|
||||
```bash
|
||||
git clone https://github.com/YOUR-USERNAME/ionicons.git
|
||||
cd ionicons
|
||||
```
|
||||
4. Add the original repository as an upstream remote:
|
||||
```bash
|
||||
git remote add upstream https://github.com/ionic-team/ionicons.git
|
||||
```
|
||||
5. Create a new branch from `main` for your change:
|
||||
```bash
|
||||
git checkout -b your-feature-branch
|
||||
```
|
||||
6. Install dependencies:
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
7. Run the initial build:
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
8. If desired, [modify the Icon Component](#component-modifications)
|
||||
9. Or, modify and preview the site
|
||||
|
||||
## Development Workflow
|
||||
|
||||
### Branch Strategy
|
||||
|
||||
- Always create a new branch from `main` for your changes:
|
||||
```bash
|
||||
git checkout main
|
||||
git pull upstream main
|
||||
git checkout -b your-feature-branch
|
||||
```
|
||||
|
||||
### Component Modifications
|
||||
|
||||
If you're modifying the `ion-icon` component:
|
||||
|
||||
1. Navigate to `src/components/` directory and open the `icon` component to modify
|
||||
2. Make your changes to the component code
|
||||
3. Test your changes locally with `npm start`
|
||||
4. Run the full test suite: `npm run test.spec` for unit tests and `npm run test.e2e` for E2E tests
|
||||
5. All PRs that change component behavior must include tests covering the changes
|
||||
|
||||
### Testing
|
||||
|
||||
Tests are crucial for maintaining confidence in changes. All PRs that modify component behavior must include tests covering those changes.
|
||||
|
||||
#### Local Development & Previewing
|
||||
|
||||
To preview component changes during development:
|
||||
|
||||
```bash
|
||||
npm start
|
||||
```
|
||||
|
||||
This starts the dev server with live-reloading. The test landing page displays all available test pages.
|
||||
|
||||
Test pages are organized in `src/components/icon/test/` with individual folders for each test scenario.
|
||||
|
||||
#### Unit Tests
|
||||
|
||||
Run Jest tests for component logic:
|
||||
|
||||
```bash
|
||||
npm run test.spec
|
||||
```
|
||||
|
||||
#### E2E Tests
|
||||
|
||||
Run Playwright tests to generate visual regression snapshots and verify component behavior:
|
||||
|
||||
```bash
|
||||
npm run test.e2e
|
||||
```
|
||||
|
||||
View the HTML report after tests complete:
|
||||
|
||||
```bash
|
||||
npx playwright show-report
|
||||
```
|
||||
|
||||
> [!IMPORTANT]
|
||||
> All E2E test navigation URLs must include a trailing slash (e.g., `/icon/test/basic/` not `/icon/test/basic`). The trailing slash ensures proper directory routing, correct timing for script initialization, and consistent page loading across browsers.
|
||||
|
||||
##### Updating Snapshots
|
||||
|
||||
To update visual regression snapshots with new baselines:
|
||||
|
||||
```bash
|
||||
npm run test.e2e -- --update-snapshots
|
||||
```
|
||||
|
||||
Or for a specific test:
|
||||
|
||||
```bash
|
||||
npm run test.e2e -- src/components/icon/test/basic/icon.e2e.ts --update-snapshots
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> Updating snapshots locally updates your gitignored screenshot files for local testing. To update the official repository snapshots, run the "Update Reference Screenshots" GitHub action with your development branch selected.
|
||||
|
||||
### Code Style
|
||||
|
||||
- This project uses Prettier for code formatting
|
||||
- Run `npm run prettier` to format your code before submitting
|
||||
|
||||
### Building
|
||||
|
||||
- Run `npm run build` to build the complete package
|
||||
- Run `npm run build.files` to rebuild only the SVG icon files
|
||||
|
||||
## Submitting Issues
|
||||
|
||||
Please submit issues for:
|
||||
- Bug reports
|
||||
- Feature requests
|
||||
- General questions about the project
|
||||
|
||||
When creating issues:
|
||||
|
||||
1. If you have a question about using Ionicons, please ask on the [Ionic Forum](http://forum.ionicframework.com/) or in the [Ionic Discord](https://ionic.link/discord).
|
||||
|
||||
2. It is required that you clearly describe the steps necessary to reproduce the issue you are running into. Although we would love to help our users as much as possible, diagnosing issues without clear reproduction steps is extremely time-consuming and simply not sustainable.
|
||||
|
||||
3. The issue list of this repository is exclusively for bug reports and feature requests. Non-conforming issues will be closed immediately.
|
||||
|
||||
4. Check if a similar issue already exists by searching through [existing issues](https://github.com/ionic-team/ionicons/issues?utf8=%E2%9C%93&q=is%3Aissue). You can search through existing issues to see if there is a similar one reported. Include closed issues as it may have been closed with a solution.
|
||||
|
||||
5. Use the provided issue templates and clearly describe:
|
||||
- Expected behavior
|
||||
- Actual behavior
|
||||
- Steps to reproduce (for bugs)
|
||||
- Browser/device information when relevant
|
||||
|
||||
6. [Create a new issue](https://github.com/ionic-team/ionicons/issues/new/choose) that thoroughly explains the problem.
|
||||
|
||||
## Submitting Pull Requests
|
||||
|
||||
1. Before submitting a Pull Request (PR), please:
|
||||
- Create an issue first to discuss the proposed changes
|
||||
- Comment on an existing issue mentioning you'd like to work on it
|
||||
- Look for issues labeled with [`help wanted`](https://github.com/ionic-team/ionicons/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) if you're new to the project
|
||||
|
||||
2. Creating the PR:
|
||||
- Update your fork to the latest upstream main
|
||||
- Make your changes in a new git branch
|
||||
- Follow the code style of the project
|
||||
- Include relevant tests
|
||||
- Make sure all tests pass: `npm test`
|
||||
- Update documentation if needed
|
||||
- [Create a new pull request](https://github.com/ionic-team/ionicons/compare) with the `main` branch as the base.
|
||||
@@ -1 +0,0 @@
|
||||
ionicons.com
|
||||
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
@@ -1,435 +0,0 @@
|
||||
:root {
|
||||
--color-mirage: #171c24;
|
||||
--color-shark: #272a2f;
|
||||
--color-oslo-gray: #868b95;
|
||||
--color-pale-sky: #697384;
|
||||
--color-melrose: #AEC6FF;
|
||||
--color-melrose-dark: #4c5873;
|
||||
--color-gull-gray: #a1aab8;
|
||||
--color-bright-gray: #363e49;
|
||||
--color-bright-gray-light: #3d4650;
|
||||
--color-heather: #bec7d5;
|
||||
--color-catskill-white: #ecf0f6;
|
||||
--color-dodger-blue: #3880ff;
|
||||
--color-dodger-blue-light: #5A96FF;
|
||||
--color-periwinkle: #c6dbff;
|
||||
--color-cadet-blue: #abb2bf;
|
||||
--color-white-lilac: #f8f8fc;
|
||||
|
||||
--easeOutExpo: cubic-bezier(0.19, 1, 0.22, 1);
|
||||
}
|
||||
|
||||
/* Eina Bold */
|
||||
@font-face {
|
||||
font-family: 'Eina';
|
||||
src: url('/assets/fonts/34E6DB_F_0.eot');
|
||||
src: url('/assets/fonts/34E6DB_F_0.eot?#iefix') format('embedded-opentype'),
|
||||
url('/assets/fonts/34E6DB_F_0.woff2') format('woff2'),
|
||||
url('/assets/fonts/34E6DB_F_0.woff') format('woff'),
|
||||
url('/assets/fonts/34E6DB_F_0.ttf') format('truetype');
|
||||
font-weight: 700;
|
||||
unicode-range: U+000-5FF;
|
||||
}
|
||||
|
||||
/* Eina Semibold */
|
||||
@font-face {
|
||||
font-family: 'Eina';
|
||||
src: url('/assets/fonts/34E6DB_C_0.eot');
|
||||
src: url('/assets/fonts/34E6DB_C_0.eot?#iefix') format('embedded-opentype'),
|
||||
url('/assets/fonts/34E6DB_C_0.woff2') format('woff2'),
|
||||
url('/assets/fonts/34E6DB_C_0.woff') format('woff'),
|
||||
url('/assets/fonts/34E6DB_C_0.ttf') format('truetype');
|
||||
font-weight: 600;
|
||||
unicode-range: U+000-5FF;
|
||||
}
|
||||
|
||||
/* Eina Regular */
|
||||
@font-face {
|
||||
font-family: 'Eina';
|
||||
src: url('/assets/fonts/34E6DB_D_0.eot');
|
||||
src: url('/assets/fonts/34E6DB_D_0.eot?#iefix') format('embedded-opentype'),
|
||||
url('/assets/fonts/34E6DB_D_0.woff2') format('woff2'),
|
||||
url('/assets/fonts/34E6DB_D_0.woff') format('woff'),
|
||||
url('/assets/fonts/34E6DB_D_0.ttf') format('truetype');
|
||||
font-weight: 400;
|
||||
unicode-range: U+000-5FF;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Eina';
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
letter-spacing: -0.015em;
|
||||
color: var(--color-shark);
|
||||
}
|
||||
|
||||
body.no-scroll {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
main {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
min-height: 100%;
|
||||
padding-top: 110px;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
main > .wrapper {
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex: 1 0 auto;
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
|
||||
stencil-router-scroll-top > div {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 460px) {
|
||||
main {
|
||||
padding-top: 95px;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
max-width: 650px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.container,
|
||||
.container--small {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0 auto;
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1140px;
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex: 1;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.container--small {
|
||||
max-width: 650px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
line-height: 44px;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.03em;
|
||||
color: var(--color-mirage);
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 24px;
|
||||
margin-top: 60px;
|
||||
margin-bottom: 0;
|
||||
letter-spacing: -0.03em;
|
||||
color: var(--color-shark);
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
line-height: 28px;
|
||||
margin-top: 40px;
|
||||
margin-bottom: 0;
|
||||
letter-spacing: -0.03em;
|
||||
color: var(--color-shark);
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 16px;
|
||||
line-height: 16px;
|
||||
font-weight: 600;
|
||||
color: var(--color-gull-gray);
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 10px;
|
||||
line-height: 10px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--color-heather);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
color: #3c4b62;
|
||||
font-size: 14px;
|
||||
line-height: 28px;
|
||||
margin-top: 10px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
p a {
|
||||
-webkit-transition: border-color 0.3s;
|
||||
transition: border-color 0.3s;
|
||||
text-decoration: none;
|
||||
color: var(--color-dodger-blue);
|
||||
border-bottom: 1px solid transparent;
|
||||
}
|
||||
|
||||
p a:hover {
|
||||
border-bottom-color: var(--color-dodger-blue-light);
|
||||
}
|
||||
|
||||
p.lead {
|
||||
font-size: 18px;
|
||||
line-height: 32px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
||||
.btn {
|
||||
-webkit-transition: .3s box-shadow,.3s background;
|
||||
transition: .3s box-shadow,.3s background;
|
||||
background-color: var(--color-catskill-white);
|
||||
color: var(--color-pale-sky);
|
||||
font-size: 13px;
|
||||
line-height: 13px;
|
||||
font-weight: 600;
|
||||
padding: 9px 10px;
|
||||
border-radius: 4px;
|
||||
text-decoration: none;
|
||||
display: -webkit-inline-box;
|
||||
display: -ms-inline-flexbox;
|
||||
display: inline-flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background-color: #e3e9f3;
|
||||
}
|
||||
|
||||
.btn--gray {
|
||||
background: var(--color-bright-gray);
|
||||
color: var(--color-melrose);
|
||||
}
|
||||
|
||||
.btn--gray:hover {
|
||||
background-color: var(--color-bright-gray-light);
|
||||
}
|
||||
|
||||
.btn--large {
|
||||
font-size: 14px;
|
||||
padding: 13px 15px;
|
||||
}
|
||||
|
||||
.btn--small {
|
||||
font-size: 9px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.btn--small .ion {
|
||||
font-size: 14px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.btn--icon {
|
||||
width: 36px;
|
||||
height: 32px;
|
||||
padding: 0;
|
||||
pointer-events: none;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn--icon .ion {
|
||||
font-size: 26px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.btn-group .btn + .btn {
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
.btn-group .btn:first-child {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.btn-group .btn:last-child {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 460px) {
|
||||
h3 {
|
||||
font-size: 16px;
|
||||
line-height: 28px;
|
||||
}
|
||||
.container {
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.container {
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #998;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-subst {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.hljs-number,
|
||||
.hljs-literal,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-tag .hljs-attr {
|
||||
color: #008080;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-doctag {
|
||||
color: #d14;
|
||||
}
|
||||
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-selector-id {
|
||||
color: #900;
|
||||
}
|
||||
|
||||
.hljs-subst {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.hljs-type,
|
||||
.hljs-class .hljs-title {
|
||||
color: #458;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-attribute {
|
||||
color: #000080;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.hljs-regexp,
|
||||
.hljs-link {
|
||||
color: #009926;
|
||||
}
|
||||
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #990073;
|
||||
}
|
||||
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name {
|
||||
color: #0086b3;
|
||||
}
|
||||
|
||||
.hljs-meta {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background: #fdd;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background: #dfd;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
code,
|
||||
pre {
|
||||
font-family: 'Roboto Mono', monospace;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: var(--color-bright-gray);
|
||||
color: #97a1b6;
|
||||
padding: 8px 12px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
code .yellow {
|
||||
color: #ffc866;
|
||||
}
|
||||
code .orange {
|
||||
color: #e48d26;
|
||||
}
|
||||
code .green {
|
||||
color: #a4dd5b;
|
||||
}
|
||||
|
||||
p code {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
padding: 2px 5px;
|
||||
color: #f06332;
|
||||
background-color: #f5f7fa;
|
||||
}
|
||||
|
||||
.styled-code {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
background-color: #f5f7fa;
|
||||
padding: 16px 14px;
|
||||
width: 100%;
|
||||
border-radius: 5px;
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
margin: 18px 0px;
|
||||
}
|
||||
|
||||
.styled-code + .styled-code {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
color: var(--color-pale-sky);
|
||||
}
|
||||
@@ -1,139 +0,0 @@
|
||||
/*!
|
||||
* Built with http://stenciljs.com
|
||||
* 2018-09-18T20:02:31
|
||||
*/
|
||||
(function(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCoreSsr, appCorePolyfilled, hydratedCssClass, components) {
|
||||
|
||||
function init(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCorePolyfilled, hydratedCssClass, components, HTMLElementPrototype, App, x, y, scriptElm) {
|
||||
// create global namespace if it doesn't already exist
|
||||
App = win[namespace] = win[namespace] || {};
|
||||
App.components = components;
|
||||
y = components.map(function (c) { return c[0]; });
|
||||
if (y.length) {
|
||||
// auto hide components until they been fully hydrated
|
||||
// reusing the "x" and "i" variables from the args for funzies
|
||||
x = doc.createElement('style');
|
||||
x.innerHTML = y.join() + '{visibility:hidden}.' + hydratedCssClass + '{visibility:inherit}';
|
||||
x.setAttribute('data-styles', '');
|
||||
y = doc.head.querySelector('meta[charset]');
|
||||
doc.head.insertBefore(x, y ? y.nextSibling : doc.head.firstChild);
|
||||
}
|
||||
createComponentOnReadyPrototype(win, namespace, HTMLElementPrototype);
|
||||
resourcesUrl = resourcesUrl || App.resourcesUrl;
|
||||
// figure out the script element for this current script
|
||||
y = doc.querySelectorAll('script');
|
||||
for (x = y.length - 1; x >= 0; x--) {
|
||||
scriptElm = y[x];
|
||||
if (scriptElm.src || scriptElm.hasAttribute('data-resources-url')) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// get the resource path attribute on this script element
|
||||
y = scriptElm.getAttribute('data-resources-url');
|
||||
if (!resourcesUrl && y) {
|
||||
// the script element has a data-resources-url attribute, always use that
|
||||
resourcesUrl = y;
|
||||
}
|
||||
if (!resourcesUrl && scriptElm.src) {
|
||||
// we don't have an exact resourcesUrl, so let's
|
||||
// figure it out relative to this script's src and app's filesystem namespace
|
||||
y = scriptElm.src.split('/').slice(0, -1);
|
||||
resourcesUrl = (y.join('/')) + (y.length ? '/' : '') + fsNamespace + '/';
|
||||
}
|
||||
// request the core this browser needs
|
||||
// test for native support of custom elements and fetch
|
||||
// if either of those are not supported, then use the core w/ polyfills
|
||||
// also check if the page was build with ssr or not
|
||||
x = doc.createElement('script');
|
||||
if (usePolyfills(win, win.location, x, 'import("")')) {
|
||||
// requires the es5/polyfilled core
|
||||
x.src = resourcesUrl + appCorePolyfilled;
|
||||
}
|
||||
else {
|
||||
// let's do this!
|
||||
x.src = resourcesUrl + appCore;
|
||||
x.setAttribute('type', 'module');
|
||||
x.setAttribute('crossorigin', true);
|
||||
}
|
||||
x.setAttribute('data-resources-url', resourcesUrl);
|
||||
x.setAttribute('data-namespace', fsNamespace);
|
||||
doc.head.appendChild(x);
|
||||
}
|
||||
function usePolyfills(win, location, scriptElm, dynamicImportTest) {
|
||||
// fyi, dev mode has verbose if/return statements
|
||||
// but it minifies to a nice 'lil one-liner ;)
|
||||
if (location.search.indexOf('core=esm') > 0) {
|
||||
// force esm build
|
||||
return false;
|
||||
}
|
||||
if ((location.search.indexOf('core=es5') > 0) ||
|
||||
(location.protocol === 'file:') ||
|
||||
(!(win.customElements && win.customElements.define)) ||
|
||||
(!win.fetch) ||
|
||||
(!(win.CSS && win.CSS.supports && win.CSS.supports('color', 'var(--c)'))) ||
|
||||
(!('noModule' in scriptElm))) {
|
||||
// es5 build w/ polyfills
|
||||
return true;
|
||||
}
|
||||
// final test to see if this browser support dynamic imports
|
||||
return doesNotSupportsDynamicImports(dynamicImportTest);
|
||||
}
|
||||
function doesNotSupportsDynamicImports(dynamicImportTest) {
|
||||
try {
|
||||
new Function(dynamicImportTest);
|
||||
return false;
|
||||
}
|
||||
catch (e) { }
|
||||
return true;
|
||||
}
|
||||
function createComponentOnReadyPrototype(win, namespace, HTMLElementPrototype) {
|
||||
(win['s-apps'] = win['s-apps'] || []).push(namespace);
|
||||
if (!HTMLElementPrototype.componentOnReady) {
|
||||
HTMLElementPrototype.componentOnReady = function componentOnReady() {
|
||||
/*tslint:disable*/
|
||||
var elm = this;
|
||||
function executor(resolve) {
|
||||
if (elm.nodeName.indexOf('-') > 0) {
|
||||
// window hasn't loaded yet and there's a
|
||||
// good chance this is a custom element
|
||||
var apps = win['s-apps'];
|
||||
var appsReady = 0;
|
||||
// loop through all the app namespaces
|
||||
for (var i = 0; i < apps.length; i++) {
|
||||
// see if this app has "componentOnReady" setup
|
||||
if (win[apps[i]].componentOnReady) {
|
||||
// this app's core has loaded call its "componentOnReady"
|
||||
if (win[apps[i]].componentOnReady(elm, resolve)) {
|
||||
// this component does belong to this app and would
|
||||
// have fired off the resolve fn
|
||||
// let's stop here, we're good
|
||||
return;
|
||||
}
|
||||
appsReady++;
|
||||
}
|
||||
}
|
||||
if (appsReady < apps.length) {
|
||||
// not all apps are ready yet
|
||||
// add it to the queue to be figured out when they are
|
||||
(win['s-cr'] = win['s-cr'] || []).push([elm, resolve]);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// not a recognized app component
|
||||
resolve(null);
|
||||
}
|
||||
// callback wasn't provided, let's return a promise
|
||||
if (win.Promise) {
|
||||
// use native/polyfilled promise
|
||||
return new win.Promise(executor);
|
||||
}
|
||||
// promise may not have been polyfilled yet
|
||||
return { then: executor };
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
init(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCoreSsr, appCorePolyfilled, hydratedCssClass, components);
|
||||
|
||||
})(window, document, "DocsSite","docssite",0,"docssite.core.js","docssite.core.pf.js","hydrated",[["footer-bar","footer-bar",1],["header-bar","header-bar",1,[["el",64],["isMobileMenuShown",16],["isSearchVisible",1,0,"is-search-visible",4],["isSticky",16],["query",1,0,1,2],["version",1,0,1,2]],0,[["window:scroll","handleScroll",0,1],["window:resize","handleResize",0,1]]],["icon-list","icon-list",1,[["data",1,0,1,1],["el",64],["isHeaderSearchVisible",16],["query",1,0,1,2],["selectedIcon",16],["selectedIconType",16]],0,[["body:keyup","escListener"],["body:click","handleBodyClicked"],["clearToast","handleClearToast"],["window:scroll","handleScroll",0,1]]],["icon-search","icon-search",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",16],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","header-bar",1,[["data",16],["isHeaderSearchVisible",16],["query",16]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","icon-list",1,[["data",1,0,1,1],["el",64],["query",1,0,1,2]]],["notfound-page","notfound-page",1],["stencil-route","header-bar",1,[["component",1,0,1,2],["componentProps",1],["componentUpdated",1],["el",64],["exact",1,0,1,4],["group",1,0,1,2],["history",1],["historyType",1,0,"history-type",2],["location",1],["match",2],["routeRender",1],["routeViewsUpdated",1],["scrollTopOffset",1,0,"scroll-top-offset",8],["url",1,0,1,2]]],["stencil-route-link","stencil-route-link",0,[["activeClass",1,0,"active-class",2],["anchorClass",1,0,"anchor-class",2],["anchorId",1,0,"anchor-id",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["ariaHaspopup",1,0,"aria-haspopup",2],["ariaLabel",1,0,"aria-label",2],["ariaPosinset",1,0,"aria-posinset",2],["ariaSetsize",1,0,"aria-setsize",8],["custom",1,0,1,2],["el",64],["exact",1,0,1,4],["history",1],["location",1],["match",16],["root",1,0,1,2],["strict",1,0,1,4],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-route-switch","header-bar",0,[["el",64],["group",1,0,1,2],["location",1],["queue",4,0,0,0,"queue"],["routeViewsUpdated",1],["scrollTopOffset",1,0,"scroll-top-offset",8]]],["stencil-router","header-bar",0,[["history",16],["historyType",1,0,"history-type",2],["isServer",4,0,0,0,"isServer"],["location",16],["queue",4,0,0,0,"queue"],["root",1,0,1,2],["scrollTopOffset",1,0,"scroll-top-offset",8],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","icon-list",1,[["el",64],["hadIconOnce",16],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",16],["touchEndY",16],["touchStartY",16]]],["usage-page","usage-page",1,[["data",1,0,1,1],["exampleIcon",16],["exampleType",16],["match",1],["queue",4,0,0,0,"queue"]]]],HTMLElement.prototype);
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const{h:e}=window.DocsSite;class o{render(){return e("footer",null,e("div",{class:"container"},e("div",{class:"footer__open-source"},e("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},e("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),e("p",null,"Released under ",e("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),e("div",{class:"footer-menu"},e("a",{href:"cheatsheet.html"},"Cheatsheet"),e("a",{href:"/v1"},"v1"),e("a",{href:"/v2"},"v2"),e("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),e("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))}static get is(){return"footer-bar"}static get style(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"}}export{o as FooterBar};
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle("3vkw131p",["exports"],function(e){var o=window.DocsSite.h,r=function(){function e(){}return e.prototype.render=function(){return o("footer",null,o("div",{class:"container"},o("div",{class:"footer__open-source"},o("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},o("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),o("p",null,"Released under ",o("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),o("div",{class:"footer-menu"},o("a",{href:"cheatsheet.html"},"Cheatsheet"),o("a",{href:"/v1"},"v1"),o("a",{href:"/v2"},"v2"),o("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),o("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))},Object.defineProperty(e,"is",{get:function(){return"footer-bar"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"},enumerable:!0,configurable:!0}),e}();e.FooterBar=r,Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const{h:e}=window.DocsSite;class o{render(){return e("footer",null,e("div",{class:"container"},e("div",{class:"footer__open-source"},e("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},e("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),e("p",null,"Released under ",e("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),e("div",{class:"footer-menu"},e("a",{href:"cheatsheet.html"},"Cheatsheet"),e("a",{href:"/v1"},"v1"),e("a",{href:"/v2"},"v2"),e("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),e("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))}static get is(){return"footer-bar"}static get style(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"}}export{o as FooterBar};
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle("3vkw131p",["exports"],function(e){var o=window.DocsSite.h,r=function(){function e(){}return e.prototype.render=function(){return o("footer",null,o("div",{class:"container"},o("div",{class:"footer__open-source"},o("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},o("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),o("p",null,"Released under ",o("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),o("div",{class:"footer-menu"},o("a",{href:"cheatsheet.html"},"Cheatsheet"),o("a",{href:"/v1"},"v1"),o("a",{href:"/v2"},"v2"),o("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),o("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))},Object.defineProperty(e,"is",{get:function(){return"footer-bar"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"},enumerable:!0,configurable:!0}),e}();e.FooterBar=r,Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -1,50 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle('array.js', ['exports'], function (exports) {
|
||||
var h = window.DocsSite.h;
|
||||
function applyPolyfill(window, document) {
|
||||
Array.prototype.find || Object.defineProperty(Array.prototype, "find", { writable: !0, configurable: !0, value: function (c, e) { if (null == this)
|
||||
throw new TypeError('"this" is null or not defined'); var b = Object(this), f = b.length >>> 0; if ("function" !== typeof c)
|
||||
throw new TypeError("predicate must be a function"); for (var a = 0; a < f;) {
|
||||
var d = b[a];
|
||||
if (c.call(e, d, a, b))
|
||||
return d;
|
||||
a++;
|
||||
} } });
|
||||
/*!
|
||||
Array.from
|
||||
*/
|
||||
Array.from || (Array.from = function () {
|
||||
var l = Object.prototype.toString, h = function (c) { return "function" === typeof c || "[object Function]" === l.call(c); }, m = Math.pow(2, 53) - 1;
|
||||
return function (c) {
|
||||
var k = Object(c);
|
||||
if (null == c)
|
||||
throw new TypeError("Array.from requires an array-like object - not null or undefined");
|
||||
var d = 1 < arguments.length ? arguments[1] : void 0, f;
|
||||
if ("undefined" !== typeof d) {
|
||||
if (!h(d))
|
||||
throw new TypeError("Array.from: when provided, the second argument must be a function");
|
||||
2 < arguments.length && (f = arguments[2]);
|
||||
}
|
||||
var a = Number(k.length);
|
||||
a = isNaN(a) ? 0 : 0 !== a && isFinite(a) ? (0 < a ? 1 : -1) * Math.floor(Math.abs(a)) : a;
|
||||
a = Math.min(Math.max(a, 0), m);
|
||||
for (var g = h(this) ? Object(new this(a)) : Array(a), b = 0, e; b < a;)
|
||||
e = k[b], g[b] = d ? "undefined" === typeof f ? d(e, b) : d.call(f, e, b) : e, b += 1;
|
||||
g.length = a;
|
||||
return g;
|
||||
};
|
||||
}());
|
||||
/*!
|
||||
Array.prototype.includes
|
||||
*/
|
||||
Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", { writable: !0, configurable: !0, value: function (r, e) { if (null == this)
|
||||
throw new TypeError('"this" is null or not defined'); var t = Object(this), n = t.length >>> 0; if (0 === n)
|
||||
return !1; var i, o, a = 0 | e, u = Math.max(0 <= a ? a : n - Math.abs(a), 0); for (; u < n;) {
|
||||
if ((i = t[u]) === (o = r) || "number" == typeof i && "number" == typeof o && isNaN(i) && isNaN(o))
|
||||
return !0;
|
||||
u++;
|
||||
} return !1; } });
|
||||
}
|
||||
exports.applyPolyfill = applyPolyfill;
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
});
|
||||
@@ -1,18 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const { h } = window.DocsSite;
|
||||
|
||||
function applyPolyfill(window, document) {/*!
|
||||
Array.prototype.find
|
||||
*/
|
||||
Array.prototype.find||Object.defineProperty(Array.prototype,"find",{writable:!0,configurable:!0,value:function(c,e){if(null==this)throw new TypeError('"this" is null or not defined');var b=Object(this),f=b.length>>>0;if("function"!==typeof c)throw new TypeError("predicate must be a function");for(var a=0;a<f;){var d=b[a];if(c.call(e,d,a,b))return d;a++;}}});
|
||||
/*!
|
||||
Array.from
|
||||
*/
|
||||
Array.from||(Array.from=function(){var l=Object.prototype.toString,h=function(c){return "function"===typeof c||"[object Function]"===l.call(c)},m=Math.pow(2,53)-1;return function(c){var k=Object(c);if(null==c)throw new TypeError("Array.from requires an array-like object - not null or undefined");var d=1<arguments.length?arguments[1]:void 0,f;if("undefined"!==typeof d){if(!h(d))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(f=arguments[2]);}var a=
|
||||
Number(k.length);a=isNaN(a)?0:0!==a&&isFinite(a)?(0<a?1:-1)*Math.floor(Math.abs(a)):a;a=Math.min(Math.max(a,0),m);for(var g=h(this)?Object(new this(a)):Array(a),b=0,e;b<a;)e=k[b],g[b]=d?"undefined"===typeof f?d(e,b):d.call(f,e,b):e,b+=1;g.length=a;return g}}());
|
||||
/*!
|
||||
Array.prototype.includes
|
||||
*/
|
||||
Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{writable:!0,configurable:!0,value:function(r,e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if(0===n)return !1;var i,o,a=0|e,u=Math.max(0<=a?a:n-Math.abs(a),0);for(;u<n;){if((i=t[u])===(o=r)||"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))return !0;u++;}return !1}});}
|
||||
|
||||
export { applyPolyfill };
|
||||
@@ -1,593 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const { h } = window.DocsSite;
|
||||
|
||||
var DEFAULT_DELIMITER = '/';
|
||||
var DEFAULT_DELIMITERS = './';
|
||||
var PATH_REGEXP = new RegExp([
|
||||
'(\\\\.)',
|
||||
'(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?'
|
||||
].join('|'), 'g');
|
||||
function parse(str, options) {
|
||||
var tokens = [];
|
||||
var key = 0;
|
||||
var index = 0;
|
||||
var path = '';
|
||||
var defaultDelimiter = (options && options.delimiter) || DEFAULT_DELIMITER;
|
||||
var delimiters = (options && options.delimiters) || DEFAULT_DELIMITERS;
|
||||
var pathEscaped = false;
|
||||
var res;
|
||||
while ((res = PATH_REGEXP.exec(str)) !== null) {
|
||||
var m = res[0];
|
||||
var escaped = res[1];
|
||||
var offset = res.index;
|
||||
path += str.slice(index, offset);
|
||||
index = offset + m.length;
|
||||
if (escaped) {
|
||||
path += escaped[1];
|
||||
pathEscaped = true;
|
||||
continue;
|
||||
}
|
||||
var prev = '';
|
||||
var next = str[index];
|
||||
var name = res[2];
|
||||
var capture = res[3];
|
||||
var group = res[4];
|
||||
var modifier = res[5];
|
||||
if (!pathEscaped && path.length) {
|
||||
var k = path.length - 1;
|
||||
if (delimiters.indexOf(path[k]) > -1) {
|
||||
prev = path[k];
|
||||
path = path.slice(0, k);
|
||||
}
|
||||
}
|
||||
if (path) {
|
||||
tokens.push(path);
|
||||
path = '';
|
||||
pathEscaped = false;
|
||||
}
|
||||
var partial = prev !== '' && next !== undefined && next !== prev;
|
||||
var repeat = modifier === '+' || modifier === '*';
|
||||
var optional = modifier === '?' || modifier === '*';
|
||||
var delimiter = prev || defaultDelimiter;
|
||||
var pattern = capture || group;
|
||||
tokens.push({
|
||||
name: name || key++,
|
||||
prefix: prev,
|
||||
delimiter: delimiter,
|
||||
optional: optional,
|
||||
repeat: repeat,
|
||||
partial: partial,
|
||||
pattern: pattern ? escapeGroup(pattern) : '[^' + escapeString(delimiter) + ']+?'
|
||||
});
|
||||
}
|
||||
if (path || index < str.length) {
|
||||
tokens.push(path + str.substr(index));
|
||||
}
|
||||
return tokens;
|
||||
}
|
||||
function escapeString(str) {
|
||||
return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1');
|
||||
}
|
||||
function escapeGroup(group) {
|
||||
return group.replace(/([=!:$/()])/g, '\\$1');
|
||||
}
|
||||
function flags(options) {
|
||||
return options && options.sensitive ? '' : 'i';
|
||||
}
|
||||
function regexpToRegexp(path, keys) {
|
||||
if (!keys)
|
||||
return path;
|
||||
var groups = path.source.match(/\((?!\?)/g);
|
||||
if (groups) {
|
||||
for (var i = 0; i < groups.length; i++) {
|
||||
keys.push({
|
||||
name: i,
|
||||
prefix: null,
|
||||
delimiter: null,
|
||||
optional: false,
|
||||
repeat: false,
|
||||
partial: false,
|
||||
pattern: null
|
||||
});
|
||||
}
|
||||
}
|
||||
return path;
|
||||
}
|
||||
function arrayToRegexp(path, keys, options) {
|
||||
var parts = [];
|
||||
for (var i = 0; i < path.length; i++) {
|
||||
parts.push(pathToRegexp(path[i], keys, options).source);
|
||||
}
|
||||
return new RegExp('(?:' + parts.join('|') + ')', flags(options));
|
||||
}
|
||||
function stringToRegexp(path, keys, options) {
|
||||
return tokensToRegExp(parse(path, options), keys, options);
|
||||
}
|
||||
function tokensToRegExp(tokens, keys, options) {
|
||||
options = options || {};
|
||||
var strict = options.strict;
|
||||
var end = options.end !== false;
|
||||
var delimiter = escapeString(options.delimiter || DEFAULT_DELIMITER);
|
||||
var delimiters = options.delimiters || DEFAULT_DELIMITERS;
|
||||
var endsWith = [].concat(options.endsWith || []).map(escapeString).concat('$').join('|');
|
||||
var route = '';
|
||||
var isEndDelimited = false;
|
||||
for (var i = 0; i < tokens.length; i++) {
|
||||
var token = tokens[i];
|
||||
if (typeof token === 'string') {
|
||||
route += escapeString(token);
|
||||
isEndDelimited = i === tokens.length - 1 && delimiters.indexOf(token[token.length - 1]) > -1;
|
||||
}
|
||||
else {
|
||||
var prefix = escapeString(token.prefix || '');
|
||||
var capture = token.repeat
|
||||
? '(?:' + token.pattern + ')(?:' + prefix + '(?:' + token.pattern + '))*'
|
||||
: token.pattern;
|
||||
if (keys)
|
||||
keys.push(token);
|
||||
if (token.optional) {
|
||||
if (token.partial) {
|
||||
route += prefix + '(' + capture + ')?';
|
||||
}
|
||||
else {
|
||||
route += '(?:' + prefix + '(' + capture + '))?';
|
||||
}
|
||||
}
|
||||
else {
|
||||
route += prefix + '(' + capture + ')';
|
||||
}
|
||||
}
|
||||
}
|
||||
if (end) {
|
||||
if (!strict)
|
||||
route += '(?:' + delimiter + ')?';
|
||||
route += endsWith === '$' ? '$' : '(?=' + endsWith + ')';
|
||||
}
|
||||
else {
|
||||
if (!strict)
|
||||
route += '(?:' + delimiter + '(?=' + endsWith + '))?';
|
||||
if (!isEndDelimited)
|
||||
route += '(?=' + delimiter + '|' + endsWith + ')';
|
||||
}
|
||||
return new RegExp('^' + route, flags(options));
|
||||
}
|
||||
function pathToRegexp(path, keys, options) {
|
||||
if (path instanceof RegExp) {
|
||||
return regexpToRegexp(path, keys);
|
||||
}
|
||||
if (Array.isArray(path)) {
|
||||
return arrayToRegexp(path, keys, options);
|
||||
}
|
||||
return stringToRegexp(path, keys, options);
|
||||
}
|
||||
|
||||
function hasBasename(path, prefix) {
|
||||
return (new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i')).test(path);
|
||||
}
|
||||
function stripBasename(path, prefix) {
|
||||
return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
||||
}
|
||||
function stripTrailingSlash(path) {
|
||||
return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
|
||||
}
|
||||
function addLeadingSlash(path) {
|
||||
return path.charAt(0) === '/' ? path : '/' + path;
|
||||
}
|
||||
function stripLeadingSlash(path) {
|
||||
return path.charAt(0) === '/' ? path.substr(1) : path;
|
||||
}
|
||||
function parsePath(path) {
|
||||
let pathname = path || '/';
|
||||
let search = '';
|
||||
let hash = '';
|
||||
const hashIndex = pathname.indexOf('#');
|
||||
if (hashIndex !== -1) {
|
||||
hash = pathname.substr(hashIndex);
|
||||
pathname = pathname.substr(0, hashIndex);
|
||||
}
|
||||
const searchIndex = pathname.indexOf('?');
|
||||
if (searchIndex !== -1) {
|
||||
search = pathname.substr(searchIndex);
|
||||
pathname = pathname.substr(0, searchIndex);
|
||||
}
|
||||
return {
|
||||
pathname,
|
||||
search: search === '?' ? '' : search,
|
||||
hash: hash === '#' ? '' : hash,
|
||||
query: {},
|
||||
key: ''
|
||||
};
|
||||
}
|
||||
function createPath(location) {
|
||||
const { pathname, search, hash } = location;
|
||||
let path = pathname || '/';
|
||||
if (search && search !== '?') {
|
||||
path += (search.charAt(0) === '?' ? search : `?${search}`);
|
||||
}
|
||||
if (hash && hash !== '#') {
|
||||
path += (hash.charAt(0) === '#' ? hash : `#${hash}`);
|
||||
}
|
||||
return path;
|
||||
}
|
||||
function parseQueryString(query) {
|
||||
if (!query) {
|
||||
return {};
|
||||
}
|
||||
return (/^[?#]/.test(query) ? query.slice(1) : query)
|
||||
.split('&')
|
||||
.reduce((params, param) => {
|
||||
let [key, value] = param.split('=');
|
||||
params[key] = value ? decodeURIComponent(value.replace(/\+/g, ' ')) : '';
|
||||
return params;
|
||||
}, {});
|
||||
}
|
||||
|
||||
function isAbsolute(pathname) {
|
||||
return pathname.charAt(0) === '/';
|
||||
}
|
||||
function createKey(keyLength) {
|
||||
return Math.random().toString(36).substr(2, keyLength);
|
||||
}
|
||||
function spliceOne(list, index) {
|
||||
for (let i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
|
||||
list[i] = list[k];
|
||||
}
|
||||
list.pop();
|
||||
}
|
||||
function resolvePathname(to, from = '') {
|
||||
const toParts = to && to.split('/') || [];
|
||||
let fromParts = from && from.split('/') || [];
|
||||
const isToAbs = to && isAbsolute(to);
|
||||
const isFromAbs = from && isAbsolute(from);
|
||||
const mustEndAbs = isToAbs || isFromAbs;
|
||||
if (to && isAbsolute(to)) {
|
||||
fromParts = toParts;
|
||||
}
|
||||
else if (toParts.length) {
|
||||
fromParts.pop();
|
||||
fromParts = fromParts.concat(toParts);
|
||||
}
|
||||
if (!fromParts.length) {
|
||||
return '/';
|
||||
}
|
||||
let hasTrailingSlash;
|
||||
if (fromParts.length) {
|
||||
const last = fromParts[fromParts.length - 1];
|
||||
hasTrailingSlash = (last === '.' || last === '..' || last === '');
|
||||
}
|
||||
else {
|
||||
hasTrailingSlash = false;
|
||||
}
|
||||
let up = 0;
|
||||
for (let i = fromParts.length; i >= 0; i--) {
|
||||
const part = fromParts[i];
|
||||
if (part === '.') {
|
||||
spliceOne(fromParts, i);
|
||||
}
|
||||
else if (part === '..') {
|
||||
spliceOne(fromParts, i);
|
||||
up++;
|
||||
}
|
||||
else if (up) {
|
||||
spliceOne(fromParts, i);
|
||||
up--;
|
||||
}
|
||||
}
|
||||
if (!mustEndAbs) {
|
||||
for (; up--; up) {
|
||||
fromParts.unshift('..');
|
||||
}
|
||||
}
|
||||
if (mustEndAbs && fromParts[0] !== '' && (!fromParts[0] || !isAbsolute(fromParts[0]))) {
|
||||
fromParts.unshift('');
|
||||
}
|
||||
let result = fromParts.join('/');
|
||||
if (hasTrailingSlash && result.substr(-1) !== '/') {
|
||||
result += '/';
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function valueEqual(a, b) {
|
||||
if (a === b) {
|
||||
return true;
|
||||
}
|
||||
if (a == null || b == null) {
|
||||
return false;
|
||||
}
|
||||
if (Array.isArray(a)) {
|
||||
return Array.isArray(b) && a.length === b.length && a.every(function (item, index) {
|
||||
return valueEqual(item, b[index]);
|
||||
});
|
||||
}
|
||||
const aType = typeof a;
|
||||
const bType = typeof b;
|
||||
if (aType !== bType) {
|
||||
return false;
|
||||
}
|
||||
if (aType === 'object') {
|
||||
const aValue = a.valueOf();
|
||||
const bValue = b.valueOf();
|
||||
if (aValue !== a || bValue !== b) {
|
||||
return valueEqual(aValue, bValue);
|
||||
}
|
||||
const aKeys = Object.keys(a);
|
||||
const bKeys = Object.keys(b);
|
||||
if (aKeys.length !== bKeys.length) {
|
||||
return false;
|
||||
}
|
||||
return aKeys.every(function (key) {
|
||||
return valueEqual(a[key], b[key]);
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function locationsAreEqual(a, b) {
|
||||
return a.pathname === b.pathname &&
|
||||
a.search === b.search &&
|
||||
a.hash === b.hash &&
|
||||
a.key === b.key &&
|
||||
valueEqual(a.state, b.state);
|
||||
}
|
||||
function createLocation(path, state, key, currentLocation) {
|
||||
let location;
|
||||
if (typeof path === 'string') {
|
||||
location = parsePath(path);
|
||||
if (location.state !== undefined) {
|
||||
location.state = state;
|
||||
}
|
||||
}
|
||||
else {
|
||||
location = Object.assign({ pathname: '' }, path);
|
||||
if (location.search && location.search.charAt(0) !== '?') {
|
||||
location.search = '?' + location.search;
|
||||
}
|
||||
if (location.hash && location.hash.charAt(0) !== '#') {
|
||||
location.hash = '#' + location.hash;
|
||||
}
|
||||
if (state !== undefined && location.state === undefined) {
|
||||
location.state = state;
|
||||
}
|
||||
}
|
||||
try {
|
||||
location.pathname = decodeURI(location.pathname);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof URIError) {
|
||||
throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' +
|
||||
'This is likely caused by an invalid percent-encoding.');
|
||||
}
|
||||
else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
location.key = key;
|
||||
if (currentLocation) {
|
||||
if (!location.pathname) {
|
||||
location.pathname = currentLocation.pathname;
|
||||
}
|
||||
else if (location.pathname.charAt(0) !== '/') {
|
||||
location.pathname = resolvePathname(location.pathname, currentLocation.pathname);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!location.pathname) {
|
||||
location.pathname = '/';
|
||||
}
|
||||
}
|
||||
location.query = parseQueryString(location.search || '');
|
||||
return location;
|
||||
}
|
||||
|
||||
const patternCache = {};
|
||||
const cacheLimit = 10000;
|
||||
let cacheCount = 0;
|
||||
function compilePath(pattern, options) {
|
||||
const cacheKey = `${options.end}${options.strict}`;
|
||||
const cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});
|
||||
const cachePattern = JSON.stringify(pattern);
|
||||
if (cache[cachePattern]) {
|
||||
return cache[cachePattern];
|
||||
}
|
||||
const keys = [];
|
||||
const re = pathToRegexp(pattern, keys, options);
|
||||
const compiledPattern = { re, keys };
|
||||
if (cacheCount < cacheLimit) {
|
||||
cache[cachePattern] = compiledPattern;
|
||||
cacheCount += 1;
|
||||
}
|
||||
return compiledPattern;
|
||||
}
|
||||
function matchPath(pathname, options = {}) {
|
||||
if (typeof options === 'string') {
|
||||
options = { path: options };
|
||||
}
|
||||
const { path = '/', exact = false, strict = false } = options;
|
||||
const { re, keys } = compilePath(path, { end: exact, strict });
|
||||
const match = re.exec(pathname);
|
||||
if (!match) {
|
||||
return null;
|
||||
}
|
||||
const [url, ...values] = match;
|
||||
const isExact = pathname === url;
|
||||
if (exact && !isExact) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
path,
|
||||
url: path === '/' && url === '' ? '/' : url,
|
||||
isExact,
|
||||
params: keys.reduce((memo, key, index) => {
|
||||
memo[key.name] = values[index];
|
||||
return memo;
|
||||
}, {})
|
||||
};
|
||||
}
|
||||
function matchesAreEqual(a, b) {
|
||||
if (a == null && b == null) {
|
||||
return true;
|
||||
}
|
||||
if (b == null) {
|
||||
return false;
|
||||
}
|
||||
return a && b &&
|
||||
a.path === b.path &&
|
||||
a.url === b.url &&
|
||||
valueEqual(a.params, b.params);
|
||||
}
|
||||
|
||||
/*!
|
||||
* StencilStateTunnel: Core, es5
|
||||
* Built with http://stenciljs.com
|
||||
*/
|
||||
function u(n,t){for(var e,r,i=null,o=!1,u=!1,f=arguments.length;f-- >2;)T.push(arguments[f]);for(;T.length>0;){var c=T.pop();if(c&&void 0!==c.pop)for(f=c.length;f--;)T.push(c[f]);else"boolean"==typeof c&&(c=null),(u="function"!=typeof n)&&(null==c?c="":"number"==typeof c?c=String(c):"string"!=typeof c&&(u=!1)),u&&o?i[i.length-1].vtext+=c:null===i?i=[u?{vtext:c}:c]:i.push(u?{vtext:c}:c),o=u;}if(null!=t){if(t.className&&(t.class=t.className),"object"==typeof t.class){for(f in t.class)t.class[f]&&T.push(f);t.class=T.join(" "),T.length=0;}null!=t.key&&(e=t.key),null!=t.name&&(r=t.name);}return "function"==typeof n?n(t,i||[],W):{vtag:n,vchildren:i,vtext:void 0,vattrs:t,vkey:e,vname:r,w:void 0,g:!1}}function f(n){return {vtag:n.vtag,vchildren:n.vchildren,vtext:n.vtext,vattrs:n.vattrs,vkey:n.vkey,vname:n.vname}}undefined&&undefined.Dn||(Object.setPrototypeOf||Array);var T=[],W={forEach:function(n,t){n.forEach(function(n,e,r){return t(f(n),e,r)});},map:function(n,t){return n.map(function(n,e,r){return function i(n){return {vtag:n.vtag,vchildren:n.vchildren,vtext:n.vtext,vattrs:n.vattrs,vkey:n.vkey,vname:n.vname}}(t(f(n),e,r))})}};
|
||||
|
||||
/*! Built with http://stenciljs.com */
|
||||
var __rest = function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s)
|
||||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
||||
if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
return t;
|
||||
};
|
||||
function defaultConsumerRender(subscribe, renderer) {
|
||||
return u("context-consumer", { subscribe: subscribe, renderer: renderer });
|
||||
}
|
||||
function createProviderConsumer(defaultState, consumerRender) {
|
||||
if (consumerRender === void 0) { consumerRender = defaultConsumerRender; }
|
||||
var listeners = new Map();
|
||||
var currentState = defaultState;
|
||||
function notifyConsumers() {
|
||||
listeners.forEach(updateListener);
|
||||
}
|
||||
function updateListener(fields, listener) {
|
||||
if (Array.isArray(fields)) {
|
||||
fields.slice().forEach(function (fieldName) {
|
||||
listener[fieldName] = currentState[fieldName];
|
||||
});
|
||||
}
|
||||
else {
|
||||
listener[fields] = Object.assign({}, currentState);
|
||||
}
|
||||
listener.forceUpdate();
|
||||
}
|
||||
function attachListener(propList) {
|
||||
return function (el) {
|
||||
if (listeners.has(el)) {
|
||||
return;
|
||||
}
|
||||
listeners.set(el, propList);
|
||||
updateListener(propList, el);
|
||||
};
|
||||
}
|
||||
function subscribe(el, propList) {
|
||||
attachListener(propList)(el);
|
||||
return function () {
|
||||
listeners.delete(el);
|
||||
};
|
||||
}
|
||||
var Provider = function (_b, children) {
|
||||
var state = _b.state;
|
||||
currentState = state;
|
||||
notifyConsumers();
|
||||
return children;
|
||||
};
|
||||
var Consumer = function (props, children) {
|
||||
return consumerRender(subscribe, children[0]);
|
||||
};
|
||||
function wrapConsumer(childComponent, fieldList) {
|
||||
var Child = childComponent.is;
|
||||
return function (_a) {
|
||||
var children = _a.children, props = __rest(_a, ["children"]);
|
||||
return (u(Child, Object.assign({ ref: attachListener(fieldList) }, props), children));
|
||||
};
|
||||
}
|
||||
function injectProps(childComponent, fieldList) {
|
||||
var unsubscribe = null;
|
||||
var elementRefName = Object.keys(childComponent.properties).find(function (propName) {
|
||||
return childComponent.properties[propName].elementRef == true;
|
||||
});
|
||||
if (elementRefName == undefined) {
|
||||
throw new Error("Please ensure that your Component " + childComponent.is + " has an attribute with an \"@Element\" decorator. " +
|
||||
"This is required to be able to inject properties.");
|
||||
}
|
||||
var prevComponentWillLoad = childComponent.prototype.componentWillLoad;
|
||||
childComponent.prototype.componentWillLoad = function () {
|
||||
unsubscribe = subscribe(this[elementRefName], fieldList);
|
||||
if (prevComponentWillLoad) {
|
||||
return prevComponentWillLoad.bind(this)();
|
||||
}
|
||||
};
|
||||
var prevComponentDidUnload = childComponent.prototype.componentDidUnload;
|
||||
childComponent.prototype.componentDidUnload = function () {
|
||||
unsubscribe();
|
||||
if (prevComponentDidUnload) {
|
||||
return prevComponentDidUnload.bind(this)();
|
||||
}
|
||||
};
|
||||
}
|
||||
return {
|
||||
Provider: Provider,
|
||||
Consumer: Consumer,
|
||||
wrapConsumer: wrapConsumer,
|
||||
injectProps: injectProps
|
||||
};
|
||||
}
|
||||
|
||||
// StencilStateTunnel: ES Module
|
||||
|
||||
var ActiveRouter = createProviderConsumer({
|
||||
historyType: 'browser',
|
||||
location: {
|
||||
pathname: '',
|
||||
query: {},
|
||||
key: ''
|
||||
},
|
||||
titleSuffix: '',
|
||||
root: '/',
|
||||
routeViewsUpdated: () => { }
|
||||
});
|
||||
|
||||
const canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
||||
const addEventListener$1 = (node, event, listener) => (node.addEventListener
|
||||
? node.addEventListener(event, listener, false)
|
||||
: node.attachEvent('on' + event, listener));
|
||||
const removeEventListener = (node, event, listener) => (node.removeEventListener
|
||||
? node.removeEventListener(event, listener, false)
|
||||
: node.detachEvent('on' + event, listener));
|
||||
const getConfirmation = (message, callback) => (callback(window.confirm(message)));
|
||||
const isModifiedEvent = (event) => (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
|
||||
const supportsHistory = () => {
|
||||
const ua = window.navigator.userAgent;
|
||||
if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
|
||||
ua.indexOf('Mobile Safari') !== -1 &&
|
||||
ua.indexOf('Chrome') === -1 &&
|
||||
ua.indexOf('Windows Phone') === -1) {
|
||||
return false;
|
||||
}
|
||||
return window.history && 'pushState' in window.history;
|
||||
};
|
||||
const supportsPopStateOnHashChange = () => (window.navigator.userAgent.indexOf('Trident') === -1);
|
||||
const supportsGoWithoutReloadUsingHash = () => (window.navigator.userAgent.indexOf('Firefox') === -1);
|
||||
const isExtraneousPopstateEvent = (event) => (event.state === undefined &&
|
||||
navigator.userAgent.indexOf('CriOS') === -1);
|
||||
const storageAvailable = (type) => {
|
||||
var storage = window[type], x = '__storage_test__';
|
||||
try {
|
||||
storage.setItem(x, x);
|
||||
storage.removeItem(x);
|
||||
return true;
|
||||
}
|
||||
catch (e) {
|
||||
return e instanceof DOMException && (e.code === 22 ||
|
||||
e.code === 1014 ||
|
||||
e.name === 'QuotaExceededError' ||
|
||||
e.name === 'NS_ERROR_DOM_QUOTA_REACHED') &&
|
||||
storage.length !== 0;
|
||||
}
|
||||
};
|
||||
|
||||
export { matchPath as a, matchesAreEqual as b, ActiveRouter as c, storageAvailable as d, createLocation as e, createKey as f, addLeadingSlash as g, stripTrailingSlash as h, hasBasename as i, stripBasename as j, createPath as k, canUseDOM as l, addEventListener$1 as m, removeEventListener as n, getConfirmation as o, supportsHistory as p, supportsPopStateOnHashChange as q, isExtraneousPopstateEvent as r, locationsAreEqual as s, stripLeadingSlash as t, supportsGoWithoutReloadUsingHash as u, isModifiedEvent as v };
|
||||
@@ -1,628 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle('chunk-4e065e0c.js', ['require', 'exports'], function (require, exports) {
|
||||
var h = window.DocsSite.h;
|
||||
var DEFAULT_DELIMITER = '/';
|
||||
var DEFAULT_DELIMITERS = './';
|
||||
var PATH_REGEXP = new RegExp([
|
||||
'(\\\\.)',
|
||||
'(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?'
|
||||
].join('|'), 'g');
|
||||
function parse(str, options) {
|
||||
var tokens = [];
|
||||
var key = 0;
|
||||
var index = 0;
|
||||
var path = '';
|
||||
var defaultDelimiter = (options && options.delimiter) || DEFAULT_DELIMITER;
|
||||
var delimiters = (options && options.delimiters) || DEFAULT_DELIMITERS;
|
||||
var pathEscaped = false;
|
||||
var res;
|
||||
while ((res = PATH_REGEXP.exec(str)) !== null) {
|
||||
var m = res[0];
|
||||
var escaped = res[1];
|
||||
var offset = res.index;
|
||||
path += str.slice(index, offset);
|
||||
index = offset + m.length;
|
||||
if (escaped) {
|
||||
path += escaped[1];
|
||||
pathEscaped = true;
|
||||
continue;
|
||||
}
|
||||
var prev = '';
|
||||
var next = str[index];
|
||||
var name = res[2];
|
||||
var capture = res[3];
|
||||
var group = res[4];
|
||||
var modifier = res[5];
|
||||
if (!pathEscaped && path.length) {
|
||||
var k = path.length - 1;
|
||||
if (delimiters.indexOf(path[k]) > -1) {
|
||||
prev = path[k];
|
||||
path = path.slice(0, k);
|
||||
}
|
||||
}
|
||||
if (path) {
|
||||
tokens.push(path);
|
||||
path = '';
|
||||
pathEscaped = false;
|
||||
}
|
||||
var partial = prev !== '' && next !== undefined && next !== prev;
|
||||
var repeat = modifier === '+' || modifier === '*';
|
||||
var optional = modifier === '?' || modifier === '*';
|
||||
var delimiter = prev || defaultDelimiter;
|
||||
var pattern = capture || group;
|
||||
tokens.push({
|
||||
name: name || key++,
|
||||
prefix: prev,
|
||||
delimiter: delimiter,
|
||||
optional: optional,
|
||||
repeat: repeat,
|
||||
partial: partial,
|
||||
pattern: pattern ? escapeGroup(pattern) : '[^' + escapeString(delimiter) + ']+?'
|
||||
});
|
||||
}
|
||||
if (path || index < str.length) {
|
||||
tokens.push(path + str.substr(index));
|
||||
}
|
||||
return tokens;
|
||||
}
|
||||
function escapeString(str) {
|
||||
return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1');
|
||||
}
|
||||
function escapeGroup(group) {
|
||||
return group.replace(/([=!:$/()])/g, '\\$1');
|
||||
}
|
||||
function flags(options) {
|
||||
return options && options.sensitive ? '' : 'i';
|
||||
}
|
||||
function regexpToRegexp(path, keys) {
|
||||
if (!keys)
|
||||
return path;
|
||||
var groups = path.source.match(/\((?!\?)/g);
|
||||
if (groups) {
|
||||
for (var i = 0; i < groups.length; i++) {
|
||||
keys.push({
|
||||
name: i,
|
||||
prefix: null,
|
||||
delimiter: null,
|
||||
optional: false,
|
||||
repeat: false,
|
||||
partial: false,
|
||||
pattern: null
|
||||
});
|
||||
}
|
||||
}
|
||||
return path;
|
||||
}
|
||||
function arrayToRegexp(path, keys, options) {
|
||||
var parts = [];
|
||||
for (var i = 0; i < path.length; i++) {
|
||||
parts.push(pathToRegexp(path[i], keys, options).source);
|
||||
}
|
||||
return new RegExp('(?:' + parts.join('|') + ')', flags(options));
|
||||
}
|
||||
function stringToRegexp(path, keys, options) {
|
||||
return tokensToRegExp(parse(path, options), keys, options);
|
||||
}
|
||||
function tokensToRegExp(tokens, keys, options) {
|
||||
options = options || {};
|
||||
var strict = options.strict;
|
||||
var end = options.end !== false;
|
||||
var delimiter = escapeString(options.delimiter || DEFAULT_DELIMITER);
|
||||
var delimiters = options.delimiters || DEFAULT_DELIMITERS;
|
||||
var endsWith = [].concat(options.endsWith || []).map(escapeString).concat('$').join('|');
|
||||
var route = '';
|
||||
var isEndDelimited = false;
|
||||
for (var i = 0; i < tokens.length; i++) {
|
||||
var token = tokens[i];
|
||||
if (typeof token === 'string') {
|
||||
route += escapeString(token);
|
||||
isEndDelimited = i === tokens.length - 1 && delimiters.indexOf(token[token.length - 1]) > -1;
|
||||
}
|
||||
else {
|
||||
var prefix = escapeString(token.prefix || '');
|
||||
var capture = token.repeat
|
||||
? '(?:' + token.pattern + ')(?:' + prefix + '(?:' + token.pattern + '))*'
|
||||
: token.pattern;
|
||||
if (keys)
|
||||
keys.push(token);
|
||||
if (token.optional) {
|
||||
if (token.partial) {
|
||||
route += prefix + '(' + capture + ')?';
|
||||
}
|
||||
else {
|
||||
route += '(?:' + prefix + '(' + capture + '))?';
|
||||
}
|
||||
}
|
||||
else {
|
||||
route += prefix + '(' + capture + ')';
|
||||
}
|
||||
}
|
||||
}
|
||||
if (end) {
|
||||
if (!strict)
|
||||
route += '(?:' + delimiter + ')?';
|
||||
route += endsWith === '$' ? '$' : '(?=' + endsWith + ')';
|
||||
}
|
||||
else {
|
||||
if (!strict)
|
||||
route += '(?:' + delimiter + '(?=' + endsWith + '))?';
|
||||
if (!isEndDelimited)
|
||||
route += '(?=' + delimiter + '|' + endsWith + ')';
|
||||
}
|
||||
return new RegExp('^' + route, flags(options));
|
||||
}
|
||||
function pathToRegexp(path, keys, options) {
|
||||
if (path instanceof RegExp) {
|
||||
return regexpToRegexp(path, keys);
|
||||
}
|
||||
if (Array.isArray(path)) {
|
||||
return arrayToRegexp(path, keys, options);
|
||||
}
|
||||
return stringToRegexp(path, keys, options);
|
||||
}
|
||||
function hasBasename(path, prefix) {
|
||||
return (new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i')).test(path);
|
||||
}
|
||||
function stripBasename(path, prefix) {
|
||||
return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
||||
}
|
||||
function stripTrailingSlash(path) {
|
||||
return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
|
||||
}
|
||||
function addLeadingSlash(path) {
|
||||
return path.charAt(0) === '/' ? path : '/' + path;
|
||||
}
|
||||
function stripLeadingSlash(path) {
|
||||
return path.charAt(0) === '/' ? path.substr(1) : path;
|
||||
}
|
||||
function parsePath(path) {
|
||||
var pathname = path || '/';
|
||||
var search = '';
|
||||
var hash = '';
|
||||
var hashIndex = pathname.indexOf('#');
|
||||
if (hashIndex !== -1) {
|
||||
hash = pathname.substr(hashIndex);
|
||||
pathname = pathname.substr(0, hashIndex);
|
||||
}
|
||||
var searchIndex = pathname.indexOf('?');
|
||||
if (searchIndex !== -1) {
|
||||
search = pathname.substr(searchIndex);
|
||||
pathname = pathname.substr(0, searchIndex);
|
||||
}
|
||||
return {
|
||||
pathname: pathname,
|
||||
search: search === '?' ? '' : search,
|
||||
hash: hash === '#' ? '' : hash,
|
||||
query: {},
|
||||
key: ''
|
||||
};
|
||||
}
|
||||
function createPath(location) {
|
||||
var pathname = location.pathname, search = location.search, hash = location.hash;
|
||||
var path = pathname || '/';
|
||||
if (search && search !== '?') {
|
||||
path += (search.charAt(0) === '?' ? search : "?" + search);
|
||||
}
|
||||
if (hash && hash !== '#') {
|
||||
path += (hash.charAt(0) === '#' ? hash : "#" + hash);
|
||||
}
|
||||
return path;
|
||||
}
|
||||
function parseQueryString(query) {
|
||||
if (!query) {
|
||||
return {};
|
||||
}
|
||||
return (/^[?#]/.test(query) ? query.slice(1) : query)
|
||||
.split('&')
|
||||
.reduce(function (params, param) {
|
||||
var _c = param.split('='), key = _c[0], value = _c[1];
|
||||
params[key] = value ? decodeURIComponent(value.replace(/\+/g, ' ')) : '';
|
||||
return params;
|
||||
}, {});
|
||||
}
|
||||
function isAbsolute(pathname) {
|
||||
return pathname.charAt(0) === '/';
|
||||
}
|
||||
function createKey(keyLength) {
|
||||
return Math.random().toString(36).substr(2, keyLength);
|
||||
}
|
||||
function spliceOne(list, index) {
|
||||
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
|
||||
list[i] = list[k];
|
||||
}
|
||||
list.pop();
|
||||
}
|
||||
function resolvePathname(to, from) {
|
||||
if (from === void 0) { from = ''; }
|
||||
var toParts = to && to.split('/') || [];
|
||||
var fromParts = from && from.split('/') || [];
|
||||
var isToAbs = to && isAbsolute(to);
|
||||
var isFromAbs = from && isAbsolute(from);
|
||||
var mustEndAbs = isToAbs || isFromAbs;
|
||||
if (to && isAbsolute(to)) {
|
||||
fromParts = toParts;
|
||||
}
|
||||
else if (toParts.length) {
|
||||
fromParts.pop();
|
||||
fromParts = fromParts.concat(toParts);
|
||||
}
|
||||
if (!fromParts.length) {
|
||||
return '/';
|
||||
}
|
||||
var hasTrailingSlash;
|
||||
if (fromParts.length) {
|
||||
var last = fromParts[fromParts.length - 1];
|
||||
hasTrailingSlash = (last === '.' || last === '..' || last === '');
|
||||
}
|
||||
else {
|
||||
hasTrailingSlash = false;
|
||||
}
|
||||
var up = 0;
|
||||
for (var i = fromParts.length; i >= 0; i--) {
|
||||
var part = fromParts[i];
|
||||
if (part === '.') {
|
||||
spliceOne(fromParts, i);
|
||||
}
|
||||
else if (part === '..') {
|
||||
spliceOne(fromParts, i);
|
||||
up++;
|
||||
}
|
||||
else if (up) {
|
||||
spliceOne(fromParts, i);
|
||||
up--;
|
||||
}
|
||||
}
|
||||
if (!mustEndAbs) {
|
||||
for (; up--; up) {
|
||||
fromParts.unshift('..');
|
||||
}
|
||||
}
|
||||
if (mustEndAbs && fromParts[0] !== '' && (!fromParts[0] || !isAbsolute(fromParts[0]))) {
|
||||
fromParts.unshift('');
|
||||
}
|
||||
var result = fromParts.join('/');
|
||||
if (hasTrailingSlash && result.substr(-1) !== '/') {
|
||||
result += '/';
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function valueEqual(a, b) {
|
||||
if (a === b) {
|
||||
return true;
|
||||
}
|
||||
if (a == null || b == null) {
|
||||
return false;
|
||||
}
|
||||
if (Array.isArray(a)) {
|
||||
return Array.isArray(b) && a.length === b.length && a.every(function (item, index) {
|
||||
return valueEqual(item, b[index]);
|
||||
});
|
||||
}
|
||||
var aType = typeof a;
|
||||
var bType = typeof b;
|
||||
if (aType !== bType) {
|
||||
return false;
|
||||
}
|
||||
if (aType === 'object') {
|
||||
var aValue = a.valueOf();
|
||||
var bValue = b.valueOf();
|
||||
if (aValue !== a || bValue !== b) {
|
||||
return valueEqual(aValue, bValue);
|
||||
}
|
||||
var aKeys = Object.keys(a);
|
||||
var bKeys = Object.keys(b);
|
||||
if (aKeys.length !== bKeys.length) {
|
||||
return false;
|
||||
}
|
||||
return aKeys.every(function (key) {
|
||||
return valueEqual(a[key], b[key]);
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function locationsAreEqual(a, b) {
|
||||
return a.pathname === b.pathname &&
|
||||
a.search === b.search &&
|
||||
a.hash === b.hash &&
|
||||
a.key === b.key &&
|
||||
valueEqual(a.state, b.state);
|
||||
}
|
||||
function createLocation(path, state, key, currentLocation) {
|
||||
var location;
|
||||
if (typeof path === 'string') {
|
||||
location = parsePath(path);
|
||||
if (location.state !== undefined) {
|
||||
location.state = state;
|
||||
}
|
||||
}
|
||||
else {
|
||||
location = Object.assign({ pathname: '' }, path);
|
||||
if (location.search && location.search.charAt(0) !== '?') {
|
||||
location.search = '?' + location.search;
|
||||
}
|
||||
if (location.hash && location.hash.charAt(0) !== '#') {
|
||||
location.hash = '#' + location.hash;
|
||||
}
|
||||
if (state !== undefined && location.state === undefined) {
|
||||
location.state = state;
|
||||
}
|
||||
}
|
||||
try {
|
||||
location.pathname = decodeURI(location.pathname);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof URIError) {
|
||||
throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' +
|
||||
'This is likely caused by an invalid percent-encoding.');
|
||||
}
|
||||
else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
location.key = key;
|
||||
if (currentLocation) {
|
||||
if (!location.pathname) {
|
||||
location.pathname = currentLocation.pathname;
|
||||
}
|
||||
else if (location.pathname.charAt(0) !== '/') {
|
||||
location.pathname = resolvePathname(location.pathname, currentLocation.pathname);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!location.pathname) {
|
||||
location.pathname = '/';
|
||||
}
|
||||
}
|
||||
location.query = parseQueryString(location.search || '');
|
||||
return location;
|
||||
}
|
||||
var patternCache = {};
|
||||
var cacheLimit = 10000;
|
||||
var cacheCount = 0;
|
||||
function compilePath(pattern, options) {
|
||||
var cacheKey = "" + options.end + options.strict;
|
||||
var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});
|
||||
var cachePattern = JSON.stringify(pattern);
|
||||
if (cache[cachePattern]) {
|
||||
return cache[cachePattern];
|
||||
}
|
||||
var keys = [];
|
||||
var re = pathToRegexp(pattern, keys, options);
|
||||
var compiledPattern = { re: re, keys: keys };
|
||||
if (cacheCount < cacheLimit) {
|
||||
cache[cachePattern] = compiledPattern;
|
||||
cacheCount += 1;
|
||||
}
|
||||
return compiledPattern;
|
||||
}
|
||||
function matchPath(pathname, options) {
|
||||
if (options === void 0) { options = {}; }
|
||||
if (typeof options === 'string') {
|
||||
options = { path: options };
|
||||
}
|
||||
var _c = options.path, path = _c === void 0 ? '/' : _c, _d = options.exact, exact = _d === void 0 ? false : _d, _e = options.strict, strict = _e === void 0 ? false : _e;
|
||||
var _f = compilePath(path, { end: exact, strict: strict }), re = _f.re, keys = _f.keys;
|
||||
var match = re.exec(pathname);
|
||||
if (!match) {
|
||||
return null;
|
||||
}
|
||||
var url = match[0], values = match.slice(1);
|
||||
var isExact = pathname === url;
|
||||
if (exact && !isExact) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
path: path,
|
||||
url: path === '/' && url === '' ? '/' : url,
|
||||
isExact: isExact,
|
||||
params: keys.reduce(function (memo, key, index) {
|
||||
memo[key.name] = values[index];
|
||||
return memo;
|
||||
}, {})
|
||||
};
|
||||
}
|
||||
function matchesAreEqual(a, b) {
|
||||
if (a == null && b == null) {
|
||||
return true;
|
||||
}
|
||||
if (b == null) {
|
||||
return false;
|
||||
}
|
||||
return a && b &&
|
||||
a.path === b.path &&
|
||||
a.url === b.url &&
|
||||
valueEqual(a.params, b.params);
|
||||
}
|
||||
/*!
|
||||
* StencilStateTunnel: Core, es5
|
||||
* Built with http://stenciljs.com
|
||||
*/
|
||||
function u(n, t) { for (var e, r, i = null, o = !1, u = !1, f = arguments.length; f-- > 2;)
|
||||
T.push(arguments[f]); for (; T.length > 0;) {
|
||||
var c = T.pop();
|
||||
if (c && void 0 !== c.pop)
|
||||
for (f = c.length; f--;)
|
||||
T.push(c[f]);
|
||||
else
|
||||
"boolean" == typeof c && (c = null), (u = "function" != typeof n) && (null == c ? c = "" : "number" == typeof c ? c = String(c) : "string" != typeof c && (u = !1)), u && o ? i[i.length - 1].vtext += c : null === i ? i = [u ? { vtext: c } : c] : i.push(u ? { vtext: c } : c), o = u;
|
||||
} if (null != t) {
|
||||
if (t.className && (t.class = t.className), "object" == typeof t.class) {
|
||||
for (f in t.class)
|
||||
t.class[f] && T.push(f);
|
||||
t.class = T.join(" "), T.length = 0;
|
||||
}
|
||||
null != t.key && (e = t.key), null != t.name && (r = t.name);
|
||||
} return "function" == typeof n ? n(t, i || [], W) : { vtag: n, vchildren: i, vtext: void 0, vattrs: t, vkey: e, vname: r, w: void 0, g: !1 }; }
|
||||
function f(n) { return { vtag: n.vtag, vchildren: n.vchildren, vtext: n.vtext, vattrs: n.vattrs, vkey: n.vkey, vname: n.vname }; }
|
||||
undefined && undefined.Dn || (Object.setPrototypeOf || Array);
|
||||
var T = [], W = { forEach: function (n, t) { n.forEach(function (n, e, r) { return t(f(n), e, r); }); }, map: function (n, t) { return n.map(function (n, e, r) { return function i(n) { return { vtag: n.vtag, vchildren: n.vchildren, vtext: n.vtext, vattrs: n.vattrs, vkey: n.vkey, vname: n.vname }; }(t(f(n), e, r)); }); } };
|
||||
/*! Built with http://stenciljs.com */
|
||||
var __rest = function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s)
|
||||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
||||
if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
return t;
|
||||
};
|
||||
function defaultConsumerRender(subscribe, renderer) {
|
||||
return u("context-consumer", { subscribe: subscribe, renderer: renderer });
|
||||
}
|
||||
function createProviderConsumer(defaultState, consumerRender) {
|
||||
if (consumerRender === void 0) {
|
||||
consumerRender = defaultConsumerRender;
|
||||
}
|
||||
var listeners = new Map();
|
||||
var currentState = defaultState;
|
||||
function notifyConsumers() {
|
||||
listeners.forEach(updateListener);
|
||||
}
|
||||
function updateListener(fields, listener) {
|
||||
if (Array.isArray(fields)) {
|
||||
fields.slice().forEach(function (fieldName) {
|
||||
listener[fieldName] = currentState[fieldName];
|
||||
});
|
||||
}
|
||||
else {
|
||||
listener[fields] = Object.assign({}, currentState);
|
||||
}
|
||||
listener.forceUpdate();
|
||||
}
|
||||
function attachListener(propList) {
|
||||
return function (el) {
|
||||
if (listeners.has(el)) {
|
||||
return;
|
||||
}
|
||||
listeners.set(el, propList);
|
||||
updateListener(propList, el);
|
||||
};
|
||||
}
|
||||
function subscribe(el, propList) {
|
||||
attachListener(propList)(el);
|
||||
return function () {
|
||||
listeners.delete(el);
|
||||
};
|
||||
}
|
||||
var Provider = function (_b, children) {
|
||||
var state = _b.state;
|
||||
currentState = state;
|
||||
notifyConsumers();
|
||||
return children;
|
||||
};
|
||||
var Consumer = function (props, children) {
|
||||
return consumerRender(subscribe, children[0]);
|
||||
};
|
||||
function wrapConsumer(childComponent, fieldList) {
|
||||
var Child = childComponent.is;
|
||||
return function (_a) {
|
||||
var children = _a.children, props = __rest(_a, ["children"]);
|
||||
return (u(Child, Object.assign({ ref: attachListener(fieldList) }, props), children));
|
||||
};
|
||||
}
|
||||
function injectProps(childComponent, fieldList) {
|
||||
var unsubscribe = null;
|
||||
var elementRefName = Object.keys(childComponent.properties).find(function (propName) {
|
||||
return childComponent.properties[propName].elementRef == true;
|
||||
});
|
||||
if (elementRefName == undefined) {
|
||||
throw new Error("Please ensure that your Component " + childComponent.is + " has an attribute with an \"@Element\" decorator. " +
|
||||
"This is required to be able to inject properties.");
|
||||
}
|
||||
var prevComponentWillLoad = childComponent.prototype.componentWillLoad;
|
||||
childComponent.prototype.componentWillLoad = function () {
|
||||
unsubscribe = subscribe(this[elementRefName], fieldList);
|
||||
if (prevComponentWillLoad) {
|
||||
return prevComponentWillLoad.bind(this)();
|
||||
}
|
||||
};
|
||||
var prevComponentDidUnload = childComponent.prototype.componentDidUnload;
|
||||
childComponent.prototype.componentDidUnload = function () {
|
||||
unsubscribe();
|
||||
if (prevComponentDidUnload) {
|
||||
return prevComponentDidUnload.bind(this)();
|
||||
}
|
||||
};
|
||||
}
|
||||
return {
|
||||
Provider: Provider,
|
||||
Consumer: Consumer,
|
||||
wrapConsumer: wrapConsumer,
|
||||
injectProps: injectProps
|
||||
};
|
||||
}
|
||||
// StencilStateTunnel: ES Module
|
||||
var ActiveRouter = createProviderConsumer({
|
||||
historyType: 'browser',
|
||||
location: {
|
||||
pathname: '',
|
||||
query: {},
|
||||
key: ''
|
||||
},
|
||||
titleSuffix: '',
|
||||
root: '/',
|
||||
routeViewsUpdated: function () { }
|
||||
});
|
||||
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
||||
var addEventListener$1 = function (node, event, listener) { return (node.addEventListener
|
||||
? node.addEventListener(event, listener, false)
|
||||
: node.attachEvent('on' + event, listener)); };
|
||||
var removeEventListener = function (node, event, listener) { return (node.removeEventListener
|
||||
? node.removeEventListener(event, listener, false)
|
||||
: node.detachEvent('on' + event, listener)); };
|
||||
var getConfirmation = function (message, callback) { return (callback(window.confirm(message))); };
|
||||
var isModifiedEvent = function (event) { return (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); };
|
||||
var supportsHistory = function () {
|
||||
var ua = window.navigator.userAgent;
|
||||
if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
|
||||
ua.indexOf('Mobile Safari') !== -1 &&
|
||||
ua.indexOf('Chrome') === -1 &&
|
||||
ua.indexOf('Windows Phone') === -1) {
|
||||
return false;
|
||||
}
|
||||
return window.history && 'pushState' in window.history;
|
||||
};
|
||||
var supportsPopStateOnHashChange = function () { return (window.navigator.userAgent.indexOf('Trident') === -1); };
|
||||
var supportsGoWithoutReloadUsingHash = function () { return (window.navigator.userAgent.indexOf('Firefox') === -1); };
|
||||
var isExtraneousPopstateEvent = function (event) { return (event.state === undefined &&
|
||||
navigator.userAgent.indexOf('CriOS') === -1); };
|
||||
var storageAvailable = function (type) {
|
||||
var storage = window[type], x = '__storage_test__';
|
||||
try {
|
||||
storage.setItem(x, x);
|
||||
storage.removeItem(x);
|
||||
return true;
|
||||
}
|
||||
catch (e) {
|
||||
return e instanceof DOMException && (e.code === 22 ||
|
||||
e.code === 1014 ||
|
||||
e.name === 'QuotaExceededError' ||
|
||||
e.name === 'NS_ERROR_DOM_QUOTA_REACHED') &&
|
||||
storage.length !== 0;
|
||||
}
|
||||
};
|
||||
exports.matchPath = matchPath;
|
||||
exports.matchesAreEqual = matchesAreEqual;
|
||||
exports.ActiveRouter = ActiveRouter;
|
||||
exports.storageAvailable = storageAvailable;
|
||||
exports.createLocation = createLocation;
|
||||
exports.createKey = createKey;
|
||||
exports.addLeadingSlash = addLeadingSlash;
|
||||
exports.stripTrailingSlash = stripTrailingSlash;
|
||||
exports.hasBasename = hasBasename;
|
||||
exports.stripBasename = stripBasename;
|
||||
exports.createPath = createPath;
|
||||
exports.canUseDOM = canUseDOM;
|
||||
exports.addEventListener = addEventListener$1;
|
||||
exports.removeEventListener = removeEventListener;
|
||||
exports.getConfirmation = getConfirmation;
|
||||
exports.supportsHistory = supportsHistory;
|
||||
exports.supportsPopStateOnHashChange = supportsPopStateOnHashChange;
|
||||
exports.isExtraneousPopstateEvent = isExtraneousPopstateEvent;
|
||||
exports.locationsAreEqual = locationsAreEqual;
|
||||
exports.stripLeadingSlash = stripLeadingSlash;
|
||||
exports.supportsGoWithoutReloadUsingHash = supportsGoWithoutReloadUsingHash;
|
||||
exports.isModifiedEvent = isModifiedEvent;
|
||||
});
|
||||
@@ -1,74 +0,0 @@
|
||||
{
|
||||
"namespace": "DocsSite",
|
||||
"fsNamespace": "docssite",
|
||||
"loader": "../docssite.js",
|
||||
"core": "docssite.core.js",
|
||||
"corePolyfilled": "docssite.core.pf.js",
|
||||
"components": {
|
||||
"footer-bar": {
|
||||
"bundleIds": {
|
||||
"$": "footer-bar"
|
||||
}
|
||||
},
|
||||
"header-bar": {
|
||||
"bundleIds": {
|
||||
"$": "header-bar"
|
||||
}
|
||||
},
|
||||
"icon-list": {
|
||||
"bundleIds": {
|
||||
"$": "icon-list"
|
||||
}
|
||||
},
|
||||
"icon-search": {
|
||||
"bundleIds": {
|
||||
"$": "icon-search"
|
||||
}
|
||||
},
|
||||
"ionicons-site": {
|
||||
"bundleIds": {
|
||||
"$": "header-bar"
|
||||
}
|
||||
},
|
||||
"landing-page": {
|
||||
"bundleIds": {
|
||||
"$": "icon-list"
|
||||
}
|
||||
},
|
||||
"notfound-page": {
|
||||
"bundleIds": {
|
||||
"$": "notfound-page"
|
||||
}
|
||||
},
|
||||
"stencil-route": {
|
||||
"bundleIds": {
|
||||
"$": "header-bar"
|
||||
}
|
||||
},
|
||||
"stencil-route-link": {
|
||||
"bundleIds": {
|
||||
"$": "stencil-route-link"
|
||||
}
|
||||
},
|
||||
"stencil-route-switch": {
|
||||
"bundleIds": {
|
||||
"$": "header-bar"
|
||||
}
|
||||
},
|
||||
"stencil-router": {
|
||||
"bundleIds": {
|
||||
"$": "header-bar"
|
||||
}
|
||||
},
|
||||
"toast-bar": {
|
||||
"bundleIds": {
|
||||
"$": "icon-list"
|
||||
}
|
||||
},
|
||||
"usage-page": {
|
||||
"bundleIds": {
|
||||
"$": "usage-page"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,96 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle('dom.js', ['exports'], function (exports) {
|
||||
var h = window.DocsSite.h;
|
||||
function applyPolyfill(window, document) {
|
||||
if (!window['s-ce1']) {
|
||||
window['s-ce1'] = true;
|
||||
(function (e, t) { function Ht() { var e = wt.splice(0, wt.length); Et = 0; while (e.length)
|
||||
e.shift().call(null, e.shift()); } function Bt(e, t) { for (var n = 0, r = e.length; n < r; n++)
|
||||
Jt(e[n], t); } function jt(e) { for (var t = 0, n = e.length, r; t < n; t++)
|
||||
r = e[t], Pt(r, A[It(r)]); } function Ft(e) { return function (t) { ut(t) && (Jt(t, e), O.length && Bt(t.querySelectorAll(O), e)); }; } function It(e) { var t = ht.call(e, "is"), n = e.nodeName.toUpperCase(), r = _.call(L, t ? N + t.toUpperCase() : T + n); return t && -1 < r && !qt(n, t) ? -1 : r; } function qt(e, t) { return -1 < O.indexOf(e + '[is="' + t + '"]'); } function Rt(e) { var t = e.currentTarget, n = e.attrChange, r = e.attrName, i = e.target, s = e[y] || 2, o = e[w] || 3; kt && (!i || i === t) && t[h] && r !== "style" && (e.prevValue !== e.newValue || e.newValue === "" && (n === s || n === o)) && t[h](r, n === s ? null : e.prevValue, n === o ? null : e.newValue); } function Ut(e) { var t = Ft(e); return function (e) { wt.push(t, e.target), Et && clearTimeout(Et), Et = setTimeout(Ht, 1); }; } function zt(e) { Ct && (Ct = !1, e.currentTarget.removeEventListener(S, zt)), O.length && Bt((e.target || n).querySelectorAll(O), e.detail === l ? l : a), st && Vt(); } function Wt(e, t) { var n = this; vt.call(n, e, t), Lt.call(n, { target: n }); } function Xt(e, t) { nt(e, t), Mt ? Mt.observe(e, yt) : (Nt && (e.setAttribute = Wt, e[o] = Ot(e), e[u](x, Lt)), e[u](E, Rt)), e[m] && kt && (e.created = !0, e[m](), e.created = !1); } function Vt() { for (var e, t = 0, n = at.length; t < n; t++)
|
||||
e = at[t], M.contains(e) || (n--, at.splice(t--, 1), Jt(e, l)); } function $t(e) { throw new Error("A " + e + " type is already registered"); } function Jt(e, t) { var n, r = It(e), i; -1 < r && (Dt(e, A[r]), r = 0, t === a && !e[a] ? (e[l] = !1, e[a] = !0, i = "connected", r = 1, st && _.call(at, e) < 0 && at.push(e)) : t === l && !e[l] && (e[a] = !1, e[l] = !0, i = "disconnected", r = 1), r && (n = e[t + f] || e[i + f]) && n.call(e)); } function Kt() { } function Qt(e, t, r) { var i = r && r[c] || "", o = t.prototype, u = tt(o), a = t.observedAttributes || j, f = { prototype: u }; ot(u, m, { value: function () { if (Q)
|
||||
Q = !1;
|
||||
else if (!this[W]) {
|
||||
this[W] = !0, new t(this), o[m] && o[m].call(this);
|
||||
var e = G[Z.get(t)];
|
||||
(!V || e.create.length > 1) && Zt(this);
|
||||
} } }), ot(u, h, { value: function (e) { -1 < _.call(a, e) && o[h].apply(this, arguments); } }), o[d] && ot(u, p, { value: o[d] }), o[v] && ot(u, g, { value: o[v] }), i && (f[c] = i), e = e.toUpperCase(), G[e] = { constructor: t, create: i ? [i, et(e)] : [e] }, Z.set(t, e), n[s](e.toLowerCase(), f), en(e), Y[e].r(); } function Gt(e) { var t = G[e.toUpperCase()]; return t && t.constructor; } function Yt(e) { return typeof e == "string" ? e : e && e.is || ""; } function Zt(e) { var t = e[h], n = t ? e.attributes : j, r = n.length, i; while (r--)
|
||||
i = n[r], t.call(e, i.name || i.nodeName, null, i.value || i.nodeValue); } function en(e) { return e = e.toUpperCase(), e in Y || (Y[e] = {}, Y[e].p = new K(function (t) { Y[e].r = t; })), Y[e].p; } function tn() { X && delete e.customElements, B(e, "customElements", { configurable: !0, value: new Kt }), B(e, "CustomElementRegistry", { configurable: !0, value: Kt }); for (var t = function (t) { var r = e[t]; if (r) {
|
||||
e[t] = function (t) { var i, s; return t || (t = this), t[W] || (Q = !0, i = G[Z.get(t.constructor)], s = V && i.create.length === 1, t = s ? Reflect.construct(r, j, i.constructor) : n.createElement.apply(n, i.create), t[W] = !0, Q = !1, s || Zt(t)), t; }, e[t].prototype = r.prototype;
|
||||
try {
|
||||
r.prototype.constructor = e[t];
|
||||
}
|
||||
catch (i) {
|
||||
B(r, W, { value: e[t] });
|
||||
}
|
||||
} }, r = i.get(/^HTML[A-Z]*[a-z]/), o = r.length; o--; t(r[o]))
|
||||
; n.createElement = function (e, t) { var n = Yt(t); return n ? gt.call(this, e, et(n)) : gt.call(this, e); }, St || (Tt = !0, n[s]("")); } var n = e.document, r = e.Object, i = function (e) { var t = /^[A-Z]+[a-z]/, n = function (e) { var t = [], n; for (n in s)
|
||||
e.test(n) && t.push(n); return t; }, i = function (e, t) { t = t.toLowerCase(), t in s || (s[e] = (s[e] || []).concat(t), s[t] = s[t.toUpperCase()] = e); }, s = (r.create || r)(null), o = {}, u, a, f, l; for (a in e)
|
||||
for (l in e[a]) {
|
||||
f = e[a][l], s[l] = f;
|
||||
for (u = 0; u < f.length; u++)
|
||||
s[f[u].toLowerCase()] = s[f[u].toUpperCase()] = l;
|
||||
} return o.get = function (r) { return typeof r == "string" ? s[r] || (t.test(r) ? [] : "") : n(r); }, o.set = function (n, r) { return t.test(n) ? i(n, r) : i(r, n), o; }, o; }({ collections: { HTMLAllCollection: ["all"], HTMLCollection: ["forms"], HTMLFormControlsCollection: ["elements"], HTMLOptionsCollection: ["options"] }, elements: { Element: ["element"], HTMLAnchorElement: ["a"], HTMLAppletElement: ["applet"], HTMLAreaElement: ["area"], HTMLAttachmentElement: ["attachment"], HTMLAudioElement: ["audio"], HTMLBRElement: ["br"], HTMLBaseElement: ["base"], HTMLBodyElement: ["body"], HTMLButtonElement: ["button"], HTMLCanvasElement: ["canvas"], HTMLContentElement: ["content"], HTMLDListElement: ["dl"], HTMLDataElement: ["data"], HTMLDataListElement: ["datalist"], HTMLDetailsElement: ["details"], HTMLDialogElement: ["dialog"], HTMLDirectoryElement: ["dir"], HTMLDivElement: ["div"], HTMLDocument: ["document"], HTMLElement: ["element", "abbr", "address", "article", "aside", "b", "bdi", "bdo", "cite", "code", "command", "dd", "dfn", "dt", "em", "figcaption", "figure", "footer", "header", "i", "kbd", "mark", "nav", "noscript", "rp", "rt", "ruby", "s", "samp", "section", "small", "strong", "sub", "summary", "sup", "u", "var", "wbr"], HTMLEmbedElement: ["embed"], HTMLFieldSetElement: ["fieldset"], HTMLFontElement: ["font"], HTMLFormElement: ["form"], HTMLFrameElement: ["frame"], HTMLFrameSetElement: ["frameset"], HTMLHRElement: ["hr"], HTMLHeadElement: ["head"], HTMLHeadingElement: ["h1", "h2", "h3", "h4", "h5", "h6"], HTMLHtmlElement: ["html"], HTMLIFrameElement: ["iframe"], HTMLImageElement: ["img"], HTMLInputElement: ["input"], HTMLKeygenElement: ["keygen"], HTMLLIElement: ["li"], HTMLLabelElement: ["label"], HTMLLegendElement: ["legend"], HTMLLinkElement: ["link"], HTMLMapElement: ["map"], HTMLMarqueeElement: ["marquee"], HTMLMediaElement: ["media"], HTMLMenuElement: ["menu"], HTMLMenuItemElement: ["menuitem"], HTMLMetaElement: ["meta"], HTMLMeterElement: ["meter"], HTMLModElement: ["del", "ins"], HTMLOListElement: ["ol"], HTMLObjectElement: ["object"], HTMLOptGroupElement: ["optgroup"], HTMLOptionElement: ["option"], HTMLOutputElement: ["output"], HTMLParagraphElement: ["p"], HTMLParamElement: ["param"], HTMLPictureElement: ["picture"], HTMLPreElement: ["pre"], HTMLProgressElement: ["progress"], HTMLQuoteElement: ["blockquote", "q", "quote"], HTMLScriptElement: ["script"], HTMLSelectElement: ["select"], HTMLShadowElement: ["shadow"], HTMLSlotElement: ["slot"], HTMLSourceElement: ["source"], HTMLSpanElement: ["span"], HTMLStyleElement: ["style"], HTMLTableCaptionElement: ["caption"], HTMLTableCellElement: ["td", "th"], HTMLTableColElement: ["col", "colgroup"], HTMLTableElement: ["table"], HTMLTableRowElement: ["tr"], HTMLTableSectionElement: ["thead", "tbody", "tfoot"], HTMLTemplateElement: ["template"], HTMLTextAreaElement: ["textarea"], HTMLTimeElement: ["time"], HTMLTitleElement: ["title"], HTMLTrackElement: ["track"], HTMLUListElement: ["ul"], HTMLUnknownElement: ["unknown", "vhgroupv", "vkeygen"], HTMLVideoElement: ["video"] }, nodes: { Attr: ["node"], Audio: ["audio"], CDATASection: ["node"], CharacterData: ["node"], Comment: ["#comment"], Document: ["#document"], DocumentFragment: ["#document-fragment"], DocumentType: ["node"], HTMLDocument: ["#document"], Image: ["img"], Option: ["option"], ProcessingInstruction: ["node"], ShadowRoot: ["#shadow-root"], Text: ["#text"], XMLDocument: ["xml"] } }); typeof t != "object" && (t = { type: t || "auto" }); var s = "registerElement", o = "__" + s + (e.Math.random() * 1e5 >> 0), u = "addEventListener", a = "attached", f = "Callback", l = "detached", c = "extends", h = "attributeChanged" + f, p = a + f, d = "connected" + f, v = "disconnected" + f, m = "created" + f, g = l + f, y = "ADDITION", b = "MODIFICATION", w = "REMOVAL", E = "DOMAttrModified", S = "DOMContentLoaded", x = "DOMSubtreeModified", T = "<", N = "=", C = /^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/, k = ["ANNOTATION-XML", "COLOR-PROFILE", "FONT-FACE", "FONT-FACE-SRC", "FONT-FACE-URI", "FONT-FACE-FORMAT", "FONT-FACE-NAME", "MISSING-GLYPH"], L = [], A = [], O = "", M = n.documentElement, _ = L.indexOf || function (e) { for (var t = this.length; t-- && this[t] !== e;)
|
||||
; return t; }, D = r.prototype, P = D.hasOwnProperty, H = D.isPrototypeOf, B = r.defineProperty, j = [], F = r.getOwnPropertyDescriptor, I = r.getOwnPropertyNames, q = r.getPrototypeOf, R = r.setPrototypeOf, U = !!r.__proto__, W = "__dreCEv1", X = e.customElements, V = !/^force/.test(t.type) && !!(X && X.define && X.get && X.whenDefined), $ = r.create || r, J = e.Map || function () { var t = [], n = [], r; return { get: function (e) { return n[_.call(t, e)]; }, set: function (e, i) { r = _.call(t, e), r < 0 ? n[t.push(e) - 1] = i : n[r] = i; } }; }, K = e.Promise || function (e) { function i(e) { n = !0; while (t.length)
|
||||
t.shift()(e); } var t = [], n = !1, r = { "catch": function () { return r; }, then: function (e) { return t.push(e), n && setTimeout(i, 1), r; } }; return e(i), r; }, Q = !1, G = $(null), Y = $(null), Z = new J, et = function (e) { return e.toLowerCase(); }, tt = r.create || function sn(e) { return e ? (sn.prototype = e, new sn) : this; }, nt = R || (U ? function (e, t) { return e.__proto__ = t, e; } : I && F ? function () { function e(e, t) { for (var n, r = I(t), i = 0, s = r.length; i < s; i++)
|
||||
n = r[i], P.call(e, n) || B(e, n, F(t, n)); } return function (t, n) { do
|
||||
e(t, n);
|
||||
while ((n = q(n)) && !H.call(n, t)); return t; }; }() : function (e, t) { for (var n in t)
|
||||
e[n] = t[n]; return e; }), rt = e.MutationObserver || e.WebKitMutationObserver, it = (e.HTMLElement || e.Element || e.Node).prototype, st = !H.call(it, M), ot = st ? function (e, t, n) { return e[t] = n.value, e; } : B, ut = st ? function (e) { return e.nodeType === 1; } : function (e) { return H.call(it, e); }, at = st && [], ft = it.attachShadow, lt = it.cloneNode, ct = it.dispatchEvent, ht = it.getAttribute, pt = it.hasAttribute, dt = it.removeAttribute, vt = it.setAttribute, mt = n.createElement, gt = mt, yt = rt && { attributes: !0, characterData: !0, attributeOldValue: !0 }, bt = rt || function (e) { Nt = !1, M.removeEventListener(E, bt); }, wt, Et = 0, St = s in n && !/^force-all/.test(t.type), xt = !0, Tt = !1, Nt = !0, Ct = !0, kt = !0, Lt, At, Ot, Mt, _t, Dt, Pt; St || (R || U ? (Dt = function (e, t) { H.call(t, e) || Xt(e, t); }, Pt = Xt) : (Dt = function (e, t) { e[o] || (e[o] = r(!0), Xt(e, t)); }, Pt = Dt), st ? (Nt = !1, function () { var e = F(it, u), t = e.value, n = function (e) { var t = new CustomEvent(E, { bubbles: !0 }); t.attrName = e, t.prevValue = ht.call(this, e), t.newValue = null, t[w] = t.attrChange = 2, dt.call(this, e), ct.call(this, t); }, r = function (e, t) { var n = pt.call(this, e), r = n && ht.call(this, e), i = new CustomEvent(E, { bubbles: !0 }); vt.call(this, e, t), i.attrName = e, i.prevValue = n ? r : null, i.newValue = t, n ? i[b] = i.attrChange = 1 : i[y] = i.attrChange = 0, ct.call(this, i); }, i = function (e) { var t = e.currentTarget, n = t[o], r = e.propertyName, i; n.hasOwnProperty(r) && (n = n[r], i = new CustomEvent(E, { bubbles: !0 }), i.attrName = n.name, i.prevValue = n.value || null, i.newValue = n.value = t[r] || null, i.prevValue == null ? i[y] = i.attrChange = 0 : i[b] = i.attrChange = 1, ct.call(t, i)); }; e.value = function (e, s, u) { e === E && this[h] && this.setAttribute !== r && (this[o] = { className: { name: "class", value: this.className } }, this.setAttribute = r, this.removeAttribute = n, t.call(this, "propertychange", i)), t.call(this, e, s, u); }, B(it, u, e); }()) : rt || (M[u](E, bt), M.setAttribute(o, 1), M.removeAttribute(o), Nt && (Lt = function (e) { var t = this, n, r, i; if (t === e.target) {
|
||||
n = t[o], t[o] = r = Ot(t);
|
||||
for (i in r) {
|
||||
if (!(i in n))
|
||||
return At(0, t, i, n[i], r[i], y);
|
||||
if (r[i] !== n[i])
|
||||
return At(1, t, i, n[i], r[i], b);
|
||||
}
|
||||
for (i in n)
|
||||
if (!(i in r))
|
||||
return At(2, t, i, n[i], r[i], w);
|
||||
} }, At = function (e, t, n, r, i, s) { var o = { attrChange: e, currentTarget: t, attrName: n, prevValue: r, newValue: i }; o[s] = e, Rt(o); }, Ot = function (e) { for (var t, n, r = {}, i = e.attributes, s = 0, o = i.length; s < o; s++)
|
||||
t = i[s], n = t.name, n !== "setAttribute" && (r[n] = t.value); return r; })), n[s] = function (t, r) { p = t.toUpperCase(), xt && (xt = !1, rt ? (Mt = function (e, t) { function n(e, t) { for (var n = 0, r = e.length; n < r; t(e[n++]))
|
||||
; } return new rt(function (r) { for (var i, s, o, u = 0, a = r.length; u < a; u++)
|
||||
i = r[u], i.type === "childList" ? (n(i.addedNodes, e), n(i.removedNodes, t)) : (s = i.target, kt && s[h] && i.attributeName !== "style" && (o = ht.call(s, i.attributeName), o !== i.oldValue && s[h](i.attributeName, i.oldValue, o))); }); }(Ft(a), Ft(l)), _t = function (e) { return Mt.observe(e, { childList: !0, subtree: !0 }), e; }, _t(n), ft && (it.attachShadow = function () { return _t(ft.apply(this, arguments)); })) : (wt = [], n[u]("DOMNodeInserted", Ut(a)), n[u]("DOMNodeRemoved", Ut(l))), n[u](S, zt), n[u]("readystatechange", zt), it.cloneNode = function (e) { var t = lt.call(this, !!e), n = It(t); return -1 < n && Pt(t, A[n]), e && O.length && jt(t.querySelectorAll(O)), t; }); if (Tt)
|
||||
return Tt = !1; -2 < _.call(L, N + p) + _.call(L, T + p) && $t(t); if (!C.test(p) || -1 < _.call(k, p))
|
||||
throw new Error("The type " + t + " is invalid"); var i = function () { return o ? n.createElement(f, p) : n.createElement(f); }, s = r || D, o = P.call(s, c), f = o ? r[c].toUpperCase() : p, p, d; return o && -1 < _.call(L, T + f) && $t(f), d = L.push((o ? N : T) + p) - 1, O = O.concat(O.length ? "," : "", o ? f + '[is="' + t.toLowerCase() + '"]' : f), i.prototype = A[d] = P.call(s, "prototype") ? s.prototype : tt(it), O.length && Bt(n.querySelectorAll(O), a), i; }, n.createElement = gt = function (e, t) { var r = Yt(t), i = r ? mt.call(n, e, et(r)) : mt.call(n, e), s = "" + e, o = _.call(L, (r ? N : T) + (r || s).toUpperCase()), u = -1 < o; return r && (i.setAttribute("is", r = r.toLowerCase()), u && (u = qt(s.toUpperCase(), r))), kt = !n.createElement.innerHTMLHelper, u && Pt(i, A[o]), i; }), Kt.prototype = { constructor: Kt, define: V ? function (e, t, n) { if (n)
|
||||
Qt(e, t, n);
|
||||
else {
|
||||
var r = e.toUpperCase();
|
||||
G[r] = { constructor: t, create: [r] }, Z.set(t, r), X.define(e, t);
|
||||
} } : Qt, get: V ? function (e) { return X.get(e) || Gt(e); } : Gt, whenDefined: V ? function (e) { return K.race([X.whenDefined(e), en(e)]); } : en }; if (!X || /^force/.test(t.type))
|
||||
tn();
|
||||
else if (!t.noBuiltIn)
|
||||
try {
|
||||
(function (t, r, i) { r[c] = "a", t.prototype = tt(HTMLAnchorElement.prototype), t.prototype.constructor = t, e.customElements.define(i, t, r); if (ht.call(n.createElement("a", { is: i }), "is") !== i || V && ht.call(new t, "is") !== i)
|
||||
throw r; })(function on() { return Reflect.construct(HTMLAnchorElement, [], on); }, {}, "document-register-element-a");
|
||||
}
|
||||
catch (nn) {
|
||||
tn();
|
||||
} if (!t.noBuiltIn)
|
||||
try {
|
||||
mt.call(n, "a", "a");
|
||||
}
|
||||
catch (rn) {
|
||||
et = function (e) { return { is: e.toLowerCase() }; };
|
||||
} })(window);
|
||||
}
|
||||
/*!
|
||||
Element.closest and Element.matches
|
||||
https://github.com/jonathantneal/closest
|
||||
Creative Commons Zero v1.0 Universal
|
||||
*/
|
||||
(function (a) { "function" !== typeof a.matches && (a.matches = a.msMatchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || function (a) { a = (this.document || this.ownerDocument).querySelectorAll(a); for (var b = 0; a[b] && a[b] !== this;)
|
||||
++b; return !!a[b]; }); "function" !== typeof a.closest && (a.closest = function (a) { for (var b = this; b && 1 === b.nodeType;) {
|
||||
if (b.matches(a))
|
||||
return b;
|
||||
b = b.parentNode;
|
||||
} return null; }); })(window.Element.prototype);
|
||||
/*!
|
||||
Element.remove()
|
||||
https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/remove
|
||||
*/
|
||||
(function (b) { b.forEach(function (a) { a.hasOwnProperty("remove") || Object.defineProperty(a, "remove", { configurable: !0, enumerable: !0, writable: !0, value: function () { null !== this.parentNode && this.parentNode.removeChild(this); } }); }); })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
|
||||
}
|
||||
exports.applyPolyfill = applyPolyfill;
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
});
|
||||
@@ -1,189 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle('fetch.js', ['exports'], function (exports) {
|
||||
var h = window.DocsSite.h;
|
||||
function applyPolyfill(window, document) {
|
||||
(function (e) {
|
||||
function l(a) { "string" !== typeof a && (a = String(a)); if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(a))
|
||||
throw new TypeError("Invalid character in header field name"); return a.toLowerCase(); }
|
||||
function q(a) { "string" !== typeof a && (a = String(a)); return a; }
|
||||
function n(a) { var b = { next: function () { var b = a.shift(); return { done: void 0 === b, value: b }; } }; g.iterable && (b[Symbol.iterator] = function () { return b; }); return b; }
|
||||
function d(a) {
|
||||
this.map = {};
|
||||
a instanceof d ? a.forEach(function (a, c) { this.append(c, a); }, this) : Array.isArray(a) ?
|
||||
a.forEach(function (a) { this.append(a[0], a[1]); }, this) : a && Object.getOwnPropertyNames(a).forEach(function (b) { this.append(b, a[b]); }, this);
|
||||
}
|
||||
function p(a) { if (a.bodyUsed)
|
||||
return Promise.reject(new TypeError("Already read")); a.bodyUsed = !0; }
|
||||
function r(a) { return new Promise(function (b, c) { a.onload = function () { b(a.result); }; a.onerror = function () { c(a.error); }; }); }
|
||||
function w(a) { var b = new FileReader, c = r(b); b.readAsArrayBuffer(a); return c; }
|
||||
function x(a) {
|
||||
a = new Uint8Array(a);
|
||||
for (var b = Array(a.length), c = 0; c < a.length; c++)
|
||||
b[c] = String.fromCharCode(a[c]);
|
||||
return b.join("");
|
||||
}
|
||||
function t(a) { if (a.slice)
|
||||
return a.slice(0); var b = new Uint8Array(a.byteLength); b.set(new Uint8Array(a)); return b.buffer; }
|
||||
function u() {
|
||||
this.bodyUsed = !1;
|
||||
this._initBody = function (a) {
|
||||
if (this._bodyInit = a)
|
||||
if ("string" === typeof a)
|
||||
this._bodyText = a;
|
||||
else if (g.blob && Blob.prototype.isPrototypeOf(a))
|
||||
this._bodyBlob = a;
|
||||
else if (g.formData && FormData.prototype.isPrototypeOf(a))
|
||||
this._bodyFormData = a;
|
||||
else if (g.searchParams && URLSearchParams.prototype.isPrototypeOf(a))
|
||||
this._bodyText = a.toString();
|
||||
else if (g.arrayBuffer &&
|
||||
g.blob && y(a))
|
||||
this._bodyArrayBuffer = t(a.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer]);
|
||||
else if (g.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(a) || z(a)))
|
||||
this._bodyArrayBuffer = t(a);
|
||||
else
|
||||
throw Error("unsupported BodyInit type");
|
||||
else
|
||||
this._bodyText = "";
|
||||
this.headers.get("content-type") || ("string" === typeof a ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : g.searchParams && URLSearchParams.prototype.isPrototypeOf(a) &&
|
||||
this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
||||
};
|
||||
g.blob && (this.blob = function () { var a = p(this); if (a)
|
||||
return a; if (this._bodyBlob)
|
||||
return Promise.resolve(this._bodyBlob); if (this._bodyArrayBuffer)
|
||||
return Promise.resolve(new Blob([this._bodyArrayBuffer])); if (this._bodyFormData)
|
||||
throw Error("could not read FormData body as blob"); return Promise.resolve(new Blob([this._bodyText])); }, this.arrayBuffer = function () {
|
||||
return this._bodyArrayBuffer ? p(this) || Promise.resolve(this._bodyArrayBuffer) :
|
||||
this.blob().then(w);
|
||||
});
|
||||
this.text = function () { var a = p(this); if (a)
|
||||
return a; if (this._bodyBlob) {
|
||||
a = this._bodyBlob;
|
||||
var b = new FileReader, c = r(b);
|
||||
b.readAsText(a);
|
||||
return c;
|
||||
} if (this._bodyArrayBuffer)
|
||||
return Promise.resolve(x(this._bodyArrayBuffer)); if (this._bodyFormData)
|
||||
throw Error("could not read FormData body as text"); return Promise.resolve(this._bodyText); };
|
||||
g.formData && (this.formData = function () { return this.text().then(A); });
|
||||
this.json = function () { return this.text().then(JSON.parse); };
|
||||
return this;
|
||||
}
|
||||
function k(a, b) {
|
||||
b =
|
||||
b || {};
|
||||
var c = b.body;
|
||||
if (a instanceof k) {
|
||||
if (a.bodyUsed)
|
||||
throw new TypeError("Already read");
|
||||
this.url = a.url;
|
||||
this.credentials = a.credentials;
|
||||
b.headers || (this.headers = new d(a.headers));
|
||||
this.method = a.method;
|
||||
this.mode = a.mode;
|
||||
c || null == a._bodyInit || (c = a._bodyInit, a.bodyUsed = !0);
|
||||
}
|
||||
else
|
||||
this.url = String(a);
|
||||
this.credentials = b.credentials || this.credentials || "omit";
|
||||
if (b.headers || !this.headers)
|
||||
this.headers = new d(b.headers);
|
||||
var v = b.method || this.method || "GET", g = v.toUpperCase();
|
||||
this.method = -1 < B.indexOf(g) ? g : v;
|
||||
this.mode =
|
||||
b.mode || this.mode || null;
|
||||
this.referrer = null;
|
||||
if (("GET" === this.method || "HEAD" === this.method) && c)
|
||||
throw new TypeError("Body not allowed for GET or HEAD requests");
|
||||
this._initBody(c);
|
||||
}
|
||||
function A(a) { var b = new FormData; a.trim().split("&").forEach(function (a) { if (a) {
|
||||
var c = a.split("=");
|
||||
a = c.shift().replace(/\+/g, " ");
|
||||
c = c.join("=").replace(/\+/g, " ");
|
||||
b.append(decodeURIComponent(a), decodeURIComponent(c));
|
||||
} }); return b; }
|
||||
function C(a) {
|
||||
var b = new d;
|
||||
a.replace(/\r?\n[\t ]+/g, " ").split(/\r?\n/).forEach(function (a) {
|
||||
var c = a.split(":");
|
||||
if (a = c.shift().trim())
|
||||
c = c.join(":").trim(), b.append(a, c);
|
||||
});
|
||||
return b;
|
||||
}
|
||||
function h(a, b) { b || (b = {}); this.type = "default"; this.status = void 0 === b.status ? 200 : b.status; this.ok = 200 <= this.status && 300 > this.status; this.statusText = "statusText" in b ? b.statusText : "OK"; this.headers = new d(b.headers); this.url = b.url || ""; this._initBody(a); }
|
||||
if (!e.fetch) {
|
||||
var D = "Symbol" in e && "iterator" in Symbol, m;
|
||||
if (m = "FileReader" in e && "Blob" in e)
|
||||
try {
|
||||
new Blob, m = !0;
|
||||
}
|
||||
catch (a) {
|
||||
m = !1;
|
||||
}
|
||||
var g = { searchParams: "URLSearchParams" in e, iterable: D,
|
||||
blob: m, formData: "FormData" in e, arrayBuffer: "ArrayBuffer" in e };
|
||||
if (g.arrayBuffer) {
|
||||
var E = "[object Int8Array];[object Uint8Array];[object Uint8ClampedArray];[object Int16Array];[object Uint16Array];[object Int32Array];[object Uint32Array];[object Float32Array];[object Float64Array]".split(";");
|
||||
var y = function (a) { return a && DataView.prototype.isPrototypeOf(a); };
|
||||
var z = ArrayBuffer.isView || function (a) { return a && -1 < E.indexOf(Object.prototype.toString.call(a)); };
|
||||
}
|
||||
d.prototype.append = function (a, b) {
|
||||
a = l(a);
|
||||
b = q(b);
|
||||
var c = this.map[a];
|
||||
this.map[a] = c ? c + "," + b : b;
|
||||
};
|
||||
d.prototype["delete"] = function (a) { delete this.map[l(a)]; };
|
||||
d.prototype.get = function (a) { a = l(a); return this.has(a) ? this.map[a] : null; };
|
||||
d.prototype.has = function (a) { return this.map.hasOwnProperty(l(a)); };
|
||||
d.prototype.set = function (a, b) { this.map[l(a)] = q(b); };
|
||||
d.prototype.forEach = function (a, b) { for (var c in this.map)
|
||||
this.map.hasOwnProperty(c) && a.call(b, this.map[c], c, this); };
|
||||
d.prototype.keys = function () { var a = []; this.forEach(function (b, c) { a.push(c); }); return n(a); };
|
||||
d.prototype.values =
|
||||
function () { var a = []; this.forEach(function (b) { a.push(b); }); return n(a); };
|
||||
d.prototype.entries = function () { var a = []; this.forEach(function (b, c) { a.push([c, b]); }); return n(a); };
|
||||
g.iterable && (d.prototype[Symbol.iterator] = d.prototype.entries);
|
||||
var B = "DELETE GET HEAD OPTIONS POST PUT".split(" ");
|
||||
k.prototype.clone = function () { return new k(this, { body: this._bodyInit }); };
|
||||
u.call(k.prototype);
|
||||
u.call(h.prototype);
|
||||
h.prototype.clone = function () {
|
||||
return new h(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new d(this.headers),
|
||||
url: this.url });
|
||||
};
|
||||
h.error = function () { var a = new h(null, { status: 0, statusText: "" }); a.type = "error"; return a; };
|
||||
var F = [301, 302, 303, 307, 308];
|
||||
h.redirect = function (a, b) { if (-1 === F.indexOf(b))
|
||||
throw new RangeError("Invalid status code"); return new h(null, { status: b, headers: { location: a } }); };
|
||||
e.Headers = d;
|
||||
e.Request = k;
|
||||
e.Response = h;
|
||||
e.fetch = function (a, b) {
|
||||
return new Promise(function (c, d) {
|
||||
var e = new k(a, b), f = new XMLHttpRequest;
|
||||
f.onload = function () {
|
||||
var a = { status: f.status, statusText: f.statusText, headers: C(f.getAllResponseHeaders() ||
|
||||
"") };
|
||||
a.url = "responseURL" in f ? f.responseURL : a.headers.get("X-Request-URL");
|
||||
c(new h("response" in f ? f.response : f.responseText, a));
|
||||
};
|
||||
f.onerror = function () { d(new TypeError("Network request failed")); };
|
||||
f.ontimeout = function () { d(new TypeError("Network request failed")); };
|
||||
f.open(e.method, e.url, !0);
|
||||
"include" === e.credentials ? f.withCredentials = !0 : "omit" === e.credentials && (f.withCredentials = !1);
|
||||
"responseType" in f && g.blob && (f.responseType = "blob");
|
||||
e.headers.forEach(function (a, b) { f.setRequestHeader(b, a); });
|
||||
f.send("undefined" ===
|
||||
typeof e._bodyInit ? null : e._bodyInit);
|
||||
});
|
||||
};
|
||||
e.fetch.polyfill = !0;
|
||||
}
|
||||
})("undefined" !== typeof self ? self : window);
|
||||
}
|
||||
exports.applyPolyfill = applyPolyfill;
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
});
|
||||
@@ -1,25 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const { h } = window.DocsSite;
|
||||
|
||||
function applyPolyfill(window, document) {/*!
|
||||
whatwg-fetch, 2.0.3
|
||||
https://github.com/github/fetch
|
||||
Copyright (c) 2014-2016 GitHub, Inc. - MIT License
|
||||
*/
|
||||
(function(e){function l(a){"string"!==typeof a&&(a=String(a));if(/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(a))throw new TypeError("Invalid character in header field name");return a.toLowerCase()}function q(a){"string"!==typeof a&&(a=String(a));return a}function n(a){var b={next:function(){var b=a.shift();return {done:void 0===b,value:b}}};g.iterable&&(b[Symbol.iterator]=function(){return b});return b}function d(a){this.map={};a instanceof d?a.forEach(function(a,c){this.append(c,a);},this):Array.isArray(a)?
|
||||
a.forEach(function(a){this.append(a[0],a[1]);},this):a&&Object.getOwnPropertyNames(a).forEach(function(b){this.append(b,a[b]);},this);}function p(a){if(a.bodyUsed)return Promise.reject(new TypeError("Already read"));a.bodyUsed=!0;}function r(a){return new Promise(function(b,c){a.onload=function(){b(a.result);};a.onerror=function(){c(a.error);};})}function w(a){var b=new FileReader,c=r(b);b.readAsArrayBuffer(a);return c}function x(a){a=new Uint8Array(a);for(var b=Array(a.length),c=0;c<a.length;c++)b[c]=String.fromCharCode(a[c]);
|
||||
return b.join("")}function t(a){if(a.slice)return a.slice(0);var b=new Uint8Array(a.byteLength);b.set(new Uint8Array(a));return b.buffer}function u(){this.bodyUsed=!1;this._initBody=function(a){if(this._bodyInit=a)if("string"===typeof a)this._bodyText=a;else if(g.blob&&Blob.prototype.isPrototypeOf(a))this._bodyBlob=a;else if(g.formData&&FormData.prototype.isPrototypeOf(a))this._bodyFormData=a;else if(g.searchParams&&URLSearchParams.prototype.isPrototypeOf(a))this._bodyText=a.toString();else if(g.arrayBuffer&&
|
||||
g.blob&&y(a))this._bodyArrayBuffer=t(a.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else if(g.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(a)||z(a)))this._bodyArrayBuffer=t(a);else throw Error("unsupported BodyInit type");else this._bodyText="";this.headers.get("content-type")||("string"===typeof a?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g.searchParams&&URLSearchParams.prototype.isPrototypeOf(a)&&
|
||||
this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"));};g.blob&&(this.blob=function(){var a=p(this);if(a)return a;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):
|
||||
this.blob().then(w)});this.text=function(){var a=p(this);if(a)return a;if(this._bodyBlob){a=this._bodyBlob;var b=new FileReader,c=r(b);b.readAsText(a);return c}if(this._bodyArrayBuffer)return Promise.resolve(x(this._bodyArrayBuffer));if(this._bodyFormData)throw Error("could not read FormData body as text");return Promise.resolve(this._bodyText)};g.formData&&(this.formData=function(){return this.text().then(A)});this.json=function(){return this.text().then(JSON.parse)};return this}function k(a,b){b=
|
||||
b||{};var c=b.body;if(a instanceof k){if(a.bodyUsed)throw new TypeError("Already read");this.url=a.url;this.credentials=a.credentials;b.headers||(this.headers=new d(a.headers));this.method=a.method;this.mode=a.mode;c||null==a._bodyInit||(c=a._bodyInit,a.bodyUsed=!0);}else this.url=String(a);this.credentials=b.credentials||this.credentials||"omit";if(b.headers||!this.headers)this.headers=new d(b.headers);var v=b.method||this.method||"GET",g=v.toUpperCase();this.method=-1<B.indexOf(g)?g:v;this.mode=
|
||||
b.mode||this.mode||null;this.referrer=null;if(("GET"===this.method||"HEAD"===this.method)&&c)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(c);}function A(a){var b=new FormData;a.trim().split("&").forEach(function(a){if(a){var c=a.split("=");a=c.shift().replace(/\+/g," ");c=c.join("=").replace(/\+/g," ");b.append(decodeURIComponent(a),decodeURIComponent(c));}});return b}function C(a){var b=new d;a.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(a){var c=
|
||||
a.split(":");if(a=c.shift().trim())c=c.join(":").trim(),b.append(a,c);});return b}function h(a,b){b||(b={});this.type="default";this.status=void 0===b.status?200:b.status;this.ok=200<=this.status&&300>this.status;this.statusText="statusText"in b?b.statusText:"OK";this.headers=new d(b.headers);this.url=b.url||"";this._initBody(a);}if(!e.fetch){var D="Symbol"in e&&"iterator"in Symbol,m;if(m="FileReader"in e&&"Blob"in e)try{new Blob,m=!0;}catch(a){m=!1;}var g={searchParams:"URLSearchParams"in e,iterable:D,
|
||||
blob:m,formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer){var E="[object Int8Array];[object Uint8Array];[object Uint8ClampedArray];[object Int16Array];[object Uint16Array];[object Int32Array];[object Uint32Array];[object Float32Array];[object Float64Array]".split(";");var y=function(a){return a&&DataView.prototype.isPrototypeOf(a)};var z=ArrayBuffer.isView||function(a){return a&&-1<E.indexOf(Object.prototype.toString.call(a))};}d.prototype.append=function(a,b){a=l(a);b=q(b);var c=
|
||||
this.map[a];this.map[a]=c?c+","+b:b;};d.prototype["delete"]=function(a){delete this.map[l(a)];};d.prototype.get=function(a){a=l(a);return this.has(a)?this.map[a]:null};d.prototype.has=function(a){return this.map.hasOwnProperty(l(a))};d.prototype.set=function(a,b){this.map[l(a)]=q(b);};d.prototype.forEach=function(a,b){for(var c in this.map)this.map.hasOwnProperty(c)&&a.call(b,this.map[c],c,this);};d.prototype.keys=function(){var a=[];this.forEach(function(b,c){a.push(c);});return n(a)};d.prototype.values=
|
||||
function(){var a=[];this.forEach(function(b){a.push(b);});return n(a)};d.prototype.entries=function(){var a=[];this.forEach(function(b,c){a.push([c,b]);});return n(a)};g.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);var B="DELETE GET HEAD OPTIONS POST PUT".split(" ");k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};u.call(k.prototype);u.call(h.prototype);h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),
|
||||
url:this.url})};h.error=function(){var a=new h(null,{status:0,statusText:""});a.type="error";return a};var F=[301,302,303,307,308];h.redirect=function(a,b){if(-1===F.indexOf(b))throw new RangeError("Invalid status code");return new h(null,{status:b,headers:{location:a}})};e.Headers=d;e.Request=k;e.Response=h;e.fetch=function(a,b){return new Promise(function(c,d){var e=new k(a,b),f=new XMLHttpRequest;f.onload=function(){var a={status:f.status,statusText:f.statusText,headers:C(f.getAllResponseHeaders()||
|
||||
"")};a.url="responseURL"in f?f.responseURL:a.headers.get("X-Request-URL");c(new h("response"in f?f.response:f.responseText,a));};f.onerror=function(){d(new TypeError("Network request failed"));};f.ontimeout=function(){d(new TypeError("Network request failed"));};f.open(e.method,e.url,!0);"include"===e.credentials?f.withCredentials=!0:"omit"===e.credentials&&(f.withCredentials=!1);"responseType"in f&&g.blob&&(f.responseType="blob");e.headers.forEach(function(a,b){f.setRequestHeader(b,a);});f.send("undefined"===
|
||||
typeof e._bodyInit?null:e._bodyInit);})};e.fetch.polyfill=!0;}})("undefined"!==typeof self?self:window);}
|
||||
|
||||
export { applyPolyfill };
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const{h:e}=window.DocsSite;class n{render(){return e("main",null,e("div",{class:"container"},e("h1",null,"Woops! We can't find the page your looking for."),e("p",null,"Head on back to the ",e("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),e("footer-bar",null))}static get is(){return"notfound-page"}static get style(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"}}export{n as NotfoundPage};
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle("fonk1mfi",["exports"],function(e){var n=window.DocsSite.h,o=function(){function e(){}return e.prototype.render=function(){return n("main",null,n("div",{class:"container"},n("h1",null,"Woops! We can't find the page your looking for."),n("p",null,"Head on back to the ",n("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),n("footer-bar",null))},Object.defineProperty(e,"is",{get:function(){return"notfound-page"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"},enumerable:!0,configurable:!0}),e}();e.NotfoundPage=o,Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const{h:e}=window.DocsSite;class n{render(){return e("main",null,e("div",{class:"container"},e("h1",null,"Woops! We can't find the page your looking for."),e("p",null,"Head on back to the ",e("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),e("footer-bar",null))}static get is(){return"notfound-page"}static get style(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"}}export{n as NotfoundPage};
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle("fonk1mfi",["exports"],function(e){var n=window.DocsSite.h,o=function(){function e(){}return e.prototype.render=function(){return n("main",null,n("div",{class:"container"},n("h1",null,"Woops! We can't find the page your looking for."),n("p",null,"Head on back to the ",n("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),n("footer-bar",null))},Object.defineProperty(e,"is",{get:function(){return"notfound-page"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"},enumerable:!0,configurable:!0}),e}();e.NotfoundPage=o,Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -1,27 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const { h } = window.DocsSite;
|
||||
|
||||
class FooterBar {
|
||||
render() {
|
||||
return (h("footer", null,
|
||||
h("div", { class: "container" },
|
||||
h("div", { class: "footer__open-source" },
|
||||
h("a", { href: "http://ionicframework.com/", title: "IonicFramework.com", rel: "noopener" },
|
||||
h("img", { src: "/assets/img/ionic-os-logo.png", alt: "Ionic Open Source Logo" })),
|
||||
h("p", null,
|
||||
"Released under ",
|
||||
h("span", { id: "mit" }, "MIT License"),
|
||||
" | Copyright @ ",
|
||||
(new Date()).getFullYear())),
|
||||
h("div", { class: "footer-menu" },
|
||||
h("a", { href: "cheatsheet.html" }, "Cheatsheet"),
|
||||
h("a", { href: "/v1" }, "v1"),
|
||||
h("a", { href: "/v2" }, "v2"),
|
||||
h("a", { href: "https://ionicframework.com/docs/ionicons/" }, "v3"),
|
||||
h("a", { href: "https://ionicframework.com/" }, "Ionic Framework")))));
|
||||
}
|
||||
static get is() { return "footer-bar"; }
|
||||
static get style() { return "footer-bar footer {\n width: 100%;\n background: var(--color-white-lilac);\n -webkit-box-flex: 0;\n -ms-flex: 0 0 8em;\n flex: 0 0 8em;\n /* margin-top: 100px; */ }\n\nfooter-bar .container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n padding-top: 40px;\n padding-bottom: 40px; }\n\nfooter-bar img {\n width: 50%; }\n\nfooter-bar p {\n margin-top: 0;\n margin-bottom: 0;\n color: var(--color-cadet-blue);\n font-size: 10px;\n letter-spacing: 0; }\n\nfooter-bar .footer-menu a {\n -webkit-transition: color 0.3s;\n transition: color 0.3s;\n font-size: 11px;\n font-weight: 600;\n text-decoration: none;\n color: var(--color-gull-gray); }\n\nfooter-bar .footer-menu a:hover {\n color: var(--color-shark); }\n\nfooter-bar .footer-menu a + a {\n margin-left: 18px; }\n\n\@media screen and (max-width: 768px) {\n footer-bar .container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n text-align: center; }\n footer-bar .footer-menu {\n margin-bottom: 36px; } }"; }
|
||||
}
|
||||
|
||||
export { FooterBar };
|
||||
@@ -1,24 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle('footer-bar', ['exports'], function (exports) {
|
||||
var h = window.DocsSite.h;
|
||||
var FooterBar = /** @class */ (function () {
|
||||
function FooterBar() {
|
||||
}
|
||||
FooterBar.prototype.render = function () {
|
||||
return (h("footer", null, h("div", { class: "container" }, h("div", { class: "footer__open-source" }, h("a", { href: "http://ionicframework.com/", title: "IonicFramework.com", rel: "noopener" }, h("img", { src: "/assets/img/ionic-os-logo.png", alt: "Ionic Open Source Logo" })), h("p", null, "Released under ", h("span", { id: "mit" }, "MIT License"), " | Copyright @ ", (new Date()).getFullYear())), h("div", { class: "footer-menu" }, h("a", { href: "cheatsheet.html" }, "Cheatsheet"), h("a", { href: "/v1" }, "v1"), h("a", { href: "/v2" }, "v2"), h("a", { href: "https://ionicframework.com/docs/ionicons/" }, "v3"), h("a", { href: "https://ionicframework.com/" }, "Ionic Framework")))));
|
||||
};
|
||||
Object.defineProperty(FooterBar, "is", {
|
||||
get: function () { return "footer-bar"; },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(FooterBar, "style", {
|
||||
get: function () { return "footer-bar footer {\n width: 100%;\n background: var(--color-white-lilac);\n -webkit-box-flex: 0;\n -ms-flex: 0 0 8em;\n flex: 0 0 8em;\n /* margin-top: 100px; */ }\n\nfooter-bar .container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n padding-top: 40px;\n padding-bottom: 40px; }\n\nfooter-bar img {\n width: 50%; }\n\nfooter-bar p {\n margin-top: 0;\n margin-bottom: 0;\n color: var(--color-cadet-blue);\n font-size: 10px;\n letter-spacing: 0; }\n\nfooter-bar .footer-menu a {\n -webkit-transition: color 0.3s;\n transition: color 0.3s;\n font-size: 11px;\n font-weight: 600;\n text-decoration: none;\n color: var(--color-gull-gray); }\n\nfooter-bar .footer-menu a:hover {\n color: var(--color-shark); }\n\nfooter-bar .footer-menu a + a {\n margin-left: 18px; }\n\n\@media screen and (max-width: 768px) {\n footer-bar .container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n text-align: center; }\n footer-bar .footer-menu {\n margin-bottom: 36px; } }"; },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
return FooterBar;
|
||||
}());
|
||||
exports.FooterBar = FooterBar;
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
});
|
||||
@@ -1,27 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const { h } = window.DocsSite;
|
||||
|
||||
class FooterBar {
|
||||
render() {
|
||||
return (h("footer", null,
|
||||
h("div", { class: "container" },
|
||||
h("div", { class: "footer__open-source" },
|
||||
h("a", { href: "http://ionicframework.com/", title: "IonicFramework.com", rel: "noopener" },
|
||||
h("img", { src: "/assets/img/ionic-os-logo.png", alt: "Ionic Open Source Logo" })),
|
||||
h("p", null,
|
||||
"Released under ",
|
||||
h("span", { id: "mit" }, "MIT License"),
|
||||
" | Copyright @ ",
|
||||
(new Date()).getFullYear())),
|
||||
h("div", { class: "footer-menu" },
|
||||
h("a", { href: "cheatsheet.html" }, "Cheatsheet"),
|
||||
h("a", { href: "/v1" }, "v1"),
|
||||
h("a", { href: "/v2" }, "v2"),
|
||||
h("a", { href: "https://ionicframework.com/docs/ionicons/" }, "v3"),
|
||||
h("a", { href: "https://ionicframework.com/" }, "Ionic Framework")))));
|
||||
}
|
||||
static get is() { return "footer-bar"; }
|
||||
static get style() { return "footer-bar footer {\n width: 100%;\n background: var(--color-white-lilac);\n -webkit-box-flex: 0;\n -ms-flex: 0 0 8em;\n flex: 0 0 8em;\n /* margin-top: 100px; */ }\n\nfooter-bar .container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n padding-top: 40px;\n padding-bottom: 40px; }\n\nfooter-bar img {\n width: 50%; }\n\nfooter-bar p {\n margin-top: 0;\n margin-bottom: 0;\n color: var(--color-cadet-blue);\n font-size: 10px;\n letter-spacing: 0; }\n\nfooter-bar .footer-menu a {\n -webkit-transition: color 0.3s;\n transition: color 0.3s;\n font-size: 11px;\n font-weight: 600;\n text-decoration: none;\n color: var(--color-gull-gray); }\n\nfooter-bar .footer-menu a:hover {\n color: var(--color-shark); }\n\nfooter-bar .footer-menu a + a {\n margin-left: 18px; }\n\n\@media screen and (max-width: 768px) {\n footer-bar .container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n text-align: center; }\n footer-bar .footer-menu {\n margin-bottom: 36px; } }"; }
|
||||
}
|
||||
|
||||
export { FooterBar };
|
||||
@@ -1,24 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle('footer-bar', ['exports'], function (exports) {
|
||||
var h = window.DocsSite.h;
|
||||
var FooterBar = /** @class */ (function () {
|
||||
function FooterBar() {
|
||||
}
|
||||
FooterBar.prototype.render = function () {
|
||||
return (h("footer", null, h("div", { class: "container" }, h("div", { class: "footer__open-source" }, h("a", { href: "http://ionicframework.com/", title: "IonicFramework.com", rel: "noopener" }, h("img", { src: "/assets/img/ionic-os-logo.png", alt: "Ionic Open Source Logo" })), h("p", null, "Released under ", h("span", { id: "mit" }, "MIT License"), " | Copyright @ ", (new Date()).getFullYear())), h("div", { class: "footer-menu" }, h("a", { href: "cheatsheet.html" }, "Cheatsheet"), h("a", { href: "/v1" }, "v1"), h("a", { href: "/v2" }, "v2"), h("a", { href: "https://ionicframework.com/docs/ionicons/" }, "v3"), h("a", { href: "https://ionicframework.com/" }, "Ionic Framework")))));
|
||||
};
|
||||
Object.defineProperty(FooterBar, "is", {
|
||||
get: function () { return "footer-bar"; },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(FooterBar, "style", {
|
||||
get: function () { return "footer-bar footer {\n width: 100%;\n background: var(--color-white-lilac);\n -webkit-box-flex: 0;\n -ms-flex: 0 0 8em;\n flex: 0 0 8em;\n /* margin-top: 100px; */ }\n\nfooter-bar .container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n padding-top: 40px;\n padding-bottom: 40px; }\n\nfooter-bar img {\n width: 50%; }\n\nfooter-bar p {\n margin-top: 0;\n margin-bottom: 0;\n color: var(--color-cadet-blue);\n font-size: 10px;\n letter-spacing: 0; }\n\nfooter-bar .footer-menu a {\n -webkit-transition: color 0.3s;\n transition: color 0.3s;\n font-size: 11px;\n font-weight: 600;\n text-decoration: none;\n color: var(--color-gull-gray); }\n\nfooter-bar .footer-menu a:hover {\n color: var(--color-shark); }\n\nfooter-bar .footer-menu a + a {\n margin-left: 18px; }\n\n\@media screen and (max-width: 768px) {\n footer-bar .container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n text-align: center; }\n footer-bar .footer-menu {\n margin-bottom: 36px; } }"; },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
return FooterBar;
|
||||
}());
|
||||
exports.FooterBar = FooterBar;
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
});
|
||||