proto-table-wc 0.0.388 → 0.0.390

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0be3c3a3.js');
5
+ const index = require('./index-5835d72c.js');
6
6
 
7
7
  const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
8
8
 
@@ -138,6 +138,14 @@ const h = (nodeName, vnodeData, ...children) => {
138
138
  }
139
139
  return vnode;
140
140
  };
141
+ /**
142
+ * A utility function for creating a virtual DOM node from a tag and some
143
+ * possible text content.
144
+ *
145
+ * @param tag the tag for this element
146
+ * @param text possible text content for the node
147
+ * @returns a newly-minted virtual DOM node
148
+ */
141
149
  const newVNode = (tag, text) => {
142
150
  const vnode = {
143
151
  $flags$: 0,
@@ -152,6 +160,12 @@ const newVNode = (tag, text) => {
152
160
  return vnode;
153
161
  };
154
162
  const Host = {};
163
+ /**
164
+ * Check whether a given node is a Host node or not
165
+ *
166
+ * @param node the virtual DOM node to check
167
+ * @returns whether it's a Host node or not
168
+ */
155
169
  const isHost = (node) => node && node.$tag$ === Host;
156
170
  /**
157
171
  * Parse a new property value for a given property type.
@@ -462,6 +476,21 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
462
476
  }
463
477
  return elm;
464
478
  };
479
+ /**
480
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
481
+ * add them to the DOM in the appropriate place.
482
+ *
483
+ * @param parentElm the DOM node which should be used as a parent for the new
484
+ * DOM nodes
485
+ * @param before a child of the `parentElm` which the new children should be
486
+ * inserted before (optional)
487
+ * @param parentVNode the parent virtual DOM node
488
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
489
+ * @param startIdx the index in the child virtual DOM nodes at which to start
490
+ * creating DOM nodes (inclusive)
491
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
492
+ * creating DOM nodes (inclusive)
493
+ */
465
494
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
466
495
  let containerElm = (parentElm);
467
496
  let childNode;
@@ -478,6 +507,19 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
478
507
  }
479
508
  }
480
509
  };
510
+ /**
511
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
512
+ * This can be used to, for instance, clean up after a list of children which
513
+ * should no longer be shown.
514
+ *
515
+ * This function also handles some of Stencil's slot relocation logic.
516
+ *
517
+ * @param vnodes a list of virtual DOM nodes to remove
518
+ * @param startIdx the index at which to start removing nodes (inclusive)
519
+ * @param endIdx the index at which to stop removing nodes (inclusive)
520
+ * @param vnode a VNode
521
+ * @param elm an element
522
+ */
481
523
  const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
482
524
  for (; startIdx <= endIdx; ++startIdx) {
483
525
  if ((vnode = vnodes[startIdx])) {
@@ -670,7 +712,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
670
712
  *
671
713
  * So, in other words, if `key` attrs are not set on VNodes which may be
672
714
  * changing order within a `children` array or something along those lines then
673
- * we could obtain a false positive and then have to do needless re-rendering.
715
+ * we could obtain a false negative and then have to do needless re-rendering
716
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
674
717
  *
675
718
  * @param leftVNode the first VNode to check
676
719
  * @param rightVNode the second VNode to check
@@ -746,6 +789,18 @@ const callNodeRefs = (vNode) => {
746
789
  vNode.$children$ && vNode.$children$.map(callNodeRefs);
747
790
  }
748
791
  };
792
+ /**
793
+ * The main entry point for Stencil's virtual DOM-based rendering engine
794
+ *
795
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
796
+ * function will handle creating a virtual DOM tree with a single root, patching
797
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
798
+ * relocation, and reflecting attributes.
799
+ *
800
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
801
+ * the DOM node into which it should be rendered.
802
+ * @param renderFnResults the virtual DOM nodes to be rendered
803
+ */
749
804
  const renderVdom = (hostRef, renderFnResults) => {
750
805
  const hostElm = hostRef.$hostElement$;
751
806
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0be3c3a3.js');
5
+ const index = require('./index-5835d72c.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.22.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0be3c3a3.js');
5
+ const index = require('./index-5835d72c.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v2.22.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-table-wc.cjs.js', document.baseURI).href));
@@ -5,7 +5,7 @@
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "2.22.1",
8
+ "version": "2.22.2",
9
9
  "typescriptVersion": "4.9.4"
10
10
  },
11
11
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-851629b1.js';
1
+ import { r as registerInstance, h } from './index-d9d0bd91.js';
2
2
 
3
3
  const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
4
4
 
@@ -116,6 +116,14 @@ const h = (nodeName, vnodeData, ...children) => {
116
116
  }
117
117
  return vnode;
118
118
  };
119
+ /**
120
+ * A utility function for creating a virtual DOM node from a tag and some
121
+ * possible text content.
122
+ *
123
+ * @param tag the tag for this element
124
+ * @param text possible text content for the node
125
+ * @returns a newly-minted virtual DOM node
126
+ */
119
127
  const newVNode = (tag, text) => {
120
128
  const vnode = {
121
129
  $flags$: 0,
@@ -130,6 +138,12 @@ const newVNode = (tag, text) => {
130
138
  return vnode;
131
139
  };
132
140
  const Host = {};
141
+ /**
142
+ * Check whether a given node is a Host node or not
143
+ *
144
+ * @param node the virtual DOM node to check
145
+ * @returns whether it's a Host node or not
146
+ */
133
147
  const isHost = (node) => node && node.$tag$ === Host;
134
148
  /**
135
149
  * Parse a new property value for a given property type.
@@ -440,6 +454,21 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
440
454
  }
441
455
  return elm;
442
456
  };
457
+ /**
458
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
459
+ * add them to the DOM in the appropriate place.
460
+ *
461
+ * @param parentElm the DOM node which should be used as a parent for the new
462
+ * DOM nodes
463
+ * @param before a child of the `parentElm` which the new children should be
464
+ * inserted before (optional)
465
+ * @param parentVNode the parent virtual DOM node
466
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
467
+ * @param startIdx the index in the child virtual DOM nodes at which to start
468
+ * creating DOM nodes (inclusive)
469
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
470
+ * creating DOM nodes (inclusive)
471
+ */
443
472
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
444
473
  let containerElm = (parentElm);
445
474
  let childNode;
@@ -456,6 +485,19 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
456
485
  }
457
486
  }
458
487
  };
488
+ /**
489
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
490
+ * This can be used to, for instance, clean up after a list of children which
491
+ * should no longer be shown.
492
+ *
493
+ * This function also handles some of Stencil's slot relocation logic.
494
+ *
495
+ * @param vnodes a list of virtual DOM nodes to remove
496
+ * @param startIdx the index at which to start removing nodes (inclusive)
497
+ * @param endIdx the index at which to stop removing nodes (inclusive)
498
+ * @param vnode a VNode
499
+ * @param elm an element
500
+ */
459
501
  const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
460
502
  for (; startIdx <= endIdx; ++startIdx) {
461
503
  if ((vnode = vnodes[startIdx])) {
@@ -648,7 +690,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
648
690
  *
649
691
  * So, in other words, if `key` attrs are not set on VNodes which may be
650
692
  * changing order within a `children` array or something along those lines then
651
- * we could obtain a false positive and then have to do needless re-rendering.
693
+ * we could obtain a false negative and then have to do needless re-rendering
694
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
652
695
  *
653
696
  * @param leftVNode the first VNode to check
654
697
  * @param rightVNode the second VNode to check
@@ -724,6 +767,18 @@ const callNodeRefs = (vNode) => {
724
767
  vNode.$children$ && vNode.$children$.map(callNodeRefs);
725
768
  }
726
769
  };
770
+ /**
771
+ * The main entry point for Stencil's virtual DOM-based rendering engine
772
+ *
773
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
774
+ * function will handle creating a virtual DOM tree with a single root, patching
775
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
776
+ * relocation, and reflecting attributes.
777
+ *
778
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
779
+ * the DOM node into which it should be rendered.
780
+ * @param renderFnResults the virtual DOM nodes to be rendered
781
+ */
727
782
  const renderVdom = (hostRef, renderFnResults) => {
728
783
  const hostElm = hostRef.$hostElement$;
729
784
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-851629b1.js';
2
- export { s as setNonce } from './index-851629b1.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-d9d0bd91.js';
2
+ export { s as setNonce } from './index-d9d0bd91.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Esm v2.22.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchEsm = () => {
8
8
  return promiseResolve();
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-851629b1.js';
2
- export { s as setNonce } from './index-851629b1.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-d9d0bd91.js';
2
+ export { s as setNonce } from './index-d9d0bd91.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v2.22.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
@@ -1 +1 @@
1
- import{r as t,h as e}from"./p-83af3a87.js";const r=class{constructor(r){t(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=t=>{const{tags:r=[]}=t;return e("div",{class:"detailWrapper"},e("span",null,r.length," details..."),e("ul",null,r.map((t=>e("li",null,t)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:t,items:e,fields:r}=this;t.data=e,t.fields=r,t.details=this.renderDetails}render(){return e("proto-table",{ref:t=>this.table=t})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){t(this,r),this.protoIcon=(t,r,l=24)=>{const o=s[t];return e("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},e("title",null,(t=>i[t])(t)),e("g",{fill:r},e("path",{d:o})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(t,e)=>()=>{0===t&&(this.expanded=this.expanded===e?void 0:e)},this.handleSortClick=t=>()=>{this.sort===t?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=t,this.clicks=1)},this.iconFor=t=>this.sort===t&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:t,iconFor:r,protoIcon:s}=this;return e("div",{class:"header"},t.map((({label:t},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return e("div",{class:l,onClick:this.handleSortClick(i)},s(o),e("span",null,t))})))},this.row=(t,r)=>{const{fields:s,protoIcon:i}=this;return e("div",{class:"rowContainer"},e("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>e("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),t[s])))),this.details&&this.expanded===r&&this.details(t))},this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0}render(){const t=this.data||[];return e("div",{class:"table"},this.header(),t.map(((t,e)=>this.row(t,e))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
1
+ import{r as t,h as e}from"./p-3098485f.js";const r=class{constructor(r){t(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=t=>{const{tags:r=[]}=t;return e("div",{class:"detailWrapper"},e("span",null,r.length," details..."),e("ul",null,r.map((t=>e("li",null,t)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:t,items:e,fields:r}=this;t.data=e,t.fields=r,t.details=this.renderDetails}render(){return e("proto-table",{ref:t=>this.table=t})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){t(this,r),this.protoIcon=(t,r,l=24)=>{const o=s[t];return e("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},e("title",null,(t=>i[t])(t)),e("g",{fill:r},e("path",{d:o})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(t,e)=>()=>{0===t&&(this.expanded=this.expanded===e?void 0:e)},this.handleSortClick=t=>()=>{this.sort===t?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=t,this.clicks=1)},this.iconFor=t=>this.sort===t&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:t,iconFor:r,protoIcon:s}=this;return e("div",{class:"header"},t.map((({label:t},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return e("div",{class:l,onClick:this.handleSortClick(i)},s(o),e("span",null,t))})))},this.row=(t,r)=>{const{fields:s,protoIcon:i}=this;return e("div",{class:"rowContainer"},e("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>e("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),t[s])))),this.details&&this.expanded===r&&this.details(t))},this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0}render(){const t=this.data||[];return e("div",{class:"table"},this.header(),t.map(((t,e)=>this.row(t,e))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
@@ -1 +1 @@
1
- import{p as a,b as e}from"./p-83af3a87.js";export{s as setNonce}from"./p-83af3a87.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),a(s)})().then((a=>e([["p-62dd685d",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],a)));
1
+ import{p as e,b as t}from"./p-3098485f.js";export{s as setNonce}from"./p-3098485f.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>t([["p-5f2a5c41",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],e)));
@@ -485,6 +485,14 @@ export interface FunctionalUtilities {
485
485
  export interface FunctionalComponent<T = {}> {
486
486
  (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
487
487
  }
488
+ /**
489
+ * A Child VDOM node
490
+ *
491
+ * This has most of the same properties as {@link VNode} but friendlier names
492
+ * (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
493
+ * order to provide a friendlier public interface for users of the
494
+ * {@link FunctionalUtilities}).
495
+ */
488
496
  export interface ChildNode {
489
497
  vtag?: string | number | Function;
490
498
  vkey?: string | number;
@@ -531,6 +539,9 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
531
539
  export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
532
540
  export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
533
541
  export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
542
+ /**
543
+ * A virtual DOM node
544
+ */
534
545
  export interface VNode {
535
546
  $flags$: number;
536
547
  $tag$: string | number | Function;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-table-wc",
3
- "version": "0.0.388",
3
+ "version": "0.0.390",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -17,8 +17,6 @@
17
17
  "scripts": {
18
18
  "build": "stencil build --docs",
19
19
  "start": "stencil build --dev --watch --serve",
20
- "test": "stencil test --spec --e2e",
21
- "test.watch": "stencil test --spec --e2e --watchAll",
22
20
  "generate": "stencil generate",
23
21
  "predeploy": "yarn build",
24
22
  "deploy": "yarn publish --patch",
@@ -27,16 +25,12 @@
27
25
  "format": "prettier --write src"
28
26
  },
29
27
  "dependencies": {
30
- "@stencil/core": "2.22.1"
28
+ "@stencil/core": "2.22.2"
31
29
  },
32
30
  "devDependencies": {
33
- "@types/jest": "29.2.5",
34
- "@types/puppeteer": "5.4.7",
35
- "cspell": "6.19.0",
31
+ "cspell": "6.19.2",
36
32
  "eslint": "8.32.0",
37
- "jest": "29.3.1",
38
33
  "prettier": "2.8.3",
39
- "puppeteer": "19.5.2",
40
34
  "tslint": "6.1.3",
41
35
  "typescript": "4.9.4"
42
36
  },