@siemens/ix-aggrid 2.1.0-beta.0 → 2.1.0-beta.2
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/README.md +1 -1
- package/dist/ix-aggrid/ix-aggrid.css +1 -1
- package/package.json +20 -25
- package/dist/cjs/ag-grid-community.auto.esm-9ea84b71.js +0 -50824
- package/dist/cjs/ag-grid-community.auto.esm-9ea84b71.js.map +0 -1
- package/dist/cjs/index-955a464c.js +0 -1324
- package/dist/cjs/index-955a464c.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -6
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/ix-ag-grid.cjs.entry.js +0 -43
- package/dist/cjs/ix-ag-grid.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-aggrid.cjs.js +0 -28
- package/dist/cjs/ix-aggrid.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -24
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/my-component.cjs.entry.js +0 -21
- package/dist/cjs/my-component.cjs.entry.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -13
- package/dist/collection/components/ix-ag-grid/ix-ag-grid.js +0 -71
- package/dist/collection/components/ix-ag-grid/ix-ag-grid.js.map +0 -1
- package/dist/collection/components/my-component/my-component.css +0 -11
- package/dist/collection/components/my-component/my-component.js +0 -27
- package/dist/collection/components/my-component/my-component.js.map +0 -1
- package/dist/collection/components/tests/utils/test/index.js +0 -11
- package/dist/collection/components/tests/utils/test/index.js.map +0 -1
- package/dist/collection/components/tests/utils/test/page.js +0 -35
- package/dist/collection/components/tests/utils/test/page.js.map +0 -1
- package/dist/collection/components/tests/utils/test/theme-switcher.js +0 -15
- package/dist/collection/index.js +0 -10
- package/dist/collection/index.js.map +0 -1
- package/dist/components/ag-grid-community.auto.esm.js +0 -50822
- package/dist/components/ag-grid-community.auto.esm.js.map +0 -1
- package/dist/components/index.d.ts +0 -27
- package/dist/components/index.js +0 -4
- package/dist/components/index.js.map +0 -1
- package/dist/components/ix-ag-grid.d.ts +0 -11
- package/dist/components/ix-ag-grid.js +0 -58
- package/dist/components/ix-ag-grid.js.map +0 -1
- package/dist/components/my-component.d.ts +0 -11
- package/dist/components/my-component.js +0 -34
- package/dist/components/my-component.js.map +0 -1
- package/dist/esm/ag-grid-community.auto.esm-c5d0b4c8.js +0 -50822
- package/dist/esm/ag-grid-community.auto.esm-c5d0b4c8.js.map +0 -1
- package/dist/esm/index-6b38d2c8.js +0 -1296
- package/dist/esm/index-6b38d2c8.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/ix-ag-grid.entry.js +0 -39
- package/dist/esm/ix-ag-grid.entry.js.map +0 -1
- package/dist/esm/ix-aggrid.js +0 -23
- package/dist/esm/ix-aggrid.js.map +0 -1
- package/dist/esm/loader.js +0 -20
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/my-component.entry.js +0 -17
- package/dist/esm/my-component.entry.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/ix-aggrid/index.esm.js +0 -2
- package/dist/ix-aggrid/index.esm.js.map +0 -1
- package/dist/ix-aggrid/ix-aggrid.esm.js +0 -2
- package/dist/ix-aggrid/ix-aggrid.esm.js.map +0 -1
- package/dist/ix-aggrid/p-24ecd71e.entry.js +0 -2
- package/dist/ix-aggrid/p-24ecd71e.entry.js.map +0 -1
- package/dist/ix-aggrid/p-28090eb7.js +0 -3
- package/dist/ix-aggrid/p-28090eb7.js.map +0 -1
- package/dist/ix-aggrid/p-38388e1b.js +0 -1429
- package/dist/ix-aggrid/p-38388e1b.js.map +0 -1
- package/dist/ix-aggrid/p-618d1bd4.entry.js +0 -2
- package/dist/ix-aggrid/p-618d1bd4.entry.js.map +0 -1
- package/dist/types/components/ix-ag-grid/ix-ag-grid.d.ts +0 -10
- package/dist/types/components/my-component/my-component.d.ts +0 -3
- package/dist/types/components/tests/utils/test/index.d.ts +0 -2
- package/dist/types/components/tests/utils/test/page.d.ts +0 -3
- package/dist/types/components.d.ts +0 -54
- package/dist/types/index.d.ts +0 -2
- package/dist/types/stencil-public-runtime.d.ts +0 -1638
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -21
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -11
package/dist/cjs/loader.cjs.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-955a464c.js');
|
|
6
|
-
|
|
7
|
-
/*
|
|
8
|
-
Stencil Client Patch Esm v3.2.2 | MIT Licensed | https://stenciljs.com
|
|
9
|
-
*/
|
|
10
|
-
const patchEsm = () => {
|
|
11
|
-
return index.promiseResolve();
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const defineCustomElements = (win, options) => {
|
|
15
|
-
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
|
-
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["ix-ag-grid.cjs",[[2,"ix-ag-grid",{"gridOptions":[16]}]]],["my-component.cjs",[[2,"my-component"]]]], options);
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.setNonce = index.setNonce;
|
|
22
|
-
exports.defineCustomElements = defineCustomElements;
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=loader.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"loader.cjs.js","mappings":";;;;;;AAAA;AACA;AACA;AAGA,MAAM,QAAQ,GAAG,MAAM;AAiBvB,IAAI,OAAOA,oBAAc,EAAE,CAAC;AAC5B,CAAC;;ACnBW,MAAC,oBAAoB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK;AACtD,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;AAC9D,EAAE,OAAO,QAAQ,EAAE,CAAC,IAAI,CAAC,MAAM;AAE/B,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,GAAG,CAAC,CAAC;AACL;;;;;","names":["promiseResolve","bootstrapLazy"],"sources":["../../node_modules/@stencil/core/internal/client/patch-esm.js","@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Esm v3.2.2 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD } from '@stencil/core/internal/app-data';\nimport { CSS, plt, win, promiseResolve } from '@stencil/core';\nconst patchEsm = () => {\n // NOTE!! This fn cannot use async/await!\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n // @ts-ignore\n if (BUILD.cssVarShim && !(CSS && CSS.supports && CSS.supports('color', 'var(--c)'))) {\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-css-shim\" */ './css-shim.js').then(() => {\n if ((plt.$cssShim$ = win.__cssshim)) {\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n return plt.$cssShim$.i();\n }\n else {\n // for better minification\n return 0;\n }\n });\n }\n return promiseResolve();\n};\nexport { patchEsm };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchEsm } from '@stencil/core/internal/client/patch-esm';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = (win, options) => {\n if (typeof window === 'undefined') return Promise.resolve();\n return patchEsm().then(() => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n });\n};\n"],"version":3}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-955a464c.js');
|
|
6
|
-
|
|
7
|
-
const myComponentCss = ".sc-my-component-h{display:block}";
|
|
8
|
-
|
|
9
|
-
const MyComponent = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return index.h(index.Host, null);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
MyComponent.style = myComponentCss;
|
|
18
|
-
|
|
19
|
-
exports.my_component = MyComponent;
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=my-component.cjs.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"my-component.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,cAAc,GAAG,mCAAmC;;MCgB7C,WAAW;;;;EACtB,MAAM;IACJ,OAAOA,QAACC,UAAI,OAAQ,CAAC;GACtB;;;;;;","names":["h","Host"],"sources":["./src/components/my-component/my-component.scss?tag=my-component&encapsulation=scoped","./src/components/my-component/my-component.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host } from '@stencil/core';\n\n@Component({\n tag: 'my-component',\n styleUrl: 'my-component.scss',\n scoped: true,\n})\nexport class MyComponent {\n render() {\n return <Host></Host>;\n }\n}\n"],"version":3}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"entries": [
|
|
3
|
-
"./components/ix-ag-grid/ix-ag-grid.js",
|
|
4
|
-
"./components/my-component/my-component.js"
|
|
5
|
-
],
|
|
6
|
-
"compiler": {
|
|
7
|
-
"name": "@stencil/core",
|
|
8
|
-
"version": "3.2.2",
|
|
9
|
-
"typescriptVersion": "4.9.5"
|
|
10
|
-
},
|
|
11
|
-
"collections": [],
|
|
12
|
-
"bundles": []
|
|
13
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
|
-
*
|
|
4
|
-
* SPDX-License-Identifier: MIT
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
import { h, Host } from '@stencil/core';
|
|
10
|
-
import { Grid } from 'ag-grid-community';
|
|
11
|
-
export class IxAgGrid {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.gridOptions = undefined;
|
|
14
|
-
}
|
|
15
|
-
componentDidLoad() {
|
|
16
|
-
this.initializeGrid();
|
|
17
|
-
}
|
|
18
|
-
initializeGrid() {
|
|
19
|
-
if (!this.gridOptions) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
if (!this.grid) {
|
|
23
|
-
const gridDiv = this.host.querySelector('div.ag-theme-ix');
|
|
24
|
-
this.grid = new Grid(gridDiv, this.gridOptions);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
disconnectedCallback() {
|
|
28
|
-
var _a;
|
|
29
|
-
(_a = this.grid) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
30
|
-
}
|
|
31
|
-
render() {
|
|
32
|
-
return (h(Host, null, h("div", { style: {
|
|
33
|
-
height: '100%',
|
|
34
|
-
width: '100%',
|
|
35
|
-
}, class: "ag-theme-alpine-dark ag-theme-ix" })));
|
|
36
|
-
}
|
|
37
|
-
static get is() { return "ix-ag-grid"; }
|
|
38
|
-
static get encapsulation() { return "scoped"; }
|
|
39
|
-
static get properties() {
|
|
40
|
-
return {
|
|
41
|
-
"gridOptions": {
|
|
42
|
-
"type": "unknown",
|
|
43
|
-
"mutable": false,
|
|
44
|
-
"complexType": {
|
|
45
|
-
"original": "GridOptions",
|
|
46
|
-
"resolved": "GridOptions<any>",
|
|
47
|
-
"references": {
|
|
48
|
-
"GridOptions": {
|
|
49
|
-
"location": "import",
|
|
50
|
-
"path": "ag-grid-community"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"required": false,
|
|
55
|
-
"optional": false,
|
|
56
|
-
"docs": {
|
|
57
|
-
"tags": [],
|
|
58
|
-
"text": ""
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
static get elementRef() { return "host"; }
|
|
64
|
-
static get watchers() {
|
|
65
|
-
return [{
|
|
66
|
-
"propName": "gridOptions",
|
|
67
|
-
"methodName": "initializeGrid"
|
|
68
|
-
}];
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=ix-ag-grid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ix-ag-grid.js","sourceRoot":"","sources":["../../../src/components/ix-ag-grid/ix-ag-grid.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AAMtD,MAAM,OAAO,QAAQ;;;;EAQnB,gBAAgB;IACd,IAAI,CAAC,cAAc,EAAE,CAAC;EACxB,CAAC;EAGO,cAAc;IACpB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;MACrB,OAAO;KACR;IAED,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;MACd,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAgB,CAAC;MAC1E,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;KACjD;EACH,CAAC;EAED,oBAAoB;;IAClB,MAAA,IAAI,CAAC,IAAI,0CAAE,OAAO,EAAE,CAAC;EACvB,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,WACE,KAAK,EAAE;UACL,MAAM,EAAE,MAAM;UACd,KAAK,EAAE,MAAM;SACd,EACD,KAAK,EAAC,kCAAkC,GACnC,CACF,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, Element, h, Host, Prop, Watch } from '@stencil/core';\nimport { Grid, GridOptions } from 'ag-grid-community';\n\n@Component({\n tag: 'ix-ag-grid',\n scoped: true,\n})\nexport class IxAgGrid {\n @Element() host: HTMLIxAgGridElement;\n\n @Prop()\n gridOptions: GridOptions;\n\n grid: Grid;\n\n componentDidLoad() {\n this.initializeGrid();\n }\n\n @Watch('gridOptions')\n private initializeGrid() {\n if (!this.gridOptions) {\n return;\n }\n\n if (!this.grid) {\n const gridDiv = this.host.querySelector('div.ag-theme-ix') as HTMLElement;\n this.grid = new Grid(gridDiv, this.gridOptions);\n }\n }\n\n disconnectedCallback() {\n this.grid?.destroy();\n }\n\n render() {\n return (\n <Host>\n <div\n style={{\n height: '100%',\n width: '100%',\n }}\n class=\"ag-theme-alpine-dark ag-theme-ix\"\n ></div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
|
-
*
|
|
4
|
-
* SPDX-License-Identifier: MIT
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
import { h, Host } from '@stencil/core';
|
|
10
|
-
export class MyComponent {
|
|
11
|
-
render() {
|
|
12
|
-
return h(Host, null);
|
|
13
|
-
}
|
|
14
|
-
static get is() { return "my-component"; }
|
|
15
|
-
static get encapsulation() { return "scoped"; }
|
|
16
|
-
static get originalStyleUrls() {
|
|
17
|
-
return {
|
|
18
|
-
"$": ["my-component.scss"]
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
static get styleUrls() {
|
|
22
|
-
return {
|
|
23
|
-
"$": ["my-component.css"]
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=my-component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"my-component.js","sourceRoot":"","sources":["../../../src/components/my-component/my-component.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,WAAW;EACtB,MAAM;IACJ,OAAO,EAAC,IAAI,OAAQ,CAAC;EACvB,CAAC;;;;;;;;;CACF","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host } from '@stencil/core';\n\n@Component({\n tag: 'my-component',\n styleUrl: 'my-component.scss',\n scoped: true,\n})\nexport class MyComponent {\n render() {\n return <Host></Host>;\n }\n}\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
|
-
*
|
|
4
|
-
* SPDX-License-Identifier: MIT
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
export * from './page';
|
|
10
|
-
export { themeSwitcher } from './theme-switcher';
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/tests/utils/test/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nexport * from './page';\nexport { themeSwitcher } from './theme-switcher';\n"]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
|
-
*
|
|
4
|
-
* SPDX-License-Identifier: MIT
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
import { test as base } from '@playwright/test';
|
|
10
|
-
async function extendPageFixture(page, testInfo) {
|
|
11
|
-
const originalGoto = page.goto.bind(page);
|
|
12
|
-
const originalSceenshot = page.screenshot.bind(page);
|
|
13
|
-
const theme = testInfo.project.metadata.theme;
|
|
14
|
-
testInfo.annotations.push({
|
|
15
|
-
type: theme,
|
|
16
|
-
});
|
|
17
|
-
page.goto = async (url, options) => {
|
|
18
|
-
const response = await originalGoto(`http://127.0.0.1:8080/src/components/tests/${url}?theme=${theme}`, options);
|
|
19
|
-
// Inital timeout for webKit to render Web Components
|
|
20
|
-
await page.waitForTimeout(1000);
|
|
21
|
-
return response;
|
|
22
|
-
};
|
|
23
|
-
page.screenshot = async (options) => {
|
|
24
|
-
await page.waitForTimeout(150);
|
|
25
|
-
return originalSceenshot(options);
|
|
26
|
-
};
|
|
27
|
-
return page;
|
|
28
|
-
}
|
|
29
|
-
export const regressionTest = base.extend({
|
|
30
|
-
page: async ({ page }, use, testInfo) => {
|
|
31
|
-
page = await extendPageFixture(page, testInfo);
|
|
32
|
-
await use(page);
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=page.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../../../src/components/tests/utils/test/page.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAA+B,IAAI,IAAI,IAAI,EAAY,MAAM,kBAAkB,CAAC;AAEvF,KAAK,UAAU,iBAAiB,CAAC,IAAU,EAAE,QAAkB;EAC7D,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;EAC1C,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;EACrD,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC;EAC9C,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC;IACxB,IAAI,EAAE,KAAK;GACZ,CAAC,CAAC;EACH,IAAI,CAAC,IAAI,GAAG,KAAK,EAAE,GAAW,EAAE,OAAO,EAAE,EAAE;IACzC,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,8CAA8C,GAAG,UAAU,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACjH,qDAAqD;IACrD,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAChC,OAAO,QAAQ,CAAC;EAClB,CAAC,CAAC;EAEF,IAAI,CAAC,UAAU,GAAG,KAAK,EAAE,OAA+B,EAAE,EAAE;IAC1D,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAC/B,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;EACpC,CAAC,CAAC;EAEF,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC;EACxC,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;IACtC,IAAI,GAAG,MAAM,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC/C,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC;EAClB,CAAC;CACF,CAAC,CAAC","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Page, PageScreenshotOptions, test as base, TestInfo } from '@playwright/test';\n\nasync function extendPageFixture(page: Page, testInfo: TestInfo) {\n const originalGoto = page.goto.bind(page);\n const originalSceenshot = page.screenshot.bind(page);\n const theme = testInfo.project.metadata.theme;\n testInfo.annotations.push({\n type: theme,\n });\n page.goto = async (url: string, options) => {\n const response = await originalGoto(`http://127.0.0.1:8080/src/components/tests/${url}?theme=${theme}`, options);\n // Inital timeout for webKit to render Web Components\n await page.waitForTimeout(1000);\n return response;\n };\n\n page.screenshot = async (options?: PageScreenshotOptions) => {\n await page.waitForTimeout(150);\n return originalSceenshot(options);\n };\n\n return page;\n}\n\nexport const regressionTest = base.extend({\n page: async ({ page }, use, testInfo) => {\n page = await extendPageFixture(page, testInfo);\n await use(page);\n },\n});\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
|
-
*
|
|
4
|
-
* SPDX-License-Identifier: MIT
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
export const themeSwitcher = () => {
|
|
10
|
-
const searchParams = new URLSearchParams(location.search);
|
|
11
|
-
if (searchParams.has('theme')) {
|
|
12
|
-
const theme = searchParams.get('theme');
|
|
13
|
-
document.body.className = theme;
|
|
14
|
-
}
|
|
15
|
-
};
|
package/dist/collection/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
|
-
*
|
|
4
|
-
* SPDX-License-Identifier: MIT
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
import 'ag-grid-community';
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,mBAAmB,CAAC","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport 'ag-grid-community';\nexport { Components, JSX } from './components';\n"]}
|