@riverty/web-components 5.3.0 → 5.5.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 +47 -1
- package/custom-elements.json +40 -4
- package/dist/cjs/{index-BnETQtSf.js → index-DJ4H_bFj.js} +382 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/r-accordion-item.cjs.entry.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 +1 -1
- package/dist/cjs/r-accordion.cjs.entry.js +1 -1
- package/dist/cjs/r-alert.cjs.entry.js +1 -1
- package/dist/cjs/r-badge.cjs.entry.js +2 -2
- package/dist/cjs/r-button.cjs.entry.js +1 -1
- package/dist/cjs/r-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/r-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/r-design-system-devtools.cjs.entry.js +1 -1
- package/dist/cjs/r-dialog.cjs.entry.js +12 -15
- package/dist/cjs/r-hint_3.cjs.entry.js +5 -5
- package/dist/cjs/r-icon-button.cjs.entry.js +4 -4
- package/dist/cjs/r-icon.cjs.entry.js +1 -1
- package/dist/cjs/r-input-code.cjs.entry.js +24 -8
- package/dist/cjs/r-input-date.cjs.entry.js +29 -8
- package/dist/cjs/r-input-password.cjs.entry.js +16 -5
- package/dist/cjs/r-input-phone-number.cjs.entry.js +58 -20
- package/dist/cjs/r-input.cjs.entry.js +31 -8
- package/dist/cjs/r-list-item.cjs.entry.js +17 -14
- package/dist/cjs/r-pagination.cjs.entry.js +1 -1
- package/dist/cjs/r-panel.cjs.entry.js +3 -3
- package/dist/cjs/r-popover-action.cjs.entry.js +2 -2
- package/dist/cjs/r-popover-content.cjs.entry.js +2 -2
- package/dist/cjs/r-popover-headline.cjs.entry.js +2 -2
- package/dist/cjs/r-popover-trigger.cjs.entry.js +2 -2
- package/dist/cjs/r-popover.cjs.entry.js +3 -3
- package/dist/cjs/r-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/r-radio-button-description.cjs.entry.js +2 -2
- package/dist/cjs/r-radio-button-leading.cjs.entry.js +2 -2
- package/dist/cjs/r-radio-button-title.cjs.entry.js +2 -2
- package/dist/cjs/r-radio-button-trailing.cjs.entry.js +2 -2
- package/dist/cjs/r-radio-button.cjs.entry.js +6 -6
- package/dist/cjs/r-radio-group.cjs.entry.js +7 -7
- package/dist/cjs/r-select-option.cjs.entry.js +2 -2
- package/dist/cjs/r-select.cjs.entry.js +6 -5
- package/dist/cjs/r-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/r-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/r-stepper.cjs.entry.js +2 -2
- package/dist/cjs/r-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/r-tab.cjs.entry.js +2 -2
- package/dist/cjs/r-tabs-list.cjs.entry.js +2 -2
- package/dist/cjs/r-tabs.cjs.entry.js +4 -4
- package/dist/cjs/r-textarea.cjs.entry.js +18 -4
- package/dist/cjs/r-toast-group.cjs.entry.js +15 -5
- package/dist/cjs/r-toast.cjs.entry.js +16 -10
- package/dist/cjs/web-components.cjs.js +2 -2
- package/dist/collection/components/badge/badge.css +7 -7
- package/dist/collection/components/dialog/dialog.css +14 -14
- package/dist/collection/components/dialog/dialog.js +27 -13
- package/dist/collection/components/icon-button/icon-button.js +3 -3
- package/dist/collection/components/input/input.css +17 -2
- package/dist/collection/components/input/input.js +48 -6
- package/dist/collection/components/input-code/input-code.css +17 -2
- package/dist/collection/components/input-code/input-code.js +41 -6
- package/dist/collection/components/input-date/input-date.css +13 -2
- package/dist/collection/components/input-date/input-date.js +46 -6
- package/dist/collection/components/input-password/input-password.js +34 -4
- package/dist/collection/components/input-phone-number/input-phone-number.js +79 -18
- package/dist/collection/components/label/label.js +3 -3
- package/dist/collection/components/list-item/list-item/list-item.css +39 -32
- package/dist/collection/components/list-item/list-item/list-item.js +77 -14
- package/dist/collection/components/panel/panel.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- 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 +5 -5
- 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 +6 -6
- package/dist/collection/components/select/select.js +5 -4
- 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 +3 -3
- package/dist/collection/components/tabs-list/tabs-list.js +1 -1
- package/dist/collection/components/textarea/textarea.css +52 -21
- package/dist/collection/components/textarea/textarea.js +36 -3
- package/dist/collection/components/toast/toast.css +10 -3
- package/dist/collection/components/toast/toast.js +19 -10
- package/dist/collection/components/toast-group/toast-group.css +14 -13
- package/dist/collection/components/toast-group/toast-group.js +14 -4
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/esm/{index-CTxpqopm.js → index-Da7qOBFr.js} +382 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/r-accordion-item.entry.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 +1 -1
- package/dist/esm/r-accordion.entry.js +1 -1
- package/dist/esm/r-alert.entry.js +1 -1
- package/dist/esm/r-badge.entry.js +2 -2
- package/dist/esm/r-button.entry.js +1 -1
- package/dist/esm/r-checkbox-group.entry.js +1 -1
- package/dist/esm/r-checkbox.entry.js +1 -1
- package/dist/esm/r-design-system-devtools.entry.js +1 -1
- package/dist/esm/r-dialog.entry.js +12 -15
- package/dist/esm/r-hint_3.entry.js +5 -5
- package/dist/esm/r-icon-button.entry.js +4 -4
- package/dist/esm/r-icon.entry.js +1 -1
- package/dist/esm/r-input-code.entry.js +24 -8
- package/dist/esm/r-input-date.entry.js +29 -8
- package/dist/esm/r-input-password.entry.js +16 -5
- package/dist/esm/r-input-phone-number.entry.js +58 -20
- package/dist/esm/r-input.entry.js +31 -8
- package/dist/esm/r-list-item.entry.js +17 -14
- package/dist/esm/r-pagination.entry.js +1 -1
- package/dist/esm/r-panel.entry.js +3 -3
- package/dist/esm/r-popover-action.entry.js +2 -2
- package/dist/esm/r-popover-content.entry.js +2 -2
- package/dist/esm/r-popover-headline.entry.js +2 -2
- package/dist/esm/r-popover-trigger.entry.js +2 -2
- package/dist/esm/r-popover.entry.js +3 -3
- package/dist/esm/r-progress-bar.entry.js +2 -2
- package/dist/esm/r-radio-button-description.entry.js +2 -2
- package/dist/esm/r-radio-button-leading.entry.js +2 -2
- package/dist/esm/r-radio-button-title.entry.js +2 -2
- package/dist/esm/r-radio-button-trailing.entry.js +2 -2
- package/dist/esm/r-radio-button.entry.js +6 -6
- package/dist/esm/r-radio-group.entry.js +7 -7
- package/dist/esm/r-select-option.entry.js +2 -2
- package/dist/esm/r-select.entry.js +6 -5
- package/dist/esm/r-skip-link.entry.js +2 -2
- package/dist/esm/r-stepper-item.entry.js +3 -3
- package/dist/esm/r-stepper.entry.js +2 -2
- package/dist/esm/r-tab-panel.entry.js +2 -2
- package/dist/esm/r-tab.entry.js +2 -2
- package/dist/esm/r-tabs-list.entry.js +2 -2
- package/dist/esm/r-tabs.entry.js +4 -4
- package/dist/esm/r-textarea.entry.js +18 -4
- package/dist/esm/r-toast-group.entry.js +15 -5
- package/dist/esm/r-toast.entry.js +16 -10
- package/dist/esm/web-components.js +3 -3
- package/dist/types/components/dialog/dialog.d.ts +7 -1
- package/dist/types/components/input/input.d.ts +7 -0
- package/dist/types/components/input-code/input-code.d.ts +6 -0
- package/dist/types/components/input-date/input-date.d.ts +6 -0
- package/dist/types/components/input-password/input-password.d.ts +5 -0
- package/dist/types/components/input-phone-number/input-phone-number.d.ts +7 -0
- package/dist/types/components/list-item/list-item/list-item.d.ts +16 -3
- package/dist/types/components/textarea/textarea.d.ts +8 -1
- package/dist/types/components/toast/toast.d.ts +6 -0
- package/dist/types/components/toast-group/toast-group.d.ts +2 -0
- package/dist/types/components.d.ts +101 -8
- package/dist/web-components/p-00ca474f.entry.js +1 -0
- package/dist/web-components/p-00eb6986.entry.js +1 -0
- package/dist/web-components/{p-a45fd808.entry.js → p-0735fd75.entry.js} +1 -1
- package/dist/web-components/{p-7545038f.entry.js → p-0bb04d79.entry.js} +1 -1
- package/dist/web-components/{p-ef0f43e0.entry.js → p-0f4eea22.entry.js} +1 -1
- package/dist/web-components/{p-4cf01f30.entry.js → p-1c2497de.entry.js} +1 -1
- package/dist/web-components/p-2265dae1.entry.js +1 -0
- package/dist/web-components/{p-03ff9abf.entry.js → p-230e44ae.entry.js} +1 -1
- package/dist/web-components/{p-4dae8c19.entry.js → p-24bbf3b6.entry.js} +1 -1
- package/dist/web-components/p-28718c50.entry.js +1 -0
- package/dist/web-components/{p-59aa588e.entry.js → p-2b2f581a.entry.js} +1 -1
- package/dist/web-components/p-3b4e3faf.entry.js +1 -0
- package/dist/web-components/p-3bc93d65.entry.js +1 -0
- package/dist/web-components/{p-8968ddf6.entry.js → p-429213ea.entry.js} +1 -1
- package/dist/web-components/{p-c60294d4.entry.js → p-43eff76a.entry.js} +1 -1
- package/dist/web-components/{p-87bb4b91.entry.js → p-44ae9f33.entry.js} +1 -1
- package/dist/web-components/{p-806b173d.entry.js → p-4652635a.entry.js} +1 -1
- package/dist/web-components/{p-832dca22.entry.js → p-4bd3e077.entry.js} +1 -1
- package/dist/web-components/{p-512d3a60.entry.js → p-4e3df002.entry.js} +1 -1
- package/dist/web-components/p-51a5804b.entry.js +1 -0
- package/dist/web-components/{p-a81a67da.entry.js → p-72fa1fd1.entry.js} +1 -1
- package/dist/web-components/{p-5bc9fe5e.entry.js → p-755cc697.entry.js} +1 -1
- package/dist/web-components/{p-e74c363a.entry.js → p-77155630.entry.js} +1 -1
- package/dist/web-components/{p-77335ae7.entry.js → p-7fccc301.entry.js} +1 -1
- package/dist/web-components/{p-651522b6.entry.js → p-85a9af42.entry.js} +1 -1
- package/dist/web-components/{p-24130cdb.entry.js → p-87f39749.entry.js} +1 -1
- package/dist/web-components/{p-c9b2389b.entry.js → p-89136369.entry.js} +1 -1
- package/dist/web-components/p-8c577cda.entry.js +1 -0
- package/dist/web-components/{p-6b7d5236.entry.js → p-99ba15d9.entry.js} +1 -1
- package/dist/web-components/{p-d35303a6.entry.js → p-9eb1f262.entry.js} +1 -1
- package/dist/web-components/p-Da7qOBFr.js +2 -0
- package/dist/web-components/p-a022f356.entry.js +1 -0
- package/dist/web-components/p-a58124c4.entry.js +1 -0
- package/dist/web-components/{p-8d2f4097.entry.js → p-a683612d.entry.js} +1 -1
- package/dist/web-components/{p-9891afb8.entry.js → p-a7e7f8fa.entry.js} +1 -1
- package/dist/web-components/p-ad4292d8.entry.js +1 -0
- package/dist/web-components/p-c09a863b.entry.js +1 -0
- package/dist/web-components/{p-26e4816a.entry.js → p-c7f8e59b.entry.js} +1 -1
- package/dist/web-components/{p-f625b739.entry.js → p-c937bd92.entry.js} +1 -1
- package/dist/web-components/p-cbcd7699.entry.js +1 -0
- package/dist/web-components/p-e0e2f2b2.entry.js +1 -0
- package/dist/web-components/{p-0930ee1d.entry.js → p-e49b1ec3.entry.js} +1 -1
- package/dist/web-components/p-e4b66277.entry.js +1 -0
- package/dist/web-components/p-e6a31881.entry.js +1 -0
- package/dist/web-components/p-f1e22caa.entry.js +1 -0
- package/dist/web-components/{p-5dd43433.entry.js → p-f22696e0.entry.js} +1 -1
- package/dist/web-components/p-f6a92287.entry.js +1 -0
- package/dist/web-components/p-f7adb875.entry.js +1 -0
- package/dist/web-components/web-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/web-components/p-0bd10e93.entry.js +0 -1
- package/dist/web-components/p-15d10c68.entry.js +0 -1
- package/dist/web-components/p-1cfa9a0e.entry.js +0 -1
- package/dist/web-components/p-23ff25a1.entry.js +0 -1
- package/dist/web-components/p-50f01d6b.entry.js +0 -1
- package/dist/web-components/p-547fc56c.entry.js +0 -1
- package/dist/web-components/p-5cd1ad6a.entry.js +0 -1
- package/dist/web-components/p-73adec9b.entry.js +0 -1
- package/dist/web-components/p-8388221b.entry.js +0 -1
- package/dist/web-components/p-8cc4be0c.entry.js +0 -1
- package/dist/web-components/p-90d390f4.entry.js +0 -1
- package/dist/web-components/p-98628a15.entry.js +0 -1
- package/dist/web-components/p-9f583ed1.entry.js +0 -1
- package/dist/web-components/p-CTxpqopm.js +0 -2
- package/dist/web-components/p-aff51d37.entry.js +0 -1
- package/dist/web-components/p-b07be088.entry.js +0 -1
- package/dist/web-components/p-b5c8e978.entry.js +0 -1
- package/dist/web-components/p-d6ef5fff.entry.js +0 -1
- package/dist/web-components/p-dfd8bed6.entry.js +0 -1
- package/dist/web-components/p-e138c70a.entry.js +0 -1
|
@@ -812,6 +812,10 @@ export namespace Components {
|
|
|
812
812
|
* Custom message for `rangeUnderflow`.
|
|
813
813
|
*/
|
|
814
814
|
"rangeUnderflowMessage"?: string;
|
|
815
|
+
/**
|
|
816
|
+
* Read-only mode (mirrors native `readonly`): value cannot be changed by the user, but the field can still receive focus, be selected, and be submitted with a form.
|
|
817
|
+
*/
|
|
818
|
+
"readonly"?: boolean;
|
|
815
819
|
/**
|
|
816
820
|
* Marks the field as required; failing to provide a value triggers `valueMissing`.
|
|
817
821
|
*/
|
|
@@ -969,6 +973,10 @@ export namespace Components {
|
|
|
969
973
|
* Specifies if element must be ignored during validation of the form elements.
|
|
970
974
|
*/
|
|
971
975
|
"novalidate"?: boolean;
|
|
976
|
+
/**
|
|
977
|
+
* Read-only mode (mirrors native `readonly`): value cannot be changed by the user, but the field can still receive focus, be selected, and be submitted with a form.
|
|
978
|
+
*/
|
|
979
|
+
"readonly"?: boolean;
|
|
972
980
|
/**
|
|
973
981
|
* Whether the input is required
|
|
974
982
|
*/
|
|
@@ -1073,6 +1081,10 @@ export namespace Components {
|
|
|
1073
1081
|
* Specifies if element must be ignored during validation of the form elements
|
|
1074
1082
|
*/
|
|
1075
1083
|
"novalidate"?: boolean;
|
|
1084
|
+
/**
|
|
1085
|
+
* Makes the date inputs read-only: users can focus and copy the value, but cannot modify it (value still submitted with the form unlike disabled).
|
|
1086
|
+
*/
|
|
1087
|
+
"readonly"?: boolean;
|
|
1076
1088
|
/**
|
|
1077
1089
|
* Specifies that an input is required/must be filled out
|
|
1078
1090
|
*/
|
|
@@ -1188,6 +1200,10 @@ export namespace Components {
|
|
|
1188
1200
|
* Specifies a short hint that describes the expected value of a input
|
|
1189
1201
|
*/
|
|
1190
1202
|
"placeholder"?: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* Makes the input read-only: users can focus and copy the value, but cannot modify it (value still submitted with the form unlike disabled).
|
|
1205
|
+
*/
|
|
1206
|
+
"readonly"?: boolean;
|
|
1191
1207
|
/**
|
|
1192
1208
|
* Specifies that an input is required/must be filled out
|
|
1193
1209
|
*/
|
|
@@ -1300,6 +1316,10 @@ export namespace Components {
|
|
|
1300
1316
|
* Specifies if element must be ignored during validation of the form elements
|
|
1301
1317
|
*/
|
|
1302
1318
|
"novalidate"?: boolean;
|
|
1319
|
+
/**
|
|
1320
|
+
* Makes the date inputs read-only: users can focus and copy the value, but cannot modify it (value still submitted with the form unlike disabled).
|
|
1321
|
+
*/
|
|
1322
|
+
"readonly"?: boolean;
|
|
1303
1323
|
/**
|
|
1304
1324
|
* Check validity and reveal validation state.
|
|
1305
1325
|
*/
|
|
@@ -1378,6 +1398,10 @@ export namespace Components {
|
|
|
1378
1398
|
* Defines the alignment style for the trailing text.
|
|
1379
1399
|
*/
|
|
1380
1400
|
"alignment": TrailingTextAlignment;
|
|
1401
|
+
/**
|
|
1402
|
+
* Secondary text displayed below the headline (2nd slot), used for additional details or context.
|
|
1403
|
+
*/
|
|
1404
|
+
"description"?: string;
|
|
1381
1405
|
/**
|
|
1382
1406
|
* If true, prevents user interaction with the list item and applies a disabled style.
|
|
1383
1407
|
*/
|
|
@@ -1392,9 +1416,13 @@ export namespace Components {
|
|
|
1392
1416
|
*/
|
|
1393
1417
|
"expanded": boolean;
|
|
1394
1418
|
/**
|
|
1395
|
-
* The main text or
|
|
1419
|
+
* The main text or headline displayed in the text slot (2nd slot) of the list item.
|
|
1396
1420
|
*/
|
|
1397
1421
|
"headline"?: string;
|
|
1422
|
+
/**
|
|
1423
|
+
* Defines if the leading icon shall become hidden.
|
|
1424
|
+
*/
|
|
1425
|
+
"hideLeadingIcon"?: boolean;
|
|
1398
1426
|
/**
|
|
1399
1427
|
* If provided, renders the list item as a link using the <a> tag with the given href attribute.
|
|
1400
1428
|
*/
|
|
@@ -1408,7 +1436,7 @@ export namespace Components {
|
|
|
1408
1436
|
*/
|
|
1409
1437
|
"leadingIconSrc"?: string;
|
|
1410
1438
|
/**
|
|
1411
|
-
* Secondary text displayed below the headline (2nd slot), used for additional details or context.
|
|
1439
|
+
* @deprecated Use `description` instead. Will be removed November 2025. Secondary text displayed below the headline (2nd slot), used for additional details or context.
|
|
1412
1440
|
*/
|
|
1413
1441
|
"subtext"?: string;
|
|
1414
1442
|
/**
|
|
@@ -1427,6 +1455,10 @@ export namespace Components {
|
|
|
1427
1455
|
* Text displayed in the trailing slot (3rd slot), as an alternative to an icon.
|
|
1428
1456
|
*/
|
|
1429
1457
|
"trailingText"?: string;
|
|
1458
|
+
/**
|
|
1459
|
+
* When enabled, the description is limited to a single line and truncated with an ellipsis if it overflows.
|
|
1460
|
+
*/
|
|
1461
|
+
"truncateDescription"?: boolean;
|
|
1430
1462
|
/**
|
|
1431
1463
|
* Controls the style variation of the list item, such as regular or subitem.
|
|
1432
1464
|
* @default 'list-item'
|
|
@@ -2338,6 +2370,10 @@ export namespace Components {
|
|
|
2338
2370
|
* @default 'Provide an input'
|
|
2339
2371
|
*/
|
|
2340
2372
|
"placeholder": string;
|
|
2373
|
+
/**
|
|
2374
|
+
* Indicates whether the `<textarea>` is read-only, allowing focus and text selection while preventing the user from modifying its value.
|
|
2375
|
+
*/
|
|
2376
|
+
"readonly"?: boolean;
|
|
2341
2377
|
/**
|
|
2342
2378
|
* Validates an element and displays validity state.
|
|
2343
2379
|
*/
|
|
@@ -2384,7 +2420,7 @@ export namespace Components {
|
|
|
2384
2420
|
*/
|
|
2385
2421
|
"setValue": (value: string) => Promise<void>;
|
|
2386
2422
|
/**
|
|
2387
|
-
* Specifies if the character counter should be visible.
|
|
2423
|
+
* Specifies if the character counter should be visible. Note: The counter will only be rendered when a `maxlength` value is provided.
|
|
2388
2424
|
*/
|
|
2389
2425
|
"showCounter"?: boolean;
|
|
2390
2426
|
/**
|
|
@@ -2455,7 +2491,8 @@ export namespace Components {
|
|
|
2455
2491
|
*/
|
|
2456
2492
|
"dismissLabel": string;
|
|
2457
2493
|
/**
|
|
2458
|
-
*
|
|
2494
|
+
* Defines the behavior of the component's dismissing. - `auto`: The component will be dismissed automatically after number of ms set by `delay` property. - `manual`: The component requires explicit user action to close.
|
|
2495
|
+
* @default "auto"
|
|
2459
2496
|
*/
|
|
2460
2497
|
"dismissMode": ToastDismissMode;
|
|
2461
2498
|
/**
|
|
@@ -2546,6 +2583,10 @@ export interface RCheckboxGroupCustomEvent<T> extends CustomEvent<T> {
|
|
|
2546
2583
|
detail: T;
|
|
2547
2584
|
target: HTMLRCheckboxGroupElement;
|
|
2548
2585
|
}
|
|
2586
|
+
export interface RDialogCustomEvent<T> extends CustomEvent<T> {
|
|
2587
|
+
detail: T;
|
|
2588
|
+
target: HTMLRDialogElement;
|
|
2589
|
+
}
|
|
2549
2590
|
export interface RIconButtonCustomEvent<T> extends CustomEvent<T> {
|
|
2550
2591
|
detail: T;
|
|
2551
2592
|
target: HTMLRIconButtonElement;
|
|
@@ -2821,7 +2862,18 @@ declare global {
|
|
|
2821
2862
|
prototype: HTMLRDesignSystemDevtoolsElement;
|
|
2822
2863
|
new (): HTMLRDesignSystemDevtoolsElement;
|
|
2823
2864
|
};
|
|
2865
|
+
interface HTMLRDialogElementEventMap {
|
|
2866
|
+
"close": any;
|
|
2867
|
+
}
|
|
2824
2868
|
interface HTMLRDialogElement extends Components.RDialog, HTMLStencilElement {
|
|
2869
|
+
addEventListener<K extends keyof HTMLRDialogElementEventMap>(type: K, listener: (this: HTMLRDialogElement, ev: RDialogCustomEvent<HTMLRDialogElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2870
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2871
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2872
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2873
|
+
removeEventListener<K extends keyof HTMLRDialogElementEventMap>(type: K, listener: (this: HTMLRDialogElement, ev: RDialogCustomEvent<HTMLRDialogElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2874
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2875
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2876
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2825
2877
|
}
|
|
2826
2878
|
var HTMLRDialogElement: {
|
|
2827
2879
|
prototype: HTMLRDialogElement;
|
|
@@ -4029,6 +4081,10 @@ declare namespace LocalJSX {
|
|
|
4029
4081
|
* Allows to provide headline text to the dialog header section.
|
|
4030
4082
|
*/
|
|
4031
4083
|
"headline"?: string;
|
|
4084
|
+
/**
|
|
4085
|
+
* Emitted when the dialog is closed. Fired by close(), and by the close button.
|
|
4086
|
+
*/
|
|
4087
|
+
"onClose"?: (event: RDialogCustomEvent<any>) => void;
|
|
4032
4088
|
/**
|
|
4033
4089
|
* Define if dialog either shown or hidden.
|
|
4034
4090
|
* @default false
|
|
@@ -4299,6 +4355,10 @@ declare namespace LocalJSX {
|
|
|
4299
4355
|
* Custom message for `rangeUnderflow`.
|
|
4300
4356
|
*/
|
|
4301
4357
|
"rangeUnderflowMessage"?: string;
|
|
4358
|
+
/**
|
|
4359
|
+
* Read-only mode (mirrors native `readonly`): value cannot be changed by the user, but the field can still receive focus, be selected, and be submitted with a form.
|
|
4360
|
+
*/
|
|
4361
|
+
"readonly"?: boolean;
|
|
4302
4362
|
/**
|
|
4303
4363
|
* Marks the field as required; failing to provide a value triggers `valueMissing`.
|
|
4304
4364
|
*/
|
|
@@ -4446,6 +4506,10 @@ declare namespace LocalJSX {
|
|
|
4446
4506
|
state: string,
|
|
4447
4507
|
message: string
|
|
4448
4508
|
}>) => void;
|
|
4509
|
+
/**
|
|
4510
|
+
* Read-only mode (mirrors native `readonly`): value cannot be changed by the user, but the field can still receive focus, be selected, and be submitted with a form.
|
|
4511
|
+
*/
|
|
4512
|
+
"readonly"?: boolean;
|
|
4449
4513
|
/**
|
|
4450
4514
|
* Whether the input is required
|
|
4451
4515
|
*/
|
|
@@ -4561,6 +4625,10 @@ declare namespace LocalJSX {
|
|
|
4561
4625
|
state: string,
|
|
4562
4626
|
message: string
|
|
4563
4627
|
}>) => void;
|
|
4628
|
+
/**
|
|
4629
|
+
* Makes the date inputs read-only: users can focus and copy the value, but cannot modify it (value still submitted with the form unlike disabled).
|
|
4630
|
+
*/
|
|
4631
|
+
"readonly"?: boolean;
|
|
4564
4632
|
/**
|
|
4565
4633
|
* Specifies that an input is required/must be filled out
|
|
4566
4634
|
*/
|
|
@@ -4683,6 +4751,10 @@ declare namespace LocalJSX {
|
|
|
4683
4751
|
* Specifies a short hint that describes the expected value of a input
|
|
4684
4752
|
*/
|
|
4685
4753
|
"placeholder"?: string;
|
|
4754
|
+
/**
|
|
4755
|
+
* Makes the input read-only: users can focus and copy the value, but cannot modify it (value still submitted with the form unlike disabled).
|
|
4756
|
+
*/
|
|
4757
|
+
"readonly"?: boolean;
|
|
4686
4758
|
/**
|
|
4687
4759
|
* Specifies that an input is required/must be filled out
|
|
4688
4760
|
*/
|
|
@@ -4811,6 +4883,10 @@ declare namespace LocalJSX {
|
|
|
4811
4883
|
state: string,
|
|
4812
4884
|
message: string
|
|
4813
4885
|
}>) => void;
|
|
4886
|
+
/**
|
|
4887
|
+
* Makes the date inputs read-only: users can focus and copy the value, but cannot modify it (value still submitted with the form unlike disabled).
|
|
4888
|
+
*/
|
|
4889
|
+
"readonly"?: boolean;
|
|
4814
4890
|
/**
|
|
4815
4891
|
* Specifies that phone number value is required
|
|
4816
4892
|
*/
|
|
@@ -4873,6 +4949,10 @@ declare namespace LocalJSX {
|
|
|
4873
4949
|
* Defines the alignment style for the trailing text.
|
|
4874
4950
|
*/
|
|
4875
4951
|
"alignment"?: TrailingTextAlignment;
|
|
4952
|
+
/**
|
|
4953
|
+
* Secondary text displayed below the headline (2nd slot), used for additional details or context.
|
|
4954
|
+
*/
|
|
4955
|
+
"description"?: string;
|
|
4876
4956
|
/**
|
|
4877
4957
|
* If true, prevents user interaction with the list item and applies a disabled style.
|
|
4878
4958
|
*/
|
|
@@ -4887,9 +4967,13 @@ declare namespace LocalJSX {
|
|
|
4887
4967
|
*/
|
|
4888
4968
|
"expanded"?: boolean;
|
|
4889
4969
|
/**
|
|
4890
|
-
* The main text or
|
|
4970
|
+
* The main text or headline displayed in the text slot (2nd slot) of the list item.
|
|
4891
4971
|
*/
|
|
4892
4972
|
"headline"?: string;
|
|
4973
|
+
/**
|
|
4974
|
+
* Defines if the leading icon shall become hidden.
|
|
4975
|
+
*/
|
|
4976
|
+
"hideLeadingIcon"?: boolean;
|
|
4893
4977
|
/**
|
|
4894
4978
|
* If provided, renders the list item as a link using the <a> tag with the given href attribute.
|
|
4895
4979
|
*/
|
|
@@ -4903,7 +4987,7 @@ declare namespace LocalJSX {
|
|
|
4903
4987
|
*/
|
|
4904
4988
|
"leadingIconSrc"?: string;
|
|
4905
4989
|
/**
|
|
4906
|
-
* Secondary text displayed below the headline (2nd slot), used for additional details or context.
|
|
4990
|
+
* @deprecated Use `description` instead. Will be removed November 2025. Secondary text displayed below the headline (2nd slot), used for additional details or context.
|
|
4907
4991
|
*/
|
|
4908
4992
|
"subtext"?: string;
|
|
4909
4993
|
/**
|
|
@@ -4918,6 +5002,10 @@ declare namespace LocalJSX {
|
|
|
4918
5002
|
* Text displayed in the trailing slot (3rd slot), as an alternative to an icon.
|
|
4919
5003
|
*/
|
|
4920
5004
|
"trailingText"?: string;
|
|
5005
|
+
/**
|
|
5006
|
+
* When enabled, the description is limited to a single line and truncated with an ellipsis if it overflows.
|
|
5007
|
+
*/
|
|
5008
|
+
"truncateDescription"?: boolean;
|
|
4921
5009
|
/**
|
|
4922
5010
|
* Controls the style variation of the list item, such as regular or subitem.
|
|
4923
5011
|
* @default 'list-item'
|
|
@@ -5814,6 +5902,10 @@ declare namespace LocalJSX {
|
|
|
5814
5902
|
* @default 'Provide an input'
|
|
5815
5903
|
*/
|
|
5816
5904
|
"placeholder"?: string;
|
|
5905
|
+
/**
|
|
5906
|
+
* Indicates whether the `<textarea>` is read-only, allowing focus and text selection while preventing the user from modifying its value.
|
|
5907
|
+
*/
|
|
5908
|
+
"readonly"?: boolean;
|
|
5817
5909
|
/**
|
|
5818
5910
|
* Indicates that the `<textarea>` must be filled out before submitting the form.
|
|
5819
5911
|
*/
|
|
@@ -5828,7 +5920,7 @@ declare namespace LocalJSX {
|
|
|
5828
5920
|
*/
|
|
5829
5921
|
"rows"?: number;
|
|
5830
5922
|
/**
|
|
5831
|
-
* Specifies if the character counter should be visible.
|
|
5923
|
+
* Specifies if the character counter should be visible. Note: The counter will only be rendered when a `maxlength` value is provided.
|
|
5832
5924
|
*/
|
|
5833
5925
|
"showCounter"?: boolean;
|
|
5834
5926
|
/**
|
|
@@ -5895,7 +5987,8 @@ declare namespace LocalJSX {
|
|
|
5895
5987
|
*/
|
|
5896
5988
|
"dismissLabel"?: string;
|
|
5897
5989
|
/**
|
|
5898
|
-
*
|
|
5990
|
+
* Defines the behavior of the component's dismissing. - `auto`: The component will be dismissed automatically after number of ms set by `delay` property. - `manual`: The component requires explicit user action to close.
|
|
5991
|
+
* @default "auto"
|
|
5899
5992
|
*/
|
|
5900
5993
|
"dismissMode"?: ToastDismissMode;
|
|
5901
5994
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as r,g as a}from"./p-Da7qOBFr.js";const s=class{constructor(e){t(this,e)}render(){return e(r,{key:"623feed7834a4702b83257202de4505b6c08145d",slot:"title"},e("div",{key:"ca7b90c670583ba4a874df1da73dad9db67d0bf7",class:"r-radio-button-title",style:{display:"contents"}},e("slot",{key:"fd7ac8a7ee5e2cd05dab3d061328eecb5ee14800"})))}get host(){return a(this)}};s.style=":host{font-weight:var(--r-font-weight-semibold, 600);font-size:var(--r-font-size-400, 1rem);line-height:var(--r-line-height-m, 1.5);color:var(--r-text-regular, #282828);text-align:left;cursor:inherit}";export{s as r_radio_button_title}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,H as e,g as h}from"./p-Da7qOBFr.js";import{a as o}from"./p-DvLT8-y3.js";const a=class{constructor(s){t(this,s),this.rValidate=i(this,"rValidate"),this.rInput=i(this,"rInput"),this.rChange=i(this,"rChange"),this.rReset=i(this,"rReset"),this.value="",this.showPasswordAriaLabel="Show password.",this.hidePasswordAriaLabel="Hide password.",this.shownPasswordMessage="Your password is shown.",this.hiddenPasswordMessage="Your password is hidden.",this.showed=!1,this.validityState="",this.validityMessage="",this.initial={},this.onShowClick=t=>{t.stopPropagation(),this.toggleShow()},this.alertOnPasswordVisibilityChange=()=>{this.passwordVisibilityChangeAlertContainer.innerText=this.showed?this.shownPasswordMessage:this.hiddenPasswordMessage,this.passwordVisibilityTimer=setTimeout((()=>{this.passwordVisibilityChangeAlertContainer.innerText="",clearTimeout(this.passwordVisibilityTimer)}),2e3)},this.onInput=t=>{if(this.readonly)return;this.value=t.detail.value;const{host:i,value:s}=this;this.rInput.emit({element:i,value:s})},this.onChange=t=>{if(this.readonly)return;this.value=t.detail.value;const{host:i,value:s}=this;this.rChange.emit({element:i,value:s})},this.getValidityStateData=t=>{for(const i in t.validity)if(t.validity[i]){if(this.validityState=i,this[i+"Message"])return void(this.validityMessage=this[i+"Message"]);this.validityMessage=t.validationMessage}},this.validateFormElement=t=>{if(null===t)return;if(this.isNoValidate)return;if(this.error)return;this.getValidityStateData(t.shadowRoot.querySelector("input"));const i="valid"===this.validityState;this.valid=i,this.invalid=!i,this.rValidate.emit({state:this.validityState,message:this.validityMessage})},this.contributeToFormData=t=>{o(this.nativeElement||this.host,t.formData)},this.onResetForm=()=>{if(this.readonly)return;this.validityState=null,this.validityMessage=null,this.value=this.initial.value,this.invalid=this.initial.invalid,this.valid=!this.invalid;const{host:t,value:i}=this;this.rReset.emit({element:t,value:i})},this.onSubmitForm=async t=>{this.isNoValidate||(this.validateFormElement(this.nativeElement),this.invalid&&(t.preventDefault(),t.stopPropagation()))},this.handleKeyup=async t=>{var i,s;if(this.readonly)return;if("Enter"!==t.code)return;if(this.validateFormElement(this.nativeElement),this.invalid&&!this.isNoValidate)return;const e=this.host.querySelector('[type="submit"]')||(null===(i=this.parentFormEl)||void 0===i?void 0:i.querySelector('[type="submit"]'));e&&"triggerClick"in e?null==e||e.triggerClick():null===(s=this.parentFormEl)||void 0===s||s.requestSubmit()},this.handleBlur=()=>{this.readonly||this.validateFormElement(this.nativeElement)}}async toggleShow(){this.showed?await this.hidePassword():await this.showPassword()}async showPassword(){this.showed=!0,this.alertOnPasswordVisibilityChange()}async hidePassword(){this.showed=!1,this.alertOnPasswordVisibilityChange()}async getValue(){return this.nativeElement.getValue()}async setValue(t){this.nativeElement.value=t}get parentFormEl(){return this.host.closest("form")||document.querySelector(`#${this.form}`)||null}get isNoValidate(){var t;return(null===(t=this.parentFormEl)||void 0===t?void 0:t.hasAttribute("novalidate"))||this.novalidate||!1}get hasError(){var t;return this.invalid&&!!(null===(t=this.error)||void 0===t?void 0:t.length)}get hasValidationError(){var t,i;return!("valid"===this.validityState||!(null===(t=this.customErrorMessage)||void 0===t?void 0:t.length)&&!(null===(i=this.validityMessage)||void 0===i?void 0:i.length))}get hasMessage(){return this.hasError||this.hasValidationError}componentWillLoad(){this.initial.value=this.value,this.initial.invalid=this.invalid}connectFormEventListeners(){var t,i,s;null===(t=this.parentFormEl)||void 0===t||t.addEventListener("formdata",this.contributeToFormData),null===(i=this.parentFormEl)||void 0===i||i.addEventListener("submit",this.onSubmitForm,{capture:!0}),null===(s=this.parentFormEl)||void 0===s||s.addEventListener("reset",this.onResetForm)}disconnectFormEventListeners(){var t,i,s;null===(t=this.parentFormEl)||void 0===t||t.removeEventListener("formdata",this.contributeToFormData),null===(i=this.parentFormEl)||void 0===i||i.removeEventListener("submit",this.onSubmitForm),null===(s=this.parentFormEl)||void 0===s||s.removeEventListener("reset",this.onResetForm)}connectedCallback(){this.connectFormEventListeners()}disconnectedCallback(){this.disconnectFormEventListeners()}render(){const{name:t,placeholder:i,required:h,fieldIndicator:o,value:a,disabled:l,form:r,invalid:n,valid:d,hint:u,label:c,tooltip:f,tooltipIcon:v,tooltipIconColor:p,fullWidth:b,showPasswordAriaLabel:m,hidePasswordAriaLabel:y,showed:g,readonly:w}=this;return s(e,{key:"a572ffb573f9d4ff7732c372077d1488a86fd4be"},s("r-input",Object.assign({key:"9296fe93c32f82c850c571dfc588d599d4fedfeb"},{name:t,placeholder:i,required:h,fieldIndicator:o,value:a,disabled:l,form:r,invalid:n,valid:d,hint:u,label:c,tooltip:f,tooltipIcon:v,tooltipIconColor:p,fullWidth:b,novalidate:!0,readonly:w},{ref:t=>this.nativeElement=t,type:g?"text":"password",onRInput:this.onInput,onRChange:this.onChange,onKeyUp:this.handleKeyup,onRBlur:this.handleBlur}),s("r-icon",{key:"4ed51719c83a3b4e90fd86d95969b982f3372d16",name:"padlock-closed",size:"s",slot:"leading"}),s("slot",{key:"c00d7cd2254773750a7a4627c7600550590f0e03",name:"popover",slot:"popover"}),s("r-icon-button",{key:"7bf8aabd7b00a2a36038d1f6162f11114dfa72fa",slot:"trailing",name:g?"eye-crossed-out":"eye",size:"s",disabled:l,label:g?y:m,onClick:this.onShowClick}),this.hasMessage&&s("r-hint",{key:"654c4558871e740f13ae50351ff82e3befccc83d",slot:"message",variant:"error"},this.hasError&&this.error,this.hasValidationError&&(this.customErrorMessage||this.validityMessage))),s("div",{key:"e8b5e4a4a69ddf7074e88eb18c5e9ff725e3baa5",class:"visually-hidden",ref:t=>this.passwordVisibilityChangeAlertContainer=t,"aria-live":"polite"}))}get host(){return h(this)}};a.style=":host{display:inline-flex;flex-direction:column;vertical-align:top}:host([full-width]:not([full-width=false])){display:block}:host([disabled]:not([disabled=false])) r-icon-button{opacity:1}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";export{a as r_input_password}
|