Comparing version 7.2.2-dev.11698847812.196aa17e to 7.2.2-dev.11699018299.154342d5
@@ -224,2 +224,8 @@ import { proxyCustomElement, HTMLElement, Build, h, Host } from '@stencil/core/internal/client'; | ||
"isVisible": [32] | ||
}, undefined, { | ||
"name": ["loadIcon"], | ||
"src": ["loadIcon"], | ||
"icon": ["loadIcon"], | ||
"ios": ["loadIcon"], | ||
"md": ["loadIcon"] | ||
}]); | ||
@@ -226,0 +232,0 @@ const getIonMode = () => (Build.isBrowser && typeof document !== 'undefined' && document.documentElement.getAttribute('mode')) || 'md'; |
@@ -76,13 +76,3 @@ import { getAssetPath } from '@stencil/core/internal/client'; | ||
} | ||
try { | ||
return getAssetPath(`svg/${iconName}.svg`); | ||
} | ||
catch (e) { | ||
/** | ||
* In the custom elements build version of ionicons, referencing an icon | ||
* by name will throw an invalid URL error because the asset path is not defined. | ||
* This catches that error and logs something that is more developer-friendly. | ||
*/ | ||
console.warn(`[Ionicons Warning]: Could not load icon with name "${name}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`); | ||
} | ||
return getAssetPath(`svg/${iconName}.svg`); | ||
}; | ||
@@ -89,0 +79,0 @@ const getName = (iconName, icon, mode, ios, md) => { |
@@ -5,4 +5,4 @@ 'use strict'; | ||
const utils = require('./utils-74ba1484.js'); | ||
require('./index-b34d10f5.js'); | ||
const utils = require('./utils-6db742ab.js'); | ||
require('./index-2bf98abb.js'); | ||
@@ -9,0 +9,0 @@ |
@@ -5,4 +5,4 @@ 'use strict'; | ||
const index = require('./index-b34d10f5.js'); | ||
const utils = require('./utils-74ba1484.js'); | ||
const index = require('./index-2bf98abb.js'); | ||
const utils = require('./utils-6db742ab.js'); | ||
@@ -9,0 +9,0 @@ const validateContent = (svgContent) => { |
@@ -5,6 +5,6 @@ 'use strict'; | ||
const index = require('./index-b34d10f5.js'); | ||
const index = require('./index-2bf98abb.js'); | ||
/* | ||
Stencil Client Patch Browser v4.1.0 | MIT Licensed | https://stenciljs.com | ||
Stencil Client Patch Browser v4.7.0-dev.1699016641.733d6c5 | MIT Licensed | https://stenciljs.com | ||
*/ | ||
@@ -21,5 +21,5 @@ const patchBrowser = () => { | ||
patchBrowser().then(options => { | ||
return index.bootstrapLazy([["ion-icon.cjs",[[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]]], options); | ||
return index.bootstrapLazy([["ion-icon.cjs",[[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]]], options); | ||
}); | ||
exports.setNonce = index.setNonce; |
@@ -5,7 +5,7 @@ 'use strict'; | ||
const index = require('./index-b34d10f5.js'); | ||
const index = require('./index-2bf98abb.js'); | ||
const defineCustomElements = (win, options) => { | ||
if (typeof window === 'undefined') return undefined; | ||
return index.bootstrapLazy([["ion-icon.cjs",[[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]]], options); | ||
return index.bootstrapLazy([["ion-icon.cjs",[[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]]], options); | ||
}; | ||
@@ -12,0 +12,0 @@ |
@@ -7,4 +7,4 @@ { | ||
"name": "@stencil/core", | ||
"version": "4.1.0", | ||
"typescriptVersion": "5.0.4" | ||
"version": "4.7.0-dev.1699016641.733d6c5", | ||
"typescriptVersion": "5.2.2" | ||
}, | ||
@@ -11,0 +11,0 @@ "collections": [], |
@@ -75,13 +75,3 @@ import { getAssetPath } from "@stencil/core"; | ||
} | ||
try { | ||
return getAssetPath(`svg/${iconName}.svg`); | ||
} | ||
catch (e) { | ||
/** | ||
* In the custom elements build version of ionicons, referencing an icon | ||
* by name will throw an invalid URL error because the asset path is not defined. | ||
* This catches that error and logs something that is more developer-friendly. | ||
*/ | ||
console.warn(`[Ionicons Warning]: Could not load icon with name "${name}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`); | ||
} | ||
return getAssetPath(`svg/${iconName}.svg`); | ||
}; | ||
@@ -88,0 +78,0 @@ export const getName = (iconName, icon, mode, ios, md) => { |
@@ -1,1 +0,1 @@ | ||
export{a as addIcons}from"./utils-32165a97.js";import"./index-c73a3717.js"; | ||
export{a as addIcons}from"./utils-3fbf8457.js";import"./index-26252ffe.js"; |
@@ -1,1 +0,1 @@ | ||
import{r as registerInstance,h,H as Host,a as getElement}from"./index-c73a3717.js";import{i as isStr,b as inheritAttributes,g as getUrl,c as getName,d as isRTL}from"./utils-32165a97.js";var validateContent=function(t){var e=document.createElement("div");e.innerHTML=t;for(var o=e.childNodes.length-1;o>=0;o--){if(e.childNodes[o].nodeName.toLowerCase()!=="svg"){e.removeChild(e.childNodes[o])}}var n=e.firstElementChild;if(n&&n.nodeName.toLowerCase()==="svg"){var i=n.getAttribute("class")||"";n.setAttribute("class",(i+" s-ion-icon").trim());if(isValid(n)){return e.innerHTML}}return""};var isValid=function(t){if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(var e=0;e<t.attributes.length;e++){var o=t.attributes[e].name;if(isStr(o)&&o.toLowerCase().indexOf("on")===0){return false}}for(var e=0;e<t.childNodes.length;e++){if(!isValid(t.childNodes[e])){return false}}}return true};var isSvgDataUrl=function(t){return t.startsWith("data:image/svg+xml")};var isEncodedDataUrl=function(t){return t.indexOf(";utf8,")!==-1};var ioniconContent=new Map;var requests=new Map;var parser;var getSvgContent=function(t,e){var o=requests.get(t);if(!o){if(typeof fetch!=="undefined"&&typeof document!=="undefined"){if(isSvgDataUrl(t)&&isEncodedDataUrl(t)){if(!parser){parser=new DOMParser}var n=parser.parseFromString(t,"text/html");var i=n.querySelector("svg");if(i){ioniconContent.set(t,i.outerHTML)}return Promise.resolve()}else{o=fetch(t).then((function(o){if(o.ok){return o.text().then((function(o){if(o&&e!==false){o=validateContent(o)}ioniconContent.set(t,o||"")}))}ioniconContent.set(t,"")}));requests.set(t,o)}}else{ioniconContent.set(t,"");return Promise.resolve()}}return o};var iconCss=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}";var Icon=function(){function t(t){registerInstance(this,t);this.iconName=null;this.inheritedAttributes={};this.didLoadIcon=false;this.svgContent=undefined;this.isVisible=false;this.mode=getIonMode();this.color=undefined;this.ios=undefined;this.md=undefined;this.flipRtl=undefined;this.name=undefined;this.src=undefined;this.icon=undefined;this.size=undefined;this.lazy=false;this.sanitize=true}t.prototype.componentWillLoad=function(){this.inheritedAttributes=inheritAttributes(this.el,["aria-label"])};t.prototype.connectedCallback=function(){var t=this;this.waitUntilVisible(this.el,"50px",(function(){t.isVisible=true;t.loadIcon()}))};t.prototype.componentDidLoad=function(){if(!this.didLoadIcon){this.loadIcon()}};t.prototype.disconnectedCallback=function(){if(this.io){this.io.disconnect();this.io=undefined}};t.prototype.waitUntilVisible=function(t,e,o){var n=this;if(this.lazy&&typeof window!=="undefined"&&window.IntersectionObserver){var i=this.io=new window.IntersectionObserver((function(t){if(t[0].isIntersecting){i.disconnect();n.io=undefined;o()}}),{rootMargin:e});i.observe(t)}else{o()}};t.prototype.loadIcon=function(){var t=this;if(this.isVisible){var e=getUrl(this);if(e){if(ioniconContent.has(e)){this.svgContent=ioniconContent.get(e)}else{getSvgContent(e,this.sanitize).then((function(){return t.svgContent=ioniconContent.get(e)}))}this.didLoadIcon=true}}this.iconName=getName(this.name,this.icon,this.mode,this.ios,this.md)};t.prototype.render=function(){var t,e;var o=this,n=o.flipRtl,i=o.iconName,r=o.inheritedAttributes,s=o.el;var a=this.mode||"md";var c=i?(i.includes("arrow")||i.includes("chevron"))&&n!==false:false;var l=n||c;return h(Host,Object.assign({role:"img",class:Object.assign(Object.assign((t={},t[a]=true,t),createColorClasses(this.color)),(e={},e["icon-".concat(this.size)]=!!this.size,e["flip-rtl"]=l,e["icon-rtl"]=l&&isRTL(s),e))},r),this.svgContent?h("div",{class:"icon-inner",innerHTML:this.svgContent}):h("div",{class:"icon-inner"}))};Object.defineProperty(t,"assetsDirs",{get:function(){return["svg"]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}},enumerable:false,configurable:true});return t}();var getIonMode=function(){return typeof document!=="undefined"&&document.documentElement.getAttribute("mode")||"md"};var createColorClasses=function(t){var e;return t?(e={"ion-color":true},e["ion-color-".concat(t)]=true,e):null};Icon.style=iconCss;export{Icon as ion_icon}; | ||
import{r as registerInstance,h,H as Host,a as getElement}from"./index-26252ffe.js";import{i as isStr,b as inheritAttributes,g as getUrl,c as getName,d as isRTL}from"./utils-3fbf8457.js";var validateContent=function(n){var o=document.createElement("div");o.innerHTML=n;for(var i=o.childNodes.length-1;i>=0;i--){if(o.childNodes[i].nodeName.toLowerCase()!=="svg"){o.removeChild(o.childNodes[i])}}var t=o.firstElementChild;if(t&&t.nodeName.toLowerCase()==="svg"){var r=t.getAttribute("class")||"";t.setAttribute("class",(r+" s-ion-icon").trim());if(isValid(t)){return o.innerHTML}}return""};var isValid=function(n){if(n.nodeType===1){if(n.nodeName.toLowerCase()==="script"){return false}for(var o=0;o<n.attributes.length;o++){var i=n.attributes[o].name;if(isStr(i)&&i.toLowerCase().indexOf("on")===0){return false}}for(var o=0;o<n.childNodes.length;o++){if(!isValid(n.childNodes[o])){return false}}}return true};var isSvgDataUrl=function(n){return n.startsWith("data:image/svg+xml")};var isEncodedDataUrl=function(n){return n.indexOf(";utf8,")!==-1};var ioniconContent=new Map;var requests=new Map;var parser;var getSvgContent=function(n,o){var i=requests.get(n);if(!i){if(typeof fetch!=="undefined"&&typeof document!=="undefined"){if(isSvgDataUrl(n)&&isEncodedDataUrl(n)){if(!parser){parser=new DOMParser}var t=parser.parseFromString(n,"text/html");var r=t.querySelector("svg");if(r){ioniconContent.set(n,r.outerHTML)}return Promise.resolve()}else{i=fetch(n).then((function(i){if(i.ok){return i.text().then((function(i){if(i&&o!==false){i=validateContent(i)}ioniconContent.set(n,i||"")}))}ioniconContent.set(n,"")}));requests.set(n,i)}}else{ioniconContent.set(n,"");return Promise.resolve()}}return i};var iconCss=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}";var Icon=function(){function n(n){registerInstance(this,n);this.iconName=null;this.inheritedAttributes={};this.didLoadIcon=false;this.svgContent=undefined;this.isVisible=false;this.mode=getIonMode();this.color=undefined;this.ios=undefined;this.md=undefined;this.flipRtl=undefined;this.name=undefined;this.src=undefined;this.icon=undefined;this.size=undefined;this.lazy=false;this.sanitize=true}n.prototype.componentWillLoad=function(){this.inheritedAttributes=inheritAttributes(this.el,["aria-label"])};n.prototype.connectedCallback=function(){var n=this;this.waitUntilVisible(this.el,"50px",(function(){n.isVisible=true;n.loadIcon()}))};n.prototype.componentDidLoad=function(){if(!this.didLoadIcon){this.loadIcon()}};n.prototype.disconnectedCallback=function(){if(this.io){this.io.disconnect();this.io=undefined}};n.prototype.waitUntilVisible=function(n,o,i){var t=this;if(this.lazy&&typeof window!=="undefined"&&window.IntersectionObserver){var r=this.io=new window.IntersectionObserver((function(n){if(n[0].isIntersecting){r.disconnect();t.io=undefined;i()}}),{rootMargin:o});r.observe(n)}else{i()}};n.prototype.loadIcon=function(){var n=this;if(this.isVisible){var o=getUrl(this);if(o){if(ioniconContent.has(o)){this.svgContent=ioniconContent.get(o)}else{getSvgContent(o,this.sanitize).then((function(){return n.svgContent=ioniconContent.get(o)}))}this.didLoadIcon=true}}this.iconName=getName(this.name,this.icon,this.mode,this.ios,this.md)};n.prototype.render=function(){var n,o;var i=this,t=i.flipRtl,r=i.iconName,e=i.inheritedAttributes,s=i.el;var a=this.mode||"md";var c=r?(r.includes("arrow")||r.includes("chevron"))&&t!==false:false;var l=t||c;return h(Host,Object.assign({role:"img",class:Object.assign(Object.assign((n={},n[a]=true,n),createColorClasses(this.color)),(o={},o["icon-".concat(this.size)]=!!this.size,o["flip-rtl"]=l,o["icon-rtl"]=l&&isRTL(s),o))},e),this.svgContent?h("div",{class:"icon-inner",innerHTML:this.svgContent}):h("div",{class:"icon-inner"}))};Object.defineProperty(n,"assetsDirs",{get:function(){return["svg"]},enumerable:false,configurable:true});Object.defineProperty(n.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}},enumerable:false,configurable:true});return n}();var getIonMode=function(){return typeof document!=="undefined"&&document.documentElement.getAttribute("mode")||"md"};var createColorClasses=function(n){var o;return n?(o={"ion-color":true},o["ion-color-".concat(n)]=true,o):null};Icon.style=iconCss;export{Icon as ion_icon}; |
@@ -1,1 +0,1 @@ | ||
import{p as promiseResolve,b as bootstrapLazy}from"./index-c73a3717.js";export{s as setNonce}from"./index-c73a3717.js";var patchBrowser=function(){var o=import.meta.url;var r={};if(o!==""){r.resourcesUrl=new URL(".",o).href}return promiseResolve(r)};patchBrowser().then((function(o){return bootstrapLazy([["ion-icon",[[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]}]]]],o)})); | ||
import{p as promiseResolve,b as bootstrapLazy}from"./index-26252ffe.js";export{s as setNonce}from"./index-26252ffe.js";var patchBrowser=function(){var o=import.meta.url;var n={};if(o!==""){n.resourcesUrl=new URL(".",o).href}return promiseResolve(n)};patchBrowser().then((function(o){return bootstrapLazy([["ion-icon",[[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]},null,{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}]]]],o)})); |
@@ -1,1 +0,1 @@ | ||
import{b as bootstrapLazy}from"./index-c73a3717.js";export{s as setNonce}from"./index-c73a3717.js";var defineCustomElements=function(e,n){if(typeof window==="undefined")return undefined;return bootstrapLazy([["ion-icon",[[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]}]]]],n)};export{defineCustomElements}; | ||
import{b as bootstrapLazy}from"./index-26252ffe.js";export{s as setNonce}from"./index-26252ffe.js";var defineCustomElements=function(o,n){if(typeof window==="undefined")return undefined;return bootstrapLazy([["ion-icon",[[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]},null,{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}]]]],n)};export{defineCustomElements}; |
@@ -1,2 +0,2 @@ | ||
export { a as addIcons } from './utils-32165a97.js'; | ||
import './index-c73a3717.js'; | ||
export { a as addIcons } from './utils-3fbf8457.js'; | ||
import './index-26252ffe.js'; |
@@ -1,3 +0,3 @@ | ||
import { r as registerInstance, h, H as Host, a as getElement } from './index-c73a3717.js'; | ||
import { i as isStr, b as inheritAttributes, g as getUrl, c as getName, d as isRTL } from './utils-32165a97.js'; | ||
import { r as registerInstance, h, H as Host, a as getElement } from './index-26252ffe.js'; | ||
import { i as isStr, b as inheritAttributes, g as getUrl, c as getName, d as isRTL } from './utils-3fbf8457.js'; | ||
@@ -4,0 +4,0 @@ const validateContent = (svgContent) => { |
@@ -1,6 +0,6 @@ | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-c73a3717.js'; | ||
export { s as setNonce } from './index-c73a3717.js'; | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-26252ffe.js'; | ||
export { s as setNonce } from './index-26252ffe.js'; | ||
/* | ||
Stencil Client Patch Browser v4.1.0 | MIT Licensed | https://stenciljs.com | ||
Stencil Client Patch Browser v4.7.0-dev.1699016641.733d6c5 | MIT Licensed | https://stenciljs.com | ||
*/ | ||
@@ -17,3 +17,3 @@ const patchBrowser = () => { | ||
patchBrowser().then(options => { | ||
return bootstrapLazy([["ion-icon",[[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]]], options); | ||
return bootstrapLazy([["ion-icon",[[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]]], options); | ||
}); |
@@ -1,9 +0,9 @@ | ||
import { b as bootstrapLazy } from './index-c73a3717.js'; | ||
export { s as setNonce } from './index-c73a3717.js'; | ||
import { b as bootstrapLazy } from './index-26252ffe.js'; | ||
export { s as setNonce } from './index-26252ffe.js'; | ||
const defineCustomElements = (win, options) => { | ||
if (typeof window === 'undefined') return undefined; | ||
return bootstrapLazy([["ion-icon",[[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]]], options); | ||
return bootstrapLazy([["ion-icon",[[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]]], options); | ||
}; | ||
export { defineCustomElements }; |
@@ -1,1 +0,1 @@ | ||
export{a as addIcons}from"./p-3994110b.js";import"./p-c20d7e9f.js"; | ||
export{a as addIcons}from"./p-f62aca19.js";import"./p-fd4b3356.js"; |
@@ -1,1 +0,1 @@ | ||
import{p as o,b as e}from"./p-c20d7e9f.js";export{s as setNonce}from"./p-c20d7e9f.js";(()=>{const s=import.meta.url,e={};return""!==s&&(e.resourcesUrl=new URL(".",s).href),o(e)})().then((o=>e([["p-cd8483a5",[[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]}]]]],o))); | ||
import{p as o,b as n}from"./p-fd4b3356.js";export{s as setNonce}from"./p-fd4b3356.js";(()=>{const n=import.meta.url,s={};return""!==n&&(s.resourcesUrl=new URL(".",n).href),o(s)})().then((o=>n([["p-86b3a5cb",[[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]},null,{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}]]]],o))); |
@@ -6,3 +6,3 @@ import { Icon } from './icon'; | ||
}) => void; | ||
export declare const getUrl: (i: Icon) => string | null | undefined; | ||
export declare const getUrl: (i: Icon) => string | null; | ||
export declare const getName: (iconName: string | undefined, icon: string | undefined, mode: string | undefined, ios: string | undefined, md: string | undefined) => string | null; | ||
@@ -9,0 +9,0 @@ export declare const getSrc: (src: string | undefined) => string | null; |
@@ -7,2 +7,12 @@ declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void; | ||
/** | ||
* When set to `true` this component will be form-associated. See | ||
* https://stenciljs.com/docs/next/form-associated documentation on how to | ||
* build form-associated Stencil components that integrate into forms like | ||
* native browser elements such as `<input>` and `<textarea>`. | ||
* | ||
* The {@link AttachInternals} decorator allows for access to the | ||
* `ElementInternals` object to modify the associated form. | ||
*/ | ||
formAssociated?: boolean; | ||
/** | ||
* Tag name of the web component. Ideally, the tag name must be globally unique, | ||
@@ -66,3 +76,3 @@ * so it's recommended to choose an unique prefix for all your components within the same collection. | ||
* Stencil uses different heuristics to determine the default name of the attribute, | ||
* but using this property, you can override the default behaviour. | ||
* but using this property, you can override the default behavior. | ||
*/ | ||
@@ -112,2 +122,5 @@ attribute?: string | null; | ||
} | ||
export interface AttachInternalsDecorator { | ||
(): PropertyDecorator; | ||
} | ||
export interface ListenDecorator { | ||
@@ -134,3 +147,3 @@ (eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>; | ||
* | ||
* Using the `passive` option can be used to change the default behaviour. | ||
* Using the `passive` option can be used to change the default behavior. | ||
* Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information. | ||
@@ -183,2 +196,8 @@ */ | ||
/** | ||
* If the `formAssociated` option is set in options passed to the | ||
* `@Component()` decorator then this decorator may be used to get access to the | ||
* `ElementInternals` instance associated with the component. | ||
*/ | ||
export declare const AttachInternals: AttachInternalsDecorator; | ||
/** | ||
* The `Listen()` decorator is for listening DOM events, including the ones | ||
@@ -479,3 +498,3 @@ * dispatched from `@Events()`. | ||
* Since the Stencil runtime uses a different interface for children it is | ||
* not recommendeded to read the children directly, and is preferable to use | ||
* not recommended to read the children directly, and is preferable to use | ||
* this utility to, for instance, perform a side effect for each child. | ||
@@ -1124,2 +1143,3 @@ */ | ||
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> { | ||
height?: number; | ||
media?: string; | ||
@@ -1130,2 +1150,3 @@ sizes?: string; | ||
type?: string; | ||
width?: number; | ||
} | ||
@@ -1132,0 +1153,0 @@ interface StyleHTMLAttributes<T> extends HTMLAttributes<T> { |
@@ -1,2 +0,2 @@ | ||
/* Ionicons v7.2.2-dev.11698847812.196aa17e, Types */ | ||
/* Ionicons v7.2.2-dev.11699018299.154342d5, Types */ | ||
@@ -3,0 +3,0 @@ export declare var accessibility: string; |
{ | ||
"name": "ionicons/icons", | ||
"version": "7.2.2-dev.11698847812.196aa17e", | ||
"version": "7.2.2-dev.11699018299.154342d5", | ||
"module": "index.mjs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
{ | ||
"name": "ionicons", | ||
"version": "7.2.2-dev.11698847812.196aa17e", | ||
"version": "7.2.2-dev.11699018299.154342d5", | ||
"description": "Premium icons for Ionic.", | ||
@@ -26,3 +26,3 @@ "files": [ | ||
"dependencies": { | ||
"@stencil/core": "^4.0.3" | ||
"@stencil/core": "^4.7.0-dev.1699016641.733d6c5" | ||
}, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
6221263
28587