@m3e/dialog 1.0.0-rc.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/LICENSE +22 -0
- package/README.md +143 -0
- package/cem.config.mjs +16 -0
- package/demo/index.html +60 -0
- package/dist/css-custom-data.json +97 -0
- package/dist/custom-elements.json +639 -0
- package/dist/html-custom-data.json +61 -0
- package/dist/index.js +619 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +212 -0
- package/dist/index.min.js.map +1 -0
- package/dist/src/DialogActionElement.d.ts +31 -0
- package/dist/src/DialogActionElement.d.ts.map +1 -0
- package/dist/src/DialogElement.d.ts +141 -0
- package/dist/src/DialogElement.d.ts.map +1 -0
- package/dist/src/DialogTriggerElement.d.ts +24 -0
- package/dist/src/DialogTriggerElement.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -0
- package/eslint.config.mjs +13 -0
- package/package.json +49 -0
- package/rollup.config.js +32 -0
- package/src/DialogActionElement.ts +56 -0
- package/src/DialogElement.ts +472 -0
- package/src/DialogTriggerElement.ts +50 -0
- package/src/index.ts +3 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,639 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/DialogActionElement.ts",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "An element, nested within a clickable element, used to close a parenting dialog.",
|
|
12
|
+
"name": "M3eDialogActionElement",
|
|
13
|
+
"members": [
|
|
14
|
+
{
|
|
15
|
+
"kind": "field",
|
|
16
|
+
"name": "returnValue",
|
|
17
|
+
"type": {
|
|
18
|
+
"text": "string"
|
|
19
|
+
},
|
|
20
|
+
"default": "\"\"",
|
|
21
|
+
"description": "The value to return from the dialog.",
|
|
22
|
+
"attribute": "return-value"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"kind": "field",
|
|
26
|
+
"name": "#clickHandler",
|
|
27
|
+
"privacy": "private",
|
|
28
|
+
"readonly": true
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"attributes": [
|
|
32
|
+
{
|
|
33
|
+
"description": "The value to return from the dialog.",
|
|
34
|
+
"name": "return-value",
|
|
35
|
+
"type": {
|
|
36
|
+
"text": "string"
|
|
37
|
+
},
|
|
38
|
+
"default": "\"\"",
|
|
39
|
+
"fieldName": "returnValue"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"mixins": [
|
|
43
|
+
{
|
|
44
|
+
"name": "AttachInternals",
|
|
45
|
+
"package": "@m3e/core"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "Role",
|
|
49
|
+
"package": "@m3e/core"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"superclass": {
|
|
53
|
+
"name": "LitElement",
|
|
54
|
+
"package": "lit"
|
|
55
|
+
},
|
|
56
|
+
"tagName": "m3e-dialog-action",
|
|
57
|
+
"customElement": true
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"exports": [
|
|
61
|
+
{
|
|
62
|
+
"kind": "js",
|
|
63
|
+
"name": "M3eDialogActionElement",
|
|
64
|
+
"declaration": {
|
|
65
|
+
"name": "M3eDialogActionElement",
|
|
66
|
+
"module": "src/DialogActionElement.ts"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"kind": "custom-element-definition",
|
|
71
|
+
"name": "m3e-dialog-action",
|
|
72
|
+
"declaration": {
|
|
73
|
+
"name": "M3eDialogActionElement",
|
|
74
|
+
"module": "src/DialogActionElement.ts"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"kind": "javascript-module",
|
|
81
|
+
"path": "src/DialogElement.ts",
|
|
82
|
+
"declarations": [
|
|
83
|
+
{
|
|
84
|
+
"kind": "class",
|
|
85
|
+
"description": "",
|
|
86
|
+
"name": "M3eDialogElement",
|
|
87
|
+
"cssProperties": [
|
|
88
|
+
{
|
|
89
|
+
"description": "Border radius of the dialog container.",
|
|
90
|
+
"name": "--m3e-dialog-shape"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"description": "Minimum width of the dialog.",
|
|
94
|
+
"name": "--m3e-dialog-min-width"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"description": "Maximum width of the dialog.",
|
|
98
|
+
"name": "--m3e-dialog-max-width"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"description": "Foreground color of the dialog.",
|
|
102
|
+
"name": "--m3e-dialog-color"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"description": "Background color of the dialog container.",
|
|
106
|
+
"name": "--m3e-dialog-container-color"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"description": "Color of the scrim (backdrop overlay).",
|
|
110
|
+
"name": "--m3e-dialog-scrim-color"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"description": "Opacity of the scrim when open.",
|
|
114
|
+
"name": "--m3e-dialog-scrim-opacity"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"description": "Background color of the dialog header.",
|
|
118
|
+
"name": "--m3e-dialog-header-container-color"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"description": "Foreground color of the dialog header.",
|
|
122
|
+
"name": "--m3e-dialog-header-color"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"description": "Font size for the dialog header.",
|
|
126
|
+
"name": "--m3e-dialog-header-font-size"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"description": "Font weight for the dialog header.",
|
|
130
|
+
"name": "--m3e-dialog-header-font-weight"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"description": "Line height for the dialog header.",
|
|
134
|
+
"name": "--m3e-dialog-header-line-height"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"description": "Letter spacing for the dialog header.",
|
|
138
|
+
"name": "--m3e-dialog-header-tracking"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"description": "Foreground color of the dialog content.",
|
|
142
|
+
"name": "--m3e-dialog-content-color"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"description": "Font size for the dialog content.",
|
|
146
|
+
"name": "--m3e-dialog-content-font-size"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"description": "Font weight for the dialog content.",
|
|
150
|
+
"name": "--m3e-dialog-content-font-weight"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"description": "Line height for the dialog content.",
|
|
154
|
+
"name": "--m3e-dialog-content-line-height"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"description": "Letter spacing for the dialog content.",
|
|
158
|
+
"name": "--m3e-dialog-content-tracking"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"slots": [
|
|
162
|
+
{
|
|
163
|
+
"description": "Renders the content of the dialog.",
|
|
164
|
+
"name": ""
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"description": "Renders the header of the dialog.",
|
|
168
|
+
"name": "header"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"description": "Renders the icon of the button used to close the dialog.",
|
|
172
|
+
"name": "close-icon"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"members": [
|
|
176
|
+
{
|
|
177
|
+
"kind": "field",
|
|
178
|
+
"name": "__nextId",
|
|
179
|
+
"type": {
|
|
180
|
+
"text": "number"
|
|
181
|
+
},
|
|
182
|
+
"privacy": "private",
|
|
183
|
+
"static": true,
|
|
184
|
+
"default": "0"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"kind": "field",
|
|
188
|
+
"name": "#id",
|
|
189
|
+
"privacy": "private",
|
|
190
|
+
"default": "M3eDialogElement.__nextId++"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"kind": "field",
|
|
194
|
+
"name": "#open",
|
|
195
|
+
"privacy": "private",
|
|
196
|
+
"type": {
|
|
197
|
+
"text": "boolean"
|
|
198
|
+
},
|
|
199
|
+
"default": "false"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"kind": "field",
|
|
203
|
+
"name": "#escapePressedWithoutCancel",
|
|
204
|
+
"privacy": "private",
|
|
205
|
+
"type": {
|
|
206
|
+
"text": "boolean"
|
|
207
|
+
},
|
|
208
|
+
"default": "false"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"kind": "field",
|
|
212
|
+
"name": "_hasActions",
|
|
213
|
+
"type": {
|
|
214
|
+
"text": "boolean"
|
|
215
|
+
},
|
|
216
|
+
"privacy": "private",
|
|
217
|
+
"default": "false"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"kind": "field",
|
|
221
|
+
"name": "_base",
|
|
222
|
+
"type": {
|
|
223
|
+
"text": "HTMLDialogElement"
|
|
224
|
+
},
|
|
225
|
+
"privacy": "private",
|
|
226
|
+
"readonly": true
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"kind": "field",
|
|
230
|
+
"name": "_content",
|
|
231
|
+
"type": {
|
|
232
|
+
"text": "HTMLDialogElement"
|
|
233
|
+
},
|
|
234
|
+
"privacy": "private",
|
|
235
|
+
"readonly": true
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"kind": "field",
|
|
239
|
+
"name": "alert",
|
|
240
|
+
"type": {
|
|
241
|
+
"text": "boolean"
|
|
242
|
+
},
|
|
243
|
+
"default": "false",
|
|
244
|
+
"description": "Whether the dialog is an alert.",
|
|
245
|
+
"attribute": "alert"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"kind": "field",
|
|
249
|
+
"name": "open",
|
|
250
|
+
"description": "Whether the dialog is open.",
|
|
251
|
+
"default": "false",
|
|
252
|
+
"attribute": "open",
|
|
253
|
+
"reflects": true
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"kind": "field",
|
|
257
|
+
"name": "dismissible",
|
|
258
|
+
"type": {
|
|
259
|
+
"text": "boolean"
|
|
260
|
+
},
|
|
261
|
+
"default": "false",
|
|
262
|
+
"description": "Whether a button is presented that can be used to close the dialog.",
|
|
263
|
+
"attribute": "dismissible"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"kind": "field",
|
|
267
|
+
"name": "disableClose",
|
|
268
|
+
"type": {
|
|
269
|
+
"text": "boolean"
|
|
270
|
+
},
|
|
271
|
+
"default": "false",
|
|
272
|
+
"description": "Whether users cannot click the backdrop or press ESC to dismiss the dialog.",
|
|
273
|
+
"attribute": "disable-close"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"kind": "field",
|
|
277
|
+
"name": "noFocusTrap",
|
|
278
|
+
"type": {
|
|
279
|
+
"text": "boolean"
|
|
280
|
+
},
|
|
281
|
+
"default": "false",
|
|
282
|
+
"description": "Whether to disable focus trapping, which keeps keyboard `Tab` navigation within the dialog.",
|
|
283
|
+
"attribute": "no-focus-trap"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"kind": "field",
|
|
287
|
+
"name": "closeLabel",
|
|
288
|
+
"type": {
|
|
289
|
+
"text": "string"
|
|
290
|
+
},
|
|
291
|
+
"default": "\"Close\"",
|
|
292
|
+
"description": "The accessible label given to the button used to dismiss the dialog.",
|
|
293
|
+
"attribute": "close-label"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"kind": "field",
|
|
297
|
+
"name": "returnValue",
|
|
298
|
+
"type": {
|
|
299
|
+
"text": "string"
|
|
300
|
+
},
|
|
301
|
+
"default": "\"\"",
|
|
302
|
+
"description": "The return value of the dialog."
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"kind": "method",
|
|
306
|
+
"name": "show",
|
|
307
|
+
"return": {
|
|
308
|
+
"type": {
|
|
309
|
+
"text": "Promise<void>"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"description": "Asynchronously opens the dialog."
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"kind": "method",
|
|
316
|
+
"name": "hide",
|
|
317
|
+
"return": {
|
|
318
|
+
"type": {
|
|
319
|
+
"text": "Promise<void>"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"parameters": [
|
|
323
|
+
{
|
|
324
|
+
"name": "returnValue",
|
|
325
|
+
"default": "this.returnValue",
|
|
326
|
+
"type": {
|
|
327
|
+
"text": "string"
|
|
328
|
+
},
|
|
329
|
+
"description": "The value to return."
|
|
330
|
+
}
|
|
331
|
+
],
|
|
332
|
+
"description": "Asynchronously closes the dialog."
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"kind": "method",
|
|
336
|
+
"name": "#renderCloseButton",
|
|
337
|
+
"privacy": "private",
|
|
338
|
+
"return": {
|
|
339
|
+
"type": {
|
|
340
|
+
"text": "unknown"
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"kind": "method",
|
|
346
|
+
"name": "#handleClose",
|
|
347
|
+
"privacy": "private",
|
|
348
|
+
"return": {
|
|
349
|
+
"type": {
|
|
350
|
+
"text": "void"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"kind": "method",
|
|
356
|
+
"name": "#handleCancel",
|
|
357
|
+
"privacy": "private",
|
|
358
|
+
"return": {
|
|
359
|
+
"type": {
|
|
360
|
+
"text": "void"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"parameters": [
|
|
364
|
+
{
|
|
365
|
+
"name": "e",
|
|
366
|
+
"type": {
|
|
367
|
+
"text": "Event"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"kind": "method",
|
|
374
|
+
"name": "#handleClick",
|
|
375
|
+
"privacy": "private",
|
|
376
|
+
"return": {
|
|
377
|
+
"type": {
|
|
378
|
+
"text": "void"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"parameters": [
|
|
382
|
+
{
|
|
383
|
+
"name": "e",
|
|
384
|
+
"type": {
|
|
385
|
+
"text": "Event"
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"kind": "method",
|
|
392
|
+
"name": "#handleKeyDown",
|
|
393
|
+
"privacy": "private",
|
|
394
|
+
"return": {
|
|
395
|
+
"type": {
|
|
396
|
+
"text": "void"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"parameters": [
|
|
400
|
+
{
|
|
401
|
+
"name": "e",
|
|
402
|
+
"type": {
|
|
403
|
+
"text": "KeyboardEvent"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"kind": "method",
|
|
410
|
+
"name": "#handleActionsSlotChange",
|
|
411
|
+
"privacy": "private",
|
|
412
|
+
"return": {
|
|
413
|
+
"type": {
|
|
414
|
+
"text": "void"
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"parameters": [
|
|
418
|
+
{
|
|
419
|
+
"name": "e",
|
|
420
|
+
"type": {
|
|
421
|
+
"text": "Event"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
]
|
|
425
|
+
}
|
|
426
|
+
],
|
|
427
|
+
"events": [
|
|
428
|
+
{
|
|
429
|
+
"name": "opening",
|
|
430
|
+
"type": {
|
|
431
|
+
"text": "Event"
|
|
432
|
+
},
|
|
433
|
+
"description": "Emitted when the dialog begins to open."
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "opened",
|
|
437
|
+
"type": {
|
|
438
|
+
"text": "Event"
|
|
439
|
+
},
|
|
440
|
+
"description": "Emitted when the dialog has opened."
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "closing",
|
|
444
|
+
"type": {
|
|
445
|
+
"text": "Event"
|
|
446
|
+
},
|
|
447
|
+
"description": "Emitted when the dialog begins to close."
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "closed",
|
|
451
|
+
"type": {
|
|
452
|
+
"text": "Event"
|
|
453
|
+
},
|
|
454
|
+
"description": "Emitted when the dialog has closed."
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "cancel",
|
|
458
|
+
"type": {
|
|
459
|
+
"text": "Event"
|
|
460
|
+
},
|
|
461
|
+
"description": "Emitted when the dialog is cancelled."
|
|
462
|
+
}
|
|
463
|
+
],
|
|
464
|
+
"attributes": [
|
|
465
|
+
{
|
|
466
|
+
"description": "Whether the dialog is an alert.",
|
|
467
|
+
"name": "alert",
|
|
468
|
+
"type": {
|
|
469
|
+
"text": "boolean"
|
|
470
|
+
},
|
|
471
|
+
"default": "false",
|
|
472
|
+
"fieldName": "alert"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"description": "The accessible label given to the button used to dismiss the dialog.",
|
|
476
|
+
"name": "close-label",
|
|
477
|
+
"type": {
|
|
478
|
+
"text": "string"
|
|
479
|
+
},
|
|
480
|
+
"default": "\"Close\"",
|
|
481
|
+
"fieldName": "closeLabel"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"description": "Whether users cannot click the backdrop or press ESC to dismiss the dialog.",
|
|
485
|
+
"name": "disable-close",
|
|
486
|
+
"type": {
|
|
487
|
+
"text": "boolean"
|
|
488
|
+
},
|
|
489
|
+
"default": "false",
|
|
490
|
+
"fieldName": "disableClose"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"description": "Whether a button is presented that can be used to close the dialog.",
|
|
494
|
+
"name": "dismissible",
|
|
495
|
+
"type": {
|
|
496
|
+
"text": "boolean"
|
|
497
|
+
},
|
|
498
|
+
"default": "false",
|
|
499
|
+
"fieldName": "dismissible"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"description": "Whether to disable focus trapping, which keeps keyboard `Tab` navigation within the dialog.",
|
|
503
|
+
"name": "no-focus-trap",
|
|
504
|
+
"type": {
|
|
505
|
+
"text": "boolean"
|
|
506
|
+
},
|
|
507
|
+
"default": "false",
|
|
508
|
+
"fieldName": "noFocusTrap"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"description": "Whether the dialog is open.",
|
|
512
|
+
"name": "open",
|
|
513
|
+
"default": "false",
|
|
514
|
+
"fieldName": "open"
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"mixins": [
|
|
518
|
+
{
|
|
519
|
+
"name": "EventAttribute",
|
|
520
|
+
"package": "@m3e/core"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "Role",
|
|
524
|
+
"package": "@m3e/core"
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
"superclass": {
|
|
528
|
+
"name": "LitElement",
|
|
529
|
+
"package": "lit"
|
|
530
|
+
},
|
|
531
|
+
"tagName": "m3e-dialog",
|
|
532
|
+
"customElement": true,
|
|
533
|
+
"summary": "A dialog that provides important prompts in a user flow."
|
|
534
|
+
}
|
|
535
|
+
],
|
|
536
|
+
"exports": [
|
|
537
|
+
{
|
|
538
|
+
"kind": "js",
|
|
539
|
+
"name": "M3eDialogElement",
|
|
540
|
+
"declaration": {
|
|
541
|
+
"name": "M3eDialogElement",
|
|
542
|
+
"module": "src/DialogElement.ts"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"kind": "custom-element-definition",
|
|
547
|
+
"name": "m3e-dialog",
|
|
548
|
+
"declaration": {
|
|
549
|
+
"name": "M3eDialogElement",
|
|
550
|
+
"module": "src/DialogElement.ts"
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
]
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"kind": "javascript-module",
|
|
557
|
+
"path": "src/DialogTriggerElement.ts",
|
|
558
|
+
"declarations": [
|
|
559
|
+
{
|
|
560
|
+
"kind": "class",
|
|
561
|
+
"description": "An element, nested within a clickable element, used to open a dialog.",
|
|
562
|
+
"name": "M3eDialogTriggerElement",
|
|
563
|
+
"members": [
|
|
564
|
+
{
|
|
565
|
+
"kind": "field",
|
|
566
|
+
"name": "#clickHandler",
|
|
567
|
+
"privacy": "private"
|
|
568
|
+
}
|
|
569
|
+
],
|
|
570
|
+
"mixins": [
|
|
571
|
+
{
|
|
572
|
+
"name": "HtmlFor",
|
|
573
|
+
"package": "@m3e/core"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "AttachInternals",
|
|
577
|
+
"package": "@m3e/core"
|
|
578
|
+
}
|
|
579
|
+
],
|
|
580
|
+
"superclass": {
|
|
581
|
+
"name": "LitElement",
|
|
582
|
+
"package": "lit"
|
|
583
|
+
},
|
|
584
|
+
"tagName": "m3e-dialog-trigger",
|
|
585
|
+
"customElement": true
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"exports": [
|
|
589
|
+
{
|
|
590
|
+
"kind": "js",
|
|
591
|
+
"name": "M3eDialogTriggerElement",
|
|
592
|
+
"declaration": {
|
|
593
|
+
"name": "M3eDialogTriggerElement",
|
|
594
|
+
"module": "src/DialogTriggerElement.ts"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"kind": "custom-element-definition",
|
|
599
|
+
"name": "m3e-dialog-trigger",
|
|
600
|
+
"declaration": {
|
|
601
|
+
"name": "M3eDialogTriggerElement",
|
|
602
|
+
"module": "src/DialogTriggerElement.ts"
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
]
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"kind": "javascript-module",
|
|
609
|
+
"path": "src/index.ts",
|
|
610
|
+
"declarations": [],
|
|
611
|
+
"exports": [
|
|
612
|
+
{
|
|
613
|
+
"kind": "js",
|
|
614
|
+
"name": "*",
|
|
615
|
+
"declaration": {
|
|
616
|
+
"name": "*",
|
|
617
|
+
"package": "\"./DialogActionElement\""
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"kind": "js",
|
|
622
|
+
"name": "*",
|
|
623
|
+
"declaration": {
|
|
624
|
+
"name": "*",
|
|
625
|
+
"package": "\"./DialogElement\""
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"kind": "js",
|
|
630
|
+
"name": "*",
|
|
631
|
+
"declaration": {
|
|
632
|
+
"name": "*",
|
|
633
|
+
"package": "\"./DialogTriggerElement\""
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
}
|
|
638
|
+
]
|
|
639
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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": "m3e-dialog-action",
|
|
7
|
+
"description": "An element, nested within a clickable element, used to close a parenting dialog.\n---\n",
|
|
8
|
+
"attributes": [
|
|
9
|
+
{
|
|
10
|
+
"name": "return-value",
|
|
11
|
+
"description": "The value to return from the dialog.",
|
|
12
|
+
"values": []
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"references": []
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "m3e-dialog",
|
|
19
|
+
"description": "A dialog that provides important prompts in a user flow.\n---\n\n\n### **Events:**\n - **opening** - Emitted when the dialog begins to open.\n- **opened** - Emitted when the dialog has opened.\n- **closing** - Emitted when the dialog begins to close.\n- **closed** - Emitted when the dialog has closed.\n- **cancel** - Emitted when the dialog is cancelled.\n\n### **Methods:**\n - **show(): _Promise<void>_** - Asynchronously opens the dialog.\n- **hide(returnValue: _string_): _Promise<void>_** - Asynchronously closes the dialog.\n\n### **Slots:**\n - _default_ - Renders the content of the dialog.\n- **header** - Renders the header of the dialog.\n- **close-icon** - Renders the icon of the button used to close the dialog.\n\n### **CSS Properties:**\n - **--m3e-dialog-shape** - Border radius of the dialog container. _(default: undefined)_\n- **--m3e-dialog-min-width** - Minimum width of the dialog. _(default: undefined)_\n- **--m3e-dialog-max-width** - Maximum width of the dialog. _(default: undefined)_\n- **--m3e-dialog-color** - Foreground color of the dialog. _(default: undefined)_\n- **--m3e-dialog-container-color** - Background color of the dialog container. _(default: undefined)_\n- **--m3e-dialog-scrim-color** - Color of the scrim (backdrop overlay). _(default: undefined)_\n- **--m3e-dialog-scrim-opacity** - Opacity of the scrim when open. _(default: undefined)_\n- **--m3e-dialog-header-container-color** - Background color of the dialog header. _(default: undefined)_\n- **--m3e-dialog-header-color** - Foreground color of the dialog header. _(default: undefined)_\n- **--m3e-dialog-header-font-size** - Font size for the dialog header. _(default: undefined)_\n- **--m3e-dialog-header-font-weight** - Font weight for the dialog header. _(default: undefined)_\n- **--m3e-dialog-header-line-height** - Line height for the dialog header. _(default: undefined)_\n- **--m3e-dialog-header-tracking** - Letter spacing for the dialog header. _(default: undefined)_\n- **--m3e-dialog-content-color** - Foreground color of the dialog content. _(default: undefined)_\n- **--m3e-dialog-content-font-size** - Font size for the dialog content. _(default: undefined)_\n- **--m3e-dialog-content-font-weight** - Font weight for the dialog content. _(default: undefined)_\n- **--m3e-dialog-content-line-height** - Line height for the dialog content. _(default: undefined)_\n- **--m3e-dialog-content-tracking** - Letter spacing for the dialog content. _(default: undefined)_",
|
|
20
|
+
"attributes": [
|
|
21
|
+
{
|
|
22
|
+
"name": "alert",
|
|
23
|
+
"description": "Whether the dialog is an alert.",
|
|
24
|
+
"values": []
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "close-label",
|
|
28
|
+
"description": "The accessible label given to the button used to dismiss the dialog.",
|
|
29
|
+
"values": []
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "disable-close",
|
|
33
|
+
"description": "Whether users cannot click the backdrop or press ESC to dismiss the dialog.",
|
|
34
|
+
"values": []
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "dismissible",
|
|
38
|
+
"description": "Whether a button is presented that can be used to close the dialog.",
|
|
39
|
+
"values": []
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "no-focus-trap",
|
|
43
|
+
"description": "Whether to disable focus trapping, which keeps keyboard `Tab` navigation within the dialog.",
|
|
44
|
+
"values": []
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "open",
|
|
48
|
+
"description": "Whether the dialog is open.",
|
|
49
|
+
"values": []
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"references": []
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "m3e-dialog-trigger",
|
|
56
|
+
"description": "An element, nested within a clickable element, used to open a dialog.\n---\n",
|
|
57
|
+
"attributes": [],
|
|
58
|
+
"references": []
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|