@tylertech/forge 3.8.0-dev.1 → 3.8.0-dev.2
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/custom-elements.json +538 -538
- package/dist/lib.js +4 -4
- package/dist/lib.js.map +2 -2
- package/dist/vscode.css-custom-data.json +73 -73
- package/dist/vscode.html-custom-data.json +53 -53
- package/esm/overlay/overlay-adapter.js +9 -4
- package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
- package/package.json +1 -1
|
@@ -2,36 +2,6 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
|
|
3
3
|
"version": 1.1,
|
|
4
4
|
"properties": [
|
|
5
|
-
{
|
|
6
|
-
"name": "--forge-avatar-background",
|
|
7
|
-
"description": "The background color of the avatar.",
|
|
8
|
-
"values": [{ "name": "string" }]
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"name": "--forge-avatar-shape",
|
|
12
|
-
"description": "The border radius of the avatar, defaults to 50%.",
|
|
13
|
-
"values": [{ "name": "number" }]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"name": "--forge-avatar-color",
|
|
17
|
-
"description": "The text color of the avatar.",
|
|
18
|
-
"values": [{ "name": "color" }]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "--forge-avatar-size",
|
|
22
|
-
"description": "The height and width of the avatar.",
|
|
23
|
-
"values": [{ "name": "number" }]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "--forge-avatar-transition-duration",
|
|
27
|
-
"description": "The transition duration for animations.",
|
|
28
|
-
"values": [{ "name": "number" }]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"name": "--forge-avatar-transition-timing",
|
|
32
|
-
"description": "The transition timing function for animations.",
|
|
33
|
-
"values": [{ "name": "string" }]
|
|
34
|
-
},
|
|
35
5
|
{
|
|
36
6
|
"name": "--forge-backdrop-background",
|
|
37
7
|
"description": "The backdrop background color.",
|
|
@@ -67,6 +37,36 @@
|
|
|
67
37
|
"description": "The animation easing for the exit animation.",
|
|
68
38
|
"values": []
|
|
69
39
|
},
|
|
40
|
+
{
|
|
41
|
+
"name": "--forge-avatar-background",
|
|
42
|
+
"description": "The background color of the avatar.",
|
|
43
|
+
"values": [{ "name": "string" }]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "--forge-avatar-shape",
|
|
47
|
+
"description": "The border radius of the avatar, defaults to 50%.",
|
|
48
|
+
"values": [{ "name": "number" }]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "--forge-avatar-color",
|
|
52
|
+
"description": "The text color of the avatar.",
|
|
53
|
+
"values": [{ "name": "color" }]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "--forge-avatar-size",
|
|
57
|
+
"description": "The height and width of the avatar.",
|
|
58
|
+
"values": [{ "name": "number" }]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "--forge-avatar-transition-duration",
|
|
62
|
+
"description": "The transition duration for animations.",
|
|
63
|
+
"values": [{ "name": "number" }]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "--forge-avatar-transition-timing",
|
|
67
|
+
"description": "The transition timing function for animations.",
|
|
68
|
+
"values": [{ "name": "string" }]
|
|
69
|
+
},
|
|
70
70
|
{
|
|
71
71
|
"name": "--forge-badge-background",
|
|
72
72
|
"description": "The background color.",
|
|
@@ -2033,98 +2033,98 @@
|
|
|
2033
2033
|
"values": []
|
|
2034
2034
|
},
|
|
2035
2035
|
{
|
|
2036
|
-
"name": "--forge-
|
|
2037
|
-
"description": "
|
|
2036
|
+
"name": "--forge-linear-progress-height",
|
|
2037
|
+
"description": "The height of the element.",
|
|
2038
2038
|
"values": []
|
|
2039
2039
|
},
|
|
2040
2040
|
{
|
|
2041
|
-
"name": "--forge-
|
|
2042
|
-
"description": "The
|
|
2041
|
+
"name": "--forge-linear-progress-track-color",
|
|
2042
|
+
"description": "The background color of the indicator.",
|
|
2043
2043
|
"values": []
|
|
2044
2044
|
},
|
|
2045
2045
|
{
|
|
2046
|
-
"name": "--forge-
|
|
2047
|
-
"description": "The
|
|
2046
|
+
"name": "--forge-linear-progress-track-shape",
|
|
2047
|
+
"description": "The shape of the indicator.",
|
|
2048
2048
|
"values": []
|
|
2049
2049
|
},
|
|
2050
2050
|
{
|
|
2051
|
-
"name": "--forge-
|
|
2052
|
-
"description": "The
|
|
2051
|
+
"name": "--forge-linear-progress-indicator-color",
|
|
2052
|
+
"description": "The color of the indicator.",
|
|
2053
2053
|
"values": []
|
|
2054
2054
|
},
|
|
2055
2055
|
{
|
|
2056
|
-
"name": "--forge-
|
|
2057
|
-
"description": "The
|
|
2056
|
+
"name": "--forge-linear-progress-indicator-height",
|
|
2057
|
+
"description": "The height of the indicator only.",
|
|
2058
2058
|
"values": []
|
|
2059
2059
|
},
|
|
2060
2060
|
{
|
|
2061
|
-
"name": "--forge-
|
|
2062
|
-
"description": "The
|
|
2061
|
+
"name": "--forge-linear-progress-determinate-duration",
|
|
2062
|
+
"description": "The duration of the determinate animation.",
|
|
2063
2063
|
"values": []
|
|
2064
2064
|
},
|
|
2065
2065
|
{
|
|
2066
|
-
"name": "--forge-
|
|
2067
|
-
"description": "The
|
|
2066
|
+
"name": "--forge-linear-progress-indeterminate-duration",
|
|
2067
|
+
"description": "The duration of the indeterminate animation.",
|
|
2068
2068
|
"values": []
|
|
2069
2069
|
},
|
|
2070
2070
|
{
|
|
2071
|
-
"name": "--forge-
|
|
2072
|
-
"description": "The
|
|
2071
|
+
"name": "--forge-linear-progress-determinate-easing",
|
|
2072
|
+
"description": "The easing function to use for the determinate animation.",
|
|
2073
2073
|
"values": []
|
|
2074
2074
|
},
|
|
2075
2075
|
{
|
|
2076
|
-
"name": "--forge-
|
|
2077
|
-
"description": "The
|
|
2076
|
+
"name": "--forge-linear-progress-theme-transition-duration",
|
|
2077
|
+
"description": "The duration of the theme transition.",
|
|
2078
2078
|
"values": []
|
|
2079
2079
|
},
|
|
2080
2080
|
{
|
|
2081
|
-
"name": "--forge-linear-progress-
|
|
2082
|
-
"description": "The
|
|
2081
|
+
"name": "--forge-linear-progress-theme-transition-timing",
|
|
2082
|
+
"description": "The easing function to use for the theme transition.",
|
|
2083
2083
|
"values": []
|
|
2084
2084
|
},
|
|
2085
2085
|
{
|
|
2086
|
-
"name": "--forge-
|
|
2087
|
-
"description": "
|
|
2086
|
+
"name": "--forge-label-value-align",
|
|
2087
|
+
"description": "Aligns the label and value. Possible values: `start` (default), `center`, `end`.",
|
|
2088
2088
|
"values": []
|
|
2089
2089
|
},
|
|
2090
2090
|
{
|
|
2091
|
-
"name": "--forge-
|
|
2092
|
-
"description": "The
|
|
2091
|
+
"name": "--forge-label-value-label-spacing",
|
|
2092
|
+
"description": "The spacing between the label and value.",
|
|
2093
2093
|
"values": []
|
|
2094
2094
|
},
|
|
2095
2095
|
{
|
|
2096
|
-
"name": "--forge-
|
|
2097
|
-
"description": "The
|
|
2096
|
+
"name": "--forge-label-value-label-block-start-spacing",
|
|
2097
|
+
"description": "The block start spacing for the label.",
|
|
2098
2098
|
"values": []
|
|
2099
2099
|
},
|
|
2100
2100
|
{
|
|
2101
|
-
"name": "--forge-
|
|
2102
|
-
"description": "The
|
|
2101
|
+
"name": "--forge-label-value-label-block-end-spacing",
|
|
2102
|
+
"description": "The block end spacing for the label.",
|
|
2103
2103
|
"values": []
|
|
2104
2104
|
},
|
|
2105
2105
|
{
|
|
2106
|
-
"name": "--forge-
|
|
2107
|
-
"description": "The
|
|
2106
|
+
"name": "--forge-label-value-label-color",
|
|
2107
|
+
"description": "The color to apply to the label.",
|
|
2108
2108
|
"values": []
|
|
2109
2109
|
},
|
|
2110
2110
|
{
|
|
2111
|
-
"name": "--forge-
|
|
2112
|
-
"description": "The
|
|
2111
|
+
"name": "--forge-label-value-icon-spacing",
|
|
2112
|
+
"description": "The spacing between the icon and the label.",
|
|
2113
2113
|
"values": []
|
|
2114
2114
|
},
|
|
2115
2115
|
{
|
|
2116
|
-
"name": "--forge-
|
|
2117
|
-
"description": "The
|
|
2116
|
+
"name": "--forge-label-value-inline-label-spacing",
|
|
2117
|
+
"description": "The spacing between the label and value when displayed inline.",
|
|
2118
2118
|
"values": []
|
|
2119
2119
|
},
|
|
2120
2120
|
{
|
|
2121
|
-
"name": "--forge-
|
|
2122
|
-
"description": "The
|
|
2121
|
+
"name": "--forge-label-value-empty-color",
|
|
2122
|
+
"description": "The color to apply to the value when empty.",
|
|
2123
2123
|
"values": []
|
|
2124
2124
|
},
|
|
2125
2125
|
{
|
|
2126
|
-
"name": "--forge-
|
|
2127
|
-
"description": "The
|
|
2126
|
+
"name": "--forge-label-value-empty-style",
|
|
2127
|
+
"description": "The font-style to apply to the value when empty.",
|
|
2128
2128
|
"values": []
|
|
2129
2129
|
},
|
|
2130
2130
|
{
|
|
@@ -5394,11 +5394,11 @@
|
|
|
5394
5394
|
}
|
|
5395
5395
|
],
|
|
5396
5396
|
"pseudoElements": [
|
|
5397
|
-
{ "name": "::part(root)", "description": "The root container element." },
|
|
5398
5397
|
{
|
|
5399
5398
|
"name": "::part(root)",
|
|
5400
5399
|
"description": "The root element of the backdrop."
|
|
5401
5400
|
},
|
|
5401
|
+
{ "name": "::part(root)", "description": "The root container element." },
|
|
5402
5402
|
{
|
|
5403
5403
|
"name": "::part(root)",
|
|
5404
5404
|
"description": "The root element of the bottom sheet."
|
|
@@ -5599,6 +5599,10 @@
|
|
|
5599
5599
|
"name": "::part(container)",
|
|
5600
5600
|
"description": "The container element for the title and message content."
|
|
5601
5601
|
},
|
|
5602
|
+
{
|
|
5603
|
+
"name": "::part(progressbar)",
|
|
5604
|
+
"description": "Styles the progress bar container element"
|
|
5605
|
+
},
|
|
5602
5606
|
{
|
|
5603
5607
|
"name": "::part(root)",
|
|
5604
5608
|
"description": "The root layout container element."
|
|
@@ -5606,10 +5610,6 @@
|
|
|
5606
5610
|
{ "name": "::part(label)", "description": "The label container element." },
|
|
5607
5611
|
{ "name": "::part(value)", "description": "The value container element." },
|
|
5608
5612
|
{ "name": "::part(icon)", "description": "The icon container element." },
|
|
5609
|
-
{
|
|
5610
|
-
"name": "::part(progressbar)",
|
|
5611
|
-
"description": "Styles the progress bar container element"
|
|
5612
|
-
},
|
|
5613
5613
|
{ "name": "::part(root)", "description": "The root element of the icon." },
|
|
5614
5614
|
{ "name": "::part(icon)", "description": "The icon element." },
|
|
5615
5615
|
{ "name": "::part(root)", "description": "The component's root element." },
|
|
@@ -102,39 +102,39 @@
|
|
|
102
102
|
"references": []
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
|
-
"name": "forge-
|
|
106
|
-
"description": "
|
|
105
|
+
"name": "forge-backdrop",
|
|
106
|
+
"description": "\n---\n\n\n### **Methods:**\n - **show(): _void_** - Immediately shows the backdrop by setting the `visibility` to `true` without animations.\n- **hide(): _void_** - Immediately hides the backdrop by setting the `visibility` to `false` without animations.\n- **fadeIn(): _Promise<void>_** - Sets the `visibility` to `true` and animates in.\n- **fadeOut(): _Promise<void>_** - Sets the `visibility` to `false` and animates out.\n\n### **CSS Properties:**\n - **--forge-backdrop-background** - The backdrop background color. _(default: undefined)_\n- **--forge-backdrop-opacity** - The backdrop opacity. _(default: undefined)_\n- **--forge-backdrop-z-index** - The backdrop z-index. _(default: undefined)_\n- **--forge-backdrop-enter-animation-duration** - The animation duration for the enter animation. _(default: undefined)_\n- **--forge-backdrop-enter-animation-easing** - The animation easing for the enter animation. _(default: undefined)_\n- **--forge-backdrop-exit-animation-duration** - The animation duration for the exit animation. _(default: undefined)_\n- **--forge-backdrop-exit-animation-easing** - The animation easing for the exit animation. _(default: undefined)_\n\n### **CSS Parts:**\n - **root** - The root element of the backdrop.",
|
|
107
107
|
"attributes": [
|
|
108
108
|
{
|
|
109
|
-
"name": "
|
|
110
|
-
"description": "
|
|
111
|
-
"values": []
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"name": "letter-count",
|
|
115
|
-
"description": "Controls the number of letters to display from the text. By default the text is split on spaces and the first character of each word is used.",
|
|
109
|
+
"name": "visible",
|
|
110
|
+
"description": "Whether the backdrop is visible.",
|
|
116
111
|
"values": []
|
|
117
112
|
},
|
|
118
113
|
{
|
|
119
|
-
"name": "
|
|
120
|
-
"description": "
|
|
114
|
+
"name": "fixed",
|
|
115
|
+
"description": "Whether the backdrop uses \"fixed\" or \"relative\" positioning.",
|
|
121
116
|
"values": []
|
|
122
117
|
}
|
|
123
118
|
],
|
|
124
119
|
"references": []
|
|
125
120
|
},
|
|
126
121
|
{
|
|
127
|
-
"name": "forge-
|
|
128
|
-
"description": "
|
|
122
|
+
"name": "forge-avatar",
|
|
123
|
+
"description": "Avatars represent an entity via text or image.\n---\n\n\n### **Slots:**\n - _default_ - The default slot for avatar content if not provided via text/imageUrl.\n\n### **CSS Properties:**\n - **--forge-avatar-background** - The background color of the avatar. _(default: undefined)_\n- **--forge-avatar-shape** - The border radius of the avatar, defaults to 50%. _(default: undefined)_\n- **--forge-avatar-color** - The text color of the avatar. _(default: undefined)_\n- **--forge-avatar-size** - The height and width of the avatar. _(default: undefined)_\n- **--forge-avatar-transition-duration** - The transition duration for animations. _(default: undefined)_\n- **--forge-avatar-transition-timing** - The transition timing function for animations. _(default: undefined)_\n\n### **CSS Parts:**\n - **root** - The root container element.",
|
|
129
124
|
"attributes": [
|
|
130
125
|
{
|
|
131
|
-
"name": "
|
|
132
|
-
"description": "
|
|
126
|
+
"name": "text",
|
|
127
|
+
"description": "The text to display in the avatar.",
|
|
133
128
|
"values": []
|
|
134
129
|
},
|
|
135
130
|
{
|
|
136
|
-
"name": "
|
|
137
|
-
"description": "
|
|
131
|
+
"name": "letter-count",
|
|
132
|
+
"description": "Controls the number of letters to display from the text. By default the text is split on spaces and the first character of each word is used.",
|
|
133
|
+
"values": []
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "image-url",
|
|
137
|
+
"description": "The background image URL to use.",
|
|
138
138
|
"values": []
|
|
139
139
|
}
|
|
140
140
|
],
|
|
@@ -1190,6 +1190,33 @@
|
|
|
1190
1190
|
],
|
|
1191
1191
|
"references": []
|
|
1192
1192
|
},
|
|
1193
|
+
{
|
|
1194
|
+
"name": "forge-label",
|
|
1195
|
+
"description": "The Forge Label component is used to associate a text label with a compatible Forge component.\n---\n\n\n### **Methods:**\n - **update(): _void_** - Updates the targeted element with the label's current text content.",
|
|
1196
|
+
"attributes": [
|
|
1197
|
+
{
|
|
1198
|
+
"name": "for",
|
|
1199
|
+
"description": "The id of the associated element.",
|
|
1200
|
+
"values": []
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"name": "dynamic",
|
|
1204
|
+
"description": "Propagates changes in the label's text content to the associated element.",
|
|
1205
|
+
"values": []
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"name": "non-interactive",
|
|
1209
|
+
"description": "Removes click handling from the label.",
|
|
1210
|
+
"values": []
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
"name": "legend",
|
|
1214
|
+
"description": "Whether or not the label should be associated with an ancestor element.",
|
|
1215
|
+
"values": []
|
|
1216
|
+
}
|
|
1217
|
+
],
|
|
1218
|
+
"references": []
|
|
1219
|
+
},
|
|
1193
1220
|
{
|
|
1194
1221
|
"name": "forge-keyboard-shortcut",
|
|
1195
1222
|
"description": "\n---\n\n\n### **Events:**\n - **forge-keyboard-shortcut-activate** - Event fired when the keyboard shortcut is activated.",
|
|
@@ -1243,29 +1270,25 @@
|
|
|
1243
1270
|
"references": []
|
|
1244
1271
|
},
|
|
1245
1272
|
{
|
|
1246
|
-
"name": "forge-
|
|
1247
|
-
"description": "
|
|
1273
|
+
"name": "forge-linear-progress",
|
|
1274
|
+
"description": "Linear progress indicators display progress by animating along a linear track in a horizontal direction.\n---\n\n\n### **CSS Properties:**\n - **--forge-linear-progress-height** - The height of the element. _(default: undefined)_\n- **--forge-linear-progress-track-color** - The background color of the indicator. _(default: undefined)_\n- **--forge-linear-progress-track-shape** - The shape of the indicator. _(default: undefined)_\n- **--forge-linear-progress-indicator-color** - The color of the indicator. _(default: undefined)_\n- **--forge-linear-progress-indicator-height** - The height of the indicator only. _(default: undefined)_\n- **--forge-linear-progress-determinate-duration** - The duration of the determinate animation. _(default: undefined)_\n- **--forge-linear-progress-indeterminate-duration** - The duration of the indeterminate animation. _(default: undefined)_\n- **--forge-linear-progress-determinate-easing** - The easing function to use for the determinate animation. _(default: undefined)_\n- **--forge-linear-progress-theme-transition-duration** - The duration of the theme transition. _(default: undefined)_\n- **--forge-linear-progress-theme-transition-timing** - The easing function to use for the theme transition. _(default: undefined)_\n\n### **CSS Parts:**\n - **progressbar** - Styles the progress bar container element",
|
|
1248
1275
|
"attributes": [
|
|
1249
1276
|
{
|
|
1250
|
-
"name": "
|
|
1251
|
-
"description": "
|
|
1277
|
+
"name": "determinate",
|
|
1278
|
+
"description": "Controls the determinate state.",
|
|
1252
1279
|
"values": []
|
|
1253
1280
|
},
|
|
1254
1281
|
{
|
|
1255
|
-
"name": "
|
|
1256
|
-
"description": "
|
|
1282
|
+
"name": "progress",
|
|
1283
|
+
"description": "Controls the progress while in a determinate state. Accepts values from `0` to `1`.",
|
|
1257
1284
|
"values": []
|
|
1258
1285
|
},
|
|
1259
1286
|
{
|
|
1260
|
-
"name": "
|
|
1261
|
-
"description": "
|
|
1287
|
+
"name": "buffer",
|
|
1288
|
+
"description": "Controls the buffer progress while in a determinate state. Accepts values from `0` to `1`.",
|
|
1262
1289
|
"values": []
|
|
1263
1290
|
},
|
|
1264
|
-
{
|
|
1265
|
-
"name": "legend",
|
|
1266
|
-
"description": "Whether or not the label should be associated with an ancestor element.",
|
|
1267
|
-
"values": []
|
|
1268
|
-
}
|
|
1291
|
+
{ "name": "theme", "description": "Sets the theme.", "values": [] }
|
|
1269
1292
|
],
|
|
1270
1293
|
"references": []
|
|
1271
1294
|
},
|
|
@@ -1291,29 +1314,6 @@
|
|
|
1291
1314
|
],
|
|
1292
1315
|
"references": []
|
|
1293
1316
|
},
|
|
1294
|
-
{
|
|
1295
|
-
"name": "forge-linear-progress",
|
|
1296
|
-
"description": "Linear progress indicators display progress by animating along a linear track in a horizontal direction.\n---\n\n\n### **CSS Properties:**\n - **--forge-linear-progress-height** - The height of the element. _(default: undefined)_\n- **--forge-linear-progress-track-color** - The background color of the indicator. _(default: undefined)_\n- **--forge-linear-progress-track-shape** - The shape of the indicator. _(default: undefined)_\n- **--forge-linear-progress-indicator-color** - The color of the indicator. _(default: undefined)_\n- **--forge-linear-progress-indicator-height** - The height of the indicator only. _(default: undefined)_\n- **--forge-linear-progress-determinate-duration** - The duration of the determinate animation. _(default: undefined)_\n- **--forge-linear-progress-indeterminate-duration** - The duration of the indeterminate animation. _(default: undefined)_\n- **--forge-linear-progress-determinate-easing** - The easing function to use for the determinate animation. _(default: undefined)_\n- **--forge-linear-progress-theme-transition-duration** - The duration of the theme transition. _(default: undefined)_\n- **--forge-linear-progress-theme-transition-timing** - The easing function to use for the theme transition. _(default: undefined)_\n\n### **CSS Parts:**\n - **progressbar** - Styles the progress bar container element",
|
|
1297
|
-
"attributes": [
|
|
1298
|
-
{
|
|
1299
|
-
"name": "determinate",
|
|
1300
|
-
"description": "Controls the determinate state.",
|
|
1301
|
-
"values": []
|
|
1302
|
-
},
|
|
1303
|
-
{
|
|
1304
|
-
"name": "progress",
|
|
1305
|
-
"description": "Controls the progress while in a determinate state. Accepts values from `0` to `1`.",
|
|
1306
|
-
"values": []
|
|
1307
|
-
},
|
|
1308
|
-
{
|
|
1309
|
-
"name": "buffer",
|
|
1310
|
-
"description": "Controls the buffer progress while in a determinate state. Accepts values from `0` to `1`.",
|
|
1311
|
-
"values": []
|
|
1312
|
-
},
|
|
1313
|
-
{ "name": "theme", "description": "Sets the theme.", "values": [] }
|
|
1314
|
-
],
|
|
1315
|
-
"references": []
|
|
1316
|
-
},
|
|
1317
1317
|
{
|
|
1318
1318
|
"name": "forge-menu",
|
|
1319
1319
|
"description": "\n---\n\n\n### **Methods:**\n - **propagateKeyEvent(evt: _KeyboardEvent_): _void_** - Force propagates the key event from another element to this component.\n- **activateFirstOption(): _void_** - Activates the first option in the menu when open.",
|
|
@@ -112,11 +112,16 @@ export class OverlayAdapter extends BaseAdapter {
|
|
|
112
112
|
const viewportWidth = Math.max(document.documentElement.clientWidth, window.innerWidth);
|
|
113
113
|
const viewportHeight = Math.max(document.documentElement.clientHeight, window.innerHeight);
|
|
114
114
|
const overlayRect = this._rootElement.getBoundingClientRect();
|
|
115
|
-
const isClippedX = overlayRect.right > viewportWidth
|
|
116
|
-
const isClippedY = overlayRect.bottom > viewportHeight
|
|
115
|
+
const isClippedX = overlayRect.right > viewportWidth;
|
|
116
|
+
const isClippedY = overlayRect.bottom > viewportHeight;
|
|
117
117
|
// Update the clipped attributes to allow for state-based clipping adjustments by consumers
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
// We only set these attributes once to avoid it triggering an auto-reposition loop. The attributes will be removed when the dropdown is closed.
|
|
119
|
+
if (isClippedX) {
|
|
120
|
+
this._component.setAttribute(OVERLAY_CONSTANTS.attributes.CLIPPED_X, '');
|
|
121
|
+
}
|
|
122
|
+
if (isClippedY) {
|
|
123
|
+
this._component.setAttribute(OVERLAY_CONSTANTS.attributes.CLIPPED_Y, '');
|
|
124
|
+
}
|
|
120
125
|
});
|
|
121
126
|
}
|
|
122
127
|
tryCleanupAutoUpdate() {
|
|
@@ -13,7 +13,7 @@ import { SplitViewPanelCore } from './split-view-panel-core';
|
|
|
13
13
|
import { SplitViewPanelAdapter } from './split-view-panel-adapter';
|
|
14
14
|
import { IconComponent, IconRegistry } from '../../icon';
|
|
15
15
|
const template = '<template><div class=\"forge-split-view-panel\" id=\"root\" part=\"root\"><div class=\"forge-split-view-panel__handle\" id=\"handle\" part=\"handle\" role=\"separator\" aria-controls=\"content\" aria-grabbed=\"false\" tabindex=\"0\"><forge-icon class=\"forge-split-view-panel__icon\" id=\"icon\" part=\"icon\"></forge-icon><forge-state-layer target=\"handle\" id=\"state-layer\" exportparts=\"surface:state-layer\"></forge-state-layer><forge-focus-indicator inward target=\"handle\" part=\"focus-indicator\"></forge-focus-indicator></div><div class=\"forge-split-view-panel__content\" id=\"content\" part=\"content\" role=\"group\"><slot></slot></div></div></template>';
|
|
16
|
-
const styles = '.forge-split-view-panel{display:flex;width:100%;height:100%;overflow:hidden}.forge-split-view-panel__handle{color:var(--forge-theme-text-medium,rgba(0,0,0,.6));background-color:var(--forge-theme-outline,#e0e0e0);position:relative;display:flex;flex-shrink:0;justify-content:center;align-items:center;outline:0}.forge-split-view-panel__content{flex:1;overflow:hidden}.forge-split-view-panel--closed{display:none}.forge-split-view-panel--disabled #handle{pointer-events:none}.forge-split-view-panel--disabled .forge-split-view-panel__icon{display:none}.forge-split-view-panel[orientation=horizontal]{min-width:var(--forge-split-view-handle-width,8px);width:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:row}.forge-split-view-panel[orientation=horizontal] .forge-split-view-panel__handle{width:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:
|
|
16
|
+
const styles = '.forge-split-view-panel{display:flex;width:100%;height:100%;overflow:hidden}.forge-split-view-panel__handle{color:var(--forge-theme-text-medium,rgba(0,0,0,.6));background-color:var(--forge-theme-outline,#e0e0e0);position:relative;display:flex;flex-shrink:0;justify-content:center;align-items:center;outline:0}.forge-split-view-panel__content{flex:1;overflow:hidden}.forge-split-view-panel--closed{display:none}.forge-split-view-panel--disabled #handle{pointer-events:none}.forge-split-view-panel--disabled .forge-split-view-panel__icon{display:none}.forge-split-view-panel[orientation=horizontal]{min-width:var(--forge-split-view-handle-width,8px);width:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:row}.forge-split-view-panel[orientation=horizontal] .forge-split-view-panel__handle{width:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:ugo58a2;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes ugo58a2{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=start]{position:absolute;top:0;right:0;animation-name:ugo58am;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes ugo58am{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:ugo58b3;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes ugo58b3{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=start]{position:absolute;top:0;right:0;animation-name:ugo58b7;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes ugo58b7{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=vertical]{min-height:var(--forge-split-view-handle-width,8px);height:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:column}.forge-split-view-panel[orientation=vertical] .forge-split-view-panel__handle{height:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:ugo58c6;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes ugo58c6{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=start]{position:absolute;bottom:0;left:0;animation-name:ugo58cs;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes ugo58cs{from{transform:none}to{transform:translateY(100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:ugo58dg;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes ugo58dg{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=start]{position:absolute;bottom:0;left:0;animation-name:ugo58e9;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes ugo58e9{from{transform:none}to{transform:translateY(100%)}}:host{z-index:var(--forge-split-view-animating-layer)!important;display:block;position:relative;height:100%;width:100%;flex:0}:host([hidden]){display:none}:host(:not([resizable=start],[resizable=end])){flex:1}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel{width:100%;height:100%;min-width:0;min-height:0}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel__handle{display:none}forge-focus-indicator{--forge-focus-indicator-active-width:2px}';
|
|
17
17
|
import { StateLayerComponent } from '../../state-layer';
|
|
18
18
|
import { FocusIndicatorComponent } from '../../focus-indicator';
|
|
19
19
|
/**
|