@pine-ds/icons 3.4.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/pds-icon.js +36 -1
- package/components/pds-icon.js.map +1 -1
- package/dist/cheatsheet.html +43 -25
- package/dist/cjs/{index-17212f65.js → index-30789db3.js} +1 -6
- package/dist/{esm/index-d1a605fc.js.map → cjs/index-30789db3.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pds-icon.cjs.entry.js +2 -2
- package/dist/cjs/pds-icons.cjs.js +1 -1
- package/dist/cjs/{utils-66fa4942.js → utils-868de787.js} +36 -3
- package/dist/cjs/utils-868de787.js.map +1 -0
- package/dist/collection/components/pds-icon/assetPath.js +36 -0
- package/dist/collection/components/pds-icon/assetPath.js.map +1 -0
- package/dist/collection/components/pds-icon/svg/advanced.svg +1 -0
- package/dist/collection/components/pds-icon/svg/assessment.svg +1 -1
- package/dist/collection/components/pds-icon/svg/caret-up.svg +1 -1
- package/dist/collection/components/pds-icon/svg/cursor-pointer.svg +1 -0
- package/dist/collection/components/pds-icon/svg/cursor.svg +1 -0
- package/dist/collection/components/pds-icon/svg/custom-field.svg +1 -1
- package/dist/collection/components/pds-icon/svg/download.svg +1 -1
- package/dist/collection/components/pds-icon/svg/drawer-collapse.svg +1 -0
- package/dist/collection/components/pds-icon/svg/drawer-expand.svg +1 -0
- package/dist/collection/components/pds-icon/svg/duplicate.svg +1 -1
- package/dist/collection/components/pds-icon/svg/form.svg +1 -1
- package/dist/collection/components/pds-icon/svg/launch.svg +1 -1
- package/dist/collection/components/pds-icon/svg/left-small.svg +1 -1
- package/dist/collection/components/pds-icon/svg/logo-klarna.svg +1 -0
- package/dist/collection/components/pds-icon/svg/mail-open.svg +1 -0
- package/dist/collection/components/pds-icon/svg/microphone-off.svg +1 -1
- package/dist/collection/components/pds-icon/svg/move-left.svg +1 -1
- package/dist/collection/components/pds-icon/svg/newsletter-2.svg +1 -0
- package/dist/collection/components/pds-icon/svg/pause-circle.svg +1 -1
- package/dist/collection/components/pds-icon/svg/phone-toolbar-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/play.svg +1 -1
- package/dist/collection/components/pds-icon/svg/plug.svg +1 -1
- package/dist/collection/components/pds-icon/svg/preview-off.svg +1 -1
- package/dist/collection/components/pds-icon/svg/preview-on.svg +1 -1
- package/dist/collection/components/pds-icon/svg/refresh.svg +1 -1
- package/dist/collection/components/pds-icon/svg/remove.svg +1 -1
- package/dist/collection/components/pds-icon/svg/subscriptions.svg +1 -1
- package/dist/collection/components/pds-icon/svg/sync.svg +1 -1
- package/dist/collection/components/pds-icon/svg/tablet-landscape.svg +1 -1
- package/dist/collection/components/pds-icon/svg/wrench.svg +1 -1
- package/dist/collection/components/pds-icon/utils.js +1 -1
- package/dist/collection/components/pds-icon/utils.js.map +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/{index-d1a605fc.js → index-68ccb33c.js} +2 -6
- package/dist/esm/index-68ccb33c.js.map +1 -0
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/pds-icon.entry.js +2 -2
- package/dist/esm/pds-icons.js +2 -2
- package/dist/esm/{utils-c7e6be67.js → utils-529a5e56.js} +35 -2
- package/dist/esm/utils-529a5e56.js.map +1 -0
- package/dist/pds-icons/index.esm.js +1 -1
- package/dist/pds-icons/p-194a0f36.js +3 -0
- package/dist/pds-icons/{p-19d7058a.js.map → p-194a0f36.js.map} +1 -1
- package/dist/pds-icons/{p-c34805d3.entry.js → p-982dfca2.entry.js} +2 -2
- package/dist/pds-icons/p-f954ed14.js +2 -0
- package/dist/pds-icons/p-f954ed14.js.map +1 -0
- package/dist/pds-icons/pds-icons.esm.js +1 -1
- package/dist/pds-icons/svg/advanced.svg +1 -0
- package/dist/pds-icons/svg/assessment.svg +1 -1
- package/dist/pds-icons/svg/caret-up.svg +1 -1
- package/dist/pds-icons/svg/cursor-pointer.svg +1 -0
- package/dist/pds-icons/svg/cursor.svg +1 -0
- package/dist/pds-icons/svg/custom-field.svg +1 -1
- package/dist/pds-icons/svg/download.svg +1 -1
- package/dist/pds-icons/svg/drawer-collapse.svg +1 -0
- package/dist/pds-icons/svg/drawer-expand.svg +1 -0
- package/dist/pds-icons/svg/duplicate.svg +1 -1
- package/dist/pds-icons/svg/form.svg +1 -1
- package/dist/pds-icons/svg/launch.svg +1 -1
- package/dist/pds-icons/svg/left-small.svg +1 -1
- package/dist/pds-icons/svg/logo-klarna.svg +1 -0
- package/dist/pds-icons/svg/mail-open.svg +1 -0
- package/dist/pds-icons/svg/microphone-off.svg +1 -1
- package/dist/pds-icons/svg/move-left.svg +1 -1
- package/dist/pds-icons/svg/newsletter-2.svg +1 -0
- package/dist/pds-icons/svg/pause-circle.svg +1 -1
- package/dist/pds-icons/svg/phone-toolbar-filled.svg +1 -0
- package/dist/pds-icons/svg/play.svg +1 -1
- package/dist/pds-icons/svg/plug.svg +1 -1
- package/dist/pds-icons/svg/preview-off.svg +1 -1
- package/dist/pds-icons/svg/preview-on.svg +1 -1
- package/dist/pds-icons/svg/refresh.svg +1 -1
- package/dist/pds-icons/svg/remove.svg +1 -1
- package/dist/pds-icons/svg/subscriptions.svg +1 -1
- package/dist/pds-icons/svg/sync.svg +1 -1
- package/dist/pds-icons/svg/tablet-landscape.svg +1 -1
- package/dist/pds-icons/svg/wrench.svg +1 -1
- package/dist/pds-icons.json +161 -1
- package/dist/pds-icons.symbols.svg +31 -22
- package/dist/svg/advanced.svg +1 -0
- package/dist/svg/assessment.svg +1 -1
- package/dist/svg/caret-up.svg +1 -1
- package/dist/svg/cursor-pointer.svg +1 -0
- package/dist/svg/cursor.svg +1 -0
- package/dist/svg/custom-field.svg +1 -1
- package/dist/svg/download.svg +1 -1
- package/dist/svg/drawer-collapse.svg +1 -0
- package/dist/svg/drawer-expand.svg +1 -0
- package/dist/svg/duplicate.svg +1 -1
- package/dist/svg/form.svg +1 -1
- package/dist/svg/launch.svg +1 -1
- package/dist/svg/left-small.svg +1 -1
- package/dist/svg/logo-klarna.svg +1 -0
- package/dist/svg/mail-open.svg +1 -0
- package/dist/svg/microphone-off.svg +1 -1
- package/dist/svg/move-left.svg +1 -1
- package/dist/svg/newsletter-2.svg +1 -0
- package/dist/svg/pause-circle.svg +1 -1
- package/dist/svg/phone-toolbar-filled.svg +1 -0
- package/dist/svg/play.svg +1 -1
- package/dist/svg/plug.svg +1 -1
- package/dist/svg/preview-off.svg +1 -1
- package/dist/svg/preview-on.svg +1 -1
- package/dist/svg/refresh.svg +1 -1
- package/dist/svg/remove.svg +1 -1
- package/dist/svg/subscriptions.svg +1 -1
- package/dist/svg/sync.svg +1 -1
- package/dist/svg/tablet-landscape.svg +1 -1
- package/dist/svg/wrench.svg +1 -1
- package/dist/types/components/pds-icon/assetPath.d.ts +16 -0
- package/icons/index.d.ts +10 -1
- package/icons/index.js +31 -22
- package/icons/index.mjs +31 -22
- package/icons/package.json +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-17212f65.js.map +0 -1
- package/dist/cjs/utils-66fa4942.js.map +0 -1
- package/dist/esm/utils-c7e6be67.js.map +0 -1
- package/dist/pds-icons/p-19d7058a.js +0 -3
- package/dist/pds-icons/p-7ef171e4.js +0 -2
- package/dist/pds-icons/p-7ef171e4.js.map +0 -1
- /package/dist/pds-icons/{p-c34805d3.entry.js.map → p-982dfca2.entry.js.map} +0 -0
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.cjs.js","mappings":"
|
|
1
|
+
{"file":"index.cjs.js","mappings":";;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-30789db3.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const utils = require('./utils-
|
|
5
|
+
const index = require('./index-30789db3.js');
|
|
6
|
+
const utils = require('./utils-868de787.js');
|
|
7
7
|
|
|
8
8
|
const validateContent = (svgContent) => {
|
|
9
9
|
const div = document.createElement('div');
|
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
let missingAssetPathWarning = false;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Reads the component asset path config from meta tag or a global variable.
|
|
7
|
+
* This is a temporary workaround until these issues have been addressed:
|
|
8
|
+
*
|
|
9
|
+
* https://github.com/ionic-team/stencil/issues/2826/
|
|
10
|
+
* https://github.com/ionic-team/stencil/issues/3470
|
|
11
|
+
* https://github.com/ionic-team/stencil-ds-output-targets/issues/186
|
|
12
|
+
*/
|
|
13
|
+
const getAssetPath = (path) => {
|
|
14
|
+
var _a;
|
|
15
|
+
const metaPineAssetPath = (_a = document.head.querySelector('meta[data-pine-asset-path]')) === null || _a === void 0 ? void 0 : _a.dataset.pineAssetPath;
|
|
16
|
+
// Get the asset path from the window object if available
|
|
17
|
+
const windowAssetPath = window.__PINE_ASSET_PATH__;
|
|
18
|
+
// Set the CDN Asset path using the latest version
|
|
19
|
+
const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';
|
|
20
|
+
const assetBasePath = metaPineAssetPath || windowAssetPath || cdnAssetPath || '/';
|
|
21
|
+
// Display a warning if the assets are fetched from the CDN.
|
|
22
|
+
if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {
|
|
23
|
+
missingAssetPathWarning = true;
|
|
24
|
+
console.warn(`
|
|
25
|
+
Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation:
|
|
26
|
+
`);
|
|
27
|
+
}
|
|
28
|
+
let assetPath = path;
|
|
29
|
+
if (path.startsWith('./')) {
|
|
30
|
+
assetPath = path.substring(2);
|
|
31
|
+
}
|
|
32
|
+
if (!assetBasePath.endsWith('/')) {
|
|
33
|
+
assetPath = '/' + assetPath;
|
|
34
|
+
}
|
|
35
|
+
return assetBasePath + assetPath;
|
|
36
|
+
};
|
|
4
37
|
|
|
5
38
|
let CACHED_MAP;
|
|
6
39
|
const addIcons = (icons) => {
|
|
@@ -41,7 +74,7 @@ const getNamedUrl = (iconName) => {
|
|
|
41
74
|
if (url) {
|
|
42
75
|
return url;
|
|
43
76
|
}
|
|
44
|
-
return
|
|
77
|
+
return getAssetPath(`svg/${iconName}.svg`);
|
|
45
78
|
};
|
|
46
79
|
const getSrc = (src) => {
|
|
47
80
|
if (isStr(src)) {
|
|
@@ -102,4 +135,4 @@ exports.getUrl = getUrl;
|
|
|
102
135
|
exports.inheritAttributes = inheritAttributes;
|
|
103
136
|
exports.isStr = isStr;
|
|
104
137
|
|
|
105
|
-
//# sourceMappingURL=utils-
|
|
138
|
+
//# sourceMappingURL=utils-868de787.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"utils-868de787.js","mappings":";;AAEA,IAAI,uBAAuB,GAAG,KAAK,CAAC;AAQpC;;;;;;;;;AASO,MAAM,YAAY,GAAG,CAAC,IAAY;;IACvC,MAAM,iBAAiB,GAAG,MAAA,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAkB,4BAA4B,CAAC,0CAAE,OAAO,CAAC,aAAa,CAAC;;IAG5H,MAAM,eAAe,GAAG,MAAM,CAAC,mBAAmB,CAAC;;IAGnD,MAAM,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ACZ;IAED,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,IAAI,GAAG,EAAE;QACP,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC;KACzB;IAED,IAAI,OAAO,CAAC,IAAI,EAAE;QAChB,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAE3B,IAAG,GAAG,EAAE;YACN,OAAO,GAAG,CAAC;SACZ;KACF;IAED,OAAO,IAAI,CAAC;AACd,EAAE;AAGK,MAAM,KAAK,GAAG,CAAC,GAAW,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;MAC/D,KAAK,GAAG,CAAC,GAAQ,KAAoB,OAAO,GAAG,KAAK,SAAS;AACnE,MAAM,OAAO,GAAG,CAAC,GAAW,KAAK,GAAG,CAAC,WAAW,EAAE,CAAC;AAE1D;;;;;;;;;;MAUc,iBAAiB,GAAG,CAAC,EAAe,EAAE,aAAuB,EAAE;IAC3E,MAAM,eAAe,GAAyB,EAAE,CAAC;IAEjD,UAAU,CAAC,OAAO,CAAC,IAAI;QACrB,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YACzB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACpC,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;aAC/C;YACD,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SAC1B;KACF,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB;;;;;;;;","names":[],"sources":["src/components/pds-icon/assetPath.ts","src/components/pds-icon/utils.ts"],"sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation:\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n","import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n"],"version":3}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Build } from "@stencil/core";
|
|
2
|
+
let missingAssetPathWarning = false;
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* Reads the component asset path config from meta tag or a global variable.
|
|
6
|
+
* This is a temporary workaround until these issues have been addressed:
|
|
7
|
+
*
|
|
8
|
+
* https://github.com/ionic-team/stencil/issues/2826/
|
|
9
|
+
* https://github.com/ionic-team/stencil/issues/3470
|
|
10
|
+
* https://github.com/ionic-team/stencil-ds-output-targets/issues/186
|
|
11
|
+
*/
|
|
12
|
+
export const getAssetPath = (path) => {
|
|
13
|
+
var _a;
|
|
14
|
+
const metaPineAssetPath = (_a = document.head.querySelector('meta[data-pine-asset-path]')) === null || _a === void 0 ? void 0 : _a.dataset.pineAssetPath;
|
|
15
|
+
// Get the asset path from the window object if available
|
|
16
|
+
const windowAssetPath = window.__PINE_ASSET_PATH__;
|
|
17
|
+
// Set the CDN Asset path using the latest version
|
|
18
|
+
const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';
|
|
19
|
+
const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/';
|
|
20
|
+
// Display a warning if the assets are fetched from the CDN.
|
|
21
|
+
if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {
|
|
22
|
+
missingAssetPathWarning = true;
|
|
23
|
+
console.warn(`
|
|
24
|
+
Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation:
|
|
25
|
+
`);
|
|
26
|
+
}
|
|
27
|
+
let assetPath = path;
|
|
28
|
+
if (path.startsWith('./')) {
|
|
29
|
+
assetPath = path.substring(2);
|
|
30
|
+
}
|
|
31
|
+
if (!assetBasePath.endsWith('/')) {
|
|
32
|
+
assetPath = '/' + assetPath;
|
|
33
|
+
}
|
|
34
|
+
return assetBasePath + assetPath;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=assetPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assetPath.js","sourceRoot":"","sources":["../../../src/components/pds-icon/assetPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,IAAI,uBAAuB,GAAG,KAAK,CAAC;AAQpC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,EAAE;;IAC3C,MAAM,iBAAiB,GAAG,MAAA,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAkB,4BAA4B,CAAC,0CAAE,OAAO,CAAC,aAAa,CAAC;IAE5H,yDAAyD;IACzD,MAAM,eAAe,GAAG,MAAM,CAAC,mBAAmB,CAAC;IAEnD,kDAAkD;IAClD,MAAM,YAAY,GAAG,6DAA6D,CAAC;IAEnF,MAAM,aAAa,GAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,IAAI,eAAe,IAAI,YAAY,IAAI,GAAG,CAAA;IAExH,4DAA4D;IAC5D,IAAK,aAAa,CAAC,UAAU,CAAC,+BAA+B,CAAC,IAAI,CAAC,uBAAuB,EAAG;QAC3F,uBAAuB,GAAG,IAAI,CAAC;QAC/B,OAAO,CAAC,IAAI,CAAC;;KAEZ,CAAC,CAAA;KACH;IAED,IAAI,SAAS,GAAG,IAAI,CAAC;IAErB,IAAK,IAAI,CAAC,UAAU,CAAE,IAAI,CAAC,EAAG;QAC5B,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAC/B;IAED,IAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAG;QAClC,SAAS,GAAG,GAAG,GAAG,SAAS,CAAC;KAC7B;IAED,OAAO,aAAa,GAAG,SAAS,CAAC;AACnC,CAAC,CAAA","sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation:\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><g clip-path="url(#a)"><path fill-rule="evenodd" d="M13.3.7H2.7c-1.1 0-2 .9-2 2v10.7c0 1.1.9 2 2 2h10.7c1.1 0 2-.9 2-2V2.7c-.1-1.1-1-2-2.1-2Zm.7 12.6c0 .4-.3.7-.7.7H2.7c-.4 0-.7-.3-.7-.7V2.7c0-.4.3-.7.7-.7h10.7c.3 0 .6.3.6.7v10.6Zm-2.7-4H10v3.3h1.3V9.3Zm0-6v1.5c.8.3 1.4 1 1.4 1.9 0 1.1-.9 2-2 2s-2-.9-2-2c0-.9.5-1.6 1.3-1.9V3.3h1.3ZM10 6.7c0 .3.3.6.7.6.3 0 .6-.3.7-.6 0-.4-.3-.7-.7-.7-.4 0-.7.3-.7.7ZM6 3.3H4.7v3.3H6V3.3Zm-2.7 6c0-1.1.9-2 2-2s2 .9 2 2c0 .9-.5 1.6-1.3 1.9v1.5H4.6v-1.5c-.7-.3-1.3-1-1.3-1.9Zm1.4 0c0 .4.3.7.6.7.4 0 .7-.3.7-.7 0-.3-.4-.6-.7-.6-.3 0-.6.3-.6.6Z"/></g><defs><clipPath id="a"><path d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M12.52 2.416a.667.667 0 1 0-1.04-.832l-7.535 9.418-2.14-2.14a.667.667 0 0 0-.943.943l2.667 2.666a.667.667 0 0 0 .992-.055l8-10Zm.813 2.25a.667.667 0
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M12.52 2.416a.667.667 0 1 0-1.04-.832l-7.535 9.418-2.14-2.14a.667.667 0 0 0-.943.943l2.667 2.666a.667.667 0 0 0 .992-.055l8-10Zm.813 2.25a.667.667 0 0 0 0 1.334h2a.667.667 0 1 0 0-1.333h-2Zm-3.333 4c0-.368.299-.666.667-.666h4.666a.667.667 0 1 1 0 1.333h-4.666A.667.667 0 0 1 10 8.667Zm-2 2.667a.667.667 0 0 0 0 1.334h7.333a.667.667 0 1 0 0-1.334H8Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M7.529 3.529c.26-.26.682-.26.942 0l6.667 6.666a.667.667 0
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M7.529 3.529c.26-.26.682-.26.942 0l6.667 6.666a.667.667 0 1 1-.943.943L8 4.943l-6.195 6.195a.667.667 0 0 1-.943-.943L7.529 3.53Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M12.66 5.678 7.8 4.799V2.094A1.997 1.997 0 0 0 4.5.482a1.997 1.997 0 0 0-.696 1.542v4.662h-.658A1.997 1.997 0 0 0 1.15 8.683v1.926a4.662 4.662 0 0 0 .998 2.905L4.145 16h9.543l1.119-7.297a2.665 2.665 0 0 0-2.147-3.025Zm-.11 8.984H4.794l-1.587-1.996a3.354 3.354 0 0 1-.73-2.077V8.683a.669.669 0 0 1 .67-.67h.658v1.997h1.338V2.024a.669.669 0 0 1 .779-.659.719.719 0 0 1 .549.729v3.813l5.99 1.078a1.328 1.328 0 0 1 1.068 1.518l-.979 6.16Zm-4.083-5.98H7.14v4.663h1.327V8.683Zm1.338 0h1.328v4.663H9.805V8.683Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><g clip-path="url(#a)"><path fill-rule="evenodd" d="M15.46 4.65.5.5l4.15 15 2.36-5.55 5.11 5.11 2.94-2.94-5.11-5.11 5.51-2.36Zm-2.28 7.47-1.06 1.06-5.56-5.56-1.64 3.83-2.51-9 9 2.51-3.79 1.6 5.56 5.56Z"/></g><defs><clipPath id="a"><path d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M7.681.667c.243 0 .465.147.572.38l1.822 3.947 4.075.633c.24.037.44.217.514.464a.715.715 0 0 1-.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M7.681.667c.243 0 .465.147.572.38l1.822 3.947 4.075.633c.24.037.44.217.514.464a.715.715 0 0 1-.16.699L12.59 8.783a.609.609 0 0 1-.902-.012.716.716 0 0 1 .012-.964l.988-1.03-3.128-.485a.642.642 0 0 1-.48-.373L7.68 2.889l-1.398 3.03a.642.642 0 0 1-.48.373l-3.128.486 2.263 2.359c.15.156.219.382.183.603l-.534 3.331 1.522-.855c.312-.175.697-.047.861.286.164.333.044.746-.268.92l-2.665 1.499a.603.603 0 0 1-.672-.052.705.705 0 0 1-.253-.667l.696-4.34L.859 6.79a.715.715 0 0 1-.161-.7.651.651 0 0 1 .515-.463l4.074-.633L7.11 1.047a.635.635 0 0 1 .572-.38ZM8.32 14.65c0-.376.285-.681.638-.681h5.739c.352 0 .637.305.637.681 0 .377-.285.682-.637.682h-5.74c-.352 0-.637-.305-.637-.682Zm.638-4.09c-.353 0-.638.304-.638.68 0 .377.285.683.638.683h5.739c.352 0 .637-.306.637-.682 0-.377-.285-.682-.637-.682h-5.74Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M7.733 11.933c-.066 0-.133-.066-.2-.133l-4-4a.644.644 0 0 1 0-.933.644.644 0 0 1 .934 0l2.866 2.866v-8.4c0-.4.267-.666.667-.666s.667.266.667.666v8.4l2.866-2.866a.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M7.733 11.933c-.066 0-.133-.066-.2-.133l-4-4a.644.644 0 0 1 0-.933.644.644 0 0 1 .934 0l2.866 2.866v-8.4c0-.4.267-.666.667-.666s.667.266.667.666v8.4l2.866-2.866a.644.644 0 0 1 .934 0 .644.644 0 0 1 0 .933l-4 4c-.034.033-.067.05-.1.067a.348.348 0 0 0-.1.066C8.2 12 8.067 12 8 12s-.2 0-.267-.067Z"/><path d="M14 11.333c0-.4.267-.666.667-.666s.666.266.666.666v4c0 .4-.266.667-.666.667H1.333c-.4 0-.666-.267-.666-.667v-4c0-.4.266-.666.666-.666s.667.266.667.666v3.334h12v-3.334Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M2 1h12a2 2 0 0 1 2 2v9.34a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2Zm-.47 11.807A.67.67 0 0 0 2 13h7.33V2.34H2a.67.67 0 0 0-.67.66v9.34a.67.67 0 0 0 .2.467Zm12.94 0a.67.67 0 0 0 .2-.467V3a.67.67 0 0 0-.67-.66h-3.33V13H14a.67.67 0 0 0 .47-.193ZM4.6 5.54l.95-.94 3.06 3.07-3.06 3.06-.95-.94 1.46-1.46H2.33V7h3.73L4.6 5.54Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M2 1h12a2 2 0 0 1 2 2v9.34a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2Zm-.47 11.807A.67.67 0 0 0 2 13h3.33V2.34H2a.67.67 0 0 0-.67.66v9.34a.67.67 0 0 0 .2.467Zm12.94 0a.67.67 0 0 0 .2-.467V3a.67.67 0 0 0-.67-.66H6.67V13H14a.67.67 0 0 0 .47-.193ZM10.45 4.6l.95.94L9.94 7h3.73v1.33H9.94l1.46 1.46-.95.94-3.06-3.06 3.06-3.07Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M1.333.667C1.333.298 1.632 0 2 0h6.229a.664.664 0 0 1 .476.207l2.338 2.46H14c.368 0 .667.298.667.666v12A.667.667 0 0 1 14 16H4.667A.667.667 0 0 1 4 15.333v-2H2a.667.667 0 0 1-.667-.666v-12ZM4.671 12H2.667V1.333h4.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M1.333.667C1.333.298 1.632 0 2 0h6.229a.664.664 0 0 1 .476.207l2.338 2.46H14c.368 0 .667.298.667.666v12A.667.667 0 0 1 14 16H4.667A.667.667 0 0 1 4 15.333v-2H2a.667.667 0 0 1-.667-.666v-12ZM4.671 12H2.667V1.333h4.888V3.94c0 .369.299.667.667.667h2.445V12H4.67Zm.662 1.333v1.334h8V4H12v8.667a.667.667 0 0 1-.667.666h-6ZM4 6.667C4 6.298 4.298 6 4.667 6h4a.667.667 0 0 1 0 1.333h-4A.667.667 0 0 1 4 6.667Zm.667 2a.667.667 0 1 0 0 1.333h4a.667.667 0 0 0 0-1.333h-4Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M4.667 0A.667.667 0 0 0 4 .667v4c0 .368.298.666.667.666h2a.667.667 0 0 0 .666-.666.666.666 0 1 1 1.334 0c0 .368.298.666.666.666h2A.667.667 0 0 0 12 4.667v-4A.667.667 0 0 0 11.333 0H4.667Zm1.447 4h-.78V1.333h5.333V4h-.78a2 2 0 0 0-3.773 0ZM.667 2c0-.368.298-.667.666-.667h1.334a.667.667 0 0 1 0 1.334H2v12h12v-12h-.667a.667.667 0
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M4.667 0A.667.667 0 0 0 4 .667v4c0 .368.298.666.667.666h2a.667.667 0 0 0 .666-.666.666.666 0 1 1 1.334 0c0 .368.298.666.666.666h2A.667.667 0 0 0 12 4.667v-4A.667.667 0 0 0 11.333 0H4.667Zm1.447 4h-.78V1.333h5.333V4h-.78a2 2 0 0 0-3.773 0ZM.667 2c0-.368.298-.667.666-.667h1.334a.667.667 0 0 1 0 1.334H2v12h12v-12h-.667a.667.667 0 0 1 0-1.334h1.334c.368 0 .666.299.666.667v13.333a.667.667 0 0 1-.666.667H1.333a.667.667 0 0 1-.666-.667V2Zm4 5.333a.667.667 0 0 0 0 1.334h6.666a.667.667 0 1 0 0-1.334H4.667Zm0 3.334a.667.667 0 1 0 0 1.333h6.666a.667.667 0 0 0 0-1.333H4.667Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M15.138.862a.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M15.138.862a.664.664 0 0 1 .195.461v5.344a.667.667 0 0 1-1.333 0V2.943L7.805 9.138a.667.667 0 1 1-.943-.943L13.057 2H9.333a.667.667 0 0 1 0-1.333h5.333c.171 0 .342.065.472.195ZM1.333 2a.667.667 0 0 0-.666.667v12c0 .368.298.666.666.666h12a.667.667 0 0 0 .667-.666V10a.667.667 0 0 0-1.333 0v4H2V3.333h4A.667.667 0 1 0 6 2H1.333Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M10.406 3.594a.889.889 0 0 1 0 1.257L7.48 7.778l2.927 2.927a.889.889 0
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M10.406 3.594a.889.889 0 0 1 0 1.257L7.48 7.778l2.927 2.927a.889.889 0 0 1-1.257 1.257L5.594 8.406a.889.889 0 0 1 0-1.257l3.555-3.555a.889.889 0 0 1 1.257 0Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M14.2 11.4c-1 0-1.8.8-1.8 1.8s.8 1.8 1.8 1.8 1.8-.8 1.8-1.8-.8-1.8-1.8-1.8ZM10.9 1.1h-3c0 2.5-1.2 4.9-3.2 6.4l-1.2.8 4.7 6.4h3.9L7.7 8.8c2.1-2 3.2-4.8 3.2-7.7ZM3.1 1.1H0v13.7h3.1V1.1Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><g clip-path="url(#a)"><path fill-rule="evenodd" d="M8 0 .08 5.76V14a2 2 0 0 0 2 2h11.86a2 2 0 0 0 2-2V5.76L8 0Zm0 1.63 6.14 4.47L8 10.56 1.86 6.1 8 1.63Zm5.94 13.05H2.06A.661.661 0 0 1 1.4 14V7.39L8 12.2l6.6-4.81V14a.66.66 0 0 1-.66.68Z"/></g><defs><clipPath id="a"><path d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="m6.893 10.053 7.58-7.58a.67.67 0 0 0-.946-.946l-1.614 1.62A3.96 3.96 0 0 0 8.053 0h-.126A4 4 0 0 0 4 4v2.667A3.94 3.94 0 0 0 5.38 9.68l-.953.947a5.334 5.334 0 0 1-1.76-3.96.667.667 0 0 0-1.334 0 6.667 6.667 0 0 0 2.147 4.906l-1.953 1.954a.666.666 0 0 0 0 .946.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="m6.893 10.053 7.58-7.58a.67.67 0 0 0-.946-.946l-1.614 1.62A3.96 3.96 0 0 0 8.053 0h-.126A4 4 0 0 0 4 4v2.667A3.94 3.94 0 0 0 5.38 9.68l-.953.947a5.334 5.334 0 0 1-1.76-3.96.667.667 0 0 0-1.334 0 6.667 6.667 0 0 0 2.147 4.906l-1.953 1.954a.666.666 0 0 0 0 .946.667.667 0 0 0 .946 0l4.414-4.42h.006Zm-1.56-3.386V4a2.667 2.667 0 0 1 1.62-2.453A2.853 2.853 0 0 1 8 1.333a2.667 2.667 0 0 1 2.447 1.627c.138.33.213.683.22 1.04v.393l-4.34 4.34a2.593 2.593 0 0 1-.994-2.066Zm6 .353a.667.667 0 0 0-.826.447A2.58 2.58 0 0 1 8.773 9.2a.667.667 0 0 0 .22 1.307c.064.007.13.007.194 0a3.922 3.922 0 0 0 2.666-2.667.665.665 0 0 0-.52-.82Zm2.196-.825a.667.667 0 0 1 1.138.472 6.667 6.667 0 0 1-6 6.666v1.334h2.666a.667.667 0 1 1 0 1.333H4.667a.666.666 0 1 1 0-1.333h2.666v-1.38a7.126 7.126 0 0 1-1.126-.2.669.669 0 0 1 .36-1.287c.466.133.948.2 1.433.2a5.333 5.333 0 0 0 5.333-5.333c0-.177.07-.347.196-.472Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M.667 8c0-.368.298-.667.666-.667h10a.667.667 0
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M.667 8c0-.368.298-.667.666-.667h10a.667.667 0 1 1 0 1.334h-10A.667.667 0 0 1 .667 8Z"/><path fill-rule="evenodd" d="M5.805 3.529c.26.26.26.682 0 .942L2.276 8l3.529 3.529a.667.667 0 1 1-.943.942l-4-4a.667.667 0 0 1 0-.942l4-4c.26-.26.682-.26.943 0ZM14.667.667c.368 0 .666.298.666.666v13.334a.667.667 0 1 1-1.333 0V1.333c0-.368.299-.666.667-.666Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><g clip-path="url(#a)"><path fill-rule="evenodd" d="M2.67 14V0H16v14a2 2 0 0 1-2 2H2a2 2 0 0 1-1.41-.59A2 2 0 0 1 0 14V8h2v1.33h-.67V14a.63.63 0 0 0 .2.47.65.65 0 0 0 .94 0 .63.63 0 0 0 .2-.47Zm11.8.47a.68.68 0 0 0 .2-.47V1.33H4V14c0 .229-.04.456-.12.67H14a.68.68 0 0 0 .47-.2ZM13.33 3.33h-8v4h8v-4ZM12 6H6.67V4.67H12V6ZM5.33 8.67h8V10h-8V8.67Zm0 2.66h8v1.33h-8v-1.33Z"/></g><defs><clipPath id="a"><path d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M6.125 4.875c.345 0 .625.28.625.625v5a.625.625 0 1 1-1.25 0v-5c0-.345.28-.625.625-.625ZM9.875 4.875c.345 0 .625.28.625.625v5a.625.625 0
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M6.125 4.875c.345 0 .625.28.625.625v5a.625.625 0 1 1-1.25 0v-5c0-.345.28-.625.625-.625ZM9.875 4.875c.345 0 .625.28.625.625v5a.625.625 0 0 1-1.25 0v-5c0-.345.28-.625.625-.625Z"/><path fill-rule="evenodd" d="M8 1.75a6.25 6.25 0 1 0 0 12.5 6.25 6.25 0 0 0 0-12.5ZM.5 8a7.5 7.5 0 1 1 15 0 7.5 7.5 0 0 1-15 0Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M4 0a2 2 0 0 0-1.41.59A2 2 0 0 0 2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-.59-1.41A2 2 0 0 0 12 0H4Zm8 12H4v1.33h8V12Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M14.37 7.445 4.37.78a.667.667 0 0 0-1.037.554v13.334a.667.667 0 0 0 1.037.554l10-6.666a.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M14.37 7.445 4.37.78a.667.667 0 0 0-1.037.554v13.334a.667.667 0 0 0 1.037.554l10-6.666a.667.667 0 0 0 0-1.11Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M12.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M12.984 2.073a4 4 0 0 0-5.146.432L6.367 3.976l5.657 5.657 1.471-1.47a4 4 0 0 0 .432-5.147l1.683-1.683-.943-.942-1.683 1.682Zm-5.65 7.65L6.275 8.668 7.61 7.333l-.942-.942-1.334 1.333-1.357-1.357-1.471 1.47a4 4 0 0 0-.432 5.147L.39 14.667l.942.943 1.683-1.683a4 4 0 0 0 5.146-.432l1.471-1.471-1.357-1.357L9.61 9.333l-.942-.943-1.334 1.334Zm-.943.944L5.333 9.609l-.942-.942-.415-.415-.529.529a2.667 2.667 0 1 0 3.772 3.772l.529-.529-.415-.414-.942-.943Zm2.39-7.22a2.667 2.667 0 0 1 3.772 3.772l-.529.529-3.772-3.772.529-.529Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M15.247 7.667c-.067-.12-1.067-1.827-2.76-3.214l1.986-1.986a.664.664 0 1 0-.94-.94l-2.146 2.146C10.407 3.087 9.273 2.667 8 2.667c-4.34 0-7.127 4.8-7.247 5a.65.65 0 0 0 0 .66c.067.12 1.067 1.826 2.76 3.213l-1.986 1.987c-.26.26-.26.68 0 .94.133.133.3.2.473.2s.34-.067.473-.194l2.147-2.146c.973.586 2.107 1.006 3.38 1.006 4.34 0 7.127-4.8 7.247-5a.696.696 0 0 0 0-.666ZM2.12 8C2.793 6.987 5.02 4 8 4c.873 0 1.68.26 2.407.653l-1.06 1.06c-.4-.233-.854-.38-1.347-.38A2.666 2.666 0 0 0 5.333 8c0 .493.147.947.38 1.347l-1.246 1.246C3.313 9.673 2.487 8.547 2.12 8Zm7.213 0c0 .733-.6 1.333-1.333 1.333-.12 0-.233-.02-.34-.046L9.287 7.66c.026.107.046.22.046.34ZM6.667 8c0-.733.6-1.333 1.333-1.333.12 0 .233.02.34.046L6.713 8.34A1.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M15.247 7.667c-.067-.12-1.067-1.827-2.76-3.214l1.986-1.986a.664.664 0 1 0-.94-.94l-2.146 2.146C10.407 3.087 9.273 2.667 8 2.667c-4.34 0-7.127 4.8-7.247 5a.65.65 0 0 0 0 .66c.067.12 1.067 1.826 2.76 3.213l-1.986 1.987c-.26.26-.26.68 0 .94.133.133.3.2.473.2s.34-.067.473-.194l2.147-2.146c.973.586 2.107 1.006 3.38 1.006 4.34 0 7.127-4.8 7.247-5a.696.696 0 0 0 0-.666ZM2.12 8C2.793 6.987 5.02 4 8 4c.873 0 1.68.26 2.407.653l-1.06 1.06c-.4-.233-.854-.38-1.347-.38A2.666 2.666 0 0 0 5.333 8c0 .493.147.947.38 1.347l-1.246 1.246C3.313 9.673 2.487 8.547 2.12 8Zm7.213 0c0 .733-.6 1.333-1.333 1.333-.12 0-.233-.02-.34-.046L9.287 7.66c.026.107.046.22.046.34ZM6.667 8c0-.733.6-1.333 1.333-1.333.12 0 .233.02.34.046L6.713 8.34A1.395 1.395 0 0 1 6.667 8ZM8 12c-.873 0-1.68-.26-2.407-.653l1.06-1.06c.4.233.854.38 1.347.38A2.666 2.666 0 0 0 10.667 8c0-.493-.147-.947-.38-1.347l1.246-1.246c1.154.92 1.98 2.046 2.34 2.593-.666 1.013-2.893 4-5.873 4Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M1.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M1.586 7.818A13.343 13.343 0 0 0 3.242 9.85C4.462 11.07 6.104 12.182 8 12.182s3.538-1.112 4.759-2.333a13.347 13.347 0 0 0 1.656-2.03 13.347 13.347 0 0 0-1.656-2.031C11.539 4.565 9.896 3.454 8 3.454c-1.896 0-3.538 1.111-4.758 2.332a13.343 13.343 0 0 0-1.656 2.031Zm13.687 0 .631-.361-.001-.002-.003-.005-.008-.014a13.978 13.978 0 0 0-.138-.225 14.797 14.797 0 0 0-1.967-2.452C12.462 3.433 10.467 2 8 2 5.532 2 3.538 3.434 2.213 4.758A14.799 14.799 0 0 0 .246 7.211a8.8 8.8 0 0 0-.138.225L.1 7.45l-.003.005v.001s-.001.001.63.362l-.631-.36a.727.727 0 0 0 0 .721l.631-.36-.631.36.001.003.003.004.008.014a5.357 5.357 0 0 0 .138.226 14.799 14.799 0 0 0 1.967 2.452c1.325 1.325 3.32 2.758 5.787 2.758 2.468 0 4.462-1.433 5.787-2.758a14.797 14.797 0 0 0 1.967-2.452 8.904 8.904 0 0 0 .138-.226l.008-.014.003-.004V8.18l-.63-.362Zm0 0 .631.361a.728.728 0 0 0 0-.722l-.631.361Z"/><path fill-rule="evenodd" d="M8 6.364a1.455 1.455 0 1 0 0 2.909 1.455 1.455 0 0 0 0-2.91ZM5.091 7.818a2.91 2.91 0 1 1 5.818 0 2.91 2.91 0 0 1-5.818 0Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M8 2a6 6 0 1 0 5.501 8.4.667.667 0 0 1 1.222.534 7.334 7.334 0 1 1-2.405-8.862l1.21-1.21a.667.667 0 0 1 1.13.362l.666 4a.667.667 0 0 1-.767.767l-4-.667a.667.667 0 0 1-.362-1.129l1.166-1.166A5.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M8 2a6 6 0 1 0 5.501 8.4.667.667 0 0 1 1.222.534 7.334 7.334 0 1 1-2.405-8.862l1.21-1.21a.667.667 0 0 1 1.13.362l.666 4a.667.667 0 0 1-.767.767l-4-.667a.667.667 0 0 1-.362-1.129l1.166-1.166A5.971 5.971 0 0 0 8 2Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M13.138 3.805a.667.667 0
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M13.138 3.805a.667.667 0 0 0-.943-.943L8 7.057 3.805 2.862a.667.667 0 1 0-.943.943L7.057 8l-4.195 4.195a.667.667 0 1 0 .943.943L8 8.943l4.195 4.195a.667.667 0 0 0 .943-.943L8.943 8l4.195-4.195Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M10.4 9.249a1.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M10.4 9.249a1.514 1.514 0 0 1-.55 1.222c-.445.337-.982.53-1.54.552v.98h-.655v-.961c-.702 0-1.398-.14-2.046-.411V9.369c.32.153.656.274 1 .363.341.097.691.16 1.045.187V8.436l-.32-.124a3.571 3.571 0 0 1-1.342-.81A1.555 1.555 0 0 1 5.6 6.417a1.414 1.414 0 0 1 .543-1.14c.44-.326.966-.515 1.513-.541v-.734h.655v.713c.682.02 1.353.17 1.98.44l-.45 1.119a5.179 5.179 0 0 0-1.533-.373v1.41c.462.163.907.371 1.327.622.235.146.432.344.578.579.128.224.192.478.187.736ZM7.04 6.418a.452.452 0 0 0 .146.347c.14.118.3.212.471.28V5.92c-.411.06-.617.226-.617.497ZM8.96 9.321a.43.43 0 0 0-.162-.34 2.115 2.115 0 0 0-.488-.287v1.19c.433-.073.65-.26.65-.563Z"/><path fill-rule="evenodd" d="M2.06.096c.366.046.625.379.579.744l-.361 2.87 2.83-.788a.667.667 0 1 1 .357 1.285L1.67 5.264a.667.667 0 0 1-.84-.725L1.316.674a.667.667 0 0 1 .745-.578Z"/><path fill-rule="evenodd" d="M10.342 1.758a6.667 6.667 0 0 0-8.259 3.17A.667.667 0 1 1 .9 4.315a8 8 0 1 1-.9 3.69.667.667 0 1 1 1.333 0 6.667 6.667 0 1 0 9.01-6.246Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M14.623.473c.365.05.62.385.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M14.623.473c.365.05.62.385.571.75l-.533 3.933a.667.667 0 0 1-.75.571l-4-.533a.667.667 0 1 1 .177-1.321l2.567.342A5.926 5.926 0 0 0 8 2C4.702 2 2 4.702 2 8A.667.667 0 1 1 .667 8C.667 3.965 3.965.667 8 .667c2.228 0 4.24.981 5.576 2.567l.297-2.19a.667.667 0 0 1 .75-.571ZM15.333 8A.667.667 0 0 0 14 8c0 3.299-2.701 6-6 6a5.926 5.926 0 0 1-4.655-2.215l2.567.342a.667.667 0 0 0 .176-1.321l-4-.533a.667.667 0 0 0-.749.57l-.533 3.934a.667.667 0 0 0 1.321.18l.297-2.192A7.264 7.264 0 0 0 8 15.333c4.035 0 7.333-3.298 7.333-7.333Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M14.667 13.333A.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M14.667 13.333A.666.666 0 0 1 14 14H2a.667.667 0 0 1-.667-.667V2.667A.667.667 0 0 1 2 2h12a.666.666 0 0 1 .667.667v10.666Zm.747 1.415A2 2 0 0 0 16 13.332V2.667a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v10.666a2 2 0 0 0 2 2h12a2 2 0 0 0 1.414-.585Z"/><path d="M12 8a.667.667 0 1 1 1.333 0A.667.667 0 0 1 12 8Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M11.228 0a6.024 6.024 0 0 1 1.694.23l1.094.312-2.387 2.377 1.455 1.448L15.44 2.02l.334 1.034a4.6 4.6 0 0 1 .08 2.55l-.003.011-.003.01a4.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M11.228 0a6.024 6.024 0 0 1 1.694.23l1.094.312-2.387 2.377 1.455 1.448L15.44 2.02l.334 1.034a4.6 4.6 0 0 1 .08 2.55l-.003.011-.003.01a4.466 4.466 0 0 1-3.384 3.129l-.02.004-.018.003a5.165 5.165 0 0 1-1.786-.05l-5.549 6.24a2.862 2.862 0 0 1-4.28.166l-.002-.003a2.951 2.951 0 0 1 .177-4.232l.003-.002 6.253-5.512a3.482 3.482 0 0 1-.104-.877 4.416 4.416 0 0 1 4.037-4.49L11.202 0h.026Zm.037 1.333a3.083 3.083 0 0 0-2.793 3.14v.024c-.003.285.05.569.158.833l.177.438-6.932 6.11-.001.001a1.617 1.617 0 0 0-.097 2.318 1.529 1.529 0 0 0 2.29-.097l.01-.012 6.116-6.878.405.119a3.832 3.832 0 0 0 1.615.116 3.133 3.133 0 0 0 2.353-2.18c.048-.192.079-.387.091-.583l-1.573 1.566-3.345-3.33 1.592-1.584h-.066Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/pds-icon/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/pds-icon/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,IAAI,UAA+B,CAAC;AAEpC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAkC,EAAE,EAAE;IAC7D,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IACzB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,GAAwB,EAAE;IAClD,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QACjC,OAAO,IAAI,GAAG,EAAE,CAAC;KAClB;SAAO;QACN,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,GAAG,GAAG,MAAa,CAAC,CAAC,yDAAyD;YACpF,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,EA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EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACpC,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;aAC/C;YACD,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SAC1B;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB,CAAC,CAAA","sourcesContent":["import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n"]}
|
package/dist/docs.json
CHANGED
|
@@ -12,10 +12,6 @@ let scopeId;
|
|
|
12
12
|
let hostTagName;
|
|
13
13
|
let isSvgMode = false;
|
|
14
14
|
let queuePending = false;
|
|
15
|
-
const getAssetPath = (path) => {
|
|
16
|
-
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
17
|
-
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
18
|
-
};
|
|
19
15
|
const createTime = (fnName, tagName = '') => {
|
|
20
16
|
{
|
|
21
17
|
return () => {
|
|
@@ -1804,6 +1800,6 @@ const flush = () => {
|
|
|
1804
1800
|
const nextTick = (cb) => promiseResolve().then(cb);
|
|
1805
1801
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1806
1802
|
|
|
1807
|
-
export { Host as H,
|
|
1803
|
+
export { Host as H, bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1808
1804
|
|
|
1809
|
-
//# sourceMappingURL=index-
|
|
1805
|
+
//# sourceMappingURL=index-68ccb33c.js.map
|