@lmvz-ds/components 0.28.1 → 0.30.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/CHANGELOG.md +8 -0
- package/cjs/{ds.constants-JXqgKnXL.js → ds.constants-D3srqM9m.js} +2 -0
- package/cjs/index.cjs.js +2 -1
- package/cjs/lmvz-chip.cjs.entry.js +1 -1
- package/cjs/lmvz-components.cjs.js +1 -1
- package/cjs/lmvz-link.cjs.entry.js +69 -0
- package/cjs/lmvz-menuitem.cjs.entry.js +1 -1
- package/cjs/lmvz-message.cjs.entry.js +1 -1
- package/cjs/lmvz-modal.cjs.entry.js +1 -1
- package/cjs/lmvz-radio.cjs.entry.js +1 -1
- package/cjs/lmvz-select.cjs.entry.js +1 -1
- package/cjs/lmvz-snackbar.cjs.entry.js +1 -1
- package/cjs/lmvz-spinner.cjs.entry.js +1 -1
- package/cjs/lmvz-tab.cjs.entry.js +1 -1
- package/cjs/lmvz-tabs.cjs.entry.js +1 -1
- package/cjs/lmvz-toggle.cjs.entry.js +1 -1
- package/cjs/loader.cjs.js +1 -1
- package/collection/api/ds.constants.js +1 -0
- package/collection/collection-manifest.json +1 -0
- package/collection/components/lmvz-link/lmvz-link.css +44 -0
- package/collection/components/lmvz-link/lmvz-link.js +183 -0
- package/collection/components/lmvz-menuitem/lmvz-menuitem.js +1 -1
- package/collection/components/lmvz-message/lmvz-message.js +1 -1
- package/collection/components/lmvz-modal/lmvz-modal.js +1 -1
- package/collection/components/lmvz-radio/lmvz-radio.js +1 -1
- package/collection/components/lmvz-select/lmvz-select.js +1 -1
- package/collection/components/lmvz-snackbar/lmvz-snackbar.js +1 -1
- package/collection/components/lmvz-spinner/lmvz-spinner.js +1 -1
- package/collection/components/lmvz-tab/lmvz-tab.js +1 -1
- package/collection/components/lmvz-tabs/lmvz-tabs.js +1 -1
- package/collection/components/lmvz-toggle/lmvz-toggle.js +1 -1
- package/collection/index.js +1 -1
- package/collection/integration/header-integration/header-integration.js +1 -1
- package/components/index.d.ts +2 -0
- package/components/index.d.ts.bak +2 -0
- package/components/index.js +1 -1
- package/components/lmvz-chip.js +1 -1
- package/components/lmvz-link.d.ts +11 -0
- package/components/lmvz-link.d.ts.bak +11 -0
- package/components/lmvz-link.js +1 -0
- package/components/lmvz-menuitem.js +1 -1
- package/components/lmvz-message.js +1 -1
- package/components/lmvz-modal.js +1 -1
- package/components/lmvz-radio.js +1 -1
- package/components/lmvz-select.js +1 -1
- package/components/lmvz-snackbar.js +1 -1
- package/components/lmvz-spinner.js +1 -1
- package/components/lmvz-tab.js +1 -1
- package/components/lmvz-tabs.js +1 -1
- package/components/lmvz-toggle.js +1 -1
- package/components/p-BLS5MjIu.js +1 -0
- package/esm/{ds.constants-DWePb-zu.js → ds.constants-BLS5MjIu.js} +2 -1
- package/esm/index.js +1 -1
- package/esm/lmvz-chip.entry.js +1 -1
- package/esm/lmvz-components.js +1 -1
- package/esm/lmvz-link.entry.js +67 -0
- package/esm/lmvz-menuitem.entry.js +1 -1
- package/esm/lmvz-message.entry.js +1 -1
- package/esm/lmvz-modal.entry.js +1 -1
- package/esm/lmvz-radio.entry.js +1 -1
- package/esm/lmvz-select.entry.js +1 -1
- package/esm/lmvz-snackbar.entry.js +1 -1
- package/esm/lmvz-spinner.entry.js +1 -1
- package/esm/lmvz-tab.entry.js +1 -1
- package/esm/lmvz-tabs.entry.js +1 -1
- package/esm/lmvz-toggle.entry.js +1 -1
- package/esm/loader.js +1 -1
- package/hydrate/index.js +87 -10
- package/hydrate/index.mjs +87 -10
- package/lmvz-components/index.esm.js +1 -1
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/{p-211ee69d.entry.js → p-0d435e7b.entry.js} +1 -1
- package/lmvz-components/{p-61752dcd.entry.js → p-230962c8.entry.js} +1 -1
- package/lmvz-components/{p-dc28c6d8.entry.js → p-2ca85b7c.entry.js} +1 -1
- package/lmvz-components/{p-d53f8afe.entry.js → p-35da6bfb.entry.js} +1 -1
- package/lmvz-components/p-3b3e532f.entry.js +1 -1
- package/lmvz-components/{p-5fcc6f84.entry.js → p-58498d43.entry.js} +1 -1
- package/lmvz-components/p-BLS5MjIu.js +1 -0
- package/lmvz-components/{p-4484ab62.entry.js → p-b08db5ad.entry.js} +1 -1
- package/lmvz-components/{p-84edbe53.entry.js → p-b5254532.entry.js} +1 -1
- package/lmvz-components/{p-8fc25ee2.entry.js → p-c0b1d0af.entry.js} +1 -1
- package/lmvz-components/{p-877d0f3e.entry.js → p-c60ab9c9.entry.js} +1 -1
- package/lmvz-components/{p-8b4740bb.entry.js → p-d7e99f03.entry.js} +1 -1
- package/lmvz-components/{p-5ace2c2d.entry.js → p-dce6e41d.entry.js} +1 -1
- package/lmvz-components/p-f3c44dd4.entry.js +1 -0
- package/manifest.json +211 -1
- package/package.json +5 -1
- package/types/api/ds.constants.d.ts +4 -0
- package/types/components/lmvz-link/lmvz-link.d.ts +13 -0
- package/types/components.d.ts +70 -0
- package/types/index.d.ts +1 -1
- package/lmvz-components/p-DWePb-zu.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,7 @@ const iconSizes = [...sizes, 'inherit'];
|
|
|
10
10
|
const iconWeights = ['thin', 'medium', 'bold'];
|
|
11
11
|
const chipTypes = ['active', 'warning', 'success', 'error', 'neutral'];
|
|
12
12
|
const chipSizes = ['default', 'small'];
|
|
13
|
+
const linkTypes = ['internal', 'external'];
|
|
13
14
|
const messageTypes = ['neutral', 'warning'];
|
|
14
15
|
|
|
15
16
|
exports.chipSizes = chipSizes;
|
|
@@ -18,6 +19,7 @@ exports.iconSizes = iconSizes;
|
|
|
18
19
|
exports.iconWeights = iconWeights;
|
|
19
20
|
exports.inputSizes = inputSizes;
|
|
20
21
|
exports.inputTypes = inputTypes;
|
|
22
|
+
exports.linkTypes = linkTypes;
|
|
21
23
|
exports.messageTypes = messageTypes;
|
|
22
24
|
exports.selectSizes = selectSizes;
|
|
23
25
|
exports.textSizes = textSizes;
|
package/cjs/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var ariaLoader = require('./aria-loader-BRo2FTGh.js');
|
|
4
|
-
var ds_constants = require('./ds.constants-
|
|
4
|
+
var ds_constants = require('./ds.constants-D3srqM9m.js');
|
|
5
5
|
var icons = require('./icons-BQASWgk-.js');
|
|
6
6
|
require('./svg-BMBduILB.js');
|
|
7
7
|
require('./logger-DsM6xg6V.js');
|
|
@@ -213,6 +213,7 @@ exports.iconSizes = ds_constants.iconSizes;
|
|
|
213
213
|
exports.iconWeights = ds_constants.iconWeights;
|
|
214
214
|
exports.inputSizes = ds_constants.inputSizes;
|
|
215
215
|
exports.inputTypes = ds_constants.inputTypes;
|
|
216
|
+
exports.linkTypes = ds_constants.linkTypes;
|
|
216
217
|
exports.messageTypes = ds_constants.messageTypes;
|
|
217
218
|
exports.selectSizes = ds_constants.selectSizes;
|
|
218
219
|
exports.textSizes = ds_constants.textSizes;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-TGsVZNDP.js');
|
|
4
|
-
var ds_constants = require('./ds.constants-
|
|
4
|
+
var ds_constants = require('./ds.constants-D3srqM9m.js');
|
|
5
5
|
var ariaValidationController = require('./aria-validation-controller-Z4TtOp2l.js');
|
|
6
6
|
var reactiveControllerHost = require('./reactive-controller-host-B_lZtcA6.js');
|
|
7
7
|
var ariaLoader = require('./aria-loader-BRo2FTGh.js');
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["lmvz-modal.cjs",[[769,"lmvz-modal",{"open":[1540],"closeLabel":[1,"close-label"],"hasHeader":[32]},[[0,"submit","handleFormDialogSubmit"]],{"open":[{"handleOpenChange":0}]}]]],["lmvz-message.cjs",[[769,"lmvz-message",{"type":[513],"live":[1],"leadingIcon":[4,"leading-icon"],"dismissible":[4],"closeLabel":[1,"close-label"],"actionLabel":[1,"action-label"]}]]],["lmvz-snackbar.cjs",[[513,"lmvz-snackbar",{"status":[1537],"message":[1025],"duration":[1026],"priority":[1025],"actionLabel":[1025,"action-label"],"animationClass":[32],"show":[64],"hide":[64]},null,{"status":[{"onStatusChange":0}]}]]],["lmvz-header_2.cjs",[[769,"lmvz-header",{"role":[2561],"lmvzActiveNav":[1,"lmvz-active-nav"]},null,{"lmvzActiveNav":[{"handleActiveNavChange":0}]}],[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-action.cjs",[[257,"lmvz-action"]]],["lmvz-card.cjs",[[774,"lmvz-card",{"cardTitle":[1,"card-title"],"imageUrl":[1,"image-url"],"description":[1],"primaryActionLabel":[1,"primary-action-label"]}]]],["lmvz-checkbox.cjs",[[578,"lmvz-checkbox",{"label":[1],"checked":[1540],"value":[1],"name":[1],"disabled":[516],"required":[516],"error":[516],"errorMessage":[1,"error-message"],"helperText":[1,"helper-text"],"form":[1],"autofocus":[4],"checkedState":[32],"focusInput":[64],"checkValidity":[64],"reportValidity":[64]},null,{"checked":[{"handleCheckedChange":0}]}]]],["lmvz-chip.cjs",[[769,"lmvz-chip",{"type":[1537],"size":[1537]},null,{"type":[{"normalizeType":0}],"size":[{"normalizeSize":0}]}]]],["lmvz-input.cjs",[[838,"lmvz-input",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"name":[1],"type":[1],"errorMessage":[1,"error-message"],"autocomplete":[1],"inputmode":[1],"autocorrect":[1],"autocapitalize":[1],"spellcheck":[4],"autofocus":[4],"minlength":[2],"maxlength":[2],"pattern":[1],"min":[8],"max":[8],"step":[8],"form":[1],"size":[513],"error":[6660],"nativeError":[32],"setValue":[64],"focusInput":[64],"blurInput":[64],"select":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"value":[{"handleValueChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-menuitem.cjs",[[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-radio.cjs",[[578,"lmvz-radio",{"label":[1],"checked":[1540],"value":[1],"name":[1],"disabled":[516],"required":[516],"error":[516],"helperText":[1,"helper-text"],"form":[513],"autofocus":[4],"focusInput":[64],"checkValidity":[64],"reportValidity":[64]},[[0,"keydown","handleKeydown"]],{"checked":[{"handleCheckedChange":0}],"value":[{"handleValueChange":0}],"label":[{"handleLabelChange":0}]}]]],["lmvz-select.cjs",[[774,"lmvz-select",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"disabled":[516],"required":[516],"name":[1],"size":[513],"highlighted":[516],"selectedLabel":[32]},null,{"value":[{"handleValueChange":0}]}]]],["lmvz-spinner.cjs",[[513,"lmvz-spinner",{"size":[513],"ariaLabel":[513,"aria-label"]}]]],["lmvz-tab.cjs",[[785,"lmvz-tab",{"value":[513],"disabled":[516],"selected":[516],"vertical":[516]}]]],["lmvz-tabs.cjs",[[769,"lmvz-tabs",{"value":[1537],"orientation":[1537],"resolvedValue":[32],"activateTab":[64],"getTabElements":[64],"setTabPanelIds":[64]},null,{"value":[{"handleValueChange":0}],"orientation":[{"handleOrientationChange":0}]}]]],["lmvz-toggle.cjs",[[578,"lmvz-toggle",{"label":[1],"checked":[1540],"disabled":[516],"required":[516],"name":[1],"value":[1],"form":[1],"focusToggle":[64],"blurToggle":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"checked":[{"handleCheckedChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-button-group.cjs",[[257,"lmvz-button-group",{"primaryEnabledAction":[2064],"hasActions":[2052,"has-actions"]}]]],["lmvz-button_2.cjs",[[785,"lmvz-button",{"ti":[2562,"tabindex"],"scale":[513],"variant":[513],"disabled":[516],"type":[1],"form":[1],"formMethod":[1,"form-method"],"name":[1],"value":[1]}],[514,"lmvz-icon",{"icon":[513],"weight":[513],"size":[513],"iconset":[513],"ariaLabel":[513,"aria-label"],"iconData":[32],"visible":[32]},null,{"icon":[{"loadIconPathData":0}],"iconset":[{"loadIconPathData":0}]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["lmvz-modal.cjs",[[769,"lmvz-modal",{"open":[1540],"closeLabel":[1,"close-label"],"hasHeader":[32]},[[0,"submit","handleFormDialogSubmit"]],{"open":[{"handleOpenChange":0}]}]]],["lmvz-message.cjs",[[769,"lmvz-message",{"type":[513],"live":[1],"leadingIcon":[4,"leading-icon"],"dismissible":[4],"closeLabel":[1,"close-label"],"actionLabel":[1,"action-label"]}]]],["lmvz-snackbar.cjs",[[513,"lmvz-snackbar",{"status":[1537],"message":[1025],"duration":[1026],"priority":[1025],"actionLabel":[1025,"action-label"],"animationClass":[32],"show":[64],"hide":[64]},null,{"status":[{"onStatusChange":0}]}]]],["lmvz-link.cjs",[[785,"lmvz-link",{"href":[513],"target":[513],"rel":[1],"type":[1537],"externalLabel":[1,"external-label"]},null,{"type":[{"normalizeType":0}]}]]],["lmvz-header_2.cjs",[[769,"lmvz-header",{"role":[2561],"lmvzActiveNav":[1,"lmvz-active-nav"]},null,{"lmvzActiveNav":[{"handleActiveNavChange":0}]}],[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-action.cjs",[[257,"lmvz-action"]]],["lmvz-card.cjs",[[774,"lmvz-card",{"cardTitle":[1,"card-title"],"imageUrl":[1,"image-url"],"description":[1],"primaryActionLabel":[1,"primary-action-label"]}]]],["lmvz-checkbox.cjs",[[578,"lmvz-checkbox",{"label":[1],"checked":[1540],"value":[1],"name":[1],"disabled":[516],"required":[516],"error":[516],"errorMessage":[1,"error-message"],"helperText":[1,"helper-text"],"form":[1],"autofocus":[4],"checkedState":[32],"focusInput":[64],"checkValidity":[64],"reportValidity":[64]},null,{"checked":[{"handleCheckedChange":0}]}]]],["lmvz-chip.cjs",[[769,"lmvz-chip",{"type":[1537],"size":[1537]},null,{"type":[{"normalizeType":0}],"size":[{"normalizeSize":0}]}]]],["lmvz-input.cjs",[[838,"lmvz-input",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"name":[1],"type":[1],"errorMessage":[1,"error-message"],"autocomplete":[1],"inputmode":[1],"autocorrect":[1],"autocapitalize":[1],"spellcheck":[4],"autofocus":[4],"minlength":[2],"maxlength":[2],"pattern":[1],"min":[8],"max":[8],"step":[8],"form":[1],"size":[513],"error":[6660],"nativeError":[32],"setValue":[64],"focusInput":[64],"blurInput":[64],"select":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"value":[{"handleValueChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-menuitem.cjs",[[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-radio.cjs",[[578,"lmvz-radio",{"label":[1],"checked":[1540],"value":[1],"name":[1],"disabled":[516],"required":[516],"error":[516],"helperText":[1,"helper-text"],"form":[513],"autofocus":[4],"focusInput":[64],"checkValidity":[64],"reportValidity":[64]},[[0,"keydown","handleKeydown"]],{"checked":[{"handleCheckedChange":0}],"value":[{"handleValueChange":0}],"label":[{"handleLabelChange":0}]}]]],["lmvz-select.cjs",[[774,"lmvz-select",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"disabled":[516],"required":[516],"name":[1],"size":[513],"highlighted":[516],"selectedLabel":[32]},null,{"value":[{"handleValueChange":0}]}]]],["lmvz-spinner.cjs",[[513,"lmvz-spinner",{"size":[513],"ariaLabel":[513,"aria-label"]}]]],["lmvz-tab.cjs",[[785,"lmvz-tab",{"value":[513],"disabled":[516],"selected":[516],"vertical":[516]}]]],["lmvz-tabs.cjs",[[769,"lmvz-tabs",{"value":[1537],"orientation":[1537],"resolvedValue":[32],"activateTab":[64],"getTabElements":[64],"setTabPanelIds":[64]},null,{"value":[{"handleValueChange":0}],"orientation":[{"handleOrientationChange":0}]}]]],["lmvz-toggle.cjs",[[578,"lmvz-toggle",{"label":[1],"checked":[1540],"disabled":[516],"required":[516],"name":[1],"value":[1],"form":[1],"focusToggle":[64],"blurToggle":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"checked":[{"handleCheckedChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-button-group.cjs",[[257,"lmvz-button-group",{"primaryEnabledAction":[2064],"hasActions":[2052,"has-actions"]}]]],["lmvz-button_2.cjs",[[785,"lmvz-button",{"ti":[2562,"tabindex"],"scale":[513],"variant":[513],"disabled":[516],"type":[1],"form":[1],"formMethod":[1,"form-method"],"name":[1],"value":[1]}],[514,"lmvz-icon",{"icon":[513],"weight":[513],"size":[513],"iconset":[513],"ariaLabel":[513,"aria-label"],"iconData":[32],"visible":[32]},null,{"icon":[{"loadIconPathData":0}],"iconset":[{"loadIconPathData":0}]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-TGsVZNDP.js');
|
|
4
|
+
var svg = require('./svg-BMBduILB.js');
|
|
5
|
+
var ds_constants = require('./ds.constants-D3srqM9m.js');
|
|
6
|
+
require('./logger-DsM6xg6V.js');
|
|
7
|
+
|
|
8
|
+
const arrowRightSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgMTJIMjBNMTQgMThMMjAgMTJMMTQgNiIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K';
|
|
9
|
+
|
|
10
|
+
const externalSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIxIDlWM0gxNU0yMSAzTDEwIDE0TTE4IDEzVjE5QzE4IDE5LjUzMDQgMTcuNzg5MyAyMC4wMzkxIDE3LjQxNDIgMjAuNDE0MkMxNy4wMzkxIDIwLjc4OTMgMTYuNTMwNCAyMSAxNiAyMUg1QzQuNDY5NTcgMjEgMy45NjA4NiAyMC43ODkzIDMuNTg1NzkgMjAuNDE0MkMzLjIxMDcxIDIwLjAzOTEgMyAxOS41MzA0IDMgMTlWOEMzIDcuNDY5NTcgMy4yMTA3MSA2Ljk2MDg2IDMuNTg1NzkgNi41ODU3OUMzLjk2MDg2IDYuMjEwNzEgNC40Njk1NyA2IDUgNkgxMSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K';
|
|
11
|
+
|
|
12
|
+
const lmvzLinkCss = () => `:host{display:inline}a{display:inline-flex;align-items:center;gap:var(--lmvz-dimension-4-6, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem));padding-inline:var(--lmvz-dimension-8-12, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)) var(--lmvz-dimension-4-8, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem));padding-block:var(--lmvz-dimension-6-8, clamp(0.38rem, 0.34rem + 0.13vw, 0.5rem));border-radius:var(--lmvz-semantic-border-radius-round, 999px);color:var(--lmvz-semantic-color-int-on-tertiary, #000000);font:var(--lmvz-typography-body-md-strong, 500 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router);text-decoration:underline;transition:background-color 0.15s ease, color 0.15s ease}a:hover{background-color:var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0);color:var(--lmvz-semantic-color-int-on-tertiary-hover, #000000)}a:active{background-color:var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0);color:var(--lmvz-semantic-color-int-on-tertiary-active, #000000)}a:focus-visible{outline:var(--lmvz-ds-outline, 1px solid #0e7ab4);outline-offset:var(--lmvz-ds-outline-offset, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}`;
|
|
13
|
+
|
|
14
|
+
const ARROW_RIGHT_SVG = svg.toValidSvgStringWithFallback(arrowRightSvg);
|
|
15
|
+
const EXTERNAL_SVG = svg.toValidSvgStringWithFallback(externalSvg);
|
|
16
|
+
const LmvzLink = class {
|
|
17
|
+
constructor(hostRef) {
|
|
18
|
+
index.registerInstance(this, hostRef);
|
|
19
|
+
}
|
|
20
|
+
href = '';
|
|
21
|
+
target;
|
|
22
|
+
rel;
|
|
23
|
+
type = 'internal';
|
|
24
|
+
externalLabel = '(öffnet in neuem Tab)';
|
|
25
|
+
normalizeType(value) {
|
|
26
|
+
const normalized = ds_constants.linkTypes.includes(value) ? value : 'internal';
|
|
27
|
+
if (normalized !== this.type) {
|
|
28
|
+
this.type = normalized;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
this.normalizeType(this.type);
|
|
33
|
+
}
|
|
34
|
+
computeHref() {
|
|
35
|
+
if (!this.href)
|
|
36
|
+
return undefined;
|
|
37
|
+
const trimmed = this.href.trim();
|
|
38
|
+
if (/^javascript:/i.test(trimmed) || /^data:/i.test(trimmed))
|
|
39
|
+
return undefined;
|
|
40
|
+
return this.href;
|
|
41
|
+
}
|
|
42
|
+
computeRel() {
|
|
43
|
+
if (this.target !== '_blank') {
|
|
44
|
+
return this.rel || undefined;
|
|
45
|
+
}
|
|
46
|
+
const tokens = new Set((this.rel ?? '')
|
|
47
|
+
.split(/\s+/)
|
|
48
|
+
.map((t) => t.trim())
|
|
49
|
+
.filter(Boolean));
|
|
50
|
+
tokens.add('noopener');
|
|
51
|
+
tokens.add('noreferrer');
|
|
52
|
+
return [...tokens].join(' ');
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
const rel = this.computeRel();
|
|
56
|
+
const iconSvg = this.type === 'external' ? EXTERNAL_SVG : ARROW_RIGHT_SVG;
|
|
57
|
+
const isBlank = this.target === '_blank';
|
|
58
|
+
return (index.h(index.Host, { key: 'c80daca5bef1fd7a9753a075d6bf795f11b5fc1b' }, index.h("a", { key: '06dd1183936e57c00ba4cf028bf186e964ad0ff8', href: this.computeHref(), target: this.target, rel: rel }, index.h("slot", { key: '03cd7fe4bab8a9d6d8f1e7278ee6d0d24650fbda' }), index.h("lmvz-icon", { key: 'c8a31a8937bc59b98bf1dce9bb127f423ac0cb4d', "aria-hidden": "true", icon: iconSvg }), isBlank && index.h("span", { key: '9217e2d0b1b904492598bd0e638cbcb29d4ff212', class: "sr-only" }, this.externalLabel))));
|
|
59
|
+
}
|
|
60
|
+
static get delegatesFocus() { return true; }
|
|
61
|
+
static get watchers() { return {
|
|
62
|
+
"type": [{
|
|
63
|
+
"normalizeType": 0
|
|
64
|
+
}]
|
|
65
|
+
}; }
|
|
66
|
+
};
|
|
67
|
+
LmvzLink.style = lmvzLinkCss();
|
|
68
|
+
|
|
69
|
+
exports.lmvz_link = LmvzLink;
|
|
@@ -29,7 +29,7 @@ const LmvzMenuItem = class extends reactiveControllerHost.ReactiveControllerHost
|
|
|
29
29
|
this.addController(new elementActivationController.ElementActivationController(this));
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (index.h(index.Host, { key: '
|
|
32
|
+
return (index.h(index.Host, { key: '3bc38647d755df012ea744775fe856798e677d0f' }, index.h("slot", { key: '67145418bc36b0ede915d170dca9ce84a27567c8', ref: (e) => (this.validationSlot = e) })));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
LmvzMenuItem.style = lmvzMenuitemCss();
|
|
@@ -70,7 +70,7 @@ const LmvzMessage = class {
|
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
72
|
const role = this.live === 'assertive' ? 'alert' : this.live === 'polite' ? 'status' : 'note';
|
|
73
|
-
return (index.h(index.Host, { key: '
|
|
73
|
+
return (index.h(index.Host, { key: '4e29d3edf1043cd85245942135d689c3b65e49e7', role: role }, this.leadingIcon && index.h("span", { key: 'd927bbefca6152bc40c3a7edf9554ea97231b3a7', class: "leading-icon", "aria-hidden": "true", innerHTML: TYPE_SVG[this.type] }), index.h("span", { key: 'd321b275006a25be9f03be81ff085e9776e45bfd', class: "message" }, index.h("slot", { key: 'a511d00a5c668e48844b717c69be759e046da25d', ref: (el) => (this.messageSlot = el), onSlotchange: this.handleSlotChange })), this.actionLabel && (index.h("lmvz-button", { key: 'e09cbc8381b9b96c7fb95d6f18886df55e53c074', variant: "tertiary", scale: "small", onLmvzActivation: this.handleActionClick }, this.actionLabel)), this.dismissible && (index.h("lmvz-button", { key: 'c34d4684cdc63e5269dd3c98d8e2466ba586c3e3', variant: "tertiary", scale: "small", "aria-label": this.closeLabel, onClick: this.handleDismissClick }, index.h("lmvz-icon", { key: '1341db9c89a9d708b03807d7cfda949e300deef4', "aria-hidden": "true", icon: CLOSE_SM_SVG })))));
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
LmvzMessage.style = lmvzMessageCss();
|
|
@@ -233,7 +233,7 @@ const LmvzModal = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
233
233
|
this.hasHeader = this.hasAssignedContent(this.headerSlot);
|
|
234
234
|
};
|
|
235
235
|
render() {
|
|
236
|
-
return (index.h(index.Host, { key: '
|
|
236
|
+
return (index.h(index.Host, { key: 'd73eaf12bf6b229785cdec9ce2156cf5510c51ca' }, index.h("dialog", { key: '51e36002cf4a49963abe1e6e541b2e19274347b5', ref: (element) => (this.dialogEl = element), onCancel: this.handleDialogCancel, onClose: this.handleDialogClose, ...this.dialogAccessibilityAttributes }, index.h("div", { key: '5415ca10fabe4bf828f59059b03eb06e2c965d92', class: "modal-shell" }, index.h("header", { key: 'be3c707da5ffda470f51425cb09550b0ab749f0f', class: { header: true, 'has-title': this.hasHeader } }, index.h("div", { key: '7221eb87a8d132436043ec74e5b0b3622faa57bc', class: "title", id: this.dialogTitleId, hidden: !this.hasHeader }, index.h("slot", { key: 'a410b4185f0ed52f17dd92d765318d8ce3421bea', name: "header", ref: (element) => (this.headerSlot = element), onSlotchange: this.handleHeaderSlotChange })), index.h("lmvz-button", { key: 'b87688d68b01c51274455a4e1977f2cccbf22690', ref: (element) => (this.closeButtonEl = element), type: "button", class: "close-button", "aria-label": this.closeLabel, onClick: this.handleCloseButtonClick, variant: "tertiary" }, index.h("lmvz-icon", { key: '3ba11132a9779c971458151aca5a0ba4a09bbf28', icon: closeIconSvg }))), index.h("div", { key: '00b59e67efc8470bff3a7270bdde4221b8a8ffb4', class: "body" }, index.h("slot", { key: 'e51eb9f2c17e2eb76d1013d585e8dfcd54a8f0d2' })), index.h("footer", { key: '0972331ef6843b0f401bac6bde4d8dc78a81fb5c', class: "actions", hidden: !this.buttonGroupEl?.hasActions }, index.h("lmvz-button-group", { key: '81c19d896200e84dd91878d2902410b9838d6c8c', ref: (element) => (this.buttonGroupEl = element) }, index.h("slot", { key: '0ed4a2ba74e5bee597e61329afe422b3bf3c3907', name: "actions" })))))));
|
|
237
237
|
}
|
|
238
238
|
static get watchers() { return {
|
|
239
239
|
"open": [{
|
|
@@ -315,7 +315,7 @@ const LmvzRadio = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
315
315
|
this.radioGroupController.setFocused(target);
|
|
316
316
|
}
|
|
317
317
|
render() {
|
|
318
|
-
return (index.h(index.Host, { key: '
|
|
318
|
+
return (index.h(index.Host, { key: '084706ba35f3ecc647653896cf50e1dfdb0eabe4' }, index.h("input", { key: 'c68a13d6f424c251b93ff3bb5648d64ef4645a5a', type: "radio", id: this.radioId, name: this.name ?? undefined, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, autoFocus: this.autofocus, "aria-invalid": this.error ? 'true' : undefined, "aria-describedby": this.helperId, ref: (el) => (this.nativeInput = el), onChange: this.handleChange }), index.h("span", { key: '07500032fe1cdebe544d3ed6890d66fe84c43e07', class: "circle", "aria-hidden": "true" }, this.checked && index.h("span", { key: '0b6f8c99270cbadea320cae867bfef9fd4a70312', class: "dot" })), index.h("span", { key: '60c9720a1e029e99d2304a5579a20942f03778aa', class: "content" }, index.h("label", { key: '13eb208e8bd0f4c5a56955cd4f4e9813cc715425', htmlFor: this.radioId }, this.label), index.h("span", { key: '771e582752972a8e58a0e85408cfefeef57e257b', "aria-live": "polite", class: "helper-text", id: this.helperId }, this.helperText))));
|
|
319
319
|
}
|
|
320
320
|
static get formAssociated() { return true; }
|
|
321
321
|
static get watchers() { return {
|
|
@@ -59,7 +59,7 @@ const LmvzSelect = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
59
59
|
render() {
|
|
60
60
|
const hasValue = this.hasValue;
|
|
61
61
|
const shouldShowLabel = hasValue;
|
|
62
|
-
return (index.h(index.Host, { key: '
|
|
62
|
+
return (index.h(index.Host, { key: '292678c0d3c000624ca6b0cb76c05a0c27ad3494', "data-highlighted": String(this.highlighted) }, index.h("div", { key: '83d269c626a21af74dca8d89d5b0a1a95494a70d', class: hasValue ? 'select-wrapper has-value' : 'select-wrapper' }, index.h("label", { key: 'e5d3b30349ab8438bc02d18c93760d52b979d24e', htmlFor: this.selectId, class: shouldShowLabel ? 'floating-label' : 'assistive-label' }, this.label, this.required && shouldShowLabel && index.h("span", { key: '2f26cf5991b76a5d740f0e61c2ecf9d9a44436b8', "aria-hidden": "true" }, " *")), index.h("div", { key: '30087b0b2d3f4768b02470209c6d14a46c362334', "aria-hidden": "true" }, index.h("span", { key: '67888d3a89f8cbdf332696d827e72a2cce519438' }, hasValue ? this.selectedLabel : this.label, this.required && !hasValue && index.h("span", { key: 'e1b28fe2c2865ed1fba181e60a8682095c5123fc', "aria-hidden": "true" }, " *")), index.h("span", { key: '7479df9bf0e995b92ba9f11f1271f71892c52ac8' }, index.h("svg", { key: '5a76ba91f6b2d29dafd56b6c4abe1b5f93ece926', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, index.h("path", { key: '06c62b38ef2cc0ae3119d2dba0f2015e26e84393', d: "M20.3334 8.66663L12.0001 17L3.66675 8.66663", stroke: "currentColor", "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" })))), index.h("select", { key: 'f1fb834cc74ae70e21ea3fd0ec4f653689cfbfa1', id: this.selectId, ref: (el) => (this.nativeSelectEl = el), name: this.name, disabled: this.disabled, required: this.required, "aria-label": this.label, onChange: this.handleChange }, !hasValue && index.h("option", { key: 'b6240b308c06b01a3a00104941a77090d243548b', value: "", disabled: true, selected: true, hidden: true }), index.h("slot", { key: 'b1128685fc5365be2561bbeef627f2d409f631c9' }))), this.helperText && index.h("div", { key: 'b856e0b6f8e6f1c62de5d0ef59ad7d623c28b5ae', role: "status" }, this.helperText)));
|
|
63
63
|
}
|
|
64
64
|
static get watchers() { return {
|
|
65
65
|
"value": [{
|
|
@@ -67,7 +67,7 @@ const LmvzSnackbar = class {
|
|
|
67
67
|
this.el.dispatchEvent(new CustomEvent('lmvzAction', { bubbles: false, composed: false }));
|
|
68
68
|
};
|
|
69
69
|
render() {
|
|
70
|
-
return (index.h(index.Host, { key: '
|
|
70
|
+
return (index.h(index.Host, { key: '034265e91b852042148789191923cd905750353f', class: this.animationClass }, index.h("lmvz-icon", { key: 'ee0d34690e65bd1e6df60e241b40361794c79e5b', icon: STATUS_SVG[this.status], size: "md", weight: "bold" }), index.h("span", { key: 'd42c28c2b921058f4a8864ae13b58b6d7f76abd2', class: "message" }, this.message), this.actionLabel && (index.h("lmvz-button", { key: 'b73c572c9156f7ee91d00e24200b9640cfc2f79c', variant: "tertiary", scale: "small", onLmvzActivation: this.handleActionClick }, this.actionLabel))));
|
|
71
71
|
}
|
|
72
72
|
static get watchers() { return {
|
|
73
73
|
"status": [{
|
|
@@ -12,7 +12,7 @@ const LmvzSpinner = class {
|
|
|
12
12
|
ariaLabel;
|
|
13
13
|
render() {
|
|
14
14
|
const hasLabel = !!this.ariaLabel?.trim();
|
|
15
|
-
return (index.h(index.Host, { key: '
|
|
15
|
+
return (index.h(index.Host, { key: '4afbe68fd14346a506e3ef7748141e580882d867', role: hasLabel ? 'status' : undefined, "aria-label": hasLabel ? this.ariaLabel : undefined, "aria-hidden": hasLabel ? undefined : 'true' }, index.h("svg", { key: 'a30c1de9096bf0364ef76b685ad82b6ec21a6841', part: "indicator", viewBox: "0 0 16 16", "aria-hidden": "true" }, index.h("circle", { key: 'e2f9507b582dc591053f2e0543eb701aa701702c', pathLength: "100", cx: "8", cy: "8", r: "6" }))));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
LmvzSpinner.style = lmvzSpinnerCss();
|
|
@@ -22,7 +22,7 @@ const LmvzTab = class {
|
|
|
22
22
|
this.el.dispatchEvent(new CustomEvent('lmvzTabReady', { bubbles: true, composed: false }));
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: '029e9118ac6a5c886b4385684e6a499510821963' }, index.h("button", { key: '4c4534d098e56a3576ffcecd4b5d84245ee561ae', part: "button", role: "tab", disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: 0 }, index.h("slot", { key: '9975229f818c544a5d682773459e9c507911efd2', name: "media", ref: (el) => (this.mediaSlotEl = el), onSlotchange: this.handleMediaSlotChange }), index.h("span", { key: 'ec1543971f4be58200aec0109cbbc2942b18291f', class: "label" }, index.h("slot", { key: '9a83be2812e15201b2bb6b1adc0c71de4df5c3be' })), index.h("span", { key: '575f44d75a032bc66be87999e47e2897898b6bce', "aria-hidden": "true", part: "indicator", class: "indicator" }))));
|
|
26
26
|
}
|
|
27
27
|
static get delegatesFocus() { return true; }
|
|
28
28
|
};
|
|
@@ -240,7 +240,7 @@ const LmvzTabs = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
240
240
|
this.selectTab(value);
|
|
241
241
|
};
|
|
242
242
|
render() {
|
|
243
|
-
return (index.h(index.Host, { key: '
|
|
243
|
+
return (index.h(index.Host, { key: '80f6d4afd1263097082045b76cd408550b75342b', onClick: this.handleTabClick, onKeydown: this.handleKeydown }, index.h("div", { key: '01c3a160ef58be9b3db2bece29aadd68b482cf7d', role: "tablist", "aria-orientation": this.orientation, class: "tablist" }, index.h("slot", { key: 'e685b913198f0649b3d2d33002f143ee133bff26', ref: (el) => (this.tabSlotEl = el) })), index.h("div", { key: '44543341ad8a536572f96d35f02f0455f8ca92dd', part: "panels-container", class: "panels-container" }, index.h("slot", { key: '6eaf6cd054947050b8f6d8ae8adbab9bd09a0e2f', name: "panels", ref: (el) => (this.panelSlotEl = el) }))));
|
|
244
244
|
}
|
|
245
245
|
static get watchers() { return {
|
|
246
246
|
"value": [{
|
|
@@ -82,7 +82,7 @@ const LmvzToggle = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
82
82
|
this.lmvzChange.emit(newChecked);
|
|
83
83
|
};
|
|
84
84
|
render() {
|
|
85
|
-
return (index.h(index.Host, { key: '
|
|
85
|
+
return (index.h(index.Host, { key: '9d746374179fbaed3d3321c4c522574b7ff31eb3' }, index.h("span", { key: 'bd5abbf7d15ab6588858a97b20daa9bad4d9fe1b', class: "track" }, index.h("input", { key: 'c008a5f3642bdcf809c3d750e6333d0910804328', type: "checkbox", role: "switch", id: this.toggleId, checked: this.checked, disabled: this.disabled, required: this.required, name: this.name, value: this.value, form: this.form, ref: (el) => (this.nativeInputElement = el), onChange: this.handleChange }), index.h("span", { key: '2e48780cb75db4a244c08afacdfc07cd70a4da04', class: "thumb", "aria-hidden": "true" })), index.h("label", { key: '285570e98d7b8b3efc01e531ea015dc3563b0b28', htmlFor: this.toggleId }, this.label)));
|
|
86
86
|
}
|
|
87
87
|
static get formAssociated() { return true; }
|
|
88
88
|
static get watchers() { return {
|
package/cjs/loader.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
|
6
6
|
const defineCustomElements = async (win, options) => {
|
|
7
7
|
if (typeof window === 'undefined') return undefined;
|
|
8
8
|
await appGlobals.globalScripts();
|
|
9
|
-
return index.bootstrapLazy([["lmvz-modal.cjs",[[769,"lmvz-modal",{"open":[1540],"closeLabel":[1,"close-label"],"hasHeader":[32]},[[0,"submit","handleFormDialogSubmit"]],{"open":[{"handleOpenChange":0}]}]]],["lmvz-message.cjs",[[769,"lmvz-message",{"type":[513],"live":[1],"leadingIcon":[4,"leading-icon"],"dismissible":[4],"closeLabel":[1,"close-label"],"actionLabel":[1,"action-label"]}]]],["lmvz-snackbar.cjs",[[513,"lmvz-snackbar",{"status":[1537],"message":[1025],"duration":[1026],"priority":[1025],"actionLabel":[1025,"action-label"],"animationClass":[32],"show":[64],"hide":[64]},null,{"status":[{"onStatusChange":0}]}]]],["lmvz-header_2.cjs",[[769,"lmvz-header",{"role":[2561],"lmvzActiveNav":[1,"lmvz-active-nav"]},null,{"lmvzActiveNav":[{"handleActiveNavChange":0}]}],[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-action.cjs",[[257,"lmvz-action"]]],["lmvz-card.cjs",[[774,"lmvz-card",{"cardTitle":[1,"card-title"],"imageUrl":[1,"image-url"],"description":[1],"primaryActionLabel":[1,"primary-action-label"]}]]],["lmvz-checkbox.cjs",[[578,"lmvz-checkbox",{"label":[1],"checked":[1540],"value":[1],"name":[1],"disabled":[516],"required":[516],"error":[516],"errorMessage":[1,"error-message"],"helperText":[1,"helper-text"],"form":[1],"autofocus":[4],"checkedState":[32],"focusInput":[64],"checkValidity":[64],"reportValidity":[64]},null,{"checked":[{"handleCheckedChange":0}]}]]],["lmvz-chip.cjs",[[769,"lmvz-chip",{"type":[1537],"size":[1537]},null,{"type":[{"normalizeType":0}],"size":[{"normalizeSize":0}]}]]],["lmvz-input.cjs",[[838,"lmvz-input",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"name":[1],"type":[1],"errorMessage":[1,"error-message"],"autocomplete":[1],"inputmode":[1],"autocorrect":[1],"autocapitalize":[1],"spellcheck":[4],"autofocus":[4],"minlength":[2],"maxlength":[2],"pattern":[1],"min":[8],"max":[8],"step":[8],"form":[1],"size":[513],"error":[6660],"nativeError":[32],"setValue":[64],"focusInput":[64],"blurInput":[64],"select":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"value":[{"handleValueChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-menuitem.cjs",[[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-radio.cjs",[[578,"lmvz-radio",{"label":[1],"checked":[1540],"value":[1],"name":[1],"disabled":[516],"required":[516],"error":[516],"helperText":[1,"helper-text"],"form":[513],"autofocus":[4],"focusInput":[64],"checkValidity":[64],"reportValidity":[64]},[[0,"keydown","handleKeydown"]],{"checked":[{"handleCheckedChange":0}],"value":[{"handleValueChange":0}],"label":[{"handleLabelChange":0}]}]]],["lmvz-select.cjs",[[774,"lmvz-select",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"disabled":[516],"required":[516],"name":[1],"size":[513],"highlighted":[516],"selectedLabel":[32]},null,{"value":[{"handleValueChange":0}]}]]],["lmvz-spinner.cjs",[[513,"lmvz-spinner",{"size":[513],"ariaLabel":[513,"aria-label"]}]]],["lmvz-tab.cjs",[[785,"lmvz-tab",{"value":[513],"disabled":[516],"selected":[516],"vertical":[516]}]]],["lmvz-tabs.cjs",[[769,"lmvz-tabs",{"value":[1537],"orientation":[1537],"resolvedValue":[32],"activateTab":[64],"getTabElements":[64],"setTabPanelIds":[64]},null,{"value":[{"handleValueChange":0}],"orientation":[{"handleOrientationChange":0}]}]]],["lmvz-toggle.cjs",[[578,"lmvz-toggle",{"label":[1],"checked":[1540],"disabled":[516],"required":[516],"name":[1],"value":[1],"form":[1],"focusToggle":[64],"blurToggle":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"checked":[{"handleCheckedChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-button-group.cjs",[[257,"lmvz-button-group",{"primaryEnabledAction":[2064],"hasActions":[2052,"has-actions"]}]]],["lmvz-button_2.cjs",[[785,"lmvz-button",{"ti":[2562,"tabindex"],"scale":[513],"variant":[513],"disabled":[516],"type":[1],"form":[1],"formMethod":[1,"form-method"],"name":[1],"value":[1]}],[514,"lmvz-icon",{"icon":[513],"weight":[513],"size":[513],"iconset":[513],"ariaLabel":[513,"aria-label"],"iconData":[32],"visible":[32]},null,{"icon":[{"loadIconPathData":0}],"iconset":[{"loadIconPathData":0}]}]]]], options);
|
|
9
|
+
return index.bootstrapLazy([["lmvz-modal.cjs",[[769,"lmvz-modal",{"open":[1540],"closeLabel":[1,"close-label"],"hasHeader":[32]},[[0,"submit","handleFormDialogSubmit"]],{"open":[{"handleOpenChange":0}]}]]],["lmvz-message.cjs",[[769,"lmvz-message",{"type":[513],"live":[1],"leadingIcon":[4,"leading-icon"],"dismissible":[4],"closeLabel":[1,"close-label"],"actionLabel":[1,"action-label"]}]]],["lmvz-snackbar.cjs",[[513,"lmvz-snackbar",{"status":[1537],"message":[1025],"duration":[1026],"priority":[1025],"actionLabel":[1025,"action-label"],"animationClass":[32],"show":[64],"hide":[64]},null,{"status":[{"onStatusChange":0}]}]]],["lmvz-link.cjs",[[785,"lmvz-link",{"href":[513],"target":[513],"rel":[1],"type":[1537],"externalLabel":[1,"external-label"]},null,{"type":[{"normalizeType":0}]}]]],["lmvz-header_2.cjs",[[769,"lmvz-header",{"role":[2561],"lmvzActiveNav":[1,"lmvz-active-nav"]},null,{"lmvzActiveNav":[{"handleActiveNavChange":0}]}],[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-action.cjs",[[257,"lmvz-action"]]],["lmvz-card.cjs",[[774,"lmvz-card",{"cardTitle":[1,"card-title"],"imageUrl":[1,"image-url"],"description":[1],"primaryActionLabel":[1,"primary-action-label"]}]]],["lmvz-checkbox.cjs",[[578,"lmvz-checkbox",{"label":[1],"checked":[1540],"value":[1],"name":[1],"disabled":[516],"required":[516],"error":[516],"errorMessage":[1,"error-message"],"helperText":[1,"helper-text"],"form":[1],"autofocus":[4],"checkedState":[32],"focusInput":[64],"checkValidity":[64],"reportValidity":[64]},null,{"checked":[{"handleCheckedChange":0}]}]]],["lmvz-chip.cjs",[[769,"lmvz-chip",{"type":[1537],"size":[1537]},null,{"type":[{"normalizeType":0}],"size":[{"normalizeSize":0}]}]]],["lmvz-input.cjs",[[838,"lmvz-input",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"name":[1],"type":[1],"errorMessage":[1,"error-message"],"autocomplete":[1],"inputmode":[1],"autocorrect":[1],"autocapitalize":[1],"spellcheck":[4],"autofocus":[4],"minlength":[2],"maxlength":[2],"pattern":[1],"min":[8],"max":[8],"step":[8],"form":[1],"size":[513],"error":[6660],"nativeError":[32],"setValue":[64],"focusInput":[64],"blurInput":[64],"select":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"value":[{"handleValueChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-menuitem.cjs",[[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-radio.cjs",[[578,"lmvz-radio",{"label":[1],"checked":[1540],"value":[1],"name":[1],"disabled":[516],"required":[516],"error":[516],"helperText":[1,"helper-text"],"form":[513],"autofocus":[4],"focusInput":[64],"checkValidity":[64],"reportValidity":[64]},[[0,"keydown","handleKeydown"]],{"checked":[{"handleCheckedChange":0}],"value":[{"handleValueChange":0}],"label":[{"handleLabelChange":0}]}]]],["lmvz-select.cjs",[[774,"lmvz-select",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"disabled":[516],"required":[516],"name":[1],"size":[513],"highlighted":[516],"selectedLabel":[32]},null,{"value":[{"handleValueChange":0}]}]]],["lmvz-spinner.cjs",[[513,"lmvz-spinner",{"size":[513],"ariaLabel":[513,"aria-label"]}]]],["lmvz-tab.cjs",[[785,"lmvz-tab",{"value":[513],"disabled":[516],"selected":[516],"vertical":[516]}]]],["lmvz-tabs.cjs",[[769,"lmvz-tabs",{"value":[1537],"orientation":[1537],"resolvedValue":[32],"activateTab":[64],"getTabElements":[64],"setTabPanelIds":[64]},null,{"value":[{"handleValueChange":0}],"orientation":[{"handleOrientationChange":0}]}]]],["lmvz-toggle.cjs",[[578,"lmvz-toggle",{"label":[1],"checked":[1540],"disabled":[516],"required":[516],"name":[1],"value":[1],"form":[1],"focusToggle":[64],"blurToggle":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"checked":[{"handleCheckedChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-button-group.cjs",[[257,"lmvz-button-group",{"primaryEnabledAction":[2064],"hasActions":[2052,"has-actions"]}]]],["lmvz-button_2.cjs",[[785,"lmvz-button",{"ti":[2562,"tabindex"],"scale":[513],"variant":[513],"disabled":[516],"type":[1],"form":[1],"formMethod":[1,"form-method"],"name":[1],"value":[1]}],[514,"lmvz-icon",{"icon":[513],"weight":[513],"size":[513],"iconset":[513],"ariaLabel":[513,"aria-label"],"iconData":[32],"visible":[32]},null,{"icon":[{"loadIconPathData":0}],"iconset":[{"loadIconPathData":0}]}]]]], options);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -9,6 +9,7 @@ export const iconSizes = [...sizes, 'inherit'];
|
|
|
9
9
|
export const iconWeights = ['thin', 'medium', 'bold'];
|
|
10
10
|
export const chipTypes = ['active', 'warning', 'success', 'error', 'neutral'];
|
|
11
11
|
export const chipSizes = ['default', 'small'];
|
|
12
|
+
export const linkTypes = ['internal', 'external'];
|
|
12
13
|
export const messageTypes = ['neutral', 'warning'];
|
|
13
14
|
export const snackbarStatuses = ['success', 'warning', 'error'];
|
|
14
15
|
export const snackbarPriorities = ['low', 'normal', 'high'];
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"components/lmvz-header/lmvz-header.js",
|
|
10
10
|
"components/lmvz-icon/lmvz-icon.js",
|
|
11
11
|
"components/lmvz-input/lmvz-input.js",
|
|
12
|
+
"components/lmvz-link/lmvz-link.js",
|
|
12
13
|
"components/lmvz-menuitem/lmvz-menuitem.js",
|
|
13
14
|
"components/lmvz-message/lmvz-message.js",
|
|
14
15
|
"components/lmvz-modal/lmvz-modal.js",
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
a {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: var(--lmvz-dimension-4-6, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem));
|
|
9
|
+
padding-inline: var(--lmvz-dimension-8-12, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)) var(--lmvz-dimension-4-8, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem));
|
|
10
|
+
padding-block: var(--lmvz-dimension-6-8, clamp(0.38rem, 0.34rem + 0.13vw, 0.5rem));
|
|
11
|
+
border-radius: var(--lmvz-semantic-border-radius-round, 999px);
|
|
12
|
+
color: var(--lmvz-semantic-color-int-on-tertiary, #000000);
|
|
13
|
+
font: var(--lmvz-typography-body-md-strong, 500 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5
|
|
14
|
+
Router);
|
|
15
|
+
text-decoration: underline;
|
|
16
|
+
transition: background-color 0.15s ease, color 0.15s ease;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
a:hover {
|
|
20
|
+
background-color: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0);
|
|
21
|
+
color: var(--lmvz-semantic-color-int-on-tertiary-hover, #000000);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
a:active {
|
|
25
|
+
background-color: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0);
|
|
26
|
+
color: var(--lmvz-semantic-color-int-on-tertiary-active, #000000);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
a:focus-visible {
|
|
30
|
+
outline: var(--lmvz-ds-outline, 1px solid #0e7ab4);
|
|
31
|
+
outline-offset: var(--lmvz-ds-outline-offset, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sr-only {
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 1px;
|
|
37
|
+
height: 1px;
|
|
38
|
+
padding: 0;
|
|
39
|
+
margin: -1px;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
clip: rect(0, 0, 0, 0);
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
border-width: 0;
|
|
44
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { toValidSvgStringWithFallback } from "@lmvz-ds/lib-ts/validation/svg.js";
|
|
2
|
+
import { Host, h } from "@stencil/core";
|
|
3
|
+
import { linkTypes } from "../../api/ds.constants.js";
|
|
4
|
+
import arrowRightSvg from "@lmvz-ds/icons/assets/arrow-right.svg";
|
|
5
|
+
import externalSvg from "@lmvz-ds/icons/assets/external.svg";
|
|
6
|
+
const ARROW_RIGHT_SVG = toValidSvgStringWithFallback(arrowRightSvg);
|
|
7
|
+
const EXTERNAL_SVG = toValidSvgStringWithFallback(externalSvg);
|
|
8
|
+
export class LmvzLink {
|
|
9
|
+
href = '';
|
|
10
|
+
target;
|
|
11
|
+
rel;
|
|
12
|
+
type = 'internal';
|
|
13
|
+
externalLabel = '(öffnet in neuem Tab)';
|
|
14
|
+
normalizeType(value) {
|
|
15
|
+
const normalized = linkTypes.includes(value) ? value : 'internal';
|
|
16
|
+
if (normalized !== this.type) {
|
|
17
|
+
this.type = normalized;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
componentWillLoad() {
|
|
21
|
+
this.normalizeType(this.type);
|
|
22
|
+
}
|
|
23
|
+
computeHref() {
|
|
24
|
+
if (!this.href)
|
|
25
|
+
return undefined;
|
|
26
|
+
const trimmed = this.href.trim();
|
|
27
|
+
if (/^javascript:/i.test(trimmed) || /^data:/i.test(trimmed))
|
|
28
|
+
return undefined;
|
|
29
|
+
return this.href;
|
|
30
|
+
}
|
|
31
|
+
computeRel() {
|
|
32
|
+
if (this.target !== '_blank') {
|
|
33
|
+
return this.rel || undefined;
|
|
34
|
+
}
|
|
35
|
+
const tokens = new Set((this.rel ?? '')
|
|
36
|
+
.split(/\s+/)
|
|
37
|
+
.map((t) => t.trim())
|
|
38
|
+
.filter(Boolean));
|
|
39
|
+
tokens.add('noopener');
|
|
40
|
+
tokens.add('noreferrer');
|
|
41
|
+
return [...tokens].join(' ');
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
const rel = this.computeRel();
|
|
45
|
+
const iconSvg = this.type === 'external' ? EXTERNAL_SVG : ARROW_RIGHT_SVG;
|
|
46
|
+
const isBlank = this.target === '_blank';
|
|
47
|
+
return (h(Host, { key: 'c80daca5bef1fd7a9753a075d6bf795f11b5fc1b' }, h("a", { key: '06dd1183936e57c00ba4cf028bf186e964ad0ff8', href: this.computeHref(), target: this.target, rel: rel }, h("slot", { key: '03cd7fe4bab8a9d6d8f1e7278ee6d0d24650fbda' }), h("lmvz-icon", { key: 'c8a31a8937bc59b98bf1dce9bb127f423ac0cb4d', "aria-hidden": "true", icon: iconSvg }), isBlank && h("span", { key: '9217e2d0b1b904492598bd0e638cbcb29d4ff212', class: "sr-only" }, this.externalLabel))));
|
|
48
|
+
}
|
|
49
|
+
static get is() { return "lmvz-link"; }
|
|
50
|
+
static get encapsulation() { return "shadow"; }
|
|
51
|
+
static get delegatesFocus() { return true; }
|
|
52
|
+
static get originalStyleUrls() {
|
|
53
|
+
return {
|
|
54
|
+
"$": ["lmvz-link.css"]
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
static get styleUrls() {
|
|
58
|
+
return {
|
|
59
|
+
"$": ["lmvz-link.css"]
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
static get properties() {
|
|
63
|
+
return {
|
|
64
|
+
"href": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"mutable": false,
|
|
67
|
+
"complexType": {
|
|
68
|
+
"original": "string",
|
|
69
|
+
"resolved": "string",
|
|
70
|
+
"references": {}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": false,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [],
|
|
76
|
+
"text": "The URL the link points to. Mirrors the native anchor `href` attribute."
|
|
77
|
+
},
|
|
78
|
+
"getter": false,
|
|
79
|
+
"setter": false,
|
|
80
|
+
"reflect": true,
|
|
81
|
+
"attribute": "href",
|
|
82
|
+
"defaultValue": "''"
|
|
83
|
+
},
|
|
84
|
+
"target": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "'_self' | '_blank' | '_parent' | '_top'",
|
|
89
|
+
"resolved": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\" | undefined",
|
|
90
|
+
"references": {}
|
|
91
|
+
},
|
|
92
|
+
"required": false,
|
|
93
|
+
"optional": true,
|
|
94
|
+
"docs": {
|
|
95
|
+
"tags": [],
|
|
96
|
+
"text": "Where to open the linked document."
|
|
97
|
+
},
|
|
98
|
+
"getter": false,
|
|
99
|
+
"setter": false,
|
|
100
|
+
"reflect": true,
|
|
101
|
+
"attribute": "target"
|
|
102
|
+
},
|
|
103
|
+
"rel": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"mutable": false,
|
|
106
|
+
"complexType": {
|
|
107
|
+
"original": "string",
|
|
108
|
+
"resolved": "string | undefined",
|
|
109
|
+
"references": {}
|
|
110
|
+
},
|
|
111
|
+
"required": false,
|
|
112
|
+
"optional": true,
|
|
113
|
+
"docs": {
|
|
114
|
+
"tags": [],
|
|
115
|
+
"text": "Relationship of the linked URL. When `target=\"_blank\"`, `noopener` and\n`noreferrer` are automatically added if not already present."
|
|
116
|
+
},
|
|
117
|
+
"getter": false,
|
|
118
|
+
"setter": false,
|
|
119
|
+
"reflect": false,
|
|
120
|
+
"attribute": "rel"
|
|
121
|
+
},
|
|
122
|
+
"type": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"mutable": true,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "Link.Type",
|
|
127
|
+
"resolved": "\"external\" | \"internal\"",
|
|
128
|
+
"references": {
|
|
129
|
+
"Link": {
|
|
130
|
+
"location": "import",
|
|
131
|
+
"path": "../../api/ds.constants.js",
|
|
132
|
+
"id": "src/api/ds.constants.ts::Link",
|
|
133
|
+
"referenceLocation": "Link"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": false,
|
|
138
|
+
"optional": false,
|
|
139
|
+
"docs": {
|
|
140
|
+
"tags": [{
|
|
141
|
+
"name": "default",
|
|
142
|
+
"text": "'internal'"
|
|
143
|
+
}],
|
|
144
|
+
"text": "Navigation type. Drives the icon shown after the label text.\n- `internal` \u2192 arrow-right icon\n- `external` \u2192 external icon\nInvalid values are normalized to `internal`."
|
|
145
|
+
},
|
|
146
|
+
"getter": false,
|
|
147
|
+
"setter": false,
|
|
148
|
+
"reflect": true,
|
|
149
|
+
"attribute": "type",
|
|
150
|
+
"defaultValue": "'internal'"
|
|
151
|
+
},
|
|
152
|
+
"externalLabel": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"mutable": false,
|
|
155
|
+
"complexType": {
|
|
156
|
+
"original": "string",
|
|
157
|
+
"resolved": "string",
|
|
158
|
+
"references": {}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": false,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [{
|
|
164
|
+
"name": "default",
|
|
165
|
+
"text": "'(\u00F6ffnet in neuem Tab)'"
|
|
166
|
+
}],
|
|
167
|
+
"text": "Visually-hidden text appended inside the anchor when `target=\"_blank\"`.\nProvides an accessible cue for screen reader users."
|
|
168
|
+
},
|
|
169
|
+
"getter": false,
|
|
170
|
+
"setter": false,
|
|
171
|
+
"reflect": false,
|
|
172
|
+
"attribute": "external-label",
|
|
173
|
+
"defaultValue": "'(\u00F6ffnet in neuem Tab)'"
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
static get watchers() {
|
|
178
|
+
return [{
|
|
179
|
+
"propName": "type",
|
|
180
|
+
"methodName": "normalizeType"
|
|
181
|
+
}];
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -21,7 +21,7 @@ export class LmvzMenuItem extends ReactiveControllerHost {
|
|
|
21
21
|
this.addController(new ElementActivationController(this));
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '3bc38647d755df012ea744775fe856798e677d0f' }, h("slot", { key: '67145418bc36b0ede915d170dca9ce84a27567c8', ref: (e) => (this.validationSlot = e) })));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "lmvz-menuitem"; }
|
|
27
27
|
static get encapsulation() { return "scoped"; }
|
|
@@ -60,7 +60,7 @@ export class LmvzMessage {
|
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
62
|
const role = this.live === 'assertive' ? 'alert' : this.live === 'polite' ? 'status' : 'note';
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '4e29d3edf1043cd85245942135d689c3b65e49e7', role: role }, this.leadingIcon && h("span", { key: 'd927bbefca6152bc40c3a7edf9554ea97231b3a7', class: "leading-icon", "aria-hidden": "true", innerHTML: TYPE_SVG[this.type] }), h("span", { key: 'd321b275006a25be9f03be81ff085e9776e45bfd', class: "message" }, h("slot", { key: 'a511d00a5c668e48844b717c69be759e046da25d', ref: (el) => (this.messageSlot = el), onSlotchange: this.handleSlotChange })), this.actionLabel && (h("lmvz-button", { key: 'e09cbc8381b9b96c7fb95d6f18886df55e53c074', variant: "tertiary", scale: "small", onLmvzActivation: this.handleActionClick }, this.actionLabel)), this.dismissible && (h("lmvz-button", { key: 'c34d4684cdc63e5269dd3c98d8e2466ba586c3e3', variant: "tertiary", scale: "small", "aria-label": this.closeLabel, onClick: this.handleDismissClick }, h("lmvz-icon", { key: '1341db9c89a9d708b03807d7cfda949e300deef4', "aria-hidden": "true", icon: CLOSE_SM_SVG })))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "lmvz-message"; }
|
|
66
66
|
static get encapsulation() { return "shadow"; }
|