@momentum-design/components 0.121.6 → 0.121.8
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 +3 -3
- package/dist/browser/index.js.map +2 -2
- package/dist/components/popover/popover.component.d.ts +5 -5
- package/dist/components/popover/popover.component.js +24 -17
- package/dist/components/popover/popover.constants.d.ts +1 -1
- package/dist/components/popover/popover.constants.js +1 -1
- package/dist/custom-elements.json +187 -187
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
|
@@ -317,12 +317,12 @@ declare class Popover extends Popover_base {
|
|
|
317
317
|
*/
|
|
318
318
|
disableAriaExpanded: boolean;
|
|
319
319
|
/**
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
320
|
+
* Controls the visibility of a connected tooltip when this popover is open.
|
|
321
|
+
* - If set to `true`, the tooltip remains open alongside the popover.
|
|
322
|
+
* - If set to `false`, the tooltip will be closed when the popover opens.
|
|
323
|
+
* Useful for scenarios where both a popover and a tooltip are linked to the same trigger element.
|
|
324
324
|
*/
|
|
325
|
-
|
|
325
|
+
keepConnectedTooltipOpen: boolean;
|
|
326
326
|
arrowElement: HTMLElement | null;
|
|
327
327
|
/** @internal */
|
|
328
328
|
private hoverTimer;
|
|
@@ -331,12 +331,12 @@ class Popover extends BackdropMixin(PreventScrollMixin(FocusTrapMixin(Component)
|
|
|
331
331
|
*/
|
|
332
332
|
this.disableAriaExpanded = DEFAULTS.DISABLE_ARIA_EXPANDED;
|
|
333
333
|
/**
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
334
|
+
* Controls the visibility of a connected tooltip when this popover is open.
|
|
335
|
+
* - If set to `true`, the tooltip remains open alongside the popover.
|
|
336
|
+
* - If set to `false`, the tooltip will be closed when the popover opens.
|
|
337
|
+
* Useful for scenarios where both a popover and a tooltip are linked to the same trigger element.
|
|
338
338
|
*/
|
|
339
|
-
this.
|
|
339
|
+
this.keepConnectedTooltipOpen = DEFAULTS.KEEP_CONNECTED_TOOLTIP_OPEN;
|
|
340
340
|
this.arrowElement = null;
|
|
341
341
|
/** @internal */
|
|
342
342
|
this.hoverTimer = null;
|
|
@@ -688,7 +688,7 @@ class Popover extends BackdropMixin(PreventScrollMixin(FocusTrapMixin(Component)
|
|
|
688
688
|
(_b = this.floatingUICleanupFunction) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
689
689
|
// clean timer if there is one set:
|
|
690
690
|
this.cancelCloseDelay();
|
|
691
|
-
if (this.
|
|
691
|
+
if (!this.keepConnectedTooltipOpen) {
|
|
692
692
|
if (this.connectedTooltip) {
|
|
693
693
|
this.connectedTooltip.shouldSuppressOpening = false;
|
|
694
694
|
}
|
|
@@ -778,7 +778,7 @@ class Popover extends BackdropMixin(PreventScrollMixin(FocusTrapMixin(Component)
|
|
|
778
778
|
if (popoverStack.peek() !== this) {
|
|
779
779
|
popoverStack.push(this);
|
|
780
780
|
}
|
|
781
|
-
if (this.
|
|
781
|
+
if (!this.keepConnectedTooltipOpen) {
|
|
782
782
|
// If this popover gets visible and keepConnectedTooltipsClosed is true,
|
|
783
783
|
// we need to close the connected tooltip.
|
|
784
784
|
if (this.connectedTooltip) {
|
|
@@ -844,7 +844,7 @@ class Popover extends BackdropMixin(PreventScrollMixin(FocusTrapMixin(Component)
|
|
|
844
844
|
if (this.focusBackToTrigger) {
|
|
845
845
|
triggerElement === null || triggerElement === void 0 ? void 0 : triggerElement.focus();
|
|
846
846
|
}
|
|
847
|
-
if (this.
|
|
847
|
+
if (!this.keepConnectedTooltipOpen) {
|
|
848
848
|
if (this.connectedTooltip) {
|
|
849
849
|
this.connectedTooltip.shouldSuppressOpening = false;
|
|
850
850
|
}
|
|
@@ -880,13 +880,20 @@ class Popover extends BackdropMixin(PreventScrollMixin(FocusTrapMixin(Component)
|
|
|
880
880
|
return placement;
|
|
881
881
|
}
|
|
882
882
|
switch (placement) {
|
|
883
|
-
case POPOVER_PLACEMENT.LEFT:
|
|
884
|
-
|
|
885
|
-
case POPOVER_PLACEMENT.
|
|
886
|
-
|
|
887
|
-
case POPOVER_PLACEMENT.
|
|
888
|
-
|
|
889
|
-
|
|
883
|
+
case POPOVER_PLACEMENT.LEFT:
|
|
884
|
+
return POPOVER_PLACEMENT.RIGHT;
|
|
885
|
+
case POPOVER_PLACEMENT.LEFT_START:
|
|
886
|
+
return POPOVER_PLACEMENT.RIGHT_START;
|
|
887
|
+
case POPOVER_PLACEMENT.LEFT_END:
|
|
888
|
+
return POPOVER_PLACEMENT.RIGHT_END;
|
|
889
|
+
case POPOVER_PLACEMENT.RIGHT:
|
|
890
|
+
return POPOVER_PLACEMENT.LEFT;
|
|
891
|
+
case POPOVER_PLACEMENT.RIGHT_START:
|
|
892
|
+
return POPOVER_PLACEMENT.LEFT_START;
|
|
893
|
+
case POPOVER_PLACEMENT.RIGHT_END:
|
|
894
|
+
return POPOVER_PLACEMENT.LEFT_END;
|
|
895
|
+
default:
|
|
896
|
+
return placement;
|
|
890
897
|
}
|
|
891
898
|
}
|
|
892
899
|
render() {
|
|
@@ -1047,7 +1054,7 @@ __decorate([
|
|
|
1047
1054
|
__metadata("design:type", Boolean)
|
|
1048
1055
|
], Popover.prototype, "disableAriaExpanded", void 0);
|
|
1049
1056
|
__decorate([
|
|
1050
|
-
property({ type: Boolean, reflect: true, attribute: 'keep-connected-tooltip-
|
|
1057
|
+
property({ type: Boolean, reflect: true, attribute: 'keep-connected-tooltip-open' }),
|
|
1051
1058
|
__metadata("design:type", Boolean)
|
|
1052
|
-
], Popover.prototype, "
|
|
1059
|
+
], Popover.prototype, "keepConnectedTooltipOpen", void 0);
|
|
1053
1060
|
export default Popover;
|
|
@@ -54,7 +54,7 @@ declare const DEFAULTS: {
|
|
|
54
54
|
readonly Z_INDEX: 1000;
|
|
55
55
|
readonly DISABLE_ARIA_EXPANDED: false;
|
|
56
56
|
readonly PROPAGATE_EVENT_ON_ESCAPE: false;
|
|
57
|
-
readonly
|
|
57
|
+
readonly KEEP_CONNECTED_TOOLTIP_OPEN: false;
|
|
58
58
|
readonly IS_BACKDROP_INVISIBLE: true;
|
|
59
59
|
};
|
|
60
60
|
export { TAG_NAME, POPOVER_PLACEMENT, COLOR, STRATEGY, TRIGGER, DEFAULTS };
|
|
@@ -56,7 +56,7 @@ const DEFAULTS = {
|
|
|
56
56
|
Z_INDEX: 1000,
|
|
57
57
|
DISABLE_ARIA_EXPANDED: false,
|
|
58
58
|
PROPAGATE_EVENT_ON_ESCAPE: false,
|
|
59
|
-
|
|
59
|
+
KEEP_CONNECTED_TOOLTIP_OPEN: false,
|
|
60
60
|
IS_BACKDROP_INVISIBLE: true,
|
|
61
61
|
};
|
|
62
62
|
export { TAG_NAME, POPOVER_PLACEMENT, COLOR, STRATEGY, TRIGGER, DEFAULTS };
|
|
@@ -12822,12 +12822,12 @@
|
|
|
12822
12822
|
},
|
|
12823
12823
|
{
|
|
12824
12824
|
"kind": "field",
|
|
12825
|
-
"name": "
|
|
12825
|
+
"name": "keepConnectedTooltipOpen",
|
|
12826
12826
|
"type": {
|
|
12827
12827
|
"text": "boolean"
|
|
12828
12828
|
},
|
|
12829
|
-
"description": "
|
|
12830
|
-
"attribute": "keep-connected-tooltip-
|
|
12829
|
+
"description": "Controls the visibility of a connected tooltip when this popover is open.\n- If set to `true`, the tooltip remains open alongside the popover.\n- If set to `false`, the tooltip will be closed when the popover opens.\nUseful for scenarios where both a popover and a tooltip are linked to the same trigger element.",
|
|
12830
|
+
"attribute": "keep-connected-tooltip-open",
|
|
12831
12831
|
"reflects": true,
|
|
12832
12832
|
"inheritedFrom": {
|
|
12833
12833
|
"name": "Popover",
|
|
@@ -13594,12 +13594,12 @@
|
|
|
13594
13594
|
}
|
|
13595
13595
|
},
|
|
13596
13596
|
{
|
|
13597
|
-
"name": "keep-connected-tooltip-
|
|
13597
|
+
"name": "keep-connected-tooltip-open",
|
|
13598
13598
|
"type": {
|
|
13599
13599
|
"text": "boolean"
|
|
13600
13600
|
},
|
|
13601
|
-
"description": "
|
|
13602
|
-
"fieldName": "
|
|
13601
|
+
"description": "Controls the visibility of a connected tooltip when this popover is open.\n- If set to `true`, the tooltip remains open alongside the popover.\n- If set to `false`, the tooltip will be closed when the popover opens.\nUseful for scenarios where both a popover and a tooltip are linked to the same trigger element.",
|
|
13602
|
+
"fieldName": "keepConnectedTooltipOpen",
|
|
13603
13603
|
"inheritedFrom": {
|
|
13604
13604
|
"name": "Popover",
|
|
13605
13605
|
"module": "src/components/popover/popover.component.ts"
|
|
@@ -27974,12 +27974,12 @@
|
|
|
27974
27974
|
},
|
|
27975
27975
|
{
|
|
27976
27976
|
"kind": "field",
|
|
27977
|
-
"name": "
|
|
27977
|
+
"name": "keepConnectedTooltipOpen",
|
|
27978
27978
|
"type": {
|
|
27979
27979
|
"text": "boolean"
|
|
27980
27980
|
},
|
|
27981
|
-
"description": "
|
|
27982
|
-
"attribute": "keep-connected-tooltip-
|
|
27981
|
+
"description": "Controls the visibility of a connected tooltip when this popover is open.\n- If set to `true`, the tooltip remains open alongside the popover.\n- If set to `false`, the tooltip will be closed when the popover opens.\nUseful for scenarios where both a popover and a tooltip are linked to the same trigger element.",
|
|
27982
|
+
"attribute": "keep-connected-tooltip-open",
|
|
27983
27983
|
"reflects": true,
|
|
27984
27984
|
"inheritedFrom": {
|
|
27985
27985
|
"name": "Popover",
|
|
@@ -28704,12 +28704,12 @@
|
|
|
28704
28704
|
}
|
|
28705
28705
|
},
|
|
28706
28706
|
{
|
|
28707
|
-
"name": "keep-connected-tooltip-
|
|
28707
|
+
"name": "keep-connected-tooltip-open",
|
|
28708
28708
|
"type": {
|
|
28709
28709
|
"text": "boolean"
|
|
28710
28710
|
},
|
|
28711
|
-
"description": "
|
|
28712
|
-
"fieldName": "
|
|
28711
|
+
"description": "Controls the visibility of a connected tooltip when this popover is open.\n- If set to `true`, the tooltip remains open alongside the popover.\n- If set to `false`, the tooltip will be closed when the popover opens.\nUseful for scenarios where both a popover and a tooltip are linked to the same trigger element.",
|
|
28712
|
+
"fieldName": "keepConnectedTooltipOpen",
|
|
28713
28713
|
"inheritedFrom": {
|
|
28714
28714
|
"name": "Popover",
|
|
28715
28715
|
"module": "src/components/popover/popover.component.ts"
|
|
@@ -33309,12 +33309,12 @@
|
|
|
33309
33309
|
},
|
|
33310
33310
|
{
|
|
33311
33311
|
"kind": "field",
|
|
33312
|
-
"name": "
|
|
33312
|
+
"name": "keepConnectedTooltipOpen",
|
|
33313
33313
|
"type": {
|
|
33314
33314
|
"text": "boolean"
|
|
33315
33315
|
},
|
|
33316
|
-
"description": "
|
|
33317
|
-
"attribute": "keep-connected-tooltip-
|
|
33316
|
+
"description": "Controls the visibility of a connected tooltip when this popover is open.\n- If set to `true`, the tooltip remains open alongside the popover.\n- If set to `false`, the tooltip will be closed when the popover opens.\nUseful for scenarios where both a popover and a tooltip are linked to the same trigger element.",
|
|
33317
|
+
"attribute": "keep-connected-tooltip-open",
|
|
33318
33318
|
"reflects": true
|
|
33319
33319
|
},
|
|
33320
33320
|
{
|
|
@@ -34338,12 +34338,12 @@
|
|
|
34338
34338
|
"fieldName": "disableAriaExpanded"
|
|
34339
34339
|
},
|
|
34340
34340
|
{
|
|
34341
|
-
"name": "keep-connected-tooltip-
|
|
34341
|
+
"name": "keep-connected-tooltip-open",
|
|
34342
34342
|
"type": {
|
|
34343
34343
|
"text": "boolean"
|
|
34344
34344
|
},
|
|
34345
|
-
"description": "
|
|
34346
|
-
"fieldName": "
|
|
34345
|
+
"description": "Controls the visibility of a connected tooltip when this popover is open.\n- If set to `true`, the tooltip remains open alongside the popover.\n- If set to `false`, the tooltip will be closed when the popover opens.\nUseful for scenarios where both a popover and a tooltip are linked to the same trigger element.",
|
|
34346
|
+
"fieldName": "keepConnectedTooltipOpen"
|
|
34347
34347
|
},
|
|
34348
34348
|
{
|
|
34349
34349
|
"name": "should-focus-trap-wrap",
|
|
@@ -47989,12 +47989,12 @@
|
|
|
47989
47989
|
},
|
|
47990
47990
|
{
|
|
47991
47991
|
"kind": "field",
|
|
47992
|
-
"name": "
|
|
47992
|
+
"name": "keepConnectedTooltipOpen",
|
|
47993
47993
|
"type": {
|
|
47994
47994
|
"text": "boolean"
|
|
47995
47995
|
},
|
|
47996
|
-
"description": "
|
|
47997
|
-
"attribute": "keep-connected-tooltip-
|
|
47996
|
+
"description": "Controls the visibility of a connected tooltip when this popover is open.\n- If set to `true`, the tooltip remains open alongside the popover.\n- If set to `false`, the tooltip will be closed when the popover opens.\nUseful for scenarios where both a popover and a tooltip are linked to the same trigger element.",
|
|
47997
|
+
"attribute": "keep-connected-tooltip-open",
|
|
47998
47998
|
"reflects": true,
|
|
47999
47999
|
"inheritedFrom": {
|
|
48000
48000
|
"name": "Popover",
|
|
@@ -48769,12 +48769,12 @@
|
|
|
48769
48769
|
}
|
|
48770
48770
|
},
|
|
48771
48771
|
{
|
|
48772
|
-
"name": "keep-connected-tooltip-
|
|
48772
|
+
"name": "keep-connected-tooltip-open",
|
|
48773
48773
|
"type": {
|
|
48774
48774
|
"text": "boolean"
|
|
48775
48775
|
},
|
|
48776
|
-
"description": "
|
|
48777
|
-
"fieldName": "
|
|
48776
|
+
"description": "Controls the visibility of a connected tooltip when this popover is open.\n- If set to `true`, the tooltip remains open alongside the popover.\n- If set to `false`, the tooltip will be closed when the popover opens.\nUseful for scenarios where both a popover and a tooltip are linked to the same trigger element.",
|
|
48777
|
+
"fieldName": "keepConnectedTooltipOpen",
|
|
48778
48778
|
"inheritedFrom": {
|
|
48779
48779
|
"name": "Popover",
|
|
48780
48780
|
"module": "src/components/popover/popover.component.ts"
|
|
@@ -50060,12 +50060,12 @@
|
|
|
50060
50060
|
},
|
|
50061
50061
|
{
|
|
50062
50062
|
"kind": "field",
|
|
50063
|
-
"name": "
|
|
50063
|
+
"name": "keepConnectedTooltipOpen",
|
|
50064
50064
|
"type": {
|
|
50065
50065
|
"text": "boolean"
|
|
50066
50066
|
},
|
|
50067
|
-
"description": "
|
|
50068
|
-
"attribute": "keep-connected-tooltip-
|
|
50067
|
+
"description": "Controls the visibility of a connected tooltip when this popover is open.\n- If set to `true`, the tooltip remains open alongside the popover.\n- If set to `false`, the tooltip will be closed when the popover opens.\nUseful for scenarios where both a popover and a tooltip are linked to the same trigger element.",
|
|
50068
|
+
"attribute": "keep-connected-tooltip-open",
|
|
50069
50069
|
"reflects": true,
|
|
50070
50070
|
"inheritedFrom": {
|
|
50071
50071
|
"name": "Popover",
|
|
@@ -50841,12 +50841,12 @@
|
|
|
50841
50841
|
}
|
|
50842
50842
|
},
|
|
50843
50843
|
{
|
|
50844
|
-
"name": "keep-connected-tooltip-
|
|
50844
|
+
"name": "keep-connected-tooltip-open",
|
|
50845
50845
|
"type": {
|
|
50846
50846
|
"text": "boolean"
|
|
50847
50847
|
},
|
|
50848
|
-
"description": "
|
|
50849
|
-
"fieldName": "
|
|
50848
|
+
"description": "Controls the visibility of a connected tooltip when this popover is open.\n- If set to `true`, the tooltip remains open alongside the popover.\n- If set to `false`, the tooltip will be closed when the popover opens.\nUseful for scenarios where both a popover and a tooltip are linked to the same trigger element.",
|
|
50849
|
+
"fieldName": "keepConnectedTooltipOpen",
|
|
50850
50850
|
"inheritedFrom": {
|
|
50851
50851
|
"name": "Popover",
|
|
50852
50852
|
"module": "src/components/popover/popover.component.ts"
|
|
@@ -50909,6 +50909,163 @@
|
|
|
50909
50909
|
}
|
|
50910
50910
|
]
|
|
50911
50911
|
},
|
|
50912
|
+
{
|
|
50913
|
+
"kind": "javascript-module",
|
|
50914
|
+
"path": "components/virtualizedlist/virtualizedlist.component.js",
|
|
50915
|
+
"declarations": [
|
|
50916
|
+
{
|
|
50917
|
+
"kind": "class",
|
|
50918
|
+
"description": "`mdc-virtualizedlist` component for creating custom virtualized lists.\nIMPORTANT: This component does not create it's own list/list items.\nUse the setlistdata callback prop to update client state in order to\nPass list/listitems as a child of this component, which this will virtuailze\nThis implementation handles dynamic lists as well as fixed sized lists.\nPlease refer to [Tanstack Virtual Docs](https://tanstack.com/virtual/latest) for more in depth documentation.",
|
|
50919
|
+
"name": "VirtualizedList",
|
|
50920
|
+
"cssParts": [
|
|
50921
|
+
{
|
|
50922
|
+
"description": "The container of the virtualized list.",
|
|
50923
|
+
"name": "container"
|
|
50924
|
+
},
|
|
50925
|
+
{
|
|
50926
|
+
"description": "The scrollable area of the virtualized list.",
|
|
50927
|
+
"name": "scroll"
|
|
50928
|
+
}
|
|
50929
|
+
],
|
|
50930
|
+
"slots": [
|
|
50931
|
+
{
|
|
50932
|
+
"description": "Client side List with nested list items.",
|
|
50933
|
+
"name": ""
|
|
50934
|
+
}
|
|
50935
|
+
],
|
|
50936
|
+
"members": [
|
|
50937
|
+
{
|
|
50938
|
+
"kind": "field",
|
|
50939
|
+
"name": "virtualizerProps",
|
|
50940
|
+
"type": {
|
|
50941
|
+
"text": "VirtualizerProps"
|
|
50942
|
+
},
|
|
50943
|
+
"description": "Object that sets and updates the virtualizer with any relevant props.\nThere are two required object props in order to get virtualization to work properly.\ncount - The length of your list that you are virtualizing.\nAs your list grows/shrinks, this component must be updated with the appropriate value\n(Same with any other updated prop).\nestimateSize - A function that returns the estimated size of your items.\nIf your list is fixed, this will just be the size of your items.\nIf your list is dynamic, try to return approximate the size of each item.\n\nA full list of possible props can be in\n[Tanstack Virtualizer API Docs](https://tanstack.com/virtual/latest/docs/api/virtualizer)",
|
|
50944
|
+
"attribute": "virtualizerprops"
|
|
50945
|
+
},
|
|
50946
|
+
{
|
|
50947
|
+
"kind": "field",
|
|
50948
|
+
"name": "setlistdata",
|
|
50949
|
+
"type": {
|
|
50950
|
+
"text": "(({ virtualItems, measureElement, listStyle }: SetListDataProps) => void) | null"
|
|
50951
|
+
},
|
|
50952
|
+
"description": "Callback that gets envoked when updates to the virtualizer interally occur.\nThis must be implemented in such a way that this function will trigger update to parent.\n\nvirtualItems - Array that will be what the client displays on screen. Use this to render\na List of your choosing with these items nested inside as your ListItems.\nmeasureElement - Ref to pass to each ListItem rendered client side.\nEach ListItem should also be be passed key and a data-index (which can be found on the virtualItem).\nlistStyle - This should be passed as the style attribute to your List.",
|
|
50953
|
+
"default": "null",
|
|
50954
|
+
"attribute": "setlistdata"
|
|
50955
|
+
},
|
|
50956
|
+
{
|
|
50957
|
+
"kind": "field",
|
|
50958
|
+
"name": "scrollElementRef",
|
|
50959
|
+
"type": {
|
|
50960
|
+
"text": "Ref<HTMLDivElement>"
|
|
50961
|
+
},
|
|
50962
|
+
"privacy": "public"
|
|
50963
|
+
},
|
|
50964
|
+
{
|
|
50965
|
+
"kind": "field",
|
|
50966
|
+
"name": "virtualizer",
|
|
50967
|
+
"type": {
|
|
50968
|
+
"text": "Virtualizer<Element, Element> | null"
|
|
50969
|
+
},
|
|
50970
|
+
"privacy": "public",
|
|
50971
|
+
"default": "null"
|
|
50972
|
+
},
|
|
50973
|
+
{
|
|
50974
|
+
"kind": "field",
|
|
50975
|
+
"name": "virtualItems",
|
|
50976
|
+
"type": {
|
|
50977
|
+
"text": "Array<VirtualItem>"
|
|
50978
|
+
},
|
|
50979
|
+
"privacy": "public",
|
|
50980
|
+
"default": "[]"
|
|
50981
|
+
},
|
|
50982
|
+
{
|
|
50983
|
+
"kind": "method",
|
|
50984
|
+
"name": "handleScroll",
|
|
50985
|
+
"privacy": "private",
|
|
50986
|
+
"return": {
|
|
50987
|
+
"type": {
|
|
50988
|
+
"text": "void"
|
|
50989
|
+
}
|
|
50990
|
+
},
|
|
50991
|
+
"parameters": [
|
|
50992
|
+
{
|
|
50993
|
+
"name": "event",
|
|
50994
|
+
"type": {
|
|
50995
|
+
"text": "Event"
|
|
50996
|
+
}
|
|
50997
|
+
}
|
|
50998
|
+
],
|
|
50999
|
+
"description": "Refires the scroll event from the internal scroll container to the host element"
|
|
51000
|
+
},
|
|
51001
|
+
{
|
|
51002
|
+
"kind": "field",
|
|
51003
|
+
"name": "virtualizerController",
|
|
51004
|
+
"type": {
|
|
51005
|
+
"text": "null"
|
|
51006
|
+
},
|
|
51007
|
+
"default": "null"
|
|
51008
|
+
},
|
|
51009
|
+
{
|
|
51010
|
+
"kind": "field",
|
|
51011
|
+
"name": "onscroll",
|
|
51012
|
+
"type": {
|
|
51013
|
+
"text": "null"
|
|
51014
|
+
},
|
|
51015
|
+
"default": "null"
|
|
51016
|
+
}
|
|
51017
|
+
],
|
|
51018
|
+
"events": [
|
|
51019
|
+
{
|
|
51020
|
+
"type": {
|
|
51021
|
+
"text": "EventConstructor"
|
|
51022
|
+
}
|
|
51023
|
+
},
|
|
51024
|
+
{
|
|
51025
|
+
"description": "(React: onScroll) Event that gets called when user scrolls inside of list.",
|
|
51026
|
+
"name": "scroll",
|
|
51027
|
+
"reactName": "onScroll"
|
|
51028
|
+
}
|
|
51029
|
+
],
|
|
51030
|
+
"attributes": [
|
|
51031
|
+
{
|
|
51032
|
+
"name": "virtualizerprops",
|
|
51033
|
+
"type": {
|
|
51034
|
+
"text": "VirtualizerProps"
|
|
51035
|
+
},
|
|
51036
|
+
"description": "Object that sets and updates the virtualizer with any relevant props.\nThere are two required object props in order to get virtualization to work properly.\ncount - The length of your list that you are virtualizing.\nAs your list grows/shrinks, this component must be updated with the appropriate value\n(Same with any other updated prop).\nestimateSize - A function that returns the estimated size of your items.\nIf your list is fixed, this will just be the size of your items.\nIf your list is dynamic, try to return approximate the size of each item.\n\nA full list of possible props can be in\n[Tanstack Virtualizer API Docs](https://tanstack.com/virtual/latest/docs/api/virtualizer)",
|
|
51037
|
+
"fieldName": "virtualizerProps"
|
|
51038
|
+
},
|
|
51039
|
+
{
|
|
51040
|
+
"name": "setlistdata",
|
|
51041
|
+
"type": {
|
|
51042
|
+
"text": "(({ virtualItems, measureElement, listStyle }: SetListDataProps) => void) | null"
|
|
51043
|
+
},
|
|
51044
|
+
"description": "Callback that gets envoked when updates to the virtualizer interally occur.\nThis must be implemented in such a way that this function will trigger update to parent.\n\nvirtualItems - Array that will be what the client displays on screen. Use this to render\na List of your choosing with these items nested inside as your ListItems.\nmeasureElement - Ref to pass to each ListItem rendered client side.\nEach ListItem should also be be passed key and a data-index (which can be found on the virtualItem).\nlistStyle - This should be passed as the style attribute to your List.",
|
|
51045
|
+
"default": "null",
|
|
51046
|
+
"fieldName": "setlistdata"
|
|
51047
|
+
}
|
|
51048
|
+
],
|
|
51049
|
+
"superclass": {
|
|
51050
|
+
"name": "Component",
|
|
51051
|
+
"module": "/src/models"
|
|
51052
|
+
},
|
|
51053
|
+
"tagName": "mdc-virtualizedlist",
|
|
51054
|
+
"jsDoc": "/**\n * `mdc-virtualizedlist` component for creating custom virtualized lists.\n * IMPORTANT: This component does not create it's own list/list items.\n * Use the setlistdata callback prop to update client state in order to\n * Pass list/listitems as a child of this component, which this will virtuailze\n * This implementation handles dynamic lists as well as fixed sized lists.\n * Please refer to [Tanstack Virtual Docs](https://tanstack.com/virtual/latest) for more in depth documentation.\n *\n * @tagname mdc-virtualizedlist\n *\n * @event scroll - (React: onScroll) Event that gets called when user scrolls inside of list.\n *\n * @slot - Client side List with nested list items.\n *\n * @csspart container - The container of the virtualized list.\n * @csspart scroll - The scrollable area of the virtualized list.\n */",
|
|
51055
|
+
"customElement": true
|
|
51056
|
+
}
|
|
51057
|
+
],
|
|
51058
|
+
"exports": [
|
|
51059
|
+
{
|
|
51060
|
+
"kind": "js",
|
|
51061
|
+
"name": "default",
|
|
51062
|
+
"declaration": {
|
|
51063
|
+
"name": "VirtualizedList",
|
|
51064
|
+
"module": "components/virtualizedlist/virtualizedlist.component.js"
|
|
51065
|
+
}
|
|
51066
|
+
}
|
|
51067
|
+
]
|
|
51068
|
+
},
|
|
50912
51069
|
{
|
|
50913
51070
|
"kind": "javascript-module",
|
|
50914
51071
|
"path": "components/typewriter/typewriter.component.js",
|
|
@@ -51249,163 +51406,6 @@
|
|
|
51249
51406
|
}
|
|
51250
51407
|
]
|
|
51251
51408
|
},
|
|
51252
|
-
{
|
|
51253
|
-
"kind": "javascript-module",
|
|
51254
|
-
"path": "components/virtualizedlist/virtualizedlist.component.js",
|
|
51255
|
-
"declarations": [
|
|
51256
|
-
{
|
|
51257
|
-
"kind": "class",
|
|
51258
|
-
"description": "`mdc-virtualizedlist` component for creating custom virtualized lists.\nIMPORTANT: This component does not create it's own list/list items.\nUse the setlistdata callback prop to update client state in order to\nPass list/listitems as a child of this component, which this will virtuailze\nThis implementation handles dynamic lists as well as fixed sized lists.\nPlease refer to [Tanstack Virtual Docs](https://tanstack.com/virtual/latest) for more in depth documentation.",
|
|
51259
|
-
"name": "VirtualizedList",
|
|
51260
|
-
"cssParts": [
|
|
51261
|
-
{
|
|
51262
|
-
"description": "The container of the virtualized list.",
|
|
51263
|
-
"name": "container"
|
|
51264
|
-
},
|
|
51265
|
-
{
|
|
51266
|
-
"description": "The scrollable area of the virtualized list.",
|
|
51267
|
-
"name": "scroll"
|
|
51268
|
-
}
|
|
51269
|
-
],
|
|
51270
|
-
"slots": [
|
|
51271
|
-
{
|
|
51272
|
-
"description": "Client side List with nested list items.",
|
|
51273
|
-
"name": ""
|
|
51274
|
-
}
|
|
51275
|
-
],
|
|
51276
|
-
"members": [
|
|
51277
|
-
{
|
|
51278
|
-
"kind": "field",
|
|
51279
|
-
"name": "virtualizerProps",
|
|
51280
|
-
"type": {
|
|
51281
|
-
"text": "VirtualizerProps"
|
|
51282
|
-
},
|
|
51283
|
-
"description": "Object that sets and updates the virtualizer with any relevant props.\nThere are two required object props in order to get virtualization to work properly.\ncount - The length of your list that you are virtualizing.\nAs your list grows/shrinks, this component must be updated with the appropriate value\n(Same with any other updated prop).\nestimateSize - A function that returns the estimated size of your items.\nIf your list is fixed, this will just be the size of your items.\nIf your list is dynamic, try to return approximate the size of each item.\n\nA full list of possible props can be in\n[Tanstack Virtualizer API Docs](https://tanstack.com/virtual/latest/docs/api/virtualizer)",
|
|
51284
|
-
"attribute": "virtualizerprops"
|
|
51285
|
-
},
|
|
51286
|
-
{
|
|
51287
|
-
"kind": "field",
|
|
51288
|
-
"name": "setlistdata",
|
|
51289
|
-
"type": {
|
|
51290
|
-
"text": "(({ virtualItems, measureElement, listStyle }: SetListDataProps) => void) | null"
|
|
51291
|
-
},
|
|
51292
|
-
"description": "Callback that gets envoked when updates to the virtualizer interally occur.\nThis must be implemented in such a way that this function will trigger update to parent.\n\nvirtualItems - Array that will be what the client displays on screen. Use this to render\na List of your choosing with these items nested inside as your ListItems.\nmeasureElement - Ref to pass to each ListItem rendered client side.\nEach ListItem should also be be passed key and a data-index (which can be found on the virtualItem).\nlistStyle - This should be passed as the style attribute to your List.",
|
|
51293
|
-
"default": "null",
|
|
51294
|
-
"attribute": "setlistdata"
|
|
51295
|
-
},
|
|
51296
|
-
{
|
|
51297
|
-
"kind": "field",
|
|
51298
|
-
"name": "scrollElementRef",
|
|
51299
|
-
"type": {
|
|
51300
|
-
"text": "Ref<HTMLDivElement>"
|
|
51301
|
-
},
|
|
51302
|
-
"privacy": "public"
|
|
51303
|
-
},
|
|
51304
|
-
{
|
|
51305
|
-
"kind": "field",
|
|
51306
|
-
"name": "virtualizer",
|
|
51307
|
-
"type": {
|
|
51308
|
-
"text": "Virtualizer<Element, Element> | null"
|
|
51309
|
-
},
|
|
51310
|
-
"privacy": "public",
|
|
51311
|
-
"default": "null"
|
|
51312
|
-
},
|
|
51313
|
-
{
|
|
51314
|
-
"kind": "field",
|
|
51315
|
-
"name": "virtualItems",
|
|
51316
|
-
"type": {
|
|
51317
|
-
"text": "Array<VirtualItem>"
|
|
51318
|
-
},
|
|
51319
|
-
"privacy": "public",
|
|
51320
|
-
"default": "[]"
|
|
51321
|
-
},
|
|
51322
|
-
{
|
|
51323
|
-
"kind": "method",
|
|
51324
|
-
"name": "handleScroll",
|
|
51325
|
-
"privacy": "private",
|
|
51326
|
-
"return": {
|
|
51327
|
-
"type": {
|
|
51328
|
-
"text": "void"
|
|
51329
|
-
}
|
|
51330
|
-
},
|
|
51331
|
-
"parameters": [
|
|
51332
|
-
{
|
|
51333
|
-
"name": "event",
|
|
51334
|
-
"type": {
|
|
51335
|
-
"text": "Event"
|
|
51336
|
-
}
|
|
51337
|
-
}
|
|
51338
|
-
],
|
|
51339
|
-
"description": "Refires the scroll event from the internal scroll container to the host element"
|
|
51340
|
-
},
|
|
51341
|
-
{
|
|
51342
|
-
"kind": "field",
|
|
51343
|
-
"name": "virtualizerController",
|
|
51344
|
-
"type": {
|
|
51345
|
-
"text": "null"
|
|
51346
|
-
},
|
|
51347
|
-
"default": "null"
|
|
51348
|
-
},
|
|
51349
|
-
{
|
|
51350
|
-
"kind": "field",
|
|
51351
|
-
"name": "onscroll",
|
|
51352
|
-
"type": {
|
|
51353
|
-
"text": "null"
|
|
51354
|
-
},
|
|
51355
|
-
"default": "null"
|
|
51356
|
-
}
|
|
51357
|
-
],
|
|
51358
|
-
"events": [
|
|
51359
|
-
{
|
|
51360
|
-
"type": {
|
|
51361
|
-
"text": "EventConstructor"
|
|
51362
|
-
}
|
|
51363
|
-
},
|
|
51364
|
-
{
|
|
51365
|
-
"description": "(React: onScroll) Event that gets called when user scrolls inside of list.",
|
|
51366
|
-
"name": "scroll",
|
|
51367
|
-
"reactName": "onScroll"
|
|
51368
|
-
}
|
|
51369
|
-
],
|
|
51370
|
-
"attributes": [
|
|
51371
|
-
{
|
|
51372
|
-
"name": "virtualizerprops",
|
|
51373
|
-
"type": {
|
|
51374
|
-
"text": "VirtualizerProps"
|
|
51375
|
-
},
|
|
51376
|
-
"description": "Object that sets and updates the virtualizer with any relevant props.\nThere are two required object props in order to get virtualization to work properly.\ncount - The length of your list that you are virtualizing.\nAs your list grows/shrinks, this component must be updated with the appropriate value\n(Same with any other updated prop).\nestimateSize - A function that returns the estimated size of your items.\nIf your list is fixed, this will just be the size of your items.\nIf your list is dynamic, try to return approximate the size of each item.\n\nA full list of possible props can be in\n[Tanstack Virtualizer API Docs](https://tanstack.com/virtual/latest/docs/api/virtualizer)",
|
|
51377
|
-
"fieldName": "virtualizerProps"
|
|
51378
|
-
},
|
|
51379
|
-
{
|
|
51380
|
-
"name": "setlistdata",
|
|
51381
|
-
"type": {
|
|
51382
|
-
"text": "(({ virtualItems, measureElement, listStyle }: SetListDataProps) => void) | null"
|
|
51383
|
-
},
|
|
51384
|
-
"description": "Callback that gets envoked when updates to the virtualizer interally occur.\nThis must be implemented in such a way that this function will trigger update to parent.\n\nvirtualItems - Array that will be what the client displays on screen. Use this to render\na List of your choosing with these items nested inside as your ListItems.\nmeasureElement - Ref to pass to each ListItem rendered client side.\nEach ListItem should also be be passed key and a data-index (which can be found on the virtualItem).\nlistStyle - This should be passed as the style attribute to your List.",
|
|
51385
|
-
"default": "null",
|
|
51386
|
-
"fieldName": "setlistdata"
|
|
51387
|
-
}
|
|
51388
|
-
],
|
|
51389
|
-
"superclass": {
|
|
51390
|
-
"name": "Component",
|
|
51391
|
-
"module": "/src/models"
|
|
51392
|
-
},
|
|
51393
|
-
"tagName": "mdc-virtualizedlist",
|
|
51394
|
-
"jsDoc": "/**\n * `mdc-virtualizedlist` component for creating custom virtualized lists.\n * IMPORTANT: This component does not create it's own list/list items.\n * Use the setlistdata callback prop to update client state in order to\n * Pass list/listitems as a child of this component, which this will virtuailze\n * This implementation handles dynamic lists as well as fixed sized lists.\n * Please refer to [Tanstack Virtual Docs](https://tanstack.com/virtual/latest) for more in depth documentation.\n *\n * @tagname mdc-virtualizedlist\n *\n * @event scroll - (React: onScroll) Event that gets called when user scrolls inside of list.\n *\n * @slot - Client side List with nested list items.\n *\n * @csspart container - The container of the virtualized list.\n * @csspart scroll - The scrollable area of the virtualized list.\n */",
|
|
51395
|
-
"customElement": true
|
|
51396
|
-
}
|
|
51397
|
-
],
|
|
51398
|
-
"exports": [
|
|
51399
|
-
{
|
|
51400
|
-
"kind": "js",
|
|
51401
|
-
"name": "default",
|
|
51402
|
-
"declaration": {
|
|
51403
|
-
"name": "VirtualizedList",
|
|
51404
|
-
"module": "components/virtualizedlist/virtualizedlist.component.js"
|
|
51405
|
-
}
|
|
51406
|
-
}
|
|
51407
|
-
]
|
|
51408
|
-
},
|
|
51409
51409
|
{
|
|
51410
51410
|
"kind": "javascript-module",
|
|
51411
51411
|
"path": "utils/mixins/AutoFocusOnMountMixin.js",
|
package/dist/react/index.d.ts
CHANGED
|
@@ -83,5 +83,5 @@ export { default as Toast } from './toast';
|
|
|
83
83
|
export { default as Toggle } from './toggle';
|
|
84
84
|
export { default as ToggleTip } from './toggletip';
|
|
85
85
|
export { default as Tooltip } from './tooltip';
|
|
86
|
-
export { default as Typewriter } from './typewriter';
|
|
87
86
|
export { default as VirtualizedList } from './virtualizedlist';
|
|
87
|
+
export { default as Typewriter } from './typewriter';
|
package/dist/react/index.js
CHANGED
|
@@ -83,5 +83,5 @@ export { default as Toast } from './toast';
|
|
|
83
83
|
export { default as Toggle } from './toggle';
|
|
84
84
|
export { default as ToggleTip } from './toggletip';
|
|
85
85
|
export { default as Tooltip } from './tooltip';
|
|
86
|
-
export { default as Typewriter } from './typewriter';
|
|
87
86
|
export { default as VirtualizedList } from './virtualizedlist';
|
|
87
|
+
export { default as Typewriter } from './typewriter';
|