@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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { postcss } from "@stencil-community/postcss";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import autoVarFallback from "postcss-auto-var-fallback";
|
|
4
|
+
import postcssImport from "postcss-import";
|
|
5
|
+
export const config = {
|
|
6
|
+
namespace: 'lmvz-components',
|
|
7
|
+
outputTargets: [
|
|
8
|
+
{
|
|
9
|
+
type: 'dist',
|
|
10
|
+
esmLoaderPath: '../loader',
|
|
11
|
+
empty: true,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: 'dist-custom-elements',
|
|
15
|
+
isPrimaryPackageOutputTarget: true,
|
|
16
|
+
generateTypeDeclarations: true,
|
|
17
|
+
customElementsExportBehavior: 'single-export-module',
|
|
18
|
+
externalRuntime: false,
|
|
19
|
+
empty: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
type: 'docs-json',
|
|
23
|
+
file: 'dist/manifest.json',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
plugins: [
|
|
27
|
+
postcss({
|
|
28
|
+
plugins: [
|
|
29
|
+
postcssImport({
|
|
30
|
+
root: path.resolve(__dirname, '../../'),
|
|
31
|
+
filter: (path) => !path.startsWith('/assets/'),
|
|
32
|
+
}),
|
|
33
|
+
autoVarFallback({
|
|
34
|
+
fallbacks: [
|
|
35
|
+
path.resolve(__dirname, '../../packages/design-tokens/dist/css/variables.base.css'),
|
|
36
|
+
path.resolve(__dirname, '../../packages/design-tokens/dist/css/variables.light.global.css'),
|
|
37
|
+
path.resolve(__dirname, '../../lib/styles/variables/_typography.css'),
|
|
38
|
+
],
|
|
39
|
+
}),
|
|
40
|
+
],
|
|
41
|
+
}),
|
|
42
|
+
],
|
|
43
|
+
watchIgnoredRegex: [/src\/themes\/[^\/]+\.css$/],
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=stencil.config.base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stencil.config.base.js","sourceRoot":"","sources":["../stencil.config.base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAGrD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,MAAM,MAAM,GAAW;IAC5B,SAAS,EAAE,iBAAiB;IAE5B,aAAa,EAAE;QACb;YAEE,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,WAAW;YAC1B,KAAK,EAAE,IAAI;SACe;QAC5B;YAEE,IAAI,EAAE,sBAAsB;YAC5B,4BAA4B,EAAE,IAAI;YAClC,wBAAwB,EAAE,IAAI;YAE9B,4BAA4B,EAAE,sBAAsB;YAEpD,eAAe,EAAE,KAAK;YACtB,KAAK,EAAE,IAAI;SAC6B;QAC1C;YACE,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,oBAAoB;SACI;KACxB;IACV,OAAO,EAAE;QACP,OAAO,CAAC;YACN,OAAO,EAAE;gBACP,aAAa,CAAC;oBACZ,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC;oBACvC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;iBAC/C,CAAC;gBACF,eAAe,CAAC;oBACd,SAAS,EAAE;wBACT,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,0DAA0D,CAAC;wBACnF,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,kEAAkE,CAAC;wBAC3F,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,4CAA4C,CAAC;qBACtE;iBACF,CAAC;aACH;SACF,CAAC;KACH;IAED,iBAAiB,EAAE,CAAC,2BAA2B,CAAC;CACjD,CAAC","sourcesContent":["import { postcss } from '@stencil-community/postcss';\nimport { Config } from '@stencil/core';\nimport type { OutputTargetDist, OutputTargetDistCustomElements, OutputTargetDocsJson } from '@stencil/core/internal';\nimport path from 'node:path';\nimport autoVarFallback from 'postcss-auto-var-fallback';\nimport postcssImport from 'postcss-import';\n\nexport const config: Config = {\n namespace: 'lmvz-components',\n\n outputTargets: [\n {\n // \"classic\", bundled distribution; supports lazy loading\n type: 'dist',\n esmLoaderPath: '../loader',\n empty: true,\n } satisfies OutputTargetDist,\n {\n // distribution of custom elements only, with dedicated per-component entrypoints ...\n type: 'dist-custom-elements',\n isPrimaryPackageOutputTarget: true,\n generateTypeDeclarations: true,\n // ... plus combined export module\n customElementsExportBehavior: 'single-export-module',\n // bundle stencil runtime with components\n externalRuntime: false,\n empty: true,\n } satisfies OutputTargetDistCustomElements,\n {\n type: 'docs-json',\n file: 'dist/manifest.json',\n } satisfies OutputTargetDocsJson,\n ] as const,\n plugins: [\n postcss({\n plugins: [\n postcssImport({\n root: path.resolve(__dirname, '../../'),\n filter: (path) => !path.startsWith('/assets/'),\n }),\n autoVarFallback({\n fallbacks: [\n path.resolve(__dirname, '../../packages/design-tokens/dist/css/variables.base.css'),\n path.resolve(__dirname, '../../packages/design-tokens/dist/css/variables.light.global.css'),\n path.resolve(__dirname, '../../lib/styles/variables/_typography.css'),\n ],\n }),\n ],\n }),\n ],\n // eslint-disable-next-line no-useless-escape\n watchIgnoredRegex: [/src\\/themes\\/[^\\/]+\\.css$/],\n};\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { config as baseConfig } from "./stencil.config.base";
|
|
2
|
+
export const config = {
|
|
3
|
+
...baseConfig,
|
|
4
|
+
sourceMap: true,
|
|
5
|
+
generateExportMaps: false,
|
|
6
|
+
validateTypes: false,
|
|
7
|
+
enableCache: true,
|
|
8
|
+
devMode: true,
|
|
9
|
+
outputTargets: [
|
|
10
|
+
...baseConfig.outputTargets,
|
|
11
|
+
{
|
|
12
|
+
type: 'www',
|
|
13
|
+
copy: [{ src: '../../styles/dist', dest: '' }],
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
devServer: {
|
|
17
|
+
reloadStrategy: 'pageReload',
|
|
18
|
+
port: 4444,
|
|
19
|
+
openBrowser: false,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=stencil.config.dev.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stencil.config.dev.js","sourceRoot":"","sources":["../stencil.config.dev.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE7D,MAAM,CAAC,MAAM,MAAM,GAAW;IAC5B,GAAG,UAAU;IACb,SAAS,EAAE,IAAI;IACf,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,KAAK;IACpB,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,IAAI;IAEb,aAAa,EAAE;QACb,GAAG,UAAU,CAAC,aAAa;QAC3B;YACE,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;SACrB;KAC5B;IACD,SAAS,EAAE;QACT,cAAc,EAAE,YAAY;QAC5B,IAAI,EAAE,IAAI;QACV,WAAW,EAAE,KAAK;KACc;CACnC,CAAC","sourcesContent":["import type { Config } from '@stencil/core';\nimport type { OutputTargetWww, StencilDevServerConfig } from '@stencil/core/internal';\nimport { config as baseConfig } from './stencil.config.base';\n\nexport const config: Config = {\n ...baseConfig,\n sourceMap: true,\n generateExportMaps: false,\n validateTypes: false,\n enableCache: true,\n devMode: true,\n\n outputTargets: [\n ...baseConfig.outputTargets,\n {\n type: 'www',\n copy: [{ src: '../../styles/dist', dest: '' }],\n } satisfies OutputTargetWww,\n ],\n devServer: {\n reloadStrategy: 'pageReload',\n port: 4444,\n openBrowser: false,\n } satisfies StencilDevServerConfig,\n};\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { angularOutputTarget } from "@stencil/angular-output-target";
|
|
2
|
+
import { config as baseConfig } from "./stencil.config.base";
|
|
3
|
+
const angularValueAccessorBindings = [
|
|
4
|
+
{
|
|
5
|
+
elementSelectors: ['lmvz-input'],
|
|
6
|
+
event: 'lmvzInput',
|
|
7
|
+
targetAttr: 'value',
|
|
8
|
+
type: 'text',
|
|
9
|
+
},
|
|
10
|
+
];
|
|
11
|
+
export const config = {
|
|
12
|
+
...baseConfig,
|
|
13
|
+
sourceMap: true,
|
|
14
|
+
enableCache: false,
|
|
15
|
+
buildDist: true,
|
|
16
|
+
outputTargets: [
|
|
17
|
+
...baseConfig.outputTargets,
|
|
18
|
+
angularOutputTarget({
|
|
19
|
+
componentCorePackage: '@lmvz-ds/components',
|
|
20
|
+
outputType: 'standalone',
|
|
21
|
+
directivesProxyFile: '../angular/projects/component-library/src/generated/proxies.ts',
|
|
22
|
+
directivesArrayFile: '../angular/projects/component-library/src/generated/index.ts',
|
|
23
|
+
valueAccessorConfigs: angularValueAccessorBindings,
|
|
24
|
+
}),
|
|
25
|
+
],
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=stencil.config.integration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stencil.config.integration.js","sourceRoot":"","sources":["../stencil.config.integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAA4B,MAAM,gCAAgC,CAAC;AAG/F,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE7D,MAAM,4BAA4B,GAA0B;IAC1D;QACE,gBAAgB,EAAE,CAAC,YAAY,CAAC;QAChC,KAAK,EAAE,WAAW;QAClB,UAAU,EAAE,OAAO;QACnB,IAAI,EAAE,MAAM;KACb;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAW;IAC5B,GAAG,UAAU;IACb,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,IAAI;IAEf,aAAa,EAAE;QACb,GAAG,UAAU,CAAC,aAAa;QAC3B,mBAAmB,CAAC;YAClB,oBAAoB,EAAE,qBAAqB;YAC3C,UAAU,EAAE,YAAY;YACxB,mBAAmB,EAAE,gEAAgE;YACrF,mBAAmB,EAAE,8DAA8D;YACnF,oBAAoB,EAAE,4BAA4B;SACnD,CAA8B;KAChC;CACF,CAAC","sourcesContent":["import { angularOutputTarget, type ValueAccessorConfig } from '@stencil/angular-output-target';\nimport type { Config } from '@stencil/core';\nimport type { OutputTargetCustom } from '@stencil/core/internal';\nimport { config as baseConfig } from './stencil.config.base';\n\nconst angularValueAccessorBindings: ValueAccessorConfig[] = [\n {\n elementSelectors: ['lmvz-input'],\n event: 'lmvzInput',\n targetAttr: 'value',\n type: 'text',\n },\n];\n\nexport const config: Config = {\n ...baseConfig,\n sourceMap: true,\n enableCache: false,\n buildDist: true,\n\n outputTargets: [\n ...baseConfig.outputTargets,\n angularOutputTarget({\n componentCorePackage: '@lmvz-ds/components',\n outputType: 'standalone',\n directivesProxyFile: '../angular/projects/component-library/src/generated/proxies.ts',\n directivesArrayFile: '../angular/projects/component-library/src/generated/index.ts',\n valueAccessorConfigs: angularValueAccessorBindings,\n }) satisfies OutputTargetCustom,\n ],\n};\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { config as baseConfig } from "./stencil.config.base";
|
|
2
|
+
export const config = {
|
|
3
|
+
...baseConfig,
|
|
4
|
+
outputTargets: [
|
|
5
|
+
...baseConfig.outputTargets,
|
|
6
|
+
{
|
|
7
|
+
type: 'dist-custom-elements',
|
|
8
|
+
customElementsExportBehavior: 'auto-define-custom-elements',
|
|
9
|
+
externalRuntime: false,
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
type: 'docs-readme',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=stencil.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stencil.config.js","sourceRoot":"","sources":["../stencil.config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAK7D,MAAM,CAAC,MAAM,MAAM,GAAW;IAC5B,GAAG,UAAU;IACb,aAAa,EAAE;QACb,GAAG,UAAU,CAAC,aAAa;QAC3B;YACE,IAAI,EAAE,sBAAsB;YAC5B,4BAA4B,EAAE,6BAA6B;YAC3D,eAAe,EAAE,KAAK;SACkB;QAC1C;YACE,IAAI,EAAE,aAAa;SACpB;KACF;CACF,CAAC","sourcesContent":["import type { Config } from '@stencil/core';\nimport type { OutputTargetDistCustomElements } from '@stencil/core/internal';\nimport { config as baseConfig } from './stencil.config.base';\n\n//! This is actually the testing config.\n//! Due to a bug in @stencil/vitest the file name cannot be changed.\n\nexport const config: Config = {\n ...baseConfig,\n outputTargets: [\n ...baseConfig.outputTargets,\n {\n type: 'dist-custom-elements',\n customElementsExportBehavior: 'auto-define-custom-elements',\n externalRuntime: false,\n } satisfies OutputTargetDistCustomElements,\n {\n type: 'docs-readme',\n },\n ],\n};\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { reactOutputTarget } from "@stencil/react-output-target";
|
|
2
|
+
import { config as integrationConfig } from "./stencil.config.integration";
|
|
3
|
+
export const config = {
|
|
4
|
+
...integrationConfig,
|
|
5
|
+
devMode: false,
|
|
6
|
+
sourceMap: false,
|
|
7
|
+
generateExportMaps: true,
|
|
8
|
+
validateTypes: true,
|
|
9
|
+
validatePrimaryPackageOutputTarget: true,
|
|
10
|
+
excludeComponents: ['*-integration', 'demo-*'],
|
|
11
|
+
bundles: [{ components: ['lmvz-menuitem'] }, { components: ['lmvz-header', 'lmvz-menuitem'] }],
|
|
12
|
+
outputTargets: [
|
|
13
|
+
...integrationConfig.outputTargets,
|
|
14
|
+
{
|
|
15
|
+
type: 'dist-hydrate-script',
|
|
16
|
+
dir: './hydrate',
|
|
17
|
+
},
|
|
18
|
+
reactOutputTarget({
|
|
19
|
+
outDir: '../react/lib/components/stencil-generated/',
|
|
20
|
+
hydrateModule: '@lmvz-ds/components/hydrate',
|
|
21
|
+
clientModule: '@lmvz-ds/components/client',
|
|
22
|
+
esModules: true,
|
|
23
|
+
}),
|
|
24
|
+
{
|
|
25
|
+
type: 'docs-readme',
|
|
26
|
+
footer: '',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=stencil.config.prod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stencil.config.prod.js","sourceRoot":"","sources":["../stencil.config.prod.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAE3E,MAAM,CAAC,MAAM,MAAM,GAAW;IAC5B,GAAG,iBAAiB;IACpB,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,KAAK;IAChB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,IAAI;IACnB,kCAAkC,EAAE,IAAI;IAIxC,iBAAiB,EAAE,CAAC,eAAe,EAAE,QAAQ,CAAC;IAI9C,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,eAAe,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,aAAa,EAAE,eAAe,CAAC,EAAE,CAAC;IAE9F,aAAa,EAAE;QACb,GAAG,iBAAiB,CAAC,aAAa;QAClC;YACE,IAAI,EAAE,qBAAqB;YAC3B,GAAG,EAAE,WAAW;SACa;QAC/B,iBAAiB,CAAC;YAChB,MAAM,EAAE,4CAA4C;YACpD,aAAa,EAAE,6BAA6B;YAC5C,YAAY,EAAE,4BAA4B;YAC1C,SAAS,EAAE,IAAI;SAChB,CAA8B;QAC/B;YACE,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,EAAE;SACsB;KACnC;CACF,CAAC","sourcesContent":["import type { Config } from '@stencil/core';\nimport type { OutputTargetCustom, OutputTargetDocsReadme, OutputTargetHydrate } from '@stencil/core/internal';\nimport { reactOutputTarget } from '@stencil/react-output-target';\nimport { config as integrationConfig } from './stencil.config.integration';\n\nexport const config: Config = {\n ...integrationConfig,\n devMode: false,\n sourceMap: false,\n generateExportMaps: true,\n validateTypes: true,\n validatePrimaryPackageOutputTarget: true,\n\n // test-only components should be excluded from the production build\n // this is why we need a second build pass before deploying storybook\n excludeComponents: ['*-integration', 'demo-*'],\n\n // bundles defined here will be used before Stencil's own bundle optimization,\n // so we can ensure that technically unrelated but logically grouped components — e.g. header and menuitem — are bundled together\n bundles: [{ components: ['lmvz-menuitem'] }, { components: ['lmvz-header', 'lmvz-menuitem'] }],\n\n outputTargets: [\n ...integrationConfig.outputTargets,\n {\n type: 'dist-hydrate-script',\n dir: './hydrate',\n } satisfies OutputTargetHydrate,\n reactOutputTarget({\n outDir: '../react/lib/components/stencil-generated/',\n hydrateModule: '@lmvz-ds/components/hydrate',\n clientModule: '@lmvz-ds/components/client',\n esModules: true,\n }) satisfies OutputTargetCustom,\n {\n type: 'docs-readme',\n footer: '', // hide \"Built with StencilJS\"\n } satisfies OutputTargetDocsReadme,\n ],\n};\n"]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { Button } from '../../api';
|
|
2
|
+
import type { Button } from '../../api';
|
|
3
3
|
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
4
4
|
import { type ElementActivationHost } from '../../utils/aria/element-activation-controller';
|
|
5
5
|
import { type FormRef } from '../../utils/component';
|
|
6
6
|
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
7
7
|
export declare class LmvzButton extends ReactiveControllerHost implements AriaValidationHost, ElementActivationHost {
|
|
8
8
|
el: HTMLLmvzButtonElement;
|
|
9
|
-
validationEl: HTMLButtonElement;
|
|
9
|
+
validationEl: HTMLButtonElement | undefined;
|
|
10
10
|
private inheritedAttributes;
|
|
11
11
|
private formEl;
|
|
12
12
|
private formButtonEl;
|
|
@@ -3,10 +3,10 @@ import { type ListKeyboardNavigationHost } from '../../utils/aria/list-keyboard-
|
|
|
3
3
|
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
4
4
|
export declare class LmvzHeader extends ReactiveControllerHost implements AriaValidationHost, ListKeyboardNavigationHost {
|
|
5
5
|
readonly el: HTMLElement;
|
|
6
|
-
|
|
7
|
-
private primarySlot
|
|
8
|
-
private secondarySlot
|
|
9
|
-
private secondaryNav
|
|
6
|
+
get validationEl(): HTMLElement;
|
|
7
|
+
private primarySlot?;
|
|
8
|
+
private secondarySlot?;
|
|
9
|
+
private secondaryNav?;
|
|
10
10
|
private keyboardNavigationController;
|
|
11
11
|
private get primaryMenuitems();
|
|
12
12
|
private get secondaryMenuitems();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Icon } from '../../api';
|
|
1
|
+
import type { Icon } from '../../api';
|
|
2
2
|
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
3
3
|
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
4
4
|
export declare class LmvzIcon extends ReactiveControllerHost implements AriaValidationHost {
|
|
5
|
-
private intersectionObserver
|
|
5
|
+
private intersectionObserver?;
|
|
6
6
|
private readonly ariaValidationController;
|
|
7
7
|
el: HTMLElement;
|
|
8
|
-
validationEl: HTMLElement;
|
|
8
|
+
validationEl: HTMLElement | undefined;
|
|
9
9
|
icon: Icon.IconName;
|
|
10
10
|
weight?: Icon.IconWeight;
|
|
11
11
|
size?: Icon.Size;
|
|
12
|
-
private iconData
|
|
12
|
+
private iconData?;
|
|
13
13
|
private visible;
|
|
14
14
|
ariaLabel?: string;
|
|
15
15
|
private get ariaHidden();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { Input } from '../../api';
|
|
1
|
+
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { Input } from '../../api';
|
|
3
3
|
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
4
4
|
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
5
5
|
export declare class LmvzInput extends ReactiveControllerHost implements AriaValidationHost {
|
|
6
6
|
readonly el: HTMLElement;
|
|
7
|
-
|
|
7
|
+
get validationEl(): HTMLElement;
|
|
8
8
|
lmvzInput: EventEmitter<string>;
|
|
9
9
|
internals: ElementInternals;
|
|
10
10
|
private nativeInputElement?;
|
|
@@ -47,7 +47,7 @@ export declare class LmvzInput extends ReactiveControllerHost implements AriaVal
|
|
|
47
47
|
select(): Promise<void>;
|
|
48
48
|
checkValidity(): Promise<boolean>;
|
|
49
49
|
reportValidity(): Promise<boolean>;
|
|
50
|
-
getInputElement(): Promise<HTMLInputElement>;
|
|
50
|
+
getInputElement(): Promise<HTMLInputElement | undefined>;
|
|
51
51
|
constructor();
|
|
52
52
|
componentWillLoad(): void;
|
|
53
53
|
formAssociatedCallback(form: HTMLFormElement | undefined): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
|
+
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
3
3
|
import { type ElementActivationHost } from '../../utils/aria/element-activation-controller';
|
|
4
4
|
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
5
5
|
export declare class LmvzMenuItem extends ReactiveControllerHost implements AriaValidationHost, ElementActivationHost {
|
|
6
6
|
readonly el: HTMLElement;
|
|
7
|
-
validationEl: HTMLElement;
|
|
8
|
-
validationSlot
|
|
7
|
+
get validationEl(): HTMLElement;
|
|
8
|
+
validationSlot?: HTMLSlotElement;
|
|
9
9
|
get role(): string;
|
|
10
10
|
get ti(): number;
|
|
11
11
|
lmvzActivation: EventEmitter<void>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
3
|
+
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
4
|
+
export declare class LmvzSelect extends ReactiveControllerHost implements AriaValidationHost {
|
|
5
|
+
readonly el: HTMLElement;
|
|
6
|
+
get validationEl(): HTMLElement;
|
|
7
|
+
private selectId;
|
|
8
|
+
private nativeSelectEl?;
|
|
9
|
+
constructor();
|
|
10
|
+
lmvzChange: EventEmitter<string>;
|
|
11
|
+
value?: string;
|
|
12
|
+
label: string;
|
|
13
|
+
helperText?: string;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
required: boolean;
|
|
16
|
+
name?: string;
|
|
17
|
+
private selectedLabel;
|
|
18
|
+
private get hasValue();
|
|
19
|
+
componentDidLoad(): void;
|
|
20
|
+
protected handleValueChange(newValue: string | undefined): void;
|
|
21
|
+
private syncSelectedLabel;
|
|
22
|
+
private handleChange;
|
|
23
|
+
render(): any;
|
|
24
|
+
}
|
|
@@ -10,6 +10,9 @@ import { FormRef } from "./utils/component";
|
|
|
10
10
|
export { Button, Icon, Input } from "./api";
|
|
11
11
|
export { FormRef } from "./utils/component";
|
|
12
12
|
export namespace Components {
|
|
13
|
+
interface HeaderIntegration {
|
|
14
|
+
"activeNav"?: string;
|
|
15
|
+
}
|
|
13
16
|
interface LmvzAction {
|
|
14
17
|
}
|
|
15
18
|
interface LmvzButton {
|
|
@@ -166,7 +169,7 @@ export namespace Components {
|
|
|
166
169
|
/**
|
|
167
170
|
* Returns the native HTMLInputElement. Promise resolves when the element is ready and the input is available. If the input is not yet rendered, it waits for the component to be ready.
|
|
168
171
|
*/
|
|
169
|
-
"getInputElement": () => Promise<HTMLInputElement>;
|
|
172
|
+
"getInputElement": () => Promise<HTMLInputElement | undefined>;
|
|
170
173
|
/**
|
|
171
174
|
* Helper text displayed below the input
|
|
172
175
|
*/
|
|
@@ -260,6 +263,49 @@ export namespace Components {
|
|
|
260
263
|
*/
|
|
261
264
|
"ti": number;
|
|
262
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* Select component with floating label and pill-shaped trigger.
|
|
268
|
+
* Wraps a native `<select>` element for full keyboard and form support.
|
|
269
|
+
* @example ```html
|
|
270
|
+
* <lmvz-select label="Country" name="country">
|
|
271
|
+
* <option value="ch">Switzerland</option>
|
|
272
|
+
* <option value="de">Germany</option>
|
|
273
|
+
* <option value="at">Austria</option>
|
|
274
|
+
* </lmvz-select>
|
|
275
|
+
* ```
|
|
276
|
+
* @example ```typescript
|
|
277
|
+
* const select = document.querySelector('lmvz-select');
|
|
278
|
+
* select.addEventListener('lmvzChange', (e) => console.log(e.detail));
|
|
279
|
+
* ```
|
|
280
|
+
*/
|
|
281
|
+
interface LmvzSelect {
|
|
282
|
+
/**
|
|
283
|
+
* Whether the select is disabled.
|
|
284
|
+
* @default false
|
|
285
|
+
*/
|
|
286
|
+
"disabled": boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Helper text displayed below the select field.
|
|
289
|
+
*/
|
|
290
|
+
"helperText"?: string;
|
|
291
|
+
/**
|
|
292
|
+
* Label text displayed as a placeholder when no value is selected, and floated above the trigger when a value is present.
|
|
293
|
+
*/
|
|
294
|
+
"label": string;
|
|
295
|
+
/**
|
|
296
|
+
* Name attribute passed to the native select for form submission.
|
|
297
|
+
*/
|
|
298
|
+
"name"?: string;
|
|
299
|
+
/**
|
|
300
|
+
* Whether a value is required.
|
|
301
|
+
* @default false
|
|
302
|
+
*/
|
|
303
|
+
"required": boolean;
|
|
304
|
+
/**
|
|
305
|
+
* Currently selected value.
|
|
306
|
+
*/
|
|
307
|
+
"value"?: string;
|
|
308
|
+
}
|
|
263
309
|
}
|
|
264
310
|
export interface LmvzActionCustomEvent<T> extends CustomEvent<T> {
|
|
265
311
|
detail: T;
|
|
@@ -281,7 +327,17 @@ export interface LmvzMenuitemCustomEvent<T> extends CustomEvent<T> {
|
|
|
281
327
|
detail: T;
|
|
282
328
|
target: HTMLLmvzMenuitemElement;
|
|
283
329
|
}
|
|
330
|
+
export interface LmvzSelectCustomEvent<T> extends CustomEvent<T> {
|
|
331
|
+
detail: T;
|
|
332
|
+
target: HTMLLmvzSelectElement;
|
|
333
|
+
}
|
|
284
334
|
declare global {
|
|
335
|
+
interface HTMLHeaderIntegrationElement extends Components.HeaderIntegration, HTMLStencilElement {
|
|
336
|
+
}
|
|
337
|
+
var HTMLHeaderIntegrationElement: {
|
|
338
|
+
prototype: HTMLHeaderIntegrationElement;
|
|
339
|
+
new (): HTMLHeaderIntegrationElement;
|
|
340
|
+
};
|
|
285
341
|
interface HTMLLmvzActionElementEventMap {
|
|
286
342
|
"actionClick": MouseEvent;
|
|
287
343
|
}
|
|
@@ -412,7 +468,40 @@ declare global {
|
|
|
412
468
|
prototype: HTMLLmvzMenuitemElement;
|
|
413
469
|
new (): HTMLLmvzMenuitemElement;
|
|
414
470
|
};
|
|
471
|
+
interface HTMLLmvzSelectElementEventMap {
|
|
472
|
+
"lmvzChange": string;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Select component with floating label and pill-shaped trigger.
|
|
476
|
+
* Wraps a native `<select>` element for full keyboard and form support.
|
|
477
|
+
* @example ```html
|
|
478
|
+
* <lmvz-select label="Country" name="country">
|
|
479
|
+
* <option value="ch">Switzerland</option>
|
|
480
|
+
* <option value="de">Germany</option>
|
|
481
|
+
* <option value="at">Austria</option>
|
|
482
|
+
* </lmvz-select>
|
|
483
|
+
* ```
|
|
484
|
+
* @example ```typescript
|
|
485
|
+
* const select = document.querySelector('lmvz-select');
|
|
486
|
+
* select.addEventListener('lmvzChange', (e) => console.log(e.detail));
|
|
487
|
+
* ```
|
|
488
|
+
*/
|
|
489
|
+
interface HTMLLmvzSelectElement extends Components.LmvzSelect, HTMLStencilElement {
|
|
490
|
+
addEventListener<K extends keyof HTMLLmvzSelectElementEventMap>(type: K, listener: (this: HTMLLmvzSelectElement, ev: LmvzSelectCustomEvent<HTMLLmvzSelectElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
491
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
492
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
493
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
494
|
+
removeEventListener<K extends keyof HTMLLmvzSelectElementEventMap>(type: K, listener: (this: HTMLLmvzSelectElement, ev: LmvzSelectCustomEvent<HTMLLmvzSelectElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
495
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
496
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
497
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
498
|
+
}
|
|
499
|
+
var HTMLLmvzSelectElement: {
|
|
500
|
+
prototype: HTMLLmvzSelectElement;
|
|
501
|
+
new (): HTMLLmvzSelectElement;
|
|
502
|
+
};
|
|
415
503
|
interface HTMLElementTagNameMap {
|
|
504
|
+
"header-integration": HTMLHeaderIntegrationElement;
|
|
416
505
|
"lmvz-action": HTMLLmvzActionElement;
|
|
417
506
|
"lmvz-button": HTMLLmvzButtonElement;
|
|
418
507
|
"lmvz-card": HTMLLmvzCardElement;
|
|
@@ -421,11 +510,15 @@ declare global {
|
|
|
421
510
|
"lmvz-icon": HTMLLmvzIconElement;
|
|
422
511
|
"lmvz-input": HTMLLmvzInputElement;
|
|
423
512
|
"lmvz-menuitem": HTMLLmvzMenuitemElement;
|
|
513
|
+
"lmvz-select": HTMLLmvzSelectElement;
|
|
424
514
|
}
|
|
425
515
|
}
|
|
426
516
|
declare namespace LocalJSX {
|
|
427
517
|
type OneOf<K extends string, PropT, AttrT = PropT> = { [P in K]: PropT } & { [P in `attr:${K}` | `prop:${K}`]?: never } | { [P in `attr:${K}`]: AttrT } & { [P in K | `prop:${K}`]?: never } | { [P in `prop:${K}`]: PropT } & { [P in K | `attr:${K}`]?: never };
|
|
428
518
|
|
|
519
|
+
interface HeaderIntegration {
|
|
520
|
+
"activeNav"?: string;
|
|
521
|
+
}
|
|
429
522
|
interface LmvzAction {
|
|
430
523
|
"onActionClick"?: (event: LmvzActionCustomEvent<MouseEvent>) => void;
|
|
431
524
|
}
|
|
@@ -487,7 +580,7 @@ declare namespace LocalJSX {
|
|
|
487
580
|
"primaryActionLabel"?: string;
|
|
488
581
|
}
|
|
489
582
|
interface LmvzChip {
|
|
490
|
-
"text"
|
|
583
|
+
"text": string;
|
|
491
584
|
}
|
|
492
585
|
/**
|
|
493
586
|
* An accessible, application-style navigation header component, that renders two connected levels of navigation.
|
|
@@ -665,7 +758,57 @@ declare namespace LocalJSX {
|
|
|
665
758
|
*/
|
|
666
759
|
"ti"?: number;
|
|
667
760
|
}
|
|
761
|
+
/**
|
|
762
|
+
* Select component with floating label and pill-shaped trigger.
|
|
763
|
+
* Wraps a native `<select>` element for full keyboard and form support.
|
|
764
|
+
* @example ```html
|
|
765
|
+
* <lmvz-select label="Country" name="country">
|
|
766
|
+
* <option value="ch">Switzerland</option>
|
|
767
|
+
* <option value="de">Germany</option>
|
|
768
|
+
* <option value="at">Austria</option>
|
|
769
|
+
* </lmvz-select>
|
|
770
|
+
* ```
|
|
771
|
+
* @example ```typescript
|
|
772
|
+
* const select = document.querySelector('lmvz-select');
|
|
773
|
+
* select.addEventListener('lmvzChange', (e) => console.log(e.detail));
|
|
774
|
+
* ```
|
|
775
|
+
*/
|
|
776
|
+
interface LmvzSelect {
|
|
777
|
+
/**
|
|
778
|
+
* Whether the select is disabled.
|
|
779
|
+
* @default false
|
|
780
|
+
*/
|
|
781
|
+
"disabled"?: boolean;
|
|
782
|
+
/**
|
|
783
|
+
* Helper text displayed below the select field.
|
|
784
|
+
*/
|
|
785
|
+
"helperText"?: string;
|
|
786
|
+
/**
|
|
787
|
+
* Label text displayed as a placeholder when no value is selected, and floated above the trigger when a value is present.
|
|
788
|
+
*/
|
|
789
|
+
"label": string;
|
|
790
|
+
/**
|
|
791
|
+
* Name attribute passed to the native select for form submission.
|
|
792
|
+
*/
|
|
793
|
+
"name"?: string;
|
|
794
|
+
/**
|
|
795
|
+
* Emitted when the user selects a new option. Detail contains the new value.
|
|
796
|
+
*/
|
|
797
|
+
"onLmvzChange"?: (event: LmvzSelectCustomEvent<string>) => void;
|
|
798
|
+
/**
|
|
799
|
+
* Whether a value is required.
|
|
800
|
+
* @default false
|
|
801
|
+
*/
|
|
802
|
+
"required"?: boolean;
|
|
803
|
+
/**
|
|
804
|
+
* Currently selected value.
|
|
805
|
+
*/
|
|
806
|
+
"value"?: string;
|
|
807
|
+
}
|
|
668
808
|
|
|
809
|
+
interface HeaderIntegrationAttributes {
|
|
810
|
+
"activeNav": string;
|
|
811
|
+
}
|
|
669
812
|
interface LmvzButtonAttributes {
|
|
670
813
|
"ti": number;
|
|
671
814
|
"scale": Button.Scale;
|
|
@@ -723,22 +866,33 @@ declare namespace LocalJSX {
|
|
|
723
866
|
"role": string;
|
|
724
867
|
"ti": number;
|
|
725
868
|
}
|
|
869
|
+
interface LmvzSelectAttributes {
|
|
870
|
+
"value": string;
|
|
871
|
+
"label": string;
|
|
872
|
+
"helperText": string;
|
|
873
|
+
"disabled": boolean;
|
|
874
|
+
"required": boolean;
|
|
875
|
+
"name": string;
|
|
876
|
+
}
|
|
726
877
|
|
|
727
878
|
interface IntrinsicElements {
|
|
879
|
+
"header-integration": Omit<HeaderIntegration, keyof HeaderIntegrationAttributes> & { [K in keyof HeaderIntegration & keyof HeaderIntegrationAttributes]?: HeaderIntegration[K] } & { [K in keyof HeaderIntegration & keyof HeaderIntegrationAttributes as `attr:${K}`]?: HeaderIntegrationAttributes[K] } & { [K in keyof HeaderIntegration & keyof HeaderIntegrationAttributes as `prop:${K}`]?: HeaderIntegration[K] };
|
|
728
880
|
"lmvz-action": LmvzAction;
|
|
729
881
|
"lmvz-button": Omit<LmvzButton, keyof LmvzButtonAttributes> & { [K in keyof LmvzButton & keyof LmvzButtonAttributes]?: LmvzButton[K] } & { [K in keyof LmvzButton & keyof LmvzButtonAttributes as `attr:${K}`]?: LmvzButtonAttributes[K] } & { [K in keyof LmvzButton & keyof LmvzButtonAttributes as `prop:${K}`]?: LmvzButton[K] };
|
|
730
882
|
"lmvz-card": Omit<LmvzCard, keyof LmvzCardAttributes> & { [K in keyof LmvzCard & keyof LmvzCardAttributes]?: LmvzCard[K] } & { [K in keyof LmvzCard & keyof LmvzCardAttributes as `attr:${K}`]?: LmvzCardAttributes[K] } & { [K in keyof LmvzCard & keyof LmvzCardAttributes as `prop:${K}`]?: LmvzCard[K] } & OneOf<"cardTitle", LmvzCard["cardTitle"], LmvzCardAttributes["cardTitle"]>;
|
|
731
|
-
"lmvz-chip": Omit<LmvzChip, keyof LmvzChipAttributes> & { [K in keyof LmvzChip & keyof LmvzChipAttributes]?: LmvzChip[K] } & { [K in keyof LmvzChip & keyof LmvzChipAttributes as `attr:${K}`]?: LmvzChipAttributes[K] } & { [K in keyof LmvzChip & keyof LmvzChipAttributes as `prop:${K}`]?: LmvzChip[K] }
|
|
883
|
+
"lmvz-chip": Omit<LmvzChip, keyof LmvzChipAttributes> & { [K in keyof LmvzChip & keyof LmvzChipAttributes]?: LmvzChip[K] } & { [K in keyof LmvzChip & keyof LmvzChipAttributes as `attr:${K}`]?: LmvzChipAttributes[K] } & { [K in keyof LmvzChip & keyof LmvzChipAttributes as `prop:${K}`]?: LmvzChip[K] } & OneOf<"text", LmvzChip["text"], LmvzChipAttributes["text"]>;
|
|
732
884
|
"lmvz-header": Omit<LmvzHeader, keyof LmvzHeaderAttributes> & { [K in keyof LmvzHeader & keyof LmvzHeaderAttributes]?: LmvzHeader[K] } & { [K in keyof LmvzHeader & keyof LmvzHeaderAttributes as `attr:${K}`]?: LmvzHeaderAttributes[K] } & { [K in keyof LmvzHeader & keyof LmvzHeaderAttributes as `prop:${K}`]?: LmvzHeader[K] };
|
|
733
885
|
"lmvz-icon": Omit<LmvzIcon, keyof LmvzIconAttributes> & { [K in keyof LmvzIcon & keyof LmvzIconAttributes]?: LmvzIcon[K] } & { [K in keyof LmvzIcon & keyof LmvzIconAttributes as `attr:${K}`]?: LmvzIconAttributes[K] } & { [K in keyof LmvzIcon & keyof LmvzIconAttributes as `prop:${K}`]?: LmvzIcon[K] } & OneOf<"icon", LmvzIcon["icon"], LmvzIconAttributes["icon"]>;
|
|
734
886
|
"lmvz-input": Omit<LmvzInput, keyof LmvzInputAttributes> & { [K in keyof LmvzInput & keyof LmvzInputAttributes]?: LmvzInput[K] } & { [K in keyof LmvzInput & keyof LmvzInputAttributes as `attr:${K}`]?: LmvzInputAttributes[K] } & { [K in keyof LmvzInput & keyof LmvzInputAttributes as `prop:${K}`]?: LmvzInput[K] } & OneOf<"label", LmvzInput["label"], LmvzInputAttributes["label"]>;
|
|
735
887
|
"lmvz-menuitem": Omit<LmvzMenuitem, keyof LmvzMenuitemAttributes> & { [K in keyof LmvzMenuitem & keyof LmvzMenuitemAttributes]?: LmvzMenuitem[K] } & { [K in keyof LmvzMenuitem & keyof LmvzMenuitemAttributes as `attr:${K}`]?: LmvzMenuitemAttributes[K] } & { [K in keyof LmvzMenuitem & keyof LmvzMenuitemAttributes as `prop:${K}`]?: LmvzMenuitem[K] };
|
|
888
|
+
"lmvz-select": Omit<LmvzSelect, keyof LmvzSelectAttributes> & { [K in keyof LmvzSelect & keyof LmvzSelectAttributes]?: LmvzSelect[K] } & { [K in keyof LmvzSelect & keyof LmvzSelectAttributes as `attr:${K}`]?: LmvzSelectAttributes[K] } & { [K in keyof LmvzSelect & keyof LmvzSelectAttributes as `prop:${K}`]?: LmvzSelect[K] } & OneOf<"label", LmvzSelect["label"], LmvzSelectAttributes["label"]>;
|
|
736
889
|
}
|
|
737
890
|
}
|
|
738
891
|
export { LocalJSX as JSX };
|
|
739
892
|
declare module "@stencil/core" {
|
|
740
893
|
export namespace JSX {
|
|
741
894
|
interface IntrinsicElements {
|
|
895
|
+
"header-integration": LocalJSX.IntrinsicElements["header-integration"] & JSXBase.HTMLAttributes<HTMLHeaderIntegrationElement>;
|
|
742
896
|
"lmvz-action": LocalJSX.IntrinsicElements["lmvz-action"] & JSXBase.HTMLAttributes<HTMLLmvzActionElement>;
|
|
743
897
|
"lmvz-button": LocalJSX.IntrinsicElements["lmvz-button"] & JSXBase.HTMLAttributes<HTMLLmvzButtonElement>;
|
|
744
898
|
"lmvz-card": LocalJSX.IntrinsicElements["lmvz-card"] & JSXBase.HTMLAttributes<HTMLLmvzCardElement>;
|
|
@@ -774,6 +928,22 @@ declare module "@stencil/core" {
|
|
|
774
928
|
* A menu item component to be used within the `lmvz-header` component's navigation slots.
|
|
775
929
|
*/
|
|
776
930
|
"lmvz-menuitem": LocalJSX.IntrinsicElements["lmvz-menuitem"] & JSXBase.HTMLAttributes<HTMLLmvzMenuitemElement>;
|
|
931
|
+
/**
|
|
932
|
+
* Select component with floating label and pill-shaped trigger.
|
|
933
|
+
* Wraps a native `<select>` element for full keyboard and form support.
|
|
934
|
+
* @example ```html
|
|
935
|
+
* <lmvz-select label="Country" name="country">
|
|
936
|
+
* <option value="ch">Switzerland</option>
|
|
937
|
+
* <option value="de">Germany</option>
|
|
938
|
+
* <option value="at">Austria</option>
|
|
939
|
+
* </lmvz-select>
|
|
940
|
+
* ```
|
|
941
|
+
* @example ```typescript
|
|
942
|
+
* const select = document.querySelector('lmvz-select');
|
|
943
|
+
* select.addEventListener('lmvzChange', (e) => console.log(e.detail));
|
|
944
|
+
* ```
|
|
945
|
+
*/
|
|
946
|
+
"lmvz-select": LocalJSX.IntrinsicElements["lmvz-select"] & JSXBase.HTMLAttributes<HTMLLmvzSelectElement>;
|
|
777
947
|
}
|
|
778
948
|
}
|
|
779
949
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from '@lmvz-ds/aria-validation';
|
|
2
2
|
export type * from './components.d.ts';
|
|
3
3
|
export * from './api';
|
|
4
|
-
export { LmvzDS, Typography } from './api';
|
|
4
|
+
export type { LmvzDS, Typography } from './api';
|
|
5
5
|
export * from './components/lmvz-icon/public';
|
|
6
6
|
export * from './utils/public';
|
|
@@ -18,7 +18,7 @@ export declare class AriaValidationController implements ReactiveController {
|
|
|
18
18
|
private static knownValidationErrors;
|
|
19
19
|
get disabled(): boolean;
|
|
20
20
|
private get useVerboseLogging();
|
|
21
|
-
constructor(host: AriaValidationHost, config?: Config);
|
|
21
|
+
constructor(host: AriaValidationHost, config?: Config | undefined);
|
|
22
22
|
private readonly onRuntimeConfigChange;
|
|
23
23
|
hostDidLoad(): void;
|
|
24
24
|
hostDidUpdate(): void;
|
|
@@ -11,7 +11,7 @@ type Config = {
|
|
|
11
11
|
export declare class ElementActivationController implements ReactiveController {
|
|
12
12
|
private host;
|
|
13
13
|
private config?;
|
|
14
|
-
constructor(host: ElementActivationHost, config?: Config);
|
|
14
|
+
constructor(host: ElementActivationHost, config?: Config | undefined);
|
|
15
15
|
hostDidLoad(): void;
|
|
16
16
|
private handleKeyDown;
|
|
17
17
|
private handleActivation;
|