This commit is contained in:
Adam Bradley
2018-05-15 12:55:04 -05:00
parent c8cd8d8424
commit 61a29cdcbc
1483 changed files with 2918 additions and 53064 deletions
+1 -122
View File
@@ -1,123 +1,2 @@
/*! Built with http://stenciljs.com */
(function(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCoreSsr, appCorePolyfilled, hydratedCssClass, components) {
function init(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCorePolyfilled, hydratedCssClass, components, HTMLElementPrototype, App, x, y, scriptElm, orgComponentOnReady) {
// create global namespace if it doesn't already exist
App = win[namespace] = win[namespace] || {};
App.components = components;
y = components.filter(function (c) { return c[2]; }).map(function (c) { return c[0]; });
if (y.length) {
// auto hide components until they been fully hydrated
// reusing the "x" and "i" variables from the args for funzies
x = doc.createElement('style');
x.innerHTML = y.join() + '{visibility:hidden}.' + hydratedCssClass + '{visibility:inherit}';
x.setAttribute('data-styles', '');
doc.head.insertBefore(x, doc.head.firstChild);
}
// create a temporary array to store the resolves
// before the core file has fully loaded
App.$r = [];
// add componentOnReady to HTMLElement.prototype
orgComponentOnReady = HTMLElementPrototype.componentOnReady;
HTMLElementPrototype.componentOnReady = function componentOnReady(cb) {
const elm = this;
// there may be more than one app on the window so
// call original HTMLElement.prototype.componentOnReady
// if one exists already
orgComponentOnReady && orgComponentOnReady.call(elm);
function executor(resolve) {
if (App.$r) {
// core file hasn't loaded yet
// so let's throw it in this temporary queue
// and when the core does load it'll handle these
App.$r.push([elm, resolve]);
}
else {
// core has finished loading because there's no temporary queue
// call the core's logic to handle this
App.componentOnReady(elm, resolve);
}
}
if (cb) {
// just a callback
return executor(cb);
}
// callback wasn't provided, let's return a promise
if (win.Promise) {
// use native/polyfilled promise
return new Promise(executor);
}
// promise may not have been polyfilled yet
return { then: executor };
};
// figure out the script element for this current script
y = doc.querySelectorAll('script');
for (x = y.length - 1; x >= 0; x--) {
scriptElm = y[x];
if (scriptElm.src || scriptElm.hasAttribute('data-resources-url')) {
break;
}
}
// get the resource path attribute on this script element
y = scriptElm.getAttribute('data-resources-url');
if (y) {
// the script element has a data-resources-url attribute, always use that
resourcesUrl = y;
}
if (!resourcesUrl && scriptElm.src) {
// we don't have an exact resourcesUrl, so let's
// figure it out relative to this script's src and app's filesystem namespace
y = scriptElm.src.split('/').slice(0, -1);
resourcesUrl = (y.join('/')) + (y.length ? '/' : '') + fsNamespace + '/';
}
// request the core this browser needs
// test for native support of custom elements and fetch
// if either of those are not supported, then use the core w/ polyfills
// also check if the page was build with ssr or not
x = doc.createElement('script');
if (usePolyfills(win, win.location, x, 'import("")')) {
// requires the es5/polyfilled core
x.src = resourcesUrl + appCorePolyfilled;
}
else {
// let's do this!
x.src = resourcesUrl + appCore;
x.setAttribute('type', 'module');
x.setAttribute('crossorigin', true);
}
x.setAttribute('data-resources-url', resourcesUrl);
x.setAttribute('data-namespace', fsNamespace);
doc.head.appendChild(x);
}
function usePolyfills(win, location, scriptElm, dynamicImportTest) {
// fyi, dev mode has verbose if/return statements
// but it minifies to a nice 'lil one-liner ;)
if (location.search.indexOf('core=esm') > 0) {
// force esm build
return false;
}
if ((location.search.indexOf('core=es5') > 0) ||
(location.protocol === 'file:') ||
(!(win.customElements && win.customElements.define)) ||
(!win.fetch) ||
(!(win.CSS && win.CSS.supports && win.CSS.supports('color', 'var(--c)'))) ||
(!('noModule' in scriptElm))) {
// es5 build w/ polyfills
return true;
}
// final test to see if this browser support dynamic imports
return doesNotSupportsDynamicImports(dynamicImportTest);
}
function doesNotSupportsDynamicImports(dynamicImportTest) {
try {
new Function(dynamicImportTest);
return false;
}
catch (e) { }
return true;
}
init(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCoreSsr, appCorePolyfilled, hydratedCssClass, components);
})(window, document, "DocsSite","docssite",0,"docssite.core.js","es5-build-disabled.js","hydrated",[["footer-bar","footer-bar",1],["header-bar","header-bar",1,[["el",7],["isMobileMenuShown",5],["isSearchVisible",1,0,"is-search-visible",3],["isSticky",5],["query",1,0,1,2],["version",1,0,1,2]],0,[["window:scroll","handleScroll",0,1],["window:resize","handleResize",0,1]]],["icon-list","icon-list",1,[["data",1,0,1,1],["el",7],["isHeaderSearchVisible",5],["query",1,0,1,2],["selectedIcon",5],["selectedIconType",5]],0,[["body:keyup","escListener"],["body:click","handleBodyClicked"],["clearToast","handleClearToast"],["window:scroll","handleScroll",0,1]]],["icon-search","icon-search",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","header-bar",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","icon-list",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","notfound-page",1],["stencil-route","header-bar",0,[["activeInGroup",5],["activeRouter",3,0,0,0,"activeRouter"],["component",1,0,1,2],["componentProps",1],["el",7],["exact",1,0,1,3],["group",1,0,1,2],["groupIndex",1,0,"group-index",4],["isServer",3,0,0,0,"isServer"],["location",3,0,0,0,"location"],["match",5],["queue",3,0,0,0,"queue"],["routeRender",1],["scrollTopOffset",1,0,"scroll-top-offset",4],["url",1,0,1,2]]],["stencil-route-link","stencil-route-link",0,[["activeClass",1,0,"active-class",2],["activeRouter",3,0,0,0,"activeRouter"],["anchorClass",1,0,"anchor-class",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["custom",1,0,1,2],["exact",1,0,1,3],["match",5],["strict",1,0,1,3],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-router","header-bar",0,[["activeRouter",3,0,0,0,"activeRouter"],["historyType",1,0,"history-type",2],["match",5],["root",1,0,1,2],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","icon-list",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","usage-page",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);
!function(e,t,o,r,c,s,i,n,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,o){o.$r=[];const r=t.componentOnReady;t.componentOnReady=function(t){const c=this;function s(e){o.$r?o.$r.push([c,e]):o.componentOnReady(c,e)}return r&&r.call(c),t?s(t):e.Promise?new Promise(s):{then:s}}}(e,l,u),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"))&&(c=h),!c&&p.src&&(c=(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=c+"docssite.jwdgw0bm.js":(d.src=c+"docssite.viz7bsay.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",c),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["footer-bar","vtu3zyh5",1],["header-bar","f5jhpa2x",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","vscrqboi",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","ms1l1l4a",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","f5jhpa2x",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","vscrqboi",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","d83fvjds",1],["stencil-route","f5jhpa2x",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","5szlxwny",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","f5jhpa2x",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","vscrqboi",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","oy9mzgm7",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,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
-173
View File
@@ -1,173 +0,0 @@
var FooterBarComponent = /** @class **/ (function() {
function FooterBar() {
}
FooterBar.is = 'footer-bar';
FooterBar.getModule = function(opts) {
return import('./footer-bar.js').then(function(m) {
return m.FooterBar;
});
}
});
var HeaderBarComponent = /** @class **/ (function() {
function HeaderBar() {
}
HeaderBar.is = 'header-bar';
HeaderBar.getModule = function(opts) {
return import('./header-bar.js').then(function(m) {
return m.HeaderBar;
});
}
});
var LandingPageComponent = /** @class **/ (function() {
function LandingPage() {
}
LandingPage.is = 'icon-list';
LandingPage.getModule = function(opts) {
return import('./icon-list.js').then(function(m) {
return m.LandingPage;
});
}
});
var IconSearchComponent = /** @class **/ (function() {
function IconSearch() {
}
IconSearch.is = 'icon-search';
IconSearch.getModule = function(opts) {
return import('./icon-search.js').then(function(m) {
return m.IconSearch;
});
}
});
var IoniconsSiteComponent = /** @class **/ (function() {
function IoniconsSite() {
}
IoniconsSite.is = 'ionicons-site';
IoniconsSite.getModule = function(opts) {
return import('./header-bar.js').then(function(m) {
return m.IoniconsSite;
});
}
});
var LandingPageComponent = /** @class **/ (function() {
function LandingPage() {
}
LandingPage.is = 'landing-page';
LandingPage.getModule = function(opts) {
return import('./icon-list.js').then(function(m) {
return m.LandingPage;
});
}
});
var NotFoundPageComponent = /** @class **/ (function() {
function NotFoundPage() {
}
NotFoundPage.is = 'notfound-page';
NotFoundPage.getModule = function(opts) {
return import('./notfound-page.js').then(function(m) {
return m.NotFoundPage;
});
}
});
var RouteComponent = /** @class **/ (function() {
function Route() {
}
Route.is = 'stencil-route';
Route.getModule = function(opts) {
return import('./header-bar.js').then(function(m) {
return m.Route;
});
}
});
var RouteLinkComponent = /** @class **/ (function() {
function RouteLink() {
}
RouteLink.is = 'stencil-route-link';
RouteLink.getModule = function(opts) {
return import('./stencil-route-link.js').then(function(m) {
return m.RouteLink;
});
}
});
var RouterComponent = /** @class **/ (function() {
function Router() {
}
Router.is = 'stencil-router';
Router.getModule = function(opts) {
return import('./header-bar.js').then(function(m) {
return m.Router;
});
}
});
var ToastBarComponent = /** @class **/ (function() {
function ToastBar() {
}
ToastBar.is = 'toast-bar';
ToastBar.getModule = function(opts) {
return import('./icon-list.js').then(function(m) {
return m.ToastBar;
});
}
});
var UsagePageComponent = /** @class **/ (function() {
function UsagePage() {
}
UsagePage.is = 'usage-page';
UsagePage.getModule = function(opts) {
return import('./usage-page.js').then(function(m) {
return m.UsagePage;
});
}
});
export {
FooterBar,
HeaderBar,
LandingPage,
IconSearch,
IoniconsSite,
LandingPage,
NotFoundPage,
Route,
RouteLink,
Router,
ToastBar,
UsagePage,
};
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,5 +1,5 @@
/*! Built with http://stenciljs.com */
(function(namespace,resourcesUrl){"use strict";
(function(resourcesUrl){var __generator=this&&this.__generator||function(t,n){var e,r,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(o=r[2&a[0]?"return":a[0]?"throw":"next"])&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[0,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=n.call(t,u)}catch(t){a=[6,t],r=0}finally{e=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},hasOwnProperty=Object.prototype.hasOwnProperty;function is(t,n){return t===n?0!==t||0!==n||1/t==1/n:t!=t&&n!=n}function shallowEqual(t,n){if(is(t,n))return!0;if("object"!=typeof t||null===t||"object"!=typeof n||null===n)return!1;var e=Object.keys(t),r=Object.keys(n);if(e.length!==r.length)return!1;for(var o=0;o<e.length;o++)if(!hasOwnProperty.call(n,e[o])||!is(t[e[o]],n[e[o]]))return!1;return!0}var __awaiter=function(t,n,e,r){return new(e||(e=Promise))(function(o,a){function u(t){try{i(r.next(t))}catch(t){a(t)}}function l(t){try{i(r.throw(t))}catch(t){a(t)}}function i(t){t.done?o(t.value):new e(function(n){n(t.value)}).then(u,l)}i((r=r.apply(t,n||[])).next())})};Context.activeRouter=function(){var t={},n=[];function e(n){return 0===Object.keys(t).length?{location:{pathname:Context.window.location.pathname,search:Context.window.location.search}}:n?t[n]:t}function r(){return __awaiter(this,void 0,void 0,function(){var t,r,o,a,u,l,i,c,s,f;return __generator(this,function(h){switch(h.label){case 0:for(t=n,r=[],o=e("location").pathname,a=function(n){var e,a=r.some(function(e){return null!=e[1]&&null!=e[2]&&e[2]===t[n].groupId});e=a?null:t[n].isMatch(o),shallowEqual(t[n].lastMatch,e)||(!a&&t[n].groupId?r.unshift([n,e,t[n].groupId]):r.push([n,e,t[n].groupId])),t[n].lastMatch=e},u=0;u<t.length;u++)a(u);l=0,i=r,h.label=1;case 1:return l<i.length?(c=i[l],s=c[0],f=c[1],c[2]&&null!=f?[4,t[s].listener(f)]:[3,3]):[3,5];case 2:return h.sent(),[3,4];case 3:t[s].listener(f),h.label=4;case 4:return l++,[3,1];case 5:return[2]}})})}return{set:function(n){t=Object.assign({},t,n),r()},get:e,subscribe:function(t){!function(t){var r=e("location").pathname,o=t.isMatch(r);if(t.lastMatch=o,t.listener(o),null==t.groupId||null==t.groupIndex||0===n.length)n.push(t);else for(var a=0;a<n.length;a++){var u=n[a],l=u.groupId,i=u.groupIndex;if(null==l){n.splice(a,0,t);break}if(l===t.groupId&&i>t.groupIndex){n.splice(a,0,t);break}}}(t);var r=!0;return function(){r&&(function(t){var e=n.indexOf(t);n.splice(e,1)}(t),r=!1)}},dispatch:r}}();
(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");
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+7 -7
View File
@@ -10,34 +10,34 @@
"$": "vtu3zyh5"
},
"header-bar": {
"$": "w2wqrpjp"
"$": "f5jhpa2x"
},
"icon-list": {
"$": "n5viegel"
"$": "vscrqboi"
},
"icon-search": {
"$": "ms1l1l4a"
},
"ionicons-site": {
"$": "w2wqrpjp"
"$": "f5jhpa2x"
},
"landing-page": {
"$": "n5viegel"
"$": "vscrqboi"
},
"notfound-page": {
"$": "d83fvjds"
},
"stencil-route": {
"$": "w2wqrpjp"
"$": "f5jhpa2x"
},
"stencil-route-link": {
"$": "5szlxwny"
},
"stencil-router": {
"$": "w2wqrpjp"
"$": "f5jhpa2x"
},
"toast-bar": {
"$": "n5viegel"
"$": "vscrqboi"
},
"usage-page": {
"$": "oy9mzgm7"
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-9
View File
@@ -1,9 +0,0 @@
setTimeout(function(){
document.body.innerHTML = '<style> body { font-family: sans-serif; padding: 20px; line-height:22px; } h1 { font-size: 18px; } h2 { font-size: 14px; margin-top: 40px; } </style> <h1>This Stencil app is disabled for this browser.</h1> <h2>Developers:</h2> <ul> <li>ES5 builds are disabled <strong>during development</strong> to take advantage of 2x faster build times.</li> <li>Please see the example below or our <a href="https://stenciljs.com/docs/stencil-config" target="_blank">config docs</a> if you would like to develop on a browser that does not fully support ES2017 and custom elements.</li> <li>Note that by default, ES5 builds and polyfills are enabled during production builds.</li> <li>When testing browsers it is recommended to always test in production mode, and ES5 builds should always be enabled during production builds.</li> <li><em>This is only an experiement and if it slows down app development then we will revert this and enable ES5 builds during dev.</em></li> </ul> <h2>Enabling ES5 builds during development:</h2> <pre> <code>npm run dev --es5</code> </pre> <h2>Enabling full production builds during development:</h2> <pre> <code>npm run dev --prod</code> </pre> <h2>Current Browser\'s Support:</h2> <ul> <li>ES Module Imports: <span id="esModules"></span></li> <li>Custom Elements: <span id="customElements"></span></li> <li>fetch(): <span id="fetch"></span></li> <li>CSS Variables: <span id="cssVariables"></span></li> </ul> <h2>Current Browser:</h2> <pre> <code id="currentBrowser"></code> </pre>';
document.getElementById('currentBrowser').textContent = window.navigator.userAgent;
document.getElementById('esModules').textContent = !!('noModule' in document.createElement('script'));
document.getElementById('customElements').textContent = !!(window.customElements);
document.getElementById('fetch').textContent = !!(window.fetch);
document.getElementById('cssVariables').textContent = !!(window.CSS && window.CSS.supports && window.CSS.supports('color', 'var(--c)'));
}, 10)
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-24
View File
@@ -1,24 +0,0 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle('footer-bar', ['exports'], function (exports) {
var h = window.DocsSite.h;
var FooterBar = /** @class */ (function () {
function FooterBar() {
}
FooterBar.prototype.render = function () {
return (h("footer", null, h("div", { class: "container" }, h("div", { class: "footer__open-source" }, h("a", { href: "http://ionicframework.com/", title: "IonicFramework.com", rel: "noopener" }, h("img", { src: "/assets/img/ionic-os-logo.png", alt: "Ionic Open Source Logo" })), h("p", null, "Released under ", h("span", { id: "mit" }, "MIT License"), " | Copyright @ ", (new Date()).getFullYear())), h("div", { class: "footer-menu" }, h("a", { href: "cheatsheet.html" }, "Cheatsheet"), h("a", { href: "/v1" }, "v1"), h("a", { href: "/v2" }, "v2"), h("a", { href: "https://ionicframework.com/docs/components/#icons" }, "v3"), h("a", { href: "https://ionicframework.com/" }, "Ionic Framework")))));
};
Object.defineProperty(FooterBar, "is", {
get: function () { return "footer-bar"; },
enumerable: true,
configurable: true
});
Object.defineProperty(FooterBar, "style", {
get: function () { return "footer-bar footer {\n width: 100%;\n background: var(--color-white-lilac);\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8em;\n -ms-flex: 0 0 8em;\n flex: 0 0 8em;\n /* margin-top: 100px; */ }\n\nfooter-bar .container {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n padding-top: 40px;\n padding-bottom: 40px; }\n\nfooter-bar img {\n width: 50%; }\n\nfooter-bar p {\n margin-top: 0;\n margin-bottom: 0;\n color: var(--color-cadet-blue);\n font-size: 10px;\n letter-spacing: 0; }\n\nfooter-bar .footer-menu a {\n -webkit-transition: color 0.3s;\n transition: color 0.3s;\n font-size: 11px;\n font-weight: 600;\n text-decoration: none;\n color: var(--color-gull-gray); }\n\nfooter-bar .footer-menu a:hover {\n color: var(--color-shark); }\n\nfooter-bar .footer-menu a + a {\n margin-left: 18px; }\n\n\@media screen and (max-width: 768px) {\n footer-bar .container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -webkit-flex-direction: column-reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n text-align: center; }\n footer-bar .footer-menu {\n margin-bottom: 36px; } }"; },
enumerable: true,
configurable: true
});
return FooterBar;
}());
exports.FooterBar = FooterBar;
Object.defineProperty(exports, '__esModule', { value: true });
});
-27
View File
@@ -1,27 +0,0 @@
/*! Built with http://stenciljs.com */
const { h } = window.DocsSite;
class FooterBar {
render() {
return (h("footer", null,
h("div", { class: "container" },
h("div", { class: "footer__open-source" },
h("a", { href: "http://ionicframework.com/", title: "IonicFramework.com", rel: "noopener" },
h("img", { src: "/assets/img/ionic-os-logo.png", alt: "Ionic Open Source Logo" })),
h("p", null,
"Released under ",
h("span", { id: "mit" }, "MIT License"),
" | Copyright @ ",
(new Date()).getFullYear())),
h("div", { class: "footer-menu" },
h("a", { href: "cheatsheet.html" }, "Cheatsheet"),
h("a", { href: "/v1" }, "v1"),
h("a", { href: "/v2" }, "v2"),
h("a", { href: "https://ionicframework.com/docs/components/#icons" }, "v3"),
h("a", { href: "https://ionicframework.com/" }, "Ionic Framework")))));
}
static get is() { return "footer-bar"; }
static get style() { return "footer-bar footer {\n width: 100%;\n background: var(--color-white-lilac);\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8em;\n -ms-flex: 0 0 8em;\n flex: 0 0 8em;\n /* margin-top: 100px; */ }\n\nfooter-bar .container {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n padding-top: 40px;\n padding-bottom: 40px; }\n\nfooter-bar img {\n width: 50%; }\n\nfooter-bar p {\n margin-top: 0;\n margin-bottom: 0;\n color: var(--color-cadet-blue);\n font-size: 10px;\n letter-spacing: 0; }\n\nfooter-bar .footer-menu a {\n -webkit-transition: color 0.3s;\n transition: color 0.3s;\n font-size: 11px;\n font-weight: 600;\n text-decoration: none;\n color: var(--color-gull-gray); }\n\nfooter-bar .footer-menu a:hover {\n color: var(--color-shark); }\n\nfooter-bar .footer-menu a + a {\n margin-left: 18px; }\n\n\@media screen and (max-width: 768px) {\n footer-bar .container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -webkit-flex-direction: column-reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n text-align: center; }\n footer-bar .footer-menu {\n margin-bottom: 36px; } }"; }
}
export { FooterBar };
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
-1382
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-350
View File
File diff suppressed because one or more lines are too long
-97
View File
@@ -1,97 +0,0 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle('icon-search', ['exports'], function (exports) {
var h = window.DocsSite.h;
var IconSearch = /** @class */ (function () {
function IconSearch() {
this.query = '';
this.size = 'small';
this.autofocus = 'none';
this.showClearCtrl = false;
}
IconSearch.prototype.watchQuery = function () {
this.showClearCtrl = (this.query.length > 0) ? true : false;
};
IconSearch.prototype.searchListener = function (ev) {
if (ev.keyCode === 27) {
this.handleClear();
return;
}
var value = ev.target.value;
this.hasSearched.emit(value);
};
IconSearch.prototype.handleClear = function () {
this.hasSearched.emit('');
};
IconSearch.prototype.componentWillLoad = function () {
this.watchQuery();
};
IconSearch.prototype.render = function () {
return (h("div", { class: "search-input search-input--" + this.size }, h("input", { type: "text", placeholder: "Search icons...", value: this.query, autofocus: this.autofocus === 'autofocus' ? 'autofocus' : '' }), h("i", { class: {
'search-input__clear': true,
'search-input__clear--active': this.showClearCtrl,
'ion': true,
'ion-md-close': true
}, onClick: this.handleClear.bind(this) })));
};
Object.defineProperty(IconSearch, "is", {
get: function () { return "icon-search"; },
enumerable: true,
configurable: true
});
Object.defineProperty(IconSearch, "properties", {
get: function () {
return {
"autofocus": {
"type": String,
"attr": "autofocus"
},
"query": {
"type": String,
"attr": "query",
"watchCallbacks": ["watchQuery"]
},
"showClearCtrl": {
"state": true
},
"size": {
"type": String,
"attr": "size"
}
};
},
enumerable: true,
configurable: true
});
Object.defineProperty(IconSearch, "events", {
get: function () {
return [{
"name": "hasSearched",
"method": "hasSearched",
"bubbles": true,
"cancelable": true,
"composed": true
}];
},
enumerable: true,
configurable: true
});
Object.defineProperty(IconSearch, "listeners", {
get: function () {
return [{
"name": "keyup",
"method": "searchListener"
}];
},
enumerable: true,
configurable: true
});
Object.defineProperty(IconSearch, "style", {
get: function () { return "icon-search .search-input {\n position: relative; }\n\nicon-search .search-input input {\n width: 100%;\n font-weight: 400;\n font-family: 'Eina';\n font-size: 16px;\n border: 0;\n outline: 0;\n border-radius: 6px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: block;\n -webkit-appearance: none;\n vertical-align: middle; }\n\nicon-search .search-input__clear {\n -webkit-transition: background 0.3s, opacity 0.3s;\n transition: background 0.3s, opacity 0.3s;\n position: absolute;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n right: 16px;\n font-size: 14px;\n width: 22px;\n height: 22px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n color: var(--color-pale-sky);\n opacity: 0;\n background-color: var(--color-catskill-white);\n border-radius: 100px; }\n icon-search .search-input__clear--active {\n opacity: 0.8; }\n icon-search .search-input__clear--active:hover {\n opacity: 1;\n background-color: #e3e9f3; }\n\nicon-search .search-input--small .search-input__clear {\n font-size: 12px;\n width: 18px;\n height: 18px;\n background-color: #e3e9f3;\n right: 12px; }\n icon-search .search-input--small .search-input__clear--active:hover {\n background-color: #dce3f0; }\n\nicon-search .search-input:before {\n font-family: \"Ionicons\";\n content: \"\\f4a5\";\n color: var(--color-heather);\n position: absolute;\n height: 24px;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%); }\n\nicon-search .search-input--small input {\n font-size: 13px;\n line-height: 18px;\n padding: 10px;\n padding-left: 30px;\n padding-right: 30px;\n background-color: #f6f7f9;\n height: 39px;\n text-indent: 0; }\n\nicon-search .search-input--small:before {\n font-size: 18px;\n left: 10px; }\n\nicon-search .search-input--large input {\n -webkit-transition: -webkit-box-shadow 0.3s;\n transition: -webkit-box-shadow 0.3s;\n transition: box-shadow 0.3s;\n transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;\n font-size: 16px;\n line-height: 22px;\n padding: 20px;\n padding-left: 50px;\n padding-right: 50px;\n background-color: white;\n -webkit-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08);\n box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08); }\n\nicon-search .search-input--large input:focus {\n -webkit-box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08);\n box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08); }\n\nicon-search .search-input--large:before {\n font-size: 22px;\n left: 20px; }\n\nicon-search .search-input input::-webkit-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input:-ms-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input::-ms-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input::placeholder {\n color: var(--color-heather); }"; },
enumerable: true,
configurable: true
});
return IconSearch;
}());
exports.IconSearch = IconSearch;
Object.defineProperty(exports, '__esModule', { value: true });
});
-71
View File
@@ -1,71 +0,0 @@
/*! Built with http://stenciljs.com */
const { h } = window.DocsSite;
class IconSearch {
constructor() {
this.query = '';
this.size = 'small';
this.autofocus = 'none';
this.showClearCtrl = false;
}
watchQuery() {
this.showClearCtrl = (this.query.length > 0) ? true : false;
}
searchListener(ev) {
if (ev.keyCode === 27) {
this.handleClear();
return;
}
const value = ev.target.value;
this.hasSearched.emit(value);
}
handleClear() {
this.hasSearched.emit('');
}
componentWillLoad() {
this.watchQuery();
}
render() {
return (h("div", { class: `search-input search-input--${this.size}` },
h("input", { type: "text", placeholder: "Search icons...", value: this.query, autofocus: this.autofocus === 'autofocus' ? 'autofocus' : '' }),
h("i", { class: {
'search-input__clear': true,
'search-input__clear--active': this.showClearCtrl,
'ion': true,
'ion-md-close': true
}, onClick: this.handleClear.bind(this) })));
}
static get is() { return "icon-search"; }
static get properties() { return {
"autofocus": {
"type": String,
"attr": "autofocus"
},
"query": {
"type": String,
"attr": "query",
"watchCallbacks": ["watchQuery"]
},
"showClearCtrl": {
"state": true
},
"size": {
"type": String,
"attr": "size"
}
}; }
static get events() { return [{
"name": "hasSearched",
"method": "hasSearched",
"bubbles": true,
"cancelable": true,
"composed": true
}]; }
static get listeners() { return [{
"name": "keyup",
"method": "searchListener"
}]; }
static get style() { return "icon-search .search-input {\n position: relative; }\n\nicon-search .search-input input {\n width: 100%;\n font-weight: 400;\n font-family: 'Eina';\n font-size: 16px;\n border: 0;\n outline: 0;\n border-radius: 6px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: block;\n -webkit-appearance: none;\n vertical-align: middle; }\n\nicon-search .search-input__clear {\n -webkit-transition: background 0.3s, opacity 0.3s;\n transition: background 0.3s, opacity 0.3s;\n position: absolute;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n right: 16px;\n font-size: 14px;\n width: 22px;\n height: 22px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n color: var(--color-pale-sky);\n opacity: 0;\n background-color: var(--color-catskill-white);\n border-radius: 100px; }\n icon-search .search-input__clear--active {\n opacity: 0.8; }\n icon-search .search-input__clear--active:hover {\n opacity: 1;\n background-color: #e3e9f3; }\n\nicon-search .search-input--small .search-input__clear {\n font-size: 12px;\n width: 18px;\n height: 18px;\n background-color: #e3e9f3;\n right: 12px; }\n icon-search .search-input--small .search-input__clear--active:hover {\n background-color: #dce3f0; }\n\nicon-search .search-input:before {\n font-family: \"Ionicons\";\n content: \"\\f4a5\";\n color: var(--color-heather);\n position: absolute;\n height: 24px;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%); }\n\nicon-search .search-input--small input {\n font-size: 13px;\n line-height: 18px;\n padding: 10px;\n padding-left: 30px;\n padding-right: 30px;\n background-color: #f6f7f9;\n height: 39px;\n text-indent: 0; }\n\nicon-search .search-input--small:before {\n font-size: 18px;\n left: 10px; }\n\nicon-search .search-input--large input {\n -webkit-transition: -webkit-box-shadow 0.3s;\n transition: -webkit-box-shadow 0.3s;\n transition: box-shadow 0.3s;\n transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;\n font-size: 16px;\n line-height: 22px;\n padding: 20px;\n padding-left: 50px;\n padding-right: 50px;\n background-color: white;\n -webkit-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08);\n box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08); }\n\nicon-search .search-input--large input:focus {\n -webkit-box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08);\n box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.08); }\n\nicon-search .search-input--large:before {\n font-size: 22px;\n left: 20px; }\n\nicon-search .search-input input::-webkit-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input:-ms-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input::-ms-input-placeholder {\n color: var(--color-heather); }\n\nicon-search .search-input input::placeholder {\n color: var(--color-heather); }"; }
}
export { IconSearch };
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
-24
View File
@@ -1,24 +0,0 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle('notfound-page', ['exports'], function (exports) {
var h = window.DocsSite.h;
var NotFoundPage = /** @class */ (function () {
function NotFoundPage() {
}
NotFoundPage.prototype.render = function () {
return (h("main", null, h("div", { class: "container" }, h("h1", null, "Woops! We can't find the page your looking for."), h("p", null, "Head on back to the ", h("stencil-route-link", { url: '/', class: 'block' }, "Icons page"), ".")), h("footer-bar", null)));
};
Object.defineProperty(NotFoundPage, "is", {
get: function () { return "notfound-page"; },
enumerable: true,
configurable: true
});
Object.defineProperty(NotFoundPage, "style", {
get: function () { return "notfound-page {\n text-align: center;\n height: 100%; }\n notfound-page h1 {\n max-width: 500px; }\n notfound-page a {\n font-weight: 600; }"; },
enumerable: true,
configurable: true
});
return NotFoundPage;
}());
exports.NotfoundPage = NotFoundPage;
Object.defineProperty(exports, '__esModule', { value: true });
});
-19
View File
@@ -1,19 +0,0 @@
/*! Built with http://stenciljs.com */
const { h } = window.DocsSite;
class NotFoundPage {
render() {
return (h("main", null,
h("div", { class: "container" },
h("h1", null, "Woops! We can't find the page your looking for."),
h("p", null,
"Head on back to the ",
h("stencil-route-link", { url: '/', class: 'block' }, "Icons page"),
".")),
h("footer-bar", null)));
}
static get is() { return "notfound-page"; }
static get style() { return "notfound-page {\n text-align: center;\n height: 100%; }\n notfound-page h1 {\n max-width: 500px; }\n notfound-page a {\n font-weight: 600; }"; }
}
export { NotFoundPage as NotfoundPage };
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
-150
View File
@@ -1,150 +0,0 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle('stencil-route-link', ['exports', './chunk-4440b782.js'], function (exports, __chunk_1) {
var h = window.DocsSite.h;
/**
* @name Route
* @module ionic
* @description
*/
var RouteLink = /** @class */ (function () {
function RouteLink() {
this.unsubscribe = function () { return; };
this.activeClass = 'link-active';
this.exact = false;
this.strict = true;
/**
* Custom tag to use instead of an anchor
*/
this.custom = 'a';
this.match = null;
}
// Identify if the current route is a match.
RouteLink.prototype.computeMatch = function (pathname) {
if (!pathname) {
var location = this.activeRouter.get('location');
pathname = location.pathname;
}
var match = __chunk_1.matchPath(pathname, {
path: this.urlMatch || this.url,
exact: this.exact,
strict: this.strict
});
return match;
};
RouteLink.prototype.componentWillLoad = function () {
var _this = this;
// subscribe the project's active router and listen
// for changes. Recompute the match if any updates get
// pushed
this.unsubscribe = this.activeRouter.subscribe({
isMatch: this.computeMatch.bind(this),
listener: function (matchResult) {
_this.match = matchResult;
},
});
// Likely that this route link could receive a location prop
this.match = this.computeMatch();
};
RouteLink.prototype.componentDidUnload = function () {
// be sure to unsubscribe to the router so that we don't
// get any memory leaks
this.unsubscribe();
};
RouteLink.prototype.handleClick = function (e) {
e.preventDefault();
if (!this.activeRouter) {
console.warn('<stencil-route-link> wasn\'t passed an instance of the router as the "router" prop!');
return;
}
var history = this.activeRouter.get('history');
return history.push(this.getUrl(this.url));
};
// Get the URL for this route link without the root from the router
RouteLink.prototype.getUrl = function (url) {
var root = this.activeRouter.get('root') || '/';
// Don't allow double slashes
if (url.charAt(0) == '/' && root.charAt(root.length - 1) == '/') {
return root.slice(0, root.length - 1) + url;
}
return root + url;
};
RouteLink.prototype.render = function () {
var anchorAttributes = {
class: (_a = {},
_a[this.activeClass] = this.match !== null,
_a),
onClick: this.handleClick.bind(this)
};
if (this.anchorClass) {
anchorAttributes.class[this.anchorClass] = true;
}
if (this.custom === 'a') {
anchorAttributes = Object.assign({}, anchorAttributes, { href: this.url, title: this.anchorTitle, role: this.anchorRole, tabindex: this.anchorTabIndex });
}
return (h(this.custom, Object.assign({}, anchorAttributes), h("slot", null)));
var _a;
};
Object.defineProperty(RouteLink, "is", {
get: function () { return "stencil-route-link"; },
enumerable: true,
configurable: true
});
Object.defineProperty(RouteLink, "properties", {
get: function () {
return {
"activeClass": {
"type": String,
"attr": "active-class"
},
"activeRouter": {
"context": "activeRouter"
},
"anchorClass": {
"type": String,
"attr": "anchor-class"
},
"anchorRole": {
"type": String,
"attr": "anchor-role"
},
"anchorTabIndex": {
"type": String,
"attr": "anchor-tab-index"
},
"anchorTitle": {
"type": String,
"attr": "anchor-title"
},
"custom": {
"type": String,
"attr": "custom"
},
"exact": {
"type": Boolean,
"attr": "exact"
},
"match": {
"state": true
},
"strict": {
"type": Boolean,
"attr": "strict"
},
"url": {
"type": String,
"attr": "url"
},
"urlMatch": {
"type": String,
"attr": "url-match"
}
};
},
enumerable: true,
configurable: true
});
return RouteLink;
}());
exports.StencilRouteLink = RouteLink;
Object.defineProperty(exports, '__esModule', { value: true });
});
-139
View File
@@ -1,139 +0,0 @@
/*! Built with http://stenciljs.com */
const { h } = window.DocsSite;
import { a as matchPath } from './chunk-f6f1d593.js';
/**
* @name Route
* @module ionic
* @description
*/
class RouteLink {
constructor() {
this.unsubscribe = () => { return; };
this.activeClass = 'link-active';
this.exact = false;
this.strict = true;
/**
* Custom tag to use instead of an anchor
*/
this.custom = 'a';
this.match = null;
}
// Identify if the current route is a match.
computeMatch(pathname) {
if (!pathname) {
const location = this.activeRouter.get('location');
pathname = location.pathname;
}
const match = matchPath(pathname, {
path: this.urlMatch || this.url,
exact: this.exact,
strict: this.strict
});
return match;
}
componentWillLoad() {
// subscribe the project's active router and listen
// for changes. Recompute the match if any updates get
// pushed
this.unsubscribe = this.activeRouter.subscribe({
isMatch: this.computeMatch.bind(this),
listener: (matchResult) => {
this.match = matchResult;
},
});
// Likely that this route link could receive a location prop
this.match = this.computeMatch();
}
componentDidUnload() {
// be sure to unsubscribe to the router so that we don't
// get any memory leaks
this.unsubscribe();
}
handleClick(e) {
e.preventDefault();
if (!this.activeRouter) {
console.warn('<stencil-route-link> wasn\'t passed an instance of the router as the "router" prop!');
return;
}
const history = this.activeRouter.get('history');
return history.push(this.getUrl(this.url));
}
// Get the URL for this route link without the root from the router
getUrl(url) {
const root = this.activeRouter.get('root') || '/';
// Don't allow double slashes
if (url.charAt(0) == '/' && root.charAt(root.length - 1) == '/') {
return root.slice(0, root.length - 1) + url;
}
return root + url;
}
render() {
let anchorAttributes = {
class: {
[this.activeClass]: this.match !== null,
},
onClick: this.handleClick.bind(this)
};
if (this.anchorClass) {
anchorAttributes.class[this.anchorClass] = true;
}
if (this.custom === 'a') {
anchorAttributes = Object.assign({}, anchorAttributes, { href: this.url, title: this.anchorTitle, role: this.anchorRole, tabindex: this.anchorTabIndex });
}
return (h(this.custom, Object.assign({}, anchorAttributes),
h("slot", null)));
}
static get is() { return "stencil-route-link"; }
static get properties() { return {
"activeClass": {
"type": String,
"attr": "active-class"
},
"activeRouter": {
"context": "activeRouter"
},
"anchorClass": {
"type": String,
"attr": "anchor-class"
},
"anchorRole": {
"type": String,
"attr": "anchor-role"
},
"anchorTabIndex": {
"type": String,
"attr": "anchor-tab-index"
},
"anchorTitle": {
"type": String,
"attr": "anchor-title"
},
"custom": {
"type": String,
"attr": "custom"
},
"exact": {
"type": Boolean,
"attr": "exact"
},
"match": {
"state": true
},
"strict": {
"type": Boolean,
"attr": "strict"
},
"url": {
"type": String,
"attr": "url"
},
"urlMatch": {
"type": String,
"attr": "url-match"
}
}; }
}
export { RouteLink as StencilRouteLink };
File diff suppressed because one or more lines are too long
-18178
View File
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
Binary file not shown.
+1931 -1931
View File
File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 306 KiB

After

Width:  |  Height:  |  Size: 306 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -1,4 +1,4 @@
<!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 */
!function(e,t,r,o,c,n,s,i,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){r.$r=[];const o=t.componentOnReady;t.componentOnReady=function(t){const c=this;function n(e){r.$r?r.$r.push([c,e]):r.componentOnReady(c,e)}return o&&o.call(c),t?n(t):e.Promise?new Promise(n):{then:n}}}(e,l,u),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"))&&(c=h),!c&&p.src&&(c=(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=c+"docssite.jwdgw0bm.js":(d.src=c+"docssite.viz7bsay.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",c),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["footer-bar","vtu3zyh5",1],["header-bar","w2wqrpjp",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","n5viegel",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","ms1l1l4a",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","w2wqrpjp",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","n5viegel",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","d83fvjds",1],["stencil-route","w2wqrpjp",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","5szlxwny",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","w2wqrpjp",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","n5viegel",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","oy9mzgm7",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,c,s,i,n,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,o){o.$r=[];const r=t.componentOnReady;t.componentOnReady=function(t){const c=this;function s(e){o.$r?o.$r.push([c,e]):o.componentOnReady(c,e)}return r&&r.call(c),t?s(t):e.Promise?new Promise(s):{then:s}}}(e,l,u),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"))&&(c=h),!c&&p.src&&(c=(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=c+"docssite.jwdgw0bm.js":(d.src=c+"docssite.viz7bsay.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",c),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["footer-bar","vtu3zyh5",1],["header-bar","f5jhpa2x",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","vscrqboi",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","ms1l1l4a",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","f5jhpa2x",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","vscrqboi",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","d83fvjds",1],["stencil-route","f5jhpa2x",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","5szlxwny",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","f5jhpa2x",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","vscrqboi",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","oy9mzgm7",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,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>
+1 -1
View File
@@ -1,2 +1,2 @@
/*! Built with http://stenciljs.com */
!function(e,t,n,r,i,o,s,c,a,l,u,d,m,p,h){for((u=e.ionicons=e.ionicons||{}).components=a,(m=a.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=m.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),u.$r=[],h=l.componentOnReady,l.componentOnReady=function(t){const n=this;function r(e){u.$r?u.$r.push([n,e]):u.componentOnReady(n,e)}return h&&h.call(n),t?r(t):e.Promise?new Promise(r):{then:r}},d=(m=t.querySelectorAll("script")).length-1;d>=0&&!(p=m[d]).src&&!p.hasAttribute("data-resources-url");d--);(m=p.getAttribute("data-resources-url"))&&(i=m),!i&&p.src&&(i=(m=p.src.split("/").slice(0,-1)).join("/")+(m.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.jnmt4b9p.js":(d.src=i+"ionicons.o84enl63.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","6rxqbvfx",1,[["ariaLabel",1,0,"aria-label",2],["color",1,0,1,2],["ios",1,0,1,2],["isServer",3,0,0,0,"isServer"],["md",1,0,1,2],["mode",3,0,0,0,"mode"],["name",1,0,1,2],["publicPath",3,0,0,0,"publicPath"],["size",1,0,1,2],["svgContent",5]]]],HTMLElement.prototype);
!function(e,t,n,r,i,o,s,c,u,l,a,d,m,p){for((a=e.ionicons=e.ionicons||{}).components=u,(m=u.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=m.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),function(e,t,n){n.$r=[];const r=t.componentOnReady;t.componentOnReady=function(t){const i=this;function o(e){n.$r?n.$r.push([i,e]):n.componentOnReady(i,e)}return r&&r.call(i),t?o(t):e.Promise?new Promise(o):{then:o}}}(e,l,a),d=(m=t.querySelectorAll("script")).length-1;d>=0&&!(p=m[d]).src&&!p.hasAttribute("data-resources-url");d--);(m=p.getAttribute("data-resources-url"))&&(i=m),!i&&p.src&&(i=(m=p.src.split("/").slice(0,-1)).join("/")+(m.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.n4pkessg.js":(d.src=i+"ionicons.fruxdw1i.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","o2hptg7m",1,[["ariaLabel",1,0,"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"]]]],HTMLElement.prototype);
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.svgContent=null,this.ariaLabel="",this.ios="",this.md="",this.name=""}get iconName(){let t=this.name.toLowerCase();const e=this.mode||"md";this.ios&&"ios"===e?t=this.ios.toLowerCase():this.md&&"md"===e?t=this.md.toLowerCase():t&&!/^md-|^ios-|^logo-/.test(t)&&(t=e+"-"+t);const i=t.replace(/[a-z]|-|\d/g,"");return""!==i?(console.error(`invalid characters in ion-icon name: ${i}`),null):t}hostData(){const t={role:"img"};if(this.ariaLabel)t["aria-label"]=this.ariaLabel;else{const e=this.iconName;e&&(t["aria-label"]=e.replace("ios-","").replace("md-","").replace("-outline","").replace(/\-/g," "))}const e={};return this.size&&(e[`icon-${this.size}`]=!0),Object.assign({},t,{class:e})}render(){if(this.isServer)return t("div",{class:"icon-inner"});const e=this.iconName;if(!e)return t("div",{class:"icon-inner"});const s=o[e];return s===this.svgContent?t("div",{class:"icon-inner",innerHTML:s}):(function(t,e,o){if((n[t]=n[t]||[]).push(o),!i[t]){i[t]=!0;var s=document.createElement("script");s.charset="utf-8",s.async=!0,s.src=`${e}svg/${t}.js`;var r=setTimeout(a,12e4);s.onerror=s.onload=a,document.head.appendChild(s)}function a(){clearTimeout(r),s.onerror=s.onload=null,s.parentNode.removeChild(s),delete i[t]}}(e,this.publicPath,t=>{this.svgContent=t}),t("div",{class:"icon-inner"}))}static get is(){return"ion-icon"}static get host(){return{theme:"icon"}}static get properties(){return{ariaLabel:{type:String,attr:"aria-label"},color:{type:String,attr:"color"},ios:{type:String,attr:"ios"},isServer:{context:"isServer"},md:{type:String,attr:"md"},mode:{context:"mode"},name:{type:String,attr:"name"},publicPath:{context:"publicPath"},size:{type:String,attr:"size"},svgContent:{state:!0}}}static get style(){return"ion-icon{display:inline-block;font-size:inherit}ion-icon .icon-inner{height:1em;width:1em}ion-icon svg{fill:currentColor;stroke:currentColor}.icon-small .icon-inner{font-size:18px}.icon-large .icon-inner{font-size:32px}.icon-ios-primary svg{fill:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff))}.icon-ios-secondary svg{fill:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-ios-tertiary svg{fill:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-ios-success svg{fill:var(--ion-color-ios-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-ios-success,var(--ion-color-success,#10dc60))}.icon-ios-warning svg{fill:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00))}.icon-ios-danger svg{fill:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141))}.icon-ios-light svg{fill:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8))}.icon-ios-medium svg{fill:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2))}.icon-ios-dark svg{fill:var(--ion-color-ios-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-ios-dark,var(--ion-color-dark,#222428))}.icon-md-primary svg{fill:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff))}.icon-md-secondary svg{fill:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-md-tertiary svg{fill:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-md-success svg{fill:var(--ion-color-md-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-md-success,var(--ion-color-success,#10dc60))}.icon-md-warning svg{fill:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00))}.icon-md-danger svg{fill:var(--ion-color-md-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-md-danger,var(--ion-color-danger,#f14141))}.icon-md-light svg{fill:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8))}.icon-md-medium svg{fill:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2))}.icon-md-dark svg{fill:var(--ion-color-md-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-md-dark,var(--ion-color-dark,#222428))}"}}const i={},n=[],o={};window.loadIonicon=function(t,e){delete i[e],o[e]=t;const s=n[e];s&&(s.forEach(e=>{e(t)}),delete n[e])};export{e as IonIcon};
-239
View File
@@ -1,239 +0,0 @@
/*! Built with http://stenciljs.com */
/*! Built with http://stenciljs.com */
ionicons.loadBundle("a9f8yuti", [ "exports" ], function(e) {
var t = window.ionicons.h, n = /** @class */ function() {
function Icon() {
this.svgContent = null,
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
this.ariaLabel = "",
/**
* Specifies which icon to use on `ios` mode.
*/
this.ios = "",
/**
* Specifies which icon to use on `md` mode.
*/
this.md = "",
/**
* Specifies which icon to use from the built-in set of icons.
*/
this.name = "",
/**
* Specifies the exact `src` of an SVG file to use.
*/
this.src = "",
/**
* 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.
*/
this.icon = "";
}
return Icon.prototype.componentWillLoad = function() {
var e = this;
// purposely do not return the promise here because loading
// the svg file should not hold up loading the app
// only load the svg if it's visible
this.waitUntilVisible(this.el, "50px", function() {
e.isVisible = !0, e.loadIcon();
});
}, Icon.prototype.waitUntilVisible = function(e, t, n) {
if (this.win.IntersectionObserver) {
var i = new this.win.IntersectionObserver(function(e) {
e[0].isIntersecting && (i.disconnect(), n());
}, {
rootMargin: t
});
i.observe(e);
} else {
// browser doesn't support IntersectionObserver
// so just fallback to always show it
n();
}
}, Icon.prototype.loadIcon = function() {
var e = this;
if (!this.isServer && this.isVisible) {
var t = this.getUrl();
t && function(e) {
// see if we already have a request for this url
var t = i.get(e);
return t || (
// we don't already have a request
t = fetch(e, {
keepalive: !0,
cache: "force-cache"
}).then(function(e) {
return e.ok ? e.text() : Promise.resolve(null);
}),
// cache for the same requests
i.set(e, t)), t;
}(t).then(function(t) {
e.svgContent = t;
});
}
}, Icon.prototype.getUrl = function() {
var e = getSrc(this.src);
return e || ((e = getName(this.name, this.mode, this.ios, this.md)) ? this.getNamedUrl(e) : (e = getSrc(this.icon)) ? e : (e = getName(this.icon, this.mode, this.ios, this.md)) ? this.getNamedUrl(e) : null);
}, Icon.prototype.getNamedUrl = function(e) {
return this.resourcesUrl + "svg/" + e + ".svg";
}, Icon.prototype.hostData = function() {
var e = {
role: "img"
};
this.ariaLabel ||
// user did not provide a label
// come up with the label based on the icon name
getName(this.name, this.mode, this.ios, this.md) && (e["aria-label"] = this.name.replace("ios-", "").replace("md-", "").replace("-outline", "").replace(/\-/g, " "));
var t = {};
return this.size && (t["icon-" + this.size] = !0), Object.assign({}, e, {
class: t
});
}, Icon.prototype.render = function() {
return this.isServer ? t("div", {
class: "icon-inner"
}) : this.svgContent ? t("div", {
class: "icon-inner",
innerHTML: function(e, t) {
if (t) {
var n = e.createDocumentFragment(), i = e.createElement("div");
i.innerHTML = t, n.appendChild(i);
for (var r = i.childNodes.length - 1; r >= 0; r--) {
"SVG" !== i.childNodes[r].nodeName && i.removeChild(i.childNodes[r]);
}
// must only have 1 root element
var o = i.firstElementChild;
if (o && "SVG" === o.nodeName && function isValid(e) {
if (1 === e.nodeType) {
if ("SCRIPT" === e.nodeName) {
return !1;
}
for (var t = 0; t < e.attributes.length; t++) {
var n = e.attributes[t].value;
if ("string" == typeof n && 0 === n.toLowerCase().indexOf("on")) {
return !1;
}
}
for (t = 0; t < e.childNodes.length; t++) {
if (!isValid(e.childNodes[t])) {
return !1;
}
}
}
return !0;
}(o)) {
return i.innerHTML;
}
}
return "";
}(this.doc, this.svgContent)
}) : t("div", {
class: "icon-inner"
});
}, Object.defineProperty(Icon, "is", {
get: function() {
return "ion-icon";
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(Icon, "host", {
get: function() {
return {
theme: "icon"
};
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(Icon, "properties", {
get: function() {
return {
ariaLabel: {
type: String,
attr: "aria-label"
},
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(Icon, "style", {
get: function() {
return "ion-icon{display:inline-block;font-size:inherit}ion-icon .icon-inner{height:1em;width:1em}ion-icon svg{fill:currentColor;stroke:currentColor}.icon-small .icon-inner{font-size:18px}.icon-large .icon-inner{font-size:32px}.icon-ios-primary svg{fill:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff))}.icon-ios-secondary svg{fill:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-ios-tertiary svg{fill:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-ios-success svg{fill:var(--ion-color-ios-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-ios-success,var(--ion-color-success,#10dc60))}.icon-ios-warning svg{fill:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00))}.icon-ios-danger svg{fill:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141))}.icon-ios-light svg{fill:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8))}.icon-ios-medium svg{fill:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2))}.icon-ios-dark svg{fill:var(--ion-color-ios-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-ios-dark,var(--ion-color-dark,#222428))}.icon-md-primary svg{fill:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff))}.icon-md-secondary svg{fill:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-md-tertiary svg{fill:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-md-success svg{fill:var(--ion-color-md-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-md-success,var(--ion-color-success,#10dc60))}.icon-md-warning svg{fill:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00))}.icon-md-danger svg{fill:var(--ion-color-md-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-md-danger,var(--ion-color-danger,#f14141))}.icon-md-light svg{fill:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8))}.icon-md-medium svg{fill:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2))}.icon-md-dark svg{fill:var(--ion-color-md-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-md-dark,var(--ion-color-dark,#222428))}";
},
enumerable: !0,
configurable: !0
}), Icon;
}(), i = new Map();
function getName(e, t, n, i) {
return "string" != typeof e ? null : 0 === (e = e.trim().toLowerCase()).length ? null : (
// default to "md" if somehow the mode wasn't set
t = t || "md",
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
n && "ios" === t ? e = n.toLowerCase() : i && "md" === t ? e = i.toLowerCase() : e && !/^md-|^ios-|^logo-/.test(e) && (
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
e = t + "-" + e), "" !== e.replace(/[a-z]|-|\d/g, "") ? null : e);
}
function getSrc(e) {
return "string" == typeof e && (e = e.trim()).length > 0 && /\//.test(e) ? e : null;
}
e.IonIcon = n, Object.defineProperty(e, "__esModule", {
value: !0
});
});
-232
View File
@@ -1,232 +0,0 @@
/*! Built with http://stenciljs.com */
/*! Built with http://stenciljs.com */
const {h: t} = window.ionicons;
class e {
constructor() {
this.svgContent = null,
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
this.ariaLabel = "",
/**
* Specifies which icon to use on `ios` mode.
*/
this.ios = "",
/**
* Specifies which icon to use on `md` mode.
*/
this.md = "",
/**
* Specifies which icon to use from the built-in set of icons.
*/
this.name = "",
/**
* Specifies the exact `src` of an SVG file to use.
*/
this.src = "",
/**
* 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.
*/
this.icon = "";
}
componentWillLoad() {
// purposely do not return the promise here because loading
// the svg file should not hold up loading the app
// only load the svg if it's visible
this.waitUntilVisible(this.el, "50px", () => {
this.isVisible = !0, this.loadIcon();
});
}
waitUntilVisible(t, e, i) {
if (this.win.IntersectionObserver) {
const n = new this.win.IntersectionObserver(t => {
t[0].isIntersecting && (n.disconnect(), i());
}, {
rootMargin: e
});
n.observe(t);
} else {
// browser doesn't support IntersectionObserver
// so just fallback to always show it
i();
}
}
loadIcon() {
if (!this.isServer && this.isVisible) {
const t = this.getUrl();
t && function(t) {
// see if we already have a request for this url
let e = i.get(t);
return e || (
// we don't already have a request
e = fetch(t, {
keepalive: !0,
cache: "force-cache"
}).then(t => t.ok ? t.text() : Promise.resolve(null)),
// cache for the same requests
i.set(t, e)), e;
}(t).then(t => {
this.svgContent = t;
});
}
}
getUrl() {
let t = getSrc(this.src);
return t || ((t = getName(this.name, this.mode, this.ios, this.md)) ? this.getNamedUrl(t) : (t = getSrc(this.icon)) ? t : (t = getName(this.icon, this.mode, this.ios, this.md)) ? this.getNamedUrl(t) : null);
}
getNamedUrl(t) {
return `${this.resourcesUrl}svg/${t}.svg`;
}
hostData() {
const t = {
role: "img"
};
this.ariaLabel ||
// user did not provide a label
// come up with the label based on the icon name
getName(this.name, this.mode, this.ios, this.md) && (t["aria-label"] = this.name.replace("ios-", "").replace("md-", "").replace("-outline", "").replace(/\-/g, " "));
const e = {};
return this.size && (e[`icon-${this.size}`] = !0), Object.assign({}, t, {
class: e
});
}
render() {
return this.isServer ? t("div", {
class: "icon-inner"
}) : this.svgContent ? t("div", {
class: "icon-inner",
innerHTML: function(t, e) {
if (e) {
const i = t.createDocumentFragment(), n = t.createElement("div");
n.innerHTML = e, i.appendChild(n);
for (let t = n.childNodes.length - 1; t >= 0; t--) {
"SVG" !== n.childNodes[t].nodeName && n.removeChild(n.childNodes[t]);
}
// must only have 1 root element
const s = n.firstElementChild;
if (s && "SVG" === s.nodeName && function isValid(t) {
if (1 === t.nodeType) {
if ("SCRIPT" === t.nodeName) {
return !1;
}
for (var e = 0; e < t.attributes.length; e++) {
let i = t.attributes[e].value;
if ("string" == typeof i && 0 === i.toLowerCase().indexOf("on")) {
return !1;
}
}
for (e = 0; e < t.childNodes.length; e++) {
if (!isValid(t.childNodes[e])) {
return !1;
}
}
}
return !0;
}(s)) {
return n.innerHTML;
}
}
return "";
}(this.doc, this.svgContent)
}) : t("div", {
class: "icon-inner"
});
}
static get is() {
return "ion-icon";
}
static get host() {
return {
theme: "icon"
};
}
static get properties() {
return {
ariaLabel: {
type: String,
attr: "aria-label"
},
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 "ion-icon{display:inline-block;font-size:inherit}ion-icon .icon-inner{height:1em;width:1em}ion-icon svg{fill:currentColor;stroke:currentColor}.icon-small .icon-inner{font-size:18px}.icon-large .icon-inner{font-size:32px}.icon-ios-primary svg{fill:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff))}.icon-ios-secondary svg{fill:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-ios-tertiary svg{fill:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-ios-success svg{fill:var(--ion-color-ios-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-ios-success,var(--ion-color-success,#10dc60))}.icon-ios-warning svg{fill:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00))}.icon-ios-danger svg{fill:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141))}.icon-ios-light svg{fill:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8))}.icon-ios-medium svg{fill:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2))}.icon-ios-dark svg{fill:var(--ion-color-ios-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-ios-dark,var(--ion-color-dark,#222428))}.icon-md-primary svg{fill:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff))}.icon-md-secondary svg{fill:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-md-tertiary svg{fill:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-md-success svg{fill:var(--ion-color-md-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-md-success,var(--ion-color-success,#10dc60))}.icon-md-warning svg{fill:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00))}.icon-md-danger svg{fill:var(--ion-color-md-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-md-danger,var(--ion-color-danger,#f14141))}.icon-md-light svg{fill:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8))}.icon-md-medium svg{fill:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2))}.icon-md-dark svg{fill:var(--ion-color-md-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-md-dark,var(--ion-color-dark,#222428))}";
}
}
const i = new Map();
function getName(t, e, i, n) {
return "string" != typeof t ? null : 0 === (t = t.trim().toLowerCase()).length ? null : (
// default to "md" if somehow the mode wasn't set
e = e || "md",
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
i && "ios" === e ? t = i.toLowerCase() : n && "md" === e ? t = n.toLowerCase() : t && !/^md-|^ios-|^logo-/.test(t) && (
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
t = e + "-" + t), "" !== t.replace(/[a-z]|-|\d/g, "") ? null : t);
}
function getSrc(t) {
return "string" == typeof t && (t = t.trim()).length > 0 && /\//.test(t) ? t : null;
}
export { e as IonIcon };
-19
View File
@@ -1,19 +0,0 @@
var IconComponent = /** @class **/ (function() {
function Icon() {
}
Icon.is = 'ion-icon';
Icon.getModule = function(opts) {
return import('./6rxqbvfx.js').then(function(m) {
return m.Icon;
});
}
});
export {
Icon,
};
-240
View File
@@ -1,240 +0,0 @@
/*! Built with http://stenciljs.com */
/*! Built with http://stenciljs.com */
ionicons.loadBundle("gi3tvtey", [ "exports" ], function(e) {
var t = window.ionicons.h, n = /** @class */ function() {
function Icon() {
this.svgContent = null,
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
this.ariaLabel = "",
/**
* Specifies which icon to use on `ios` mode.
*/
this.ios = "",
/**
* Specifies which icon to use on `md` mode.
*/
this.md = "",
/**
* Specifies which icon to use from the built-in set of icons.
*/
this.name = "",
/**
* Specifies the exact `src` of an SVG file to use.
*/
this.src = "",
/**
* 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.
*/
this.icon = "";
}
return Icon.prototype.componentWillLoad = function() {
var e = this;
// purposely do not return the promise here because loading
// the svg file should not hold up loading the app
// only load the svg if it's visible
this.waitUntilVisible(this.el, "50px", function() {
e.isVisible = !0, e.loadIcon();
});
}, Icon.prototype.waitUntilVisible = function(e, t, n) {
if (this.win.IntersectionObserver) {
var i = new this.win.IntersectionObserver(function(e) {
e[0].isIntersecting && (i.disconnect(), n());
}, {
rootMargin: t
});
i.observe(e);
} else {
// browser doesn't support IntersectionObserver
// so just fallback to always show it
n();
}
}, Icon.prototype.loadIcon = function() {
var e = this;
if (!this.isServer && this.isVisible) {
var t = this.getUrl();
t && function(e) {
// see if we already have a request for this url
var t = i.get(e);
return t || (
// we don't already have a request
t = fetch(e, {
keepalive: !0,
cache: "force-cache"
}).then(function(e) {
return e.ok ? e.text() : Promise.resolve(null);
}),
// cache for the same requests
i.set(e, t)), t;
}(t).then(function(t) {
e.svgContent = t;
});
}
}, Icon.prototype.getUrl = function() {
var e = getSrc(this.src);
return e || ((e = getName(this.name, this.mode, this.ios, this.md)) ? this.getNamedUrl(e) : (e = getSrc(this.icon)) ? e : (e = getName(this.icon, this.mode, this.ios, this.md)) ? this.getNamedUrl(e) : null);
}, Icon.prototype.getNamedUrl = function(e) {
return this.resourcesUrl + "svg/" + e + ".svg";
}, Icon.prototype.hostData = function() {
var e = {
role: "img"
};
this.ariaLabel ||
// user did not provide a label
// come up with the label based on the icon name
getName(this.name, this.mode, this.ios, this.md) && (e["aria-label"] = this.name.replace("ios-", "").replace("md-", "").replace("-outline", "").replace(/\-/g, " "));
var t = {};
return this.size && (t["icon-" + this.size] = !0), Object.assign({}, e, {
class: t
});
}, Icon.prototype.render = function() {
return this.isServer ? t("div", {
class: "icon-inner"
}) : this.svgContent ? t("div", {
class: "icon-inner",
innerHTML: function(e, t) {
if (t) {
var n = e.createDocumentFragment(), i = e.createElement("div");
i.innerHTML = t, n.appendChild(i);
// setup this way to ensure it works on our buddy IE
for (var r = i.childNodes.length - 1; r >= 0; r--) {
"svg" !== i.childNodes[r].nodeName.toLowerCase() && i.removeChild(i.childNodes[r]);
}
// must only have 1 root element
var o = i.firstElementChild;
if (o && "svg" === o.nodeName.toLowerCase() && function isValid(e) {
if (1 === e.nodeType) {
if ("SCRIPT" === e.nodeName) {
return !1;
}
for (var t = 0; t < e.attributes.length; t++) {
var n = e.attributes[t].value;
if ("string" == typeof n && 0 === n.toLowerCase().indexOf("on")) {
return !1;
}
}
for (t = 0; t < e.childNodes.length; t++) {
if (!isValid(e.childNodes[t])) {
return !1;
}
}
}
return !0;
}(o)) {
return i.innerHTML;
}
}
return "";
}(this.doc, this.svgContent)
}) : t("div", {
class: "icon-inner"
});
}, Object.defineProperty(Icon, "is", {
get: function() {
return "ion-icon";
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(Icon, "host", {
get: function() {
return {
theme: "icon"
};
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(Icon, "properties", {
get: function() {
return {
ariaLabel: {
type: String,
attr: "aria-label"
},
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(Icon, "style", {
get: function() {
return "ion-icon{display:inline-block;font-size:inherit}ion-icon .icon-inner{height:1em;width:1em}ion-icon svg{fill:currentColor;stroke:currentColor}.icon-small .icon-inner{font-size:18px}.icon-large .icon-inner{font-size:32px}.icon-ios-primary svg{fill:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff))}.icon-ios-secondary svg{fill:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-ios-tertiary svg{fill:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-ios-success svg{fill:var(--ion-color-ios-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-ios-success,var(--ion-color-success,#10dc60))}.icon-ios-warning svg{fill:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00))}.icon-ios-danger svg{fill:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141))}.icon-ios-light svg{fill:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8))}.icon-ios-medium svg{fill:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2))}.icon-ios-dark svg{fill:var(--ion-color-ios-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-ios-dark,var(--ion-color-dark,#222428))}.icon-md-primary svg{fill:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff))}.icon-md-secondary svg{fill:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-md-tertiary svg{fill:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-md-success svg{fill:var(--ion-color-md-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-md-success,var(--ion-color-success,#10dc60))}.icon-md-warning svg{fill:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00))}.icon-md-danger svg{fill:var(--ion-color-md-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-md-danger,var(--ion-color-danger,#f14141))}.icon-md-light svg{fill:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8))}.icon-md-medium svg{fill:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2))}.icon-md-dark svg{fill:var(--ion-color-md-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-md-dark,var(--ion-color-dark,#222428))}";
},
enumerable: !0,
configurable: !0
}), Icon;
}(), i = new Map();
function getName(e, t, n, i) {
return "string" != typeof e ? null : 0 === (e = e.trim().toLowerCase()).length ? null : (
// default to "md" if somehow the mode wasn't set
t = t || "md",
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
n && "ios" === t ? e = n.toLowerCase() : i && "md" === t ? e = i.toLowerCase() : e && !/^md-|^ios-|^logo-/.test(e) && (
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
e = t + "-" + e), "" !== e.replace(/[a-z]|-|\d/g, "") ? null : e);
}
function getSrc(e) {
return "string" == typeof e && (e = e.trim()).length > 0 && /\//.test(e) ? e : null;
}
e.IonIcon = n, Object.defineProperty(e, "__esModule", {
value: !0
});
});
-233
View File
@@ -1,233 +0,0 @@
/*! Built with http://stenciljs.com */
/*! Built with http://stenciljs.com */
const {h: t} = window.ionicons;
class e {
constructor() {
this.svgContent = null,
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
this.ariaLabel = "",
/**
* Specifies which icon to use on `ios` mode.
*/
this.ios = "",
/**
* Specifies which icon to use on `md` mode.
*/
this.md = "",
/**
* Specifies which icon to use from the built-in set of icons.
*/
this.name = "",
/**
* Specifies the exact `src` of an SVG file to use.
*/
this.src = "",
/**
* 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.
*/
this.icon = "";
}
componentWillLoad() {
// purposely do not return the promise here because loading
// the svg file should not hold up loading the app
// only load the svg if it's visible
this.waitUntilVisible(this.el, "50px", () => {
this.isVisible = !0, this.loadIcon();
});
}
waitUntilVisible(t, e, i) {
if (this.win.IntersectionObserver) {
const s = new this.win.IntersectionObserver(t => {
t[0].isIntersecting && (s.disconnect(), i());
}, {
rootMargin: e
});
s.observe(t);
} else {
// browser doesn't support IntersectionObserver
// so just fallback to always show it
i();
}
}
loadIcon() {
if (!this.isServer && this.isVisible) {
const t = this.getUrl();
t && function(t) {
// see if we already have a request for this url
let e = i.get(t);
return e || (
// we don't already have a request
e = fetch(t, {
keepalive: !0,
cache: "force-cache"
}).then(t => t.ok ? t.text() : Promise.resolve(null)),
// cache for the same requests
i.set(t, e)), e;
}(t).then(t => {
this.svgContent = t;
});
}
}
getUrl() {
let t = getSrc(this.src);
return t || ((t = getName(this.name, this.mode, this.ios, this.md)) ? this.getNamedUrl(t) : (t = getSrc(this.icon)) ? t : (t = getName(this.icon, this.mode, this.ios, this.md)) ? this.getNamedUrl(t) : null);
}
getNamedUrl(t) {
return `${this.resourcesUrl}svg/${t}.svg`;
}
hostData() {
const t = {
role: "img"
};
this.ariaLabel ||
// user did not provide a label
// come up with the label based on the icon name
getName(this.name, this.mode, this.ios, this.md) && (t["aria-label"] = this.name.replace("ios-", "").replace("md-", "").replace("-outline", "").replace(/\-/g, " "));
const e = {};
return this.size && (e[`icon-${this.size}`] = !0), Object.assign({}, t, {
class: e
});
}
render() {
return this.isServer ? t("div", {
class: "icon-inner"
}) : this.svgContent ? t("div", {
class: "icon-inner",
innerHTML: function(t, e) {
if (e) {
const i = t.createDocumentFragment(), s = t.createElement("div");
s.innerHTML = e, i.appendChild(s);
// setup this way to ensure it works on our buddy IE
for (let t = s.childNodes.length - 1; t >= 0; t--) {
"svg" !== s.childNodes[t].nodeName.toLowerCase() && s.removeChild(s.childNodes[t]);
}
// must only have 1 root element
const n = s.firstElementChild;
if (n && "svg" === n.nodeName.toLowerCase() && function isValid(t) {
if (1 === t.nodeType) {
if ("SCRIPT" === t.nodeName) {
return !1;
}
for (var e = 0; e < t.attributes.length; e++) {
let i = t.attributes[e].value;
if ("string" == typeof i && 0 === i.toLowerCase().indexOf("on")) {
return !1;
}
}
for (e = 0; e < t.childNodes.length; e++) {
if (!isValid(t.childNodes[e])) {
return !1;
}
}
}
return !0;
}(n)) {
return s.innerHTML;
}
}
return "";
}(this.doc, this.svgContent)
}) : t("div", {
class: "icon-inner"
});
}
static get is() {
return "ion-icon";
}
static get host() {
return {
theme: "icon"
};
}
static get properties() {
return {
ariaLabel: {
type: String,
attr: "aria-label"
},
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 "ion-icon{display:inline-block;font-size:inherit}ion-icon .icon-inner{height:1em;width:1em}ion-icon svg{fill:currentColor;stroke:currentColor}.icon-small .icon-inner{font-size:18px}.icon-large .icon-inner{font-size:32px}.icon-ios-primary svg{fill:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff))}.icon-ios-secondary svg{fill:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-ios-tertiary svg{fill:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-ios-success svg{fill:var(--ion-color-ios-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-ios-success,var(--ion-color-success,#10dc60))}.icon-ios-warning svg{fill:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00))}.icon-ios-danger svg{fill:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141))}.icon-ios-light svg{fill:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8))}.icon-ios-medium svg{fill:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2))}.icon-ios-dark svg{fill:var(--ion-color-ios-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-ios-dark,var(--ion-color-dark,#222428))}.icon-md-primary svg{fill:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff))}.icon-md-secondary svg{fill:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-md-tertiary svg{fill:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-md-success svg{fill:var(--ion-color-md-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-md-success,var(--ion-color-success,#10dc60))}.icon-md-warning svg{fill:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00))}.icon-md-danger svg{fill:var(--ion-color-md-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-md-danger,var(--ion-color-danger,#f14141))}.icon-md-light svg{fill:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8))}.icon-md-medium svg{fill:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2))}.icon-md-dark svg{fill:var(--ion-color-md-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-md-dark,var(--ion-color-dark,#222428))}";
}
}
const i = new Map();
function getName(t, e, i, s) {
return "string" != typeof t ? null : 0 === (t = t.trim().toLowerCase()).length ? null : (
// default to "md" if somehow the mode wasn't set
e = e || "md",
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
i && "ios" === e ? t = i.toLowerCase() : s && "md" === e ? t = s.toLowerCase() : t && !/^md-|^ios-|^logo-/.test(t) && (
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
t = e + "-" + t), "" !== t.replace(/[a-z]|-|\d/g, "") ? null : t);
}
function getSrc(t) {
return "string" == typeof t && (t = t.trim()).length > 0 && /\//.test(t) ? t : null;
}
export { e as IonIcon };
-240
View File
@@ -1,240 +0,0 @@
/*! Built with http://stenciljs.com */
/*! Built with http://stenciljs.com */
ionicons.loadBundle("ioh1zovl", [ "exports" ], function(e) {
var t = window.ionicons.h, n = /** @class */ function() {
function Icon() {
this.svgContent = null,
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
this.ariaLabel = "",
/**
* Specifies which icon to use on `ios` mode.
*/
this.ios = "",
/**
* Specifies which icon to use on `md` mode.
*/
this.md = "",
/**
* Specifies which icon to use from the built-in set of icons.
*/
this.name = "",
/**
* Specifies the exact `src` of an SVG file to use.
*/
this.src = "",
/**
* 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.
*/
this.icon = "";
}
return Icon.prototype.componentWillLoad = function() {
var e = this;
// purposely do not return the promise here because loading
// the svg file should not hold up loading the app
// only load the svg if it's visible
this.waitUntilVisible(this.el, "50px", function() {
e.isVisible = !0, e.loadIcon();
});
}, Icon.prototype.waitUntilVisible = function(e, t, n) {
if (this.win.IntersectionObserver) {
var i = new this.win.IntersectionObserver(function(e) {
e[0].isIntersecting && (i.disconnect(), n());
}, {
rootMargin: t
});
i.observe(e);
} else {
// browser doesn't support IntersectionObserver
// so just fallback to always show it
n();
}
}, Icon.prototype.loadIcon = function() {
var e = this;
if (!this.isServer && this.isVisible) {
var t = this.getUrl();
t && function(e) {
// see if we already have a request for this url
var t = i.get(e);
return t || (
// we don't already have a request
t = fetch(e, {
keepalive: !0,
cache: "force-cache"
}).then(function(e) {
return e.ok ? e.text() : Promise.resolve(null);
}),
// cache for the same requests
i.set(e, t)), t;
}(t).then(function(t) {
e.svgContent = t;
});
}
}, Icon.prototype.getUrl = function() {
var e = getSrc(this.src);
return e || ((e = getName(this.name, this.mode, this.ios, this.md)) ? this.getNamedUrl(e) : (e = getSrc(this.icon)) ? e : (e = getName(this.icon, this.mode, this.ios, this.md)) ? this.getNamedUrl(e) : null);
}, Icon.prototype.getNamedUrl = function(e) {
return this.resourcesUrl + "svg/" + e + ".svg";
}, Icon.prototype.hostData = function() {
var e = {
role: "img"
};
this.ariaLabel ||
// user did not provide a label
// come up with the label based on the icon name
getName(this.name, this.mode, this.ios, this.md) && (e["aria-label"] = this.name.replace("ios-", "").replace("md-", "").replace("-outline", "").replace(/\-/g, " "));
var t = {};
return this.size && (t["icon-" + this.size] = !0), Object.assign({}, e, {
class: t
});
}, Icon.prototype.render = function() {
return this.isServer ? t("div", {
class: "icon-inner"
}) : this.svgContent ? t("div", {
class: "icon-inner",
innerHTML: function(e, t) {
if (t) {
var n = e.createDocumentFragment(), i = e.createElement("div");
i.innerHTML = t, n.appendChild(i);
// setup this way to ensure it works on our buddy IE
for (var r = i.childNodes.length - 1; r >= 0; r--) {
"svg" === i.childNodes[r].nodeName.toLowerCase() && i.removeChild(i.childNodes[r]);
}
// must only have 1 root element
var o = i.firstElementChild;
if (o && "svg" === o.nodeName.toLowerCase() && function isValid(e) {
if (1 === e.nodeType) {
if ("SCRIPT" === e.nodeName) {
return !1;
}
for (var t = 0; t < e.attributes.length; t++) {
var n = e.attributes[t].value;
if ("string" == typeof n && 0 === n.toLowerCase().indexOf("on")) {
return !1;
}
}
for (t = 0; t < e.childNodes.length; t++) {
if (!isValid(e.childNodes[t])) {
return !1;
}
}
}
return !0;
}(o)) {
return i.innerHTML;
}
}
return "";
}(this.doc, this.svgContent)
}) : t("div", {
class: "icon-inner"
});
}, Object.defineProperty(Icon, "is", {
get: function() {
return "ion-icon";
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(Icon, "host", {
get: function() {
return {
theme: "icon"
};
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(Icon, "properties", {
get: function() {
return {
ariaLabel: {
type: String,
attr: "aria-label"
},
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(Icon, "style", {
get: function() {
return "ion-icon{display:inline-block;font-size:inherit}ion-icon .icon-inner{height:1em;width:1em}ion-icon svg{fill:currentColor;stroke:currentColor}.icon-small .icon-inner{font-size:18px}.icon-large .icon-inner{font-size:32px}.icon-ios-primary svg{fill:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff))}.icon-ios-secondary svg{fill:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-ios-tertiary svg{fill:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-ios-success svg{fill:var(--ion-color-ios-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-ios-success,var(--ion-color-success,#10dc60))}.icon-ios-warning svg{fill:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00))}.icon-ios-danger svg{fill:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141))}.icon-ios-light svg{fill:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8))}.icon-ios-medium svg{fill:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2))}.icon-ios-dark svg{fill:var(--ion-color-ios-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-ios-dark,var(--ion-color-dark,#222428))}.icon-md-primary svg{fill:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff))}.icon-md-secondary svg{fill:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-md-tertiary svg{fill:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-md-success svg{fill:var(--ion-color-md-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-md-success,var(--ion-color-success,#10dc60))}.icon-md-warning svg{fill:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00))}.icon-md-danger svg{fill:var(--ion-color-md-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-md-danger,var(--ion-color-danger,#f14141))}.icon-md-light svg{fill:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8))}.icon-md-medium svg{fill:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2))}.icon-md-dark svg{fill:var(--ion-color-md-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-md-dark,var(--ion-color-dark,#222428))}";
},
enumerable: !0,
configurable: !0
}), Icon;
}(), i = new Map();
function getName(e, t, n, i) {
return "string" != typeof e ? null : 0 === (e = e.trim().toLowerCase()).length ? null : (
// default to "md" if somehow the mode wasn't set
t = t || "md",
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
n && "ios" === t ? e = n.toLowerCase() : i && "md" === t ? e = i.toLowerCase() : e && !/^md-|^ios-|^logo-/.test(e) && (
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
e = t + "-" + e), "" !== e.replace(/[a-z]|-|\d/g, "") ? null : e);
}
function getSrc(e) {
return "string" == typeof e && (e = e.trim()).length > 0 && /\//.test(e) ? e : null;
}
e.IonIcon = n, Object.defineProperty(e, "__esModule", {
value: !0
});
});
-233
View File
@@ -1,233 +0,0 @@
/*! Built with http://stenciljs.com */
/*! Built with http://stenciljs.com */
const {h: t} = window.ionicons;
class e {
constructor() {
this.svgContent = null,
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
this.ariaLabel = "",
/**
* Specifies which icon to use on `ios` mode.
*/
this.ios = "",
/**
* Specifies which icon to use on `md` mode.
*/
this.md = "",
/**
* Specifies which icon to use from the built-in set of icons.
*/
this.name = "",
/**
* Specifies the exact `src` of an SVG file to use.
*/
this.src = "",
/**
* 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.
*/
this.icon = "";
}
componentWillLoad() {
// purposely do not return the promise here because loading
// the svg file should not hold up loading the app
// only load the svg if it's visible
this.waitUntilVisible(this.el, "50px", () => {
this.isVisible = !0, this.loadIcon();
});
}
waitUntilVisible(t, e, i) {
if (this.win.IntersectionObserver) {
const s = new this.win.IntersectionObserver(t => {
t[0].isIntersecting && (s.disconnect(), i());
}, {
rootMargin: e
});
s.observe(t);
} else {
// browser doesn't support IntersectionObserver
// so just fallback to always show it
i();
}
}
loadIcon() {
if (!this.isServer && this.isVisible) {
const t = this.getUrl();
t && function(t) {
// see if we already have a request for this url
let e = i.get(t);
return e || (
// we don't already have a request
e = fetch(t, {
keepalive: !0,
cache: "force-cache"
}).then(t => t.ok ? t.text() : Promise.resolve(null)),
// cache for the same requests
i.set(t, e)), e;
}(t).then(t => {
this.svgContent = t;
});
}
}
getUrl() {
let t = getSrc(this.src);
return t || ((t = getName(this.name, this.mode, this.ios, this.md)) ? this.getNamedUrl(t) : (t = getSrc(this.icon)) ? t : (t = getName(this.icon, this.mode, this.ios, this.md)) ? this.getNamedUrl(t) : null);
}
getNamedUrl(t) {
return `${this.resourcesUrl}svg/${t}.svg`;
}
hostData() {
const t = {
role: "img"
};
this.ariaLabel ||
// user did not provide a label
// come up with the label based on the icon name
getName(this.name, this.mode, this.ios, this.md) && (t["aria-label"] = this.name.replace("ios-", "").replace("md-", "").replace("-outline", "").replace(/\-/g, " "));
const e = {};
return this.size && (e[`icon-${this.size}`] = !0), Object.assign({}, t, {
class: e
});
}
render() {
return this.isServer ? t("div", {
class: "icon-inner"
}) : this.svgContent ? t("div", {
class: "icon-inner",
innerHTML: function(t, e) {
if (e) {
const i = t.createDocumentFragment(), s = t.createElement("div");
s.innerHTML = e, i.appendChild(s);
// setup this way to ensure it works on our buddy IE
for (let t = s.childNodes.length - 1; t >= 0; t--) {
"svg" === s.childNodes[t].nodeName.toLowerCase() && s.removeChild(s.childNodes[t]);
}
// must only have 1 root element
const n = s.firstElementChild;
if (n && "svg" === n.nodeName.toLowerCase() && function isValid(t) {
if (1 === t.nodeType) {
if ("SCRIPT" === t.nodeName) {
return !1;
}
for (var e = 0; e < t.attributes.length; e++) {
let i = t.attributes[e].value;
if ("string" == typeof i && 0 === i.toLowerCase().indexOf("on")) {
return !1;
}
}
for (e = 0; e < t.childNodes.length; e++) {
if (!isValid(t.childNodes[e])) {
return !1;
}
}
}
return !0;
}(n)) {
return s.innerHTML;
}
}
return "";
}(this.doc, this.svgContent)
}) : t("div", {
class: "icon-inner"
});
}
static get is() {
return "ion-icon";
}
static get host() {
return {
theme: "icon"
};
}
static get properties() {
return {
ariaLabel: {
type: String,
attr: "aria-label"
},
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 "ion-icon{display:inline-block;font-size:inherit}ion-icon .icon-inner{height:1em;width:1em}ion-icon svg{fill:currentColor;stroke:currentColor}.icon-small .icon-inner{font-size:18px}.icon-large .icon-inner{font-size:32px}.icon-ios-primary svg{fill:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff))}.icon-ios-secondary svg{fill:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-ios-tertiary svg{fill:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-ios-success svg{fill:var(--ion-color-ios-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-ios-success,var(--ion-color-success,#10dc60))}.icon-ios-warning svg{fill:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00))}.icon-ios-danger svg{fill:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141))}.icon-ios-light svg{fill:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8))}.icon-ios-medium svg{fill:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2))}.icon-ios-dark svg{fill:var(--ion-color-ios-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-ios-dark,var(--ion-color-dark,#222428))}.icon-md-primary svg{fill:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff))}.icon-md-secondary svg{fill:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-md-tertiary svg{fill:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-md-success svg{fill:var(--ion-color-md-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-md-success,var(--ion-color-success,#10dc60))}.icon-md-warning svg{fill:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00))}.icon-md-danger svg{fill:var(--ion-color-md-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-md-danger,var(--ion-color-danger,#f14141))}.icon-md-light svg{fill:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8))}.icon-md-medium svg{fill:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2))}.icon-md-dark svg{fill:var(--ion-color-md-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-md-dark,var(--ion-color-dark,#222428))}";
}
}
const i = new Map();
function getName(t, e, i, s) {
return "string" != typeof t ? null : 0 === (t = t.trim().toLowerCase()).length ? null : (
// default to "md" if somehow the mode wasn't set
e = e || "md",
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
i && "ios" === e ? t = i.toLowerCase() : s && "md" === e ? t = s.toLowerCase() : t && !/^md-|^ios-|^logo-/.test(t) && (
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
t = e + "-" + t), "" !== t.replace(/[a-z]|-|\d/g, "") ? null : t);
}
function getSrc(t) {
return "string" == typeof t && (t = t.trim()).length > 0 && /\//.test(t) ? t : null;
}
export { e as IonIcon };
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
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
-236
View File
@@ -1,236 +0,0 @@
/*! Built with http://stenciljs.com */
/*! Built with http://stenciljs.com */
ionicons.loadBundle("olno4hrp", [ "exports" ], function(e) {
var t = window.ionicons.h, n = /** @class */ function() {
function Icon() {
this.svgContent = null,
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
this.ariaLabel = "",
/**
* Specifies which icon to use on `ios` mode.
*/
this.ios = "",
/**
* Specifies which icon to use on `md` mode.
*/
this.md = "",
/**
* Specifies which icon to use from the built-in set of icons.
*/
this.name = "",
/**
* Specifies the exact `src` of an SVG file to use.
*/
this.src = "",
/**
* 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.
*/
this.icon = "";
}
return Icon.prototype.componentWillLoad = function() {
var e = this;
// purposely do not return the promise here because loading
// the svg file should not hold up loading the app
// only load the svg if it's visible
this.waitUntilVisible(this.el, "50px", function() {
e.isVisible = !0, e.loadIcon();
});
}, Icon.prototype.waitUntilVisible = function(e, t, n) {
if (this.win.IntersectionObserver) {
var i = new this.win.IntersectionObserver(function(e) {
e[0].isIntersecting && (i.disconnect(), n());
}, {
rootMargin: t
});
i.observe(e);
} else {
// browser doesn't support IntersectionObserver
// so just fallback to always show it
n();
}
}, Icon.prototype.loadIcon = function() {
var e = this;
if (!this.isServer && this.isVisible) {
var t = this.getUrl();
t && function(e) {
// see if we already have a request for this url
var t = i.get(e);
return t || (
// we don't already have a request
t = fetch(e, {
keepalive: !0,
cache: "force-cache"
}).then(function(e) {
return e.ok ? e.text() : Promise.resolve(null);
}),
// cache for the same requests
i.set(e, t)), t;
}(t).then(function(t) {
e.svgContent = t;
});
}
}, Icon.prototype.getUrl = function() {
var e = getSrc(this.src);
return e || ((e = getName(this.name, this.mode, this.ios, this.md)) ? this.getNamedUrl(e) : (e = getSrc(this.icon)) ? e : (e = getName(this.icon, this.mode, this.ios, this.md)) ? this.getNamedUrl(e) : null);
}, Icon.prototype.getNamedUrl = function(e) {
return this.resourcesUrl + "svg/" + e + ".svg";
}, Icon.prototype.hostData = function() {
var e = {
role: "img"
};
this.ariaLabel ||
// user did not provide a label
// come up with the label based on the icon name
getName(this.name, this.mode, this.ios, this.md) && (e["aria-label"] = this.name.replace("ios-", "").replace("md-", "").replace("-outline", "").replace(/\-/g, " "));
var t = {};
return this.size && (t["icon-" + this.size] = !0), Object.assign({}, e, {
class: t
});
}, Icon.prototype.render = function() {
return this.isServer ? t("div", {
class: "icon-inner"
}) : this.svgContent ? t("div", {
class: "icon-inner",
innerHTML: function(e, t) {
if (t) {
var n = e.createDocumentFragment(), i = e.createElement("div");
i.innerHTML = t, n.appendChild(i);
// must only have 1 root element
var r = i.querySelector("svg");
if (r && function isValid(e) {
if (1 === e.nodeType) {
if ("SCRIPT" === e.nodeName) {
return !1;
}
for (var t = 0; t < e.attributes.length; t++) {
var n = e.attributes[t].value;
if ("string" == typeof n && 0 === n.toLowerCase().indexOf("on")) {
return !1;
}
}
for (t = 0; t < e.childNodes.length; t++) {
if (!isValid(e.childNodes[t])) {
return !1;
}
}
}
return !0;
}(r)) {
return r.outerHTML;
}
}
return "";
}(this.doc, this.svgContent)
}) : t("div", {
class: "icon-inner"
});
}, Object.defineProperty(Icon, "is", {
get: function() {
return "ion-icon";
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(Icon, "host", {
get: function() {
return {
theme: "icon"
};
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(Icon, "properties", {
get: function() {
return {
ariaLabel: {
type: String,
attr: "aria-label"
},
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(Icon, "style", {
get: function() {
return "ion-icon{display:inline-block;font-size:inherit}ion-icon .icon-inner{height:1em;width:1em}ion-icon svg{fill:currentColor;stroke:currentColor}.icon-small .icon-inner{font-size:18px}.icon-large .icon-inner{font-size:32px}.icon-ios-primary svg{fill:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff))}.icon-ios-secondary svg{fill:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-ios-tertiary svg{fill:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-ios-success svg{fill:var(--ion-color-ios-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-ios-success,var(--ion-color-success,#10dc60))}.icon-ios-warning svg{fill:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00))}.icon-ios-danger svg{fill:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141))}.icon-ios-light svg{fill:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8))}.icon-ios-medium svg{fill:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2))}.icon-ios-dark svg{fill:var(--ion-color-ios-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-ios-dark,var(--ion-color-dark,#222428))}.icon-md-primary svg{fill:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff))}.icon-md-secondary svg{fill:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-md-tertiary svg{fill:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-md-success svg{fill:var(--ion-color-md-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-md-success,var(--ion-color-success,#10dc60))}.icon-md-warning svg{fill:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00))}.icon-md-danger svg{fill:var(--ion-color-md-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-md-danger,var(--ion-color-danger,#f14141))}.icon-md-light svg{fill:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8))}.icon-md-medium svg{fill:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2))}.icon-md-dark svg{fill:var(--ion-color-md-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-md-dark,var(--ion-color-dark,#222428))}";
},
enumerable: !0,
configurable: !0
}), Icon;
}(), i = new Map();
function getName(e, t, n, i) {
return "string" != typeof e ? null : 0 === (e = e.trim().toLowerCase()).length ? null : (
// default to "md" if somehow the mode wasn't set
t = t || "md",
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
n && "ios" === t ? e = n.toLowerCase() : i && "md" === t ? e = i.toLowerCase() : e && !/^md-|^ios-|^logo-/.test(e) && (
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
e = t + "-" + e), "" !== e.replace(/[a-z]|-|\d/g, "") ? null : e);
}
function getSrc(e) {
return "string" == typeof e && (e = e.trim()).length > 0 && /\//.test(e) ? e : null;
}
e.IonIcon = n, Object.defineProperty(e, "__esModule", {
value: !0
});
});
-229
View File
@@ -1,229 +0,0 @@
/*! Built with http://stenciljs.com */
/*! Built with http://stenciljs.com */
const {h: t} = window.ionicons;
class e {
constructor() {
this.svgContent = null,
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
this.ariaLabel = "",
/**
* Specifies which icon to use on `ios` mode.
*/
this.ios = "",
/**
* Specifies which icon to use on `md` mode.
*/
this.md = "",
/**
* Specifies which icon to use from the built-in set of icons.
*/
this.name = "",
/**
* Specifies the exact `src` of an SVG file to use.
*/
this.src = "",
/**
* 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.
*/
this.icon = "";
}
componentWillLoad() {
// purposely do not return the promise here because loading
// the svg file should not hold up loading the app
// only load the svg if it's visible
this.waitUntilVisible(this.el, "50px", () => {
this.isVisible = !0, this.loadIcon();
});
}
waitUntilVisible(t, e, i) {
if (this.win.IntersectionObserver) {
const s = new this.win.IntersectionObserver(t => {
t[0].isIntersecting && (s.disconnect(), i());
}, {
rootMargin: e
});
s.observe(t);
} else {
// browser doesn't support IntersectionObserver
// so just fallback to always show it
i();
}
}
loadIcon() {
if (!this.isServer && this.isVisible) {
const t = this.getUrl();
t && function(t) {
// see if we already have a request for this url
let e = i.get(t);
return e || (
// we don't already have a request
e = fetch(t, {
keepalive: !0,
cache: "force-cache"
}).then(t => t.ok ? t.text() : Promise.resolve(null)),
// cache for the same requests
i.set(t, e)), e;
}(t).then(t => {
this.svgContent = t;
});
}
}
getUrl() {
let t = getSrc(this.src);
return t || ((t = getName(this.name, this.mode, this.ios, this.md)) ? this.getNamedUrl(t) : (t = getSrc(this.icon)) ? t : (t = getName(this.icon, this.mode, this.ios, this.md)) ? this.getNamedUrl(t) : null);
}
getNamedUrl(t) {
return `${this.resourcesUrl}svg/${t}.svg`;
}
hostData() {
const t = {
role: "img"
};
this.ariaLabel ||
// user did not provide a label
// come up with the label based on the icon name
getName(this.name, this.mode, this.ios, this.md) && (t["aria-label"] = this.name.replace("ios-", "").replace("md-", "").replace("-outline", "").replace(/\-/g, " "));
const e = {};
return this.size && (e[`icon-${this.size}`] = !0), Object.assign({}, t, {
class: e
});
}
render() {
return this.isServer ? t("div", {
class: "icon-inner"
}) : this.svgContent ? t("div", {
class: "icon-inner",
innerHTML: function(t, e) {
if (e) {
const i = t.createDocumentFragment(), s = t.createElement("div");
s.innerHTML = e, i.appendChild(s);
// must only have 1 root element
const n = s.querySelector("svg");
if (n && function isValid(t) {
if (1 === t.nodeType) {
if ("SCRIPT" === t.nodeName) {
return !1;
}
for (var e = 0; e < t.attributes.length; e++) {
let i = t.attributes[e].value;
if ("string" == typeof i && 0 === i.toLowerCase().indexOf("on")) {
return !1;
}
}
for (e = 0; e < t.childNodes.length; e++) {
if (!isValid(t.childNodes[e])) {
return !1;
}
}
}
return !0;
}(n)) {
return n.outerHTML;
}
}
return "";
}(this.doc, this.svgContent)
}) : t("div", {
class: "icon-inner"
});
}
static get is() {
return "ion-icon";
}
static get host() {
return {
theme: "icon"
};
}
static get properties() {
return {
ariaLabel: {
type: String,
attr: "aria-label"
},
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 "ion-icon{display:inline-block;font-size:inherit}ion-icon .icon-inner{height:1em;width:1em}ion-icon svg{fill:currentColor;stroke:currentColor}.icon-small .icon-inner{font-size:18px}.icon-large .icon-inner{font-size:32px}.icon-ios-primary svg{fill:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-ios-primary,var(--ion-color-primary,#3880ff))}.icon-ios-secondary svg{fill:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-ios-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-ios-tertiary svg{fill:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-ios-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-ios-success svg{fill:var(--ion-color-ios-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-ios-success,var(--ion-color-success,#10dc60))}.icon-ios-warning svg{fill:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-ios-warning,var(--ion-color-warning,#ffce00))}.icon-ios-danger svg{fill:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-ios-danger,var(--ion-color-danger,#f14141))}.icon-ios-light svg{fill:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-ios-light,var(--ion-color-light,#f4f5f8))}.icon-ios-medium svg{fill:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-ios-medium,var(--ion-color-medium,#989aa2))}.icon-ios-dark svg{fill:var(--ion-color-ios-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-ios-dark,var(--ion-color-dark,#222428))}.icon-md-primary svg{fill:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff));stroke:var(--ion-color-md-primary,var(--ion-color-primary,#3880ff))}.icon-md-secondary svg{fill:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8));stroke:var(--ion-color-md-secondary,var(--ion-color-secondary,#0cd1e8))}.icon-md-tertiary svg{fill:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942));stroke:var(--ion-color-md-tertiary,var(--ion-color-tertiary,#f4a942))}.icon-md-success svg{fill:var(--ion-color-md-success,var(--ion-color-success,#10dc60));stroke:var(--ion-color-md-success,var(--ion-color-success,#10dc60))}.icon-md-warning svg{fill:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00));stroke:var(--ion-color-md-warning,var(--ion-color-warning,#ffce00))}.icon-md-danger svg{fill:var(--ion-color-md-danger,var(--ion-color-danger,#f14141));stroke:var(--ion-color-md-danger,var(--ion-color-danger,#f14141))}.icon-md-light svg{fill:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8));stroke:var(--ion-color-md-light,var(--ion-color-light,#f4f5f8))}.icon-md-medium svg{fill:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2));stroke:var(--ion-color-md-medium,var(--ion-color-medium,#989aa2))}.icon-md-dark svg{fill:var(--ion-color-md-dark,var(--ion-color-dark,#222428));stroke:var(--ion-color-md-dark,var(--ion-color-dark,#222428))}";
}
}
const i = new Map();
function getName(t, e, i, s) {
return "string" != typeof t ? null : 0 === (t = t.trim().toLowerCase()).length ? null : (
// default to "md" if somehow the mode wasn't set
e = e || "md",
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
i && "ios" === e ? t = i.toLowerCase() : s && "md" === e ? t = s.toLowerCase() : t && !/^md-|^ios-|^logo-/.test(t) && (
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
t = e + "-" + t), "" !== t.replace(/[a-z]|-|\d/g, "") ? null : t);
}
function getSrc(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
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M346.5 240H272v-74.5c0-8.8-7.2-16-16-16s-16 7.2-16 16V240h-74.5c-8.8 0-16 6-16 16s7.5 16 16 16H240v74.5c0 9.5 7 16 16 16s16-7.2 16-16V272h74.5c8.8 0 16-7.2 16-16s-7.2-16-16-16z"/><path d="M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"/></svg>','ios-add-circle-outline');

Before

Width:  |  Height:  |  Size: 524 B

After

Width:  |  Height:  |  Size: 524 B

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm90.5 224H272v74.5c0 8.8-7.2 16-16 16-4.4 0-8.4-1.8-11.3-4.7-2.9-2.9-4.7-6.9-4.7-11.3V272h-74.5c-4.4 0-8.4-1.8-11.3-4.7-2.9-2.9-4.7-6.9-4.7-11.3 0-8.8 7.2-16 16-16H240v-74.5c0-8.8 7.2-16 16-16s16 7.2 16 16V240h74.5c8.8 0 16 7.2 16 16s-7.2 16-16 16z"/></svg>','ios-add-circle');

Before

Width:  |  Height:  |  Size: 411 B

After

Width:  |  Height:  |  Size: 411 B

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M368.5 240H272v-96.5c0-8.8-7.2-16-16-16s-16 7.2-16 16V240h-96.5c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7H240v96.5c0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7 8.8 0 16-7.2 16-16V272h96.5c8.8 0 16-7.2 16-16s-7.2-16-16-16z"/></svg>','ios-add');

Before

Width:  |  Height:  |  Size: 330 B

After

Width:  |  Height:  |  Size: 330 B

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M407.7 224c-3.4 0-14.8.1-18 .3l-64.9 1.7c-.7 0-1.4-.3-1.7-.9L225.8 79.4c-2.9-4.6-8.1-7.4-13.5-7.4h-23.7c-5.6 0-7.5 5.6-5.5 10.8l50.1 142.8c.5 1.3-.4 2.7-1.8 2.7L109 230.1c-2.6.1-5-1.1-6.6-3.1l-37-45c-3-3.9-7.7-6.1-12.6-6.1H36c-2.8 0-4.7 2.7-3.8 5.3l19.9 68.7c1.5 3.8 1.5 8.1 0 11.9l-19.9 68.7c-.9 2.6 1 5.3 3.8 5.3h16.7c4.9 0 9.6-2.3 12.6-6.1L103 284c1.6-2 4.1-3.2 6.6-3.1l121.7 2.7c1.4.1 2.3 1.4 1.8 2.7L183 429.2c-2 5.2-.1 10.8 5.5 10.8h23.7c5.5 0 10.6-2.8 13.5-7.4L323.1 287c.4-.6 1-.9 1.7-.9l64.9 1.7c3.3.2 14.6.3 18 .3 44.3 0 72.3-14.3 72.3-32S452.1 224 407.7 224z"/></svg>','ios-airplane');

Before

Width:  |  Height:  |  Size: 649 B

After

Width:  |  Height:  |  Size: 649 B

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M381.2 64.1c-1.3-.1-2.6-.1-3.9-.1h-.2c-16.2 0-32 5.4-44.6 15.1-1.6 1.3-2.6 3.2-2.7 5.2-.1 2 .8 4 2.3 5.4l89.8 80.5c1.3 1.1 2.9 1.8 4.6 1.8h.4c1.9-.1 3.6-1 4.8-2.4C440.9 159 448 150.8 448 133c.1-36.4-29.1-66.8-66.8-68.9zM64 133c0 17.8 7.1 26 16.3 36.6 1.2 1.4 2.9 2.3 4.8 2.4h.4c1.7 0 3.3-.6 4.6-1.8L180 89.7c1.5-1.4 2.4-3.3 2.3-5.4-.1-2-1-3.9-2.7-5.2C167 69.4 151.2 64 135 64h-.2c-1.3 0-2.6 0-3.9.1-37.7 2.1-67 32.5-66.9 68.9z"/><g><path d="M390 386c26.2-30.7 42-70.5 42-114 0-97.2-78.8-176-176-176S80 174.8 80 272c0 43.5 15.8 83.3 42 114l-34.7 35.5c-6.2 6.3-6 15.5.3 21.6 3.1 3 7.4 4.8 11.4 4.8 4.2 0 8.1-1.9 11.2-5.1l34.6-34.5c30.3 24.7 69 39.6 111.2 39.6s80.9-14.8 111.2-39.6l33.6 34.5c3.1 3.2 7.3 5.1 11.5 5.1 4 0 8.1-1.8 11.2-4.8 6.3-6.2 7.5-15.3 1.3-21.6L390 386zM270 274c0 7.7-6.3 14-14 14h-82c-7.7 0-14-6.3-14-14s6.3-14 14-14h68V158c0-7.7 6.3-14 14-14s14 6.3 14 14v116z"/></g></svg>','ios-alarm');

Before

Width:  |  Height:  |  Size: 961 B

After

Width:  |  Height:  |  Size: 961 B

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460.9 161H51.1C31.8 161 16 176.8 16 196.1V428c0 19.3 15.8 35.1 35.1 35.1H461c19.3 0 35.1-15.8 35.1-35.1V196.1c-.1-19.3-15.9-35.1-35.2-35.1zM434 133H78c-7.7 0-14-6.3-14-14s6.3-14 14-14h356c7.7 0 14 6.3 14 14s-6.3 14-14 14zM403.2 77H108.8c-7 0-12.8-5.8-12.8-12.8v-2.4c0-7 5.8-12.8 12.8-12.8h294.4c7 0 12.8 5.8 12.8 12.8v2.4c0 7-5.8 12.8-12.8 12.8z"/></svg>','ios-albums');

Before

Width:  |  Height:  |  Size: 426 B

After

Width:  |  Height:  |  Size: 426 B

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm17.2 109.6l-3.1 115.1c-.2 8.2-5.9 14.8-14.1 14.8s-13.9-6.6-14.1-14.8l-3.1-115.1c-.2-9.6 7.5-17.6 17.2-17.6 9.6 0 17.4 7.9 17.2 17.6zM256 354c-10.7 0-19.1-8.1-19.1-18.4s8.4-18.4 19.1-18.4c10.7 0 19.1 8.1 19.1 18.4S266.7 354 256 354z"/></svg>','ios-alert');

Before

Width:  |  Height:  |  Size: 395 B

After

Width:  |  Height:  |  Size: 395 B

@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M378.6 133.4C338.1 92.9 283.9 71 231.4 59.6L59.6 231.4C71 284 92.9 338.1 133.4 378.6c40.5 40.5 94.7 62.4 147.2 73.8l171.8-171.8c-11.4-52.5-33.3-106.7-73.8-147.2zM344.1 288l-19.2 19.2 14.8 14.8c4.9 4.9 4.9 12.7 0 17.6-4.9 4.9-12.7 4.9-17.6 0l-14.8-14.8-19.3 19.4c-2 2-4.5 3.4-7.3 3.9-4.2.7-8.4-.7-11.3-3.6-1.5-1.5-2.6-3.3-3.2-5.3-1.4-4.9-.1-9.7 3.2-13.1l19.5-19.5-15.6-15.6-19.3 19.3c-2.1 2.1-4.7 3.5-7.6 3.9-5.5.7-10.7-1.9-13.4-7-.3-.6-.6-1.2-.8-1.9-1.5-4.9-.2-9.8 3.2-13.2l19.5-19.5-15.5-15.6-19.3 19.3c-2.1 2.1-4.7 3.5-7.6 3.9-5.5.7-10.7-1.9-13.4-7-.3-.6-.6-1.2-.8-1.9-1.5-4.9-.2-9.8 3.2-13.2l19.5-19.5-15.5-15.6-19.3 19.3c-2.1 2.1-4.7 3.5-7.6 3.9-5.5.7-10.7-1.9-13.4-7-.3-.6-.6-1.2-.8-1.9-1.5-4.9-.2-9.8 3.2-13.2l19.5-19.5-14.8-14.8c-4.9-4.9-4.9-12.7 0-17.6 4.9-4.9 12.7-4.9 17.6 0l14.8 14.8 19.3-19.3c2.1-2.1 4.7-3.5 7.6-3.9 5.5-.7 10.7 1.9 13.4 7 .3.6.6 1.2.8 1.9 1.5 4.9.2 9.8-3.2 13.2l-19.5 19.5 15.6 15.6 19.3-19.3c2-2 4.5-3.4 7.3-3.9 4.2-.7 8.4.7 11.3 3.6 1.5 1.4 2.6 3.2 3.2 5.2 1.5 4.9.2 9.8-3.2 13.2L257 239.4l15.6 15.6 19.3-19.3c2.1-2.1 4.7-3.5 7.6-3.9 5.5-.7 10.7 1.9 13.4 7 .3.6.6 1.2.8 1.9 1.5 4.9.2 9.8-3.2 13.2L291 273.4l15.6 15.6 19.3-19.3c2.2-2.2 5-3.6 8-4 4.4-.5 8.6 1.2 11.4 4.6 4.1 5 3.5 13.1-1.2 17.7zM395.1 464c27.6 0 48.8-1.8 58.8-2.9 3.7-.4 6.7-3.4 7.1-7.1 2-18.9 6.8-77.6-3.2-143.7L310.3 457.9c31 4.7 60.4 6.1 84.8 6.1zM116.8 48C89.3 48 68 49.8 58 50.9c-3.7.4-6.7 3.4-7.1 7.1-2 18.9-6.8 77.6 3.2 143.6L201.6 54.1c-31-4.7-60.4-6.1-84.8-6.1z"/></svg>','ios-american-football');

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zM76 256c0-48.1 18.7-93.3 52.7-127.3S207.9 76 256 76c48.1 0 93.3 18.7 127.3 52.7 32.2 32.2 50.7 74.5 52.6 119.7-8.8-10.3-24.2-24-43.8-24-27.5 0-41.7 25.7-51 42.7-1.4 2.5-2.7 4.9-3.9 7-11.4 19.2-27.3 30-42.5 28.9-13.4-.9-24.8-11.2-32.2-28.8-9.2-22.1-29.1-45.8-52.9-49.2-11.3-1.6-28.1.8-44.7 21.4-3.2 4-6.9 9.4-11.1 15.6-10.4 15.5-26.2 38.8-38.1 40.8-17.3 2.8-30.9-7.5-36.4-12.3-2.2-11.2-3.3-22.8-3.3-34.5z"/></svg>','ios-analytics');

Before

Width:  |  Height:  |  Size: 566 B

After

Width:  |  Height:  |  Size: 566 B

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M250.2 371.4c-1.8 0-2.7 2.2-1.4 3.4l54.9 54.9L326 452c42.4-15.2 78.5-43.7 103.1-80.6H250.2zM167 334.6V444c27 12.8 57.1 20 89 20 14.1 0 27.9-1.4 41.2-4.1L170.4 333.2c-1.2-1.3-3.4-.4-3.4 1.4zM256 48c-13.9 0-27.4 1.4-40.5 4l126.8 126.8c1.3 1.3 3.4.4 3.4-1.4V68.3C318.6 55.3 288.2 48 256 48zM68.1 166.6C55.2 193.7 48 224 48 256c0 14.1 1.4 27.9 4.1 41.2L179.2 170c1.3-1.3.4-3.4-1.4-3.4H68.1zM186.7 59.9C144 75 107.7 103.6 83 140.7h179.7c1.8 0 2.7-2.2 1.4-3.4l-77.4-77.4zM167 220.6v70.7c0 1.1.4 2.1 1.2 2.8l50 50c.8.8 1.8 1.2 2.8 1.2h70.7c1.1 0 2.1-.4 2.8-1.2l50-50c.8-.8 1.2-1.8 1.2-2.8v-70.7c0-1.1-.4-2.1-1.2-2.8l-50-50c-.8-.8-1.8-1.2-2.8-1.2H221c-1.1 0-2.1.4-2.8 1.2l-50 50c-.7.8-1.2 1.8-1.2 2.8zM460 215.5L333.6 342c-1.3 1.3-.4 3.4 1.4 3.4h108.8c13-27.1 20.2-57.4 20.2-89.4 0-13.9-1.4-27.4-4-40.5zM371.8 83.2v179c0 1.8 2.2 2.7 3.4 1.4l76.9-76.9c-15-42.6-43.5-78.8-80.3-103.5zM60.1 325.9c15.2 42.6 43.9 78.8 81 103.4V249.8c0-1.8-2.2-2.7-3.4-1.4l-77.6 77.5z"/></svg>','ios-aperture');

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M434.8 137.6L285.4 69.5c-16.2-7.4-42.7-7.4-58.9 0L77.2 137.6c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.9 7.7 44.7 7.7 61.6 0l148-67.5c17.6-8 17.6-21.1 0-29.1zM225.2 375.2l-99.8-45.5c-4.2-1.9-9.1-1.9-13.3 0l-34.9 15.9c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.9 7.7 44.7 7.7 61.6 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-34.9-15.9c-4.2-1.9-9.1-1.9-13.3 0l-99.8 45.5c-16.9 7.7-44.7 7.7-61.6 0z"/><path d="M434.8 241.6l-31.7-14.4c-4.2-1.9-9-1.9-13.2 0l-108 48.9c-15.3 5.2-36.6 5.2-51.9 0l-108-48.9c-4.2-1.9-9-1.9-13.2 0l-31.7 14.4c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.9 7.7 44.7 7.7 61.6 0l148-67.5c17.7-8 17.7-21.1.1-29.1z"/></svg>','ios-apps');

Before

Width:  |  Height:  |  Size: 685 B

After

Width:  |  Height:  |  Size: 685 B

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm-78.9 296.9c-2.7 4.6-7.5 7.1-12.5 7.1-2.5 0-5-.6-7.3-2-6.9-4-9.2-12.8-5.2-19.7l14.2-23.6c1.5-2.5 4.1-4 7-4h2.1c10.3 0 17.5 6.2 19.6 12.2l-17.9 30zm120.2-46.4l-93 .1h-61.8c-8.2 0-14.8-6.8-14.4-15 .3-7.8 7.1-13.7 14.9-13.7h44.8l53.1-90.4-17.2-29.3c-3.9-6.7-2.2-15.5 4.4-19.7 7-4.5 16.2-2.2 20.3 4.8l9.2 15.7h.1l9.2-15.7c4.1-7 13.4-9.3 20.3-4.8 6.6 4.2 8.3 13 4.4 19.7l-17.2 29.3-16.7 28.5-36.3 61.9v.1h53.5c6.7 0 15.1 3.6 18.5 9.4l.3.6c3 5.1 4.7 8.6 4.7 13.7-.1 2.8-1.1 4.8-1.1 4.8zm72.2.1h-25.2v.1l18.4 31.3c4 6.8 2.1 15.8-4.8 20-2.3 1.4-4.9 2.1-7.5 2.1-5 0-9.8-2.6-12.5-7.1l-27.2-46.3-16.9-28.8-21.8-37.3c-6.4-10.9-6.7-24.5-.6-35.3 4.3-7.6 7.6-9.6 7.6-9.6l48.5 82.1h41.7c7.8 0 14.5 6 14.9 13.7.3 8.3-6.3 15.1-14.6 15.1z"/></svg>','ios-appstore');

Before

Width:  |  Height:  |  Size: 883 B

After

Width:  |  Height:  |  Size: 883 B

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460 120H52c-2.2 0-4-1.8-4-4V96c0-17.7 14.3-32 32-32h352c17.7 0 32 14.3 32 32v20c0 2.2-1.8 4-4 4zM440 146H72c-4.4 0-8 3.6-8 8v262c0 17.6 14.4 32 32 32h320c17.6 0 32-14.4 32-32V154c0-4.4-3.6-8-8-8zM306 288h-99.6c-7.1 0-13.4-5.2-14.3-12.3-1-8.5 5.6-15.7 13.9-15.7h99.6c7.1 0 13.4 5.2 14.3 12.3 1 8.4-5.6 15.7-13.9 15.7z"/></svg>','ios-archive');

Before

Width:  |  Height:  |  Size: 397 B

After

Width:  |  Height:  |  Size: 397 B

-1
View File
@@ -1 +0,0 @@
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z"/></svg>','ios-arrow-back');

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