Compare commits

...
44 Commits
Author SHA1 Message Date
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
108 changed files with 1309 additions and 11654 deletions
+1
View File
@@ -0,0 +1 @@
package-lock=false
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,5 +1,5 @@
/*!
* Built with http://stenciljs.com
* 2018-05-26T19:51:49
* 2018-09-14T15:59:18
*/
!function(e,t,r,o,s,i,n,c,a,l,u,d,h,p){for((u=e.DocsSite=e.DocsSite||{}).components=a,(h=a.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=h.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("DocsSite"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var o=e["s-apps"],s=0,i=0;i<o.length;i++)if(e[o[i]].componentOnReady){if(e[o[i]].componentOnReady(t,r))return;s++}if(s<o.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,l),s=s||u.resourcesUrl,d=(h=t.querySelectorAll("script")).length-1;d>=0&&!(p=h[d]).src&&!p.hasAttribute("data-resources-url");d--);h=p.getAttribute("data-resources-url"),!s&&h&&(s=h),!s&&p.src&&(s=(h=p.src.split("/").slice(0,-1)).join("/")+(h.length?"/":"")+"docssite/"),d=t.createElement("script"),function(e,t,r,o){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=s+"docssite.ytkmt3kl.js":(d.src=s+"docssite.febxuvpw.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",s),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["footer-bar","js9iloau",1],["header-bar","tl7zuo9g",1,[["el",7],["isMobileMenuShown",5],["isSearchVisible",1,0,"is-search-visible",3],["isSticky",5],["query",1,0,1,2],["version",1,0,1,2]],0,[["window:scroll","handleScroll",0,1],["window:resize","handleResize",0,1]]],["icon-list","bjphfriz",1,[["data",1,0,1,1],["el",7],["isHeaderSearchVisible",5],["query",1,0,1,2],["selectedIcon",5],["selectedIconType",5]],0,[["body:keyup","escListener"],["body:click","handleBodyClicked"],["clearToast","handleClearToast"],["window:scroll","handleScroll",0,1]]],["icon-search","j5rbuqbp",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","tl7zuo9g",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","bjphfriz",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","d83fvjds",1],["stencil-route","tl7zuo9g",0,[["activeInGroup",5],["activeRouter",3,0,0,0,"activeRouter"],["component",1,0,1,2],["componentProps",1],["el",7],["exact",1,0,1,3],["group",1,0,1,2],["groupIndex",1,0,"group-index",4],["isServer",3,0,0,0,"isServer"],["location",3,0,0,0,"location"],["match",5],["queue",3,0,0,0,"queue"],["routeRender",1],["scrollTopOffset",1,0,"scroll-top-offset",4],["url",1,0,1,2]]],["stencil-route-link","gkczrv46",0,[["activeClass",1,0,"active-class",2],["activeRouter",3,0,0,0,"activeRouter"],["anchorClass",1,0,"anchor-class",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["custom",1,0,1,2],["exact",1,0,1,3],["match",5],["strict",1,0,1,3],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-router","tl7zuo9g",0,[["activeRouter",3,0,0,0,"activeRouter"],["historyType",1,0,"history-type",2],["match",5],["root",1,0,1,2],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","bjphfriz",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","dnu5bejp",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);
!function(e,t,o,r,s,i,a,n,c,l,u,d,h,p){for((u=e.DocsSite=e.DocsSite||{}).components=c,(h=c.map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=h.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),h=t.head.querySelector("meta[charset]"),t.head.insertBefore(d,h?h.nextSibling:t.head.firstChild)),function(e,t,o){(e["s-apps"]=e["s-apps"]||[]).push("DocsSite"),o.componentOnReady||(o.componentOnReady=function(){var t=this;function o(o){if(t.nodeName.indexOf("-")>0){for(var r=e["s-apps"],s=0,i=0;i<r.length;i++)if(e[r[i]].componentOnReady){if(e[r[i]].componentOnReady(t,o))return;s++}if(s<r.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,o])}o(null)}return e.Promise?new e.Promise(o):{then:o}})}(e,0,l),s=s||u.resourcesUrl,d=(h=t.querySelectorAll("script")).length-1;d>=0&&!(p=h[d]).src&&!p.hasAttribute("data-resources-url");d--);h=p.getAttribute("data-resources-url"),!s&&h&&(s=h),!s&&p.src&&(s=(h=p.src.split("/").slice(0,-1)).join("/")+(h.length?"/":"")+"docssite/"),d=t.createElement("script"),function(e,t,o,r){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in o)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=s+"docssite.dh6vyuov.js":(d.src=s+"docssite.bkr1uskx.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",s),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["footer-bar","3vkw131p",1],["header-bar","t1fpujbs",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","2osh7cvf",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","fbtnoaor",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",16],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","t1fpujbs",1,[["data",16],["isHeaderSearchVisible",16],["query",16]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","2osh7cvf",1,[["data",1,0,1,1],["el",64],["query",1,0,1,2]]],["notfound-page","fonk1mfi",1],["stencil-route","t1fpujbs",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","zkf4jnqe",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","t1fpujbs",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","t1fpujbs",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","2osh7cvf",1,[["el",64],["hadIconOnce",16],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",16],["touchEndY",16],["touchStartY",16]]],["usage-page","7jqm0oy7",1,[["data",1,0,1,1],["exampleIcon",16],["exampleType",16],["match",1],["queue",4,0,0,0,"queue"]]]],HTMLElement.prototype);
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
@@ -1,2 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("js9iloau",["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})});
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
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("array.js",["exports"],function(r){window,r.applyPolyfill=function(r,e){var t,n,o;Array.prototype.find||Object.defineProperty(Array.prototype,"find",{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("function"!=typeof r)throw new TypeError("predicate must be a function");for(var o=0;o<n;){var i=t[o];if(r.call(e,i,o,t))return i;o++}}}),Array.from||(Array.from=(t=Object.prototype.toString,n=function(r){return"function"==typeof r||"[object Function]"===t.call(r)},o=Math.pow(2,53)-1,function(r){var e=Object(r);if(null==r)throw new TypeError("Array.from requires an array-like object - not null or undefined");var t,i=1<arguments.length?arguments[1]:void 0;if(void 0!==i){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(t=arguments[2])}var a=Number(e.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),o);for(var l,f=n(this)?Object(new this(a)):Array(a),u=0;u<a;)l=e[u],f[u]=i?void 0===t?i(l,u):i.call(t,l,u):l,u+=1;return f.length=a,f})),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;for(var o,i,a=0|e,l=Math.max(0<=a?a:n-Math.abs(a),0);l<n;){if((o=t[l])===(i=r)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;l++}return!1}})},Object.defineProperty(r,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:r}=window.DocsSite;function t(r,t){var e,n,o;Array.prototype.find||Object.defineProperty(Array.prototype,"find",{writable:!0,configurable:!0,value:function(r,t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof r)throw new TypeError("predicate must be a function");for(var o=0;o<n;){var i=e[o];if(r.call(t,i,o,e))return i;o++}}}),Array.from||(Array.from=(e=Object.prototype.toString,n=function(r){return"function"==typeof r||"[object Function]"===e.call(r)},o=Math.pow(2,53)-1,function(r){var t=Object(r);if(null==r)throw new TypeError("Array.from requires an array-like object - not null or undefined");var e,i=1<arguments.length?arguments[1]:void 0;if(void 0!==i){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(e=arguments[2])}var a=Number(t.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),o);for(var f,u=n(this)?Object(new this(a)):Array(a),l=0;l<a;)f=t[l],u[l]=i?void 0===e?i(f,l):i.call(e,f,l):f,l+=1;return u.length=a,u})),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{writable:!0,configurable:!0,value:function(r,t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if(0===n)return!1;for(var o,i,a=0|t,f=Math.max(0<=a?a:n-Math.abs(a),0);f<n;){if((o=e[f])===(i=r)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;f++}return!1}})}export{t as applyPolyfill};
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
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;var n="/",t="./",r=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e.replace(/([=!:$/()])/g,"\\$1")}function o(e){return e&&e.sensitive?"":"i"}function s(e,c,d){return e instanceof RegExp?function(e,n){if(!n)return e;var t=e.source.match(/\((?!\?)/g);if(t)for(var r=0;r<t.length;r++)n.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return e}(e,c):Array.isArray(e)?function(e,n,t){for(var r=[],i=0;i<e.length;i++)r.push(s(e[i],n,t).source);return new RegExp("(?:"+r.join("|")+")",o(t))}(e,c,d):function(e,s,c){return function(e,r,a){for(var s=(a=a||{}).strict,c=!1!==a.end,d=i(a.delimiter||n),u=a.delimiters||t,f=[].concat(a.endsWith||[]).map(i).concat("$").join("|"),l="",p=!1,h=0;h<e.length;h++){var g=e[h];if("string"==typeof g)l+=i(g),p=h===e.length-1&&u.indexOf(g[g.length-1])>-1;else{var v=i(g.prefix),w=g.repeat?"(?:"+g.pattern+")(?:"+v+"(?:"+g.pattern+"))*":g.pattern;r&&r.push(g),g.optional?g.partial?l+=v+"("+w+")?":l+="(?:"+v+"("+w+"))?":l+=v+"("+w+")"}}return c?(s||(l+="(?:"+d+")?"),l+="$"===f?"$":"(?="+f+")"):(s||(l+="(?:"+d+"(?="+f+"))?"),p||(l+="(?="+d+"|"+f+")")),new RegExp("^"+l,o(a))}(function(e,o){for(var s,c=[],d=0,u=0,f="",l=o&&o.delimiter||n,p=o&&o.delimiters||t,h=!1;null!==(s=r.exec(e));){var g=s[0],v=s[1],w=s.index;if(f+=e.slice(u,w),u=w+g.length,v)f+=v[1],h=!0;else{var x="",m=e[u],E=s[2],O=s[3],y=s[4],A=s[5];if(!h&&f.length){var $=f.length-1;p.indexOf(f[$])>-1&&(x=f[$],f=f.slice(0,$))}f&&(c.push(f),f="",h=!1);var _=""!==x&&void 0!==m&&m!==x,R="+"===A||"*"===A,S="?"===A||"*"===A,j=x||l,D=O||y;c.push({name:E||d++,prefix:x,delimiter:j,optional:S,repeat:R,partial:_,pattern:D?a(D):"[^"+i(j)+"]+?"})}}return(f||u<e.length)&&c.push(f+e.substr(u)),c}(e,c),s,c)}(e,c,d)}const c={},d=1e4;let u=0;function f(e,n={}){"string"==typeof n&&(n={path:n});const{path:t="/",exact:r=!1,strict:i=!1}=n,{re:a,keys:o}=function(e,n){const t=`${n.end}${n.strict}`,r=c[t]||(c[t]={}),i=JSON.stringify(e);if(r[i])return r[i];const a=[],o={re:s(e,a,n),keys:a};return u<d&&(r[i]=o,u+=1),o}(t,{end:r,strict:i}),f=a.exec(e);if(!f)return null;const[l,...p]=f,h=e===l;return r&&!h?null:{path:t,url:"/"===t&&""===l?"/":l,isExact:h,params:o.reduce((e,n,t)=>(e[n.name]=p[t],e),{})}}const l=!("undefined"==typeof window||!window.document||!window.document.createElement),p=(e,n,t)=>e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent("on"+n,t),h=(e,n,t)=>e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent("on"+n,t),g=(e,n)=>n(window.confirm(e)),v=e=>e.metaKey||e.altKey||e.ctrlKey||e.shiftKey,w=()=>{const e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history},x=()=>-1===window.navigator.userAgent.indexOf("Trident"),m=()=>-1===window.navigator.userAgent.indexOf("Firefox"),E=e=>void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS"),O=e=>{try{var n=window[e],t="__storage_test__";return n.setItem(t,t),n.removeItem(t),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}};export{f as a,O as b,l as c,p as d,h as e,g as f,w as g,x as h,E as i,m as j,v as k};
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("chunk-438b3614.js",["exports"],function(e){window.DocsSite.h;var n="/",t="./",r=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function o(e){return e.replace(/([=!:$/()])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function u(e,s,d){return e instanceof RegExp?function(e,n){if(!n)return e;var t=e.source.match(/\((?!\?)/g);if(t)for(var r=0;r<t.length;r++)n.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return e}(e,s):Array.isArray(e)?function(e,n,t){for(var r=[],i=0;i<e.length;i++)r.push(u(e[i],n,t).source);return new RegExp("(?:"+r.join("|")+")",a(t))}(e,s,d):function(e,u,s){return function(e,r,o){for(var u=(o=o||{}).strict,s=!1!==o.end,d=i(o.delimiter||n),c=o.delimiters||t,f=[].concat(o.endsWith||[]).map(i).concat("$").join("|"),l="",p=!1,v=0;v<e.length;v++){var h=e[v];if("string"==typeof h)l+=i(h),p=v===e.length-1&&c.indexOf(h[h.length-1])>-1;else{var g=i(h.prefix),m=h.repeat?"(?:"+h.pattern+")(?:"+g+"(?:"+h.pattern+"))*":h.pattern;r&&r.push(h),h.optional?h.partial?l+=g+"("+m+")?":l+="(?:"+g+"("+m+"))?":l+=g+"("+m+")"}}return s?(u||(l+="(?:"+d+")?"),l+="$"===f?"$":"(?="+f+")"):(u||(l+="(?:"+d+"(?="+f+"))?"),p||(l+="(?="+d+"|"+f+")")),new RegExp("^"+l,a(o))}(function(e,a){for(var u,s=[],d=0,c=0,f="",l=a&&a.delimiter||n,p=a&&a.delimiters||t,v=!1;null!==(u=r.exec(e));){var h=u[0],g=u[1],m=u.index;if(f+=e.slice(c,m),c=m+h.length,g)f+=g[1],v=!0;else{var w="",x=e[c],E=u[2],O=u[3],y=u[4],A=u[5];if(!v&&f.length){var R=f.length-1;p.indexOf(f[R])>-1&&(w=f[R],f=f.slice(0,R))}f&&(s.push(f),f="",v=!1);var _=""!==w&&void 0!==x&&x!==w,S="+"===A||"*"===A,$="?"===A||"*"===A,D=w||l,L=O||y;s.push({name:E||d++,prefix:w,delimiter:D,optional:$,repeat:S,partial:_,pattern:L?o(L):"[^"+i(D)+"]+?"})}}return(f||c<e.length)&&s.push(f+e.substr(c)),s}(e,s),u,s)}(e,s,d)}var s={},d=0,c=!("undefined"==typeof window||!window.document||!window.document.createElement);e.matchPath=function(e,n){void 0===n&&(n={}),"string"==typeof n&&(n={path:n});var t=n.path,r=void 0===t?"/":t,i=n.exact,o=void 0!==i&&i,a=n.strict,c=function(e,n){var t=""+n.end+n.strict,r=s[t]||(s[t]={}),i=JSON.stringify(e);if(r[i])return r[i];var o=[],a={re:u(e,o,n),keys:o};return d<1e4&&(r[i]=a,d+=1),a}(r,{end:o,strict:void 0!==a&&a}),f=c.re,l=c.keys,p=f.exec(e);if(!p)return null;var v=p[0],h=p.slice(1),g=e===v;return o&&!g?null:{path:r,url:"/"===r&&""===v?"/":v,isExact:g,params:l.reduce(function(e,n,t){return e[n.name]=h[t],e},{})}},e.storageAvailable=function(e){try{var n=window[e],t="__storage_test__";return n.setItem(t,t),n.removeItem(t),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},e.canUseDOM=c,e.addEventListener=function(e,n,t){return e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent("on"+n,t)},e.removeEventListener=function(e,n,t){return e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent("on"+n,t)},e.getConfirmation=function(e,n){return n(window.confirm(e))},e.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history},e.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},e.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},e.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},e.isModifiedEvent=function(e){return e.metaKey||e.altKey||e.ctrlKey||e.shiftKey}});
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
-5
View File
@@ -1,5 +0,0 @@
/*! Built with http://stenciljs.com */
(function(namespace,resourcesUrl){"use strict";
(function(resourcesUrl){var t=Object.prototype.hasOwnProperty;function n(t,n){return t===n?0!==t||0!==n||1/t==1/n:t!=t&&n!=n}function e(e,o){if(n(e,o))return!0;if("object"!=typeof e||null===e||"object"!=typeof o||null===o)return!1;var r=Object.keys(e),u=Object.keys(o);if(r.length!==u.length)return!1;for(var c=0;c<r.length;c++)if(!t.call(o,r[c])||!n(e[r[c]],o[r[c]]))return!1;return!0}var o=function(t,n,e,o){return new(e||(e=Promise))(function(r,u){function c(t){try{i(o.next(t))}catch(t){u(t)}}function l(t){try{i(o.throw(t))}catch(t){u(t)}}function i(t){t.done?r(t.value):new e(function(n){n(t.value)}).then(c,l)}i((o=o.apply(t,n||[])).next())})};Context.activeRouter=function(){let t={};const n=[];function r(n){return 0===Object.keys(t).length?{location:{pathname:Context.window.location.pathname,search:Context.window.location.search}}:n?t[n]:t}function u(){return o(this,void 0,void 0,function*(){const t=n,o=[],u=r("location").pathname;for(let n=0;n<t.length;n++){let r=null;const c=o.some(e=>null!=e[1]&&null!=e[2]&&e[2]===t[n].groupId);r=c?null:t[n].isMatch(u),e(t[n].lastMatch,r)||(!c&&t[n].groupId?o.unshift([n,r,t[n].groupId]):o.push([n,r,t[n].groupId])),t[n].lastMatch=r}for(const[n,e,r]of o)r&&null!=e?yield t[n].listener(e):t[n].listener(e)})}return{set:function(n){t=Object.assign({},t,n),u()},get:r,subscribe:function(t){!function(t){const e=r("location").pathname,o=t.isMatch(e);if(t.lastMatch=o,t.listener(o),null==t.groupId||null==t.groupIndex||0===n.length)n.push(t);else for(let e=0;e<n.length;e++){const{groupId:o,groupIndex:r}=n[e];if(null==o){n.splice(e,0,t);break}if(o===t.groupId&&r>t.groupIndex){n.splice(e,0,t);break}}}(t);let e=!0;return function(){e&&(function(t){const e=n.indexOf(t);n.splice(e,1)}(t),e=!1)}},dispatch:u}}();
})(resourcesUrl);
})("DocsSite");
+43 -15
View File
@@ -2,45 +2,73 @@
"namespace": "DocsSite",
"fsNamespace": "docssite",
"loader": "../docssite.js",
"global": "docssite.global.js",
"core": "docssite.febxuvpw.js",
"corePolyfilled": "docssite.ytkmt3kl.js",
"core": "docssite.bkr1uskx.js",
"corePolyfilled": "docssite.dh6vyuov.js",
"components": {
"footer-bar": {
"$": "js9iloau"
"bundleIds": {
"$": "3vkw131p"
}
},
"header-bar": {
"$": "tl7zuo9g"
"bundleIds": {
"$": "t1fpujbs"
}
},
"icon-list": {
"$": "bjphfriz"
"bundleIds": {
"$": "2osh7cvf"
}
},
"icon-search": {
"$": "j5rbuqbp"
"bundleIds": {
"$": "fbtnoaor"
}
},
"ionicons-site": {
"$": "tl7zuo9g"
"bundleIds": {
"$": "t1fpujbs"
}
},
"landing-page": {
"$": "bjphfriz"
"bundleIds": {
"$": "2osh7cvf"
}
},
"notfound-page": {
"$": "d83fvjds"
"bundleIds": {
"$": "fonk1mfi"
}
},
"stencil-route": {
"$": "tl7zuo9g"
"bundleIds": {
"$": "t1fpujbs"
}
},
"stencil-route-link": {
"$": "gkczrv46"
"bundleIds": {
"$": "zkf4jnqe"
}
},
"stencil-route-switch": {
"bundleIds": {
"$": "t1fpujbs"
}
},
"stencil-router": {
"$": "tl7zuo9g"
"bundleIds": {
"$": "t1fpujbs"
}
},
"toast-bar": {
"$": "bjphfriz"
"bundleIds": {
"$": "2osh7cvf"
}
},
"usage-page": {
"$": "dnu5bejp"
"bundleIds": {
"$": "7jqm0oy7"
}
}
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
View File
File diff suppressed because one or more lines are too long
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;class t{constructor(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}watchQuery(){this.showClearCtrl=this.query.length>0}searchListener(e){27!==e.keyCode?this.hasSearched.emit(e.target.value):this.handleClear()}handleClear(){this.hasSearched.emit("")}componentWillLoad(){this.watchQuery()}render(){return e("div",{class:`search-input search-input--${this.size}`},e("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),e("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))}static get is(){return"icon-search"}static get properties(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}}static get events(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]}static get listeners(){return[{name:"keyup",method:"searchListener"}]}static get style(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px 30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px 50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"}}export{t as IconSearch};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("fbtnoaor",["exports"],function(e){var t=window.DocsSite.h,r=function(){function e(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}return e.prototype.watchQuery=function(){this.showClearCtrl=this.query.length>0},e.prototype.searchListener=function(e){27!==e.keyCode?this.hasSearched.emit(e.target.value):this.handleClear()},e.prototype.handleClear=function(){this.hasSearched.emit("")},e.prototype.componentWillLoad=function(){this.watchQuery()},e.prototype.render=function(){return t("div",{class:"search-input search-input--"+this.size},t("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),t("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))},Object.defineProperty(e,"is",{get:function(){return"icon-search"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"listeners",{get:function(){return[{name:"keyup",method:"searchListener"}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px 30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px 50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"},enumerable:!0,configurable:!0}),e}();e.IconSearch=r,Object.defineProperty(e,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;class t{constructor(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}watchQuery(){this.showClearCtrl=this.query.length>0}searchListener(e){27!==e.keyCode?this.hasSearched.emit(e.target.value):this.handleClear()}handleClear(){this.hasSearched.emit("")}componentWillLoad(){this.watchQuery()}render(){return e("div",{class:`search-input search-input--${this.size}`},e("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),e("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))}static get is(){return"icon-search"}static get properties(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}}static get events(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]}static get listeners(){return[{name:"keyup",method:"searchListener"}]}static get style(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px 30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px 50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"}}export{t as IconSearch};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("fbtnoaor",["exports"],function(e){var t=window.DocsSite.h,r=function(){function e(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}return e.prototype.watchQuery=function(){this.showClearCtrl=this.query.length>0},e.prototype.searchListener=function(e){27!==e.keyCode?this.hasSearched.emit(e.target.value):this.handleClear()},e.prototype.handleClear=function(){this.hasSearched.emit("")},e.prototype.componentWillLoad=function(){this.watchQuery()},e.prototype.render=function(){return t("div",{class:"search-input search-input--"+this.size},t("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),t("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))},Object.defineProperty(e,"is",{get:function(){return"icon-search"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"listeners",{get:function(){return[{name:"keyup",method:"searchListener"}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px 30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px 50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"},enumerable:!0,configurable:!0}),e}();e.IconSearch=r,Object.defineProperty(e,"__esModule",{value:!0})});
File diff suppressed because one or more lines are too long
+2
View File
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("d83fvjds",["exports"],function(e){var n=window.DocsSite.h,o=function(){function e(){}return e.prototype.render=function(){return n("main",null,n("div",{class:"container"},n("h1",null,"Woops! We can't find the page your looking for."),n("p",null,"Head on back to the ",n("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),n("footer-bar",null))},Object.defineProperty(e,"is",{get:function(){return"notfound-page"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"},enumerable:!0,configurable:!0}),e}();e.NotfoundPage=o,Object.defineProperty(e,"__esModule",{value:!0})});
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})});
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("gkczrv46",["exports","./chunk-438b3614.js"],function(t,e){var i=window.DocsSite.h,r=function(){function t(){this.unsubscribe=function(){},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}return t.prototype.computeMatch=function(t){return t||(t=this.activeRouter.get("location").pathname),e.matchPath(t,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})},t.prototype.componentWillLoad=function(){var t=this;this.unsubscribe=this.activeRouter.subscribe({isMatch:this.computeMatch.bind(this),listener:function(e){t.match=e}}),this.match=this.computeMatch()},t.prototype.componentDidUnload=function(){this.unsubscribe()},t.prototype.handleClick=function(t){if(!e.isModifiedEvent(t)){if(t.preventDefault(),this.activeRouter)return this.activeRouter.get("history").push(this.getUrl(this.url));console.warn('<stencil-route-link> wasn\'t passed an instance of the router as the "router" prop!')}},t.prototype.getUrl=function(t){var e=this.activeRouter.get("root")||"/";return"/"==t.charAt(0)&&"/"==e.charAt(e.length-1)?e.slice(0,e.length-1)+t:e+t},t.prototype.render=function(){var t,e={class:(t={},t[this.activeClass]=null!==this.match,t),onClick:this.handleClick.bind(this)};return this.anchorClass&&(e.class[this.anchorClass]=!0),"a"===this.custom&&(e=Object.assign({},e,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex})),i(this.custom,Object.assign({},e),i("slot",null))},Object.defineProperty(t,"is",{get:function(){return"stencil-route-link"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{activeClass:{type:String,attr:"active-class"},activeRouter:{context:"activeRouter"},anchorClass:{type:String,attr:"anchor-class"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},custom:{type:String,attr:"custom"},exact:{type:Boolean,attr:"exact"},match:{state:!0},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}},enumerable:!0,configurable:!0}),t}();t.StencilRouteLink=r,Object.defineProperty(t,"__esModule",{value:!0})});
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.DocsSite;import{a as s,k as e}from"./chunk-408bcc6b.js";class i{constructor(){this.unsubscribe=(()=>{}),this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}computeMatch(t){return t||(t=this.activeRouter.get("location").pathname),s(t,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}componentWillLoad(){this.unsubscribe=this.activeRouter.subscribe({isMatch:this.computeMatch.bind(this),listener:t=>{this.match=t}}),this.match=this.computeMatch()}componentDidUnload(){this.unsubscribe()}handleClick(t){if(!e(t)){if(t.preventDefault(),this.activeRouter)return this.activeRouter.get("history").push(this.getUrl(this.url));console.warn('<stencil-route-link> wasn\'t passed an instance of the router as the "router" prop!')}}getUrl(t){const s=this.activeRouter.get("root")||"/";return"/"==t.charAt(0)&&"/"==s.charAt(s.length-1)?s.slice(0,s.length-1)+t:s+t}render(){let s={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(s.class[this.anchorClass]=!0),"a"===this.custom&&(s=Object.assign({},s,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex})),t(this.custom,Object.assign({},s),t("slot",null))}static get is(){return"stencil-route-link"}static get properties(){return{activeClass:{type:String,attr:"active-class"},activeRouter:{context:"activeRouter"},anchorClass:{type:String,attr:"anchor-class"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},custom:{type:String,attr:"custom"},exact:{type:Boolean,attr:"exact"},match:{state:!0},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}}}export{i as StencilRouteLink};
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("j5rbuqbp",["exports"],function(e){var t=window.DocsSite.h,r=function(){function e(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}return e.prototype.watchQuery=function(){this.showClearCtrl=this.query.length>0},e.prototype.searchListener=function(e){if(27!==e.keyCode){var t=e.target.value;this.hasSearched.emit(t)}else this.handleClear()},e.prototype.handleClear=function(){this.hasSearched.emit("")},e.prototype.componentWillLoad=function(){this.watchQuery()},e.prototype.render=function(){return t("div",{class:"search-input search-input--"+this.size},t("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),t("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))},Object.defineProperty(e,"is",{get:function(){return"icon-search"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"listeners",{get:function(){return[{name:"keyup",method:"searchListener"}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px 30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px 50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"},enumerable:!0,configurable:!0}),e}();e.IconSearch=r,Object.defineProperty(e,"__esModule",{value:!0})});
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;class t{constructor(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}watchQuery(){this.showClearCtrl=this.query.length>0}searchListener(e){if(27===e.keyCode)return void this.handleClear();const t=e.target.value;this.hasSearched.emit(t)}handleClear(){this.hasSearched.emit("")}componentWillLoad(){this.watchQuery()}render(){return e("div",{class:`search-input search-input--${this.size}`},e("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),e("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))}static get is(){return"icon-search"}static get properties(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}}static get events(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]}static get listeners(){return[{name:"keyup",method:"searchListener"}]}static get style(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px 30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px 50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"}}export{t as IconSearch};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("object.js",["exports"],function(e){window,e.applyPolyfill=function(e,n){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(t[l]=o[l])}return t},writable:!0,configurable:!0}),Object.entries||(Object.entries=function(e){for(var n=Object.keys(e),t=n.length,r=Array(t);t--;)r[t]=[n[t],e[n[t]]];return r})},Object.defineProperty(e,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;function t(e,t){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(n[c]=o[c])}return n},writable:!0,configurable:!0}),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r})}export{t as applyPolyfill};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("string.js",["exports"],function(t){window,t.applyPolyfill=function(t,e){String.prototype.endsWith||Object.defineProperty(String.prototype,"endsWith",{writable:!0,configurable:!0,value:function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t}}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{writable:!0,configurable:!0,value:function(t,e){return this.substr(!e||0>e?0:+e,t.length)===t}})},Object.defineProperty(t,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.DocsSite;function e(t,e){String.prototype.endsWith||Object.defineProperty(String.prototype,"endsWith",{writable:!0,configurable:!0,value:function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t}}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{writable:!0,configurable:!0,value:function(t,e){return this.substr(!e||0>e?0:+e,t.length)===t}})}export{e as applyPolyfill};
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
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("url.js",["exports"],function(e){window,e.applyPolyfill=function(e,t){var n,r,o,i,a,c,h;o="undefined"!=typeof global?global:void 0!==e?e:"undefined"!=typeof self?self:this,i=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),a=function(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t},c=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},h=function(e){return decodeURIComponent(e).replace(/\+/g," ")},"URLSearchParams"in o&&"a=1"===new URLSearchParams("?a=1").toString()||(n=function(e){if(Object.defineProperty(this,"_entries",{value:{}}),"string"==typeof e){if(""!==e)for(var t,r=(e=e.replace(/^\?/,"")).split("&"),o=0;o<r.length;o++)t=r[o].split("="),this.append(h(t[0]),t.length>1?h(t[1]):"")}else if(e instanceof n){var i=this;e.forEach(function(e,t){i.append(e,t)})}},(r=n.prototype).append=function(e,t){e in this._entries?this._entries[e].push(t.toString()):this._entries[e]=[t.toString()]},r.delete=function(e){delete this._entries[e]},r.get=function(e){return e in this._entries?this._entries[e][0]:null},r.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},r.has=function(e){return e in this._entries},r.set=function(e,t){this._entries[e]=[t.toString()]},r.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var o=0;o<n.length;o++)e.call(t,n[o],r,this)}},r.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),a(e)},r.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),a(e)},r.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),a(e)},i&&(r[Symbol.iterator]=r.entries),r.toString=function(){var e=[];return this.forEach(function(t,n){e.push(c(n)+"="+c(t))}),e.join("&")},o.URLSearchParams=n),function(n){if(function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(e){return!1}}()||function(){var r=n.URL,o=function(n,r){"string"!=typeof n&&(n=String(n));var o=t.implementation.createHTMLDocument("");if(e.doc=o,r){var i=o.createElement("base");i.href=r,o.head.appendChild(i)}var a=o.createElement("a");if(a.href=n,o.body.appendChild(a),a.href=a.href,":"===a.protocol||!/:/.test(a.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:a})},i=o.prototype;["hash","host","hostname","port","protocol","search"].forEach(function(e){!function(e){Object.defineProperty(i,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)}),Object.defineProperties(i,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(this._anchorElement.port!={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol]&&""!==this._anchorElement.port?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0},searchParams:{get:function(){var e=new URLSearchParams(this.search),t=this;return["append","delete","set"].forEach(function(n){var r=e[n];e[n]=function(){r.apply(e,arguments),t.search=e.toString()}}),e},enumerable:!0}}),o.createObjectURL=function(e){return r.createObjectURL.apply(r,arguments)},o.revokeObjectURL=function(e){return r.revokeObjectURL.apply(r,arguments)},n.URL=o}(),void 0!==n.location&&!("origin"in n.location)){var r=function(){return n.location.protocol+"//"+n.location.hostname+(n.location.port?":"+n.location.port:"")};try{Object.defineProperty(n.location,"origin",{get:r,enumerable:!0})}catch(e){setInterval(function(){n.location.origin=r()},100)}}}("undefined"!=typeof global?global:void 0!==e?e:"undefined"!=typeof self?self:this)},Object.defineProperty(e,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.DocsSite;function e(t,e){var n,r,o,i,a,c,h;o="undefined"!=typeof global?global:void 0!==t?t:"undefined"!=typeof self?self:this,i=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),a=function(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e},c=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},h=function(t){return decodeURIComponent(t).replace(/\+/g," ")},"URLSearchParams"in o&&"a=1"===new URLSearchParams("?a=1").toString()||(n=function(t){if(Object.defineProperty(this,"_entries",{value:{}}),"string"==typeof t){if(""!==t)for(var e,r=(t=t.replace(/^\?/,"")).split("&"),o=0;o<r.length;o++)e=r[o].split("="),this.append(h(e[0]),e.length>1?h(e[1]):"")}else if(t instanceof n){var i=this;t.forEach(function(t,e){i.append(t,e)})}},(r=n.prototype).append=function(t,e){t in this._entries?this._entries[t].push(e.toString()):this._entries[t]=[e.toString()]},r.delete=function(t){delete this._entries[t]},r.get=function(t){return t in this._entries?this._entries[t][0]:null},r.getAll=function(t){return t in this._entries?this._entries[t].slice(0):[]},r.has=function(t){return t in this._entries},r.set=function(t,e){this._entries[t]=[e.toString()]},r.forEach=function(t,e){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var o=0;o<n.length;o++)t.call(e,n[o],r,this)}},r.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),a(t)},r.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),a(t)},r.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),a(t)},i&&(r[Symbol.iterator]=r.entries),r.toString=function(){var t=[];return this.forEach(function(e,n){t.push(c(n)+"="+c(e))}),t.join("&")},o.URLSearchParams=n),function(n){if(function(){try{var t=new URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(t){return!1}}()||function(){var r=n.URL,o=function(n,r){"string"!=typeof n&&(n=String(n));var o=e.implementation.createHTMLDocument("");if(t.doc=o,r){var i=o.createElement("base");i.href=r,o.head.appendChild(i)}var a=o.createElement("a");if(a.href=n,o.body.appendChild(a),a.href=a.href,":"===a.protocol||!/:/.test(a.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:a})},i=o.prototype;["hash","host","hostname","port","protocol","search"].forEach(function(t){!function(t){Object.defineProperty(i,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)}),Object.defineProperties(i,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(this._anchorElement.port!={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol]&&""!==this._anchorElement.port?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0},searchParams:{get:function(){var t=new URLSearchParams(this.search),e=this;return["append","delete","set"].forEach(function(n){var r=t[n];t[n]=function(){r.apply(t,arguments),e.search=t.toString()}}),t},enumerable:!0}}),o.createObjectURL=function(t){return r.createObjectURL.apply(r,arguments)},o.revokeObjectURL=function(t){return r.revokeObjectURL.apply(r,arguments)},n.URL=o}(),void 0!==n.location&&!("origin"in n.location)){var r=function(){return n.location.protocol+"//"+n.location.hostname+(n.location.port?":"+n.location.port:"")};try{Object.defineProperty(n.location,"origin",{get:r,enumerable:!0})}catch(t){setInterval(function(){n.location.origin=r()},100)}}}("undefined"!=typeof global?global:void 0!==t?t:"undefined"!=typeof self?self:this)}export{e as applyPolyfill};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.DocsSite;import{a,v as i,c as s}from"./chunk-1ec105a7.js";class r{constructor(){this.unsubscribe=(()=>{}),this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=a(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(t){var a,s;if(!i(t)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((s=this.root,"/"==(a=this.url).charAt(0)&&"/"==s.charAt(s.length-1)?s.slice(0,s.length-1)+a:s+a))}render(){let a={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(a.class[this.anchorClass]=!0),"a"===this.custom&&(a=Object.assign({},a,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),t(this.custom,Object.assign({},a),t("slot",null))}static get is(){return"stencil-route-link"}static get properties(){return{activeClass:{type:String,attr:"active-class"},anchorClass:{type:String,attr:"anchor-class"},anchorId:{type:String,attr:"anchor-id"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},ariaHaspopup:{type:String,attr:"aria-haspopup"},ariaLabel:{type:String,attr:"aria-label"},ariaPosinset:{type:String,attr:"aria-posinset"},ariaSetsize:{type:Number,attr:"aria-setsize"},custom:{type:String,attr:"custom"},el:{elementRef:!0},exact:{type:Boolean,attr:"exact"},history:{type:"Any",attr:"history"},location:{type:"Any",attr:"location",watchCallbacks:["computeMatch"]},match:{state:!0},root:{type:String,attr:"root"},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}}}s.injectProps(r,["history","location","root"]);export{r as StencilRouteLink};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("zkf4jnqe",["exports","./chunk-4e065e0c.js"],function(t,a){var i=window.DocsSite.h,e=function(){function t(){this.unsubscribe=function(){},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}return t.prototype.componentWillLoad=function(){this.computeMatch()},t.prototype.computeMatch=function(){this.location&&(this.match=a.matchPath(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))},t.prototype.handleClick=function(t){var i,e;if(!a.isModifiedEvent(t)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((e=this.root,"/"==(i=this.url).charAt(0)&&"/"==e.charAt(e.length-1)?e.slice(0,e.length-1)+i:e+i))},t.prototype.render=function(){var t,a={class:(t={},t[this.activeClass]=null!==this.match,t),onClick:this.handleClick.bind(this)};return this.anchorClass&&(a.class[this.anchorClass]=!0),"a"===this.custom&&(a=Object.assign({},a,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),i(this.custom,Object.assign({},a),i("slot",null))},Object.defineProperty(t,"is",{get:function(){return"stencil-route-link"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{activeClass:{type:String,attr:"active-class"},anchorClass:{type:String,attr:"anchor-class"},anchorId:{type:String,attr:"anchor-id"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},ariaHaspopup:{type:String,attr:"aria-haspopup"},ariaLabel:{type:String,attr:"aria-label"},ariaPosinset:{type:String,attr:"aria-posinset"},ariaSetsize:{type:Number,attr:"aria-setsize"},custom:{type:String,attr:"custom"},el:{elementRef:!0},exact:{type:Boolean,attr:"exact"},history:{type:"Any",attr:"history"},location:{type:"Any",attr:"location",watchCallbacks:["computeMatch"]},match:{state:!0},root:{type:String,attr:"root"},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}},enumerable:!0,configurable:!0}),t}();a.ActiveRouter.injectProps(e,["history","location","root"]),t.StencilRouteLink=e,Object.defineProperty(t,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.DocsSite;import{a,v as i,c as s}from"./chunk-1ec105a7.js";class r{constructor(){this.unsubscribe=(()=>{}),this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=a(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(t){var a,s;if(!i(t)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((s=this.root,"/"==(a=this.url).charAt(0)&&"/"==s.charAt(s.length-1)?s.slice(0,s.length-1)+a:s+a))}render(){let a={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(a.class[this.anchorClass]=!0),"a"===this.custom&&(a=Object.assign({},a,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),t(this.custom,Object.assign({},a),t("slot",null))}static get is(){return"stencil-route-link"}static get properties(){return{activeClass:{type:String,attr:"active-class"},anchorClass:{type:String,attr:"anchor-class"},anchorId:{type:String,attr:"anchor-id"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},ariaHaspopup:{type:String,attr:"aria-haspopup"},ariaLabel:{type:String,attr:"aria-label"},ariaPosinset:{type:String,attr:"aria-posinset"},ariaSetsize:{type:Number,attr:"aria-setsize"},custom:{type:String,attr:"custom"},el:{elementRef:!0},exact:{type:Boolean,attr:"exact"},history:{type:"Any",attr:"history"},location:{type:"Any",attr:"location",watchCallbacks:["computeMatch"]},match:{state:!0},root:{type:String,attr:"root"},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}}}s.injectProps(r,["history","location","root"]);export{r as StencilRouteLink};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("zkf4jnqe",["exports","./chunk-4e065e0c.js"],function(t,a){var i=window.DocsSite.h,e=function(){function t(){this.unsubscribe=function(){},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}return t.prototype.componentWillLoad=function(){this.computeMatch()},t.prototype.computeMatch=function(){this.location&&(this.match=a.matchPath(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))},t.prototype.handleClick=function(t){var i,e;if(!a.isModifiedEvent(t)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((e=this.root,"/"==(i=this.url).charAt(0)&&"/"==e.charAt(e.length-1)?e.slice(0,e.length-1)+i:e+i))},t.prototype.render=function(){var t,a={class:(t={},t[this.activeClass]=null!==this.match,t),onClick:this.handleClick.bind(this)};return this.anchorClass&&(a.class[this.anchorClass]=!0),"a"===this.custom&&(a=Object.assign({},a,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),i(this.custom,Object.assign({},a),i("slot",null))},Object.defineProperty(t,"is",{get:function(){return"stencil-route-link"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{activeClass:{type:String,attr:"active-class"},anchorClass:{type:String,attr:"anchor-class"},anchorId:{type:String,attr:"anchor-id"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},ariaHaspopup:{type:String,attr:"aria-haspopup"},ariaLabel:{type:String,attr:"aria-label"},ariaPosinset:{type:String,attr:"aria-posinset"},ariaSetsize:{type:Number,attr:"aria-setsize"},custom:{type:String,attr:"custom"},el:{elementRef:!0},exact:{type:Boolean,attr:"exact"},history:{type:"Any",attr:"history"},location:{type:"Any",attr:"location",watchCallbacks:["computeMatch"]},match:{state:!0},root:{type:String,attr:"root"},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}},enumerable:!0,configurable:!0}),t}();a.ActiveRouter.injectProps(e,["history","location","root"]),t.StencilRouteLink=e,Object.defineProperty(t,"__esModule",{value:!0})});
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <title>Ionicons: The premium icon pack for Ionic Framework</title> <meta name="author" content="Ionic"> <meta name="description" content="Ionicons is an open-sourced and MIT licensed icon pack."> <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> <meta name="format-detection" content="telephone=no"> <meta name="msapplication-tap-highlight" content="no"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="manifest" href="/manifest.json"> <meta property="og:title" content="Ionicons: The premium icon pack for Ionic Framework"> <meta property="og:description" content="Ionicons is an open-sourced and MIT licensed icon pack."> <meta property="og:type" content="website"> <meta property="og:url" content="https://ionicons.com/"> <meta property="og:image" content="/assets/img/meta/ionicons-og-image.png"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:creator" content="@ionicframework"> <link rel="apple-touch-icon" sizes="57x57" href="/assets/img/meta/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/assets/img/meta/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/assets/img/meta/apple-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/assets/img/meta/apple-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/assets/img/meta/apple-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/assets/img/meta/apple-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/assets/img/meta/apple-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/assets/img/meta/apple-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/assets/img/meta/apple-icon-180x180.png"> <link rel="icon" type="image/png" href="/assets/img/meta/favicon-16x16.png" sizes="16x16"> <link rel="icon" type="image/png" href="/assets/img/meta/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="/assets/img/meta/favicon-96x96.png" sizes="96x96"> <meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-TileImage" content="/assets/img/meta/ms-icon-70x70.png"> <meta name="msapplication-TileImage" content="/assets/img/meta/ms-icon-144x144.png"> <meta name="theme-color" content="#16161d"> <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:500" rel="stylesheet"> <link rel="stylesheet" href="/css/ionicons.min.css"> <link rel="stylesheet" href="/build/docssite.css"> <script data-resources-url="/build/docssite/">/*!
* Built with http://stenciljs.com
* 2018-05-26T19:51:49
* 2018-09-14T15:59:18
*/
!function(e,t,r,o,s,i,n,c,a,l,u,d,h,p){for((u=e.DocsSite=e.DocsSite||{}).components=a,(h=a.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=h.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("DocsSite"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var o=e["s-apps"],s=0,i=0;i<o.length;i++)if(e[o[i]].componentOnReady){if(e[o[i]].componentOnReady(t,r))return;s++}if(s<o.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,l),s=s||u.resourcesUrl,d=(h=t.querySelectorAll("script")).length-1;d>=0&&!(p=h[d]).src&&!p.hasAttribute("data-resources-url");d--);h=p.getAttribute("data-resources-url"),!s&&h&&(s=h),!s&&p.src&&(s=(h=p.src.split("/").slice(0,-1)).join("/")+(h.length?"/":"")+"docssite/"),d=t.createElement("script"),function(e,t,r,o){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=s+"docssite.ytkmt3kl.js":(d.src=s+"docssite.febxuvpw.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",s),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["footer-bar","js9iloau",1],["header-bar","tl7zuo9g",1,[["el",7],["isMobileMenuShown",5],["isSearchVisible",1,0,"is-search-visible",3],["isSticky",5],["query",1,0,1,2],["version",1,0,1,2]],0,[["window:scroll","handleScroll",0,1],["window:resize","handleResize",0,1]]],["icon-list","bjphfriz",1,[["data",1,0,1,1],["el",7],["isHeaderSearchVisible",5],["query",1,0,1,2],["selectedIcon",5],["selectedIconType",5]],0,[["body:keyup","escListener"],["body:click","handleBodyClicked"],["clearToast","handleClearToast"],["window:scroll","handleScroll",0,1]]],["icon-search","j5rbuqbp",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","tl7zuo9g",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","bjphfriz",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","d83fvjds",1],["stencil-route","tl7zuo9g",0,[["activeInGroup",5],["activeRouter",3,0,0,0,"activeRouter"],["component",1,0,1,2],["componentProps",1],["el",7],["exact",1,0,1,3],["group",1,0,1,2],["groupIndex",1,0,"group-index",4],["isServer",3,0,0,0,"isServer"],["location",3,0,0,0,"location"],["match",5],["queue",3,0,0,0,"queue"],["routeRender",1],["scrollTopOffset",1,0,"scroll-top-offset",4],["url",1,0,1,2]]],["stencil-route-link","gkczrv46",0,[["activeClass",1,0,"active-class",2],["activeRouter",3,0,0,0,"activeRouter"],["anchorClass",1,0,"anchor-class",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["custom",1,0,1,2],["exact",1,0,1,3],["match",5],["strict",1,0,1,3],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-router","tl7zuo9g",0,[["activeRouter",3,0,0,0,"activeRouter"],["historyType",1,0,"history-type",2],["match",5],["root",1,0,1,2],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","bjphfriz",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","dnu5bejp",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);</script>
!function(e,t,o,r,s,i,a,n,c,l,u,d,h,p){for((u=e.DocsSite=e.DocsSite||{}).components=c,(h=c.map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=h.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),h=t.head.querySelector("meta[charset]"),t.head.insertBefore(d,h?h.nextSibling:t.head.firstChild)),function(e,t,o){(e["s-apps"]=e["s-apps"]||[]).push("DocsSite"),o.componentOnReady||(o.componentOnReady=function(){var t=this;function o(o){if(t.nodeName.indexOf("-")>0){for(var r=e["s-apps"],s=0,i=0;i<r.length;i++)if(e[r[i]].componentOnReady){if(e[r[i]].componentOnReady(t,o))return;s++}if(s<r.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,o])}o(null)}return e.Promise?new e.Promise(o):{then:o}})}(e,0,l),s=s||u.resourcesUrl,d=(h=t.querySelectorAll("script")).length-1;d>=0&&!(p=h[d]).src&&!p.hasAttribute("data-resources-url");d--);h=p.getAttribute("data-resources-url"),!s&&h&&(s=h),!s&&p.src&&(s=(h=p.src.split("/").slice(0,-1)).join("/")+(h.length?"/":"")+"docssite/"),d=t.createElement("script"),function(e,t,o,r){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in o)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=s+"docssite.dh6vyuov.js":(d.src=s+"docssite.bkr1uskx.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",s),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["footer-bar","3vkw131p",1],["header-bar","t1fpujbs",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","2osh7cvf",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","fbtnoaor",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",16],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","t1fpujbs",1,[["data",16],["isHeaderSearchVisible",16],["query",16]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","2osh7cvf",1,[["data",1,0,1,1],["el",64],["query",1,0,1,2]]],["notfound-page","fonk1mfi",1],["stencil-route","t1fpujbs",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","zkf4jnqe",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","t1fpujbs",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","t1fpujbs",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","2osh7cvf",1,[["el",64],["hadIconOnce",16],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",16],["touchEndY",16],["touchStartY",16]]],["usage-page","7jqm0oy7",1,[["data",1,0,1,1],["exampleIcon",16],["exampleType",16],["match",1],["queue",4,0,0,0,"queue"]]]],HTMLElement.prototype);</script>
</head>
<body> <ionicons-site></ionicons-site> <script>!function(e,a,n,t,c,g,o){e.GoogleAnalyticsObject="ga",e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,g=a.createElement(n),o=a.getElementsByTagName(n)[0],g.async=1,g.src="//www.google-analytics.com/analytics.js",o.parentNode.insertBefore(g,o)}(window,document,"script"),ga("create","UA-44023830-2","ionicons.com"),ga("send","pageview");</script> </body></html>
<body> <ionicons-site></ionicons-site> <script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-44023830-2', 'ionicons.com');ga('send', 'pageview');</script> </body></html>
+2 -2
View File
@@ -1,5 +1,5 @@
/*!
* Built with http://stenciljs.com
* 2018-05-26T19:51:42
* 2018-09-14T15:59:12
*/
!function(e,t,n,r,i,o,s,c,u,a,l,d,p,m){for((l=e.ionicons=e.ionicons||{}).components=u,(p=u.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=p.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),function(e,t,n){(e["s-apps"]=e["s-apps"]||[]).push("ionicons"),n.componentOnReady||(n.componentOnReady=function(){var t=this;function n(n){if(t.nodeName.indexOf("-")>0){for(var r=e["s-apps"],i=0,o=0;o<r.length;o++)if(e[r[o]].componentOnReady){if(e[r[o]].componentOnReady(t,n))return;i++}if(i<r.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,n])}n(null)}return e.Promise?new e.Promise(n):{then:n}})}(e,0,a),i=i||l.resourcesUrl,d=(p=t.querySelectorAll("script")).length-1;d>=0&&!(m=p[d]).src&&!m.hasAttribute("data-resources-url");d--);p=m.getAttribute("data-resources-url"),!i&&p&&(i=p),!i&&m.src&&(i=(p=m.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"ionicons/"),d=t.createElement("script"),function(e,t,n,r){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in n)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=i+"ionicons.xcgugpyt.js":(d.src=i+"ionicons.eyhlcpv8.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",i),d.setAttribute("data-namespace","ionicons"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["ion-icon","b4az4ysr",1,[["ariaLabel",2,1,"aria-label",2],["color",1,0,1,2],["doc",3,0,0,0,"document"],["el",7],["icon",1,0,1,2],["ios",1,0,1,2],["isServer",3,0,0,0,"isServer"],["isVisible",5],["md",1,0,1,2],["mode",3,0,0,0,"mode"],["name",1,0,1,2],["resourcesUrl",3,0,0,0,"resourcesUrl"],["size",1,0,1,2],["src",1,0,1,2],["svgContent",5],["win",3,0,0,0,"window"]],1]],HTMLElement.prototype);
!function(e,t,n,r,i,o,s,c,a,l,u,d,p,m){for((u=e.ionicons=e.ionicons||{}).components=a,(p=a.map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=p.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),p=t.head.querySelector("meta[charset]"),t.head.insertBefore(d,p?p.nextSibling:t.head.firstChild)),function(e,t,n){(e["s-apps"]=e["s-apps"]||[]).push("ionicons"),n.componentOnReady||(n.componentOnReady=function(){var t=this;function n(n){if(t.nodeName.indexOf("-")>0){for(var r=e["s-apps"],i=0,o=0;o<r.length;o++)if(e[r[o]].componentOnReady){if(e[r[o]].componentOnReady(t,n))return;i++}if(i<r.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,n])}n(null)}return e.Promise?new e.Promise(n):{then:n}})}(e,0,l),i=i||u.resourcesUrl,d=(p=t.querySelectorAll("script")).length-1;d>=0&&!(m=p[d]).src&&!m.hasAttribute("data-resources-url");d--);p=m.getAttribute("data-resources-url"),!i&&p&&(i=p),!i&&m.src&&(i=(p=m.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"ionicons/"),d=t.createElement("script"),function(e,t,n,r){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in n)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=i+"ionicons.z9r2cndl.js":(d.src=i+"ionicons.uhp57gzi.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",i),d.setAttribute("data-namespace","ionicons"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["ion-icon","regxn1ml",1,[["ariaLabel",2,1,"aria-label",2],["color",1,0,1,2],["doc",4,0,0,0,"document"],["el",64],["icon",1,0,1,2],["ios",1,0,1,2],["isServer",4,0,0,0,"isServer"],["isVisible",16],["lazy",1,0,1,4],["md",1,0,1,2],["mode",1,0,1,2],["name",1,0,1,2],["resourcesUrl",4,0,0,0,"resourcesUrl"],["size",1,0,1,2],["src",1,0,1,2],["svgContent",16],["win",4,0,0,0,"window"]],1]],HTMLElement.prototype);
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
ionicons.loadBundle("b4az4ysr",["exports"],function(e){var t=window.ionicons.h,i=function(){function e(){this.isVisible=!1}return e.prototype.componentWillLoad=function(){var e=this;this.waitUntilVisible(this.el,"50px",function(){e.isVisible=!0,e.loadIcon()})},e.prototype.componentDidUnload=function(){this.io&&(this.io.disconnect(),this.io=void 0)},e.prototype.waitUntilVisible=function(e,t,i){var n=this;if(this.win){var o=this.io=new this.win.IntersectionObserver(function(e){e[0].isIntersecting&&(o.disconnect(),n.io=void 0,i())},{rootMargin:t});o.observe(e)}else i()},e.prototype.loadIcon=function(){var e=this;if(!this.isServer&&this.isVisible){var t=this.getUrl();t&&function(e){var t=n.get(e);return t||(t=fetch(e,{cache:"force-cache"}).then(function(e){return e.ok?e.text():Promise.resolve(null)}),n.set(e,t)),t}(t).then(function(t){e.svgContent=function(e,t,i){if(t){var n=e.createDocumentFragment(),o=e.createElement("div");o.innerHTML=t,n.appendChild(o);for(var r=o.childNodes.length-1;r>=0;r--)"svg"!==o.childNodes[r].nodeName.toLowerCase()&&o.removeChild(o.childNodes[r]);var s=o.firstElementChild;if(s&&"svg"===s.nodeName.toLowerCase()&&(i&&s.setAttribute(i,""),function e(t){if(1===t.nodeType){if("script"===t.nodeName.toLowerCase())return!1;for(var i=0;i<t.attributes.length;i++){var n=t.attributes[i].value;if("string"==typeof n&&0===n.toLowerCase().indexOf("on"))return!1}for(i=0;i<t.childNodes.length;i++)if(!e(t.childNodes[i]))return!1}return!0}(s)))return o.innerHTML}return""}(e.doc,t,e.el["s-sc"])})}if(!this.ariaLabel){var i=o(this.name,this.mode,this.ios,this.md);i&&(this.ariaLabel=i.replace("ios-","").replace("md-","").replace(/\-/g," "))}},e.prototype.getUrl=function(){var e=r(this.src);return e||((e=o(this.name,this.mode,this.ios,this.md))?this.getNamedUrl(e):(e=r(this.icon))?e:(e=o(this.icon,this.mode,this.ios,this.md))?this.getNamedUrl(e):null)},e.prototype.getNamedUrl=function(e){return this.resourcesUrl+"svg/"+e+".svg"},e.prototype.hostData=function(){var e;return{role:"img",class:Object.assign({},function(e){var t;return e?((t={"ion-color":!0})["ion-color-"+e]=!0,t):null}(this.color),(e={},e["icon-"+this.size]=!!this.size,e))}},e.prototype.render=function(){return!this.isServer&&this.svgContent?t("div",{class:"icon-inner",innerHTML:this.svgContent}):t("div",{class:"icon-inner"})},Object.defineProperty(e,"is",{get:function(){return"ion-icon"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"encapsulation",{get:function(){return"shadow"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{ariaLabel:{type:String,attr:"aria-label",reflectToAttr:!0,mutable:!0},color:{type:String,attr:"color"},doc:{context:"document"},el:{elementRef:!0},icon:{type:String,attr:"icon",watchCallbacks:["loadIcon"]},ios:{type:String,attr:"ios"},isServer:{context:"isServer"},isVisible:{state:!0},md:{type:String,attr:"md"},mode:{context:"mode"},name:{type:String,attr:"name",watchCallbacks:["loadIcon"]},resourcesUrl:{context:"resourcesUrl"},size:{type:String,attr:"size"},src:{type:String,attr:"src",watchCallbacks:["loadIcon"]},svgContent:{state:!0},win:{context:"window"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return":host{display:inline-block;width:1em;height:1em;contain:strict;-webkit-box-sizing:content-box!important;box-sizing:content-box!important;--ion-color-base:currentColor}:host(.icon-small){font-size:var(--ion-icon-size-small,18px)!important}:host(.icon-large){font-size:var(--ion-icon-size-large,32px)!important}.icon-inner,svg{display:block;height:100%;width:100%}svg{fill:var(--ion-color-base);stroke:var(--ion-color-base)}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}"},enumerable:!0,configurable:!0}),e}(),n=new Map;function o(e,t,i,n){return t=(t||"md").toLowerCase(),i&&"ios"===t?e=i.toLowerCase():n&&"md"===t?e=n.toLowerCase():e&&!/^md-|^ios-|^logo-/.test(e)&&(e=t+"-"+e.toLowerCase()),"string"!=typeof e||""===e.trim()?null:""!==e.replace(/[a-z]|-|\d/gi,"")?null:e}function r(e){return"string"==typeof e&&(e=e.trim()).length>0&&/(\/|\.)/.test(e)?e:null}e.IonIcon=i,Object.defineProperty(e,"__esModule",{value:!0})});
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.ionicons;class e{constructor(){this.isVisible=!1}componentWillLoad(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidUnload(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,e,i){if(this.win){const s=this.io=new this.win.IntersectionObserver(t=>{t[0].isIntersecting&&(s.disconnect(),this.io=void 0,i())},{rootMargin:e});s.observe(t)}else i()}loadIcon(){if(!this.isServer&&this.isVisible){const t=this.getUrl();t&&function(t){let e=i.get(t);return e||(e=fetch(t,{cache:"force-cache"}).then(t=>t.ok?t.text():Promise.resolve(null)),i.set(t,e)),e}(t).then(t=>{this.svgContent=function(t,e,i){if(e){const s=t.createDocumentFragment(),o=t.createElement("div");o.innerHTML=e,s.appendChild(o);for(let t=o.childNodes.length-1;t>=0;t--)"svg"!==o.childNodes[t].nodeName.toLowerCase()&&o.removeChild(o.childNodes[t]);const n=o.firstElementChild;if(n&&"svg"===n.nodeName.toLowerCase()&&(i&&n.setAttribute(i,""),function t(e){if(1===e.nodeType){if("script"===e.nodeName.toLowerCase())return!1;for(var i=0;i<e.attributes.length;i++){let t=e.attributes[i].value;if("string"==typeof t&&0===t.toLowerCase().indexOf("on"))return!1}for(i=0;i<e.childNodes.length;i++)if(!t(e.childNodes[i]))return!1}return!0}(n)))return o.innerHTML}return""}(this.doc,t,this.el["s-sc"])})}if(!this.ariaLabel){const t=s(this.name,this.mode,this.ios,this.md);t&&(this.ariaLabel=t.replace("ios-","").replace("md-","").replace(/\-/g," "))}}getUrl(){let t=o(this.src);return t||((t=s(this.name,this.mode,this.ios,this.md))?this.getNamedUrl(t):(t=o(this.icon))?t:(t=s(this.icon,this.mode,this.ios,this.md))?this.getNamedUrl(t):null)}getNamedUrl(t){return`${this.resourcesUrl}svg/${t}.svg`}hostData(){return{role:"img",class:Object.assign({},(t=this.color,t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null),{[`icon-${this.size}`]:!!this.size})};var t}render(){return!this.isServer&&this.svgContent?t("div",{class:"icon-inner",innerHTML:this.svgContent}):t("div",{class:"icon-inner"})}static get is(){return"ion-icon"}static get encapsulation(){return"shadow"}static get properties(){return{ariaLabel:{type:String,attr:"aria-label",reflectToAttr:!0,mutable:!0},color:{type:String,attr:"color"},doc:{context:"document"},el:{elementRef:!0},icon:{type:String,attr:"icon",watchCallbacks:["loadIcon"]},ios:{type:String,attr:"ios"},isServer:{context:"isServer"},isVisible:{state:!0},md:{type:String,attr:"md"},mode:{context:"mode"},name:{type:String,attr:"name",watchCallbacks:["loadIcon"]},resourcesUrl:{context:"resourcesUrl"},size:{type:String,attr:"size"},src:{type:String,attr:"src",watchCallbacks:["loadIcon"]},svgContent:{state:!0},win:{context:"window"}}}static get style(){return":host{display:inline-block;width:1em;height:1em;contain:strict;-webkit-box-sizing:content-box!important;box-sizing:content-box!important;--ion-color-base:currentColor}:host(.icon-small){font-size:var(--ion-icon-size-small,18px)!important}:host(.icon-large){font-size:var(--ion-icon-size-large,32px)!important}.icon-inner,svg{display:block;height:100%;width:100%}svg{fill:var(--ion-color-base);stroke:var(--ion-color-base)}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}"}}const i=new Map;function s(t,e,i,s){return e=(e||"md").toLowerCase(),i&&"ios"===e?t=i.toLowerCase():s&&"md"===e?t=s.toLowerCase():t&&!/^md-|^ios-|^logo-/.test(t)&&(t=e+"-"+t.toLowerCase()),"string"!=typeof t||""===t.trim()?null:""!==t.replace(/[a-z]|-|\d/gi,"")?null:t}function o(t){return"string"==typeof t&&(t=t.trim()).length>0&&/(\/|\.)/.test(t)?t:null}export{e as IonIcon};
File diff suppressed because one or more lines are too long
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.ionicons;class e{constructor(){this.isVisible=!1}componentWillLoad(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidUnload(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,e,i){if(this.win){const s=this.io=new this.win.IntersectionObserver(t=>{t[0].isIntersecting&&(s.disconnect(),this.io=void 0,i())},{rootMargin:e});s.observe(t)}else i()}loadIcon(){if(!this.isServer&&this.isVisible){const t=this.getUrl();t&&function(t){let e=i.get(t);return e||(e=fetch(t,{cache:"force-cache"}).then(t=>t.ok?t.text():Promise.resolve(null)),i.set(t,e)),e}(t).then(t=>{this.svgContent=function(t,e,i){if(e){const s=t.createDocumentFragment(),o=t.createElement("div");o.innerHTML=e,s.appendChild(o);for(let t=o.childNodes.length-1;t>=0;t--)"svg"!==o.childNodes[t].nodeName.toLowerCase()&&o.removeChild(o.childNodes[t]);const n=o.firstElementChild;if(n&&"svg"===n.nodeName.toLowerCase()&&(i&&n.setAttribute(i,""),function t(e){if(1===e.nodeType){if("script"===e.nodeName.toLowerCase())return!1;for(var i=0;i<e.attributes.length;i++){let t=e.attributes[i].value;if("string"==typeof t&&0===t.toLowerCase().indexOf("on"))return!1}for(i=0;i<e.childNodes.length;i++)if(!t(e.childNodes[i]))return!1}return!0}(n)))return o.innerHTML}return""}(this.doc,t,this.el["s-sc"])})}if(!this.ariaLabel){const t=s(this.name,this.mode,this.ios,this.md);t&&(this.ariaLabel=t.replace("ios-","").replace("md-","").replace(/\-/g," "))}}getUrl(){let t=o(this.src);return t||((t=s(this.name,this.mode,this.ios,this.md))?this.getNamedUrl(t):(t=o(this.icon))?t:(t=s(this.icon,this.mode,this.ios,this.md))?this.getNamedUrl(t):null)}getNamedUrl(t){return`${this.resourcesUrl}svg/${t}.svg`}hostData(){return{role:"img",class:Object.assign({},(t=this.color,t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null),{[`icon-${this.size}`]:!!this.size})};var t}render(){return!this.isServer&&this.svgContent?t("div",{class:"icon-inner",innerHTML:this.svgContent}):t("div",{class:"icon-inner"})}static get is(){return"ion-icon"}static get encapsulation(){return"shadow"}static get properties(){return{ariaLabel:{type:String,attr:"aria-label",reflectToAttr:!0,mutable:!0},color:{type:String,attr:"color"},doc:{context:"document"},el:{elementRef:!0},icon:{type:String,attr:"icon",watchCallbacks:["loadIcon"]},ios:{type:String,attr:"ios"},isServer:{context:"isServer"},isVisible:{state:!0},md:{type:String,attr:"md"},mode:{context:"mode"},name:{type:String,attr:"name",watchCallbacks:["loadIcon"]},resourcesUrl:{context:"resourcesUrl"},size:{type:String,attr:"size"},src:{type:String,attr:"src",watchCallbacks:["loadIcon"]},svgContent:{state:!0},win:{context:"window"}}}static get style(){return"[data-ion-icon-host]{display:inline-block;width:1em;height:1em;contain:strict;-webkit-box-sizing:content-box!important;box-sizing:content-box!important;--ion-color-base:currentColor}.icon-small[data-ion-icon-host]{font-size:var(--ion-icon-size-small,18px)!important}.icon-large[data-ion-icon-host]{font-size:var(--ion-icon-size-large,32px)!important}.icon-inner[data-ion-icon], svg[data-ion-icon]{display:block;height:100%;width:100%}svg[data-ion-icon]{fill:var(--ion-color-base);stroke:var(--ion-color-base)}.ion-color-primary[data-ion-icon-host]{--ion-color-base:var(--ion-color-primary, #3880ff)}.ion-color-secondary[data-ion-icon-host]{--ion-color-base:var(--ion-color-secondary, #0cd1e8)}.ion-color-tertiary[data-ion-icon-host]{--ion-color-base:var(--ion-color-tertiary, #f4a942)}.ion-color-success[data-ion-icon-host]{--ion-color-base:var(--ion-color-success, #10dc60)}.ion-color-warning[data-ion-icon-host]{--ion-color-base:var(--ion-color-warning, #ffce00)}.ion-color-danger[data-ion-icon-host]{--ion-color-base:var(--ion-color-danger, #f14141)}.ion-color-light[data-ion-icon-host]{--ion-color-base:var(--ion-color-light, #f4f5f8)}.ion-color-medium[data-ion-icon-host]{--ion-color-base:var(--ion-color-medium, #989aa2)}.ion-color-dark[data-ion-icon-host]{--ion-color-base:var(--ion-color-dark, #222428)}"}}const i=new Map;function s(t,e,i,s){return e=(e||"md").toLowerCase(),i&&"ios"===e?t=i.toLowerCase():s&&"md"===e?t=s.toLowerCase():t&&!/^md-|^ios-|^logo-/.test(t)&&(t=e+"-"+t.toLowerCase()),"string"!=typeof t||""===t.trim()?null:""!==t.replace(/[a-z]|-|\d/gi,"")?null:t}function o(t){return"string"==typeof t&&(t=t.trim()).length>0&&/(\/|\.)/.test(t)?t:null}export{e as IonIcon};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-4
View File
@@ -1,4 +0,0 @@
/*! Built with http://stenciljs.com */
(function(namespace,resourcesUrl){"use strict";
})("ionicons");
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
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.ionicons;function e(t,e,i,s){return e=(e||"md").toLowerCase(),i&&"ios"===e?t=i.toLowerCase():s&&"md"===e?t=s.toLowerCase():t&&(t=t.toLowerCase(),/^md-|^ios-|^logo-/.test(t)||(t=`${e}-${t}`)),"string"!=typeof t||""===t.trim()?null:""!==t.replace(/[a-z]|-|\d/gi,"")?null:t}function i(t){return"string"==typeof t&&(t=t.trim()).length>0&&/(\/|\.)/.test(t)?t:null}class s{constructor(){this.isVisible=!1,this.lazy=!1}componentWillLoad(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidUnload(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,e,i){if(this.lazy&&this.win&&this.win.IntersectionObserver){const s=this.io=new this.win.IntersectionObserver(t=>{t[0].isIntersecting&&(s.disconnect(),this.io=void 0,i())},{rootMargin:e});s.observe(t)}else i()}loadIcon(){if(!this.isServer&&this.isVisible){const t=this.getUrl();t&&function(t,e,i){let s=o.get(e);return console.log("scoped","s-ion-icon"),s||(s=fetch(e,{cache:"force-cache"}).then(t=>t.ok?t.text():Promise.resolve(null)).then(e=>(function(t,e,i){if(e){const i=t.createDocumentFragment(),s=t.createElement("div");s.innerHTML=e,i.appendChild(s);for(let t=s.childNodes.length-1;t>=0;t--)"svg"!==s.childNodes[t].nodeName.toLowerCase()&&s.removeChild(s.childNodes[t]);const o=s.firstElementChild;if(o&&"svg"===o.nodeName.toLowerCase()&&(o.setAttribute("class","s-ion-icon"),function t(e){if(1===e.nodeType){if("script"===e.nodeName.toLowerCase())return!1;for(let t=0;t<e.attributes.length;t++){const i=e.attributes[t].value;if("string"==typeof i&&0===i.toLowerCase().indexOf("on"))return!1}for(let i=0;i<e.childNodes.length;i++)if(!t(e.childNodes[i]))return!1}return!0}(o)))return s.innerHTML}return""})(t,e)),o.set(e,s)),s}(this.doc,t).then(t=>this.svgContent=t)}if(!this.ariaLabel){const t=e(this.name,this.mode,this.ios,this.md);t&&(this.ariaLabel=t.replace("ios-","").replace("md-","").replace(/\-/g," "))}}getUrl(){let t=i(this.src);return t||((t=e(this.name,this.mode,this.ios,this.md))?this.getNamedUrl(t):(t=i(this.icon))?t:(t=e(this.icon,this.mode,this.ios,this.md))?this.getNamedUrl(t):null)}getNamedUrl(t){return`${this.resourcesUrl}svg/${t}.svg`}hostData(){return{role:"img",class:Object.assign({},(t=this.color,t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null),{[`icon-${this.size}`]:!!this.size})};var t}render(){return t("div",!this.isServer&&this.svgContent?{class:"icon-inner",innerHTML:this.svgContent}:{class:"icon-inner"})}static get is(){return"ion-icon"}static get encapsulation(){return"shadow"}static get properties(){return{ariaLabel:{type:String,attr:"aria-label",reflectToAttr:!0,mutable:!0},color:{type:String,attr:"color"},doc:{context:"document"},el:{elementRef:!0},icon:{type:String,attr:"icon",watchCallbacks:["loadIcon"]},ios:{type:String,attr:"ios"},isServer:{context:"isServer"},isVisible:{state:!0},lazy:{type:Boolean,attr:"lazy"},md:{type:String,attr:"md"},mode:{type:String,attr:"mode"},name:{type:String,attr:"name",watchCallbacks:["loadIcon"]},resourcesUrl:{context:"resourcesUrl"},size:{type:String,attr:"size"},src:{type:String,attr:"src",watchCallbacks:["loadIcon"]},svgContent:{state:!0},win:{context:"window"}}}static get style(){return":host{display:inline-block;width:1em;height:1em;contain:strict;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}:host(.ion-color){color:var(--ion-color-base)!important}:host(.icon-small){font-size:var(--ion-icon-size-small,18px)!important}:host(.icon-large){font-size:var(--ion-icon-size-large,32px)!important}.icon-inner,svg{display:block;fill:currentColor;stroke:currentColor;height:100%;width:100%}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}"}}const o=new Map;export{s as IonIcon};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
ionicons.loadBundle("regxn1ml",["exports"],function(e){var t=window.ionicons.h;function i(e,t,i,n){return t=(t||"md").toLowerCase(),i&&"ios"===t?e=i.toLowerCase():n&&"md"===t?e=n.toLowerCase():e&&(e=e.toLowerCase(),/^md-|^ios-|^logo-/.test(e)||(e=t+"-"+e)),"string"!=typeof e||""===e.trim()?null:""!==e.replace(/[a-z]|-|\d/gi,"")?null:e}function n(e){return"string"==typeof e&&(e=e.trim()).length>0&&/(\/|\.)/.test(e)?e:null}var o=function(){function e(){this.isVisible=!1,this.lazy=!1}return e.prototype.componentWillLoad=function(){var e=this;this.waitUntilVisible(this.el,"50px",function(){e.isVisible=!0,e.loadIcon()})},e.prototype.componentDidUnload=function(){this.io&&(this.io.disconnect(),this.io=void 0)},e.prototype.waitUntilVisible=function(e,t,i){var n=this;if(this.lazy&&this.win&&this.win.IntersectionObserver){var o=this.io=new this.win.IntersectionObserver(function(e){e[0].isIntersecting&&(o.disconnect(),n.io=void 0,i())},{rootMargin:t});o.observe(e)}else i()},e.prototype.loadIcon=function(){var e=this;if(!this.isServer&&this.isVisible){var t=this.getUrl();t&&function(e,t,i){var n=r.get(t);return console.log("scoped","s-ion-icon"),n||(n=fetch(t,{cache:"force-cache"}).then(function(e){return e.ok?e.text():Promise.resolve(null)}).then(function(t){return function(e,t,i){if(t){var n=e.createDocumentFragment(),o=e.createElement("div");o.innerHTML=t,n.appendChild(o);for(var r=o.childNodes.length-1;r>=0;r--)"svg"!==o.childNodes[r].nodeName.toLowerCase()&&o.removeChild(o.childNodes[r]);var s=o.firstElementChild;if(s&&"svg"===s.nodeName.toLowerCase()&&(s.setAttribute("class","s-ion-icon"),function e(t){if(1===t.nodeType){if("script"===t.nodeName.toLowerCase())return!1;for(var i=0;i<t.attributes.length;i++){var n=t.attributes[i].value;if("string"==typeof n&&0===n.toLowerCase().indexOf("on"))return!1}for(i=0;i<t.childNodes.length;i++)if(!e(t.childNodes[i]))return!1}return!0}(s)))return o.innerHTML}return""}(e,t)}),r.set(t,n)),n}(this.doc,t).then(function(t){return e.svgContent=t})}if(!this.ariaLabel){var n=i(this.name,this.mode,this.ios,this.md);n&&(this.ariaLabel=n.replace("ios-","").replace("md-","").replace(/\-/g," "))}},e.prototype.getUrl=function(){var e=n(this.src);return e||((e=i(this.name,this.mode,this.ios,this.md))?this.getNamedUrl(e):(e=n(this.icon))?e:(e=i(this.icon,this.mode,this.ios,this.md))?this.getNamedUrl(e):null)},e.prototype.getNamedUrl=function(e){return this.resourcesUrl+"svg/"+e+".svg"},e.prototype.hostData=function(){var e;return{role:"img",class:Object.assign({},function(e){var t;return e?((t={"ion-color":!0})["ion-color-"+e]=!0,t):null}(this.color),(e={},e["icon-"+this.size]=!!this.size,e))}},e.prototype.render=function(){return t("div",!this.isServer&&this.svgContent?{class:"icon-inner",innerHTML:this.svgContent}:{class:"icon-inner"})},Object.defineProperty(e,"is",{get:function(){return"ion-icon"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"encapsulation",{get:function(){return"shadow"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{ariaLabel:{type:String,attr:"aria-label",reflectToAttr:!0,mutable:!0},color:{type:String,attr:"color"},doc:{context:"document"},el:{elementRef:!0},icon:{type:String,attr:"icon",watchCallbacks:["loadIcon"]},ios:{type:String,attr:"ios"},isServer:{context:"isServer"},isVisible:{state:!0},lazy:{type:Boolean,attr:"lazy"},md:{type:String,attr:"md"},mode:{type:String,attr:"mode"},name:{type:String,attr:"name",watchCallbacks:["loadIcon"]},resourcesUrl:{context:"resourcesUrl"},size:{type:String,attr:"size"},src:{type:String,attr:"src",watchCallbacks:["loadIcon"]},svgContent:{state:!0},win:{context:"window"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return":host{display:inline-block;width:1em;height:1em;contain:strict;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}:host(.ion-color){color:var(--ion-color-base)!important}:host(.icon-small){font-size:var(--ion-icon-size-small,18px)!important}:host(.icon-large){font-size:var(--ion-icon-size-large,32px)!important}.icon-inner,svg{display:block;fill:currentColor;stroke:currentColor;height:100%;width:100%}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}"},enumerable:!0,configurable:!0}),e}(),r=new Map;e.IonIcon=o,Object.defineProperty(e,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.ionicons;function e(t,e,i,s){return e=(e||"md").toLowerCase(),i&&"ios"===e?t=i.toLowerCase():s&&"md"===e?t=s.toLowerCase():t&&(t=t.toLowerCase(),/^md-|^ios-|^logo-/.test(t)||(t=`${e}-${t}`)),"string"!=typeof t||""===t.trim()?null:""!==t.replace(/[a-z]|-|\d/gi,"")?null:t}function i(t){return"string"==typeof t&&(t=t.trim()).length>0&&/(\/|\.)/.test(t)?t:null}class s{constructor(){this.isVisible=!1,this.lazy=!1}componentWillLoad(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidUnload(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,e,i){if(this.lazy&&this.win&&this.win.IntersectionObserver){const s=this.io=new this.win.IntersectionObserver(t=>{t[0].isIntersecting&&(s.disconnect(),this.io=void 0,i())},{rootMargin:e});s.observe(t)}else i()}loadIcon(){if(!this.isServer&&this.isVisible){const t=this.getUrl();t&&function(t,e,i){let s=o.get(e);return console.log("scoped","s-ion-icon"),s||(s=fetch(e,{cache:"force-cache"}).then(t=>t.ok?t.text():Promise.resolve(null)).then(e=>(function(t,e,i){if(e){const i=t.createDocumentFragment(),s=t.createElement("div");s.innerHTML=e,i.appendChild(s);for(let t=s.childNodes.length-1;t>=0;t--)"svg"!==s.childNodes[t].nodeName.toLowerCase()&&s.removeChild(s.childNodes[t]);const o=s.firstElementChild;if(o&&"svg"===o.nodeName.toLowerCase()&&(o.setAttribute("class","s-ion-icon"),function t(e){if(1===e.nodeType){if("script"===e.nodeName.toLowerCase())return!1;for(let t=0;t<e.attributes.length;t++){const i=e.attributes[t].value;if("string"==typeof i&&0===i.toLowerCase().indexOf("on"))return!1}for(let i=0;i<e.childNodes.length;i++)if(!t(e.childNodes[i]))return!1}return!0}(o)))return s.innerHTML}return""})(t,e)),o.set(e,s)),s}(this.doc,t).then(t=>this.svgContent=t)}if(!this.ariaLabel){const t=e(this.name,this.mode,this.ios,this.md);t&&(this.ariaLabel=t.replace("ios-","").replace("md-","").replace(/\-/g," "))}}getUrl(){let t=i(this.src);return t||((t=e(this.name,this.mode,this.ios,this.md))?this.getNamedUrl(t):(t=i(this.icon))?t:(t=e(this.icon,this.mode,this.ios,this.md))?this.getNamedUrl(t):null)}getNamedUrl(t){return`${this.resourcesUrl}svg/${t}.svg`}hostData(){return{role:"img",class:Object.assign({},(t=this.color,t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null),{[`icon-${this.size}`]:!!this.size})};var t}render(){return t("div",!this.isServer&&this.svgContent?{class:"icon-inner",innerHTML:this.svgContent}:{class:"icon-inner"})}static get is(){return"ion-icon"}static get encapsulation(){return"shadow"}static get properties(){return{ariaLabel:{type:String,attr:"aria-label",reflectToAttr:!0,mutable:!0},color:{type:String,attr:"color"},doc:{context:"document"},el:{elementRef:!0},icon:{type:String,attr:"icon",watchCallbacks:["loadIcon"]},ios:{type:String,attr:"ios"},isServer:{context:"isServer"},isVisible:{state:!0},lazy:{type:Boolean,attr:"lazy"},md:{type:String,attr:"md"},mode:{type:String,attr:"mode"},name:{type:String,attr:"name",watchCallbacks:["loadIcon"]},resourcesUrl:{context:"resourcesUrl"},size:{type:String,attr:"size"},src:{type:String,attr:"src",watchCallbacks:["loadIcon"]},svgContent:{state:!0},win:{context:"window"}}}static get style(){return".sc-ion-icon-h{display:inline-block;width:1em;height:1em;contain:strict;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.ion-color.sc-ion-icon-h{color:var(--ion-color-base)!important}.icon-small.sc-ion-icon-h{font-size:var(--ion-icon-size-small,18px)!important}.icon-large.sc-ion-icon-h{font-size:var(--ion-icon-size-large,32px)!important}.icon-inner.sc-ion-icon, svg.sc-ion-icon{display:block;fill:currentColor;stroke:currentColor;height:100%;width:100%}.ion-color-primary.sc-ion-icon-h{--ion-color-base:var(--ion-color-primary, #3880ff)}.ion-color-secondary.sc-ion-icon-h{--ion-color-base:var(--ion-color-secondary, #0cd1e8)}.ion-color-tertiary.sc-ion-icon-h{--ion-color-base:var(--ion-color-tertiary, #f4a942)}.ion-color-success.sc-ion-icon-h{--ion-color-base:var(--ion-color-success, #10dc60)}.ion-color-warning.sc-ion-icon-h{--ion-color-base:var(--ion-color-warning, #ffce00)}.ion-color-danger.sc-ion-icon-h{--ion-color-base:var(--ion-color-danger, #f14141)}.ion-color-light.sc-ion-icon-h{--ion-color-base:var(--ion-color-light, #f4f5f8)}.ion-color-medium.sc-ion-icon-h{--ion-color-base:var(--ion-color-medium, #989aa2)}.ion-color-dark.sc-ion-icon-h{--ion-color-base:var(--ion-color-dark, #222428)}"}}const o=new Map;export{s as IonIcon};
File diff suppressed because one or more lines are too long
+2
View File
@@ -0,0 +1,2 @@
require.context('!!file-loader?name=[name].[ext]&outputPath=svg!./', false, /.svg$/);
+1 -1
View File
@@ -1 +1 @@
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><style>.st0{fill:#010101}</style><path class="st0" d="M227.6 213.1H256v57.1h-28.4z"/><path class="st0" d="M0 156v171.4h142.2V356H256v-28.6h256V156H0zm142.2 142.9h-28.4v-85.7H85.3v85.7H28.4V184.6h113.8v114.3zm142.2 0h-56.9v28.6h-56.9V184.6h113.8v114.3zm199.2 0h-28.4v-85.7h-28.4v85.7h-28.4v-85.7H370v85.7h-56.9V184.6h170.7v114.3z"/></svg>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 512 512" xml:space="preserve"><style>.st0{fill:#010101}</style><path class="st0" d="M227.6 213.1H256v57.1h-28.4z"/><path class="st0" d="M0 156v171.4h142.2V356H256v-28.6h256V156H0zm142.2 142.9h-28.4v-85.7H85.3v85.7H28.4V184.6h113.8v114.3zm142.2 0h-56.9v28.6h-56.9V184.6h113.8v114.3zm199.2 0h-28.4v-85.7h-28.4v85.7h-28.4v-85.7H370v85.7h-56.9V184.6h170.7v114.3z"/></svg>

Before

Width:  |  Height:  |  Size: 412 B

After

Width:  |  Height:  |  Size: 459 B

+1 -1
View File
@@ -1 +1 @@
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><style>.st0{fill:#010101}</style><path class="st0" d="M117.3 42.7c-17.6 0-32 14.4-32 32v362.7c0 17.6 14.4 32 32 32H320V42.7H117.3zM384.7 42.7H368v426.7h16.7c23.1 0 42-18.9 42-42V84.7c0-23.1-18.9-42-42-42z"/></svg>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 512 512" xml:space="preserve"><style>.st0{fill:#010101}</style><path class="st0" d="M117.3 42.7c-17.6 0-32 14.4-32 32v362.7c0 17.6 14.4 32 32 32H320V42.7H117.3zM384.7 42.7H368v426.7h16.7c23.1 0 42-18.9 42-42V84.7c0-23.1-18.9-42-42-42z"/></svg>

Before

Width:  |  Height:  |  Size: 288 B

After

Width:  |  Height:  |  Size: 335 B

-10225
View File
File diff suppressed because it is too large Load Diff
+24 -31
View File
@@ -1,6 +1,6 @@
{
"name": "ionicons",
"version": "4.2.2",
"version": "4.4.6",
"description": "Premium icons for Ionic.",
"files": [
"dist/"
@@ -11,34 +11,40 @@
"unpkg": "dist/ionicons.js",
"collection": "dist/collection/collection-manifest.json",
"scripts": {
"build": "npm run clean && npm run build.icon && npm run generate && npm run build.data && npm run build.css && npm run build.docs && npm run copy.tasks && npm run test",
"build": "npm run clean && npm run lint.ts && npm run build.icon && npm run generate && npm run build.data && npm run build.css && npm run build.docs && npm run copy.tasks && npm run test",
"build.css": "node scripts/build-css.js",
"build.data": "node scripts/data.js",
"build.docs": "stencil build --config src/docs/stencil.config.js",
"build.docs": "stencil build --config src/docs/stencil.config.ts",
"build.icon": "stencil build",
"clean": "node scripts/clean.js",
"copy.tasks": "node scripts/copy-tasks.js",
"dev": "npm run build && sd concurrent \"stencil build --dev --es5 --config src/docs/stencil.config.js --watch\" \"stencil-dev-server\" ",
"dev": "npm run build && stencil build --dev --watch --serve --es5 --config src/docs/stencil.config.js",
"mode.comparison": "node scripts/mode-comparison.js",
"generate": "python scripts/generate.py",
"release": "npm run build && np --any-branch",
"test": "jest",
"test.watch": "jest --watch"
"lint.ts": "tslint --project .",
"lint.ts.fix": "tslint --project . --fix",
"release": "np --any-branch --yolo",
"test": "stencil test --spec"
},
"devDependencies": {
"@stencil/core": "0.10.0-2",
"@stencil/dev-server": "latest",
"@stencil/router": "^0.1.6",
"@stencil/sass": "0.0.4",
"@stencil/utils": "latest",
"@types/jest": "^22.2.3",
"@stencil/core": "0.14.0-4",
"@stencil/router": "0.3.0",
"@stencil/sass": "0.1.1",
"@types/highlight.js": "^9.12.3",
"@types/jest": "^23.1.3",
"@types/puppeteer": "1.6.4",
"archiver": "^2.1.1",
"fs-extra": "4.0.2",
"highlight.js": "^9.12.0",
"jest": "^22.4.3",
"node-sass": "4.9.0",
"np": "2.17.0",
"svgo": "1.0.3"
"jest": "23.6.0",
"jest-cli": "23.6.0",
"node-sass": "4.9.3",
"np": "3.0.4",
"pixelmatch": "4.0.2",
"puppeteer": "1.7.0",
"svgo": "1.1.1",
"tslint": "^5.11.0",
"tslint-ionic-rules": "0.0.19"
},
"keywords": [
"ionicons",
@@ -69,18 +75,5 @@
"bugs": {
"url": "https://github.com/ionic-team/ionicons/issues"
},
"license": "MIT",
"jest": {
"transform": {
"^.+\\.(js|ts|tsx)$": "<rootDir>/node_modules/@stencil/core/testing/jest.preprocessor.js"
},
"testRegex": "src/.*\\.spec\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"d.ts"
]
}
"license": "MIT"
}
+12 -3
View File
@@ -8,6 +8,7 @@ const PKG_JSON = path.join(ROOT_DIR, 'package.json');
const SRC_JSON = path.join(SRC_DIR, 'data.json');
const DST_DIR = path.join(ROOT_DIR, 'dist');
const DST_JSON = path.join(DST_DIR, 'ionicons/data.json');
const DST_JS = path.join(DST_DIR, 'svg/index.js');
console.log('checking icon data: ' + SRC_JSON);
@@ -16,8 +17,10 @@ let srcData = fs.readJsonSync(SRC_JSON);
let svgFiles = fs.readdirSync(SRC_SVG_DIR);
let pkgData = fs.readJsonSync(PKG_JSON);
srcData['version'] = pkgData.version;
let iconFilenames = [];
svgFiles.filter(f => f.indexOf('.svg') > -1).forEach(svgFile => {
svgFiles = svgFiles.filter(f => f.indexOf('.svg') > -1);
svgFiles.forEach(svgFile => {
let iconName = svgFile.split('.')[0];
let icon = srcData.icons.find(i => i.icons.indexOf(iconName) > -1);
@@ -41,5 +44,11 @@ srcData.icons.forEach(i => {
});
});
let content = JSON.stringify(srcData);
fs.writeFileSync(DST_JSON, content);
const jsonContent = JSON.stringify(srcData);
fs.writeFileSync(DST_JSON, jsonContent);
const jsContent = `
require.context('!!file-loader?name=[name].[ext]&outputPath=svg!./', false, /\.svg$/);
`;
fs.writeFileSync(DST_JS, jsContent)
+243 -381
View File
@@ -1,445 +1,307 @@
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil build process.
* It contains typing information for all components that exist in this project
* and imports for stencil collections that might be configured in your stencil.config.js file
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import '@stencil/core';
declare global {
namespace JSX {
interface Element {}
export interface IntrinsicElements {}
}
namespace JSXElements {}
interface HTMLStencilElement extends HTMLElement {
componentOnReady(): Promise<this>;
componentOnReady(done: (ele?: this) => void): void;
forceUpdate(): void;
}
interface HTMLAttributes {}
}
import '@stencil/router';
import '@stencil/state-tunnel';
import {
MatchResults,
} from '@stencil/router';
declare global {
namespace StencilComponents {
interface IonIcon {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel': string;
'color': string;
/**
* A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property.
*/
'icon': string;
/**
* Specifies which icon to use on `ios` mode.
*/
'ios': string;
/**
* Specifies which icon to use on `md` mode.
*/
'md': string;
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name': string;
/**
* The size of the icon. Available options are: `"small"` and `"large"`.
*/
'size': string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
'src': string;
}
export namespace Components {
interface IonIcon {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel'?: string;
/**
* The color to use for the background of the item.
*/
'color'?: string;
/**
* A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property.
*/
'icon'?: string;
/**
* Specifies which icon to use on `ios` mode.
*/
'ios'?: string;
/**
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`.
*/
'lazy': boolean;
/**
* Specifies which icon to use on `md` mode.
*/
'md'?: string;
/**
* The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`.
*/
'mode'?: 'ios' | 'md';
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name'?: string;
/**
* The size of the icon. Available options are: `"small"` and `"large"`.
*/
'size'?: string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
'src'?: string;
}
interface IonIconAttributes extends StencilHTMLAttributes {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel'?: string;
/**
* The color to use for the background of the item.
*/
'color'?: string;
/**
* A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property.
*/
'icon'?: string;
/**
* Specifies which icon to use on `ios` mode.
*/
'ios'?: string;
/**
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`.
*/
'lazy'?: boolean;
/**
* Specifies which icon to use on `md` mode.
*/
'md'?: string;
/**
* The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`.
*/
'mode'?: 'ios' | 'md';
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name'?: string;
/**
* The size of the icon. Available options are: `"small"` and `"large"`.
*/
'size'?: string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
'src'?: string;
}
interface HTMLIonIconElement extends StencilComponents.IonIcon, HTMLStencilElement {}
interface FooterBar {}
interface FooterBarAttributes extends StencilHTMLAttributes {}
interface HeaderBar {
'isSearchVisible': boolean;
'query': string;
'version': string;
}
interface HeaderBarAttributes extends StencilHTMLAttributes {
'isSearchVisible'?: boolean;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'query'?: string;
'version'?: string;
}
interface IconList {
'data': any;
'query': string;
}
interface IconListAttributes extends StencilHTMLAttributes {
'data'?: any;
'query'?: string;
}
interface IconSearch {
'autofocus': string;
'query': string;
'size': string;
}
interface IconSearchAttributes extends StencilHTMLAttributes {
'autofocus'?: string;
'onHasSearched'?: (event: CustomEvent) => void;
'query'?: string;
'size'?: string;
}
interface IoniconsSite {}
interface IoniconsSiteAttributes extends StencilHTMLAttributes {}
interface LandingPage {
'data': any;
'query': string;
}
interface LandingPageAttributes extends StencilHTMLAttributes {
'data'?: any;
'query'?: string;
}
interface NotfoundPage {}
interface NotfoundPageAttributes extends StencilHTMLAttributes {}
interface ToastBar {
'selectedIcon': {
name: string,
icons: string[],
tags: string[]
};
'selectedIconType': string;
}
interface ToastBarAttributes extends StencilHTMLAttributes {
'onClearToast'?: (event: CustomEvent) => void;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'selectedIcon'?: {
name: string,
icons: string[],
tags: string[]
};
'selectedIconType'?: string;
}
interface UsagePage {
'data': any;
'match'?: MatchResults;
}
interface UsagePageAttributes extends StencilHTMLAttributes {
'data'?: any;
'match'?: MatchResults;
}
}
declare global {
interface StencilElementInterfaces {
'IonIcon': Components.IonIcon;
'FooterBar': Components.FooterBar;
'HeaderBar': Components.HeaderBar;
'IconList': Components.IconList;
'IconSearch': Components.IconSearch;
'IoniconsSite': Components.IoniconsSite;
'LandingPage': Components.LandingPage;
'NotfoundPage': Components.NotfoundPage;
'ToastBar': Components.ToastBar;
'UsagePage': Components.UsagePage;
}
interface StencilIntrinsicElements {
'ion-icon': Components.IonIconAttributes;
'footer-bar': Components.FooterBarAttributes;
'header-bar': Components.HeaderBarAttributes;
'icon-list': Components.IconListAttributes;
'icon-search': Components.IconSearchAttributes;
'ionicons-site': Components.IoniconsSiteAttributes;
'landing-page': Components.LandingPageAttributes;
'notfound-page': Components.NotfoundPageAttributes;
'toast-bar': Components.ToastBarAttributes;
'usage-page': Components.UsagePageAttributes;
}
interface HTMLIonIconElement extends Components.IonIcon, HTMLStencilElement {}
var HTMLIonIconElement: {
prototype: HTMLIonIconElement;
new (): HTMLIonIconElement;
};
interface HTMLElementTagNameMap {
'ion-icon': HTMLIonIconElement;
}
interface ElementTagNameMap {
'ion-icon': HTMLIonIconElement;
}
namespace JSX {
interface IntrinsicElements {
'ion-icon': JSXElements.IonIconAttributes;
}
}
namespace JSXElements {
export interface IonIconAttributes extends HTMLAttributes {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel'?: string;
'color'?: string;
/**
* A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property.
*/
'icon'?: string;
/**
* Specifies which icon to use on `ios` mode.
*/
'ios'?: string;
/**
* Specifies which icon to use on `md` mode.
*/
'md'?: string;
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name'?: string;
/**
* The size of the icon. Available options are: `"small"` and `"large"`.
*/
'size'?: string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
'src'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface FooterBar {
}
}
interface HTMLFooterBarElement extends StencilComponents.FooterBar, HTMLStencilElement {}
interface HTMLFooterBarElement extends Components.FooterBar, HTMLStencilElement {}
var HTMLFooterBarElement: {
prototype: HTMLFooterBarElement;
new (): HTMLFooterBarElement;
};
interface HTMLElementTagNameMap {
'footer-bar': HTMLFooterBarElement;
}
interface ElementTagNameMap {
'footer-bar': HTMLFooterBarElement;
}
namespace JSX {
interface IntrinsicElements {
'footer-bar': JSXElements.FooterBarAttributes;
}
}
namespace JSXElements {
export interface FooterBarAttributes extends HTMLAttributes {
}
}
}
declare global {
namespace StencilComponents {
interface HeaderBar {
'isSearchVisible': boolean;
'query': string;
'version': string;
}
}
interface HTMLHeaderBarElement extends StencilComponents.HeaderBar, HTMLStencilElement {}
interface HTMLHeaderBarElement extends Components.HeaderBar, HTMLStencilElement {}
var HTMLHeaderBarElement: {
prototype: HTMLHeaderBarElement;
new (): HTMLHeaderBarElement;
};
interface HTMLElementTagNameMap {
'header-bar': HTMLHeaderBarElement;
}
interface ElementTagNameMap {
'header-bar': HTMLHeaderBarElement;
}
namespace JSX {
interface IntrinsicElements {
'header-bar': JSXElements.HeaderBarAttributes;
}
}
namespace JSXElements {
export interface HeaderBarAttributes extends HTMLAttributes {
'isSearchVisible'?: boolean;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'query'?: string;
'version'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface IconList {
'data': any;
'query': string;
}
}
interface HTMLIconListElement extends StencilComponents.IconList, HTMLStencilElement {}
interface HTMLIconListElement extends Components.IconList, HTMLStencilElement {}
var HTMLIconListElement: {
prototype: HTMLIconListElement;
new (): HTMLIconListElement;
};
interface HTMLElementTagNameMap {
'icon-list': HTMLIconListElement;
}
interface ElementTagNameMap {
'icon-list': HTMLIconListElement;
}
namespace JSX {
interface IntrinsicElements {
'icon-list': JSXElements.IconListAttributes;
}
}
namespace JSXElements {
export interface IconListAttributes extends HTMLAttributes {
'data'?: any;
'query'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface IconSearch {
'autofocus': string;
'query': string;
'size': string;
}
}
interface HTMLIconSearchElement extends StencilComponents.IconSearch, HTMLStencilElement {}
interface HTMLIconSearchElement extends Components.IconSearch, HTMLStencilElement {}
var HTMLIconSearchElement: {
prototype: HTMLIconSearchElement;
new (): HTMLIconSearchElement;
};
interface HTMLElementTagNameMap {
'icon-search': HTMLIconSearchElement;
}
interface ElementTagNameMap {
'icon-search': HTMLIconSearchElement;
}
namespace JSX {
interface IntrinsicElements {
'icon-search': JSXElements.IconSearchAttributes;
}
}
namespace JSXElements {
export interface IconSearchAttributes extends HTMLAttributes {
'autofocus'?: string;
'onHasSearched'?: (event: CustomEvent) => void;
'query'?: string;
'size'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface IoniconsSite {
}
}
interface HTMLIoniconsSiteElement extends StencilComponents.IoniconsSite, HTMLStencilElement {}
interface HTMLIoniconsSiteElement extends Components.IoniconsSite, HTMLStencilElement {}
var HTMLIoniconsSiteElement: {
prototype: HTMLIoniconsSiteElement;
new (): HTMLIoniconsSiteElement;
};
interface HTMLElementTagNameMap {
'ionicons-site': HTMLIoniconsSiteElement;
}
interface ElementTagNameMap {
'ionicons-site': HTMLIoniconsSiteElement;
}
namespace JSX {
interface IntrinsicElements {
'ionicons-site': JSXElements.IoniconsSiteAttributes;
}
}
namespace JSXElements {
export interface IoniconsSiteAttributes extends HTMLAttributes {
}
}
}
declare global {
namespace StencilComponents {
interface LandingPage {
'data': any;
'query': string;
}
}
interface HTMLLandingPageElement extends StencilComponents.LandingPage, HTMLStencilElement {}
interface HTMLLandingPageElement extends Components.LandingPage, HTMLStencilElement {}
var HTMLLandingPageElement: {
prototype: HTMLLandingPageElement;
new (): HTMLLandingPageElement;
};
interface HTMLElementTagNameMap {
'landing-page': HTMLLandingPageElement;
}
interface ElementTagNameMap {
'landing-page': HTMLLandingPageElement;
}
namespace JSX {
interface IntrinsicElements {
'landing-page': JSXElements.LandingPageAttributes;
}
}
namespace JSXElements {
export interface LandingPageAttributes extends HTMLAttributes {
'data'?: any;
'query'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface NotfoundPage {
}
}
interface HTMLNotfoundPageElement extends StencilComponents.NotfoundPage, HTMLStencilElement {}
interface HTMLNotfoundPageElement extends Components.NotfoundPage, HTMLStencilElement {}
var HTMLNotfoundPageElement: {
prototype: HTMLNotfoundPageElement;
new (): HTMLNotfoundPageElement;
};
interface HTMLElementTagNameMap {
'notfound-page': HTMLNotfoundPageElement;
}
interface ElementTagNameMap {
'notfound-page': HTMLNotfoundPageElement;
}
namespace JSX {
interface IntrinsicElements {
'notfound-page': JSXElements.NotfoundPageAttributes;
}
}
namespace JSXElements {
export interface NotfoundPageAttributes extends HTMLAttributes {
}
}
}
declare global {
namespace StencilComponents {
interface ToastBar {
'selectedIcon': {
name: string,
icons: Array<string>,
tags: Array<string>
};
'selectedIconType': string;
}
}
interface HTMLToastBarElement extends StencilComponents.ToastBar, HTMLStencilElement {}
interface HTMLToastBarElement extends Components.ToastBar, HTMLStencilElement {}
var HTMLToastBarElement: {
prototype: HTMLToastBarElement;
new (): HTMLToastBarElement;
};
interface HTMLElementTagNameMap {
'toast-bar': HTMLToastBarElement;
}
interface ElementTagNameMap {
'toast-bar': HTMLToastBarElement;
}
namespace JSX {
interface IntrinsicElements {
'toast-bar': JSXElements.ToastBarAttributes;
}
}
namespace JSXElements {
export interface ToastBarAttributes extends HTMLAttributes {
'onClearToast'?: (event: CustomEvent) => void;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'selectedIcon'?: {
name: string,
icons: Array<string>,
tags: Array<string>
};
'selectedIconType'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface UsagePage {
'data': any;
'match': MatchResults;
}
}
interface HTMLUsagePageElement extends StencilComponents.UsagePage, HTMLStencilElement {}
interface HTMLUsagePageElement extends Components.UsagePage, HTMLStencilElement {}
var HTMLUsagePageElement: {
prototype: HTMLUsagePageElement;
new (): HTMLUsagePageElement;
};
interface HTMLElementTagNameMap {
'usage-page': HTMLUsagePageElement;
}
interface ElementTagNameMap {
'usage-page': HTMLUsagePageElement;
}
namespace JSX {
interface IntrinsicElements {
'usage-page': JSXElements.UsagePageAttributes;
}
}
namespace JSXElements {
export interface UsagePageAttributes extends HTMLAttributes {
'data'?: any;
'match'?: MatchResults;
}
}
}
declare global { namespace JSX { interface StencilJSX {} } }
interface HTMLElementTagNameMap {
'ion-icon': HTMLIonIconElement
'footer-bar': HTMLFooterBarElement
'header-bar': HTMLHeaderBarElement
'icon-list': HTMLIconListElement
'icon-search': HTMLIconSearchElement
'ionicons-site': HTMLIoniconsSiteElement
'landing-page': HTMLLandingPageElement
'notfound-page': HTMLNotfoundPageElement
'toast-bar': HTMLToastBarElement
'usage-page': HTMLUsagePageElement
}
interface ElementTagNameMap {
'ion-icon': HTMLIonIconElement;
'footer-bar': HTMLFooterBarElement;
'header-bar': HTMLHeaderBarElement;
'icon-list': HTMLIconListElement;
'icon-search': HTMLIconSearchElement;
'ionicons-site': HTMLIoniconsSiteElement;
'landing-page': HTMLLandingPageElement;
'notfound-page': HTMLNotfoundPageElement;
'toast-bar': HTMLToastBarElement;
'usage-page': HTMLUsagePageElement;
}
export namespace JSX {
export interface Element {}
export interface IntrinsicElements extends StencilIntrinsicElements {
[tagName: string]: any;
}
}
export interface HTMLAttributes extends StencilHTMLAttributes {}
}
+107 -92
View File
@@ -1,119 +1,134 @@
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import '@stencil/core';
declare global {
namespace JSX {
interface Element {}
export interface IntrinsicElements {}
export namespace Components {
interface IonIcon {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel'?: string;
/**
* The color to use for the background of the item.
*/
'color'?: string;
/**
* A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property.
*/
'icon'?: string;
/**
* Specifies which icon to use on `ios` mode.
*/
'ios'?: string;
/**
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`.
*/
'lazy': boolean;
/**
* Specifies which icon to use on `md` mode.
*/
'md'?: string;
/**
* The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`.
*/
'mode'?: 'ios' | 'md';
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name'?: string;
/**
* The size of the icon. Available options are: `"small"` and `"large"`.
*/
'size'?: string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
'src'?: string;
}
namespace JSXElements {}
interface HTMLElement {
componentOnReady?: () => Promise<this | null>;
interface IonIconAttributes extends StencilHTMLAttributes {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel'?: string;
/**
* The color to use for the background of the item.
*/
'color'?: string;
/**
* A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property.
*/
'icon'?: string;
/**
* Specifies which icon to use on `ios` mode.
*/
'ios'?: string;
/**
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`.
*/
'lazy'?: boolean;
/**
* Specifies which icon to use on `md` mode.
*/
'md'?: string;
/**
* The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`.
*/
'mode'?: 'ios' | 'md';
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name'?: string;
/**
* The size of the icon. Available options are: `"small"` and `"large"`.
*/
'size'?: string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
'src'?: string;
}
interface HTMLStencilElement extends HTMLElement {
componentOnReady(): Promise<this>;
forceUpdate(): void;
}
interface HTMLAttributes {}
}
declare global {
namespace StencilComponents {
interface IonIcon {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel': string;
'color': string;
/**
* A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property.
*/
'icon': string;
/**
* Specifies which icon to use on `ios` mode.
*/
'ios': string;
/**
* Specifies which icon to use on `md` mode.
*/
'md': string;
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name': string;
/**
* The size of the icon. Available options are: `"small"` and `"large"`.
*/
'size': string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
'src': string;
}
interface StencilElementInterfaces {
'IonIcon': Components.IonIcon;
}
interface HTMLIonIconElement extends StencilComponents.IonIcon, HTMLStencilElement {}
interface StencilIntrinsicElements {
'ion-icon': Components.IonIconAttributes;
}
interface HTMLIonIconElement extends Components.IonIcon, HTMLStencilElement {}
var HTMLIonIconElement: {
prototype: HTMLIonIconElement;
new (): HTMLIonIconElement;
};
interface HTMLElementTagNameMap {
'ion-icon': HTMLIonIconElement;
'ion-icon': HTMLIonIconElement
}
interface ElementTagNameMap {
'ion-icon': HTMLIonIconElement;
}
namespace JSX {
interface IntrinsicElements {
'ion-icon': JSXElements.IonIconAttributes;
}
}
namespace JSXElements {
export interface IonIconAttributes extends HTMLAttributes {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel'?: string;
'color'?: string;
/**
* A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property.
*/
'icon'?: string;
/**
* Specifies which icon to use on `ios` mode.
*/
'ios'?: string;
/**
* Specifies which icon to use on `md` mode.
*/
'md'?: string;
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name'?: string;
/**
* The size of the icon. Available options are: `"small"` and `"large"`.
*/
'size'?: string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
'src'?: string;
export namespace JSX {
export interface Element {}
export interface IntrinsicElements extends StencilIntrinsicElements {
[tagName: string]: any;
}
}
export interface HTMLAttributes extends StencilHTMLAttributes {}
}
declare global { namespace JSX { interface StencilJSX {} } }
export declare function defineCustomElements(window: any): void;
+6 -6
View File
@@ -7,8 +7,10 @@
contain: strict;
box-sizing: content-box !important;
}
--ion-color-base: currentColor;
:host(.ion-color) {
color: var(--ion-color-base) !important;
}
:host(.icon-small) {
@@ -23,15 +25,13 @@
svg {
display: block;
fill: currentColor;
stroke: currentColor;
height: 100%;
width: 100%;
}
svg {
fill: var(--ion-color-base);
stroke: var(--ion-color-base);
}
/* Set iOS Icon Colors */
/* ------------------- */
+40 -33
View File
@@ -1,59 +1,66 @@
import * as icon from './icon';
import { Icon } from './icon';
import { getName, getSrc, isValid } from './utils';
describe('isValid', () => {
it('invalid onload attr', () => {
const el = { nodeType: 1, nodeName: 'svg', attributes: [{
value: 'onload'
}], childNodes: [] } as any;
expect(icon.isValid(el)).toBe(false);
const el = {
nodeType: 1,
nodeName: 'svg',
attributes: [{ value: 'onload' }],
childNodes: []
} as any;
expect(isValid(el)).toBe(false);
});
it('invalid onclick attr', () => {
const el = { nodeType: 1, nodeName: 'svg', attributes: [{
value: 'OnClIcK'
}], childNodes: [] } as any;
expect(icon.isValid(el)).toBe(false);
const el = {
nodeType: 1,
nodeName: 'svg',
attributes: [{ value: 'OnClIcK' }],
childNodes: []
} as any;
expect(isValid(el)).toBe(false);
});
it('invalid child SCRIPT elm', () => {
const el = { nodeType: 1, nodeName: 'svg', attributes: [], childNodes: [
{ nodeType: 1, nodeName: 'SCRIPT', attributes: [], childNodes: [] }
] } as any;
expect(icon.isValid(el)).toBe(false);
expect(isValid(el)).toBe(false);
});
it('invalid script elm', () => {
const el = { nodeType: 1, nodeName: 'script', attributes: [], childNodes: [] } as any;
expect(icon.isValid(el)).toBe(false);
expect(isValid(el)).toBe(false);
});
it('is valid circle elm', () => {
const el = { nodeType: 1, nodeName: 'circle', attributes: [], childNodes: [] } as any;
expect(icon.isValid(el)).toBe(true);
expect(isValid(el)).toBe(true);
});
it('is valid SVG elm', () => {
const el = { nodeType: 1, nodeName: 'SVG', attributes: [], childNodes: [
{ nodeType: 1, nodeName: 'line', attributes: [], childNodes: [] }
] } as any;
expect(icon.isValid(el)).toBe(true);
expect(isValid(el)).toBe(true);
});
it('is valid text node', () => {
const el = { nodeType: 3, nodeName: '#text' } as any;
expect(icon.isValid(el)).toBe(true);
expect(isValid(el)).toBe(true);
});
});
describe('getUrl', () => {
let i: icon.Icon;
let i: Icon;
beforeEach(() => {
i = new icon.Icon();
i = new Icon();
i.resourcesUrl = '/build/ionicons/';
});
@@ -98,23 +105,23 @@ describe('getUrl', () => {
describe('getSrc', () => {
it('both . and /', () => {
expect(icon.getSrc('./somefile.svg')).toBe('./somefile.svg');
expect(getSrc('./somefile.svg')).toBe('./somefile.svg');
});
it('url', () => {
expect(icon.getSrc('https://ionicons/somefile.svg')).toBe('https://ionicons/somefile.svg');
expect(getSrc('https://ionicons/somefile.svg')).toBe('https://ionicons/somefile.svg');
});
it('just a .', () => {
expect(icon.getSrc('somefile.svg')).toBe('somefile.svg');
expect(getSrc('somefile.svg')).toBe('somefile.svg');
});
it('just a /', () => {
expect(icon.getSrc('/somesvg')).toBe('/somesvg');
expect(getSrc('/somesvg')).toBe('/somesvg');
});
it('no . or /', () => {
expect(icon.getSrc('some-name')).toBe(null);
expect(getSrc('some-name')).toBe(null);
});
});
@@ -123,39 +130,39 @@ describe('getSrc', () => {
describe('getName', () => {
it('not allow special chars', () => {
expect(icon.getName('some\\name', 'io', '', '')).toBe(null);
expect(icon.getName('some$name', 'io', '', '')).toBe(null);
expect(icon.getName('some:name', 'io', '', '')).toBe(null);
expect(icon.getName('some.name', 'io', '', '')).toBe(null);
expect(icon.getName('some/name', 'io', '', '')).toBe(null);
expect(getName('some\\name', 'io', '', '')).toBe(null);
expect(getName('some$name', 'io', '', '')).toBe(null);
expect(getName('some:name', 'io', '', '')).toBe(null);
expect(getName('some.name', 'io', '', '')).toBe(null);
expect(getName('some/name', 'io', '', '')).toBe(null);
});
it('use ios mode from mode property', () => {
expect(icon.getName('some-name', 'ios', '', '')).toBe('ios-some-name');
expect(getName('some-name', 'ios', '', '')).toBe('ios-some-name');
});
it('use md mode from mode property', () => {
expect(icon.getName('some-name', 'md', '', '')).toBe('md-some-name');
expect(getName('some-name', 'md', '', '')).toBe('md-some-name');
});
it('use ios mode prefixed', () => {
expect(icon.getName('ios-some-name', '', '', '')).toBe('ios-some-name');
expect(getName('ios-some-name', '', '', '')).toBe('ios-some-name');
});
it('use md mode prefixed', () => {
expect(icon.getName('md-some-name', '', '', '')).toBe('md-some-name');
expect(getName('md-some-name', '', '', '')).toBe('md-some-name');
});
it('always lowercase name and mode', () => {
expect(icon.getName('SOME-NAME', 'IOS', '', '')).toBe('ios-some-name');
expect(getName('SOME-NAME', 'IOS', '', '')).toBe('ios-some-name');
});
it('default md name w/out mode, ios or md', () => {
expect(icon.getName('some-name', '', '', '')).toBe('md-some-name');
expect(getName('some-name', '', '', '')).toBe('md-some-name');
});
it('should not use name if no name, ios or md', () => {
expect(icon.getName('', '', '', '')).toBe(null);
expect(getName('', '', '', '')).toBe(null);
});
});
+26 -86
View File
@@ -1,4 +1,5 @@
import { Component, Element, Prop, State, Watch } from '@stencil/core';
import { getName, getSrc, isValid } from './utils';
@Component({
@@ -17,16 +18,24 @@ export class Icon {
@Prop({ context: 'isServer' }) isServer!: boolean;
@Prop({ context: 'resourcesUrl' }) resourcesUrl!: string;
@Prop({ context: 'mode' }) mode?: string;
@Prop({ context: 'document' }) doc!: Document;
@Prop({ context: 'window' }) win: any;
/**
* The color to use for the background of the item.
*/
@Prop() color?: string;
/**
* The mode determines which platform styles to use.
* Possible values are: `"ios"` or `"md"`.
*/
@Prop() mode?: 'ios' | 'md';
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
@Prop({mutable: true, reflectToAttr: true}) ariaLabel?: string;
@Prop({ mutable: true, reflectToAttr: true }) ariaLabel?: string;
/**
* Specifies which icon to use on `ios` mode.
@@ -62,6 +71,12 @@ export class Icon {
@Prop() size?: string;
/**
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport.
* Default, `false`.
*/
@Prop() lazy = false;
componentWillLoad() {
// purposely do not return the promise here because loading
// the svg file should not hold up loading the app
@@ -79,9 +94,8 @@ export class Icon {
}
}
waitUntilVisible(el: HTMLElement, rootMargin: string, cb: Function) {
if (this.win) {
private waitUntilVisible(el: HTMLElement, rootMargin: string, cb: () => void) {
if (this.lazy && this.win && this.win.IntersectionObserver) {
const io = this.io = new this.win.IntersectionObserver((data: IntersectionObserverEntry[]) => {
if (data[0].isIntersecting) {
io.disconnect();
@@ -108,9 +122,8 @@ export class Icon {
const url = this.getUrl();
if (url) {
getSvgContent(url).then(svgContent => {
this.svgContent = validateContent(this.doc, svgContent, (this.el as any)['s-sc']);
});
getSvgContent(this.doc, url, 's-ion-icon')
.then(svgContent => this.svgContent = svgContent);
}
}
@@ -127,7 +140,6 @@ export class Icon {
}
}
getUrl() {
let url = getSrc(this.src);
if (url) {
@@ -152,7 +164,7 @@ export class Icon {
return null;
}
getNamedUrl(name: string) {
private getNamedUrl(name: string) {
return `${this.resourcesUrl}svg/${name}.svg`;
}
@@ -166,7 +178,6 @@ export class Icon {
};
}
render() {
if (!this.isServer && this.svgContent) {
// we've already loaded up this svg at one point
@@ -183,9 +194,9 @@ export class Icon {
}
const requests = new Map<string, Promise<string | null>>();
const requests = new Map<string, Promise<string>>();
function getSvgContent(url: string) {
function getSvgContent(doc: Document, url: string, scopedId: string | undefined) {
// see if we already have a request for this url
let req = requests.get(url);
@@ -196,7 +207,7 @@ function getSvgContent(url: string) {
return rsp.text();
}
return Promise.resolve(null);
});
}).then(svgContent => validateContent(doc, svgContent, scopedId));
// cache for the same requests
requests.set(url, req);
@@ -206,54 +217,6 @@ function getSvgContent(url: string) {
}
export function getName(
name: string | undefined,
mode: string | undefined,
ios: string | undefined,
md: string | undefined
) {
// default to "md" if somehow the mode wasn't set
mode = (mode || 'md').toLowerCase();
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
if (ios && mode === 'ios') {
name = ios.toLowerCase();
} else if (md && mode === 'md') {
name = md.toLowerCase();
} else if (name && !(/^md-|^ios-|^logo-/.test(name))) {
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
name = mode + '-' + name.toLowerCase();
}
if (typeof name !== 'string' || name.trim() === '') {
return null;
}
// only allow alpha characters and dash
const invalidChars = name.replace(/[a-z]|-|\d/gi, '');
if (invalidChars !== '') {
return null;
}
return name;
}
export function getSrc(src: string | undefined) {
if (typeof src === 'string') {
src = src.trim();
if (src.length > 0 && /(\/|\.)/.test(src)) {
return src;
}
}
return null;
}
function validateContent(
document: Document,
svgContent: string | null,
@@ -276,7 +239,7 @@ function validateContent(
const svgElm = div.firstElementChild;
if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {
if (scopeId) {
svgElm.setAttribute(scopeId, '');
svgElm.setAttribute('class', scopeId);
}
// root element must be an svg
// lets double check we've got valid elements
@@ -289,29 +252,6 @@ function validateContent(
return '';
}
export function isValid(elm: HTMLElement) {
if (elm.nodeType === 1) {
if (elm.nodeName.toLowerCase() === 'script') {
return false;
}
for (var i = 0; i < elm.attributes.length; i++) {
let val = elm.attributes[i].value;
if (typeof val === 'string' && val.toLowerCase().indexOf('on') === 0) {
return false;
}
}
for (i = 0; i < elm.childNodes.length; i++) {
if (!isValid(elm.childNodes[i] as any)) {
return false;
}
}
}
return true;
}
function createColorClasses(color: string | undefined) {
return (color) ? {
'ion-color': true,
+72
View File
@@ -0,0 +1,72 @@
export function getName(
name: string | undefined,
mode: string | undefined,
ios: string | undefined,
md: string | undefined
) {
// default to "md" if somehow the mode wasn't set
mode = (mode || 'md').toLowerCase();
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
if (ios && mode === 'ios') {
name = ios.toLowerCase();
} else if (md && mode === 'md') {
name = md.toLowerCase();
} else if (name) {
name = name.toLowerCase();
if (!/^md-|^ios-|^logo-/.test(name)) {
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
name = `${mode}-${name}`;
}
}
if (typeof name !== 'string' || name.trim() === '') {
return null;
}
// only allow alpha characters and dash
const invalidChars = name.replace(/[a-z]|-|\d/gi, '');
if (invalidChars !== '') {
return null;
}
return name;
}
export function getSrc(src: string | undefined) {
if (typeof src === 'string') {
src = src.trim();
if (src.length > 0 && /(\/|\.)/.test(src)) {
return src;
}
}
return null;
}
export function isValid(elm: HTMLElement) {
if (elm.nodeType === 1) {
if (elm.nodeName.toLowerCase() === 'script') {
return false;
}
for (let i = 0; i < elm.attributes.length; i++) {
const val = elm.attributes[i].value;
if (typeof val === 'string' && val.toLowerCase().indexOf('on') === 0) {
return false;
}
}
for (let i = 0; i < elm.childNodes.length; i++) {
if (!isValid(elm.childNodes[i] as any)) {
return false;
}
}
}
return true;
}
+150 -296
View File
@@ -1,358 +1,212 @@
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import '@stencil/core';
declare global {
namespace JSX {
interface Element {}
export interface IntrinsicElements {}
}
namespace JSXElements {}
interface HTMLElement {
componentOnReady?: () => Promise<this | null>;
}
interface HTMLStencilElement extends HTMLElement {
componentOnReady(): Promise<this>;
forceUpdate(): void;
}
interface HTMLAttributes {}
}
import '@stencil/router';
import '@stencil/state-tunnel';
import {
MatchResults,
} from '@stencil/router';
declare global {
namespace StencilComponents {
interface FooterBar {
export namespace Components {
}
interface FooterBar {}
interface FooterBarAttributes extends StencilHTMLAttributes {}
interface HeaderBar {
'isSearchVisible': boolean;
'query': string;
'version'?: string;
}
interface HeaderBarAttributes extends StencilHTMLAttributes {
'isSearchVisible'?: boolean;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'query'?: string;
'version'?: string;
}
interface HTMLFooterBarElement extends StencilComponents.FooterBar, HTMLStencilElement {}
interface IconList {
'data': any;
'query': string;
}
interface IconListAttributes extends StencilHTMLAttributes {
'data'?: any;
'query'?: string;
}
interface IconSearch {
'autofocus': string;
'query': string;
'size': string;
}
interface IconSearchAttributes extends StencilHTMLAttributes {
'autofocus'?: string;
'onHasSearched'?: (event: CustomEvent) => void;
'query'?: string;
'size'?: string;
}
interface IoniconsSite {}
interface IoniconsSiteAttributes extends StencilHTMLAttributes {}
interface LandingPage {
'data': any;
'query': string;
}
interface LandingPageAttributes extends StencilHTMLAttributes {
'data'?: any;
'query'?: string;
}
interface NotfoundPage {}
interface NotfoundPageAttributes extends StencilHTMLAttributes {}
interface ToastBar {
'selectedIcon'?: {
name: string,
icons: string[],
tags: string[]
};
'selectedIconType'?: string;
}
interface ToastBarAttributes extends StencilHTMLAttributes {
'onClearToast'?: (event: CustomEvent) => void;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'selectedIcon'?: {
name: string,
icons: string[],
tags: string[]
};
'selectedIconType'?: string;
}
interface UsagePage {
'data': any;
'match'?: MatchResults;
}
interface UsagePageAttributes extends StencilHTMLAttributes {
'data'?: any;
'match'?: MatchResults;
}
}
declare global {
interface StencilElementInterfaces {
'FooterBar': Components.FooterBar;
'HeaderBar': Components.HeaderBar;
'IconList': Components.IconList;
'IconSearch': Components.IconSearch;
'IoniconsSite': Components.IoniconsSite;
'LandingPage': Components.LandingPage;
'NotfoundPage': Components.NotfoundPage;
'ToastBar': Components.ToastBar;
'UsagePage': Components.UsagePage;
}
interface StencilIntrinsicElements {
'footer-bar': Components.FooterBarAttributes;
'header-bar': Components.HeaderBarAttributes;
'icon-list': Components.IconListAttributes;
'icon-search': Components.IconSearchAttributes;
'ionicons-site': Components.IoniconsSiteAttributes;
'landing-page': Components.LandingPageAttributes;
'notfound-page': Components.NotfoundPageAttributes;
'toast-bar': Components.ToastBarAttributes;
'usage-page': Components.UsagePageAttributes;
}
interface HTMLFooterBarElement extends Components.FooterBar, HTMLStencilElement {}
var HTMLFooterBarElement: {
prototype: HTMLFooterBarElement;
new (): HTMLFooterBarElement;
};
interface HTMLElementTagNameMap {
'footer-bar': HTMLFooterBarElement;
}
interface ElementTagNameMap {
'footer-bar': HTMLFooterBarElement;
}
namespace JSX {
interface IntrinsicElements {
'footer-bar': JSXElements.FooterBarAttributes;
}
}
namespace JSXElements {
export interface FooterBarAttributes extends HTMLAttributes {
}
}
}
declare global {
namespace StencilComponents {
interface HeaderBar {
'isSearchVisible': boolean;
'query': string;
'version': string;
}
}
interface HTMLHeaderBarElement extends StencilComponents.HeaderBar, HTMLStencilElement {}
interface HTMLHeaderBarElement extends Components.HeaderBar, HTMLStencilElement {}
var HTMLHeaderBarElement: {
prototype: HTMLHeaderBarElement;
new (): HTMLHeaderBarElement;
};
interface HTMLElementTagNameMap {
'header-bar': HTMLHeaderBarElement;
}
interface ElementTagNameMap {
'header-bar': HTMLHeaderBarElement;
}
namespace JSX {
interface IntrinsicElements {
'header-bar': JSXElements.HeaderBarAttributes;
}
}
namespace JSXElements {
export interface HeaderBarAttributes extends HTMLAttributes {
'isSearchVisible'?: boolean;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'query'?: string;
'version'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface IconList {
'data': any;
'query': string;
}
}
interface HTMLIconListElement extends StencilComponents.IconList, HTMLStencilElement {}
interface HTMLIconListElement extends Components.IconList, HTMLStencilElement {}
var HTMLIconListElement: {
prototype: HTMLIconListElement;
new (): HTMLIconListElement;
};
interface HTMLElementTagNameMap {
'icon-list': HTMLIconListElement;
}
interface ElementTagNameMap {
'icon-list': HTMLIconListElement;
}
namespace JSX {
interface IntrinsicElements {
'icon-list': JSXElements.IconListAttributes;
}
}
namespace JSXElements {
export interface IconListAttributes extends HTMLAttributes {
'data'?: any;
'query'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface IconSearch {
'autofocus': string;
'query': string;
'size': string;
}
}
interface HTMLIconSearchElement extends StencilComponents.IconSearch, HTMLStencilElement {}
interface HTMLIconSearchElement extends Components.IconSearch, HTMLStencilElement {}
var HTMLIconSearchElement: {
prototype: HTMLIconSearchElement;
new (): HTMLIconSearchElement;
};
interface HTMLElementTagNameMap {
'icon-search': HTMLIconSearchElement;
}
interface ElementTagNameMap {
'icon-search': HTMLIconSearchElement;
}
namespace JSX {
interface IntrinsicElements {
'icon-search': JSXElements.IconSearchAttributes;
}
}
namespace JSXElements {
export interface IconSearchAttributes extends HTMLAttributes {
'autofocus'?: string;
'onHasSearched'?: (event: CustomEvent) => void;
'query'?: string;
'size'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface IoniconsSite {
}
}
interface HTMLIoniconsSiteElement extends StencilComponents.IoniconsSite, HTMLStencilElement {}
interface HTMLIoniconsSiteElement extends Components.IoniconsSite, HTMLStencilElement {}
var HTMLIoniconsSiteElement: {
prototype: HTMLIoniconsSiteElement;
new (): HTMLIoniconsSiteElement;
};
interface HTMLElementTagNameMap {
'ionicons-site': HTMLIoniconsSiteElement;
}
interface ElementTagNameMap {
'ionicons-site': HTMLIoniconsSiteElement;
}
namespace JSX {
interface IntrinsicElements {
'ionicons-site': JSXElements.IoniconsSiteAttributes;
}
}
namespace JSXElements {
export interface IoniconsSiteAttributes extends HTMLAttributes {
}
}
}
declare global {
namespace StencilComponents {
interface LandingPage {
'data': any;
'query': string;
}
}
interface HTMLLandingPageElement extends StencilComponents.LandingPage, HTMLStencilElement {}
interface HTMLLandingPageElement extends Components.LandingPage, HTMLStencilElement {}
var HTMLLandingPageElement: {
prototype: HTMLLandingPageElement;
new (): HTMLLandingPageElement;
};
interface HTMLElementTagNameMap {
'landing-page': HTMLLandingPageElement;
}
interface ElementTagNameMap {
'landing-page': HTMLLandingPageElement;
}
namespace JSX {
interface IntrinsicElements {
'landing-page': JSXElements.LandingPageAttributes;
}
}
namespace JSXElements {
export interface LandingPageAttributes extends HTMLAttributes {
'data'?: any;
'query'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface NotfoundPage {
}
}
interface HTMLNotfoundPageElement extends StencilComponents.NotfoundPage, HTMLStencilElement {}
interface HTMLNotfoundPageElement extends Components.NotfoundPage, HTMLStencilElement {}
var HTMLNotfoundPageElement: {
prototype: HTMLNotfoundPageElement;
new (): HTMLNotfoundPageElement;
};
interface HTMLElementTagNameMap {
'notfound-page': HTMLNotfoundPageElement;
}
interface ElementTagNameMap {
'notfound-page': HTMLNotfoundPageElement;
}
namespace JSX {
interface IntrinsicElements {
'notfound-page': JSXElements.NotfoundPageAttributes;
}
}
namespace JSXElements {
export interface NotfoundPageAttributes extends HTMLAttributes {
}
}
}
declare global {
namespace StencilComponents {
interface ToastBar {
'selectedIcon': {
name: string,
icons: Array<string>,
tags: Array<string>
};
'selectedIconType': string;
}
}
interface HTMLToastBarElement extends StencilComponents.ToastBar, HTMLStencilElement {}
interface HTMLToastBarElement extends Components.ToastBar, HTMLStencilElement {}
var HTMLToastBarElement: {
prototype: HTMLToastBarElement;
new (): HTMLToastBarElement;
};
interface HTMLElementTagNameMap {
'toast-bar': HTMLToastBarElement;
}
interface ElementTagNameMap {
'toast-bar': HTMLToastBarElement;
}
namespace JSX {
interface IntrinsicElements {
'toast-bar': JSXElements.ToastBarAttributes;
}
}
namespace JSXElements {
export interface ToastBarAttributes extends HTMLAttributes {
'onClearToast'?: (event: CustomEvent) => void;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'selectedIcon'?: {
name: string,
icons: Array<string>,
tags: Array<string>
};
'selectedIconType'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface UsagePage {
'data': any;
'match': MatchResults;
}
}
interface HTMLUsagePageElement extends StencilComponents.UsagePage, HTMLStencilElement {}
interface HTMLUsagePageElement extends Components.UsagePage, HTMLStencilElement {}
var HTMLUsagePageElement: {
prototype: HTMLUsagePageElement;
new (): HTMLUsagePageElement;
};
interface HTMLElementTagNameMap {
'usage-page': HTMLUsagePageElement;
}
interface ElementTagNameMap {
'usage-page': HTMLUsagePageElement;
}
namespace JSX {
interface IntrinsicElements {
'usage-page': JSXElements.UsagePageAttributes;
}
}
namespace JSXElements {
export interface UsagePageAttributes extends HTMLAttributes {
'data'?: any;
'match'?: MatchResults;
}
}
}
declare global { namespace JSX { interface StencilJSX {} } }
interface HTMLElementTagNameMap {
'footer-bar': HTMLFooterBarElement
'header-bar': HTMLHeaderBarElement
'icon-list': HTMLIconListElement
'icon-search': HTMLIconSearchElement
'ionicons-site': HTMLIoniconsSiteElement
'landing-page': HTMLLandingPageElement
'notfound-page': HTMLNotfoundPageElement
'toast-bar': HTMLToastBarElement
'usage-page': HTMLUsagePageElement
}
interface ElementTagNameMap {
'footer-bar': HTMLFooterBarElement;
'header-bar': HTMLHeaderBarElement;
'icon-list': HTMLIconListElement;
'icon-search': HTMLIconSearchElement;
'ionicons-site': HTMLIoniconsSiteElement;
'landing-page': HTMLLandingPageElement;
'notfound-page': HTMLNotfoundPageElement;
'toast-bar': HTMLToastBarElement;
'usage-page': HTMLUsagePageElement;
}
export namespace JSX {
export interface Element {}
export interface IntrinsicElements extends StencilIntrinsicElements {
[tagName: string]: any;
}
}
export interface HTMLAttributes extends StencilHTMLAttributes {}
}
@@ -7,29 +7,30 @@ import { Component } from '@stencil/core';
export class FooterBar {
render() {
return(
<footer>
<div class="container">
<div class="footer__open-source">
<a href="http://ionicframework.com/"
title="IonicFramework.com"
rel="noopener">
<img
src="/assets/img/ionic-os-logo.png"
alt="Ionic Open Source Logo" />
</a>
<p>
Released under <span id="mit">MIT License</span> | Copyright @ {(new Date()).getFullYear()}
</p>
</div>
<footer>
<div class="container">
<div class="footer__open-source">
<a href="http://ionicframework.com/"
title="IonicFramework.com"
rel="noopener">
<img
src="/assets/img/ionic-os-logo.png"
alt="Ionic Open Source Logo" />
</a>
<p>
Released under <span id="mit">MIT License</span> | Copyright @ {(new Date()).getFullYear()}
</p>
</div>
<div class="footer-menu">
<a href="cheatsheet.html">Cheatsheet</a>
<a href="/v1">v1</a>
<a href="/v2">v2</a>
<a href="https://ionicframework.com/docs/ionicons/">v3</a>
<a href="https://ionicframework.com/">Ionic Framework</a>
<div class="footer-menu">
<a href="cheatsheet.html">Cheatsheet</a>
<a href="/v1">v1</a>
<a href="/v2">v2</a>
<a href="https://ionicframework.com/docs/ionicons/">v3</a>
<a href="https://ionicframework.com/">Ionic Framework</a>
</div>
</div>
</div>
</footer>
)}
</footer>
);
}
}
@@ -1,20 +1,20 @@
import { Element, Component, State, Prop, Listen, Event, EventEmitter } from '@stencil/core';
import { Component, Element, Event, EventEmitter, Listen, Prop, State } from '@stencil/core';
@Component({
tag: 'header-bar',
styleUrl: 'header-bar.scss'
})
export class HeaderBar {
@Element() el: Element;
@Element() el!: Element;
@Event() toggleHeaderSearch: EventEmitter;
@Event() toggleHeaderSearch!: EventEmitter;
@State() isSticky: boolean = false;
@State() isMobileMenuShown: boolean;
@State() isSticky = false;
@State() isMobileMenuShown?: boolean;
@Prop() query: string = '';
@Prop() version: string;
@Prop() isSearchVisible: boolean = false;
@Prop() query = '';
@Prop() version?: string;
@Prop() isSearchVisible = false;
@Listen('window:scroll')
handleScroll() {
@@ -26,7 +26,7 @@ export class HeaderBar {
requestAnimationFrame(() => {
if (window.innerWidth > 768) {
const menu = (this.el.querySelector('nav') as HTMLElement);
menu.style.display = "";
menu.style.display = '';
this.el.classList.remove('show-mobile-menu');
document.body.classList.remove('no-scroll');
this.isMobileMenuShown = false;
@@ -35,12 +35,8 @@ export class HeaderBar {
}
checkScroll() {
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
if (scrollTop > 30) {
this.isSticky = true;
} else {
this.isSticky = false;
}
const scrollTop = document.documentElement!.scrollTop || document.body.scrollTop;
this.isSticky = (scrollTop > 30);
}
showNav() {
@@ -49,11 +45,11 @@ export class HeaderBar {
const menu = (this.el.querySelector('nav') as HTMLElement);
menu.style.display = "flex";
menu.style.display = 'flex';
setTimeout(() => {
menu.classList.add('show-mobile-menu');
document.body.classList.add('no-scroll');
}, 1)
}, 1);
}
hideNav() {
@@ -64,80 +60,81 @@ export class HeaderBar {
menu.classList.remove('show-mobile-menu');
setTimeout(() => {
menu.style.display = "none";
menu.style.display = 'none';
document.body.classList.remove('no-scroll');
}, 300)
}, 300);
}
render() {
return (
<header class={`${this.isSearchVisible ? 'visible-search' : ''} ${this.isSticky? 'overlay' : ''}`}>
<header class={`${this.isSearchVisible ? 'visible-search' : ''} ${this.isSticky ? 'overlay' : ''}`}>
<div class="container">
<div class="logo">
<stencil-route-link url='/' exact={true}>
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="icon" fill-rule="nonzero">
<circle id="circle" fill="#EAEEF5" cx="16" cy="16" r="16"></circle>
<circle id="circle_copy" fill="#B4C1D8" cx="16" cy="16" r="11"></circle>
<circle id="circle_copy_2" fill="#647AA1" cx="16" cy="16" r="6"></circle>
<circle id="circle_copy_3" fill="#647AA1" cx="23.5" cy="8.5" r="2"></circle>
<div class="container">
<div class="logo">
<stencil-route-link url="/" exact={true}>
<svg width="32px" height="32px" viewBox="0 0 32 32">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="icon" fill-rule="nonzero">
<circle id="circle" fill="#EAEEF5" cx="16" cy="16" r="16"></circle>
<circle id="circle_copy" fill="#B4C1D8" cx="16" cy="16" r="11"></circle>
<circle id="circle_copy_2" fill="#647AA1" cx="16" cy="16" r="6"></circle>
<circle id="circle_copy_3" fill="#647AA1" cx="23.5" cy="8.5" r="2"></circle>
</g>
</g>
</g>
</svg>
Ionicons
</stencil-route-link>
<span class="version">{this.version}</span>
</svg>
Ionicons
</stencil-route-link>
<span class="version">{this.version}</span>
</div>
<icon-search query={this.query} size="small"></icon-search>
<nav>
<stencil-route-link
class="nav__item"
url="/"
exact={true}
onClick={this.hideNav.bind(this)}>
Icons
</stencil-route-link>
<stencil-route-link
class="nav__item"
url="/usage"
onClick={() => {
this.toggleHeaderSearch.emit('hide');
this.hideNav();
}}>
Usage
</stencil-route-link>
<a class="nav__item" href="https://github.com/ionic-team/ionicons">
Github
<svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(0,1)">
<rect id="bg" fill="#e3e8f1" x="0" y="2" width="9" height="9" rx="1.5"></rect>
<path d="M9.18198052,1 L6.5,1 L6.5,0 L11,0 L11,1 L11,4.5 L10,4.5 L10,1.59619408 L4.02512627,7.57106781 L3.31801948,6.86396103 L9.18198052,1 Z" id="arrow" fill="#A4AEC3"></path>
</g>
</svg>
</a>
<span class="close" onClick={this.hideNav.bind(this)}><i class="ion ion-md-close"></i></span>
</nav>
<a class="btn sm-hide" href="/ionicons.designerpack.zip">
<svg width="9px" height="11px" viewBox="0 0 9 11" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g>
<rect id="bg" fill="#BAC3D1" x="0" y="9" width="9" height="2" rx="1"></rect>
<path d="M5,6.26776695 L7.26776695,4 L7.97487373,4.70710678 L4.70710678,7.97487373 L4.48743687,7.75520382 L4.26776695,7.97487373 L1,4.70710678 L1.70710678,4 L4,6.29289322 L4,0 L5,0 L5,6.26776695 Z" id="arrow" fill="#94A0B8"></path>
</g>
</svg>
Designer pack
</a>
<span class="more" onClick={this.showNav.bind(this)}><i class="ion ion-md-more"></i></span>
</div>
<icon-search query={this.query} size="small"></icon-search>
<nav>
<stencil-route-link
class="nav__item"
url='/'
exact={true}
onClick={this.hideNav.bind(this)}>
Icons
</stencil-route-link>
<stencil-route-link
class="nav__item"
url='/usage'
onClick={() => {
this.toggleHeaderSearch.emit('hide');
this.hideNav();
}}>
Usage
</stencil-route-link>
<a class="nav__item" href='https://github.com/ionic-team/ionicons'>
Github
<svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(0,1)">
<rect id="bg" fill="#e3e8f1" x="0" y="2" width="9" height="9" rx="1.5"></rect>
<path d="M9.18198052,1 L6.5,1 L6.5,0 L11,0 L11,1 L11,4.5 L10,4.5 L10,1.59619408 L4.02512627,7.57106781 L3.31801948,6.86396103 L9.18198052,1 Z" id="arrow" fill="#A4AEC3"></path>
</g>
</svg>
</a>
<span class="close" onClick={this.hideNav.bind(this)}><i class="ion ion-md-close"></i></span>
</nav>
<a class="btn sm-hide" href='/ionicons.designerpack.zip'>
<svg width="9px" height="11px" viewBox="0 0 9 11" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g>
<rect id="bg" fill="#BAC3D1" x="0" y="9" width="9" height="2" rx="1"></rect>
<path d="M5,6.26776695 L7.26776695,4 L7.97487373,4.70710678 L4.70710678,7.97487373 L4.48743687,7.75520382 L4.26776695,7.97487373 L1,4.70710678 L1.70710678,4 L4,6.29289322 L4,0 L5,0 L5,6.26776695 Z" id="arrow" fill="#94A0B8"></path>
</g>
</svg>
Designer pack
</a>
<span class="more" onClick={this.showNav.bind(this)}><i class="ion ion-md-more"></i></span>
</div>
</header>
)}
</header>
);
}
}
@@ -1,4 +1,4 @@
import { Element, Component, Listen, State, Prop } from '@stencil/core';
import { Component, Element, Listen, Prop, State } from '@stencil/core';
@Component({
@@ -6,13 +6,13 @@ import { Element, Component, Listen, State, Prop } from '@stencil/core';
styleUrl: 'icon-list.scss'
})
export class LandingPage {
@Element() el: Element;
@Element() el!: Element;
@State() selectedIcon: string = '';
@State() selectedIconType: string = 'md';
@State() isHeaderSearchVisible: boolean = false;
@State() selectedIcon = '';
@State() selectedIconType = 'md';
@State() isHeaderSearchVisible = false;
@Prop() query: string = '';
@Prop() query = '';
@Prop() data: any;
@Listen('body:keyup')
@@ -55,18 +55,18 @@ export class LandingPage {
logo: []
};
this.data.icons.forEach(iconData => {
if (search === '' || iconData.tags.some(t => t.indexOf(search) > -1)) {
this.data.icons.forEach((iconData: any) => {
if (search === '' || iconData.tags.some((t: any) => t.indexOf(search) > -1)) {
iconData.icons.forEach(iconName => {
iconData.icons.forEach((iconName: any) => {
const iconType = iconName.substr(0, iconName.indexOf('-'));
switch (iconType) {
case 'ios':
results['icon'].push({name: iconData.name});
results['icon'].push({ name: iconData.name });
break;
case 'logo':
results['logo'].push({name: iconData.name, icon: iconName});
results['logo'].push({ name: iconData.name, icon: iconName });
break;
default:
return;
@@ -96,18 +96,15 @@ export class LandingPage {
handleToggleClick(ev: MouseEvent) {
ev.stopPropagation();
if(this.selectedIconType === 'md') {
this.selectedIconType = 'ios';
} else {
this.selectedIconType = 'md'
}
this.selectedIconType = (this.selectedIconType === 'md')
? 'ios' : 'md';
}
render() {
const results = this.filterIcons();
const selectedIcon = this.data.icons.find(o => o.name === this.selectedIcon);
if (!results.icon.length && !results.logo.length && this.isHeaderSearchVisible) document.documentElement.scrollTop = 0;
if (!results.icon.length && !results.logo.length && this.isHeaderSearchVisible) document.documentElement!.scrollTop = 0;
return (
<div class="icon-list">
@@ -123,7 +120,7 @@ export class LandingPage {
<h4>App icons</h4>
<ul class="toggle">
<li
class={`toggle__item ${(this.selectedIconType === 'md') ? 'active' : ''}`}
class={`toggle__item ${(this.selectedIconType === 'md') ? 'active' : ''}`}
onClick={ev => this.handleToggleClick(ev)}>
Material style
</li>
@@ -137,15 +134,15 @@ export class LandingPage {
</div>
<div class="container--small">
<div class="icon-results">
{results.icon.map(icon => {
return <span
{results.icon.map(icon => (
<span
class={`icon-results__cell ${(this.selectedIcon === icon.name) ? 'active' : ''}`}
onClick={(ev) => this.handleIconClick(ev, icon.name)}
onMouseEnter={(ev) => this.handleIconMouseEnter(ev)}
onMouseLeave={(ev) => this.handleIconMouseLeave(ev)}>
<i class={`ion ion-${this.selectedIconType}-${icon.name}`}></i>
</span>
})}
</span>
))}
</div>
</div>
</div>
@@ -162,8 +159,8 @@ export class LandingPage {
<div class="container--small">
<div class="icon-results">
{results.logo.map(icon => {
return <span
{results.logo.map(icon => (
<span
class={`icon-results__cell ${(this.selectedIcon === icon.name) ? 'active' : ''}`}
onClick={(ev) => this.handleIconClick(ev, icon.name)}
onMouseEnter={(ev) => this.handleIconMouseEnter(ev)}
@@ -171,7 +168,7 @@ export class LandingPage {
<i class={'ion ion-' + icon.icon}></i>
</span>
})}
))}
</div>
</div>
</div>
@@ -190,6 +187,6 @@ export class LandingPage {
</toast-bar>
</div>
)
);
}
}
@@ -1,17 +1,17 @@
import { Component, Prop, Listen, Event, EventEmitter, State, Watch } from '@stencil/core';
import { Component, Event, EventEmitter, Listen, Prop, State, Watch } from '@stencil/core';
@Component({
tag: 'icon-search',
styleUrl: 'icon-search.scss'
})
export class IconSearch {
@Prop() query: string = '';
@Prop() size: string = 'small';
@Prop() autofocus: string = 'none';
@Prop() query = '';
@Prop() size = 'small';
@Prop() autofocus = 'none';
@State() showClearCtrl: boolean = false;
@State() showClearCtrl = false;
@Event() hasSearched: EventEmitter;
@Event() hasSearched!: EventEmitter;
@Watch('query')
watchQuery() {
@@ -40,21 +40,22 @@ export class IconSearch {
render() {
return (
<div class={`search-input search-input--${this.size}`}>
<div class={`search-input search-input--${this.size}`}>
<input type="text"
placeholder="Search icons..."
value={this.query}
autofocus={this.autofocus === 'autofocus' ? 'autofocus' : ''}/>
<input type="text"
placeholder="Search icons..."
value={this.query}
autofocus={this.autofocus === 'autofocus' ? 'autofocus' : ''}/>
<i class={{
'search-input__clear': true,
'search-input__clear--active': this.showClearCtrl,
'ion': true,
'ion-md-close': true
}}
onClick={this.handleClear.bind(this)}></i>
<i class={{
'search-input__clear': true,
'search-input__clear--active': this.showClearCtrl,
'ion': true,
'ion-md-close': true
}}
onClick={this.handleClear.bind(this)}></i>
</div>
)}
</div>
);
}
}
@@ -1,16 +1,15 @@
import '@stencil/router';
import { Component, Listen, State } from '@stencil/core';
import { RouterSwitch } from '@stencil/router';
import '@stencil/router';
interface IconData {
name: string,
icons: Array<string>,
tags: Array<string>
name: string;
icons: string[];
tags: string[];
}
interface AppData {
version: string,
icons: IconData[]
version: string | undefined;
icons: IconData[];
}
@Component({
@@ -23,8 +22,8 @@ export class IoniconsSite {
version: undefined,
icons: []
};
@State() query: string = '';
@State() isHeaderSearchVisible: boolean = false;
@State() query = '';
@State() isHeaderSearchVisible = false;
@Listen('window:scroll')
handleScroll() {
@@ -42,31 +41,34 @@ export class IoniconsSite {
}
componentWillLoad() {
return fetch('/data.json').then(rsp => {
this.loadData();
}
rsp.json().then(d => {
this.data = d;
this.data.icons = this.data.icons.map((o) =>{
o.icons = o.icons.reverse();
o.name = o.icons[0].split('-').slice(1).join('-');
return o;
})
});
async loadData() {
const res = await fetch('/data.json');
const json = await res.json();
this.data = json;
this.data.icons = json.icons.map((o: any) => {
o.icons = o.icons.reverse();
o.name = o.icons[0].split('-').slice(1).join('-');
return o;
});
}
checkScroll() {
// show/hide header searchbar
const headerSearchEl: HTMLElement = document.querySelector('header .search-input');
const bodySearchEl: HTMLElement = document.querySelector('icon-list .search-input');
const headerSearchEl = document.querySelector('header .search-input');
const bodySearchEl = document.querySelector('icon-list .search-input');
if (!bodySearchEl) return;
if (!bodySearchEl || !headerSearchEl) {
return;
}
const headerInput: HTMLElement = headerSearchEl.querySelector('input');
const bodyInput: HTMLElement = bodySearchEl.querySelector('input');
const headerInput = headerSearchEl.querySelector('input')!;
const bodyInput = bodySearchEl.querySelector('input')!;
if (bodySearchEl.getBoundingClientRect().top < (bodySearchEl.scrollHeight/2)) {
if (bodySearchEl.getBoundingClientRect().top < (bodySearchEl.scrollHeight / 2)) {
if (this.isHeaderSearchVisible) return;
this.isHeaderSearchVisible = true;
if (bodyInput === document.activeElement) headerInput.focus();
@@ -86,22 +88,22 @@ export class IoniconsSite {
<stencil-router>
<stencil-router-scroll-top>
<RouterSwitch scrollTopOffset={0}>
<stencil-route-switch scrollTopOffset={0}>
<stencil-route url="/"
component="landing-page"
exact={true}
componentProps={{'query': this.query, 'data': this.data}}>
componentProps={{ 'query': this.query, 'data': this.data }}>
</stencil-route>
<stencil-route url="/usage"
component="usage-page"
componentProps={{'data': this.data}}>
componentProps={{ 'data': this.data }}>
</stencil-route>
<stencil-route component='notfound-page'></stencil-route>
</RouterSwitch>
<stencil-route component="notfound-page"></stencil-route>
</stencil-route-switch>
</stencil-router-scroll-top>
</stencil-router>
]
];
}
}
@@ -1,13 +1,13 @@
import { Element, Component, Prop } from '@stencil/core';
import { Component, Element, Prop } from '@stencil/core';
@Component({
tag: 'landing-page',
styleUrl: 'landing-page.scss'
})
export class LandingPage {
@Element() el: Element;
@Element() el!: Element;
@Prop() query: string = '';
@Prop() query = '';
@Prop() data: any;
render() {
@@ -25,6 +25,6 @@ export class LandingPage {
<footer-bar></footer-bar>
</main>
)
);
}
}

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