ku4web-components 6.5.7 → 6.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{index-ad5278ca.js → index-5ea4489d.js} +1 -1
- package/dist/cjs/{index-4e2544a7.js → index-f2d8a1e9.js} +10 -5
- package/dist/cjs/ku4-carousel-controls.cjs.entry.js +1 -1
- package/dist/cjs/ku4-carousel-slide.cjs.entry.js +1 -1
- package/dist/cjs/ku4-carousel.cjs.entry.js +2 -2
- package/dist/cjs/ku4-col.cjs.entry.js +1 -1
- package/dist/cjs/ku4-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ku4-feature.cjs.entry.js +1 -1
- package/dist/cjs/ku4-focus-trap.cjs.entry.js +8 -8
- package/dist/cjs/ku4-form.cjs.entry.js +13 -2
- package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
- package/dist/cjs/ku4-label.cjs.entry.js +1 -1
- package/dist/cjs/ku4-mask.cjs.entry.js +2 -2
- package/dist/cjs/ku4-modal.cjs.entry.js +2 -2
- package/dist/cjs/ku4-panel.cjs.entry.js +1 -1
- package/dist/cjs/ku4-preview.cjs.entry.js +2 -2
- package/dist/cjs/ku4-tab-list.cjs.entry.js +2 -2
- package/dist/cjs/ku4-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/ku4-tab.cjs.entry.js +1 -1
- package/dist/cjs/ku4-table.cjs.entry.js +1 -1
- package/dist/cjs/ku4-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ku4-validation.cjs.entry.js +1 -1
- package/dist/cjs/ku4web-components.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{shadow-css-abc19485.js → shadow-css-dcc70d0c.js} +1 -1
- package/dist/esm/{index-e5173978.js → index-733be374.js} +10 -5
- package/dist/esm/{index-f06d1dc2.js → index-bb8d5d62.js} +1 -1
- package/dist/esm/ku4-carousel-controls.entry.js +1 -1
- package/dist/esm/ku4-carousel-slide.entry.js +1 -1
- package/dist/esm/ku4-carousel.entry.js +2 -2
- package/dist/esm/ku4-col.entry.js +1 -1
- package/dist/esm/ku4-drawer.entry.js +1 -1
- package/dist/esm/ku4-feature.entry.js +1 -1
- package/dist/esm/ku4-focus-trap.entry.js +8 -8
- package/dist/esm/ku4-form.entry.js +13 -2
- package/dist/esm/ku4-grid.entry.js +1 -1
- package/dist/esm/ku4-label.entry.js +1 -1
- package/dist/esm/ku4-mask.entry.js +2 -2
- package/dist/esm/ku4-modal.entry.js +2 -2
- package/dist/esm/ku4-panel.entry.js +1 -1
- package/dist/esm/ku4-preview.entry.js +2 -2
- package/dist/esm/ku4-tab-list.entry.js +2 -2
- package/dist/esm/ku4-tab-panel.entry.js +1 -1
- package/dist/esm/ku4-tab.entry.js +1 -1
- package/dist/esm/ku4-table.entry.js +1 -1
- package/dist/esm/ku4-tooltip.entry.js +1 -1
- package/dist/esm/ku4-validation.entry.js +1 -1
- package/dist/esm/ku4web-components.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{shadow-css-02866686.js → shadow-css-6763030b.js} +1 -1
- package/dist/esm-es5/index-733be374.js +2 -0
- package/dist/esm-es5/{index-f06d1dc2.js → index-bb8d5d62.js} +1 -1
- package/dist/esm-es5/ku4-carousel-controls.entry.js +1 -1
- package/dist/esm-es5/ku4-carousel-slide.entry.js +1 -1
- package/dist/esm-es5/ku4-carousel.entry.js +1 -1
- package/dist/esm-es5/ku4-col.entry.js +1 -1
- package/dist/esm-es5/ku4-drawer.entry.js +1 -1
- package/dist/esm-es5/ku4-feature.entry.js +1 -1
- package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
- package/dist/esm-es5/ku4-form.entry.js +1 -1
- package/dist/esm-es5/ku4-grid.entry.js +1 -1
- package/dist/esm-es5/ku4-label.entry.js +1 -1
- package/dist/esm-es5/ku4-mask.entry.js +1 -1
- package/dist/esm-es5/ku4-modal.entry.js +1 -1
- package/dist/esm-es5/ku4-panel.entry.js +1 -1
- package/dist/esm-es5/ku4-preview.entry.js +1 -1
- package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
- package/dist/esm-es5/ku4-tab-panel.entry.js +1 -1
- package/dist/esm-es5/ku4-tab.entry.js +1 -1
- package/dist/esm-es5/ku4-table.entry.js +1 -1
- package/dist/esm-es5/ku4-tooltip.entry.js +1 -1
- package/dist/esm-es5/ku4-validation.entry.js +1 -1
- package/dist/esm-es5/ku4web-components.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{shadow-css-02866686.js → shadow-css-6763030b.js} +0 -0
- package/dist/ku4web-components/ku4web-components.esm.js +1 -1
- package/dist/ku4web-components/ku4web-components.js +2 -1
- package/dist/ku4web-components/{p-e4693cda.system.entry.js → p-0b394531.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-c46a6ff5.entry.js → p-0c30e23a.entry.js} +1 -1
- package/dist/ku4web-components/{p-6ab4928a.entry.js → p-125bd18e.entry.js} +1 -1
- package/dist/ku4web-components/{p-f76dfee1.entry.js → p-1ebacbe9.entry.js} +1 -1
- package/dist/ku4web-components/{p-b2512286.system.entry.js → p-2d695081.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-2c79be2e.system.entry.js → p-30c68717.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-939f438f.entry.js → p-3c2f545a.entry.js} +1 -1
- package/dist/ku4web-components/{p-ea1b0df6.entry.js → p-45e76c86.entry.js} +1 -1
- package/dist/ku4web-components/p-475a4157.system.js +1 -0
- package/dist/ku4web-components/{p-155f4481.entry.js → p-4d02829b.entry.js} +1 -1
- package/dist/ku4web-components/{p-faa0713d.system.entry.js → p-4d4a49a4.system.entry.js} +1 -1
- package/dist/ku4web-components/p-52645384.js +2 -0
- package/dist/ku4web-components/{p-bc388bcc.system.entry.js → p-543fea51.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-65643a0b.system.entry.js → p-5a024700.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-a45df4c1.entry.js → p-5ae82777.entry.js} +1 -1
- package/dist/ku4web-components/{p-9fcb26bb.entry.js → p-5c27da12.entry.js} +1 -1
- package/dist/ku4web-components/{p-67a2204b.entry.js → p-6d2cd66b.entry.js} +1 -1
- package/dist/ku4web-components/{p-f0dbdb77.system.entry.js → p-6d37f778.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-7260c454.system.entry.js → p-77105e17.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-c0dce18b.system.entry.js → p-80624e03.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-731cff07.entry.js → p-8246983c.entry.js} +1 -1
- package/dist/ku4web-components/{p-3ba44adc.system.entry.js → p-83add0bd.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-c00ad706.system.js → p-85c36a3e.system.js} +0 -0
- package/dist/ku4web-components/{p-42d52222.system.entry.js → p-85fb65c1.system.entry.js} +1 -1
- package/dist/ku4web-components/p-8cb960db.entry.js +1 -0
- package/dist/ku4web-components/{p-5a51f33e.js → p-905e4aac.js} +0 -0
- package/dist/ku4web-components/{p-02eef79e.system.entry.js → p-961a30c5.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-e5170dc1.entry.js → p-ab80d126.entry.js} +1 -1
- package/dist/ku4web-components/{p-4733f8b6.system.entry.js → p-b3083404.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-48b0bb76.system.entry.js → p-b6d5f681.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-e65f0ac5.entry.js → p-bd1c1486.entry.js} +1 -1
- package/dist/ku4web-components/{p-2723d2b6.system.entry.js → p-bf5cd1f9.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-a3b9acd3.system.entry.js → p-bf64d160.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-71cbf981.system.entry.js → p-c7d12bf2.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-6028fc6f.entry.js → p-c99dc027.entry.js} +1 -1
- package/dist/ku4web-components/{p-364b562f.entry.js → p-cc0eb4db.entry.js} +1 -1
- package/dist/ku4web-components/p-d3fdb931.entry.js +1 -0
- package/dist/ku4web-components/{p-5c296352.entry.js → p-d6a448ca.entry.js} +1 -1
- package/dist/ku4web-components/{p-b334f07e.entry.js → p-ddd266bf.entry.js} +1 -1
- package/dist/ku4web-components/{p-9a6aa058.system.entry.js → p-e4f68eae.system.entry.js} +1 -1
- package/dist/ku4web-components/p-e8b35187.js +1 -0
- package/dist/ku4web-components/{p-55a4a947.system.entry.js → p-ea032bb1.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-5e666fe4.system.entry.js → p-eaa6e688.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-5109ce9d.system.js → p-eb21757a.system.js} +1 -1
- package/dist/ku4web-components/{p-9db782b0.entry.js → p-eb27616a.entry.js} +1 -1
- package/dist/ku4web-components/{p-6e918f89.entry.js → p-eb4821f6.entry.js} +1 -1
- package/dist/ku4web-components/p-f58c2ed4.system.js +2 -0
- package/dist/types/components/ku4-form/ku4-form.d.ts +4 -0
- package/dist/types/components.d.ts +4 -0
- package/package.json +33 -32
- package/dist/esm-es5/index-e5173978.js +0 -2
- package/dist/ku4web-components/p-06b0b9bc.js +0 -2
- package/dist/ku4web-components/p-0b3bdc7f.system.js +0 -1
- package/dist/ku4web-components/p-2df8696a.entry.js +0 -1
- package/dist/ku4web-components/p-8f2e658a.system.js +0 -2
- package/dist/ku4web-components/p-9ebb7181.entry.js +0 -1
- package/dist/ku4web-components/p-ccf9d584.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,a,n,o){function i(t){return t instanceof n?t:new n((function(a){a(t)}))}return new(n||(n=Promise))((function(n,e){function r(t){try{m(o.next(t))}catch(a){e(a)}}function s(t){try{m(o["throw"](t))}catch(a){e(a)}}function m(t){t.done?n(t.value):i(t.value).then(r,s)}m((o=o.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var n={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},o,i,e,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(a){return m([t,a])}}function m(r){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(e=r[0]&2?i["return"]:r[0]?i["throw"]||((e=i["return"])&&e.call(i),0):i.next)&&!(e=e.call(i,r[1])).done)return e;if(i=0,e)r=[r[0]&2,e.value];switch(r[0]){case 0:case 1:e=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;i=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(e=n.trys,e=e.length>0&&e[e.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!e||r[1]>e[0]&&r[1]<e[3])){n.label=r[1];break}if(r[0]===6&&n.label<e[1]){n.label=e[1];e=r;break}if(e&&n.label<e[2]){n.label=e[2];n.ops.push(r);break}if(e[2])n.ops.pop();n.trys.pop();continue}r=a.call(t,n)}catch(s){r=[6,s];i=0}finally{o=e=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,a,n,o){function i(t){return t instanceof n?t:new n((function(a){a(t)}))}return new(n||(n=Promise))((function(n,e){function r(t){try{m(o.next(t))}catch(a){e(a)}}function s(t){try{m(o["throw"](t))}catch(a){e(a)}}function m(t){t.done?n(t.value):i(t.value).then(r,s)}m((o=o.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var n={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},o,i,e,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(a){return m([t,a])}}function m(r){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(e=r[0]&2?i["return"]:r[0]?i["throw"]||((e=i["return"])&&e.call(i),0):i.next)&&!(e=e.call(i,r[1])).done)return e;if(i=0,e)r=[r[0]&2,e.value];switch(r[0]){case 0:case 1:e=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;i=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(e=n.trys,e=e.length>0&&e[e.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!e||r[1]>e[0]&&r[1]<e[3])){n.label=r[1];break}if(r[0]===6&&n.label<e[1]){n.label=e[1];e=r;break}if(e&&n.label<e[2]){n.label=e[2];n.ops.push(r);break}if(e[2])n.ops.pop();n.trys.pop();continue}r=a.call(t,n)}catch(s){r=[6,s];i=0}finally{o=e=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-733be374.js";import{t}from"./index-77bdf1f1.js";import{D as Document,K as Key}from"./index-bb8d5d62.js";var ku4ModalCss="@-webkit-keyframes ku4-modal-content-enter{0%{-webkit-transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));opacity:var(--ku4-modal-content-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));opacity:var(--ku4-modal-content-animation-mid-opacity, 0.8)}100%{-webkit-transform:var(--ku4-modal-content-animation-end-transform, scale(1));transform:var(--ku4-modal-content-animation-end-transform, scale(1));opacity:var(--ku4-modal-content-animation-end-opacity, 1)}}@keyframes ku4-modal-content-enter{0%{-webkit-transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));opacity:var(--ku4-modal-content-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));opacity:var(--ku4-modal-content-animation-mid-opacity, 0.8)}100%{-webkit-transform:var(--ku4-modal-content-animation-end-transform, scale(1));transform:var(--ku4-modal-content-animation-end-transform, scale(1));opacity:var(--ku4-modal-content-animation-end-opacity, 1)}}@-webkit-keyframes ku4-modal-overlay-enter{0%{-webkit-transform:var(--ku4-modal-overlay-animation-start-transform, none);transform:var(--ku4-modal-overlay-animation-start-transform, none);opacity:var(--ku4-modal-overlay-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-overlay-animation-mid-transform, none);transform:var(--ku4-modal-overlay-animation-mid-transform, none);opacity:var(--ku4-modal-overlay-animation-mid-opacity, 0.35)}100%{-webkit-transform:var(--ku4-modal-overlay-animation-end-transform, none);transform:var(--ku4-modal-overlay-animation-end-transform, none);opacity:var(--ku4-modal-overlay-animation-end-opacity, 0.4)}}@keyframes ku4-modal-overlay-enter{0%{-webkit-transform:var(--ku4-modal-overlay-animation-start-transform, none);transform:var(--ku4-modal-overlay-animation-start-transform, none);opacity:var(--ku4-modal-overlay-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-overlay-animation-mid-transform, none);transform:var(--ku4-modal-overlay-animation-mid-transform, none);opacity:var(--ku4-modal-overlay-animation-mid-opacity, 0.35)}100%{-webkit-transform:var(--ku4-modal-overlay-animation-end-transform, none);transform:var(--ku4-modal-overlay-animation-end-transform, none);opacity:var(--ku4-modal-overlay-animation-end-opacity, 0.4)}}:host{position:fixed;display:none;top:0;left:0;width:100vw;height:100vh;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background:transparent;overflow:auto;-webkit-transform-style:var(--ku4-modal-transform-style, initial);transform-style:var(--ku4-modal-transform-style, initial)}.ku4-modal-content{position:relative;top:0;left:0}.ku4-modal-overlay{position:fixed;display:-ms-flexbox;display:flex;top:0;left:0;width:100%;height:100%;opacity:0;background:var(--ku4-modal-overlay-background, #000)}:host([visible]){display:-ms-flexbox;display:flex;z-index:var(--ku4-modal-z-index, 5)}:host([visible]) .ku4-modal-content{-webkit-animation-name:ku4-modal-content-enter;animation-name:ku4-modal-content-enter;-webkit-animation-duration:var(--ku4-modal-content-animation-duration, 0.4s);animation-duration:var(--ku4-modal-content-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-modal-content-animation-timing-function, ease);animation-timing-function:var(--ku4-modal-content-animation-timing-function, ease);-webkit-transform:var(--ku4-modal-content-transform, none);transform:var(--ku4-modal-content-transform, none);opacity:var(--ku4-modal-content-opacity, 1);z-index:calc(var(--ku4-modal-z-index, 5) + 1)}:host([visible]) .ku4-modal-overlay{-webkit-animation-name:ku4-modal-overlay-enter;animation-name:ku4-modal-overlay-enter;-webkit-animation-duration:var(--ku4-modal-overlay-animation-duration, 0.4s);animation-duration:var(--ku4-modal-overlay-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-modal-overlay-animation-timing-function, ease);animation-timing-function:var(--ku4-modal-overlay-animation-timing-function, ease);-webkit-transform:var(--ku4-modal-overlay-transform, none);transform:var(--ku4-modal-overlay-transform, none);opacity:var(--ku4-modal-overlay-opacity, 0.4);z-index:calc(var(--ku4-modal-z-index, 5))}:host([visible=false]){display:none}";var Ku4Modal=function(){function a(t){registerInstance(this,t);this.didDisplay=createEvent(this,"display",7);this.didDismiss=createEvent(this,"dismiss",7);this.visible=false;this.dismissable=true;this.dismissible=this.dismissable}a.prototype.handleVisibility=function(a){if(a){Document.preventScroll();if(t.exists(this.trap)){this.trap.activate()}}else{Document.resumeScroll();if(t.exists(this.trap)){this.trap.deactivate()}}};a.prototype.handleKeyUp=function(t){if(this.visible&&Key.esc.didFire(t)){this.dismiss()}};a.prototype.display=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.visible=true;this.didDisplay.emit(this);return[2]}))}))};a.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.visible=false;this.didDismiss.emit(this);return[2]}))}))};a.prototype.componentDidLoad=function(){try{this.trap=this.host.querySelector("ku4-focus-trap")||document.querySelector(this.focusTrap);this.handleVisibility(this.visible)}catch(t){throw new Error("Cannot connect ku4-focus-trap: ".concat(t.messsage))}};a.prototype.render=function(){var t=this;return h(Host,{role:"dialog","aria-modal":"true"},h("section",{class:"ku4-modal-content"},h("slot",null)),h("section",{class:"ku4-modal-overlay",onClick:function(){return t.dismissible&&t.dismiss()},"aria-hidden":"true"}))};Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{visible:["handleVisibility"]}},enumerable:false,configurable:true});return a}();Ku4Modal.style=ku4ModalCss;export{Ku4Modal as ku4_modal};
|
@@ -1 +1 @@
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):r(t.value).then(a,s)}u((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return u([t,e])}}function u(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(s){a=[6,s];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):r(t.value).then(a,s)}u((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return u([t,e])}}function u(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(s){a=[6,s];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-733be374.js";var ku4PanelCss=":host{-webkit-backface-visibility:hidden;display:block;width:100%;height:auto;max-height:0;-webkit-transition:max-height 0.4s, padding 0.6s;transition:max-height 0.4s, padding 0.6s;overflow:hidden}:host([open]){padding-top:inherit;padding-bottom:inherit}";var Ku4Panel=function(){function t(t){registerInstance(this,t);this.open=false;this.maxHeight=this.open?"none":"0px"}t.prototype.openHandler=function(t){if(t){this.maxHeight="".concat(this.host.scrollHeight,"px")}else{this.host.style.maxHeight="".concat(this.host.scrollHeight,"px");this.maxHeight="0px"}};t.prototype.handleTransitionEnd=function(){this.maxHeight=this.open?"none":"0px"};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=!this.open;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=false;return[2]}))}))};t.prototype.render=function(){var t=this,e=t.open,n=t.maxHeight;return h(Host,{"aria-hidden":e?"false":"true",tabIndex:e?0:-1,style:{maxHeight:n}},h("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["openHandler"]}},enumerable:false,configurable:true});return t}();Ku4Panel.style=ku4PanelCss;export{Ku4Panel as ku4_panel};
|