ku4web-components 6.7.0 → 6.7.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{index-1a439af7.js → index-2d850c25.js} +1 -0
- package/dist/cjs/{index-17a9a722.js → index-4ca7863f.js} +1 -1
- package/dist/cjs/ku4-carousel-controls.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/ku4-focus-trap.cjs.entry.js +2 -2
- package/dist/cjs/ku4-form.cjs.entry.js +14 -4
- package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
- package/dist/cjs/ku4-label.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/ku4-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/ku4-tab.cjs.entry.js +3 -3
- package/dist/cjs/ku4-table.cjs.entry.js +1 -1
- package/dist/cjs/ku4-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/ku4-validation.cjs.entry.js +80 -38
- package/dist/cjs/ku4web-components.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{shadow-css-d26f27a8.js → shadow-css-8ae6d6e1.js} +1 -1
- package/dist/cjs/{uid-7f3954c8.js → uid-04ee16aa.js} +1 -1
- package/dist/esm/{index-765794a2.js → index-21724a14.js} +1 -1
- package/dist/esm/{index-77bdf1f1.js → index-4dba724d.js} +1 -1
- package/dist/esm/ku4-carousel-controls.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/ku4-focus-trap.entry.js +2 -2
- package/dist/esm/ku4-form.entry.js +14 -4
- package/dist/esm/ku4-grid.entry.js +1 -1
- package/dist/esm/ku4-label.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/ku4-tab-panel.entry.js +3 -3
- package/dist/esm/ku4-tab.entry.js +3 -3
- package/dist/esm/ku4-table.entry.js +1 -1
- package/dist/esm/ku4-tooltip.entry.js +2 -2
- package/dist/esm/ku4-validation.entry.js +81 -39
- package/dist/esm/ku4web-components.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{shadow-css-e4879d51.js → shadow-css-1257b266.js} +1 -1
- package/dist/esm/{uid-d593801c.js → uid-7b4b0e6e.js} +1 -1
- package/dist/esm-es5/{index-765794a2.js → index-21724a14.js} +1 -1
- package/dist/esm-es5/{index-77bdf1f1.js → index-4dba724d.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-e4879d51.js → shadow-css-1257b266.js} +0 -0
- package/dist/esm-es5/uid-7b4b0e6e.js +1 -0
- package/dist/ku4web-components/ku4web-components.esm.js +1 -1
- package/dist/ku4web-components/ku4web-components.js +1 -1
- package/dist/ku4web-components/{p-e0f035a4.entry.js → p-0669a534.entry.js} +1 -1
- package/dist/ku4web-components/{p-934f94af.js → p-0943c493.js} +1 -1
- package/dist/ku4web-components/{p-5a54ccf4.js → p-0af98743.js} +1 -1
- package/dist/ku4web-components/{p-fc9d0277.system.entry.js → p-220c33c5.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-bdf70b2e.system.entry.js → p-22afbc6b.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-77b1edbc.system.entry.js → p-2da96838.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-7c000b31.system.entry.js → p-2df06b36.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-18bb7b9b.entry.js → p-2f4a16d7.entry.js} +1 -1
- package/dist/ku4web-components/{p-66e49732.entry.js → p-332a5a54.entry.js} +1 -1
- package/dist/ku4web-components/{p-ef22004b.system.entry.js → p-36e2caf6.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-0b2a3cfa.entry.js → p-3742c929.entry.js} +1 -1
- package/dist/ku4web-components/{p-142b7dce.entry.js → p-3d59749e.entry.js} +1 -1
- package/dist/ku4web-components/{p-fded7eeb.system.entry.js → p-4243b0a9.system.entry.js} +1 -1
- package/dist/ku4web-components/p-43d724df.system.entry.js +1 -0
- package/dist/ku4web-components/{p-ddb63577.entry.js → p-5119224c.entry.js} +1 -1
- package/dist/ku4web-components/{p-d12104ec.system.js → p-55f5c91c.system.js} +1 -1
- package/dist/ku4web-components/{p-49b9e642.entry.js → p-56f61856.entry.js} +1 -1
- package/dist/ku4web-components/{p-8474fb5c.entry.js → p-5acd5997.entry.js} +1 -1
- package/dist/ku4web-components/{p-05a99806.system.entry.js → p-6715c004.system.entry.js} +1 -1
- package/dist/ku4web-components/p-6981c0c5.system.js +1 -0
- package/dist/ku4web-components/{p-caf84e52.system.entry.js → p-6c7c6b42.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-9098ae6e.entry.js → p-6f6a8c8d.entry.js} +1 -1
- package/dist/ku4web-components/{p-ae65e754.system.entry.js → p-6fc54c2b.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-1357338f.system.entry.js → p-746378d8.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-2b88cb44.system.entry.js → p-74ef5565.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-f2ac3124.entry.js → p-7875dc99.entry.js} +1 -1
- package/dist/ku4web-components/{p-9be0de59.system.entry.js → p-90553d69.system.entry.js} +1 -1
- package/dist/ku4web-components/p-9260407c.entry.js +1 -0
- package/dist/ku4web-components/{p-f9b280d3.system.entry.js → p-9404f926.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-ffe26c05.system.entry.js → p-96c08f79.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-5dc43516.entry.js → p-996461ba.entry.js} +1 -1
- package/dist/ku4web-components/{p-567889f3.entry.js → p-9d027a50.entry.js} +1 -1
- package/dist/ku4web-components/{p-fbbfd0e9.entry.js → p-a4cd5761.entry.js} +1 -1
- package/dist/ku4web-components/{p-ac260744.system.entry.js → p-b2af9e06.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-158d613d.system.js → p-b3ad84eb.system.js} +1 -1
- package/dist/ku4web-components/{p-d7103e97.entry.js → p-bb380a04.entry.js} +1 -1
- package/dist/ku4web-components/{p-534f855b.system.entry.js → p-be3b5409.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-567c14ea.entry.js → p-c305fd7d.entry.js} +1 -1
- package/dist/ku4web-components/{p-82c0ff4b.entry.js → p-d1b4d5dc.entry.js} +1 -1
- package/dist/ku4web-components/p-d44118ae.js +1 -0
- package/dist/ku4web-components/{p-ec5d86de.system.entry.js → p-d56159f9.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-0f4f858e.entry.js → p-d9a5870c.entry.js} +1 -1
- package/dist/ku4web-components/p-e11b977e.system.js +1 -0
- package/dist/ku4web-components/p-e2659cc2.system.entry.js +1 -0
- package/dist/ku4web-components/{p-622fa398.system.js → p-e77aa4b5.system.js} +0 -0
- package/dist/ku4web-components/{p-0cba397e.system.entry.js → p-ee51fe4d.system.entry.js} +1 -1
- package/dist/ku4web-components/p-f23287da.entry.js +1 -0
- package/dist/ku4web-components/{p-b73da6fd.entry.js → p-f33f1619.entry.js} +1 -1
- package/dist/ku4web-components/{p-e9f93813.js → p-f6330722.js} +0 -0
- package/dist/types/components/ku4-validation/ku4-validation.d.ts +14 -6
- package/dist/types/components.d.ts +4 -4
- package/package.json +11 -11
- package/dist/esm-es5/uid-d593801c.js +0 -1
- package/dist/ku4web-components/p-14752b72.system.js +0 -1
- package/dist/ku4web-components/p-563d1517.system.js +0 -1
- package/dist/ku4web-components/p-8319ab00.entry.js +0 -1
- package/dist/ku4web-components/p-a110d244.js +0 -1
- package/dist/ku4web-components/p-b1ca85ef.system.entry.js +0 -1
- package/dist/ku4web-components/p-c1f37401.entry.js +0 -1
- package/dist/ku4web-components/p-e468ba85.system.entry.js +0 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
2
|
-
import { t } from './index-
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-21724a14.js';
|
2
|
+
import { t } from './index-4dba724d.js';
|
3
3
|
|
4
4
|
const ku4CarouselControlsCss = ":host{position:relative;display:block}input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:20px;height:20px;margin:0;padding:0;border:solid 1px #888;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}input[type=radio]:checked:after{content:\"\";position:absolute;top:2px;left:2px;width:14px;height:14px;margin:0;padding:0;border:solid 1px #888;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;background-color:#333}";
|
5
5
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
2
|
-
import { L, Y, c } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-21724a14.js';
|
2
|
+
import { L, Y, c } from './index-4dba724d.js';
|
3
3
|
import { S as Swipe } from './index-bb8d5d62.js';
|
4
4
|
|
5
5
|
const ku4CarouselCss = "@-webkit-keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@-webkit-keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;overflow:hidden;background-color:var(--ku4-carousel-background-color, #fff)}.slide-container{position:relative;width:100%;height:100%;overflow:hidden}.controls .next,.controls .prev{position:absolute;display:var(--ku4-carousel-controls-display, block);top:var(--ku4-carousel-controls-top, 0);border:var(--ku4-carousel-controls-border, none);background-color:var(--ku4-carousel-controls-background-color, #fff);font-family:var(--ku4-carousel-controls-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-controls-font-weight, 400);font-size:var(--ku4-carousel-controls-font-size, 8px);line-height:var(--ku4-carousel-controls-line-height, 12px);opacity:var(--ku4-carousel-controls-opacity, 0.2);z-index:var(--ku4-carousel-controls-z-index, 2)}.controls .next:focus,.controls .prev:focus{background-color:var(--ku4-carousel-controls-focus-background-color, transparent);outline:var(--ku4-carousel-controls-focus-outline, none);opacity:var(--ku4-carousel-controls-focus-opacity, 0.2)}.controls .next:hover,.controls .prev:hover{background-color:var(--ku4-carousel-controls-hover-background-color, transparent);opacity:var(--ku4-carousel-controls-hover-opacity, 1)}.controls .next{right:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-next-background-image);background-repeat:var(--ku4-carousel-controls-next-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-background-size, 100% 100%)}.controls .next:focus{background-image:var(--ku4-carousel-controls-next-focus-background-image);background-repeat:var(--ku4-carousel-controls-next-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-focus-background-size, 100% 100%)}.controls .next:hover{background-image:var(--ku4-carousel-controls-next-hover-background-image);background-repeat:var(--ku4-carousel-controls-next-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-hover-background-size, 100% 100%)}.controls .prev{left:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-previous-background-image);background-repeat:var(--ku4-carousel-controls-previous-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-background-size, 100% 100%)}.controls .prev:focus{background-image:var(--ku4-carousel-controls-previous-focus-background-image);background-repeat:var(--ku4-carousel-controls-previous-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-focus-background-size, 100% 100%)}.controls .prev:hover{background-image:var(--ku4-carousel-controls-previous-hover-background-image);background-repeat:var(--ku4-carousel-controls-previous-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-hover-background-size, 100% 100%)}.pages{position:absolute;display:var(--ku4-carousel-pages-display, block);top:var(--ku4-carousel-pages-top, auto);bottom:var(--ku4-carousel-pages-bottom, 4px);width:var(--ku4-carousel-pages-width, auto);height:var(--ku4-carousel-pages-height, 20px);background-color:var(--ku4-carousel-pages-background-color, transparent);opacity:var(--ku4-carousel-pages-opacity, 0.5);text-align:center;z-index:3}.pages-text{display:inline-block;padding:var(--ku4-carousel-pages-text-padding, 4px);font-family:var(--ku4-carousel-pages-text-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-pages-text-font-weight, 600);font-size:var(--ku4-carousel-pages-text-font-size, 14px);line-height:var(--ku4-carousel-pages-text-line-height, 16px);color:var(--ku4-carousel-pages-text-color, #aaa)}::slotted(*){position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;top:0;left:-100%;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(.inactive){position:absolute;height:100%;left:0}::slotted(.inactive.prev){-webkit-animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.inactive.next){-webkit-animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active){position:relative;top:0;left:0;width:auto;height:100%;z-index:1}::slotted(.active.prev){-webkit-animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active.next){-webkit-animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (hover: hover){.controls:hover{background-color:var(--ku4-carousel-controls-focus-background-color, #fff)}}";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-21724a14.js';
|
2
2
|
|
3
3
|
const ku4ColCss = ":host{position:relative;display:block}@media only screen and (min-width: 1px){:host(.start-xs-0){grid-column-start:1}:host(.start-xs-1){grid-column-start:2}:host(.start-xs-2){grid-column-start:3}:host(.start-xs-3){grid-column-start:4}:host(.start-xs-4){grid-column-start:5}:host(.start-xs-5){grid-column-start:6}:host(.start-xs-6){grid-column-start:7}:host(.start-xs-7){grid-column-start:8}:host(.start-xs-8){grid-column-start:9}:host(.start-xs-9){grid-column-start:10}:host(.start-xs-10){grid-column-start:11}:host(.start-xs-11){grid-column-start:12}:host(.start-xs-12){grid-column-start:13}:host(.span-xs-1){grid-column-end:span 1}:host(.span-xs-2){grid-column-end:span 2}:host(.span-xs-3){grid-column-end:span 3}:host(.span-xs-4){grid-column-end:span 4}:host(.span-xs-5){grid-column-end:span 5}:host(.span-xs-6){grid-column-end:span 6}:host(.span-xs-7){grid-column-end:span 7}:host(.span-xs-8){grid-column-end:span 8}:host(.span-xs-9){grid-column-end:span 9}:host(.span-xs-10){grid-column-end:span 10}:host(.span-xs-11){grid-column-end:span 11}:host(.span-xs-12){grid-column-end:span 12}:host(.order-xs-1){-ms-flex-order:1;order:1}:host(.order-xs-2){-ms-flex-order:2;order:2}:host(.order-xs-3){-ms-flex-order:3;order:3}:host(.order-xs-4){-ms-flex-order:4;order:4}:host(.order-xs-5){-ms-flex-order:5;order:5}:host(.order-xs-6){-ms-flex-order:6;order:6}:host(.order-xs-7){-ms-flex-order:7;order:7}:host(.order-xs-8){-ms-flex-order:8;order:8}:host(.order-xs-9){-ms-flex-order:9;order:9}:host(.order-xs-10){-ms-flex-order:10;order:10}:host(.order-xs-11){-ms-flex-order:11;order:11}:host(.order-xs-12){-ms-flex-order:12;order:12}}@media only screen and (min-width: 768px){:host(.start-sm-0){grid-column-start:1}:host(.start-sm-1){grid-column-start:2}:host(.start-sm-2){grid-column-start:3}:host(.start-sm-3){grid-column-start:4}:host(.start-sm-4){grid-column-start:5}:host(.start-sm-5){grid-column-start:6}:host(.start-sm-6){grid-column-start:7}:host(.start-sm-7){grid-column-start:8}:host(.start-sm-8){grid-column-start:9}:host(.start-sm-9){grid-column-start:10}:host(.start-sm-10){grid-column-start:11}:host(.start-sm-11){grid-column-start:12}:host(.start-sm-12){grid-column-start:13}:host(.span-sm-1){grid-column-end:span 1}:host(.span-sm-2){grid-column-end:span 2}:host(.span-sm-3){grid-column-end:span 3}:host(.span-sm-4){grid-column-end:span 4}:host(.span-sm-5){grid-column-end:span 5}:host(.span-sm-6){grid-column-end:span 6}:host(.span-sm-7){grid-column-end:span 7}:host(.span-sm-8){grid-column-end:span 8}:host(.span-sm-9){grid-column-end:span 9}:host(.span-sm-10){grid-column-end:span 10}:host(.span-sm-11){grid-column-end:span 11}:host(.span-sm-12){grid-column-end:span 12}:host(.order-sm-1){-ms-flex-order:1;order:1}:host(.order-sm-2){-ms-flex-order:2;order:2}:host(.order-sm-3){-ms-flex-order:3;order:3}:host(.order-sm-4){-ms-flex-order:4;order:4}:host(.order-sm-5){-ms-flex-order:5;order:5}:host(.order-sm-6){-ms-flex-order:6;order:6}:host(.order-sm-7){-ms-flex-order:7;order:7}:host(.order-sm-8){-ms-flex-order:8;order:8}:host(.order-sm-9){-ms-flex-order:9;order:9}:host(.order-sm-10){-ms-flex-order:10;order:10}:host(.order-sm-11){-ms-flex-order:11;order:11}:host(.order-sm-12){-ms-flex-order:12;order:12}}@media only screen and (min-width: 992px){:host(.start-md-0){grid-column-start:1}:host(.start-md-1){grid-column-start:2}:host(.start-md-2){grid-column-start:3}:host(.start-md-3){grid-column-start:4}:host(.start-md-4){grid-column-start:5}:host(.start-md-5){grid-column-start:6}:host(.start-md-6){grid-column-start:7}:host(.start-md-7){grid-column-start:8}:host(.start-md-8){grid-column-start:9}:host(.start-md-9){grid-column-start:10}:host(.start-md-10){grid-column-start:11}:host(.start-md-11){grid-column-start:12}:host(.start-md-12){grid-column-start:13}:host(.span-md-1){grid-column-end:span 1}:host(.span-md-2){grid-column-end:span 2}:host(.span-md-3){grid-column-end:span 3}:host(.span-md-4){grid-column-end:span 4}:host(.span-md-5){grid-column-end:span 5}:host(.span-md-6){grid-column-end:span 6}:host(.span-md-7){grid-column-end:span 7}:host(.span-md-8){grid-column-end:span 8}:host(.span-md-9){grid-column-end:span 9}:host(.span-md-10){grid-column-end:span 10}:host(.span-md-11){grid-column-end:span 11}:host(.span-md-12){grid-column-end:span 12}:host(.order-md-1){-ms-flex-order:1;order:1}:host(.order-md-2){-ms-flex-order:2;order:2}:host(.order-md-3){-ms-flex-order:3;order:3}:host(.order-md-4){-ms-flex-order:4;order:4}:host(.order-md-5){-ms-flex-order:5;order:5}:host(.order-md-6){-ms-flex-order:6;order:6}:host(.order-md-7){-ms-flex-order:7;order:7}:host(.order-md-8){-ms-flex-order:8;order:8}:host(.order-md-9){-ms-flex-order:9;order:9}:host(.order-md-10){-ms-flex-order:10;order:10}:host(.order-md-11){-ms-flex-order:11;order:11}:host(.order-md-12){-ms-flex-order:12;order:12}}@media only screen and (min-width: 1200px){:host(.start-lg-0){grid-column-start:1}:host(.start-lg-1){grid-column-start:2}:host(.start-lg-2){grid-column-start:3}:host(.start-lg-3){grid-column-start:4}:host(.start-lg-4){grid-column-start:5}:host(.start-lg-5){grid-column-start:6}:host(.start-lg-6){grid-column-start:7}:host(.start-lg-7){grid-column-start:8}:host(.start-lg-8){grid-column-start:9}:host(.start-lg-9){grid-column-start:10}:host(.start-lg-10){grid-column-start:11}:host(.start-lg-11){grid-column-start:12}:host(.start-lg-12){grid-column-start:13}:host(.span-lg-1){grid-column-end:span 1}:host(.span-lg-2){grid-column-end:span 2}:host(.span-lg-3){grid-column-end:span 3}:host(.span-lg-4){grid-column-end:span 4}:host(.span-lg-5){grid-column-end:span 5}:host(.span-lg-6){grid-column-end:span 6}:host(.span-lg-7){grid-column-end:span 7}:host(.span-lg-8){grid-column-end:span 8}:host(.span-lg-9){grid-column-end:span 9}:host(.span-lg-10){grid-column-end:span 10}:host(.span-lg-11){grid-column-end:span 11}:host(.span-lg-12){grid-column-end:span 12}:host(.order-lg-1){-ms-flex-order:1;order:1}:host(.order-lg-2){-ms-flex-order:2;order:2}:host(.order-lg-3){-ms-flex-order:3;order:3}:host(.order-lg-4){-ms-flex-order:4;order:4}:host(.order-lg-5){-ms-flex-order:5;order:5}:host(.order-lg-6){-ms-flex-order:6;order:6}:host(.order-lg-7){-ms-flex-order:7;order:7}:host(.order-lg-8){-ms-flex-order:8;order:8}:host(.order-lg-9){-ms-flex-order:9;order:9}:host(.order-lg-10){-ms-flex-order:10;order:10}:host(.order-lg-11){-ms-flex-order:11;order:11}:host(.order-lg-12){-ms-flex-order:12;order:12}}";
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-21724a14.js';
|
2
2
|
|
3
3
|
const ku4DrawerCss = ":host{position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;z-index:1}:host([top]),:host([bottom]){width:100%;height:0;-webkit-transition:height 0.4s;transition:height 0.4s}:host([left]),:host([right]){width:0;height:100%;-webkit-transition:width 0.4s;transition:width 0.4s}:host([top][open]),:host([bottom][open]){height:100%}:host([left][open]),:host([right][open]){width:100%}:host([top][open=false]),:host([bottom][open=false]){height:0}:host([left][open=false]),:host([right][open=false]){width:0}:host([top]),:host([left]){top:0;left:0}:host([bottom]){left:0;bottom:0}:host([right]){right:0;bottom:0}";
|
4
4
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, h, g as getElement, H as Host } from './index-
|
2
|
-
import { t } from './index-
|
1
|
+
import { r as registerInstance, h, g as getElement, H as Host } from './index-21724a14.js';
|
2
|
+
import { t } from './index-4dba724d.js';
|
3
3
|
|
4
4
|
const Ku4Feature = class {
|
5
5
|
constructor(hostRef) {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
2
|
-
import { t, o } from './index-
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-21724a14.js';
|
2
|
+
import { t, o } from './index-4dba724d.js';
|
3
3
|
import { E as Event, K as Key } from './index-bb8d5d62.js';
|
4
4
|
|
5
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
2
|
-
import { Y, t } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-21724a14.js';
|
2
|
+
import { Y, o, t } from './index-4dba724d.js';
|
3
3
|
import { i as index } from './index-bb8d5d62.js';
|
4
4
|
|
5
5
|
const Ku4Form = class {
|
@@ -28,7 +28,13 @@ const Ku4Form = class {
|
|
28
28
|
this.valid = this.isValid;
|
29
29
|
this.invalid = !this.isValid;
|
30
30
|
await Y(100)
|
31
|
-
.then(() =>
|
31
|
+
.then(() => {
|
32
|
+
const children = [].slice.call(this.form.querySelectorAll('ku4-validation[invalid]'));
|
33
|
+
const attributed = [].slice.call(document.querySelectorAll(`[form="${this.form.id}"]`));
|
34
|
+
const formValidations = attributed.map(a => document.querySelector(`ku4-validation[invalid][for="${a.id}"]`));
|
35
|
+
const externalValidations = [].slice.call(document.querySelectorAll(`ku4-validation[invalid][form="${this.form.id}"]`));
|
36
|
+
return o(children.concat(formValidations).concat(externalValidations).filter(v => t.exists(v)));
|
37
|
+
})
|
32
38
|
.then(invalid => this.didValidate.emit({ invalid }));
|
33
39
|
return this.isValid;
|
34
40
|
}
|
@@ -93,7 +99,11 @@ const Ku4Form = class {
|
|
93
99
|
return this.host.querySelector('form');
|
94
100
|
}
|
95
101
|
get fields() {
|
96
|
-
|
102
|
+
const children = [].slice.call(this.form.querySelectorAll('ku4-validation'));
|
103
|
+
const attributed = [].slice.call(document.querySelectorAll(`[form="${this.form.id}"]`));
|
104
|
+
const formValidations = attributed.map(a => document.querySelector(`ku4-validation[for="${a.id}"]`));
|
105
|
+
const externalValidations = [].slice.call(document.querySelectorAll(`ku4-validation[form="${this.form.id}"]`));
|
106
|
+
return o(children.concat(formValidations).concat(externalValidations).filter(v => t.exists(v)));
|
97
107
|
}
|
98
108
|
handleReset() {
|
99
109
|
this.isValid = true;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-21724a14.js';
|
2
2
|
|
3
3
|
const ku4GridCss = ":host{position:relative;display:block;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}@media only screen and (min-width: 1px){:host(.columns-xs-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-xs-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-xs-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-xs-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-xs-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-xs-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-xs-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-xs-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-xs-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-xs-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-xs-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-xs-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-xs-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-xs-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-xs-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-xs-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-xs-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-xs-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-xs-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-xs-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-xs-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-xs-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-xs-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-xs-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-xs-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-xs-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-xs-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-xs-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-xs-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-xs-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-xs-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-xs-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-xs-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-xs-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-xs, 6px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-xs, 6px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-xs, 6px)}}@media only screen and (min-width: 768px){:host(.columns-sm-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-sm-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-sm-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-sm-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-sm-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-sm-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-sm-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-sm-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-sm-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-sm-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-sm-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-sm-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-sm-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-sm-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-sm-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-sm-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-sm-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-sm-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-sm-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-sm-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-sm-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-sm-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-sm-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-sm-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-sm-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-sm-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-sm-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-sm-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-sm-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-sm-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-sm-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-sm-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-sm-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-sm-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-sm, 10px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-sm, 10px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-sm, 10px)}}@media only screen and (min-width: 992px){:host(.columns-md-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-md-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-md-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-md-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-md-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-md-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-md-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-md-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-md-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-md-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-md-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-md-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-md-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-md-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-md-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-md-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-md-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-md-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-md-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-md-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-md-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-md-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-md-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-md-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-md-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-md-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-md-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-md-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-md-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-md-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-md-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-md-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-md-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-md-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-md, 12px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-md, 12px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-md, 12px)}}@media only screen and (min-width: 1200px){:host(.columns-lg-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-lg-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-lg-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-lg-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-lg-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-lg-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-lg-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-lg-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-lg-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-lg-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-lg-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-lg-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-lg-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-lg-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-lg-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-lg-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-lg-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-lg-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-lg-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-lg-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-lg-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-lg-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-lg-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-lg-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-lg-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-lg-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-lg-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-lg-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-lg-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-lg-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-lg-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-lg-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-lg-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-lg-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-lg, 16px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-lg, 16px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-lg, 16px)}}::slotted(*){margin-left:var(--ku4-grid-column-gutter, 15px);margin-right:var(--ku4-grid-column-gutter, 15px)}";
|
4
4
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
2
|
-
import { Y, t, R } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-21724a14.js';
|
2
|
+
import { Y, t, R } from './index-4dba724d.js';
|
3
3
|
|
4
4
|
const ku4LabelCss = ":host{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;line-height:14px}::slotted(*){padding:6px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;font-size:18px;-webkit-appearance:none}label{position:absolute;display:var(--ku4-label-display, inline);top:var(--ku4-label-top, -6px);left:var(--ku4-label-left, 8px);padding:var(--ku4-label-padding, 0 4px);font-size:inherit;line-height:inherit;background-color:var(--ku4-label-background-color, inherit);color:inherit;z-index:1;white-space:nowrap;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}label.empty{opacity:0;-webkit-transition:all 0.1s ease;transition:all 0.1s ease}";
|
5
5
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
2
|
-
import { a, Y, t } from './index-
|
1
|
+
import { r as registerInstance, h } from './index-21724a14.js';
|
2
|
+
import { a, Y, t } from './index-4dba724d.js';
|
3
3
|
|
4
4
|
const ku4MaskCss = ":host{display:none}";
|
5
5
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
2
|
-
import { t } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-21724a14.js';
|
2
|
+
import { t } from './index-4dba724d.js';
|
3
3
|
import { D as Document, K as Key } from './index-bb8d5d62.js';
|
4
4
|
|
5
5
|
const 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}";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-21724a14.js';
|
2
2
|
|
3
3
|
const 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}";
|
4
4
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
2
|
-
import { t } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-21724a14.js';
|
2
|
+
import { t } from './index-4dba724d.js';
|
3
3
|
import { a as Device } from './index-bb8d5d62.js';
|
4
4
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-21724a14.js';
|
2
2
|
import { K as Key } from './index-bb8d5d62.js';
|
3
|
-
import { u as uid } from './uid-
|
4
|
-
import './index-
|
3
|
+
import { u as uid } from './uid-7b4b0e6e.js';
|
4
|
+
import './index-4dba724d.js';
|
5
5
|
|
6
6
|
const ku4TabListCss = ":host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}";
|
7
7
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
2
|
-
import { u as uid } from './uid-
|
3
|
-
import './index-
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-21724a14.js';
|
2
|
+
import { u as uid } from './uid-7b4b0e6e.js';
|
3
|
+
import './index-4dba724d.js';
|
4
4
|
|
5
5
|
const ku4TabPanelCss = ":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:auto}@media only screen and (min-width: 768px){:host{display:none;border-top:1px solid #ccc;border-bottom:1px solid #ccc;max-height:initial !important;-webkit-transition:none;transition:none;-ms-flex-order:2;order:2}:host([selected]){display:block;max-height:initial !important;-webkit-transition:none;transition:none}}";
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
2
|
-
import { u as uid } from './uid-
|
3
|
-
import './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-21724a14.js';
|
2
|
+
import { u as uid } from './uid-7b4b0e6e.js';
|
3
|
+
import './index-4dba724d.js';
|
4
4
|
|
5
5
|
const ku4TabCss = "button{margin:0;padding:0;border:none;background:transparent;-webkit-appearance:none}:host{position:relative;display:block;width:100%;padding:20px 30px;background-color:#eee;text-align:center;color:#aaa;cursor:pointer}:host(:focus){background-color:#eee;color:#666;z-index:2}:host(:hover){background-color:#eee;color:#666}:host(:active){background-color:#fff;color:#333}:host([selected]){border-top:1px solid #ccc;border-bottom:1px solid #ccc;background-color:#fff;color:#444}button{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}@media only screen and (min-width: 768px){:host{width:auto;border-top:1px solid #ccc;border-right:1px solid #ccc;border-top-left-radius:4px;border-top-right-radius:4px;background-color:#eee}:host(:first-of-type){border-left:1px solid #ccc}:host([selected]){padding-bottom:1px;border-top:1px solid #ccc;border-bottom:none}:host([selected]):after{content:\" \";position:absolute;display:block;left:0;bottom:-1px;width:100%;height:1px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:inherit}}";
|
6
6
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-21724a14.js';
|
2
2
|
|
3
3
|
const ku4TableCss = "ku4-table{position:relative;display:block}@media only screen and (min-width: 1px) and (max-width: 767px){@supports (display: contents){ku4-table[stack-xs=column] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-xs=column] thead,ku4-table[stack-xs=column] tbody,ku4-table[stack-xs=column] tfoot,ku4-table[stack-xs=column] tr{display:contents}ku4-table[stack-xs=column] thead .ku4-head-header{display:none}ku4-table[stack-xs=column] tbody th,ku4-table[stack-xs=column] tfoot th{position:absolute;display:block;width:0;height:0;margin:0;padding:0;line-height:0;font-size:0}ku4-table[stack-xs=column] tbody td,ku4-table[stack-xs=column] tfoot td{display:-ms-flexbox;display:flex}ku4-table[stack-xs=column] tbody td:before,ku4-table[stack-xs=column] tfoot td:before{content:attr(data-ku4-row-header)}}ku4-table[stack-xs=row] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-xs=row] thead th,ku4-table[stack-xs=row] thead td{display:none}ku4-table[stack-xs=row] thead,ku4-table[stack-xs=row] tbody,ku4-table[stack-xs=row] tfoot,ku4-table[stack-xs=row] tr,ku4-table[stack-xs=row] th,ku4-table[stack-xs=row] td{display:block}ku4-table[stack-xs=row] tbody td:before,ku4-table[stack-xs=row] tfoot td:before{content:attr(data-ku4-column-header)}}@media only screen and (min-width: 768px) and (max-width: 991px){@supports (display: contents){ku4-table[stack-sm=column] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-sm=column] thead,ku4-table[stack-sm=column] tbody,ku4-table[stack-sm=column] tfoot,ku4-table[stack-sm=column] tr{display:contents}ku4-table[stack-sm=column] thead .ku4-head-header{display:none}ku4-table[stack-sm=column] tbody th,ku4-table[stack-sm=column] tfoot th{position:absolute;display:block;width:0;height:0;margin:0;padding:0;line-height:0;font-size:0}ku4-table[stack-sm=column] tbody td,ku4-table[stack-sm=column] tfoot td{display:-ms-flexbox;display:flex}ku4-table[stack-sm=column] tbody td:before,ku4-table[stack-sm=column] tfoot td:before{content:attr(data-ku4-row-header)}}ku4-table[stack-sm=row] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-sm=row] thead th,ku4-table[stack-sm=row] thead td{display:none}ku4-table[stack-sm=row] thead,ku4-table[stack-sm=row] tbody,ku4-table[stack-sm=row] tfoot,ku4-table[stack-sm=row] tr,ku4-table[stack-sm=row] th,ku4-table[stack-sm=row] td{display:block}ku4-table[stack-sm=row] tbody td:before,ku4-table[stack-sm=row] tfoot td:before{content:attr(data-ku4-column-header)}}";
|
4
4
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
2
|
-
import { C, j, M } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-21724a14.js';
|
2
|
+
import { C, j, M } from './index-4dba724d.js';
|
3
3
|
|
4
4
|
const ku4TooltipCss = ":host{position:fixed;display:none;opacity:0;z-index:2;background-color:#fff;border:solid 1px #ccc}:host([visible]){display:block;opacity:1;-webkit-transition:opacity 0.4s;transition:opacity 0.4s}:host .arrow{position:absolute;width:var(--ku4-tooltip-arrow-size, 14px);height:var(--ku4-tooltip-arrow-size, 14px);background-color:inherit;-webkit-transform:rotate(45deg);transform:rotate(45deg);border:inherit;-webkit-box-shadow:var(--ku4-tooltip-arrow-box-shadow, none);box-shadow:var(--ku4-tooltip-arrow-box-shadow, none)}:host .content{position:relative}:host([top]) .arrow{top:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-left:none !important}:host([left]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-left:none !important;border-bottom:none !important}:host([bottom]) .arrow{left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));bottom:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-bottom:none !important;border-right:none !important}:host([right]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));right:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-right:none !important}";
|
5
5
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
2
|
-
import { t,
|
1
|
+
import { r as registerInstance, c as createEvent, h as h$1, H as Host, g as getElement } from './index-21724a14.js';
|
2
|
+
import { t, h, Y, R } from './index-4dba724d.js';
|
3
3
|
|
4
4
|
/**
|
5
5
|
* Business logic for form validation:
|
@@ -46,11 +46,15 @@ const Ku4Validation = class {
|
|
46
46
|
* A reference to a named function or a function body that
|
47
47
|
* define a validation criteria and return `true` when the
|
48
48
|
* defined validation criteria are satisfied.
|
49
|
-
* The function will be called with
|
50
|
-
* that will contain the current value of the target field
|
51
|
-
*
|
52
|
-
*
|
53
|
-
*
|
49
|
+
* The function will be called with two arguments: `value`, `values`,
|
50
|
+
* that will contain the current "value" of the target field, and
|
51
|
+
* the current "values" of the entire form as an object whose
|
52
|
+
* keys are the names of each fields and whose values are the value
|
53
|
+
* of each of these fields having name "key".
|
54
|
+
* Example (html): method="return value === 'valid' && values.key === 'valid'", or
|
55
|
+
* function validate(value, values) { return value === 'valid' && values.key === 'valid'; }
|
56
|
+
* method="validate(value, values)".
|
57
|
+
* Example (Vue3): .method="validate"
|
54
58
|
*/
|
55
59
|
this.method = '';
|
56
60
|
const patterns = this.pattern.split(' ');
|
@@ -60,7 +64,7 @@ const Ku4Validation = class {
|
|
60
64
|
this.validationMethod = t.isNullOrEmpty(method)
|
61
65
|
? () => true
|
62
66
|
: t.isString(method)
|
63
|
-
? new Function('value,
|
67
|
+
? new Function('value, values', (/^return/.test(method) ? method : `return ${method}`))
|
64
68
|
: t.isFunction(method)
|
65
69
|
? method
|
66
70
|
: () => true;
|
@@ -77,11 +81,11 @@ const Ku4Validation = class {
|
|
77
81
|
async validate() {
|
78
82
|
return await this.assert();
|
79
83
|
}
|
80
|
-
async handleInput() {
|
81
|
-
(
|
84
|
+
async handleInput({ target }) {
|
85
|
+
(target.type === 'file' || t.isFalse(this.isValid)) && await this.assert();
|
82
86
|
}
|
83
|
-
async handleChange() {
|
84
|
-
(
|
87
|
+
async handleChange({ target }) {
|
88
|
+
(target.type === 'file' || t.isFalse(this.isValid)) && await this.assert();
|
85
89
|
}
|
86
90
|
async handleBlur() {
|
87
91
|
await this.assert();
|
@@ -89,35 +93,70 @@ const Ku4Validation = class {
|
|
89
93
|
handleReset() {
|
90
94
|
this.isValid = true;
|
91
95
|
this.invalid = !this.isValid;
|
92
|
-
this.input.setAttribute('aria-invalid', this.invalid);
|
96
|
+
this.input && this.input.setAttribute('aria-invalid', this.invalid);
|
93
97
|
}
|
94
98
|
async assert() {
|
95
|
-
const { ele, validOptions, input, regex, checked
|
96
|
-
if (input.type === 'file' && t.isNullOrEmpty(input.value)) {
|
97
|
-
return;
|
98
|
-
}
|
99
|
+
const { ele, validOptions, inputs, input, regex, checked } = this;
|
99
100
|
const previousIsValid = this.isValid;
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
101
|
+
const values = await h.async(async () => await this.ku4Form.read(), {});
|
102
|
+
if (!this.disabled) {
|
103
|
+
const assertInput = async (i) => {
|
104
|
+
if (i.type === 'file' && t.isNullOrEmpty(i.value)) {
|
105
|
+
return true;
|
106
|
+
}
|
107
|
+
const valid = t.isBool(checked)
|
108
|
+
? i.checked === checked
|
109
|
+
: validate(regex, i.value, validOptions, ele) && await this.validationMethod(i.value, values);
|
110
|
+
i.setAttribute('aria-invalid', !valid);
|
111
|
+
return valid;
|
112
|
+
};
|
113
|
+
this.isValid = inputs
|
114
|
+
? !(await Promise.all(inputs.map(i => assertInput(i)))).some(v => !v)
|
115
|
+
: input
|
116
|
+
? await assertInput(input)
|
117
|
+
: true;
|
118
|
+
}
|
119
|
+
else {
|
120
|
+
this.isValid = true;
|
121
|
+
}
|
107
122
|
if (t.isFalse(previousIsValid) && this.isValid) {
|
108
123
|
this.didValidate.emit(this.isValid);
|
109
124
|
}
|
125
|
+
this.invalid = !this.isValid;
|
110
126
|
return this.isValid;
|
111
127
|
}
|
112
128
|
componentWillLoad() {
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
129
|
+
const ids = this.for.replace(/\s/g, '').replace(/,/g, ',#');
|
130
|
+
this.inputs = /,/.test(this.for) && Array.from(document.querySelectorAll(`#${ids}`));
|
131
|
+
this.input = !/,/.test(this.for) && document.getElementById(this.for);
|
132
|
+
this.ele = document.getElementById(this.element) || document.querySelector(this.element);
|
133
|
+
this.validOptions = t.exists(this.values)
|
134
|
+
? this.values.split(',')
|
135
|
+
: (this.ele && this.ele.nodeName === 'DATALIST' &&
|
136
|
+
[].slice.call(this.ele.querySelectorAll('option'))
|
137
|
+
.map(option => option.value));
|
138
|
+
if (t.isFunction(this.host.closest)) {
|
139
|
+
this.ku4Form = this.host.closest('ku4-form');
|
140
|
+
this.form = this.host.closest('form');
|
141
|
+
if (this.form && this.form.addEventListener) {
|
142
|
+
this.form.addEventListener('reset', this.handleReset);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
if (this.inputs) {
|
146
|
+
/**
|
147
|
+
* We "wait" to put this on the next event loop. This allows
|
148
|
+
* ku4-mask to be placed anywhere in the dom and not affect
|
149
|
+
* to workings of ku4-validation.
|
150
|
+
*/
|
151
|
+
Y(0).then(() => {
|
152
|
+
this.inputs.forEach((input) => {
|
153
|
+
input.addEventListener('input', this.handleInput);
|
154
|
+
input.addEventListener('change', this.handleChange);
|
155
|
+
input.addEventListener('blur', this.handleBlur);
|
156
|
+
});
|
157
|
+
});
|
158
|
+
}
|
159
|
+
else if (this.input) {
|
121
160
|
const describedby = this.input.getAttribute('aria-describedby');
|
122
161
|
const id = this.host.getAttribute('id') || R.uid();
|
123
162
|
this.host.setAttribute('id', id);
|
@@ -134,12 +173,6 @@ const Ku4Validation = class {
|
|
134
173
|
this.input.addEventListener('change', this.handleChange);
|
135
174
|
this.input.addEventListener('blur', this.handleBlur);
|
136
175
|
});
|
137
|
-
if (t.isFunction(this.host.closest)) {
|
138
|
-
this.form = this.host.closest('form');
|
139
|
-
if (this.form && this.form.addEventListener) {
|
140
|
-
this.form.addEventListener('reset', this.handleReset);
|
141
|
-
}
|
142
|
-
}
|
143
176
|
}
|
144
177
|
else {
|
145
178
|
// eslint-disable-next-line no-console
|
@@ -147,6 +180,15 @@ const Ku4Validation = class {
|
|
147
180
|
}
|
148
181
|
}
|
149
182
|
disconnectedCallback() {
|
183
|
+
if (this.inputs) {
|
184
|
+
this.inputs.forEach((input) => {
|
185
|
+
if (input && input.removeEventListener) {
|
186
|
+
input.removeEventListener('input', this.handleInput);
|
187
|
+
input.removeEventListener('change', this.handleChange);
|
188
|
+
input.removeEventListener('blur', this.handleBlur);
|
189
|
+
}
|
190
|
+
});
|
191
|
+
}
|
150
192
|
if (this.input && this.input.removeEventListener) {
|
151
193
|
this.input.removeEventListener('input', this.handleInput);
|
152
194
|
this.input.removeEventListener('change', this.handleChange);
|
@@ -157,7 +199,7 @@ const Ku4Validation = class {
|
|
157
199
|
}
|
158
200
|
}
|
159
201
|
render() {
|
160
|
-
return h(Host, { role: "alert", "aria-live": "assertive" }, h("slot", null));
|
202
|
+
return h$1(Host, { role: "alert", "aria-live": "assertive" }, h$1("slot", null));
|
161
203
|
}
|
162
204
|
get host() { return getElement(this); }
|
163
205
|
};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { d as doc, N as NAMESPACE, w as win, p as promiseResolve, b as bootstrapLazy } from './index-
|
1
|
+
import { d as doc, N as NAMESPACE, w as win, p as promiseResolve, b as bootstrapLazy } from './index-21724a14.js';
|
2
2
|
|
3
3
|
/*
|
4
|
-
Stencil Client Patch Browser v2.17.
|
4
|
+
Stencil Client Patch Browser v2.17.3 | MIT Licensed | https://stenciljs.com
|
5
5
|
*/
|
6
6
|
const patchBrowser = () => {
|
7
7
|
// @ts-ignore
|
package/dist/esm/loader.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-21724a14.js';
|
2
2
|
|
3
3
|
/*
|
4
|
-
Stencil Client Patch Esm v2.17.
|
4
|
+
Stencil Client Patch Esm v2.17.3 | MIT Licensed | https://stenciljs.com
|
5
5
|
*/
|
6
6
|
const patchEsm = () => {
|
7
7
|
return promiseResolve();
|