@proximus/lavender-dropdown 2.0.0-alpha.195 → 2.0.0-alpha.197
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.
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/Dropdown.ts",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "",
|
|
12
|
+
"name": "Dropdown",
|
|
13
|
+
"members": [
|
|
14
|
+
{
|
|
15
|
+
"kind": "field",
|
|
16
|
+
"name": "template",
|
|
17
|
+
"privacy": "private"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"kind": "field",
|
|
21
|
+
"name": "css",
|
|
22
|
+
"privacy": "private",
|
|
23
|
+
"description": "Instance level styling for the dropdown component.\nThis is used to set the anchor name and position of the popover.",
|
|
24
|
+
"readonly": true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"kind": "field",
|
|
28
|
+
"name": "isAboutToClose",
|
|
29
|
+
"type": {
|
|
30
|
+
"text": "boolean"
|
|
31
|
+
},
|
|
32
|
+
"privacy": "private",
|
|
33
|
+
"default": "false"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"kind": "method",
|
|
37
|
+
"name": "#resetManualPopoverDisplay",
|
|
38
|
+
"privacy": "private"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"kind": "field",
|
|
42
|
+
"name": "triggerPopoverDisplay"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"kind": "field",
|
|
46
|
+
"name": "showPopover"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"kind": "field",
|
|
50
|
+
"name": "hidePopover"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"kind": "field",
|
|
54
|
+
"name": "#beforeToggle",
|
|
55
|
+
"privacy": "private"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"kind": "field",
|
|
59
|
+
"name": "#onToggle",
|
|
60
|
+
"privacy": "private"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"kind": "method",
|
|
64
|
+
"name": "#handleManualPopoverDisplay",
|
|
65
|
+
"privacy": "private",
|
|
66
|
+
"description": "Handles the manual display of the popover when the trigger is clicked.\nThis is necessary for cases where the trigger is not a button or input element.\nThis method adds event listeners to the trigger element to toggle the popover.\nIt also manages the state of whether the popover is about to close or not to avoid\nrace conditions when the popover is toggled and the trigger click event is fired."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"kind": "method",
|
|
70
|
+
"name": "updatePopoverHeight",
|
|
71
|
+
"parameters": [
|
|
72
|
+
{
|
|
73
|
+
"name": "newValue",
|
|
74
|
+
"optional": true,
|
|
75
|
+
"type": {
|
|
76
|
+
"text": "string"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"kind": "method",
|
|
83
|
+
"name": "initPopover",
|
|
84
|
+
"privacy": "private"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"kind": "field",
|
|
88
|
+
"name": "popoverId",
|
|
89
|
+
"privacy": "private",
|
|
90
|
+
"readonly": true
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"kind": "field",
|
|
94
|
+
"name": "anchorName",
|
|
95
|
+
"privacy": "private",
|
|
96
|
+
"readonly": true
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"kind": "field",
|
|
100
|
+
"name": "$style",
|
|
101
|
+
"privacy": "private",
|
|
102
|
+
"readonly": true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"kind": "field",
|
|
106
|
+
"name": "$trigger",
|
|
107
|
+
"readonly": true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"kind": "field",
|
|
111
|
+
"name": "$popoverElement",
|
|
112
|
+
"readonly": true
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"kind": "field",
|
|
116
|
+
"name": "anchorAlignment",
|
|
117
|
+
"type": {
|
|
118
|
+
"text": "AnchorAlignment"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"kind": "field",
|
|
123
|
+
"name": "usePolyfill"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"kind": "field",
|
|
127
|
+
"name": "manualToggle"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"kind": "field",
|
|
131
|
+
"name": "popoverHeight"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"kind": "field",
|
|
135
|
+
"name": "innerHTML"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"attributes": [
|
|
139
|
+
{
|
|
140
|
+
"name": "id"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "anchoralignment"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "use-polyfill"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "manual-toggle"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "popover-height"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"superclass": {
|
|
156
|
+
"name": "WithExtraAttributes",
|
|
157
|
+
"package": "@proximus/lavender-common"
|
|
158
|
+
},
|
|
159
|
+
"tagName": "px-dropdown",
|
|
160
|
+
"customElement": true
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"exports": [
|
|
164
|
+
{
|
|
165
|
+
"kind": "js",
|
|
166
|
+
"name": "Dropdown",
|
|
167
|
+
"declaration": {
|
|
168
|
+
"name": "Dropdown",
|
|
169
|
+
"module": "src/Dropdown.ts"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"kind": "custom-element-definition",
|
|
174
|
+
"name": "px-dropdown",
|
|
175
|
+
"declaration": {
|
|
176
|
+
"name": "Dropdown",
|
|
177
|
+
"module": "src/Dropdown.ts"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"kind": "javascript-module",
|
|
184
|
+
"path": "src/anchorPolyfill.ts",
|
|
185
|
+
"declarations": [
|
|
186
|
+
{
|
|
187
|
+
"kind": "function",
|
|
188
|
+
"name": "anchorPolyfill",
|
|
189
|
+
"parameters": [
|
|
190
|
+
{
|
|
191
|
+
"name": "$trigger",
|
|
192
|
+
"type": {
|
|
193
|
+
"text": "HTMLElement"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "$popoverElement",
|
|
198
|
+
"type": {
|
|
199
|
+
"text": "HTMLElement"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "anchorAlignment",
|
|
204
|
+
"default": "'bottom-left'",
|
|
205
|
+
"type": {
|
|
206
|
+
"text": "AnchorAlignment"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "computedStyle",
|
|
211
|
+
"type": {
|
|
212
|
+
"text": "CSSStyleDeclaration"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "usePolyfill",
|
|
217
|
+
"default": "false"
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"exports": [
|
|
223
|
+
{
|
|
224
|
+
"kind": "js",
|
|
225
|
+
"name": "anchorPolyfill",
|
|
226
|
+
"declaration": {
|
|
227
|
+
"name": "anchorPolyfill",
|
|
228
|
+
"module": "src/anchorPolyfill.ts"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"kind": "javascript-module",
|
|
235
|
+
"path": "src/common.ts",
|
|
236
|
+
"declarations": [
|
|
237
|
+
{
|
|
238
|
+
"kind": "variable",
|
|
239
|
+
"name": "anchorAlignmentValues",
|
|
240
|
+
"type": {
|
|
241
|
+
"text": "[\n 'top-left',\n 'top-right',\n 'bottom-left',\n 'bottom-right',\n]"
|
|
242
|
+
},
|
|
243
|
+
"default": "[ 'top-left', 'top-right', 'bottom-left', 'bottom-right', ]"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"exports": [
|
|
247
|
+
{
|
|
248
|
+
"kind": "js",
|
|
249
|
+
"name": "anchorAlignmentValues",
|
|
250
|
+
"declaration": {
|
|
251
|
+
"name": "anchorAlignmentValues",
|
|
252
|
+
"module": "src/common.ts"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"kind": "javascript-module",
|
|
259
|
+
"path": "src/dropdown.css",
|
|
260
|
+
"declarations": [],
|
|
261
|
+
"exports": []
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"kind": "javascript-module",
|
|
265
|
+
"path": "src/index.ts",
|
|
266
|
+
"declarations": [],
|
|
267
|
+
"exports": [
|
|
268
|
+
{
|
|
269
|
+
"kind": "js",
|
|
270
|
+
"name": "*",
|
|
271
|
+
"declaration": {
|
|
272
|
+
"name": "*",
|
|
273
|
+
"module": "src/Dropdown.ts"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
|
|
3
|
+
"version": 1.1,
|
|
4
|
+
"tags": [
|
|
5
|
+
{
|
|
6
|
+
"name": "px-dropdown",
|
|
7
|
+
"description": "\n---\n",
|
|
8
|
+
"attributes": [
|
|
9
|
+
{ "name": "id", "values": [] },
|
|
10
|
+
{ "name": "anchoralignment", "values": [] },
|
|
11
|
+
{ "name": "use-polyfill", "values": [] },
|
|
12
|
+
{ "name": "manual-toggle", "values": [] },
|
|
13
|
+
{ "name": "popover-height", "values": [] }
|
|
14
|
+
],
|
|
15
|
+
"references": []
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
|
+
"name": "@proximus/lavender-dropdown",
|
|
4
|
+
"version": "2.0.0-alpha.197",
|
|
5
|
+
"description-markup": "markdown",
|
|
6
|
+
"contributions": {
|
|
7
|
+
"html": {
|
|
8
|
+
"elements": [
|
|
9
|
+
{
|
|
10
|
+
"name": "px-dropdown",
|
|
11
|
+
"description": "\n---\n",
|
|
12
|
+
"doc-url": "",
|
|
13
|
+
"attributes": [
|
|
14
|
+
{ "name": "id", "value": { "type": "string" } },
|
|
15
|
+
{ "name": "anchoralignment", "value": { "type": "string" } },
|
|
16
|
+
{ "name": "use-polyfill", "value": { "type": "string" } },
|
|
17
|
+
{ "name": "manual-toggle", "value": { "type": "string" } },
|
|
18
|
+
{ "name": "popover-height", "value": { "type": "string" } }
|
|
19
|
+
],
|
|
20
|
+
"events": [],
|
|
21
|
+
"js": {
|
|
22
|
+
"properties": [
|
|
23
|
+
{ "name": "triggerPopoverDisplay" },
|
|
24
|
+
{ "name": "showPopover" },
|
|
25
|
+
{ "name": "hidePopover" },
|
|
26
|
+
{ "name": "$trigger" },
|
|
27
|
+
{ "name": "$popoverElement" },
|
|
28
|
+
{ "name": "anchorAlignment", "type": "AnchorAlignment" },
|
|
29
|
+
{ "name": "usePolyfill" },
|
|
30
|
+
{ "name": "manualToggle" },
|
|
31
|
+
{ "name": "popoverHeight" },
|
|
32
|
+
{ "name": "innerHTML" }
|
|
33
|
+
],
|
|
34
|
+
"events": []
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"css": {
|
|
40
|
+
"properties": [],
|
|
41
|
+
"pseudo-elements": []
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|