Compare commits

...
167 Commits
Author SHA1 Message Date
Manu Mtz.-Almeida 76799e6d2a 4.4.7 2018-11-15 17:37:49 +01:00
Manu Mtz.-Almeida 685c09df15 fix(capacitor): accept 0 as valid status code 2018-11-15 17:37:21 +01:00
Cam Wiegert e8e8216f35 fix: remove unused size custom properties (#635)
This removes the use of two undocumented custom properties from the component styles.

- `--ion-icon-size-large`
- `--ion-icon-size-small`
2018-11-06 10:21:02 -06:00
Kevin Ports 92c579228e Add Ionic referral link to headline 2018-10-19 10:22:41 -05:00
Kevin Ports e080c27251 dev build should look for ts file not js stencil config file 2018-10-18 15:01:43 -05:00
Manu Mtz.-Almeida f3e720c129 chore(): update website 2018-10-14 11:20:19 -05:00
Manu Mtz.-Almeida b9e6dd787e chore(): update website 2018-10-14 11:11:36 -05:00
Manu Mtz.-Almeida d00a1db48e 4.4.6 2018-10-14 11:10:13 -05:00
Manu Mtz.-Almeida 500bd26e56 fix(): remove console log 2018-10-14 11:08:43 -05:00
Manu Mtz.-Almeida 73bc0a596a chore(): update website 2018-10-14 10:59:39 -05:00
Manu Mtz.-Almeida 02e6c71099 4.4.5 2018-10-14 10:58:45 -05:00
Manu Mtz.-Almeida 1445bbd4a9 fix(): scoped css race condition 2018-10-14 10:57:11 -05:00
Adam Bradley c0e2a0498b chore(deps): update node-sass 2018-10-12 13:18:05 -05:00
perry c493761abc docs version bump 2018-10-08 10:07:32 -05:00
perry 4c07e02372 FF bug with this stenicl version 2018-10-05 23:52:52 -05:00
Manu Mtz.-Almeida 354665f069 chore(): update website 2018-09-25 23:41:48 +02:00
Manu Mtz.-Almeida 43b4fff014 4.4.4 2018-09-25 23:36:58 +02:00
Manu Mtz.-Almeida c14505fb28 chore(): update to latest stencil 2018-09-25 23:36:30 +02:00
Manu Mtz.-Almeida 7f4291e460 fix(webpack): fix warning 2018-09-25 22:52:59 +02:00
Manu Mtz.-Almeida f8a367a1c8 4.4.3 2018-08-27 21:08:58 +02:00
Manu Mtz.-Almeida c1bcd61d5a chore(): update stencil 2018-08-27 21:08:27 +02:00
Manu Mtz.-Almeida 9a9aca0ae0 chore(): update website 2018-08-27 19:12:35 +02:00
Manu Mtz.-Almeida fad3fc4580 4.4.2 2018-08-27 19:11:27 +02:00
Manu Mtz.-Almeida 2c36419fd7 chore(): update to latest stencil 2018-08-27 19:10:42 +02:00
Manu Mtz.-Almeida 812b488515 fix(webpack): using file-loader api to bundle svgs in the right place 2018-08-23 19:16:50 +02:00
Manu Mtz.-Almeida bd3a98905f chore(): update website 2018-08-23 17:39:55 +02:00
Manu Mtz.-Almeida 3a226bac77 4.4.1 2018-08-23 17:37:01 +02:00
Manu Mtz.-Almeida 29f812aaaf chore(): update to latest stencil 2018-08-23 17:36:31 +02:00
Manu Mtz.-Almeida 7d3dd41f59 chore(): update website 2018-08-22 22:07:40 +02:00
Manu Mtz.-Almeida 422bda7983 4.4.0 2018-08-22 22:06:49 +02:00
Manu Mtz.-Almeida e7f12e3df4 feat(): generate index.js for webpack 2018-08-22 22:03:19 +02:00
Manu Mtz.-Almeida 28eb1260d5 chore(): update to latest stencil 2018-08-22 22:03:06 +02:00
Manu Mtz.-Almeida 9dc22085ee chore(): updated website 2018-08-02 02:29:17 +02:00
Manu Mtz.-Almeida 3d8457d5df 4.3.0 2018-08-02 02:27:53 +02:00
Manu Mtz.-Almeida c41d08a4fe fix(svg): new scoped css 2018-08-02 02:27:24 +02:00
Manu Mtz.-Almeida 0e737a1aa8 chore(): add tslint rules 2018-07-29 16:27:02 +02:00
Manu Mtz.-Almeida 7bb0d7b232 chore(): update website 2018-07-29 15:24:07 +02:00
Manu Mtz.-Almeida 29a6c8b996 4.2.6 2018-07-29 15:23:07 +02:00
Manu Mtz.-Almeida 0f4438f581 fix(css): fix color conflict 2018-07-29 15:22:31 +02:00
Manu Mtz.-Almeida 1c5211c47c chore(): update website 2018-07-24 01:19:16 +02:00
Manu Mtz.-Almeida b0b67d51dd 4.2.5 2018-07-24 01:17:28 +02:00
Manu Mtz.-Almeida 1c5942ad96 chore(): disable package-lock 2018-07-24 01:14:28 +02:00
Manu Mtz.-Almeida c635b65d75 feat(icon): lazy loading can be disabled 2018-07-24 01:13:44 +02:00
Manu Mtz.-Almeida a15a2f0f89 chore(): update site 2018-06-29 02:30:29 +02:00
Manu Mtz.-Almeida 1a80387c54 4.2.4 2018-06-29 02:25:34 +02:00
Manu Mtz.-Almeida bea74662db fix(icon): always lowercase name 2018-06-29 02:24:25 +02:00
Manu Mtz.-Almeida fcfe309839 chore(): update site 2018-06-29 01:40:26 +02:00
Manu Mtz.-Almeida 918c27f1fd 4.2.3 2018-06-29 00:14:20 +02:00
Manu Mtz.-Almeida 8f6706e1b4 chore(): update dependencies and site 2018-06-28 12:28:15 +02:00
Manu Mtz.-Almeida ab0f7cab07 feat(mode): base mode can be changed 2018-06-27 23:27:40 +02:00
Manu Mtz.-Almeida 4d16d6b5bb fix(icon): missing IntersectionObserver check 2018-06-26 22:17:04 +02:00
Adam Bradley 080520c272 4.2.2 2018-06-26 14:55:16 -05:00
Adam Bradley 3d1d7b1287 docs(): rebuild for 4.2.2 2018-06-26 14:53:19 -05:00
Manu MA 92bf42fc66 fix(size): :host does not have enough priority 2018-06-26 14:43:14 -05:00
Adam Bradley 38e75af977 4.2.1 2018-06-20 15:17:17 -05:00
Adam Bradley 978d7f0520 docs(): rebuild for 4.2.1 2018-06-20 15:14:50 -05:00
Manu MA 10ca108e3e fix(icon): scoped css 2018-06-20 15:06:52 -05:00
perry c6238c8a36 trying a new font path 2018-06-14 11:40:27 -05:00
perry 8bb5ff94c8 updating node-sass 2018-06-14 11:23:40 -05:00
Adam Bradley fec5d9b436 chore(): update data to 4.2.0 2018-06-14 09:05:18 -05:00
Adam Bradley 6f97fcc1b4 4.2.0 2018-06-14 09:03:48 -05:00
Adam Bradley 7c5116b1cb docs(): rebuild and update to 4.2.0 2018-06-14 09:00:36 -05:00
Manu MA fbd6f853f2 feat(): using shadow-dom 2018-06-14 08:48:15 -05:00
Kevin Ports 31127430b1 Rebuild docs site in prod mode 2018-05-21 15:49:36 -05:00
Adam Bradley b6849aa02d Update readme.md 2018-05-21 15:24:26 -05:00
Kevin Ports ffe501d0dc Rebuild docs site 2018-05-21 11:45:39 -05:00
Kevin Ports 9bc7938f97 Fix merge conflicts 2018-05-21 11:43:57 -05:00
Kevin Ports 61874d3b39 Cleanup 2018-05-21 11:41:00 -05:00
Kevin Ports fb6e291605 Fix logo icon type code snippet 2018-05-21 11:35:59 -05:00
Adam Bradley a73cef8b2f rebuild docs 2018-05-21 11:28:32 -05:00
Adam Bradley bd1f3c3ac6 4.1.2 2018-05-21 11:20:06 -05:00
Adam Bradley 012ed970ba update docs 2018-05-21 11:18:59 -05:00
Adam Bradley 1dce831baf update readme version 2018-05-21 11:17:01 -05:00
Adam Bradley c9a11ad2a3 fix(requests): do not use fetch keepalive due to chrome bug 2018-05-21 11:15:17 -05:00
Adam Bradley 1c88d96cc5 fix(package): fix stencil config script 2018-05-21 10:56:31 -05:00
Manu MA c3bfea5f59 fix(icon): css for custom icons 2018-05-21 10:20:43 -05:00
Kevin Ports 008e2f7b03 Fix broken copy script 2018-05-17 11:25:32 -05:00
Kevin Ports 62d54535fb Update footer links 2018-05-16 16:14:28 -05:00
Adam Bradley 08b5f4bb35 always lowercase mode and name props 2018-05-16 11:32:55 -05:00
Adam Bradley d705685298 publish 4.1.1 docs 2018-05-16 11:15:51 -05:00
Adam Bradley d1ac8c42ee add clean script 2018-05-16 11:15:28 -05:00
Adam Bradley d5ba02861e 4.1.1 2018-05-16 11:09:00 -05:00
Adam Bradley d982853a2e docs update 2018-05-16 11:08:00 -05:00
Adam Bradley fb6d42d137 publish docs update 2018-05-16 11:06:38 -05:00
Adam Bradley 067b24e63c add test for ios/md/mode attributes 2018-05-16 11:05:24 -05:00
Adam Bradley aa0a39cd64 update stencil 2018-05-16 10:56:14 -05:00
Adam Bradley f1671ec6d8 add unit tests 2018-05-16 10:53:38 -05:00
Adam Bradley 778b255877 fix ios/md attributes 2018-05-16 10:53:24 -05:00
Adam Bradley ed67d22986 update links 2018-05-16 10:52:52 -05:00
Adam Bradley 390c852c39 update docs 2018-05-16 10:43:41 -05:00
Adam Bradley 13de75de47 fix designerpack build 2018-05-16 09:43:12 -05:00
Adam Bradley a0a8897378 fix typo 2018-05-16 09:31:55 -05:00
Adam Bradley 380ec72221 update usage 2018-05-15 21:19:50 -05:00
Adam Bradley 9b4a4b954f update version 2018-05-15 21:04:16 -05:00
Adam Bradley 326c9dd81b use code blocks 2018-05-15 21:00:16 -05:00
Adam Bradley d2e6437909 4.1.0 2018-05-15 20:56:24 -05:00
Adam Bradley 9349388777 update usage 2018-05-15 20:55:33 -05:00
Adam Bradley 5747efba6b update custom svg 2018-05-15 20:46:16 -05:00
Adam Bradley c4db612a9d update font icon 2018-05-15 20:41:42 -05:00
Adam Bradley 7df2f7befd update usage 2018-05-15 20:23:20 -05:00
Adam Bradley 13ea94f9b5 update docs build 2018-05-15 17:12:40 -05:00
Adam Bradley 48b2e9b0e1 update scripts 2018-05-15 17:12:22 -05:00
Adam Bradley 8e38047d13 updated usage 2018-05-15 17:11:31 -05:00
Adam Bradley 1c2d8da629 feat(svg): fetch svg files 2018-05-15 17:09:24 -05:00
Adam Bradley 6b805f730d update tsconfig 2018-05-15 17:07:15 -05:00
Adam Bradley a0999bd081 remove plane 2018-05-15 17:06:55 -05:00
Kevin Ports 06f5d659d5 Update usage documentation 2018-05-14 14:00:16 -05:00
Kevin Ports 9a52be8470 Workaround github pages routes h and our history router 2018-05-10 14:50:27 -05:00
Kevin Ports 35140e77df Remove pre-render 2018-05-10 14:37:13 -05:00
Adam Bradley 69915ed0dd prerender homepage 2018-05-10 14:24:36 -05:00
Kevin Ports 6e2105337d Merge branch 'master' of github.com:ionic-team/ionicons 2018-05-10 14:10:35 -05:00
Kevin Ports 956429f1ad Rebuild assets for site 2018-05-10 14:10:29 -05:00
Adam Bradley 14d1506df8 Create CNAME 2018-05-10 14:04:59 -05:00
Kevin Ports 562c3c741c Merge branch 'master' of github.com:ionic-team/ionicons 2018-05-10 14:02:04 -05:00
Kevin Ports 17318fe08b Remove /docs from gitignore 2018-05-10 14:01:23 -05:00
Adam Bradley 49627a90ba 4.0.0 2018-05-10 13:57:04 -05:00
Adam Bradley 578d69a225 update to stencil 0.8.2 2018-05-10 13:46:17 -05:00
Kevin Ports 3e57401ce2 Docs updates (#533)
* New docs landing page design

* Add icon type toggle, new toast bar layout

* Design tweaks, responsive toast bar

* Move toast bar to separate component

* Sticky list headers, sitcky header nav, toggle focus between search inputs on scroll

* Add svg source file zip archiving to build scripts

* Add links to download svgs

* Tweak header bar overlay state threshold

* Get rid of toast bar flashing on first page load

* Cleanup, adding some presentational details

* Add mobile styles

* Add router, scss

* Finish mobile styles, browser testing fixes

* Finish mobile styles, browser testing fixes

* Add version to data.json file, a few style tweaks

* Add 404 page and router switch

* A few route tweaks

* Update stencil, a few fixes

* Add og image, update meta data

* Add Twitter card meta

* Custom search input clear button

* cleanup

* Woops! git was ignoring the src/docs folder

* Add sticky subheaders back in for icon list

* Update OG image

* Update bug in ios trash icon
2018-05-10 13:37:50 -05:00
Adam Bradley 5c1c55ae80 4.0.0-19 2018-04-03 15:53:21 -05:00
Adam Bradley 48f3ee95c8 chore(docs): update docs stencil config 2018-04-03 15:51:20 -05:00
Adam Bradley bac49870cb chore(package): update to stencil 0.7.12 2018-04-03 15:48:47 -05:00
Adam Bradley 6c55058ddb chore(build): rename to release 2018-04-03 15:40:23 -05:00
Cam Wiegert 19785fe226 fix(svgo): remove fill/stroke attributes from svg 2018-04-03 15:39:01 -05:00
Adam Bradley 18077c9d67 4.0.0-18 2018-02-27 14:23:49 -06:00
Adam Bradley 492c353fc2 chore(package): update to stencil 0.6.11 2018-02-27 14:21:39 -06:00
Adam Bradley 515171c79d 4.0.0-17 2018-02-27 12:13:09 -06:00
Adam Bradley 3f40e8029b chore(package): update to stencil 0.6.9 2018-02-27 12:11:32 -06:00
Adam Bradley 76023ce723 4.0.0-16 2018-02-23 10:43:26 -06:00
Adam Bradley 93726208ff chore(package): update to stencil 0.6.7 2018-02-23 10:41:46 -06:00
Adam Bradley 7ad59e353d 4.0.0-15 2018-02-22 10:36:49 -06:00
Adam Bradley 922709e245 chore(package): update to stencil 0.6.6 2018-02-22 10:34:53 -06:00
Adam Bradley bd216dde19 docs(css): do not depend on sass 2018-02-22 10:34:26 -06:00
Brandy Carney b115bd818d 4.0.0-14 2018-02-15 15:46:48 -05:00
Brandy Carney 3704a4cd96 fix(icon): add the colors to icon and size attribute
closes #524
2018-02-15 15:11:08 -05:00
Adam Bradley 5c3c73d018 fix(cheatsheet): update ion-icon component reference 2018-02-14 12:01:55 -06:00
Adam Bradley 6deac15c5b fix(cheatsheet): update cheatsheet copy 2018-02-14 11:04:18 -06:00
Adam Bradley 0ac5b04974 fix(docs): fix build scripts for docs site 2018-02-14 10:43:01 -06:00
Adam Bradley fc21b101f4 4.0.0-13 2018-01-22 11:22:37 -06:00
Adam Bradley c8fc36825c chore(package): update to stencil 0.2.0-0 2018-01-22 11:20:59 -06:00
Adam Bradley 14ce50bf97 refactor(css): move to css only component 2018-01-22 11:16:07 -06:00
Brandy Carney 9b63a6feb7 chore(ionicons): publish 4.0.0-12 2018-01-12 12:59:53 -05:00
Brandy Carney 981eb235b1 fix(icon): update so that ios and md attributes work and uppercase 2018-01-12 12:42:47 -05:00
Adam Bradley 2e6e62cf53 4.0.0-11 2017-12-18 12:23:31 -06:00
Adam Bradley dde00c6bc4 refactor(build): node-sass, copy tasks, stencil updates 2017-12-18 12:22:14 -06:00
Adam Bradley e39ff078f6 4.0.0-10 2017-12-15 12:19:43 -06:00
Adam Bradley 77408f5692 fix(style): use one style mode 2017-12-15 12:18:26 -06:00
Adam Bradley 9372f1fea6 chore(typescript): add tsconfig 2017-12-15 12:11:33 -06:00
Cam Wiegert 323844cfdb 4.0.0-9 2017-12-14 16:56:34 -06:00
Cam Wiegert ea63242596 fix() stop tracking docs/ 2017-12-14 16:41:31 -06:00
Adam Bradley 664476d0b0 Revert "4.0.0-9"
This reverts commit 477f0030c4.
2017-12-14 16:25:52 -06:00
Cam Wiegert 477f0030c4 4.0.0-9 2017-12-14 16:20:07 -06:00
Cam Wiegert 75dc3c43db feat(icon) set fill to currentColor 2017-12-14 16:17:13 -06:00
Adam Bradley 27896db5ac 4.0.0-8 2017-12-14 15:54:20 -06:00
Adam Bradley 1d7104884b docs(fonts): update fonts 2017-12-14 15:53:29 -06:00
Cam Wiegert 44f9dc1811 fix() stop tracking dist/ 2017-12-14 15:46:35 -06:00
Cam Wiegert 3d3cf46c05 feat(icon) add styles for inline use 2017-12-14 15:45:31 -06:00
Adam Bradley 7e7f38836a chore(dist): update dist directory 2017-12-14 15:25:29 -06:00
Adam Bradley 88db44afdd feat(docs): init docs site 2017-12-14 15:24:57 -06:00
Adam Bradley 895c105206 chore(update): update to stencil 0.0.9-1 2017-12-14 15:15:28 -06:00
Adam Bradley d2227c5eae feat(ionicon): ion-icon web component 2017-12-14 15:11:23 -06:00
Adam Bradley 551b297539 feat(scss): icon font scss updates 2017-12-14 15:10:30 -06:00
Adam Bradley 9d629213d5 feat(build): updated build scripts 2017-12-14 15:08:08 -06:00
Ben 04978c04e2 feat(icons): v4 icon update 2017-12-14 14:53:28 -06:00
Adam Bradley 6811b241e9 Merge pull request #335 from ReadmeCritic/master
Update README URLs based on HTTP redirects
2016-01-11 14:55:16 -06:00
Adam Bradley a70f28bc9f Merge pull request #342 from fjaguero/patch-2
Update copyright year
2016-01-11 14:54:09 -06:00
Fernando Agüero 27a9c6b31c Update copyright year 2016-01-11 16:51:48 +01:00
ReadmeCritic 57a7bf240f Update README URLs based on HTTP redirects 2015-12-07 18:20:13 -08:00
2910 changed files with 224046 additions and 47925 deletions
+17 -4
View File
@@ -1,4 +1,17 @@
_site
.sass-cache
*.scssc
*.swp
*~
*.sw[mnpcod]
*.log
*.lock
*.tmp
*.tmp.*
log.txt
*.sublime-project
*.sublime-workspace
.idea/
.sass-cache/
.versions/
.vscode/
node_modules/
tmp/
dist/
.DS_Store
+1
View File
@@ -0,0 +1 @@
package-lock=false
+5
View File
@@ -0,0 +1,5 @@
plugins:
- removeAttrs:
attrs:
- 'fill'
- 'stroke'
+1 -1
View File
@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2014 Drifty (http://drifty.com/)
Copyright (c) 2015-present Ionic (http://ionic.io/)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
-31
View File
@@ -1,31 +0,0 @@
{
"ignore": [
"**/.*",
"builder",
"node_modules",
"bower_components",
"test",
"tests"
],
"version": "2.0.1",
"name": "Ionicons",
"license": "MIT",
"authors": [
"Ben Sperry <ben@drifty.com>",
"Adam Bradley <adam@drifty.com>",
"Max Lynch <max@drifty.com>"
],
"keywords": [
"fonts",
"icon font",
"icons",
"ionic",
"web font"
],
"main": [
"css/ionicons.css",
"fonts/*"
],
"homepage": "https://github.com/driftyco/ionicons",
"description": "Ionicons - free and beautiful icons from the creators of Ionic Framework"
}
File diff suppressed because it is too large Load Diff
-38
View File
@@ -1,38 +0,0 @@
<div class="icon-row">
<div class="preview-icon"><span class="step size-12">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-14">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-16">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-18">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-21">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-24">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-32">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-48">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-64">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-96">
<i class="icon {{prefix}}{{name}}"></i>
</span>
</div>
<div class="preview-scale"><span class="step">12</span><span class="step">14</span><span class="step">16</span><span class="step">18</span><span class="step">21</span><span class="step">24</span><span class="step">32</span><span class="step">48</span><span class="step">64</span><span class="step">96</span></div>
<div class="usage">
<label>Classname:</label>
<input class="name" type="text" readonly="readonly" onClick="this.select();" value="{{prefix}}{{name}}" />
<label>Selectable:</label>
<span class="ion">{{html_code}}</span>
<label>Escaped HTML:</label>
<input class="html" type="text" readonly="readonly" onClick="this.select();" value="{{escaped_html_code}}" />
<label>CSS Content:</label>
<input class="css" type="text" readonly="readonly" onClick="this.select();" value="{{css_code}}" />
</div>
</div>
-156
View File
@@ -1,156 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>{{font_name}} v{{font_version}} Cheatsheet</title>
<style>
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
body {
background: #fff;
color: #444;
font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a, a:visited {
color: #888;
text-decoration: underline;
}
a:hover, a:focus { color: #000; }
header {
border-bottom: 2px solid #ddd;
margin-bottom: 20px;
overflow: hidden;
padding: 20px 0;
}
header h1 {
color: #888;
float: left;
font-size: 36px;
font-weight: 300;
}
header a {
float: right;
font-size: 14px;
}
.container {
margin: 0 auto;
max-width: 1200px;
min-width: 960px;
padding: 0 20px;
width: 95%;
}
.icon-row {
border-bottom: 1px dotted #ccc;
padding: 10px 0 20px;
margin-bottom: 20px;
}
.ion {
-webkit-touch-callout: text;
-webkit-user-select: text;
-khtml-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
.preview-icon { vertical-align: bottom; }
.preview-scale {
color: #888;
font-size: 12px;
margin-top: 5px;
}
.step {
display: inline-block;
line-height: 1;
position: relative;
width: 10%;
}
.step i {
-webkit-transition: opacity .3s;
-moz-transition: opacity .3s;
-ms-transition: opacity .3s;
-o-transition: opacity .3s;
transition: opacity .3s;
}
.step:hover i { opacity: .3; }
.size-12 { font-size: 12px; }
.size-14 { font-size: 14px; }
.size-16 { font-size: 16px; }
.size-18 { font-size: 18px; }
.size-21 { font-size: 21px; }
.size-24 { font-size: 24px; }
.size-32 { font-size: 32px; }
.size-48 { font-size: 48px; }
.size-64 { font-size: 64px; }
.size-96 { font-size: 96px; }
.usage { margin-top: 10px; }
.usage input {
font-family: monospace;
margin-right: 3px;
padding: 2px 5px;
text-align: center;
-webkit-touch-callout: text;
-webkit-user-select: text;
-khtml-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
.usage label {
font-size: 12px;
text-align: right;
padding: 0 3px 0 60px;
}
.usage label:first-child { padding-left: 0; }
.usage .name { width: 180px; }
.usage .html { width: 80px; }
.usage .css { width: 80px; }
footer {
color: #888;
font-size: 12px;
padding: 20px 0;
}
</style>
<link href="css/ionicons.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">
<header>
<h1>{{font_name}} v{{font_version}} Cheatsheet, {{icon_count}} icons:</h1>
<p><a href="http://ionicons.com/">Ionicons Homepage</a></p>
</header>
<div class="content">
{{content}}
</div>
<footer>
Made with love by the <a href="http://ionicframework.com/">Ionic Framework</a>
</footer>
</div>
</body>
</html>
-318
View File
@@ -1,318 +0,0 @@
from subprocess import call
import os
import json
BUILDER_PATH = os.path.dirname(os.path.abspath(__file__))
ROOT_PATH = os.path.join(BUILDER_PATH, '..')
FONTS_FOLDER_PATH = os.path.join(ROOT_PATH, 'fonts')
CSS_FOLDER_PATH = os.path.join(ROOT_PATH, 'css')
SCSS_FOLDER_PATH = os.path.join(ROOT_PATH, 'scss')
LESS_FOLDER_PATH = os.path.join(ROOT_PATH, 'less')
def main():
generate_font_files()
data = get_build_data()
rename_svg_glyph_names(data)
generate_scss(data)
generate_less(data)
generate_cheatsheet(data)
generate_component_json(data)
generate_composer_json(data)
generate_bower_json(data)
def generate_font_files():
print "Generate Fonts"
cmd = "fontforge -script %s/scripts/generate_font.py" % (BUILDER_PATH)
call(cmd, shell=True)
def rename_svg_glyph_names(data):
# hacky and slow (but safe) way to rename glyph-name attributes
svg_path = os.path.join(FONTS_FOLDER_PATH, 'ionicons.svg')
svg_file = open(svg_path, 'r+')
svg_text = svg_file.read()
svg_file.seek(0)
for ionicon in data['icons']:
# uniF2CA
org_name = 'uni%s' % (ionicon['code'].replace('0x', '').upper())
ion_name = 'ion-%s' % (ionicon['name'])
svg_text = svg_text.replace(org_name, ion_name)
svg_file.write(svg_text)
svg_file.close()
def generate_less(data):
print "Generate LESS"
font_name = data['name']
font_version = data['version']
css_prefix = data['prefix']
variables_file_path = os.path.join(LESS_FOLDER_PATH, '_ionicons-variables.less')
icons_file_path = os.path.join(LESS_FOLDER_PATH, '_ionicons-icons.less')
d = []
d.append('/*!');
d.append('Ionicons, v%s' % (font_version) );
d.append('Created by Ben Sperry for the Ionic Framework, http://ionicons.com/');
d.append('https://twitter.com/benjsperry https://twitter.com/ionicframework');
d.append('MIT License: https://github.com/driftyco/ionicons');
d.append('*/');
d.append('// Ionicons Variables')
d.append('// --------------------------\n')
d.append('@ionicons-font-path: "../fonts";')
d.append('@ionicons-font-family: "%s";' % (font_name) )
d.append('@ionicons-version: "%s";' % (font_version) )
d.append('@ionicons-prefix: %s;' % (css_prefix) )
d.append('')
for ionicon in data['icons']:
chr_code = ionicon['code'].replace('0x', '\\')
d.append('@ionicon-var-%s: "%s";' % (ionicon['name'], chr_code) )
f = open(variables_file_path, 'w')
f.write( '\n'.join(d) )
f.close()
d = []
d.append('// Ionicons Icons')
d.append('// --------------------------\n')
group = [ '.%s' % (data['name'].lower()) ]
for ionicon in data['icons']:
group.append('.@{ionicons-prefix}%s:before' % (ionicon['name']) )
d.append( ',\n'.join(group) )
d.append('{')
d.append(' &:extend(.ion);')
d.append('}')
for ionicon in data['icons']:
chr_code = ionicon['code'].replace('0x', '\\')
d.append('.@{ionicons-prefix}%s:before { content: @ionicon-var-%s; }' % (ionicon['name'], ionicon['name']) )
f = open(icons_file_path, 'w')
f.write( '\n'.join(d) )
f.close()
def generate_scss(data):
print "Generate SCSS"
font_name = data['name']
font_version = data['version']
css_prefix = data['prefix']
variables_file_path = os.path.join(SCSS_FOLDER_PATH, '_ionicons-variables.scss')
icons_file_path = os.path.join(SCSS_FOLDER_PATH, '_ionicons-icons.scss')
d = []
d.append('// Ionicons Variables')
d.append('// --------------------------\n')
d.append('$ionicons-font-path: "../fonts" !default;')
d.append('$ionicons-font-family: "%s" !default;' % (font_name) )
d.append('$ionicons-version: "%s" !default;' % (font_version) )
d.append('$ionicons-prefix: %s !default;' % (css_prefix) )
d.append('')
for ionicon in data['icons']:
chr_code = ionicon['code'].replace('0x', '\\')
d.append('$ionicon-var-%s: "%s";' % (ionicon['name'], chr_code) )
f = open(variables_file_path, 'w')
f.write( '\n'.join(d) )
f.close()
d = []
d.append('// Ionicons Icons')
d.append('// --------------------------\n')
group = [ '.%s' % (data['name'].lower()) ]
for ionicon in data['icons']:
group.append('.#{$ionicons-prefix}%s:before' % (ionicon['name']) )
d.append( ',\n'.join(group) )
d.append('{')
d.append(' @extend .ion;')
d.append('}')
for ionicon in data['icons']:
chr_code = ionicon['code'].replace('0x', '\\')
d.append('.#{$ionicons-prefix}%s:before { content: $ionicon-var-%s; }' % (ionicon['name'], ionicon['name']) )
f = open(icons_file_path, 'w')
f.write( '\n'.join(d) )
f.close()
generate_css_from_scss(data)
def generate_css_from_scss(data):
print "Generate CSS From SCSS"
scss_file_path = os.path.join(SCSS_FOLDER_PATH, 'ionicons.scss')
css_file_path = os.path.join(CSS_FOLDER_PATH, 'ionicons.css')
css_min_file_path = os.path.join(CSS_FOLDER_PATH, 'ionicons.min.css')
cmd = "sass %s %s --style compact" % (scss_file_path, css_file_path)
call(cmd, shell=True)
print "Generate Minified CSS From SCSS"
cmd = "sass %s %s --style compressed" % (scss_file_path, css_min_file_path)
call(cmd, shell=True)
def generate_cheatsheet(data):
print "Generate Cheatsheet"
cheatsheet_file_path = os.path.join(ROOT_PATH, 'cheatsheet.html')
template_path = os.path.join(BUILDER_PATH, 'cheatsheet', 'template.html')
icon_row_path = os.path.join(BUILDER_PATH, 'cheatsheet', 'icon-row.html')
f = open(template_path, 'r')
template_html = f.read()
f.close()
f = open(icon_row_path, 'r')
icon_row_template = f.read()
f.close()
content = []
for ionicon in data['icons']:
css_code = ionicon['code'].replace('0x', '\\')
escaped_html_code = ionicon['code'].replace('0x', '&amp;#x') + ';'
html_code = ionicon['code'].replace('0x', '&#x') + ';'
item_row = icon_row_template
item_row = item_row.replace('{{name}}', ionicon['name'])
item_row = item_row.replace('{{prefix}}', data['prefix'])
item_row = item_row.replace('{{css_code}}', css_code)
item_row = item_row.replace('{{escaped_html_code}}', escaped_html_code)
item_row = item_row.replace('{{html_code}}', html_code)
content.append(item_row)
template_html = template_html.replace("{{font_name}}", data["name"])
template_html = template_html.replace("{{font_version}}", data["version"])
template_html = template_html.replace("{{icon_count}}", str(len(data["icons"])) )
template_html = template_html.replace("{{content}}", '\n'.join(content) )
f = open(cheatsheet_file_path, 'w')
f.write(template_html)
f.close()
def generate_component_json(data):
print "Generate component.json"
d = {
"name": data['name'],
"repo": "driftyco/ionicons",
"description": "The premium icon font for Ionic Framework.",
"version": data['version'],
"keywords": [],
"dependencies": {},
"development": {},
"license": "MIT",
"styles": [
"css/%s.css" % (data['name'].lower())
],
"fonts": [
"fonts/%s.eot" % (data['name'].lower()),
"fonts/%s.svg" % (data['name'].lower()),
"fonts/%s.ttf" % (data['name'].lower()),
"fonts/%s.woff" % (data['name'].lower())
]
}
txt = json.dumps(d, indent=4, separators=(',', ': '))
component_file_path = os.path.join(ROOT_PATH, 'component.json')
f = open(component_file_path, 'w')
f.write(txt)
f.close()
def generate_composer_json(data):
print "Generate composer.json"
d = {
"name": "driftyco/ionicons",
"description": "The premium icon font for Ionic Framework.",
"keywords": [ "fonts", "icon font", "icons", "ionic", "web font"],
"homepage": "http://ionicons.com/",
"authors": [
{
"name": "Ben Sperry",
"email": "ben@drifty.com",
"role": "Designer",
"homepage": "https://twitter.com/benjsperry"
},
{
"name": "Adam Bradley",
"email": "adam@drifty.com",
"role": "Developer",
"homepage": "https://twitter.com/adamdbradley"
},
{
"name": "Max Lynch",
"email": "max@drifty.com",
"role": "Developer",
"homepage": "https://twitter.com/maxlynch"
}
],
"extra": {},
"license": [ "MIT" ]
}
txt = json.dumps(d, indent=4, separators=(',', ': '))
composer_file_path = os.path.join(ROOT_PATH, 'composer.json')
f = open(composer_file_path, 'w')
f.write(txt)
f.close()
def generate_bower_json(data):
print "Generate bower.json"
d = {
"name": data['name'],
"version": data['version'],
"homepage": "https://github.com/driftyco/ionicons",
"authors": [
"Ben Sperry <ben@drifty.com>",
"Adam Bradley <adam@drifty.com>",
"Max Lynch <max@drifty.com>"
],
"description": "Ionicons - free and beautiful icons from the creators of Ionic Framework",
"main": [
"css/%s.css" % (data['name'].lower()),
"fonts/*"
],
"keywords": [ "fonts", "icon font", "icons", "ionic", "web font"],
"license": "MIT",
"ignore": [
"**/.*",
"builder",
"node_modules",
"bower_components",
"test",
"tests"
]
}
txt = json.dumps(d, indent=4, separators=(',', ': '))
bower_file_path = os.path.join(ROOT_PATH, 'bower.json')
f = open(bower_file_path, 'w')
f.write(txt)
f.close()
def get_build_data():
build_data_path = os.path.join(BUILDER_PATH, 'build_data.json')
f = open(build_data_path, 'r')
data = json.loads(f.read())
f.close()
return data
if __name__ == "__main__":
main()
File diff suppressed because it is too large Load Diff
-173
View File
@@ -1,173 +0,0 @@
# Font generation script from FontCustom
# https://github.com/FontCustom/fontcustom/
# http://fontcustom.com/
import fontforge
import os
import md5
import subprocess
import tempfile
import json
import copy
SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__))
INPUT_SVG_DIR = os.path.join(SCRIPT_PATH, '..', '..', 'src')
OUTPUT_FONT_DIR = os.path.join(SCRIPT_PATH, '..', '..', 'fonts')
MANIFEST_PATH = os.path.join(SCRIPT_PATH, '..', 'manifest.json')
BUILD_DATA_PATH = os.path.join(SCRIPT_PATH, '..', 'build_data.json')
AUTO_WIDTH = True
KERNING = 15
cp = 0xf100
m = md5.new()
f = fontforge.font()
f.encoding = 'UnicodeFull'
f.design_size = 16
f.em = 512
f.ascent = 448
f.descent = 64
manifest_file = open(MANIFEST_PATH, 'r')
manifest_data = json.loads(manifest_file.read())
manifest_file.close()
print "Load Manifest, Icons: %s" % ( len(manifest_data['icons']) )
build_data = copy.deepcopy(manifest_data)
build_data['icons'] = []
font_name = manifest_data['name']
m.update(font_name + ';')
m.update(manifest_data['prefix'] + ';')
for dirname, dirnames, filenames in os.walk(INPUT_SVG_DIR):
for filename in filenames:
name, ext = os.path.splitext(filename)
filePath = os.path.join(dirname, filename)
size = os.path.getsize(filePath)
if ext in ['.svg', '.eps']:
# see if this file is already in the manifest
chr_code = None
for ionicon in manifest_data['icons']:
if ionicon['name'] == name:
chr_code = ionicon['code']
break
if chr_code is None:
# this is a new src icon
print 'New Icon: \n - %s' % (name)
while True:
chr_code = '0x%x' % (cp)
already_exists = False
for ionicon in manifest_data['icons']:
if ionicon.get('code') == chr_code:
already_exists = True
cp += 1
chr_code = '0x%x' % (cp)
continue
if not already_exists:
break
print ' - %s' % chr_code
manifest_data['icons'].append({
'name': name,
'code': chr_code
})
build_data['icons'].append({
'name': name,
'code': chr_code
})
if ext in ['.svg']:
# hack removal of <switch> </switch> tags
svgfile = open(filePath, 'r+')
tmpsvgfile = tempfile.NamedTemporaryFile(suffix=ext, delete=False)
svgtext = svgfile.read()
svgfile.seek(0)
# replace the <switch> </switch> tags with 'nothing'
svgtext = svgtext.replace('<switch>', '')
svgtext = svgtext.replace('</switch>', '')
tmpsvgfile.file.write(svgtext)
svgfile.close()
tmpsvgfile.file.close()
filePath = tmpsvgfile.name
# end hack
m.update(name + str(size) + ';')
glyph = f.createChar( int(chr_code, 16) )
glyph.importOutlines(filePath)
# if we created a temporary file, let's clean it up
if tmpsvgfile:
os.unlink(tmpsvgfile.name)
# set glyph size explicitly or automatically depending on autowidth
if AUTO_WIDTH:
glyph.left_side_bearing = glyph.right_side_bearing = 0
glyph.round()
# resize glyphs if autowidth is enabled
if AUTO_WIDTH:
f.autoWidth(0, 0, 512)
fontfile = '%s/ionicons' % (OUTPUT_FONT_DIR)
build_hash = m.hexdigest()
if build_hash == manifest_data.get('build_hash'):
print "Source files unchanged, did not rebuild fonts"
else:
manifest_data['build_hash'] = build_hash
f.fontname = font_name
f.familyname = font_name
f.fullname = font_name
f.generate(fontfile + '.ttf')
f.generate(fontfile + '.svg')
# Fix SVG header for webkit
# from: https://github.com/fontello/font-builder/blob/master/bin/fontconvert.py
svgfile = open(fontfile + '.svg', 'r+')
svgtext = svgfile.read()
svgfile.seek(0)
svgfile.write(svgtext.replace('''<svg>''', '''<svg xmlns="http://www.w3.org/2000/svg">'''))
svgfile.close()
scriptPath = os.path.dirname(os.path.realpath(__file__))
try:
subprocess.Popen([scriptPath + '/sfnt2woff', fontfile + '.ttf'], stdout=subprocess.PIPE)
except OSError:
# If the local version of sfnt2woff fails (i.e., on Linux), try to use the
# global version. This allows us to avoid forcing OS X users to compile
# sfnt2woff from source, simplifying install.
subprocess.call(['sfnt2woff', fontfile + '.ttf'])
# eotlitetool.py script to generate IE7-compatible .eot fonts
subprocess.call('python ' + scriptPath + '/eotlitetool.py ' + fontfile + '.ttf -o ' + fontfile + '.eot', shell=True)
subprocess.call('mv ' + fontfile + '.eotlite ' + fontfile + '.eot', shell=True)
# Hint the TTF file
subprocess.call('ttfautohint -s -f -n ' + fontfile + '.ttf ' + fontfile + '-hinted.ttf > /dev/null 2>&1 && mv ' + fontfile + '-hinted.ttf ' + fontfile + '.ttf', shell=True)
manifest_data['icons'] = sorted(manifest_data['icons'], key=lambda k: k['name'])
build_data['icons'] = sorted(build_data['icons'], key=lambda k: k['name'])
print "Save Manifest, Icons: %s" % ( len(manifest_data['icons']) )
f = open(MANIFEST_PATH, 'w')
f.write( json.dumps(manifest_data, indent=2, separators=(',', ': ')) )
f.close()
print "Save Build, Icons: %s" % ( len(build_data['icons']) )
f = open(BUILD_DATA_PATH, 'w')
f.write( json.dumps(build_data, indent=2, separators=(',', ': ')) )
f.close()
-28009
View File
File diff suppressed because it is too large Load Diff
-19
View File
@@ -1,19 +0,0 @@
{
"repo": "driftyco/ionicons",
"development": {},
"version": "2.0.1",
"styles": [
"css/ionicons.css"
],
"name": "Ionicons",
"dependencies": {},
"keywords": [],
"license": "MIT",
"fonts": [
"fonts/ionicons.eot",
"fonts/ionicons.svg",
"fonts/ionicons.ttf",
"fonts/ionicons.woff"
],
"description": "The premium icon font for Ionic Framework."
}
-36
View File
@@ -1,36 +0,0 @@
{
"name": "driftyco/ionicons",
"license": [
"MIT"
],
"extra": {},
"authors": [
{
"homepage": "https://twitter.com/benjsperry",
"role": "Designer",
"name": "Ben Sperry",
"email": "ben@drifty.com"
},
{
"homepage": "https://twitter.com/adamdbradley",
"role": "Developer",
"name": "Adam Bradley",
"email": "adam@drifty.com"
},
{
"homepage": "https://twitter.com/maxlynch",
"role": "Developer",
"name": "Max Lynch",
"email": "max@drifty.com"
}
],
"keywords": [
"fonts",
"icon font",
"icons",
"ionic",
"web font"
],
"homepage": "http://ionicons.com/",
"description": "The premium icon font for Ionic Framework."
}
+1
View File
@@ -0,0 +1 @@
ionicons.com
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

+435
View File
@@ -0,0 +1,435 @@
:root {
--color-mirage: #171c24;
--color-shark: #272a2f;
--color-oslo-gray: #868b95;
--color-pale-sky: #697384;
--color-melrose: #AEC6FF;
--color-melrose-dark: #4c5873;
--color-gull-gray: #a1aab8;
--color-bright-gray: #363e49;
--color-bright-gray-light: #3d4650;
--color-heather: #bec7d5;
--color-catskill-white: #ecf0f6;
--color-dodger-blue: #3880ff;
--color-dodger-blue-light: #5A96FF;
--color-periwinkle: #c6dbff;
--color-cadet-blue: #abb2bf;
--color-white-lilac: #f8f8fc;
--easeOutExpo: cubic-bezier(0.19, 1, 0.22, 1);
}
/* Eina Bold */
@font-face {
font-family: 'Eina';
src: url('/assets/fonts/34E6DB_F_0.eot');
src: url('/assets/fonts/34E6DB_F_0.eot?#iefix') format('embedded-opentype'),
url('/assets/fonts/34E6DB_F_0.woff2') format('woff2'),
url('/assets/fonts/34E6DB_F_0.woff') format('woff'),
url('/assets/fonts/34E6DB_F_0.ttf') format('truetype');
font-weight: 700;
unicode-range: U+000-5FF;
}
/* Eina Semibold */
@font-face {
font-family: 'Eina';
src: url('/assets/fonts/34E6DB_C_0.eot');
src: url('/assets/fonts/34E6DB_C_0.eot?#iefix') format('embedded-opentype'),
url('/assets/fonts/34E6DB_C_0.woff2') format('woff2'),
url('/assets/fonts/34E6DB_C_0.woff') format('woff'),
url('/assets/fonts/34E6DB_C_0.ttf') format('truetype');
font-weight: 600;
unicode-range: U+000-5FF;
}
/* Eina Regular */
@font-face {
font-family: 'Eina';
src: url('/assets/fonts/34E6DB_D_0.eot');
src: url('/assets/fonts/34E6DB_D_0.eot?#iefix') format('embedded-opentype'),
url('/assets/fonts/34E6DB_D_0.woff2') format('woff2'),
url('/assets/fonts/34E6DB_D_0.woff') format('woff'),
url('/assets/fonts/34E6DB_D_0.ttf') format('truetype');
font-weight: 400;
unicode-range: U+000-5FF;
}
html,
body {
height: 100%;
margin: 0;
padding: 0;
font-family: 'Eina';
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
letter-spacing: -0.015em;
color: var(--color-shark);
}
body.no-scroll {
overflow: hidden;
}
main {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
min-height: 100%;
padding-top: 110px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
main > .wrapper {
-webkit-box-flex: 1;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
}
stencil-router-scroll-top > div {
height: 100%;
}
@media screen and (max-width: 460px) {
main {
padding-top: 95px;
}
}
.content {
max-width: 650px;
margin: 0 auto;
}
.container,
.container--small {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0 auto;
padding-left: 30px;
padding-right: 30px;
}
.container {
max-width: 1140px;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.container--small {
max-width: 650px;
}
h1 {
font-size: 36px;
line-height: 44px;
font-weight: 700;
letter-spacing: -0.03em;
color: var(--color-mirage);
}
h2 {
font-size: 24px;
margin-top: 60px;
margin-bottom: 0;
letter-spacing: -0.03em;
color: var(--color-shark);
}
h3 {
font-size: 18px;
line-height: 28px;
margin-top: 40px;
margin-bottom: 0;
letter-spacing: -0.03em;
color: var(--color-shark);
}
h4 {
font-size: 16px;
line-height: 16px;
font-weight: 600;
color: var(--color-gull-gray);
}
h6 {
font-size: 10px;
line-height: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-heather);
margin: 0;
}
p {
color: #3c4b62;
font-size: 14px;
line-height: 28px;
margin-top: 10px;
letter-spacing: 0;
}
p a {
-webkit-transition: border-color 0.3s;
transition: border-color 0.3s;
text-decoration: none;
color: var(--color-dodger-blue);
border-bottom: 1px solid transparent;
}
p a:hover {
border-bottom-color: var(--color-dodger-blue-light);
}
p.lead {
font-size: 18px;
line-height: 32px;
font-weight: 400;
}
.btn {
-webkit-transition: .3s box-shadow,.3s background;
transition: .3s box-shadow,.3s background;
background-color: var(--color-catskill-white);
color: var(--color-pale-sky);
font-size: 13px;
line-height: 13px;
font-weight: 600;
padding: 9px 10px;
border-radius: 4px;
text-decoration: none;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
cursor: pointer;
}
.btn:hover {
background-color: #e3e9f3;
}
.btn--gray {
background: var(--color-bright-gray);
color: var(--color-melrose);
}
.btn--gray:hover {
background-color: var(--color-bright-gray-light);
}
.btn--large {
font-size: 14px;
padding: 13px 15px;
}
.btn--small {
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.btn--small .ion {
font-size: 14px;
margin-right: 4px;
}
.btn--icon {
width: 36px;
height: 32px;
padding: 0;
pointer-events: none;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
color: #fff;
}
.btn--icon .ion {
font-size: 26px;
margin: 0;
}
.btn-group {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.btn-group .btn + .btn {
margin-left: 1px;
}
.btn-group .btn:first-child {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.btn-group .btn:last-child {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
@media screen and (max-width: 460px) {
h3 {
font-size: 16px;
line-height: 28px;
}
.container {
padding-left: 15px;
padding-right: 15px;
}
}
@media screen and (max-width: 768px) {
.container {
padding-left: 15px;
padding-right: 15px;
}
}
.hljs-comment,
.hljs-quote {
color: #998;
font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
color: #333;
}
.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
color: #008080;
}
.hljs-string,
.hljs-doctag {
color: #d14;
}
.hljs-title,
.hljs-section,
.hljs-selector-id {
color: #900;
}
.hljs-subst {
font-weight: normal;
}
.hljs-type,
.hljs-class .hljs-title {
color: #458;
}
.hljs-tag,
.hljs-name,
.hljs-attribute {
color: #000080;
font-weight: normal;
}
.hljs-regexp,
.hljs-link {
color: #009926;
}
.hljs-symbol,
.hljs-bullet {
color: #990073;
}
.hljs-built_in,
.hljs-builtin-name {
color: #0086b3;
}
.hljs-meta {
color: #999;
}
.hljs-deletion {
background: #fdd;
}
.hljs-addition {
background: #dfd;
}
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}
code,
pre {
font-family: 'Roboto Mono', monospace;
}
code {
background-color: var(--color-bright-gray);
color: #97a1b6;
padding: 8px 12px;
border-radius: 5px;
}
code .yellow {
color: #ffc866;
}
code .orange {
color: #e48d26;
}
code .green {
color: #a4dd5b;
}
p code {
font-size: 13px;
font-weight: 500;
padding: 2px 5px;
color: #f06332;
background-color: #f5f7fa;
}
.styled-code {
-webkit-box-sizing: border-box;
box-sizing: border-box;
background-color: #f5f7fa;
padding: 16px 14px;
width: 100%;
border-radius: 5px;
display: block;
overflow-x: auto;
margin: 18px 0px;
}
.styled-code + .styled-code {
margin-top: 12px;
}
pre {
margin: 0;
font-size: 14px;
line-height: 20px;
color: var(--color-pale-sky);
}
+139
View File
@@ -0,0 +1,139 @@
/*!
* Built with http://stenciljs.com
* 2018-09-18T20:02:31
*/
(function(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCoreSsr, appCorePolyfilled, hydratedCssClass, components) {
function init(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCorePolyfilled, hydratedCssClass, components, HTMLElementPrototype, App, x, y, scriptElm) {
// create global namespace if it doesn't already exist
App = win[namespace] = win[namespace] || {};
App.components = components;
y = components.map(function (c) { return c[0]; });
if (y.length) {
// auto hide components until they been fully hydrated
// reusing the "x" and "i" variables from the args for funzies
x = doc.createElement('style');
x.innerHTML = y.join() + '{visibility:hidden}.' + hydratedCssClass + '{visibility:inherit}';
x.setAttribute('data-styles', '');
y = doc.head.querySelector('meta[charset]');
doc.head.insertBefore(x, y ? y.nextSibling : doc.head.firstChild);
}
createComponentOnReadyPrototype(win, namespace, HTMLElementPrototype);
resourcesUrl = resourcesUrl || App.resourcesUrl;
// figure out the script element for this current script
y = doc.querySelectorAll('script');
for (x = y.length - 1; x >= 0; x--) {
scriptElm = y[x];
if (scriptElm.src || scriptElm.hasAttribute('data-resources-url')) {
break;
}
}
// get the resource path attribute on this script element
y = scriptElm.getAttribute('data-resources-url');
if (!resourcesUrl && y) {
// the script element has a data-resources-url attribute, always use that
resourcesUrl = y;
}
if (!resourcesUrl && scriptElm.src) {
// we don't have an exact resourcesUrl, so let's
// figure it out relative to this script's src and app's filesystem namespace
y = scriptElm.src.split('/').slice(0, -1);
resourcesUrl = (y.join('/')) + (y.length ? '/' : '') + fsNamespace + '/';
}
// request the core this browser needs
// test for native support of custom elements and fetch
// if either of those are not supported, then use the core w/ polyfills
// also check if the page was build with ssr or not
x = doc.createElement('script');
if (usePolyfills(win, win.location, x, 'import("")')) {
// requires the es5/polyfilled core
x.src = resourcesUrl + appCorePolyfilled;
}
else {
// let's do this!
x.src = resourcesUrl + appCore;
x.setAttribute('type', 'module');
x.setAttribute('crossorigin', true);
}
x.setAttribute('data-resources-url', resourcesUrl);
x.setAttribute('data-namespace', fsNamespace);
doc.head.appendChild(x);
}
function usePolyfills(win, location, scriptElm, dynamicImportTest) {
// fyi, dev mode has verbose if/return statements
// but it minifies to a nice 'lil one-liner ;)
if (location.search.indexOf('core=esm') > 0) {
// force esm build
return false;
}
if ((location.search.indexOf('core=es5') > 0) ||
(location.protocol === 'file:') ||
(!(win.customElements && win.customElements.define)) ||
(!win.fetch) ||
(!(win.CSS && win.CSS.supports && win.CSS.supports('color', 'var(--c)'))) ||
(!('noModule' in scriptElm))) {
// es5 build w/ polyfills
return true;
}
// final test to see if this browser support dynamic imports
return doesNotSupportsDynamicImports(dynamicImportTest);
}
function doesNotSupportsDynamicImports(dynamicImportTest) {
try {
new Function(dynamicImportTest);
return false;
}
catch (e) { }
return true;
}
function createComponentOnReadyPrototype(win, namespace, HTMLElementPrototype) {
(win['s-apps'] = win['s-apps'] || []).push(namespace);
if (!HTMLElementPrototype.componentOnReady) {
HTMLElementPrototype.componentOnReady = function componentOnReady() {
/*tslint:disable*/
var elm = this;
function executor(resolve) {
if (elm.nodeName.indexOf('-') > 0) {
// window hasn't loaded yet and there's a
// good chance this is a custom element
var apps = win['s-apps'];
var appsReady = 0;
// loop through all the app namespaces
for (var i = 0; i < apps.length; i++) {
// see if this app has "componentOnReady" setup
if (win[apps[i]].componentOnReady) {
// this app's core has loaded call its "componentOnReady"
if (win[apps[i]].componentOnReady(elm, resolve)) {
// this component does belong to this app and would
// have fired off the resolve fn
// let's stop here, we're good
return;
}
appsReady++;
}
}
if (appsReady < apps.length) {
// not all apps are ready yet
// add it to the queue to be figured out when they are
(win['s-cr'] = win['s-cr'] || []).push([elm, resolve]);
return;
}
}
// not a recognized app component
resolve(null);
}
// callback wasn't provided, let's return a promise
if (win.Promise) {
// use native/polyfilled promise
return new win.Promise(executor);
}
// promise may not have been polyfilled yet
return { then: executor };
};
}
}
init(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCoreSsr, appCorePolyfilled, hydratedCssClass, components);
})(window, document, "DocsSite","docssite",0,"docssite.core.js","docssite.core.pf.js","hydrated",[["footer-bar","footer-bar",1],["header-bar","header-bar",1,[["el",64],["isMobileMenuShown",16],["isSearchVisible",1,0,"is-search-visible",4],["isSticky",16],["query",1,0,1,2],["version",1,0,1,2]],0,[["window:scroll","handleScroll",0,1],["window:resize","handleResize",0,1]]],["icon-list","icon-list",1,[["data",1,0,1,1],["el",64],["isHeaderSearchVisible",16],["query",1,0,1,2],["selectedIcon",16],["selectedIconType",16]],0,[["body:keyup","escListener"],["body:click","handleBodyClicked"],["clearToast","handleClearToast"],["window:scroll","handleScroll",0,1]]],["icon-search","icon-search",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",16],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","header-bar",1,[["data",16],["isHeaderSearchVisible",16],["query",16]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","icon-list",1,[["data",1,0,1,1],["el",64],["query",1,0,1,2]]],["notfound-page","notfound-page",1],["stencil-route","header-bar",1,[["component",1,0,1,2],["componentProps",1],["componentUpdated",1],["el",64],["exact",1,0,1,4],["group",1,0,1,2],["history",1],["historyType",1,0,"history-type",2],["location",1],["match",2],["routeRender",1],["routeViewsUpdated",1],["scrollTopOffset",1,0,"scroll-top-offset",8],["url",1,0,1,2]]],["stencil-route-link","stencil-route-link",0,[["activeClass",1,0,"active-class",2],["anchorClass",1,0,"anchor-class",2],["anchorId",1,0,"anchor-id",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["ariaHaspopup",1,0,"aria-haspopup",2],["ariaLabel",1,0,"aria-label",2],["ariaPosinset",1,0,"aria-posinset",2],["ariaSetsize",1,0,"aria-setsize",8],["custom",1,0,1,2],["el",64],["exact",1,0,1,4],["history",1],["location",1],["match",16],["root",1,0,1,2],["strict",1,0,1,4],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-route-switch","header-bar",0,[["el",64],["group",1,0,1,2],["location",1],["queue",4,0,0,0,"queue"],["routeViewsUpdated",1],["scrollTopOffset",1,0,"scroll-top-offset",8]]],["stencil-router","header-bar",0,[["history",16],["historyType",1,0,"history-type",2],["isServer",4,0,0,0,"isServer"],["location",16],["queue",4,0,0,0,"queue"],["root",1,0,1,2],["scrollTopOffset",1,0,"scroll-top-offset",8],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","icon-list",1,[["el",64],["hadIconOnce",16],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",16],["touchEndY",16],["touchStartY",16]]],["usage-page","usage-page",1,[["data",1,0,1,1],["exampleIcon",16],["exampleType",16],["match",1],["queue",4,0,0,0,"queue"]]]],HTMLElement.prototype);
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;class o{render(){return e("footer",null,e("div",{class:"container"},e("div",{class:"footer__open-source"},e("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},e("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),e("p",null,"Released under ",e("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),e("div",{class:"footer-menu"},e("a",{href:"cheatsheet.html"},"Cheatsheet"),e("a",{href:"/v1"},"v1"),e("a",{href:"/v2"},"v2"),e("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),e("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))}static get is(){return"footer-bar"}static get style(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"}}export{o as FooterBar};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("3vkw131p",["exports"],function(e){var o=window.DocsSite.h,r=function(){function e(){}return e.prototype.render=function(){return o("footer",null,o("div",{class:"container"},o("div",{class:"footer__open-source"},o("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},o("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),o("p",null,"Released under ",o("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),o("div",{class:"footer-menu"},o("a",{href:"cheatsheet.html"},"Cheatsheet"),o("a",{href:"/v1"},"v1"),o("a",{href:"/v2"},"v2"),o("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),o("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))},Object.defineProperty(e,"is",{get:function(){return"footer-bar"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"},enumerable:!0,configurable:!0}),e}();e.FooterBar=r,Object.defineProperty(e,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;class o{render(){return e("footer",null,e("div",{class:"container"},e("div",{class:"footer__open-source"},e("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},e("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),e("p",null,"Released under ",e("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),e("div",{class:"footer-menu"},e("a",{href:"cheatsheet.html"},"Cheatsheet"),e("a",{href:"/v1"},"v1"),e("a",{href:"/v2"},"v2"),e("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),e("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))}static get is(){return"footer-bar"}static get style(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"}}export{o as FooterBar};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("3vkw131p",["exports"],function(e){var o=window.DocsSite.h,r=function(){function e(){}return e.prototype.render=function(){return o("footer",null,o("div",{class:"container"},o("div",{class:"footer__open-source"},o("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},o("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),o("p",null,"Released under ",o("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),o("div",{class:"footer-menu"},o("a",{href:"cheatsheet.html"},"Cheatsheet"),o("a",{href:"/v1"},"v1"),o("a",{href:"/v2"},"v2"),o("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),o("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))},Object.defineProperty(e,"is",{get:function(){return"footer-bar"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"},enumerable:!0,configurable:!0}),e}();e.FooterBar=r,Object.defineProperty(e,"__esModule",{value:!0})});
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+50
View File
@@ -0,0 +1,50 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle('array.js', ['exports'], function (exports) {
var h = window.DocsSite.h;
function applyPolyfill(window, document) {
Array.prototype.find || Object.defineProperty(Array.prototype, "find", { writable: !0, configurable: !0, value: function (c, e) { if (null == this)
throw new TypeError('"this" is null or not defined'); var b = Object(this), f = b.length >>> 0; if ("function" !== typeof c)
throw new TypeError("predicate must be a function"); for (var a = 0; a < f;) {
var d = b[a];
if (c.call(e, d, a, b))
return d;
a++;
} } });
/*!
Array.from
*/
Array.from || (Array.from = function () {
var l = Object.prototype.toString, h = function (c) { return "function" === typeof c || "[object Function]" === l.call(c); }, m = Math.pow(2, 53) - 1;
return function (c) {
var k = Object(c);
if (null == c)
throw new TypeError("Array.from requires an array-like object - not null or undefined");
var d = 1 < arguments.length ? arguments[1] : void 0, f;
if ("undefined" !== typeof d) {
if (!h(d))
throw new TypeError("Array.from: when provided, the second argument must be a function");
2 < arguments.length && (f = arguments[2]);
}
var a = Number(k.length);
a = isNaN(a) ? 0 : 0 !== a && isFinite(a) ? (0 < a ? 1 : -1) * Math.floor(Math.abs(a)) : a;
a = Math.min(Math.max(a, 0), m);
for (var g = h(this) ? Object(new this(a)) : Array(a), b = 0, e; b < a;)
e = k[b], g[b] = d ? "undefined" === typeof f ? d(e, b) : d.call(f, e, b) : e, b += 1;
g.length = a;
return g;
};
}());
/*!
Array.prototype.includes
*/
Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", { writable: !0, configurable: !0, value: function (r, e) { if (null == this)
throw new TypeError('"this" is null or not defined'); var t = Object(this), n = t.length >>> 0; if (0 === n)
return !1; var i, o, a = 0 | e, u = Math.max(0 <= a ? a : n - Math.abs(a), 0); for (; u < n;) {
if ((i = t[u]) === (o = r) || "number" == typeof i && "number" == typeof o && isNaN(i) && isNaN(o))
return !0;
u++;
} return !1; } });
}
exports.applyPolyfill = applyPolyfill;
Object.defineProperty(exports, '__esModule', { value: true });
});
+18
View File
@@ -0,0 +1,18 @@
/*! Built with http://stenciljs.com */
const { h } = window.DocsSite;
function applyPolyfill(window, document) {/*!
Array.prototype.find
*/
Array.prototype.find||Object.defineProperty(Array.prototype,"find",{writable:!0,configurable:!0,value:function(c,e){if(null==this)throw new TypeError('"this" is null or not defined');var b=Object(this),f=b.length>>>0;if("function"!==typeof c)throw new TypeError("predicate must be a function");for(var a=0;a<f;){var d=b[a];if(c.call(e,d,a,b))return d;a++;}}});
/*!
Array.from
*/
Array.from||(Array.from=function(){var l=Object.prototype.toString,h=function(c){return "function"===typeof c||"[object Function]"===l.call(c)},m=Math.pow(2,53)-1;return function(c){var k=Object(c);if(null==c)throw new TypeError("Array.from requires an array-like object - not null or undefined");var d=1<arguments.length?arguments[1]:void 0,f;if("undefined"!==typeof d){if(!h(d))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(f=arguments[2]);}var a=
Number(k.length);a=isNaN(a)?0:0!==a&&isFinite(a)?(0<a?1:-1)*Math.floor(Math.abs(a)):a;a=Math.min(Math.max(a,0),m);for(var g=h(this)?Object(new this(a)):Array(a),b=0,e;b<a;)e=k[b],g[b]=d?"undefined"===typeof f?d(e,b):d.call(f,e,b):e,b+=1;g.length=a;return g}}());
/*!
Array.prototype.includes
*/
Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{writable:!0,configurable:!0,value:function(r,e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if(0===n)return !1;var i,o,a=0|e,u=Math.max(0<=a?a:n-Math.abs(a),0);for(;u<n;){if((i=t[u])===(o=r)||"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))return !0;u++;}return !1}});}
export { applyPolyfill };
+593
View File
@@ -0,0 +1,593 @@
/*! Built with http://stenciljs.com */
const { h } = window.DocsSite;
var DEFAULT_DELIMITER = '/';
var DEFAULT_DELIMITERS = './';
var PATH_REGEXP = new RegExp([
'(\\\\.)',
'(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?'
].join('|'), 'g');
function parse(str, options) {
var tokens = [];
var key = 0;
var index = 0;
var path = '';
var defaultDelimiter = (options && options.delimiter) || DEFAULT_DELIMITER;
var delimiters = (options && options.delimiters) || DEFAULT_DELIMITERS;
var pathEscaped = false;
var res;
while ((res = PATH_REGEXP.exec(str)) !== null) {
var m = res[0];
var escaped = res[1];
var offset = res.index;
path += str.slice(index, offset);
index = offset + m.length;
if (escaped) {
path += escaped[1];
pathEscaped = true;
continue;
}
var prev = '';
var next = str[index];
var name = res[2];
var capture = res[3];
var group = res[4];
var modifier = res[5];
if (!pathEscaped && path.length) {
var k = path.length - 1;
if (delimiters.indexOf(path[k]) > -1) {
prev = path[k];
path = path.slice(0, k);
}
}
if (path) {
tokens.push(path);
path = '';
pathEscaped = false;
}
var partial = prev !== '' && next !== undefined && next !== prev;
var repeat = modifier === '+' || modifier === '*';
var optional = modifier === '?' || modifier === '*';
var delimiter = prev || defaultDelimiter;
var pattern = capture || group;
tokens.push({
name: name || key++,
prefix: prev,
delimiter: delimiter,
optional: optional,
repeat: repeat,
partial: partial,
pattern: pattern ? escapeGroup(pattern) : '[^' + escapeString(delimiter) + ']+?'
});
}
if (path || index < str.length) {
tokens.push(path + str.substr(index));
}
return tokens;
}
function escapeString(str) {
return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1');
}
function escapeGroup(group) {
return group.replace(/([=!:$/()])/g, '\\$1');
}
function flags(options) {
return options && options.sensitive ? '' : 'i';
}
function regexpToRegexp(path, keys) {
if (!keys)
return path;
var groups = path.source.match(/\((?!\?)/g);
if (groups) {
for (var i = 0; i < groups.length; i++) {
keys.push({
name: i,
prefix: null,
delimiter: null,
optional: false,
repeat: false,
partial: false,
pattern: null
});
}
}
return path;
}
function arrayToRegexp(path, keys, options) {
var parts = [];
for (var i = 0; i < path.length; i++) {
parts.push(pathToRegexp(path[i], keys, options).source);
}
return new RegExp('(?:' + parts.join('|') + ')', flags(options));
}
function stringToRegexp(path, keys, options) {
return tokensToRegExp(parse(path, options), keys, options);
}
function tokensToRegExp(tokens, keys, options) {
options = options || {};
var strict = options.strict;
var end = options.end !== false;
var delimiter = escapeString(options.delimiter || DEFAULT_DELIMITER);
var delimiters = options.delimiters || DEFAULT_DELIMITERS;
var endsWith = [].concat(options.endsWith || []).map(escapeString).concat('$').join('|');
var route = '';
var isEndDelimited = false;
for (var i = 0; i < tokens.length; i++) {
var token = tokens[i];
if (typeof token === 'string') {
route += escapeString(token);
isEndDelimited = i === tokens.length - 1 && delimiters.indexOf(token[token.length - 1]) > -1;
}
else {
var prefix = escapeString(token.prefix || '');
var capture = token.repeat
? '(?:' + token.pattern + ')(?:' + prefix + '(?:' + token.pattern + '))*'
: token.pattern;
if (keys)
keys.push(token);
if (token.optional) {
if (token.partial) {
route += prefix + '(' + capture + ')?';
}
else {
route += '(?:' + prefix + '(' + capture + '))?';
}
}
else {
route += prefix + '(' + capture + ')';
}
}
}
if (end) {
if (!strict)
route += '(?:' + delimiter + ')?';
route += endsWith === '$' ? '$' : '(?=' + endsWith + ')';
}
else {
if (!strict)
route += '(?:' + delimiter + '(?=' + endsWith + '))?';
if (!isEndDelimited)
route += '(?=' + delimiter + '|' + endsWith + ')';
}
return new RegExp('^' + route, flags(options));
}
function pathToRegexp(path, keys, options) {
if (path instanceof RegExp) {
return regexpToRegexp(path, keys);
}
if (Array.isArray(path)) {
return arrayToRegexp(path, keys, options);
}
return stringToRegexp(path, keys, options);
}
function hasBasename(path, prefix) {
return (new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i')).test(path);
}
function stripBasename(path, prefix) {
return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
}
function stripTrailingSlash(path) {
return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
}
function addLeadingSlash(path) {
return path.charAt(0) === '/' ? path : '/' + path;
}
function stripLeadingSlash(path) {
return path.charAt(0) === '/' ? path.substr(1) : path;
}
function parsePath(path) {
let pathname = path || '/';
let search = '';
let hash = '';
const hashIndex = pathname.indexOf('#');
if (hashIndex !== -1) {
hash = pathname.substr(hashIndex);
pathname = pathname.substr(0, hashIndex);
}
const searchIndex = pathname.indexOf('?');
if (searchIndex !== -1) {
search = pathname.substr(searchIndex);
pathname = pathname.substr(0, searchIndex);
}
return {
pathname,
search: search === '?' ? '' : search,
hash: hash === '#' ? '' : hash,
query: {},
key: ''
};
}
function createPath(location) {
const { pathname, search, hash } = location;
let path = pathname || '/';
if (search && search !== '?') {
path += (search.charAt(0) === '?' ? search : `?${search}`);
}
if (hash && hash !== '#') {
path += (hash.charAt(0) === '#' ? hash : `#${hash}`);
}
return path;
}
function parseQueryString(query) {
if (!query) {
return {};
}
return (/^[?#]/.test(query) ? query.slice(1) : query)
.split('&')
.reduce((params, param) => {
let [key, value] = param.split('=');
params[key] = value ? decodeURIComponent(value.replace(/\+/g, ' ')) : '';
return params;
}, {});
}
function isAbsolute(pathname) {
return pathname.charAt(0) === '/';
}
function createKey(keyLength) {
return Math.random().toString(36).substr(2, keyLength);
}
function spliceOne(list, index) {
for (let i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
list[i] = list[k];
}
list.pop();
}
function resolvePathname(to, from = '') {
const toParts = to && to.split('/') || [];
let fromParts = from && from.split('/') || [];
const isToAbs = to && isAbsolute(to);
const isFromAbs = from && isAbsolute(from);
const mustEndAbs = isToAbs || isFromAbs;
if (to && isAbsolute(to)) {
fromParts = toParts;
}
else if (toParts.length) {
fromParts.pop();
fromParts = fromParts.concat(toParts);
}
if (!fromParts.length) {
return '/';
}
let hasTrailingSlash;
if (fromParts.length) {
const last = fromParts[fromParts.length - 1];
hasTrailingSlash = (last === '.' || last === '..' || last === '');
}
else {
hasTrailingSlash = false;
}
let up = 0;
for (let i = fromParts.length; i >= 0; i--) {
const part = fromParts[i];
if (part === '.') {
spliceOne(fromParts, i);
}
else if (part === '..') {
spliceOne(fromParts, i);
up++;
}
else if (up) {
spliceOne(fromParts, i);
up--;
}
}
if (!mustEndAbs) {
for (; up--; up) {
fromParts.unshift('..');
}
}
if (mustEndAbs && fromParts[0] !== '' && (!fromParts[0] || !isAbsolute(fromParts[0]))) {
fromParts.unshift('');
}
let result = fromParts.join('/');
if (hasTrailingSlash && result.substr(-1) !== '/') {
result += '/';
}
return result;
}
function valueEqual(a, b) {
if (a === b) {
return true;
}
if (a == null || b == null) {
return false;
}
if (Array.isArray(a)) {
return Array.isArray(b) && a.length === b.length && a.every(function (item, index) {
return valueEqual(item, b[index]);
});
}
const aType = typeof a;
const bType = typeof b;
if (aType !== bType) {
return false;
}
if (aType === 'object') {
const aValue = a.valueOf();
const bValue = b.valueOf();
if (aValue !== a || bValue !== b) {
return valueEqual(aValue, bValue);
}
const aKeys = Object.keys(a);
const bKeys = Object.keys(b);
if (aKeys.length !== bKeys.length) {
return false;
}
return aKeys.every(function (key) {
return valueEqual(a[key], b[key]);
});
}
return false;
}
function locationsAreEqual(a, b) {
return a.pathname === b.pathname &&
a.search === b.search &&
a.hash === b.hash &&
a.key === b.key &&
valueEqual(a.state, b.state);
}
function createLocation(path, state, key, currentLocation) {
let location;
if (typeof path === 'string') {
location = parsePath(path);
if (location.state !== undefined) {
location.state = state;
}
}
else {
location = Object.assign({ pathname: '' }, path);
if (location.search && location.search.charAt(0) !== '?') {
location.search = '?' + location.search;
}
if (location.hash && location.hash.charAt(0) !== '#') {
location.hash = '#' + location.hash;
}
if (state !== undefined && location.state === undefined) {
location.state = state;
}
}
try {
location.pathname = decodeURI(location.pathname);
}
catch (e) {
if (e instanceof URIError) {
throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' +
'This is likely caused by an invalid percent-encoding.');
}
else {
throw e;
}
}
location.key = key;
if (currentLocation) {
if (!location.pathname) {
location.pathname = currentLocation.pathname;
}
else if (location.pathname.charAt(0) !== '/') {
location.pathname = resolvePathname(location.pathname, currentLocation.pathname);
}
}
else {
if (!location.pathname) {
location.pathname = '/';
}
}
location.query = parseQueryString(location.search || '');
return location;
}
const patternCache = {};
const cacheLimit = 10000;
let cacheCount = 0;
function compilePath(pattern, options) {
const cacheKey = `${options.end}${options.strict}`;
const cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});
const cachePattern = JSON.stringify(pattern);
if (cache[cachePattern]) {
return cache[cachePattern];
}
const keys = [];
const re = pathToRegexp(pattern, keys, options);
const compiledPattern = { re, keys };
if (cacheCount < cacheLimit) {
cache[cachePattern] = compiledPattern;
cacheCount += 1;
}
return compiledPattern;
}
function matchPath(pathname, options = {}) {
if (typeof options === 'string') {
options = { path: options };
}
const { path = '/', exact = false, strict = false } = options;
const { re, keys } = compilePath(path, { end: exact, strict });
const match = re.exec(pathname);
if (!match) {
return null;
}
const [url, ...values] = match;
const isExact = pathname === url;
if (exact && !isExact) {
return null;
}
return {
path,
url: path === '/' && url === '' ? '/' : url,
isExact,
params: keys.reduce((memo, key, index) => {
memo[key.name] = values[index];
return memo;
}, {})
};
}
function matchesAreEqual(a, b) {
if (a == null && b == null) {
return true;
}
if (b == null) {
return false;
}
return a && b &&
a.path === b.path &&
a.url === b.url &&
valueEqual(a.params, b.params);
}
/*!
* StencilStateTunnel: Core, es5
* Built with http://stenciljs.com
*/
function u(n,t){for(var e,r,i=null,o=!1,u=!1,f=arguments.length;f-- >2;)T.push(arguments[f]);for(;T.length>0;){var c=T.pop();if(c&&void 0!==c.pop)for(f=c.length;f--;)T.push(c[f]);else"boolean"==typeof c&&(c=null),(u="function"!=typeof n)&&(null==c?c="":"number"==typeof c?c=String(c):"string"!=typeof c&&(u=!1)),u&&o?i[i.length-1].vtext+=c:null===i?i=[u?{vtext:c}:c]:i.push(u?{vtext:c}:c),o=u;}if(null!=t){if(t.className&&(t.class=t.className),"object"==typeof t.class){for(f in t.class)t.class[f]&&T.push(f);t.class=T.join(" "),T.length=0;}null!=t.key&&(e=t.key),null!=t.name&&(r=t.name);}return "function"==typeof n?n(t,i||[],W):{vtag:n,vchildren:i,vtext:void 0,vattrs:t,vkey:e,vname:r,w:void 0,g:!1}}function f(n){return {vtag:n.vtag,vchildren:n.vchildren,vtext:n.vtext,vattrs:n.vattrs,vkey:n.vkey,vname:n.vname}}undefined&&undefined.Dn||(Object.setPrototypeOf||Array);var T=[],W={forEach:function(n,t){n.forEach(function(n,e,r){return t(f(n),e,r)});},map:function(n,t){return n.map(function(n,e,r){return function i(n){return {vtag:n.vtag,vchildren:n.vchildren,vtext:n.vtext,vattrs:n.vattrs,vkey:n.vkey,vname:n.vname}}(t(f(n),e,r))})}};
/*! Built with http://stenciljs.com */
var __rest = function (s, e) {
var t = {};
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
};
function defaultConsumerRender(subscribe, renderer) {
return u("context-consumer", { subscribe: subscribe, renderer: renderer });
}
function createProviderConsumer(defaultState, consumerRender) {
if (consumerRender === void 0) { consumerRender = defaultConsumerRender; }
var listeners = new Map();
var currentState = defaultState;
function notifyConsumers() {
listeners.forEach(updateListener);
}
function updateListener(fields, listener) {
if (Array.isArray(fields)) {
fields.slice().forEach(function (fieldName) {
listener[fieldName] = currentState[fieldName];
});
}
else {
listener[fields] = Object.assign({}, currentState);
}
listener.forceUpdate();
}
function attachListener(propList) {
return function (el) {
if (listeners.has(el)) {
return;
}
listeners.set(el, propList);
updateListener(propList, el);
};
}
function subscribe(el, propList) {
attachListener(propList)(el);
return function () {
listeners.delete(el);
};
}
var Provider = function (_b, children) {
var state = _b.state;
currentState = state;
notifyConsumers();
return children;
};
var Consumer = function (props, children) {
return consumerRender(subscribe, children[0]);
};
function wrapConsumer(childComponent, fieldList) {
var Child = childComponent.is;
return function (_a) {
var children = _a.children, props = __rest(_a, ["children"]);
return (u(Child, Object.assign({ ref: attachListener(fieldList) }, props), children));
};
}
function injectProps(childComponent, fieldList) {
var unsubscribe = null;
var elementRefName = Object.keys(childComponent.properties).find(function (propName) {
return childComponent.properties[propName].elementRef == true;
});
if (elementRefName == undefined) {
throw new Error("Please ensure that your Component " + childComponent.is + " has an attribute with an \"@Element\" decorator. " +
"This is required to be able to inject properties.");
}
var prevComponentWillLoad = childComponent.prototype.componentWillLoad;
childComponent.prototype.componentWillLoad = function () {
unsubscribe = subscribe(this[elementRefName], fieldList);
if (prevComponentWillLoad) {
return prevComponentWillLoad.bind(this)();
}
};
var prevComponentDidUnload = childComponent.prototype.componentDidUnload;
childComponent.prototype.componentDidUnload = function () {
unsubscribe();
if (prevComponentDidUnload) {
return prevComponentDidUnload.bind(this)();
}
};
}
return {
Provider: Provider,
Consumer: Consumer,
wrapConsumer: wrapConsumer,
injectProps: injectProps
};
}
// StencilStateTunnel: ES Module
var ActiveRouter = createProviderConsumer({
historyType: 'browser',
location: {
pathname: '',
query: {},
key: ''
},
titleSuffix: '',
root: '/',
routeViewsUpdated: () => { }
});
const canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
const addEventListener$1 = (node, event, listener) => (node.addEventListener
? node.addEventListener(event, listener, false)
: node.attachEvent('on' + event, listener));
const removeEventListener = (node, event, listener) => (node.removeEventListener
? node.removeEventListener(event, listener, false)
: node.detachEvent('on' + event, listener));
const getConfirmation = (message, callback) => (callback(window.confirm(message)));
const isModifiedEvent = (event) => (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
const supportsHistory = () => {
const ua = window.navigator.userAgent;
if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
ua.indexOf('Mobile Safari') !== -1 &&
ua.indexOf('Chrome') === -1 &&
ua.indexOf('Windows Phone') === -1) {
return false;
}
return window.history && 'pushState' in window.history;
};
const supportsPopStateOnHashChange = () => (window.navigator.userAgent.indexOf('Trident') === -1);
const supportsGoWithoutReloadUsingHash = () => (window.navigator.userAgent.indexOf('Firefox') === -1);
const isExtraneousPopstateEvent = (event) => (event.state === undefined &&
navigator.userAgent.indexOf('CriOS') === -1);
const storageAvailable = (type) => {
var storage = window[type], x = '__storage_test__';
try {
storage.setItem(x, x);
storage.removeItem(x);
return true;
}
catch (e) {
return e instanceof DOMException && (e.code === 22 ||
e.code === 1014 ||
e.name === 'QuotaExceededError' ||
e.name === 'NS_ERROR_DOM_QUOTA_REACHED') &&
storage.length !== 0;
}
};
export { matchPath as a, matchesAreEqual as b, ActiveRouter as c, storageAvailable as d, createLocation as e, createKey as f, addLeadingSlash as g, stripTrailingSlash as h, hasBasename as i, stripBasename as j, createPath as k, canUseDOM as l, addEventListener$1 as m, removeEventListener as n, getConfirmation as o, supportsHistory as p, supportsPopStateOnHashChange as q, isExtraneousPopstateEvent as r, locationsAreEqual as s, stripLeadingSlash as t, supportsGoWithoutReloadUsingHash as u, isModifiedEvent as v };
+628
View File
@@ -0,0 +1,628 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle('chunk-4e065e0c.js', ['require', 'exports'], function (require, exports) {
var h = window.DocsSite.h;
var DEFAULT_DELIMITER = '/';
var DEFAULT_DELIMITERS = './';
var PATH_REGEXP = new RegExp([
'(\\\\.)',
'(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?'
].join('|'), 'g');
function parse(str, options) {
var tokens = [];
var key = 0;
var index = 0;
var path = '';
var defaultDelimiter = (options && options.delimiter) || DEFAULT_DELIMITER;
var delimiters = (options && options.delimiters) || DEFAULT_DELIMITERS;
var pathEscaped = false;
var res;
while ((res = PATH_REGEXP.exec(str)) !== null) {
var m = res[0];
var escaped = res[1];
var offset = res.index;
path += str.slice(index, offset);
index = offset + m.length;
if (escaped) {
path += escaped[1];
pathEscaped = true;
continue;
}
var prev = '';
var next = str[index];
var name = res[2];
var capture = res[3];
var group = res[4];
var modifier = res[5];
if (!pathEscaped && path.length) {
var k = path.length - 1;
if (delimiters.indexOf(path[k]) > -1) {
prev = path[k];
path = path.slice(0, k);
}
}
if (path) {
tokens.push(path);
path = '';
pathEscaped = false;
}
var partial = prev !== '' && next !== undefined && next !== prev;
var repeat = modifier === '+' || modifier === '*';
var optional = modifier === '?' || modifier === '*';
var delimiter = prev || defaultDelimiter;
var pattern = capture || group;
tokens.push({
name: name || key++,
prefix: prev,
delimiter: delimiter,
optional: optional,
repeat: repeat,
partial: partial,
pattern: pattern ? escapeGroup(pattern) : '[^' + escapeString(delimiter) + ']+?'
});
}
if (path || index < str.length) {
tokens.push(path + str.substr(index));
}
return tokens;
}
function escapeString(str) {
return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1');
}
function escapeGroup(group) {
return group.replace(/([=!:$/()])/g, '\\$1');
}
function flags(options) {
return options && options.sensitive ? '' : 'i';
}
function regexpToRegexp(path, keys) {
if (!keys)
return path;
var groups = path.source.match(/\((?!\?)/g);
if (groups) {
for (var i = 0; i < groups.length; i++) {
keys.push({
name: i,
prefix: null,
delimiter: null,
optional: false,
repeat: false,
partial: false,
pattern: null
});
}
}
return path;
}
function arrayToRegexp(path, keys, options) {
var parts = [];
for (var i = 0; i < path.length; i++) {
parts.push(pathToRegexp(path[i], keys, options).source);
}
return new RegExp('(?:' + parts.join('|') + ')', flags(options));
}
function stringToRegexp(path, keys, options) {
return tokensToRegExp(parse(path, options), keys, options);
}
function tokensToRegExp(tokens, keys, options) {
options = options || {};
var strict = options.strict;
var end = options.end !== false;
var delimiter = escapeString(options.delimiter || DEFAULT_DELIMITER);
var delimiters = options.delimiters || DEFAULT_DELIMITERS;
var endsWith = [].concat(options.endsWith || []).map(escapeString).concat('$').join('|');
var route = '';
var isEndDelimited = false;
for (var i = 0; i < tokens.length; i++) {
var token = tokens[i];
if (typeof token === 'string') {
route += escapeString(token);
isEndDelimited = i === tokens.length - 1 && delimiters.indexOf(token[token.length - 1]) > -1;
}
else {
var prefix = escapeString(token.prefix || '');
var capture = token.repeat
? '(?:' + token.pattern + ')(?:' + prefix + '(?:' + token.pattern + '))*'
: token.pattern;
if (keys)
keys.push(token);
if (token.optional) {
if (token.partial) {
route += prefix + '(' + capture + ')?';
}
else {
route += '(?:' + prefix + '(' + capture + '))?';
}
}
else {
route += prefix + '(' + capture + ')';
}
}
}
if (end) {
if (!strict)
route += '(?:' + delimiter + ')?';
route += endsWith === '$' ? '$' : '(?=' + endsWith + ')';
}
else {
if (!strict)
route += '(?:' + delimiter + '(?=' + endsWith + '))?';
if (!isEndDelimited)
route += '(?=' + delimiter + '|' + endsWith + ')';
}
return new RegExp('^' + route, flags(options));
}
function pathToRegexp(path, keys, options) {
if (path instanceof RegExp) {
return regexpToRegexp(path, keys);
}
if (Array.isArray(path)) {
return arrayToRegexp(path, keys, options);
}
return stringToRegexp(path, keys, options);
}
function hasBasename(path, prefix) {
return (new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i')).test(path);
}
function stripBasename(path, prefix) {
return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
}
function stripTrailingSlash(path) {
return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
}
function addLeadingSlash(path) {
return path.charAt(0) === '/' ? path : '/' + path;
}
function stripLeadingSlash(path) {
return path.charAt(0) === '/' ? path.substr(1) : path;
}
function parsePath(path) {
var pathname = path || '/';
var search = '';
var hash = '';
var hashIndex = pathname.indexOf('#');
if (hashIndex !== -1) {
hash = pathname.substr(hashIndex);
pathname = pathname.substr(0, hashIndex);
}
var searchIndex = pathname.indexOf('?');
if (searchIndex !== -1) {
search = pathname.substr(searchIndex);
pathname = pathname.substr(0, searchIndex);
}
return {
pathname: pathname,
search: search === '?' ? '' : search,
hash: hash === '#' ? '' : hash,
query: {},
key: ''
};
}
function createPath(location) {
var pathname = location.pathname, search = location.search, hash = location.hash;
var path = pathname || '/';
if (search && search !== '?') {
path += (search.charAt(0) === '?' ? search : "?" + search);
}
if (hash && hash !== '#') {
path += (hash.charAt(0) === '#' ? hash : "#" + hash);
}
return path;
}
function parseQueryString(query) {
if (!query) {
return {};
}
return (/^[?#]/.test(query) ? query.slice(1) : query)
.split('&')
.reduce(function (params, param) {
var _c = param.split('='), key = _c[0], value = _c[1];
params[key] = value ? decodeURIComponent(value.replace(/\+/g, ' ')) : '';
return params;
}, {});
}
function isAbsolute(pathname) {
return pathname.charAt(0) === '/';
}
function createKey(keyLength) {
return Math.random().toString(36).substr(2, keyLength);
}
function spliceOne(list, index) {
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
list[i] = list[k];
}
list.pop();
}
function resolvePathname(to, from) {
if (from === void 0) { from = ''; }
var toParts = to && to.split('/') || [];
var fromParts = from && from.split('/') || [];
var isToAbs = to && isAbsolute(to);
var isFromAbs = from && isAbsolute(from);
var mustEndAbs = isToAbs || isFromAbs;
if (to && isAbsolute(to)) {
fromParts = toParts;
}
else if (toParts.length) {
fromParts.pop();
fromParts = fromParts.concat(toParts);
}
if (!fromParts.length) {
return '/';
}
var hasTrailingSlash;
if (fromParts.length) {
var last = fromParts[fromParts.length - 1];
hasTrailingSlash = (last === '.' || last === '..' || last === '');
}
else {
hasTrailingSlash = false;
}
var up = 0;
for (var i = fromParts.length; i >= 0; i--) {
var part = fromParts[i];
if (part === '.') {
spliceOne(fromParts, i);
}
else if (part === '..') {
spliceOne(fromParts, i);
up++;
}
else if (up) {
spliceOne(fromParts, i);
up--;
}
}
if (!mustEndAbs) {
for (; up--; up) {
fromParts.unshift('..');
}
}
if (mustEndAbs && fromParts[0] !== '' && (!fromParts[0] || !isAbsolute(fromParts[0]))) {
fromParts.unshift('');
}
var result = fromParts.join('/');
if (hasTrailingSlash && result.substr(-1) !== '/') {
result += '/';
}
return result;
}
function valueEqual(a, b) {
if (a === b) {
return true;
}
if (a == null || b == null) {
return false;
}
if (Array.isArray(a)) {
return Array.isArray(b) && a.length === b.length && a.every(function (item, index) {
return valueEqual(item, b[index]);
});
}
var aType = typeof a;
var bType = typeof b;
if (aType !== bType) {
return false;
}
if (aType === 'object') {
var aValue = a.valueOf();
var bValue = b.valueOf();
if (aValue !== a || bValue !== b) {
return valueEqual(aValue, bValue);
}
var aKeys = Object.keys(a);
var bKeys = Object.keys(b);
if (aKeys.length !== bKeys.length) {
return false;
}
return aKeys.every(function (key) {
return valueEqual(a[key], b[key]);
});
}
return false;
}
function locationsAreEqual(a, b) {
return a.pathname === b.pathname &&
a.search === b.search &&
a.hash === b.hash &&
a.key === b.key &&
valueEqual(a.state, b.state);
}
function createLocation(path, state, key, currentLocation) {
var location;
if (typeof path === 'string') {
location = parsePath(path);
if (location.state !== undefined) {
location.state = state;
}
}
else {
location = Object.assign({ pathname: '' }, path);
if (location.search && location.search.charAt(0) !== '?') {
location.search = '?' + location.search;
}
if (location.hash && location.hash.charAt(0) !== '#') {
location.hash = '#' + location.hash;
}
if (state !== undefined && location.state === undefined) {
location.state = state;
}
}
try {
location.pathname = decodeURI(location.pathname);
}
catch (e) {
if (e instanceof URIError) {
throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' +
'This is likely caused by an invalid percent-encoding.');
}
else {
throw e;
}
}
location.key = key;
if (currentLocation) {
if (!location.pathname) {
location.pathname = currentLocation.pathname;
}
else if (location.pathname.charAt(0) !== '/') {
location.pathname = resolvePathname(location.pathname, currentLocation.pathname);
}
}
else {
if (!location.pathname) {
location.pathname = '/';
}
}
location.query = parseQueryString(location.search || '');
return location;
}
var patternCache = {};
var cacheLimit = 10000;
var cacheCount = 0;
function compilePath(pattern, options) {
var cacheKey = "" + options.end + options.strict;
var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});
var cachePattern = JSON.stringify(pattern);
if (cache[cachePattern]) {
return cache[cachePattern];
}
var keys = [];
var re = pathToRegexp(pattern, keys, options);
var compiledPattern = { re: re, keys: keys };
if (cacheCount < cacheLimit) {
cache[cachePattern] = compiledPattern;
cacheCount += 1;
}
return compiledPattern;
}
function matchPath(pathname, options) {
if (options === void 0) { options = {}; }
if (typeof options === 'string') {
options = { path: options };
}
var _c = options.path, path = _c === void 0 ? '/' : _c, _d = options.exact, exact = _d === void 0 ? false : _d, _e = options.strict, strict = _e === void 0 ? false : _e;
var _f = compilePath(path, { end: exact, strict: strict }), re = _f.re, keys = _f.keys;
var match = re.exec(pathname);
if (!match) {
return null;
}
var url = match[0], values = match.slice(1);
var isExact = pathname === url;
if (exact && !isExact) {
return null;
}
return {
path: path,
url: path === '/' && url === '' ? '/' : url,
isExact: isExact,
params: keys.reduce(function (memo, key, index) {
memo[key.name] = values[index];
return memo;
}, {})
};
}
function matchesAreEqual(a, b) {
if (a == null && b == null) {
return true;
}
if (b == null) {
return false;
}
return a && b &&
a.path === b.path &&
a.url === b.url &&
valueEqual(a.params, b.params);
}
/*!
* StencilStateTunnel: Core, es5
* Built with http://stenciljs.com
*/
function u(n, t) { for (var e, r, i = null, o = !1, u = !1, f = arguments.length; f-- > 2;)
T.push(arguments[f]); for (; T.length > 0;) {
var c = T.pop();
if (c && void 0 !== c.pop)
for (f = c.length; f--;)
T.push(c[f]);
else
"boolean" == typeof c && (c = null), (u = "function" != typeof n) && (null == c ? c = "" : "number" == typeof c ? c = String(c) : "string" != typeof c && (u = !1)), u && o ? i[i.length - 1].vtext += c : null === i ? i = [u ? { vtext: c } : c] : i.push(u ? { vtext: c } : c), o = u;
} if (null != t) {
if (t.className && (t.class = t.className), "object" == typeof t.class) {
for (f in t.class)
t.class[f] && T.push(f);
t.class = T.join(" "), T.length = 0;
}
null != t.key && (e = t.key), null != t.name && (r = t.name);
} return "function" == typeof n ? n(t, i || [], W) : { vtag: n, vchildren: i, vtext: void 0, vattrs: t, vkey: e, vname: r, w: void 0, g: !1 }; }
function f(n) { return { vtag: n.vtag, vchildren: n.vchildren, vtext: n.vtext, vattrs: n.vattrs, vkey: n.vkey, vname: n.vname }; }
undefined && undefined.Dn || (Object.setPrototypeOf || Array);
var T = [], W = { forEach: function (n, t) { n.forEach(function (n, e, r) { return t(f(n), e, r); }); }, map: function (n, t) { return n.map(function (n, e, r) { return function i(n) { return { vtag: n.vtag, vchildren: n.vchildren, vtext: n.vtext, vattrs: n.vattrs, vkey: n.vkey, vname: n.vname }; }(t(f(n), e, r)); }); } };
/*! Built with http://stenciljs.com */
var __rest = function (s, e) {
var t = {};
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
};
function defaultConsumerRender(subscribe, renderer) {
return u("context-consumer", { subscribe: subscribe, renderer: renderer });
}
function createProviderConsumer(defaultState, consumerRender) {
if (consumerRender === void 0) {
consumerRender = defaultConsumerRender;
}
var listeners = new Map();
var currentState = defaultState;
function notifyConsumers() {
listeners.forEach(updateListener);
}
function updateListener(fields, listener) {
if (Array.isArray(fields)) {
fields.slice().forEach(function (fieldName) {
listener[fieldName] = currentState[fieldName];
});
}
else {
listener[fields] = Object.assign({}, currentState);
}
listener.forceUpdate();
}
function attachListener(propList) {
return function (el) {
if (listeners.has(el)) {
return;
}
listeners.set(el, propList);
updateListener(propList, el);
};
}
function subscribe(el, propList) {
attachListener(propList)(el);
return function () {
listeners.delete(el);
};
}
var Provider = function (_b, children) {
var state = _b.state;
currentState = state;
notifyConsumers();
return children;
};
var Consumer = function (props, children) {
return consumerRender(subscribe, children[0]);
};
function wrapConsumer(childComponent, fieldList) {
var Child = childComponent.is;
return function (_a) {
var children = _a.children, props = __rest(_a, ["children"]);
return (u(Child, Object.assign({ ref: attachListener(fieldList) }, props), children));
};
}
function injectProps(childComponent, fieldList) {
var unsubscribe = null;
var elementRefName = Object.keys(childComponent.properties).find(function (propName) {
return childComponent.properties[propName].elementRef == true;
});
if (elementRefName == undefined) {
throw new Error("Please ensure that your Component " + childComponent.is + " has an attribute with an \"@Element\" decorator. " +
"This is required to be able to inject properties.");
}
var prevComponentWillLoad = childComponent.prototype.componentWillLoad;
childComponent.prototype.componentWillLoad = function () {
unsubscribe = subscribe(this[elementRefName], fieldList);
if (prevComponentWillLoad) {
return prevComponentWillLoad.bind(this)();
}
};
var prevComponentDidUnload = childComponent.prototype.componentDidUnload;
childComponent.prototype.componentDidUnload = function () {
unsubscribe();
if (prevComponentDidUnload) {
return prevComponentDidUnload.bind(this)();
}
};
}
return {
Provider: Provider,
Consumer: Consumer,
wrapConsumer: wrapConsumer,
injectProps: injectProps
};
}
// StencilStateTunnel: ES Module
var ActiveRouter = createProviderConsumer({
historyType: 'browser',
location: {
pathname: '',
query: {},
key: ''
},
titleSuffix: '',
root: '/',
routeViewsUpdated: function () { }
});
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
var addEventListener$1 = function (node, event, listener) { return (node.addEventListener
? node.addEventListener(event, listener, false)
: node.attachEvent('on' + event, listener)); };
var removeEventListener = function (node, event, listener) { return (node.removeEventListener
? node.removeEventListener(event, listener, false)
: node.detachEvent('on' + event, listener)); };
var getConfirmation = function (message, callback) { return (callback(window.confirm(message))); };
var isModifiedEvent = function (event) { return (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); };
var supportsHistory = function () {
var ua = window.navigator.userAgent;
if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
ua.indexOf('Mobile Safari') !== -1 &&
ua.indexOf('Chrome') === -1 &&
ua.indexOf('Windows Phone') === -1) {
return false;
}
return window.history && 'pushState' in window.history;
};
var supportsPopStateOnHashChange = function () { return (window.navigator.userAgent.indexOf('Trident') === -1); };
var supportsGoWithoutReloadUsingHash = function () { return (window.navigator.userAgent.indexOf('Firefox') === -1); };
var isExtraneousPopstateEvent = function (event) { return (event.state === undefined &&
navigator.userAgent.indexOf('CriOS') === -1); };
var storageAvailable = function (type) {
var storage = window[type], x = '__storage_test__';
try {
storage.setItem(x, x);
storage.removeItem(x);
return true;
}
catch (e) {
return e instanceof DOMException && (e.code === 22 ||
e.code === 1014 ||
e.name === 'QuotaExceededError' ||
e.name === 'NS_ERROR_DOM_QUOTA_REACHED') &&
storage.length !== 0;
}
};
exports.matchPath = matchPath;
exports.matchesAreEqual = matchesAreEqual;
exports.ActiveRouter = ActiveRouter;
exports.storageAvailable = storageAvailable;
exports.createLocation = createLocation;
exports.createKey = createKey;
exports.addLeadingSlash = addLeadingSlash;
exports.stripTrailingSlash = stripTrailingSlash;
exports.hasBasename = hasBasename;
exports.stripBasename = stripBasename;
exports.createPath = createPath;
exports.canUseDOM = canUseDOM;
exports.addEventListener = addEventListener$1;
exports.removeEventListener = removeEventListener;
exports.getConfirmation = getConfirmation;
exports.supportsHistory = supportsHistory;
exports.supportsPopStateOnHashChange = supportsPopStateOnHashChange;
exports.isExtraneousPopstateEvent = isExtraneousPopstateEvent;
exports.locationsAreEqual = locationsAreEqual;
exports.stripLeadingSlash = stripLeadingSlash;
exports.supportsGoWithoutReloadUsingHash = supportsGoWithoutReloadUsingHash;
exports.isModifiedEvent = isModifiedEvent;
});
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+74
View File
@@ -0,0 +1,74 @@
{
"namespace": "DocsSite",
"fsNamespace": "docssite",
"loader": "../docssite.js",
"core": "docssite.core.js",
"corePolyfilled": "docssite.core.pf.js",
"components": {
"footer-bar": {
"bundleIds": {
"$": "footer-bar"
}
},
"header-bar": {
"bundleIds": {
"$": "header-bar"
}
},
"icon-list": {
"bundleIds": {
"$": "icon-list"
}
},
"icon-search": {
"bundleIds": {
"$": "icon-search"
}
},
"ionicons-site": {
"bundleIds": {
"$": "header-bar"
}
},
"landing-page": {
"bundleIds": {
"$": "icon-list"
}
},
"notfound-page": {
"bundleIds": {
"$": "notfound-page"
}
},
"stencil-route": {
"bundleIds": {
"$": "header-bar"
}
},
"stencil-route-link": {
"bundleIds": {
"$": "stencil-route-link"
}
},
"stencil-route-switch": {
"bundleIds": {
"$": "header-bar"
}
},
"stencil-router": {
"bundleIds": {
"$": "header-bar"
}
},
"toast-bar": {
"bundleIds": {
"$": "icon-list"
}
},
"usage-page": {
"bundleIds": {
"$": "usage-page"
}
}
}
}
+96
View File
@@ -0,0 +1,96 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle('dom.js', ['exports'], function (exports) {
var h = window.DocsSite.h;
function applyPolyfill(window, document) {
if (!window['s-ce1']) {
window['s-ce1'] = true;
(function (e, t) { function Ht() { var e = wt.splice(0, wt.length); Et = 0; while (e.length)
e.shift().call(null, e.shift()); } function Bt(e, t) { for (var n = 0, r = e.length; n < r; n++)
Jt(e[n], t); } function jt(e) { for (var t = 0, n = e.length, r; t < n; t++)
r = e[t], Pt(r, A[It(r)]); } function Ft(e) { return function (t) { ut(t) && (Jt(t, e), O.length && Bt(t.querySelectorAll(O), e)); }; } function It(e) { var t = ht.call(e, "is"), n = e.nodeName.toUpperCase(), r = _.call(L, t ? N + t.toUpperCase() : T + n); return t && -1 < r && !qt(n, t) ? -1 : r; } function qt(e, t) { return -1 < O.indexOf(e + '[is="' + t + '"]'); } function Rt(e) { var t = e.currentTarget, n = e.attrChange, r = e.attrName, i = e.target, s = e[y] || 2, o = e[w] || 3; kt && (!i || i === t) && t[h] && r !== "style" && (e.prevValue !== e.newValue || e.newValue === "" && (n === s || n === o)) && t[h](r, n === s ? null : e.prevValue, n === o ? null : e.newValue); } function Ut(e) { var t = Ft(e); return function (e) { wt.push(t, e.target), Et && clearTimeout(Et), Et = setTimeout(Ht, 1); }; } function zt(e) { Ct && (Ct = !1, e.currentTarget.removeEventListener(S, zt)), O.length && Bt((e.target || n).querySelectorAll(O), e.detail === l ? l : a), st && Vt(); } function Wt(e, t) { var n = this; vt.call(n, e, t), Lt.call(n, { target: n }); } function Xt(e, t) { nt(e, t), Mt ? Mt.observe(e, yt) : (Nt && (e.setAttribute = Wt, e[o] = Ot(e), e[u](x, Lt)), e[u](E, Rt)), e[m] && kt && (e.created = !0, e[m](), e.created = !1); } function Vt() { for (var e, t = 0, n = at.length; t < n; t++)
e = at[t], M.contains(e) || (n--, at.splice(t--, 1), Jt(e, l)); } function $t(e) { throw new Error("A " + e + " type is already registered"); } function Jt(e, t) { var n, r = It(e), i; -1 < r && (Dt(e, A[r]), r = 0, t === a && !e[a] ? (e[l] = !1, e[a] = !0, i = "connected", r = 1, st && _.call(at, e) < 0 && at.push(e)) : t === l && !e[l] && (e[a] = !1, e[l] = !0, i = "disconnected", r = 1), r && (n = e[t + f] || e[i + f]) && n.call(e)); } function Kt() { } function Qt(e, t, r) { var i = r && r[c] || "", o = t.prototype, u = tt(o), a = t.observedAttributes || j, f = { prototype: u }; ot(u, m, { value: function () { if (Q)
Q = !1;
else if (!this[W]) {
this[W] = !0, new t(this), o[m] && o[m].call(this);
var e = G[Z.get(t)];
(!V || e.create.length > 1) && Zt(this);
} } }), ot(u, h, { value: function (e) { -1 < _.call(a, e) && o[h].apply(this, arguments); } }), o[d] && ot(u, p, { value: o[d] }), o[v] && ot(u, g, { value: o[v] }), i && (f[c] = i), e = e.toUpperCase(), G[e] = { constructor: t, create: i ? [i, et(e)] : [e] }, Z.set(t, e), n[s](e.toLowerCase(), f), en(e), Y[e].r(); } function Gt(e) { var t = G[e.toUpperCase()]; return t && t.constructor; } function Yt(e) { return typeof e == "string" ? e : e && e.is || ""; } function Zt(e) { var t = e[h], n = t ? e.attributes : j, r = n.length, i; while (r--)
i = n[r], t.call(e, i.name || i.nodeName, null, i.value || i.nodeValue); } function en(e) { return e = e.toUpperCase(), e in Y || (Y[e] = {}, Y[e].p = new K(function (t) { Y[e].r = t; })), Y[e].p; } function tn() { X && delete e.customElements, B(e, "customElements", { configurable: !0, value: new Kt }), B(e, "CustomElementRegistry", { configurable: !0, value: Kt }); for (var t = function (t) { var r = e[t]; if (r) {
e[t] = function (t) { var i, s; return t || (t = this), t[W] || (Q = !0, i = G[Z.get(t.constructor)], s = V && i.create.length === 1, t = s ? Reflect.construct(r, j, i.constructor) : n.createElement.apply(n, i.create), t[W] = !0, Q = !1, s || Zt(t)), t; }, e[t].prototype = r.prototype;
try {
r.prototype.constructor = e[t];
}
catch (i) {
B(r, W, { value: e[t] });
}
} }, r = i.get(/^HTML[A-Z]*[a-z]/), o = r.length; o--; t(r[o]))
; n.createElement = function (e, t) { var n = Yt(t); return n ? gt.call(this, e, et(n)) : gt.call(this, e); }, St || (Tt = !0, n[s]("")); } var n = e.document, r = e.Object, i = function (e) { var t = /^[A-Z]+[a-z]/, n = function (e) { var t = [], n; for (n in s)
e.test(n) && t.push(n); return t; }, i = function (e, t) { t = t.toLowerCase(), t in s || (s[e] = (s[e] || []).concat(t), s[t] = s[t.toUpperCase()] = e); }, s = (r.create || r)(null), o = {}, u, a, f, l; for (a in e)
for (l in e[a]) {
f = e[a][l], s[l] = f;
for (u = 0; u < f.length; u++)
s[f[u].toLowerCase()] = s[f[u].toUpperCase()] = l;
} return o.get = function (r) { return typeof r == "string" ? s[r] || (t.test(r) ? [] : "") : n(r); }, o.set = function (n, r) { return t.test(n) ? i(n, r) : i(r, n), o; }, o; }({ collections: { HTMLAllCollection: ["all"], HTMLCollection: ["forms"], HTMLFormControlsCollection: ["elements"], HTMLOptionsCollection: ["options"] }, elements: { Element: ["element"], HTMLAnchorElement: ["a"], HTMLAppletElement: ["applet"], HTMLAreaElement: ["area"], HTMLAttachmentElement: ["attachment"], HTMLAudioElement: ["audio"], HTMLBRElement: ["br"], HTMLBaseElement: ["base"], HTMLBodyElement: ["body"], HTMLButtonElement: ["button"], HTMLCanvasElement: ["canvas"], HTMLContentElement: ["content"], HTMLDListElement: ["dl"], HTMLDataElement: ["data"], HTMLDataListElement: ["datalist"], HTMLDetailsElement: ["details"], HTMLDialogElement: ["dialog"], HTMLDirectoryElement: ["dir"], HTMLDivElement: ["div"], HTMLDocument: ["document"], HTMLElement: ["element", "abbr", "address", "article", "aside", "b", "bdi", "bdo", "cite", "code", "command", "dd", "dfn", "dt", "em", "figcaption", "figure", "footer", "header", "i", "kbd", "mark", "nav", "noscript", "rp", "rt", "ruby", "s", "samp", "section", "small", "strong", "sub", "summary", "sup", "u", "var", "wbr"], HTMLEmbedElement: ["embed"], HTMLFieldSetElement: ["fieldset"], HTMLFontElement: ["font"], HTMLFormElement: ["form"], HTMLFrameElement: ["frame"], HTMLFrameSetElement: ["frameset"], HTMLHRElement: ["hr"], HTMLHeadElement: ["head"], HTMLHeadingElement: ["h1", "h2", "h3", "h4", "h5", "h6"], HTMLHtmlElement: ["html"], HTMLIFrameElement: ["iframe"], HTMLImageElement: ["img"], HTMLInputElement: ["input"], HTMLKeygenElement: ["keygen"], HTMLLIElement: ["li"], HTMLLabelElement: ["label"], HTMLLegendElement: ["legend"], HTMLLinkElement: ["link"], HTMLMapElement: ["map"], HTMLMarqueeElement: ["marquee"], HTMLMediaElement: ["media"], HTMLMenuElement: ["menu"], HTMLMenuItemElement: ["menuitem"], HTMLMetaElement: ["meta"], HTMLMeterElement: ["meter"], HTMLModElement: ["del", "ins"], HTMLOListElement: ["ol"], HTMLObjectElement: ["object"], HTMLOptGroupElement: ["optgroup"], HTMLOptionElement: ["option"], HTMLOutputElement: ["output"], HTMLParagraphElement: ["p"], HTMLParamElement: ["param"], HTMLPictureElement: ["picture"], HTMLPreElement: ["pre"], HTMLProgressElement: ["progress"], HTMLQuoteElement: ["blockquote", "q", "quote"], HTMLScriptElement: ["script"], HTMLSelectElement: ["select"], HTMLShadowElement: ["shadow"], HTMLSlotElement: ["slot"], HTMLSourceElement: ["source"], HTMLSpanElement: ["span"], HTMLStyleElement: ["style"], HTMLTableCaptionElement: ["caption"], HTMLTableCellElement: ["td", "th"], HTMLTableColElement: ["col", "colgroup"], HTMLTableElement: ["table"], HTMLTableRowElement: ["tr"], HTMLTableSectionElement: ["thead", "tbody", "tfoot"], HTMLTemplateElement: ["template"], HTMLTextAreaElement: ["textarea"], HTMLTimeElement: ["time"], HTMLTitleElement: ["title"], HTMLTrackElement: ["track"], HTMLUListElement: ["ul"], HTMLUnknownElement: ["unknown", "vhgroupv", "vkeygen"], HTMLVideoElement: ["video"] }, nodes: { Attr: ["node"], Audio: ["audio"], CDATASection: ["node"], CharacterData: ["node"], Comment: ["#comment"], Document: ["#document"], DocumentFragment: ["#document-fragment"], DocumentType: ["node"], HTMLDocument: ["#document"], Image: ["img"], Option: ["option"], ProcessingInstruction: ["node"], ShadowRoot: ["#shadow-root"], Text: ["#text"], XMLDocument: ["xml"] } }); typeof t != "object" && (t = { type: t || "auto" }); var s = "registerElement", o = "__" + s + (e.Math.random() * 1e5 >> 0), u = "addEventListener", a = "attached", f = "Callback", l = "detached", c = "extends", h = "attributeChanged" + f, p = a + f, d = "connected" + f, v = "disconnected" + f, m = "created" + f, g = l + f, y = "ADDITION", b = "MODIFICATION", w = "REMOVAL", E = "DOMAttrModified", S = "DOMContentLoaded", x = "DOMSubtreeModified", T = "<", N = "=", C = /^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/, k = ["ANNOTATION-XML", "COLOR-PROFILE", "FONT-FACE", "FONT-FACE-SRC", "FONT-FACE-URI", "FONT-FACE-FORMAT", "FONT-FACE-NAME", "MISSING-GLYPH"], L = [], A = [], O = "", M = n.documentElement, _ = L.indexOf || function (e) { for (var t = this.length; t-- && this[t] !== e;)
; return t; }, D = r.prototype, P = D.hasOwnProperty, H = D.isPrototypeOf, B = r.defineProperty, j = [], F = r.getOwnPropertyDescriptor, I = r.getOwnPropertyNames, q = r.getPrototypeOf, R = r.setPrototypeOf, U = !!r.__proto__, W = "__dreCEv1", X = e.customElements, V = !/^force/.test(t.type) && !!(X && X.define && X.get && X.whenDefined), $ = r.create || r, J = e.Map || function () { var t = [], n = [], r; return { get: function (e) { return n[_.call(t, e)]; }, set: function (e, i) { r = _.call(t, e), r < 0 ? n[t.push(e) - 1] = i : n[r] = i; } }; }, K = e.Promise || function (e) { function i(e) { n = !0; while (t.length)
t.shift()(e); } var t = [], n = !1, r = { "catch": function () { return r; }, then: function (e) { return t.push(e), n && setTimeout(i, 1), r; } }; return e(i), r; }, Q = !1, G = $(null), Y = $(null), Z = new J, et = function (e) { return e.toLowerCase(); }, tt = r.create || function sn(e) { return e ? (sn.prototype = e, new sn) : this; }, nt = R || (U ? function (e, t) { return e.__proto__ = t, e; } : I && F ? function () { function e(e, t) { for (var n, r = I(t), i = 0, s = r.length; i < s; i++)
n = r[i], P.call(e, n) || B(e, n, F(t, n)); } return function (t, n) { do
e(t, n);
while ((n = q(n)) && !H.call(n, t)); return t; }; }() : function (e, t) { for (var n in t)
e[n] = t[n]; return e; }), rt = e.MutationObserver || e.WebKitMutationObserver, it = (e.HTMLElement || e.Element || e.Node).prototype, st = !H.call(it, M), ot = st ? function (e, t, n) { return e[t] = n.value, e; } : B, ut = st ? function (e) { return e.nodeType === 1; } : function (e) { return H.call(it, e); }, at = st && [], ft = it.attachShadow, lt = it.cloneNode, ct = it.dispatchEvent, ht = it.getAttribute, pt = it.hasAttribute, dt = it.removeAttribute, vt = it.setAttribute, mt = n.createElement, gt = mt, yt = rt && { attributes: !0, characterData: !0, attributeOldValue: !0 }, bt = rt || function (e) { Nt = !1, M.removeEventListener(E, bt); }, wt, Et = 0, St = s in n && !/^force-all/.test(t.type), xt = !0, Tt = !1, Nt = !0, Ct = !0, kt = !0, Lt, At, Ot, Mt, _t, Dt, Pt; St || (R || U ? (Dt = function (e, t) { H.call(t, e) || Xt(e, t); }, Pt = Xt) : (Dt = function (e, t) { e[o] || (e[o] = r(!0), Xt(e, t)); }, Pt = Dt), st ? (Nt = !1, function () { var e = F(it, u), t = e.value, n = function (e) { var t = new CustomEvent(E, { bubbles: !0 }); t.attrName = e, t.prevValue = ht.call(this, e), t.newValue = null, t[w] = t.attrChange = 2, dt.call(this, e), ct.call(this, t); }, r = function (e, t) { var n = pt.call(this, e), r = n && ht.call(this, e), i = new CustomEvent(E, { bubbles: !0 }); vt.call(this, e, t), i.attrName = e, i.prevValue = n ? r : null, i.newValue = t, n ? i[b] = i.attrChange = 1 : i[y] = i.attrChange = 0, ct.call(this, i); }, i = function (e) { var t = e.currentTarget, n = t[o], r = e.propertyName, i; n.hasOwnProperty(r) && (n = n[r], i = new CustomEvent(E, { bubbles: !0 }), i.attrName = n.name, i.prevValue = n.value || null, i.newValue = n.value = t[r] || null, i.prevValue == null ? i[y] = i.attrChange = 0 : i[b] = i.attrChange = 1, ct.call(t, i)); }; e.value = function (e, s, u) { e === E && this[h] && this.setAttribute !== r && (this[o] = { className: { name: "class", value: this.className } }, this.setAttribute = r, this.removeAttribute = n, t.call(this, "propertychange", i)), t.call(this, e, s, u); }, B(it, u, e); }()) : rt || (M[u](E, bt), M.setAttribute(o, 1), M.removeAttribute(o), Nt && (Lt = function (e) { var t = this, n, r, i; if (t === e.target) {
n = t[o], t[o] = r = Ot(t);
for (i in r) {
if (!(i in n))
return At(0, t, i, n[i], r[i], y);
if (r[i] !== n[i])
return At(1, t, i, n[i], r[i], b);
}
for (i in n)
if (!(i in r))
return At(2, t, i, n[i], r[i], w);
} }, At = function (e, t, n, r, i, s) { var o = { attrChange: e, currentTarget: t, attrName: n, prevValue: r, newValue: i }; o[s] = e, Rt(o); }, Ot = function (e) { for (var t, n, r = {}, i = e.attributes, s = 0, o = i.length; s < o; s++)
t = i[s], n = t.name, n !== "setAttribute" && (r[n] = t.value); return r; })), n[s] = function (t, r) { p = t.toUpperCase(), xt && (xt = !1, rt ? (Mt = function (e, t) { function n(e, t) { for (var n = 0, r = e.length; n < r; t(e[n++]))
; } return new rt(function (r) { for (var i, s, o, u = 0, a = r.length; u < a; u++)
i = r[u], i.type === "childList" ? (n(i.addedNodes, e), n(i.removedNodes, t)) : (s = i.target, kt && s[h] && i.attributeName !== "style" && (o = ht.call(s, i.attributeName), o !== i.oldValue && s[h](i.attributeName, i.oldValue, o))); }); }(Ft(a), Ft(l)), _t = function (e) { return Mt.observe(e, { childList: !0, subtree: !0 }), e; }, _t(n), ft && (it.attachShadow = function () { return _t(ft.apply(this, arguments)); })) : (wt = [], n[u]("DOMNodeInserted", Ut(a)), n[u]("DOMNodeRemoved", Ut(l))), n[u](S, zt), n[u]("readystatechange", zt), it.cloneNode = function (e) { var t = lt.call(this, !!e), n = It(t); return -1 < n && Pt(t, A[n]), e && O.length && jt(t.querySelectorAll(O)), t; }); if (Tt)
return Tt = !1; -2 < _.call(L, N + p) + _.call(L, T + p) && $t(t); if (!C.test(p) || -1 < _.call(k, p))
throw new Error("The type " + t + " is invalid"); var i = function () { return o ? n.createElement(f, p) : n.createElement(f); }, s = r || D, o = P.call(s, c), f = o ? r[c].toUpperCase() : p, p, d; return o && -1 < _.call(L, T + f) && $t(f), d = L.push((o ? N : T) + p) - 1, O = O.concat(O.length ? "," : "", o ? f + '[is="' + t.toLowerCase() + '"]' : f), i.prototype = A[d] = P.call(s, "prototype") ? s.prototype : tt(it), O.length && Bt(n.querySelectorAll(O), a), i; }, n.createElement = gt = function (e, t) { var r = Yt(t), i = r ? mt.call(n, e, et(r)) : mt.call(n, e), s = "" + e, o = _.call(L, (r ? N : T) + (r || s).toUpperCase()), u = -1 < o; return r && (i.setAttribute("is", r = r.toLowerCase()), u && (u = qt(s.toUpperCase(), r))), kt = !n.createElement.innerHTMLHelper, u && Pt(i, A[o]), i; }), Kt.prototype = { constructor: Kt, define: V ? function (e, t, n) { if (n)
Qt(e, t, n);
else {
var r = e.toUpperCase();
G[r] = { constructor: t, create: [r] }, Z.set(t, r), X.define(e, t);
} } : Qt, get: V ? function (e) { return X.get(e) || Gt(e); } : Gt, whenDefined: V ? function (e) { return K.race([X.whenDefined(e), en(e)]); } : en }; if (!X || /^force/.test(t.type))
tn();
else if (!t.noBuiltIn)
try {
(function (t, r, i) { r[c] = "a", t.prototype = tt(HTMLAnchorElement.prototype), t.prototype.constructor = t, e.customElements.define(i, t, r); if (ht.call(n.createElement("a", { is: i }), "is") !== i || V && ht.call(new t, "is") !== i)
throw r; })(function on() { return Reflect.construct(HTMLAnchorElement, [], on); }, {}, "document-register-element-a");
}
catch (nn) {
tn();
} if (!t.noBuiltIn)
try {
mt.call(n, "a", "a");
}
catch (rn) {
et = function (e) { return { is: e.toLowerCase() }; };
} })(window);
}
/*!
Element.closest and Element.matches
https://github.com/jonathantneal/closest
Creative Commons Zero v1.0 Universal
*/
(function (a) { "function" !== typeof a.matches && (a.matches = a.msMatchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || function (a) { a = (this.document || this.ownerDocument).querySelectorAll(a); for (var b = 0; a[b] && a[b] !== this;)
++b; return !!a[b]; }); "function" !== typeof a.closest && (a.closest = function (a) { for (var b = this; b && 1 === b.nodeType;) {
if (b.matches(a))
return b;
b = b.parentNode;
} return null; }); })(window.Element.prototype);
/*!
Element.remove()
https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/remove
*/
(function (b) { b.forEach(function (a) { a.hasOwnProperty("remove") || Object.defineProperty(a, "remove", { configurable: !0, enumerable: !0, writable: !0, value: function () { null !== this.parentNode && this.parentNode.removeChild(this); } }); }); })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
}
exports.applyPolyfill = applyPolyfill;
Object.defineProperty(exports, '__esModule', { value: true });
});
+24
View File
File diff suppressed because one or more lines are too long
+189
View File
@@ -0,0 +1,189 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle('fetch.js', ['exports'], function (exports) {
var h = window.DocsSite.h;
function applyPolyfill(window, document) {
(function (e) {
function l(a) { "string" !== typeof a && (a = String(a)); if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(a))
throw new TypeError("Invalid character in header field name"); return a.toLowerCase(); }
function q(a) { "string" !== typeof a && (a = String(a)); return a; }
function n(a) { var b = { next: function () { var b = a.shift(); return { done: void 0 === b, value: b }; } }; g.iterable && (b[Symbol.iterator] = function () { return b; }); return b; }
function d(a) {
this.map = {};
a instanceof d ? a.forEach(function (a, c) { this.append(c, a); }, this) : Array.isArray(a) ?
a.forEach(function (a) { this.append(a[0], a[1]); }, this) : a && Object.getOwnPropertyNames(a).forEach(function (b) { this.append(b, a[b]); }, this);
}
function p(a) { if (a.bodyUsed)
return Promise.reject(new TypeError("Already read")); a.bodyUsed = !0; }
function r(a) { return new Promise(function (b, c) { a.onload = function () { b(a.result); }; a.onerror = function () { c(a.error); }; }); }
function w(a) { var b = new FileReader, c = r(b); b.readAsArrayBuffer(a); return c; }
function x(a) {
a = new Uint8Array(a);
for (var b = Array(a.length), c = 0; c < a.length; c++)
b[c] = String.fromCharCode(a[c]);
return b.join("");
}
function t(a) { if (a.slice)
return a.slice(0); var b = new Uint8Array(a.byteLength); b.set(new Uint8Array(a)); return b.buffer; }
function u() {
this.bodyUsed = !1;
this._initBody = function (a) {
if (this._bodyInit = a)
if ("string" === typeof a)
this._bodyText = a;
else if (g.blob && Blob.prototype.isPrototypeOf(a))
this._bodyBlob = a;
else if (g.formData && FormData.prototype.isPrototypeOf(a))
this._bodyFormData = a;
else if (g.searchParams && URLSearchParams.prototype.isPrototypeOf(a))
this._bodyText = a.toString();
else if (g.arrayBuffer &&
g.blob && y(a))
this._bodyArrayBuffer = t(a.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer]);
else if (g.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(a) || z(a)))
this._bodyArrayBuffer = t(a);
else
throw Error("unsupported BodyInit type");
else
this._bodyText = "";
this.headers.get("content-type") || ("string" === typeof a ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : g.searchParams && URLSearchParams.prototype.isPrototypeOf(a) &&
this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
};
g.blob && (this.blob = function () { var a = p(this); if (a)
return a; if (this._bodyBlob)
return Promise.resolve(this._bodyBlob); if (this._bodyArrayBuffer)
return Promise.resolve(new Blob([this._bodyArrayBuffer])); if (this._bodyFormData)
throw Error("could not read FormData body as blob"); return Promise.resolve(new Blob([this._bodyText])); }, this.arrayBuffer = function () {
return this._bodyArrayBuffer ? p(this) || Promise.resolve(this._bodyArrayBuffer) :
this.blob().then(w);
});
this.text = function () { var a = p(this); if (a)
return a; if (this._bodyBlob) {
a = this._bodyBlob;
var b = new FileReader, c = r(b);
b.readAsText(a);
return c;
} if (this._bodyArrayBuffer)
return Promise.resolve(x(this._bodyArrayBuffer)); if (this._bodyFormData)
throw Error("could not read FormData body as text"); return Promise.resolve(this._bodyText); };
g.formData && (this.formData = function () { return this.text().then(A); });
this.json = function () { return this.text().then(JSON.parse); };
return this;
}
function k(a, b) {
b =
b || {};
var c = b.body;
if (a instanceof k) {
if (a.bodyUsed)
throw new TypeError("Already read");
this.url = a.url;
this.credentials = a.credentials;
b.headers || (this.headers = new d(a.headers));
this.method = a.method;
this.mode = a.mode;
c || null == a._bodyInit || (c = a._bodyInit, a.bodyUsed = !0);
}
else
this.url = String(a);
this.credentials = b.credentials || this.credentials || "omit";
if (b.headers || !this.headers)
this.headers = new d(b.headers);
var v = b.method || this.method || "GET", g = v.toUpperCase();
this.method = -1 < B.indexOf(g) ? g : v;
this.mode =
b.mode || this.mode || null;
this.referrer = null;
if (("GET" === this.method || "HEAD" === this.method) && c)
throw new TypeError("Body not allowed for GET or HEAD requests");
this._initBody(c);
}
function A(a) { var b = new FormData; a.trim().split("&").forEach(function (a) { if (a) {
var c = a.split("=");
a = c.shift().replace(/\+/g, " ");
c = c.join("=").replace(/\+/g, " ");
b.append(decodeURIComponent(a), decodeURIComponent(c));
} }); return b; }
function C(a) {
var b = new d;
a.replace(/\r?\n[\t ]+/g, " ").split(/\r?\n/).forEach(function (a) {
var c = a.split(":");
if (a = c.shift().trim())
c = c.join(":").trim(), b.append(a, c);
});
return b;
}
function h(a, b) { b || (b = {}); this.type = "default"; this.status = void 0 === b.status ? 200 : b.status; this.ok = 200 <= this.status && 300 > this.status; this.statusText = "statusText" in b ? b.statusText : "OK"; this.headers = new d(b.headers); this.url = b.url || ""; this._initBody(a); }
if (!e.fetch) {
var D = "Symbol" in e && "iterator" in Symbol, m;
if (m = "FileReader" in e && "Blob" in e)
try {
new Blob, m = !0;
}
catch (a) {
m = !1;
}
var g = { searchParams: "URLSearchParams" in e, iterable: D,
blob: m, formData: "FormData" in e, arrayBuffer: "ArrayBuffer" in e };
if (g.arrayBuffer) {
var E = "[object Int8Array];[object Uint8Array];[object Uint8ClampedArray];[object Int16Array];[object Uint16Array];[object Int32Array];[object Uint32Array];[object Float32Array];[object Float64Array]".split(";");
var y = function (a) { return a && DataView.prototype.isPrototypeOf(a); };
var z = ArrayBuffer.isView || function (a) { return a && -1 < E.indexOf(Object.prototype.toString.call(a)); };
}
d.prototype.append = function (a, b) {
a = l(a);
b = q(b);
var c = this.map[a];
this.map[a] = c ? c + "," + b : b;
};
d.prototype["delete"] = function (a) { delete this.map[l(a)]; };
d.prototype.get = function (a) { a = l(a); return this.has(a) ? this.map[a] : null; };
d.prototype.has = function (a) { return this.map.hasOwnProperty(l(a)); };
d.prototype.set = function (a, b) { this.map[l(a)] = q(b); };
d.prototype.forEach = function (a, b) { for (var c in this.map)
this.map.hasOwnProperty(c) && a.call(b, this.map[c], c, this); };
d.prototype.keys = function () { var a = []; this.forEach(function (b, c) { a.push(c); }); return n(a); };
d.prototype.values =
function () { var a = []; this.forEach(function (b) { a.push(b); }); return n(a); };
d.prototype.entries = function () { var a = []; this.forEach(function (b, c) { a.push([c, b]); }); return n(a); };
g.iterable && (d.prototype[Symbol.iterator] = d.prototype.entries);
var B = "DELETE GET HEAD OPTIONS POST PUT".split(" ");
k.prototype.clone = function () { return new k(this, { body: this._bodyInit }); };
u.call(k.prototype);
u.call(h.prototype);
h.prototype.clone = function () {
return new h(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new d(this.headers),
url: this.url });
};
h.error = function () { var a = new h(null, { status: 0, statusText: "" }); a.type = "error"; return a; };
var F = [301, 302, 303, 307, 308];
h.redirect = function (a, b) { if (-1 === F.indexOf(b))
throw new RangeError("Invalid status code"); return new h(null, { status: b, headers: { location: a } }); };
e.Headers = d;
e.Request = k;
e.Response = h;
e.fetch = function (a, b) {
return new Promise(function (c, d) {
var e = new k(a, b), f = new XMLHttpRequest;
f.onload = function () {
var a = { status: f.status, statusText: f.statusText, headers: C(f.getAllResponseHeaders() ||
"") };
a.url = "responseURL" in f ? f.responseURL : a.headers.get("X-Request-URL");
c(new h("response" in f ? f.response : f.responseText, a));
};
f.onerror = function () { d(new TypeError("Network request failed")); };
f.ontimeout = function () { d(new TypeError("Network request failed")); };
f.open(e.method, e.url, !0);
"include" === e.credentials ? f.withCredentials = !0 : "omit" === e.credentials && (f.withCredentials = !1);
"responseType" in f && g.blob && (f.responseType = "blob");
e.headers.forEach(function (a, b) { f.setRequestHeader(b, a); });
f.send("undefined" ===
typeof e._bodyInit ? null : e._bodyInit);
});
};
e.fetch.polyfill = !0;
}
})("undefined" !== typeof self ? self : window);
}
exports.applyPolyfill = applyPolyfill;
Object.defineProperty(exports, '__esModule', { value: true });
});
+25
View File
@@ -0,0 +1,25 @@
/*! Built with http://stenciljs.com */
const { h } = window.DocsSite;
function applyPolyfill(window, document) {/*!
whatwg-fetch, 2.0.3
https://github.com/github/fetch
Copyright (c) 2014-2016 GitHub, Inc. - MIT License
*/
(function(e){function l(a){"string"!==typeof a&&(a=String(a));if(/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(a))throw new TypeError("Invalid character in header field name");return a.toLowerCase()}function q(a){"string"!==typeof a&&(a=String(a));return a}function n(a){var b={next:function(){var b=a.shift();return {done:void 0===b,value:b}}};g.iterable&&(b[Symbol.iterator]=function(){return b});return b}function d(a){this.map={};a instanceof d?a.forEach(function(a,c){this.append(c,a);},this):Array.isArray(a)?
a.forEach(function(a){this.append(a[0],a[1]);},this):a&&Object.getOwnPropertyNames(a).forEach(function(b){this.append(b,a[b]);},this);}function p(a){if(a.bodyUsed)return Promise.reject(new TypeError("Already read"));a.bodyUsed=!0;}function r(a){return new Promise(function(b,c){a.onload=function(){b(a.result);};a.onerror=function(){c(a.error);};})}function w(a){var b=new FileReader,c=r(b);b.readAsArrayBuffer(a);return c}function x(a){a=new Uint8Array(a);for(var b=Array(a.length),c=0;c<a.length;c++)b[c]=String.fromCharCode(a[c]);
return b.join("")}function t(a){if(a.slice)return a.slice(0);var b=new Uint8Array(a.byteLength);b.set(new Uint8Array(a));return b.buffer}function u(){this.bodyUsed=!1;this._initBody=function(a){if(this._bodyInit=a)if("string"===typeof a)this._bodyText=a;else if(g.blob&&Blob.prototype.isPrototypeOf(a))this._bodyBlob=a;else if(g.formData&&FormData.prototype.isPrototypeOf(a))this._bodyFormData=a;else if(g.searchParams&&URLSearchParams.prototype.isPrototypeOf(a))this._bodyText=a.toString();else if(g.arrayBuffer&&
g.blob&&y(a))this._bodyArrayBuffer=t(a.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else if(g.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(a)||z(a)))this._bodyArrayBuffer=t(a);else throw Error("unsupported BodyInit type");else this._bodyText="";this.headers.get("content-type")||("string"===typeof a?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g.searchParams&&URLSearchParams.prototype.isPrototypeOf(a)&&
this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"));};g.blob&&(this.blob=function(){var a=p(this);if(a)return a;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):
this.blob().then(w)});this.text=function(){var a=p(this);if(a)return a;if(this._bodyBlob){a=this._bodyBlob;var b=new FileReader,c=r(b);b.readAsText(a);return c}if(this._bodyArrayBuffer)return Promise.resolve(x(this._bodyArrayBuffer));if(this._bodyFormData)throw Error("could not read FormData body as text");return Promise.resolve(this._bodyText)};g.formData&&(this.formData=function(){return this.text().then(A)});this.json=function(){return this.text().then(JSON.parse)};return this}function k(a,b){b=
b||{};var c=b.body;if(a instanceof k){if(a.bodyUsed)throw new TypeError("Already read");this.url=a.url;this.credentials=a.credentials;b.headers||(this.headers=new d(a.headers));this.method=a.method;this.mode=a.mode;c||null==a._bodyInit||(c=a._bodyInit,a.bodyUsed=!0);}else this.url=String(a);this.credentials=b.credentials||this.credentials||"omit";if(b.headers||!this.headers)this.headers=new d(b.headers);var v=b.method||this.method||"GET",g=v.toUpperCase();this.method=-1<B.indexOf(g)?g:v;this.mode=
b.mode||this.mode||null;this.referrer=null;if(("GET"===this.method||"HEAD"===this.method)&&c)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(c);}function A(a){var b=new FormData;a.trim().split("&").forEach(function(a){if(a){var c=a.split("=");a=c.shift().replace(/\+/g," ");c=c.join("=").replace(/\+/g," ");b.append(decodeURIComponent(a),decodeURIComponent(c));}});return b}function C(a){var b=new d;a.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(a){var c=
a.split(":");if(a=c.shift().trim())c=c.join(":").trim(),b.append(a,c);});return b}function h(a,b){b||(b={});this.type="default";this.status=void 0===b.status?200:b.status;this.ok=200<=this.status&&300>this.status;this.statusText="statusText"in b?b.statusText:"OK";this.headers=new d(b.headers);this.url=b.url||"";this._initBody(a);}if(!e.fetch){var D="Symbol"in e&&"iterator"in Symbol,m;if(m="FileReader"in e&&"Blob"in e)try{new Blob,m=!0;}catch(a){m=!1;}var g={searchParams:"URLSearchParams"in e,iterable:D,
blob:m,formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer){var E="[object Int8Array];[object Uint8Array];[object Uint8ClampedArray];[object Int16Array];[object Uint16Array];[object Int32Array];[object Uint32Array];[object Float32Array];[object Float64Array]".split(";");var y=function(a){return a&&DataView.prototype.isPrototypeOf(a)};var z=ArrayBuffer.isView||function(a){return a&&-1<E.indexOf(Object.prototype.toString.call(a))};}d.prototype.append=function(a,b){a=l(a);b=q(b);var c=
this.map[a];this.map[a]=c?c+","+b:b;};d.prototype["delete"]=function(a){delete this.map[l(a)];};d.prototype.get=function(a){a=l(a);return this.has(a)?this.map[a]:null};d.prototype.has=function(a){return this.map.hasOwnProperty(l(a))};d.prototype.set=function(a,b){this.map[l(a)]=q(b);};d.prototype.forEach=function(a,b){for(var c in this.map)this.map.hasOwnProperty(c)&&a.call(b,this.map[c],c,this);};d.prototype.keys=function(){var a=[];this.forEach(function(b,c){a.push(c);});return n(a)};d.prototype.values=
function(){var a=[];this.forEach(function(b){a.push(b);});return n(a)};d.prototype.entries=function(){var a=[];this.forEach(function(b,c){a.push([c,b]);});return n(a)};g.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);var B="DELETE GET HEAD OPTIONS POST PUT".split(" ");k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};u.call(k.prototype);u.call(h.prototype);h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),
url:this.url})};h.error=function(){var a=new h(null,{status:0,statusText:""});a.type="error";return a};var F=[301,302,303,307,308];h.redirect=function(a,b){if(-1===F.indexOf(b))throw new RangeError("Invalid status code");return new h(null,{status:b,headers:{location:a}})};e.Headers=d;e.Request=k;e.Response=h;e.fetch=function(a,b){return new Promise(function(c,d){var e=new k(a,b),f=new XMLHttpRequest;f.onload=function(){var a={status:f.status,statusText:f.statusText,headers:C(f.getAllResponseHeaders()||
"")};a.url="responseURL"in f?f.responseURL:a.headers.get("X-Request-URL");c(new h("response"in f?f.response:f.responseText,a));};f.onerror=function(){d(new TypeError("Network request failed"));};f.ontimeout=function(){d(new TypeError("Network request failed"));};f.open(e.method,e.url,!0);"include"===e.credentials?f.withCredentials=!0:"omit"===e.credentials&&(f.withCredentials=!1);"responseType"in f&&g.blob&&(f.responseType="blob");e.headers.forEach(function(a,b){f.setRequestHeader(b,a);});f.send("undefined"===
typeof e._bodyInit?null:e._bodyInit);})};e.fetch.polyfill=!0;}})("undefined"!==typeof self?self:window);}
export { applyPolyfill };
+2
View File
@@ -0,0 +1,2 @@
/*! 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};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("fonk1mfi",["exports"],function(e){var n=window.DocsSite.h,o=function(){function e(){}return e.prototype.render=function(){return n("main",null,n("div",{class:"container"},n("h1",null,"Woops! We can't find the page your looking for."),n("p",null,"Head on back to the ",n("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),n("footer-bar",null))},Object.defineProperty(e,"is",{get:function(){return"notfound-page"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"},enumerable:!0,configurable:!0}),e}();e.NotfoundPage=o,Object.defineProperty(e,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! 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};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("fonk1mfi",["exports"],function(e){var n=window.DocsSite.h,o=function(){function e(){}return e.prototype.render=function(){return n("main",null,n("div",{class:"container"},n("h1",null,"Woops! We can't find the page your looking for."),n("p",null,"Head on back to the ",n("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),n("footer-bar",null))},Object.defineProperty(e,"is",{get:function(){return"notfound-page"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"},enumerable:!0,configurable:!0}),e}();e.NotfoundPage=o,Object.defineProperty(e,"__esModule",{value:!0})});
+27
View File
@@ -0,0 +1,27 @@
/*! Built with http://stenciljs.com */
const { h } = window.DocsSite;
class FooterBar {
render() {
return (h("footer", null,
h("div", { class: "container" },
h("div", { class: "footer__open-source" },
h("a", { href: "http://ionicframework.com/", title: "IonicFramework.com", rel: "noopener" },
h("img", { src: "/assets/img/ionic-os-logo.png", alt: "Ionic Open Source Logo" })),
h("p", null,
"Released under ",
h("span", { id: "mit" }, "MIT License"),
" | Copyright @ ",
(new Date()).getFullYear())),
h("div", { class: "footer-menu" },
h("a", { href: "cheatsheet.html" }, "Cheatsheet"),
h("a", { href: "/v1" }, "v1"),
h("a", { href: "/v2" }, "v2"),
h("a", { href: "https://ionicframework.com/docs/ionicons/" }, "v3"),
h("a", { href: "https://ionicframework.com/" }, "Ionic Framework")))));
}
static get is() { return "footer-bar"; }
static get style() { return "footer-bar footer {\n width: 100%;\n background: var(--color-white-lilac);\n -webkit-box-flex: 0;\n -ms-flex: 0 0 8em;\n flex: 0 0 8em;\n /* margin-top: 100px; */ }\n\nfooter-bar .container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n padding-top: 40px;\n padding-bottom: 40px; }\n\nfooter-bar img {\n width: 50%; }\n\nfooter-bar p {\n margin-top: 0;\n margin-bottom: 0;\n color: var(--color-cadet-blue);\n font-size: 10px;\n letter-spacing: 0; }\n\nfooter-bar .footer-menu a {\n -webkit-transition: color 0.3s;\n transition: color 0.3s;\n font-size: 11px;\n font-weight: 600;\n text-decoration: none;\n color: var(--color-gull-gray); }\n\nfooter-bar .footer-menu a:hover {\n color: var(--color-shark); }\n\nfooter-bar .footer-menu a + a {\n margin-left: 18px; }\n\n\@media screen and (max-width: 768px) {\n footer-bar .container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n text-align: center; }\n footer-bar .footer-menu {\n margin-bottom: 36px; } }"; }
}
export { FooterBar };
+24
View File
@@ -0,0 +1,24 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle('footer-bar', ['exports'], function (exports) {
var h = window.DocsSite.h;
var FooterBar = /** @class */ (function () {
function FooterBar() {
}
FooterBar.prototype.render = function () {
return (h("footer", null, h("div", { class: "container" }, h("div", { class: "footer__open-source" }, h("a", { href: "http://ionicframework.com/", title: "IonicFramework.com", rel: "noopener" }, h("img", { src: "/assets/img/ionic-os-logo.png", alt: "Ionic Open Source Logo" })), h("p", null, "Released under ", h("span", { id: "mit" }, "MIT License"), " | Copyright @ ", (new Date()).getFullYear())), h("div", { class: "footer-menu" }, h("a", { href: "cheatsheet.html" }, "Cheatsheet"), h("a", { href: "/v1" }, "v1"), h("a", { href: "/v2" }, "v2"), h("a", { href: "https://ionicframework.com/docs/ionicons/" }, "v3"), h("a", { href: "https://ionicframework.com/" }, "Ionic Framework")))));
};
Object.defineProperty(FooterBar, "is", {
get: function () { return "footer-bar"; },
enumerable: true,
configurable: true
});
Object.defineProperty(FooterBar, "style", {
get: function () { return "footer-bar footer {\n width: 100%;\n background: var(--color-white-lilac);\n -webkit-box-flex: 0;\n -ms-flex: 0 0 8em;\n flex: 0 0 8em;\n /* margin-top: 100px; */ }\n\nfooter-bar .container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n padding-top: 40px;\n padding-bottom: 40px; }\n\nfooter-bar img {\n width: 50%; }\n\nfooter-bar p {\n margin-top: 0;\n margin-bottom: 0;\n color: var(--color-cadet-blue);\n font-size: 10px;\n letter-spacing: 0; }\n\nfooter-bar .footer-menu a {\n -webkit-transition: color 0.3s;\n transition: color 0.3s;\n font-size: 11px;\n font-weight: 600;\n text-decoration: none;\n color: var(--color-gull-gray); }\n\nfooter-bar .footer-menu a:hover {\n color: var(--color-shark); }\n\nfooter-bar .footer-menu a + a {\n margin-left: 18px; }\n\n\@media screen and (max-width: 768px) {\n footer-bar .container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n text-align: center; }\n footer-bar .footer-menu {\n margin-bottom: 36px; } }"; },
enumerable: true,
configurable: true
});
return FooterBar;
}());
exports.FooterBar = FooterBar;
Object.defineProperty(exports, '__esModule', { value: true });
});
+27
View File
@@ -0,0 +1,27 @@
/*! Built with http://stenciljs.com */
const { h } = window.DocsSite;
class FooterBar {
render() {
return (h("footer", null,
h("div", { class: "container" },
h("div", { class: "footer__open-source" },
h("a", { href: "http://ionicframework.com/", title: "IonicFramework.com", rel: "noopener" },
h("img", { src: "/assets/img/ionic-os-logo.png", alt: "Ionic Open Source Logo" })),
h("p", null,
"Released under ",
h("span", { id: "mit" }, "MIT License"),
" | Copyright @ ",
(new Date()).getFullYear())),
h("div", { class: "footer-menu" },
h("a", { href: "cheatsheet.html" }, "Cheatsheet"),
h("a", { href: "/v1" }, "v1"),
h("a", { href: "/v2" }, "v2"),
h("a", { href: "https://ionicframework.com/docs/ionicons/" }, "v3"),
h("a", { href: "https://ionicframework.com/" }, "Ionic Framework")))));
}
static get is() { return "footer-bar"; }
static get style() { return "footer-bar footer {\n width: 100%;\n background: var(--color-white-lilac);\n -webkit-box-flex: 0;\n -ms-flex: 0 0 8em;\n flex: 0 0 8em;\n /* margin-top: 100px; */ }\n\nfooter-bar .container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n padding-top: 40px;\n padding-bottom: 40px; }\n\nfooter-bar img {\n width: 50%; }\n\nfooter-bar p {\n margin-top: 0;\n margin-bottom: 0;\n color: var(--color-cadet-blue);\n font-size: 10px;\n letter-spacing: 0; }\n\nfooter-bar .footer-menu a {\n -webkit-transition: color 0.3s;\n transition: color 0.3s;\n font-size: 11px;\n font-weight: 600;\n text-decoration: none;\n color: var(--color-gull-gray); }\n\nfooter-bar .footer-menu a:hover {\n color: var(--color-shark); }\n\nfooter-bar .footer-menu a + a {\n margin-left: 18px; }\n\n\@media screen and (max-width: 768px) {\n footer-bar .container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n text-align: center; }\n footer-bar .footer-menu {\n margin-bottom: 36px; } }"; }
}
export { FooterBar };
+24
View File
@@ -0,0 +1,24 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle('footer-bar', ['exports'], function (exports) {
var h = window.DocsSite.h;
var FooterBar = /** @class */ (function () {
function FooterBar() {
}
FooterBar.prototype.render = function () {
return (h("footer", null, h("div", { class: "container" }, h("div", { class: "footer__open-source" }, h("a", { href: "http://ionicframework.com/", title: "IonicFramework.com", rel: "noopener" }, h("img", { src: "/assets/img/ionic-os-logo.png", alt: "Ionic Open Source Logo" })), h("p", null, "Released under ", h("span", { id: "mit" }, "MIT License"), " | Copyright @ ", (new Date()).getFullYear())), h("div", { class: "footer-menu" }, h("a", { href: "cheatsheet.html" }, "Cheatsheet"), h("a", { href: "/v1" }, "v1"), h("a", { href: "/v2" }, "v2"), h("a", { href: "https://ionicframework.com/docs/ionicons/" }, "v3"), h("a", { href: "https://ionicframework.com/" }, "Ionic Framework")))));
};
Object.defineProperty(FooterBar, "is", {
get: function () { return "footer-bar"; },
enumerable: true,
configurable: true
});
Object.defineProperty(FooterBar, "style", {
get: function () { return "footer-bar footer {\n width: 100%;\n background: var(--color-white-lilac);\n -webkit-box-flex: 0;\n -ms-flex: 0 0 8em;\n flex: 0 0 8em;\n /* margin-top: 100px; */ }\n\nfooter-bar .container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n padding-top: 40px;\n padding-bottom: 40px; }\n\nfooter-bar img {\n width: 50%; }\n\nfooter-bar p {\n margin-top: 0;\n margin-bottom: 0;\n color: var(--color-cadet-blue);\n font-size: 10px;\n letter-spacing: 0; }\n\nfooter-bar .footer-menu a {\n -webkit-transition: color 0.3s;\n transition: color 0.3s;\n font-size: 11px;\n font-weight: 600;\n text-decoration: none;\n color: var(--color-gull-gray); }\n\nfooter-bar .footer-menu a:hover {\n color: var(--color-shark); }\n\nfooter-bar .footer-menu a + a {\n margin-left: 18px; }\n\n\@media screen and (max-width: 768px) {\n footer-bar .container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n text-align: center; }\n footer-bar .footer-menu {\n margin-bottom: 36px; } }"; },
enumerable: true,
configurable: true
});
return FooterBar;
}());
exports.FooterBar = FooterBar;
Object.defineProperty(exports, '__esModule', { value: true });
});
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+71
View File
@@ -0,0 +1,71 @@
/*! 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: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: 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::placeholder {\n color: var(--color-heather); }"; }
}
export { IconSearch };
+97
View File
@@ -0,0 +1,97 @@
/*! 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: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: 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::placeholder {\n color: var(--color-heather); }"; },
enumerable: true,
configurable: true
});
return IconSearch;
}());
exports.IconSearch = IconSearch;
Object.defineProperty(exports, '__esModule', { value: true });
});

Some files were not shown because too many files have changed in this diff Show More