@siemens/ix-aggrid 1.1.0-beta.2 → 1.1.0-beta.4

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 (52) hide show
  1. package/dist/cjs/ag-grid-community.auto.esm-42c6bc63.js +52604 -0
  2. package/dist/cjs/index-5b0f17d6.js +1228 -0
  3. package/dist/cjs/index.cjs.js +4 -0
  4. package/dist/cjs/ix-ag-grid_2.cjs.entry.js +72 -0
  5. package/dist/cjs/ix-aggrid.cjs.js +19 -0
  6. package/dist/cjs/loader.cjs.js +21 -0
  7. package/dist/collection/collection-manifest.json +13 -0
  8. package/dist/collection/components/ix-ag-grid/ix-ag-grid.js +67 -0
  9. package/dist/collection/components/my-component/my-component.css +11 -0
  10. package/dist/collection/components/my-component/my-component.js +47 -0
  11. package/dist/collection/index.js +9 -0
  12. package/dist/collection/utils/utils.js +11 -0
  13. package/dist/components/index.d.ts +23 -0
  14. package/dist/components/index.js +4 -0
  15. package/dist/components/ix-ag-grid.d.ts +11 -0
  16. package/dist/components/ix-ag-grid.js +6 -0
  17. package/dist/components/ix-ag-grid2.js +52652 -0
  18. package/dist/components/my-component.d.ts +11 -0
  19. package/dist/components/my-component.js +57 -0
  20. package/dist/esm/ag-grid-community.auto.esm-db7de02b.js +52602 -0
  21. package/dist/esm/index-f7e13ba2.js +1201 -0
  22. package/dist/esm/index.js +1 -0
  23. package/dist/esm/ix-ag-grid_2.entry.js +67 -0
  24. package/dist/esm/ix-aggrid.js +17 -0
  25. package/dist/esm/loader.js +17 -0
  26. package/dist/esm/polyfills/core-js.js +11 -0
  27. package/dist/esm/polyfills/css-shim.js +1 -0
  28. package/dist/esm/polyfills/dom.js +79 -0
  29. package/dist/esm/polyfills/es5-html-element.js +1 -0
  30. package/dist/esm/polyfills/index.js +34 -0
  31. package/dist/esm/polyfills/system.js +6 -0
  32. package/dist/index.cjs.js +1 -0
  33. package/dist/index.js +1 -0
  34. package/dist/ix-aggrid/index.esm.js +1 -0
  35. package/dist/ix-aggrid/ix-aggrid.css +1 -0
  36. package/dist/ix-aggrid/ix-aggrid.esm.js +1 -0
  37. package/dist/ix-aggrid/p-c1b50b0f.js +2 -0
  38. package/dist/ix-aggrid/p-ea1225ae.js +304 -0
  39. package/dist/ix-aggrid/p-f8f88b62.entry.js +1 -0
  40. package/dist/types/components/ix-ag-grid/ix-ag-grid.d.ts +10 -0
  41. package/dist/types/components/my-component/my-component.d.ts +5 -0
  42. package/dist/types/components.d.ts +53 -0
  43. package/dist/types/index.d.ts +2 -0
  44. package/dist/types/stencil-public-runtime.d.ts +1576 -0
  45. package/dist/types/utils/utils.d.ts +1 -0
  46. package/loader/cdn.js +3 -0
  47. package/loader/index.cjs.js +3 -0
  48. package/loader/index.d.ts +12 -0
  49. package/loader/index.es2017.js +3 -0
  50. package/loader/index.js +4 -0
  51. package/loader/package.json +11 -0
  52. package/package.json +3 -3
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ require('./ag-grid-community.auto.esm-42c6bc63.js');
4
+
@@ -0,0 +1,72 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-5b0f17d6.js');
6
+ const agGridCommunity_auto_esm = require('./ag-grid-community.auto.esm-42c6bc63.js');
7
+
8
+ const IxAgGrid = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ }
12
+ componentDidLoad() {
13
+ this.initializeGrid();
14
+ }
15
+ initializeGrid() {
16
+ if (!this.gridOptions) {
17
+ return;
18
+ }
19
+ if (!this.grid) {
20
+ const gridDiv = this.host.querySelector('div.ag-theme-ix');
21
+ this.grid = new agGridCommunity_auto_esm.Grid(gridDiv, this.gridOptions);
22
+ }
23
+ }
24
+ disconnectedCallback() {
25
+ var _a;
26
+ (_a = this.grid) === null || _a === void 0 ? void 0 : _a.destroy();
27
+ }
28
+ render() {
29
+ return (index.h(index.Host, null, index.h("div", { style: {
30
+ height: '100%',
31
+ width: '100%',
32
+ }, class: "ag-theme-alpine-dark ag-theme-ix" })));
33
+ }
34
+ get host() { return index.getElement(this); }
35
+ static get watchers() { return {
36
+ "gridOptions": ["initializeGrid"]
37
+ }; }
38
+ };
39
+
40
+ const myComponentCss = ".sc-my-component-h{display:block}";
41
+
42
+ const columnDefs = [
43
+ { field: 'make', resizable: true, checkboxSelection: true },
44
+ { field: 'model', resizable: true, sortable: true, filter: true },
45
+ { field: 'price', resizable: true },
46
+ ];
47
+ const rowData = [
48
+ { make: 'Toyota', model: 'Celica', price: 35000, checked: false },
49
+ { make: 'Ford', model: 'Mondeo', price: 32000, checked: true },
50
+ { make: 'Porsche', model: 'Boxster', price: 72000, checked: false },
51
+ ];
52
+ const MyComponent = class {
53
+ constructor(hostRef) {
54
+ index.registerInstance(this, hostRef);
55
+ this.gridOptions = {
56
+ columnDefs: columnDefs,
57
+ rowData: rowData,
58
+ rowSelection: 'multiple',
59
+ suppressCellFocus: true,
60
+ };
61
+ }
62
+ render() {
63
+ return (index.h(index.Host, { style: {
64
+ height: '100%',
65
+ width: '100%',
66
+ } }, index.h("ix-ag-grid", { gridOptions: this.gridOptions })));
67
+ }
68
+ };
69
+ MyComponent.style = myComponentCss;
70
+
71
+ exports.ix_ag_grid = IxAgGrid;
72
+ exports.my_component = MyComponent;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-5b0f17d6.js');
4
+
5
+ /*
6
+ Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ const patchBrowser = () => {
9
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ix-aggrid.cjs.js', document.baseURI).href));
10
+ const opts = {};
11
+ if (importMeta !== '') {
12
+ opts.resourcesUrl = new URL('.', importMeta).href;
13
+ }
14
+ return index.promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(options => {
18
+ return index.bootstrapLazy([["ix-ag-grid_2.cjs",[[2,"my-component"],[2,"ix-ag-grid",{"gridOptions":[16]}]]]], options);
19
+ });
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-5b0f17d6.js');
6
+
7
+ /*
8
+ Stencil Client Patch Esm v2.18.1 | 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_2.cjs",[[2,"my-component"],[2,"ix-ag-grid",{"gridOptions":[16]}]]]], options);
18
+ });
19
+ };
20
+
21
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,13 @@
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": "2.18.1",
9
+ "typescriptVersion": "4.7.4"
10
+ },
11
+ "collections": [],
12
+ "bundles": []
13
+ }
@@ -0,0 +1,67 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2022 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
+ componentDidLoad() {
13
+ this.initializeGrid();
14
+ }
15
+ initializeGrid() {
16
+ if (!this.gridOptions) {
17
+ return;
18
+ }
19
+ if (!this.grid) {
20
+ const gridDiv = this.host.querySelector('div.ag-theme-ix');
21
+ this.grid = new Grid(gridDiv, this.gridOptions);
22
+ }
23
+ }
24
+ disconnectedCallback() {
25
+ var _a;
26
+ (_a = this.grid) === null || _a === void 0 ? void 0 : _a.destroy();
27
+ }
28
+ render() {
29
+ return (h(Host, null, h("div", { style: {
30
+ height: '100%',
31
+ width: '100%',
32
+ }, class: "ag-theme-alpine-dark ag-theme-ix" })));
33
+ }
34
+ static get is() { return "ix-ag-grid"; }
35
+ static get encapsulation() { return "scoped"; }
36
+ static get properties() {
37
+ return {
38
+ "gridOptions": {
39
+ "type": "unknown",
40
+ "mutable": false,
41
+ "complexType": {
42
+ "original": "GridOptions",
43
+ "resolved": "GridOptions<any>",
44
+ "references": {
45
+ "GridOptions": {
46
+ "location": "import",
47
+ "path": "ag-grid-community"
48
+ }
49
+ }
50
+ },
51
+ "required": false,
52
+ "optional": false,
53
+ "docs": {
54
+ "tags": [],
55
+ "text": ""
56
+ }
57
+ }
58
+ };
59
+ }
60
+ static get elementRef() { return "host"; }
61
+ static get watchers() {
62
+ return [{
63
+ "propName": "gridOptions",
64
+ "methodName": "initializeGrid"
65
+ }];
66
+ }
67
+ }
@@ -0,0 +1,11 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2022 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
+ :host {
10
+ display: block;
11
+ }
@@ -0,0 +1,47 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2022 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
+ const columnDefs = [
11
+ { field: 'make', resizable: true, checkboxSelection: true },
12
+ { field: 'model', resizable: true, sortable: true, filter: true },
13
+ { field: 'price', resizable: true },
14
+ ];
15
+ const rowData = [
16
+ { make: 'Toyota', model: 'Celica', price: 35000, checked: false },
17
+ { make: 'Ford', model: 'Mondeo', price: 32000, checked: true },
18
+ { make: 'Porsche', model: 'Boxster', price: 72000, checked: false },
19
+ ];
20
+ export class MyComponent {
21
+ constructor() {
22
+ this.gridOptions = {
23
+ columnDefs: columnDefs,
24
+ rowData: rowData,
25
+ rowSelection: 'multiple',
26
+ suppressCellFocus: true,
27
+ };
28
+ }
29
+ render() {
30
+ return (h(Host, { style: {
31
+ height: '100%',
32
+ width: '100%',
33
+ } }, h("ix-ag-grid", { gridOptions: this.gridOptions })));
34
+ }
35
+ static get is() { return "my-component"; }
36
+ static get encapsulation() { return "scoped"; }
37
+ static get originalStyleUrls() {
38
+ return {
39
+ "$": ["my-component.scss"]
40
+ };
41
+ }
42
+ static get styleUrls() {
43
+ return {
44
+ "$": ["my-component.css"]
45
+ };
46
+ }
47
+ }
@@ -0,0 +1,9 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2022 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';
@@ -0,0 +1,11 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2022 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 function format(first, middle, last) {
10
+ return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
11
+ }
@@ -0,0 +1,23 @@
1
+ /* IxAggrid custom elements */
2
+ export { IxAgGrid as IxAgGrid } from '../types/components/ix-ag-grid/ix-ag-grid';
3
+ export { MyComponent as MyComponent } from '../types/components/my-component/my-component';
4
+
5
+ /**
6
+ * Used to manually set the base path where assets can be found.
7
+ * If the script is used as "module", it's recommended to use "import.meta.url",
8
+ * such as "setAssetPath(import.meta.url)". Other options include
9
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
10
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
11
+ * But do note that this configuration depends on how your script is bundled, or lack of
12
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
13
+ * will have to ensure the static assets are copied to its build directory.
14
+ */
15
+ export declare const setAssetPath: (path: string) => void;
16
+
17
+ export interface SetPlatformOptions {
18
+ raf?: (c: FrameRequestCallback) => number;
19
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
20
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
21
+ }
22
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
23
+ export * from '../types';
@@ -0,0 +1,4 @@
1
+ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
2
+ import './ix-ag-grid2.js';
3
+ export { IxAgGrid, defineCustomElement as defineCustomElementIxAgGrid } from './ix-ag-grid.js';
4
+ export { MyComponent, defineCustomElement as defineCustomElementMyComponent } from './my-component.js';
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface IxAgGrid extends Components.IxAgGrid, HTMLElement {}
4
+ export const IxAgGrid: {
5
+ prototype: IxAgGrid;
6
+ new (): IxAgGrid;
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 { I as IxAgGrid$1, d as defineCustomElement$1 } from './ix-ag-grid2.js';
2
+
3
+ const IxAgGrid = IxAgGrid$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { IxAgGrid, defineCustomElement };