@public-ui/sample-react 2.2.3 → 2.2.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 (80) hide show
  1. package/dist/1266.js +1 -1
  2. package/dist/1601.js +1 -1
  3. package/dist/1786.js +1 -1
  4. package/dist/1797.js +1 -1
  5. package/dist/1832.js +1 -1
  6. package/dist/2441.js +1 -1
  7. package/dist/2462.js +1 -1
  8. package/dist/2605.js +1 -1
  9. package/dist/2728.js +1 -1
  10. package/dist/2960.js +1 -1
  11. package/dist/3440.js +1 -1
  12. package/dist/3460.js +1 -1
  13. package/dist/3492.js +1 -1
  14. package/dist/3503.js +1 -1
  15. package/dist/3845.js +1 -1
  16. package/dist/3882.js +1 -1
  17. package/dist/3901.js +2 -0
  18. package/dist/3965.js +1 -1
  19. package/dist/4181.js +1 -1
  20. package/dist/4294.js +1 -1
  21. package/dist/4604.js +1 -1
  22. package/dist/4737.js +1 -1
  23. package/dist/4804.js +1 -1
  24. package/dist/4972.js +1 -1
  25. package/dist/5076.js +1 -1
  26. package/dist/5204.js +1 -1
  27. package/dist/5399.js +1 -1
  28. package/dist/5431.js +1 -1
  29. package/dist/5514.js +1 -1
  30. package/dist/5522.js +1 -1
  31. package/dist/5677.js +1 -1
  32. package/dist/5781.js +1 -1
  33. package/dist/5813.js +1 -1
  34. package/dist/5829.js +1 -1
  35. package/dist/6199.js +1 -1
  36. package/dist/6320.js +1 -1
  37. package/dist/6473.js +1 -1
  38. package/dist/6567.js +1 -1
  39. package/dist/6649.js +1 -1
  40. package/dist/665.js +2 -0
  41. package/dist/6705.js +1 -1
  42. package/dist/6717.js +1 -1
  43. package/dist/6731.js +1 -1
  44. package/dist/6974.js +1 -1
  45. package/dist/7157.js +1 -1
  46. package/dist/7162.js +1 -1
  47. package/dist/7163.js +1 -1
  48. package/dist/7183.js +1 -1
  49. package/dist/7310.js +1 -1
  50. package/dist/7391.js +1 -1
  51. package/dist/7461.js +1 -1
  52. package/dist/7560.js +1 -1
  53. package/dist/7582.js +1 -1
  54. package/dist/7609.js +1 -1
  55. package/dist/8100.js +1 -1
  56. package/dist/8116.js +1 -1
  57. package/dist/8126.js +1 -1
  58. package/dist/8191.js +1 -1
  59. package/dist/8210.js +1 -1
  60. package/dist/8286.js +1 -1
  61. package/dist/8471.js +1 -1
  62. package/dist/85.js +1 -1
  63. package/dist/8709.js +2 -0
  64. package/dist/8799.js +1 -1
  65. package/dist/8902.js +1 -1
  66. package/dist/8956.js +1 -1
  67. package/dist/92.js +1 -1
  68. package/dist/9558.js +1 -1
  69. package/dist/9768.js +1 -1
  70. package/dist/9818.js +1 -1
  71. package/dist/989.js +1 -1
  72. package/dist/9980.js +1 -1
  73. package/dist/main.js +1 -1
  74. package/package.json +10 -10
  75. package/dist/1930.js +0 -2
  76. package/dist/3710.js +0 -2
  77. package/dist/4206.js +0 -2
  78. /package/dist/{1930.js.LICENSE.txt → 3901.js.LICENSE.txt} +0 -0
  79. /package/dist/{3710.js.LICENSE.txt → 665.js.LICENSE.txt} +0 -0
  80. /package/dist/{4206.js.LICENSE.txt → 8709.js.LICENSE.txt} +0 -0
package/dist/9980.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 9980.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[9980],{9980:(e,t,s)=>{s.r(t),s.d(t,{kol_popover_wc:()=>a});var i=s(3036),o=s(8715),r=s(96),n=s(5838),h=s(7804),l=s(2173);const a=class{constructor(e){(0,i.r)(this,e),this.hidePopoverByEscape=e=>{"Escape"===e.key&&this.hidePopover(e)},this.hidePopoverByClickOutside=e=>{this.host&&!this.host.contains(e.target)&&this.hidePopover(e)},this.catchHostAndTriggerElement=e=>{e&&(this.host=e,this.triggerElement=e.previousElementSibling)},this.catchPopoverElement=e=>{this.popoverElement=e},this.catchArrowElement=e=>{this.arrowElement=e},this._align="top",this._on=void 0,this._show=!1,this.state={_align:"top",_on:{},_show:!1,_visible:!1}}showPopover(){return e=this,t=function*(){this.addListenersToBody(),this.triggerElement&&this.popoverElement&&(yield(0,o.a)({align:this._align,referenceElement:this.triggerElement,arrowElement:this.arrowElement,floatingElement:this.popoverElement}),this.state=Object.assign(Object.assign({},this.state),{_visible:!0}))},new Promise(((s,i)=>{var o=e=>{try{n(t.next(e))}catch(e){i(e)}},r=e=>{try{n(t.throw(e))}catch(e){i(e)}},n=e=>e.done?s(e.value):Promise.resolve(e.value).then(o,r);n((t=t.apply(e,null)).next())}));var e,t}hidePopover(e){var t,s,i;this.state=Object.assign(Object.assign({},this.state),{_visible:!1}),this._show=!1,null===(t=this.triggerElement)||void 0===t||t.focus(),this.removeListenersToBody(),null===(i=null===(s=this.state._on)||void 0===s?void 0:s.onClose)||void 0===i||i.call(s,e)}addListenersToBody(){var e;const t=(0,n.g)().body;t.addEventListener("keyup",this.hidePopoverByEscape),t.addEventListener("click",this.hidePopoverByClickOutside),null===(e=document.scrollingElement)||void 0===e||e.addEventListener("scroll",(()=>{this.showPopover()}),{passive:!0})}removeListenersToBody(){var e;const t=(0,n.g)().body;t.removeEventListener("keyup",this.hidePopoverByEscape),t.removeEventListener("click",this.hidePopoverByClickOutside),null===(e=document.scrollingElement)||void 0===e||e.removeEventListener("scroll",(()=>{this.showPopover()}))}render(){return(0,i.h)(i.H,{key:"c9c429d2ab88094fdd44fc60e98e584620ab5f69",ref:this.catchHostAndTriggerElement,class:"kol-popover"},(0,i.h)("div",{key:"3273b90d3470f426f9fda0d822d0ac53e7271e75",class:{popover:!0,show:this.state._visible},ref:this.catchPopoverElement,hidden:!this.state._show},(0,i.h)("div",{key:"823fa670c74d381037ec0cccd348bc70b0b8cada",class:`arrow ${this.state._align}`,ref:this.catchArrowElement}),(0,i.h)("slot",{key:"941723ef75a9631c9314c4f8d18f63910e1ed392"})))}validateAlign(e){(0,h.a)(this,e)}validateOn(e){((e,t)=>{(0,r.w)(e,"_on",(e=>"object"==typeof e&&null!==e),new Set(["PopoverCallbacksPropType {Events.onClose}"]),t)})(this,e)}validateShow(e){(0,l.v)(this,e),e&&this.showPopover()}componentWillLoad(){this.validateAlign(this._align),this.validateShow(this._show)}static get watchers(){return{_align:["validateAlign"],_on:["validateOn"],_show:["validateShow"]}}}},2173:(e,t,s)=>{s.d(t,{v:()=>o});var i=s(96);const o=(e,t,s)=>{(0,i.b)(e,"_show",t,s)}}}]);
2
+ "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[9980],{9980:(e,t,s)=>{s.r(t),s.d(t,{kol_popover_wc:()=>a});var i=s(9298),o=s(8715),r=s(1722),n=s(5838),h=s(5683),l=s(8108);const a=class{constructor(e){(0,i.r)(this,e),this.hidePopoverByEscape=e=>{"Escape"===e.key&&this.hidePopover(e)},this.hidePopoverByClickOutside=e=>{this.host&&!this.host.contains(e.target)&&this.hidePopover(e)},this.catchHostAndTriggerElement=e=>{e&&(this.host=e,this.triggerElement=e.previousElementSibling)},this.catchPopoverElement=e=>{this.popoverElement=e},this.catchArrowElement=e=>{this.arrowElement=e},this._align="top",this._on=void 0,this._show=!1,this.state={_align:"top",_on:{},_show:!1,_visible:!1}}showPopover(){return e=this,t=function*(){this.addListenersToBody(),this.triggerElement&&this.popoverElement&&(yield(0,o.a)({align:this._align,referenceElement:this.triggerElement,arrowElement:this.arrowElement,floatingElement:this.popoverElement}),this.state=Object.assign(Object.assign({},this.state),{_visible:!0}))},new Promise(((s,i)=>{var o=e=>{try{n(t.next(e))}catch(e){i(e)}},r=e=>{try{n(t.throw(e))}catch(e){i(e)}},n=e=>e.done?s(e.value):Promise.resolve(e.value).then(o,r);n((t=t.apply(e,null)).next())}));var e,t}hidePopover(e){var t,s,i;this.state=Object.assign(Object.assign({},this.state),{_visible:!1}),this._show=!1,null===(t=this.triggerElement)||void 0===t||t.focus(),this.removeListenersToBody(),null===(i=null===(s=this.state._on)||void 0===s?void 0:s.onClose)||void 0===i||i.call(s,e)}addListenersToBody(){var e;const t=(0,n.g)().body;t.addEventListener("keyup",this.hidePopoverByEscape),t.addEventListener("click",this.hidePopoverByClickOutside),null===(e=document.scrollingElement)||void 0===e||e.addEventListener("scroll",(()=>{this.showPopover()}),{passive:!0})}removeListenersToBody(){var e;const t=(0,n.g)().body;t.removeEventListener("keyup",this.hidePopoverByEscape),t.removeEventListener("click",this.hidePopoverByClickOutside),null===(e=document.scrollingElement)||void 0===e||e.removeEventListener("scroll",(()=>{this.showPopover()}))}render(){return(0,i.h)(i.H,{key:"c9c429d2ab88094fdd44fc60e98e584620ab5f69",ref:this.catchHostAndTriggerElement,class:"kol-popover"},(0,i.h)("div",{key:"3273b90d3470f426f9fda0d822d0ac53e7271e75",class:{popover:!0,show:this.state._visible},ref:this.catchPopoverElement,hidden:!this.state._show},(0,i.h)("div",{key:"823fa670c74d381037ec0cccd348bc70b0b8cada",class:`arrow ${this.state._align}`,ref:this.catchArrowElement}),(0,i.h)("slot",{key:"941723ef75a9631c9314c4f8d18f63910e1ed392"})))}validateAlign(e){(0,h.a)(this,e)}validateOn(e){((e,t)=>{(0,r.w)(e,"_on",(e=>"object"==typeof e&&null!==e),new Set(["PopoverCallbacksPropType {Events.onClose}"]),t)})(this,e)}validateShow(e){(0,l.v)(this,e),e&&this.showPopover()}componentWillLoad(){this.validateAlign(this._align),this.validateShow(this._show)}static get watchers(){return{_align:["validateAlign"],_on:["validateOn"],_show:["validateShow"]}}}},8108:(e,t,s)=>{s.d(t,{v:()=>o});var i=s(1722);const o=(e,t,s)=>{(0,i.b)(e,"_show",t,s)}}}]);