@momentum-design/components 0.120.35 → 0.120.37
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/dist/browser/index.js +175 -175
- package/dist/browser/index.js.map +3 -3
- package/dist/components/input/input.component.d.ts +6 -0
- package/dist/components/input/input.component.js +12 -2
- package/dist/components/popover/popover.component.d.ts +13 -0
- package/dist/components/popover/popover.component.js +30 -1
- package/dist/custom-elements.json +227 -151
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
|
@@ -132,6 +132,12 @@ declare class Input extends Input_base implements AssociatedFormControl {
|
|
|
132
132
|
* @default ''
|
|
133
133
|
*/
|
|
134
134
|
clearAriaLabel: string;
|
|
135
|
+
/**
|
|
136
|
+
* Defines a id pointing to the element which describes the input element.
|
|
137
|
+
* The AriaDescribedby attribute to be set for accessibility.
|
|
138
|
+
* @default null
|
|
139
|
+
*/
|
|
140
|
+
dataAriaDescribedby: string | null;
|
|
135
141
|
connectedCallback(): void;
|
|
136
142
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
137
143
|
/** @internal */
|
|
@@ -111,6 +111,12 @@ class Input extends AutoFocusOnMountMixin(FormInternalsMixin(DataAriaLabelMixin(
|
|
|
111
111
|
* @default ''
|
|
112
112
|
*/
|
|
113
113
|
this.clearAriaLabel = '';
|
|
114
|
+
/**
|
|
115
|
+
* Defines a id pointing to the element which describes the input element.
|
|
116
|
+
* The AriaDescribedby attribute to be set for accessibility.
|
|
117
|
+
* @default null
|
|
118
|
+
*/
|
|
119
|
+
this.dataAriaDescribedby = null;
|
|
114
120
|
}
|
|
115
121
|
connectedCallback() {
|
|
116
122
|
super.connectedCallback();
|
|
@@ -300,7 +306,7 @@ class Input extends AutoFocusOnMountMixin(FormInternalsMixin(DataAriaLabelMixin(
|
|
|
300
306
|
`;
|
|
301
307
|
}
|
|
302
308
|
renderInputElement(type, hidePlaceholder = false) {
|
|
303
|
-
var _a;
|
|
309
|
+
var _a, _b;
|
|
304
310
|
const placeholderText = hidePlaceholder ? '' : this.placeholder;
|
|
305
311
|
return html `<input
|
|
306
312
|
aria-label="${(_a = this.dataAriaLabel) !== null && _a !== void 0 ? _a : ''}"
|
|
@@ -312,7 +318,7 @@ class Input extends AutoFocusOnMountMixin(FormInternalsMixin(DataAriaLabelMixin(
|
|
|
312
318
|
?readonly="${this.readonly}"
|
|
313
319
|
?required="${this.required}"
|
|
314
320
|
type="${type}"
|
|
315
|
-
aria-describedby="${ifDefined(this.helpText ? FORMFIELD_DEFAULTS.HELPER_TEXT_ID : '')}"
|
|
321
|
+
aria-describedby="${ifDefined(this.helpText ? FORMFIELD_DEFAULTS.HELPER_TEXT_ID : ((_b = this.dataAriaDescribedby) !== null && _b !== void 0 ? _b : ''))}"
|
|
316
322
|
aria-invalid="${this.helpTextType === 'error' ? 'true' : 'false'}"
|
|
317
323
|
placeholder=${ifDefined(placeholderText)}
|
|
318
324
|
minlength=${ifDefined(this.minlength)}
|
|
@@ -396,4 +402,8 @@ __decorate([
|
|
|
396
402
|
property({ type: String, attribute: 'clear-aria-label' }),
|
|
397
403
|
__metadata("design:type", Object)
|
|
398
404
|
], Input.prototype, "clearAriaLabel", void 0);
|
|
405
|
+
__decorate([
|
|
406
|
+
property({ type: String, reflect: true, attribute: 'data-aria-describedby' }),
|
|
407
|
+
__metadata("design:type", Object)
|
|
408
|
+
], Input.prototype, "dataAriaDescribedby", void 0);
|
|
399
409
|
export default Input;
|
|
@@ -447,6 +447,19 @@ declare class Popover extends Popover_base {
|
|
|
447
447
|
*/
|
|
448
448
|
private positionPopover;
|
|
449
449
|
protected isEventFromTrigger(event: Event): boolean;
|
|
450
|
+
/**
|
|
451
|
+
* Detects if the current layout is in RTL (right-to-left) mode.
|
|
452
|
+
* @returns True if RTL, false if LTR
|
|
453
|
+
* @internal
|
|
454
|
+
*/
|
|
455
|
+
protected isRtl(): boolean;
|
|
456
|
+
/**
|
|
457
|
+
* Adjusts the placement for RTL layouts by flipping left/right directions.
|
|
458
|
+
* @param placement - The original placement value
|
|
459
|
+
* @returns The adjusted placement for RTL or original placement for LTR
|
|
460
|
+
* @internal
|
|
461
|
+
*/
|
|
462
|
+
protected adjustPlacementForRtl(placement: PopoverPlacement): PopoverPlacement;
|
|
450
463
|
render(): import("lit-html").TemplateResult<1>;
|
|
451
464
|
static styles: Array<CSSResult>;
|
|
452
465
|
}
|
|
@@ -648,8 +648,9 @@ class Popover extends BackdropMixin(PreventScrollMixin(FocusTrapMixin(Component)
|
|
|
648
648
|
const { triggerElement } = this;
|
|
649
649
|
if (!triggerElement)
|
|
650
650
|
return;
|
|
651
|
+
const adjustedPlacement = this.adjustPlacementForRtl(this.placement);
|
|
651
652
|
const { x, y, middlewareData, placement } = await computePosition(triggerElement, this, {
|
|
652
|
-
placement:
|
|
653
|
+
placement: adjustedPlacement,
|
|
653
654
|
middleware,
|
|
654
655
|
strategy: this.strategy,
|
|
655
656
|
});
|
|
@@ -860,6 +861,34 @@ class Popover extends BackdropMixin(PreventScrollMixin(FocusTrapMixin(Component)
|
|
|
860
861
|
}
|
|
861
862
|
return ((_a = event.target) === null || _a === void 0 ? void 0 : _a.id) === this.triggerID;
|
|
862
863
|
}
|
|
864
|
+
/**
|
|
865
|
+
* Detects if the current layout is in RTL (right-to-left) mode.
|
|
866
|
+
* @returns True if RTL, false if LTR
|
|
867
|
+
* @internal
|
|
868
|
+
*/
|
|
869
|
+
isRtl() {
|
|
870
|
+
return window.getComputedStyle(this).direction === 'rtl';
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Adjusts the placement for RTL layouts by flipping left/right directions.
|
|
874
|
+
* @param placement - The original placement value
|
|
875
|
+
* @returns The adjusted placement for RTL or original placement for LTR
|
|
876
|
+
* @internal
|
|
877
|
+
*/
|
|
878
|
+
adjustPlacementForRtl(placement) {
|
|
879
|
+
if (!this.isRtl()) {
|
|
880
|
+
return placement;
|
|
881
|
+
}
|
|
882
|
+
switch (placement) {
|
|
883
|
+
case POPOVER_PLACEMENT.LEFT: return POPOVER_PLACEMENT.RIGHT;
|
|
884
|
+
case POPOVER_PLACEMENT.LEFT_START: return POPOVER_PLACEMENT.RIGHT_START;
|
|
885
|
+
case POPOVER_PLACEMENT.LEFT_END: return POPOVER_PLACEMENT.RIGHT_END;
|
|
886
|
+
case POPOVER_PLACEMENT.RIGHT: return POPOVER_PLACEMENT.LEFT;
|
|
887
|
+
case POPOVER_PLACEMENT.RIGHT_START: return POPOVER_PLACEMENT.LEFT_START;
|
|
888
|
+
case POPOVER_PLACEMENT.RIGHT_END: return POPOVER_PLACEMENT.LEFT_END;
|
|
889
|
+
default: return placement;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
863
892
|
render() {
|
|
864
893
|
return html `
|
|
865
894
|
<div part="popover-hover-bridge"></div>
|
|
@@ -477,157 +477,6 @@
|
|
|
477
477
|
}
|
|
478
478
|
]
|
|
479
479
|
},
|
|
480
|
-
{
|
|
481
|
-
"kind": "javascript-module",
|
|
482
|
-
"path": "components/accordiongroup/accordiongroup.component.js",
|
|
483
|
-
"declarations": [
|
|
484
|
-
{
|
|
485
|
-
"kind": "class",
|
|
486
|
-
"description": "An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\nEach heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\nAccordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n\n- Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n\nThere are three types of variants:\n- Stacked - Each accordion will have a gap of 1.5rem (24px).\n- Borderless - Each accordion will not have any border and the group will also not have any border.\n- Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n\nThere are two types of sizes:\n- Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n- Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n\nThe variant and size will be applied to all accordions inside this accordion group.\nTo show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n\nIf you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n\nIf the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.",
|
|
487
|
-
"name": "AccordionGroup",
|
|
488
|
-
"cssProperties": [
|
|
489
|
-
{
|
|
490
|
-
"description": "The border color of the entire accordiongroup",
|
|
491
|
-
"name": "--mdc-accordiongroup-border-color"
|
|
492
|
-
}
|
|
493
|
-
],
|
|
494
|
-
"slots": [
|
|
495
|
-
{
|
|
496
|
-
"description": "The default slot can contain the `accordion` or `accordionbutton` components.",
|
|
497
|
-
"name": "default"
|
|
498
|
-
}
|
|
499
|
-
],
|
|
500
|
-
"members": [
|
|
501
|
-
{
|
|
502
|
-
"kind": "field",
|
|
503
|
-
"name": "size",
|
|
504
|
-
"type": {
|
|
505
|
-
"text": "Size"
|
|
506
|
-
},
|
|
507
|
-
"description": "The size of the accordion item.",
|
|
508
|
-
"default": "'small'",
|
|
509
|
-
"attribute": "size",
|
|
510
|
-
"reflects": true
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"kind": "field",
|
|
514
|
-
"name": "variant",
|
|
515
|
-
"type": {
|
|
516
|
-
"text": "Variant"
|
|
517
|
-
},
|
|
518
|
-
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
|
519
|
-
"default": "'stacked'",
|
|
520
|
-
"attribute": "variant",
|
|
521
|
-
"reflects": true
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
"kind": "field",
|
|
525
|
-
"name": "allowMultiple",
|
|
526
|
-
"type": {
|
|
527
|
-
"text": "boolean"
|
|
528
|
-
},
|
|
529
|
-
"default": "false",
|
|
530
|
-
"description": "If true, multiple accordion items can be visible at the same time.",
|
|
531
|
-
"attribute": "allow-multiple",
|
|
532
|
-
"reflects": true
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"kind": "method",
|
|
536
|
-
"name": "handleAccordionExpanded",
|
|
537
|
-
"privacy": "private",
|
|
538
|
-
"return": {
|
|
539
|
-
"type": {
|
|
540
|
-
"text": "void"
|
|
541
|
-
}
|
|
542
|
-
},
|
|
543
|
-
"parameters": [
|
|
544
|
-
{
|
|
545
|
-
"name": "event",
|
|
546
|
-
"type": {
|
|
547
|
-
"text": "Event"
|
|
548
|
-
},
|
|
549
|
-
"description": "The event object from the 'shown' event."
|
|
550
|
-
}
|
|
551
|
-
],
|
|
552
|
-
"description": "Handles the 'shown' event for accordion items.\nIf `allowMultiple` is false, ensures that only one accordion item\nremains expanded by collapsing all other expanded items when a new item is expanded."
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
"kind": "method",
|
|
556
|
-
"name": "setChildrenAccordionAttributes",
|
|
557
|
-
"privacy": "private",
|
|
558
|
-
"return": {
|
|
559
|
-
"type": {
|
|
560
|
-
"text": "void"
|
|
561
|
-
}
|
|
562
|
-
},
|
|
563
|
-
"parameters": [
|
|
564
|
-
{
|
|
565
|
-
"name": "attributeName",
|
|
566
|
-
"type": {
|
|
567
|
-
"text": "string"
|
|
568
|
-
},
|
|
569
|
-
"description": "The name of the attribute to set."
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"name": "attributeValue",
|
|
573
|
-
"type": {
|
|
574
|
-
"text": "string"
|
|
575
|
-
},
|
|
576
|
-
"description": "The value to set the attribute to."
|
|
577
|
-
}
|
|
578
|
-
],
|
|
579
|
-
"description": "Sets the given attribute on all child accordion or accordionbutton components."
|
|
580
|
-
}
|
|
581
|
-
],
|
|
582
|
-
"attributes": [
|
|
583
|
-
{
|
|
584
|
-
"name": "size",
|
|
585
|
-
"type": {
|
|
586
|
-
"text": "Size"
|
|
587
|
-
},
|
|
588
|
-
"description": "The size of the accordion item.",
|
|
589
|
-
"default": "'small'",
|
|
590
|
-
"fieldName": "size"
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
"name": "variant",
|
|
594
|
-
"type": {
|
|
595
|
-
"text": "Variant"
|
|
596
|
-
},
|
|
597
|
-
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
|
598
|
-
"default": "'stacked'",
|
|
599
|
-
"fieldName": "variant"
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
"name": "allow-multiple",
|
|
603
|
-
"type": {
|
|
604
|
-
"text": "boolean"
|
|
605
|
-
},
|
|
606
|
-
"default": "false",
|
|
607
|
-
"description": "If true, multiple accordion items can be visible at the same time.",
|
|
608
|
-
"fieldName": "allowMultiple"
|
|
609
|
-
}
|
|
610
|
-
],
|
|
611
|
-
"superclass": {
|
|
612
|
-
"name": "Component",
|
|
613
|
-
"module": "/src/models"
|
|
614
|
-
},
|
|
615
|
-
"tagName": "mdc-accordiongroup",
|
|
616
|
-
"jsDoc": "/**\n * An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\n * Each heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\n * Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n *\n * - Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n *\n * There are three types of variants:\n * - Stacked - Each accordion will have a gap of 1.5rem (24px).\n * - Borderless - Each accordion will not have any border and the group will also not have any border.\n * - Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n *\n * There are two types of sizes:\n * - Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n * - Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n *\n * The variant and size will be applied to all accordions inside this accordion group.\n * To show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n *\n * If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n *\n * If the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.\n *\n * @tagname mdc-accordiongroup\n *\n * @slot default - The default slot can contain the `accordion` or `accordionbutton` components.\n *\n * @cssproperty --mdc-accordiongroup-border-color - The border color of the entire accordiongroup\n */",
|
|
617
|
-
"customElement": true
|
|
618
|
-
}
|
|
619
|
-
],
|
|
620
|
-
"exports": [
|
|
621
|
-
{
|
|
622
|
-
"kind": "js",
|
|
623
|
-
"name": "default",
|
|
624
|
-
"declaration": {
|
|
625
|
-
"name": "AccordionGroup",
|
|
626
|
-
"module": "components/accordiongroup/accordiongroup.component.js"
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
]
|
|
630
|
-
},
|
|
631
480
|
{
|
|
632
481
|
"kind": "javascript-module",
|
|
633
482
|
"path": "components/accordionbutton/accordionbutton.component.js",
|
|
@@ -968,6 +817,157 @@
|
|
|
968
817
|
}
|
|
969
818
|
]
|
|
970
819
|
},
|
|
820
|
+
{
|
|
821
|
+
"kind": "javascript-module",
|
|
822
|
+
"path": "components/accordiongroup/accordiongroup.component.js",
|
|
823
|
+
"declarations": [
|
|
824
|
+
{
|
|
825
|
+
"kind": "class",
|
|
826
|
+
"description": "An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\nEach heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\nAccordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n\n- Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n\nThere are three types of variants:\n- Stacked - Each accordion will have a gap of 1.5rem (24px).\n- Borderless - Each accordion will not have any border and the group will also not have any border.\n- Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n\nThere are two types of sizes:\n- Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n- Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n\nThe variant and size will be applied to all accordions inside this accordion group.\nTo show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n\nIf you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n\nIf the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.",
|
|
827
|
+
"name": "AccordionGroup",
|
|
828
|
+
"cssProperties": [
|
|
829
|
+
{
|
|
830
|
+
"description": "The border color of the entire accordiongroup",
|
|
831
|
+
"name": "--mdc-accordiongroup-border-color"
|
|
832
|
+
}
|
|
833
|
+
],
|
|
834
|
+
"slots": [
|
|
835
|
+
{
|
|
836
|
+
"description": "The default slot can contain the `accordion` or `accordionbutton` components.",
|
|
837
|
+
"name": "default"
|
|
838
|
+
}
|
|
839
|
+
],
|
|
840
|
+
"members": [
|
|
841
|
+
{
|
|
842
|
+
"kind": "field",
|
|
843
|
+
"name": "size",
|
|
844
|
+
"type": {
|
|
845
|
+
"text": "Size"
|
|
846
|
+
},
|
|
847
|
+
"description": "The size of the accordion item.",
|
|
848
|
+
"default": "'small'",
|
|
849
|
+
"attribute": "size",
|
|
850
|
+
"reflects": true
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"kind": "field",
|
|
854
|
+
"name": "variant",
|
|
855
|
+
"type": {
|
|
856
|
+
"text": "Variant"
|
|
857
|
+
},
|
|
858
|
+
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
|
859
|
+
"default": "'stacked'",
|
|
860
|
+
"attribute": "variant",
|
|
861
|
+
"reflects": true
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"kind": "field",
|
|
865
|
+
"name": "allowMultiple",
|
|
866
|
+
"type": {
|
|
867
|
+
"text": "boolean"
|
|
868
|
+
},
|
|
869
|
+
"default": "false",
|
|
870
|
+
"description": "If true, multiple accordion items can be visible at the same time.",
|
|
871
|
+
"attribute": "allow-multiple",
|
|
872
|
+
"reflects": true
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"kind": "method",
|
|
876
|
+
"name": "handleAccordionExpanded",
|
|
877
|
+
"privacy": "private",
|
|
878
|
+
"return": {
|
|
879
|
+
"type": {
|
|
880
|
+
"text": "void"
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
"parameters": [
|
|
884
|
+
{
|
|
885
|
+
"name": "event",
|
|
886
|
+
"type": {
|
|
887
|
+
"text": "Event"
|
|
888
|
+
},
|
|
889
|
+
"description": "The event object from the 'shown' event."
|
|
890
|
+
}
|
|
891
|
+
],
|
|
892
|
+
"description": "Handles the 'shown' event for accordion items.\nIf `allowMultiple` is false, ensures that only one accordion item\nremains expanded by collapsing all other expanded items when a new item is expanded."
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"kind": "method",
|
|
896
|
+
"name": "setChildrenAccordionAttributes",
|
|
897
|
+
"privacy": "private",
|
|
898
|
+
"return": {
|
|
899
|
+
"type": {
|
|
900
|
+
"text": "void"
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
"parameters": [
|
|
904
|
+
{
|
|
905
|
+
"name": "attributeName",
|
|
906
|
+
"type": {
|
|
907
|
+
"text": "string"
|
|
908
|
+
},
|
|
909
|
+
"description": "The name of the attribute to set."
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"name": "attributeValue",
|
|
913
|
+
"type": {
|
|
914
|
+
"text": "string"
|
|
915
|
+
},
|
|
916
|
+
"description": "The value to set the attribute to."
|
|
917
|
+
}
|
|
918
|
+
],
|
|
919
|
+
"description": "Sets the given attribute on all child accordion or accordionbutton components."
|
|
920
|
+
}
|
|
921
|
+
],
|
|
922
|
+
"attributes": [
|
|
923
|
+
{
|
|
924
|
+
"name": "size",
|
|
925
|
+
"type": {
|
|
926
|
+
"text": "Size"
|
|
927
|
+
},
|
|
928
|
+
"description": "The size of the accordion item.",
|
|
929
|
+
"default": "'small'",
|
|
930
|
+
"fieldName": "size"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"name": "variant",
|
|
934
|
+
"type": {
|
|
935
|
+
"text": "Variant"
|
|
936
|
+
},
|
|
937
|
+
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
|
938
|
+
"default": "'stacked'",
|
|
939
|
+
"fieldName": "variant"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"name": "allow-multiple",
|
|
943
|
+
"type": {
|
|
944
|
+
"text": "boolean"
|
|
945
|
+
},
|
|
946
|
+
"default": "false",
|
|
947
|
+
"description": "If true, multiple accordion items can be visible at the same time.",
|
|
948
|
+
"fieldName": "allowMultiple"
|
|
949
|
+
}
|
|
950
|
+
],
|
|
951
|
+
"superclass": {
|
|
952
|
+
"name": "Component",
|
|
953
|
+
"module": "/src/models"
|
|
954
|
+
},
|
|
955
|
+
"tagName": "mdc-accordiongroup",
|
|
956
|
+
"jsDoc": "/**\n * An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\n * Each heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\n * Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n *\n * - Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n *\n * There are three types of variants:\n * - Stacked - Each accordion will have a gap of 1.5rem (24px).\n * - Borderless - Each accordion will not have any border and the group will also not have any border.\n * - Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n *\n * There are two types of sizes:\n * - Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n * - Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n *\n * The variant and size will be applied to all accordions inside this accordion group.\n * To show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n *\n * If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n *\n * If the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.\n *\n * @tagname mdc-accordiongroup\n *\n * @slot default - The default slot can contain the `accordion` or `accordionbutton` components.\n *\n * @cssproperty --mdc-accordiongroup-border-color - The border color of the entire accordiongroup\n */",
|
|
957
|
+
"customElement": true
|
|
958
|
+
}
|
|
959
|
+
],
|
|
960
|
+
"exports": [
|
|
961
|
+
{
|
|
962
|
+
"kind": "js",
|
|
963
|
+
"name": "default",
|
|
964
|
+
"declaration": {
|
|
965
|
+
"name": "AccordionGroup",
|
|
966
|
+
"module": "components/accordiongroup/accordiongroup.component.js"
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
]
|
|
970
|
+
},
|
|
971
971
|
{
|
|
972
972
|
"kind": "javascript-module",
|
|
973
973
|
"path": "components/alertchip/alertchip.component.js",
|
|
@@ -19309,6 +19309,17 @@
|
|
|
19309
19309
|
"description": "Aria label for the trailing button. If trailing button is set to true, this label is used for the clear button.",
|
|
19310
19310
|
"attribute": "clear-aria-label"
|
|
19311
19311
|
},
|
|
19312
|
+
{
|
|
19313
|
+
"kind": "field",
|
|
19314
|
+
"name": "dataAriaDescribedby",
|
|
19315
|
+
"type": {
|
|
19316
|
+
"text": "string | null"
|
|
19317
|
+
},
|
|
19318
|
+
"default": "null",
|
|
19319
|
+
"description": "Defines a id pointing to the element which describes the input element.\nThe AriaDescribedby attribute to be set for accessibility.",
|
|
19320
|
+
"attribute": "data-aria-describedby",
|
|
19321
|
+
"reflects": true
|
|
19322
|
+
},
|
|
19312
19323
|
{
|
|
19313
19324
|
"kind": "method",
|
|
19314
19325
|
"name": "setInputValidity",
|
|
@@ -19933,6 +19944,15 @@
|
|
|
19933
19944
|
"description": "Aria label for the trailing button. If trailing button is set to true, this label is used for the clear button.",
|
|
19934
19945
|
"fieldName": "clearAriaLabel"
|
|
19935
19946
|
},
|
|
19947
|
+
{
|
|
19948
|
+
"name": "data-aria-describedby",
|
|
19949
|
+
"type": {
|
|
19950
|
+
"text": "string | null"
|
|
19951
|
+
},
|
|
19952
|
+
"default": "null",
|
|
19953
|
+
"description": "Defines a id pointing to the element which describes the input element.\nThe AriaDescribedby attribute to be set for accessibility.",
|
|
19954
|
+
"fieldName": "dataAriaDescribedby"
|
|
19955
|
+
},
|
|
19936
19956
|
{
|
|
19937
19957
|
"name": "auto-focus-on-mount",
|
|
19938
19958
|
"type": {
|
|
@@ -31915,6 +31935,21 @@
|
|
|
31915
31935
|
"module": "components/input/input.component.js"
|
|
31916
31936
|
}
|
|
31917
31937
|
},
|
|
31938
|
+
{
|
|
31939
|
+
"kind": "field",
|
|
31940
|
+
"name": "dataAriaDescribedby",
|
|
31941
|
+
"type": {
|
|
31942
|
+
"text": "string | null"
|
|
31943
|
+
},
|
|
31944
|
+
"default": "null",
|
|
31945
|
+
"description": "Defines a id pointing to the element which describes the input element.\nThe AriaDescribedby attribute to be set for accessibility.",
|
|
31946
|
+
"attribute": "data-aria-describedby",
|
|
31947
|
+
"reflects": true,
|
|
31948
|
+
"inheritedFrom": {
|
|
31949
|
+
"name": "Input",
|
|
31950
|
+
"module": "components/input/input.component.js"
|
|
31951
|
+
}
|
|
31952
|
+
},
|
|
31918
31953
|
{
|
|
31919
31954
|
"kind": "method",
|
|
31920
31955
|
"name": "setInputValidity",
|
|
@@ -32554,6 +32589,19 @@
|
|
|
32554
32589
|
"module": "src/components/input/input.component.ts"
|
|
32555
32590
|
}
|
|
32556
32591
|
},
|
|
32592
|
+
{
|
|
32593
|
+
"name": "data-aria-describedby",
|
|
32594
|
+
"type": {
|
|
32595
|
+
"text": "string | null"
|
|
32596
|
+
},
|
|
32597
|
+
"default": "null",
|
|
32598
|
+
"description": "Defines a id pointing to the element which describes the input element.\nThe AriaDescribedby attribute to be set for accessibility.",
|
|
32599
|
+
"fieldName": "dataAriaDescribedby",
|
|
32600
|
+
"inheritedFrom": {
|
|
32601
|
+
"name": "Input",
|
|
32602
|
+
"module": "src/components/input/input.component.ts"
|
|
32603
|
+
}
|
|
32604
|
+
},
|
|
32557
32605
|
{
|
|
32558
32606
|
"name": "disabled",
|
|
32559
32607
|
"type": {
|
|
@@ -38479,6 +38527,21 @@
|
|
|
38479
38527
|
"module": "components/input/input.component.js"
|
|
38480
38528
|
}
|
|
38481
38529
|
},
|
|
38530
|
+
{
|
|
38531
|
+
"kind": "field",
|
|
38532
|
+
"name": "dataAriaDescribedby",
|
|
38533
|
+
"type": {
|
|
38534
|
+
"text": "string | null"
|
|
38535
|
+
},
|
|
38536
|
+
"default": "null",
|
|
38537
|
+
"description": "Defines a id pointing to the element which describes the input element.\nThe AriaDescribedby attribute to be set for accessibility.",
|
|
38538
|
+
"attribute": "data-aria-describedby",
|
|
38539
|
+
"reflects": true,
|
|
38540
|
+
"inheritedFrom": {
|
|
38541
|
+
"name": "Input",
|
|
38542
|
+
"module": "components/input/input.component.js"
|
|
38543
|
+
}
|
|
38544
|
+
},
|
|
38482
38545
|
{
|
|
38483
38546
|
"kind": "method",
|
|
38484
38547
|
"name": "setInputValidity",
|
|
@@ -39131,6 +39194,19 @@
|
|
|
39131
39194
|
"module": "src/components/input/input.component.ts"
|
|
39132
39195
|
}
|
|
39133
39196
|
},
|
|
39197
|
+
{
|
|
39198
|
+
"name": "data-aria-describedby",
|
|
39199
|
+
"type": {
|
|
39200
|
+
"text": "string | null"
|
|
39201
|
+
},
|
|
39202
|
+
"default": "null",
|
|
39203
|
+
"description": "Defines a id pointing to the element which describes the input element.\nThe AriaDescribedby attribute to be set for accessibility.",
|
|
39204
|
+
"fieldName": "dataAriaDescribedby",
|
|
39205
|
+
"inheritedFrom": {
|
|
39206
|
+
"name": "Input",
|
|
39207
|
+
"module": "src/components/input/input.component.ts"
|
|
39208
|
+
}
|
|
39209
|
+
},
|
|
39134
39210
|
{
|
|
39135
39211
|
"name": "disabled",
|
|
39136
39212
|
"type": {
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as Accordion } from './accordion';
|
|
2
|
-
export { default as AccordionGroup } from './accordiongroup';
|
|
3
2
|
export { default as AccordionButton } from './accordionbutton';
|
|
3
|
+
export { default as AccordionGroup } from './accordiongroup';
|
|
4
4
|
export { default as AlertChip } from './alertchip';
|
|
5
5
|
export { default as Animation } from './animation';
|
|
6
6
|
export { default as AnnouncementDialog } from './announcementdialog';
|
package/dist/react/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as Accordion } from './accordion';
|
|
2
|
-
export { default as AccordionGroup } from './accordiongroup';
|
|
3
2
|
export { default as AccordionButton } from './accordionbutton';
|
|
3
|
+
export { default as AccordionGroup } from './accordiongroup';
|
|
4
4
|
export { default as AlertChip } from './alertchip';
|
|
5
5
|
export { default as Animation } from './animation';
|
|
6
6
|
export { default as AnnouncementDialog } from './announcementdialog';
|