ku4web-components 6.4.85 → 6.4.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +2 -2
  2. package/dist/cjs/ku4-carousel-slide.cjs.entry.js +1 -1
  3. package/dist/cjs/ku4-carousel.cjs.entry.js +3 -3
  4. package/dist/cjs/ku4-col.cjs.entry.js +1 -1
  5. package/dist/cjs/ku4-drawer.cjs.entry.js +1 -1
  6. package/dist/cjs/ku4-feature.cjs.entry.js +2 -2
  7. package/dist/cjs/ku4-focus-trap.cjs.entry.js +26 -26
  8. package/dist/cjs/ku4-form.cjs.entry.js +3 -3
  9. package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
  10. package/dist/cjs/ku4-label.cjs.entry.js +2 -2
  11. package/dist/cjs/ku4-mask.cjs.entry.js +3 -3
  12. package/dist/cjs/ku4-modal.cjs.entry.js +9 -4
  13. package/dist/cjs/ku4-panel.cjs.entry.js +1 -1
  14. package/dist/cjs/ku4-preview.cjs.entry.js +14 -43
  15. package/dist/cjs/ku4-tab-list.cjs.entry.js +4 -4
  16. package/dist/cjs/ku4-tab-panel.cjs.entry.js +3 -3
  17. package/dist/cjs/ku4-tab.cjs.entry.js +3 -3
  18. package/dist/cjs/ku4-table.cjs.entry.js +1 -1
  19. package/dist/cjs/ku4-tooltip.cjs.entry.js +2 -2
  20. package/dist/cjs/ku4-validation.cjs.entry.js +2 -2
  21. package/dist/cjs/ku4web-components.cjs.js +7 -102
  22. package/dist/cjs/loader.cjs.js +2 -18
  23. package/dist/esm/ku4-carousel-controls.entry.js +2 -2
  24. package/dist/esm/ku4-carousel-slide.entry.js +1 -1
  25. package/dist/esm/ku4-carousel.entry.js +3 -3
  26. package/dist/esm/ku4-col.entry.js +1 -1
  27. package/dist/esm/ku4-drawer.entry.js +1 -1
  28. package/dist/esm/ku4-feature.entry.js +2 -2
  29. package/dist/esm/ku4-focus-trap.entry.js +3 -3
  30. package/dist/esm/ku4-form.entry.js +3 -3
  31. package/dist/esm/ku4-grid.entry.js +1 -1
  32. package/dist/esm/ku4-label.entry.js +2 -2
  33. package/dist/esm/ku4-mask.entry.js +3 -3
  34. package/dist/esm/ku4-modal.entry.js +9 -4
  35. package/dist/esm/ku4-panel.entry.js +1 -1
  36. package/dist/esm/ku4-preview.entry.js +5 -34
  37. package/dist/esm/ku4-tab-list.entry.js +4 -4
  38. package/dist/esm/ku4-tab-panel.entry.js +3 -3
  39. package/dist/esm/ku4-tab.entry.js +3 -3
  40. package/dist/esm/ku4-table.entry.js +1 -1
  41. package/dist/esm/ku4-tooltip.entry.js +2 -2
  42. package/dist/esm/ku4-validation.entry.js +2 -2
  43. package/dist/esm/ku4web-components.js +7 -102
  44. package/dist/esm/loader.js +2 -18
  45. package/dist/esm-es5/ku4-mask.entry.js +1 -1
  46. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  47. package/dist/esm-es5/ku4web-components.js +1 -1
  48. package/dist/esm-es5/loader.js +1 -1
  49. package/dist/index.js +1 -1
  50. package/dist/ku4web-components/index.esm.js +0 -1
  51. package/dist/ku4web-components/ku4web-components.css +1 -299
  52. package/dist/ku4web-components/ku4web-components.esm.js +1 -129
  53. package/dist/ku4web-components/ku4web-components.js +1 -1
  54. package/dist/ku4web-components/p-479f3ff2.entry.js +1 -0
  55. package/dist/ku4web-components/{p-5a60b1d4.system.entry.js → p-cf860f7a.system.entry.js} +1 -1
  56. package/dist/ku4web-components/p-d66b1c43.system.js +1 -1
  57. package/dist/ku4web-components/p-eace33d2.system.entry.js +1 -0
  58. package/dist/ku4web-components/p-f6b9d36e.entry.js +1 -0
  59. package/dist/types/components/ku4-modal/ku4-modal.d.ts +5 -0
  60. package/dist/types/components.d.ts +10 -2
  61. package/package.json +1 -1
  62. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  63. package/dist/cjs/css-shim-af499675.js +0 -6
  64. package/dist/cjs/dom-0e8e7262.js +0 -75
  65. package/dist/cjs/index-31267995.js +0 -3093
  66. package/dist/cjs/index-517c4086.js +0 -14
  67. package/dist/cjs/index-d6fca091.js +0 -10
  68. package/dist/cjs/uid-8ec2f63e.js +0 -11
  69. package/dist/collection/capabilities/a11y/aria.js +0 -26
  70. package/dist/collection/capabilities/angular/index.js +0 -24
  71. package/dist/collection/capabilities/decorators/deprecated.js +0 -20
  72. package/dist/collection/capabilities/decorators/index.js +0 -3
  73. package/dist/collection/capabilities/decorators/memoize.js +0 -7
  74. package/dist/collection/capabilities/dom/isFocusable.js +0 -7
  75. package/dist/collection/capabilities/dom/queryFocusable.js +0 -2
  76. package/dist/collection/capabilities/identity/uid.js +0 -6
  77. package/dist/collection/capabilities/mask/index.js +0 -5
  78. package/dist/collection/capabilities/mask/patterns/date.js +0 -40
  79. package/dist/collection/capabilities/mask/patterns/index.js +0 -7
  80. package/dist/collection/capabilities/react/index.js +0 -25
  81. package/dist/collection/capabilities/testing/html.js +0 -14
  82. package/dist/collection/capabilities/testing/styles.js +0 -14
  83. package/dist/collection/capabilities/vue/index.js +0 -28
  84. package/dist/collection/capabilities/vue3/index.js +0 -26
  85. package/dist/collection/collection-manifest.json +0 -31
  86. package/dist/collection/components/ku4-carousel/ku4-carousel.css +0 -221
  87. package/dist/collection/components/ku4-carousel/ku4-carousel.js +0 -369
  88. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.css +0 -32
  89. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.js +0 -112
  90. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.css +0 -3
  91. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.js +0 -159
  92. package/dist/collection/components/ku4-col/ku4-col.css +0 -601
  93. package/dist/collection/components/ku4-col/ku4-col.js +0 -288
  94. package/dist/collection/components/ku4-drawer/ku4-drawer.css +0 -56
  95. package/dist/collection/components/ku4-drawer/ku4-drawer.js +0 -163
  96. package/dist/collection/components/ku4-feature/ku4-feature.js +0 -70
  97. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.css +0 -3
  98. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.js +0 -441
  99. package/dist/collection/components/ku4-form/ku4-form.js +0 -225
  100. package/dist/collection/components/ku4-grid/ku4-grid.css +0 -751
  101. package/dist/collection/components/ku4-grid/ku4-grid.js +0 -408
  102. package/dist/collection/components/ku4-label/ku4-label.css +0 -36
  103. package/dist/collection/components/ku4-label/ku4-label.js +0 -115
  104. package/dist/collection/components/ku4-mask/ku4-mask.css +0 -3
  105. package/dist/collection/components/ku4-mask/ku4-mask.js +0 -458
  106. package/dist/collection/components/ku4-modal/ku4-modal.css +0 -85
  107. package/dist/collection/components/ku4-modal/ku4-modal.js +0 -208
  108. package/dist/collection/components/ku4-panel/ku4-panel.css +0 -14
  109. package/dist/collection/components/ku4-panel/ku4-panel.js +0 -119
  110. package/dist/collection/components/ku4-preview/ku4-preview.css +0 -23
  111. package/dist/collection/components/ku4-preview/ku4-preview.js +0 -266
  112. package/dist/collection/components/ku4-tab/ku4-tab.css +0 -82
  113. package/dist/collection/components/ku4-tab/ku4-tab.js +0 -191
  114. package/dist/collection/components/ku4-tab-list/ku4-tab-list.css +0 -6
  115. package/dist/collection/components/ku4-tab-list/ku4-tab-list.js +0 -118
  116. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.css +0 -26
  117. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.js +0 -166
  118. package/dist/collection/components/ku4-table/ku4-table.css +0 -116
  119. package/dist/collection/components/ku4-table/ku4-table.js +0 -120
  120. package/dist/collection/components/ku4-tooltip/ku4-tooltip.css +0 -56
  121. package/dist/collection/components/ku4-tooltip/ku4-tooltip.js +0 -274
  122. package/dist/collection/components/ku4-validation/ku4-validation.css +0 -19
  123. package/dist/collection/components/ku4-validation/ku4-validation.js +0 -364
  124. package/dist/collection/components/ku4-validation/validate.js +0 -14
  125. package/dist/collection/index.js +0 -1
  126. package/dist/collection/security.js +0 -27
  127. package/dist/esm/app-globals-0f993ce5.js +0 -3
  128. package/dist/esm/css-shim-5697df59.js +0 -4
  129. package/dist/esm/dom-1d32cb7b.js +0 -73
  130. package/dist/esm/index-135dacad.js +0 -3
  131. package/dist/esm/index-52b04dce.js +0 -3057
  132. package/dist/esm/index-f13d1b41.js +0 -3
  133. package/dist/esm/uid-a7ff854d.js +0 -9
  134. package/dist/ku4web-components/app-globals-0f993ce5.js +0 -3
  135. package/dist/ku4web-components/app-globals-497eb362.system.js +0 -1
  136. package/dist/ku4web-components/css-shim-2eb8ce1f.system.js +0 -1
  137. package/dist/ku4web-components/css-shim-5697df59.js +0 -4
  138. package/dist/ku4web-components/dom-1d32cb7b.js +0 -73
  139. package/dist/ku4web-components/dom-e6a9d306.system.js +0 -21
  140. package/dist/ku4web-components/index-135dacad.js +0 -3
  141. package/dist/ku4web-components/index-4036ffa2.system.js +0 -1
  142. package/dist/ku4web-components/index-52b04dce.js +0 -3057
  143. package/dist/ku4web-components/index-9bb2580f.system.js +0 -1
  144. package/dist/ku4web-components/index-dcd9a8a7.system.js +0 -1
  145. package/dist/ku4web-components/index-f13d1b41.js +0 -3
  146. package/dist/ku4web-components/index.system.js +0 -1
  147. package/dist/ku4web-components/ku4-carousel-controls.entry.js +0 -89
  148. package/dist/ku4web-components/ku4-carousel-controls.system.entry.js +0 -1
  149. package/dist/ku4web-components/ku4-carousel-slide.entry.js +0 -47
  150. package/dist/ku4web-components/ku4-carousel-slide.system.entry.js +0 -1
  151. package/dist/ku4web-components/ku4-carousel.entry.js +0 -175
  152. package/dist/ku4web-components/ku4-carousel.system.entry.js +0 -1
  153. package/dist/ku4web-components/ku4-col.entry.js +0 -75
  154. package/dist/ku4web-components/ku4-col.system.entry.js +0 -1
  155. package/dist/ku4web-components/ku4-drawer.entry.js +0 -35
  156. package/dist/ku4web-components/ku4-drawer.system.entry.js +0 -1
  157. package/dist/ku4web-components/ku4-feature.entry.js +0 -29
  158. package/dist/ku4web-components/ku4-feature.system.entry.js +0 -1
  159. package/dist/ku4web-components/ku4-focus-trap.entry.js +0 -323
  160. package/dist/ku4web-components/ku4-focus-trap.system.entry.js +0 -1
  161. package/dist/ku4web-components/ku4-form.entry.js +0 -112
  162. package/dist/ku4web-components/ku4-form.system.entry.js +0 -1
  163. package/dist/ku4web-components/ku4-grid.entry.js +0 -108
  164. package/dist/ku4web-components/ku4-grid.system.entry.js +0 -1
  165. package/dist/ku4web-components/ku4-label.entry.js +0 -70
  166. package/dist/ku4web-components/ku4-label.system.entry.js +0 -1
  167. package/dist/ku4web-components/ku4-mask.entry.js +0 -342
  168. package/dist/ku4web-components/ku4-mask.system.entry.js +0 -1
  169. package/dist/ku4web-components/ku4-modal.entry.js +0 -75
  170. package/dist/ku4web-components/ku4-modal.system.entry.js +0 -1
  171. package/dist/ku4web-components/ku4-panel.entry.js +0 -49
  172. package/dist/ku4web-components/ku4-panel.system.entry.js +0 -1
  173. package/dist/ku4web-components/ku4-preview.entry.js +0 -128
  174. package/dist/ku4web-components/ku4-preview.system.entry.js +0 -1
  175. package/dist/ku4web-components/ku4-tab-list.entry.js +0 -76
  176. package/dist/ku4web-components/ku4-tab-list.system.entry.js +0 -1
  177. package/dist/ku4web-components/ku4-tab-panel.entry.js +0 -72
  178. package/dist/ku4web-components/ku4-tab-panel.system.entry.js +0 -1
  179. package/dist/ku4web-components/ku4-tab.entry.js +0 -63
  180. package/dist/ku4web-components/ku4-tab.system.entry.js +0 -1
  181. package/dist/ku4web-components/ku4-table.entry.js +0 -79
  182. package/dist/ku4web-components/ku4-table.system.entry.js +0 -1
  183. package/dist/ku4web-components/ku4-tooltip.entry.js +0 -120
  184. package/dist/ku4web-components/ku4-tooltip.system.entry.js +0 -1
  185. package/dist/ku4web-components/ku4-validation.entry.js +0 -162
  186. package/dist/ku4web-components/ku4-validation.system.entry.js +0 -1
  187. package/dist/ku4web-components/ku4web-components.system.js +0 -1
  188. package/dist/ku4web-components/p-138904dc.system.entry.js +0 -1
  189. package/dist/ku4web-components/p-dd0d306b.entry.js +0 -1
  190. package/dist/ku4web-components/p-ef0b529f.entry.js +0 -1
  191. package/dist/ku4web-components/shadow-css-6a0a96e7.system.js +0 -13
  192. package/dist/ku4web-components/shadow-css-dfa0587f.js +0 -388
  193. package/dist/ku4web-components/uid-3373ce49.system.js +0 -1
  194. package/dist/ku4web-components/uid-a7ff854d.js +0 -9
@@ -1,112 +0,0 @@
1
- import { Component, Prop, Element, h } from '@stencil/core';
2
- import { Assert } from 'ku4es-kernel';
3
- /**
4
- * @description ku4-carousel-controls
5
- */
6
- export class Ku4CarouselControls {
7
- constructor() {
8
- this.carousel = document.getElementById(this.for);
9
- this.handleSlide = this.handleSlide.bind(this);
10
- this.handleChange = this.handleChange.bind(this);
11
- }
12
- get slides() {
13
- return [].slice.call(this.carousel.children);
14
- }
15
- get controls() {
16
- return [].slice.call(this.host.children);
17
- }
18
- handleSlide(e) {
19
- this.controls.forEach((control) => {
20
- control.removeAttribute('current');
21
- control.checked = false;
22
- });
23
- try {
24
- const current = this.controls[e.detail - 1];
25
- current.setAttribute('current', e.detail);
26
- current.checked = true;
27
- }
28
- catch (e) {
29
- /* Fail silently */
30
- }
31
- }
32
- async handleChange(e) {
33
- const { carousel, slides, controls } = this;
34
- const slideValue = e.target.getAttribute('slide');
35
- const n = isNaN(slideValue)
36
- ? slides.findIndex(slide => slide.getAttribute('name') === slideValue) + 1
37
- : parseInt(slideValue);
38
- const slide = isNaN(n) ? controls.indexOf(e.target) + 1 : n;
39
- await carousel.slideTo(slide);
40
- try {
41
- e.target.setAttribute('current', slide);
42
- }
43
- catch (e) {
44
- /* Fail silently */
45
- }
46
- }
47
- componentWillLoad() {
48
- const { carousel, controls } = this;
49
- try {
50
- carousel.addEventListener('slide', this.handleSlide, { passive: true });
51
- controls.forEach((control, i) => {
52
- if (i === 0) {
53
- control.setAttribute('current', i + 1);
54
- }
55
- if (control.nodeName === 'INPUT') {
56
- control.addEventListener('change', this.handleChange);
57
- }
58
- else {
59
- control.addEventListener('keydown', this.handleChange);
60
- control.addEventListener('mousedown', this.handleChange, { passive: true });
61
- control.addEventListener('touchstart', this.handleChange, { passive: true });
62
- }
63
- });
64
- }
65
- catch (e) {
66
- if (!Assert.exists(carousel)) {
67
- throw new ReferenceError('ku4-carousel-controls must connect to a ku4-carousel.');
68
- }
69
- }
70
- }
71
- disconnectedCallback() {
72
- const { carousel, controls } = this;
73
- carousel.removeEventListener('slide', this.handleSlide);
74
- controls.forEach((control) => {
75
- control.removeEventListener('change', this.handleChange);
76
- control.removeEventListener('keydown', this.handleChange);
77
- control.removeEventListener('mousedown', this.handleChange);
78
- control.removeEventListener('touchstart', this.handleChange);
79
- });
80
- }
81
- render() {
82
- return h("slot", null);
83
- }
84
- static get is() { return "ku4-carousel-controls"; }
85
- static get encapsulation() { return "shadow"; }
86
- static get originalStyleUrls() { return {
87
- "$": ["ku4-carousel-controls.scss"]
88
- }; }
89
- static get styleUrls() { return {
90
- "$": ["ku4-carousel-controls.css"]
91
- }; }
92
- static get properties() { return {
93
- "for": {
94
- "type": "string",
95
- "mutable": false,
96
- "complexType": {
97
- "original": "string",
98
- "resolved": "string",
99
- "references": {}
100
- },
101
- "required": false,
102
- "optional": false,
103
- "docs": {
104
- "tags": [],
105
- "text": "Controls for carousel having id of value"
106
- },
107
- "attribute": "for",
108
- "reflect": false
109
- }
110
- }; }
111
- static get elementRef() { return "host"; }
112
- }
@@ -1,3 +0,0 @@
1
- :host {
2
- overflow-x: hidden;
3
- }
@@ -1,159 +0,0 @@
1
- import { Component, Host, State, Method, h, Prop, } from '@stencil/core';
2
- /**
3
- * @description ku4-carousel-slide
4
- */
5
- export class Ku4CarouselSlide {
6
- constructor() {
7
- this.classList = '';
8
- }
9
- /**
10
- * Move this slide in to view.
11
- * @param {string} direction - Direction to move.
12
- */
13
- async slideIn(direction) {
14
- this.active = true;
15
- this.classList = `active ${direction}`;
16
- }
17
- /**
18
- * Move this slide out of view.
19
- * @param {string} direction - Direction to move.
20
- */
21
- async slideOut(direction) {
22
- this.active = false;
23
- this.classList = `inactive ${direction}`;
24
- }
25
- /**
26
- * Set this slide to active.
27
- */
28
- async activate() {
29
- this.active = true;
30
- this.classList = 'active';
31
- }
32
- /**
33
- * Set this slide to inactive.
34
- */
35
- async deactivate() {
36
- this.active = false;
37
- this.classList = '';
38
- }
39
- render() {
40
- const { active, classList } = this;
41
- return (h(Host, { class: `${classList}`, "aria-hidden": active ? 'false' : 'true', "aria-roledescription": "slide" },
42
- h("slot", null)));
43
- }
44
- static get is() { return "ku4-carousel-slide"; }
45
- static get encapsulation() { return "shadow"; }
46
- static get originalStyleUrls() { return {
47
- "$": ["ku4-carousel-slide.scss"]
48
- }; }
49
- static get styleUrls() { return {
50
- "$": ["ku4-carousel-slide.css"]
51
- }; }
52
- static get properties() { return {
53
- "name": {
54
- "type": "any",
55
- "mutable": true,
56
- "complexType": {
57
- "original": "any",
58
- "resolved": "any",
59
- "references": {}
60
- },
61
- "required": false,
62
- "optional": false,
63
- "docs": {
64
- "tags": [],
65
- "text": "Name of slide. The value of this property can be used as the\nvalue of the \"slide\" attribute of a ku4-carousel-control to\ntarget this slide as the active slide for the target ku4-carousel-control"
66
- },
67
- "attribute": "name",
68
- "reflect": true
69
- }
70
- }; }
71
- static get states() { return {
72
- "active": {},
73
- "classList": {}
74
- }; }
75
- static get methods() { return {
76
- "slideIn": {
77
- "complexType": {
78
- "signature": "(direction: 'prev' | 'next') => Promise<void>",
79
- "parameters": [{
80
- "tags": [{
81
- "name": "param",
82
- "text": "direction - Direction to move."
83
- }],
84
- "text": "- Direction to move."
85
- }],
86
- "references": {
87
- "Promise": {
88
- "location": "global"
89
- }
90
- },
91
- "return": "Promise<void>"
92
- },
93
- "docs": {
94
- "text": "Move this slide in to view.",
95
- "tags": [{
96
- "name": "param",
97
- "text": "direction - Direction to move."
98
- }]
99
- }
100
- },
101
- "slideOut": {
102
- "complexType": {
103
- "signature": "(direction: 'prev' | 'next') => Promise<void>",
104
- "parameters": [{
105
- "tags": [{
106
- "name": "param",
107
- "text": "direction - Direction to move."
108
- }],
109
- "text": "- Direction to move."
110
- }],
111
- "references": {
112
- "Promise": {
113
- "location": "global"
114
- }
115
- },
116
- "return": "Promise<void>"
117
- },
118
- "docs": {
119
- "text": "Move this slide out of view.",
120
- "tags": [{
121
- "name": "param",
122
- "text": "direction - Direction to move."
123
- }]
124
- }
125
- },
126
- "activate": {
127
- "complexType": {
128
- "signature": "() => Promise<void>",
129
- "parameters": [],
130
- "references": {
131
- "Promise": {
132
- "location": "global"
133
- }
134
- },
135
- "return": "Promise<void>"
136
- },
137
- "docs": {
138
- "text": "Set this slide to active.",
139
- "tags": []
140
- }
141
- },
142
- "deactivate": {
143
- "complexType": {
144
- "signature": "() => Promise<void>",
145
- "parameters": [],
146
- "references": {
147
- "Promise": {
148
- "location": "global"
149
- }
150
- },
151
- "return": "Promise<void>"
152
- },
153
- "docs": {
154
- "text": "Set this slide to inactive.",
155
- "tags": []
156
- }
157
- }
158
- }; }
159
- }