@proximus/lavender-mega-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,465 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/MDDCloser.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "MDDCloser",
13
+ "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "innerHTML",
17
+ "default": "` <button aria-hidden=\"true\" style=\"width: 0; height: 0; padding: 0; border: 0; background-color: #00000000;\"></button> `"
18
+ }
19
+ ],
20
+ "events": [
21
+ {
22
+ "name": "close-panel",
23
+ "type": {
24
+ "text": "CustomEvent"
25
+ }
26
+ }
27
+ ],
28
+ "superclass": {
29
+ "name": "HTMLElement"
30
+ },
31
+ "tagName": "px-mdd-closer",
32
+ "customElement": true
33
+ }
34
+ ],
35
+ "exports": [
36
+ {
37
+ "kind": "js",
38
+ "name": "MDDCloser",
39
+ "declaration": {
40
+ "name": "MDDCloser",
41
+ "module": "src/MDDCloser.ts"
42
+ }
43
+ },
44
+ {
45
+ "kind": "custom-element-definition",
46
+ "name": "px-mdd-closer",
47
+ "declaration": {
48
+ "name": "MDDCloser",
49
+ "module": "src/MDDCloser.ts"
50
+ }
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ "kind": "javascript-module",
56
+ "path": "src/MddSection.ts",
57
+ "declarations": [
58
+ {
59
+ "kind": "class",
60
+ "description": "",
61
+ "name": "MddSection",
62
+ "members": [
63
+ {
64
+ "kind": "field",
65
+ "name": "template",
66
+ "default": "`<px-vstack gap=\"default\"> <px-p font-size=\"heading-l\" font-weight=\"title\"> <slot name=\"title\"></slot> </px-p> <nav id=\"section-wrapper\"> <px-vstack role=\"list\" gap=\"xs\" gap--mobile=\"none\"> <slot></slot> </px-vstack> </nav> <px-vstack gap=\"default\" gap--mobile=\"s\"> <slot name=\"footer\"></slot> </px-vstack> </px-vstack>`"
67
+ },
68
+ {
69
+ "kind": "method",
70
+ "name": "setupForId"
71
+ },
72
+ {
73
+ "kind": "field",
74
+ "name": "$slotTitle",
75
+ "readonly": true
76
+ },
77
+ {
78
+ "kind": "field",
79
+ "name": "$title",
80
+ "privacy": "private",
81
+ "readonly": true
82
+ },
83
+ {
84
+ "kind": "field",
85
+ "name": "$sectionWrapper",
86
+ "privacy": "private",
87
+ "readonly": true
88
+ },
89
+ {
90
+ "kind": "field",
91
+ "name": "$sectionItems",
92
+ "privacy": "private",
93
+ "readonly": true
94
+ },
95
+ {
96
+ "kind": "field",
97
+ "name": "hiddenTitle"
98
+ },
99
+ {
100
+ "kind": "field",
101
+ "name": "innerHTML"
102
+ },
103
+ {
104
+ "kind": "field",
105
+ "name": "adoptedStyleSheets",
106
+ "type": {
107
+ "text": "array"
108
+ },
109
+ "default": "[stylesheet]"
110
+ }
111
+ ],
112
+ "attributes": [
113
+ {
114
+ "name": "title-hidden"
115
+ }
116
+ ],
117
+ "superclass": {
118
+ "name": "HTMLElement"
119
+ },
120
+ "tagName": "px-mdd-section",
121
+ "customElement": true
122
+ }
123
+ ],
124
+ "exports": [
125
+ {
126
+ "kind": "js",
127
+ "name": "MddSection",
128
+ "declaration": {
129
+ "name": "MddSection",
130
+ "module": "src/MddSection.ts"
131
+ }
132
+ },
133
+ {
134
+ "kind": "custom-element-definition",
135
+ "name": "px-mdd-section",
136
+ "declaration": {
137
+ "name": "MddSection",
138
+ "module": "src/MddSection.ts"
139
+ }
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "kind": "javascript-module",
145
+ "path": "src/MddSectionItem.ts",
146
+ "declarations": [
147
+ {
148
+ "kind": "class",
149
+ "description": "",
150
+ "name": "MddSectionItem",
151
+ "members": [
152
+ {
153
+ "kind": "field",
154
+ "name": "internals",
155
+ "type": {
156
+ "text": "ElementInternals"
157
+ }
158
+ },
159
+ {
160
+ "kind": "field",
161
+ "name": "template",
162
+ "default": "` <px-hstack align-items=\"center\" gap=\"default\"> <span class=\"mdd-section-item-action-container\"> <slot></slot> <slot name=\"after\"></slot> </span> <px-spacer></px-spacer> <px-icon name=\"chevron_right\" from=\"lavender\" size=\"m\"></px-icon> </px-hstack>`"
163
+ },
164
+ {
165
+ "kind": "method",
166
+ "name": "updateView",
167
+ "privacy": "private",
168
+ "parameters": [
169
+ {
170
+ "name": "name",
171
+ "type": {
172
+ "text": "string"
173
+ }
174
+ },
175
+ {
176
+ "name": "newValue",
177
+ "type": {
178
+ "text": "string"
179
+ }
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "kind": "method",
185
+ "name": "handleClick",
186
+ "privacy": "private"
187
+ },
188
+ {
189
+ "kind": "method",
190
+ "name": "configureAfterIcon",
191
+ "parameters": [
192
+ {
193
+ "name": "icon",
194
+ "type": {
195
+ "text": "HTMLElement"
196
+ }
197
+ }
198
+ ]
199
+ },
200
+ {
201
+ "kind": "field",
202
+ "name": "href"
203
+ },
204
+ {
205
+ "kind": "field",
206
+ "name": "$link",
207
+ "readonly": true
208
+ },
209
+ {
210
+ "kind": "field",
211
+ "name": "$button",
212
+ "readonly": true
213
+ },
214
+ {
215
+ "kind": "field",
216
+ "name": "$after",
217
+ "readonly": true
218
+ },
219
+ {
220
+ "kind": "field",
221
+ "name": "$arrowIcon",
222
+ "readonly": true
223
+ },
224
+ {
225
+ "kind": "field",
226
+ "name": "adoptedStyleSheets",
227
+ "type": {
228
+ "text": "array"
229
+ },
230
+ "default": "[stylesheet]"
231
+ }
232
+ ],
233
+ "attributes": [
234
+ {
235
+ "name": "href"
236
+ },
237
+ {
238
+ "name": "for"
239
+ }
240
+ ],
241
+ "superclass": {
242
+ "name": "HTMLElement"
243
+ },
244
+ "tagName": "px-mdd-section-item",
245
+ "customElement": true
246
+ }
247
+ ],
248
+ "exports": [
249
+ {
250
+ "kind": "js",
251
+ "name": "MddSectionItem",
252
+ "declaration": {
253
+ "name": "MddSectionItem",
254
+ "module": "src/MddSectionItem.ts"
255
+ }
256
+ },
257
+ {
258
+ "kind": "custom-element-definition",
259
+ "name": "px-mdd-section-item",
260
+ "declaration": {
261
+ "name": "MddSectionItem",
262
+ "module": "src/MddSectionItem.ts"
263
+ }
264
+ }
265
+ ]
266
+ },
267
+ {
268
+ "kind": "javascript-module",
269
+ "path": "src/MegaDropDown.ts",
270
+ "declarations": [
271
+ {
272
+ "kind": "class",
273
+ "description": "",
274
+ "name": "MegaDropDown",
275
+ "members": [
276
+ {
277
+ "kind": "field",
278
+ "name": "template",
279
+ "default": "`<dialog> <px-section> <px-container padding-inline=\"none\" padding-block=\"l\" padding-block--mobile=\"m\" padding-block--tablet=\"m\" background-color=\"none\" > <px-vstack> <px-hstack id=\"mobile-header\" gap=\"default\" align-items=\"center\"> <!-- Back button is only visible if the name is __lavender_mobile_menu --> <px-button id=\"back-button\" variant=\"tertiary\"> <px-icon name=\"chevron_left\" from=\"lavender\"></px-icon> ${this.backToMenuLabel || 'Back to menu'} </px-button> <px-spacer></px-spacer> <px-button-icon size=\"small\" variant=\"secondary\" id=\"mobile-close-button\" > <px-icon name=\"cross\" from=\"lavender\" aria-label=\"${this.closeButtonAriaLabel || 'Close'}\" title=\"${this.closeButtonAriaLabel || 'Close'}\"></px-icon> </px-button-icon> </px-hstack> <px-p variant=\"title-2xl\" color=\"neutral\" > <slot name=\"title\"></slot> </px-p> <px-button-icon size=\"small\" variant=\"secondary\" > <px-icon name=\"cross\" from=\"lavender\" aria-label=\"${this.closeButtonAriaLabel || 'Close'}\" title=\"${this.closeButtonAriaLabel || 'Close'}\"></px-icon> </px-button-icon> <px-stack direction--mobile=\"column\" direction--tablet=\"column\" direction=\"row\" gap=\"default\" gap--mobile=\"page-layout-between-sections\" gap--tablet=\"page-layout-between-sections\" wrap=\"wrap\" wrap--mobile=\"nowrap\" wrap--tablet=\"nowrap\" grow=\"1\" id=\"sections-container\" > <slot></slot> </px-stack> <px-mdd-closer></px-mdd-closer> </px-vstack> </px-container> <px-hstack id=\"footer\" justify-content=\"space-between\" align-items=\"center\" gap=\"s\" > <slot name=\"mdd-footer\"></slot> </px-hstack> </px-section> </dialog>`"
280
+ },
281
+ {
282
+ "kind": "field",
283
+ "name": "internals",
284
+ "type": {
285
+ "text": "ElementInternals"
286
+ }
287
+ },
288
+ {
289
+ "kind": "field",
290
+ "name": "#mutationObserver",
291
+ "privacy": "private",
292
+ "default": "new MutationObserver(() => { if (this.$slotMddFooter) { this.#$footer.style.display = 'block'; } })"
293
+ },
294
+ {
295
+ "kind": "field",
296
+ "name": "$dialog",
297
+ "readonly": true
298
+ },
299
+ {
300
+ "kind": "field",
301
+ "name": "hidden"
302
+ },
303
+ {
304
+ "kind": "field",
305
+ "name": "name"
306
+ },
307
+ {
308
+ "kind": "field",
309
+ "name": "closeButtonAriaLabel"
310
+ },
311
+ {
312
+ "kind": "field",
313
+ "name": "backToMenuLabel"
314
+ },
315
+ {
316
+ "kind": "field",
317
+ "name": "$slotMddFooter",
318
+ "readonly": true
319
+ },
320
+ {
321
+ "kind": "field",
322
+ "name": "#$backButton",
323
+ "privacy": "private",
324
+ "readonly": true
325
+ },
326
+ {
327
+ "kind": "field",
328
+ "name": "#$title",
329
+ "privacy": "private",
330
+ "readonly": true
331
+ },
332
+ {
333
+ "kind": "field",
334
+ "name": "#$footer",
335
+ "privacy": "private",
336
+ "readonly": true
337
+ },
338
+ {
339
+ "kind": "field",
340
+ "name": "#$closeButtons",
341
+ "privacy": "private",
342
+ "readonly": true
343
+ },
344
+ {
345
+ "kind": "field",
346
+ "name": "dialogOffsetTop"
347
+ },
348
+ {
349
+ "kind": "field",
350
+ "name": "innerHTML"
351
+ },
352
+ {
353
+ "kind": "field",
354
+ "name": "adoptedStyleSheets",
355
+ "type": {
356
+ "text": "array"
357
+ },
358
+ "default": "[stylesheet]"
359
+ }
360
+ ],
361
+ "events": [
362
+ {
363
+ "name": "close-panel",
364
+ "type": {
365
+ "text": "CustomEvent"
366
+ }
367
+ },
368
+ {
369
+ "name": "close-panel-from-dialog",
370
+ "type": {
371
+ "text": "CustomEvent"
372
+ }
373
+ }
374
+ ],
375
+ "attributes": [
376
+ {
377
+ "name": "hidden"
378
+ },
379
+ {
380
+ "name": "name"
381
+ },
382
+ {
383
+ "name": "close-button-aria-label"
384
+ },
385
+ {
386
+ "name": "back-to-menu-label"
387
+ }
388
+ ],
389
+ "superclass": {
390
+ "name": "HTMLElement"
391
+ },
392
+ "tagName": "px-mdd",
393
+ "customElement": true
394
+ }
395
+ ],
396
+ "exports": [
397
+ {
398
+ "kind": "js",
399
+ "name": "MegaDropDown",
400
+ "declaration": {
401
+ "name": "MegaDropDown",
402
+ "module": "src/MegaDropDown.ts"
403
+ }
404
+ },
405
+ {
406
+ "kind": "custom-element-definition",
407
+ "name": "px-mdd",
408
+ "declaration": {
409
+ "name": "MegaDropDown",
410
+ "module": "src/MegaDropDown.ts"
411
+ }
412
+ }
413
+ ]
414
+ },
415
+ {
416
+ "kind": "javascript-module",
417
+ "path": "src/index.ts",
418
+ "declarations": [],
419
+ "exports": [
420
+ {
421
+ "kind": "js",
422
+ "name": "*",
423
+ "declaration": {
424
+ "name": "*",
425
+ "module": "src/MegaDropDown"
426
+ }
427
+ },
428
+ {
429
+ "kind": "js",
430
+ "name": "*",
431
+ "declaration": {
432
+ "name": "*",
433
+ "module": "src/MddSection"
434
+ }
435
+ },
436
+ {
437
+ "kind": "js",
438
+ "name": "*",
439
+ "declaration": {
440
+ "name": "*",
441
+ "module": "src/MddSectionItem"
442
+ }
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "kind": "javascript-module",
448
+ "path": "src/mdd-section-item.css",
449
+ "declarations": [],
450
+ "exports": []
451
+ },
452
+ {
453
+ "kind": "javascript-module",
454
+ "path": "src/mdd-section.css",
455
+ "declarations": [],
456
+ "exports": []
457
+ },
458
+ {
459
+ "kind": "javascript-module",
460
+ "path": "src/mega-drop-down.css",
461
+ "declarations": [],
462
+ "exports": []
463
+ }
464
+ ]
465
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "properties": [],
5
+ "pseudoElements": []
6
+ }
@@ -0,0 +1,38 @@
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-mdd-closer",
7
+ "description": "\n---\n\n\n### **Events:**\n - **close-panel**",
8
+ "attributes": [],
9
+ "references": []
10
+ },
11
+ {
12
+ "name": "px-mdd-section",
13
+ "description": "\n---\n",
14
+ "attributes": [{ "name": "title-hidden", "values": [] }],
15
+ "references": []
16
+ },
17
+ {
18
+ "name": "px-mdd-section-item",
19
+ "description": "\n---\n",
20
+ "attributes": [
21
+ { "name": "href", "values": [] },
22
+ { "name": "for", "values": [] }
23
+ ],
24
+ "references": []
25
+ },
26
+ {
27
+ "name": "px-mdd",
28
+ "description": "\n---\n\n\n### **Events:**\n - **close-panel**\n- **close-panel-from-dialog**",
29
+ "attributes": [
30
+ { "name": "hidden", "values": [] },
31
+ { "name": "name", "values": [] },
32
+ { "name": "close-button-aria-label", "values": [] },
33
+ { "name": "back-to-menu-label", "values": [] }
34
+ ],
35
+ "references": []
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
+ "name": "@proximus/lavender-mega-dropdown",
4
+ "version": "2.0.0-alpha.197",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "px-mdd-closer",
11
+ "description": "\n---\n\n\n### **Events:**\n - **close-panel**",
12
+ "doc-url": "",
13
+ "attributes": [],
14
+ "events": [{ "name": "close-panel", "type": "CustomEvent" }],
15
+ "js": {
16
+ "properties": [{ "name": "innerHTML" }],
17
+ "events": [{ "name": "close-panel", "type": "CustomEvent" }]
18
+ }
19
+ },
20
+ {
21
+ "name": "px-mdd-section",
22
+ "description": "\n---\n",
23
+ "doc-url": "",
24
+ "attributes": [
25
+ { "name": "title-hidden", "value": { "type": "string" } }
26
+ ],
27
+ "events": [],
28
+ "js": {
29
+ "properties": [
30
+ { "name": "template" },
31
+ { "name": "$slotTitle" },
32
+ { "name": "hiddenTitle" },
33
+ { "name": "innerHTML" },
34
+ { "name": "adoptedStyleSheets", "type": "array" }
35
+ ],
36
+ "events": []
37
+ }
38
+ },
39
+ {
40
+ "name": "px-mdd-section-item",
41
+ "description": "\n---\n",
42
+ "doc-url": "",
43
+ "attributes": [
44
+ { "name": "href", "value": { "type": "string" } },
45
+ { "name": "for", "value": { "type": "string" } }
46
+ ],
47
+ "events": [],
48
+ "js": {
49
+ "properties": [
50
+ { "name": "internals", "type": "ElementInternals" },
51
+ { "name": "template" },
52
+ { "name": "href" },
53
+ { "name": "$link" },
54
+ { "name": "$button" },
55
+ { "name": "$after" },
56
+ { "name": "$arrowIcon" },
57
+ { "name": "adoptedStyleSheets", "type": "array" }
58
+ ],
59
+ "events": []
60
+ }
61
+ },
62
+ {
63
+ "name": "px-mdd",
64
+ "description": "\n---\n\n\n### **Events:**\n - **close-panel**\n- **close-panel-from-dialog**",
65
+ "doc-url": "",
66
+ "attributes": [
67
+ { "name": "hidden", "value": { "type": "string" } },
68
+ { "name": "name", "value": { "type": "string" } },
69
+ {
70
+ "name": "close-button-aria-label",
71
+ "value": { "type": "string" }
72
+ },
73
+ { "name": "back-to-menu-label", "value": { "type": "string" } }
74
+ ],
75
+ "events": [
76
+ { "name": "close-panel", "type": "CustomEvent" },
77
+ { "name": "close-panel-from-dialog", "type": "CustomEvent" }
78
+ ],
79
+ "js": {
80
+ "properties": [
81
+ { "name": "template" },
82
+ { "name": "internals", "type": "ElementInternals" },
83
+ { "name": "$dialog" },
84
+ { "name": "hidden" },
85
+ { "name": "name" },
86
+ { "name": "closeButtonAriaLabel" },
87
+ { "name": "backToMenuLabel" },
88
+ { "name": "$slotMddFooter" },
89
+ { "name": "dialogOffsetTop" },
90
+ { "name": "innerHTML" },
91
+ { "name": "adoptedStyleSheets", "type": "array" }
92
+ ],
93
+ "events": [
94
+ { "name": "close-panel", "type": "CustomEvent" },
95
+ { "name": "close-panel-from-dialog", "type": "CustomEvent" }
96
+ ]
97
+ }
98
+ }
99
+ ]
100
+ },
101
+ "css": {
102
+ "properties": [],
103
+ "pseudo-elements": []
104
+ }
105
+ }
106
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-mega-dropdown",
3
- "version": "2.0.0-alpha.195",
3
+ "version": "2.0.0-alpha.197",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",