gauge-page-header 0.0.158 → 0.0.162

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.
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-537ba49c.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.11.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.12.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  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));
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-537ba49c.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.11.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.12.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -5,7 +5,7 @@
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "2.11.0",
8
+ "version": "2.12.0",
9
9
  "typescriptVersion": "4.3.5"
10
10
  },
11
11
  "collections": [],
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface Eswat2Io extends Components.Eswat2Io, HTMLElement {}
4
+ export const Eswat2Io: {
5
+ prototype: Eswat2Io;
6
+ new (): Eswat2Io;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { E as Eswat2Io$1, d as defineCustomElement$1 } from './eswat2-io2.js';
2
+
3
+ const Eswat2Io = Eswat2Io$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { Eswat2Io, defineCustomElement };
@@ -0,0 +1,36 @@
1
+ import { HTMLElement, h, proxyCustomElement } from '@stencil/core/internal/client';
2
+
3
+ const eswat2IoCss = "a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";
4
+
5
+ const url = 'https://eswat2.dev';
6
+ const who = 'eswat2';
7
+ const pawIcon = ({ hex = 'currentColor', size = 24 }) => {
8
+ return (h("svg", { width: size, height: size, viewBox: "0 0 24 24" }, h("g", { fill: hex }, h("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" })), h("path", { d: "M0 0h24v24H0z", fill: "none" })));
9
+ };
10
+ let Eswat2Io = class extends HTMLElement {
11
+ constructor() {
12
+ super();
13
+ this.__registerHost();
14
+ this.__attachShadow();
15
+ }
16
+ render() {
17
+ return (h("a", { href: url, "aria-label": who, title: who }, pawIcon({})));
18
+ }
19
+ static get style() { return eswat2IoCss; }
20
+ };
21
+ Eswat2Io = /*@__PURE__*/ proxyCustomElement(Eswat2Io, [1, "eswat2-io"]);
22
+ function defineCustomElement() {
23
+ if (typeof customElements === "undefined") {
24
+ return;
25
+ }
26
+ const components = ["eswat2-io"];
27
+ components.forEach(tagName => { switch (tagName) {
28
+ case "eswat2-io":
29
+ if (!customElements.get(tagName)) {
30
+ customElements.define(tagName, Eswat2Io);
31
+ }
32
+ break;
33
+ } });
34
+ }
35
+
36
+ export { Eswat2Io as E, defineCustomElement as d };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface GaugePageHeader extends Components.GaugePageHeader, HTMLElement {}
4
+ export const GaugePageHeader: {
5
+ prototype: GaugePageHeader;
6
+ new (): GaugePageHeader;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -1,24 +1,5 @@
1
1
  import { HTMLElement, h, proxyCustomElement } from '@stencil/core/internal/client';
2
- export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
3
-
4
- const eswat2IoCss = "a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";
5
-
6
- const url = 'https://eswat2.dev';
7
- const who = 'eswat2';
8
- const pawIcon = ({ hex = 'currentColor', size = 24 }) => {
9
- return (h("svg", { width: size, height: size, viewBox: "0 0 24 24" }, h("g", { fill: hex }, h("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" })), h("path", { d: "M0 0h24v24H0z", fill: "none" })));
10
- };
11
- let Eswat2Io$1 = class extends HTMLElement {
12
- constructor() {
13
- super();
14
- this.__registerHost();
15
- this.__attachShadow();
16
- }
17
- render() {
18
- return (h("a", { href: url, "aria-label": who, title: who }, pawIcon({})));
19
- }
20
- static get style() { return eswat2IoCss; }
21
- };
2
+ import { d as defineCustomElement$2 } from './eswat2-io2.js';
22
3
 
23
4
  const copyToClipboard = (text) => {
24
5
  if (!navigator.clipboard) {
@@ -117,20 +98,29 @@ let GaugePageHeader$1 = class extends HTMLElement {
117
98
  }
118
99
  static get style() { return gaugePageHeaderCss; }
119
100
  };
120
-
121
- const Eswat2Io = /*@__PURE__*/proxyCustomElement(Eswat2Io$1, [1,"eswat2-io"]);
122
- const GaugePageHeader = /*@__PURE__*/proxyCustomElement(GaugePageHeader$1, [1,"gauge-page-header",{"vehicleInfo":[16]}]);
123
- const defineCustomElements = (opts) => {
124
- if (typeof customElements !== 'undefined') {
125
- [
126
- Eswat2Io,
127
- GaugePageHeader
128
- ].forEach(cmp => {
129
- if (!customElements.get(cmp.is)) {
130
- customElements.define(cmp.is, cmp, opts);
131
- }
132
- });
101
+ GaugePageHeader$1 = /*@__PURE__*/ proxyCustomElement(GaugePageHeader$1, [1, "gauge-page-header", {
102
+ "vehicleInfo": [16]
103
+ }]);
104
+ function defineCustomElement$1() {
105
+ if (typeof customElements === "undefined") {
106
+ return;
133
107
  }
134
- };
108
+ const components = ["gauge-page-header", "eswat2-io"];
109
+ components.forEach(tagName => { switch (tagName) {
110
+ case "gauge-page-header":
111
+ if (!customElements.get(tagName)) {
112
+ customElements.define(tagName, GaugePageHeader$1);
113
+ }
114
+ break;
115
+ case "eswat2-io":
116
+ if (!customElements.get(tagName)) {
117
+ defineCustomElement$2();
118
+ }
119
+ break;
120
+ } });
121
+ }
122
+
123
+ const GaugePageHeader = GaugePageHeader$1;
124
+ const defineCustomElement = defineCustomElement$1;
135
125
 
136
- export { Eswat2Io, GaugePageHeader, defineCustomElements };
126
+ export { GaugePageHeader, defineCustomElement };
@@ -1,31 +1,7 @@
1
- /* GaugePageHeader custom elements bundle */
1
+ /* GaugePageHeader custom elements */
2
2
 
3
3
  import type { Components, JSX } from "../types/components";
4
4
 
5
- interface Eswat2Io extends Components.Eswat2Io, HTMLElement {}
6
- export const Eswat2Io: {
7
- prototype: Eswat2Io;
8
- new (): Eswat2Io;
9
- };
10
-
11
- interface GaugePageHeader extends Components.GaugePageHeader, HTMLElement {}
12
- export const GaugePageHeader: {
13
- prototype: GaugePageHeader;
14
- new (): GaugePageHeader;
15
- };
16
-
17
- /**
18
- * Utility to define all custom elements within this package using the tag name provided in the component's source.
19
- * When defining each custom element, it will also check it's safe to define by:
20
- *
21
- * 1. Ensuring the "customElements" registry is available in the global context (window).
22
- * 2. The component tag name is not already defined.
23
- *
24
- * Use the standard [customElements.define()](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)
25
- * method instead to define custom elements individually, or to provide a different tag name.
26
- */
27
- export declare const defineCustomElements: (opts?: any) => void;
28
-
29
5
  /**
30
6
  * Used to manually set the base path where assets can be found.
31
7
  * If the script is used as "module", it's recommended to use "import.meta.url",
@@ -42,7 +18,6 @@ export interface SetPlatformOptions {
42
18
  raf?: (c: FrameRequestCallback) => number;
43
19
  ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
44
20
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
45
- ce?: (eventName: string, opts?: any) => CustomEvent;
46
21
  }
47
22
  export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
48
23
 
@@ -0,0 +1 @@
1
+ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
@@ -1,7 +1,7 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './index-abbb9344.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Browser v2.11.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Browser v2.12.0 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchBrowser = () => {
7
7
  const importMeta = import.meta.url;
@@ -1,7 +1,7 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './index-abbb9344.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Esm v2.11.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.12.0 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchEsm = () => {
7
7
  return promiseResolve();
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "gauge-page-header",
3
- "version": "0.0.158",
3
+ "version": "0.0.162",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
- "module": "dist/custom-elements/index.js",
6
+ "module": "dist/index.js",
7
7
  "es2015": "dist/esm/index.mjs",
8
8
  "es2017": "dist/esm/index.mjs",
9
- "types": "dist/custom-elements/index.d.ts",
9
+ "types": "dist/types/components.d.ts",
10
10
  "collection": "dist/collection/collection-manifest.json",
11
11
  "collection:main": "dist/collection/index.js",
12
12
  "unpkg": "dist/gauge-page-header/gauge-page-header.js",
@@ -26,18 +26,18 @@
26
26
  "format": "prettier --write src"
27
27
  },
28
28
  "dependencies": {
29
- "@stencil/core": "2.11.0"
29
+ "@stencil/core": "2.12.0"
30
30
  },
31
31
  "license": "MIT",
32
32
  "devDependencies": {
33
33
  "@types/jest": "27.0.3",
34
34
  "@types/puppeteer": "5.4.4",
35
- "cspell": "5.13.2",
36
- "eslint": "8.4.1",
35
+ "cspell": "5.13.4",
36
+ "eslint": "8.5.0",
37
37
  "jest": "26.6.3",
38
38
  "prettier": "2.5.1",
39
39
  "puppeteer": "13.0.0",
40
40
  "tslint": "6.1.3",
41
- "typescript": "4.5.3"
41
+ "typescript": "4.5.4"
42
42
  }
43
43
  }