@momentum-design/components 0.84.4 → 0.85.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/dist/browser/index.js +20 -20
- package/dist/browser/index.js.map +2 -2
- package/dist/components/dialog/dialog.component.d.ts +7 -2
- package/dist/components/dialog/dialog.component.js +15 -4
- package/dist/components/dialog/dialog.constants.d.ts +1 -0
- package/dist/components/dialog/dialog.constants.js +1 -0
- package/dist/custom-elements.json +377 -366
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/dist/utils/mixins/FocusTrapMixin.js +3 -0
- package/package.json +1 -1
@@ -520,6 +520,67 @@
|
|
520
520
|
}
|
521
521
|
]
|
522
522
|
},
|
523
|
+
{
|
524
|
+
"kind": "javascript-module",
|
525
|
+
"path": "components/appheader/appheader.component.js",
|
526
|
+
"declarations": [
|
527
|
+
{
|
528
|
+
"kind": "class",
|
529
|
+
"description": "The `mdc-appheader` component provides a structured and accessible app header layout.\nIt consists of three primary sections: leading, center, and trailing.\n\n- The **leading section** typically holds a **brand logo**, **brand name** or **menu icon**.\n- The **center section** can contain a **search bar**, **icons** or action controls.\n- The **trailing section** generally includes a **profile avatar**, **additional icons** or **action controls**.",
|
530
|
+
"name": "Appheader",
|
531
|
+
"cssParts": [
|
532
|
+
{
|
533
|
+
"description": "The main container for styling the header.",
|
534
|
+
"name": "container"
|
535
|
+
},
|
536
|
+
{
|
537
|
+
"description": "The leading section of the header.",
|
538
|
+
"name": "leading-section"
|
539
|
+
},
|
540
|
+
{
|
541
|
+
"description": "The center section of the header.",
|
542
|
+
"name": "center-section"
|
543
|
+
},
|
544
|
+
{
|
545
|
+
"description": "The trailing section of the header.",
|
546
|
+
"name": "trailing-section"
|
547
|
+
}
|
548
|
+
],
|
549
|
+
"slots": [
|
550
|
+
{
|
551
|
+
"description": "Slot for the leading section (e.g., brand logo, brand name).",
|
552
|
+
"name": "leading"
|
553
|
+
},
|
554
|
+
{
|
555
|
+
"description": "Slot for the center section (e.g., search bar, icons).",
|
556
|
+
"name": "center"
|
557
|
+
},
|
558
|
+
{
|
559
|
+
"description": "Slot for the trailing section (e.g., profile avatar, icons).",
|
560
|
+
"name": "trailing"
|
561
|
+
}
|
562
|
+
],
|
563
|
+
"members": [],
|
564
|
+
"superclass": {
|
565
|
+
"name": "Component",
|
566
|
+
"module": "/src/models"
|
567
|
+
},
|
568
|
+
"tagName": "mdc-appheader",
|
569
|
+
"jsDoc": "/**\n * The `mdc-appheader` component provides a structured and accessible app header layout.\n * It consists of three primary sections: leading, center, and trailing.\n *\n * - The **leading section** typically holds a **brand logo**, **brand name** or **menu icon**.\n * - The **center section** can contain a **search bar**, **icons** or action controls.\n * - The **trailing section** generally includes a **profile avatar**, **additional icons** or **action controls**.\n *\n * @tagname mdc-appheader\n *\n * @slot leading - Slot for the leading section (e.g., brand logo, brand name).\n * @slot center - Slot for the center section (e.g., search bar, icons).\n * @slot trailing - Slot for the trailing section (e.g., profile avatar, icons).\n *\n * @csspart container - The main container for styling the header.\n * @csspart leading-section - The leading section of the header.\n * @csspart center-section - The center section of the header.\n * @csspart trailing-section - The trailing section of the header.\n */",
|
570
|
+
"customElement": true
|
571
|
+
}
|
572
|
+
],
|
573
|
+
"exports": [
|
574
|
+
{
|
575
|
+
"kind": "js",
|
576
|
+
"name": "default",
|
577
|
+
"declaration": {
|
578
|
+
"name": "Appheader",
|
579
|
+
"module": "components/appheader/appheader.component.js"
|
580
|
+
}
|
581
|
+
}
|
582
|
+
]
|
583
|
+
},
|
523
584
|
{
|
524
585
|
"kind": "javascript-module",
|
525
586
|
"path": "components/animation/animation.component.js",
|
@@ -732,67 +793,6 @@
|
|
732
793
|
}
|
733
794
|
]
|
734
795
|
},
|
735
|
-
{
|
736
|
-
"kind": "javascript-module",
|
737
|
-
"path": "components/appheader/appheader.component.js",
|
738
|
-
"declarations": [
|
739
|
-
{
|
740
|
-
"kind": "class",
|
741
|
-
"description": "The `mdc-appheader` component provides a structured and accessible app header layout.\nIt consists of three primary sections: leading, center, and trailing.\n\n- The **leading section** typically holds a **brand logo**, **brand name** or **menu icon**.\n- The **center section** can contain a **search bar**, **icons** or action controls.\n- The **trailing section** generally includes a **profile avatar**, **additional icons** or **action controls**.",
|
742
|
-
"name": "Appheader",
|
743
|
-
"cssParts": [
|
744
|
-
{
|
745
|
-
"description": "The main container for styling the header.",
|
746
|
-
"name": "container"
|
747
|
-
},
|
748
|
-
{
|
749
|
-
"description": "The leading section of the header.",
|
750
|
-
"name": "leading-section"
|
751
|
-
},
|
752
|
-
{
|
753
|
-
"description": "The center section of the header.",
|
754
|
-
"name": "center-section"
|
755
|
-
},
|
756
|
-
{
|
757
|
-
"description": "The trailing section of the header.",
|
758
|
-
"name": "trailing-section"
|
759
|
-
}
|
760
|
-
],
|
761
|
-
"slots": [
|
762
|
-
{
|
763
|
-
"description": "Slot for the leading section (e.g., brand logo, brand name).",
|
764
|
-
"name": "leading"
|
765
|
-
},
|
766
|
-
{
|
767
|
-
"description": "Slot for the center section (e.g., search bar, icons).",
|
768
|
-
"name": "center"
|
769
|
-
},
|
770
|
-
{
|
771
|
-
"description": "Slot for the trailing section (e.g., profile avatar, icons).",
|
772
|
-
"name": "trailing"
|
773
|
-
}
|
774
|
-
],
|
775
|
-
"members": [],
|
776
|
-
"superclass": {
|
777
|
-
"name": "Component",
|
778
|
-
"module": "/src/models"
|
779
|
-
},
|
780
|
-
"tagName": "mdc-appheader",
|
781
|
-
"jsDoc": "/**\n * The `mdc-appheader` component provides a structured and accessible app header layout.\n * It consists of three primary sections: leading, center, and trailing.\n *\n * - The **leading section** typically holds a **brand logo**, **brand name** or **menu icon**.\n * - The **center section** can contain a **search bar**, **icons** or action controls.\n * - The **trailing section** generally includes a **profile avatar**, **additional icons** or **action controls**.\n *\n * @tagname mdc-appheader\n *\n * @slot leading - Slot for the leading section (e.g., brand logo, brand name).\n * @slot center - Slot for the center section (e.g., search bar, icons).\n * @slot trailing - Slot for the trailing section (e.g., profile avatar, icons).\n *\n * @csspart container - The main container for styling the header.\n * @csspart leading-section - The leading section of the header.\n * @csspart center-section - The center section of the header.\n * @csspart trailing-section - The trailing section of the header.\n */",
|
782
|
-
"customElement": true
|
783
|
-
}
|
784
|
-
],
|
785
|
-
"exports": [
|
786
|
-
{
|
787
|
-
"kind": "js",
|
788
|
-
"name": "default",
|
789
|
-
"declaration": {
|
790
|
-
"name": "Appheader",
|
791
|
-
"module": "components/appheader/appheader.component.js"
|
792
|
-
}
|
793
|
-
}
|
794
|
-
]
|
795
|
-
},
|
796
796
|
{
|
797
797
|
"kind": "javascript-module",
|
798
798
|
"path": "components/avatar/avatar.component.js",
|
@@ -9671,8 +9671,10 @@
|
|
9671
9671
|
"text": "boolean"
|
9672
9672
|
},
|
9673
9673
|
"privacy": "protected",
|
9674
|
-
"description": "
|
9674
|
+
"description": "Determines whether the focus trap is enabled.\nIf true, focus will be restricted to the content within this component.\n\nNOTE: this should only be disabled in rare cases! By default a Modal Dialog\nshould trap focus always.",
|
9675
9675
|
"default": "true",
|
9676
|
+
"attribute": "focus-trap",
|
9677
|
+
"reflects": true,
|
9676
9678
|
"inheritedFrom": {
|
9677
9679
|
"name": "FocusTrapMixin",
|
9678
9680
|
"module": "utils/mixins/FocusTrapMixin.js"
|
@@ -10426,6 +10428,15 @@
|
|
10426
10428
|
"default": "false",
|
10427
10429
|
"fieldName": "disableAriaHasPopup"
|
10428
10430
|
},
|
10431
|
+
{
|
10432
|
+
"name": "focus-trap",
|
10433
|
+
"type": {
|
10434
|
+
"text": "boolean"
|
10435
|
+
},
|
10436
|
+
"description": "Determines whether the focus trap is enabled.\nIf true, focus will be restricted to the content within this component.\n\nNOTE: this should only be disabled in rare cases! By default a Modal Dialog\nshould trap focus always.",
|
10437
|
+
"default": "true",
|
10438
|
+
"fieldName": "focusTrap"
|
10439
|
+
},
|
10429
10440
|
{
|
10430
10441
|
"name": "should-focus-trap-wrap",
|
10431
10442
|
"type": {
|
@@ -10476,86 +10487,332 @@
|
|
10476
10487
|
},
|
10477
10488
|
{
|
10478
10489
|
"kind": "javascript-module",
|
10479
|
-
"path": "components/
|
10490
|
+
"path": "components/divider/divider.component.js",
|
10480
10491
|
"declarations": [
|
10481
10492
|
{
|
10482
10493
|
"kind": "class",
|
10483
|
-
"description": "mdc-
|
10484
|
-
"name": "
|
10485
|
-
"
|
10494
|
+
"description": "`mdc-divider` is a component that provides a line to separate and organize content.\nIt can also include a button or text positioned centrally, allowing users to interact with the layout.\n\n**Divider Orientation:**\n- **Horizontal**: A thin, horizontal line.\n- **Vertical**: A thin, vertical line.\n\n**Divider Variants:**\n- **solid**: Solid line.\n- **gradient**: Gradient Line.\n\n**Divider Types:**\n- The type of divider is inferred based on the kind of slot present.\n - **Primary**: A simple horizontal or vertical divider.\n - **Text**: A horizontal divider with a text label in the center.\n - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n\n**Accessibility:**\n- When the slot is replaced by an `mdc-button`:\n - `aria-label` should be passed to the `mdc-button`.\n - `aria-expanded` should be passed to the `mdc-button`.\n\n**Notes:**\n- If the slot is replaced by an invalid tag name or contains multiple elements,\n the divider defaults to the **Primary** type.\n- To override the styles of the divider, use the provided CSS custom properties.",
|
10495
|
+
"name": "Divider",
|
10496
|
+
"cssProperties": [
|
10486
10497
|
{
|
10487
|
-
"
|
10488
|
-
"name": "
|
10489
|
-
"type": {
|
10490
|
-
"text": "boolean"
|
10491
|
-
},
|
10492
|
-
"default": "false",
|
10493
|
-
"description": "The selected state of the filterchip.",
|
10494
|
-
"attribute": "selected",
|
10495
|
-
"reflects": true
|
10498
|
+
"description": "background color of the divider",
|
10499
|
+
"name": "--mdc-divider-background-color"
|
10496
10500
|
},
|
10497
10501
|
{
|
10498
|
-
"
|
10499
|
-
"name": "
|
10500
|
-
"privacy": "private",
|
10501
|
-
"parameters": [
|
10502
|
-
{
|
10503
|
-
"name": "selected",
|
10504
|
-
"type": {
|
10505
|
-
"text": "boolean"
|
10506
|
-
},
|
10507
|
-
"description": "The selected state of the filterchip."
|
10508
|
-
}
|
10509
|
-
],
|
10510
|
-
"description": "Sets the selected state of the filterchip along with the icon.\naria-pressed attribute is also set to true or false."
|
10502
|
+
"description": "width of the divider",
|
10503
|
+
"name": "--mdc-divider-width"
|
10511
10504
|
},
|
10512
10505
|
{
|
10513
|
-
"
|
10514
|
-
"name": "
|
10515
|
-
|
10516
|
-
|
10517
|
-
|
10518
|
-
|
10519
|
-
|
10520
|
-
|
10521
|
-
|
10522
|
-
|
10523
|
-
|
10524
|
-
|
10506
|
+
"description": "gradient of the horizontal divider",
|
10507
|
+
"name": "--mdc-divider-horizontal-gradient"
|
10508
|
+
},
|
10509
|
+
{
|
10510
|
+
"description": "gradient of the vertical divider",
|
10511
|
+
"name": "--mdc-divider-vertical-gradient"
|
10512
|
+
},
|
10513
|
+
{
|
10514
|
+
"description": "font size of label in the text divider",
|
10515
|
+
"name": "--mdc-divider-text-size"
|
10516
|
+
},
|
10517
|
+
{
|
10518
|
+
"description": "font color of label in the text divider",
|
10519
|
+
"name": "--mdc-divider-text-color"
|
10525
10520
|
},
|
10521
|
+
{
|
10522
|
+
"description": "left and right margin of label in the text divider",
|
10523
|
+
"name": "--mdc-divider-text-margin"
|
10524
|
+
},
|
10525
|
+
{
|
10526
|
+
"description": "line height of label in the text divider",
|
10527
|
+
"name": "--mdc-divider-text-line-height"
|
10528
|
+
},
|
10529
|
+
{
|
10530
|
+
"description": "background color of the grabber button in rest state",
|
10531
|
+
"name": "--mdc-divider-grabber-button-background-color-normal"
|
10532
|
+
},
|
10533
|
+
{
|
10534
|
+
"description": "background color of the grabber button in hover state",
|
10535
|
+
"name": "--mdc-divider-grabber-button-background-color-hover"
|
10536
|
+
},
|
10537
|
+
{
|
10538
|
+
"description": "background color of the grabber button in pressed state",
|
10539
|
+
"name": "--mdc-divider-grabber-button-background-color-pressed"
|
10540
|
+
},
|
10541
|
+
{
|
10542
|
+
"description": "border color of the grabber button",
|
10543
|
+
"name": "--mdc-divider-grabber-button-border-color"
|
10544
|
+
},
|
10545
|
+
{
|
10546
|
+
"description": "border radius of the grabber button",
|
10547
|
+
"name": "--mdc-divider-grabber-button-border-radius"
|
10548
|
+
}
|
10549
|
+
],
|
10550
|
+
"members": [
|
10526
10551
|
{
|
10527
10552
|
"kind": "field",
|
10528
|
-
"name": "
|
10553
|
+
"name": "orientation",
|
10529
10554
|
"type": {
|
10530
|
-
"text": "
|
10555
|
+
"text": "DividerOrientation"
|
10531
10556
|
},
|
10532
|
-
"description": "
|
10533
|
-
"
|
10534
|
-
"
|
10535
|
-
|
10536
|
-
"module": "utils/mixins/IconNameMixin.js"
|
10537
|
-
}
|
10557
|
+
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
10558
|
+
"default": "horizontal",
|
10559
|
+
"attribute": "orientation",
|
10560
|
+
"reflects": true
|
10538
10561
|
},
|
10539
10562
|
{
|
10540
10563
|
"kind": "field",
|
10541
|
-
"name": "
|
10564
|
+
"name": "variant",
|
10542
10565
|
"type": {
|
10543
|
-
"text": "
|
10566
|
+
"text": "DividerVariant"
|
10544
10567
|
},
|
10545
|
-
"description": "
|
10546
|
-
"default": "
|
10547
|
-
"attribute": "
|
10548
|
-
"reflects": true
|
10549
|
-
"inheritedFrom": {
|
10550
|
-
"name": "Chip",
|
10551
|
-
"module": "components/chip/chip.component.js"
|
10552
|
-
}
|
10568
|
+
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
10569
|
+
"default": "solid",
|
10570
|
+
"attribute": "variant",
|
10571
|
+
"reflects": true
|
10553
10572
|
},
|
10554
10573
|
{
|
10555
10574
|
"kind": "field",
|
10556
|
-
"name": "
|
10575
|
+
"name": "arrowDirection",
|
10557
10576
|
"type": {
|
10558
|
-
"text": "
|
10577
|
+
"text": "Directions"
|
10578
|
+
},
|
10579
|
+
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
10580
|
+
"default": "'negative'",
|
10581
|
+
"attribute": "arrow-direction",
|
10582
|
+
"reflects": true
|
10583
|
+
},
|
10584
|
+
{
|
10585
|
+
"kind": "field",
|
10586
|
+
"name": "buttonPosition",
|
10587
|
+
"type": {
|
10588
|
+
"text": "Directions"
|
10589
|
+
},
|
10590
|
+
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
10591
|
+
"default": "'negative'",
|
10592
|
+
"attribute": "button-position",
|
10593
|
+
"reflects": true
|
10594
|
+
},
|
10595
|
+
{
|
10596
|
+
"kind": "method",
|
10597
|
+
"name": "setVariant",
|
10598
|
+
"privacy": "private",
|
10599
|
+
"parameters": [
|
10600
|
+
{
|
10601
|
+
"name": "variant",
|
10602
|
+
"type": {
|
10603
|
+
"text": "DividerVariant"
|
10604
|
+
},
|
10605
|
+
"description": "The variant to set."
|
10606
|
+
}
|
10607
|
+
],
|
10608
|
+
"description": "Sets the variant attribute for the divider component.\nIf the provided variant is not included in the DIVIDER_VARIANT,\nit defaults to the value specified in DEFAULTS.VARIANT."
|
10609
|
+
},
|
10610
|
+
{
|
10611
|
+
"kind": "method",
|
10612
|
+
"name": "setOrientation",
|
10613
|
+
"privacy": "private",
|
10614
|
+
"parameters": [
|
10615
|
+
{
|
10616
|
+
"name": "orientation",
|
10617
|
+
"type": {
|
10618
|
+
"text": "DividerOrientation"
|
10619
|
+
},
|
10620
|
+
"description": "The orientation to set."
|
10621
|
+
}
|
10622
|
+
],
|
10623
|
+
"description": "Sets the orientation attribute for the divider component.\nIf the provided orientation is not included in the DIVIDER_ORIENTATION,\nit defaults to the value specified in DEFAULTS.ORIENTATION."
|
10624
|
+
},
|
10625
|
+
{
|
10626
|
+
"kind": "method",
|
10627
|
+
"name": "ensureValidDirections",
|
10628
|
+
"privacy": "private",
|
10629
|
+
"description": "Sets the buttonPosition and arrowDirection attribute for the divider component.\nIf the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,\nit defaults to the value specified in DIRECTIONS based on the ORIENTATION.",
|
10630
|
+
"parameters": [
|
10631
|
+
{
|
10632
|
+
"description": "The buttonPosition to set.",
|
10633
|
+
"name": "buttonPosition"
|
10634
|
+
},
|
10635
|
+
{
|
10636
|
+
"description": "The arrowDirection to set.",
|
10637
|
+
"name": "arrowDirection"
|
10638
|
+
}
|
10639
|
+
]
|
10640
|
+
},
|
10641
|
+
{
|
10642
|
+
"kind": "method",
|
10643
|
+
"name": "setGrabberButton",
|
10644
|
+
"privacy": "private",
|
10645
|
+
"return": {
|
10646
|
+
"type": {
|
10647
|
+
"text": "void"
|
10648
|
+
}
|
10649
|
+
},
|
10650
|
+
"description": "Configures the grabber button within the divider.\n\n- Sets the `prefix-icon` attribute for the grabber button based\non the `arrow-direction` and `orientation` properties.\n\nThis method updates the DOM element dynamically if a grabber button is present."
|
10651
|
+
},
|
10652
|
+
{
|
10653
|
+
"kind": "method",
|
10654
|
+
"name": "getArrowIcon",
|
10655
|
+
"privacy": "private",
|
10656
|
+
"return": {
|
10657
|
+
"type": {
|
10658
|
+
"text": ""
|
10659
|
+
}
|
10660
|
+
},
|
10661
|
+
"description": "Determines the arrow icon based on the consumer-defined `arrowDirection`."
|
10662
|
+
},
|
10663
|
+
{
|
10664
|
+
"kind": "method",
|
10665
|
+
"name": "inferDividerType",
|
10666
|
+
"privacy": "private",
|
10667
|
+
"description": "Infers the type of divider based on the kind of slot present.",
|
10668
|
+
"parameters": [
|
10669
|
+
{
|
10670
|
+
"description": "default slot of divider",
|
10671
|
+
"name": "slot"
|
10672
|
+
}
|
10673
|
+
]
|
10674
|
+
}
|
10675
|
+
],
|
10676
|
+
"attributes": [
|
10677
|
+
{
|
10678
|
+
"name": "orientation",
|
10679
|
+
"type": {
|
10680
|
+
"text": "DividerOrientation"
|
10681
|
+
},
|
10682
|
+
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
10683
|
+
"default": "horizontal",
|
10684
|
+
"fieldName": "orientation"
|
10685
|
+
},
|
10686
|
+
{
|
10687
|
+
"name": "variant",
|
10688
|
+
"type": {
|
10689
|
+
"text": "DividerVariant"
|
10690
|
+
},
|
10691
|
+
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
10692
|
+
"default": "solid",
|
10693
|
+
"fieldName": "variant"
|
10694
|
+
},
|
10695
|
+
{
|
10696
|
+
"name": "arrow-direction",
|
10697
|
+
"type": {
|
10698
|
+
"text": "Directions"
|
10699
|
+
},
|
10700
|
+
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
10701
|
+
"default": "'negative'",
|
10702
|
+
"fieldName": "arrowDirection"
|
10703
|
+
},
|
10704
|
+
{
|
10705
|
+
"name": "button-position",
|
10706
|
+
"type": {
|
10707
|
+
"text": "Directions"
|
10708
|
+
},
|
10709
|
+
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
10710
|
+
"default": "'negative'",
|
10711
|
+
"fieldName": "buttonPosition"
|
10712
|
+
}
|
10713
|
+
],
|
10714
|
+
"superclass": {
|
10715
|
+
"name": "Component",
|
10716
|
+
"module": "/src/models"
|
10717
|
+
},
|
10718
|
+
"tagName": "mdc-divider",
|
10719
|
+
"jsDoc": "/**\n * `mdc-divider` is a component that provides a line to separate and organize content.\n * It can also include a button or text positioned centrally, allowing users to interact with the layout.\n *\n * **Divider Orientation:**\n * - **Horizontal**: A thin, horizontal line.\n * - **Vertical**: A thin, vertical line.\n *\n * **Divider Variants:**\n * - **solid**: Solid line.\n * - **gradient**: Gradient Line.\n *\n * **Divider Types:**\n * - The type of divider is inferred based on the kind of slot present.\n * - **Primary**: A simple horizontal or vertical divider.\n * - **Text**: A horizontal divider with a text label in the center.\n * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n *\n * **Accessibility:**\n * - When the slot is replaced by an `mdc-button`:\n * - `aria-label` should be passed to the `mdc-button`.\n * - `aria-expanded` should be passed to the `mdc-button`.\n *\n * **Notes:**\n * - If the slot is replaced by an invalid tag name or contains multiple elements,\n * the divider defaults to the **Primary** type.\n * - To override the styles of the divider, use the provided CSS custom properties.\n *\n * @tagname mdc-divider\n *\n * @cssproperty --mdc-divider-background-color - background color of the divider\n * @cssproperty --mdc-divider-width - width of the divider\n * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider\n * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider\n * @cssproperty --mdc-divider-text-size - font size of label in the text divider\n * @cssproperty --mdc-divider-text-color - font color of label in the text divider\n * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider\n * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider\n * @cssproperty --mdc-divider-grabber-button-background-color-normal - background color of the grabber button\n * in rest state\n * @cssproperty --mdc-divider-grabber-button-background-color-hover - background color of the grabber button\n * in hover state\n * @cssproperty --mdc-divider-grabber-button-background-color-pressed - background color of the grabber button\n * in pressed state\n * @cssproperty --mdc-divider-grabber-button-border-color - border color of the grabber button\n * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button\n */",
|
10720
|
+
"customElement": true
|
10721
|
+
}
|
10722
|
+
],
|
10723
|
+
"exports": [
|
10724
|
+
{
|
10725
|
+
"kind": "js",
|
10726
|
+
"name": "default",
|
10727
|
+
"declaration": {
|
10728
|
+
"name": "Divider",
|
10729
|
+
"module": "components/divider/divider.component.js"
|
10730
|
+
}
|
10731
|
+
}
|
10732
|
+
]
|
10733
|
+
},
|
10734
|
+
{
|
10735
|
+
"kind": "javascript-module",
|
10736
|
+
"path": "components/filterchip/filterchip.component.js",
|
10737
|
+
"declarations": [
|
10738
|
+
{
|
10739
|
+
"kind": "class",
|
10740
|
+
"description": "mdc-filterchip component is an interactive chip that consumers can use to select or deselect.\nThey can be found with lists or tables as quick filters.\n\nThis component is built on top of the mdc-chip component.",
|
10741
|
+
"name": "FilterChip",
|
10742
|
+
"members": [
|
10743
|
+
{
|
10744
|
+
"kind": "field",
|
10745
|
+
"name": "selected",
|
10746
|
+
"type": {
|
10747
|
+
"text": "boolean"
|
10748
|
+
},
|
10749
|
+
"default": "false",
|
10750
|
+
"description": "The selected state of the filterchip.",
|
10751
|
+
"attribute": "selected",
|
10752
|
+
"reflects": true
|
10753
|
+
},
|
10754
|
+
{
|
10755
|
+
"kind": "method",
|
10756
|
+
"name": "setSelected",
|
10757
|
+
"privacy": "private",
|
10758
|
+
"parameters": [
|
10759
|
+
{
|
10760
|
+
"name": "selected",
|
10761
|
+
"type": {
|
10762
|
+
"text": "boolean"
|
10763
|
+
},
|
10764
|
+
"description": "The selected state of the filterchip."
|
10765
|
+
}
|
10766
|
+
],
|
10767
|
+
"description": "Sets the selected state of the filterchip along with the icon.\naria-pressed attribute is also set to true or false."
|
10768
|
+
},
|
10769
|
+
{
|
10770
|
+
"kind": "method",
|
10771
|
+
"name": "executeAction",
|
10772
|
+
"privacy": "protected",
|
10773
|
+
"inheritedFrom": {
|
10774
|
+
"name": "Buttonsimple",
|
10775
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
10776
|
+
},
|
10777
|
+
"return": {
|
10778
|
+
"type": {
|
10779
|
+
"text": "void"
|
10780
|
+
}
|
10781
|
+
}
|
10782
|
+
},
|
10783
|
+
{
|
10784
|
+
"kind": "field",
|
10785
|
+
"name": "iconName",
|
10786
|
+
"type": {
|
10787
|
+
"text": "IconNames | undefined"
|
10788
|
+
},
|
10789
|
+
"description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
|
10790
|
+
"attribute": "icon-name",
|
10791
|
+
"inheritedFrom": {
|
10792
|
+
"name": "IconNameMixin",
|
10793
|
+
"module": "utils/mixins/IconNameMixin.js"
|
10794
|
+
}
|
10795
|
+
},
|
10796
|
+
{
|
10797
|
+
"kind": "field",
|
10798
|
+
"name": "color",
|
10799
|
+
"type": {
|
10800
|
+
"text": "ColorType"
|
10801
|
+
},
|
10802
|
+
"description": "The color of the chip. It supports the following colors\n- default\n- cobalt\n- gold\n- lime\n- mint\n- orange\n- pink\n- purple\n- slate\n- violet",
|
10803
|
+
"default": "default",
|
10804
|
+
"attribute": "color",
|
10805
|
+
"reflects": true,
|
10806
|
+
"inheritedFrom": {
|
10807
|
+
"name": "Chip",
|
10808
|
+
"module": "components/chip/chip.component.js"
|
10809
|
+
}
|
10810
|
+
},
|
10811
|
+
{
|
10812
|
+
"kind": "field",
|
10813
|
+
"name": "label",
|
10814
|
+
"type": {
|
10815
|
+
"text": "string"
|
10559
10816
|
},
|
10560
10817
|
"default": "''",
|
10561
10818
|
"description": "The visible label text of the chip.\n\nWe recommend limiting the <b>maximum length of the label text to 20 characters</b>,\nincluding empty spaces to split words.",
|
@@ -11097,252 +11354,6 @@
|
|
11097
11354
|
}
|
11098
11355
|
]
|
11099
11356
|
},
|
11100
|
-
{
|
11101
|
-
"kind": "javascript-module",
|
11102
|
-
"path": "components/divider/divider.component.js",
|
11103
|
-
"declarations": [
|
11104
|
-
{
|
11105
|
-
"kind": "class",
|
11106
|
-
"description": "`mdc-divider` is a component that provides a line to separate and organize content.\nIt can also include a button or text positioned centrally, allowing users to interact with the layout.\n\n**Divider Orientation:**\n- **Horizontal**: A thin, horizontal line.\n- **Vertical**: A thin, vertical line.\n\n**Divider Variants:**\n- **solid**: Solid line.\n- **gradient**: Gradient Line.\n\n**Divider Types:**\n- The type of divider is inferred based on the kind of slot present.\n - **Primary**: A simple horizontal or vertical divider.\n - **Text**: A horizontal divider with a text label in the center.\n - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n\n**Accessibility:**\n- When the slot is replaced by an `mdc-button`:\n - `aria-label` should be passed to the `mdc-button`.\n - `aria-expanded` should be passed to the `mdc-button`.\n\n**Notes:**\n- If the slot is replaced by an invalid tag name or contains multiple elements,\n the divider defaults to the **Primary** type.\n- To override the styles of the divider, use the provided CSS custom properties.",
|
11107
|
-
"name": "Divider",
|
11108
|
-
"cssProperties": [
|
11109
|
-
{
|
11110
|
-
"description": "background color of the divider",
|
11111
|
-
"name": "--mdc-divider-background-color"
|
11112
|
-
},
|
11113
|
-
{
|
11114
|
-
"description": "width of the divider",
|
11115
|
-
"name": "--mdc-divider-width"
|
11116
|
-
},
|
11117
|
-
{
|
11118
|
-
"description": "gradient of the horizontal divider",
|
11119
|
-
"name": "--mdc-divider-horizontal-gradient"
|
11120
|
-
},
|
11121
|
-
{
|
11122
|
-
"description": "gradient of the vertical divider",
|
11123
|
-
"name": "--mdc-divider-vertical-gradient"
|
11124
|
-
},
|
11125
|
-
{
|
11126
|
-
"description": "font size of label in the text divider",
|
11127
|
-
"name": "--mdc-divider-text-size"
|
11128
|
-
},
|
11129
|
-
{
|
11130
|
-
"description": "font color of label in the text divider",
|
11131
|
-
"name": "--mdc-divider-text-color"
|
11132
|
-
},
|
11133
|
-
{
|
11134
|
-
"description": "left and right margin of label in the text divider",
|
11135
|
-
"name": "--mdc-divider-text-margin"
|
11136
|
-
},
|
11137
|
-
{
|
11138
|
-
"description": "line height of label in the text divider",
|
11139
|
-
"name": "--mdc-divider-text-line-height"
|
11140
|
-
},
|
11141
|
-
{
|
11142
|
-
"description": "background color of the grabber button in rest state",
|
11143
|
-
"name": "--mdc-divider-grabber-button-background-color-normal"
|
11144
|
-
},
|
11145
|
-
{
|
11146
|
-
"description": "background color of the grabber button in hover state",
|
11147
|
-
"name": "--mdc-divider-grabber-button-background-color-hover"
|
11148
|
-
},
|
11149
|
-
{
|
11150
|
-
"description": "background color of the grabber button in pressed state",
|
11151
|
-
"name": "--mdc-divider-grabber-button-background-color-pressed"
|
11152
|
-
},
|
11153
|
-
{
|
11154
|
-
"description": "border color of the grabber button",
|
11155
|
-
"name": "--mdc-divider-grabber-button-border-color"
|
11156
|
-
},
|
11157
|
-
{
|
11158
|
-
"description": "border radius of the grabber button",
|
11159
|
-
"name": "--mdc-divider-grabber-button-border-radius"
|
11160
|
-
}
|
11161
|
-
],
|
11162
|
-
"members": [
|
11163
|
-
{
|
11164
|
-
"kind": "field",
|
11165
|
-
"name": "orientation",
|
11166
|
-
"type": {
|
11167
|
-
"text": "DividerOrientation"
|
11168
|
-
},
|
11169
|
-
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
11170
|
-
"default": "horizontal",
|
11171
|
-
"attribute": "orientation",
|
11172
|
-
"reflects": true
|
11173
|
-
},
|
11174
|
-
{
|
11175
|
-
"kind": "field",
|
11176
|
-
"name": "variant",
|
11177
|
-
"type": {
|
11178
|
-
"text": "DividerVariant"
|
11179
|
-
},
|
11180
|
-
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
11181
|
-
"default": "solid",
|
11182
|
-
"attribute": "variant",
|
11183
|
-
"reflects": true
|
11184
|
-
},
|
11185
|
-
{
|
11186
|
-
"kind": "field",
|
11187
|
-
"name": "arrowDirection",
|
11188
|
-
"type": {
|
11189
|
-
"text": "Directions"
|
11190
|
-
},
|
11191
|
-
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
11192
|
-
"default": "'negative'",
|
11193
|
-
"attribute": "arrow-direction",
|
11194
|
-
"reflects": true
|
11195
|
-
},
|
11196
|
-
{
|
11197
|
-
"kind": "field",
|
11198
|
-
"name": "buttonPosition",
|
11199
|
-
"type": {
|
11200
|
-
"text": "Directions"
|
11201
|
-
},
|
11202
|
-
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
11203
|
-
"default": "'negative'",
|
11204
|
-
"attribute": "button-position",
|
11205
|
-
"reflects": true
|
11206
|
-
},
|
11207
|
-
{
|
11208
|
-
"kind": "method",
|
11209
|
-
"name": "setVariant",
|
11210
|
-
"privacy": "private",
|
11211
|
-
"parameters": [
|
11212
|
-
{
|
11213
|
-
"name": "variant",
|
11214
|
-
"type": {
|
11215
|
-
"text": "DividerVariant"
|
11216
|
-
},
|
11217
|
-
"description": "The variant to set."
|
11218
|
-
}
|
11219
|
-
],
|
11220
|
-
"description": "Sets the variant attribute for the divider component.\nIf the provided variant is not included in the DIVIDER_VARIANT,\nit defaults to the value specified in DEFAULTS.VARIANT."
|
11221
|
-
},
|
11222
|
-
{
|
11223
|
-
"kind": "method",
|
11224
|
-
"name": "setOrientation",
|
11225
|
-
"privacy": "private",
|
11226
|
-
"parameters": [
|
11227
|
-
{
|
11228
|
-
"name": "orientation",
|
11229
|
-
"type": {
|
11230
|
-
"text": "DividerOrientation"
|
11231
|
-
},
|
11232
|
-
"description": "The orientation to set."
|
11233
|
-
}
|
11234
|
-
],
|
11235
|
-
"description": "Sets the orientation attribute for the divider component.\nIf the provided orientation is not included in the DIVIDER_ORIENTATION,\nit defaults to the value specified in DEFAULTS.ORIENTATION."
|
11236
|
-
},
|
11237
|
-
{
|
11238
|
-
"kind": "method",
|
11239
|
-
"name": "ensureValidDirections",
|
11240
|
-
"privacy": "private",
|
11241
|
-
"description": "Sets the buttonPosition and arrowDirection attribute for the divider component.\nIf the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,\nit defaults to the value specified in DIRECTIONS based on the ORIENTATION.",
|
11242
|
-
"parameters": [
|
11243
|
-
{
|
11244
|
-
"description": "The buttonPosition to set.",
|
11245
|
-
"name": "buttonPosition"
|
11246
|
-
},
|
11247
|
-
{
|
11248
|
-
"description": "The arrowDirection to set.",
|
11249
|
-
"name": "arrowDirection"
|
11250
|
-
}
|
11251
|
-
]
|
11252
|
-
},
|
11253
|
-
{
|
11254
|
-
"kind": "method",
|
11255
|
-
"name": "setGrabberButton",
|
11256
|
-
"privacy": "private",
|
11257
|
-
"return": {
|
11258
|
-
"type": {
|
11259
|
-
"text": "void"
|
11260
|
-
}
|
11261
|
-
},
|
11262
|
-
"description": "Configures the grabber button within the divider.\n\n- Sets the `prefix-icon` attribute for the grabber button based\non the `arrow-direction` and `orientation` properties.\n\nThis method updates the DOM element dynamically if a grabber button is present."
|
11263
|
-
},
|
11264
|
-
{
|
11265
|
-
"kind": "method",
|
11266
|
-
"name": "getArrowIcon",
|
11267
|
-
"privacy": "private",
|
11268
|
-
"return": {
|
11269
|
-
"type": {
|
11270
|
-
"text": ""
|
11271
|
-
}
|
11272
|
-
},
|
11273
|
-
"description": "Determines the arrow icon based on the consumer-defined `arrowDirection`."
|
11274
|
-
},
|
11275
|
-
{
|
11276
|
-
"kind": "method",
|
11277
|
-
"name": "inferDividerType",
|
11278
|
-
"privacy": "private",
|
11279
|
-
"description": "Infers the type of divider based on the kind of slot present.",
|
11280
|
-
"parameters": [
|
11281
|
-
{
|
11282
|
-
"description": "default slot of divider",
|
11283
|
-
"name": "slot"
|
11284
|
-
}
|
11285
|
-
]
|
11286
|
-
}
|
11287
|
-
],
|
11288
|
-
"attributes": [
|
11289
|
-
{
|
11290
|
-
"name": "orientation",
|
11291
|
-
"type": {
|
11292
|
-
"text": "DividerOrientation"
|
11293
|
-
},
|
11294
|
-
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
11295
|
-
"default": "horizontal",
|
11296
|
-
"fieldName": "orientation"
|
11297
|
-
},
|
11298
|
-
{
|
11299
|
-
"name": "variant",
|
11300
|
-
"type": {
|
11301
|
-
"text": "DividerVariant"
|
11302
|
-
},
|
11303
|
-
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
11304
|
-
"default": "solid",
|
11305
|
-
"fieldName": "variant"
|
11306
|
-
},
|
11307
|
-
{
|
11308
|
-
"name": "arrow-direction",
|
11309
|
-
"type": {
|
11310
|
-
"text": "Directions"
|
11311
|
-
},
|
11312
|
-
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
11313
|
-
"default": "'negative'",
|
11314
|
-
"fieldName": "arrowDirection"
|
11315
|
-
},
|
11316
|
-
{
|
11317
|
-
"name": "button-position",
|
11318
|
-
"type": {
|
11319
|
-
"text": "Directions"
|
11320
|
-
},
|
11321
|
-
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
11322
|
-
"default": "'negative'",
|
11323
|
-
"fieldName": "buttonPosition"
|
11324
|
-
}
|
11325
|
-
],
|
11326
|
-
"superclass": {
|
11327
|
-
"name": "Component",
|
11328
|
-
"module": "/src/models"
|
11329
|
-
},
|
11330
|
-
"tagName": "mdc-divider",
|
11331
|
-
"jsDoc": "/**\n * `mdc-divider` is a component that provides a line to separate and organize content.\n * It can also include a button or text positioned centrally, allowing users to interact with the layout.\n *\n * **Divider Orientation:**\n * - **Horizontal**: A thin, horizontal line.\n * - **Vertical**: A thin, vertical line.\n *\n * **Divider Variants:**\n * - **solid**: Solid line.\n * - **gradient**: Gradient Line.\n *\n * **Divider Types:**\n * - The type of divider is inferred based on the kind of slot present.\n * - **Primary**: A simple horizontal or vertical divider.\n * - **Text**: A horizontal divider with a text label in the center.\n * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n *\n * **Accessibility:**\n * - When the slot is replaced by an `mdc-button`:\n * - `aria-label` should be passed to the `mdc-button`.\n * - `aria-expanded` should be passed to the `mdc-button`.\n *\n * **Notes:**\n * - If the slot is replaced by an invalid tag name or contains multiple elements,\n * the divider defaults to the **Primary** type.\n * - To override the styles of the divider, use the provided CSS custom properties.\n *\n * @tagname mdc-divider\n *\n * @cssproperty --mdc-divider-background-color - background color of the divider\n * @cssproperty --mdc-divider-width - width of the divider\n * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider\n * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider\n * @cssproperty --mdc-divider-text-size - font size of label in the text divider\n * @cssproperty --mdc-divider-text-color - font color of label in the text divider\n * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider\n * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider\n * @cssproperty --mdc-divider-grabber-button-background-color-normal - background color of the grabber button\n * in rest state\n * @cssproperty --mdc-divider-grabber-button-background-color-hover - background color of the grabber button\n * in hover state\n * @cssproperty --mdc-divider-grabber-button-background-color-pressed - background color of the grabber button\n * in pressed state\n * @cssproperty --mdc-divider-grabber-button-border-color - border color of the grabber button\n * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button\n */",
|
11332
|
-
"customElement": true
|
11333
|
-
}
|
11334
|
-
],
|
11335
|
-
"exports": [
|
11336
|
-
{
|
11337
|
-
"kind": "js",
|
11338
|
-
"name": "default",
|
11339
|
-
"declaration": {
|
11340
|
-
"name": "Divider",
|
11341
|
-
"module": "components/divider/divider.component.js"
|
11342
|
-
}
|
11343
|
-
}
|
11344
|
-
]
|
11345
|
-
},
|
11346
11357
|
{
|
11347
11358
|
"kind": "javascript-module",
|
11348
11359
|
"path": "components/formfieldgroup/formfieldgroup.component.js",
|