@m3e/tooltip 1.1.11 → 1.2.1
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/README.md +79 -11
- package/dist/css-custom-data.json +100 -0
- package/dist/custom-elements.json +1495 -186
- package/dist/html-custom-data.json +49 -0
- package/dist/index.js +872 -207
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +24 -7
- package/dist/index.min.js.map +1 -1
- package/dist/src/RichTooltipActionElement.d.ts +21 -0
- package/dist/src/RichTooltipActionElement.d.ts.map +1 -0
- package/dist/src/RichTooltipElement.d.ts +116 -0
- package/dist/src/RichTooltipElement.d.ts.map +1 -0
- package/dist/src/RichTooltipPosition.d.ts +3 -0
- package/dist/src/RichTooltipPosition.d.ts.map +1 -0
- package/dist/src/TooltipElement.d.ts +8 -38
- package/dist/src/TooltipElement.d.ts.map +1 -1
- package/dist/src/TooltipElementBase.d.ts +69 -0
- package/dist/src/TooltipElementBase.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -2,6 +2,55 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
|
|
3
3
|
"version": 1.1,
|
|
4
4
|
"tags": [
|
|
5
|
+
{
|
|
6
|
+
"name": "m3e-rich-tooltip-action",
|
|
7
|
+
"description": "An element, nested within a clickable element, used to dismiss a parenting rich tooltip.\n---\n\n\n### **Slots:**\n - _default_ - Renders the content of the action.",
|
|
8
|
+
"attributes": [
|
|
9
|
+
{
|
|
10
|
+
"name": "disable-restore-focus",
|
|
11
|
+
"description": "Whether to focus should not be restored to the trigger when activated.",
|
|
12
|
+
"values": []
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"references": []
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "m3e-rich-tooltip",
|
|
19
|
+
"description": "Provides contextual details for a control, such as explaining the value or purpose of a feature.\n---\n\n\n### **Events:**\n - **beforetoggle** - Dispatched before the toggle state changes.\n- **toggle** - Dispatched after the toggle state has changed.\n\n### **Methods:**\n - **show(): _Promise<void>_** - Manually shows the tooltip.\n- **hide(restoreFocus): _void_** - Manually hides the tooltip.\n- **attach(control: _HTMLElement_): _void_** - Attaches the element to an interactive control.\n- **detach(): _void_** - Detaches the element from its current interactive control.\n\n### **Slots:**\n - _default_ - The main supporting text of the tooltip.\n- **subhead** - Optional subhead text displayed above the supporting content.\n- **actions** - Optional action elements displayed at the bottom of the tooltip.\n\n### **CSS Properties:**\n - **--m3e-rich-tooltip-padding-top** - Top padding of the tooltip container. _(default: undefined)_\n- **--m3e-rich-tooltip-padding-bottom** - Bottom padding of the tooltip container (when no actions are present). _(default: undefined)_\n- **--m3e-rich-tooltip-padding-inline** - Horizontal padding of the tooltip container. _(default: undefined)_\n- **--m3e-rich-tooltip-max-width** - Maximum width of the tooltip surface. _(default: undefined)_\n- **--m3e-rich-tooltip-shape** - Border‑radius of the tooltip container. _(default: undefined)_\n- **--m3e-rich-tooltip-container-color** - Background color of the tooltip surface. _(default: undefined)_\n- **--m3e-rich-tooltip-subhead-color** - Color of the subhead text. _(default: undefined)_\n- **--m3e-rich-tooltip-subhead-font-size** - Font size of the subhead text. _(default: undefined)_\n- **--m3e-rich-tooltip-subhead-font-weight** - Font weight of the subhead text. _(default: undefined)_\n- **--m3e-rich-tooltip-subhead-line-height** - Line height of the subhead text. _(default: undefined)_\n- **--m3e-rich-tooltip-subhead-tracking** - Letter‑spacing of the subhead text. _(default: undefined)_\n- **--m3e-rich-tooltip-subhead-bottom-space** - Space below the subhead before the supporting text. _(default: undefined)_\n- **--m3e-rich-tooltip-supporting-text-color** - Color of the supporting text. _(default: undefined)_\n- **--m3e-rich-tooltip-supporting-text-font-size** - Font size of the supporting text. _(default: undefined)_\n- **--m3e-rich-tooltip-supporting-text-font-weight** - Font weight of the supporting text. _(default: undefined)_\n- **--m3e-rich-tooltip-supporting-text-line-height** - Line height of the supporting text. _(default: undefined)_\n- **--m3e-rich-tooltip-supporting-text-tracking** - Letter‑spacing of the supporting text. _(default: undefined)_\n- **--m3e-rich-tooltip-actions-padding-inline** - Horizontal padding applied to the actions slot area. _(default: undefined)_\n- **--m3e-rich-tooltip-actions-top-space** - Space above the actions slot. _(default: undefined)_\n- **--m3e-rich-tooltip-actions-bottom-space** - Space below the actions slot. _(default: undefined)_",
|
|
20
|
+
"attributes": [
|
|
21
|
+
{
|
|
22
|
+
"name": "disabled",
|
|
23
|
+
"description": "Whether the element is disabled.",
|
|
24
|
+
"values": []
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "for",
|
|
28
|
+
"description": "The identifier of the interactive control to which this element is attached.",
|
|
29
|
+
"values": []
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "hide-delay",
|
|
33
|
+
"description": "The amount of time, in milliseconds, before hiding the tooltip.",
|
|
34
|
+
"values": []
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "position",
|
|
38
|
+
"description": "The position of the tooltip.",
|
|
39
|
+
"values": [{ "name": "RichTooltipPosition" }]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "show-delay",
|
|
43
|
+
"description": "The amount of time, in milliseconds, before showing the tooltip.",
|
|
44
|
+
"values": []
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "touch-gestures",
|
|
48
|
+
"description": "The mode in which to handle touch gestures.",
|
|
49
|
+
"values": [{ "name": "TooltipTouchGestures" }]
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"references": []
|
|
53
|
+
},
|
|
5
54
|
{
|
|
6
55
|
"name": "m3e-tooltip",
|
|
7
56
|
"description": "Adds additional context to a button or other UI element.\n---\n\n\n### **Methods:**\n - **attach(control: _HTMLElement_): _void_** - Attaches the element to an interactive control.\n- **detach(): _void_** - Detaches the element from its current interactive control.\n- **show(): _Promise<void>_** - Manually shows the tooltip.\n- **hide(): _void_** - Manually hides the tooltip.\n\n### **Slots:**\n - _default_ - Renders the content of the tooltip.\n\n### **CSS Properties:**\n - **--m3e-tooltip-padding** - Internal spacing of the tooltip container. _(default: undefined)_\n- **--m3e-tooltip-min-width** - Minimum width of the tooltip. _(default: undefined)_\n- **--m3e-tooltip-max-width** - Maximum width of the tooltip. _(default: undefined)_\n- **--m3e-tooltip-min-height** - Minimum height of the tooltip container. _(default: undefined)_\n- **--m3e-tooltip-max-height** - Maximum height of the tooltip. _(default: undefined)_\n- **--m3e-tooltip-shape** - Border radius of the tooltip container. _(default: undefined)_\n- **--m3e-tooltip-container-color** - Background color of the tooltip. _(default: undefined)_\n- **--m3e-tooltip-supporting-text-color** - Text color of supporting text. _(default: undefined)_\n- **--m3e-tooltip-supporting-text-font-size** - Font size of supporting text. _(default: undefined)_\n- **--m3e-tooltip-supporting-text-font-weight** - Font weight of supporting text. _(default: undefined)_\n- **--m3e-tooltip-supporting-text-line-height** - Line height of supporting text. _(default: undefined)_\n- **--m3e-tooltip-supporting-text-tracking** - Letter spacing of supporting text. _(default: undefined)_",
|