@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
|
@@ -4,30 +4,10 @@ import { Host, h } from "@stencil/core";
|
|
|
4
4
|
* for consistent presentation of text with optional associated tooltip.
|
|
5
5
|
*/
|
|
6
6
|
export class RLabel {
|
|
7
|
-
constructor() {
|
|
8
|
-
/**
|
|
9
|
-
* _DEPRECATED_ (This property will be removed in November 2025 release.)
|
|
10
|
-
* Defines preferable position of the tooltip */
|
|
11
|
-
this.tooltipPosition = 'right';
|
|
12
|
-
/**
|
|
13
|
-
* _DEPRECATED_ (This property will be removed in November 2025 release.)
|
|
14
|
-
* Icon tooltip trigger by name from the set */
|
|
15
|
-
this.tooltipIcon = 'circled-question-mark';
|
|
16
|
-
}
|
|
17
7
|
render() {
|
|
18
|
-
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
position: tooltipPosition
|
|
22
|
-
};
|
|
23
|
-
const tooltipIconAttrs = {
|
|
24
|
-
name: tooltipIcon,
|
|
25
|
-
size: 's',
|
|
26
|
-
color: tooltipIconColor
|
|
27
|
-
};
|
|
28
|
-
return (h(Host, { key: '2d7da94197a774e5b3399ff59dba01f946f0d8df' }, h("div", { key: '56baaf39a736e1f504502c9f49b4cf5fbff2f911', class: "r-label" }, h("span", { key: '5b0032c31e83b628d73a207eeaa915368edc7237', class: "r-label--slot" }, h("slot", { key: 'fbcd30c185b9eef55ea43c8ca8b082a0308953e2' }), fieldIndicator &&
|
|
29
|
-
h("span", { key: '0d355d5857e515e735dc543d3416540e0a0ffdba', class: "r-label--marker" }, fieldIndicator)), tooltip &&
|
|
30
|
-
h("span", { key: 'b450b3e7ee2b33dbdc02d9fce04bd2ef6a97713d', class: "r-label--tooltip-icon" }, h("r-tooltip", Object.assign({ key: 'a1b2a24a312b7eabd5acd43273658bce3199ef1b' }, tooltipAttrs), h("r-icon", Object.assign({ key: 'c22f6349b9c67a82b29f4a5758a77fb1b2910b75' }, tooltipIconAttrs)))))));
|
|
8
|
+
const { fieldIndicator } = this;
|
|
9
|
+
return (h(Host, { key: 'd823556813a282022aa18e138a3ac89d7f22af2a' }, h("div", { key: '1cea58412a4599e009080eb224d17324d5cad0b3', class: "r-label" }, h("span", { key: 'c0ade32425b07866b7a3096f203c7848eaa83e55', class: "r-label--slot" }, h("slot", { key: '9c782ed621889966189bba0d4c46de620315c9c4' }), fieldIndicator &&
|
|
10
|
+
h("span", { key: 'c4a4fcbed3e744bed679d8e9c6416a51407a686a', class: "r-label--marker" }, fieldIndicator)))));
|
|
31
11
|
}
|
|
32
12
|
static get is() { return "r-label"; }
|
|
33
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -43,96 +23,6 @@ export class RLabel {
|
|
|
43
23
|
}
|
|
44
24
|
static get properties() {
|
|
45
25
|
return {
|
|
46
|
-
"tooltip": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"attribute": "tooltip",
|
|
49
|
-
"mutable": false,
|
|
50
|
-
"complexType": {
|
|
51
|
-
"original": "string",
|
|
52
|
-
"resolved": "string",
|
|
53
|
-
"references": {}
|
|
54
|
-
},
|
|
55
|
-
"required": false,
|
|
56
|
-
"optional": true,
|
|
57
|
-
"docs": {
|
|
58
|
-
"tags": [],
|
|
59
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nTooltip represents additional description"
|
|
60
|
-
},
|
|
61
|
-
"getter": false,
|
|
62
|
-
"setter": false,
|
|
63
|
-
"reflect": false
|
|
64
|
-
},
|
|
65
|
-
"tooltipPosition": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"attribute": "tooltip-position",
|
|
68
|
-
"mutable": false,
|
|
69
|
-
"complexType": {
|
|
70
|
-
"original": "TooltipPosition",
|
|
71
|
-
"resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
|
|
72
|
-
"references": {
|
|
73
|
-
"TooltipPosition": {
|
|
74
|
-
"location": "import",
|
|
75
|
-
"path": "../tooltip/exports",
|
|
76
|
-
"id": "src/components/tooltip/exports.ts::TooltipPosition"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"required": false,
|
|
81
|
-
"optional": true,
|
|
82
|
-
"docs": {
|
|
83
|
-
"tags": [],
|
|
84
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nDefines preferable position of the tooltip"
|
|
85
|
-
},
|
|
86
|
-
"getter": false,
|
|
87
|
-
"setter": false,
|
|
88
|
-
"reflect": false,
|
|
89
|
-
"defaultValue": "'right'"
|
|
90
|
-
},
|
|
91
|
-
"tooltipIcon": {
|
|
92
|
-
"type": "string",
|
|
93
|
-
"attribute": "tooltip-icon",
|
|
94
|
-
"mutable": false,
|
|
95
|
-
"complexType": {
|
|
96
|
-
"original": "IconName",
|
|
97
|
-
"resolved": "string",
|
|
98
|
-
"references": {
|
|
99
|
-
"IconName": {
|
|
100
|
-
"location": "import",
|
|
101
|
-
"path": "../icon/exports",
|
|
102
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"required": false,
|
|
107
|
-
"optional": true,
|
|
108
|
-
"docs": {
|
|
109
|
-
"tags": [],
|
|
110
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nIcon tooltip trigger by name from the set"
|
|
111
|
-
},
|
|
112
|
-
"getter": false,
|
|
113
|
-
"setter": false,
|
|
114
|
-
"reflect": false,
|
|
115
|
-
"defaultValue": "'circled-question-mark'"
|
|
116
|
-
},
|
|
117
|
-
"tooltipIconColor": {
|
|
118
|
-
"type": "string",
|
|
119
|
-
"attribute": "tooltip-icon-color",
|
|
120
|
-
"mutable": false,
|
|
121
|
-
"complexType": {
|
|
122
|
-
"original": "string",
|
|
123
|
-
"resolved": "string",
|
|
124
|
-
"references": {}
|
|
125
|
-
},
|
|
126
|
-
"required": false,
|
|
127
|
-
"optional": true,
|
|
128
|
-
"docs": {
|
|
129
|
-
"tags": [],
|
|
130
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nChange color of an icon that triggers tooltip to one of the Riverty color tokens"
|
|
131
|
-
},
|
|
132
|
-
"getter": false,
|
|
133
|
-
"setter": false,
|
|
134
|
-
"reflect": true
|
|
135
|
-
},
|
|
136
26
|
"fieldIndicator": {
|
|
137
27
|
"type": "string",
|
|
138
28
|
"attribute": "field-indicator",
|
|
@@ -151,15 +151,15 @@
|
|
|
151
151
|
line-height: var(--r-list-item--headline--line-height, 1.5);
|
|
152
152
|
color: var(--r-list-item--headline--color, inherit);
|
|
153
153
|
}
|
|
154
|
-
.r-list-item--
|
|
155
|
-
font-size: var(--r-list-item--description--font-size,
|
|
156
|
-
font-weight: var(--r-list-item--description--font-weight,
|
|
157
|
-
line-height: var(--r-list-item--description--line-height,
|
|
158
|
-
color: var(--r-list-item--description--color, var(--r-
|
|
154
|
+
.r-list-item--description {
|
|
155
|
+
font-size: var(--r-list-item--description--font-size, 1rem);
|
|
156
|
+
font-weight: var(--r-list-item--description--font-weight, 400);
|
|
157
|
+
line-height: var(--r-list-item--description--line-height, 1.5);
|
|
158
|
+
color: var(--r-list-item--description--color, var(--r-text-regular, #282828));
|
|
159
159
|
white-space: var(--r-list-item--description--white-space, normal);
|
|
160
160
|
overflow: var(--r-list-item--description--overflow, hidden);
|
|
161
161
|
text-overflow: var(--r-list-item--description--text-overflow, ellipsis);
|
|
162
162
|
}
|
|
163
|
-
.r-list-item--
|
|
164
|
-
color: var(--r-list-item--description--color,
|
|
163
|
+
.r-list-item--description ::slotted(a) {
|
|
164
|
+
color: var(--r-list-item--description--color, inherit);
|
|
165
165
|
}
|
|
@@ -44,7 +44,7 @@ export class RListItem {
|
|
|
44
44
|
return this.isEl('[slot="headline"]');
|
|
45
45
|
}
|
|
46
46
|
get isDescriptionSlot() {
|
|
47
|
-
return this.isEl('[slot="description"]')
|
|
47
|
+
return this.isEl('[slot="description"]');
|
|
48
48
|
}
|
|
49
49
|
get hasSubitems() {
|
|
50
50
|
return this.isEl('[variant="subitem"]');
|
|
@@ -77,15 +77,15 @@ export class RListItem {
|
|
|
77
77
|
return this.href && !this.disabled ? 'a' : 'div';
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
const { leadingIcon, leadingIconSrc, trailingIcon, trailingIconSrc, headline, trailingText,
|
|
80
|
+
const { leadingIcon, leadingIconSrc, trailingIcon, trailingIconSrc, headline, trailingText, description } = this;
|
|
81
81
|
const TagName = this.tagName;
|
|
82
82
|
const itemAttrs = Object.assign({ href: TagName === 'a' ? this.href : null }, (this.disabled ? { role: 'link', 'aria-disabled': 'true' } : null));
|
|
83
83
|
const ListItemContent = (h(TagName, Object.assign({ class: "r-list-item" }, itemAttrs), this.isLeading &&
|
|
84
84
|
h("span", { class: "r-list-item--leading" }, h("slot", { name: "leading" }, this.isLeadingIcon && !this.hideLeadingIcon &&
|
|
85
85
|
h("r-icon", { class: "r-list-item--leading-icon", name: leadingIcon, src: leadingIconSrc }))), h("span", { class: "r-list-item--text" }, !this.isTextSlot ?
|
|
86
86
|
h(Fragment, null, (this.isHeadlineSlot || headline) &&
|
|
87
|
-
h("span", { class: "r-list-item--headline" }, h("slot", { name: "headline" }, headline)), (description || this.isDescriptionSlot
|
|
88
|
-
h("span", { class: "r-list-item--description" }, h("slot", { name: "
|
|
87
|
+
h("span", { class: "r-list-item--headline" }, h("slot", { name: "headline" }, headline)), (description || this.isDescriptionSlot) &&
|
|
88
|
+
h("span", { class: "r-list-item--description" }, h("slot", { name: "description" }, description)))
|
|
89
89
|
:
|
|
90
90
|
h("slot", { name: "text" })), this.isTrailing &&
|
|
91
91
|
h("span", { class: "r-list-item--trailing" }, h("slot", { name: "trailing" }, this.isTrailingIcon && !trailingText &&
|
|
@@ -128,28 +128,6 @@ export class RListItem {
|
|
|
128
128
|
"setter": false,
|
|
129
129
|
"reflect": false
|
|
130
130
|
},
|
|
131
|
-
"subtext": {
|
|
132
|
-
"type": "string",
|
|
133
|
-
"attribute": "subtext",
|
|
134
|
-
"mutable": false,
|
|
135
|
-
"complexType": {
|
|
136
|
-
"original": "string",
|
|
137
|
-
"resolved": "string",
|
|
138
|
-
"references": {}
|
|
139
|
-
},
|
|
140
|
-
"required": false,
|
|
141
|
-
"optional": true,
|
|
142
|
-
"docs": {
|
|
143
|
-
"tags": [{
|
|
144
|
-
"name": "deprecated",
|
|
145
|
-
"text": "Use `description` instead. Will be removed November 2025.\nSecondary text displayed below the headline (2nd slot), used for additional details or context."
|
|
146
|
-
}],
|
|
147
|
-
"text": ""
|
|
148
|
-
},
|
|
149
|
-
"getter": false,
|
|
150
|
-
"setter": false,
|
|
151
|
-
"reflect": false
|
|
152
|
-
},
|
|
153
131
|
"description": {
|
|
154
132
|
"type": "string",
|
|
155
133
|
"attribute": "description",
|
|
@@ -90,29 +90,6 @@
|
|
|
90
90
|
.r-pagination--header label {
|
|
91
91
|
font-size: var(--r-pagination--font-size);
|
|
92
92
|
}
|
|
93
|
-
.r-pagination--item {
|
|
94
|
-
--r-button--display: flex;
|
|
95
|
-
--r-button--width: var(--r-pagination--button--width);
|
|
96
|
-
--r-button--height: var(--r-pagination--button--height);
|
|
97
|
-
--r-button--color: var(--r-pagination--button--color);
|
|
98
|
-
--r-button--background-color: var(--r-pagination--button--background-color);
|
|
99
|
-
--r-button--border-width: var(--r-pagination--button--border-width);
|
|
100
|
-
--r-button--padding: var(--r-pagination--button--padding);
|
|
101
|
-
--r-button--icon--width: auto;
|
|
102
|
-
--r-button--icon--height: auto;
|
|
103
|
-
align-items: var(--r-pagination--item--align-items);
|
|
104
|
-
background-color: var(--r-pagination--item--background-color);
|
|
105
|
-
color: var(--r-pagination--item--color);
|
|
106
|
-
display: var(--r-pagination--item--display);
|
|
107
|
-
font-family: var(--r-pagination--item--font-family);
|
|
108
|
-
height: var(--r-pagination--item--height);
|
|
109
|
-
justify-content: var(--r-pagination--item--justify-content);
|
|
110
|
-
margin-left: var(--r-pagination--item--margin-left);
|
|
111
|
-
margin-right: var(--r-pagination--item--margin-right);
|
|
112
|
-
opacity: var(--r-pagination--item--opacity);
|
|
113
|
-
width: var(--r-pagination--item--width);
|
|
114
|
-
z-index: var(--r-pagination--item--z-index);
|
|
115
|
-
}
|
|
116
93
|
.r-pagination--item:hover {
|
|
117
94
|
--r-pagination--item--background-color: var(--r-background-interactive-hovered);
|
|
118
95
|
}
|
|
@@ -155,3 +132,26 @@
|
|
|
155
132
|
.r-pagination--item.number {
|
|
156
133
|
--r-button--font-size: 0.813rem;
|
|
157
134
|
}
|
|
135
|
+
.r-pagination--item {
|
|
136
|
+
--r-button--display: flex;
|
|
137
|
+
--r-button--width: var(--r-pagination--button--width);
|
|
138
|
+
--r-button--height: var(--r-pagination--button--height);
|
|
139
|
+
--r-button--color: var(--r-pagination--button--color);
|
|
140
|
+
--r-button--background-color: var(--r-pagination--button--background-color);
|
|
141
|
+
--r-button--border-width: var(--r-pagination--button--border-width);
|
|
142
|
+
--r-button--padding: var(--r-pagination--button--padding);
|
|
143
|
+
--r-button--icon--width: auto;
|
|
144
|
+
--r-button--icon--height: auto;
|
|
145
|
+
align-items: var(--r-pagination--item--align-items);
|
|
146
|
+
background-color: var(--r-pagination--item--background-color);
|
|
147
|
+
color: var(--r-pagination--item--color);
|
|
148
|
+
display: var(--r-pagination--item--display);
|
|
149
|
+
font-family: var(--r-pagination--item--font-family);
|
|
150
|
+
height: var(--r-pagination--item--height);
|
|
151
|
+
justify-content: var(--r-pagination--item--justify-content);
|
|
152
|
+
margin-left: var(--r-pagination--item--margin-left);
|
|
153
|
+
margin-right: var(--r-pagination--item--margin-right);
|
|
154
|
+
opacity: var(--r-pagination--item--opacity);
|
|
155
|
+
width: var(--r-pagination--item--width);
|
|
156
|
+
z-index: var(--r-pagination--item--z-index);
|
|
157
|
+
}
|
|
@@ -161,10 +161,10 @@ export class Panel {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
render() {
|
|
164
|
-
return (h(Host, { key: '
|
|
164
|
+
return (h(Host, { key: '4898806bfe378b36f5fc784a6a4ea4477f164d86', collapsed: this.isCollapsed }, h("div", { key: 'f0acaedbc5e440b20a49791d5a3544955bdcd1f7', class: "r-panel" }, h("div", { key: '390898c282414aecd4cfd75e4da80fb6b04e8ffa', class: "r-panel--header" }, this.hasHeader && (h("a", { key: '9358558193e8c7ec82d8bf40240b9fb8d00d902d', class: "logo-wrapper", href: this.logoLink }, this.isCollapsed ?
|
|
165
165
|
h("slot", { name: "logo-collapsed" })
|
|
166
166
|
:
|
|
167
|
-
h("slot", { name: "logo-expanded" }))), this.variant === 'modal' ? (h("r-button", { class: "r-panel--trigger", variant: "blank", title: `${this.labelCollapse}`, icon: "cross", "r-aria-label": `${this.labelCollapse}`, onClick: this.handleFullyCollapsedButtonClick })) : this.variant === 'drawer' ? (h("r-button", { class: "r-panel--trigger", variant: "blank", title: this.isCollapsed ? `${this.labelExpand}` : `${this.labelCollapse}`, icon: "angle-left", "r-aria-label": this.isCollapsed ? `${this.labelExpand}` : `${this.labelCollapse}`, onClick: this.handleSemiCollapsedButtonClick })) : this.variant === 'visible' ? (null) : null), h("div", { key: '
|
|
167
|
+
h("slot", { name: "logo-expanded" }))), this.variant === 'modal' ? (h("r-button", { class: "r-panel--trigger", variant: "blank", title: `${this.labelCollapse}`, icon: "cross", "r-aria-label": `${this.labelCollapse}`, onClick: this.handleFullyCollapsedButtonClick })) : this.variant === 'drawer' ? (h("r-button", { class: "r-panel--trigger", variant: "blank", title: this.isCollapsed ? `${this.labelExpand}` : `${this.labelCollapse}`, icon: "angle-left", "r-aria-label": this.isCollapsed ? `${this.labelExpand}` : `${this.labelCollapse}`, onClick: this.handleSemiCollapsedButtonClick })) : this.variant === 'visible' ? (null) : null), h("div", { key: '070e63b95136c2cab2bf7a1a84390568c1341c47', class: "r-panel--body" }, h("slot", { key: 'e595b40da67e61bb23638d5ea1a615005d705a41' })), this.hasFooter && !this.isCollapsed && (h("div", { key: '7adb855c7aa805299abba58795aacb27ce4e6ba5', class: "r-panel--footer" }, h("slot", { key: '6e438b003d443bf62b2faad2bf180a4466190e77', name: "footer" }))))));
|
|
168
168
|
}
|
|
169
169
|
static get is() { return "r-panel"; }
|
|
170
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
font-weight: var(--r-font-weight-regular, 400);
|
|
7
7
|
font-size: var(--r-font-size-400, 1rem);
|
|
8
8
|
text-align: left;
|
|
9
|
+
}
|
|
10
|
+
:host slot {
|
|
11
|
+
display: contents;
|
|
12
|
+
}
|
|
13
|
+
:host {
|
|
9
14
|
--board--shift: 1rem;
|
|
10
15
|
--board--min-width: 304px;
|
|
11
16
|
--board--max-width: 504px;
|
|
@@ -14,17 +19,6 @@
|
|
|
14
19
|
--pointer--height: 0.5rem;
|
|
15
20
|
--pointer--spacer: 0.25rem;
|
|
16
21
|
}
|
|
17
|
-
:host slot {
|
|
18
|
-
display: contents;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host([size=s]) {
|
|
22
|
-
--r-popover--board--max-width: 375px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
:host([size=l]) {
|
|
26
|
-
--r-popover--board--max-width: 500px;
|
|
27
|
-
}
|
|
28
22
|
|
|
29
23
|
:host([data-open=true]) {
|
|
30
24
|
--r-popover--pointer--display: block;
|
|
@@ -187,6 +181,12 @@
|
|
|
187
181
|
right: var(--r-popover--dismiss--right, 20px);
|
|
188
182
|
color: var(--r-text-inverse);
|
|
189
183
|
}
|
|
184
|
+
.r-popover--dismiss:hover {
|
|
185
|
+
--r-icon-button--background-color: var(--r-background-interactive-hovered-inverse, rgba(243, 241, 240, 0.04));
|
|
186
|
+
}
|
|
187
|
+
.r-popover--dismiss:active {
|
|
188
|
+
--r-icon-button--background-color: var(--r-background-interactive-pressed-inverse, rgba(243, 241, 240, 0.12));
|
|
189
|
+
}
|
|
190
190
|
.r-popover--trigger {
|
|
191
191
|
border: var(--r-popover--trigger--border, none);
|
|
192
192
|
background: var(--r-popover--trigger--background, none);
|
|
@@ -211,8 +211,8 @@
|
|
|
211
211
|
left: var(--r-popover--board--left, -1000em);
|
|
212
212
|
visibility: var(--r-popover--board--visibility, hidden);
|
|
213
213
|
width: var(--r-popover--board--width, 100%);
|
|
214
|
-
min-width: var(--
|
|
215
|
-
max-width: var(--
|
|
214
|
+
min-width: var(--board--min-width);
|
|
215
|
+
max-width: var(--board--max-width);
|
|
216
216
|
height: var(--r-popover--board--height, auto);
|
|
217
217
|
max-height: var(--r-popover--board--max-height, var(--board--max-height));
|
|
218
218
|
background-color: var(--r-popover--board--background-color, var(--r-background-inverse));
|
|
@@ -280,8 +280,8 @@ export class Popover {
|
|
|
280
280
|
this.open ? this.show() : this.hide();
|
|
281
281
|
}
|
|
282
282
|
render() {
|
|
283
|
-
return (h(Host, { key: '
|
|
284
|
-
h("r-icon-button", { key: '
|
|
283
|
+
return (h(Host, { key: '13318df823b3f54e05823c9fc9821839f56583b2', id: this.uniqueId, "data-position": this.positionState, "data-open": `${this.isOpen}`, open: this.isOpen }, h("div", { key: '3f750ac2a82236f6a4074fa419b44f0c42f2b7e6', class: "r-popover" }, h("button", { key: '46e4bb247c2eda0e0cc0c4774acac6daf8801bc4', class: "r-popover--trigger", "aria-label": this.triggerAriaLabel, ref: el => this.triggerElement = el, popoverTarget: `${this.uniqueId}-board`, popoverTargetAction: this.triggerAction }, h("slot", { key: 'fac2e6d0ee9ac8830df16d379a0ec5e873becd58', name: "trigger" })), h("div", { key: '636c2ee45476903dc8b812924081f3b45499b18a', class: "r-popover--board", id: `${this.uniqueId}-board`, popover: this.dismissMode, ref: el => this.boardElement = el, onToggle: this.onToggle, onKeyDown: this.onKeyDown }, this.hasDismiss &&
|
|
284
|
+
h("r-icon-button", { key: '4f6a1168587faf500cddb85981f0dd7209af4020', ref: el => this.dismissElement = el, class: "r-popover--dismiss", name: "cross", onClick: this.onClickDismiss, label: this.dismissAriaLabel }), h("div", { key: 'bfa17c2df8022a01192550c315ba32e3a5247e3f', class: "r-popover--board-content" }, h("slot", { key: '001d74737028aee0d413e9ed679ff853070d5559', name: "headline" }), h("slot", { key: '9a33119f2e2f6bf10f0005f83283a1e964332583', name: "content" }), h("slot", { key: '2ff477aed3ef83d6bfff4fb3fdaeb3501dfba7c7', name: "action" })), h("div", { key: '6c0b891bc2e9def0892f65fe8882deef565b2037', class: "r-popover--board-pointer", "aria-hidden": "true" }, h("svg", { key: 'e9da72e80bb395041f4a9cc269cf835b643a335c', width: "16", height: "8", viewBox: "0 0 16 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '44eb8e0fa2c3d294074787595097fcdf82311052', d: "M8 8L0 0L16 0L8 8Z", fill: "currentColor" })))))));
|
|
285
285
|
}
|
|
286
286
|
static get is() { return "r-popover"; }
|
|
287
287
|
static get encapsulation() { return "shadow"; }
|
|
@@ -319,37 +319,6 @@ export class Popover {
|
|
|
319
319
|
"setter": false,
|
|
320
320
|
"reflect": true
|
|
321
321
|
},
|
|
322
|
-
"size": {
|
|
323
|
-
"type": "string",
|
|
324
|
-
"attribute": "size",
|
|
325
|
-
"mutable": false,
|
|
326
|
-
"complexType": {
|
|
327
|
-
"original": "PopoverSize",
|
|
328
|
-
"resolved": "\"l\" | \"s\"",
|
|
329
|
-
"references": {
|
|
330
|
-
"PopoverSize": {
|
|
331
|
-
"location": "import",
|
|
332
|
-
"path": "./exports",
|
|
333
|
-
"id": "src/components/popover/exports.ts::PopoverSize"
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
"required": false,
|
|
338
|
-
"optional": false,
|
|
339
|
-
"docs": {
|
|
340
|
-
"tags": [{
|
|
341
|
-
"name": "default",
|
|
342
|
-
"text": "\"s\""
|
|
343
|
-
}, {
|
|
344
|
-
"name": "deprecated",
|
|
345
|
-
"text": "This property will be removed in November 2025 release."
|
|
346
|
-
}],
|
|
347
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nSize of the Popover: `s` | `l`."
|
|
348
|
-
},
|
|
349
|
-
"getter": false,
|
|
350
|
-
"setter": false,
|
|
351
|
-
"reflect": true
|
|
352
|
-
},
|
|
353
322
|
"dismissMode": {
|
|
354
323
|
"type": "string",
|
|
355
324
|
"attribute": "dismiss-mode",
|
|
@@ -446,28 +415,6 @@ export class Popover {
|
|
|
446
415
|
"setter": false,
|
|
447
416
|
"reflect": false
|
|
448
417
|
},
|
|
449
|
-
"containerAriaLabel": {
|
|
450
|
-
"type": "string",
|
|
451
|
-
"attribute": "container-aria-label",
|
|
452
|
-
"mutable": false,
|
|
453
|
-
"complexType": {
|
|
454
|
-
"original": "string",
|
|
455
|
-
"resolved": "string",
|
|
456
|
-
"references": {}
|
|
457
|
-
},
|
|
458
|
-
"required": false,
|
|
459
|
-
"optional": true,
|
|
460
|
-
"docs": {
|
|
461
|
-
"tags": [{
|
|
462
|
-
"name": "deprecated",
|
|
463
|
-
"text": "This property will be removed in December 2025 release."
|
|
464
|
-
}],
|
|
465
|
-
"text": "Defines `aria-label` content for the popover container.\nUsed for accessibility to describe the popover content area."
|
|
466
|
-
},
|
|
467
|
-
"getter": false,
|
|
468
|
-
"setter": false,
|
|
469
|
-
"reflect": false
|
|
470
|
-
},
|
|
471
418
|
"vertical": {
|
|
472
419
|
"type": "string",
|
|
473
420
|
"attribute": "vertical",
|
|
@@ -4,20 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
::slotted(r-button) {
|
|
6
6
|
--r-button--color: var(--r-text-regular);
|
|
7
|
-
--r-button--border-
|
|
7
|
+
--r-button--border-width: 0;
|
|
8
8
|
--r-button--background-color: rgba(0,0,0,0);
|
|
9
9
|
--r-button--slot--position: relative;
|
|
10
10
|
--r-button--slot--text-decoration: underline;
|
|
11
|
-
--r-button--padding:
|
|
12
|
-
--r-button--slot--text-underline-offset:
|
|
11
|
+
--r-button--padding: 10px 2px 18px 2px;
|
|
12
|
+
--r-button--slot--text-underline-offset: 9px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
::slotted(r-button:hover:not([disabled]):not([disabled=false])) {
|
|
16
|
-
--r-button--border-color: var(--r-border-soft);
|
|
17
16
|
--r-button--background-color: var(--r-background-interactive-hovered);
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
::slotted(r-button:active:not([disabled]):not([disabled=false])) {
|
|
21
20
|
--r-button--background-color: var(--r-background-interactive-pressed);
|
|
22
|
-
--r-button--border-color: var(--r-border-soft);
|
|
23
21
|
}
|
|
@@ -64,7 +64,7 @@ export class PopoverAction {
|
|
|
64
64
|
return focusableElements(this.host);
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '898d4a649622403956b34ea5065ca5135e67c595', slot: "action" }, h("slot", { key: 'f61e085a1797778c33f07eaf3987cd743d56a662', onSlotchange: this.handleSlotChange })));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "r-popover-action"; }
|
|
70
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,7 +44,7 @@ export class PopoverContent {
|
|
|
44
44
|
return focusableElements(this.host);
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: 'b85780e40b627c6d859af763113bc88e21768f88', slot: "content", class: "r-typography" }, h("slot", { key: '7bd5e6152e29a4e20d837c21e1df7bff68a673da' })));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "r-popover-content"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class PopoverHeadline {
|
|
|
10
10
|
stopInverseThemeAwareness(this.host, themeContextElement);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '6b604401e4e82c17a300f00d6af33902b38f493c', slot: "headline" }, h("slot", { key: '64c8c6ff661e0317ba3ae0d4f32f6424d91fccbe' })));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "r-popover-headline"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,7 +53,7 @@ export class PopoverTrigger {
|
|
|
53
53
|
(_a = this.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: 'fe285ee3a91600ee0e0cebeb9f5818eb30d89f06', slot: "trigger", onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("slot", { key: '3782871f7aac634d3c1ccef2f516cdf00916b4f6' })));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "r-popover-trigger"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,7 @@ export class ProgressBar {
|
|
|
11
11
|
max: '100',
|
|
12
12
|
'aria-label': rAriaLabel
|
|
13
13
|
};
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'f79c73155a42eef63910abde1fc2cebd147b7129' }, h("progress", Object.assign({ key: 'ce94e9a20124fa8cd1561612e2797e17f0ebe19f' }, progressBarAttrs, { class: "r-progress-bar" }))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "r-progress-bar"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,6 +6,8 @@ export class RadioButton {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
/** Value of element data within a form */
|
|
8
8
|
this.value = this.slotTextValue;
|
|
9
|
+
/** Automatically focus the radio button when the component is mounted. Note: Only one element per page should have autofocus set to true, following browser standard behavior. */
|
|
10
|
+
this.autofocus = false;
|
|
9
11
|
/** Unique id */
|
|
10
12
|
this.uniqueId = `r-radio-button-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
11
13
|
this.onClick = (event) => {
|
|
@@ -26,18 +28,25 @@ export class RadioButton {
|
|
|
26
28
|
this.onBlur = () => {
|
|
27
29
|
this.host.classList.remove('focused');
|
|
28
30
|
};
|
|
31
|
+
this.applyAutofocus = () => {
|
|
32
|
+
queueMicrotask(() => {
|
|
33
|
+
this.setFocus();
|
|
34
|
+
});
|
|
35
|
+
};
|
|
29
36
|
}
|
|
30
37
|
/** Sets focus on the radio button element */
|
|
31
38
|
async setFocus() {
|
|
32
|
-
|
|
39
|
+
var _a;
|
|
40
|
+
(_a = this.nativeEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
33
41
|
}
|
|
34
42
|
/** Blurs the radio button element */
|
|
35
43
|
async setBlur() {
|
|
36
|
-
|
|
44
|
+
var _a;
|
|
45
|
+
(_a = this.nativeEl) === null || _a === void 0 ? void 0 : _a.blur();
|
|
37
46
|
}
|
|
38
47
|
/** Selects the radio button element */
|
|
39
48
|
async select() {
|
|
40
|
-
var _a;
|
|
49
|
+
var _a, _b, _c;
|
|
41
50
|
if (this.checked)
|
|
42
51
|
return;
|
|
43
52
|
if (this.disabled)
|
|
@@ -47,8 +56,8 @@ export class RadioButton {
|
|
|
47
56
|
radio.shadowRoot.querySelector('.r-radio-button--input').setAttribute('tabindex', '-1');
|
|
48
57
|
});
|
|
49
58
|
this.checked = true;
|
|
50
|
-
this.nativeEl.setAttribute('tabindex', '0');
|
|
51
|
-
this.nativeEl.focus();
|
|
59
|
+
(_b = this.nativeEl) === null || _b === void 0 ? void 0 : _b.setAttribute('tabindex', '0');
|
|
60
|
+
(_c = this.nativeEl) === null || _c === void 0 ? void 0 : _c.focus();
|
|
52
61
|
const { host, value, checked } = this;
|
|
53
62
|
this.rChange.emit({ element: host, value, checked });
|
|
54
63
|
}
|
|
@@ -82,6 +91,9 @@ export class RadioButton {
|
|
|
82
91
|
get isTrailing() {
|
|
83
92
|
return this.host.querySelector('[slot="trailing"]') !== null || this.host.querySelector('r-radio-button-trailing') !== null;
|
|
84
93
|
}
|
|
94
|
+
get shouldAutofocus() {
|
|
95
|
+
return this.autofocus && (!this.groupEl || !this.groupEl.autofocus);
|
|
96
|
+
}
|
|
85
97
|
componentWillLoad() {
|
|
86
98
|
if (!this.initialState)
|
|
87
99
|
this.initialState = this.checked;
|
|
@@ -89,8 +101,12 @@ export class RadioButton {
|
|
|
89
101
|
this.name = this.groupEl.name;
|
|
90
102
|
}
|
|
91
103
|
}
|
|
104
|
+
componentDidLoad() {
|
|
105
|
+
if (this.shouldAutofocus)
|
|
106
|
+
this.applyAutofocus();
|
|
107
|
+
}
|
|
92
108
|
render() {
|
|
93
|
-
const { name, value, checked, disabled, hint, uniqueId, required, invalid, error } = this;
|
|
109
|
+
const { name, value, checked, disabled, hint, uniqueId, required, invalid, error, autofocus } = this;
|
|
94
110
|
const inputAttrs = {
|
|
95
111
|
type: 'radio',
|
|
96
112
|
tabindex: '-1',
|
|
@@ -98,13 +114,14 @@ export class RadioButton {
|
|
|
98
114
|
value,
|
|
99
115
|
disabled,
|
|
100
116
|
checked,
|
|
101
|
-
required
|
|
117
|
+
required,
|
|
118
|
+
autofocus
|
|
102
119
|
};
|
|
103
|
-
return (h(Host, { key: '
|
|
104
|
-
h("div", { key: '
|
|
105
|
-
h("div", { key: '
|
|
106
|
-
h("r-hint", { key: '
|
|
107
|
-
h("r-hint", { key: '
|
|
120
|
+
return (h(Host, { key: '718b29840798212b4a31a2250fe79620554a9fb5' }, h("label", { key: 'ab86d4ca9bb300628a5b7f4bf10ba2ce88656d6d', class: "r-radio-button", onClick: this.onClick, onKeyDown: this.onKeydown }, h("input", Object.assign({ key: '529324a5ae32238b56ab9443a9ba3dd67b9b76bd' }, inputAttrs, { id: `${uniqueId}-input`, class: "r-radio-button--input", ref: el => this.nativeEl = el, onFocus: this.onFocus, onBlur: this.onBlur })), h("span", { key: 'a90a3704b4fc2d431482cca0c4064241001e09d2', class: "r-radio-button--box" }), this.isLeading &&
|
|
121
|
+
h("div", { key: '8a067dc10dc0f764c507be6610a8bf6f80565f8b', class: "r-radio-button--leading" }, h("slot", { key: 'db99a204cdf0932b203a65698f6167ede11309c4', name: "leading" }, this.icon && h("r-icon", { key: '8f6b1c585e0dcfcee9bb471e59f4d911ff72e7bc', name: this.icon, size: "m" }))), h("div", { key: 'b2ec0c20df6bffa599c5331016f3c52ce5661a17', class: "r-radio-button--text" }, h("slot", { key: '82ed5be7758c72ece18d4df27c0dbeb7e00ab1fc', name: "title" }, h("div", { key: '9c839853016eb5e7a3940bea0f9c5c755933ae55', style: { display: 'contents' } }, h("slot", { key: '78875045c000e5dcd0375fe2143e3032bf3a5226' }))), h("slot", { key: 'd75f2511dc33c734eb34c0d8953ed5be2f4cb7ea', name: "description" }, this.description)), this.isTrailing &&
|
|
122
|
+
h("div", { key: 'fd204a1c99ac54d60fc4479de3ca650d8ecf6508', class: "r-radio-button--trailing" }, h("slot", { key: '9a82590bc860567d1a60f9125622b1e63471ad94', name: "trailing" }))), invalid && error &&
|
|
123
|
+
h("r-hint", { key: '1fc760af1aff4ca5aaa595270c294b492fdb14e3', role: "alert", variant: "error", id: `${uniqueId}-hint` }, this.error), hint &&
|
|
124
|
+
h("r-hint", { key: '079a060908d285505f7093820933c173194f2348', role: "note", variant: "information", id: `${uniqueId}-hint` }, hint)));
|
|
108
125
|
}
|
|
109
126
|
static get is() { return "r-radio-button"; }
|
|
110
127
|
static get encapsulation() { return "shadow"; }
|
|
@@ -254,6 +271,26 @@ export class RadioButton {
|
|
|
254
271
|
"setter": false,
|
|
255
272
|
"reflect": true
|
|
256
273
|
},
|
|
274
|
+
"autofocus": {
|
|
275
|
+
"type": "boolean",
|
|
276
|
+
"attribute": "autofocus",
|
|
277
|
+
"mutable": false,
|
|
278
|
+
"complexType": {
|
|
279
|
+
"original": "boolean",
|
|
280
|
+
"resolved": "boolean",
|
|
281
|
+
"references": {}
|
|
282
|
+
},
|
|
283
|
+
"required": false,
|
|
284
|
+
"optional": true,
|
|
285
|
+
"docs": {
|
|
286
|
+
"tags": [],
|
|
287
|
+
"text": "Automatically focus the radio button when the component is mounted. Note: Only one element per page should have autofocus set to true, following browser standard behavior."
|
|
288
|
+
},
|
|
289
|
+
"getter": false,
|
|
290
|
+
"setter": false,
|
|
291
|
+
"reflect": false,
|
|
292
|
+
"defaultValue": "false"
|
|
293
|
+
},
|
|
257
294
|
"checked": {
|
|
258
295
|
"type": "boolean",
|
|
259
296
|
"attribute": "checked",
|