gauge-page-header 0.0.419 → 0.0.421
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/dist/cjs/eswat2-io_2.cjs.entry.js +1 -1
- package/dist/cjs/gauge-page-header.cjs.js +2 -2
- package/dist/cjs/{index-306f7d62.js → index-344e66fc.js} +48 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/esm/eswat2-io_2.entry.js +1 -1
- package/dist/esm/gauge-page-header.js +3 -3
- package/dist/esm/{index-4d9950fc.js → index-fcb3f6e8.js} +48 -6
- package/dist/esm/loader.js +2 -2
- package/dist/gauge-page-header/gauge-page-header.esm.js +1 -1
- package/dist/gauge-page-header/{p-c78690b5.js → p-51b58232.js} +2 -2
- package/dist/gauge-page-header/{p-4fc8b771.entry.js → p-8f50d29e.entry.js} +1 -1
- package/package.json +4 -4
|
@@ -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-344e66fc.js');
|
|
6
6
|
|
|
7
7
|
const eswat2IoCss = "a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";
|
|
8
8
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-344e66fc.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.
|
|
8
|
+
Stencil Client Patch Browser v4.4.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('gauge-page-header.cjs.js', document.baseURI).href));
|
|
@@ -989,6 +989,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
989
989
|
*/
|
|
990
990
|
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
991
991
|
try {
|
|
992
|
+
/**
|
|
993
|
+
* minification optimization: `allRenderFn` is `true` if all components have a `render`
|
|
994
|
+
* method, so we can call the method immediately. If not, check before calling it.
|
|
995
|
+
*/
|
|
992
996
|
instance = instance.render() ;
|
|
993
997
|
{
|
|
994
998
|
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
@@ -1122,7 +1126,18 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1122
1126
|
}
|
|
1123
1127
|
return Cstr;
|
|
1124
1128
|
};
|
|
1125
|
-
|
|
1129
|
+
/**
|
|
1130
|
+
* Initialize a Stencil component given a reference to its host element, its
|
|
1131
|
+
* runtime bookkeeping data structure, runtime metadata about the component,
|
|
1132
|
+
* and (optionally) an HMR version ID.
|
|
1133
|
+
*
|
|
1134
|
+
* @param elm a host element
|
|
1135
|
+
* @param hostRef the element's runtime bookkeeping object
|
|
1136
|
+
* @param cmpMeta runtime metadata for the Stencil component
|
|
1137
|
+
* @param hmrVersionId an (optional) HMR version ID
|
|
1138
|
+
*/
|
|
1139
|
+
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1140
|
+
let Cstr;
|
|
1126
1141
|
// initializeComponent
|
|
1127
1142
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1128
1143
|
// Let the runtime know that the component has been initialized
|
|
@@ -1354,22 +1369,49 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1354
1369
|
* @returns void
|
|
1355
1370
|
*/
|
|
1356
1371
|
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1372
|
+
/**
|
|
1373
|
+
* A WeakMap mapping runtime component references to their corresponding host reference
|
|
1374
|
+
* instances.
|
|
1375
|
+
*/
|
|
1357
1376
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1377
|
+
/**
|
|
1378
|
+
* Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
|
|
1379
|
+
*
|
|
1380
|
+
* @param ref the runtime ref of interest
|
|
1381
|
+
* @returns the Host reference (if found) or undefined
|
|
1382
|
+
*/
|
|
1358
1383
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1384
|
+
/**
|
|
1385
|
+
* Register a lazy instance with the {@link hostRefs} object so it's
|
|
1386
|
+
* corresponding {@link d.HostRef} can be retrieved later.
|
|
1387
|
+
*
|
|
1388
|
+
* @param lazyInstance the lazy instance of interest
|
|
1389
|
+
* @param hostRef that instances `HostRef` object
|
|
1390
|
+
* @returns a reference to the host ref WeakMap
|
|
1391
|
+
*/
|
|
1359
1392
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1360
|
-
|
|
1393
|
+
/**
|
|
1394
|
+
* Register a host element for a Stencil component, setting up various metadata
|
|
1395
|
+
* and callbacks based on {@link BUILD} flags as well as the component's runtime
|
|
1396
|
+
* metadata.
|
|
1397
|
+
*
|
|
1398
|
+
* @param hostElement the host element to register
|
|
1399
|
+
* @param cmpMeta runtime metadata for that component
|
|
1400
|
+
* @returns a reference to the host ref WeakMap
|
|
1401
|
+
*/
|
|
1402
|
+
const registerHost = (hostElement, cmpMeta) => {
|
|
1361
1403
|
const hostRef = {
|
|
1362
1404
|
$flags$: 0,
|
|
1363
|
-
$hostElement$:
|
|
1405
|
+
$hostElement$: hostElement,
|
|
1364
1406
|
$cmpMeta$: cmpMeta,
|
|
1365
1407
|
$instanceValues$: new Map(),
|
|
1366
1408
|
};
|
|
1367
1409
|
{
|
|
1368
1410
|
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1369
|
-
|
|
1370
|
-
|
|
1411
|
+
hostElement['s-p'] = [];
|
|
1412
|
+
hostElement['s-rc'] = [];
|
|
1371
1413
|
}
|
|
1372
|
-
return hostRefs.set(
|
|
1414
|
+
return hostRefs.set(hostElement, hostRef);
|
|
1373
1415
|
};
|
|
1374
1416
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1375
1417
|
const consoleError = (e, el) => (0, console.error)(e, el);
|
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-344e66fc.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-fcb3f6e8.js';
|
|
2
|
+
export { s as setNonce } from './index-fcb3f6e8.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
5
|
+
Stencil Client Patch Browser v4.4.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -967,6 +967,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
967
967
|
*/
|
|
968
968
|
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
969
969
|
try {
|
|
970
|
+
/**
|
|
971
|
+
* minification optimization: `allRenderFn` is `true` if all components have a `render`
|
|
972
|
+
* method, so we can call the method immediately. If not, check before calling it.
|
|
973
|
+
*/
|
|
970
974
|
instance = instance.render() ;
|
|
971
975
|
{
|
|
972
976
|
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
@@ -1100,7 +1104,18 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1100
1104
|
}
|
|
1101
1105
|
return Cstr;
|
|
1102
1106
|
};
|
|
1103
|
-
|
|
1107
|
+
/**
|
|
1108
|
+
* Initialize a Stencil component given a reference to its host element, its
|
|
1109
|
+
* runtime bookkeeping data structure, runtime metadata about the component,
|
|
1110
|
+
* and (optionally) an HMR version ID.
|
|
1111
|
+
*
|
|
1112
|
+
* @param elm a host element
|
|
1113
|
+
* @param hostRef the element's runtime bookkeeping object
|
|
1114
|
+
* @param cmpMeta runtime metadata for the Stencil component
|
|
1115
|
+
* @param hmrVersionId an (optional) HMR version ID
|
|
1116
|
+
*/
|
|
1117
|
+
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1118
|
+
let Cstr;
|
|
1104
1119
|
// initializeComponent
|
|
1105
1120
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1106
1121
|
// Let the runtime know that the component has been initialized
|
|
@@ -1332,22 +1347,49 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1332
1347
|
* @returns void
|
|
1333
1348
|
*/
|
|
1334
1349
|
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1350
|
+
/**
|
|
1351
|
+
* A WeakMap mapping runtime component references to their corresponding host reference
|
|
1352
|
+
* instances.
|
|
1353
|
+
*/
|
|
1335
1354
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1355
|
+
/**
|
|
1356
|
+
* Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
|
|
1357
|
+
*
|
|
1358
|
+
* @param ref the runtime ref of interest
|
|
1359
|
+
* @returns the Host reference (if found) or undefined
|
|
1360
|
+
*/
|
|
1336
1361
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1362
|
+
/**
|
|
1363
|
+
* Register a lazy instance with the {@link hostRefs} object so it's
|
|
1364
|
+
* corresponding {@link d.HostRef} can be retrieved later.
|
|
1365
|
+
*
|
|
1366
|
+
* @param lazyInstance the lazy instance of interest
|
|
1367
|
+
* @param hostRef that instances `HostRef` object
|
|
1368
|
+
* @returns a reference to the host ref WeakMap
|
|
1369
|
+
*/
|
|
1337
1370
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1338
|
-
|
|
1371
|
+
/**
|
|
1372
|
+
* Register a host element for a Stencil component, setting up various metadata
|
|
1373
|
+
* and callbacks based on {@link BUILD} flags as well as the component's runtime
|
|
1374
|
+
* metadata.
|
|
1375
|
+
*
|
|
1376
|
+
* @param hostElement the host element to register
|
|
1377
|
+
* @param cmpMeta runtime metadata for that component
|
|
1378
|
+
* @returns a reference to the host ref WeakMap
|
|
1379
|
+
*/
|
|
1380
|
+
const registerHost = (hostElement, cmpMeta) => {
|
|
1339
1381
|
const hostRef = {
|
|
1340
1382
|
$flags$: 0,
|
|
1341
|
-
$hostElement$:
|
|
1383
|
+
$hostElement$: hostElement,
|
|
1342
1384
|
$cmpMeta$: cmpMeta,
|
|
1343
1385
|
$instanceValues$: new Map(),
|
|
1344
1386
|
};
|
|
1345
1387
|
{
|
|
1346
1388
|
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1347
|
-
|
|
1348
|
-
|
|
1389
|
+
hostElement['s-p'] = [];
|
|
1390
|
+
hostElement['s-rc'] = [];
|
|
1349
1391
|
}
|
|
1350
|
-
return hostRefs.set(
|
|
1392
|
+
return hostRefs.set(hostElement, hostRef);
|
|
1351
1393
|
};
|
|
1352
1394
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1353
1395
|
const consoleError = (e, el) => (0, console.error)(e, el);
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-fcb3f6e8.js';
|
|
2
|
+
export { s as setNonce } from './index-fcb3f6e8.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-
|
|
1
|
+
import{p as e,b as o}from"./p-51b58232.js";export{s as setNonce}from"./p-51b58232.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((e=>o([["p-8f50d29e",[[1,"gauge-page-header",{vehicleInfo:[16]}],[1,"eswat2-io"]]]],e)));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let n,e,t=!1,l=!1;const o={},s=n=>"object"==(n=typeof n)||"function"===n;function c(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const i=(n,e,...t)=>{let l=null,o=!1,c=!1;const i=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!s(l))&&(l+=""),o&&c?i[i.length-1].t+=l:i.push(o?r(null,l):l),c=o)};if(u(t),e){const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}const a=r(n,null);return a.l=e,i.length>0&&(a.o=i),a},r=(n,e)=>({i:0,u:n,t:e,$:null,o:null,l:null}),u={},a=new WeakMap,f=n=>"sc-"+n.m,d=(n,e,t,l,o,c)=>{if(t!==l){let i=q(n,e),r=e.toLowerCase();if("class"===e){const e=n.classList,o=y(t),s=y(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if(i||"o"!==e[0]||"n"!==e[1]){const r=s(l);if((i||r&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?i=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(e)||n.removeAttribute(e):(!i||4&c||o)&&!r&&n.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):q(z,r)?r.slice(2):r[2]+e.slice(3),t&&D.rel(n,e,t,!1),l&&D.ael(n,e,l,!1)}},$=/\s/,y=n=>n?n.split($):[],m=(n,e,t,l)=>{const s=11===e.$.nodeType&&e.$.host?e.$.host:e.$,c=n&&n.l||o,i=e.l||o;for(l in c)l in i||d(s,l,c[l],void 0,t,e.i);for(l in i)d(s,l,c[l],i[l],t,e.i)},p=(e,l,o)=>{const s=l.o[o];let c,i,r=0;if(null!==s.t)c=s.$=B.createTextNode(s.t);else{if(t||(t="svg"===s.u),c=s.$=B.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),t&&"foreignObject"===s.u&&(t=!1),m(null,s,t),null!=n&&c["s-si"]!==n&&c.classList.add(c["s-si"]=n),s.o)for(r=0;r<s.o.length;++r)i=p(e,s,r),i&&c.appendChild(i);"svg"===s.u?t=!1:"foreignObject"===c.tagName&&(t=!0)}return c},v=(n,t,l,o,s,c)=>{let i,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=p(null,l,s),i&&(o[s].$=i,r.insertBefore(i,t)))},h=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.$;n&&n.remove()}}},w=(n,e)=>n.u===e.u,g=(n,e)=>{const l=e.$=n.$,o=n.o,s=e.o,c=e.u,i=e.t;null===i?(t="svg"===c||"foreignObject"!==c&&t,m(n,e,t),null!==o&&null!==s?((n,e,t,l)=>{let o,s=0,c=0,i=e.length-1,r=e[0],u=e[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&c<=a;)null==r?r=e[++s]:null==u?u=e[--i]:null==f?f=l[++c]:null==d?d=l[--a]:w(r,f)?(g(r,f),r=e[++s],f=l[++c]):w(u,d)?(g(u,d),u=e[--i],d=l[--a]):w(r,d)?(g(r,d),n.insertBefore(r.$,u.$.nextSibling),r=e[++s],d=l[--a]):w(u,f)?(g(u,f),n.insertBefore(u.$,r.$),u=e[--i],f=l[++c]):(o=p(e&&e[c],t,c),f=l[++c],o&&r.$.parentNode.insertBefore(o,r.$));s>i?v(n,null==l[a+1]?null:l[a+1].$,t,l,c,a):c>a&&h(e,s,i)})(l,o,e,s):null!==s?(null!==n.t&&(l.textContent=""),v(l,null,e,s,0,s.length-1)):null!==o&&h(o,0,o.length-1),t&&"svg"===c&&(t=!1)):n.t!==i&&(l.data=i)},b=(n,e)=>{e&&!n.p&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.p=e)))},j=(n,e)=>{if(n.i|=16,!(4&n.i))return b(n,n.v),nn((()=>S(n,e)));n.i|=512},S=(n,e)=>{const t=n.h;return O(void 0,(()=>M(n,t,e)))},O=(n,e)=>k(n)?n.then(e):e(),k=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,M=async(n,e,t)=>{var l;const o=n.
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z="undefined"!=typeof window?window:{},B=z.document||{head:{}},D={i:0,
|
|
1
|
+
let n,e,t=!1,l=!1;const o={},s=n=>"object"==(n=typeof n)||"function"===n;function c(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const i=(n,e,...t)=>{let l=null,o=!1,c=!1;const i=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!s(l))&&(l+=""),o&&c?i[i.length-1].t+=l:i.push(o?r(null,l):l),c=o)};if(u(t),e){const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}const a=r(n,null);return a.l=e,i.length>0&&(a.o=i),a},r=(n,e)=>({i:0,u:n,t:e,$:null,o:null,l:null}),u={},a=new WeakMap,f=n=>"sc-"+n.m,d=(n,e,t,l,o,c)=>{if(t!==l){let i=q(n,e),r=e.toLowerCase();if("class"===e){const e=n.classList,o=y(t),s=y(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if(i||"o"!==e[0]||"n"!==e[1]){const r=s(l);if((i||r&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?i=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(e)||n.removeAttribute(e):(!i||4&c||o)&&!r&&n.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):q(z,r)?r.slice(2):r[2]+e.slice(3),t&&D.rel(n,e,t,!1),l&&D.ael(n,e,l,!1)}},$=/\s/,y=n=>n?n.split($):[],m=(n,e,t,l)=>{const s=11===e.$.nodeType&&e.$.host?e.$.host:e.$,c=n&&n.l||o,i=e.l||o;for(l in c)l in i||d(s,l,c[l],void 0,t,e.i);for(l in i)d(s,l,c[l],i[l],t,e.i)},p=(e,l,o)=>{const s=l.o[o];let c,i,r=0;if(null!==s.t)c=s.$=B.createTextNode(s.t);else{if(t||(t="svg"===s.u),c=s.$=B.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),t&&"foreignObject"===s.u&&(t=!1),m(null,s,t),null!=n&&c["s-si"]!==n&&c.classList.add(c["s-si"]=n),s.o)for(r=0;r<s.o.length;++r)i=p(e,s,r),i&&c.appendChild(i);"svg"===s.u?t=!1:"foreignObject"===c.tagName&&(t=!0)}return c},v=(n,t,l,o,s,c)=>{let i,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=p(null,l,s),i&&(o[s].$=i,r.insertBefore(i,t)))},h=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.$;n&&n.remove()}}},w=(n,e)=>n.u===e.u,g=(n,e)=>{const l=e.$=n.$,o=n.o,s=e.o,c=e.u,i=e.t;null===i?(t="svg"===c||"foreignObject"!==c&&t,m(n,e,t),null!==o&&null!==s?((n,e,t,l)=>{let o,s=0,c=0,i=e.length-1,r=e[0],u=e[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&c<=a;)null==r?r=e[++s]:null==u?u=e[--i]:null==f?f=l[++c]:null==d?d=l[--a]:w(r,f)?(g(r,f),r=e[++s],f=l[++c]):w(u,d)?(g(u,d),u=e[--i],d=l[--a]):w(r,d)?(g(r,d),n.insertBefore(r.$,u.$.nextSibling),r=e[++s],d=l[--a]):w(u,f)?(g(u,f),n.insertBefore(u.$,r.$),u=e[--i],f=l[++c]):(o=p(e&&e[c],t,c),f=l[++c],o&&r.$.parentNode.insertBefore(o,r.$));s>i?v(n,null==l[a+1]?null:l[a+1].$,t,l,c,a):c>a&&h(e,s,i)})(l,o,e,s):null!==s?(null!==n.t&&(l.textContent=""),v(l,null,e,s,0,s.length-1)):null!==o&&h(o,0,o.length-1),t&&"svg"===c&&(t=!1)):n.t!==i&&(l.data=i)},b=(n,e)=>{e&&!n.p&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.p=e)))},j=(n,e)=>{if(n.i|=16,!(4&n.i))return b(n,n.v),nn((()=>S(n,e)));n.i|=512},S=(n,e)=>{const t=n.h;return O(void 0,(()=>M(n,t,e)))},O=(n,e)=>k(n)?n.then(e):e(),k=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,M=async(n,e,t)=>{var l;const o=n.j,s=o["s-rc"];t&&(n=>{const e=n.S,t=n.j,l=e.i,o=((n,e)=>{var t;const l=f(e),o=_.get(l);if(n=11===n.nodeType?n:B,o)if("string"==typeof o){let e,s=a.get(n=n.head||n);if(s||a.set(n,s=new Set),!s.has(l)){{e=B.createElement("style"),e.innerHTML=o;const l=null!==(t=D.O)&&void 0!==t?t:c(B);null!=l&&e.setAttribute("nonce",l),n.insertBefore(e,n.querySelector("link"))}s&&s.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"))})(n);C(n,e,o,t),s&&(s.map((n=>n())),o["s-rc"]=void 0);{const e=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>P(n);0===e.length?t():(Promise.all(e).then(t),n.i|=4,e.length=0)}},C=(t,l,o,s)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l,o=!1)=>{const s=t.j,c=t.k||r(null,null),a=(n=>n&&n.u===u)(l)?l:i(null,null,l);if(e=s.tagName,o&&a.l)for(const n of Object.keys(a.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(a.l[n]=s[n]);a.u=null,a.i|=4,t.k=a,a.$=c.$=s.shadowRoot||s,n=s["s-sc"],g(c,a)})(t,l,s)}catch(n){F(n,t.j)}return null},P=n=>{const e=n.j,t=n.v;64&n.i||(n.i|=64,E(e),n.M(e),t||x()),n.p&&(n.p(),n.p=void 0),512&n.i&&Z((()=>j(n,!1))),n.i&=-517},x=()=>{E(B.documentElement),Z((()=>(n=>{const e=D.ce("appload",{detail:{namespace:"gauge-page-header"}});return n.dispatchEvent(e),e})(z)))},E=n=>n.classList.add("hydrated"),N=(n,e,t)=>{if(e.C){const l=Object.entries(e.C),o=n.prototype;l.map((([n,[e]])=>{(31&e||2&t&&32&e)&&Object.defineProperty(o,n,{get(){return((n,e)=>R(this).P.get(e))(0,n)},set(e){((n,e,t)=>{const l=R(n),o=l.P.get(e),c=l.i,i=l.h;t=(n=>(null==n||s(n),n))(t),8&c&&void 0!==o||t===o||Number.isNaN(o)&&Number.isNaN(t)||(l.P.set(e,t),i&&2==(18&c)&&j(l,!1))})(this,n,e)},configurable:!0,enumerable:!0})}))}return n},T=(n,e={})=>{var t;const l=[],o=e.exclude||[],s=z.customElements,i=B.head,r=i.querySelector("meta[charset]"),u=B.createElement("style"),a=[];let d,$=!0;Object.assign(D,e),D.N=new URL(e.resourcesUrl||"./",B.baseURI).href,n.map((n=>{n[1].map((e=>{const t={i:e[0],m:e[1],C:e[2],T:e[3]};t.C=e[2];const c=t.m,i=class extends HTMLElement{constructor(n){super(n),W(n=this,t),1&t.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),$?a.push(this):D.jmp((()=>(n=>{if(0==(1&D.i)){const e=R(n),t=e.S,l=()=>{};if(1&e.i)(null==e?void 0:e.h)||(null==e?void 0:e.A)&&e.A.then((()=>{}));else{e.i|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){b(e,e.v=t);break}}t.C&&Object.entries(t.C).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t)=>{let l;if(0==(32&e.i)){e.i|=32;{if(l=V(t),l.then){const n=()=>{};l=await l,n()}l.isProxied||(N(l,t,2),l.isProxied=!0);const n=()=>{};e.i|=8;try{new l(e)}catch(n){F(n)}e.i&=-9,n()}if(l.style){let n=l.style;const e=f(t);if(!_.has(e)){const l=()=>{};((n,e,t)=>{let l=_.get(n);I&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,_.set(n,l)})(e,n,!!(1&t.i)),l()}}}const o=e.v,s=()=>j(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,e,t)}l()}})(this)))}disconnectedCallback(){D.jmp((()=>(async()=>{if(0==(1&D.i)){const n=R(this);(null==n?void 0:n.h)||(null==n?void 0:n.A)&&n.A.then((()=>{}))}})()))}componentOnReady(){return R(this).A}};t.L=n[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,N(i,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(t=D.O)&&void 0!==t?t:c(B);null!=n&&u.setAttribute("nonce",n),i.insertBefore(u,r?r.nextSibling:i.firstChild)}$=!1,a.length?a.map((n=>n.connectedCallback())):D.jmp((()=>d=setTimeout(x,30)))},A=n=>D.O=n,L=new WeakMap,R=n=>L.get(n),U=(n,e)=>L.set(e.h=n,e),W=(n,e)=>{const t={i:0,j:n,S:e,P:new Map};return t.A=new Promise((n=>t.M=n)),n["s-p"]=[],n["s-rc"]=[],L.set(n,t)},q=(n,e)=>e in n,F=(n,e)=>(0,console.error)(n,e),H=new Map,V=n=>{const e=n.m.replace(/-/g,"_"),t=n.L,l=H.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(H.set(t,n),n[e])),F)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z="undefined"!=typeof window?window:{},B=z.document||{head:{}},D={i:0,N:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},G=n=>Promise.resolve(n),I=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),J=[],K=[],Q=(n,e)=>t=>{n.push(t),l||(l=!0,e&&4&D.i?Z(Y):D.raf(Y))},X=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){F(n)}n.length=0},Y=()=>{X(J),X(K),(l=J.length>0)&&D.raf(Y)},Z=n=>G().then(n),nn=Q(K,!0);export{T as b,i as h,G as p,U as r,A as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-
|
|
1
|
+
import{r as e,h as a}from"./p-51b58232.js";const i="eswat2",r=class{constructor(a){e(this,a)}render(){return a("a",{href:"https://eswat2.dev","aria-label":i,title:i},(({hex:e="currentColor",size:i=24})=>a("svg",{width:i,height:i,viewBox:"0 0 24 24"},a("g",{fill:e},a("path",{d:"M8.35,3C9.53,2.83 10.78,4.12 11.14,5.9C11.5,7.67 10.85,9.25\n 9.67,9.43C8.5,9.61 7.24,8.32 6.87,6.54C6.5,4.77 7.17,3.19\n 8.35,3M15.5,3C16.69,3.19 17.35,4.77 17,6.54C16.62,8.32 15.37,9.61\n 14.19,9.43C13,9.25 12.35,7.67 12.72,5.9C13.08,4.12 14.33,2.83\n 15.5,3M3,7.6C4.14,7.11 5.69,8 6.5,9.55C7.26,11.13 7,12.79\n 5.87,13.28C4.74,13.77 3.2,12.89 2.41,11.32C1.62,9.75 1.9,8.08\n 3,7.6M21,7.6C22.1,8.08 22.38,9.75 21.59,11.32C20.8,12.89 19.26,13.77\n 18.13,13.28C17,12.79 16.74,11.13 17.5,9.55C18.31,8 19.86,7.11\n 21,7.6M19.33,18.38C19.37,19.32 18.65,20.36 17.79,20.75C16,21.57\n 13.88,19.87 11.89,19.87C9.9,19.87 7.76,21.64 6,20.75C5,20.26 4.31,18.96\n 4.44,17.88C4.62,16.39 6.41,15.59 7.47,14.5C8.88,13.09 9.88,10.44\n 11.89,10.44C13.89,10.44 14.95,13.05 16.3,14.5C17.41,15.72 19.26,16.75\n 19.33,18.38Z"})),a("path",{d:"M0 0h24v24H0z",fill:"none"})))({}))}};r.style="a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";const s=e=>{if(navigator.clipboard)try{navigator.clipboard.writeText(e)}catch(e){console.error("Failed to copy!",e)}},t=class{constructor(a){e(this,a),this.vehicleInfo=void 0}yearMakeModel(){const{ModelYear:e,Make:a,Model:i}=this.vehicleInfo||{ModelYear:2020,Make:"-",Model:"-"};return`${e} ${a} ${i}`}isCertified(){const{IsCertified:e}=this.vehicleInfo||{IsCertified:!1};return e}isRetail(){const{RetailWholesale:e}=this.vehicleInfo||{RetailWholesale:"R"};return"R"===e}isNew(){const{NewUsed:e}=this.vehicleInfo||{NewUsed:"N"};return"N"===e}stockNumber(){const{StockNumber:e}=this.vehicleInfo||{StockNumber:"-"};return e}vin(){const{Vin:e}=this.vehicleInfo||{Vin:"-"};return e}daysInInventory(){const{DaysInInventory:e}=this.vehicleInfo||{DaysInInventory:0};return`${e} Days`}mileage(){const{Odometer:e}=this.vehicleInfo||{Odometer:0};return`${Intl.NumberFormat().format(e)} mi`}body(){const{BodyDescription:e}=this.vehicleInfo||{BodyDescription:"-"};return e}exteriorColor(){const{ExteriorColor:e}=this.vehicleInfo||{ExteriorColor:"-"};return e}interiorColor(){const{InteriorColor:e}=this.vehicleInfo||{InteriorColor:"-"};return e}driveTrain(){const{DriveTrainType:e}=this.vehicleInfo||{DriveTrainType:"-"};return e}engine(){const{EngineDescription:e}=this.vehicleInfo||{EngineDescription:"-"};return e}transmission(){const{TransmissionDescription:e}=this.vehicleInfo||{TransmissionDescription:"- "};return e}render(){var e="";return this.isNew()||(e=this.isCertified()?a("span",{class:"certified badge"},a("span",{role:"label"},"Certified")):a("span",{class:"not-certified badge"},a("span",{role:"label"},"Not Certified"))),[a("div",{class:"gauge-page-header"},a("eswat2-io",null),a("div",{class:"year-make-model-container",onClick:()=>s(this.yearMakeModel()),title:"Click to Copy Year/Make/Model"},a("h1",{id:"year-make-model-header"},this.yearMakeModel()),a("span",{class:"badge-set-container"},e,this.isRetail()?a("span",{class:"retail badge"},a("span",{role:"label"},"Retail")):a("span",{class:"wholesale badge"},a("span",{role:"label"},"Wholesale")))),a("div",{class:"vehicle-identifier-info-container",onClick:()=>s(this.vin()),title:"Click to Copy VIN"},a("h4",{id:"vehicle-identifier-info-header"},a("span",{class:"vehicle-info-header-segment capitalize"},this.stockNumber()),a("span",{class:"vehicle-info-header-segment capitalize"},this.vin()),a("span",{class:"vehicle-info-header-segment"},this.daysInInventory()),a("span",{class:"vehicle-info-header-segment"},this.mileage()))),a("div",{class:"vehicle-data-container"},a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Body"),a("p",{class:"segment-value"},this.body())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Color"),a("p",{class:"segment-value"},this.exteriorColor())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Int. Color"),a("p",{class:"segment-value"},this.interiorColor())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Drive Train"),a("p",{class:"segment-value"},this.driveTrain())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Engine"),a("p",{class:"segment-value"},this.engine())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Transmission"),a("p",{class:"segment-value"},this.transmission()))))]}};t.style=":host{--clrs-navy:#001f3f;--clrs-blue:#0074d9;--clrs-aqua:#7fdbff;--clrs-teal:#39cccc;--clrs-olive:#3d9970;--clrs-green:#2ecc40;--clrs-lime:#01ff70;--clrs-yellow:#ffdc00;--clrs-orange:#ff851b;--clrs-red:#ff4136;--clrs-maroon:#85144b;--clrs-fuchsia:#f012be;--clrs-purple:#b10dc9;--clrs-black:#111111;--clrs-gray:#aaaaaa;--clrs-silver:#dddddd;--clrs-bada55:#bada55;--clrs-slate:#708090;--clrs-slate4:#4e5964;--clrs-white:#ffffff}.gauge-page-header{padding:0 5px;display:flex;flex-direction:column;color:var(--clrs-navy)}.gauge-page-header *{font-family:'Roboto'}.gauge-page-header .year-make-model-container{height:35px;display:flex;align-items:center}.gauge-page-header #year-make-model-header{font-size:32px;font-weight:500;margin-left:0}.gauge-page-header .vehicle-identifier-info-container{height:30px;margin-bottom:5px;}.gauge-page-header #vehicle-identifier-info-header{font-weight:400;margin-top:8px}.gauge-page-header .vehicle-info-header-segment{margin-right:1em}.gauge-page-header .vehicle-info-header-segment.capitalize{text-transform:uppercase}.gauge-page-header .vehicle-info-header-segment:not(:last-child):after{padding-left:1em;content:'|'}.gauge-page-header .vehicle-info-segment{float:left;margin-right:30px;font-size:14px}.gauge-page-header .vehicle-data-container{display:flex;flex-direction:row}.gauge-page-header .segment-heading{color:var(--clrs-slate);font-size:14px;font-weight:400;margin-bottom:4px}.gauge-page-header .segment-value{margin-top:0;font-weight:400}.gauge-page-header .badge-set-container{display:flex;padding-left:8px}.gauge-page-header .badge{display:flex;align-items:center;justify-content:center;margin-left:8px;padding:3px 10px;font-size:12px;border-radius:1em;font-weight:600;border:solid 1px;}.gauge-page-header .badge.certified{background-color:#f9fffb;border-color:#5ebb47}.gauge-page-header .badge.certified [role='label']{color:#008629}.gauge-page-header .badge.not-certified{border-color:#46576f}.gauge-page-header .badge.not-certified [role='label']{color:#46576f}.gauge-page-header .badge.retail{background-color:#f6fcff;border-color:#0576b3}.gauge-page-header .badge.retail [role='label']{color:#0576b3}.gauge-page-header .badge.wholesale{background-color:#f6fcff;border-color:#0576b3}.gauge-page-header .badge.wholesale [role='label']{color:#0576b3}";export{r as eswat2_io,t as gauge_page_header}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gauge-page-header",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.421",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"format": "prettier --write src"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@stencil/core": "4.
|
|
27
|
+
"@stencil/core": "4.4.1"
|
|
28
28
|
},
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"cspell": "7.3.
|
|
32
|
-
"eslint": "8.
|
|
31
|
+
"cspell": "7.3.8",
|
|
32
|
+
"eslint": "8.51.0",
|
|
33
33
|
"prettier": "3.0.3",
|
|
34
34
|
"tslint": "6.1.3",
|
|
35
35
|
"typescript": "5.2.2"
|