@siemens/ix-aggrid 1.0.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/LICENSE +21 -0
- package/dist/cjs/ag-grid-community.auto.esm-6aabb45a.js +52356 -0
- package/dist/cjs/index-15264d0e.js +1210 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/ix-ag-grid_2.cjs.entry.js +72 -0
- package/dist/cjs/ix-aggrid.cjs.js +19 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/ix-ag-grid/ix-ag-grid.js +67 -0
- package/dist/collection/components/my-component/my-component.css +11 -0
- package/dist/collection/components/my-component/my-component.js +47 -0
- package/dist/collection/index.js +9 -0
- package/dist/collection/utils/utils.js +11 -0
- package/dist/components/index.d.ts +23 -0
- package/dist/components/index.js +4 -0
- package/dist/components/ix-ag-grid.d.ts +11 -0
- package/dist/components/ix-ag-grid.js +6 -0
- package/dist/components/ix-ag-grid2.js +52404 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/components/my-component.js +57 -0
- package/dist/esm/ag-grid-community.auto.esm-02be9483.js +52354 -0
- package/dist/esm/index-bc7ead06.js +1183 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/ix-ag-grid_2.entry.js +67 -0
- package/dist/esm/ix-aggrid.js +17 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/ix-aggrid/index.esm.js +1 -0
- package/dist/ix-aggrid/ix-aggrid.css +1 -0
- package/dist/ix-aggrid/ix-aggrid.esm.js +1 -0
- package/dist/ix-aggrid/p-69c6cd58.entry.js +1 -0
- package/dist/ix-aggrid/p-8689a100.js +304 -0
- package/dist/ix-aggrid/p-d40c6577.js +2 -0
- package/dist/types/components/ix-ag-grid/ix-ag-grid.d.ts +10 -0
- package/dist/types/components/my-component/my-component.d.ts +5 -0
- package/dist/types/components.d.ts +53 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +40 -0
|
@@ -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,57 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './ix-ag-grid2.js';
|
|
3
|
+
|
|
4
|
+
const myComponentCss = ".sc-my-component-h{display:block}";
|
|
5
|
+
|
|
6
|
+
const columnDefs = [
|
|
7
|
+
{ field: 'make', resizable: true, checkboxSelection: true },
|
|
8
|
+
{ field: 'model', resizable: true, sortable: true, filter: true },
|
|
9
|
+
{ field: 'price', resizable: true },
|
|
10
|
+
];
|
|
11
|
+
const rowData = [
|
|
12
|
+
{ make: 'Toyota', model: 'Celica', price: 35000, checked: false },
|
|
13
|
+
{ make: 'Ford', model: 'Mondeo', price: 32000, checked: true },
|
|
14
|
+
{ make: 'Porsche', model: 'Boxster', price: 72000, checked: false },
|
|
15
|
+
];
|
|
16
|
+
const MyComponent$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this.__registerHost();
|
|
20
|
+
this.gridOptions = {
|
|
21
|
+
columnDefs: columnDefs,
|
|
22
|
+
rowData: rowData,
|
|
23
|
+
rowSelection: 'multiple',
|
|
24
|
+
suppressCellFocus: true,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return (h(Host, { style: {
|
|
29
|
+
height: '100%',
|
|
30
|
+
width: '100%',
|
|
31
|
+
} }, h("ix-ag-grid", { gridOptions: this.gridOptions })));
|
|
32
|
+
}
|
|
33
|
+
static get style() { return myComponentCss; }
|
|
34
|
+
}, [2, "my-component"]);
|
|
35
|
+
function defineCustomElement$1() {
|
|
36
|
+
if (typeof customElements === "undefined") {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const components = ["my-component", "ix-ag-grid"];
|
|
40
|
+
components.forEach(tagName => { switch (tagName) {
|
|
41
|
+
case "my-component":
|
|
42
|
+
if (!customElements.get(tagName)) {
|
|
43
|
+
customElements.define(tagName, MyComponent$1);
|
|
44
|
+
}
|
|
45
|
+
break;
|
|
46
|
+
case "ix-ag-grid":
|
|
47
|
+
if (!customElements.get(tagName)) {
|
|
48
|
+
defineCustomElement$2();
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
} });
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const MyComponent = MyComponent$1;
|
|
55
|
+
const defineCustomElement = defineCustomElement$1;
|
|
56
|
+
|
|
57
|
+
export { MyComponent, defineCustomElement };
|