@siemens/ix-aggrid 1.2.0 → 1.3.0-beta.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/dist/cjs/{index-bbfdf33e.js → index-713ffc51.js} +5 -42
- package/dist/cjs/{ix-ag-grid_2.cjs.entry.js → ix-ag-grid.cjs.entry.js} +1 -33
- package/dist/cjs/ix-aggrid.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/my-component.cjs.entry.js +19 -0
- package/dist/collection/components/my-component/my-component.js +1 -22
- package/dist/collection/{utils/utils.js → components/tests/utils/test/index.js} +2 -3
- package/dist/collection/components/tests/utils/test/page.js +29 -0
- package/dist/collection/components/tests/utils/test/theme-switcher.js +15 -0
- package/dist/components/index.js +0 -1
- package/dist/components/ix-ag-grid.js +52651 -1
- package/dist/components/my-component.js +2 -27
- package/dist/esm/{index-1ae27f1f.js → index-c5cf50e5.js} +5 -42
- package/dist/esm/ix-ag-grid.entry.js +37 -0
- package/dist/esm/ix-aggrid.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/my-component.entry.js +15 -0
- package/dist/ix-aggrid/ix-aggrid.css +1 -1
- package/dist/ix-aggrid/ix-aggrid.esm.js +1 -1
- package/dist/ix-aggrid/p-531b1c8d.entry.js +1 -0
- package/dist/ix-aggrid/p-55389b3b.js +2 -0
- package/dist/ix-aggrid/p-cfe2ad1a.entry.js +1 -0
- package/dist/types/components/my-component/my-component.d.ts +0 -2
- package/dist/types/components/tests/utils/test/index.d.ts +2 -0
- package/dist/types/components/tests/utils/test/page.d.ts +3 -0
- package/package.json +10 -6
- package/dist/components/ix-ag-grid2.js +0 -52653
- package/dist/esm/ix-ag-grid_2.entry.js +0 -68
- package/dist/ix-aggrid/p-5c9652cd.js +0 -2
- package/dist/ix-aggrid/p-98f781bb.entry.js +0 -1
- package/dist/types/utils/utils.d.ts +0 -1
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-1ae27f1f.js';
|
|
2
|
-
import { G as Grid } from './ag-grid-community.auto.esm-db7de02b.js';
|
|
3
|
-
|
|
4
|
-
const IxAgGrid = class {
|
|
5
|
-
constructor(hostRef) {
|
|
6
|
-
registerInstance(this, hostRef);
|
|
7
|
-
this.gridOptions = undefined;
|
|
8
|
-
}
|
|
9
|
-
componentDidLoad() {
|
|
10
|
-
this.initializeGrid();
|
|
11
|
-
}
|
|
12
|
-
initializeGrid() {
|
|
13
|
-
if (!this.gridOptions) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
if (!this.grid) {
|
|
17
|
-
const gridDiv = this.host.querySelector('div.ag-theme-ix');
|
|
18
|
-
this.grid = new Grid(gridDiv, this.gridOptions);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
disconnectedCallback() {
|
|
22
|
-
var _a;
|
|
23
|
-
(_a = this.grid) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
return (h(Host, null, h("div", { style: {
|
|
27
|
-
height: '100%',
|
|
28
|
-
width: '100%',
|
|
29
|
-
}, class: "ag-theme-alpine-dark ag-theme-ix" })));
|
|
30
|
-
}
|
|
31
|
-
get host() { return getElement(this); }
|
|
32
|
-
static get watchers() { return {
|
|
33
|
-
"gridOptions": ["initializeGrid"]
|
|
34
|
-
}; }
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const myComponentCss = ".sc-my-component-h{display:block}";
|
|
38
|
-
|
|
39
|
-
const columnDefs = [
|
|
40
|
-
{ field: 'make', resizable: true, checkboxSelection: true },
|
|
41
|
-
{ field: 'model', resizable: true, sortable: true, filter: true },
|
|
42
|
-
{ field: 'price', resizable: true },
|
|
43
|
-
];
|
|
44
|
-
const rowData = [
|
|
45
|
-
{ make: 'Toyota', model: 'Celica', price: 35000, checked: false },
|
|
46
|
-
{ make: 'Ford', model: 'Mondeo', price: 32000, checked: true },
|
|
47
|
-
{ make: 'Porsche', model: 'Boxster', price: 72000, checked: false },
|
|
48
|
-
];
|
|
49
|
-
const MyComponent = class {
|
|
50
|
-
constructor(hostRef) {
|
|
51
|
-
registerInstance(this, hostRef);
|
|
52
|
-
this.gridOptions = {
|
|
53
|
-
columnDefs: columnDefs,
|
|
54
|
-
rowData: rowData,
|
|
55
|
-
rowSelection: 'multiple',
|
|
56
|
-
suppressCellFocus: true,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
return (h(Host, { style: {
|
|
61
|
-
height: '100%',
|
|
62
|
-
width: '100%',
|
|
63
|
-
} }, h("ix-ag-grid", { gridOptions: this.gridOptions })));
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
MyComponent.style = myComponentCss;
|
|
67
|
-
|
|
68
|
-
export { IxAgGrid as ix_ag_grid, MyComponent as my_component };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let t,e=!1;const n={},l=t=>"object"==(t=typeof t)||"function"===t,s=(t,e,...n)=>{let s=null,c=!1,r=!1;const i=[],a=e=>{for(let n=0;n<e.length;n++)s=e[n],Array.isArray(s)?a(s):null!=s&&"boolean"!=typeof s&&((c="function"!=typeof t&&!l(s))&&(s+=""),c&&r?i[i.length-1].t+=s:i.push(c?o(null,s):s),r=c)};if(a(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const u=o(t,null);return u.l=e,i.length>0&&(u.o=i),u},o=(t,e)=>({i:0,u:t,t:e,$:null,o:null,l:null}),c={},r=t=>N(t).h,i=new WeakMap,a=t=>"sc-"+t.m,u=(t,e,n,s,o,c)=>{if(n!==s){let r=H(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,l=$(n),o=$(s);e.remove(...l.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)s&&null!=s[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in s)n&&s[e]===n[e]||(e.includes("-")?t.style.setProperty(e,s[e]):t.style[e]=s[e])}else{const i=l(s);if((r||i&&null!==s)&&!o)try{if(t.tagName.includes("-"))t[e]=s;else{const l=null==s?"":s;"list"===e?r=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}null==s||!1===s?!1===s&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&c||o)&&!i&&t.setAttribute(e,s=!0===s?"":s)}}},f=/\s/,$=t=>t?t.split(f):[],d=(t,e,l,s)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,c=t&&t.l||n,r=e.l||n;for(s in c)s in r||u(o,s,c[s],void 0,l,e.i);for(s in r)u(o,s,c[s],r[s],l,e.i)},y=(e,n,l)=>{const s=n.o[l];let o,c,r=0;if(o=s.$=F.createElement(s.u),d(null,s,!1),null!=t&&o["s-si"]!==t&&o.classList.add(o["s-si"]=t),s.o)for(r=0;r<s.o.length;++r)c=y(e,s,r),c&&o.appendChild(c);return o},h=(t,e,n,l,s,o)=>{let c,r=t;for(;s<=o;++s)l[s]&&(c=y(null,n,s),c&&(l[s].$=c,r.insertBefore(c,e)))},m=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.$.remove()},p=(t,e)=>t.u===e.u,b=(t,e)=>{const n=e.$=t.$,l=t.o,s=e.o;d(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]:p(i,f)?(b(i,f),i=e[++o],f=l[++c]):p(a,$)?(b(a,$),a=e[--r],$=l[--u]):p(i,$)?(b(i,$),t.insertBefore(i.$,a.$.nextSibling),i=e[++o],$=l[--u]):p(a,f)?(b(a,f),t.insertBefore(a.$,i.$),a=e[--r],f=l[++c]):(s=y(e&&e[c],n,c),f=l[++c],s&&i.$.parentNode.insertBefore(s,i.$));o>r?h(t,null==l[u+1]?null:l[u+1].$,n,l,c,u):c>u&&m(e,o,r)})(n,l,e,s):null!==s?h(n,null,e,s,0,s.length-1):null!==l&&m(l,0,l.length-1)},w=(t,e)=>{e&&!t.p&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.p=e)))},g=(t,e)=>{if(t.i|=16,!(4&t.i))return w(t,t.g),X((()=>S(t,e)));t.i|=512},S=(t,e)=>{const n=t.S;return O(void 0,(()=>j(t,n,e)))},j=async(t,e,n)=>{const l=t.h,s=l["s-rc"];n&&(t=>{const e=t.j,n=t.h,l=e.i,s=((t,e)=>{let n=a(e);const l=q.get(n);if(t=11===t.nodeType?t:F,l)if("string"==typeof l){let e,s=i.get(t=t.head||t);s||i.set(t,s=new Set),s.has(n)||(e=F.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"),2&l&&n.classList.add(s+"-s"))})(t);v(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>k(t);0===e.length?n():(Promise.all(e).then(n),t.i|=4,e.length=0)}},v=(e,n)=>{try{n=n.render(),e.i&=-17,e.i|=2,((e,n)=>{const l=e.h,r=e.v||o(null,null),i=(t=>t&&t.u===c)(n)?n:s(null,null,n);i.u=null,i.i|=4,e.v=i,i.$=r.$=l,t=l["s-sc"],b(r,i)})(e,n)}catch(t){R(t,e.h)}return null},k=t=>{const e=t.h,n=t.S,l=t.g;64&t.i||(t.i|=64,x(e),M(n,"componentDidLoad"),t.k(e),l||C()),t.p&&(t.p(),t.p=void 0),512&t.i&&Q((()=>g(t,!1))),t.i&=-517},C=()=>{x(F.documentElement),Q((()=>(t=>{const e=V.ce("appload",{detail:{namespace:"ix-aggrid"}});return t.dispatchEvent(e),e})(D)))},M=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){R(t)}},O=(t,e)=>t&&t.then?t.then(e):e(),x=t=>t.classList.add("hydrated"),P=(t,e,n)=>{if(e.C){t.watchers&&(e.M=t.watchers);const s=Object.entries(e.C),o=t.prototype;s.map((([t,[s]])=>{(31&s||2&n&&32&s)&&Object.defineProperty(o,t,{get(){return((t,e)=>N(this).O.get(e))(0,t)},set(n){((t,e,n,s)=>{const o=N(t),c=o.h,r=o.O.get(e),i=o.i,a=o.S;if(n=(t=>(null==t||l(t),t))(n),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.O.set(e,n),a)){if(s.M&&128&i){const t=s.M[e];t&&t.map((t=>{try{a[t](n,r,e)}catch(t){R(t,c)}}))}2==(18&i)&&g(o,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})}))}return t},E=(t,e={})=>{const n=[],l=e.exclude||[],s=D.customElements,o=F.head,c=o.querySelector("meta[charset]"),r=F.createElement("style"),i=[];let u,f=!0;Object.assign(V,e),V.P=new URL(e.resourcesUrl||"./",F.baseURI).href,t.map((t=>{t[1].map((e=>{const o={i:e[0],m:e[1],C:e[2],L:e[3]};o.C=e[2],o.M={};const c=o.m,r=class extends HTMLElement{constructor(t){super(t),A(t=this,o)}connectedCallback(){u&&(clearTimeout(u),u=null),f?i.push(this):V.jmp((()=>(t=>{if(0==(1&V.i)){const e=N(t),n=e.j,l=()=>{};if(!(1&e.i)){e.i|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){w(e,e.g=n);break}}n.C&&Object.entries(n.C).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.i)){{if(e.i|=32,(s=W(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(n.M=s.watchers,P(s,n,2),s.isProxied=!0);const t=()=>{};e.i|=8;try{new s(e)}catch(t){R(t)}e.i&=-9,e.i|=128,t()}if(s.style){let t=s.style;const e=a(n);if(!q.has(e)){const l=()=>{};((t,e,n)=>{let l=q.get(t);z&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,q.set(t,l)})(e,t,!!(1&n.i)),l()}}}const o=e.g,c=()=>g(e,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,e,n)}l()}})(this)))}disconnectedCallback(){V.jmp((()=>(()=>{0==(1&V.i)&&M(N(this).S,"disconnectedCallback")})()))}componentOnReady(){return N(this).N}};o.T=t[0],l.includes(c)||s.get(c)||(n.push(c),s.define(c,P(r,o,1)))}))})),r.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles",""),o.insertBefore(r,c?c.nextSibling:o.firstChild),f=!1,i.length?i.map((t=>t.connectedCallback())):V.jmp((()=>u=setTimeout(C,30)))},L=new WeakMap,N=t=>L.get(t),T=(t,e)=>L.set(e.S=t,e),A=(t,e)=>{const n={i:0,h:t,j:e,O:new Map};return n.N=new Promise((t=>n.k=t)),t["s-p"]=[],t["s-rc"]=[],L.set(t,n)},H=(t,e)=>e in t,R=(t,e)=>(0,console.error)(t,e),U=new Map,W=t=>{const e=t.m.replace(/-/g,"_"),n=t.T,l=U.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(U.set(n,t),t[e])),R)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},q=new Map,D="undefined"!=typeof window?window:{},F=D.document||{head:{}},V={i:0,P:"",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)},_=t=>Promise.resolve(t),z=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),B=[],G=[],I=(t,n)=>l=>{t.push(l),e||(e=!0,n&&4&V.i?Q(K):V.raf(K))},J=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){R(t)}t.length=0},K=()=>{J(B),J(G),(e=B.length>0)&&V.raf(K)},Q=t=>_().then(t),X=I(G,!0);export{c as H,E as b,r as g,s as h,_ as p,T as r}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as i,H as t,g as s}from"./p-5c9652cd.js";import{G as r}from"./p-ea1225ae.js";const o=class{constructor(i){e(this,i),this.gridOptions=void 0}componentDidLoad(){this.initializeGrid()}initializeGrid(){if(this.gridOptions&&!this.grid){const e=this.host.querySelector("div.ag-theme-ix");this.grid=new r(e,this.gridOptions)}}disconnectedCallback(){var e;null===(e=this.grid)||void 0===e||e.destroy()}render(){return i(t,null,i("div",{style:{height:"100%",width:"100%"},class:"ag-theme-alpine-dark ag-theme-ix"}))}get host(){return s(this)}static get watchers(){return{gridOptions:["initializeGrid"]}}},a=[{field:"make",resizable:!0,checkboxSelection:!0},{field:"model",resizable:!0,sortable:!0,filter:!0},{field:"price",resizable:!0}],c=[{make:"Toyota",model:"Celica",price:35e3,checked:!1},{make:"Ford",model:"Mondeo",price:32e3,checked:!0},{make:"Porsche",model:"Boxster",price:72e3,checked:!1}],l=class{constructor(i){e(this,i),this.gridOptions={columnDefs:a,rowData:c,rowSelection:"multiple",suppressCellFocus:!0}}render(){return i(t,{style:{height:"100%",width:"100%"}},i("ix-ag-grid",{gridOptions:this.gridOptions}))}};l.style=".sc-my-component-h{display:block}";export{o as ix_ag_grid,l as my_component}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function format(first: string, middle: string, last: string): string;
|