@lmvz-ds/components 0.15.2 → 0.16.0

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 (255) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +3 -0
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  3. package/dist/cjs/{assets-BnJmIx_h.js → assets-XY-cBmal.js} +5 -2
  4. package/dist/cjs/assets-XY-cBmal.js.map +1 -0
  5. package/dist/cjs/header-integration_7.cjs.entry.js +1024 -0
  6. package/dist/cjs/header-integration_7.cjs.entry.js.map +1 -0
  7. package/dist/cjs/{Effect-CpZhfb0D.js → icons-BOM23oli.js} +1010 -236
  8. package/dist/cjs/icons-BOM23oli.js.map +1 -0
  9. package/dist/cjs/{index-9ZJx0550.js → index-B1Puzu82.js} +11 -651
  10. package/dist/cjs/index-B1Puzu82.js.map +1 -0
  11. package/dist/cjs/{index-QRnWYctw.js → index-ww_DCXU7.js} +431 -426
  12. package/dist/cjs/index-ww_DCXU7.js.map +1 -0
  13. package/dist/cjs/index.cjs.js +13 -12
  14. package/dist/cjs/index.cjs.js.map +1 -0
  15. package/dist/cjs/lmvz-action.cjs.entry.js +5 -2
  16. package/dist/cjs/lmvz-action.cjs.entry.js.map +1 -0
  17. package/dist/cjs/lmvz-card.cjs.entry.js +6 -3
  18. package/dist/cjs/lmvz-card.cjs.entry.js.map +1 -0
  19. package/dist/cjs/lmvz-chip.cjs.entry.js +5 -2
  20. package/dist/cjs/lmvz-chip.cjs.entry.js.map +1 -0
  21. package/dist/cjs/lmvz-components.cjs.js +6 -3
  22. package/dist/cjs/lmvz-components.cjs.js.map +1 -0
  23. package/dist/cjs/loader.cjs.js +5 -2
  24. package/dist/cjs/loader.cjs.js.map +1 -0
  25. package/dist/collection/api/ds.constants.js +1 -0
  26. package/dist/collection/api/ds.constants.js.map +1 -0
  27. package/dist/collection/api/index.js +1 -0
  28. package/dist/collection/api/index.js.map +1 -0
  29. package/dist/collection/collection-manifest.json +1 -1
  30. package/dist/collection/components/lmvz-action/lmvz-action.js +2 -1
  31. package/dist/collection/components/lmvz-action/lmvz-action.js.map +1 -0
  32. package/dist/collection/components/lmvz-button/lmvz-button.js +3 -2
  33. package/dist/collection/components/lmvz-button/lmvz-button.js.map +1 -0
  34. package/dist/collection/components/lmvz-card/lmvz-card.js +4 -3
  35. package/dist/collection/components/lmvz-card/lmvz-card.js.map +1 -0
  36. package/dist/collection/components/lmvz-chip/lmvz-chip.js +3 -2
  37. package/dist/collection/components/lmvz-chip/lmvz-chip.js.map +1 -0
  38. package/dist/collection/components/lmvz-header/lmvz-header.js +13 -8
  39. package/dist/collection/components/lmvz-header/lmvz-header.js.map +1 -0
  40. package/dist/collection/components/lmvz-icon/icons.js +1 -0
  41. package/dist/collection/components/lmvz-icon/icons.js.map +1 -0
  42. package/dist/collection/components/lmvz-icon/lmvz-icon.js +8 -7
  43. package/dist/collection/components/lmvz-icon/lmvz-icon.js.map +1 -0
  44. package/dist/collection/components/lmvz-icon/public.js +1 -0
  45. package/dist/collection/components/lmvz-icon/public.js.map +1 -0
  46. package/dist/collection/components/lmvz-icon/test/icons.unit.js +1 -0
  47. package/dist/collection/components/lmvz-icon/test/icons.unit.js.map +1 -0
  48. package/dist/collection/components/lmvz-input/lmvz-input.js +32 -27
  49. package/dist/collection/components/lmvz-input/lmvz-input.js.map +1 -0
  50. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +5 -2
  51. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js.map +1 -0
  52. package/dist/collection/components/lmvz-select/lmvz-select.css +1 -1
  53. package/dist/collection/components/lmvz-select/lmvz-select.js +5 -4
  54. package/dist/collection/components/lmvz-select/lmvz-select.js.map +1 -0
  55. package/dist/collection/index.js +1 -0
  56. package/dist/collection/index.js.map +1 -0
  57. package/dist/collection/integration/header-integration.js +4 -3
  58. package/dist/collection/integration/header-integration.js.map +1 -0
  59. package/dist/collection/utils/aria/aria-validation-controller.js +1 -0
  60. package/dist/collection/utils/aria/aria-validation-controller.js.map +1 -0
  61. package/dist/collection/utils/aria/element-activation-controller.js +1 -0
  62. package/dist/collection/utils/aria/element-activation-controller.js.map +1 -0
  63. package/dist/collection/utils/aria/list-keyboard-controller.js +7 -4
  64. package/dist/collection/utils/aria/list-keyboard-controller.js.map +1 -0
  65. package/dist/collection/utils/assets.js +1 -0
  66. package/dist/collection/utils/assets.js.map +1 -0
  67. package/dist/collection/utils/component.js +7 -4
  68. package/dist/collection/utils/component.js.map +1 -0
  69. package/dist/collection/utils/effect.js +1 -0
  70. package/dist/collection/utils/effect.js.map +1 -0
  71. package/dist/collection/utils/environment.js +1 -0
  72. package/dist/collection/utils/environment.js.map +1 -0
  73. package/dist/collection/utils/http.js +1 -0
  74. package/dist/collection/utils/http.js.map +1 -0
  75. package/dist/collection/utils/http.unit.js +1 -0
  76. package/dist/collection/utils/http.unit.js.map +1 -0
  77. package/dist/collection/utils/public.js +1 -0
  78. package/dist/collection/utils/public.js.map +1 -0
  79. package/dist/collection/utils/reactive-controller-host.js +1 -0
  80. package/dist/collection/utils/reactive-controller-host.js.map +1 -0
  81. package/dist/collection/utils/validation/svg.js +1 -0
  82. package/dist/collection/utils/validation/svg.js.map +1 -0
  83. package/dist/components/header-integration.d.ts +11 -0
  84. package/dist/components/header-integration.js +2 -0
  85. package/dist/components/header-integration.js.map +1 -0
  86. package/dist/components/index.d.ts +2 -0
  87. package/dist/components/index.js +2 -1
  88. package/dist/components/index.js.map +1 -0
  89. package/dist/components/lmvz-action.js +2 -1
  90. package/dist/components/lmvz-action.js.map +1 -0
  91. package/dist/components/lmvz-button.js +2 -1
  92. package/dist/components/lmvz-button.js.map +1 -0
  93. package/dist/components/lmvz-card.js +2 -1
  94. package/dist/components/lmvz-card.js.map +1 -0
  95. package/dist/components/lmvz-chip.js +2 -1
  96. package/dist/components/lmvz-chip.js.map +1 -0
  97. package/dist/components/lmvz-header.js +2 -1
  98. package/dist/components/lmvz-header.js.map +1 -0
  99. package/dist/components/lmvz-icon.js +2 -1
  100. package/dist/components/lmvz-icon.js.map +1 -0
  101. package/dist/components/lmvz-input.js +2 -1
  102. package/dist/components/lmvz-input.js.map +1 -0
  103. package/dist/components/lmvz-menuitem.js +2 -1
  104. package/dist/components/lmvz-menuitem.js.map +1 -0
  105. package/dist/components/lmvz-select.js +2 -1
  106. package/dist/components/lmvz-select.js.map +1 -0
  107. package/dist/components/p-B2g3aN-E.js +2 -0
  108. package/dist/components/p-B2g3aN-E.js.map +1 -0
  109. package/dist/components/p-BXdOuZTp.js +2 -0
  110. package/dist/components/p-BXdOuZTp.js.map +1 -0
  111. package/dist/components/p-BfTCfPZ1.js +3 -2
  112. package/dist/components/p-BfTCfPZ1.js.map +1 -0
  113. package/dist/components/p-BpCjj39Z.js +2 -0
  114. package/dist/components/p-BpCjj39Z.js.map +1 -0
  115. package/dist/components/p-BsHYIl56.js +2 -0
  116. package/dist/components/p-BsHYIl56.js.map +1 -0
  117. package/dist/components/p-C5rqq3bf.js +2 -0
  118. package/dist/components/p-C5rqq3bf.js.map +1 -0
  119. package/dist/components/p-CI0tffvo.js +2 -0
  120. package/dist/components/p-CI0tffvo.js.map +1 -0
  121. package/dist/components/p-CN0JX9-m.js +2 -1
  122. package/dist/components/p-CN0JX9-m.js.map +1 -0
  123. package/dist/components/p-ClmDNIy4.js +2 -0
  124. package/dist/components/p-ClmDNIy4.js.map +1 -0
  125. package/dist/components/p-DQEkWkMh.js +2 -0
  126. package/dist/components/p-DQEkWkMh.js.map +1 -0
  127. package/dist/components/p-X5fEFT9T.js +2 -0
  128. package/dist/components/p-X5fEFT9T.js.map +1 -0
  129. package/dist/components/p-vIq2biqy.js +13 -0
  130. package/dist/components/p-vIq2biqy.js.map +1 -0
  131. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  132. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  133. package/dist/esm/{assets-CvV1KMMV.js → assets-BD98wsl7.js} +4 -1
  134. package/dist/esm/assets-BD98wsl7.js.map +1 -0
  135. package/dist/esm/header-integration_7.entry.js +1016 -0
  136. package/dist/esm/header-integration_7.entry.js.map +1 -0
  137. package/dist/esm/{Effect-DyamyJqO.js → icons-D1lxdRXP.js} +975 -174
  138. package/dist/esm/icons-D1lxdRXP.js.map +1 -0
  139. package/dist/esm/{index-CekEw3_K.js → index-DoNkkDv1.js} +6 -1
  140. package/dist/esm/index-DoNkkDv1.js.map +1 -0
  141. package/dist/esm/{index-smGPjoDX.js → index-WeqgWisK.js} +11 -651
  142. package/dist/esm/index-WeqgWisK.js.map +1 -0
  143. package/dist/esm/index.js +7 -5
  144. package/dist/esm/index.js.map +1 -0
  145. package/dist/esm/lmvz-action.entry.js +5 -2
  146. package/dist/esm/lmvz-action.entry.js.map +1 -0
  147. package/dist/esm/lmvz-card.entry.js +6 -3
  148. package/dist/esm/lmvz-card.entry.js.map +1 -0
  149. package/dist/esm/lmvz-chip.entry.js +5 -2
  150. package/dist/esm/lmvz-chip.entry.js.map +1 -0
  151. package/dist/esm/lmvz-components.js +7 -4
  152. package/dist/esm/lmvz-components.js.map +1 -0
  153. package/dist/esm/loader.js +6 -3
  154. package/dist/esm/loader.js.map +1 -0
  155. package/dist/ext-libs.d.ts +1 -0
  156. package/dist/lmvz-components/index.esm.js +2 -1
  157. package/dist/lmvz-components/index.esm.js.map +1 -0
  158. package/dist/lmvz-components/lmvz-components.esm.js +2 -1
  159. package/dist/lmvz-components/lmvz-components.esm.js.map +1 -0
  160. package/dist/lmvz-components/p-33485219.entry.js +2 -0
  161. package/dist/lmvz-components/p-33485219.entry.js.map +1 -0
  162. package/dist/lmvz-components/p-76032c32.entry.js +2 -0
  163. package/dist/lmvz-components/p-76032c32.entry.js.map +1 -0
  164. package/dist/lmvz-components/p-7aeec9a8.entry.js +7 -0
  165. package/dist/lmvz-components/p-7aeec9a8.entry.js.map +1 -0
  166. package/dist/lmvz-components/p-84e0a9dd.entry.js +2 -0
  167. package/dist/lmvz-components/p-84e0a9dd.entry.js.map +1 -0
  168. package/dist/lmvz-components/p-CkJb8WVZ.js +2 -0
  169. package/dist/lmvz-components/p-CkJb8WVZ.js.map +1 -0
  170. package/dist/lmvz-components/p-DQuL1Twl.js +2 -1
  171. package/dist/lmvz-components/p-DQuL1Twl.js.map +1 -0
  172. package/dist/lmvz-components/p-WeqgWisK.js +3 -0
  173. package/dist/lmvz-components/p-WeqgWisK.js.map +1 -0
  174. package/dist/lmvz-components/p-Z9X0_ik0.js +2 -0
  175. package/dist/lmvz-components/p-Z9X0_ik0.js.map +1 -0
  176. package/dist/lmvz-components/p-eP0oxQ44.js +13 -0
  177. package/dist/lmvz-components/p-eP0oxQ44.js.map +1 -0
  178. package/dist/manifest.json +196 -76
  179. package/dist/stencil.config.base.js +45 -0
  180. package/dist/stencil.config.base.js.map +1 -0
  181. package/dist/stencil.config.dev.js +22 -0
  182. package/dist/stencil.config.dev.js.map +1 -0
  183. package/dist/stencil.config.integration.js +27 -0
  184. package/dist/stencil.config.integration.js.map +1 -0
  185. package/dist/stencil.config.js +16 -0
  186. package/dist/stencil.config.js.map +1 -0
  187. package/dist/stencil.config.prod.js +30 -0
  188. package/dist/stencil.config.prod.js.map +1 -0
  189. package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.base.d.ts +2 -0
  190. package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.d.ts +2 -0
  191. package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.dev.d.ts +2 -0
  192. package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.integration.d.ts +2 -0
  193. package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.prod.d.ts +2 -0
  194. package/dist/types/components/lmvz-action/lmvz-action.d.ts +1 -1
  195. package/dist/types/components/lmvz-button/lmvz-button.d.ts +2 -2
  196. package/dist/types/components/lmvz-card/lmvz-card.d.ts +1 -1
  197. package/dist/types/components/lmvz-header/lmvz-header.d.ts +3 -3
  198. package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +4 -4
  199. package/dist/types/components/lmvz-input/lmvz-input.d.ts +3 -3
  200. package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +3 -3
  201. package/dist/types/components/lmvz-select/lmvz-select.d.ts +1 -1
  202. package/dist/types/components.d.ts +21 -3
  203. package/dist/types/index.d.ts +1 -1
  204. package/dist/types/integration/header-integration.d.ts +5 -0
  205. package/dist/types/utils/aria/aria-validation-controller.d.ts +1 -1
  206. package/dist/types/utils/aria/element-activation-controller.d.ts +1 -1
  207. package/dist/types/utils/component.d.ts +2 -2
  208. package/dist/types/utils/http.d.ts +3 -3
  209. package/dist/types/utils/validation/svg.d.ts +1 -1
  210. package/hydrate/index.js +907 -440
  211. package/hydrate/index.mjs +907 -440
  212. package/package.json +33 -73
  213. package/readme.md +2 -2
  214. package/dist/cjs/aria-loader-B7b45RMv.js +0 -86
  215. package/dist/cjs/component-CRc6eHcV.js +0 -138
  216. package/dist/cjs/element-activation-controller-DC_6T0Rt.js +0 -31
  217. package/dist/cjs/icons-Brr4vqiE.js +0 -653
  218. package/dist/cjs/lmvz-button_3.cjs.entry.js +0 -399
  219. package/dist/cjs/lmvz-header.cjs.entry.js +0 -144
  220. package/dist/cjs/lmvz-icon.cjs.entry.js +0 -87
  221. package/dist/cjs/lmvz-menuitem.cjs.entry.js +0 -34
  222. package/dist/cjs/reactive-controller-host-Ai9l4S9S.js +0 -189
  223. package/dist/collection/utils/typing.js +0 -1
  224. package/dist/components/p-B3JVFwO1.js +0 -1
  225. package/dist/components/p-BaPwpeMs.js +0 -1
  226. package/dist/components/p-CSRpdnrt.js +0 -1
  227. package/dist/components/p-DK2hpvEW.js +0 -12
  228. package/dist/components/p-DR19QMDG.js +0 -1
  229. package/dist/components/p-DcMNH3fv.js +0 -1
  230. package/dist/esm/aria-loader-Ddn7Qz_6.js +0 -79
  231. package/dist/esm/component-DpoTUPzl.js +0 -132
  232. package/dist/esm/element-activation-controller-CN0JX9-m.js +0 -29
  233. package/dist/esm/icons-C69Um2xB.js +0 -649
  234. package/dist/esm/lmvz-button_3.entry.js +0 -395
  235. package/dist/esm/lmvz-header.entry.js +0 -142
  236. package/dist/esm/lmvz-icon.entry.js +0 -85
  237. package/dist/esm/lmvz-menuitem.entry.js +0 -32
  238. package/dist/esm/reactive-controller-host-CdAJ3t-B.js +0 -186
  239. package/dist/lmvz-components/p-70ca3319.entry.js +0 -1
  240. package/dist/lmvz-components/p-73648317.entry.js +0 -1
  241. package/dist/lmvz-components/p-8ed959da.entry.js +0 -1
  242. package/dist/lmvz-components/p-9526c364.entry.js +0 -1
  243. package/dist/lmvz-components/p-9faac8f3.entry.js +0 -1
  244. package/dist/lmvz-components/p-B7KSylv_.js +0 -1
  245. package/dist/lmvz-components/p-BEoSvNlI.js +0 -1
  246. package/dist/lmvz-components/p-CN0JX9-m.js +0 -1
  247. package/dist/lmvz-components/p-D7GrtdQF.js +0 -1
  248. package/dist/lmvz-components/p-D7RHrBYK.js +0 -1
  249. package/dist/lmvz-components/p-DpoTUPzl.js +0 -1
  250. package/dist/lmvz-components/p-DyamyJqO.js +0 -1
  251. package/dist/lmvz-components/p-cM67HC0Z.js +0 -12
  252. package/dist/lmvz-components/p-d4b68381.entry.js +0 -1
  253. package/dist/lmvz-components/p-ea1a9d4a.entry.js +0 -6
  254. package/dist/lmvz-components/p-smGPjoDX.js +0 -2
  255. package/dist/types/utils/typing.d.ts +0 -3
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lmvz-ds/components",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "0.15.2",
5
+ "version": "0.16.0",
6
6
  "description": "The components of the design system",
7
7
  "author": "Patrick Nemenz <patrick.nemenz@adesso.at>",
8
8
  "volta": {
@@ -108,86 +108,46 @@
108
108
  "type": "git",
109
109
  "url": "https://bitbucket.org/lmvz/lmvz-ds"
110
110
  },
111
- "scripts": {
112
- "start": "npm run start:integration",
113
- "start:integration": "npm run build:integration -- --watch",
114
- "start:dev": "stencil build --watch --dev --serve --config stencil.config.dev.ts",
115
- "build": "npm run build:components",
116
- "build:components": "stencil build --docs --prod --config stencil.config.prod.ts",
117
- "build:debug": "node --inspect-brk ../../node_modules/.bin/stencil build --debug --docs --config ./stencil.config.dev.ts",
118
- "build:integration": "stencil build --config stencil.config.integration.ts",
119
- "test": "stencil-test",
120
- "test:watch": "stencil-test --watch",
121
- "lint": "concurrently 'eslint \"src/**\"' 'stylelint \"src/**/*.css\" --config ./stylelint.config.mjs'",
122
- "generate": "stencil generate",
123
- "update": "npx npm-check-updates -u"
124
- },
125
- "nx": {
126
- "targets": {
127
- "start:integration": {
128
- "dependsOn": [
129
- "^build"
130
- ]
131
- },
132
- "start:dev": {
133
- "dependsOn": [
134
- "^build"
135
- ]
136
- },
137
- "build:integration": {
138
- "dependsOn": [
139
- "^build"
140
- ]
141
- },
142
- "build:components": {
143
- "cache": true,
144
- "dependsOn": [
145
- "^build:components"
146
- ],
147
- "outputs": [
148
- "{projectRoot}/src/components.d.ts",
149
- "{projectRoot}/.stencil",
150
- "{projectRoot}/dist",
151
- "{projectRoot}/hydrate",
152
- "{projectRoot}/loader",
153
- "{projectRoot}/assets"
154
- ]
155
- },
156
- "lint": {
157
- "dependsOn": [
158
- "^build"
159
- ]
160
- }
161
- }
162
- },
163
111
  "dependencies": {
164
- "@lmvz-ds/aria-validation": "^0.15.2",
165
112
  "classnames": "^2.5.1",
166
- "effect": "3.19.14"
113
+ "effect": "^3.21.0",
114
+ "@lmvz-ds/aria-validation": "~0.16.0"
167
115
  },
168
116
  "devDependencies": {
169
- "@lmvz-ds/design-tokens": "^0.15.2",
170
- "@lmvz-ds/lib-styles": "^0.15.2",
171
- "@lmvz-ds/styles": "^0.15.2",
172
- "@stencil-community/postcss": "^2.2.0",
117
+ "@stencil-community/postcss": "2.2.0",
173
118
  "@stencil/angular-output-target": "1.3.0",
174
- "@stencil/core": "4.43.2",
175
- "@stencil/react-output-target": "^1.2.0",
176
- "@stencil/utils": "0.0.5",
177
- "@stencil/vitest": "^1.7.0",
178
- "@stencil/vue-output-target": "^0.11.8",
119
+ "@stencil/core": "^4.43.3",
120
+ "@stencil/react-output-target": "1.4.2",
121
+ "@stencil/vitest": "1.8.3",
122
+ "@stencil/vue-output-target": "0.13.1",
179
123
  "@types/postcss-import": "^14.0.3",
180
124
  "concurrently": "^9.2.1",
181
125
  "happy-dom": "^20.8.4",
126
+ "postcss-auto-var-fallback": "1.1.0",
182
127
  "postcss-import": "^16.1.1",
183
128
  "rollup-plugin-postcss": "^4.0.2",
184
- "stylelint": "^17.0.0",
185
- "stylelint-config-standard": "^40.0.0",
186
- "stylelint-value-no-unknown-custom-properties": "file:../../stylelint-value-no-unknown-custom-properties",
187
- "ts-deepmerge": "^7.0.3",
188
- "tsx": "^4.21.0",
189
- "vite": "^7.3.1",
190
- "vitest": "^4.1.0"
129
+ "stylelint": "^16.0.1",
130
+ "stylelint-config-standard": "^38.0.0",
131
+ "stylelint-value-no-unknown-custom-properties": "6.1.1",
132
+ "tslib": "^2.8.1",
133
+ "tsx": "^4.8.1",
134
+ "vite": "^8.0.2",
135
+ "vitest": "^4.1.0",
136
+ "@lmvz-ds/lib-config": "0.15.2",
137
+ "@lmvz-ds/lib-styles": "~0.15.2",
138
+ "@lmvz-ds/styles": "~0.16.0",
139
+ "@lmvz-ds/design-tokens": "~0.15.2"
191
140
  },
192
- "gitHead": "e1ce65110d865c0b8932e3d543be5f2ef448184d"
193
- }
141
+ "gitHead": "aaec2215b0239d6fa4a5876af444e0b7abba2c7d",
142
+ "scripts": {
143
+ "start": "pnpm run build:integration -- --watch",
144
+ "dev": "stencil build --watch --dev --serve --config stencil.config.dev.ts",
145
+ "build": "stencil build --docs --prod --config stencil.config.prod.ts",
146
+ "build:debug": "node --inspect-brk ../../node_modules/.bin/stencil build --debug --docs --config ./stencil.config.dev.ts",
147
+ "build:integration": "stencil build --config stencil.config.integration.ts",
148
+ "test": "pnpm stencil-test",
149
+ "test:watch": "pnpm stencil-test --watch",
150
+ "lint": "concurrently 'eslint \"src/**\"' 'stylelint \"src/**/*.css\" --config ./stylelint.config.mjs'",
151
+ "generate": "stencil generate"
152
+ }
153
+ }
package/readme.md CHANGED
@@ -114,7 +114,7 @@ Use the `start:dev` script to start Stencil's dev server.
114
114
  To build the components (and styles) for production, run the build script. This will also sync changes to the wrapper projects.
115
115
 
116
116
  ```bash
117
- npm run build
117
+ pnpm run build
118
118
  ```
119
119
 
120
120
  ### Creating New Components
@@ -122,7 +122,7 @@ npm run build
122
122
  Always use the `lmvz-` prefix when creating new components!
123
123
 
124
124
  ```bash
125
- npm run @stencil/core generate lmvz-[component name]
125
+ pnpm run @stencil/core generate lmvz-[component name]
126
126
  ```
127
127
 
128
128
  ### Testing
@@ -1,86 +0,0 @@
1
- 'use strict';
2
-
3
- const GLOBAL_STATE_KEY = Symbol('__lmvzAriaValidationRuntimeState');
4
- const ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = 'lmvz:aria-validation-runtime-changed';
5
- function getRuntimeState() {
6
- const globalState = globalThis;
7
- if (!globalState[GLOBAL_STATE_KEY]) {
8
- globalState[GLOBAL_STATE_KEY] = {
9
- enabled: false,
10
- };
11
- }
12
- return globalState[GLOBAL_STATE_KEY];
13
- }
14
- function notifyRuntimeChange() {
15
- if (typeof window === 'undefined')
16
- return;
17
- window.dispatchEvent(new CustomEvent(ARIA_VALIDATION_RUNTIME_CHANGED_EVENT));
18
- }
19
- async function fetchRuntime() {
20
- const state = getRuntimeState();
21
- if (!state.enabled)
22
- return null;
23
- if (state.runtime)
24
- return state.runtime;
25
- if (!state.loadPromise) {
26
- state.loadPromise = Promise.resolve().then(function () { return require('./index-QRnWYctw.js'); }).catch(() => null);
27
- }
28
- const runtime = await state.loadPromise;
29
- if (runtime) {
30
- state.runtime = runtime;
31
- }
32
- return runtime;
33
- }
34
- async function initializeValidation(...args) {
35
- const runtime = await fetchRuntime();
36
- const s = getRuntimeState();
37
- if (!s.enabled)
38
- return;
39
- if (!runtime) {
40
- console.warn('Failed to load aria validation runtime');
41
- return;
42
- }
43
- runtime.initializeValidationStream(...args);
44
- }
45
- const isAriaValidationEnabled = () => getRuntimeState().enabled;
46
- const useVerboseLogging = () => getRuntimeState().verboseLogging ?? false;
47
- const enableAriaValidation = (options = {}) => {
48
- const state = getRuntimeState();
49
- if (state.enabled)
50
- return;
51
- Object.assign(state, options);
52
- state.enabled = true;
53
- initializeValidation().then(() => {
54
- notifyRuntimeChange();
55
- });
56
- };
57
- const disableAriaValidation = () => {
58
- const state = getRuntimeState();
59
- if (!state.enabled)
60
- return;
61
- state.enabled = false;
62
- notifyRuntimeChange();
63
- };
64
- function queueValidation(...args) {
65
- const { enabled, runtime, loadPromise } = getRuntimeState();
66
- if (!enabled)
67
- return;
68
- if (!runtime) {
69
- if (loadPromise) {
70
- loadPromise.then((loadedRuntime) => {
71
- if (loadedRuntime) {
72
- loadedRuntime.enqueueValidation(...args);
73
- }
74
- });
75
- return;
76
- }
77
- }
78
- runtime.enqueueValidation(...args);
79
- }
80
-
81
- exports.ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = ARIA_VALIDATION_RUNTIME_CHANGED_EVENT;
82
- exports.disableAriaValidation = disableAriaValidation;
83
- exports.enableAriaValidation = enableAriaValidation;
84
- exports.isAriaValidationEnabled = isAriaValidationEnabled;
85
- exports.queueValidation = queueValidation;
86
- exports.useVerboseLogging = useVerboseLogging;
@@ -1,138 +0,0 @@
1
- 'use strict';
2
-
3
- const componentOnReady = (el, callback) => {
4
- if (el.componentOnReady) {
5
- el.componentOnReady().then((resolvedEl) => callback(resolvedEl));
6
- }
7
- else {
8
- raf(() => callback(el));
9
- }
10
- };
11
- const inheritAttributes = (el, attributes = []) => {
12
- const attributeObject = {};
13
- attributes.forEach(attr => {
14
- if (el.hasAttribute(attr)) {
15
- const value = el.getAttribute(attr);
16
- if (value !== null) {
17
- attributeObject[attr] = el.getAttribute(attr);
18
- }
19
- el.removeAttribute(attr);
20
- }
21
- });
22
- return attributeObject;
23
- };
24
- const ariaAttributes = [
25
- 'role',
26
- 'aria-activedescendant',
27
- 'aria-atomic',
28
- 'aria-autocomplete',
29
- 'aria-braillelabel',
30
- 'aria-brailleroledescription',
31
- 'aria-busy',
32
- 'aria-checked',
33
- 'aria-colcount',
34
- 'aria-colindex',
35
- 'aria-colindextext',
36
- 'aria-colspan',
37
- 'aria-controls',
38
- 'aria-current',
39
- 'aria-describedby',
40
- 'aria-description',
41
- 'aria-details',
42
- 'aria-disabled',
43
- 'aria-errormessage',
44
- 'aria-expanded',
45
- 'aria-flowto',
46
- 'aria-haspopup',
47
- 'aria-hidden',
48
- 'aria-invalid',
49
- 'aria-keyshortcuts',
50
- 'aria-label',
51
- 'aria-labelledby',
52
- 'aria-level',
53
- 'aria-live',
54
- 'aria-multiline',
55
- 'aria-multiselectable',
56
- 'aria-orientation',
57
- 'aria-owns',
58
- 'aria-placeholder',
59
- 'aria-posinset',
60
- 'aria-pressed',
61
- 'aria-readonly',
62
- 'aria-relevant',
63
- 'aria-required',
64
- 'aria-roledescription',
65
- 'aria-rowcount',
66
- 'aria-rowindex',
67
- 'aria-rowindextext',
68
- 'aria-rowspan',
69
- 'aria-selected',
70
- 'aria-setsize',
71
- 'aria-sort',
72
- 'aria-valuemax',
73
- 'aria-valuemin',
74
- 'aria-valuenow',
75
- 'aria-valuetext',
76
- ];
77
- const inheritAriaAttributes = (el, ignoreList) => {
78
- let attributesToInherit = ariaAttributes;
79
- return inheritAttributes(el, attributesToInherit);
80
- };
81
- const raf = (h) => {
82
- if (typeof __zone_symbol__requestAnimationFrame === 'function') {
83
- return __zone_symbol__requestAnimationFrame(h);
84
- }
85
- if (typeof requestAnimationFrame === 'function') {
86
- return requestAnimationFrame(h);
87
- }
88
- return setTimeout(h);
89
- };
90
- function getDeepActiveElement(root = document) {
91
- let activeElement = root.activeElement;
92
- if (!activeElement) {
93
- return null;
94
- }
95
- while (activeElement && activeElement.shadowRoot) {
96
- const next = activeElement.shadowRoot.activeElement;
97
- if (!next) {
98
- break;
99
- }
100
- activeElement = next;
101
- }
102
- return activeElement;
103
- }
104
- function canReceiveFocus(el) {
105
- return (el instanceof HTMLElement && el.tabIndex >= 0 && !el.hasAttribute('disabled') && el.getAttribute('aria-hidden') !== 'true' && el.checkVisibility() && el.offsetParent !== null);
106
- }
107
- function findFormByRef(form, el) {
108
- if (form instanceof HTMLFormElement) {
109
- return form;
110
- }
111
- if (typeof form === 'string') {
112
- const el = document.getElementById(form);
113
- if (el) {
114
- if (el instanceof HTMLFormElement) {
115
- return el;
116
- }
117
- else {
118
- console.warn(`No Form found with selector: "#${form}". Verify that the element with id exists and is actually a <form> element.`, el);
119
- return null;
120
- }
121
- }
122
- else {
123
- console.warn(`No Form found with selector: "#${form}". Verify that the id is correct and the form is rendered in the DOM.`, el);
124
- return null;
125
- }
126
- }
127
- if (form !== undefined) {
128
- console.warn(`The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.`, el);
129
- return null;
130
- }
131
- return el.closest('form');
132
- }
133
-
134
- exports.canReceiveFocus = canReceiveFocus;
135
- exports.componentOnReady = componentOnReady;
136
- exports.findFormByRef = findFormByRef;
137
- exports.getDeepActiveElement = getDeepActiveElement;
138
- exports.inheritAriaAttributes = inheritAriaAttributes;
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- class ElementActivationController {
4
- host;
5
- config;
6
- constructor(host, config) {
7
- this.host = host;
8
- this.config = config;
9
- }
10
- hostDidLoad() {
11
- if (!this.host.el.hasAttribute('tabindex')) {
12
- console.warn('Interactive element does not have a tabindex attribute!', this.host.el);
13
- }
14
- this.host.el.addEventListener('keydown', this.handleKeyDown.bind(this));
15
- this.host.el.addEventListener('click', this.handleActivation.bind(this));
16
- }
17
- handleKeyDown = (event) => {
18
- if ((this.config?.keys ?? ['Enter', ' ']).includes(event.key)) {
19
- event.preventDefault();
20
- this.handleActivation(event);
21
- }
22
- };
23
- handleActivation = (event) => {
24
- this.host.lmvzActivation.emit();
25
- if (this.config?.localHandler) {
26
- this.config.localHandler(event);
27
- }
28
- };
29
- }
30
-
31
- exports.ElementActivationController = ElementActivationController;