@aiconomy/aico-components 0.0.13 → 0.0.14

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.
Files changed (70) hide show
  1. package/dist/aico-components/aico-components.esm.js +2 -0
  2. package/dist/aico-components/aico-components.esm.js.map +1 -0
  3. package/dist/aico-components/index.esm.js +2 -0
  4. package/dist/aico-components/index.esm.js.map +1 -0
  5. package/dist/aico-components/p-23b28a55.js +3 -0
  6. package/dist/aico-components/p-23b28a55.js.map +1 -0
  7. package/dist/aico-components/p-efd6913d.entry.js +2 -0
  8. package/dist/aico-components/p-efd6913d.entry.js.map +1 -0
  9. package/dist/cjs/aico-components.cjs.js +25 -0
  10. package/dist/cjs/aico-components.cjs.js.map +1 -0
  11. package/dist/cjs/index-222c33f1.js +1439 -0
  12. package/dist/cjs/index-222c33f1.js.map +1 -0
  13. package/dist/cjs/index.cjs.js +4 -0
  14. package/dist/cjs/index.cjs.js.map +1 -0
  15. package/dist/cjs/loader.cjs.js +15 -0
  16. package/dist/cjs/loader.cjs.js.map +1 -0
  17. package/dist/cjs/my-component.cjs.entry.js +31 -0
  18. package/dist/cjs/my-component.cjs.entry.js.map +1 -0
  19. package/dist/collection/collection-manifest.json +12 -0
  20. package/dist/collection/components/my-component/my-component.css +3 -0
  21. package/dist/collection/components/my-component/my-component.e2e.js +26 -0
  22. package/dist/collection/components/my-component/my-component.e2e.js.map +1 -0
  23. package/dist/collection/components/my-component/my-component.js +83 -0
  24. package/dist/collection/components/my-component/my-component.js.map +1 -0
  25. package/dist/collection/components/my-component/my-component.spec.js +35 -0
  26. package/dist/collection/components/my-component/my-component.spec.js.map +1 -0
  27. package/dist/collection/components/my-component/my-component.stories.js +13 -0
  28. package/dist/collection/components/my-component/my-component.stories.js.map +1 -0
  29. package/dist/collection/index.js +2 -0
  30. package/dist/collection/index.js.map +1 -0
  31. package/dist/collection/utils/utils.js +4 -0
  32. package/dist/collection/utils/utils.js.map +1 -0
  33. package/dist/collection/utils/utils.spec.js +16 -0
  34. package/dist/collection/utils/utils.spec.js.map +1 -0
  35. package/dist/components/index.d.ts +33 -0
  36. package/dist/components/index.js +3 -0
  37. package/dist/components/index.js.map +1 -0
  38. package/dist/components/my-component.d.ts +11 -0
  39. package/dist/components/my-component.js +49 -0
  40. package/dist/components/my-component.js.map +1 -0
  41. package/dist/esm/aico-components.js +20 -0
  42. package/dist/esm/aico-components.js.map +1 -0
  43. package/dist/esm/index-72708389.js +1413 -0
  44. package/dist/esm/index-72708389.js.map +1 -0
  45. package/dist/esm/index.js +3 -0
  46. package/dist/esm/index.js.map +1 -0
  47. package/dist/esm/loader.js +11 -0
  48. package/dist/esm/loader.js.map +1 -0
  49. package/dist/esm/my-component.entry.js +27 -0
  50. package/dist/esm/my-component.entry.js.map +1 -0
  51. package/dist/esm/polyfills/core-js.js +11 -0
  52. package/dist/esm/polyfills/dom.js +79 -0
  53. package/dist/esm/polyfills/es5-html-element.js +1 -0
  54. package/dist/esm/polyfills/index.js +34 -0
  55. package/dist/esm/polyfills/system.js +6 -0
  56. package/dist/index.cjs.js +1 -0
  57. package/dist/index.js +1 -0
  58. package/dist/types/components/my-component/my-component.d.ts +16 -0
  59. package/dist/types/components/my-component/my-component.stories.d.ts +5 -0
  60. package/dist/types/components.d.ts +61 -0
  61. package/dist/types/index.d.ts +1 -0
  62. package/dist/types/stencil-public-runtime.d.ts +1681 -0
  63. package/dist/types/utils/utils.d.ts +1 -0
  64. package/loader/cdn.js +3 -0
  65. package/loader/index.cjs.js +3 -0
  66. package/loader/index.d.ts +21 -0
  67. package/loader/index.es2017.js +3 -0
  68. package/loader/index.js +4 -0
  69. package/loader/package.json +11 -0
  70. package/package.json +1 -1
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-222c33f1.js');
6
+
7
+ const defineCustomElements = (win, options) => {
8
+ if (typeof window === 'undefined') return undefined;
9
+ return index.bootstrapLazy([["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]]], options);
10
+ };
11
+
12
+ exports.setNonce = index.setNonce;
13
+ exports.defineCustomElements = defineCustomElements;
14
+
15
+ //# sourceMappingURL=loader.cjs.js.map
@@ -0,0 +1 @@
1
+ {"file":"loader.cjs.js","mappings":";;;;;;AAGY,MAAC,oBAAoB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK;AACtD,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS,CAAC;AAEtD,EAAE,OAAOA,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D;;;;;","names":["bootstrapLazy"],"sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = (win, options) => {\n if (typeof window === 'undefined') return undefined;\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"version":3}
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-222c33f1.js');
6
+
7
+ function format(first, middle, last) {
8
+ return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
9
+ }
10
+
11
+ const myComponentCss = ":host{display:block}";
12
+
13
+ const MyComponent = class {
14
+ constructor(hostRef) {
15
+ index.registerInstance(this, hostRef);
16
+ this.first = undefined;
17
+ this.middle = undefined;
18
+ this.last = undefined;
19
+ }
20
+ getText() {
21
+ return format(this.first, this.middle, this.last);
22
+ }
23
+ render() {
24
+ return index.h("div", null, "Hello, World! I'm ", this.getText());
25
+ }
26
+ };
27
+ MyComponent.style = myComponentCss;
28
+
29
+ exports.my_component = MyComponent;
30
+
31
+ //# sourceMappingURL=my-component.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"my-component.entry.cjs.js","mappings":";;;;;;SAAgB,MAAM,CAAC,KAAa,EAAE,MAAc,EAAE,IAAY;IAChE,OAAO,CAAC,KAAK,IAAI,EAAE,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,GAAG,IAAI,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;AACjF;;ACFA,MAAM,cAAc,GAAG,sBAAsB;;MCQhC,WAAW;;;;;;;IAgBd,OAAO;QACb,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;KACnD;IAED,MAAM;QACJ,OAAOA,2CAAwB,IAAI,CAAC,OAAO,EAAE,CAAO,CAAC;KACtD;;;;;;","names":["h"],"sources":["src/utils/utils.ts","src/components/my-component/my-component.css?tag=my-component&encapsulation=shadow","src/components/my-component/my-component.tsx"],"sourcesContent":["export function format(first: string, middle: string, last: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n",":host {\n display: block;\n}\n","import { Component, Prop, h } from '@stencil/core';\nimport { format } from '../../utils/utils';\n\n@Component({\n tag: 'my-component',\n styleUrl: 'my-component.css',\n shadow: true,\n})\nexport class MyComponent {\n /**\n * The first name\n */\n @Prop() first: string;\n\n /**\n * The middle name\n */\n @Prop() middle: string;\n\n /**\n * The last name\n */\n @Prop() last: string;\n\n private getText(): string {\n return format(this.first, this.middle, this.last);\n }\n\n render() {\n return <div>Hello, World! I'm {this.getText()}</div>;\n }\n}\n"],"version":3}
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "components/my-component/my-component.js"
4
+ ],
5
+ "compiler": {
6
+ "name": "@stencil/core",
7
+ "version": "4.9.0",
8
+ "typescriptVersion": "5.2.2"
9
+ },
10
+ "collections": [],
11
+ "bundles": []
12
+ }
@@ -0,0 +1,3 @@
1
+ :host {
2
+ display: block;
3
+ }
@@ -0,0 +1,26 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('my-component', () => {
3
+ it('renders', async () => {
4
+ const page = await newE2EPage();
5
+ await page.setContent('<my-component></my-component>');
6
+ const element = await page.find('my-component');
7
+ expect(element).toHaveClass('hydrated');
8
+ });
9
+ it('renders changes to the name data', async () => {
10
+ const page = await newE2EPage();
11
+ await page.setContent('<my-component></my-component>');
12
+ const component = await page.find('my-component');
13
+ const element = await page.find('my-component >>> div');
14
+ expect(element.textContent).toEqual(`Hello, World! I'm `);
15
+ component.setProperty('first', 'James');
16
+ await page.waitForChanges();
17
+ expect(element.textContent).toEqual(`Hello, World! I'm James`);
18
+ component.setProperty('last', 'Quincy');
19
+ await page.waitForChanges();
20
+ expect(element.textContent).toEqual(`Hello, World! I'm James Quincy`);
21
+ component.setProperty('middle', 'Earl');
22
+ await page.waitForChanges();
23
+ expect(element.textContent).toEqual(`Hello, World! I'm James Earl Quincy`);
24
+ });
25
+ });
26
+ //# sourceMappingURL=my-component.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-component.e2e.js","sourceRoot":"","sources":["../../../src/components/my-component/my-component.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAEhC,MAAM,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAChD,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,KAAK,IAAI,EAAE;QAChD,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAEhC,MAAM,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAC;QACvD,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAClD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;QACxD,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAE1D,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;QAE/D,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACxC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,gCAAgC,CAAC,CAAC;QAEtE,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACxC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('my-component', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n\n await page.setContent('<my-component></my-component>');\n const element = await page.find('my-component');\n expect(element).toHaveClass('hydrated');\n });\n\n it('renders changes to the name data', async () => {\n const page = await newE2EPage();\n\n await page.setContent('<my-component></my-component>');\n const component = await page.find('my-component');\n const element = await page.find('my-component >>> div');\n expect(element.textContent).toEqual(`Hello, World! I'm `);\n\n component.setProperty('first', 'James');\n await page.waitForChanges();\n expect(element.textContent).toEqual(`Hello, World! I'm James`);\n\n component.setProperty('last', 'Quincy');\n await page.waitForChanges();\n expect(element.textContent).toEqual(`Hello, World! I'm James Quincy`);\n\n component.setProperty('middle', 'Earl');\n await page.waitForChanges();\n expect(element.textContent).toEqual(`Hello, World! I'm James Earl Quincy`);\n });\n});\n"]}
@@ -0,0 +1,83 @@
1
+ import { h } from "@stencil/core";
2
+ import { format } from "../../utils/utils";
3
+ export class MyComponent {
4
+ constructor() {
5
+ this.first = undefined;
6
+ this.middle = undefined;
7
+ this.last = undefined;
8
+ }
9
+ getText() {
10
+ return format(this.first, this.middle, this.last);
11
+ }
12
+ render() {
13
+ return h("div", null, "Hello, World! I'm ", this.getText());
14
+ }
15
+ static get is() { return "my-component"; }
16
+ static get encapsulation() { return "shadow"; }
17
+ static get originalStyleUrls() {
18
+ return {
19
+ "$": ["my-component.css"]
20
+ };
21
+ }
22
+ static get styleUrls() {
23
+ return {
24
+ "$": ["my-component.css"]
25
+ };
26
+ }
27
+ static get properties() {
28
+ return {
29
+ "first": {
30
+ "type": "string",
31
+ "mutable": false,
32
+ "complexType": {
33
+ "original": "string",
34
+ "resolved": "string",
35
+ "references": {}
36
+ },
37
+ "required": false,
38
+ "optional": false,
39
+ "docs": {
40
+ "tags": [],
41
+ "text": "The first name"
42
+ },
43
+ "attribute": "first",
44
+ "reflect": false
45
+ },
46
+ "middle": {
47
+ "type": "string",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "string",
51
+ "resolved": "string",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": "The middle name"
59
+ },
60
+ "attribute": "middle",
61
+ "reflect": false
62
+ },
63
+ "last": {
64
+ "type": "string",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "string",
68
+ "resolved": "string",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": false,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": "The last name"
76
+ },
77
+ "attribute": "last",
78
+ "reflect": false
79
+ }
80
+ };
81
+ }
82
+ }
83
+ //# sourceMappingURL=my-component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-component.js","sourceRoot":"","sources":["../../../src/components/my-component/my-component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAO3C,MAAM,OAAO,WAAW;;;;;;IAgBd,OAAO;QACb,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAED,MAAM;QACJ,OAAO;;YAAwB,IAAI,CAAC,OAAO,EAAE,CAAO,CAAC;IACvD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport { format } from '../../utils/utils';\n\n@Component({\n tag: 'my-component',\n styleUrl: 'my-component.css',\n shadow: true,\n})\nexport class MyComponent {\n /**\n * The first name\n */\n @Prop() first: string;\n\n /**\n * The middle name\n */\n @Prop() middle: string;\n\n /**\n * The last name\n */\n @Prop() last: string;\n\n private getText(): string {\n return format(this.first, this.middle, this.last);\n }\n\n render() {\n return <div>Hello, World! I'm {this.getText()}</div>;\n }\n}\n"]}
@@ -0,0 +1,35 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { MyComponent } from "./my-component";
3
+ describe('my-component', () => {
4
+ it('renders', async () => {
5
+ const { root } = await newSpecPage({
6
+ components: [MyComponent],
7
+ html: '<my-component></my-component>',
8
+ });
9
+ expect(root).toEqualHtml(`
10
+ <my-component>
11
+ <mock:shadow-root>
12
+ <div>
13
+ Hello, World! I'm
14
+ </div>
15
+ </mock:shadow-root>
16
+ </my-component>
17
+ `);
18
+ });
19
+ it('renders with values', async () => {
20
+ const { root } = await newSpecPage({
21
+ components: [MyComponent],
22
+ html: `<my-component first="Stencil" last="'Don't call me a framework' JS"></my-component>`,
23
+ });
24
+ expect(root).toEqualHtml(`
25
+ <my-component first="Stencil" last="'Don't call me a framework' JS">
26
+ <mock:shadow-root>
27
+ <div>
28
+ Hello, World! I'm Stencil 'Don't call me a framework' JS
29
+ </div>
30
+ </mock:shadow-root>
31
+ </my-component>
32
+ `);
33
+ });
34
+ });
35
+ //# sourceMappingURL=my-component.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-component.spec.js","sourceRoot":"","sources":["../../../src/components/my-component/my-component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,WAAW,CAAC;YACjC,UAAU,EAAE,CAAC,WAAW,CAAC;YACzB,IAAI,EAAE,+BAA+B;SACtC,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;KAQxB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE,KAAK,IAAI,EAAE;QACnC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,WAAW,CAAC;YACjC,UAAU,EAAE,CAAC,WAAW,CAAC;YACzB,IAAI,EAAE,qFAAqF;SAC5F,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;KAQxB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { MyComponent } from './my-component';\n\ndescribe('my-component', () => {\n it('renders', async () => {\n const { root } = await newSpecPage({\n components: [MyComponent],\n html: '<my-component></my-component>',\n });\n expect(root).toEqualHtml(`\n <my-component>\n <mock:shadow-root>\n <div>\n Hello, World! I'm\n </div>\n </mock:shadow-root>\n </my-component>\n `);\n });\n\n it('renders with values', async () => {\n const { root } = await newSpecPage({\n components: [MyComponent],\n html: `<my-component first=\"Stencil\" last=\"'Don't call me a framework' JS\"></my-component>`,\n });\n expect(root).toEqualHtml(`\n <my-component first=\"Stencil\" last=\"'Don't call me a framework' JS\">\n <mock:shadow-root>\n <div>\n Hello, World! I'm Stencil 'Don't call me a framework' JS\n </div>\n </mock:shadow-root>\n </my-component>\n `);\n });\n});\n"]}
@@ -0,0 +1,13 @@
1
+ const meta = {
2
+ component: 'my-component',
3
+ parameters: {},
4
+ };
5
+ export default meta;
6
+ export const Example = {
7
+ args: {
8
+ first: 'foo',
9
+ middle: 'bar',
10
+ last: 'baz',
11
+ },
12
+ };
13
+ //# sourceMappingURL=my-component.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-component.stories.js","sourceRoot":"","sources":["../../../src/components/my-component/my-component.stories.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAS;IACjB,SAAS,EAAE,cAAc;IACzB,UAAU,EAAE,EAAE;CACf,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,KAAK;KACZ;CACF,CAAC","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\n\nconst meta: Meta = {\n component: 'my-component',\n parameters: {},\n};\n\nexport default meta;\n\ntype Story = StoryObj;\n\nexport const Example: Story = {\n args: {\n first: 'foo',\n middle: 'bar',\n last: 'baz',\n },\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC","sourcesContent":["export * from './components';\n"]}
@@ -0,0 +1,4 @@
1
+ export function format(first, middle, last) {
2
+ return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
3
+ }
4
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,KAAa,EAAE,MAAc,EAAE,IAAY;IAChE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACjF,CAAC","sourcesContent":["export function format(first: string, middle: string, last: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n"]}
@@ -0,0 +1,16 @@
1
+ import { format } from "./utils";
2
+ describe('format', () => {
3
+ it('returns empty string for no names defined', () => {
4
+ expect(format(undefined, undefined, undefined)).toEqual('');
5
+ });
6
+ it('formats just first names', () => {
7
+ expect(format('Joseph', undefined, undefined)).toEqual('Joseph');
8
+ });
9
+ it('formats first and last names', () => {
10
+ expect(format('Joseph', undefined, 'Publique')).toEqual('Joseph Publique');
11
+ });
12
+ it('formats first, middle and last names', () => {
13
+ expect(format('Joseph', 'Quincy', 'Publique')).toEqual('Joseph Quincy Publique');
14
+ });
15
+ });
16
+ //# sourceMappingURL=utils.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.spec.js","sourceRoot":"","sources":["../../src/utils/utils.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACtB,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACnD,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAClC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC9C,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACnF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { format } from './utils';\n\ndescribe('format', () => {\n it('returns empty string for no names defined', () => {\n expect(format(undefined, undefined, undefined)).toEqual('');\n });\n\n it('formats just first names', () => {\n expect(format('Joseph', undefined, undefined)).toEqual('Joseph');\n });\n\n it('formats first and last names', () => {\n expect(format('Joseph', undefined, 'Publique')).toEqual('Joseph Publique');\n });\n\n it('formats first, middle and last names', () => {\n expect(format('Joseph', 'Quincy', 'Publique')).toEqual('Joseph Quincy Publique');\n });\n});\n"]}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
6
+
7
+ /**
8
+ * Used to manually set the base path where assets can be found.
9
+ * If the script is used as "module", it's recommended to use "import.meta.url",
10
+ * such as "setAssetPath(import.meta.url)". Other options include
11
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
12
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
13
+ * But do note that this configuration depends on how your script is bundled, or lack of
14
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
15
+ * will have to ensure the static assets are copied to its build directory.
16
+ */
17
+ export declare const setAssetPath: (path: string) => void;
18
+
19
+ /**
20
+ * Used to specify a nonce value that corresponds with an application's CSP.
21
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
22
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
23
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
24
+ * will result in the same behavior.
25
+ */
26
+ export declare const setNonce: (nonce: string) => void
27
+
28
+ export interface SetPlatformOptions {
29
+ raf?: (c: FrameRequestCallback) => number;
30
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
31
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
32
+ }
33
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
@@ -0,0 +1,3 @@
1
+ export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"file":"index.js","mappings":"","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface MyComponent extends Components.MyComponent, HTMLElement {}
4
+ export const MyComponent: {
5
+ prototype: MyComponent;
6
+ new (): MyComponent;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,49 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+
3
+ function format(first, middle, last) {
4
+ return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
5
+ }
6
+
7
+ const myComponentCss = ":host{display:block}";
8
+
9
+ const MyComponent$1 = /*@__PURE__*/ proxyCustomElement(class MyComponent extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ this.__registerHost();
13
+ this.__attachShadow();
14
+ this.first = undefined;
15
+ this.middle = undefined;
16
+ this.last = undefined;
17
+ }
18
+ getText() {
19
+ return format(this.first, this.middle, this.last);
20
+ }
21
+ render() {
22
+ return h("div", null, "Hello, World! I'm ", this.getText());
23
+ }
24
+ static get style() { return myComponentCss; }
25
+ }, [1, "my-component", {
26
+ "first": [1],
27
+ "middle": [1],
28
+ "last": [1]
29
+ }]);
30
+ function defineCustomElement$1() {
31
+ if (typeof customElements === "undefined") {
32
+ return;
33
+ }
34
+ const components = ["my-component"];
35
+ components.forEach(tagName => { switch (tagName) {
36
+ case "my-component":
37
+ if (!customElements.get(tagName)) {
38
+ customElements.define(tagName, MyComponent$1);
39
+ }
40
+ break;
41
+ } });
42
+ }
43
+
44
+ const MyComponent = MyComponent$1;
45
+ const defineCustomElement = defineCustomElement$1;
46
+
47
+ export { MyComponent, defineCustomElement };
48
+
49
+ //# sourceMappingURL=my-component.js.map
@@ -0,0 +1 @@
1
+ {"file":"my-component.js","mappings":";;SAAgB,MAAM,CAAC,KAAa,EAAE,MAAc,EAAE,IAAY;IAChE,OAAO,CAAC,KAAK,IAAI,EAAE,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,GAAG,IAAI,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;AACjF;;ACFA,MAAM,cAAc,GAAG,sBAAsB;;MCQhCA,aAAW;;;;;;;;;IAgBd,OAAO;QACb,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;KACnD;IAED,MAAM;QACJ,OAAO,qCAAwB,IAAI,CAAC,OAAO,EAAE,CAAO,CAAC;KACtD;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["MyComponent"],"sources":["src/utils/utils.ts","src/components/my-component/my-component.css?tag=my-component&encapsulation=shadow","src/components/my-component/my-component.tsx"],"sourcesContent":["export function format(first: string, middle: string, last: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n",":host {\n display: block;\n}\n","import { Component, Prop, h } from '@stencil/core';\nimport { format } from '../../utils/utils';\n\n@Component({\n tag: 'my-component',\n styleUrl: 'my-component.css',\n shadow: true,\n})\nexport class MyComponent {\n /**\n * The first name\n */\n @Prop() first: string;\n\n /**\n * The middle name\n */\n @Prop() middle: string;\n\n /**\n * The last name\n */\n @Prop() last: string;\n\n private getText(): string {\n return format(this.first, this.middle, this.last);\n }\n\n render() {\n return <div>Hello, World! I'm {this.getText()}</div>;\n }\n}\n"],"version":3}
@@ -0,0 +1,20 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-72708389.js';
2
+ export { s as setNonce } from './index-72708389.js';
3
+
4
+ /*
5
+ Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com
6
+ */
7
+ const patchBrowser = () => {
8
+ const importMeta = import.meta.url;
9
+ const opts = {};
10
+ if (importMeta !== '') {
11
+ opts.resourcesUrl = new URL('.', importMeta).href;
12
+ }
13
+ return promiseResolve(opts);
14
+ };
15
+
16
+ patchBrowser().then(options => {
17
+ return bootstrapLazy([["my-component",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]]], options);
18
+ });
19
+
20
+ //# sourceMappingURL=aico-components.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-components.js","mappings":";;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}