@designsystem-se/af 36.0.2 → 36.0.3-beta.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/components/digi-badge-notification.d.ts +1 -1
- package/components/digi-badge-status.d.ts +1 -1
- package/components/digi-bar-chart.d.ts +1 -1
- package/components/digi-bar-chart.js +1 -1
- package/components/digi-button.d.ts +1 -1
- package/components/digi-button.js +1 -1
- package/components/digi-calendar-datepicker.d.ts +1 -1
- package/components/digi-calendar-datepicker.js +4 -4
- package/components/digi-calendar-week-view.d.ts +1 -1
- package/components/digi-calendar-week-view.js +1 -1
- package/components/digi-calendar.d.ts +1 -1
- package/components/digi-calendar.js +1 -1
- package/components/digi-chart-line.d.ts +1 -1
- package/components/digi-chart-line.js +1 -1
- package/components/digi-code-block.d.ts +1 -1
- package/components/digi-code-block.js +1 -1
- package/components/digi-code-example.d.ts +1 -1
- package/components/digi-code-example.js +3 -3
- package/components/digi-code.d.ts +1 -1
- package/components/digi-context-menu.d.ts +1 -1
- package/components/digi-context-menu.js +1 -1
- package/components/digi-dialog.d.ts +1 -1
- package/components/digi-dialog.js +3 -3
- package/components/digi-expandable-accordion.d.ts +1 -1
- package/components/digi-expandable-faq-item.d.ts +1 -1
- package/components/digi-expandable-faq-item.js +1 -1
- package/components/digi-expandable-faq.d.ts +1 -1
- package/components/digi-footer-card.d.ts +1 -1
- package/components/digi-footer.d.ts +1 -1
- package/components/digi-footer.js +1 -1
- package/components/digi-form-category-filter.d.ts +1 -1
- package/components/digi-form-category-filter.js +1 -1
- package/components/digi-form-checkbox.d.ts +1 -1
- package/components/digi-form-checkbox.js +1 -1
- package/components/digi-form-error-list.d.ts +1 -1
- package/components/digi-form-error-list.js +3 -3
- package/components/digi-form-fieldset.d.ts +1 -1
- package/components/digi-form-file-upload.d.ts +1 -1
- package/components/digi-form-file-upload.js +1 -1
- package/components/digi-form-filter.d.ts +1 -1
- package/components/digi-form-filter.js +2 -2
- package/components/digi-form-input-search.d.ts +1 -1
- package/components/digi-form-input-search.js +1 -1
- package/components/digi-form-input.d.ts +1 -1
- package/components/digi-form-label.d.ts +1 -1
- package/components/digi-form-radiobutton.d.ts +1 -1
- package/components/digi-form-radiogroup.d.ts +1 -1
- package/components/digi-form-receipt.d.ts +1 -1
- package/components/digi-form-receipt.js +1 -1
- package/components/digi-form-select-filter.d.ts +1 -1
- package/components/digi-form-select-filter.js +3 -3
- package/components/digi-form-select.d.ts +1 -1
- package/components/digi-form-select.js +1 -1
- package/components/digi-form-textarea.d.ts +1 -1
- package/components/digi-form-validation-message.d.ts +1 -1
- package/components/digi-header-avatar.d.ts +1 -1
- package/components/digi-header-avatar.js +1 -1
- package/components/digi-header-navigation-item.d.ts +1 -1
- package/components/digi-header-navigation.d.ts +1 -1
- package/components/digi-header-navigation.js +2 -2
- package/components/digi-header-notification.d.ts +1 -1
- package/components/digi-header.d.ts +1 -1
- package/components/digi-header.js +3 -3
- package/components/digi-icon-accessibility-deaf.d.ts +1 -1
- package/components/digi-icon-accessibility-universal.d.ts +1 -1
- package/components/digi-icon-apple.d.ts +1 -1
- package/components/digi-icon-archive-outline.d.ts +1 -1
- package/components/digi-icon-archive.d.ts +1 -1
- package/components/digi-icon-arrow-back.d.ts +1 -1
- package/components/digi-icon-arrow-down.d.ts +1 -1
- package/components/digi-icon-arrow-left.d.ts +1 -1
- package/components/digi-icon-arrow-right.d.ts +1 -1
- package/components/digi-icon-arrow-sign-in.d.ts +1 -1
- package/components/digi-icon-arrow-sign-out.d.ts +1 -1
- package/components/digi-icon-arrow-up.d.ts +1 -1
- package/components/digi-icon-at.d.ts +1 -1
- package/components/digi-icon-bars.d.ts +1 -1
- package/components/digi-icon-bell-filled.d.ts +1 -1
- package/components/digi-icon-bell.d.ts +1 -1
- package/components/digi-icon-book.d.ts +1 -1
- package/components/digi-icon-bookmark-outline.d.ts +1 -1
- package/components/digi-icon-bookmark-solid.d.ts +1 -1
- package/components/digi-icon-bubble-ellipsis.d.ts +1 -1
- package/components/digi-icon-bubble.d.ts +1 -1
- package/components/digi-icon-building-outline.d.ts +1 -1
- package/components/digi-icon-building-solid.d.ts +1 -1
- package/components/digi-icon-bullseye.d.ts +1 -1
- package/components/digi-icon-calculator-solid.d.ts +1 -1
- package/components/digi-icon-calendar-alt-alert.d.ts +1 -1
- package/components/digi-icon-calendar-alt.d.ts +1 -1
- package/components/digi-icon-calendar.d.ts +1 -1
- package/components/digi-icon-caret-circle-right.d.ts +1 -1
- package/components/digi-icon-caret-down.d.ts +1 -1
- package/components/digi-icon-caret-left.d.ts +1 -1
- package/components/digi-icon-caret-right.d.ts +1 -1
- package/components/digi-icon-caret-up.d.ts +1 -1
- package/components/digi-icon-chart.d.ts +1 -1
- package/components/digi-icon-chat.d.ts +1 -1
- package/components/digi-icon-check-circle-reg-alt.d.ts +1 -1
- package/components/digi-icon-check-circle-solid.d.ts +1 -1
- package/components/digi-icon-check.d.ts +1 -1
- package/components/digi-icon-checklist.d.ts +1 -1
- package/components/digi-icon-chevron-down.d.ts +1 -1
- package/components/digi-icon-chevron-left.d.ts +1 -1
- package/components/digi-icon-chevron-right.d.ts +1 -1
- package/components/digi-icon-chevron-up.d.ts +1 -1
- package/components/digi-icon-clock.d.ts +1 -1
- package/components/digi-icon-communication-play-solid.d.ts +1 -1
- package/components/digi-icon-compress-alt.d.ts +1 -1
- package/components/digi-icon-comunication-case.d.ts +1 -1
- package/components/digi-icon-comunication-flag.d.ts +1 -1
- package/components/digi-icon-comunication-graduate.d.ts +1 -1
- package/components/digi-icon-comunication-play.d.ts +1 -1
- package/components/digi-icon-cooperation.d.ts +1 -1
- package/components/digi-icon-copy.d.ts +1 -1
- package/components/digi-icon-danger-outline.d.ts +1 -1
- package/components/digi-icon-download.d.ts +1 -1
- package/components/digi-icon-dxa.d.ts +1 -1
- package/components/digi-icon-edit.d.ts +1 -1
- package/components/digi-icon-ellipsis.d.ts +1 -1
- package/components/digi-icon-envelope-filled.d.ts +1 -1
- package/components/digi-icon-envelope.d.ts +1 -1
- package/components/digi-icon-exclamation-circle-filled.d.ts +1 -1
- package/components/digi-icon-exclamation-triangle-filled.d.ts +1 -1
- package/components/digi-icon-exclamation-triangle-warning.d.ts +1 -1
- package/components/digi-icon-exclamation-triangle.d.ts +1 -1
- package/components/digi-icon-expand-alt.d.ts +1 -1
- package/components/digi-icon-external-link-alt.d.ts +1 -1
- package/components/digi-icon-eye-slash.d.ts +1 -1
- package/components/digi-icon-eye.d.ts +1 -1
- package/components/digi-icon-facebook-square.d.ts +1 -1
- package/components/digi-icon-file-add.d.ts +1 -1
- package/components/digi-icon-file-document.d.ts +1 -1
- package/components/digi-icon-file-excel.d.ts +1 -1
- package/components/digi-icon-file-export.d.ts +1 -1
- package/components/digi-icon-file-governing.d.ts +1 -1
- package/components/digi-icon-file-pdf.d.ts +1 -1
- package/components/digi-icon-file-powerpoint.d.ts +1 -1
- package/components/digi-icon-file-remove.d.ts +1 -1
- package/components/digi-icon-file-word.d.ts +1 -1
- package/components/digi-icon-film.d.ts +1 -1
- package/components/digi-icon-filter.d.ts +1 -1
- package/components/digi-icon-folder-add.d.ts +1 -1
- package/components/digi-icon-folder-directory.d.ts +1 -1
- package/components/digi-icon-folder-open.d.ts +1 -1
- package/components/digi-icon-folder.d.ts +1 -1
- package/components/digi-icon-globe-filled.d.ts +1 -1
- package/components/digi-icon-globe.d.ts +1 -1
- package/components/digi-icon-headphones.d.ts +1 -1
- package/components/digi-icon-heart-solid.d.ts +1 -1
- package/components/digi-icon-heart.d.ts +1 -1
- package/components/digi-icon-history.d.ts +1 -1
- package/components/digi-icon-home.d.ts +1 -1
- package/components/digi-icon-image.d.ts +1 -1
- package/components/digi-icon-info-circle-solid.d.ts +1 -1
- package/components/digi-icon-input-select-marker.d.ts +1 -1
- package/components/digi-icon-instagram.d.ts +1 -1
- package/components/digi-icon-job-suggestion.d.ts +1 -1
- package/components/digi-icon-language-outline.d.ts +1 -1
- package/components/digi-icon-language.d.ts +1 -1
- package/components/digi-icon-laptop-phone.d.ts +1 -1
- package/components/digi-icon-lattlast.d.ts +1 -1
- package/components/digi-icon-licence-bus.d.ts +1 -1
- package/components/digi-icon-licence-car.d.ts +1 -1
- package/components/digi-icon-licence-motorcycle.d.ts +1 -1
- package/components/digi-icon-licence-truck.d.ts +1 -1
- package/components/digi-icon-lightbulb.d.ts +1 -1
- package/components/digi-icon-linkedin-in.d.ts +1 -1
- package/components/digi-icon-list-ul.d.ts +1 -1
- package/components/digi-icon-lock.d.ts +1 -1
- package/components/digi-icon-marker-filled.d.ts +1 -1
- package/components/digi-icon-marker.d.ts +1 -1
- package/components/digi-icon-media-course.d.ts +1 -1
- package/components/digi-icon-media-podcast.d.ts +1 -1
- package/components/digi-icon-microphone-off.d.ts +1 -1
- package/components/digi-icon-microphone.d.ts +1 -1
- package/components/digi-icon-minus.d.ts +1 -1
- package/components/digi-icon-move.d.ts +1 -1
- package/components/digi-icon-news.d.ts +1 -1
- package/components/digi-icon-notification-error.d.ts +1 -1
- package/components/digi-icon-notification-info.d.ts +1 -1
- package/components/digi-icon-notification-succes.d.ts +1 -1
- package/components/digi-icon-notification-warning.d.ts +1 -1
- package/components/digi-icon-online-computervideo.d.ts +1 -1
- package/components/digi-icon-online-interview.d.ts +1 -1
- package/components/digi-icon-online-meeting.d.ts +1 -1
- package/components/digi-icon-online-task.d.ts +1 -1
- package/components/digi-icon-online-video.d.ts +1 -1
- package/components/digi-icon-open-source.d.ts +1 -1
- package/components/digi-icon-palette.d.ts +1 -1
- package/components/digi-icon-paperclip.d.ts +1 -1
- package/components/digi-icon-paste.d.ts +1 -1
- package/components/digi-icon-pen.d.ts +1 -1
- package/components/digi-icon-phone-hangup.d.ts +1 -1
- package/components/digi-icon-phone.d.ts +1 -1
- package/components/digi-icon-plus.d.ts +1 -1
- package/components/digi-icon-pod.d.ts +1 -1
- package/components/digi-icon-print.d.ts +1 -1
- package/components/digi-icon-read.d.ts +1 -1
- package/components/digi-icon-redo.d.ts +1 -1
- package/components/digi-icon-scale.d.ts +1 -1
- package/components/digi-icon-screensharing-off.d.ts +1 -1
- package/components/digi-icon-screensharing.d.ts +1 -1
- package/components/digi-icon-search.d.ts +1 -1
- package/components/digi-icon-send-outline.d.ts +1 -1
- package/components/digi-icon-send-solid.d.ts +1 -1
- package/components/digi-icon-settings.d.ts +1 -1
- package/components/digi-icon-share-alt.d.ts +1 -1
- package/components/digi-icon-share-chain.d.ts +1 -1
- package/components/digi-icon-sign.d.ts +1 -1
- package/components/digi-icon-sliders-h.d.ts +1 -1
- package/components/digi-icon-sokkandidat.d.ts +1 -1
- package/components/digi-icon-sort-down.d.ts +1 -1
- package/components/digi-icon-sort-up.d.ts +1 -1
- package/components/digi-icon-sort.d.ts +1 -1
- package/components/digi-icon-spinner.d.ts +1 -1
- package/components/digi-icon-star-reg.d.ts +1 -1
- package/components/digi-icon-star.d.ts +1 -1
- package/components/digi-icon-suitcase-outline.d.ts +1 -1
- package/components/digi-icon-suitcase-solid.d.ts +1 -1
- package/components/digi-icon-system-assistance.d.ts +1 -1
- package/components/digi-icon-table-column.d.ts +1 -1
- package/components/digi-icon-table-row.d.ts +1 -1
- package/components/digi-icon-table.d.ts +1 -1
- package/components/digi-icon-task-done.d.ts +1 -1
- package/components/digi-icon-toggle-off.d.ts +1 -1
- package/components/digi-icon-toggle-on.d.ts +1 -1
- package/components/digi-icon-trash.d.ts +1 -1
- package/components/digi-icon-twitter.d.ts +1 -1
- package/components/digi-icon-tyck-till.d.ts +1 -1
- package/components/digi-icon-unlock.d.ts +1 -1
- package/components/digi-icon-update.d.ts +1 -1
- package/components/digi-icon-upload.d.ts +1 -1
- package/components/digi-icon-user-add.d.ts +1 -1
- package/components/digi-icon-user-alt.d.ts +1 -1
- package/components/digi-icon-user-edit.d.ts +1 -1
- package/components/digi-icon-users-solid.d.ts +1 -1
- package/components/digi-icon-validation-error.d.ts +1 -1
- package/components/digi-icon-validation-success.d.ts +1 -1
- package/components/digi-icon-validation-warning.d.ts +1 -1
- package/components/digi-icon-videocamera-off.d.ts +1 -1
- package/components/digi-icon-videocamera.d.ts +1 -1
- package/components/digi-icon-volume.d.ts +1 -1
- package/components/digi-icon-web-tv.d.ts +1 -1
- package/components/digi-icon-webinar.d.ts +1 -1
- package/components/digi-icon-wifi-signal0.d.ts +1 -1
- package/components/digi-icon-wifi-signal1.d.ts +1 -1
- package/components/digi-icon-wifi-signal2.d.ts +1 -1
- package/components/digi-icon-wifi-signal3.d.ts +1 -1
- package/components/digi-icon-window.d.ts +1 -1
- package/components/digi-icon-x-button-outline.d.ts +1 -1
- package/components/digi-icon-x-button.d.ts +1 -1
- package/components/digi-icon-x.d.ts +1 -1
- package/components/digi-icon-youtube.d.ts +1 -1
- package/components/digi-info-card-multi-container.d.ts +1 -1
- package/components/digi-info-card-multi.d.ts +1 -1
- package/components/digi-info-card.d.ts +1 -1
- package/components/digi-info-card.js +2 -2
- package/components/digi-layout-block.d.ts +1 -1
- package/components/digi-layout-columns.d.ts +1 -1
- package/components/digi-layout-container.d.ts +1 -1
- package/components/digi-link-button.d.ts +1 -1
- package/components/digi-link-external.d.ts +1 -1
- package/components/digi-link-internal.d.ts +1 -1
- package/components/digi-link-internal.js +1 -1
- package/components/digi-link.d.ts +1 -1
- package/components/digi-list.d.ts +1 -1
- package/components/digi-loader-skeleton.d.ts +1 -1
- package/components/digi-loader-spinner.d.ts +1 -1
- package/components/digi-logo.d.ts +1 -1
- package/components/digi-logo.js +1 -1
- package/components/digi-media-figure.d.ts +1 -1
- package/components/digi-media-image.d.ts +1 -1
- package/components/digi-navigation-breadcrumbs.d.ts +1 -1
- package/components/digi-navigation-pagination.d.ts +1 -1
- package/components/digi-navigation-pagination.js +2 -2
- package/components/digi-navigation-sidebar-button.d.ts +1 -1
- package/components/digi-navigation-sidebar-button.js +1 -1
- package/components/digi-navigation-sidebar.d.ts +1 -1
- package/components/digi-navigation-sidebar.js +1 -1
- package/components/digi-navigation-vertical-menu-item.d.ts +1 -1
- package/components/digi-navigation-vertical-menu-item.js +1 -1
- package/components/digi-navigation-vertical-menu.d.ts +1 -1
- package/components/digi-notification-alert.d.ts +1 -1
- package/components/digi-notification-alert.js +1 -1
- package/components/digi-notification-error-page.d.ts +1 -1
- package/components/digi-notification-error-page.js +1 -1
- package/components/digi-progress-circle.d.ts +1 -1
- package/components/digi-progress-indicator.d.ts +1 -1
- package/components/digi-progress-indicator.js +1 -1
- package/components/digi-progress-list-item.d.ts +1 -1
- package/components/digi-progress-list.d.ts +1 -1
- package/components/digi-progressbar.d.ts +1 -1
- package/components/digi-quote.d.ts +1 -1
- package/components/digi-quote.js +1 -1
- package/components/digi-table.d.ts +1 -1
- package/components/digi-tablist-panel.d.ts +1 -1
- package/components/digi-tablist.d.ts +1 -1
- package/components/digi-tag-media.d.ts +1 -1
- package/components/digi-tag.d.ts +1 -1
- package/components/digi-tag.js +1 -1
- package/components/digi-title-logo.d.ts +1 -1
- package/components/digi-title-logo.js +1 -1
- package/components/digi-tools-feedback-banner.d.ts +1 -1
- package/components/digi-tools-feedback-rating.d.ts +1 -1
- package/components/digi-tools-feedback.d.ts +1 -1
- package/components/digi-tools-feedback.js +3 -3
- package/components/digi-tools-theme-provider.d.ts +1 -1
- package/components/digi-tools-theme-provider.js +18 -5
- package/components/digi-typography-heading-jumbo.d.ts +1 -1
- package/components/digi-typography-meta.d.ts +1 -1
- package/components/digi-typography-preamble.d.ts +1 -1
- package/components/digi-typography-time.d.ts +1 -1
- package/components/digi-typography.d.ts +1 -1
- package/components/digi-util-breakpoint-observer.d.ts +1 -1
- package/components/digi-util-detect-click-outside.d.ts +1 -1
- package/components/digi-util-detect-focus-outside.d.ts +1 -1
- package/components/digi-util-intersection-observer.d.ts +1 -1
- package/components/digi-util-keydown-handler.d.ts +1 -1
- package/components/digi-util-keyup-handler.d.ts +1 -1
- package/components/digi-util-mutation-observer.d.ts +1 -1
- package/components/digi-util-resize-observer.d.ts +1 -1
- package/components/index.d.ts +284 -284
- package/components/index.js +1 -1
- package/components/{p-9466c4e0.js → p-117e7b18.js} +1 -1
- package/components/{p-44f143ea.js → p-36dad6f1.js} +2 -2
- package/components/{p-cd0370eb.js → p-3fad7281.js} +2 -2
- package/components/p-606ba731.js +165 -0
- package/components/p-8fee3d97.js +163 -0
- package/components/{p-2ac136a0.js → p-a79e144f.js} +1 -1
- package/components/p-b8c862c0.js +66 -0
- package/components/{p-f53eb01a.js → p-d2a95a3e.js} +1 -1
- package/components/p-d7ef9cb1.js +13 -0
- package/components/{p-62a0008b.js → p-e756fda7.js} +2 -2
- package/custom-elements.json +4 -0
- 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_37.cjs.entry.js +5254 -0
- package/dist/cjs/digi-calendar-week-view.cjs.entry.js +50 -51
- package/dist/cjs/digi-code-block.cjs.entry.js +89 -0
- package/dist/cjs/digi-code-example.cjs.entry.js +4 -5
- package/dist/cjs/digi-dialog.cjs.entry.js +6 -20
- package/dist/cjs/digi-footer.cjs.entry.js +4 -18
- package/dist/cjs/digi-form-error-list.cjs.entry.js +4 -18
- package/dist/cjs/digi-form-file-upload.cjs.entry.js +10 -11
- package/dist/cjs/digi-form-input-search.cjs.entry.js +6 -8
- package/dist/cjs/digi-form-receipt.cjs.entry.js +4 -18
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +6 -20
- package/dist/cjs/digi-header-avatar.cjs.entry.js +1 -1
- package/dist/cjs/digi-header-navigation.cjs.entry.js +4 -18
- package/dist/cjs/digi-header.cjs.entry.js +5 -19
- package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
- package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +4 -18
- package/dist/cjs/digi-notification-alert.cjs.entry.js +4 -18
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +4 -18
- package/dist/cjs/digi-quote.cjs.entry.js +1 -1
- package/dist/cjs/digi-title-logo.cjs.entry.js +4 -18
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +7 -21
- package/dist/cjs/{form-input-type.enum-9c8ee12a.js → form-input-type.enum-1fb2180a.js} +14 -0
- package/dist/cjs/{form-file-upload-variation.enum-634cfae8.js → form-validation-message-variation.enum-c5ec3e2d.js} +7 -0
- package/dist/cjs/index-7a477838.js +4 -92
- package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
- package/dist/cjs/index.cjs.js +158 -166
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{typography-variation.enum-50512a4e.js → typography-variation.enum-e41bd69d.js} +158 -0
- package/dist/collection/components/_button/button/button.css +6 -6
- package/dist/collection/components/_calendar/calendar/calendar.css +5 -0
- package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +339 -102
- package/dist/collection/components/_code/code-example/code-example.css +6 -0
- package/dist/collection/components/_dialog/dialog/dialog.css +1 -1
- package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.css +2 -2
- package/dist/collection/components/_form/form-checkbox/form-checkbox.css +339 -102
- package/dist/collection/components/_form/form-file-upload/form-file-upload.css +4 -3
- package/dist/collection/components/_form/form-select/form-select.css +2 -2
- package/dist/collection/components/_form/form-select-filter/form-select-filter.css +1 -1
- package/dist/collection/components/_header/header-avatar/header-avatar.css +338 -101
- package/dist/collection/components/_info-card/info-card/info-card.css +2 -2
- package/dist/collection/components/_link/link-internal/link-internal.css +338 -101
- package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.css +3 -3
- package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +4 -3
- package/dist/collection/components/_quote/quote/quote.css +2 -2
- package/dist/collection/components/_tools/tools-feedback/tools-feedback.css +1 -1
- package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +105 -2
- package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +43 -2
- package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.js +5 -0
- package/dist/collection/design-tokens/components/_button.variables.scss +6 -6
- package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
- package/dist/collection/design-tokens/components/_calendar.variables.scss +1 -0
- package/dist/collection/design-tokens/components/_dialog.variables.scss +1 -1
- package/dist/collection/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
- package/dist/collection/design-tokens/components/_form-checkbox.variables.scss +1 -1
- package/dist/collection/design-tokens/components/_form-file-upload.variables.scss +2 -0
- package/dist/collection/design-tokens/components/_form-select-filter.variables.scss +1 -1
- package/dist/collection/design-tokens/components/_form-select.variables.scss +2 -2
- package/dist/collection/design-tokens/components/_info-card.variables.scss +2 -2
- package/dist/collection/design-tokens/components/_logo.variables.scss +19 -16
- package/dist/collection/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
- package/dist/collection/design-tokens/components/_quote.variables.scss +2 -2
- package/dist/collection/design-tokens/components/_tools-feedback.variables.scss +1 -1
- package/dist/collection/enums.js +1 -0
- package/dist/collection/styles/src/_alias.mixin.scss +270 -128
- package/dist/collection/styles/src/themes/_common.mixin.scss +7 -0
- package/dist/collection/styles/src/themes/_theme-af25.mixin.scss +139 -0
- package/dist/collection/styles/src/tokens-documentation/web-AF25.json +1406 -323
- package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +6 -6
- package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
- package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar.variables.scss +1 -0
- package/dist/digi-arbetsformedlingen/design-tokens/components/_dialog.variables.scss +1 -1
- package/dist/digi-arbetsformedlingen/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_form-checkbox.variables.scss +1 -1
- package/dist/digi-arbetsformedlingen/design-tokens/components/_form-file-upload.variables.scss +2 -0
- package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select-filter.variables.scss +1 -1
- package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select.variables.scss +2 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card.variables.scss +2 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
- package/dist/digi-arbetsformedlingen/design-tokens/components/_quote.variables.scss +2 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_tools-feedback.variables.scss +1 -1
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-014a7047.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-0f543000.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-13120f18.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-158037f8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-180663ef.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-1887ef59.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-1a619dd3.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-26e8ea70.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-3887bb40.js +1 -0
- package/dist/digi-arbetsformedlingen/p-53d9556b.js +1 -0
- package/dist/digi-arbetsformedlingen/p-54d9bd3e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-5ca38506.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-64b65586.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-67e32cc2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-6bf36a39.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-7a6a447c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-800b764b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-82225661.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-a105d9fe.js +1 -0
- package/dist/digi-arbetsformedlingen/p-a7372448.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-c64b4626.js +1 -0
- package/dist/digi-arbetsformedlingen/p-cd77a916.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e540b80f.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e5fee242.js +1 -0
- package/dist/digi-arbetsformedlingen/p-f358d8b2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-f601908d.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-fa44ce49.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +270 -128
- package/dist/digi-arbetsformedlingen/styles/src/themes/_common.mixin.scss +7 -0
- package/dist/digi-arbetsformedlingen/styles/src/themes/_theme-af25.mixin.scss +139 -0
- package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +1406 -323
- 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_37.entry.js +5214 -0
- package/dist/esm/digi-calendar-week-view.entry.js +1 -2
- package/dist/esm/digi-code-block.entry.js +85 -0
- package/dist/esm/digi-code-example.entry.js +2 -3
- package/dist/esm/digi-dialog.entry.js +5 -19
- package/dist/esm/digi-footer.entry.js +4 -18
- package/dist/esm/digi-form-error-list.entry.js +4 -18
- package/dist/esm/digi-form-file-upload.entry.js +2 -3
- package/dist/esm/digi-form-input-search.entry.js +1 -3
- package/dist/esm/digi-form-receipt.entry.js +4 -18
- package/dist/esm/digi-form-select-filter.entry.js +5 -19
- package/dist/esm/digi-header-avatar.entry.js +1 -1
- package/dist/esm/digi-header-navigation.entry.js +4 -18
- package/dist/esm/digi-header.entry.js +4 -18
- package/dist/esm/digi-info-card.entry.js +1 -1
- package/dist/esm/digi-link-internal.entry.js +1 -1
- package/dist/esm/digi-navigation-pagination.entry.js +4 -18
- package/dist/esm/digi-notification-alert.entry.js +4 -18
- package/dist/esm/digi-notification-error-page.entry.js +4 -18
- package/dist/esm/digi-quote.entry.js +1 -1
- package/dist/esm/digi-title-logo.entry.js +4 -18
- package/dist/esm/digi-tools-feedback.entry.js +5 -19
- package/dist/esm/{form-input-type.enum-3da3db27.js → form-input-type.enum-a6bba983.js} +15 -1
- package/dist/esm/{form-file-upload-variation.enum-9c49ec5e.js → form-validation-message-variation.enum-f7835fc5.js} +8 -1
- package/dist/esm/index-148a7577.js +4 -92
- package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
- package/dist/esm/index.js +4 -18
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{typography-variation.enum-8c3ff25c.js → typography-variation.enum-b07f76c9.js} +159 -1
- package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +9 -0
- package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.d.ts +4 -0
- package/dist/types/components.d.ts +12 -0
- package/dist/types/enums.d.ts +1 -0
- package/hydrate/index.js +40 -21
- package/hydrate/index.mjs +40 -21
- package/package.json +1 -1
- package/components/p-4bad4fb0.js +0 -7
- package/components/p-85633f84.js +0 -66
- package/components/p-e8fc33ed.js +0 -165
- package/components/p-f22b488a.js +0 -163
- 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-calendar-datepicker.cjs.entry.js +0 -2603
- package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -464
- package/dist/cjs/digi-code-block_3.cjs.entry.js +0 -232
- package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +0 -97
- package/dist/cjs/digi-form-category-filter.cjs.entry.js +0 -121
- package/dist/cjs/digi-form-checkbox.cjs.entry.js +0 -127
- package/dist/cjs/digi-form-input.cjs.entry.js +0 -194
- package/dist/cjs/digi-form-radiogroup.cjs.entry.js +0 -80
- package/dist/cjs/digi-icon-check.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +0 -53
- package/dist/cjs/digi-icon-copy.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -53
- package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
- package/dist/cjs/digi-link.cjs.entry.js +0 -75
- package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +0 -150
- package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +0 -177
- package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -137
- package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +0 -28
- package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +0 -38
- package/dist/cjs/digi-typography-preamble.cjs.entry.js +0 -20
- package/dist/cjs/digi-typography.cjs.entry.js +0 -26
- package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +0 -83
- package/dist/cjs/expandable-faq-item-variation.enum-89427195.js +0 -18
- package/dist/cjs/form-checkbox-variation.enum-d2ca879e.js +0 -19
- package/dist/cjs/form-input-search-variation.enum-c50239bc.js +0 -8
- package/dist/cjs/form-input-variation.enum-c750520c.js +0 -29
- package/dist/cjs/form-radiogroup-validation.enum-03a17d4d.js +0 -9
- package/dist/cjs/form-select-variation.enum-528c1bf0.js +0 -16
- package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +0 -8
- package/dist/cjs/index-cad91a90.js +0 -66
- package/dist/cjs/index-e8333bcc.js +0 -174
- package/dist/cjs/layout-container-max-width.enum-7e637f44.js +0 -21
- package/dist/cjs/navigation-vertical-menu-variation.enum-c237edd3.js +0 -13
- package/dist/cjs/progress-indicator-variation.enum-7cf8e0e4.js +0 -13
- package/dist/cjs/tools-theme-provider.brand.enum-bc855272.js +0 -7
- package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +0 -17
- 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-1f3345e9.js +0 -1
- package/dist/digi-arbetsformedlingen/p-1f956af8.js +0 -1
- package/dist/digi-arbetsformedlingen/p-24fe2189.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-33349e7e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-38627816.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-3a76bfde.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-3b20ec86.js +0 -1
- package/dist/digi-arbetsformedlingen/p-3d7fff3c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-41bc039f.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4452f871.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4bad4fb0.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4e36c467.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-501697cd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-55f525dd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-57319a80.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-5a602122.js +0 -1
- package/dist/digi-arbetsformedlingen/p-5d3383f9.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-681e7beb.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6bd60ab6.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6d864e79.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-750ff498.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-76022084.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7933b555.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7aacd45f.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7d49df06.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-8142cc73.js +0 -1
- package/dist/digi-arbetsformedlingen/p-832cbd71.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-88b4d03a.js +0 -1
- package/dist/digi-arbetsformedlingen/p-89b457e8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-905ccb30.js +0 -1
- package/dist/digi-arbetsformedlingen/p-93766b5e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-95330112.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-96987381.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a34dfc04.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-c29ab968.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c461917d.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c7949525.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c799009f.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c8e29e68.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cdf86efc.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d055d564.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d1886fff.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d5376b7c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d7aa8315.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-e9abb2b1.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-f40f4b2a.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f447b984.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/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-calendar-datepicker.entry.js +0 -2599
- package/dist/esm/digi-calendar_2.entry.js +0 -459
- package/dist/esm/digi-code-block_3.entry.js +0 -226
- package/dist/esm/digi-expandable-faq-item.entry.js +0 -93
- package/dist/esm/digi-form-category-filter.entry.js +0 -117
- package/dist/esm/digi-form-checkbox.entry.js +0 -123
- package/dist/esm/digi-form-input.entry.js +0 -190
- package/dist/esm/digi-form-radiogroup.entry.js +0 -76
- package/dist/esm/digi-icon-check.entry.js +0 -26
- package/dist/esm/digi-icon-chevron-down.entry.js +0 -26
- package/dist/esm/digi-icon-chevron-left_2.entry.js +0 -48
- package/dist/esm/digi-icon-copy.entry.js +0 -26
- package/dist/esm/digi-icon-minus_2.entry.js +0 -48
- package/dist/esm/digi-layout-block_2.entry.js +0 -87
- package/dist/esm/digi-link.entry.js +0 -71
- package/dist/esm/digi-navigation-vertical-menu-item.entry.js +0 -146
- package/dist/esm/digi-navigation-vertical-menu.entry.js +0 -173
- package/dist/esm/digi-progress-indicator.entry.js +0 -133
- package/dist/esm/digi-tools-theme-provider.entry.js +0 -24
- package/dist/esm/digi-typography-heading-jumbo.entry.js +0 -34
- package/dist/esm/digi-typography-preamble.entry.js +0 -16
- package/dist/esm/digi-typography.entry.js +0 -22
- package/dist/esm/digi-util-keydown-handler.entry.js +0 -79
- package/dist/esm/expandable-faq-item-variation.enum-a8cb225b.js +0 -18
- package/dist/esm/form-checkbox-variation.enum-83e906fc.js +0 -19
- package/dist/esm/form-input-search-variation.enum-f9d669f2.js +0 -8
- package/dist/esm/form-input-variation.enum-64d9450f.js +0 -29
- package/dist/esm/form-radiogroup-validation.enum-d790fc66.js +0 -9
- package/dist/esm/form-select-variation.enum-f2f6098d.js +0 -16
- package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +0 -8
- package/dist/esm/index-5b6c95c6.js +0 -63
- package/dist/esm/index-8685f88d.js +0 -170
- package/dist/esm/layout-container-max-width.enum-c40018ac.js +0 -21
- package/dist/esm/navigation-vertical-menu-variation.enum-c30b0ea9.js +0 -13
- package/dist/esm/progress-indicator-variation.enum-b12ba50a.js +0 -13
- package/dist/esm/tools-theme-provider.brand.enum-8c5a98c9.js +0 -7
- package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +0 -17
|
@@ -1,521 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-148a7577.js';
|
|
2
|
-
import { r as randomIdGenerator } from './randomIdGenerator.util-56406f2e.js';
|
|
3
|
-
import { B as ButtonSize } from './button-size.enum-d5ff6ff3.js';
|
|
4
|
-
import { B as ButtonType } from './button-type.enum-5250ae0b.js';
|
|
5
|
-
import { B as ButtonVariation } from './button-variation.enum-94fffdd6.js';
|
|
6
|
-
import { l as logger } from './logger.util-ede3c48a.js';
|
|
7
|
-
import { _ as _t } from './text-8f88c0f6.js';
|
|
8
|
-
import { a as FormSelectVariation, F as FormSelectValidation } from './form-select-variation.enum-f2f6098d.js';
|
|
9
|
-
import { F as FormValidationMessageVariation } from './form-validation-message-variation.enum-bcef8a9d.js';
|
|
10
|
-
|
|
11
|
-
const buttonCss = ".sc-digi-button-h{--digi--button--color--background--primary--default:var(--digi--color--background--interactive--default--primary);--digi--button--color--background--primary--hover:var(--digi--color--background--interactive--hover--primary);--digi--button--color--background--primary--focus:var(--digi--color--background--interactive--hover--primary);--digi--button--color--background--primary--active:var(--digi--color--background--interactive--hover--primary);--digi--button--color--background--secondary--default:var(--digi--color--background--interactive--default--secondary);--digi--button--color--background--secondary--hover:var(--digi--color--background--interactive--hover--secondary);--digi--button--color--background--secondary--focus:var(--digi--color--background--interactive--hover--secondary);--digi--button--color--background--secondary--active:var(--digi--color--background--interactive--hover--secondary);--digi--button--color--background--function--default:transparent;--digi--button--color--background--function--hover:transparent;--digi--button--color--background--function--focus:transparent;--digi--button--color--background--function--active:transparent;--digi--button--color--text--primary--default:var(--digi--color--text--interactive--secondary);--digi--button--color--text--primary--hover:var(--digi--color--text--interactive--secondary);--digi--button--color--text--primary--focus:var(--digi--color--text--interactive--secondary);--digi--button--color--text--primary--active:var(--digi--color--text--interactive--secondary);--digi--button--color--text--secondary--default:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--secondary--hover:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--secondary--focus:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--secondary--active:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--function--default:var(--digi--color--text--interactive--primary);--digi--button--color--text--function--hover:var(--digi--color--text--interactive--primary);--digi--button--color--text--function--focus:var(--digi--color--text--interactive--primary);--digi--button--color--text--function--active:var(--digi--color--text--interactive--primary);--digi--button--color--border--primary--default:var(--digi--color--background--interactive--default--primary);--digi--button--color--border--primary--hover:var(--digi--color--background--interactive--hover--primary);--digi--button--color--border--primary--focus:var(--digi--color--background--interactive--default--primary);--digi--button--color--border--primary--active:var(--digi--color--background--interactive--default--primary);--digi--button--color--border--secondary--default:var(--digi--color--border--interactive--default--primary);--digi--button--color--border--secondary--hover:var(--digi--color--border--interactive--hover--secondary);--digi--button--color--border--secondary--focus:var(--digi--color--border--interactive--default--primary);--digi--button--color--border--secondary--active:var(--digi--color--border--interactive--default--primary);--digi--button--color--border--function--default:initial;--digi--button--color--border--function--hover:initial;--digi--button--color--border--function--focus:initial;--digi--button--color--border--function--active:initial;--digi--button--color--icon--primary--default:var(--digi--color--icon--secondary);--digi--button--color--icon--primary--hover:var(--digi--color--icon--secondary);--digi--button--color--icon--primary--focus:var(--digi--color--icon--secondary);--digi--button--color--icon--primary--active:var(--digi--color--icon--secondary);--digi--button--color--icon--secondary--default:var(--digi--color--icon--brand-primary);--digi--button--color--icon--secondary--hover:var(--digi--color--icon--brand-primary);--digi--button--color--icon--secondary--focus:var(--digi--color--icon--brand-primary);--digi--button--color--icon--secondary--active:var(--digi--color--icon--brand-primary);--digi--button--color--icon--function--default:var(--digi--color--icon--cta);--digi--button--color--icon--function--hover:var(--digi--color--icon--cta);--digi--button--color--icon--function--focus:var(--digi--color--icon--cta);--digi--button--color--icon--function--active:var(--digi--color--icon--cta);--digi--button--border-width--primary--default:var(--digi--border-width--primary);--digi--button--border-width--primary--hover:var(--digi--border-width--primary);--digi--button--border-width--secondary--default:var(--digi--border-width--primary);--digi--button--border-width--secondary--hover:var(--digi--border-width--primary);--digi--button--border-width--function--default:initial;--digi--button--border-width--function--hover:initial;--digi--button--border-style--primary--default:var(--digi--border-style--primary);--digi--button--border-style--primary--hover:var(--digi--border-style--primary);--digi--button--border-style--primary--focus:var(--digi--border-style--primary);--digi--button--border-style--primary--active:var(--digi--border-style--primary);--digi--button--border-style--secondary--default:var(--digi--border-style--primary);--digi--button--border-style--secondary--hover:var(--digi--border-style--primary);--digi--button--border-style--secondary--focus:var(--digi--border-style--primary);--digi--button--border-style--secondary--active:var(--digi--border-style--primary);--digi--button--border-style--function--default:var(--digi--border-style--secondary);--digi--button--border-style--function--hover:var(--digi--border-style--secondary);--digi--button--border-style--function--focus:var(--digi--border-style--secondary);--digi--button--border-style--function--active:var(--digi--border-style--secondary);--digi--button--border-radius--primary--default:var(--digi--border-radius--secondary);--digi--button--border-radius--primary--hover:var(--digi--border-radius--secondary);--digi--button--border-radius--primary--focus:var(--digi--border-radius--secondary);--digi--button--border-radius--primary--active:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--default:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--hover:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--focus:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--active:var(--digi--border-radius--secondary);--digi--button--border-radius--function--default:initial;--digi--button--border-radius--function--hover:initial;--digi--button--border-radius--function--focus:initial;--digi--button--border-radius--function--active:initial;--digi--button--padding--small:var(--digi--gutter--button-block-small) var(--digi--gutter--button-inline-small);--digi--button--padding--medium:var(--digi--gutter--button-block-medium) var(--digi--gutter--button-inline-medium);--digi--button--font-size--small:var(--digi--global--typography--font-size--interaction-small);--digi--button--font-size--medium:var(--digi--global--typography--font-size--interaction-medium);--digi--button--font-family:var(--digi--global--typography--font-family--default);--digi--button--font-weight--default:var(--digi--typography--button--font-weight--desktop);--digi--button--font-weight--function:var(--digi--typography--label--font-weight--desktop);--digi--button--width:initial;--digi--button--display:initial;--digi--button--justify-content--default:initial;--digi--button--justify-content--full-width:center;--digi--button--align-items:center;--digi--button--text-align--default:initial;--digi--button--text-align--full-width:center;--digi--button--outline--default:initial;--digi--button--outline--focus:initial;--digi--button--cursor:pointer;--digi--button--icon--spacing:var(--digi--gutter--large);--digi--button--min-height--small:unset}.sc-digi-button-h .digi-button.sc-digi-button{font-family:var(--digi--button--font-family);background:var(--COLOR--BACKGROUND--DEFAULT);color:var(--COLOR--TEXT--DEFAULT);padding:var(--PADDING);border-radius:var(--BORDER-RADIUS--DEFAULT);border-width:var(--BORDER-WIDTH--DEFAULT);border-style:var(--BORDER-STYLE--DEFAULT);border-color:var(--COLOR--BORDER--DEFAULT);font-weight:var(--FONT-WEIGHT);font-size:var(--FONT-SIZE);outline:var(--digi--button--outline--default);text-align:var(--digi--button--text-align--default);width:var(--digi--button--width);display:var(--digi--button--display);justify-content:var(--digi--button--justify-content--default);cursor:var(--digi--button--cursor);min-height:var(--MIN-HEIGHT);align-items:var(--digi--button--align-items);white-space:nowrap}.sc-digi-button-h .digi-button--variation-primary.sc-digi-button{--COLOR--BACKGROUND--DEFAULT:var(--digi--button--color--background--primary--default);--COLOR--BACKGROUND--HOVER:var(--digi--button--color--background--primary--hover);--COLOR--BACKGROUND--FOCUS:var(--digi--button--color--background--primary--focus);--COLOR--BACKGROUND--ACTIVE:var(--digi--button--color--background--primary--active);--COLOR--TEXT--DEFAULT:var(--digi--button--color--text--primary--default);--COLOR--TEXT--HOVER:var(--digi--button--color--text--primary--hover);--COLOR--TEXT--FOCUS:var(--digi--button--color--text--primary--focus);--COLOR--TEXT--ACTIVE:var(--digi--button--color--text--primary--active);--COLOR--ICON--DEFAULT:var(--digi--button--color--icon--primary--default);--COLOR--ICON--HOVER:var(--digi--button--color--icon--primary--hover);--COLOR--ICON--FOCUS:var(--digi--button--color--icon--primary--focus);--COLOR--ICON--ACTIVE:var(--digi--button--color--icon--primary--active);--COLOR--BORDER--DEFAULT:var(--digi--button--color--border--primary--default);--COLOR--BORDER--HOVER:var(--digi--button--color--border--primary--hover);--COLOR--BORDER--FOCUS:var(--digi--button--color--border--primary--focus);--COLOR--BORDER--ACTIVE:var(--digi--button--color--border--primary--active);--BORDER-RADIUS--DEFAULT:var(--digi--button--border-radius--primary--default);--BORDER-RADIUS--HOVER:var(--digi--button--border-radius--primary--hover);--BORDER-RADIUS--FOCUS:var(--digi--button--border-radius--primary--focus);--BORDER-RADIUS--ACTIVE:var(--digi--button--border-radius--primary--active);--BORDER-WIDTH--DEFAULT:var(--digi--button--border-width--primary--default);--BORDER-WIDTH--HOVER:var(--digi--button--border-width--primary--hover);--BORDER-WIDTH--FOCUS:var(--digi--button--border-width--primary--focus);--BORDER-WIDTH--ACTIVE:var(--digi--button--border-width--primary--active);--BORDER-STYLE--DEFAULT:var(--digi--button--border-style--primary--default);--BORDER-STYLE--HOVER:var(--digi--button--border-style--primary--hover);--BORDER-STYLE--FOCUS:var(--digi--button--border-style--primary--focus);--BORDER-STYLE--ACTIVE:var(--digi--button--border-style--primary--active);--FONT-WEIGHT:var(--digi--button--font-weight--default)}.sc-digi-button-h .digi-button--variation-secondary.sc-digi-button{--COLOR--BACKGROUND--DEFAULT:var(--digi--button--color--background--secondary--default);--COLOR--BACKGROUND--HOVER:var(--digi--button--color--background--secondary--hover);--COLOR--BACKGROUND--FOCUS:var(--digi--button--color--background--secondary--focus);--COLOR--BACKGROUND--ACTIVE:var(--digi--button--color--background--secondary--active);--COLOR--TEXT--DEFAULT:var(--digi--button--color--text--secondary--default);--COLOR--TEXT--HOVER:var(--digi--button--color--text--secondary--hover);--COLOR--TEXT--FOCUS:var(--digi--button--color--text--secondary--focus);--COLOR--TEXT--ACTIVE:var(--digi--button--color--text--secondary--active);--COLOR--ICON--DEFAULT:var(--digi--button--color--icon--secondary--default);--COLOR--ICON--HOVER:var(--digi--button--color--icon--secondary--hover);--COLOR--ICON--FOCUS:var(--digi--button--color--icon--secondary--focus);--COLOR--ICON--ACTIVE:var(--digi--button--color--icon--secondary--active);--COLOR--BORDER--DEFAULT:var(--digi--button--color--border--secondary--default);--COLOR--BORDER--HOVER:var(--digi--button--color--border--secondary--hover);--COLOR--BORDER--FOCUS:var(--digi--button--color--border--secondary--focus);--COLOR--BORDER--ACTIVE:var(--digi--button--color--border--secondary--active);--BORDER-RADIUS--DEFAULT:var(--digi--button--border-radius--secondary--default);--BORDER-RADIUS--HOVER:var(--digi--button--border-radius--secondary--hover);--BORDER-RADIUS--FOCUS:var(--digi--button--border-radius--secondary--focus);--BORDER-RADIUS--ACTIVE:var(--digi--button--border-radius--secondary--active);--BORDER-WIDTH--DEFAULT:var(--digi--button--border-width--secondary--default);--BORDER-WIDTH--HOVER:var(--digi--button--border-width--secondary--hover);--BORDER-WIDTH--FOCUS:var(--digi--button--border-width--secondary--focus);--BORDER-WIDTH--ACTIVE:var(--digi--button--border-width--secondary--active);--BORDER-STYLE--DEFAULT:var(--digi--button--border-style--secondary--default);--BORDER-STYLE--HOVER:var(--digi--button--border-style--secondary--hover);--BORDER-STYLE--FOCUS:var(--digi--button--border-style--secondary--focus);--BORDER-STYLE--ACTIVE:var(--digi--button--border-style--secondary--active);--FONT-WEIGHT:var(--digi--button--font-weight--default)}.sc-digi-button-h .digi-button--variation-function.sc-digi-button{--COLOR--BACKGROUND--DEFAULT:var(--digi--button--color--background--function--default);--COLOR--BACKGROUND--HOVER:var(--digi--button--color--background--function--hover);--COLOR--BACKGROUND--FOCUS:var(--digi--button--color--background--function--focus);--COLOR--BACKGROUND--ACTIVE:var(--digi--button--color--background--function--active);--COLOR--TEXT--DEFAULT:var(--digi--button--color--text--function--default);--COLOR--TEXT--HOVER:var(--digi--button--color--text--function--hover);--COLOR--TEXT--FOCUS:var(--digi--button--color--text--function--focus);--COLOR--TEXT--ACTIVE:var(--digi--button--color--text--function--active);--COLOR--ICON--DEFAULT:var(--digi--button--color--icon--function--default);--COLOR--ICON--HOVER:var(--digi--button--color--icon--function--hover);--COLOR--ICON--FOCUS:var(--digi--button--color--icon--function--focus);--COLOR--ICON--ACTIVE:var(--digi--button--color--icon--function--active);--COLOR--BORDER--DEFAULT:var(--digi--button--color--border--function--default);--COLOR--BORDER--HOVER:var(--digi--button--color--border--function--hover);--COLOR--BORDER--FOCUS:var(--digi--button--color--border--function--focus);--COLOR--BORDER--ACTIVE:var(--digi--button--color--border--function--active);--BORDER-RADIUS--DEFAULT:var(--digi--button--border-radius--function--default);--BORDER-RADIUS--HOVER:var(--digi--button--border-radius--function--hover);--BORDER-RADIUS--FOCUS:var(--digi--button--border-radius--function--focus);--BORDER-RADIUS--ACTIVE:var(--digi--button--border-radius--function--active);--BORDER-WIDTH--DEFAULT:var(--digi--button--border-width--function--default);--BORDER-WIDTH--HOVER:var(--digi--button--border-width--function--hover);--BORDER-WIDTH--FOCUS:var(--digi--button--border-width--function--focus);--BORDER-WIDTH--ACTIVE:var(--digi--button--border-width--function--active);--BORDER-STYLE--DEFAULT:var(--digi--button--border-style--function--default);--BORDER-STYLE--HOVER:var(--digi--button--border-style--function--hover);--BORDER-STYLE--FOCUS:var(--digi--button--border-style--function--focus);--BORDER-STYLE--ACTIVE:var(--digi--button--border-style--function--active);--FONT-WEIGHT:var(--digi--button--font-weight--function)}.sc-digi-button-h .digi-button--variation-function.sc-digi-button:hover,.sc-digi-button-h .digi-button--variation-function.sc-digi-button:focus{text-decoration:underline}.sc-digi-button-h .digi-button--size-small.sc-digi-button{--FONT-SIZE:var(--digi--button--font-size--small);--PADDING:var(--digi--button--padding--small);--MIN-HEIGHT:var(--digi--button--min-height--small)}.sc-digi-button-h .digi-button--size-medium.sc-digi-button{--FONT-SIZE:var(--digi--button--font-size--medium);--PADDING:var(--digi--button--padding--medium);--MIN-HEIGHT:var(--digi--button--min-height--small)}.sc-digi-button-h .digi-button.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button .sc-digi-button-s>[slot^=icon]{--digi--icon--height:1em;--digi--icon--width:1em;--digi--icon--color:var(--COLOR--ICON--DEFAULT);min-height:0}@media (any-hover: hover){.sc-digi-button-h .digi-button.sc-digi-button:hover{background:var(--COLOR--BACKGROUND--HOVER);border-radius:var(--BORDER-RADIUS--HOVER);border-width:var(--BORDER-WIDTH--HOVER);border-style:var(--BORDER-STYLE--HOVER);border-color:var(--COLOR--BORDER--HOVER);color:var(--COLOR--TEXT--HOVER)}.sc-digi-button-h .digi-button:hover.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button:hover .sc-digi-button-s>[slot^=icon]{--digi--icon--color:var(--COLOR--ICON--HOVER)}}.sc-digi-button-h .digi-button.sc-digi-button:focus-visible{background:var(--COLOR--BACKGROUND--FOCUS);color:var(--COLOR--TEXT--FOCUS);border-style:var(--BORDER-STYLE--FOCUS);border-color:var(--COLOR--BORDER--FOCUS);outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-button-h .digi-button:focus-visible.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button:focus-visible .sc-digi-button-s>[slot^=icon]{--digi--icon--color:var(--COLOR--ICON--FOCUS)}.sc-digi-button-h .digi-button.sc-digi-button:active{background:var(--COLOR--BACKGROUND--ACTIVE);color:var(--COLOR--TEXT--ACTIVE)}.sc-digi-button-h .digi-button:active.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button:active .sc-digi-button-s>[slot^=icon]{--digi--icon--color:var(--COLOR--ICON--ACTIVE)}.sc-digi-button-h .digi-button--icon.sc-digi-button,.sc-digi-button-h .digi-button--icon-secondary.sc-digi-button{--digi--button--display:flex;align-items:center;justify-content:var(--digi--button--justify-content--default);gap:var(--digi--button--icon--spacing)}.sc-digi-button-h .digi-button--full-width.sc-digi-button{--digi--button--width:100%;--digi--button--text-align--default:var(--digi--button--text-align--full-width);--digi--button--justify-content--default:var(--digi--button--justify-content--full-width)}";
|
|
12
|
-
const DigiButtonStyle0 = buttonCss;
|
|
13
|
-
|
|
14
|
-
const Button = class {
|
|
15
|
-
constructor(hostRef) {
|
|
16
|
-
registerInstance(this, hostRef);
|
|
17
|
-
this.afOnClick = createEvent(this, "afOnClick", 7);
|
|
18
|
-
this.afOnFocus = createEvent(this, "afOnFocus", 7);
|
|
19
|
-
this.afOnBlur = createEvent(this, "afOnBlur", 7);
|
|
20
|
-
this.afOnReady = createEvent(this, "afOnReady", 3);
|
|
21
|
-
this.hasIcon = undefined;
|
|
22
|
-
this.hasIconSecondary = undefined;
|
|
23
|
-
this.isFullSize = undefined;
|
|
24
|
-
this.afSize = ButtonSize.MEDIUM;
|
|
25
|
-
this.afTabindex = undefined;
|
|
26
|
-
this.afVariation = ButtonVariation.PRIMARY;
|
|
27
|
-
this.afType = ButtonType.BUTTON;
|
|
28
|
-
this.afId = randomIdGenerator('digi-button');
|
|
29
|
-
this.afAriaLabel = undefined;
|
|
30
|
-
this.afAriaLabelledby = undefined;
|
|
31
|
-
this.afAriaControls = undefined;
|
|
32
|
-
this.afForm = undefined;
|
|
33
|
-
this.afAriaPressed = undefined;
|
|
34
|
-
this.afAriaExpanded = undefined;
|
|
35
|
-
this.afAriaHaspopup = undefined;
|
|
36
|
-
this.afAriaCurrent = undefined;
|
|
37
|
-
this.afRole = undefined;
|
|
38
|
-
this.afAriaChecked = undefined;
|
|
39
|
-
this.afLang = undefined;
|
|
40
|
-
this.afDir = undefined;
|
|
41
|
-
this.afFullWidth = false;
|
|
42
|
-
this.afAutofocus = undefined;
|
|
43
|
-
this.afInputRef = undefined;
|
|
44
|
-
}
|
|
45
|
-
fullWidthHandler() {
|
|
46
|
-
this.isFullSize = this.afFullWidth;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Hämta en referens till buttonelementet. Bra för att t.ex. sätta fokus programmatiskt.
|
|
50
|
-
* @en Returns a reference to the button element. Handy for setting focus programmatically.
|
|
51
|
-
*/
|
|
52
|
-
async afMGetButtonElement() {
|
|
53
|
-
return this._button;
|
|
54
|
-
}
|
|
55
|
-
componentWillLoad() {
|
|
56
|
-
this.setHasIcon();
|
|
57
|
-
this.fullWidthHandler();
|
|
58
|
-
}
|
|
59
|
-
componentWillUpdate() {
|
|
60
|
-
this.setHasIcon();
|
|
61
|
-
}
|
|
62
|
-
componentDidLoad() {
|
|
63
|
-
this.afOnReady.emit();
|
|
64
|
-
}
|
|
65
|
-
setHasIcon() {
|
|
66
|
-
const icon = !!this.hostElement.querySelector('[slot="icon"]');
|
|
67
|
-
const iconSecondary = !!this.hostElement.querySelector('[slot="icon-secondary"]');
|
|
68
|
-
if (icon) {
|
|
69
|
-
this.hasIcon = icon;
|
|
70
|
-
}
|
|
71
|
-
if (iconSecondary) {
|
|
72
|
-
this.hasIconSecondary = iconSecondary;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
get cssModifiers() {
|
|
76
|
-
return {
|
|
77
|
-
[`digi-button--variation-${this.afVariation}`]: !!this.afVariation,
|
|
78
|
-
[`digi-button--size-${this.afSize}`]: !!this.afSize,
|
|
79
|
-
'digi-button--icon': this.hasIcon,
|
|
80
|
-
'digi-button--icon-secondary': this.hasIconSecondary,
|
|
81
|
-
'digi-button--full-width': this.isFullSize
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
get pressedState() {
|
|
85
|
-
if (this.afAriaPressed === null || this.afAriaPressed === undefined) {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
return this.afAriaPressed ? 'true' : 'false';
|
|
89
|
-
}
|
|
90
|
-
get expandedState() {
|
|
91
|
-
if (this.afAriaExpanded === null || this.afAriaExpanded === undefined) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
return this.afAriaExpanded ? 'true' : 'false';
|
|
95
|
-
}
|
|
96
|
-
get hasPopup() {
|
|
97
|
-
if (this.afAriaHaspopup === null || this.afAriaHaspopup === undefined) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
return this.afAriaHaspopup ? 'true' : 'false';
|
|
101
|
-
}
|
|
102
|
-
clickHandler(e) {
|
|
103
|
-
this.afOnClick.emit(e);
|
|
104
|
-
}
|
|
105
|
-
focusHandler(e) {
|
|
106
|
-
this.afOnFocus.emit(e);
|
|
107
|
-
}
|
|
108
|
-
blurHandler(e) {
|
|
109
|
-
this.afOnBlur.emit(e);
|
|
110
|
-
}
|
|
111
|
-
render() {
|
|
112
|
-
return (h(Host, { key: '3a398d75ad83e3caa9ec54928544d5bf8315d30f' }, h("button", { key: '2159552d7e8064acbb6da5c02c28ead3d4985e85', class: Object.assign({ 'digi-button': true }, this.cssModifiers), type: this.afType, role: this.afRole, ref: (el) => {
|
|
113
|
-
var _a, _b, _c;
|
|
114
|
-
this._button = el;
|
|
115
|
-
(_a = this === null || this === void 0 ? void 0 : this.afInputRef) === null || _a === void 0 ? void 0 : _a.call(this, el);
|
|
116
|
-
// Stencil has a bug wiith form attribute so we need to set it like this
|
|
117
|
-
// https://github.com/ionic-team/stencil/issues/2703
|
|
118
|
-
this.afForm
|
|
119
|
-
? (_b = this._button) === null || _b === void 0 ? void 0 : _b.setAttribute('form', this.afForm)
|
|
120
|
-
: (_c = this._button) === null || _c === void 0 ? void 0 : _c.removeAttribute('form');
|
|
121
|
-
}, id: this.afId, tabindex: this.afTabindex, "aria-label": this.afAriaLabel, "aria-labelledby": this.afAriaLabelledby, "aria-controls": this.afAriaControls, "aria-pressed": this.pressedState, "aria-expanded": this.expandedState, "aria-haspopup": this.hasPopup, "aria-current": this.afAriaCurrent, "aria-checked": this.afAriaChecked, onClick: (e) => this.clickHandler(e), onFocus: (e) => this.focusHandler(e), onBlur: (e) => this.blurHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null, form: this.afForm, lang: this.afLang, dir: this.afDir }, this.hasIcon && (h("span", { key: '1188d5cb005a51e4e065b70663d06877db3a1477', class: "digi-button__icon" }, h("slot", { key: 'f90319563c18e1f82fa13f478b4d4d13ce3e9bf7', name: "icon" }))), h("span", { key: '17dce8eed2e845ca6166cf85a1c0252c2c0b8037', class: "digi-button__text" }, h("slot", { key: '2f637e48b837ecd0f0f2333349f328c497aee650' })), this.hasIconSecondary && (h("span", { key: '49ffd3361b0cc00c074e1ce332dab2de33127fcc', class: "digi-button__icon digi-button__icon--secondary" }, h("slot", { key: '367d3ba37e2fd0b7e83d600f35d02d4df303c1c0', name: "icon-secondary" }))))));
|
|
122
|
-
}
|
|
123
|
-
get hostElement() { return getElement(this); }
|
|
124
|
-
static get watchers() { return {
|
|
125
|
-
"afFullWidth": ["fullWidthHandler"]
|
|
126
|
-
}; }
|
|
127
|
-
};
|
|
128
|
-
Button.style = DigiButtonStyle0;
|
|
129
|
-
|
|
130
|
-
const formLabelCss = ".sc-digi-form-label-h .digi-form-label.sc-digi-form-label{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--label--font-size--desktop);color:var(--digi--color--text--primary);display:flex;flex-direction:column}.sc-digi-form-label-h .digi-form-label__label--label.sc-digi-form-label{font-weight:var(--digi--typography--label--font-weight--desktop)}.sc-digi-form-label-h .digi-form-label__label--label.sc-digi-form-label,.sc-digi-form-label-h .digi-form-label__label--description.sc-digi-form-label{line-height:var(--digi--typography--label--line-height--desktop);cursor:pointer;display:block}.sc-digi-form-label-h .digi-form-label__label-group.sc-digi-form-label{display:inline-flex;align-items:center;gap:var(--digi--gutter--icon)}.sc-digi-form-label-h .digi-form-label__description.sc-digi-form-label{max-width:var(--digi--paragraph-width--medium);line-height:var(--digi--typography--label-description--line-height--desktop);font-size:var(--digi--typography--label-description--font-size--desktop)}";
|
|
131
|
-
const DigiFormLabelStyle0 = formLabelCss;
|
|
132
|
-
|
|
133
|
-
const FormLabel = class {
|
|
134
|
-
constructor(hostRef) {
|
|
135
|
-
registerInstance(this, hostRef);
|
|
136
|
-
this.labelText = undefined;
|
|
137
|
-
this.hasActionSlot = undefined;
|
|
138
|
-
this.afLabel = undefined;
|
|
139
|
-
this.afId = randomIdGenerator('digi-form-label');
|
|
140
|
-
this.afFor = undefined;
|
|
141
|
-
this.afDescription = undefined;
|
|
142
|
-
this.afRequired = undefined;
|
|
143
|
-
this.afAnnounceIfOptional = false;
|
|
144
|
-
this.afRequiredText = _t.required.toLowerCase();
|
|
145
|
-
this.afAnnounceIfOptionalText = _t.optional.toLowerCase();
|
|
146
|
-
}
|
|
147
|
-
componentWillLoad() {
|
|
148
|
-
this.setLabelText();
|
|
149
|
-
this.validateFor();
|
|
150
|
-
this.handleSlotVisibility();
|
|
151
|
-
}
|
|
152
|
-
validateFor() {
|
|
153
|
-
if (this.afFor == null) {
|
|
154
|
-
logger.warn(`digi-form-label must have a for attribute. Please add a for attribute using af-for`, this.hostElement);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
setLabelText() {
|
|
158
|
-
this.labelText = `${this.afLabel} ${this.requiredText}`;
|
|
159
|
-
if (!this.afLabel) {
|
|
160
|
-
logger.warn(`digi-form-label must have a label. Please add a label using af-label`, this.hostElement);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
handleSlotVisibility() {
|
|
164
|
-
this.hasActionSlot = !!this.hostElement.querySelector('[slot="actions"]');
|
|
165
|
-
}
|
|
166
|
-
get requiredText() {
|
|
167
|
-
if (this.afRequired && !this.afAnnounceIfOptional) {
|
|
168
|
-
return this.afRequiredText ? ` (${this.afRequiredText})` : '';
|
|
169
|
-
}
|
|
170
|
-
else if (!this.afRequired && this.afAnnounceIfOptional) {
|
|
171
|
-
return this.afAnnounceIfOptionalText
|
|
172
|
-
? ` (${this.afAnnounceIfOptionalText})`
|
|
173
|
-
: '';
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
return '';
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
render() {
|
|
180
|
-
return (h("div", { key: '24ae333ab5edc928ce4d26e6e4da0f642617792a', class: "digi-form-label" }, h("div", { key: 'b1a5073a7c9883b13a86f741b865c3b368c1d02b', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (h("label", { key: '4dd98d11699d82e0e6b5f1127ca0e97382dc45d1', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, h("span", { key: 'a8c1b2cf89d24625e3c13a93bac5fd144d95a3cb', class: "digi-form-label__label--label" }, this.labelText), this.afDescription && (h("span", { key: '4a82c714e6b4f3189772d44bd5748c830252a8d5', class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (h("div", { key: 'd07f90e8e0a8ba9061686bf7cc331480091fbb33', class: "digi-form-label__actions" }, h("slot", { key: '7c5f1750217d9666a6543044e6dbb29ee4839940', name: "actions" }))))));
|
|
181
|
-
}
|
|
182
|
-
get hostElement() { return getElement(this); }
|
|
183
|
-
static get watchers() { return {
|
|
184
|
-
"afFor": ["validateFor"],
|
|
185
|
-
"afLabel": ["setLabelText"],
|
|
186
|
-
"afRequired": ["setLabelText"],
|
|
187
|
-
"afAnnounceIfOptional": ["setLabelText"]
|
|
188
|
-
}; }
|
|
189
|
-
};
|
|
190
|
-
FormLabel.style = DigiFormLabelStyle0;
|
|
191
|
-
|
|
192
|
-
const formSelectCss = ".sc-digi-form-select-h{--digi--form-select--background--empty:var(--digi--color--background--interactive--default--secondary);--digi--form-select--background--neutral:var(--digi--color--background--interactive--default--secondary);--digi--form-select--background--success:var(--digi--color--background--interactive--validation--success);--digi--form-select--background--warning:var(--digi--color--background--interactive--validation--warning);--digi--form-select--background--error:var(--digi--color--background--interactive--validation--error);--digi--form-select--border-color--neutral:var(--digi--color--border--interactive--default--on-input);--digi--form-select--border-color--success:var(--digi--color--border--interactive--validation--success);--digi--form-select--border-color--warning:var(--digi--color--border--interactive--validation--warning);--digi--form-select--border-color--error:var(--digi--color--border--interactive--validation--error);--digi--form-select--select-wrapper--position:relative;--digi--form-select--select--height--small:var(--digi--input-height--small);--digi--form-select--select--height--medium:var(--digi--input-height--medium);--digi--form-select--select--height--large:var(--digi--input-height--large);--digi--form-select--select--border-radius:var(--digi--border-radius--input);--digi--form-select--select--padding:0 var(--digi--gutter--medium);--digi--form-select--select--padding--inline-end:var(--digi--padding--large);--digi--form-select--select--border-width--neutral:var(--digi--border-width--input-regular);--digi--form-select--select--border-width--success:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--error:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--warning:var(--digi--border-width--input-validation);--digi--form-select--select--width:100%;--digi--form-select--select--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--select-option--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--label--margin-bottom:var(--digi--gutter--medium);--digi--form-select--icon--inline-end:0.75rem;--digi--form-select--icon--top:50%;--digi--form-select--icon--transform:translateY(-50%);--digi--form-select--icon--color:var(--digi--color--icon--primary);--digi--form-select--footer--margin-top:var(--digi--gutter--medium)}.sc-digi-form-select-h .digi-form-select.sc-digi-form-select{display:flex;flex-direction:column;gap:0.4em}.sc-digi-form-select-h .digi-form-select--neutral.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--neutral);--BORDER-COLOR:var(--digi--form-select--border-color--neutral);--BACKGROUND:var(--digi--form-select--background--neutral)}.sc-digi-form-select-h .digi-form-select--success.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--success);--BORDER-COLOR:var(--digi--form-select--border-color--success);--BACKGROUND:var(--digi--form-select--background--success)}.sc-digi-form-select-h .digi-form-select--warning.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--warning);--BORDER-COLOR:var(--digi--form-select--border-color--warning);--BACKGROUND:var(--digi--form-select--background--warning)}.sc-digi-form-select-h .digi-form-select--error.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--error);--BORDER-COLOR:var(--digi--form-select--border-color--error);--BACKGROUND:var(--digi--form-select--background--error)}.sc-digi-form-select-h .digi-form-select--small.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--small)}.sc-digi-form-select-h .digi-form-select--medium.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--medium)}.sc-digi-form-select-h .digi-form-select--large.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--large)}.sc-digi-form-select-h .digi-form-select--empty.sc-digi-form-select:not(:focus-within){--BACKGROUND:var(--digi--form-select--background--empty)}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select{appearance:none;width:var(--digi--form-select--select--width);padding:var(--digi--form-select--select--padding);padding-inline-end:var(--digi--form-select--select--padding--inline-end);height:var(--HEIGHT);border:var(--BORDER-WIDTH) solid;border-radius:var(--digi--form-select--select--border-radius);border-color:var(--BORDER-COLOR);cursor:pointer;font-size:var(--digi--form-select--select--font-size);color:var(--digi--color--text--primary);background:var(--BACKGROUND);font-family:var(--digi--global--typography--font-family--default)}.sc-digi-form-select-h .digi-form-select__select-wrapper.sc-digi-form-select{position:var(--digi--form-select--select-wrapper--position)}.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{font-size:var(--digi--form-select--select-option--font-size)}@media (min-width: 48rem){.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{--digi--form-select--select-option--font-size:var(--digi--typography--font-size--l)}}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select::-ms-expand{display:none}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-form-select-h .digi-form-select__icon.sc-digi-form-select{position:absolute;inset-inline-end:var(--digi--form-select--icon--inline-end);inset-block-start:var(--digi--form-select--icon--top);transform:var(--digi--form-select--icon--transform);pointer-events:none;color:var(--digi--form-select--icon--color)}.digi-form-select--neutral.sc-digi-form-select .digi-form-select__footer.sc-digi-form-select{position:absolute}";
|
|
193
|
-
const DigiFormSelectStyle0 = formSelectCss;
|
|
194
|
-
|
|
195
|
-
const FormSelect = class {
|
|
196
|
-
constructor(hostRef) {
|
|
197
|
-
registerInstance(this, hostRef);
|
|
198
|
-
this.afOnChange = createEvent(this, "afOnChange", 7);
|
|
199
|
-
this.afOnSelect = createEvent(this, "afOnSelect", 7);
|
|
200
|
-
this.afOnFocus = createEvent(this, "afOnFocus", 7);
|
|
201
|
-
this.afOnFocusout = createEvent(this, "afOnFocusout", 7);
|
|
202
|
-
this.afOnBlur = createEvent(this, "afOnBlur", 7);
|
|
203
|
-
this.afOnDirty = createEvent(this, "afOnDirty", 7);
|
|
204
|
-
this.afOnReady = createEvent(this, "afOnReady", 3);
|
|
205
|
-
this.optionItems = [];
|
|
206
|
-
this.dirty = false;
|
|
207
|
-
this.touched = false;
|
|
208
|
-
this.hasPlaceholder = false;
|
|
209
|
-
this.afLabel = undefined;
|
|
210
|
-
this.afAriaLabel = undefined;
|
|
211
|
-
this.afRequired = undefined;
|
|
212
|
-
this.afRequiredText = undefined;
|
|
213
|
-
this.afPlaceholder = undefined;
|
|
214
|
-
this.afAnnounceIfOptional = false;
|
|
215
|
-
this.afAnnounceIfOptionalText = undefined;
|
|
216
|
-
this.afId = randomIdGenerator('digi-form-select');
|
|
217
|
-
this.afName = undefined;
|
|
218
|
-
this.afDescription = undefined;
|
|
219
|
-
this.value = undefined;
|
|
220
|
-
this.afValue = undefined;
|
|
221
|
-
this.afDisableValidation = undefined;
|
|
222
|
-
this.afVariation = FormSelectVariation.MEDIUM;
|
|
223
|
-
this.afValidation = FormSelectValidation.NEUTRAL;
|
|
224
|
-
this.afValidationText = undefined;
|
|
225
|
-
this.afAutofocus = undefined;
|
|
226
|
-
this.afErrorMessageIsAlert = true;
|
|
227
|
-
}
|
|
228
|
-
onValueChanged(value) {
|
|
229
|
-
this.afValue = value;
|
|
230
|
-
}
|
|
231
|
-
onAfValueChanged(value) {
|
|
232
|
-
this.value = value;
|
|
233
|
-
}
|
|
234
|
-
get errorMessageIsAlert() {
|
|
235
|
-
return (this.afErrorMessageIsAlert !== false &&
|
|
236
|
-
this.afErrorMessageIsAlert !== 'false');
|
|
237
|
-
}
|
|
238
|
-
getOptions() {
|
|
239
|
-
this.checkIfPlaceholder();
|
|
240
|
-
const options = this._observer.children;
|
|
241
|
-
if (!options || options.length <= 0) {
|
|
242
|
-
logger.warn(`The slot contains no option elements.`, this.hostElement);
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
this.optionItems = [...Array.from(options)]
|
|
246
|
-
.filter((el) => el.tagName.toLowerCase() === 'option')
|
|
247
|
-
.map((el) => {
|
|
248
|
-
return {
|
|
249
|
-
value: el['value'],
|
|
250
|
-
text: el['text']
|
|
251
|
-
};
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
checkIfPlaceholder() {
|
|
255
|
-
this.hasPlaceholder = !!this.afPlaceholder;
|
|
256
|
-
}
|
|
257
|
-
componentWillLoad() {
|
|
258
|
-
this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
|
|
259
|
-
}
|
|
260
|
-
componentDidLoad() {
|
|
261
|
-
this.getOptions();
|
|
262
|
-
this.afOnReady.emit();
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Returnerar en referens till formulärkontrollelementet.
|
|
266
|
-
* @en Returns a reference to the form control element.
|
|
267
|
-
*/
|
|
268
|
-
async afMGetFormControlElement() {
|
|
269
|
-
return this._select;
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva select-elementet.
|
|
273
|
-
* @en Listens for when focus is set on the custom element and propagates it down to the actual select element.
|
|
274
|
-
*/
|
|
275
|
-
focusOnInput() {
|
|
276
|
-
var _a;
|
|
277
|
-
(_a = this._select) === null || _a === void 0 ? void 0 : _a.focus();
|
|
278
|
-
}
|
|
279
|
-
get cssModifiers() {
|
|
280
|
-
return {
|
|
281
|
-
'digi-form-select--small': this.afVariation === FormSelectVariation.SMALL,
|
|
282
|
-
'digi-form-select--medium': this.afVariation === FormSelectVariation.MEDIUM,
|
|
283
|
-
'digi-form-select--large': this.afVariation === FormSelectVariation.LARGE,
|
|
284
|
-
'digi-form-select--neutral': this.afValidation === FormSelectValidation.NEUTRAL,
|
|
285
|
-
'digi-form-select--success': this.afValidation === FormSelectValidation.SUCCESS,
|
|
286
|
-
'digi-form-select--warning': this.afValidation === FormSelectValidation.WARNING,
|
|
287
|
-
'digi-form-select--error': this.afValidation === FormSelectValidation.ERROR,
|
|
288
|
-
'digi-form-select--empty': !this.afValue &&
|
|
289
|
-
(!this.afValidation ||
|
|
290
|
-
this.afValidation === FormSelectValidation.NEUTRAL)
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
changeHandler(e) {
|
|
294
|
-
if (!this.dirty) {
|
|
295
|
-
this.afOnDirty.emit(e);
|
|
296
|
-
this.dirty = true;
|
|
297
|
-
}
|
|
298
|
-
this.value = this.afValue = e.target.value;
|
|
299
|
-
this.afOnChange.emit(e);
|
|
300
|
-
}
|
|
301
|
-
selectHandler(e) {
|
|
302
|
-
this.value = this.afValue = e.target.value;
|
|
303
|
-
this.afOnSelect.emit(e);
|
|
304
|
-
}
|
|
305
|
-
focusHandler(e) {
|
|
306
|
-
this.afOnFocus.emit(e);
|
|
307
|
-
}
|
|
308
|
-
focusoutHandler(e) {
|
|
309
|
-
this.afOnFocusout.emit(e);
|
|
310
|
-
}
|
|
311
|
-
blurHandler(e) {
|
|
312
|
-
this.afOnBlur.emit(e);
|
|
313
|
-
}
|
|
314
|
-
getSelectedItem(option) {
|
|
315
|
-
return this.afValue == option.value;
|
|
316
|
-
}
|
|
317
|
-
showValidation() {
|
|
318
|
-
return !this.afDisableValidation &&
|
|
319
|
-
this.afValidation !== FormSelectValidation.NEUTRAL &&
|
|
320
|
-
this.afValidationText
|
|
321
|
-
? true
|
|
322
|
-
: false;
|
|
323
|
-
}
|
|
324
|
-
render() {
|
|
325
|
-
return (h(Host, { key: 'd0422f1a779704cd2e9192f81199c58738c6f4db', tabindex: -1 }, h("div", { key: 'f6a49628a7d5d3d2d633e816aaf260242478fc4c', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, h("div", { key: '755b1b576bb8847570426d982d1a3445fb44edff', class: "digi-form-select__label-group" }, h("digi-form-label", { key: 'eda13cccb65792193b318bf9c21bd0b52384dbc5', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: '0ae5338fd5aa2b7fffe60935ddae9fec0cbaf379', class: "digi-form-select__select-wrapper" }, h("select", { key: 'bd758e92e3fb977be5bad8530062d9b5c71f7e11', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
|
|
326
|
-
? 'true'
|
|
327
|
-
: 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (h("option", { key: '85d60c1b04d3a48773d7a25e79d6e6896abc4334', class: {
|
|
328
|
-
'digi-form-select__select-option': true,
|
|
329
|
-
'digi-form-select__select-option--initial-value': true
|
|
330
|
-
}, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
|
|
331
|
-
return (h("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
|
|
332
|
-
})), h("digi-icon-input-select-marker", { key: 'e9ab4ef12562679223aaa7f60e20936d2a1e078e', class: "digi-form-select__icon", slot: "icon" })), h("digi-util-mutation-observer", { key: '188b27eb0a27f9bb81eb8211e67df8d8c54b7485', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: (e) => {
|
|
333
|
-
e.stopImmediatePropagation();
|
|
334
|
-
this.getOptions();
|
|
335
|
-
} }, h("slot", { key: '70b2eeb015a08bfc2379f30eb4cf7e6281066d56' })), h("div", { key: 'd8aa1c5d5de3e847136d29b14a236d6cf73ecad4', class: "digi-form-select__footer" }, h("div", { key: '27f8450662d599b55aa22a3a82f268de8ecd7cbc', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: 'e7f512be5ea01c8bb2c6a1e20bacafd43acf2770', "af-variation": this.afValidation }, this.afValidationText)))))));
|
|
336
|
-
}
|
|
337
|
-
get hostElement() { return getElement(this); }
|
|
338
|
-
static get watchers() { return {
|
|
339
|
-
"value": ["onValueChanged"],
|
|
340
|
-
"afValue": ["onAfValueChanged"]
|
|
341
|
-
}; }
|
|
342
|
-
};
|
|
343
|
-
FormSelect.style = DigiFormSelectStyle0;
|
|
344
|
-
|
|
345
|
-
const formValidationMessageCss = ".sc-digi-form-validation-message-h{--digi--form-validation-message--icon-color--success:var(--digi--color--icon--validation--success);--digi--form-validation-message--icon-color--warning:var(--digi--color--icon--validation--warning);--digi--form-validation-message--icon-color--error:var(--digi--color--icon--validation--error)}.sc-digi-form-validation-message-h .digi-form-validation-message.sc-digi-form-validation-message{display:flex;flex-wrap:wrap;align-items:center}.sc-digi-form-validation-message-h .digi-form-validation-message--success.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--success)}.sc-digi-form-validation-message-h .digi-form-validation-message--warning.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--warning)}.sc-digi-form-validation-message-h .digi-form-validation-message--error.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--error)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message{color:var(--ICON-COLOR);margin-inline-end:var(--digi--gutter--icon)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message>*.sc-digi-form-validation-message{--digi--icon--width:1.25em;--digi--icon--height:1.25em;--digi--icon--color:var(--ICON-COLOR);display:flex}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message .warning.sc-digi-form-validation-message{top:3px;position:relative}.sc-digi-form-validation-message-h .digi-form-validation-message__text.sc-digi-form-validation-message{flex:1;font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--tag--font-size--desktop);color:var(--digi--color--text--primary)}";
|
|
346
|
-
const DigiFormValidationMessageStyle0 = formValidationMessageCss;
|
|
347
|
-
|
|
348
|
-
const FormValidationMessage = class {
|
|
349
|
-
constructor(hostRef) {
|
|
350
|
-
registerInstance(this, hostRef);
|
|
351
|
-
this.afVariation = FormValidationMessageVariation.SUCCESS;
|
|
352
|
-
}
|
|
353
|
-
get cssModifiers() {
|
|
354
|
-
return {
|
|
355
|
-
'digi-form-validation-message--success': this.afVariation === FormValidationMessageVariation.SUCCESS,
|
|
356
|
-
'digi-form-validation-message--error': this.afVariation === FormValidationMessageVariation.ERROR,
|
|
357
|
-
'digi-form-validation-message--warning': this.afVariation === FormValidationMessageVariation.WARNING
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
get icon() {
|
|
361
|
-
switch (this.afVariation) {
|
|
362
|
-
case FormValidationMessageVariation.SUCCESS:
|
|
363
|
-
return h("digi-icon-validation-success", null);
|
|
364
|
-
case FormValidationMessageVariation.ERROR:
|
|
365
|
-
return h("digi-icon-validation-error", null);
|
|
366
|
-
case FormValidationMessageVariation.WARNING:
|
|
367
|
-
return h("digi-icon-validation-warning", { class: "warning" });
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
render() {
|
|
371
|
-
return (h("div", { key: 'b15c3cca06f4e015c7006bae470876b246b6ce06', class: Object.assign({ 'digi-form-validation-message': true }, this.cssModifiers) }, h("div", { key: '1e9378eb8b193c35e24e700ef865fb44ae4fb28b', class: "digi-form-validation-message__icon", "aria-hidden": "true" }, this.icon), h("span", { key: '6e72b4f07b641d63603914a33720d6b09a5bd44f', class: "digi-form-validation-message__text" }, h("slot", { key: '74cfa597bf12b19fb2dbef039eac148358ff2635' }))));
|
|
372
|
-
}
|
|
373
|
-
get hostElement() { return getElement(this); }
|
|
374
|
-
};
|
|
375
|
-
FormValidationMessage.style = DigiFormValidationMessageStyle0;
|
|
376
|
-
|
|
377
|
-
const iconInputSelectMarkerCss = ".sc-digi-icon-input-select-marker-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-input-select-marker-h svg.sc-digi-icon-input-select-marker{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
|
|
378
|
-
const DigiIconInputSelectMarkerStyle0 = iconInputSelectMarkerCss;
|
|
379
|
-
|
|
380
|
-
const IconInputSelectMarker = class {
|
|
381
|
-
constructor(hostRef) {
|
|
382
|
-
registerInstance(this, hostRef);
|
|
383
|
-
this.afTitle = undefined;
|
|
384
|
-
this.afDesc = undefined;
|
|
385
|
-
this.afSvgAriaHidden = true;
|
|
386
|
-
this.afSvgAriaLabelledby = undefined;
|
|
387
|
-
this.titleId = randomIdGenerator('icon-input-select-marker');
|
|
388
|
-
}
|
|
389
|
-
render() {
|
|
390
|
-
return (h("svg", { key: '041c1a9468d8fd9340a556b7f0b063f4f3cf738d', class: "digi-icon-input-select-marker", width: "14", height: "8", viewBox: "0 0 14 8", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
|
|
391
|
-
? this.afSvgAriaLabelledby
|
|
392
|
-
: this.afTitle
|
|
393
|
-
? this.titleId
|
|
394
|
-
: undefined }, this.afTitle && h("title", { key: 'a0542c18fdc7e871d91a495af884aa65e1ea0cd5', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'da9171b347e0af9afe8fd5c5d49d7179c2798e84' }, this.afDesc), h("path", { key: '9f5352b7e70c2a4a19d94fe9786b1629dac338f5', d: "M1 1l6.074 6L13 1.147", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
|
|
395
|
-
}
|
|
396
|
-
};
|
|
397
|
-
IconInputSelectMarker.style = DigiIconInputSelectMarkerStyle0;
|
|
398
|
-
|
|
399
|
-
const iconValidationErrorCss = ".sc-digi-icon-validation-error-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-error-h svg.sc-digi-icon-validation-error{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
|
|
400
|
-
const DigiIconValidationErrorStyle0 = iconValidationErrorCss;
|
|
401
|
-
|
|
402
|
-
const IconValidationError = class {
|
|
403
|
-
constructor(hostRef) {
|
|
404
|
-
registerInstance(this, hostRef);
|
|
405
|
-
this.afTitle = undefined;
|
|
406
|
-
this.afDesc = undefined;
|
|
407
|
-
this.afSvgAriaHidden = true;
|
|
408
|
-
this.afSvgAriaLabelledby = undefined;
|
|
409
|
-
this.titleId = randomIdGenerator('icontitle');
|
|
410
|
-
}
|
|
411
|
-
render() {
|
|
412
|
-
return (h("svg", { key: 'f499f42be0fc0b08203aa5f5f737d24dd637f2b2', class: "digi-icon-validation-error", width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
|
|
413
|
-
? this.afSvgAriaLabelledby
|
|
414
|
-
: this.afTitle
|
|
415
|
-
? this.titleId
|
|
416
|
-
: undefined }, this.afTitle && h("title", { key: 'fe9028dc6ef29fb411f3527f803f970fb200cbc7', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '602b904ee4e87ccd75c0fccbb1015f2e50a89c3d' }, this.afDesc), h("path", { key: 'c3e66974c35dd1405f668f9eb1c0c3ce65d57d16', class: "digi-icon-validation-error__shape", d: "M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z", fill: "currentColor", "fill-rule": "nonzero" })));
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
IconValidationError.style = DigiIconValidationErrorStyle0;
|
|
420
|
-
|
|
421
|
-
const iconValidationSuccessCss = ".sc-digi-icon-validation-success-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-success-h svg.sc-digi-icon-validation-success{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
|
|
422
|
-
const DigiIconValidationSuccessStyle0 = iconValidationSuccessCss;
|
|
423
|
-
|
|
424
|
-
const IconCheckCircle = class {
|
|
425
|
-
constructor(hostRef) {
|
|
426
|
-
registerInstance(this, hostRef);
|
|
427
|
-
this.afTitle = undefined;
|
|
428
|
-
this.afDesc = undefined;
|
|
429
|
-
this.afSvgAriaHidden = true;
|
|
430
|
-
this.afSvgAriaLabelledby = undefined;
|
|
431
|
-
this.titleId = randomIdGenerator('icontitle');
|
|
432
|
-
}
|
|
433
|
-
render() {
|
|
434
|
-
return (h("svg", { key: '8e17bc8da17af20998fb67b64fc24b40461b176c', class: "digi-icon-validation-success", width: "25", height: "25", viewBox: "0 0 25 25", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
|
|
435
|
-
? this.afSvgAriaLabelledby
|
|
436
|
-
: this.afTitle
|
|
437
|
-
? this.titleId
|
|
438
|
-
: undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && h("title", { key: '6f56caf229cfb9e2d8f6f54eaeaa4f86c9881eaf', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'f7fa4c25a72c4ef312a8f6daedf31ce199979bc2' }, this.afDesc), h("path", { key: 'f90d6e4c93085c88e81ef6935289f437a6a26aa6', class: "digi-icon-validation-success__shape", d: "M25 12.5C25 19.404 19.404 25 12.5 25S0 19.404 0 12.5 5.596 0 12.5 0 25 5.596 25 12.5zm-13.946 6.619l9.274-9.275a.806.806 0 000-1.14l-1.14-1.14a.806.806 0 00-1.14 0l-7.564 7.563-3.531-3.531a.807.807 0 00-1.14 0l-1.141 1.14a.806.806 0 000 1.14l5.242 5.243a.806.806 0 001.14 0z", fill: "currentColor", "fill-rule": "nonzero" })));
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
IconCheckCircle.style = DigiIconValidationSuccessStyle0;
|
|
442
|
-
|
|
443
|
-
const iconValidationWarningCss = ".sc-digi-icon-validation-warning-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-warning-h svg.sc-digi-icon-validation-warning{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
|
|
444
|
-
const DigiIconValidationWarningStyle0 = iconValidationWarningCss;
|
|
445
|
-
|
|
446
|
-
const IconValidationWarning = class {
|
|
447
|
-
constructor(hostRef) {
|
|
448
|
-
registerInstance(this, hostRef);
|
|
449
|
-
this.afTitle = undefined;
|
|
450
|
-
this.afDesc = undefined;
|
|
451
|
-
this.afSvgAriaHidden = true;
|
|
452
|
-
this.afSvgAriaLabelledby = undefined;
|
|
453
|
-
this.titleId = randomIdGenerator('icontitle');
|
|
454
|
-
}
|
|
455
|
-
render() {
|
|
456
|
-
return (h("div", { key: 'eab65818fc925a1ff0b96f4c61897dbb21431375' }, h("svg", { key: '80fccf36625c7ad8899c656d6fd43e9c646ef941', class: "digi-icon-validation-warning", width: "18", height: "18", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
|
|
457
|
-
? this.afSvgAriaLabelledby
|
|
458
|
-
: this.afTitle
|
|
459
|
-
? this.titleId
|
|
460
|
-
: undefined }, this.afTitle && h("title", { key: '0b147bec8b5bb42bf03cf64f0c16fd8977738f17', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '250acb28819b3636883bc03da56a4228480e6fcb' }, this.afDesc), h("g", { key: 'a032d119a67df159ecf24e457ea87ce6399281f9', fill: "none", "fill-rule": "evenodd" }, h("circle", { key: 'de82de664348aca5dafef8991aff9beb1b6501d1', cx: "9", cy: "9", r: "6.75", fill: "#333" }), h("path", { key: 'e49d8e1173a1e0ce268977c08139bc275fd761e0', d: "m18 9c0 4.9717-4.0298 9-9 9-4.9702 0-9-4.0283-9-9 0-4.9688 4.0298-9 9-9 4.9702 0 9 4.0312 9 9zm-9 1.8145c-0.92196 0-1.6694 0.7474-1.6694 1.6694 0 0.92196 0.7474 1.6694 1.6694 1.6694s1.6694-0.7474 1.6694-1.6694c0-0.92196-0.7474-1.6694-1.6694-1.6694zm-1.3157-1.065c0.012593 0.23095 0.20355 0.41175 0.43483 0.41175h1.7618c0.23128 0 0.42224-0.1808 0.43483-0.41175l0.2692-4.9355c0.013609-0.24946-0.18501-0.45922-0.43483-0.45922h-2.3002c-0.24982 0-0.4484 0.20976-0.43479 0.45922l0.2692 4.9355z", fill: "#FFE200" })))));
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
|
-
IconValidationWarning.style = DigiIconValidationWarningStyle0;
|
|
464
|
-
|
|
465
|
-
const UtilMutationObserver = class {
|
|
466
|
-
constructor(hostRef) {
|
|
467
|
-
registerInstance(this, hostRef);
|
|
468
|
-
this.afOnChange = createEvent(this, "afOnChange", 7);
|
|
469
|
-
this._observer = null;
|
|
470
|
-
this._isObserving = false;
|
|
471
|
-
this.afId = randomIdGenerator('digi-util-mutation-observer');
|
|
472
|
-
this.afOptions = {
|
|
473
|
-
attributes: false,
|
|
474
|
-
childList: true,
|
|
475
|
-
subtree: false,
|
|
476
|
-
characterData: false
|
|
477
|
-
};
|
|
478
|
-
}
|
|
479
|
-
afOptionsWatcher(newValue) {
|
|
480
|
-
this._afOptions =
|
|
481
|
-
typeof newValue === 'string' ? JSON.parse(newValue) : newValue;
|
|
482
|
-
}
|
|
483
|
-
componentWillLoad() {
|
|
484
|
-
this.afOptionsWatcher(this.afOptions);
|
|
485
|
-
this.initObserver();
|
|
486
|
-
}
|
|
487
|
-
disconnectedCallback() {
|
|
488
|
-
if (this._isObserving) {
|
|
489
|
-
this.removeObserver();
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
initObserver() {
|
|
493
|
-
this._observer = new MutationObserver((mutationsList) => {
|
|
494
|
-
for (const mutation of mutationsList) {
|
|
495
|
-
if (mutation.type === 'childList' ||
|
|
496
|
-
mutation.type === 'attributes' ||
|
|
497
|
-
mutation.type === 'characterData') {
|
|
498
|
-
this.changeHandler(mutation);
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
});
|
|
502
|
-
this._observer.observe(this.$el, this._afOptions);
|
|
503
|
-
this._isObserving = true;
|
|
504
|
-
}
|
|
505
|
-
removeObserver() {
|
|
506
|
-
this._observer.disconnect();
|
|
507
|
-
this._isObserving = false;
|
|
508
|
-
}
|
|
509
|
-
changeHandler(e) {
|
|
510
|
-
this.afOnChange.emit(e);
|
|
511
|
-
}
|
|
512
|
-
render() {
|
|
513
|
-
h("div", { id: this.afId, ref: (el) => (this.$el = el) }, h("slot", null));
|
|
514
|
-
}
|
|
515
|
-
get $el() { return getElement(this); }
|
|
516
|
-
static get watchers() { return {
|
|
517
|
-
"afOptions": ["afOptionsWatcher"]
|
|
518
|
-
}; }
|
|
519
|
-
};
|
|
520
|
-
|
|
521
|
-
export { Button as digi_button, FormLabel as digi_form_label, FormSelect as digi_form_select, FormValidationMessage as digi_form_validation_message, IconInputSelectMarker as digi_icon_input_select_marker, IconValidationError as digi_icon_validation_error, IconCheckCircle as digi_icon_validation_success, IconValidationWarning as digi_icon_validation_warning, UtilMutationObserver as digi_util_mutation_observer };
|