@lmvz-ds/components 0.17.3 → 0.18.1
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 +18 -0
- package/README.md +3 -0
- package/cjs/{aria-loader-W9Zvc9e-.js → aria-loader-CfFuAbJn.js} +2 -2
- package/cjs/icons-swqMn6s2.js +163 -0
- package/cjs/{index-BNm4PQrX.js → index--7IqZZqn.js} +12179 -516
- package/cjs/index.cjs.js +6 -85
- package/cjs/lmvz-action.cjs.entry.js +1 -1
- package/cjs/lmvz-button.cjs.entry.js +4 -4
- package/cjs/lmvz-card.cjs.entry.js +24 -4
- package/cjs/lmvz-chip.cjs.entry.js +1 -1
- package/cjs/lmvz-components.cjs.js +1 -1
- package/cjs/lmvz-header_2.cjs.entry.js +5 -5
- package/cjs/lmvz-icon.cjs.entry.js +24 -13
- package/cjs/lmvz-input.cjs.entry.js +5 -5
- package/cjs/lmvz-menuitem.cjs.entry.js +4 -4
- package/cjs/lmvz-select.cjs.entry.js +4 -4
- package/cjs/loader.cjs.js +1 -1
- package/cjs/logger-Bn2yoZGP.js +7189 -0
- package/cjs/{reactive-controller-host-B_davRfI.js → reactive-controller-host-CtaVAiYJ.js} +27 -23
- package/collection/api/ds.constants.js +0 -66
- package/collection/collection-manifest.json +1 -1
- package/collection/components/lmvz-action/lmvz-action.js +1 -1
- package/collection/components/lmvz-button/lmvz-button.css +2 -2
- package/collection/components/lmvz-button/lmvz-button.js +5 -5
- package/collection/components/lmvz-card/lmvz-card.css +5 -5
- package/collection/components/lmvz-card/lmvz-card.js +1 -1
- package/collection/components/lmvz-chip/lmvz-chip.js +1 -1
- package/collection/components/lmvz-header/lmvz-header.js +2 -2
- package/collection/components/lmvz-icon/lmvz-icon.css +13 -13
- package/collection/components/lmvz-icon/lmvz-icon.js +49 -18
- package/collection/components/lmvz-input/lmvz-input.css +1 -1
- package/collection/components/lmvz-input/lmvz-input.js +6 -6
- package/collection/components/lmvz-menuitem/lmvz-menuitem.css +2 -2
- package/collection/components/lmvz-menuitem/lmvz-menuitem.js +1 -1
- package/collection/components/lmvz-select/lmvz-select.css +3 -3
- package/collection/components/lmvz-select/lmvz-select.js +1 -1
- package/collection/index.js +1 -2
- package/collection/integration/header-integration/header-integration.js +51 -0
- package/collection/utils/aria/aria-validation-controller.js +27 -23
- package/collection/utils/http.js +10 -13
- package/collection/utils/icons/icons-registry.js +34 -0
- package/collection/utils/icons/icons.js +49 -0
- package/collection/utils/icons/icons.unit.js +73 -0
- package/collection/utils/icons/public.js +2 -0
- package/collection/utils/public.js +1 -1
- package/components/index.d.ts +9 -9
- package/components/index.d.ts.bak +10 -10
- package/components/index.js +1 -1
- package/components/lmvz-action.d.ts +1 -1
- package/components/lmvz-action.d.ts.bak +11 -0
- package/components/lmvz-action.js +1 -1
- package/components/lmvz-button.d.ts +1 -1
- package/components/lmvz-button.d.ts.bak +11 -0
- package/components/lmvz-button.js +1 -1
- package/components/lmvz-card.d.ts +1 -1
- package/components/lmvz-card.d.ts.bak +11 -0
- package/components/lmvz-card.js +1 -1
- package/components/lmvz-chip.d.ts +1 -1
- package/components/lmvz-chip.d.ts.bak +11 -0
- package/components/lmvz-chip.js +1 -1
- package/components/lmvz-header.d.ts +1 -1
- package/components/lmvz-header.d.ts.bak +11 -0
- package/components/lmvz-header.js +1 -1
- package/components/lmvz-icon.d.ts +1 -1
- package/components/lmvz-icon.d.ts.bak +11 -0
- package/components/lmvz-icon.js +1 -1
- package/components/lmvz-input.d.ts +1 -1
- package/components/lmvz-input.d.ts.bak +11 -0
- package/components/lmvz-input.js +1 -1
- package/components/lmvz-menuitem.d.ts +1 -1
- package/components/lmvz-menuitem.d.ts.bak +11 -0
- package/components/lmvz-menuitem.js +1 -1
- package/components/lmvz-select.d.ts +1 -1
- package/components/lmvz-select.d.ts.bak +11 -0
- package/components/lmvz-select.js +1 -1
- package/components/{p-Clo63DJF.js → p-CBLAeife.js} +1 -1
- package/components/p-DXOTa5VF.js +12 -0
- package/components/p-fiRXhuXK.js +1 -0
- package/esm/{aria-loader-D9aySMw6.js → aria-loader-BF_AYtbb.js} +2 -2
- package/esm/icons-Ca8oMiRa.js +157 -0
- package/esm/{index-n6jVNpyp.js → index-7Ru1khgk.js} +11972 -309
- package/esm/index.js +4 -80
- package/esm/lmvz-action.entry.js +1 -1
- package/esm/lmvz-button.entry.js +4 -4
- package/esm/lmvz-card.entry.js +23 -4
- package/esm/lmvz-chip.entry.js +1 -1
- package/esm/lmvz-components.js +1 -1
- package/esm/lmvz-header_2.entry.js +5 -5
- package/esm/lmvz-icon.entry.js +24 -13
- package/esm/lmvz-input.entry.js +5 -5
- package/esm/lmvz-menuitem.entry.js +4 -4
- package/esm/lmvz-select.entry.js +4 -4
- package/esm/loader.js +1 -1
- package/esm/logger-fiRXhuXK.js +6990 -0
- package/esm/{reactive-controller-host-ByKmPKq1.js → reactive-controller-host-sR2jJxNG.js} +27 -23
- package/hydrate/index.js +78 -3842
- package/hydrate/index.mjs +78 -3842
- package/lmvz-components/index.esm.js +1 -1
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/p-0f645295.entry.js +1 -0
- package/lmvz-components/{p-986acfd0.entry.js → p-1506fa34.entry.js} +1 -1
- package/lmvz-components/p-658c5c34.entry.js +1 -0
- package/lmvz-components/{p-1bda378c.entry.js → p-80675ee5.entry.js} +1 -1
- package/lmvz-components/p-872e2106.entry.js +1 -0
- package/lmvz-components/p-93038c98.entry.js +1 -0
- package/lmvz-components/{p-CU4XwA2K.js → p-B3dnXEPG.js} +1 -1
- package/lmvz-components/p-Bh2Epkwf.js +1 -0
- package/lmvz-components/{p-DPHHQR5F.js → p-Bkfdgg0T.js} +1 -1
- package/lmvz-components/p-DXOTa5VF.js +12 -0
- package/lmvz-components/p-bbab5471.entry.js +1 -0
- package/lmvz-components/p-c7e368c4.entry.js +1 -0
- package/lmvz-components/{p-b704eca8.entry.js → p-ff6a0267.entry.js} +1 -1
- package/lmvz-components/p-fiRXhuXK.js +1 -0
- package/manifest.json +64 -283
- package/package.json +4 -2
- package/types/api/ds.constants.d.ts +22 -1
- package/types/api/ds.types.d.ts +3 -38
- package/types/api/index.d.ts +0 -1
- package/types/components/lmvz-action/lmvz-action.d.ts +1 -0
- package/types/components/lmvz-button/lmvz-button.d.ts +2 -2
- package/types/components/lmvz-card/lmvz-card.d.ts +1 -0
- package/types/components/lmvz-chip/lmvz-chip.d.ts +1 -0
- package/types/components/lmvz-header/lmvz-header.d.ts +1 -0
- package/types/components/lmvz-icon/lmvz-icon.d.ts +4 -1
- package/types/components/lmvz-input/lmvz-input.d.ts +1 -0
- package/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +1 -0
- package/types/components/lmvz-select/lmvz-select.d.ts +1 -0
- package/types/components.d.ts +747 -931
- package/types/index.d.ts +2 -2
- package/types/utils/aria/aria-validation-controller.d.ts +1 -0
- package/types/utils/aria/element-activation-controller.d.ts +1 -0
- package/types/utils/aria/list-keyboard-controller.d.ts +1 -0
- package/types/utils/assets.d.ts +1 -0
- package/types/utils/component.d.ts +2 -4
- package/types/utils/environment.d.ts +1 -0
- package/types/utils/http.d.ts +11 -8
- package/types/utils/http.unit.d.ts +1 -0
- package/types/utils/icons/icons-registry.d.ts +13 -0
- package/types/utils/icons/icons.d.ts +8 -0
- package/types/utils/icons/icons.unit.d.ts +8 -0
- package/types/utils/icons/public.d.ts +4 -0
- package/types/utils/public.d.ts +2 -1
- package/types/utils/reactive-controller-host.d.ts +1 -0
- package/assets/.DS_Store +0 -0
- package/assets/icons/.DS_Store +0 -0
- package/assets/icons/actions.svg +0 -5
- package/assets/icons/adduser.svg +0 -3
- package/assets/icons/alert.svg +0 -3
- package/assets/icons/apple.svg +0 -3
- package/assets/icons/arrow-down.svg +0 -3
- package/assets/icons/arrow-left.svg +0 -3
- package/assets/icons/arrow-right.svg +0 -3
- package/assets/icons/arrow-up.svg +0 -3
- package/assets/icons/book.svg +0 -3
- package/assets/icons/bookmark.svg +0 -3
- package/assets/icons/checkmark.svg +0 -3
- package/assets/icons/chevron-left.svg +0 -3
- package/assets/icons/chevron-right.svg +0 -3
- package/assets/icons/chevron-up.svg +0 -3
- package/assets/icons/close-l.svg +0 -3
- package/assets/icons/close-sm.svg +0 -3
- package/assets/icons/cog.svg +0 -4
- package/assets/icons/computer.svg +0 -3
- package/assets/icons/dashboard.svg +0 -6
- package/assets/icons/delete.svg +0 -3
- package/assets/icons/download.svg +0 -3
- package/assets/icons/edit.svg +0 -3
- package/assets/icons/external.svg +0 -3
- package/assets/icons/facebook.svg +0 -3
- package/assets/icons/favorite.svg +0 -3
- package/assets/icons/filter.svg +0 -3
- package/assets/icons/group.svg +0 -3
- package/assets/icons/hide.svg +0 -3
- package/assets/icons/home.svg +0 -3
- package/assets/icons/info.svg +0 -3
- package/assets/icons/instagram.svg +0 -3
- package/assets/icons/letter.svg +0 -3
- package/assets/icons/linkedin.svg +0 -5
- package/assets/icons/logout.svg +0 -3
- package/assets/icons/map.svg +0 -3
- package/assets/icons/minus.svg +0 -3
- package/assets/icons/navigation.svg +0 -3
- package/assets/icons/plus.svg +0 -3
- package/assets/icons/qr-scan.svg +0 -3
- package/assets/icons/question.svg +0 -10
- package/assets/icons/reader.svg +0 -3
- package/assets/icons/reset.svg +0 -3
- package/assets/icons/school.svg +0 -3
- package/assets/icons/search.svg +0 -3
- package/assets/icons/send.svg +0 -3
- package/assets/icons/settings.svg +0 -3
- package/assets/icons/share.svg +0 -10
- package/assets/icons/shopping-cart.svg +0 -3
- package/assets/icons/show.svg +0 -3
- package/assets/icons/snapchat.svg +0 -3
- package/assets/icons/sort.svg +0 -3
- package/assets/icons/speech-bubble.svg +0 -3
- package/assets/icons/star.svg +0 -3
- package/assets/icons/student.svg +0 -3
- package/assets/icons/upload.svg +0 -3
- package/assets/icons/user.svg +0 -3
- package/assets/icons/warn-circle.svg +0 -3
- package/assets/icons/warn-triangle.svg +0 -3
- package/assets/icons/whatsapp.svg +0 -4
- package/assets/icons/world.svg +0 -10
- package/assets/icons/x.svg +0 -3
- package/assets/icons/youtube.svg +0 -3
- package/cjs/Effect-YVFLBEfy.js +0 -19037
- package/cjs/assets-DxYhun-q.js +0 -26
- package/cjs/icons-DgYgcKGK.js +0 -653
- package/collection/api/index.js +0 -1
- package/collection/assets/.DS_Store +0 -0
- package/collection/assets/icons/.DS_Store +0 -0
- package/collection/assets/icons/actions.svg +0 -5
- package/collection/assets/icons/adduser.svg +0 -3
- package/collection/assets/icons/alert.svg +0 -3
- package/collection/assets/icons/apple.svg +0 -3
- package/collection/assets/icons/arrow-down.svg +0 -3
- package/collection/assets/icons/arrow-left.svg +0 -3
- package/collection/assets/icons/arrow-right.svg +0 -3
- package/collection/assets/icons/arrow-up.svg +0 -3
- package/collection/assets/icons/book.svg +0 -3
- package/collection/assets/icons/bookmark.svg +0 -3
- package/collection/assets/icons/checkmark.svg +0 -3
- package/collection/assets/icons/chevron-left.svg +0 -3
- package/collection/assets/icons/chevron-right.svg +0 -3
- package/collection/assets/icons/chevron-up.svg +0 -3
- package/collection/assets/icons/close-l.svg +0 -3
- package/collection/assets/icons/close-sm.svg +0 -3
- package/collection/assets/icons/cog.svg +0 -4
- package/collection/assets/icons/computer.svg +0 -3
- package/collection/assets/icons/dashboard.svg +0 -6
- package/collection/assets/icons/delete.svg +0 -3
- package/collection/assets/icons/download.svg +0 -3
- package/collection/assets/icons/edit.svg +0 -3
- package/collection/assets/icons/external.svg +0 -3
- package/collection/assets/icons/facebook.svg +0 -3
- package/collection/assets/icons/favorite.svg +0 -3
- package/collection/assets/icons/filter.svg +0 -3
- package/collection/assets/icons/group.svg +0 -3
- package/collection/assets/icons/hide.svg +0 -3
- package/collection/assets/icons/home.svg +0 -3
- package/collection/assets/icons/info.svg +0 -3
- package/collection/assets/icons/instagram.svg +0 -3
- package/collection/assets/icons/letter.svg +0 -3
- package/collection/assets/icons/linkedin.svg +0 -5
- package/collection/assets/icons/logout.svg +0 -3
- package/collection/assets/icons/map.svg +0 -3
- package/collection/assets/icons/minus.svg +0 -3
- package/collection/assets/icons/navigation.svg +0 -3
- package/collection/assets/icons/plus.svg +0 -3
- package/collection/assets/icons/qr-scan.svg +0 -3
- package/collection/assets/icons/question.svg +0 -10
- package/collection/assets/icons/reader.svg +0 -3
- package/collection/assets/icons/reset.svg +0 -3
- package/collection/assets/icons/school.svg +0 -3
- package/collection/assets/icons/search.svg +0 -3
- package/collection/assets/icons/send.svg +0 -3
- package/collection/assets/icons/settings.svg +0 -3
- package/collection/assets/icons/share.svg +0 -10
- package/collection/assets/icons/shopping-cart.svg +0 -3
- package/collection/assets/icons/show.svg +0 -3
- package/collection/assets/icons/snapchat.svg +0 -3
- package/collection/assets/icons/sort.svg +0 -3
- package/collection/assets/icons/speech-bubble.svg +0 -3
- package/collection/assets/icons/star.svg +0 -3
- package/collection/assets/icons/student.svg +0 -3
- package/collection/assets/icons/upload.svg +0 -3
- package/collection/assets/icons/user.svg +0 -3
- package/collection/assets/icons/warn-circle.svg +0 -3
- package/collection/assets/icons/warn-triangle.svg +0 -3
- package/collection/assets/icons/whatsapp.svg +0 -4
- package/collection/assets/icons/world.svg +0 -10
- package/collection/assets/icons/x.svg +0 -3
- package/collection/assets/icons/youtube.svg +0 -3
- package/collection/components/lmvz-icon/icons.js +0 -36
- package/collection/components/lmvz-icon/public.js +0 -1
- package/collection/components/lmvz-icon/test/icons.unit.js +0 -98
- package/collection/integration/header-integration.js +0 -46
- package/collection/utils/effect.js +0 -6
- package/collection/utils/validation/svg.js +0 -24
- package/components/p-CYcWxAp5.js +0 -1
- package/components/p-DHtXOUVf.js +0 -1
- package/components/p-VkiNs_yz.js +0 -12
- package/esm/Effect-DkwJP3kx.js +0 -18828
- package/esm/assets-_WDisN-f.js +0 -23
- package/esm/icons-Crg18Lio.js +0 -649
- package/lmvz-components/p-121f74d8.entry.js +0 -1
- package/lmvz-components/p-373a9cbf.entry.js +0 -1
- package/lmvz-components/p-43e295ba.entry.js +0 -1
- package/lmvz-components/p-5f150890.entry.js +0 -1
- package/lmvz-components/p-6d5fa8c4.entry.js +0 -1
- package/lmvz-components/p-BT8PQPMJ.js +0 -1
- package/lmvz-components/p-BxiCs9Wn.js +0 -1
- package/lmvz-components/p-CXQcJLbG.js +0 -12
- package/lmvz-components/p-DkwJP3kx.js +0 -1
- package/lmvz-components/p-abbfa6aa.entry.js +0 -1
- package/types/components/lmvz-icon/icons.d.ts +0 -8
- package/types/components/lmvz-icon/public.d.ts +0 -1
- package/types/components/lmvz-icon/test/icons.unit.d.ts +0 -1
- package/types/utils/effect.d.ts +0 -3
- package/types/utils/validation/svg.d.ts +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var ariaLoader = require('./aria-loader-
|
|
3
|
+
var ariaLoader = require('./aria-loader-CfFuAbJn.js');
|
|
4
4
|
var index = require('./index-C2yDXRqP.js');
|
|
5
5
|
|
|
6
6
|
class AriaValidationController {
|
|
@@ -59,25 +59,27 @@ class AriaValidationController {
|
|
|
59
59
|
this.host.validationSlot?.addEventListener('slotchange', this.enqueueValidation.bind(this));
|
|
60
60
|
}
|
|
61
61
|
observeVisibilityOnce() {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
{
|
|
63
|
+
window.setTimeout(() => {
|
|
64
|
+
if (!this.host.validationEl)
|
|
65
|
+
return;
|
|
66
|
+
this.visibilityObserver = new IntersectionObserver((entries) => {
|
|
67
|
+
for (const entry of entries) {
|
|
68
|
+
if (entry.target !== this.host.validationEl)
|
|
69
|
+
continue;
|
|
70
|
+
if (!entry.isIntersecting)
|
|
71
|
+
continue;
|
|
72
|
+
this.checkLazyValidation();
|
|
73
|
+
this.discardVisibilityObserver();
|
|
74
|
+
}
|
|
75
|
+
}, {
|
|
76
|
+
root: this.host.validationEl?.parentElement,
|
|
77
|
+
rootMargin: '0px',
|
|
78
|
+
threshold: 0.01,
|
|
79
|
+
});
|
|
80
|
+
this.visibilityObserver.observe(this.host.validationEl);
|
|
78
81
|
});
|
|
79
|
-
|
|
80
|
-
});
|
|
82
|
+
}
|
|
81
83
|
}
|
|
82
84
|
checkLazyValidation() {
|
|
83
85
|
if (!this.elementLoaded)
|
|
@@ -138,10 +140,12 @@ class AriaValidationController {
|
|
|
138
140
|
});
|
|
139
141
|
}
|
|
140
142
|
discardVisibilityObserver() {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
{
|
|
144
|
+
if (!this.visibilityObserver)
|
|
145
|
+
return;
|
|
146
|
+
this.visibilityObserver.disconnect();
|
|
147
|
+
this.visibilityObserver = undefined;
|
|
148
|
+
}
|
|
145
149
|
}
|
|
146
150
|
}
|
|
147
151
|
|
|
@@ -5,69 +5,3 @@ export const textSizes = [...sizes, 'xl'];
|
|
|
5
5
|
export const inputTypes = ['text', 'email', 'password', 'tel', 'url', 'search', 'number'];
|
|
6
6
|
export const iconSizes = [...sizes, 'inherit'];
|
|
7
7
|
export const iconWeights = ['thin', 'medium', 'bold', 'filled'];
|
|
8
|
-
export const iconNames = [
|
|
9
|
-
'Logo',
|
|
10
|
-
'actions',
|
|
11
|
-
'adduser',
|
|
12
|
-
'alert',
|
|
13
|
-
'apple',
|
|
14
|
-
'arrow-down',
|
|
15
|
-
'arrow-left',
|
|
16
|
-
'arrow-right',
|
|
17
|
-
'arrow-up',
|
|
18
|
-
'book',
|
|
19
|
-
'bookmark',
|
|
20
|
-
'checkmark',
|
|
21
|
-
'chevron-down',
|
|
22
|
-
'chevron-left',
|
|
23
|
-
'chevron-right',
|
|
24
|
-
'chevron-up',
|
|
25
|
-
'close-l',
|
|
26
|
-
'close-sm',
|
|
27
|
-
'cog',
|
|
28
|
-
'computer',
|
|
29
|
-
'dashboard',
|
|
30
|
-
'delete',
|
|
31
|
-
'download',
|
|
32
|
-
'edit',
|
|
33
|
-
'external',
|
|
34
|
-
'facebook',
|
|
35
|
-
'favorite',
|
|
36
|
-
'filter',
|
|
37
|
-
'group',
|
|
38
|
-
'hide',
|
|
39
|
-
'home',
|
|
40
|
-
'info',
|
|
41
|
-
'instagram',
|
|
42
|
-
'letter',
|
|
43
|
-
'linkedin',
|
|
44
|
-
'logout',
|
|
45
|
-
'map',
|
|
46
|
-
'minus',
|
|
47
|
-
'navigation',
|
|
48
|
-
'plus',
|
|
49
|
-
'qr-scan',
|
|
50
|
-
'question',
|
|
51
|
-
'reader',
|
|
52
|
-
'reset',
|
|
53
|
-
'school',
|
|
54
|
-
'search',
|
|
55
|
-
'send',
|
|
56
|
-
'settings',
|
|
57
|
-
'share',
|
|
58
|
-
'shopping-cart',
|
|
59
|
-
'show',
|
|
60
|
-
'snapchat',
|
|
61
|
-
'sort',
|
|
62
|
-
'speech-bubble',
|
|
63
|
-
'star',
|
|
64
|
-
'student',
|
|
65
|
-
'upload',
|
|
66
|
-
'user',
|
|
67
|
-
'warn-circle',
|
|
68
|
-
'warn-triangle',
|
|
69
|
-
'whatsapp',
|
|
70
|
-
'world',
|
|
71
|
-
'x',
|
|
72
|
-
'youtube',
|
|
73
|
-
];
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"components/lmvz-input/lmvz-input.js",
|
|
10
10
|
"components/lmvz-menuitem/lmvz-menuitem.js",
|
|
11
11
|
"components/lmvz-select/lmvz-select.js",
|
|
12
|
-
"integration/header-integration.js"
|
|
12
|
+
"integration/header-integration/header-integration.js"
|
|
13
13
|
],
|
|
14
14
|
"mixins": [],
|
|
15
15
|
"compiler": {
|
|
@@ -5,7 +5,7 @@ export class LmvzAction {
|
|
|
5
5
|
this.actionClick.emit(event);
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '00da873d80f00dc57e5a0d60f2b58a6c505e41f1', onClick: this._onClick.bind(this) }, h("slot", { key: '7938b5e172ef2b027180aac801b0d9962cd68fa5' })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "lmvz-action"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -92,7 +92,7 @@ button > * {
|
|
|
92
92
|
|
|
93
93
|
button:focus-visible {
|
|
94
94
|
/* outline: var(--lmvz-semantic-border-width-default) solid var(--lmvz-semantic-color-status-active-950); */
|
|
95
|
-
outline: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-status-
|
|
95
|
+
outline: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-status-active, #f1f9fe);
|
|
96
96
|
outline-offset: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem));
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -130,7 +130,7 @@ button.secondary:not([disabled], .disabled):hover {
|
|
|
130
130
|
|
|
131
131
|
button.secondary:not([disabled], .disabled):active {
|
|
132
132
|
--lmvz-button-background: var(--lmvz-semantic-color-int-secondary-active, #d4d4d4);
|
|
133
|
-
--lmvz-button-border-color: var(--lmvz-semantic-color-border-active, #
|
|
133
|
+
--lmvz-button-border-color: var(--lmvz-semantic-color-border-active, #0f8acc);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
/* button.secondary:is([disabled], .disabled) {
|
|
@@ -57,7 +57,7 @@ export class LmvzButton extends ReactiveControllerHost {
|
|
|
57
57
|
};
|
|
58
58
|
render() {
|
|
59
59
|
this.renderHiddenButton();
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: '1448b16151418790d0a78eda2248b7d61fd8e32b', "aria-disabled": this.disabled ? 'true' : null }, h("button", { key: '2cf7ccc0692179b68aaea534a7a4d11dbcbe27b5', ref: (e) => (this.validationEl = e), disabled: this.disabled, class: classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, h("slot", { key: '8fd9f99f8c79657fd3dbeafb2fd88ca667bc0d44' }))));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "lmvz-button"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -104,7 +104,7 @@ export class LmvzButton extends ReactiveControllerHost {
|
|
|
104
104
|
"Button": {
|
|
105
105
|
"location": "import",
|
|
106
106
|
"path": "../../api",
|
|
107
|
-
"id": "src/api/index.ts::Button",
|
|
107
|
+
"id": "src/api/index.d.ts::Button",
|
|
108
108
|
"referenceLocation": "Button"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -134,7 +134,7 @@ export class LmvzButton extends ReactiveControllerHost {
|
|
|
134
134
|
"Button": {
|
|
135
135
|
"location": "import",
|
|
136
136
|
"path": "../../api",
|
|
137
|
-
"id": "src/api/index.ts::Button",
|
|
137
|
+
"id": "src/api/index.d.ts::Button",
|
|
138
138
|
"referenceLocation": "Button"
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -206,8 +206,8 @@ export class LmvzButton extends ReactiveControllerHost {
|
|
|
206
206
|
"references": {
|
|
207
207
|
"FormRef": {
|
|
208
208
|
"location": "import",
|
|
209
|
-
"path": "../../
|
|
210
|
-
"id": "src/
|
|
209
|
+
"path": "../../api",
|
|
210
|
+
"id": "src/api/index.d.ts::FormRef",
|
|
211
211
|
"referenceLocation": "FormRef"
|
|
212
212
|
}
|
|
213
213
|
}
|
|
@@ -93,7 +93,7 @@ button > * {
|
|
|
93
93
|
|
|
94
94
|
button:focus-visible {
|
|
95
95
|
/* outline: var(--lmvz-semantic-border-width-default) solid var(--lmvz-semantic-color-status-active-950); */
|
|
96
|
-
outline: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-status-
|
|
96
|
+
outline: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-status-active, #f1f9fe);
|
|
97
97
|
outline-offset: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem));
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -131,7 +131,7 @@ button.secondary:not([disabled], .disabled):hover {
|
|
|
131
131
|
|
|
132
132
|
button.secondary:not([disabled], .disabled):active {
|
|
133
133
|
--lmvz-button-background: var(--lmvz-semantic-color-int-secondary-active, #d4d4d4);
|
|
134
|
-
--lmvz-button-border-color: var(--lmvz-semantic-color-border-active, #
|
|
134
|
+
--lmvz-button-border-color: var(--lmvz-semantic-color-border-active, #0f8acc);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
/* button.secondary:is([disabled], .disabled) {
|
|
@@ -176,8 +176,8 @@ button.large {
|
|
|
176
176
|
|
|
177
177
|
|
|
178
178
|
display: flex;
|
|
179
|
-
min-width: var(--lmvz-
|
|
180
|
-
max-width: var(--lmvz-
|
|
179
|
+
min-width: var(--lmvz-card-component-card-minwidth, 20.4375rem);
|
|
180
|
+
max-width: var(--lmvz-card-component-card-maxwidth, 21.6875rem);
|
|
181
181
|
flex-direction: column;
|
|
182
182
|
align-items: flex-start;
|
|
183
183
|
|
|
@@ -215,7 +215,7 @@ button.large {
|
|
|
215
215
|
|
|
216
216
|
padding-bottom: var(--lmvz-global-s4, 4px);
|
|
217
217
|
overflow-wrap: break-word;
|
|
218
|
-
font: var(--lmvz-typography-heading-2xl, 500 clamp(
|
|
218
|
+
font: var(--lmvz-typography-heading-2xl, 500 clamp(2.25rem, 2.13rem + 0.52vw, 2.75rem) / 1.2
|
|
219
219
|
Router);
|
|
220
220
|
}
|
|
221
221
|
.description {
|
|
@@ -19,7 +19,7 @@ export class LmvzCard {
|
|
|
19
19
|
const imgStyle = {
|
|
20
20
|
backgroundImage: `url(${this.imageUrl ?? this.fallbackImage})`,
|
|
21
21
|
};
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: 'fceb19eb0d7ad6c6aecfa6fbd5bb6425c7c3e312', role: "article" }, h("div", { key: '4cb516b5dee1f2f84f21984fa350f61fd83c771c', class: "top" }, h("div", { key: '713b2a3245d885a9b99f6c7d54a35053699c1be8', class: "image-wrapper", style: imgStyle }, h("div", { key: 'e8ea65e7f5d11a2335cab950d6bf02208d0b18a1', class: "chip-slot" }, h("slot", { key: 'e9a039742107fdf56216186ddcdf367c4432790b', name: "chip" })))), h("div", { key: '9549e46a1872e0edf298b79435d298aa1ae96a37', class: "bottom" }, h("header", { key: '3bbfb72ecec519d16380ae7e00da4b1ccb6f1cf3' }, h("h2", { key: 'f5a33e498893e61b407c10ab36c9a93b7eecf9f1', class: "title" }, this.cardTitle)), h("p", { key: '19709bb100d014369c836a5a7174772f2d095d2e', class: "description" }, this.description), h("div", { key: '06b5acab3c80cc91865f3aa39da32d42f470348e', class: "actions" }, h("button", { key: '4e954452ac9771359c881aa6b43f11e89e38aecf', class: "primary", onClick: this._onPrimaryClick.bind(this), "data-testid": "primary" }, this.primaryActionLabel), h("button", { key: 'b6a682bf95eb26468c450bed494290565288a515', class: "tertiary", "aria-label": "More actions", onClick: this._onOverflowClick }, h("span", { key: '70a526d1fafd8b7051f6e7107b35d6f594e10d68', class: "icon-placeholder" }, "..."))))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "lmvz-card"; }
|
|
25
25
|
static get encapsulation() { return "scoped"; }
|
|
@@ -2,7 +2,7 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
export class LmvzChip {
|
|
3
3
|
text;
|
|
4
4
|
render() {
|
|
5
|
-
return h(Host, { key: '
|
|
5
|
+
return h(Host, { key: '134d510fe3a04b989b0005bf31358149a9661cb2' }, this.text);
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "lmvz-chip"; }
|
|
8
8
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import logo from "../../assets/icons/Logo.svg";
|
|
3
2
|
import { AriaValidationController } from "../../utils/aria/aria-validation-controller";
|
|
4
3
|
import { ListKeyboardNavigationController } from "../../utils/aria/list-keyboard-controller";
|
|
5
4
|
import { ReactiveControllerHost } from "../../utils/reactive-controller-host";
|
|
5
|
+
import logo from "../../assets/icons/Logo.svg";
|
|
6
6
|
export class LmvzHeader extends ReactiveControllerHost {
|
|
7
7
|
el;
|
|
8
8
|
get validationEl() {
|
|
@@ -84,7 +84,7 @@ export class LmvzHeader extends ReactiveControllerHost {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: '58cf99b555112f6209b6d16047bda2cc0bbf5cde', onFocus: this.delegateFocus.bind(this) }, h("div", { key: 'd9bda5c2a6b9abd6e5ea849fb31a0543c8c36bb7', class: "brand" }, h("slot", { key: 'e1c2c2a0bd69875ecd46ef9f7406ccb52409b570', name: "brand" }, h("img", { key: '8dfca875ffc837f2c413527ea106d640a9b9bb97', id: "fallback-logo-lmvz", src: logo, alt: "Lehrmittelverlag Z\u00FCrich" }))), h("nav", { key: '24ceb7f3ef54399ecb9b7b78418d3be9bb547f60', "aria-label": "Hauptnavigation" }, h("div", { key: 'c9fb6b1850330493e0a26bf20ea04013725025f6', role: "menubar", class: "primary-menubar" }, h("slot", { key: '19640032a28d0a9bd7f5396f7c1acd477135f864', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), h("div", { key: 'c11f19e15c0fea300a771060e2e4c77cce76c20f', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, h("slot", { key: '2df2cf852595a78391bcd7c3dd8b8d6db3847aaa', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), h("div", { key: 'c256862d4f5ea38c120218372d9ad73ae19efd74', class: "actions" }, h("slot", { key: '91b5eb2d9ab06005384a28cddee3d6c92afd418c', name: "actions" }))));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "lmvz-header"; }
|
|
90
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
display: block;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
svg
|
|
16
|
+
svg path {
|
|
17
17
|
stroke: var(--lmvz-icon-color);
|
|
18
18
|
fill: none;
|
|
19
19
|
}
|
|
@@ -21,29 +21,29 @@
|
|
|
21
21
|
|
|
22
22
|
:host([size='xs']) {
|
|
23
23
|
svg {
|
|
24
|
-
width: var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.
|
|
25
|
-
height: var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.
|
|
24
|
+
width: var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem));
|
|
25
|
+
height: var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:host([size='sm']) {
|
|
30
30
|
svg {
|
|
31
|
-
width: var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.
|
|
32
|
-
height: var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.
|
|
31
|
+
width: var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.84rem + 0.13vw, 1rem));
|
|
32
|
+
height: var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.84rem + 0.13vw, 1rem));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
:host([size='md']) {
|
|
37
37
|
svg {
|
|
38
|
-
width: var(--lmvz-component-icon-size-md, clamp(1rem, 0.
|
|
39
|
-
height: var(--lmvz-component-icon-size-md, clamp(1rem, 0.
|
|
38
|
+
width: var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem));
|
|
39
|
+
height: var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem));
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
:host([size='lg']) {
|
|
44
44
|
svg {
|
|
45
|
-
width: var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.
|
|
46
|
-
height: var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.
|
|
45
|
+
width: var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.44rem + 0.26vw, 1.75rem));
|
|
46
|
+
height: var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.44rem + 0.26vw, 1.75rem));
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -55,27 +55,27 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
:host([weight='light']) {
|
|
58
|
-
svg
|
|
58
|
+
svg path {
|
|
59
59
|
stroke-width: 1;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
:host([weight='medium']) {
|
|
64
|
-
svg
|
|
64
|
+
svg path {
|
|
65
65
|
/* TODO: use semantic token */
|
|
66
66
|
stroke-width: 1.5;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
:host([weight='bold']) {
|
|
71
|
-
svg
|
|
71
|
+
svg path {
|
|
72
72
|
/* TODO: use semantic token */
|
|
73
73
|
stroke-width: 2;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
:host([weight='filled']) {
|
|
78
|
-
svg
|
|
78
|
+
svg path {
|
|
79
79
|
stroke-width: 2;
|
|
80
80
|
fill: var(--lmvz-icon-color);
|
|
81
81
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isValidSVG } from "@lmvz-ds/lib-ts/validation/svg.js";
|
|
1
2
|
import { Build, h, Host } from "@stencil/core";
|
|
2
|
-
import { Effect } from "effect";
|
|
3
3
|
import { AriaValidationController } from "../../utils/aria/aria-validation-controller";
|
|
4
|
+
import { resolveIconSvg } from "../../utils/icons/icons";
|
|
4
5
|
import { ReactiveControllerHost } from "../../utils/reactive-controller-host";
|
|
5
|
-
import { emptyDefaultSvg, fetchIconSvg } from "./icons";
|
|
6
6
|
export class LmvzIcon extends ReactiveControllerHost {
|
|
7
7
|
intersectionObserver;
|
|
8
8
|
ariaValidationController = new AriaValidationController(this);
|
|
@@ -11,6 +11,7 @@ export class LmvzIcon extends ReactiveControllerHost {
|
|
|
11
11
|
icon;
|
|
12
12
|
weight = 'medium';
|
|
13
13
|
size = 'md';
|
|
14
|
+
iconset;
|
|
14
15
|
iconData;
|
|
15
16
|
visible = false;
|
|
16
17
|
ariaLabel;
|
|
@@ -29,18 +30,25 @@ export class LmvzIcon extends ReactiveControllerHost {
|
|
|
29
30
|
super.connectedCallback();
|
|
30
31
|
}
|
|
31
32
|
disconnectedCallback() {
|
|
32
|
-
if (this.intersectionObserver) {
|
|
33
|
+
if (this.intersectionObserver && typeof this.intersectionObserver.disconnect === 'function') {
|
|
33
34
|
this.intersectionObserver.disconnect();
|
|
34
|
-
this.intersectionObserver = undefined;
|
|
35
35
|
}
|
|
36
|
+
this.intersectionObserver = undefined;
|
|
36
37
|
super.disconnectedCallback();
|
|
37
38
|
}
|
|
38
39
|
async loadIconPathData() {
|
|
39
|
-
const { icon, visible } = this;
|
|
40
|
+
const { icon, iconset, visible } = this;
|
|
40
41
|
if (!Build.isBrowser || !icon || !visible) {
|
|
41
42
|
return;
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
+
if (isValidSVG(icon)) {
|
|
45
|
+
this.iconData = icon;
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
this.iconData = await resolveIconSvg({
|
|
49
|
+
icon,
|
|
50
|
+
iconset,
|
|
51
|
+
});
|
|
44
52
|
}
|
|
45
53
|
componentDidRender() {
|
|
46
54
|
this.validationEl = this.el.querySelector('svg');
|
|
@@ -48,7 +56,7 @@ export class LmvzIcon extends ReactiveControllerHost {
|
|
|
48
56
|
super.componentDidRender();
|
|
49
57
|
}
|
|
50
58
|
render() {
|
|
51
|
-
return h(Host, { key: '
|
|
59
|
+
return h(Host, { key: 'b36586af32709b492336fe4ec1fe1fe1fe7a9e4b', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
|
|
52
60
|
}
|
|
53
61
|
waitUntilVisible(callback, rootMargin = 50) {
|
|
54
62
|
if (!Build.isBrowser || typeof window === 'undefined' || !window.IntersectionObserver) {
|
|
@@ -58,7 +66,9 @@ export class LmvzIcon extends ReactiveControllerHost {
|
|
|
58
66
|
this.intersectionObserver = new IntersectionObserver((entries) => {
|
|
59
67
|
entries.some((entry) => {
|
|
60
68
|
if (entry.isIntersecting) {
|
|
61
|
-
this.intersectionObserver
|
|
69
|
+
if (this.intersectionObserver && typeof this.intersectionObserver.disconnect === 'function') {
|
|
70
|
+
this.intersectionObserver.disconnect();
|
|
71
|
+
}
|
|
62
72
|
this.intersectionObserver = undefined;
|
|
63
73
|
callback();
|
|
64
74
|
return true;
|
|
@@ -80,21 +90,20 @@ export class LmvzIcon extends ReactiveControllerHost {
|
|
|
80
90
|
"$": ["lmvz-icon.css"]
|
|
81
91
|
};
|
|
82
92
|
}
|
|
83
|
-
static get assetsDirs() { return ["../../assets/icons"]; }
|
|
84
93
|
static get properties() {
|
|
85
94
|
return {
|
|
86
95
|
"icon": {
|
|
87
96
|
"type": "string",
|
|
88
97
|
"mutable": false,
|
|
89
98
|
"complexType": {
|
|
90
|
-
"original": "
|
|
91
|
-
"resolved": "
|
|
99
|
+
"original": "SVGString | string",
|
|
100
|
+
"resolved": "string | string & Brand<\"SVG\">",
|
|
92
101
|
"references": {
|
|
93
|
-
"
|
|
102
|
+
"SVGString": {
|
|
94
103
|
"location": "import",
|
|
95
|
-
"path": "
|
|
96
|
-
"id": "
|
|
97
|
-
"referenceLocation": "
|
|
104
|
+
"path": "@lmvz-ds/lib-ts/validation/SVGString.d.ts",
|
|
105
|
+
"id": "../../lib/ts/dist/validation/SVGString.d.ts::SVGString",
|
|
106
|
+
"referenceLocation": "SVGString"
|
|
98
107
|
}
|
|
99
108
|
}
|
|
100
109
|
},
|
|
@@ -102,7 +111,7 @@ export class LmvzIcon extends ReactiveControllerHost {
|
|
|
102
111
|
"optional": false,
|
|
103
112
|
"docs": {
|
|
104
113
|
"tags": [],
|
|
105
|
-
"text": "
|
|
114
|
+
"text": "Required\n\nEither a valid name from a registered iconset, or the icon's SVG content (inline).\n\nWill be checked against the (default) iconset."
|
|
106
115
|
},
|
|
107
116
|
"getter": false,
|
|
108
117
|
"setter": false,
|
|
@@ -119,7 +128,7 @@ export class LmvzIcon extends ReactiveControllerHost {
|
|
|
119
128
|
"Icon": {
|
|
120
129
|
"location": "import",
|
|
121
130
|
"path": "../../api",
|
|
122
|
-
"id": "src/api/index.ts::Icon",
|
|
131
|
+
"id": "src/api/index.d.ts::Icon",
|
|
123
132
|
"referenceLocation": "Icon"
|
|
124
133
|
}
|
|
125
134
|
}
|
|
@@ -146,7 +155,7 @@ export class LmvzIcon extends ReactiveControllerHost {
|
|
|
146
155
|
"Icon": {
|
|
147
156
|
"location": "import",
|
|
148
157
|
"path": "../../api",
|
|
149
|
-
"id": "src/api/index.ts::Icon",
|
|
158
|
+
"id": "src/api/index.d.ts::Icon",
|
|
150
159
|
"referenceLocation": "Icon"
|
|
151
160
|
}
|
|
152
161
|
}
|
|
@@ -163,6 +172,25 @@ export class LmvzIcon extends ReactiveControllerHost {
|
|
|
163
172
|
"attribute": "size",
|
|
164
173
|
"defaultValue": "'md'"
|
|
165
174
|
},
|
|
175
|
+
"iconset": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"mutable": false,
|
|
178
|
+
"complexType": {
|
|
179
|
+
"original": "string",
|
|
180
|
+
"resolved": "string | undefined",
|
|
181
|
+
"references": {}
|
|
182
|
+
},
|
|
183
|
+
"required": false,
|
|
184
|
+
"optional": true,
|
|
185
|
+
"docs": {
|
|
186
|
+
"tags": [],
|
|
187
|
+
"text": "Optional custom icon iconset id. Must reference a registered custom iconset by its exported name."
|
|
188
|
+
},
|
|
189
|
+
"getter": false,
|
|
190
|
+
"setter": false,
|
|
191
|
+
"reflect": true,
|
|
192
|
+
"attribute": "iconset"
|
|
193
|
+
},
|
|
166
194
|
"ariaLabel": {
|
|
167
195
|
"type": "string",
|
|
168
196
|
"mutable": false,
|
|
@@ -195,6 +223,9 @@ export class LmvzIcon extends ReactiveControllerHost {
|
|
|
195
223
|
return [{
|
|
196
224
|
"propName": "icon",
|
|
197
225
|
"methodName": "loadIconPathData"
|
|
226
|
+
}, {
|
|
227
|
+
"propName": "iconset",
|
|
228
|
+
"methodName": "loadIconPathData"
|
|
198
229
|
}];
|
|
199
230
|
}
|
|
200
231
|
}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
--input-bg: var(--lmvz-semantic-color-surface-input-primary, #ffffff);
|
|
42
42
|
--input-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0);
|
|
43
43
|
--input-border-color-hover: var(--lmvz-semantic-color-border-hover, #c7c7c7);
|
|
44
|
-
--input-border-color-focus: var(--lmvz-semantic-color-status-on-
|
|
44
|
+
--input-border-color-focus: var(--lmvz-semantic-color-status-on-active, #0e7ab4);
|
|
45
45
|
--input-border-width: var(--lmvz-semantic-border-width-default, 1px);
|
|
46
46
|
--input-height: 48px; /* From Figma input-size=48 */
|
|
47
47
|
--input-padding-x: 16px;
|
|
@@ -150,9 +150,9 @@ export class LmvzInput extends ReactiveControllerHost {
|
|
|
150
150
|
render() {
|
|
151
151
|
const hasValue = Boolean(this.value);
|
|
152
152
|
const shouldFloatLabel = hasValue || Boolean(this.placeholder);
|
|
153
|
-
return (h("div", { key: '
|
|
153
|
+
return (h("div", { key: '9de2e4dd202edc937e96ff6ebdc8d0270851c4ca', class: classNames('input-container', {
|
|
154
154
|
'interaction-filled': hasValue,
|
|
155
|
-
}) }, h("div", { key: '
|
|
155
|
+
}) }, h("div", { key: '0c9f92778e1c52dca13ed9175a09d757fc6eedc9', class: "input-wrapper" }, h("slot", { key: '9cf29c45afdb127917a68ed6752faf3d50004c7d', name: "before-input" }), h("div", { key: 'e7e6c54b6ee6db108ac3f8ddb676bb9fcf10517e', class: "label-input-group" }, h("label", { key: '68eb29e585741971aae58c7693d011ba587f1c1b', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (h("span", { key: '274d992a43c2de45af7172608fb1581c6ee771d2', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), h("input", { key: 'a26b95dee9781e0e13db16d6e09681e36cab0230', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur })), h("slot", { key: '5b77b87ba1da3b8e71c7f6825eecf2216a93e4f9', name: "after-input" })), h("div", { key: 'cac334a1e88d4136e923ef1355196997bfe97099', id: this.helperId, role: "status" }, this.helperText || null), h("div", { key: 'b3ea662fa0a57ed0d8c3f35e36aad6b2513af8ab', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
|
|
156
156
|
}
|
|
157
157
|
static get is() { return "lmvz-input"; }
|
|
158
158
|
static get encapsulation() { return "scoped"; }
|
|
@@ -343,7 +343,7 @@ export class LmvzInput extends ReactiveControllerHost {
|
|
|
343
343
|
"Input": {
|
|
344
344
|
"location": "import",
|
|
345
345
|
"path": "../../api",
|
|
346
|
-
"id": "src/api/index.ts::Input",
|
|
346
|
+
"id": "src/api/index.d.ts::Input",
|
|
347
347
|
"referenceLocation": "Input"
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -392,7 +392,7 @@ export class LmvzInput extends ReactiveControllerHost {
|
|
|
392
392
|
"Input": {
|
|
393
393
|
"location": "import",
|
|
394
394
|
"path": "../../api",
|
|
395
|
-
"id": "src/api/index.ts::Input",
|
|
395
|
+
"id": "src/api/index.d.ts::Input",
|
|
396
396
|
"referenceLocation": "Input"
|
|
397
397
|
}
|
|
398
398
|
}
|
|
@@ -418,7 +418,7 @@ export class LmvzInput extends ReactiveControllerHost {
|
|
|
418
418
|
"Input": {
|
|
419
419
|
"location": "import",
|
|
420
420
|
"path": "../../api",
|
|
421
|
-
"id": "src/api/index.ts::Input",
|
|
421
|
+
"id": "src/api/index.d.ts::Input",
|
|
422
422
|
"referenceLocation": "Input"
|
|
423
423
|
}
|
|
424
424
|
}
|
|
@@ -466,7 +466,7 @@ export class LmvzInput extends ReactiveControllerHost {
|
|
|
466
466
|
"Input": {
|
|
467
467
|
"location": "import",
|
|
468
468
|
"path": "../../api",
|
|
469
|
-
"id": "src/api/index.ts::Input",
|
|
469
|
+
"id": "src/api/index.d.ts::Input",
|
|
470
470
|
"referenceLocation": "Input"
|
|
471
471
|
}
|
|
472
472
|
}
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
z-index: 1;
|
|
63
63
|
}
|
|
64
64
|
:host([aria-expanded='true']) {
|
|
65
|
-
--lmvz-menuitem-background: var(--lmvz-semantic-color-status-
|
|
66
|
-
--lmvz-menuitem-color: var(--lmvz-semantic-color-status-on-
|
|
65
|
+
--lmvz-menuitem-background: var(--lmvz-semantic-color-status-on-active, #0e7ab4);
|
|
66
|
+
--lmvz-menuitem-color: var(--lmvz-semantic-color-status-on-active, #0e7ab4);
|
|
67
67
|
}
|
|
@@ -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: '510ac59b18468ce9c65b866ae2767185f1b3da92' }, h("slot", { key: '7e032e0dab83f9bfbaa96ad2b78d8a5a58f978ab', ref: (e) => (this.validationSlot = e) })));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "lmvz-menuitem"; }
|
|
27
27
|
static get encapsulation() { return "scoped"; }
|