ku4web-components 6.4.34 → 6.4.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-fabdc7d0.js → index-38fe0039.js} +1 -1
- package/dist/cjs/ku4-carousel-controls.cjs.entry.js +3 -3
- package/dist/cjs/ku4-carousel-slide.cjs.entry.js +2 -2
- package/dist/cjs/ku4-carousel.cjs.entry.js +15 -9
- package/dist/cjs/ku4-col.cjs.entry.js +2 -2
- package/dist/cjs/ku4-drawer.cjs.entry.js +2 -2
- package/dist/cjs/ku4-feature.cjs.entry.js +3 -3
- package/dist/cjs/ku4-focus-trap.cjs.entry.js +27 -27
- package/dist/cjs/ku4-form.cjs.entry.js +4 -4
- package/dist/cjs/ku4-grid.cjs.entry.js +2 -2
- package/dist/cjs/ku4-label.cjs.entry.js +3 -3
- package/dist/cjs/ku4-mask.cjs.entry.js +3 -3
- package/dist/cjs/ku4-modal.cjs.entry.js +4 -4
- package/dist/cjs/ku4-panel.cjs.entry.js +2 -2
- package/dist/cjs/ku4-preview.cjs.entry.js +15 -44
- package/dist/cjs/ku4-tab-list.cjs.entry.js +5 -5
- package/dist/cjs/ku4-tab-panel.cjs.entry.js +4 -4
- package/dist/cjs/ku4-tab.cjs.entry.js +4 -4
- package/dist/cjs/ku4-table.cjs.entry.js +2 -2
- package/dist/cjs/ku4-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/ku4-validation.cjs.entry.js +4 -4
- package/dist/cjs/ku4web-components.cjs.js +8 -99
- package/dist/cjs/loader.cjs.js +3 -19
- package/dist/cjs/{shadow-css-4bfd7bfa.js → shadow-css-d8ee70b1.js} +1 -1
- package/dist/esm/{index-d14f31b2.js → index-52020db7.js} +1 -1
- package/dist/esm/ku4-carousel-controls.entry.js +3 -3
- package/dist/esm/ku4-carousel-slide.entry.js +2 -2
- package/dist/esm/ku4-carousel.entry.js +15 -9
- package/dist/esm/ku4-col.entry.js +2 -2
- package/dist/esm/ku4-drawer.entry.js +2 -2
- package/dist/esm/ku4-feature.entry.js +3 -3
- package/dist/esm/ku4-focus-trap.entry.js +4 -4
- package/dist/esm/ku4-form.entry.js +4 -4
- package/dist/esm/ku4-grid.entry.js +2 -2
- package/dist/esm/ku4-label.entry.js +3 -3
- package/dist/esm/ku4-mask.entry.js +3 -3
- package/dist/esm/ku4-modal.entry.js +4 -4
- package/dist/esm/ku4-panel.entry.js +2 -2
- package/dist/esm/ku4-preview.entry.js +6 -35
- package/dist/esm/ku4-tab-list.entry.js +5 -5
- package/dist/esm/ku4-tab-panel.entry.js +4 -4
- package/dist/esm/ku4-tab.entry.js +4 -4
- package/dist/esm/ku4-table.entry.js +2 -2
- package/dist/esm/ku4-tooltip.entry.js +3 -3
- package/dist/esm/ku4-validation.entry.js +4 -4
- package/dist/esm/ku4web-components.js +8 -99
- package/dist/esm/loader.js +3 -19
- package/dist/{ku4web-components/shadow-css-bc14d9fd.js → esm/shadow-css-c1fdfa9f.js} +1 -1
- package/dist/esm-es5/{index-d14f31b2.js → index-52020db7.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-bc14d9fd.js → shadow-css-c1fdfa9f.js} +0 -0
- package/dist/index.js +1 -1
- package/dist/ku4web-components/index.esm.js +0 -1
- package/dist/ku4web-components/ku4web-components.css +1 -283
- package/dist/ku4web-components/ku4web-components.esm.js +1 -125
- package/dist/ku4web-components/ku4web-components.js +1 -1
- package/dist/ku4web-components/{p-967f8f4b.system.entry.js → p-19147286.system.entry.js} +1 -1
- package/dist/ku4web-components/p-1fb8966a.entry.js +1 -0
- package/dist/ku4web-components/{p-c72b3ced.system.entry.js → p-2bbea5f3.system.entry.js} +1 -1
- package/dist/ku4web-components/p-4986dc9a.entry.js +1 -0
- package/dist/ku4web-components/{p-176273d5.system.js → p-4de687d8.system.js} +1 -1
- package/dist/ku4web-components/p-5848719e.system.js +1 -0
- package/dist/ku4web-components/p-5ad4d525.entry.js +1 -0
- package/dist/ku4web-components/{p-e0558b2b.system.entry.js → p-60512677.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-cb0f32a7.js → p-670d415c.js} +1 -1
- package/dist/ku4web-components/{p-c3c31235.system.entry.js → p-67b90b07.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-435478fa.system.entry.js → p-6a6ebdd6.system.entry.js} +1 -1
- package/dist/ku4web-components/p-6f56d780.entry.js +1 -0
- package/dist/ku4web-components/p-7587e933.entry.js +1 -0
- package/dist/ku4web-components/{p-3ad57422.system.entry.js → p-769237d3.system.entry.js} +1 -1
- package/dist/ku4web-components/p-7a5e62fd.entry.js +1 -0
- package/dist/ku4web-components/{p-46d73124.system.entry.js → p-8645d86f.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-cb6b67f2.entry.js → p-867d74d6.entry.js} +1 -1
- package/dist/ku4web-components/p-911a6cc5.entry.js +1 -0
- package/dist/ku4web-components/{p-7bbd50d6.system.entry.js → p-93417cb8.system.entry.js} +1 -1
- package/dist/ku4web-components/p-98548901.system.entry.js +1 -0
- package/dist/ku4web-components/{p-44f9a1a9.system.entry.js → p-9b9fb5a2.system.entry.js} +1 -1
- package/dist/ku4web-components/p-9e2c3988.entry.js +1 -0
- package/dist/ku4web-components/{p-64f6379d.system.entry.js → p-ac86618a.system.entry.js} +1 -1
- package/dist/ku4web-components/p-af5d8c77.system.entry.js +1 -0
- package/dist/ku4web-components/p-b2db2c0b.entry.js +1 -0
- package/dist/ku4web-components/p-b9cf48d6.entry.js +1 -0
- package/dist/ku4web-components/p-bfd8c04e.entry.js +1 -0
- package/dist/ku4web-components/p-c11d7118.entry.js +1 -0
- package/dist/ku4web-components/p-c194ee9c.entry.js +1 -0
- package/dist/ku4web-components/{p-c2285d3c.system.entry.js → p-c48ff8d2.system.entry.js} +1 -1
- package/dist/ku4web-components/p-cdaa80f7.entry.js +1 -0
- package/dist/ku4web-components/{ku4-col.entry.js → p-d0579e6f.entry.js} +1 -75
- package/dist/ku4web-components/p-d248862c.entry.js +1 -0
- package/dist/ku4web-components/{p-9f159c4b.system.entry.js → p-d312c8ae.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-110de527.system.entry.js → p-d3dad5b5.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-d3379ca9.system.entry.js → p-dda45242.system.entry.js} +1 -1
- package/dist/ku4web-components/p-e63f2453.entry.js +1 -0
- package/dist/ku4web-components/{p-4e89d6bc.system.entry.js → p-e89bc35d.system.entry.js} +1 -1
- package/dist/ku4web-components/{p-308941a0.system.entry.js → p-e9c1a470.system.entry.js} +1 -1
- package/dist/ku4web-components/p-ebc49910.entry.js +1 -0
- package/dist/ku4web-components/{p-a025c941.system.js → p-f4d979bb.system.js} +0 -0
- package/dist/ku4web-components/{p-3fb7c6ff.js → p-f566887e.js} +0 -0
- package/dist/ku4web-components/{p-7a3a3b7f.system.entry.js → p-faef0a79.system.entry.js} +1 -1
- package/dist/ku4web-components/p-fbba3322.entry.js +1 -0
- package/dist/ku4web-components/{p-d8836783.system.entry.js → p-ff4c04f5.system.entry.js} +1 -1
- package/dist/types/components/ku4-carousel/ku4-carousel.d.ts +4 -0
- package/dist/types/components/ku4-validation/ku4-validation.d.ts +5 -0
- package/dist/types/components.d.ts +16 -0
- package/loader/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-a6998297.js +0 -6
- package/dist/cjs/dom-66f79778.js +0 -75
- package/dist/cjs/index-51b7a610.js +0 -14
- package/dist/cjs/index-c52d450b.js +0 -10
- package/dist/cjs/index-ff13b651.js +0 -3046
- package/dist/cjs/uid-3dd31175.js +0 -11
- package/dist/collection/capabilities/a11y/aria.js +0 -26
- package/dist/collection/capabilities/angular/index.js +0 -24
- package/dist/collection/capabilities/decorators/deprecated.js +0 -20
- package/dist/collection/capabilities/decorators/index.js +0 -3
- package/dist/collection/capabilities/decorators/memoize.js +0 -7
- package/dist/collection/capabilities/dom/isFocusable.js +0 -7
- package/dist/collection/capabilities/dom/queryFocusable.js +0 -2
- package/dist/collection/capabilities/identity/uid.js +0 -6
- package/dist/collection/capabilities/mask/index.js +0 -5
- package/dist/collection/capabilities/mask/patterns/date.js +0 -40
- package/dist/collection/capabilities/mask/patterns/index.js +0 -7
- package/dist/collection/capabilities/react/index.js +0 -25
- package/dist/collection/capabilities/testing/html.js +0 -14
- package/dist/collection/capabilities/testing/styles.js +0 -14
- package/dist/collection/capabilities/vue/index.js +0 -28
- package/dist/collection/capabilities/vue3/index.js +0 -26
- package/dist/collection/collection-manifest.json +0 -31
- package/dist/collection/components/ku4-carousel/ku4-carousel.css +0 -215
- package/dist/collection/components/ku4-carousel/ku4-carousel.js +0 -335
- package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.css +0 -32
- package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.js +0 -93
- package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.css +0 -3
- package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.js +0 -140
- package/dist/collection/components/ku4-col/ku4-col.css +0 -601
- package/dist/collection/components/ku4-col/ku4-col.js +0 -288
- package/dist/collection/components/ku4-drawer/ku4-drawer.css +0 -56
- package/dist/collection/components/ku4-drawer/ku4-drawer.js +0 -163
- package/dist/collection/components/ku4-feature/ku4-feature.js +0 -70
- package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.css +0 -3
- package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.js +0 -441
- package/dist/collection/components/ku4-form/ku4-form.js +0 -194
- package/dist/collection/components/ku4-grid/ku4-grid.css +0 -751
- package/dist/collection/components/ku4-grid/ku4-grid.js +0 -408
- package/dist/collection/components/ku4-label/ku4-label.css +0 -36
- package/dist/collection/components/ku4-label/ku4-label.js +0 -115
- package/dist/collection/components/ku4-mask/ku4-mask.css +0 -3
- package/dist/collection/components/ku4-mask/ku4-mask.js +0 -427
- package/dist/collection/components/ku4-modal/ku4-modal.css +0 -85
- package/dist/collection/components/ku4-modal/ku4-modal.js +0 -186
- package/dist/collection/components/ku4-panel/ku4-panel.css +0 -14
- package/dist/collection/components/ku4-panel/ku4-panel.js +0 -119
- package/dist/collection/components/ku4-preview/ku4-preview.css +0 -23
- package/dist/collection/components/ku4-preview/ku4-preview.js +0 -249
- package/dist/collection/components/ku4-tab/ku4-tab.css +0 -82
- package/dist/collection/components/ku4-tab/ku4-tab.js +0 -191
- package/dist/collection/components/ku4-tab-list/ku4-tab-list.css +0 -6
- package/dist/collection/components/ku4-tab-list/ku4-tab-list.js +0 -118
- package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.css +0 -26
- package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.js +0 -166
- package/dist/collection/components/ku4-table/ku4-table.css +0 -116
- package/dist/collection/components/ku4-table/ku4-table.js +0 -120
- package/dist/collection/components/ku4-tooltip/ku4-tooltip.css +0 -56
- package/dist/collection/components/ku4-tooltip/ku4-tooltip.js +0 -274
- package/dist/collection/components/ku4-validation/ku4-validation.css +0 -7
- package/dist/collection/components/ku4-validation/ku4-validation.js +0 -309
- package/dist/collection/components/ku4-validation/validate.js +0 -14
- package/dist/collection/index.js +0 -1
- package/dist/collection/security.js +0 -27
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/css-shim-a64b8820.js +0 -4
- package/dist/esm/dom-d08ba8aa.js +0 -73
- package/dist/esm/index-4693d116.js +0 -3
- package/dist/esm/index-88e7b9d4.js +0 -3010
- package/dist/esm/index-89916128.js +0 -3
- package/dist/esm/shadow-css-bc14d9fd.js +0 -389
- package/dist/esm/uid-5355229f.js +0 -9
- package/dist/ku4web-components/app-globals-0f993ce5.js +0 -3
- package/dist/ku4web-components/app-globals-497eb362.system.js +0 -1
- package/dist/ku4web-components/css-shim-00dc76e5.system.js +0 -1
- package/dist/ku4web-components/css-shim-a64b8820.js +0 -4
- package/dist/ku4web-components/dom-59f9ee66.system.js +0 -21
- package/dist/ku4web-components/dom-d08ba8aa.js +0 -73
- package/dist/ku4web-components/index-3127d7f7.system.js +0 -1
- package/dist/ku4web-components/index-4693d116.js +0 -3
- package/dist/ku4web-components/index-7624f416.system.js +0 -1
- package/dist/ku4web-components/index-88e7b9d4.js +0 -3010
- package/dist/ku4web-components/index-89916128.js +0 -3
- package/dist/ku4web-components/index-aea7f048.system.js +0 -1
- package/dist/ku4web-components/index.system.js +0 -1
- package/dist/ku4web-components/ku4-carousel-controls.entry.js +0 -70
- package/dist/ku4web-components/ku4-carousel-controls.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-carousel-slide.entry.js +0 -47
- package/dist/ku4web-components/ku4-carousel-slide.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-carousel.entry.js +0 -159
- package/dist/ku4web-components/ku4-carousel.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-col.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-drawer.entry.js +0 -35
- package/dist/ku4web-components/ku4-drawer.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-feature.entry.js +0 -29
- package/dist/ku4web-components/ku4-feature.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-focus-trap.entry.js +0 -323
- package/dist/ku4web-components/ku4-focus-trap.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-form.entry.js +0 -97
- package/dist/ku4web-components/ku4-form.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-grid.entry.js +0 -108
- package/dist/ku4web-components/ku4-grid.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-label.entry.js +0 -70
- package/dist/ku4web-components/ku4-label.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-mask.entry.js +0 -311
- package/dist/ku4web-components/ku4-mask.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-modal.entry.js +0 -71
- package/dist/ku4web-components/ku4-modal.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-panel.entry.js +0 -49
- package/dist/ku4web-components/ku4-panel.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-preview.entry.js +0 -128
- package/dist/ku4web-components/ku4-preview.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-tab-list.entry.js +0 -76
- package/dist/ku4web-components/ku4-tab-list.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-tab-panel.entry.js +0 -72
- package/dist/ku4web-components/ku4-tab-panel.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-tab.entry.js +0 -63
- package/dist/ku4web-components/ku4-tab.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-table.entry.js +0 -79
- package/dist/ku4web-components/ku4-table.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-tooltip.entry.js +0 -120
- package/dist/ku4web-components/ku4-tooltip.system.entry.js +0 -1
- package/dist/ku4web-components/ku4-validation.entry.js +0 -158
- package/dist/ku4web-components/ku4-validation.system.entry.js +0 -1
- package/dist/ku4web-components/ku4web-components.system.js +0 -1
- package/dist/ku4web-components/p-026e04d8.entry.js +0 -1
- package/dist/ku4web-components/p-0a7ce92f.entry.js +0 -1
- package/dist/ku4web-components/p-10a643bb.system.js +0 -1
- package/dist/ku4web-components/p-288c6e27.entry.js +0 -1
- package/dist/ku4web-components/p-417f04e9.entry.js +0 -1
- package/dist/ku4web-components/p-4c117404.entry.js +0 -1
- package/dist/ku4web-components/p-5299172c.entry.js +0 -1
- package/dist/ku4web-components/p-6b080fd7.entry.js +0 -1
- package/dist/ku4web-components/p-731d15d8.entry.js +0 -1
- package/dist/ku4web-components/p-7760e8b4.entry.js +0 -1
- package/dist/ku4web-components/p-7764c6f2.entry.js +0 -1
- package/dist/ku4web-components/p-7ffb5116.entry.js +0 -1
- package/dist/ku4web-components/p-8063491d.entry.js +0 -1
- package/dist/ku4web-components/p-8b7e72eb.entry.js +0 -1
- package/dist/ku4web-components/p-92ddb4be.entry.js +0 -1
- package/dist/ku4web-components/p-c7dc83c3.entry.js +0 -1
- package/dist/ku4web-components/p-cb142835.system.entry.js +0 -1
- package/dist/ku4web-components/p-cb746d07.entry.js +0 -1
- package/dist/ku4web-components/p-da065955.entry.js +0 -1
- package/dist/ku4web-components/p-e7698568.system.entry.js +0 -1
- package/dist/ku4web-components/p-e8367ca4.entry.js +0 -1
- package/dist/ku4web-components/p-fb68de75.entry.js +0 -1
- package/dist/ku4web-components/shadow-css-c015bba2.system.js +0 -13
- package/dist/ku4web-components/uid-5355229f.js +0 -9
- package/dist/ku4web-components/uid-93975202.system.js +0 -1
package/dist/cjs/uid-3dd31175.js
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Sets aria-hidden attribute for passed elements
|
3
|
-
* @param {Array} elements - List of elements to set aria-hidden on
|
4
|
-
* @param {boolean} [value] - Optional value for aria-hidden.
|
5
|
-
* No value will set to previous value if available.
|
6
|
-
*/
|
7
|
-
export const ariaHidden = (elements, value) => {
|
8
|
-
if (!value) {
|
9
|
-
// eslint-disable-next-line @stencil/ban-side-effects
|
10
|
-
elements.forEach((element) => {
|
11
|
-
if (!element.currentAriaHidden) {
|
12
|
-
element.removeAttribute('aria-hidden');
|
13
|
-
}
|
14
|
-
else {
|
15
|
-
element.setAttribute('aria-hidden', element.currentAriaHidden);
|
16
|
-
}
|
17
|
-
});
|
18
|
-
}
|
19
|
-
else {
|
20
|
-
// eslint-disable-next-line @stencil/ban-side-effects
|
21
|
-
elements.forEach((element) => {
|
22
|
-
element.currentAriaHidden = element.getAttribute('aria-hidden');
|
23
|
-
element.setAttribute('aria-hidden', value);
|
24
|
-
});
|
25
|
-
}
|
26
|
-
};
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { Assert } from 'ku4es-kernel';
|
2
|
-
import {form} from 'ku4es-ui-kernel';
|
3
|
-
/**
|
4
|
-
* Method to wire a form to pass through the ku4-form validation
|
5
|
-
* mechanism before calling the application onSubmit method
|
6
|
-
* @param {Node} ref - A ref for the target form
|
7
|
-
* @param {function} onSubmit - the function to call on submit
|
8
|
-
*/
|
9
|
-
export const wireForm = (ref, onSubmit) => {
|
10
|
-
if(!ref || ref.__ku4wired__) return;
|
11
|
-
try {
|
12
|
-
const submit = ref.submit;
|
13
|
-
ref.submit = async () => {
|
14
|
-
const values = form.read(ref);
|
15
|
-
const formData = form.readData(ref);
|
16
|
-
const cont = await onSubmit(values, formData, ref);
|
17
|
-
if(!Assert.isFalse(cont)) submit.call(ref);
|
18
|
-
};
|
19
|
-
ref.__ku4wired__ = true;
|
20
|
-
}
|
21
|
-
catch(e) {
|
22
|
-
throw new Error('wireForm Error. See https://kodmunki.com/storybook/?path=/docs/form-ku4-form--basic for more information.');
|
23
|
-
}
|
24
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { Assert } from 'ku4es-kernel';
|
2
|
-
/**
|
3
|
-
* Decorates deprecated members.
|
4
|
-
*
|
5
|
-
* Note: Due to inherent issues with Stencil `@Component`, classes
|
6
|
-
* should be `@Deprecated` at the `render` method.
|
7
|
-
*
|
8
|
-
* @param {string} [replacement] - Name of target replacement member
|
9
|
-
* @param {function} [callback] - Optional callback for Unit Tests.
|
10
|
-
*/
|
11
|
-
export default (label, replacement, callback) => (_target, propertyKey, _descriptor) => {
|
12
|
-
const property = propertyKey === 'render' ? '' : `.${propertyKey}`;
|
13
|
-
const message = [
|
14
|
-
`DEPRECATED: ${label}${property}`,
|
15
|
-
'\nUse identified replacement if available.',
|
16
|
-
Assert.exists(replacement) ? `\nReplacement: ${replacement}` : '',
|
17
|
-
].join('');
|
18
|
-
// eslint-disable-next-line no-console
|
19
|
-
(callback || (message => console.warn(message)))(message);
|
20
|
-
};
|
@@ -1,7 +0,0 @@
|
|
1
|
-
export default () => (_target, _propertyKey, descriptor) => ((type) => {
|
2
|
-
let value;
|
3
|
-
return Object.assign(Object.assign({}, descriptor), { [type](...params) {
|
4
|
-
value = value || descriptor[type].call(this, ...params);
|
5
|
-
return value;
|
6
|
-
} });
|
7
|
-
})(descriptor.get ? 'get' : 'value');
|
@@ -1,7 +0,0 @@
|
|
1
|
-
const focusableTags = ['A', 'BUTTON', 'INPUT', 'SELECT', 'TEXTAREA'];
|
2
|
-
export default (element) => {
|
3
|
-
const tabindex = element.getAttribute('tabindex');
|
4
|
-
return (focusableTags.includes(element.tagName.toUpperCase()) ||
|
5
|
-
element.getAttribute('href')) &&
|
6
|
-
(!tabindex || isNaN(tabindex) || parseInt(tabindex) > -1);
|
7
|
-
};
|
@@ -1,40 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* A pattern to use for ku4-mask when a date pattern is desired.
|
3
|
-
* This will only work for mm/dd/yyyy templates. It is advised
|
4
|
-
* that this not be edited other than on lines 24+ where the
|
5
|
-
* year rules are defined.
|
6
|
-
*/
|
7
|
-
|
8
|
-
export const mm_dd = ',[01],(((?<=0)[1-9])|((?<=1)[0-2])),(((?<=(1[0-2]/))[0-3])|((?<=(0[^2]/))[0-3])|((?<=(02/))[0-2])),(((?<=/[0-2])[0-9])|((?<=/3)[01]))'
|
9
|
-
export const _1900_2199 = `,[12],(((?<=/../1)9)|((?<=/../2)[01]))`
|
10
|
-
export const _1900_2999 = `,[12],(((?<=/../1)9)|((?<=/../2)[0-9]))`
|
11
|
-
|
12
|
-
/**
|
13
|
-
* The following is an expanded for of the expression above.
|
14
|
-
* This is done to compress the expression for export. This
|
15
|
-
* could be scripted in the future.
|
16
|
-
*/
|
17
|
-
/*
|
18
|
-
export default `
|
19
|
-
,
|
20
|
-
[01],
|
21
|
-
(
|
22
|
-
((?<=0)[1-9])|
|
23
|
-
((?<=1)[0-2])
|
24
|
-
),
|
25
|
-
(
|
26
|
-
((?<=(1[0-2]/))[0-3])|
|
27
|
-
((?<=(0[^2]/))[0-3])|
|
28
|
-
((?<=(02/))[0-2])
|
29
|
-
),
|
30
|
-
(
|
31
|
-
((?<=/[0-2])[0-9])|
|
32
|
-
((?<=/3)[01])
|
33
|
-
),
|
34
|
-
[12],
|
35
|
-
(
|
36
|
-
((?<=/../1)9)|
|
37
|
-
((?<=/../2)[01])
|
38
|
-
)
|
39
|
-
`
|
40
|
-
*/
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { Assert } from 'ku4es-kernel';
|
2
|
-
import { form } from 'ku4es-ui-kernel';
|
3
|
-
|
4
|
-
/**
|
5
|
-
* Method to wire a form to pass through the ku4-form validation
|
6
|
-
* mechanism before calling the application onSubmit method
|
7
|
-
* @param {Node} ref - A React ref for the target form
|
8
|
-
* @param {function} onSubmit - the function to call on submit
|
9
|
-
*/
|
10
|
-
export const wireForm = (ref, onSubmit) => {
|
11
|
-
if(!ref || ref.__ku4wired__) return;
|
12
|
-
try {
|
13
|
-
const submit = ref.submit;
|
14
|
-
ref.submit = async () => {
|
15
|
-
const values = form.read(ref);
|
16
|
-
const formData = form.readData(ref);
|
17
|
-
const cont = await onSubmit(values, formData, ref);
|
18
|
-
if(!Assert.isFalse(cont)) submit.call(ref);
|
19
|
-
};
|
20
|
-
ref.__ku4wired__ = true;
|
21
|
-
}
|
22
|
-
catch(e) {
|
23
|
-
throw new Error('wireForm Error. See https://kodmunki.com/storybook/?path=/docs/form-ku4-form--basic for more information.');
|
24
|
-
}
|
25
|
-
};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Removes all extraneous whitespace from an HTML string so that well-formatted HTML
|
3
|
-
* can be used without consequence in Stenciljs end-to-end testing \.
|
4
|
-
*
|
5
|
-
* @param {string} value - a valid html string to 'trim'
|
6
|
-
* @returns {string}
|
7
|
-
*/
|
8
|
-
export default value => value
|
9
|
-
.replace(/<!--.*?-->/g, '')
|
10
|
-
.replace(/[\n\s]+/g, ' ')
|
11
|
-
.replace(/[\n\s]>/g, '>')
|
12
|
-
.replace(/[\n\s]+</g, '<')
|
13
|
-
.replace(/>[\n\s]+/g, '>')
|
14
|
-
.trim();
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Returns an object literal of the style property values
|
3
|
-
* for the requested selector and property array
|
4
|
-
*
|
5
|
-
* @param {string} selector - a valid query selector string
|
6
|
-
* @param {string[]} properties - an array of valid style property values to return
|
7
|
-
* @returns {string}
|
8
|
-
*/
|
9
|
-
export default (selector, properties) => properties.reduce((acc, property) => {
|
10
|
-
acc[property] = window
|
11
|
-
.getComputedStyle(document.querySelector(selector))
|
12
|
-
.getPropertyValue(property);
|
13
|
-
return acc;
|
14
|
-
}, {});
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import {Assert} from 'ku4es-kernel';
|
2
|
-
import {form} from 'ku4es-ui-kernel';
|
3
|
-
|
4
|
-
/**
|
5
|
-
* Method to wire a form to pass through the ku4-form validation
|
6
|
-
* mechanism before calling the application onSubmit method
|
7
|
-
* @param {Vue} vm - The Vue instance for the target Vue Component instance
|
8
|
-
* that encapsulates ku4-form.
|
9
|
-
* @param {string} ref - The ref for this form.
|
10
|
-
* @param {function} onSubmit - the function to call on submit
|
11
|
-
*/
|
12
|
-
export const wireForm = (vm, ref, onSubmit) => {
|
13
|
-
if(!vm || !vm.$refs || !vm.$refs[ref] || vm.$refs[ref].__ku4wired__) { return; }
|
14
|
-
try {
|
15
|
-
const _ref = vm.$refs[ref];
|
16
|
-
const {submit} = _ref;
|
17
|
-
_ref.submit = async () => {
|
18
|
-
const values = form.read(ref);
|
19
|
-
const formData = form.readData(ref);
|
20
|
-
const cont = await onSubmit.call(vm, values, formData, _ref);
|
21
|
-
if(!Assert.isFalse(cont)) submit.call(ref);
|
22
|
-
};
|
23
|
-
_ref.__ku4wired__ = true;
|
24
|
-
}
|
25
|
-
catch(e) {
|
26
|
-
throw new Error('wireForm Error. See https://kodmunki.com/storybook/?path=/docs/form-ku4-form--basic for more information.');
|
27
|
-
}
|
28
|
-
};
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import {Assert} from 'ku4es-kernel';
|
2
|
-
import {form} from 'ku4es-ui-kernel';
|
3
|
-
|
4
|
-
/**
|
5
|
-
* Method to wire a form to pass through the ku4-form validation
|
6
|
-
* mechanism before calling the application onSubmit method
|
7
|
-
* @param {string} ref - The ref for this form.
|
8
|
-
* @param {function} onSubmit - the function to call on submit
|
9
|
-
*/
|
10
|
-
export const wireForm = (ref, onSubmit) => {
|
11
|
-
if(!ref || !ref.value || ref.value.__ku4wired__) { return; }
|
12
|
-
try {
|
13
|
-
const _ref = ref.value;
|
14
|
-
const {submit} = _ref;
|
15
|
-
_ref.submit = async () => {
|
16
|
-
const values = form.read(ref.value);
|
17
|
-
const formData = form.readData(ref.value);
|
18
|
-
const cont = await onSubmit(values, formData, _ref);
|
19
|
-
if(!Assert.isFalse(cont)) submit.call(ref.value);
|
20
|
-
};
|
21
|
-
_ref.__ku4wired__ = true;
|
22
|
-
}
|
23
|
-
catch(e) {
|
24
|
-
throw new Error('wireForm Error. See https://kodmunki.com/storybook/?path=/docs/form-ku4-form--basic for more information.');
|
25
|
-
}
|
26
|
-
};
|
@@ -1,31 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"entries": [
|
3
|
-
"./components/ku4-carousel/ku4-carousel.js",
|
4
|
-
"./components/ku4-carousel-controls/ku4-carousel-controls.js",
|
5
|
-
"./components/ku4-carousel-slide/ku4-carousel-slide.js",
|
6
|
-
"./components/ku4-col/ku4-col.js",
|
7
|
-
"./components/ku4-drawer/ku4-drawer.js",
|
8
|
-
"./components/ku4-feature/ku4-feature.js",
|
9
|
-
"./components/ku4-focus-trap/ku4-focus-trap.js",
|
10
|
-
"./components/ku4-form/ku4-form.js",
|
11
|
-
"./components/ku4-grid/ku4-grid.js",
|
12
|
-
"./components/ku4-label/ku4-label.js",
|
13
|
-
"./components/ku4-mask/ku4-mask.js",
|
14
|
-
"./components/ku4-modal/ku4-modal.js",
|
15
|
-
"./components/ku4-panel/ku4-panel.js",
|
16
|
-
"./components/ku4-preview/ku4-preview.js",
|
17
|
-
"./components/ku4-tab/ku4-tab.js",
|
18
|
-
"./components/ku4-tab-list/ku4-tab-list.js",
|
19
|
-
"./components/ku4-tab-panel/ku4-tab-panel.js",
|
20
|
-
"./components/ku4-table/ku4-table.js",
|
21
|
-
"./components/ku4-tooltip/ku4-tooltip.js",
|
22
|
-
"./components/ku4-validation/ku4-validation.js"
|
23
|
-
],
|
24
|
-
"compiler": {
|
25
|
-
"name": "@stencil/core",
|
26
|
-
"version": "2.8.1",
|
27
|
-
"typescriptVersion": "4.2.3"
|
28
|
-
},
|
29
|
-
"collections": [],
|
30
|
-
"bundles": []
|
31
|
-
}
|
@@ -1,215 +0,0 @@
|
|
1
|
-
@keyframes ku4-carousel-enter-left {
|
2
|
-
0% {
|
3
|
-
top: 0;
|
4
|
-
left: -100%;
|
5
|
-
opacity: 0;
|
6
|
-
}
|
7
|
-
100% {
|
8
|
-
top: 0;
|
9
|
-
left: 0;
|
10
|
-
opacity: 1;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
@keyframes ku4-carousel-enter-right {
|
14
|
-
0% {
|
15
|
-
top: 0;
|
16
|
-
left: 100%;
|
17
|
-
opacity: 0;
|
18
|
-
}
|
19
|
-
100% {
|
20
|
-
top: 0;
|
21
|
-
left: 0;
|
22
|
-
opacity: 1;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
@keyframes ku4-carousel-exit-left {
|
26
|
-
0% {
|
27
|
-
top: 0;
|
28
|
-
left: 0;
|
29
|
-
opacity: 1;
|
30
|
-
}
|
31
|
-
100% {
|
32
|
-
top: 0;
|
33
|
-
left: -100%;
|
34
|
-
opacity: 0;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
@keyframes ku4-carousel-exit-right {
|
38
|
-
0% {
|
39
|
-
top: 0;
|
40
|
-
left: 0;
|
41
|
-
opacity: 1;
|
42
|
-
}
|
43
|
-
100% {
|
44
|
-
top: 0;
|
45
|
-
left: 100%;
|
46
|
-
opacity: 0;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
:host {
|
50
|
-
position: relative;
|
51
|
-
display: flex;
|
52
|
-
flex-direction: column;
|
53
|
-
align-items: center;
|
54
|
-
overflow: hidden;
|
55
|
-
background-color: var(--ku4-carousel-background-color, #fff);
|
56
|
-
}
|
57
|
-
|
58
|
-
.slide-container {
|
59
|
-
position: relative;
|
60
|
-
width: 100%;
|
61
|
-
height: 100%;
|
62
|
-
overflow: hidden;
|
63
|
-
}
|
64
|
-
|
65
|
-
.controls .next,
|
66
|
-
.controls .prev {
|
67
|
-
position: absolute;
|
68
|
-
display: var(--ku4-carousel-controls-display, block);
|
69
|
-
top: var(--ku4-carousel-controls-top, 0);
|
70
|
-
border: var(--ku4-carousel-controls-border, none);
|
71
|
-
background-color: var(--ku4-carousel-controls-background-color, #fff);
|
72
|
-
font-family: var(--ku4-carousel-controls-font-family, Helvetica, Arial, sans-serif);
|
73
|
-
font-weight: var(--ku4-carousel-controls-font-weight, 400);
|
74
|
-
font-size: var(--ku4-carousel-controls-font-size, 8px);
|
75
|
-
line-height: var(--ku4-carousel-controls-line-height, 12px);
|
76
|
-
opacity: var(--ku4-carousel-controls-opacity, 0.2);
|
77
|
-
z-index: var(--ku4-carousel-controls-z-index, 2);
|
78
|
-
}
|
79
|
-
.controls .next:focus,
|
80
|
-
.controls .prev:focus {
|
81
|
-
background-color: var(--ku4-carousel-controls-focus-background-color, transparent);
|
82
|
-
outline: var(--ku4-carousel-controls-focus-outline, none);
|
83
|
-
opacity: var(--ku4-carousel-controls-focus-opacity, 0.2);
|
84
|
-
}
|
85
|
-
.controls .next:hover,
|
86
|
-
.controls .prev:hover {
|
87
|
-
background-color: var(--ku4-carousel-controls-hover-background-color, transparent);
|
88
|
-
opacity: var(--ku4-carousel-controls-hover-opacity, 1);
|
89
|
-
}
|
90
|
-
|
91
|
-
.controls .next {
|
92
|
-
right: 0;
|
93
|
-
width: var(--ku4-carousel-controls-next-width, 40px);
|
94
|
-
height: var(--ku4-carousel-controls-next-height, 100%);
|
95
|
-
background-image: var(--ku4-carousel-controls-next-background-image);
|
96
|
-
background-repeat: var(--ku4-carousel-controls-next-background-repeat, no-repeat);
|
97
|
-
background-position-x: var(--ku4-carousel-controls-next-background-position-x, 0);
|
98
|
-
background-position-y: var(--ku4-carousel-controls-next-background-position-y, 50%);
|
99
|
-
background-size: var(--ku4-carousel-controls-next-background-size, 100% 100%);
|
100
|
-
}
|
101
|
-
.controls .next:focus {
|
102
|
-
background-image: var(--ku4-carousel-controls-next-focus-background-image);
|
103
|
-
background-repeat: var(--ku4-carousel-controls-next-focus-background-repeat, no-repeat);
|
104
|
-
background-position-x: var(--ku4-carousel-controls-next-focus-background-position-x, 0);
|
105
|
-
background-position-y: var(--ku4-carousel-controls-next-focus-background-position-y, 50%);
|
106
|
-
background-size: var(--ku4-carousel-controls-next-focus-background-size, 100% 100%);
|
107
|
-
}
|
108
|
-
.controls .next:hover {
|
109
|
-
background-image: var(--ku4-carousel-controls-next-hover-background-image);
|
110
|
-
background-repeat: var(--ku4-carousel-controls-next-hover-background-repeat, no-repeat);
|
111
|
-
background-position-x: var(--ku4-carousel-controls-next-hover-background-position-x, 0);
|
112
|
-
background-position-y: var(--ku4-carousel-controls-next-hover-background-position-y, 50%);
|
113
|
-
background-size: var(--ku4-carousel-controls-next-hover-background-size, 100% 100%);
|
114
|
-
}
|
115
|
-
|
116
|
-
.controls .prev {
|
117
|
-
left: 0;
|
118
|
-
width: var(--ku4-carousel-controls-next-width, 40px);
|
119
|
-
height: var(--ku4-carousel-controls-next-height, 100%);
|
120
|
-
background-image: var(--ku4-carousel-controls-previous-background-image);
|
121
|
-
background-repeat: var(--ku4-carousel-controls-previous-background-repeat, no-repeat);
|
122
|
-
background-position-x: var(--ku4-carousel-controls-previous-background-position-x, 0);
|
123
|
-
background-position-y: var(--ku4-carousel-controls-previous-background-position-y, 50%);
|
124
|
-
background-size: var(--ku4-carousel-controls-previous-background-size, 100% 100%);
|
125
|
-
}
|
126
|
-
.controls .prev:focus {
|
127
|
-
background-image: var(--ku4-carousel-controls-previous-focus-background-image);
|
128
|
-
background-repeat: var(--ku4-carousel-controls-previous-focus-background-repeat, no-repeat);
|
129
|
-
background-position-x: var(--ku4-carousel-controls-previous-focus-background-position-x, 0);
|
130
|
-
background-position-y: var(--ku4-carousel-controls-previous-focus-background-position-y, 50%);
|
131
|
-
background-size: var(--ku4-carousel-controls-previous-focus-background-size, 100% 100%);
|
132
|
-
}
|
133
|
-
.controls .prev:hover {
|
134
|
-
background-image: var(--ku4-carousel-controls-previous-hover-background-image);
|
135
|
-
background-repeat: var(--ku4-carousel-controls-previous-hover-background-repeat, no-repeat);
|
136
|
-
background-position-x: var(--ku4-carousel-controls-previous-hover-background-position-x, 0);
|
137
|
-
background-position-y: var(--ku4-carousel-controls-previous-hover-background-position-y, 50%);
|
138
|
-
background-size: var(--ku4-carousel-controls-previous-hover-background-size, 100% 100%);
|
139
|
-
}
|
140
|
-
|
141
|
-
.pages {
|
142
|
-
position: absolute;
|
143
|
-
top: var(--ku4-carousel-pages-top, auto);
|
144
|
-
bottom: var(--ku4-carousel-pages-bottom, 4px);
|
145
|
-
width: var(--ku4-carousel-pages-width, auto);
|
146
|
-
height: var(--ku4-carousel-pages-height, 20px);
|
147
|
-
background-color: var(--ku4-carousel-pages-background-color, transparent);
|
148
|
-
opacity: var(--ku4-carousel-pages-opacity, 0.5);
|
149
|
-
text-align: center;
|
150
|
-
z-index: 3;
|
151
|
-
}
|
152
|
-
|
153
|
-
.pages-text {
|
154
|
-
display: inline-block;
|
155
|
-
padding: var(--ku4-carousel-pages-text-padding, 4px);
|
156
|
-
font-family: var(--ku4-carousel-pages-text-font-family, Helvetica, Arial, sans-serif);
|
157
|
-
font-weight: var(--ku4-carousel-pages-text-font-weight, 600);
|
158
|
-
font-size: var(--ku4-carousel-pages-text-font-size, 14px);
|
159
|
-
line-height: var(--ku4-carousel-pages-text-line-height, 16px);
|
160
|
-
color: var(--ku4-carousel-pages-text-color, #aaa);
|
161
|
-
}
|
162
|
-
|
163
|
-
::slotted(*) {
|
164
|
-
position: absolute;
|
165
|
-
display: flex;
|
166
|
-
flex-direction: column;
|
167
|
-
top: 0;
|
168
|
-
left: -100%;
|
169
|
-
width: 100%;
|
170
|
-
box-sizing: border-box;
|
171
|
-
}
|
172
|
-
|
173
|
-
::slotted(.inactive) {
|
174
|
-
position: absolute;
|
175
|
-
height: 100%;
|
176
|
-
}
|
177
|
-
|
178
|
-
::slotted(.inactive.prev) {
|
179
|
-
animation-name: var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);
|
180
|
-
animation-duration: var(--ku4-carousel-animation-duration, 0.4);
|
181
|
-
animation-timing-function: var(--ku4-carousel-animation-timing-function);
|
182
|
-
}
|
183
|
-
|
184
|
-
::slotted(.inactive.next) {
|
185
|
-
animation-name: var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);
|
186
|
-
animation-duration: var(--ku4-carousel-animation-duration, 0.4);
|
187
|
-
animation-timing-function: var(--ku4-carousel-animation-timing-function);
|
188
|
-
}
|
189
|
-
|
190
|
-
::slotted(.active) {
|
191
|
-
position: relative;
|
192
|
-
top: 0;
|
193
|
-
left: 0;
|
194
|
-
width: auto;
|
195
|
-
height: 100%;
|
196
|
-
z-index: 1;
|
197
|
-
}
|
198
|
-
|
199
|
-
::slotted(.active.prev) {
|
200
|
-
animation-name: var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);
|
201
|
-
animation-duration: var(--ku4-carousel-animation-duration, 0.4);
|
202
|
-
animation-timing-function: var(--ku4-carousel-animation-timing-function, ease);
|
203
|
-
}
|
204
|
-
|
205
|
-
::slotted(.active.next) {
|
206
|
-
animation-name: var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);
|
207
|
-
animation-duration: var(--ku4-carousel-animation-duration, 0.4);
|
208
|
-
animation-timing-function: var(--ku4-carousel-animation-timing-function, ease);
|
209
|
-
}
|
210
|
-
|
211
|
-
@media (hover: hover) {
|
212
|
-
.controls:hover {
|
213
|
-
background-color: var(--ku4-carousel-controls-focus-background-color, #fff);
|
214
|
-
}
|
215
|
-
}
|