@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.
Files changed (53) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/ag-grid-community.auto.esm-6aabb45a.js +52356 -0
  3. package/dist/cjs/index-15264d0e.js +1210 -0
  4. package/dist/cjs/index.cjs.js +4 -0
  5. package/dist/cjs/ix-ag-grid_2.cjs.entry.js +72 -0
  6. package/dist/cjs/ix-aggrid.cjs.js +19 -0
  7. package/dist/cjs/loader.cjs.js +21 -0
  8. package/dist/collection/collection-manifest.json +13 -0
  9. package/dist/collection/components/ix-ag-grid/ix-ag-grid.js +67 -0
  10. package/dist/collection/components/my-component/my-component.css +11 -0
  11. package/dist/collection/components/my-component/my-component.js +47 -0
  12. package/dist/collection/index.js +9 -0
  13. package/dist/collection/utils/utils.js +11 -0
  14. package/dist/components/index.d.ts +23 -0
  15. package/dist/components/index.js +4 -0
  16. package/dist/components/ix-ag-grid.d.ts +11 -0
  17. package/dist/components/ix-ag-grid.js +6 -0
  18. package/dist/components/ix-ag-grid2.js +52404 -0
  19. package/dist/components/my-component.d.ts +11 -0
  20. package/dist/components/my-component.js +57 -0
  21. package/dist/esm/ag-grid-community.auto.esm-02be9483.js +52354 -0
  22. package/dist/esm/index-bc7ead06.js +1183 -0
  23. package/dist/esm/index.js +1 -0
  24. package/dist/esm/ix-ag-grid_2.entry.js +67 -0
  25. package/dist/esm/ix-aggrid.js +17 -0
  26. package/dist/esm/loader.js +17 -0
  27. package/dist/esm/polyfills/core-js.js +11 -0
  28. package/dist/esm/polyfills/css-shim.js +1 -0
  29. package/dist/esm/polyfills/dom.js +79 -0
  30. package/dist/esm/polyfills/es5-html-element.js +1 -0
  31. package/dist/esm/polyfills/index.js +34 -0
  32. package/dist/esm/polyfills/system.js +6 -0
  33. package/dist/index.cjs.js +1 -0
  34. package/dist/index.js +1 -0
  35. package/dist/ix-aggrid/index.esm.js +1 -0
  36. package/dist/ix-aggrid/ix-aggrid.css +1 -0
  37. package/dist/ix-aggrid/ix-aggrid.esm.js +1 -0
  38. package/dist/ix-aggrid/p-69c6cd58.entry.js +1 -0
  39. package/dist/ix-aggrid/p-8689a100.js +304 -0
  40. package/dist/ix-aggrid/p-d40c6577.js +2 -0
  41. package/dist/types/components/ix-ag-grid/ix-ag-grid.d.ts +10 -0
  42. package/dist/types/components/my-component/my-component.d.ts +5 -0
  43. package/dist/types/components.d.ts +53 -0
  44. package/dist/types/index.d.ts +2 -0
  45. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  46. package/dist/types/utils/utils.d.ts +1 -0
  47. package/loader/cdn.js +3 -0
  48. package/loader/index.cjs.js +3 -0
  49. package/loader/index.d.ts +12 -0
  50. package/loader/index.es2017.js +3 -0
  51. package/loader/index.js +4 -0
  52. package/loader/package.json +11 -0
  53. package/package.json +40 -0
@@ -0,0 +1,2 @@
1
+ let t,e=!1;const n="undefined"!=typeof window?window:{},l=n.document||{head:{}},s={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},o=t=>Promise.resolve(t),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),r=new WeakMap,i=t=>"sc-"+t.o,a={},u=t=>"object"==(t=typeof t)||"function"===t,f=(t,e,...n)=>{let l=null,s=!1,o=!1;const c=[],r=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!u(l))&&(l+=""),s&&o?c[c.length-1].i+=l:c.push(s?$(null,l):l),o=s)};if(r(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const i=$(t,null);return i.u=e,c.length>0&&(i.$=c),i},$=(t,e)=>({t:0,h:t,i:e,m:null,$:null,u:null}),d={},y=(t,e,n,l,s,o)=>{if(n!==l){let c=D(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,s=m(n),o=m(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else{const r=u(l);if((c||r&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{const s=null==l?"":l;"list"===e?c=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!c||4&o||s)&&!r&&t.setAttribute(e,l=!0===l?"":l)}}},h=/\s/,m=t=>t?t.split(h):[],p=(t,e,n,l)=>{const s=11===e.m.nodeType&&e.m.host?e.m.host:e.m,o=t&&t.u||a,c=e.u||a;for(l in o)l in c||y(s,l,o[l],void 0,n,e.t);for(l in c)y(s,l,o[l],c[l],n,e.t)},b=(e,n,s)=>{const o=n.$[s];let c,r,i=0;if(c=o.m=l.createElement(o.h),p(null,o,!1),null!=t&&c["s-si"]!==t&&c.classList.add(c["s-si"]=t),o.$)for(i=0;i<o.$.length;++i)r=b(e,o,i),r&&c.appendChild(r);return c},w=(t,e,n,l,s,o)=>{let c,r=t;for(;s<=o;++s)l[s]&&(c=b(null,n,s),c&&(l[s].m=c,r.insertBefore(c,e)))},g=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.m.remove()},S=(t,e)=>t.h===e.h,j=(t,e)=>{const n=e.m=t.m,l=t.$,s=e.$;p(t,e,!1),null!==l&&null!==s?((t,e,n,l)=>{let s,o=0,c=0,r=e.length-1,i=e[0],a=e[r],u=l.length-1,f=l[0],$=l[u];for(;o<=r&&c<=u;)null==i?i=e[++o]:null==a?a=e[--r]:null==f?f=l[++c]:null==$?$=l[--u]:S(i,f)?(j(i,f),i=e[++o],f=l[++c]):S(a,$)?(j(a,$),a=e[--r],$=l[--u]):S(i,$)?(j(i,$),t.insertBefore(i.m,a.m.nextSibling),i=e[++o],$=l[--u]):S(a,f)?(j(a,f),t.insertBefore(a.m,i.m),a=e[--r],f=l[++c]):(s=b(e&&e[c],n,c),f=l[++c],s&&i.m.parentNode.insertBefore(s,i.m));o>r?w(t,null==l[u+1]?null:l[u+1].m,n,l,c,u):c>u&&g(e,o,r)})(n,l,e,s):null!==s?w(n,null,e,s,0,s.length-1):null!==l&&g(l,0,l.length-1)},v=t=>U(t).p,k=(t,e)=>{e&&!t.g&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.g=e)))},C=(t,e)=>{if(t.t|=16,!(4&t.t))return k(t,t.S),X((()=>M(t,e)));t.t|=512},M=(t,e)=>{const n=t.j;return N(void 0,(()=>O(t,n,e)))},O=async(t,e,n)=>{const s=t.p,o=s["s-rc"];n&&(t=>{const e=t.v,n=t.p,s=e.t,o=((t,e)=>{let n=i(e);const s=z.get(n);if(t=11===t.nodeType?t:l,s)if("string"==typeof s){let e,o=r.get(t=t.head||t);o||r.set(t,o=new Set),o.has(n)||(e=l.createElement("style"),e.innerHTML=s,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]);return n})(n.getRootNode(),e);10&s&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&s&&n.classList.add(o+"-s"))})(t);x(t,e),o&&(o.map((t=>t())),s["s-rc"]=void 0);{const e=s["s-p"],n=()=>P(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},x=(e,n)=>{try{n=n.render(),e.t&=-17,e.t|=2,((e,n)=>{const l=e.p,s=e.k||$(null,null),o=(t=>t&&t.h===d)(n)?n:f(null,null,n);o.h=null,o.t|=4,e.k=o,o.m=s.m=l,t=l["s-sc"],j(s,o)})(e,n)}catch(t){F(t,e.p)}return null},P=t=>{const e=t.p,n=t.j,l=t.S;64&t.t||(t.t|=64,T(e),L(n,"componentDidLoad"),t.C(e),l||E()),t.g&&(t.g(),t.g=void 0),512&t.t&&Q((()=>C(t,!1))),t.t&=-517},E=()=>{T(l.documentElement),Q((()=>(t=>{const e=s.ce("appload",{detail:{namespace:"ix-aggrid"}});return t.dispatchEvent(e),e})(n)))},L=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){F(t)}},N=(t,e)=>t&&t.then?t.then(e):e(),T=t=>t.classList.add("hydrated"),A=(t,e,n)=>{if(e.M){t.watchers&&(e.O=t.watchers);const l=Object.entries(e.M),s=t.prototype;l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>U(this).P.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=U(t),o=s.p,c=s.P.get(e),r=s.t,i=s.j;if(n=(t=>(null==t||u(t),t))(n),(!(8&r)||void 0===c)&&n!==c&&(!Number.isNaN(c)||!Number.isNaN(n))&&(s.P.set(e,n),i)){if(l.O&&128&r){const t=l.O[e];t&&t.map((t=>{try{i[t](n,c,e)}catch(t){F(t,o)}}))}2==(18&r)&&C(s,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})}))}return t},H=(t,e={})=>{const o=[],r=e.exclude||[],a=n.customElements,u=l.head,f=u.querySelector("meta[charset]"),$=l.createElement("style"),d=[];let y,h=!0;Object.assign(s,e),s.l=new URL(e.resourcesUrl||"./",l.baseURI).href,t.map((t=>{t[1].map((e=>{const n={t:e[0],o:e[1],M:e[2],L:e[3]};n.M=e[2],n.O={};const l=n.o,u=class extends HTMLElement{constructor(t){super(t),q(t=this,n)}connectedCallback(){y&&(clearTimeout(y),y=null),h?d.push(this):s.jmp((()=>(t=>{if(0==(1&s.t)){const e=U(t),n=e.v,l=()=>{};if(!(1&e.t)){e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){k(e,e.S=n);break}}n.M&&Object.entries(n.M).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=_(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(n.O=s.watchers,A(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){F(t)}e.t&=-9,e.t|=128,t()}if(s.style){let t=s.style;const e=i(n);if(!z.has(e)){const l=()=>{};((t,e,n)=>{let l=z.get(t);c&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,z.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.S,r=()=>C(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){s.jmp((()=>(()=>{0==(1&s.t)&&L(U(this).j,"disconnectedCallback")})()))}componentOnReady(){return U(this).N}};n.T=t[0],r.includes(l)||a.get(l)||(o.push(l),a.define(l,A(u,n,1)))}))})),$.innerHTML=o+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),u.insertBefore($,f?f.nextSibling:u.firstChild),h=!1,d.length?d.map((t=>t.connectedCallback())):s.jmp((()=>y=setTimeout(E,30)))},R=new WeakMap,U=t=>R.get(t),W=(t,e)=>R.set(e.j=t,e),q=(t,e)=>{const n={t:0,p:t,v:e,P:new Map};return n.N=new Promise((t=>n.C=t)),t["s-p"]=[],t["s-rc"]=[],R.set(t,n)},D=(t,e)=>e in t,F=(t,e)=>(0,console.error)(t,e),V=new Map,_=t=>{const e=t.o.replace(/-/g,"_"),n=t.T,l=V.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(V.set(n,t),t[e])),F)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B=[],G=[],I=(t,n)=>l=>{t.push(l),e||(e=!0,n&&4&s.t?Q(K):s.raf(K))},J=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){F(t)}t.length=0},K=()=>{J(B),J(G),(e=B.length>0)&&s.raf(K)},Q=t=>o().then(t),X=I(G,!0);export{d as H,H as b,v as g,f as h,o as p,W as r}
@@ -0,0 +1,10 @@
1
+ import { Grid, GridOptions } from 'ag-grid-community';
2
+ export declare class IxAgGrid {
3
+ host: HTMLIxAgGridElement;
4
+ gridOptions: GridOptions;
5
+ grid: Grid;
6
+ componentDidLoad(): void;
7
+ private initializeGrid;
8
+ disconnectedCallback(): void;
9
+ render(): any;
10
+ }
@@ -0,0 +1,5 @@
1
+ import { GridOptions } from 'ag-grid-community';
2
+ export declare class MyComponent {
3
+ gridOptions: GridOptions;
4
+ render(): any;
5
+ }
@@ -0,0 +1,53 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { GridOptions } from "ag-grid-community";
9
+ export namespace Components {
10
+ interface IxAgGrid {
11
+ "gridOptions": GridOptions;
12
+ }
13
+ interface MyComponent {
14
+ }
15
+ }
16
+ declare global {
17
+ interface HTMLIxAgGridElement extends Components.IxAgGrid, HTMLStencilElement {
18
+ }
19
+ var HTMLIxAgGridElement: {
20
+ prototype: HTMLIxAgGridElement;
21
+ new (): HTMLIxAgGridElement;
22
+ };
23
+ interface HTMLMyComponentElement extends Components.MyComponent, HTMLStencilElement {
24
+ }
25
+ var HTMLMyComponentElement: {
26
+ prototype: HTMLMyComponentElement;
27
+ new (): HTMLMyComponentElement;
28
+ };
29
+ interface HTMLElementTagNameMap {
30
+ "ix-ag-grid": HTMLIxAgGridElement;
31
+ "my-component": HTMLMyComponentElement;
32
+ }
33
+ }
34
+ declare namespace LocalJSX {
35
+ interface IxAgGrid {
36
+ "gridOptions"?: GridOptions;
37
+ }
38
+ interface MyComponent {
39
+ }
40
+ interface IntrinsicElements {
41
+ "ix-ag-grid": IxAgGrid;
42
+ "my-component": MyComponent;
43
+ }
44
+ }
45
+ export { LocalJSX as JSX };
46
+ declare module "@stencil/core" {
47
+ export namespace JSX {
48
+ interface IntrinsicElements {
49
+ "ix-ag-grid": LocalJSX.IxAgGrid & JSXBase.HTMLAttributes<HTMLIxAgGridElement>;
50
+ "my-component": LocalJSX.MyComponent & JSXBase.HTMLAttributes<HTMLMyComponentElement>;
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,2 @@
1
+ import 'ag-grid-community';
2
+ export { Components, JSX } from './components';