@designsystem-se/af 36.0.3 → 37.0.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/components/digi-code-example.js +1 -1
- package/components/digi-form-checkbox.js +1 -1
- package/components/digi-form-error-list.js +2 -2
- package/components/digi-form-filter.js +1 -1
- package/components/digi-form-textarea.js +15 -3
- package/components/digi-header-avatar.js +1 -1
- package/components/digi-header.js +3 -3
- package/components/digi-info-card.js +2 -2
- package/components/digi-link-button.js +1 -1
- package/components/digi-link-external.js +1 -1
- package/components/digi-link-internal.js +1 -1
- package/components/digi-link.js +1 -1
- package/components/digi-navigation-vertical-menu-item.js +6 -6
- package/components/digi-notification-alert.js +1 -1
- package/components/digi-tools-feedback-banner.js +2 -2
- package/components/digi-tools-feedback-rating.js +2 -2
- package/components/{p-0c919531.js → p-7b97818b.js} +1 -1
- package/components/{p-cd0370eb.js → p-7ff04204.js} +3 -3
- package/components/{p-85633f84.js → p-b57677c1.js} +2 -2
- package/components/{p-358965ba.js → p-ea46c737.js} +2 -2
- package/components/{p-f22b488a.js → p-ff4f4fb8.js} +2 -2
- package/custom-elements.json +9 -5
- package/dist/cjs/{code-example-variation.enum-c6557727.js → code-example-variation.enum-1611825e.js} +6 -0
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-button_17.cjs.entry.js +1120 -0
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +3 -6
- package/dist/cjs/digi-code-block_3.cjs.entry.js +4 -7
- package/dist/cjs/digi-code-example.cjs.entry.js +4 -5
- package/dist/cjs/digi-dialog.cjs.entry.js +4 -7
- package/dist/cjs/digi-footer.cjs.entry.js +3 -6
- package/dist/cjs/digi-form-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-error-list.cjs.entry.js +4 -7
- package/dist/cjs/digi-form-input-search.cjs.entry.js +2 -3
- package/dist/cjs/digi-form-label_3.cjs.entry.js +129 -0
- package/dist/cjs/digi-form-receipt.cjs.entry.js +3 -6
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +3 -6
- package/dist/cjs/digi-form-select_2.cjs.entry.js +186 -0
- package/dist/cjs/digi-form-textarea.cjs.entry.js +14 -3
- package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +53 -0
- package/dist/cjs/digi-link-button.cjs.entry.js +1 -1
- package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
- package/dist/cjs/digi-link.cjs.entry.js +1 -1
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +3 -6
- package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +6 -6
- package/dist/cjs/digi-notification-alert.cjs.entry.js +6 -9
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +3 -6
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +5 -8
- package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +64 -0
- package/dist/cjs/{form-input-search-variation.enum-c50239bc.js → form-input-search-variation.enum-e0e025b1.js} +7 -0
- package/dist/cjs/index-7a477838.js +12 -52
- package/dist/cjs/index.cjs.js +42 -45
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{typography-variation.enum-50512a4e.js → typography-variation.enum-118ff8e5.js} +20 -0
- package/dist/collection/components/_code/code-example/code-example.css +0 -1
- package/dist/collection/components/_form/form-checkbox/form-checkbox.js +3 -3
- package/dist/collection/components/_form/form-error-list/form-error-list.js +3 -3
- package/dist/collection/components/_form/form-textarea/form-textarea.js +36 -3
- package/dist/collection/components/_header/header/header.css +2 -15
- package/dist/collection/components/_header/header/header.js +2 -2
- package/dist/collection/components/_header/header-avatar/header-avatar.css +0 -3
- package/dist/collection/components/_link/link/link.js +3 -3
- package/dist/collection/components/_link/link-button/link-button.js +3 -3
- package/dist/collection/components/_link/link-external/link-external.js +2 -2
- package/dist/collection/components/_link/link-internal/link-internal.js +3 -3
- package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +7 -7
- package/dist/collection/components/_notification/notification-alert/notification-alert.css +6 -6
- package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-029c4d40.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-501697cd.entry.js → p-07985aef.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-0c77050e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-22700f68.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-2693c1d8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-2c698144.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-4841b4e1.js +1 -0
- package/dist/digi-arbetsformedlingen/p-51149879.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-51bfa2a9.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-53d9556b.js +1 -0
- package/dist/digi-arbetsformedlingen/p-57a0cc63.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-583d40dc.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-7238fdb8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c8e29e68.entry.js → p-7327f45d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-030e608e.entry.js → p-7888e12c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7d49df06.entry.js → p-78c99e87.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-7e125c6e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c799009f.entry.js → p-9a6ea3b7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-9b7f0707.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-9be9a291.js +1 -0
- package/dist/digi-arbetsformedlingen/p-a2561b9e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-bd55807c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-c68bf2b3.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ccd617cc.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c0b39654.entry.js → p-eada91bf.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-edcb61eb.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-eeca26b2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-f94db846.entry.js +1 -0
- package/dist/esm/{code-example-variation.enum-e9f9fced.js → code-example-variation.enum-e656d235.js} +7 -1
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-button_17.entry.js +1100 -0
- package/dist/esm/digi-calendar-datepicker.entry.js +3 -6
- package/dist/esm/digi-code-block_3.entry.js +3 -6
- package/dist/esm/digi-code-example.entry.js +2 -3
- package/dist/esm/digi-dialog.entry.js +3 -6
- package/dist/esm/digi-footer.entry.js +3 -6
- package/dist/esm/digi-form-checkbox.entry.js +2 -2
- package/dist/esm/digi-form-error-list.entry.js +4 -7
- package/dist/esm/digi-form-input-search.entry.js +1 -2
- package/dist/esm/digi-form-label_3.entry.js +123 -0
- package/dist/esm/digi-form-receipt.entry.js +3 -6
- package/dist/esm/digi-form-select-filter.entry.js +3 -6
- package/dist/esm/digi-form-select_2.entry.js +181 -0
- package/dist/esm/digi-form-textarea.entry.js +14 -3
- package/dist/esm/digi-icon-external-link-alt_2.entry.js +1 -1
- package/dist/esm/digi-icon-validation-error_2.entry.js +48 -0
- package/dist/esm/digi-link-button.entry.js +1 -1
- package/dist/esm/digi-link-internal.entry.js +1 -1
- package/dist/esm/digi-link.entry.js +1 -1
- package/dist/esm/digi-navigation-pagination.entry.js +3 -6
- package/dist/esm/digi-navigation-vertical-menu-item.entry.js +6 -6
- package/dist/esm/digi-notification-alert.entry.js +6 -9
- package/dist/esm/digi-notification-error-page.entry.js +3 -6
- package/dist/esm/digi-tools-feedback.entry.js +3 -6
- package/dist/esm/digi-util-mutation-observer.entry.js +60 -0
- package/dist/esm/{form-input-search-variation.enum-f9d669f2.js → form-input-search-variation.enum-6d8dc10a.js} +8 -1
- package/dist/esm/index-148a7577.js +12 -52
- package/dist/esm/index.js +3 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{typography-variation.enum-8c3ff25c.js → typography-variation.enum-23eeecd2.js} +21 -1
- package/dist/types/components/_form/form-checkbox/form-checkbox.d.ts +1 -1
- package/dist/types/components/_form/form-error-list/form-error-list.d.ts +1 -1
- package/dist/types/components/_form/form-textarea/form-textarea.d.ts +5 -0
- package/dist/types/components/_link/link/link.d.ts +1 -1
- package/dist/types/components/_link/link-button/link-button.d.ts +1 -1
- package/dist/types/components/_link/link-internal/link-internal.d.ts +1 -1
- package/dist/types/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.d.ts +1 -1
- package/dist/types/components.d.ts +26 -16
- package/hydrate/index.js +36 -24
- package/hydrate/index.mjs +36 -24
- package/package.json +1 -1
- package/dist/cjs/button-size.enum-1fd86b9e.js +0 -7
- package/dist/cjs/button-type.enum-406723db.js +0 -8
- package/dist/cjs/digi-button_9.cjs.entry.js +0 -533
- package/dist/cjs/digi-header-avatar.cjs.entry.js +0 -114
- package/dist/cjs/digi-header-navigation-item.cjs.entry.js +0 -27
- package/dist/cjs/digi-header-navigation.cjs.entry.js +0 -232
- package/dist/cjs/digi-header-notification.cjs.entry.js +0 -23
- package/dist/cjs/digi-header.cjs.entry.js +0 -148
- package/dist/cjs/digi-icon-bars.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-x.cjs.entry.js +0 -30
- package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
- package/dist/cjs/digi-media-image_2.cjs.entry.js +0 -167
- package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +0 -30
- package/dist/cjs/digi-title-logo.cjs.entry.js +0 -135
- package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +0 -48
- package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +0 -83
- package/dist/cjs/layout-container-max-width.enum-7e637f44.js +0 -21
- package/dist/digi-arbetsformedlingen/p-0436c516.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-14731327.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-19c30198.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-237cad1c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2698dd2a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2a86cc73.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2b7b69cd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
- package/dist/digi-arbetsformedlingen/p-38627816.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4452f871.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-55f525dd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-5a602122.js +0 -1
- package/dist/digi-arbetsformedlingen/p-73a6be41.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-76022084.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-832cbd71.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-84719680.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-89b457e8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-95330112.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9e56568b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ac87daf1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-b328f60b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bc3d2778.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bf53daba.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c24aab43.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cc9a96ff.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cdf86efc.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e2c92528.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e6b65415.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e7e39ee7.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e9656bf8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ee4cb21a.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ee9589e6.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f8391f37.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fdecd798.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fe409f14.entry.js +0 -1
- package/dist/esm/button-size.enum-d5ff6ff3.js +0 -7
- package/dist/esm/button-type.enum-5250ae0b.js +0 -8
- package/dist/esm/digi-button_9.entry.js +0 -521
- package/dist/esm/digi-header-avatar.entry.js +0 -110
- package/dist/esm/digi-header-navigation-item.entry.js +0 -23
- package/dist/esm/digi-header-navigation.entry.js +0 -228
- package/dist/esm/digi-header-notification.entry.js +0 -19
- package/dist/esm/digi-header.entry.js +0 -144
- package/dist/esm/digi-icon-bars.entry.js +0 -26
- package/dist/esm/digi-icon-bell-filled.entry.js +0 -26
- package/dist/esm/digi-icon-x.entry.js +0 -26
- package/dist/esm/digi-layout-block_2.entry.js +0 -87
- package/dist/esm/digi-media-image_2.entry.js +0 -162
- package/dist/esm/digi-navigation-sidebar-button.entry.js +0 -26
- package/dist/esm/digi-title-logo.entry.js +0 -131
- package/dist/esm/digi-util-breakpoint-observer.entry.js +0 -44
- package/dist/esm/digi-util-keydown-handler.entry.js +0 -79
- package/dist/esm/layout-container-max-width.enum-c40018ac.js +0 -21
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-148a7577.js';
|
|
2
|
-
import './badge-notification-shape.enum-e15a6245.js';
|
|
3
|
-
import { T as TitleLogoVariation } from './typography-variation.enum-8c3ff25c.js';
|
|
4
|
-
import './badge-status-variation.enum-8d6370ff.js';
|
|
5
|
-
import './button-size.enum-d5ff6ff3.js';
|
|
6
|
-
import './button-type.enum-5250ae0b.js';
|
|
7
|
-
import './button-variation.enum-94fffdd6.js';
|
|
8
|
-
import './calendar-week-view-heading-level.enum-6774297c.js';
|
|
9
|
-
import './bar-chart-variation.enum-97c0b47f.js';
|
|
10
|
-
import './code-example-variation.enum-e9f9fced.js';
|
|
11
|
-
import './code-variation.enum-1eee7c7a.js';
|
|
12
|
-
import './expandable-accordion-header-level.enum-85681e2f.js';
|
|
13
|
-
import './expandable-faq-item-variation.enum-a8cb225b.js';
|
|
14
|
-
import './expandable-faq-variation.enum-6934c367.js';
|
|
15
|
-
import './footer-card-variation.enum-cc732148.js';
|
|
16
|
-
import './form-checkbox-variation.enum-83e906fc.js';
|
|
17
|
-
import './form-file-upload-variation.enum-9c49ec5e.js';
|
|
18
|
-
import './form-input-search-variation.enum-f9d669f2.js';
|
|
19
|
-
import './form-input-type.enum-3da3db27.js';
|
|
20
|
-
import './form-input-variation.enum-64d9450f.js';
|
|
21
|
-
import './form-radiogroup-validation.enum-d790fc66.js';
|
|
22
|
-
import './form-select-variation.enum-f2f6098d.js';
|
|
23
|
-
import './form-textarea-variation.enum-05017e8e.js';
|
|
24
|
-
import './form-validation-message-variation.enum-bcef8a9d.js';
|
|
25
|
-
import './info-card-multi-type.enum-07ee124f.js';
|
|
26
|
-
import './info-card-variation.enum-2ccc52c1.js';
|
|
27
|
-
import './layout-container-max-width.enum-c40018ac.js';
|
|
28
|
-
import './layout-block-variation.enum-b7a20db4.js';
|
|
29
|
-
import './layout-columns-variation.enum-34f7754e.js';
|
|
30
|
-
import './link-button-variation.enum-84d4976f.js';
|
|
31
|
-
import './list-type.enum-fbb331ad.js';
|
|
32
|
-
import './loader-skeleton-variation.enum-f9f867b4.js';
|
|
33
|
-
import './loader-spinner-size.enum-0b246fa0.js';
|
|
34
|
-
import './logo-variation.enum-5b68b79f.js';
|
|
35
|
-
import './media-figure-alignment.enum-a1d36567.js';
|
|
36
|
-
import './navigation-sidebar-variation.enum-8fead764.js';
|
|
37
|
-
import './navigation-vertical-menu-variation.enum-c30b0ea9.js';
|
|
38
|
-
import './progress-indicator-variation.enum-b12ba50a.js';
|
|
39
|
-
import './progress-list-item-variation.enum-384b9a3a.js';
|
|
40
|
-
import './progress-list-variation.enum-300bd89d.js';
|
|
41
|
-
import './progressbar-variation.enum-40adaab4.js';
|
|
42
|
-
import './quote-image-inner-position.enum-8e9b1e65.js';
|
|
43
|
-
import './table-variation.enum-dd9366b6.js';
|
|
44
|
-
import './tag-media-icon.enum-fefa191c.js';
|
|
45
|
-
import './tag-size.enum-403e0cd8.js';
|
|
46
|
-
import './tools-feedback-banner-type.enum-74b4e580.js';
|
|
47
|
-
import './tools-feedback-rating-variation.enum-29058ff2.js';
|
|
48
|
-
import './tools-theme-provider.brand.enum-8c5a98c9.js';
|
|
49
|
-
import './typography-heading-jumbo-variation.enum-eb737f1b.js';
|
|
50
|
-
import './typography-meta-variation.enum-1f7c2878.js';
|
|
51
|
-
import './typography-time-variation.enum-34c830ef.js';
|
|
52
|
-
import { U as UtilBreakpointObserverBreakpoints } from './util-breakpoint-observer-breakpoints.enum-6d004731.js';
|
|
53
|
-
|
|
54
|
-
const titleLogoCss = ".sc-digi-title-logo-h{display:block;--digi--title-logo-text-color:var(--digi--color--text--primary);--digi--title-logo-font-weight:var(--digi--global--typography--font-weight--bold);--digi--title-logo-font-size:var(--digi--typography--title-logo--font-size--mobile);--digi--title-logo-font-size-small:var(--digi--global--typography--font-size--large);--digi--title-logo-line-height-small:1.25rem;--digi--title-logo-symbol-color:var(--digi--color--logotype-color);--digi--title-logo-symbol-width:36px;--digi--title-logo-symbol-height:36px;--digi--title-logo-symbol-width-mobile:44px;--digi--title-logo-symbol-height-mobile:44px;--digi--title-logo-text-height:40px;--digi--title-logo-border-width:var(--digi--global--border-width--base);--digi--title-logo-vertical-padding:1.375rem;--digi--title-logo-gap:9px}.sc-digi-title-logo-h .digi-title-logo.sc-digi-title-logo{color:var(--digi--title-logo-text-color);display:flex;align-items:center;padding:var(--digi--title-logo-vertical-padding) 0}@media (min-width: 48rem){.sc-digi-title-logo-h .digi-title-logo.sc-digi-title-logo{--digi--title-logo-vertical-padding:1.5rem}}.sc-digi-title-logo-h .digi-title-logo.sc-digi-title-logo:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-title-logo-h .digi-title-logo-symbol.sc-digi-title-logo{height:var(--digi--title-logo-symbol-height);width:var(--digi--title-logo-symbol-width);display:flex;flex-shrink:0;align-items:center}.sc-digi-title-logo-h .digi-title-logo-symbol.sc-digi-title-logo svg.sc-digi-title-logo{fill:var(--digi--title-logo-symbol-color)}.sc-digi-title-logo-h .digi-title-logo-name-wrapper.sc-digi-title-logo{color:var(--digi--title-logo-text-color);display:flex;flex-direction:column;justify-content:center;height:var(--digi--title-logo-text-height);border-left:var(--digi--title-logo-border-width) solid;margin-left:var(--digi--title-logo-gap);padding-left:var(--digi--title-logo-gap);font-weight:var(--digi--title-logo-font-weight);font-size:var(--digi--title-logo-font-size)}.sc-digi-title-logo-h .digi-title-logo.sc-digi-title-logo-s>[slot=logo-two-rows],.sc-digi-title-logo-h .digi-title-logo .sc-digi-title-logo-s>[slot=logo-two-rows]{display:flex;flex-direction:column;font-size:var(--digi--title-logo-font-size-small);line-height:var(--digi--title-logo-line-height-small)}.sc-digi-title-logo-h .digi-title-logo--mobile.sc-digi-title-logo{--digi--title-logo-symbol-height:var(--digi--title-logo-symbol-height-mobile);--digi--title-logo-symbol-width:var(--digi--title-logo-symbol-width-mobile)}.sc-digi-title-logo-h .digi-title-logo--mobile.sc-digi-title-logo .digi-title-logo-name-wrapper.sc-digi-title-logo{display:none}.sc-digi-title-logo-h .digi-title-logo--one-row.sc-digi-title-logo-s>[slot=logo-two-rows],.sc-digi-title-logo-h .digi-title-logo--one-row .sc-digi-title-logo-s>[slot=logo-two-rows]{display:none}.sc-digi-title-logo-h .digi-title-logo--two-rows.sc-digi-title-logo-s>[slot=logo-one-row],.sc-digi-title-logo-h .digi-title-logo--two-rows .sc-digi-title-logo-s>[slot=logo-one-row]{display:none}";
|
|
55
|
-
const DigiTitleLogoStyle0 = titleLogoCss;
|
|
56
|
-
|
|
57
|
-
const TitleLogo = class {
|
|
58
|
-
constructor(hostRef) {
|
|
59
|
-
registerInstance(this, hostRef);
|
|
60
|
-
this.handleWindowResize = () => {
|
|
61
|
-
this.titleLogoVariation = this.setLogoVariation(window.innerWidth);
|
|
62
|
-
};
|
|
63
|
-
this.isMobile = undefined;
|
|
64
|
-
this.isTablet = undefined;
|
|
65
|
-
this.titleLogoVariation = undefined;
|
|
66
|
-
this.afAriaLabel = undefined;
|
|
67
|
-
this.afLogoBreakpoint = undefined;
|
|
68
|
-
}
|
|
69
|
-
setLogoVariation(width) {
|
|
70
|
-
if (this.isMobile)
|
|
71
|
-
return TitleLogoVariation.MOBILE;
|
|
72
|
-
const isNarrow = this.afLogoBreakpoint
|
|
73
|
-
? width < this.afLogoBreakpoint
|
|
74
|
-
: this.isTablet;
|
|
75
|
-
if (isNarrow) {
|
|
76
|
-
return this.hasTwoRowLogoName
|
|
77
|
-
? TitleLogoVariation.TWO_ROWS
|
|
78
|
-
: TitleLogoVariation.ONE_ROW;
|
|
79
|
-
}
|
|
80
|
-
return this.hasOneRowLogoName
|
|
81
|
-
? TitleLogoVariation.ONE_ROW
|
|
82
|
-
: TitleLogoVariation.TWO_ROWS;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Find out if we have one or both of the possible logo variations
|
|
86
|
-
* Throw an error if we have none
|
|
87
|
-
*/
|
|
88
|
-
componentWillLoad() {
|
|
89
|
-
this.hasOneRowLogoName = !!this.hostElement.querySelector('[slot="logo-one-row"]');
|
|
90
|
-
this.hasTwoRowLogoName = !!this.hostElement.querySelector('[slot="logo-two-rows"]');
|
|
91
|
-
if (!this.hasOneRowLogoName && !this.hasTwoRowLogoName) {
|
|
92
|
-
throw new Error('Du behöver ange minst en variant av logo-text');
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* We need a custom resize listener here, since we're
|
|
97
|
-
* not only relying on breakpoints
|
|
98
|
-
*/
|
|
99
|
-
componentDidLoad() {
|
|
100
|
-
if (window) {
|
|
101
|
-
this.handleWindowResize();
|
|
102
|
-
window.addEventListener('resize', this.handleWindowResize, { passive: true });
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Let's clean up as well
|
|
107
|
-
*/
|
|
108
|
-
disconnectedCallback() {
|
|
109
|
-
if (window) {
|
|
110
|
-
window.removeEventListener('resize', this.handleWindowResize);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
handleBreakpointObserver(e) {
|
|
114
|
-
this.isMobile = e.detail.value === UtilBreakpointObserverBreakpoints.SMALL;
|
|
115
|
-
this.isTablet = e.detail.value === UtilBreakpointObserverBreakpoints.MEDIUM;
|
|
116
|
-
}
|
|
117
|
-
get cssModifiers() {
|
|
118
|
-
return {
|
|
119
|
-
'digi-title-logo--mobile': this.titleLogoVariation === TitleLogoVariation.MOBILE,
|
|
120
|
-
'digi-title-logo--one-row': this.titleLogoVariation === TitleLogoVariation.ONE_ROW,
|
|
121
|
-
'digi-title-logo--two-rows': this.titleLogoVariation === TitleLogoVariation.TWO_ROWS
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
render() {
|
|
125
|
-
return (h("div", { key: 'f2d92667466100ff385d2918a8396c95d32cb22c', class: Object.assign({ 'digi-title-logo': true }, this.cssModifiers) }, h("digi-util-breakpoint-observer", { key: 'd0a0692c5386725c0ce2fca5c4a6913b8710fa1c', onAfOnChange: (e) => this.handleBreakpointObserver(e) }), h("div", { key: 'a0a36fd875d4fc2d6874f53ae49ac2e9f17e273f', class: "digi-title-logo-symbol" }, h("svg", { key: '489404f99e4b411bd66cc274b60a7fc83bffa126', height: "44px", width: "44px", viewBox: "0 0 44 44", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img" }, h("path", { key: '78e7bcc761c014a83be23fa3845b1564e1f89bcc', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M15.0076 6.97426V0C31.0194 0 44 12.9056 44 28.8261C44 34.3951 42.4073 39.5923 39.6561 44L33.8019 40.1595C35.822 36.8551 36.9855 32.9758 36.9855 28.8261C36.9855 16.7575 27.1458 6.97426 15.0076 6.97426ZM6.99059 28.8257C6.99059 33.2284 10.5795 36.7972 15.0076 36.7972C19.4356 36.7972 23.0245 33.2284 23.0245 28.8257C23.0245 24.4235 19.4356 20.8548 15.0076 20.8548C10.5795 20.8548 6.99059 24.4235 6.99059 28.8257ZM0 28.8257C0 20.5853 6.71916 13.9047 15.0076 13.9047C23.296 13.9047 30.0151 20.5853 30.0151 28.8257C30.0151 37.0666 23.296 43.7472 15.0076 43.7472C6.71916 43.7472 0 37.0666 0 28.8257Z", class: "main-symbol" }))), h("div", { key: '46a1b7b8fd35718591d29093da200d1f79fab483', class: "digi-title-logo-name-wrapper" }, h("slot", { key: 'ec09ce755fcb0bf00045c947199c7c9cda9de689', name: "logo-one-row" }), h("slot", { key: '27eca2b9520cee673f0042d729c4d20a31406a72', name: "logo-two-rows" }))));
|
|
126
|
-
}
|
|
127
|
-
get hostElement() { return getElement(this); }
|
|
128
|
-
};
|
|
129
|
-
TitleLogo.style = DigiTitleLogoStyle0;
|
|
130
|
-
|
|
131
|
-
export { TitleLogo as digi_title_logo };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-148a7577.js';
|
|
2
|
-
import { U as UtilBreakpointObserverBreakpoints } from './util-breakpoint-observer-breakpoints.enum-6d004731.js';
|
|
3
|
-
|
|
4
|
-
const utilBreakpointObserverCss = ".sc-digi-util-breakpoint-observer-h .digi-util-breakpoint-observer.sc-digi-util-breakpoint-observer{--SMALL:small;--MEDIUM:medium;--LARGE:large;--XLARGE:xlarge}.sc-digi-util-breakpoint-observer-h .digi-util-breakpoint-observer__observer.sc-digi-util-breakpoint-observer{--digi--util-breakpoint-observer--breakpoint:var(--SMALL);border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;pointer-events:none;transition:transform 0.01s;transform:rotate(0deg)}@media (min-width: 48rem){.sc-digi-util-breakpoint-observer-h .digi-util-breakpoint-observer__observer.sc-digi-util-breakpoint-observer{--digi--util-breakpoint-observer--breakpoint:var(--MEDIUM);transform:rotate(10deg)}}@media (min-width: 61.9375rem){.sc-digi-util-breakpoint-observer-h .digi-util-breakpoint-observer__observer.sc-digi-util-breakpoint-observer{--digi--util-breakpoint-observer--breakpoint:var(--LARGE);transform:rotate(20deg)}}@media (min-width: 75rem){.sc-digi-util-breakpoint-observer-h .digi-util-breakpoint-observer__observer.sc-digi-util-breakpoint-observer{--digi--util-breakpoint-observer--breakpoint:var(--XLARGE);transform:rotate(30deg)}}";
|
|
5
|
-
const DigiUtilBreakpointObserverStyle0 = utilBreakpointObserverCss;
|
|
6
|
-
|
|
7
|
-
const UtilBreakpointObserver = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.afOnChange = createEvent(this, "afOnChange", 7);
|
|
11
|
-
this.afOnSmall = createEvent(this, "afOnSmall", 7);
|
|
12
|
-
this.afOnMedium = createEvent(this, "afOnMedium", 7);
|
|
13
|
-
this.afOnLarge = createEvent(this, "afOnLarge", 7);
|
|
14
|
-
this.afOnXLarge = createEvent(this, "afOnXLarge", 7);
|
|
15
|
-
}
|
|
16
|
-
componentDidLoad() {
|
|
17
|
-
this.handleBreakpoint();
|
|
18
|
-
}
|
|
19
|
-
handleBreakpoint(e) {
|
|
20
|
-
const observerCSSVariables = window.getComputedStyle(this._observer);
|
|
21
|
-
const value = observerCSSVariables.getPropertyValue('--digi--util-breakpoint-observer--breakpoint');
|
|
22
|
-
this.afOnChange.emit({ value, e });
|
|
23
|
-
switch (value) {
|
|
24
|
-
case UtilBreakpointObserverBreakpoints.SMALL:
|
|
25
|
-
this.afOnSmall.emit({ value, e });
|
|
26
|
-
break;
|
|
27
|
-
case UtilBreakpointObserverBreakpoints.MEDIUM:
|
|
28
|
-
this.afOnMedium.emit({ value, e });
|
|
29
|
-
break;
|
|
30
|
-
case UtilBreakpointObserverBreakpoints.LARGE:
|
|
31
|
-
this.afOnLarge.emit({ value, e });
|
|
32
|
-
break;
|
|
33
|
-
case UtilBreakpointObserverBreakpoints.XLARGE:
|
|
34
|
-
this.afOnXLarge.emit({ value, e });
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
return (h(Host, { key: '7b728b39d3e64e3a144adbe5ba87aa0f88660225' }, h("div", { key: '28597939c55c61b83bda94e62de142f11ec482ad', class: "digi-util-breakpoint-observer" }, h("div", { key: 'de1f70aeefeaeceaf797695f1d2877df7fa80a1f', ref: (el) => (this._observer = el), onTransitionEnd: (e) => this.handleBreakpoint(e), class: "digi-util-breakpoint-observer__observer" }), h("slot", { key: '5ac72c8a1b44611705374e4150c6624baf49a489' }))));
|
|
39
|
-
}
|
|
40
|
-
get hostElement() { return getElement(this); }
|
|
41
|
-
};
|
|
42
|
-
UtilBreakpointObserver.style = DigiUtilBreakpointObserverStyle0;
|
|
43
|
-
|
|
44
|
-
export { UtilBreakpointObserver as digi_util_breakpoint_observer };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-148a7577.js';
|
|
2
|
-
import { K as KEY_CODE, k as keyboardHandler } from './keyboardHandler.util-383c0054.js';
|
|
3
|
-
|
|
4
|
-
const UtilKeydownHandler = class {
|
|
5
|
-
constructor(hostRef) {
|
|
6
|
-
registerInstance(this, hostRef);
|
|
7
|
-
this.afOnEsc = createEvent(this, "afOnEsc", 7);
|
|
8
|
-
this.afOnEnter = createEvent(this, "afOnEnter", 7);
|
|
9
|
-
this.afOnTab = createEvent(this, "afOnTab", 7);
|
|
10
|
-
this.afOnSpace = createEvent(this, "afOnSpace", 7);
|
|
11
|
-
this.afOnShiftTab = createEvent(this, "afOnShiftTab", 7);
|
|
12
|
-
this.afOnUp = createEvent(this, "afOnUp", 7);
|
|
13
|
-
this.afOnDown = createEvent(this, "afOnDown", 7);
|
|
14
|
-
this.afOnLeft = createEvent(this, "afOnLeft", 7);
|
|
15
|
-
this.afOnRight = createEvent(this, "afOnRight", 7);
|
|
16
|
-
this.afOnHome = createEvent(this, "afOnHome", 7);
|
|
17
|
-
this.afOnEnd = createEvent(this, "afOnEnd", 7);
|
|
18
|
-
this.afOnKeyDown = createEvent(this, "afOnKeyDown", 7);
|
|
19
|
-
}
|
|
20
|
-
keydownHandler(e) {
|
|
21
|
-
const key = keyboardHandler(e);
|
|
22
|
-
switch (key) {
|
|
23
|
-
case KEY_CODE.SHIFT_TAB:
|
|
24
|
-
this.afOnShiftTab.emit(e);
|
|
25
|
-
break;
|
|
26
|
-
case KEY_CODE.DOWN_ARROW:
|
|
27
|
-
this.afOnDown.emit(e);
|
|
28
|
-
this.afOnKeyDown.emit(e);
|
|
29
|
-
break;
|
|
30
|
-
case KEY_CODE.UP_ARROW:
|
|
31
|
-
this.afOnUp.emit(e);
|
|
32
|
-
this.afOnKeyDown.emit(e);
|
|
33
|
-
break;
|
|
34
|
-
case KEY_CODE.LEFT_ARROW:
|
|
35
|
-
this.afOnLeft.emit(e);
|
|
36
|
-
this.afOnKeyDown.emit(e);
|
|
37
|
-
break;
|
|
38
|
-
case KEY_CODE.RIGHT_ARROW:
|
|
39
|
-
this.afOnRight.emit(e);
|
|
40
|
-
this.afOnKeyDown.emit(e);
|
|
41
|
-
break;
|
|
42
|
-
case KEY_CODE.ENTER:
|
|
43
|
-
this.afOnEnter.emit(e);
|
|
44
|
-
this.afOnKeyDown.emit(e);
|
|
45
|
-
break;
|
|
46
|
-
case KEY_CODE.ESCAPE:
|
|
47
|
-
this.afOnEsc.emit(e);
|
|
48
|
-
this.afOnKeyDown.emit(e);
|
|
49
|
-
break;
|
|
50
|
-
case KEY_CODE.TAB:
|
|
51
|
-
this.afOnTab.emit(e);
|
|
52
|
-
this.afOnKeyDown.emit(e);
|
|
53
|
-
break;
|
|
54
|
-
case KEY_CODE.SPACE:
|
|
55
|
-
this.afOnSpace.emit(e);
|
|
56
|
-
this.afOnKeyDown.emit(e);
|
|
57
|
-
break;
|
|
58
|
-
case KEY_CODE.HOME:
|
|
59
|
-
this.afOnHome.emit(e);
|
|
60
|
-
this.afOnKeyDown.emit(e);
|
|
61
|
-
break;
|
|
62
|
-
case KEY_CODE.END:
|
|
63
|
-
this.afOnEnd.emit(e);
|
|
64
|
-
this.afOnKeyDown.emit(e);
|
|
65
|
-
break;
|
|
66
|
-
case KEY_CODE.ANY:
|
|
67
|
-
this.afOnKeyDown.emit(e);
|
|
68
|
-
break;
|
|
69
|
-
default:
|
|
70
|
-
this.afOnKeyDown.emit(e);
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
render() {
|
|
75
|
-
return h("slot", { key: '41770384646aa3319a1c531bb6f9f0199ec049ac' });
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export { UtilKeydownHandler as digi_util_keydown_handler };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
var LayoutBlockContainer;
|
|
2
|
-
(function (LayoutBlockContainer) {
|
|
3
|
-
LayoutBlockContainer["STATIC"] = "static";
|
|
4
|
-
LayoutBlockContainer["FLUID"] = "fluid";
|
|
5
|
-
LayoutBlockContainer["NONE"] = "none";
|
|
6
|
-
})(LayoutBlockContainer || (LayoutBlockContainer = {}));
|
|
7
|
-
|
|
8
|
-
var LayoutContainerVariation;
|
|
9
|
-
(function (LayoutContainerVariation) {
|
|
10
|
-
LayoutContainerVariation["STATIC"] = "static";
|
|
11
|
-
LayoutContainerVariation["FLUID"] = "fluid";
|
|
12
|
-
LayoutContainerVariation["NONE"] = "none";
|
|
13
|
-
})(LayoutContainerVariation || (LayoutContainerVariation = {}));
|
|
14
|
-
|
|
15
|
-
var LayoutContainerMaxWidth;
|
|
16
|
-
(function (LayoutContainerMaxWidth) {
|
|
17
|
-
LayoutContainerMaxWidth["WIDTH_1200"] = "1200";
|
|
18
|
-
LayoutContainerMaxWidth["WIDTH_1400"] = "1400";
|
|
19
|
-
})(LayoutContainerMaxWidth || (LayoutContainerMaxWidth = {}));
|
|
20
|
-
|
|
21
|
-
export { LayoutBlockContainer as L, LayoutContainerVariation as a, LayoutContainerMaxWidth as b };
|