Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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 | ||
|
|
76799e6d2a | ||
|
|
685c09df15 | ||
|
|
e8e8216f35 | ||
|
|
5c9a238abf | ||
|
|
54dde87b47 | ||
|
|
92c579228e | ||
|
|
e080c27251 | ||
|
|
f3e720c129 | ||
|
|
b9e6dd787e | ||
|
|
d00a1db48e | ||
|
|
500bd26e56 | ||
|
|
73bc0a596a | ||
|
|
02e6c71099 | ||
|
|
1445bbd4a9 | ||
|
|
c0e2a0498b | ||
|
|
c493761abc | ||
|
|
4c07e02372 | ||
|
|
354665f069 | ||
|
|
43b4fff014 | ||
|
|
c14505fb28 | ||
|
|
7f4291e460 | ||
|
|
f8a367a1c8 | ||
|
|
c1bcd61d5a | ||
|
|
9a9aca0ae0 | ||
|
|
fad3fc4580 | ||
|
|
2c36419fd7 | ||
|
|
812b488515 | ||
|
|
bd3a98905f | ||
|
|
3a226bac77 | ||
|
|
29f812aaaf | ||
|
|
7d3dd41f59 | ||
|
|
422bda7983 | ||
|
|
e7f12e3df4 | ||
|
|
28eb1260d5 | ||
|
|
9dc22085ee | ||
|
|
3d8457d5df | ||
|
|
c41d08a4fe | ||
|
|
0e737a1aa8 | ||
|
|
7bb0d7b232 | ||
|
|
29a6c8b996 | ||
|
|
0f4438f581 | ||
|
|
1c5211c47c | ||
|
|
b0b67d51dd | ||
|
|
1c5942ad96 | ||
|
|
c635b65d75 | ||
|
|
a15a2f0f89 | ||
|
|
1a80387c54 | ||
|
|
bea74662db | ||
|
|
fcfe309839 | ||
|
|
918c27f1fd | ||
|
|
8f6706e1b4 | ||
|
|
ab0f7cab07 | ||
|
|
4d16d6b5bb | ||
|
|
080520c272 | ||
|
|
3d1d7b1287 | ||
|
|
92bf42fc66 | ||
|
|
38e75af977 | ||
|
|
978d7f0520 | ||
|
|
10ca108e3e | ||
|
|
c6238c8a36 | ||
|
|
8bb5ff94c8 | ||
|
|
fec5d9b436 | ||
|
|
6f97fcc1b4 | ||
|
|
7c5116b1cb | ||
|
|
fbd6f853f2 | ||
|
|
31127430b1 | ||
|
|
b6849aa02d | ||
|
|
ffe501d0dc | ||
|
|
9bc7938f97 | ||
|
|
61874d3b39 | ||
|
|
fb6e291605 | ||
|
|
a73cef8b2f | ||
|
|
bd1f3c3ac6 | ||
|
|
012ed970ba | ||
|
|
1dce831baf | ||
|
|
c9a11ad2a3 | ||
|
|
1c88d96cc5 | ||
|
|
c3bfea5f59 | ||
|
|
008e2f7b03 | ||
|
|
62d54535fb | ||
|
|
08b5f4bb35 | ||
|
|
d705685298 | ||
|
|
d1ac8c42ee | ||
|
|
d5ba02861e | ||
|
|
d982853a2e | ||
|
|
fb6d42d137 | ||
|
|
067b24e63c | ||
|
|
aa0a39cd64 | ||
|
|
f1671ec6d8 | ||
|
|
778b255877 | ||
|
|
ed67d22986 | ||
|
|
390c852c39 | ||
|
|
13de75de47 | ||
|
|
a0a8897378 | ||
|
|
380ec72221 | ||
|
|
9b4a4b954f | ||
|
|
326c9dd81b | ||
|
|
d2e6437909 | ||
|
|
9349388777 | ||
|
|
5747efba6b | ||
|
|
c4db612a9d | ||
|
|
7df2f7befd | ||
|
|
13ea94f9b5 | ||
|
|
48b2e9b0e1 | ||
|
|
8e38047d13 | ||
|
|
1c2d8da629 | ||
|
|
6b805f730d | ||
|
|
a0999bd081 |
@@ -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,80 @@
|
||||
# Contributing
|
||||
|
||||
Thanks for your interest in contributing to Ionicons! :tada:
|
||||
|
||||
|
||||
## Contributing Etiquette
|
||||
|
||||
Please see our [Contributor Code of Conduct](./CODE_OF_CONDUCT.md) for information on our rules of conduct.
|
||||
|
||||
|
||||
## Creating an Issue
|
||||
|
||||
* If you have a question about using Ionicons, please ask on the [Ionic Forum](http://forum.ionicframework.com/) or in the [Ionic Worldwide Slack](http://ionicworldwide.herokuapp.com/) group.
|
||||
|
||||
* 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.
|
||||
|
||||
* The issue list of this repository is exclusively for bug reports and feature requests. Non-conforming issues will be closed immediately.
|
||||
|
||||
* If you think you have found a bug, or have a new feature idea, please start by making sure it hasn't already been [reported](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.
|
||||
|
||||
* Next, [create a new issue](https://github.com/ionic-team/ionicons/issues/new/choose) that thoroughly explains the problem.
|
||||
|
||||
|
||||
## Creating a Pull Request
|
||||
|
||||
* We appreciate you taking the time to contribute! Before submitting a pull request, we ask that you please [create an issue](#creating-an-issue) that explains the bug or feature request and let us know that you plan on creating a pull request for it. If an issue already exists, please comment on that issue letting us know 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.
|
||||
|
||||
* Looking for an issue to fix? Make sure to look through our issues with the [help wanted](https://github.com/ionic-team/ionicons/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) label!
|
||||
|
||||
|
||||
### Setup
|
||||
|
||||
1. [Download the installer](https://nodejs.org/) for the LTS version of Node.js. This is the best way to also [install npm](https://blog.npmjs.org/post/85484771375/how-to-install-npm#_=_).
|
||||
2. Fork this repository.
|
||||
3. Clone your fork.
|
||||
4. Create a new branch from master for your change.
|
||||
5. Run `npm install` from the root directory to install dependencies for this package.
|
||||
6. [Modify the Icon Component](#modifying-components) if desired.
|
||||
7. Or, modify and [preview the site](#preview-site).
|
||||
|
||||
|
||||
#### Modifying Components
|
||||
|
||||
1. Navigate to the `src/components/` directory and open the `icon` component to modify.
|
||||
2. Make any changes to the icon component and then [preview-changes](#preview-component-changes).
|
||||
|
||||
|
||||
#### Preview Component Changes
|
||||
|
||||
1. Run `npm start` from the root directory to start a local version of the icon test.
|
||||
2. In the browser, navigate to `/src/components` to view the example test.
|
||||
3. Modify this test as needed in the `src/components.index.html` file.
|
||||
|
||||
#### Preview Site
|
||||
|
||||
1. Run `npm run dev` from the root directory to start a local version of the ionicons site.
|
||||
2. A browser will open with a local version of the ionicons docs.
|
||||
|
||||
|
||||
#### Lint Changes
|
||||
|
||||
1. Run `npm run lint.ts` to lint the TypeScript.
|
||||
2. If there are lint errors, run `npm run lint.ts.fix` to automatically fix any errors. Repeat step 1 to ensure the errors have been fixed, and manually fix them if not.
|
||||
|
||||
|
||||
<!-- #### Building Changes
|
||||
|
||||
TODO -->
|
||||
|
||||
|
||||
### Submit Pull Request
|
||||
|
||||
1. [Create a new pull request](https://github.com/ionic-team/ionicons/compare) with the `master` branch as the `base`. You may need to click on `compare across forks` to find your changes.
|
||||
2. See the [Creating a pull request from a fork](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) GitHub help article for more information.
|
||||
3. Please fill out the Pull Request template to the best of your ability and include any issues that are related.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
By contributing your code to the ionic-team/ionicons GitHub Repository, you agree to license your contribution under the MIT license.
|
||||
@@ -8,10 +8,13 @@ log.txt
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
.idea/
|
||||
.sass-cache/
|
||||
.versions/
|
||||
.vscode/
|
||||
node_modules/
|
||||
tmp/
|
||||
dist/
|
||||
icons/
|
||||
.DS_Store
|
||||
scripts/*.js
|
||||
|
||||
www/
|
||||
@@ -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,413 +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: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100%;
|
||||
padding-top: 110px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
main > .wrapper {
|
||||
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 {
|
||||
box-sizing: border-box;
|
||||
margin: 0 auto;
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1140px;
|
||||
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 {
|
||||
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 {
|
||||
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: inline-flex;
|
||||
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;
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn--icon .ion {
|
||||
font-size: 26px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
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 {
|
||||
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,123 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
(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, orgComponentOnReady) {
|
||||
// create global namespace if it doesn't already exist
|
||||
App = win[namespace] = win[namespace] || {};
|
||||
App.components = components;
|
||||
y = components.filter(function (c) { return c[2]; }).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', '');
|
||||
doc.head.insertBefore(x, doc.head.firstChild);
|
||||
}
|
||||
// create a temporary array to store the resolves
|
||||
// before the core file has fully loaded
|
||||
App.$r = [];
|
||||
// add componentOnReady to HTMLElement.prototype
|
||||
orgComponentOnReady = HTMLElementPrototype.componentOnReady;
|
||||
HTMLElementPrototype.componentOnReady = function componentOnReady(cb) {
|
||||
const elm = this;
|
||||
// there may be more than one app on the window so
|
||||
// call original HTMLElement.prototype.componentOnReady
|
||||
// if one exists already
|
||||
orgComponentOnReady && orgComponentOnReady.call(elm);
|
||||
function executor(resolve) {
|
||||
if (App.$r) {
|
||||
// core file hasn't loaded yet
|
||||
// so let's throw it in this temporary queue
|
||||
// and when the core does load it'll handle these
|
||||
App.$r.push([elm, resolve]);
|
||||
}
|
||||
else {
|
||||
// core has finished loading because there's no temporary queue
|
||||
// call the core's logic to handle this
|
||||
App.componentOnReady(elm, resolve);
|
||||
}
|
||||
}
|
||||
if (cb) {
|
||||
// just a callback
|
||||
return executor(cb);
|
||||
}
|
||||
// callback wasn't provided, let's return a promise
|
||||
if (win.Promise) {
|
||||
// use native/polyfilled promise
|
||||
return new Promise(executor);
|
||||
}
|
||||
// promise may not have been polyfilled yet
|
||||
return { then: executor };
|
||||
};
|
||||
// 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 (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;
|
||||
}
|
||||
|
||||
|
||||
init(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCoreSsr, appCorePolyfilled, hydratedCssClass, components);
|
||||
|
||||
})(window, document, "DocsSite","docssite",0,"docssite.core.js","es5-build-disabled.js","hydrated",[["footer-bar","footer-bar",1],["header-bar","header-bar",1,[["el",7],["isMobileMenuShown",5],["isSearchVisible",1,0,"is-search-visible",3],["isSticky",5],["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",7],["isHeaderSearchVisible",5],["query",1,0,1,2],["selectedIcon",5],["selectedIconType",5]],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",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","header-bar",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","icon-list",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","notfound-page",1],["stencil-route","header-bar",0,[["activeInGroup",5],["activeRouter",3,0,0,0,"activeRouter"],["component",1,0,1,2],["componentProps",1],["el",7],["exact",1,0,1,3],["group",1,0,1,2],["groupIndex",1,0,"group-index",4],["isServer",3,0,0,0,"isServer"],["location",3,0,0,0,"location"],["match",5],["queue",3,0,0,0,"queue"],["routeRender",1],["scrollTopOffset",1,0,"scroll-top-offset",4],["url",1,0,1,2]]],["stencil-route-link","stencil-route-link",0,[["activeClass",1,0,"active-class",2],["activeRouter",3,0,0,0,"activeRouter"],["anchorClass",1,0,"anchor-class",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["custom",1,0,1,2],["exact",1,0,1,3],["match",5],["strict",1,0,1,3],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-router","header-bar",0,[["activeRouter",3,0,0,0,"activeRouter"],["historyType",1,0,"history-type",2],["match",5],["root",1,0,1,2],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","icon-list",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","usage-page",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle("5szlxwny",["exports","./chunk-4440b782.js"],function(t,e){var i=window.DocsSite.h,r=function(){function t(){this.unsubscribe=function(){},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}return t.prototype.computeMatch=function(t){return t||(t=this.activeRouter.get("location").pathname),e.matchPath(t,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})},t.prototype.componentWillLoad=function(){var t=this;this.unsubscribe=this.activeRouter.subscribe({isMatch:this.computeMatch.bind(this),listener:function(e){t.match=e}}),this.match=this.computeMatch()},t.prototype.componentDidUnload=function(){this.unsubscribe()},t.prototype.handleClick=function(t){if(t.preventDefault(),this.activeRouter)return this.activeRouter.get("history").push(this.getUrl(this.url));console.warn('<stencil-route-link> wasn\'t passed an instance of the router as the "router" prop!')},t.prototype.getUrl=function(t){var e=this.activeRouter.get("root")||"/";return"/"==t.charAt(0)&&"/"==e.charAt(e.length-1)?e.slice(0,e.length-1)+t:e+t},t.prototype.render=function(){var t,e={class:(t={},t[this.activeClass]=null!==this.match,t),onClick:this.handleClick.bind(this)};return this.anchorClass&&(e.class[this.anchorClass]=!0),"a"===this.custom&&(e=Object.assign({},e,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex})),i(this.custom,Object.assign({},e),i("slot",null))},Object.defineProperty(t,"is",{get:function(){return"stencil-route-link"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{activeClass:{type:String,attr:"active-class"},activeRouter:{context:"activeRouter"},anchorClass:{type:String,attr:"anchor-class"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},custom:{type:String,attr:"custom"},exact:{type:Boolean,attr:"exact"},match:{state:!0},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}},enumerable:!0,configurable:!0}),t}();t.StencilRouteLink=r,Object.defineProperty(t,"__esModule",{value:!0})});
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const{h:t}=window.DocsSite;import{a as e}from"./chunk-f6f1d593.js";class s{constructor(){this.unsubscribe=(()=>{}),this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}computeMatch(t){return t||(t=this.activeRouter.get("location").pathname),e(t,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}componentWillLoad(){this.unsubscribe=this.activeRouter.subscribe({isMatch:this.computeMatch.bind(this),listener:t=>{this.match=t}}),this.match=this.computeMatch()}componentDidUnload(){this.unsubscribe()}handleClick(t){if(t.preventDefault(),this.activeRouter)return this.activeRouter.get("history").push(this.getUrl(this.url));console.warn('<stencil-route-link> wasn\'t passed an instance of the router as the "router" prop!')}getUrl(t){const e=this.activeRouter.get("root")||"/";return"/"==t.charAt(0)&&"/"==e.charAt(e.length-1)?e.slice(0,e.length-1)+t:e+t}render(){let e={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(e.class[this.anchorClass]=!0),"a"===this.custom&&(e=Object.assign({},e,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex})),t(this.custom,Object.assign({},e),t("slot",null))}static get is(){return"stencil-route-link"}static get properties(){return{activeClass:{type:String,attr:"active-class"},activeRouter:{context:"activeRouter"},anchorClass:{type:String,attr:"anchor-class"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},custom:{type:String,attr:"custom"},exact:{type:Boolean,attr:"exact"},match:{state:!0},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}}}export{s as StencilRouteLink};
|
||||
@@ -1,37 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle("chunk-4440b782.js", ["exports"], function (e) { window.DocsSite.h; var t = "/", n = "./", r = new RegExp(["(\\\\.)", "(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"), "g"); function i(e) { return e.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"); } function a(e) { return e.replace(/([=!:$/()])/g, "\\$1"); } function u(e) { return e && e.sensitive ? "" : "i"; } function l(e, o, c) { return e instanceof RegExp ? function (e, t) { if (!t)
|
||||
return e; var n = e.source.match(/\((?!\?)/g); if (n)
|
||||
for (var r = 0; r < n.length; r++)
|
||||
t.push({ name: r, prefix: null, delimiter: null, optional: !1, repeat: !1, partial: !1, pattern: null }); return e; }(e, o) : Array.isArray(e) ? function (e, t, n) { for (var r = [], i = 0; i < e.length; i++)
|
||||
r.push(l(e[i], t, n).source); return new RegExp("(?:" + r.join("|") + ")", u(n)); }(e, o, c) : function (e, l, o) { return function (e, r, a) { for (var l = (a = a || {}).strict, o = !1 !== a.end, c = i(a.delimiter || t), s = a.delimiters || n, p = [].concat(a.endsWith || []).map(i).concat("$").join("|"), f = "", h = !1, d = 0; d < e.length; d++) {
|
||||
var g = e[d];
|
||||
if ("string" == typeof g)
|
||||
f += i(g), h = d === e.length - 1 && s.indexOf(g[g.length - 1]) > -1;
|
||||
else {
|
||||
var x = i(g.prefix), v = g.repeat ? "(?:" + g.pattern + ")(?:" + x + "(?:" + g.pattern + "))*" : g.pattern;
|
||||
r && r.push(g), g.optional ? g.partial ? f += x + "(" + v + ")?" : f += "(?:" + x + "(" + v + "))?" : f += x + "(" + v + ")";
|
||||
}
|
||||
} return o ? (l || (f += "(?:" + c + ")?"), f += "$" === p ? "$" : "(?=" + p + ")") : (l || (f += "(?:" + c + "(?=" + p + "))?"), h || (f += "(?=" + c + "|" + p + ")")), new RegExp("^" + f, u(a)); }(function (e, u) { for (var l, o = [], c = 0, s = 0, p = "", f = u && u.delimiter || t, h = u && u.delimiters || n, d = !1; null !== (l = r.exec(e));) {
|
||||
var g = l[0], x = l[1], v = l.index;
|
||||
if (p += e.slice(s, v), s = v + g.length, x)
|
||||
p += x[1], d = !0;
|
||||
else {
|
||||
var m = "", $ = e[s], y = l[2], w = l[3], E = l[4], R = l[5];
|
||||
if (!d && p.length) {
|
||||
var j = p.length - 1;
|
||||
h.indexOf(p[j]) > -1 && (m = p[j], p = p.slice(0, j));
|
||||
}
|
||||
p && (o.push(p), p = "", d = !1);
|
||||
var O = "" !== m && void 0 !== $ && $ !== m, S = "+" === R || "*" === R, b = "?" === R || "*" === R, k = m || f, A = w || E;
|
||||
o.push({ name: y || c++, prefix: m, delimiter: k, optional: b, repeat: S, partial: O, pattern: A ? a(A) : "[^" + i(k) + "]+?" });
|
||||
}
|
||||
} return (p || s < e.length) && o.push(p + e.substr(s)), o; }(e, o), l, o); }(e, o, c); } var o = {}; var c = 0; e.matchPath = function (e, t) {
|
||||
if (t === void 0) { t = {}; }
|
||||
"string" == typeof t && (t = { path: t });
|
||||
var _a = t.path, n = _a === void 0 ? "/" : _a, _b = t.exact, r = _b === void 0 ? !1 : _b, _c = t.strict, i = _c === void 0 ? !1 : _c, _d = function (e, t) { var n = "" + t.end + t.strict, r = o[n] || (o[n] = {}), i = JSON.stringify(e); if (r[i])
|
||||
return r[i]; var a = [], u = { re: l(e, a, t), keys: a }; return c < 1e4 && (r[i] = u, c += 1), u; }(n, { end: r, strict: i }), a = _d.re, u = _d.keys, s = a.exec(e);
|
||||
if (!s)
|
||||
return null;
|
||||
var p = s[0], f = s.slice(1), h = e === p;
|
||||
return r && !h ? null : { path: n, url: "/" === n && "" === p ? "/" : p, isExact: h, params: u.reduce(function (e, t, n) { return e[t.name] = f[n], e; }, {}) };
|
||||
}; });
|
||||
@@ -1,265 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const { h } = window.DocsSite;
|
||||
|
||||
/**
|
||||
* TS adaption of https://github.com/pillarjs/path-to-regexp/blob/master/index.js
|
||||
*/
|
||||
/**
|
||||
* Default configs.
|
||||
*/
|
||||
var DEFAULT_DELIMITER = '/';
|
||||
var DEFAULT_DELIMITERS = './';
|
||||
/**
|
||||
* The main path matching regexp utility.
|
||||
*/
|
||||
var PATH_REGEXP = new RegExp([
|
||||
// Match escaped characters that would otherwise appear in future matches.
|
||||
// This allows the user to escape special characters that won't transform.
|
||||
'(\\\\.)',
|
||||
// Match Express-style parameters and un-named parameters with a prefix
|
||||
// and optional suffixes. Matches appear as:
|
||||
//
|
||||
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?"]
|
||||
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined]
|
||||
'(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?'
|
||||
].join('|'), 'g');
|
||||
/**
|
||||
* Parse a string for the raw tokens.
|
||||
*/
|
||||
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;
|
||||
// Ignore already escaped sequences.
|
||||
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);
|
||||
}
|
||||
}
|
||||
// Push the current path onto the tokens.
|
||||
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) + ']+?'
|
||||
});
|
||||
}
|
||||
// Push any remaining characters.
|
||||
if (path || index < str.length) {
|
||||
tokens.push(path + str.substr(index));
|
||||
}
|
||||
return tokens;
|
||||
}
|
||||
/**
|
||||
* Escape a regular expression string.
|
||||
*/
|
||||
function escapeString(str) {
|
||||
return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1');
|
||||
}
|
||||
/**
|
||||
* Escape the capturing group by escaping special characters and meaning.
|
||||
*/
|
||||
function escapeGroup(group) {
|
||||
return group.replace(/([=!:$/()])/g, '\\$1');
|
||||
}
|
||||
/**
|
||||
* Get the flags for a regexp from the options.
|
||||
*/
|
||||
function flags(options) {
|
||||
return options && options.sensitive ? '' : 'i';
|
||||
}
|
||||
/**
|
||||
* Pull out keys from a regexp.
|
||||
*/
|
||||
function regexpToRegexp(path, keys) {
|
||||
if (!keys)
|
||||
return path;
|
||||
// Use a negative lookahead to match only capturing groups.
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* Transform an array into a regexp.
|
||||
*/
|
||||
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));
|
||||
}
|
||||
/**
|
||||
* Create a path regexp from string input.
|
||||
*/
|
||||
function stringToRegexp(path, keys, options) {
|
||||
return tokensToRegExp(parse(path, options), keys, options);
|
||||
}
|
||||
/**
|
||||
* Expose a function for taking tokens and returning a RegExp.
|
||||
*/
|
||||
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;
|
||||
// Iterate over the tokens and create our regexp string.
|
||||
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));
|
||||
}
|
||||
/**
|
||||
* Normalize the given path string, returning a regular expression.
|
||||
*
|
||||
* An empty array can be passed in for the keys, which will hold the
|
||||
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
||||
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
const patternCache = {};
|
||||
const cacheLimit = 10000;
|
||||
let cacheCount = 0;
|
||||
// Memoized function for creating the path match regex
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* Public API for matching a URL pathname to a path pattern.
|
||||
*/
|
||||
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;
|
||||
}, {})
|
||||
};
|
||||
}
|
||||
|
||||
export { matchPath as a };
|
||||
@@ -1,173 +0,0 @@
|
||||
|
||||
var FooterBarComponent = /** @class **/ (function() {
|
||||
function FooterBar() {
|
||||
}
|
||||
FooterBar.is = 'footer-bar';
|
||||
FooterBar.getModule = function(opts) {
|
||||
|
||||
return import('./footer-bar.js').then(function(m) {
|
||||
return m.FooterBar;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var HeaderBarComponent = /** @class **/ (function() {
|
||||
function HeaderBar() {
|
||||
}
|
||||
HeaderBar.is = 'header-bar';
|
||||
HeaderBar.getModule = function(opts) {
|
||||
|
||||
return import('./header-bar.js').then(function(m) {
|
||||
return m.HeaderBar;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var LandingPageComponent = /** @class **/ (function() {
|
||||
function LandingPage() {
|
||||
}
|
||||
LandingPage.is = 'icon-list';
|
||||
LandingPage.getModule = function(opts) {
|
||||
|
||||
return import('./icon-list.js').then(function(m) {
|
||||
return m.LandingPage;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var IconSearchComponent = /** @class **/ (function() {
|
||||
function IconSearch() {
|
||||
}
|
||||
IconSearch.is = 'icon-search';
|
||||
IconSearch.getModule = function(opts) {
|
||||
|
||||
return import('./icon-search.js').then(function(m) {
|
||||
return m.IconSearch;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var IoniconsSiteComponent = /** @class **/ (function() {
|
||||
function IoniconsSite() {
|
||||
}
|
||||
IoniconsSite.is = 'ionicons-site';
|
||||
IoniconsSite.getModule = function(opts) {
|
||||
|
||||
return import('./header-bar.js').then(function(m) {
|
||||
return m.IoniconsSite;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var LandingPageComponent = /** @class **/ (function() {
|
||||
function LandingPage() {
|
||||
}
|
||||
LandingPage.is = 'landing-page';
|
||||
LandingPage.getModule = function(opts) {
|
||||
|
||||
return import('./icon-list.js').then(function(m) {
|
||||
return m.LandingPage;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var NotFoundPageComponent = /** @class **/ (function() {
|
||||
function NotFoundPage() {
|
||||
}
|
||||
NotFoundPage.is = 'notfound-page';
|
||||
NotFoundPage.getModule = function(opts) {
|
||||
|
||||
return import('./notfound-page.js').then(function(m) {
|
||||
return m.NotFoundPage;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var RouteComponent = /** @class **/ (function() {
|
||||
function Route() {
|
||||
}
|
||||
Route.is = 'stencil-route';
|
||||
Route.getModule = function(opts) {
|
||||
|
||||
return import('./header-bar.js').then(function(m) {
|
||||
return m.Route;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var RouteLinkComponent = /** @class **/ (function() {
|
||||
function RouteLink() {
|
||||
}
|
||||
RouteLink.is = 'stencil-route-link';
|
||||
RouteLink.getModule = function(opts) {
|
||||
|
||||
return import('./stencil-route-link.js').then(function(m) {
|
||||
return m.RouteLink;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var RouterComponent = /** @class **/ (function() {
|
||||
function Router() {
|
||||
}
|
||||
Router.is = 'stencil-router';
|
||||
Router.getModule = function(opts) {
|
||||
|
||||
return import('./header-bar.js').then(function(m) {
|
||||
return m.Router;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var ToastBarComponent = /** @class **/ (function() {
|
||||
function ToastBar() {
|
||||
}
|
||||
ToastBar.is = 'toast-bar';
|
||||
ToastBar.getModule = function(opts) {
|
||||
|
||||
return import('./icon-list.js').then(function(m) {
|
||||
return m.ToastBar;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var UsagePageComponent = /** @class **/ (function() {
|
||||
function UsagePage() {
|
||||
}
|
||||
UsagePage.is = 'usage-page';
|
||||
UsagePage.getModule = function(opts) {
|
||||
|
||||
return import('./usage-page.js').then(function(m) {
|
||||
return m.UsagePage;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
|
||||
FooterBar,
|
||||
HeaderBar,
|
||||
LandingPage,
|
||||
IconSearch,
|
||||
IoniconsSite,
|
||||
LandingPage,
|
||||
NotFoundPage,
|
||||
Route,
|
||||
RouteLink,
|
||||
Router,
|
||||
ToastBar,
|
||||
UsagePage,
|
||||
};
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle("d83fvjds",["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,5 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
(function(namespace,resourcesUrl){"use strict";
|
||||
(function(resourcesUrl){var t=Object.prototype.hasOwnProperty;function n(t,n){return t===n?0!==t||0!==n||1/t==1/n:t!=t&&n!=n}function e(e,o){if(n(e,o))return!0;if("object"!=typeof e||null===e||"object"!=typeof o||null===o)return!1;var r=Object.keys(e),u=Object.keys(o);if(r.length!==u.length)return!1;for(var c=0;c<r.length;c++)if(!t.call(o,r[c])||!n(e[r[c]],o[r[c]]))return!1;return!0}var o=function(t,n,e,o){return new(e||(e=Promise))(function(r,u){function c(t){try{i(o.next(t))}catch(t){u(t)}}function l(t){try{i(o.throw(t))}catch(t){u(t)}}function i(t){t.done?r(t.value):new e(function(n){n(t.value)}).then(c,l)}i((o=o.apply(t,n||[])).next())})};Context.activeRouter=function(){let t={};const n=[];function r(n){return 0===Object.keys(t).length?{location:{pathname:Context.window.location.pathname,search:Context.window.location.search}}:n?t[n]:t}function u(){return o(this,void 0,void 0,function*(){const t=n,o=[],u=r("location").pathname;for(let n=0;n<t.length;n++){let r=null;const c=o.some(e=>null!=e[1]&&null!=e[2]&&e[2]===t[n].groupId);r=c?null:t[n].isMatch(u),e(t[n].lastMatch,r)||(!c&&t[n].groupId?o.unshift([n,r,t[n].groupId]):o.push([n,r,t[n].groupId])),t[n].lastMatch=r}for(const[n,e,r]of o)r&&null!=e?yield t[n].listener(e):t[n].listener(e)})}return{set:function(n){t=Object.assign({},t,n),u()},get:r,subscribe:function(t){!function(t){const e=r("location").pathname,o=t.isMatch(e);if(t.lastMatch=o,t.listener(o),null==t.groupId||null==t.groupIndex||0===n.length)n.push(t);else for(let e=0;e<n.length;e++){const{groupId:o,groupIndex:r}=n[e];if(null==o){n.splice(e,0,t);break}if(o===t.groupId&&r>t.groupIndex){n.splice(e,0,t);break}}}(t);let e=!0;return function(){e&&(function(t){const e=n.indexOf(t);n.splice(e,1)}(t),e=!1)}},dispatch:u}}();
|
||||
})(resourcesUrl);
|
||||
})("DocsSite");
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"namespace": "DocsSite",
|
||||
"fsNamespace": "docssite",
|
||||
"loader": "../docssite.js",
|
||||
"corePolyfilled": "es5-build-disabled.js",
|
||||
"global": "docssite.global.js",
|
||||
"core": "docssite.core.js",
|
||||
"components": {
|
||||
"footer-bar": {
|
||||
"$": "footer-bar"
|
||||
},
|
||||
"header-bar": {
|
||||
"$": "header-bar"
|
||||
},
|
||||
"icon-list": {
|
||||
"$": "icon-list"
|
||||
},
|
||||
"icon-search": {
|
||||
"$": "icon-search"
|
||||
},
|
||||
"ionicons-site": {
|
||||
"$": "header-bar"
|
||||
},
|
||||
"landing-page": {
|
||||
"$": "icon-list"
|
||||
},
|
||||
"notfound-page": {
|
||||
"$": "notfound-page"
|
||||
},
|
||||
"stencil-route": {
|
||||
"$": "header-bar"
|
||||
},
|
||||
"stencil-route-link": {
|
||||
"$": "stencil-route-link"
|
||||
},
|
||||
"stencil-router": {
|
||||
"$": "header-bar"
|
||||
},
|
||||
"toast-bar": {
|
||||
"$": "icon-list"
|
||||
},
|
||||
"usage-page": {
|
||||
"$": "usage-page"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
setTimeout(function(){
|
||||
document.body.innerHTML = '<style> body { font-family: sans-serif; padding: 20px; line-height:22px; } h1 { font-size: 18px; } h2 { font-size: 14px; margin-top: 40px; } </style> <h1>This Stencil app is disabled for this browser.</h1> <h2>Developers:</h2> <ul> <li>ES5 builds are disabled <strong>during development</strong> to take advantage of 2x faster build times.</li> <li>Please see the example below or our <a href="https://stenciljs.com/docs/stencil-config" target="_blank">config docs</a> if you would like to develop on a browser that does not fully support ES2017 and custom elements.</li> <li>Note that by default, ES5 builds and polyfills are enabled during production builds.</li> <li>When testing browsers it is recommended to always test in production mode, and ES5 builds should always be enabled during production builds.</li> <li><em>This is only an experiement and if it slows down app development then we will revert this and enable ES5 builds during dev.</em></li> </ul> <h2>Enabling ES5 builds during development:</h2> <pre> <code>npm run dev --es5</code> </pre> <h2>Enabling full production builds during development:</h2> <pre> <code>npm run dev --prod</code> </pre> <h2>Current Browser\'s Support:</h2> <ul> <li>ES Module Imports: <span id="esModules"></span></li> <li>Custom Elements: <span id="customElements"></span></li> <li>fetch(): <span id="fetch"></span></li> <li>CSS Variables: <span id="cssVariables"></span></li> </ul> <h2>Current Browser:</h2> <pre> <code id="currentBrowser"></code> </pre>';
|
||||
|
||||
document.getElementById('currentBrowser').textContent = window.navigator.userAgent;
|
||||
document.getElementById('esModules').textContent = !!('noModule' in document.createElement('script'));
|
||||
document.getElementById('customElements').textContent = !!(window.customElements);
|
||||
document.getElementById('fetch').textContent = !!(window.fetch);
|
||||
document.getElementById('cssVariables').textContent = !!(window.CSS && window.CSS.supports && window.CSS.supports('color', 'var(--c)'));
|
||||
}, 10)
|
||||
@@ -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/components/#icons" }, "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 -webkit-flex: 0 0 8em;\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: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -webkit-align-items: 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 -webkit-flex-direction: column-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/components/#icons" }, "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 -webkit-flex: 0 0 8em;\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: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -webkit-align-items: 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 -webkit-flex-direction: column-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,97 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle('icon-search', ['exports'], function (exports) {
|
||||
var h = window.DocsSite.h;
|
||||
var IconSearch = /** @class */ (function () {
|
||||
function IconSearch() {
|
||||
this.query = '';
|
||||
this.size = 'small';
|
||||
this.autofocus = 'none';
|
||||
this.showClearCtrl = false;
|
||||
}
|
||||
IconSearch.prototype.watchQuery = function () {
|
||||
this.showClearCtrl = (this.query.length > 0) ? true : false;
|
||||
};
|
||||
IconSearch.prototype.searchListener = function (ev) {
|
||||
if (ev.keyCode === 27) {
|
||||
this.handleClear();
|
||||
return;
|
||||
}
|
||||
var value = ev.target.value;
|
||||
this.hasSearched.emit(value);
|
||||
};
|
||||
IconSearch.prototype.handleClear = function () {
|
||||
this.hasSearched.emit('');
|
||||
};
|
||||
IconSearch.prototype.componentWillLoad = function () {
|
||||
this.watchQuery();
|
||||
};
|
||||
IconSearch.prototype.render = function () {
|
||||
return (h("div", { class: "search-input search-input--" + this.size }, h("input", { type: "text", placeholder: "Search icons...", value: this.query, autofocus: this.autofocus === 'autofocus' ? 'autofocus' : '' }), h("i", { class: {
|
||||
'search-input__clear': true,
|
||||
'search-input__clear--active': this.showClearCtrl,
|
||||
'ion': true,
|
||||
'ion-md-close': true
|
||||
}, onClick: this.handleClear.bind(this) })));
|
||||
};
|
||||
Object.defineProperty(IconSearch, "is", {
|
||||
get: function () { return "icon-search"; },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(IconSearch, "properties", {
|
||||
get: function () {
|
||||
return {
|
||||
"autofocus": {
|
||||
"type": String,
|
||||
"attr": "autofocus"
|
||||
},
|
||||
"query": {
|
||||
"type": String,
|
||||
"attr": "query",
|
||||
"watchCallbacks": ["watchQuery"]
|
||||
},
|
||||
"showClearCtrl": {
|
||||
"state": true
|
||||
},
|
||||
"size": {
|
||||
"type": String,
|
||||
"attr": "size"
|
||||
}
|
||||
};
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(IconSearch, "events", {
|
||||
get: function () {
|
||||
return [{
|
||||
"name": "hasSearched",
|
||||
"method": "hasSearched",
|
||||
"bubbles": true,
|
||||
"cancelable": true,
|
||||
"composed": true
|
||||
}];
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(IconSearch, "listeners", {
|
||||
get: function () {
|
||||
return [{
|
||||
"name": "keyup",
|
||||
"method": "searchListener"
|
||||
}];
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(IconSearch, "style", {
|
||||
get: function () { return "icon-search .search-input {\n position: relative; }\n\nicon-search .search-input input {\n width: 100%;\n font-weight: 400;\n font-family: 'Eina';\n font-size: 16px;\n border: 0;\n outline: 0;\n border-radius: 6px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: block;\n -webkit-appearance: none;\n vertical-align: middle; }\n\nicon-search .search-input__clear {\n -webkit-transition: background 0.3s, opacity 0.3s;\n transition: background 0.3s, opacity 0.3s;\n position: absolute;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n right: 16px;\n font-size: 14px;\n width: 22px;\n height: 22px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n color: var(--color-pale-sky);\n opacity: 0;\n background-color: var(--color-catskill-white);\n border-radius: 100px; }\n icon-search .search-input__clear--active {\n opacity: 0.8; }\n icon-search .search-input__clear--active:hover {\n opacity: 1;\n background-color: #e3e9f3; }\n\nicon-search .search-input--small .search-input__clear {\n font-size: 12px;\n width: 18px;\n height: 18px;\n background-color: #e3e9f3;\n right: 12px; }\n icon-search .search-input--small .search-input__clear--active:hover {\n background-color: #dce3f0; }\n\nicon-search .search-input:before {\n font-family: \"Ionicons\";\n content: \"\\f4a5\";\n color: var(--color-heather);\n position: absolute;\n height: 24px;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%); }\n\nicon-search .search-input--small input {\n font-size: 13px;\n line-height: 18px;\n padding: 10px;\n padding-left: 30px;\n padding-right: 30px;\n background-color: #f6f7f9;\n height: 39px;\n text-indent: 0; }\n\nicon-search .search-input--small:before {\n font-size: 18px;\n left: 10px; }\n\nicon-search .search-input--large input {\n -webkit-transition: -webkit-box-shadow 0.3s;\n transition: -webkit-box-shadow 0.3s;\n transition: box-shadow 0.3s;\n transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;\n font-size: 16px;\n line-height: 22px;\n padding: 20px;\n padding-left: 50px;\n padding-right: 50px;\n background-color: white;\n -webkit-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08);\n box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08); }\n\nicon-search .search-input--large input:focus {\n -webkit-box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08);\n box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08); }\n\nicon-search .search-input--large:before {\n font-size: 22px;\n left: 20px; }\n\nicon-search .search-input input::-webkit-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input:-ms-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input::-ms-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input::placeholder {\n color: var(--color-heather); }"; },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
return IconSearch;
|
||||
}());
|
||||
exports.IconSearch = IconSearch;
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
});
|
||||
@@ -1,71 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const { h } = window.DocsSite;
|
||||
|
||||
class IconSearch {
|
||||
constructor() {
|
||||
this.query = '';
|
||||
this.size = 'small';
|
||||
this.autofocus = 'none';
|
||||
this.showClearCtrl = false;
|
||||
}
|
||||
watchQuery() {
|
||||
this.showClearCtrl = (this.query.length > 0) ? true : false;
|
||||
}
|
||||
searchListener(ev) {
|
||||
if (ev.keyCode === 27) {
|
||||
this.handleClear();
|
||||
return;
|
||||
}
|
||||
const value = ev.target.value;
|
||||
this.hasSearched.emit(value);
|
||||
}
|
||||
handleClear() {
|
||||
this.hasSearched.emit('');
|
||||
}
|
||||
componentWillLoad() {
|
||||
this.watchQuery();
|
||||
}
|
||||
render() {
|
||||
return (h("div", { class: `search-input search-input--${this.size}` },
|
||||
h("input", { type: "text", placeholder: "Search icons...", value: this.query, autofocus: this.autofocus === 'autofocus' ? 'autofocus' : '' }),
|
||||
h("i", { class: {
|
||||
'search-input__clear': true,
|
||||
'search-input__clear--active': this.showClearCtrl,
|
||||
'ion': true,
|
||||
'ion-md-close': true
|
||||
}, onClick: this.handleClear.bind(this) })));
|
||||
}
|
||||
static get is() { return "icon-search"; }
|
||||
static get properties() { return {
|
||||
"autofocus": {
|
||||
"type": String,
|
||||
"attr": "autofocus"
|
||||
},
|
||||
"query": {
|
||||
"type": String,
|
||||
"attr": "query",
|
||||
"watchCallbacks": ["watchQuery"]
|
||||
},
|
||||
"showClearCtrl": {
|
||||
"state": true
|
||||
},
|
||||
"size": {
|
||||
"type": String,
|
||||
"attr": "size"
|
||||
}
|
||||
}; }
|
||||
static get events() { return [{
|
||||
"name": "hasSearched",
|
||||
"method": "hasSearched",
|
||||
"bubbles": true,
|
||||
"cancelable": true,
|
||||
"composed": true
|
||||
}]; }
|
||||
static get listeners() { return [{
|
||||
"name": "keyup",
|
||||
"method": "searchListener"
|
||||
}]; }
|
||||
static get style() { return "icon-search .search-input {\n position: relative; }\n\nicon-search .search-input input {\n width: 100%;\n font-weight: 400;\n font-family: 'Eina';\n font-size: 16px;\n border: 0;\n outline: 0;\n border-radius: 6px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: block;\n -webkit-appearance: none;\n vertical-align: middle; }\n\nicon-search .search-input__clear {\n -webkit-transition: background 0.3s, opacity 0.3s;\n transition: background 0.3s, opacity 0.3s;\n position: absolute;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n right: 16px;\n font-size: 14px;\n width: 22px;\n height: 22px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n color: var(--color-pale-sky);\n opacity: 0;\n background-color: var(--color-catskill-white);\n border-radius: 100px; }\n icon-search .search-input__clear--active {\n opacity: 0.8; }\n icon-search .search-input__clear--active:hover {\n opacity: 1;\n background-color: #e3e9f3; }\n\nicon-search .search-input--small .search-input__clear {\n font-size: 12px;\n width: 18px;\n height: 18px;\n background-color: #e3e9f3;\n right: 12px; }\n icon-search .search-input--small .search-input__clear--active:hover {\n background-color: #dce3f0; }\n\nicon-search .search-input:before {\n font-family: \"Ionicons\";\n content: \"\\f4a5\";\n color: var(--color-heather);\n position: absolute;\n height: 24px;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%); }\n\nicon-search .search-input--small input {\n font-size: 13px;\n line-height: 18px;\n padding: 10px;\n padding-left: 30px;\n padding-right: 30px;\n background-color: #f6f7f9;\n height: 39px;\n text-indent: 0; }\n\nicon-search .search-input--small:before {\n font-size: 18px;\n left: 10px; }\n\nicon-search .search-input--large input {\n -webkit-transition: -webkit-box-shadow 0.3s;\n transition: -webkit-box-shadow 0.3s;\n transition: box-shadow 0.3s;\n transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;\n font-size: 16px;\n line-height: 22px;\n padding: 20px;\n padding-left: 50px;\n padding-right: 50px;\n background-color: white;\n -webkit-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08);\n box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08); }\n\nicon-search .search-input--large input:focus {\n -webkit-box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08);\n box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08); }\n\nicon-search .search-input--large:before {\n font-size: 22px;\n left: 20px; }\n\nicon-search .search-input input::-webkit-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input:-ms-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input::-ms-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input::placeholder {\n color: var(--color-heather); }"; }
|
||||
}
|
||||
|
||||
export { IconSearch };
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle("ms1l1l4a",["exports"],function(e){var t=window.DocsSite.h,r=function(){function e(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}return e.prototype.watchQuery=function(){this.showClearCtrl=this.query.length>0},e.prototype.searchListener=function(e){if(27!==e.keyCode){var t=e.target.value;this.hasSearched.emit(t)}else this.handleClear()},e.prototype.handleClear=function(){this.hasSearched.emit("")},e.prototype.componentWillLoad=function(){this.watchQuery()},e.prototype.render=function(){return t("div",{class:"search-input search-input--"+this.size},t("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),t("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))},Object.defineProperty(e,"is",{get:function(){return"icon-search"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"listeners",{get:function(){return[{name:"keyup",method:"searchListener"}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px;padding-left:30px;padding-right:30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px;padding-left:50px;padding-right:50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"},enumerable:!0,configurable:!0}),e}();e.IconSearch=r,Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const{h:e}=window.DocsSite;class t{constructor(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}watchQuery(){this.showClearCtrl=this.query.length>0}searchListener(e){if(27===e.keyCode)return void this.handleClear();const t=e.target.value;this.hasSearched.emit(t)}handleClear(){this.hasSearched.emit("")}componentWillLoad(){this.watchQuery()}render(){return e("div",{class:`search-input search-input--${this.size}`},e("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),e("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))}static get is(){return"icon-search"}static get properties(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}}static get events(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]}static get listeners(){return[{name:"keyup",method:"searchListener"}]}static get style(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px;padding-left:30px;padding-right:30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px;padding-left:50px;padding-right:50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"}}export{t as IconSearch};
|
||||
@@ -1,24 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle('notfound-page', ['exports'], function (exports) {
|
||||
var h = window.DocsSite.h;
|
||||
var NotFoundPage = /** @class */ (function () {
|
||||
function NotFoundPage() {
|
||||
}
|
||||
NotFoundPage.prototype.render = function () {
|
||||
return (h("main", null, h("div", { class: "container" }, h("h1", null, "Woops! We can't find the page your looking for."), h("p", null, "Head on back to the ", h("stencil-route-link", { url: '/', class: 'block' }, "Icons page"), ".")), h("footer-bar", null)));
|
||||
};
|
||||
Object.defineProperty(NotFoundPage, "is", {
|
||||
get: function () { return "notfound-page"; },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(NotFoundPage, "style", {
|
||||
get: function () { return "notfound-page {\n text-align: center;\n height: 100%; }\n notfound-page h1 {\n max-width: 500px; }\n notfound-page a {\n font-weight: 600; }"; },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
return NotFoundPage;
|
||||
}());
|
||||
exports.NotfoundPage = NotFoundPage;
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
});
|
||||
@@ -1,19 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const { h } = window.DocsSite;
|
||||
|
||||
class NotFoundPage {
|
||||
render() {
|
||||
return (h("main", null,
|
||||
h("div", { class: "container" },
|
||||
h("h1", null, "Woops! We can't find the page your looking for."),
|
||||
h("p", null,
|
||||
"Head on back to the ",
|
||||
h("stencil-route-link", { url: '/', class: 'block' }, "Icons page"),
|
||||
".")),
|
||||
h("footer-bar", null)));
|
||||
}
|
||||
static get is() { return "notfound-page"; }
|
||||
static get style() { return "notfound-page {\n text-align: center;\n height: 100%; }\n notfound-page h1 {\n max-width: 500px; }\n notfound-page a {\n font-weight: 600; }"; }
|
||||
}
|
||||
|
||||
export { NotFoundPage as NotfoundPage };
|
||||
@@ -1,150 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle('stencil-route-link', ['exports', './chunk-4440b782.js'], function (exports, __chunk_1) {
|
||||
var h = window.DocsSite.h;
|
||||
/**
|
||||
* @name Route
|
||||
* @module ionic
|
||||
* @description
|
||||
*/
|
||||
var RouteLink = /** @class */ (function () {
|
||||
function RouteLink() {
|
||||
this.unsubscribe = function () { return; };
|
||||
this.activeClass = 'link-active';
|
||||
this.exact = false;
|
||||
this.strict = true;
|
||||
/**
|
||||
* Custom tag to use instead of an anchor
|
||||
*/
|
||||
this.custom = 'a';
|
||||
this.match = null;
|
||||
}
|
||||
// Identify if the current route is a match.
|
||||
RouteLink.prototype.computeMatch = function (pathname) {
|
||||
if (!pathname) {
|
||||
var location = this.activeRouter.get('location');
|
||||
pathname = location.pathname;
|
||||
}
|
||||
var match = __chunk_1.matchPath(pathname, {
|
||||
path: this.urlMatch || this.url,
|
||||
exact: this.exact,
|
||||
strict: this.strict
|
||||
});
|
||||
return match;
|
||||
};
|
||||
RouteLink.prototype.componentWillLoad = function () {
|
||||
var _this = this;
|
||||
// subscribe the project's active router and listen
|
||||
// for changes. Recompute the match if any updates get
|
||||
// pushed
|
||||
this.unsubscribe = this.activeRouter.subscribe({
|
||||
isMatch: this.computeMatch.bind(this),
|
||||
listener: function (matchResult) {
|
||||
_this.match = matchResult;
|
||||
},
|
||||
});
|
||||
// Likely that this route link could receive a location prop
|
||||
this.match = this.computeMatch();
|
||||
};
|
||||
RouteLink.prototype.componentDidUnload = function () {
|
||||
// be sure to unsubscribe to the router so that we don't
|
||||
// get any memory leaks
|
||||
this.unsubscribe();
|
||||
};
|
||||
RouteLink.prototype.handleClick = function (e) {
|
||||
e.preventDefault();
|
||||
if (!this.activeRouter) {
|
||||
console.warn('<stencil-route-link> wasn\'t passed an instance of the router as the "router" prop!');
|
||||
return;
|
||||
}
|
||||
var history = this.activeRouter.get('history');
|
||||
return history.push(this.getUrl(this.url));
|
||||
};
|
||||
// Get the URL for this route link without the root from the router
|
||||
RouteLink.prototype.getUrl = function (url) {
|
||||
var root = this.activeRouter.get('root') || '/';
|
||||
// Don't allow double slashes
|
||||
if (url.charAt(0) == '/' && root.charAt(root.length - 1) == '/') {
|
||||
return root.slice(0, root.length - 1) + url;
|
||||
}
|
||||
return root + url;
|
||||
};
|
||||
RouteLink.prototype.render = function () {
|
||||
var anchorAttributes = {
|
||||
class: (_a = {},
|
||||
_a[this.activeClass] = this.match !== null,
|
||||
_a),
|
||||
onClick: this.handleClick.bind(this)
|
||||
};
|
||||
if (this.anchorClass) {
|
||||
anchorAttributes.class[this.anchorClass] = true;
|
||||
}
|
||||
if (this.custom === 'a') {
|
||||
anchorAttributes = Object.assign({}, anchorAttributes, { href: this.url, title: this.anchorTitle, role: this.anchorRole, tabindex: this.anchorTabIndex });
|
||||
}
|
||||
return (h(this.custom, Object.assign({}, anchorAttributes), h("slot", null)));
|
||||
var _a;
|
||||
};
|
||||
Object.defineProperty(RouteLink, "is", {
|
||||
get: function () { return "stencil-route-link"; },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(RouteLink, "properties", {
|
||||
get: function () {
|
||||
return {
|
||||
"activeClass": {
|
||||
"type": String,
|
||||
"attr": "active-class"
|
||||
},
|
||||
"activeRouter": {
|
||||
"context": "activeRouter"
|
||||
},
|
||||
"anchorClass": {
|
||||
"type": String,
|
||||
"attr": "anchor-class"
|
||||
},
|
||||
"anchorRole": {
|
||||
"type": String,
|
||||
"attr": "anchor-role"
|
||||
},
|
||||
"anchorTabIndex": {
|
||||
"type": String,
|
||||
"attr": "anchor-tab-index"
|
||||
},
|
||||
"anchorTitle": {
|
||||
"type": String,
|
||||
"attr": "anchor-title"
|
||||
},
|
||||
"custom": {
|
||||
"type": String,
|
||||
"attr": "custom"
|
||||
},
|
||||
"exact": {
|
||||
"type": Boolean,
|
||||
"attr": "exact"
|
||||
},
|
||||
"match": {
|
||||
"state": true
|
||||
},
|
||||
"strict": {
|
||||
"type": Boolean,
|
||||
"attr": "strict"
|
||||
},
|
||||
"url": {
|
||||
"type": String,
|
||||
"attr": "url"
|
||||
},
|
||||
"urlMatch": {
|
||||
"type": String,
|
||||
"attr": "url-match"
|
||||
}
|
||||
};
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
return RouteLink;
|
||||
}());
|
||||
exports.StencilRouteLink = RouteLink;
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
});
|
||||
@@ -1,139 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
const { h } = window.DocsSite;
|
||||
|
||||
import { a as matchPath } from './chunk-f6f1d593.js';
|
||||
|
||||
/**
|
||||
* @name Route
|
||||
* @module ionic
|
||||
* @description
|
||||
*/
|
||||
class RouteLink {
|
||||
constructor() {
|
||||
this.unsubscribe = () => { return; };
|
||||
this.activeClass = 'link-active';
|
||||
this.exact = false;
|
||||
this.strict = true;
|
||||
/**
|
||||
* Custom tag to use instead of an anchor
|
||||
*/
|
||||
this.custom = 'a';
|
||||
this.match = null;
|
||||
}
|
||||
// Identify if the current route is a match.
|
||||
computeMatch(pathname) {
|
||||
if (!pathname) {
|
||||
const location = this.activeRouter.get('location');
|
||||
pathname = location.pathname;
|
||||
}
|
||||
const match = matchPath(pathname, {
|
||||
path: this.urlMatch || this.url,
|
||||
exact: this.exact,
|
||||
strict: this.strict
|
||||
});
|
||||
return match;
|
||||
}
|
||||
componentWillLoad() {
|
||||
// subscribe the project's active router and listen
|
||||
// for changes. Recompute the match if any updates get
|
||||
// pushed
|
||||
this.unsubscribe = this.activeRouter.subscribe({
|
||||
isMatch: this.computeMatch.bind(this),
|
||||
listener: (matchResult) => {
|
||||
this.match = matchResult;
|
||||
},
|
||||
});
|
||||
// Likely that this route link could receive a location prop
|
||||
this.match = this.computeMatch();
|
||||
}
|
||||
componentDidUnload() {
|
||||
// be sure to unsubscribe to the router so that we don't
|
||||
// get any memory leaks
|
||||
this.unsubscribe();
|
||||
}
|
||||
handleClick(e) {
|
||||
e.preventDefault();
|
||||
if (!this.activeRouter) {
|
||||
console.warn('<stencil-route-link> wasn\'t passed an instance of the router as the "router" prop!');
|
||||
return;
|
||||
}
|
||||
const history = this.activeRouter.get('history');
|
||||
return history.push(this.getUrl(this.url));
|
||||
}
|
||||
// Get the URL for this route link without the root from the router
|
||||
getUrl(url) {
|
||||
const root = this.activeRouter.get('root') || '/';
|
||||
// Don't allow double slashes
|
||||
if (url.charAt(0) == '/' && root.charAt(root.length - 1) == '/') {
|
||||
return root.slice(0, root.length - 1) + url;
|
||||
}
|
||||
return root + url;
|
||||
}
|
||||
render() {
|
||||
let anchorAttributes = {
|
||||
class: {
|
||||
[this.activeClass]: this.match !== null,
|
||||
},
|
||||
onClick: this.handleClick.bind(this)
|
||||
};
|
||||
if (this.anchorClass) {
|
||||
anchorAttributes.class[this.anchorClass] = true;
|
||||
}
|
||||
if (this.custom === 'a') {
|
||||
anchorAttributes = Object.assign({}, anchorAttributes, { href: this.url, title: this.anchorTitle, role: this.anchorRole, tabindex: this.anchorTabIndex });
|
||||
}
|
||||
return (h(this.custom, Object.assign({}, anchorAttributes),
|
||||
h("slot", null)));
|
||||
}
|
||||
static get is() { return "stencil-route-link"; }
|
||||
static get properties() { return {
|
||||
"activeClass": {
|
||||
"type": String,
|
||||
"attr": "active-class"
|
||||
},
|
||||
"activeRouter": {
|
||||
"context": "activeRouter"
|
||||
},
|
||||
"anchorClass": {
|
||||
"type": String,
|
||||
"attr": "anchor-class"
|
||||
},
|
||||
"anchorRole": {
|
||||
"type": String,
|
||||
"attr": "anchor-role"
|
||||
},
|
||||
"anchorTabIndex": {
|
||||
"type": String,
|
||||
"attr": "anchor-tab-index"
|
||||
},
|
||||
"anchorTitle": {
|
||||
"type": String,
|
||||
"attr": "anchor-title"
|
||||
},
|
||||
"custom": {
|
||||
"type": String,
|
||||
"attr": "custom"
|
||||
},
|
||||
"exact": {
|
||||
"type": Boolean,
|
||||
"attr": "exact"
|
||||
},
|
||||
"match": {
|
||||
"state": true
|
||||
},
|
||||
"strict": {
|
||||
"type": Boolean,
|
||||
"attr": "strict"
|
||||
},
|
||||
"url": {
|
||||
"type": String,
|
||||
"attr": "url"
|
||||
},
|
||||
"urlMatch": {
|
||||
"type": String,
|
||||
"attr": "url-match"
|
||||
}
|
||||
}; }
|
||||
}
|
||||
|
||||
export { RouteLink as StencilRouteLink };
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle("vtu3zyh5",["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/components/#icons"},"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;-webkit-flex:0 0 8em;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items: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;-webkit-flex-direction:column-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/components/#icons"},"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;-webkit-flex:0 0 8em;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items: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;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"}}export{o as FooterBar};
|
||||