llm-testrunner-components 1.0.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/LICENSE +21 -0
- package/README.md +136 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/current-time.my-component.entry.cjs.js.map +1 -0
- package/dist/cjs/current-time_2.cjs.entry.js +67 -0
- package/dist/cjs/current-time_2.cjs.entry.js.map +1 -0
- package/dist/cjs/index-CCrH7f-W.js +1293 -0
- package/dist/cjs/index-CCrH7f-W.js.map +1 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/llm-testrunner-components.cjs.js +28 -0
- package/dist/cjs/llm-testrunner-components.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +16 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/my-component/current-time.js +35 -0
- package/dist/collection/components/my-component/current-time.js.map +1 -0
- package/dist/collection/components/my-component/my-component.css +3 -0
- package/dist/collection/components/my-component/my-component.js +96 -0
- package/dist/collection/components/my-component/my-component.js.map +1 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/current-time.d.ts +11 -0
- package/dist/components/current-time.js +9 -0
- package/dist/components/current-time.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +10 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/components/my-component.js +63 -0
- package/dist/components/my-component.js.map +1 -0
- package/dist/components/p-CbvWSaCI.js +53 -0
- package/dist/components/p-CbvWSaCI.js.map +1 -0
- package/dist/components/p-DnDi6fKi.js +1101 -0
- package/dist/components/p-DnDi6fKi.js.map +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +6 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/current-time.my-component.entry.js.map +1 -0
- package/dist/esm/current-time_2.entry.js +64 -0
- package/dist/esm/current-time_2.entry.js.map +1 -0
- package/dist/esm/index-0jlGA6MK.js +1287 -0
- package/dist/esm/index-0jlGA6MK.js.map +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/llm-testrunner-components.js +24 -0
- package/dist/esm/llm-testrunner-components.js.map +1 -0
- package/dist/esm/loader.js +14 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/llm-testrunner-components/current-time.my-component.entry.esm.js.map +1 -0
- package/dist/llm-testrunner-components/index.esm.js +2 -0
- package/dist/llm-testrunner-components/index.esm.js.map +1 -0
- package/dist/llm-testrunner-components/llm-testrunner-components.esm.js +2 -0
- package/dist/llm-testrunner-components/llm-testrunner-components.esm.js.map +1 -0
- package/dist/llm-testrunner-components/loader.esm.js.map +1 -0
- package/dist/llm-testrunner-components/p-0jlGA6MK.js +3 -0
- package/dist/llm-testrunner-components/p-0jlGA6MK.js.map +1 -0
- package/dist/llm-testrunner-components/p-15e5e0fe.entry.js +2 -0
- package/dist/llm-testrunner-components/p-15e5e0fe.entry.js.map +1 -0
- package/dist/llm-testrunner-components/p-DQuL1Twl.js +2 -0
- package/dist/llm-testrunner-components/p-DQuL1Twl.js.map +1 -0
- package/dist/types/components/my-component/current-time.d.ts +7 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components.d.ts +74 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1709 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +56 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-0jlGA6MK.js';
|
|
2
|
+
import { format } from './index.js';
|
|
3
|
+
|
|
4
|
+
const CurrentTime = class {
|
|
5
|
+
constructor(hostRef) {
|
|
6
|
+
registerInstance(this, hostRef);
|
|
7
|
+
}
|
|
8
|
+
// `timer` is not decorated with `@State()`, as
|
|
9
|
+
// we do not wish to trigger a rerender when its
|
|
10
|
+
// value changes
|
|
11
|
+
timer;
|
|
12
|
+
// `currentTime` is decorated with `@State()`,
|
|
13
|
+
// as we need to trigger a rerender when its
|
|
14
|
+
// value changes to show the latest time
|
|
15
|
+
currentTime = Date.now();
|
|
16
|
+
connectedCallback() {
|
|
17
|
+
// the assignment to `this.timer` will not
|
|
18
|
+
// trigger a re-render
|
|
19
|
+
this.timer = window.setInterval(() => {
|
|
20
|
+
// the assignment to `this.currentTime`
|
|
21
|
+
// will trigger a re-render
|
|
22
|
+
this.currentTime = Date.now();
|
|
23
|
+
}, 1000);
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() {
|
|
26
|
+
window.clearInterval(this.timer);
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
const time = new Date(this.currentTime).toLocaleTimeString();
|
|
30
|
+
return (h("span", { key: '45b0df3ce3817ac64d22582b1a45c188b61656a4' }, time));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const myComponentCss = ":host{display:block}";
|
|
35
|
+
|
|
36
|
+
const MyComponent = class {
|
|
37
|
+
constructor(hostRef) {
|
|
38
|
+
registerInstance(this, hostRef);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The first name
|
|
42
|
+
*/
|
|
43
|
+
first;
|
|
44
|
+
/**
|
|
45
|
+
* The middle name
|
|
46
|
+
*/
|
|
47
|
+
middle;
|
|
48
|
+
/**
|
|
49
|
+
* The last name
|
|
50
|
+
*/
|
|
51
|
+
last;
|
|
52
|
+
getText() {
|
|
53
|
+
return format(this.first, this.middle, this.last);
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
return (h("div", { key: '538552b1fa1db142ea88eb71047cd1da9fbfb224' }, "Hello, World! I'm ", this.getText(), " ", h("br", { key: 'f27acd01ea5f08223805a7f79b0763d45a2e70bf' }), "Current time: ", h("current-time", { key: '615f447c114321de1a748703672a3cf9217df591' })));
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
MyComponent.style = myComponentCss;
|
|
60
|
+
|
|
61
|
+
export { CurrentTime as current_time, MyComponent as my_component };
|
|
62
|
+
//# sourceMappingURL=current-time.my-component.entry.js.map
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=current-time_2.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"current-time.my-component.entry.js","mappings":";;;MAMa,WAAW,GAAA,MAAA;;;;;;;AAIpB,IAAA,KAAK;;;;AAKI,IAAA,WAAW,GAAW,IAAI,CAAC,GAAG,EAAE;IAEzC,iBAAiB,GAAA;;;QAGb,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,MAAK;;;AAGjC,YAAA,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,EAAE;SAChC,EAAE,IAAI,CAAC;;IAGZ,oBAAoB,GAAA;AAChB,QAAA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC;;IAGpC,MAAM,GAAA;AACF,QAAA,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,kBAAkB,EAAE;AAE5D,QAAA,QACI,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAO,IAAI,CAAQ;;;;ACnC/B,MAAM,cAAc,GAAG,sBAAsB;;MCQhC,WAAW,GAAA,MAAA;;;;AACtB;;AAEG;AACK,IAAA,KAAK;AAEb;;AAEG;AACK,IAAA,MAAM;AAEd;;AAEG;AACK,IAAA,IAAI;IAEJ,OAAO,GAAA;AACb,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC;;IAGnD,MAAM,GAAA;QACJ,QACE,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,wBACqB,IAAI,CAAC,OAAO,EAAE,OAAE,CAAM,CAAA,IAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,oBAC3B,CAAgB,CAAA,cAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CAC1B;;;;;;;","names":[],"sources":["src/components/my-component/current-time.tsx","src/components/my-component/my-component.css?tag=my-component&encapsulation=shadow","src/components/my-component/my-component.tsx"],"sourcesContent":["// First, we import State from '@stencil/core'\nimport { Component, State, h } from '@stencil/core';\n\n@Component({\n tag: 'current-time',\n})\nexport class CurrentTime {\n // `timer` is not decorated with `@State()`, as\n // we do not wish to trigger a rerender when its\n // value changes\n timer: number;\n\n // `currentTime` is decorated with `@State()`,\n // as we need to trigger a rerender when its\n // value changes to show the latest time\n @State() currentTime: number = Date.now();\n\n connectedCallback() {\n // the assignment to `this.timer` will not\n // trigger a re-render\n this.timer = window.setInterval(() => {\n // the assignment to `this.currentTime`\n // will trigger a re-render\n this.currentTime = Date.now();\n }, 1000);\n }\n\n disconnectedCallback() {\n window.clearInterval(this.timer);\n }\n\n render() {\n const time = new Date(this.currentTime).toLocaleTimeString();\n\n return (\n <span>{time}</span>\n );\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 (\n <div>\n Hello, World! I'm {this.getText()} <br />\n Current time: <current-time />\n </div>\n );\n }\n}\n"],"version":3}
|