@lmvz-ds/components 0.14.1 → 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.
- package/dist/cjs/app-globals-V2Kpy_OQ.js +3 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/{assets-BnJmIx_h.js → assets-XY-cBmal.js} +5 -2
- package/dist/cjs/assets-XY-cBmal.js.map +1 -0
- package/dist/cjs/header-integration_7.cjs.entry.js +1024 -0
- package/dist/cjs/header-integration_7.cjs.entry.js.map +1 -0
- package/dist/cjs/{Effect-CpZhfb0D.js → icons-BOM23oli.js} +1010 -236
- package/dist/cjs/icons-BOM23oli.js.map +1 -0
- package/dist/cjs/{index-9ZJx0550.js → index-B1Puzu82.js} +11 -651
- package/dist/cjs/index-B1Puzu82.js.map +1 -0
- package/dist/cjs/{index-QRnWYctw.js → index-ww_DCXU7.js} +431 -426
- package/dist/cjs/index-ww_DCXU7.js.map +1 -0
- package/dist/cjs/index.cjs.js +13 -12
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/lmvz-action.cjs.entry.js +5 -2
- package/dist/cjs/lmvz-action.cjs.entry.js.map +1 -0
- package/dist/cjs/lmvz-card.cjs.entry.js +7 -4
- package/dist/cjs/lmvz-card.cjs.entry.js.map +1 -0
- package/dist/cjs/lmvz-chip.cjs.entry.js +5 -2
- package/dist/cjs/lmvz-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/lmvz-components.cjs.js +6 -3
- package/dist/cjs/lmvz-components.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +5 -2
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/collection/api/ds.constants.js +1 -0
- package/dist/collection/api/ds.constants.js.map +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/index.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/lmvz-action/lmvz-action.js +2 -1
- package/dist/collection/components/lmvz-action/lmvz-action.js.map +1 -0
- package/dist/collection/components/lmvz-button/lmvz-button.css +4 -0
- package/dist/collection/components/lmvz-button/lmvz-button.js +3 -2
- package/dist/collection/components/lmvz-button/lmvz-button.js.map +1 -0
- package/dist/collection/components/lmvz-card/lmvz-card.css +4 -0
- package/dist/collection/components/lmvz-card/lmvz-card.js +4 -3
- package/dist/collection/components/lmvz-card/lmvz-card.js.map +1 -0
- package/dist/collection/components/lmvz-chip/lmvz-chip.js +3 -2
- package/dist/collection/components/lmvz-chip/lmvz-chip.js.map +1 -0
- package/dist/collection/components/lmvz-header/lmvz-header.js +17 -10
- package/dist/collection/components/lmvz-header/lmvz-header.js.map +1 -0
- package/dist/collection/components/lmvz-icon/icons.js +1 -0
- package/dist/collection/components/lmvz-icon/icons.js.map +1 -0
- package/dist/collection/components/lmvz-icon/lmvz-icon.js +8 -7
- package/dist/collection/components/lmvz-icon/lmvz-icon.js.map +1 -0
- package/dist/collection/components/lmvz-icon/public.js +1 -0
- package/dist/collection/components/lmvz-icon/public.js.map +1 -0
- package/dist/collection/components/lmvz-icon/test/icons.unit.js +1 -0
- package/dist/collection/components/lmvz-icon/test/icons.unit.js.map +1 -0
- package/dist/collection/components/lmvz-input/lmvz-input.js +35 -28
- package/dist/collection/components/lmvz-input/lmvz-input.js.map +1 -0
- package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +5 -2
- package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js.map +1 -0
- package/dist/collection/components/lmvz-select/lmvz-select.css +197 -0
- package/dist/collection/components/lmvz-select/lmvz-select.js +224 -0
- package/dist/collection/components/lmvz-select/lmvz-select.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/integration/header-integration.js +5 -4
- package/dist/collection/integration/header-integration.js.map +1 -0
- package/dist/collection/utils/aria/aria-validation-controller.js +1 -0
- package/dist/collection/utils/aria/aria-validation-controller.js.map +1 -0
- package/dist/collection/utils/aria/element-activation-controller.js +1 -0
- package/dist/collection/utils/aria/element-activation-controller.js.map +1 -0
- package/dist/collection/utils/aria/list-keyboard-controller.js +7 -4
- package/dist/collection/utils/aria/list-keyboard-controller.js.map +1 -0
- package/dist/collection/utils/assets.js +1 -0
- package/dist/collection/utils/assets.js.map +1 -0
- package/dist/collection/utils/component.js +7 -4
- package/dist/collection/utils/component.js.map +1 -0
- package/dist/collection/utils/effect.js +1 -0
- package/dist/collection/utils/effect.js.map +1 -0
- package/dist/collection/utils/environment.js +1 -0
- package/dist/collection/utils/environment.js.map +1 -0
- package/dist/collection/utils/http.js +1 -0
- package/dist/collection/utils/http.js.map +1 -0
- package/dist/collection/utils/http.unit.js +1 -0
- package/dist/collection/utils/http.unit.js.map +1 -0
- package/dist/collection/utils/public.js +1 -0
- package/dist/collection/utils/public.js.map +1 -0
- package/dist/collection/utils/reactive-controller-host.js +1 -0
- package/dist/collection/utils/reactive-controller-host.js.map +1 -0
- package/dist/collection/utils/validation/svg.js +1 -0
- package/dist/collection/utils/validation/svg.js.map +1 -0
- package/dist/components/header-integration.d.ts +11 -0
- package/dist/components/header-integration.js +2 -0
- package/dist/components/header-integration.js.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -0
- package/dist/components/lmvz-action.js +2 -1
- package/dist/components/lmvz-action.js.map +1 -0
- package/dist/components/lmvz-button.js +2 -1
- package/dist/components/lmvz-button.js.map +1 -0
- package/dist/components/lmvz-card.js +2 -1
- package/dist/components/lmvz-card.js.map +1 -0
- package/dist/components/lmvz-chip.js +2 -1
- package/dist/components/lmvz-chip.js.map +1 -0
- package/dist/components/lmvz-header.js +2 -1
- package/dist/components/lmvz-header.js.map +1 -0
- package/dist/components/lmvz-icon.js +2 -1
- package/dist/components/lmvz-icon.js.map +1 -0
- package/dist/components/lmvz-input.js +2 -1
- package/dist/components/lmvz-input.js.map +1 -0
- package/dist/components/lmvz-menuitem.js +2 -1
- package/dist/components/lmvz-menuitem.js.map +1 -0
- package/dist/components/lmvz-select.d.ts +11 -0
- package/dist/components/lmvz-select.js +2 -0
- package/dist/components/lmvz-select.js.map +1 -0
- package/dist/components/p-B2g3aN-E.js +2 -0
- package/dist/components/p-B2g3aN-E.js.map +1 -0
- package/dist/components/p-BXdOuZTp.js +2 -0
- package/dist/components/p-BXdOuZTp.js.map +1 -0
- package/dist/components/p-BfTCfPZ1.js +3 -2
- package/dist/components/p-BfTCfPZ1.js.map +1 -0
- package/dist/components/p-BpCjj39Z.js +2 -0
- package/dist/components/p-BpCjj39Z.js.map +1 -0
- package/dist/components/p-BsHYIl56.js +2 -0
- package/dist/components/p-BsHYIl56.js.map +1 -0
- package/dist/components/p-C5rqq3bf.js +2 -0
- package/dist/components/p-C5rqq3bf.js.map +1 -0
- package/dist/components/p-CI0tffvo.js +2 -0
- package/dist/components/p-CI0tffvo.js.map +1 -0
- package/dist/components/p-CN0JX9-m.js +2 -1
- package/dist/components/p-CN0JX9-m.js.map +1 -0
- package/dist/components/p-ClmDNIy4.js +2 -0
- package/dist/components/p-ClmDNIy4.js.map +1 -0
- package/dist/components/p-DQEkWkMh.js +2 -0
- package/dist/components/p-DQEkWkMh.js.map +1 -0
- package/dist/components/p-X5fEFT9T.js +2 -0
- package/dist/components/p-X5fEFT9T.js.map +1 -0
- package/dist/components/p-vIq2biqy.js +13 -0
- package/dist/components/p-vIq2biqy.js.map +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/{assets-CvV1KMMV.js → assets-BD98wsl7.js} +4 -1
- package/dist/esm/assets-BD98wsl7.js.map +1 -0
- package/dist/esm/header-integration_7.entry.js +1016 -0
- package/dist/esm/header-integration_7.entry.js.map +1 -0
- package/dist/esm/{Effect-DyamyJqO.js → icons-D1lxdRXP.js} +975 -174
- package/dist/esm/icons-D1lxdRXP.js.map +1 -0
- package/dist/esm/{index-CekEw3_K.js → index-DoNkkDv1.js} +6 -1
- package/dist/esm/index-DoNkkDv1.js.map +1 -0
- package/dist/esm/{index-smGPjoDX.js → index-WeqgWisK.js} +11 -651
- package/dist/esm/index-WeqgWisK.js.map +1 -0
- package/dist/esm/index.js +7 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lmvz-action.entry.js +5 -2
- package/dist/esm/lmvz-action.entry.js.map +1 -0
- package/dist/esm/lmvz-card.entry.js +7 -4
- package/dist/esm/lmvz-card.entry.js.map +1 -0
- package/dist/esm/lmvz-chip.entry.js +5 -2
- package/dist/esm/lmvz-chip.entry.js.map +1 -0
- package/dist/esm/lmvz-components.js +7 -4
- package/dist/esm/lmvz-components.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/ext-libs.d.ts +1 -0
- package/dist/lmvz-components/index.esm.js +2 -1
- package/dist/lmvz-components/index.esm.js.map +1 -0
- package/dist/lmvz-components/lmvz-components.esm.js +2 -1
- package/dist/lmvz-components/lmvz-components.esm.js.map +1 -0
- package/dist/lmvz-components/p-33485219.entry.js +2 -0
- package/dist/lmvz-components/p-33485219.entry.js.map +1 -0
- package/dist/lmvz-components/p-76032c32.entry.js +2 -0
- package/dist/lmvz-components/p-76032c32.entry.js.map +1 -0
- package/dist/lmvz-components/p-7aeec9a8.entry.js +7 -0
- package/dist/lmvz-components/p-7aeec9a8.entry.js.map +1 -0
- package/dist/lmvz-components/p-84e0a9dd.entry.js +2 -0
- package/dist/lmvz-components/p-84e0a9dd.entry.js.map +1 -0
- package/dist/lmvz-components/p-CkJb8WVZ.js +2 -0
- package/dist/lmvz-components/p-CkJb8WVZ.js.map +1 -0
- package/dist/lmvz-components/p-DQuL1Twl.js +2 -1
- package/dist/lmvz-components/p-DQuL1Twl.js.map +1 -0
- package/dist/lmvz-components/p-WeqgWisK.js +3 -0
- package/dist/lmvz-components/p-WeqgWisK.js.map +1 -0
- package/dist/lmvz-components/p-Z9X0_ik0.js +2 -0
- package/dist/lmvz-components/p-Z9X0_ik0.js.map +1 -0
- package/dist/lmvz-components/p-eP0oxQ44.js +13 -0
- package/dist/lmvz-components/p-eP0oxQ44.js.map +1 -0
- package/dist/manifest.json +392 -68
- package/dist/stencil.config.base.js +45 -0
- package/dist/stencil.config.base.js.map +1 -0
- package/dist/stencil.config.dev.js +22 -0
- package/dist/stencil.config.dev.js.map +1 -0
- package/dist/stencil.config.integration.js +27 -0
- package/dist/stencil.config.integration.js.map +1 -0
- package/dist/stencil.config.js +16 -0
- package/dist/stencil.config.js.map +1 -0
- package/dist/stencil.config.prod.js +30 -0
- package/dist/stencil.config.prod.js.map +1 -0
- package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.base.d.ts +2 -0
- package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.d.ts +2 -0
- package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.dev.d.ts +2 -0
- package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.integration.d.ts +2 -0
- package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.prod.d.ts +2 -0
- package/dist/types/components/lmvz-action/lmvz-action.d.ts +1 -1
- package/dist/types/components/lmvz-button/lmvz-button.d.ts +2 -2
- package/dist/types/components/lmvz-card/lmvz-card.d.ts +1 -1
- package/dist/types/components/lmvz-header/lmvz-header.d.ts +4 -4
- package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +4 -4
- package/dist/types/components/lmvz-input/lmvz-input.d.ts +4 -4
- package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +3 -3
- package/dist/types/components/lmvz-select/lmvz-select.d.ts +24 -0
- package/dist/types/components.d.ts +173 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/integration/header-integration.d.ts +5 -0
- package/dist/types/utils/aria/aria-validation-controller.d.ts +1 -1
- package/dist/types/utils/aria/element-activation-controller.d.ts +1 -1
- package/dist/types/utils/component.d.ts +2 -2
- package/dist/types/utils/http.d.ts +3 -3
- package/dist/types/utils/validation/svg.d.ts +1 -1
- package/hydrate/index.js +998 -436
- package/hydrate/index.mjs +998 -436
- package/package.json +37 -73
- package/readme.md +2 -2
- package/dist/cjs/aria-loader-BBKbBZLq.js +0 -76
- package/dist/cjs/component-CRc6eHcV.js +0 -138
- package/dist/cjs/element-activation-controller-DC_6T0Rt.js +0 -31
- package/dist/cjs/icons-Brr4vqiE.js +0 -653
- package/dist/cjs/index-Bp6Dd2i1.js +0 -94
- package/dist/cjs/lmvz-button.cjs.entry.js +0 -73
- package/dist/cjs/lmvz-header.cjs.entry.js +0 -142
- package/dist/cjs/lmvz-icon.cjs.entry.js +0 -87
- package/dist/cjs/lmvz-input.cjs.entry.js +0 -177
- package/dist/cjs/lmvz-menuitem.cjs.entry.js +0 -34
- package/dist/cjs/reactive-controller-host-DWpVosFu.js +0 -189
- package/dist/collection/utils/typing.js +0 -1
- package/dist/components/p-B3JVFwO1.js +0 -1
- package/dist/components/p-BaPwpeMs.js +0 -1
- package/dist/components/p-CSRpdnrt.js +0 -1
- package/dist/components/p-DK2hpvEW.js +0 -12
- package/dist/components/p-DcMNH3fv.js +0 -1
- package/dist/components/p-DugBvwmd.js +0 -1
- package/dist/esm/aria-loader-DB71Xewa.js +0 -69
- package/dist/esm/component-B3JVFwO1.js +0 -132
- package/dist/esm/element-activation-controller-CN0JX9-m.js +0 -29
- package/dist/esm/icons-C69Um2xB.js +0 -649
- package/dist/esm/index-BfTCfPZ1.js +0 -92
- package/dist/esm/lmvz-button.entry.js +0 -71
- package/dist/esm/lmvz-header.entry.js +0 -140
- package/dist/esm/lmvz-icon.entry.js +0 -85
- package/dist/esm/lmvz-input.entry.js +0 -175
- package/dist/esm/lmvz-menuitem.entry.js +0 -32
- package/dist/esm/reactive-controller-host-1nFoJEdT.js +0 -186
- package/dist/lmvz-components/p-0e5aa1a3.entry.js +0 -1
- package/dist/lmvz-components/p-18c18de4.entry.js +0 -1
- package/dist/lmvz-components/p-5775a56c.entry.js +0 -1
- package/dist/lmvz-components/p-814ee542.entry.js +0 -1
- package/dist/lmvz-components/p-9faac8f3.entry.js +0 -1
- package/dist/lmvz-components/p-B3JVFwO1.js +0 -1
- package/dist/lmvz-components/p-B3j8zrhV.js +0 -1
- package/dist/lmvz-components/p-BEoSvNlI.js +0 -1
- package/dist/lmvz-components/p-BTpia82J.js +0 -1
- package/dist/lmvz-components/p-BfTCfPZ1.js +0 -6
- package/dist/lmvz-components/p-CN0JX9-m.js +0 -1
- package/dist/lmvz-components/p-D7GrtdQF.js +0 -1
- package/dist/lmvz-components/p-DyamyJqO.js +0 -1
- package/dist/lmvz-components/p-c61f7daa.entry.js +0 -1
- package/dist/lmvz-components/p-c6bae21b.entry.js +0 -1
- package/dist/lmvz-components/p-cM67HC0Z.js +0 -12
- package/dist/lmvz-components/p-d4b68381.entry.js +0 -1
- package/dist/lmvz-components/p-smGPjoDX.js +0 -2
- 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.
|
|
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": {
|
|
@@ -92,6 +92,10 @@
|
|
|
92
92
|
"./lmvz-menuitem": {
|
|
93
93
|
"import": "./dist/components/lmvz-menuitem.js",
|
|
94
94
|
"types": "./dist/components/lmvz-menuitem.d.ts"
|
|
95
|
+
},
|
|
96
|
+
"./lmvz-select": {
|
|
97
|
+
"import": "./dist/components/lmvz-select.js",
|
|
98
|
+
"types": "./dist/components/lmvz-select.d.ts"
|
|
95
99
|
}
|
|
96
100
|
},
|
|
97
101
|
"main": "dist/index.cjs.js",
|
|
@@ -104,86 +108,46 @@
|
|
|
104
108
|
"type": "git",
|
|
105
109
|
"url": "https://bitbucket.org/lmvz/lmvz-ds"
|
|
106
110
|
},
|
|
107
|
-
"scripts": {
|
|
108
|
-
"start": "npm run start:integration",
|
|
109
|
-
"start:integration": "npm run build:integration -- --watch",
|
|
110
|
-
"start:dev": "stencil build --watch --dev --serve --config stencil.config.dev.ts",
|
|
111
|
-
"build": "npm run build:components",
|
|
112
|
-
"build:components": "stencil build --docs --prod --config stencil.config.prod.ts",
|
|
113
|
-
"build:debug": "node --inspect-brk ../../node_modules/.bin/stencil build --debug --docs --config ./stencil.config.dev.ts",
|
|
114
|
-
"build:integration": "stencil build --config stencil.config.integration.ts",
|
|
115
|
-
"test": "stencil-test",
|
|
116
|
-
"test:watch": "stencil-test --watch",
|
|
117
|
-
"lint": "concurrently 'eslint \"src/**\"' 'stylelint \"src/**/*.css\" --config ./stylelint.config.mjs'",
|
|
118
|
-
"generate": "stencil generate",
|
|
119
|
-
"update": "npx npm-check-updates -u"
|
|
120
|
-
},
|
|
121
|
-
"nx": {
|
|
122
|
-
"targets": {
|
|
123
|
-
"start:integration": {
|
|
124
|
-
"dependsOn": [
|
|
125
|
-
"^build"
|
|
126
|
-
]
|
|
127
|
-
},
|
|
128
|
-
"start:dev": {
|
|
129
|
-
"dependsOn": [
|
|
130
|
-
"^build"
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
|
-
"build:integration": {
|
|
134
|
-
"dependsOn": [
|
|
135
|
-
"^build"
|
|
136
|
-
]
|
|
137
|
-
},
|
|
138
|
-
"build:components": {
|
|
139
|
-
"cache": true,
|
|
140
|
-
"dependsOn": [
|
|
141
|
-
"^build:components"
|
|
142
|
-
],
|
|
143
|
-
"outputs": [
|
|
144
|
-
"{projectRoot}/src/components.d.ts",
|
|
145
|
-
"{projectRoot}/.stencil",
|
|
146
|
-
"{projectRoot}/dist",
|
|
147
|
-
"{projectRoot}/hydrate",
|
|
148
|
-
"{projectRoot}/loader",
|
|
149
|
-
"{projectRoot}/assets"
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
"lint": {
|
|
153
|
-
"dependsOn": [
|
|
154
|
-
"^build"
|
|
155
|
-
]
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
111
|
"dependencies": {
|
|
160
|
-
"@lmvz-ds/aria-validation": "^0.14.1",
|
|
161
112
|
"classnames": "^2.5.1",
|
|
162
|
-
"effect": "3.
|
|
113
|
+
"effect": "^3.21.0",
|
|
114
|
+
"@lmvz-ds/aria-validation": "~0.16.0"
|
|
163
115
|
},
|
|
164
116
|
"devDependencies": {
|
|
165
|
-
"@
|
|
166
|
-
"@lmvz-ds/lib-styles": "^0.14.1",
|
|
167
|
-
"@lmvz-ds/styles": "^0.14.1",
|
|
168
|
-
"@stencil-community/postcss": "^2.2.0",
|
|
117
|
+
"@stencil-community/postcss": "2.2.0",
|
|
169
118
|
"@stencil/angular-output-target": "1.3.0",
|
|
170
|
-
"@stencil/core": "4.43.
|
|
171
|
-
"@stencil/react-output-target": "
|
|
172
|
-
"@stencil/
|
|
173
|
-
"@stencil/
|
|
174
|
-
"@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",
|
|
175
123
|
"@types/postcss-import": "^14.0.3",
|
|
176
124
|
"concurrently": "^9.2.1",
|
|
177
125
|
"happy-dom": "^20.8.4",
|
|
126
|
+
"postcss-auto-var-fallback": "1.1.0",
|
|
178
127
|
"postcss-import": "^16.1.1",
|
|
179
128
|
"rollup-plugin-postcss": "^4.0.2",
|
|
180
|
-
"stylelint": "^
|
|
181
|
-
"stylelint-config-standard": "^
|
|
182
|
-
"stylelint-value-no-unknown-custom-properties": "
|
|
183
|
-
"
|
|
184
|
-
"tsx": "^4.
|
|
185
|
-
"vite": "^
|
|
186
|
-
"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"
|
|
187
140
|
},
|
|
188
|
-
"gitHead": "
|
|
189
|
-
|
|
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
|
-
|
|
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
|
-
|
|
125
|
+
pnpm run @stencil/core generate lmvz-[component name]
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
### Testing
|
|
@@ -1,76 +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 state = getRuntimeState();
|
|
66
|
-
if (!state.enabled || !state.runtime)
|
|
67
|
-
return;
|
|
68
|
-
state.runtime.enqueueValidation(...args);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
exports.ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = ARIA_VALIDATION_RUNTIME_CHANGED_EVENT;
|
|
72
|
-
exports.disableAriaValidation = disableAriaValidation;
|
|
73
|
-
exports.enableAriaValidation = enableAriaValidation;
|
|
74
|
-
exports.isAriaValidationEnabled = isAriaValidationEnabled;
|
|
75
|
-
exports.queueValidation = queueValidation;
|
|
76
|
-
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;
|