@riverty/web-components 5.7.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +128 -0
- package/custom-elements.json +152 -372
- package/dist/cjs/index-DJ4H_bFj.js +6 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/r-accordion-panel.cjs.entry.js +1 -1
- package/dist/cjs/r-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/r-accordion-trigger.cjs.entry.js +5 -35
- package/dist/cjs/r-accordion.cjs.entry.js +3 -7
- package/dist/cjs/r-alert.cjs.entry.js +45 -14
- package/dist/cjs/r-badge.cjs.entry.js +1 -1
- package/dist/cjs/r-button.cjs.entry.js +2 -2
- package/dist/cjs/r-checkbox-group.cjs.entry.js +28 -24
- package/dist/cjs/r-checkbox.cjs.entry.js +97 -81
- package/dist/cjs/r-dialog.cjs.entry.js +3 -11
- package/dist/cjs/r-hint_2.cjs.entry.js +50 -0
- package/dist/cjs/{r-hint_3.cjs.entry.js → r-icon-button_2.cjs.entry.js} +64 -51
- package/dist/cjs/r-icon.cjs.entry.js +1 -1
- package/dist/cjs/r-input-code.cjs.entry.js +133 -25
- package/dist/cjs/r-input-date.cjs.entry.js +87 -23
- package/dist/cjs/r-input-password.cjs.entry.js +34 -13
- package/dist/cjs/r-input-phone-number.cjs.entry.js +30 -22
- package/dist/cjs/r-input.cjs.entry.js +108 -49
- package/dist/cjs/r-list-item.cjs.entry.js +5 -5
- package/dist/cjs/r-pagination.cjs.entry.js +1 -1
- package/dist/cjs/r-panel.cjs.entry.js +2 -2
- package/dist/cjs/r-popover-action.cjs.entry.js +2 -2
- package/dist/cjs/r-popover-content.cjs.entry.js +1 -1
- package/dist/cjs/r-popover-headline.cjs.entry.js +1 -1
- package/dist/cjs/r-popover-trigger.cjs.entry.js +1 -1
- package/dist/cjs/r-popover.cjs.entry.js +3 -3
- package/dist/cjs/r-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/r-radio-button-description.cjs.entry.js +1 -1
- package/dist/cjs/r-radio-button-leading.cjs.entry.js +1 -1
- package/dist/cjs/r-radio-button-title.cjs.entry.js +1 -1
- package/dist/cjs/r-radio-button-trailing.cjs.entry.js +1 -1
- package/dist/cjs/r-radio-button.cjs.entry.js +29 -12
- package/dist/cjs/r-radio-group.cjs.entry.js +32 -32
- package/dist/cjs/r-select-option.cjs.entry.js +1 -1
- package/dist/cjs/r-select.cjs.entry.js +116 -40
- package/dist/cjs/r-skip-link.cjs.entry.js +1 -1
- package/dist/cjs/r-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/r-stepper.cjs.entry.js +1 -1
- package/dist/cjs/r-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/r-tab.cjs.entry.js +1 -1
- package/dist/cjs/r-tabs-list.cjs.entry.js +1 -1
- package/dist/cjs/r-tabs.cjs.entry.js +1 -1
- package/dist/cjs/r-textarea.cjs.entry.js +24 -23
- package/dist/cjs/r-toast-group.cjs.entry.js +1 -1
- package/dist/cjs/r-toast.cjs.entry.js +51 -20
- package/dist/cjs/web-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/accordion/accordion.css +0 -2
- package/dist/collection/components/accordion/accordion.js +4 -8
- package/dist/collection/components/accordion/exports.js +1 -1
- package/dist/collection/components/accordion-panel/accordion-panel.js +1 -1
- package/dist/collection/components/accordion-section/accordion-section.js +1 -1
- package/dist/collection/components/accordion-trigger/accordion-trigger.css +0 -4
- package/dist/collection/components/accordion-trigger/accordion-trigger.js +4 -215
- package/dist/collection/components/alert/alert.css +58 -12
- package/dist/collection/components/alert/alert.js +92 -17
- package/dist/collection/components/alert/exports.js +1 -1
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/button/button.css +6 -7
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +121 -104
- package/dist/collection/components/checkbox-group/checkbox-group.js +48 -63
- package/dist/collection/components/dialog/dialog.css +1 -3
- package/dist/collection/components/dialog/dialog.js +2 -10
- package/dist/collection/components/hint/hint.js +2 -2
- package/dist/collection/components/icon/bundled-icons/riverty-kit.json +1 -1
- package/dist/collection/components/icon/riverty-kit.js +1 -1
- package/dist/collection/components/icon-button/icon-button.css +0 -7
- package/dist/collection/components/icon-button/icon-button.js +3 -3
- package/dist/collection/components/input/input.css +3 -0
- package/dist/collection/components/input/input.js +221 -378
- package/dist/collection/components/input-code/exports.js +2 -0
- package/dist/collection/components/input-code/input-code.js +335 -34
- package/dist/collection/components/input-date/input-date.js +237 -87
- package/dist/collection/components/input-password/exports.js +1 -0
- package/dist/collection/components/input-password/input-password.css +1 -0
- package/dist/collection/components/input-password/input-password.js +233 -75
- package/dist/collection/components/input-phone-number/input-phone-number.js +50 -85
- package/dist/collection/components/label/label.js +3 -113
- package/dist/collection/components/list-item/list-item/list-item.css +7 -7
- package/dist/collection/components/list-item/list-item/list-item.js +4 -26
- package/dist/collection/components/pagination/pagination.css +23 -23
- package/dist/collection/components/panel/panel.js +2 -2
- package/dist/collection/components/popover/exports.js +0 -1
- package/dist/collection/components/popover/popover.css +13 -13
- package/dist/collection/components/popover/popover.js +2 -55
- package/dist/collection/components/popover-action/popover-action.css +3 -5
- package/dist/collection/components/popover-action/popover-action.js +1 -1
- package/dist/collection/components/popover-content/popover-content.js +1 -1
- package/dist/collection/components/popover-headline/popover-headline.js +1 -1
- package/dist/collection/components/popover-trigger/popover-trigger.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +49 -12
- package/dist/collection/components/radio-button-description/radio-button-description.js +1 -1
- package/dist/collection/components/radio-button-leading/radio-button-leading.js +1 -1
- package/dist/collection/components/radio-button-title/radio-button-title.js +1 -1
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +53 -135
- package/dist/collection/components/select/select.js +197 -349
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/skip-link/skip-link.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +2 -2
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tabs-list/tabs-list.js +1 -1
- package/dist/collection/components/textarea/textarea.js +44 -163
- package/dist/collection/components/toast/toast.css +22 -14
- package/dist/collection/components/toast/toast.js +95 -43
- package/dist/collection/components/toast-group/toast-group.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/esm/index-Da7qOBFr.js +6 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/r-accordion-panel.entry.js +1 -1
- package/dist/esm/r-accordion-section.entry.js +1 -1
- package/dist/esm/r-accordion-trigger.entry.js +5 -35
- package/dist/esm/r-accordion.entry.js +3 -7
- package/dist/esm/r-alert.entry.js +45 -14
- package/dist/esm/r-badge.entry.js +1 -1
- package/dist/esm/r-button.entry.js +2 -2
- package/dist/esm/r-checkbox-group.entry.js +28 -24
- package/dist/esm/r-checkbox.entry.js +97 -81
- package/dist/esm/r-dialog.entry.js +3 -11
- package/dist/esm/r-hint_2.entry.js +47 -0
- package/dist/esm/{r-hint_3.entry.js → r-icon-button_2.entry.js} +65 -51
- package/dist/esm/r-icon.entry.js +1 -1
- package/dist/esm/r-input-code.entry.js +133 -25
- package/dist/esm/r-input-date.entry.js +87 -23
- package/dist/esm/r-input-password.entry.js +34 -13
- package/dist/esm/r-input-phone-number.entry.js +30 -22
- package/dist/esm/r-input.entry.js +108 -49
- package/dist/esm/r-list-item.entry.js +5 -5
- package/dist/esm/r-pagination.entry.js +1 -1
- package/dist/esm/r-panel.entry.js +2 -2
- package/dist/esm/r-popover-action.entry.js +2 -2
- package/dist/esm/r-popover-content.entry.js +1 -1
- package/dist/esm/r-popover-headline.entry.js +1 -1
- package/dist/esm/r-popover-trigger.entry.js +1 -1
- package/dist/esm/r-popover.entry.js +3 -3
- package/dist/esm/r-progress-bar.entry.js +1 -1
- package/dist/esm/r-radio-button-description.entry.js +1 -1
- package/dist/esm/r-radio-button-leading.entry.js +1 -1
- package/dist/esm/r-radio-button-title.entry.js +1 -1
- package/dist/esm/r-radio-button-trailing.entry.js +1 -1
- package/dist/esm/r-radio-button.entry.js +29 -12
- package/dist/esm/r-radio-group.entry.js +32 -32
- package/dist/esm/r-select-option.entry.js +1 -1
- package/dist/esm/r-select.entry.js +116 -40
- package/dist/esm/r-skip-link.entry.js +1 -1
- package/dist/esm/r-stepper-item.entry.js +2 -2
- package/dist/esm/r-stepper.entry.js +1 -1
- package/dist/esm/r-tab-panel.entry.js +1 -1
- package/dist/esm/r-tab.entry.js +1 -1
- package/dist/esm/r-tabs-list.entry.js +1 -1
- package/dist/esm/r-tabs.entry.js +1 -1
- package/dist/esm/r-textarea.entry.js +24 -23
- package/dist/esm/r-toast-group.entry.js +1 -1
- package/dist/esm/r-toast.entry.js +51 -20
- package/dist/esm/web-components.js +1 -1
- package/dist/types/components/accordion/accordion.d.ts +1 -5
- package/dist/types/components/accordion/exports.d.ts +1 -1
- package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +0 -36
- package/dist/types/components/alert/alert.d.ts +9 -1
- package/dist/types/components/alert/exports.d.ts +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +29 -34
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +6 -11
- package/dist/types/components/dialog/dialog.d.ts +0 -2
- package/dist/types/components/input/input.d.ts +35 -72
- package/dist/types/components/input-code/exports.d.ts +4 -0
- package/dist/types/components/input-code/input-code.d.ts +54 -7
- package/dist/types/components/input-date/input-date.d.ts +30 -16
- package/dist/types/components/input-password/exports.d.ts +1 -0
- package/dist/types/components/input-password/input-password.d.ts +53 -16
- package/dist/types/components/input-phone-number/input-phone-number.d.ts +5 -16
- package/dist/types/components/label/label.d.ts +0 -18
- package/dist/types/components/list-item/list-item/list-item.d.ts +0 -6
- package/dist/types/components/popover/exports.d.ts +0 -2
- package/dist/types/components/popover/popover.d.ts +1 -14
- package/dist/types/components/radio-button/radio-button.d.ts +5 -0
- package/dist/types/components/radio-group/radio-group.d.ts +6 -28
- package/dist/types/components/select/select.d.ts +34 -52
- package/dist/types/components/textarea/textarea.d.ts +5 -32
- package/dist/types/components/toast/toast.d.ts +10 -7
- package/dist/types/components.d.ts +347 -647
- package/dist/web-components/bundled-icons/riverty-kit.json +1 -1
- package/dist/web-components/p-0347feff.entry.js +1 -0
- package/dist/web-components/p-05738503.entry.js +1 -0
- package/dist/web-components/p-0e4c8bf1.entry.js +1 -0
- package/dist/web-components/p-1da75540.entry.js +1 -0
- package/dist/web-components/p-26ef77d6.entry.js +1 -0
- package/dist/web-components/p-3884c6e7.entry.js +1 -0
- package/dist/web-components/p-3a5a67e7.entry.js +1 -0
- package/dist/web-components/p-3f60c6c0.entry.js +1 -0
- package/dist/web-components/p-4254a383.entry.js +1 -0
- package/dist/web-components/{p-87f39749.entry.js → p-4595fa8e.entry.js} +1 -1
- package/dist/web-components/{p-4e3df002.entry.js → p-4cc58c6a.entry.js} +1 -1
- package/dist/web-components/p-5441b746.entry.js +1 -0
- package/dist/web-components/{p-72fa1fd1.entry.js → p-550e2237.entry.js} +1 -1
- package/dist/web-components/p-589baaf9.entry.js +1 -0
- package/dist/web-components/p-60341de2.entry.js +1 -0
- package/dist/web-components/{p-4bd3e077.entry.js → p-60ca994e.entry.js} +1 -1
- package/dist/web-components/{p-44ae9f33.entry.js → p-62b788bf.entry.js} +1 -1
- package/dist/web-components/{p-2b2f581a.entry.js → p-6303b9fe.entry.js} +1 -1
- package/dist/web-components/p-63fd817d.entry.js +1 -0
- package/dist/web-components/{p-e0e2f2b2.entry.js → p-673dbfd0.entry.js} +1 -1
- package/dist/web-components/p-67fa3f84.entry.js +1 -0
- package/dist/web-components/p-6a4f3836.entry.js +1 -0
- package/dist/web-components/p-6cc2ea2c.entry.js +1 -0
- package/dist/web-components/p-70784685.entry.js +1 -0
- package/dist/web-components/{p-429213ea.entry.js → p-7fed6f4d.entry.js} +1 -1
- package/dist/web-components/p-8a66d20c.entry.js +1 -0
- package/dist/web-components/{p-0bb04d79.entry.js → p-8b4d2448.entry.js} +1 -1
- package/dist/web-components/{p-c7f8e59b.entry.js → p-8c31cbd5.entry.js} +1 -1
- package/dist/web-components/p-8dac326b.entry.js +1 -0
- package/dist/web-components/{p-1c2497de.entry.js → p-9ef1bbee.entry.js} +1 -1
- package/dist/web-components/p-a0dbde7c.entry.js +1 -0
- package/dist/web-components/{p-755cc697.entry.js → p-a71485d8.entry.js} +1 -1
- package/dist/web-components/p-a7d22c76.entry.js +1 -0
- package/dist/web-components/{p-85a9af42.entry.js → p-ae251d2f.entry.js} +1 -1
- package/dist/web-components/{p-77155630.entry.js → p-b98ab649.entry.js} +1 -1
- package/dist/web-components/p-b9e3b3d6.entry.js +1 -0
- package/dist/web-components/p-c1e748f2.entry.js +1 -0
- package/dist/web-components/p-c478712b.entry.js +1 -0
- package/dist/web-components/{p-72c0c0d8.entry.js → p-d054eb4d.entry.js} +1 -1
- package/dist/web-components/p-d433a828.entry.js +1 -0
- package/dist/web-components/p-d7726e46.entry.js +1 -0
- package/dist/web-components/p-d819c8e5.entry.js +1 -0
- package/dist/web-components/p-e2188953.entry.js +1 -0
- package/dist/web-components/{p-3b4e3faf.entry.js → p-e5945c01.entry.js} +1 -1
- package/dist/web-components/{p-d1379ac6.entry.js → p-f9d5004c.entry.js} +1 -1
- package/dist/web-components/web-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/r-accordion-item.cjs.entry.js +0 -78
- package/dist/cjs/r-icon-button.cjs.entry.js +0 -81
- package/dist/collection/components/accordion-item/accordion-item.css +0 -121
- package/dist/collection/components/accordion-item/accordion-item.js +0 -138
- package/dist/esm/r-accordion-item.entry.js +0 -76
- package/dist/esm/r-icon-button.entry.js +0 -79
- package/dist/types/components/accordion-item/accordion-item.d.ts +0 -26
- package/dist/web-components/p-00ca474f.entry.js +0 -1
- package/dist/web-components/p-289eb4b0.entry.js +0 -1
- package/dist/web-components/p-2b8e12ae.entry.js +0 -1
- package/dist/web-components/p-2e2c8a5b.entry.js +0 -1
- package/dist/web-components/p-3a39932b.entry.js +0 -1
- package/dist/web-components/p-3bc93d65.entry.js +0 -1
- package/dist/web-components/p-44be9992.entry.js +0 -1
- package/dist/web-components/p-4652635a.entry.js +0 -1
- package/dist/web-components/p-51a5804b.entry.js +0 -1
- package/dist/web-components/p-63474b32.entry.js +0 -1
- package/dist/web-components/p-74d2a563.entry.js +0 -1
- package/dist/web-components/p-7ad8e78b.entry.js +0 -1
- package/dist/web-components/p-8028c2a9.entry.js +0 -1
- package/dist/web-components/p-96ddeb7f.entry.js +0 -1
- package/dist/web-components/p-9d898089.entry.js +0 -1
- package/dist/web-components/p-9e50120b.entry.js +0 -1
- package/dist/web-components/p-9eb1f262.entry.js +0 -1
- package/dist/web-components/p-a022f356.entry.js +0 -1
- package/dist/web-components/p-a7e7f8fa.entry.js +0 -1
- package/dist/web-components/p-b2f03016.entry.js +0 -1
- package/dist/web-components/p-c300c22f.entry.js +0 -1
- package/dist/web-components/p-c937bd92.entry.js +0 -1
- package/dist/web-components/p-cbcd7699.entry.js +0 -1
- package/dist/web-components/p-d93c240d.entry.js +0 -1
- package/dist/web-components/p-e4b66277.entry.js +0 -1
- package/dist/web-components/p-e6a31881.entry.js +0 -1
- package/dist/web-components/p-f6a92287.entry.js +0 -1
- package/dist/web-components/p-f770e22b.entry.js +0 -1
- package/dist/web-components/p-f952161b.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-Da7qOBFr.js';
|
|
2
2
|
|
|
3
|
-
const alertCss = ":host([status=info]){--color:var(--r-status-info-soft, #f8fafb);--background-color:var(--r-status-info-regular, #3e5c73)}:host([status=
|
|
3
|
+
const alertCss = ":host([status=info]){--color:var(--r-status-info-soft, #f8fafb);--background-color:var(--r-status-info-regular, #3e5c73)}:host([status=warning]){--color:var(--r-text-warning, #000000);--r-alert--leading-icon--color:var(--r-icon-warning, #000000);--background-color:var(--r-status-warning-regular, #ff7429)}:host([status=error]){--color:var(--r-status-error-soft, #fef6f6);--background-color:var(--r-status-error-regular, #b00c15)}:host([status=error]) r-icon-button:hover,:host([status=info]) r-icon-button:hover{--r-icon-button--background-color:var(--r-background-interactive-hovered-inverse, rgba(243, 241, 240, 0.04))}:host([status=error]) r-icon-button:active,:host([status=info]) r-icon-button:active{--r-icon-button--background-color:var(--r-background-interactive-pressed-inverse, rgba(243, 241, 240, 0.12))}:host([status=error]) .r-alert--link:hover,:host([status=error]) ::slotted(r-button:hover:not([disabled]):not([disabled=true])),:host([status=info]) .r-alert--link:hover,:host([status=info]) ::slotted(r-button:hover:not([disabled]):not([disabled=true])){--r-button--background-color:var(--r-background-interactive-hovered-inverse, rgba(243, 241, 240, 0.04))}:host([status=error]) .r-alert--link:active,:host([status=error]) ::slotted(r-button:active:not([disabled]):not([disabled=true])),:host([status=info]) .r-alert--link:active,:host([status=info]) ::slotted(r-button:active:not([disabled]):not([disabled=true])){--r-button--background-color--active:var(--r-background-interactive-pressed-inverse, rgba(243, 241, 240, 0.12))}:host([aria-hidden=true]){--transition:all 0.5s;--position:absolute;--visibility:hidden;--opacity:0;--z-index:-1}:host{display:var(--display, block);color:var(--color, var(--r-status-info-soft, #f8fafb));background-color:var(--background-color, var(--r-status-info-regular, #3e5c73));position:var(--position, relative);width:var(--width, 100%);left:var(--left, 0);transition:var(--transition, none);visibility:var(--visibility, visible);opacity:var(--opacity, 1);z-index:var(--z-index, unset);font-family:var(--font-family, var(--r-font-family-text, system-ui));font-size:var(--font-size, var(--r-font-size-400, 1rem));font-weight:var(--font-weight, var(--r-font-weight-regular, 400))}@media (prefers-reduced-motion){:host{transition:none}}.r-alert{display:var(--r-alert--display, grid);grid-template-columns:var(--r-alert--grid-template-columns, auto 1fr auto);gap:var(--r-alert--gap, var(--r-spacing-100, 1rem));padding:var(--r-alert--padding, 16px);box-sizing:var(--r-alert--box-sizing, border-box)}.r-alert:empty{--r-alert--display:none}.r-alert--main{display:var(--r-alert--main--display, flex);flex-flow:var(--r-alert--main--flex-flow, column);gap:var(--r-alert--main--gap, var(--r-spacing-050))}.r-alert--main:not(:has(.r-alert--headline)){--r-alert--content--margin-top:var(--r-spacing-025, 0.25rem)}.r-alert--headline{color:var(--r-alert--headline--color, var(--color));font-size:var(--r-alert--headline--font-size, var(--r-font-size-400, 1rem));font-weight:var(--r-alert--headline--font-weight, var(--r-font-weight-semibold, 600));line-height:var(--r-alert--headline--line-height, var(--r-line-height-m, 1.5));margin:var(--r-alert--headline--margin, 0)}.r-alert--leading{color:var(--r-alert--leading-icon--color, var(--color))}.r-alert--trailing r-icon-button{--r-button--padding:0;--r-button--color:var(--color)}.r-alert--content{margin-top:var(--r-alert--content--margin-top, 0)}.r-alert--link,.r-alert ::slotted(r-button){--r-button--background-color:transparent;--r-button--border-width:0;--r-button--color:var(--r-alert--link--color, var(--color));--r-button--padding:10px 2px 18px 2px;--r-button--slot--text-decoration:underline;--r-button--slot--text-underline-offset:9px}.r-alert--link:hover,.r-alert ::slotted(r-button:hover:not([disabled]):not([disabled=true])){--r-button--background-color:var(--r-background-interactive-hovered)}.r-alert--link:active,.r-alert ::slotted(r-button:active:not([disabled]):not([disabled=true])){--r-button--color--active:var(--r-alert--link--color, var(--color));--r-button--background-color--active:var(--r-background-interactive-pressed)}";
|
|
4
4
|
|
|
5
5
|
const Alert = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -8,17 +8,26 @@ const Alert = class {
|
|
|
8
8
|
this.rClickAlertTrailingIcon = createEvent(this, "rClickAlertTrailingIcon");
|
|
9
9
|
/** Alert status controls apperance according to the status */
|
|
10
10
|
this.status = 'info';
|
|
11
|
+
/** Sets role="alert" and will be announced to screen reader users */
|
|
12
|
+
this.announced = true;
|
|
11
13
|
/** Defines an icon size to be presented in leading slot*/
|
|
12
14
|
this.leadingIconSize = 'm';
|
|
15
|
+
/**
|
|
16
|
+
* Defines whether the leading icon is visible.
|
|
17
|
+
* @default true
|
|
18
|
+
* */
|
|
19
|
+
this.leadingIconVisible = true;
|
|
20
|
+
/** Defines an icon to be presented in trailing slot */
|
|
21
|
+
this.trailingIcon = 'cross';
|
|
13
22
|
/** Defines an icon size to be presented in trailing slot*/
|
|
14
|
-
this.trailingIconSize = '
|
|
23
|
+
this.trailingIconSize = 'm';
|
|
15
24
|
/**
|
|
16
25
|
* Defines the target for the linked URL when `href` is provided.
|
|
17
26
|
* Options: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
|
|
18
27
|
*/
|
|
19
28
|
this.target = '_self';
|
|
20
29
|
/** Text content for an alert dismiss button */
|
|
21
|
-
this.dismissButtonAriaLabel = '
|
|
30
|
+
this.dismissButtonAriaLabel = 'Dismiss alert';
|
|
22
31
|
this.isElContent = (selector) => {
|
|
23
32
|
const el = this.host.querySelector(selector);
|
|
24
33
|
return el !== null && (el === null || el === void 0 ? void 0 : el.textContent.trim().length) > 0;
|
|
@@ -38,15 +47,11 @@ const Alert = class {
|
|
|
38
47
|
this.collapseAlert();
|
|
39
48
|
};
|
|
40
49
|
}
|
|
41
|
-
get isLeadingIcon() {
|
|
42
|
-
var _a, _b;
|
|
43
|
-
return ((_a = this.leadingIcon) === null || _a === void 0 ? void 0 : _a.length) > 0 || ((_b = this.leadingIconSrc) === null || _b === void 0 ? void 0 : _b.length) > 0;
|
|
44
|
-
}
|
|
45
50
|
get isLeadingSlot() {
|
|
46
51
|
return this.isElContent('[slot="leading"]');
|
|
47
52
|
}
|
|
48
53
|
get isLeading() {
|
|
49
|
-
return this.
|
|
54
|
+
return this.leadingIconVisible || this.isLeadingSlot;
|
|
50
55
|
}
|
|
51
56
|
get isTrailingIcon() {
|
|
52
57
|
var _a, _b;
|
|
@@ -79,13 +84,39 @@ const Alert = class {
|
|
|
79
84
|
get isDelay() {
|
|
80
85
|
return this.delay && this.delay >= 0;
|
|
81
86
|
}
|
|
87
|
+
get headlineSlotContent() {
|
|
88
|
+
var _a;
|
|
89
|
+
const el = this.host.querySelector('[slot="headline"]');
|
|
90
|
+
return (_a = el === null || el === void 0 ? void 0 : el.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
91
|
+
}
|
|
92
|
+
get statusBasedLeadingIconName() {
|
|
93
|
+
if (this.leadingIcon)
|
|
94
|
+
return this.leadingIcon;
|
|
95
|
+
switch (this.status) {
|
|
96
|
+
case 'info':
|
|
97
|
+
return 'circled-information-i';
|
|
98
|
+
case 'warning':
|
|
99
|
+
return 'circled-exclamation-mark';
|
|
100
|
+
case 'error':
|
|
101
|
+
return 'triangle-with-exclamation-mark';
|
|
102
|
+
default:
|
|
103
|
+
return 'circled-information-i';
|
|
104
|
+
}
|
|
105
|
+
}
|
|
82
106
|
componentDidLoad() {
|
|
83
107
|
if (this.isDelay)
|
|
84
108
|
this.startCollapseTimer();
|
|
85
109
|
}
|
|
86
110
|
render() {
|
|
111
|
+
const hostAttrs = this.announced ? {
|
|
112
|
+
role: 'alert',
|
|
113
|
+
'aria-live': this.status === 'info' ? 'polite' : 'assertive'
|
|
114
|
+
} : {
|
|
115
|
+
role: 'region',
|
|
116
|
+
'aria-label': this.headlineSlotContent || this.headline || null
|
|
117
|
+
};
|
|
87
118
|
const leadingIconAttrs = {
|
|
88
|
-
name: this.
|
|
119
|
+
name: this.statusBasedLeadingIconName,
|
|
89
120
|
src: this.leadingIconSrc,
|
|
90
121
|
size: this.leadingIconSize
|
|
91
122
|
};
|
|
@@ -94,14 +125,14 @@ const Alert = class {
|
|
|
94
125
|
src: this.trailingIconSrc,
|
|
95
126
|
size: this.trailingIconSize
|
|
96
127
|
};
|
|
97
|
-
return (h(Host, { key: '
|
|
98
|
-
h("div", { key: '
|
|
128
|
+
return (h(Host, Object.assign({ key: 'e0bb7ba3b7ca0c93e47c20c8666489976b52fe6d' }, hostAttrs), h("div", { key: 'c13d2517796fb274af8632a574196603feb13e61', class: "r-alert" }, this.isLeading &&
|
|
129
|
+
h("div", { key: 'b38044eb982c0b9fcd352122a6d21008e1802abb', class: "r-alert--leading" }, h("slot", { key: '01a26f5684ab9dc959c5f79cb8694a23621d091f', name: "leading" }, this.leadingIconVisible && h("r-icon", Object.assign({ key: '36b7c3e1c35faee26737e0f165ecad79c109bd4f' }, leadingIconAttrs)))), this.isMain ?
|
|
99
130
|
h("div", { class: "r-alert--main" }, h("slot", { name: "headline" }, this.isHeadline && h("h3", { class: "r-alert--headline" }, this.headline)), h("slot", { name: "content" }, this.isContent && h("div", { class: "r-alert--content" }, this.content)), h("slot", { name: "link" }, this.isLink &&
|
|
100
|
-
h("
|
|
131
|
+
h("r-button", { class: "r-alert--link", variant: "text-inline", size: "small", href: this.href, target: this.target }, this.linkText)), h("slot", null))
|
|
101
132
|
:
|
|
102
133
|
h("slot", null), this.isTrailing &&
|
|
103
|
-
h("div", { key: '
|
|
104
|
-
h("r-button", { key: '
|
|
134
|
+
h("div", { key: 'dc9b171a6263c167a08816bfb2c149376eef6d34', class: "r-alert--trailing" }, h("slot", { key: '2d31946de22bb1cc247969207fc4243e4fcd7c08', name: "trailing" }, this.isTrailingIcon &&
|
|
135
|
+
h("r-icon-button", { key: '0c738aed534f98062835a59b55fe7b83e20473fb', name: !this.trailingIconSrc ? this.trailingIcon : null, onClick: this.handleTrailingButtonClick, label: this.dismissButtonAriaLabel }, this.trailingIconSrc && h("r-icon", Object.assign({ key: '13653d686f0886f16c157cdb3a499abbd5006d2b' }, trailingIconAttrs))))))));
|
|
105
136
|
}
|
|
106
137
|
get host() { return getElement(this); }
|
|
107
138
|
};
|
|
@@ -30,7 +30,7 @@ const RBadge = class {
|
|
|
30
30
|
const hostAttrs = {
|
|
31
31
|
variant
|
|
32
32
|
};
|
|
33
|
-
return (h(Host, Object.assign({ key: '
|
|
33
|
+
return (h(Host, Object.assign({ key: '414f16e5a8bde16b295420ea689be3b528b6b9d7' }, hostAttrs), h("div", { key: 'd06b6b22be283666817326c82503080c247b3cb7', class: "r-badge" }, iconVisible && h("slot", { key: '38e1c8768bbc6560294f798ba635bb6a1ecd5ee1', name: "icon" }, h("r-icon", { key: 'da0d4672b3fd929deb32944faeb2cf6676dd0751', size: "s", name: this.iconName, iconAriaLabel: iconAriaLabel })), h("slot", { key: 'f0c3ce3e33ddb887af28e03cbd9af75f0fe0346e' }))));
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
RBadge.style = badgeCss;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-Da7qOBFr.js';
|
|
2
2
|
|
|
3
|
-
const buttonCss = ":host{display:inline-flex;vertical-align:top;opacity:1;outline:none}:host(:focus-within:not(:active)){--r-button--box-shadow:0 0 0 1px var(--r-border-focused-outlined, #fff),\n 0 0 0 3px var(--r-border-focused),\n 0 0 0 4px var(--r-border-focused-outlined, #fff);--r-button--outline:2px solid var(--r-border-focused);--r-button--outline-offset:2px}:host(:hover:not(:active):not([disabled]:not([disabled=false]))){--r-button--border-color:var(--r-border-soft, #686868);--r-button--color:var(--r-text-regular, #282828);--r-button--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04))}:host([disabled]:not([disabled=false])){--r-button--opacity:0.4;--r-button--cursor:not-allowed;--r-button--box-shadow:none}:host([size=small]){--r-button--font-size:var(--r-font-size-300, 0.875rem);--r-button--padding:0.642em 0.857em;--r-button--height:2.75rem}:host([icon-position=end]){--r-button--slot--flex-direction:row-reverse}:host([data-icon-only=start]){--r-button--padding:0.875em}:host([variant=secondary]){--r-button--color:var(--r-text-regular, #282828);--r-button--border-color:var(--r-border-regular, #282828);--r-button--background-color:rgba(0,0,0,0)}:host([variant=secondary]:not([disabled]:not([disabled=false])):hover){--r-button--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04));--r-button--border-color:var(--r-border-soft, #686868)}:host([variant=secondary] .r-button[aria-disabled=
|
|
3
|
+
const buttonCss = ":host{display:inline-flex;vertical-align:top;opacity:1;outline:none}:host(:focus-within:not(:active)){--r-button--box-shadow:0 0 0 1px var(--r-border-focused-outlined, #fff),\n 0 0 0 3px var(--r-border-focused),\n 0 0 0 4px var(--r-border-focused-outlined, #fff);--r-button--outline:2px solid var(--r-border-focused);--r-button--outline-offset:2px}:host(:hover:not(:active):not([disabled]:not([disabled=false]))){--r-button--border-color:var(--r-border-soft, #686868);--r-button--color:var(--r-text-regular, #282828);--r-button--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04))}:host([disabled]:not([disabled=false])){--r-button--opacity:0.4;--r-button--cursor:not-allowed;--r-button--box-shadow:none}:host([size=small]){--r-button--font-size:var(--r-font-size-300, 0.875rem);--r-button--padding:0.642em 0.857em;--r-button--height:2.75rem}:host([icon-position=end]){--r-button--slot--flex-direction:row-reverse}:host([data-icon-only=start]){--r-button--padding:0.875em}:host([variant=secondary]){--r-button--color:var(--r-text-regular, #282828);--r-button--border-color:var(--r-border-regular, #282828);--r-button--background-color:rgba(0,0,0,0)}:host([variant=secondary]:not([disabled]:not([disabled=false])):hover){--r-button--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04));--r-button--border-color:var(--r-border-soft, #686868)}:host([variant=secondary] .r-button:not([aria-disabled=true]):active){--r-button--color:var(--r-text-regular, #282828);--r-button--border-color:var(--r-border-soft, #686868);--r-button--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12))}:host([variant=text]){--r-button--color:var(--r-text-regular, #282828);--r-button--border-color:rgba(0,0,0,0);--r-button--background-color:rgba(0,0,0,0);--r-button--slot--position:relative;--r-button--slot--text-decoration:underline}:host([variant=text]:hover:not([disabled]:not([disabled=false]))){--r-button--border-color:var(--r-border-soft, #686868);--r-button--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04))}:host([variant=text] .r-button:not([aria-disabled=true]):active){--r-button--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12));--r-button--border-color:var(--r-border-soft, #686868)}:host([variant=text][text-position=left]){--r-button--padding:0.875em var(--spacing-175, 1.75rem) 0.875em 0}:host([variant=text][text-position=right]){--r-button--padding:0.875em 0 0.875em var(--spacing-175, 1.75rem)}:host([variant=text-inline]){--r-button--color:var(--r-text-regular, #282828);--r-button--border-color:transparent;--r-button--background-color:transparent;--r-button--padding:0 0 0.5rem 0;--r-button--height:auto;--r-button--slot--text-decoration:underline}:host([variant=text-inline]:hover:not([disabled]:not([disabled=false]))){--r-button--slot--text-decoration:none;--r-button--border-color:transparent;--r-button--background-color:transparent}:host([variant=text-inline]:active:not([disabled]:not([disabled=false]))){--r-button--border-color:transparent;--r-button--background-color:transparent}:host([variant=blank]){--r-button--color:var(--r-text-regular, #282828);--r-button--border-color:rgba(0,0,0,0);--r-button--background-color:rgba(0,0,0,0);--r-button--border-width:0;--r-button--padding:0}:host([variant=blank]) .r-button:active{--r-button--border-width:0;--r-button--background-color:rgba(0,0,0,0)}:host([variant=blank]:hover:not([disabled]:not([disabled=false]))){--r-button--color:var(--r-text-regular, #282828)}:host([expanded]),:host([full-width]:not([full-width=false])){display:block;--r-button--display:flex;--r-button--width:100%}.r-button{display:var(--r-button--display, inline-flex);align-items:var(--r-button--align-items, center);justify-content:var(--r-button--justify-content, center);width:var(--r-button--width, auto);height:var(--r-button--height, 3rem);position:var(--r-button--position, static);top:var(--r-button--top, auto);left:var(--r-button--left, auto);box-sizing:var(--r-button--box-sizing, border-box);outline:var(--r-button--outline, none);outline-offset:var(--r-button--outline-offset, 0);cursor:var(--r-button--cursor, pointer);font-family:var(--r-button--font-family, var(--r-font-family-text, system-ui));font-weight:var(--r-button--font-weight, 400);text-align:var(--r-button--text-align, center);text-transform:var(--r-button--text-transform, uppercase);text-decoration:var(--r-button--text-decoration, none);background-color:var(--r-button--background-color, var(--r-background-interactive-regular, #282828));border-width:var(--r-button--border-width, 1px);border-style:var(--r-button--border-style, solid);border-color:var(--r-button--border-color, var(--r-border-strong, #000));color:var(--r-button--color, var(--r-text-inverse, #fff));font-size:var(--r-button--font-size, var(--r-font-size-400, 1rem));line-height:var(--r-button--line-height, 1);letter-spacing:var(--r-button--letter-spacing, 0.04em);padding:var(--r-button--padding, 0.875em var(--r-spacing-175, 1.75rem));box-shadow:var(--r-button--box-shadow, none);pointer-events:var(--r-button--pointer-events, auto);z-index:var(--r-button--z-index, initial);vertical-align:var(--r-button--vertical-align, top);opacity:var(--r-button--opacity, 1)}.r-button:not([aria-disabled=true]):active{--r-button--color:var(--r-button--color--active, var(--r-text-regular, #282828));--r-button--background-color:var(--r-button--background-color--active, var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12)));--r-button--border-color:var(--r-button--border-color--active, var(--r-border-soft, #686868))}.r-button--slot{position:var(--r-button--slot--position, relative);display:var(--r-button--slot--display, flex);flex:var(--r-button--slot--flex, 1);flex-direction:var(--r-button--slot--flex-direction, row);align-items:var(--r-button--slot--align-items, center);justify-content:var(--r-button--slot--justify-content, center);gap:var(--r-button--gap, 0.5em);font-weight:var(--r-button--slot--font-weight, var(--r-font-weight-regular, 400));text-decoration:var(--r-button--slot--text-decoration, none);text-decoration-color:var(--r-button--slot--text-decoration-color, var(--r-button-color, inherit));text-underline-offset:var(--r-button--slot--text-underline-offset, 0.5rem)}";
|
|
4
4
|
|
|
5
5
|
const Button = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -131,7 +131,7 @@ const Button = class {
|
|
|
131
131
|
position: iconPosition
|
|
132
132
|
};
|
|
133
133
|
const TagName = isLink ? 'a' : 'button';
|
|
134
|
-
return (h(Host, { key: '
|
|
134
|
+
return (h(Host, { key: '97dbd8b4be7ada112d733f3e8838bb98b23ea37d' }, h(TagName, Object.assign({ key: '51ac8df717d9db6901b0bf313987fca0aa3c9e0e', class: "r-button" }, attrs, { "aria-label": rAriaLabel || null, ref: (el) => (this.nativeElement = el), onClick: this.handleClick }), h("span", { key: '5d18e8d4d11946a950196113ca34b13389d380d7', class: "r-button--slot" }, icon && h("r-icon", Object.assign({ key: 'b0eab29fd53184befd2e63cc48b8e9fa5262f742', name: icon }, iconAttrs, { size: "s" })), this.hasIconSlot && h("slot", { key: '1679c43372773a8888d790afcee23d4b4a4d5969', name: "icon" }), h("div", { key: 'd3862e66255a78e2cfb0ae3741cd8f82e4efc0ea', style: { display: 'contents' } }, h("slot", { key: '68dc5cbb93492c37139d6efdbc706050271f710f', onSlotchange: this.handleSlotChange }))))));
|
|
135
135
|
}
|
|
136
136
|
get host() { return getElement(this); }
|
|
137
137
|
static get watchers() { return {
|
|
@@ -14,13 +14,6 @@ const CheckboxGroup = class {
|
|
|
14
14
|
* Specifies whether the `value` is required.
|
|
15
15
|
*/
|
|
16
16
|
this.required = false;
|
|
17
|
-
/**
|
|
18
|
-
* _DEPRECATED_ (This property will be removed in November 2025 release.)
|
|
19
|
-
* Indicates whether to show the validation state.
|
|
20
|
-
* When set to `true`, the component will display validation feedback.
|
|
21
|
-
* Defaults to `false`.
|
|
22
|
-
* */
|
|
23
|
-
this.showValid = false;
|
|
24
17
|
this.indeterminate = false;
|
|
25
18
|
this.allChecked = false;
|
|
26
19
|
this.noChecked = false;
|
|
@@ -32,24 +25,30 @@ const CheckboxGroup = class {
|
|
|
32
25
|
const variant = this.valid ? 'success' : 'error';
|
|
33
26
|
return (h("r-hint", { variant: variant, role: "alert", "aria-live": "polite", id: `${this.uniqueId}-message`, class: this.message ? null : 'visually-hidden' }, this.message));
|
|
34
27
|
};
|
|
35
|
-
this.
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
this.getValidityStateData = () => {
|
|
29
|
+
let validityState = '';
|
|
30
|
+
let validityMessage = '';
|
|
38
31
|
const isValid = this.checkboxes.some(checkbox => checkbox.checked);
|
|
39
32
|
if (this.required && !isValid) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
this.invalid = true;
|
|
43
|
-
this.valid = false;
|
|
44
|
-
this.noChecked = true;
|
|
33
|
+
validityState = 'valueMissing';
|
|
34
|
+
validityMessage = this.valueMissingMessage || 'Please select at least one option.';
|
|
45
35
|
}
|
|
46
36
|
else {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
this.invalid = false;
|
|
50
|
-
this.valid = true;
|
|
51
|
-
this.noChecked = false;
|
|
37
|
+
validityState = 'valid';
|
|
38
|
+
validityMessage = null;
|
|
52
39
|
}
|
|
40
|
+
return { validityState, validityMessage };
|
|
41
|
+
};
|
|
42
|
+
this.validateGroup = () => {
|
|
43
|
+
if (this.isNoValidate || !this.required)
|
|
44
|
+
return;
|
|
45
|
+
const { validityState, validityMessage } = this.getValidityStateData();
|
|
46
|
+
this.validityState = validityState;
|
|
47
|
+
this.validityMessage = validityMessage;
|
|
48
|
+
const isValid = this.validityState === 'valid';
|
|
49
|
+
this.valid = isValid;
|
|
50
|
+
this.invalid = !isValid;
|
|
51
|
+
this.noChecked = !isValid;
|
|
53
52
|
this.rValidate.emit({
|
|
54
53
|
state: this.validityState,
|
|
55
54
|
message: this.validityMessage
|
|
@@ -69,6 +68,14 @@ const CheckboxGroup = class {
|
|
|
69
68
|
this.resetToInitial();
|
|
70
69
|
};
|
|
71
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Validates the checkbox group without triggering UI and returns a boolean indicating its validity.
|
|
73
|
+
* @returns A boolean indicating whether the checkbox is valid.
|
|
74
|
+
*/
|
|
75
|
+
async checkValidity() {
|
|
76
|
+
const { validityState } = this.getValidityStateData();
|
|
77
|
+
return validityState === 'valid';
|
|
78
|
+
}
|
|
72
79
|
/**
|
|
73
80
|
* Resets the validity state and message of the radio group.
|
|
74
81
|
* This method clears the validity message and state, and sets the invalid
|
|
@@ -145,11 +152,8 @@ const CheckboxGroup = class {
|
|
|
145
152
|
this.noChecked = checkedCheckboxes.length === 0;
|
|
146
153
|
}
|
|
147
154
|
get message() {
|
|
148
|
-
const {
|
|
155
|
+
const { validityMessage, invalid, error, customErrorMessage } = this;
|
|
149
156
|
let message = null;
|
|
150
|
-
if (valid) {
|
|
151
|
-
message = validMessage || null;
|
|
152
|
-
}
|
|
153
157
|
if (invalid) {
|
|
154
158
|
message = error || customErrorMessage || validityMessage || null;
|
|
155
159
|
}
|
|
@@ -9,25 +9,29 @@ const Checkbox = class {
|
|
|
9
9
|
this.rChange = createEvent(this, "rChange");
|
|
10
10
|
this.rReset = createEvent(this, "rReset");
|
|
11
11
|
this.rValidate = createEvent(this, "rValidate");
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
* Controls the visibility of validation indicators for the field.
|
|
15
|
-
* */
|
|
16
|
-
this.showValid = false;
|
|
12
|
+
/** Automatically focus the checkbox when the component is mounted. Note: Only one element per page should have autofocus set to true, following browser standard behavior. */
|
|
13
|
+
this.autofocus = false;
|
|
17
14
|
this.validityState = '';
|
|
18
15
|
this.validityMessage = '';
|
|
16
|
+
this.touched = false;
|
|
17
|
+
// Private properties
|
|
19
18
|
this.initial = {};
|
|
19
|
+
this.uniqueId = `r-checkbox-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
20
|
+
// Private methods
|
|
20
21
|
this.getValidityStateData = (element) => {
|
|
22
|
+
let validityState = '';
|
|
23
|
+
let validityMessage = '';
|
|
21
24
|
for (const state in element.validity) {
|
|
22
25
|
if (element.validity[state]) {
|
|
23
|
-
|
|
26
|
+
validityState = state;
|
|
24
27
|
if (this[state + 'Message']) {
|
|
25
|
-
|
|
26
|
-
return;
|
|
28
|
+
validityMessage = this[state + 'Message'];
|
|
29
|
+
return { validityState, validityMessage };
|
|
27
30
|
}
|
|
28
|
-
|
|
31
|
+
validityMessage = element.validationMessage;
|
|
29
32
|
}
|
|
30
33
|
}
|
|
34
|
+
return { validityState, validityMessage };
|
|
31
35
|
};
|
|
32
36
|
this.validateFormElement = (element = null) => {
|
|
33
37
|
if (element === null)
|
|
@@ -36,7 +40,9 @@ const Checkbox = class {
|
|
|
36
40
|
return;
|
|
37
41
|
if (this.error)
|
|
38
42
|
return;
|
|
39
|
-
this.getValidityStateData(element);
|
|
43
|
+
const { validityState, validityMessage } = this.getValidityStateData(element);
|
|
44
|
+
this.validityState = validityState;
|
|
45
|
+
this.validityMessage = validityMessage;
|
|
40
46
|
const isValid = this.validityState === 'valid';
|
|
41
47
|
this.valid = isValid;
|
|
42
48
|
this.invalid = !isValid;
|
|
@@ -45,9 +51,6 @@ const Checkbox = class {
|
|
|
45
51
|
message: this.validityMessage
|
|
46
52
|
});
|
|
47
53
|
};
|
|
48
|
-
/** Unique id */
|
|
49
|
-
this.uniqueId = `r-checkbox-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
50
|
-
this.touched = false;
|
|
51
54
|
this.handleClick = (event) => {
|
|
52
55
|
if (this.disabled)
|
|
53
56
|
return;
|
|
@@ -79,18 +82,13 @@ const Checkbox = class {
|
|
|
79
82
|
this.contributeToFormData = (event) => {
|
|
80
83
|
appendControlToFormData(this.nativeElement || this.host, event.formData);
|
|
81
84
|
};
|
|
85
|
+
this.applyAutofocus = () => {
|
|
86
|
+
queueMicrotask(() => {
|
|
87
|
+
this.setFocus();
|
|
88
|
+
});
|
|
89
|
+
};
|
|
82
90
|
}
|
|
83
|
-
|
|
84
|
-
get parentFormEl() {
|
|
85
|
-
return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
|
|
86
|
-
}
|
|
87
|
-
/** Determine whether this element should be ignored during Constraint Validation API validation. */
|
|
88
|
-
get isNoValidate() {
|
|
89
|
-
var _a;
|
|
90
|
-
return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
|
|
91
|
-
this.novalidate ||
|
|
92
|
-
false);
|
|
93
|
-
}
|
|
91
|
+
// Public Methods
|
|
94
92
|
/**
|
|
95
93
|
* Asynchronously retrieves the validity state of the checkbox.
|
|
96
94
|
*
|
|
@@ -103,56 +101,14 @@ const Checkbox = class {
|
|
|
103
101
|
* - `message`: A string containing the validity message.
|
|
104
102
|
*/
|
|
105
103
|
async getValidityState() {
|
|
106
|
-
this.getValidityStateData(this.nativeElement);
|
|
104
|
+
const { validityState, validityMessage } = this.getValidityStateData(this.nativeElement);
|
|
105
|
+
this.validityState = validityState;
|
|
106
|
+
this.validityMessage = validityMessage;
|
|
107
107
|
return {
|
|
108
108
|
state: this.validityState,
|
|
109
109
|
message: this.validityMessage
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
async handleCheckedChange() {
|
|
113
|
-
// Only proceed if checkbox has been interacted with
|
|
114
|
-
if (!this.touched)
|
|
115
|
-
return;
|
|
116
|
-
if (this.disabled)
|
|
117
|
-
return;
|
|
118
|
-
const { host, value, checked } = this;
|
|
119
|
-
this.rChange.emit({ element: host, value, checked });
|
|
120
|
-
// Update native element checked state
|
|
121
|
-
if (this.nativeElement) {
|
|
122
|
-
this.nativeElement.checked = checked;
|
|
123
|
-
}
|
|
124
|
-
// Validate if required
|
|
125
|
-
if (this.required && !this.isNoValidate) {
|
|
126
|
-
this.validateFormElement(this.nativeElement);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
connectFormEventListeners() {
|
|
130
|
-
var _a, _b, _c;
|
|
131
|
-
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.addEventListener('formdata', this.contributeToFormData);
|
|
132
|
-
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('submit', this.onSubmitForm, { capture: true });
|
|
133
|
-
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.addEventListener('reset', this.onResetForm);
|
|
134
|
-
}
|
|
135
|
-
disconnectFormEventListeners() {
|
|
136
|
-
var _a, _b, _c;
|
|
137
|
-
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('formdata', this.contributeToFormData);
|
|
138
|
-
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('submit', this.onSubmitForm);
|
|
139
|
-
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('reset', this.onResetForm);
|
|
140
|
-
}
|
|
141
|
-
componentWillLoad() {
|
|
142
|
-
this.initial['checked'] = this.checked;
|
|
143
|
-
this.initial['invalid'] = this.invalid;
|
|
144
|
-
}
|
|
145
|
-
componentDidLoad() {
|
|
146
|
-
if (this.nativeElement) {
|
|
147
|
-
this.nativeElement.indeterminate = this.indeterminate;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
connectedCallback() {
|
|
151
|
-
this.connectFormEventListeners();
|
|
152
|
-
}
|
|
153
|
-
disconnectedCallback() {
|
|
154
|
-
this.disconnectFormEventListeners();
|
|
155
|
-
}
|
|
156
112
|
/**
|
|
157
113
|
* Sets focus on the checkbox element.
|
|
158
114
|
*/
|
|
@@ -198,6 +154,44 @@ const Checkbox = class {
|
|
|
198
154
|
async clearIndeterminate() {
|
|
199
155
|
this.indeterminate = false;
|
|
200
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Validates the checkbox without triggering UI and returns a boolean indicating its validity.
|
|
159
|
+
* @returns A boolean indicating whether the checkbox is valid.
|
|
160
|
+
*/
|
|
161
|
+
async checkValidity() {
|
|
162
|
+
const { validityState } = this.getValidityStateData(this.nativeElement);
|
|
163
|
+
return validityState === 'valid';
|
|
164
|
+
}
|
|
165
|
+
// Watchers
|
|
166
|
+
async handleCheckedChange() {
|
|
167
|
+
// Only proceed if checkbox has been interacted with
|
|
168
|
+
if (!this.touched)
|
|
169
|
+
return;
|
|
170
|
+
if (this.disabled)
|
|
171
|
+
return;
|
|
172
|
+
const { host, value, checked } = this;
|
|
173
|
+
this.rChange.emit({ element: host, value, checked });
|
|
174
|
+
// Update native element checked state
|
|
175
|
+
if (this.nativeElement) {
|
|
176
|
+
this.nativeElement.checked = checked;
|
|
177
|
+
}
|
|
178
|
+
// Validate if required
|
|
179
|
+
if (this.required && !this.isNoValidate) {
|
|
180
|
+
this.validateFormElement(this.nativeElement);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
// Getters
|
|
184
|
+
/** Identify wrapping form element */
|
|
185
|
+
get parentFormEl() {
|
|
186
|
+
return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
|
|
187
|
+
}
|
|
188
|
+
/** Determine whether this element should be ignored during Constraint Validation API validation. */
|
|
189
|
+
get isNoValidate() {
|
|
190
|
+
var _a;
|
|
191
|
+
return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
|
|
192
|
+
this.novalidate ||
|
|
193
|
+
false);
|
|
194
|
+
}
|
|
201
195
|
get hasErrorMessage() {
|
|
202
196
|
var _a;
|
|
203
197
|
return typeof this.error === 'string' && ((_a = this.error) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
@@ -215,31 +209,53 @@ const Checkbox = class {
|
|
|
215
209
|
return false;
|
|
216
210
|
return this.hasErrorMessage || this.hasCustomErrorMessage || this.hasValidationError;
|
|
217
211
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
212
|
+
connectFormEventListeners() {
|
|
213
|
+
var _a, _b, _c;
|
|
214
|
+
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.addEventListener('formdata', this.contributeToFormData);
|
|
215
|
+
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('submit', this.onSubmitForm, { capture: true });
|
|
216
|
+
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.addEventListener('reset', this.onResetForm);
|
|
217
|
+
}
|
|
218
|
+
disconnectFormEventListeners() {
|
|
219
|
+
var _a, _b, _c;
|
|
220
|
+
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('formdata', this.contributeToFormData);
|
|
221
|
+
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('submit', this.onSubmitForm);
|
|
222
|
+
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('reset', this.onResetForm);
|
|
222
223
|
}
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
// Lifecycle methods
|
|
225
|
+
componentWillLoad() {
|
|
226
|
+
this.initial['checked'] = this.checked;
|
|
227
|
+
this.initial['invalid'] = this.invalid;
|
|
228
|
+
}
|
|
229
|
+
componentDidLoad() {
|
|
230
|
+
if (this.nativeElement) {
|
|
231
|
+
this.nativeElement.indeterminate = this.indeterminate;
|
|
232
|
+
}
|
|
233
|
+
if (this.autofocus)
|
|
234
|
+
this.applyAutofocus();
|
|
235
|
+
}
|
|
236
|
+
connectedCallback() {
|
|
237
|
+
this.connectFormEventListeners();
|
|
238
|
+
}
|
|
239
|
+
disconnectedCallback() {
|
|
240
|
+
this.disconnectFormEventListeners();
|
|
225
241
|
}
|
|
226
242
|
render() {
|
|
227
|
-
const { error, name, value, disabled, required, uniqueId, checked, indeterminate } = this;
|
|
243
|
+
const { error, name, value, disabled, required, uniqueId, checked, indeterminate, autofocus } = this;
|
|
228
244
|
const inputAttrs = {
|
|
229
245
|
name,
|
|
230
246
|
value,
|
|
231
247
|
disabled,
|
|
232
248
|
required,
|
|
233
249
|
checked,
|
|
234
|
-
indeterminate
|
|
250
|
+
indeterminate,
|
|
251
|
+
autofocus
|
|
235
252
|
};
|
|
236
|
-
return (h(Host, { key: '
|
|
253
|
+
return (h(Host, { key: '54a5b4a38fd2e9c2a94a95d9ad7d47cd91123d0f', onClick: this.handleClick }, h("div", { key: '089747b6032bfc4e0de581eed060558dc73a1118', class: "r-checkbox" }, h("input", Object.assign({ key: 'fa2b9640c25d4f0d1e1781f885a27f1b24c906b4', class: "r-checkbox--input", type: "checkbox" }, inputAttrs, { id: `${uniqueId}-input`, ref: el => this.nativeElement = el, "aria-describedby": this.hasInvalidMessage ? `${uniqueId}-message` : null, "aria-required": `${this.required || false}`, "aria-invalid": `${this.invalid || false}` })), h("div", { key: '49e514969fa11eccba18658d275462c8c705f8e2', class: "r-checkbox--box", "aria-hidden": "true" }, this.checked ?
|
|
237
254
|
h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M8.80019 15.8988L4.6002 11.6988L3.2002 13.0988L8.80019 18.6988L20.8002 6.69883L19.4002 5.29883L8.80019 15.8988Z", fill: "currentColor" }))
|
|
238
255
|
: this.indeterminate ?
|
|
239
256
|
h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("rect", { x: "4", y: "11", width: "16", height: "2", fill: "currentColor" }))
|
|
240
|
-
: null), h("div", { key: '
|
|
241
|
-
h("r-hint", { key: '
|
|
242
|
-
h("r-hint", { key: '74ff89cd4066b93a3d0f28271ca3f9fcfcdbd976', variant: "success" }, this.validMessage))))));
|
|
257
|
+
: null), h("div", { key: '96090e0dc6dcf564a73e061a7e75ad0a4ec0b1cb', class: "r-checkbox--description" }, h("label", { key: '524a1cba2f9ef69863c48ca536921411be743ec5', class: "r-checkbox--label", id: `${uniqueId}-label`, htmlFor: `${uniqueId}-input` }, h("slot", { key: 'cda4f61e27a86b988746465d14567f49f09eabd0' })), h("div", { key: 'be4d6ba741c2580fd1d5a6dc3e2f71716df55d71', id: `${uniqueId}-message`, class: !this.hasInvalidMessage ? 'visually-hidden' : 'r-checkbox--message', "aria-live": "polite", "aria-atomic": "true" }, this.hasInvalidMessage &&
|
|
258
|
+
h("r-hint", { key: '05b0c0d5ee3c603d19faa11006e9e3501dc8be82', variant: "error" }, error || this.customErrorMessage || this.validityMessage))))));
|
|
243
259
|
}
|
|
244
260
|
get host() { return getElement(this); }
|
|
245
261
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-Da7qOBFr.js';
|
|
2
2
|
|
|
3
|
-
const dialogCss = ":host([size=small]){--r-dialog--width:23.4375rem;--r-dialog--max-height:15.625rem}:host([size=medium]){--r-dialog--width:37.5rem;--r-dialog--max-height:37.5rem}:host([size=large]){--r-dialog--width:50rem;--r-dialog--max-height:45rem}@media (max-width: 50rem){:host([size=large]){--r-dialog--width:100%;--right:0;--left:0;--r-dialog--footer--flex-wrap:wrap}}@media (max-height: 48.75rem){:host([size=large]){--r-dialog--margin:18px auto;--top:0;--bottom:0}}@media (max-width: 37.5rem){:host([size=medium]){--r-dialog--width:100%;--right:0;--left:0;--r-dialog--footer--flex-wrap:wrap}}@media (max-height: 43.75rem){:host([size=medium]){--r-dialog--margin:18px auto;--top:0;--bottom:0}}:host{top:var(--top, auto);right:var(--right, auto);bottom:var(--bottom, auto);left:var(--left, auto)}.r-dialog{border:var(--r-dialog--border, none);padding:var(--r-dialog--padding, 24px 0);box-sizing:var(--r-dialog--box-sizing, border-box);overflow:var(--r-dialog--overflow, hidden);width:var(--r-dialog--width, auto);height:var(--r-dialog--height, auto);background-color:var(--r-dialog--background-color, var(--r-background-softest));margin:var(--r-dialog--margin, auto);max-height:var(--r-dialog--max-height, auto)}.r-dialog--content{display:var(--r-dialog--content--display, flex);flex-direction:var(--r-dialog--content--flex-direction, column);gap:var(--r-dialog--content--gap, var(--r-spacing-150, 1.5rem));color:var(--r-dialog--content--color, var(--r-text-regular));height:var(--r-dialog--content--height, 100%)}.r-dialog ::slotted([slot=header]),.r-dialog--headline{font-family:var(--r-dialog--headline--font-family, var(--r-font-family-heading, sans-serif));font-size:var(--r-dialog--headline--font-size, var(--r-font-size-500));font-weight:var(--r-dialog--headline--font-weight, var(--r-font-weight-light));margin:var(--r-dialog--headline--margin, 0);flex:var(--r-dialog--headline--flex, 1)}.r-dialog--close{--r-button--display:var(--r-dialog--close--dispaly, flex);--r-button--padding:var(--r-dialog--close--padding, 0)}.r-dialog--header{display:var(--r-dialog--header--display, flex);justify-content:var(--r-dialog--header--justify-content, space-between);align-items:var(--r-dialog--header--align-items, start);gap:var(--r-dialog--header--gap, 32px);padding:var(--r-dialog--header--padding, 0 24px)}.r-dialog--body{font-family:var(--r-dialog--body--font-family, var(--r-font-family-text));font-size:var(--r-dialog--body--font-size, var(--r-font-size-desktop-400));line-height:var(--r-dialog--body--line-height, var(--r-line-height-m));flex-grow:var(--r-dialog--body--flex-grow, 1);overflow-y:var(--r-dialog--body--overflow, auto);justify-self:var(--r-dialog--body--justify-self, stretch);padding:var(--r-dialog--body--padding, 0 24px)}.r-dialog--body{scrollbar-width:auto;scrollbar-color:var(--r-border-softer) #ffffff}.r-dialog--body::-webkit-scrollbar{width:var(--r-spacing-100, 1rem)}.r-dialog--body::-webkit-scrollbar-track{background:#ffffff}.r-dialog--body::-webkit-scrollbar-thumb{background-color:var(--r-border-softer);border-radius:10px;border:3px solid #ffffff}.r-dialog
|
|
3
|
+
const dialogCss = ":host([size=small]){--r-dialog--width:23.4375rem;--r-dialog--max-height:15.625rem}:host([size=medium]){--r-dialog--width:37.5rem;--r-dialog--max-height:37.5rem}:host([size=large]){--r-dialog--width:50rem;--r-dialog--max-height:45rem}@media (max-width: 50rem){:host([size=large]){--r-dialog--width:100%;--right:0;--left:0;--r-dialog--footer--flex-wrap:wrap}}@media (max-height: 48.75rem){:host([size=large]){--r-dialog--margin:18px auto;--top:0;--bottom:0}}@media (max-width: 37.5rem){:host([size=medium]){--r-dialog--width:100%;--right:0;--left:0;--r-dialog--footer--flex-wrap:wrap}}@media (max-height: 43.75rem){:host([size=medium]){--r-dialog--margin:18px auto;--top:0;--bottom:0}}:host{top:var(--top, auto);right:var(--right, auto);bottom:var(--bottom, auto);left:var(--left, auto)}.r-dialog{border:var(--r-dialog--border, none);padding:var(--r-dialog--padding, 24px 0);box-sizing:var(--r-dialog--box-sizing, border-box);overflow:var(--r-dialog--overflow, hidden);width:var(--r-dialog--width, auto);height:var(--r-dialog--height, auto);background-color:var(--r-dialog--background-color, var(--r-background-softest));margin:var(--r-dialog--margin, auto);max-height:var(--r-dialog--max-height, auto)}.r-dialog--content{display:var(--r-dialog--content--display, flex);flex-direction:var(--r-dialog--content--flex-direction, column);gap:var(--r-dialog--content--gap, var(--r-spacing-150, 1.5rem));color:var(--r-dialog--content--color, var(--r-text-regular));height:var(--r-dialog--content--height, 100%)}.r-dialog ::slotted([slot=header]),.r-dialog--headline{font-family:var(--r-dialog--headline--font-family, var(--r-font-family-heading, sans-serif));font-size:var(--r-dialog--headline--font-size, var(--r-font-size-500));font-weight:var(--r-dialog--headline--font-weight, var(--r-font-weight-light));margin:var(--r-dialog--headline--margin, 0);flex:var(--r-dialog--headline--flex, 1)}.r-dialog--close{--r-button--display:var(--r-dialog--close--dispaly, flex);--r-button--padding:var(--r-dialog--close--padding, 0)}.r-dialog--header{display:var(--r-dialog--header--display, flex);justify-content:var(--r-dialog--header--justify-content, space-between);align-items:var(--r-dialog--header--align-items, start);gap:var(--r-dialog--header--gap, 32px);padding:var(--r-dialog--header--padding, 0 24px)}.r-dialog--body{font-family:var(--r-dialog--body--font-family, var(--r-font-family-text));font-size:var(--r-dialog--body--font-size, var(--r-font-size-desktop-400));line-height:var(--r-dialog--body--line-height, var(--r-line-height-m));flex-grow:var(--r-dialog--body--flex-grow, 1);overflow-y:var(--r-dialog--body--overflow, auto);justify-self:var(--r-dialog--body--justify-self, stretch);padding:var(--r-dialog--body--padding, 0 24px)}.r-dialog--body{scrollbar-width:auto;scrollbar-color:var(--r-border-softer) #ffffff}.r-dialog--body::-webkit-scrollbar{width:var(--r-spacing-100, 1rem)}.r-dialog--body::-webkit-scrollbar-track{background:#ffffff}.r-dialog--body::-webkit-scrollbar-thumb{background-color:var(--r-border-softer);border-radius:10px;border:3px solid #ffffff}.r-dialog ::slotted([slot=footer]){margin-top:var(--r-dialog--footer--margin-top, auto);display:var(--r-dialog--footer--display, flex);flex-direction:var(--r-dialog--footer--flex-direction, row);flex-wrap:var(--r-dialog--footer--flex-wrap, nowrap);justify-content:var(--r-dialog--footer--justify-content, flex-start);gap:var(--r-dialog--footer--gap, var(--r-spacing-100, 1rem));align-items:var(--r-dialog--footer--align-items, end);padding:var(--r-dialog--header--padding, 0 24px)}.r-dialog::backdrop{background:var(--backdrop--background-color, rgba(0, 0, 0, 0.25))}";
|
|
4
4
|
|
|
5
5
|
const Dialog = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -23,10 +23,6 @@ const Dialog = class {
|
|
|
23
23
|
* */
|
|
24
24
|
this.isOpen = this.open;
|
|
25
25
|
this.uniqueId = `r-dialog-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
26
|
-
this.isElContent = (selector) => {
|
|
27
|
-
const el = this.host.querySelector(selector);
|
|
28
|
-
return el !== null && (el === null || el === void 0 ? void 0 : el.textContent.trim().length) > 0;
|
|
29
|
-
};
|
|
30
26
|
this.onTriggerClick = () => {
|
|
31
27
|
this.close();
|
|
32
28
|
};
|
|
@@ -41,9 +37,6 @@ const Dialog = class {
|
|
|
41
37
|
if (this.open && !this.isOpen)
|
|
42
38
|
this.showModal();
|
|
43
39
|
}
|
|
44
|
-
get isFooterSlot() {
|
|
45
|
-
return this.isElContent('[slot="footer"]');
|
|
46
|
-
}
|
|
47
40
|
get dialogLabel() {
|
|
48
41
|
var _a, _b;
|
|
49
42
|
return this.headline || ((_b = (_a = this.host.querySelector('[slot="header"]')) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim());
|
|
@@ -99,9 +92,8 @@ const Dialog = class {
|
|
|
99
92
|
}
|
|
100
93
|
}
|
|
101
94
|
render() {
|
|
102
|
-
return (h(Host, { key: '
|
|
103
|
-
h("h2", { key: '
|
|
104
|
-
h("div", { key: '02c6c9ee41bb7893955b492f4fd171e498041777', class: "r-dialog--footer" }, h("slot", { key: 'bcf48fd3ecc2378fa82ffb48aa3739ea65477dcd', name: "footer" }))))));
|
|
95
|
+
return (h(Host, { key: '6f042592347577f063f6a80d2152b1149eadcb21', open: this.isOpen }, h("dialog", { key: 'fd3f19cf69a9077585bceccebaf0d0c9bccbaa86', class: "r-dialog", "aria-label": this.dialogLabel, ref: el => this.dialogElement = el, style: { '--r-dialog--body--height': this.bodyHeight } }, h("div", { key: '974e33afe5e96d3a67501d10a4ecd0486900ed64', class: "r-dialog--content" }, h("div", { key: '57bccc4346d7234564dc22c179a7e10051bd3af7', class: "r-dialog--header", id: `${this.uniqueId}-header` }, h("slot", { key: '0a59d6a775f11378f17be41665b2c71aecb17ff9', name: "header" }, (this.headline) &&
|
|
96
|
+
h("h2", { key: '6dd6970be5bde3f92d87bef1cbbd7152ba72f88f', class: "r-dialog--headline" }, this.headline)), h("r-icon-button", { key: '37ad4f5b3366ae057240e5bcf2c7443aac3faa9b', class: "r-dialog--close", name: "cross", size: "s", onRClick: this.onTriggerClick, label: this.closeAriaLabel })), h("div", { key: '951dec5b1da5b13196916ed6b64fee89cad83a0e', class: "r-dialog--body" }, this.bodyText, h("slot", { key: '1797cb38116d9818aec51e2dc6982dad1a01cf02' }), h("slot", { key: '0f091bf0e6f6fdd16b79c69aca9814a0d76d7ee6', name: "form" })), h("slot", { key: '2b5a1cadfa9e7a13d8fc4ddca4cf69a1e4a1cb5e', name: "footer" })))));
|
|
105
97
|
}
|
|
106
98
|
get host() { return getElement(this); }
|
|
107
99
|
static get watchers() { return {
|