@m3e/nav-bar 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.
@@ -0,0 +1,532 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/index.ts",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "*",
13
+ "declaration": {
14
+ "name": "*",
15
+ "package": "\"./NavBarElement\""
16
+ }
17
+ },
18
+ {
19
+ "kind": "js",
20
+ "name": "*",
21
+ "declaration": {
22
+ "name": "*",
23
+ "package": "\"./NavBarMode\""
24
+ }
25
+ },
26
+ {
27
+ "kind": "js",
28
+ "name": "*",
29
+ "declaration": {
30
+ "name": "*",
31
+ "package": "\"./NavItemElement\""
32
+ }
33
+ },
34
+ {
35
+ "kind": "js",
36
+ "name": "*",
37
+ "declaration": {
38
+ "name": "*",
39
+ "package": "\"./NavItemOrientation\""
40
+ }
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "kind": "javascript-module",
46
+ "path": "src/NavBarElement.ts",
47
+ "declarations": [
48
+ {
49
+ "kind": "class",
50
+ "description": "",
51
+ "name": "M3eNavBarElement",
52
+ "cssProperties": [
53
+ {
54
+ "description": "Height of the navigation bar.",
55
+ "name": "--m3e-nav-bar-height"
56
+ },
57
+ {
58
+ "description": "Background color of the navigation bar container.",
59
+ "name": "--m3e-nav-bar-container-color"
60
+ },
61
+ {
62
+ "description": "Minimum width of vertical nav items.",
63
+ "name": "--m3e-nav-bar-vertical-item-width"
64
+ }
65
+ ],
66
+ "slots": [
67
+ {
68
+ "description": "Renders the items of the bar.",
69
+ "name": ""
70
+ }
71
+ ],
72
+ "members": [
73
+ {
74
+ "kind": "field",
75
+ "name": "mode",
76
+ "type": {
77
+ "text": "NavBarMode"
78
+ },
79
+ "default": "\"compact\"",
80
+ "description": "The mode in which items in the bar are presented.",
81
+ "attribute": "mode",
82
+ "reflects": true
83
+ },
84
+ {
85
+ "kind": "field",
86
+ "name": "items",
87
+ "type": {
88
+ "text": "readonly M3eNavItemElement[]"
89
+ },
90
+ "description": "The items of the bar.",
91
+ "readonly": true
92
+ },
93
+ {
94
+ "kind": "field",
95
+ "name": "selected",
96
+ "type": {
97
+ "text": "M3eNavItemElement | null"
98
+ },
99
+ "description": "The selected item.",
100
+ "readonly": true
101
+ },
102
+ {
103
+ "kind": "field",
104
+ "name": "currentMode",
105
+ "type": {
106
+ "text": "Exclude<NavBarMode, \"auto\">"
107
+ },
108
+ "description": "The current mode applied to the bar."
109
+ },
110
+ {
111
+ "kind": "method",
112
+ "name": "#handleSlotChange",
113
+ "privacy": "private",
114
+ "return": {
115
+ "type": {
116
+ "text": "void"
117
+ }
118
+ }
119
+ },
120
+ {
121
+ "kind": "method",
122
+ "name": "#handleChange",
123
+ "privacy": "private",
124
+ "return": {
125
+ "type": {
126
+ "text": "void"
127
+ }
128
+ },
129
+ "parameters": [
130
+ {
131
+ "name": "e",
132
+ "type": {
133
+ "text": "Event"
134
+ }
135
+ }
136
+ ]
137
+ }
138
+ ],
139
+ "events": [
140
+ {
141
+ "name": "change",
142
+ "type": {
143
+ "text": "Event"
144
+ },
145
+ "description": "Emitted when the selected state of an item changes."
146
+ }
147
+ ],
148
+ "attributes": [
149
+ {
150
+ "description": "The mode in which items in the bar are presented.",
151
+ "name": "mode",
152
+ "type": {
153
+ "text": "NavBarMode"
154
+ },
155
+ "default": "\"compact\"",
156
+ "fieldName": "mode"
157
+ }
158
+ ],
159
+ "mixins": [
160
+ {
161
+ "name": "Role",
162
+ "package": "@m3e/core"
163
+ }
164
+ ],
165
+ "superclass": {
166
+ "name": "LitElement",
167
+ "package": "lit"
168
+ },
169
+ "tagName": "m3e-nav-bar",
170
+ "customElement": true,
171
+ "summary": "A horizontal bar, typically used on smaller devices, that allows a user to switch between 3-5 views."
172
+ }
173
+ ],
174
+ "exports": [
175
+ {
176
+ "kind": "js",
177
+ "name": "M3eNavBarElement",
178
+ "declaration": {
179
+ "name": "M3eNavBarElement",
180
+ "module": "src/NavBarElement.ts"
181
+ }
182
+ },
183
+ {
184
+ "kind": "custom-element-definition",
185
+ "name": "m3e-nav-bar",
186
+ "declaration": {
187
+ "name": "M3eNavBarElement",
188
+ "module": "src/NavBarElement.ts"
189
+ }
190
+ }
191
+ ]
192
+ },
193
+ {
194
+ "kind": "javascript-module",
195
+ "path": "src/NavBarMode.ts",
196
+ "declarations": [],
197
+ "exports": []
198
+ },
199
+ {
200
+ "kind": "javascript-module",
201
+ "path": "src/NavItemElement.ts",
202
+ "declarations": [
203
+ {
204
+ "kind": "class",
205
+ "description": "",
206
+ "name": "M3eNavItemElement",
207
+ "cssProperties": [
208
+ {
209
+ "description": "Font size for the label text.",
210
+ "name": "--m3e-nav-item-label-text-font-size"
211
+ },
212
+ {
213
+ "description": "Font weight for the label text.",
214
+ "name": "--m3e-nav-item-label-text-font-weight"
215
+ },
216
+ {
217
+ "description": "Line height for the label text.",
218
+ "name": "--m3e-nav-item-label-text-line-height"
219
+ },
220
+ {
221
+ "description": "Letter spacing for the label text.",
222
+ "name": "--m3e-nav-item-label-text-tracking"
223
+ },
224
+ {
225
+ "description": "Border radius of the nav item.",
226
+ "name": "--m3e-nav-item-shape"
227
+ },
228
+ {
229
+ "description": "Size of the icon.",
230
+ "name": "--m3e-nav-item-icon-size"
231
+ },
232
+ {
233
+ "description": "Spacing between icon and label.",
234
+ "name": "--m3e-nav-item-spacing"
235
+ },
236
+ {
237
+ "description": "Color of the label text when inactive.",
238
+ "name": "--m3e-nav-item-inactive-label-text-color"
239
+ },
240
+ {
241
+ "description": "Color of the icon when inactive.",
242
+ "name": "--m3e-nav-item-inactive-icon-color"
243
+ },
244
+ {
245
+ "description": "State layer color on hover when inactive.",
246
+ "name": "--m3e-nav-item-inactive-hover-state-layer-color"
247
+ },
248
+ {
249
+ "description": "State layer color on focus when inactive.",
250
+ "name": "--m3e-nav-item-inactive-focus-state-layer-color"
251
+ },
252
+ {
253
+ "description": "State layer color on press when inactive.",
254
+ "name": "--m3e-nav-item-inactive-pressed-state-layer-color"
255
+ },
256
+ {
257
+ "description": "Color of the label text when active/selected.",
258
+ "name": "--m3e-nav-item-active-label-text-color"
259
+ },
260
+ {
261
+ "description": "Color of the icon when active/selected.",
262
+ "name": "--m3e-nav-item-active-icon-color"
263
+ },
264
+ {
265
+ "description": "Container color when active/selected.",
266
+ "name": "--m3e-nav-item-active-container-color"
267
+ },
268
+ {
269
+ "description": "State layer color on hover when active.",
270
+ "name": "--m3e-nav-item-active-hover-state-layer-color"
271
+ },
272
+ {
273
+ "description": "State layer color on focus when active.",
274
+ "name": "--m3e-nav-item-active-focus-state-layer-color"
275
+ },
276
+ {
277
+ "description": "State layer color on press when active.",
278
+ "name": "--m3e-nav-item-active-pressed-state-layer-color"
279
+ },
280
+ {
281
+ "description": "Border radius for the focus ring.",
282
+ "name": "--m3e-nav-item-focus-ring-shape"
283
+ },
284
+ {
285
+ "description": "Color of the label text when disabled.",
286
+ "name": "--m3e-nav-item-disabled-label-text-color"
287
+ },
288
+ {
289
+ "description": "Opacity of the label text when disabled.",
290
+ "name": "--m3e-nav-item-disabled-label-text-opacity"
291
+ },
292
+ {
293
+ "description": "Color of the icon when disabled.",
294
+ "name": "--m3e-nav-item-disabled-icon-color"
295
+ },
296
+ {
297
+ "description": "Opacity of the icon when disabled.",
298
+ "name": "--m3e-nav-item-disabled-icon-opacity"
299
+ },
300
+ {
301
+ "description": "Padding for horizontal orientation.",
302
+ "name": "--m3e-horizontal-nav-item-padding"
303
+ },
304
+ {
305
+ "description": "Height of the active indicator in horizontal orientation.",
306
+ "name": "--m3e-horizontal-nav-item-active-indicator-height"
307
+ },
308
+ {
309
+ "description": "Width of the active indicator in vertical orientation.",
310
+ "name": "--m3e-vertical-nav-item-active-indicator-width"
311
+ },
312
+ {
313
+ "description": "Height of the active indicator in vertical orientation.",
314
+ "name": "--m3e-vertical-nav-item-active-indicator-height"
315
+ },
316
+ {
317
+ "description": "Margin for the active indicator in vertical orientation.",
318
+ "name": "--m3e-vertical-nav-item-active-indicator-margin"
319
+ }
320
+ ],
321
+ "slots": [
322
+ {
323
+ "description": "Renders the label of the item.",
324
+ "name": ""
325
+ },
326
+ {
327
+ "description": "Renders the icon of the item.",
328
+ "name": "icon"
329
+ },
330
+ {
331
+ "description": "Renders the icon of the item when selected.",
332
+ "name": "selected-icon"
333
+ }
334
+ ],
335
+ "members": [
336
+ {
337
+ "kind": "field",
338
+ "name": "#clickHandler",
339
+ "privacy": "private",
340
+ "readonly": true
341
+ },
342
+ {
343
+ "kind": "field",
344
+ "name": "_focusRing",
345
+ "type": {
346
+ "text": "M3eFocusRingElement | undefined"
347
+ },
348
+ "privacy": "private",
349
+ "readonly": true
350
+ },
351
+ {
352
+ "kind": "field",
353
+ "name": "_stateLayer",
354
+ "type": {
355
+ "text": "M3eStateLayerElement | undefined"
356
+ },
357
+ "privacy": "private",
358
+ "readonly": true
359
+ },
360
+ {
361
+ "kind": "field",
362
+ "name": "_ripple",
363
+ "type": {
364
+ "text": "M3eRippleElement | undefined"
365
+ },
366
+ "privacy": "private",
367
+ "readonly": true
368
+ },
369
+ {
370
+ "kind": "field",
371
+ "name": "orientation",
372
+ "type": {
373
+ "text": "NavItemOrientation"
374
+ },
375
+ "default": "\"vertical\"",
376
+ "description": "The layout orientation of the item.",
377
+ "attribute": "orientation",
378
+ "reflects": true
379
+ },
380
+ {
381
+ "kind": "field",
382
+ "name": "navBar",
383
+ "type": {
384
+ "text": "M3eNavBarElement | null"
385
+ },
386
+ "description": "The navigation bar to which this item belongs.",
387
+ "readonly": true
388
+ },
389
+ {
390
+ "kind": "method",
391
+ "name": "#handleClick",
392
+ "privacy": "private",
393
+ "return": {
394
+ "type": {
395
+ "text": "void"
396
+ }
397
+ },
398
+ "parameters": [
399
+ {
400
+ "name": "e",
401
+ "type": {
402
+ "text": "Event"
403
+ }
404
+ }
405
+ ]
406
+ }
407
+ ],
408
+ "events": [
409
+ {
410
+ "name": "input",
411
+ "type": {
412
+ "text": "Event"
413
+ },
414
+ "description": "Emitted when the selected state changes."
415
+ },
416
+ {
417
+ "name": "change",
418
+ "type": {
419
+ "text": "Event"
420
+ },
421
+ "description": "Emitted when the selected state changes."
422
+ }
423
+ ],
424
+ "attributes": [
425
+ {
426
+ "description": "A value indicating whether the element is disabled.",
427
+ "name": "disabled"
428
+ },
429
+ {
430
+ "description": "A value indicating whether the element is disabled and interactive.",
431
+ "name": "disabled-interactive"
432
+ },
433
+ {
434
+ "description": "A value indicating whether the `target` of the link button will be downloaded, optionally specifying the new name of the file.",
435
+ "name": "download"
436
+ },
437
+ {
438
+ "description": "The URL to which the link button points.",
439
+ "name": "href"
440
+ },
441
+ {
442
+ "description": "The layout orientation of the item.",
443
+ "name": "orientation",
444
+ "type": {
445
+ "text": "NavItemOrientation"
446
+ },
447
+ "default": "\"vertical\"",
448
+ "fieldName": "orientation"
449
+ },
450
+ {
451
+ "description": "The relationship between the `target` of the link button and the document.",
452
+ "name": "rel"
453
+ },
454
+ {
455
+ "description": "A value indicating whether the element is selected.",
456
+ "name": "selected"
457
+ },
458
+ {
459
+ "description": "The target of the link button.",
460
+ "name": "target"
461
+ }
462
+ ],
463
+ "mixins": [
464
+ {
465
+ "name": "LinkButton",
466
+ "package": "@m3e/core"
467
+ },
468
+ {
469
+ "name": "Selected",
470
+ "package": "@m3e/core"
471
+ },
472
+ {
473
+ "name": "KeyboardClick",
474
+ "package": "@m3e/core"
475
+ },
476
+ {
477
+ "name": "Focusable",
478
+ "package": "@m3e/core"
479
+ },
480
+ {
481
+ "name": "DisabledInteractive",
482
+ "package": "@m3e/core"
483
+ },
484
+ {
485
+ "name": "Disabled",
486
+ "package": "@m3e/core"
487
+ },
488
+ {
489
+ "name": "AttachInternals",
490
+ "package": "@m3e/core"
491
+ },
492
+ {
493
+ "name": "Role",
494
+ "package": "@m3e/core"
495
+ }
496
+ ],
497
+ "superclass": {
498
+ "name": "LitElement",
499
+ "package": "lit"
500
+ },
501
+ "tagName": "m3e-nav-item",
502
+ "customElement": true,
503
+ "summary": "An item, placed in a navigation bar or rail, used to navigate to destinations in an application."
504
+ }
505
+ ],
506
+ "exports": [
507
+ {
508
+ "kind": "js",
509
+ "name": "M3eNavItemElement",
510
+ "declaration": {
511
+ "name": "M3eNavItemElement",
512
+ "module": "src/NavItemElement.ts"
513
+ }
514
+ },
515
+ {
516
+ "kind": "custom-element-definition",
517
+ "name": "m3e-nav-item",
518
+ "declaration": {
519
+ "name": "M3eNavItemElement",
520
+ "module": "src/NavItemElement.ts"
521
+ }
522
+ }
523
+ ]
524
+ },
525
+ {
526
+ "kind": "javascript-module",
527
+ "path": "src/NavItemOrientation.ts",
528
+ "declarations": [],
529
+ "exports": []
530
+ }
531
+ ]
532
+ }
@@ -0,0 +1,65 @@
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-nav-bar",
7
+ "description": "A horizontal bar, typically used on smaller devices, that allows a user to switch between 3-5 views.\n---\n\n\n### **Events:**\n - **change** - Emitted when the selected state of an item changes.\n\n### **Slots:**\n - _default_ - Renders the items of the bar.\n\n### **CSS Properties:**\n - **--m3e-nav-bar-height** - Height of the navigation bar. _(default: undefined)_\n- **--m3e-nav-bar-container-color** - Background color of the navigation bar container. _(default: undefined)_\n- **--m3e-nav-bar-vertical-item-width** - Minimum width of vertical nav items. _(default: undefined)_",
8
+ "attributes": [
9
+ {
10
+ "name": "mode",
11
+ "description": "The mode in which items in the bar are presented.",
12
+ "values": [{ "name": "NavBarMode" }]
13
+ }
14
+ ],
15
+ "references": []
16
+ },
17
+ {
18
+ "name": "m3e-nav-item",
19
+ "description": "An item, placed in a navigation bar or rail, used to navigate to destinations in an application.\n---\n\n\n### **Events:**\n - **input** - Emitted when the selected state changes.\n- **change** - Emitted when the selected state changes.\n\n### **Slots:**\n - _default_ - Renders the label of the item.\n- **icon** - Renders the icon of the item.\n- **selected-icon** - Renders the icon of the item when selected.\n\n### **CSS Properties:**\n - **--m3e-nav-item-label-text-font-size** - Font size for the label text. _(default: undefined)_\n- **--m3e-nav-item-label-text-font-weight** - Font weight for the label text. _(default: undefined)_\n- **--m3e-nav-item-label-text-line-height** - Line height for the label text. _(default: undefined)_\n- **--m3e-nav-item-label-text-tracking** - Letter spacing for the label text. _(default: undefined)_\n- **--m3e-nav-item-shape** - Border radius of the nav item. _(default: undefined)_\n- **--m3e-nav-item-icon-size** - Size of the icon. _(default: undefined)_\n- **--m3e-nav-item-spacing** - Spacing between icon and label. _(default: undefined)_\n- **--m3e-nav-item-inactive-label-text-color** - Color of the label text when inactive. _(default: undefined)_\n- **--m3e-nav-item-inactive-icon-color** - Color of the icon when inactive. _(default: undefined)_\n- **--m3e-nav-item-inactive-hover-state-layer-color** - State layer color on hover when inactive. _(default: undefined)_\n- **--m3e-nav-item-inactive-focus-state-layer-color** - State layer color on focus when inactive. _(default: undefined)_\n- **--m3e-nav-item-inactive-pressed-state-layer-color** - State layer color on press when inactive. _(default: undefined)_\n- **--m3e-nav-item-active-label-text-color** - Color of the label text when active/selected. _(default: undefined)_\n- **--m3e-nav-item-active-icon-color** - Color of the icon when active/selected. _(default: undefined)_\n- **--m3e-nav-item-active-container-color** - Container color when active/selected. _(default: undefined)_\n- **--m3e-nav-item-active-hover-state-layer-color** - State layer color on hover when active. _(default: undefined)_\n- **--m3e-nav-item-active-focus-state-layer-color** - State layer color on focus when active. _(default: undefined)_\n- **--m3e-nav-item-active-pressed-state-layer-color** - State layer color on press when active. _(default: undefined)_\n- **--m3e-nav-item-focus-ring-shape** - Border radius for the focus ring. _(default: undefined)_\n- **--m3e-nav-item-disabled-label-text-color** - Color of the label text when disabled. _(default: undefined)_\n- **--m3e-nav-item-disabled-label-text-opacity** - Opacity of the label text when disabled. _(default: undefined)_\n- **--m3e-nav-item-disabled-icon-color** - Color of the icon when disabled. _(default: undefined)_\n- **--m3e-nav-item-disabled-icon-opacity** - Opacity of the icon when disabled. _(default: undefined)_\n- **--m3e-horizontal-nav-item-padding** - Padding for horizontal orientation. _(default: undefined)_\n- **--m3e-horizontal-nav-item-active-indicator-height** - Height of the active indicator in horizontal orientation. _(default: undefined)_\n- **--m3e-vertical-nav-item-active-indicator-width** - Width of the active indicator in vertical orientation. _(default: undefined)_\n- **--m3e-vertical-nav-item-active-indicator-height** - Height of the active indicator in vertical orientation. _(default: undefined)_\n- **--m3e-vertical-nav-item-active-indicator-margin** - Margin for the active indicator in vertical orientation. _(default: undefined)_",
20
+ "attributes": [
21
+ {
22
+ "name": "disabled",
23
+ "description": "A value indicating whether the element is disabled.",
24
+ "values": []
25
+ },
26
+ {
27
+ "name": "disabled-interactive",
28
+ "description": "A value indicating whether the element is disabled and interactive.",
29
+ "values": []
30
+ },
31
+ {
32
+ "name": "download",
33
+ "description": "A value indicating whether the `target` of the link button will be downloaded, optionally specifying the new name of the file.",
34
+ "values": []
35
+ },
36
+ {
37
+ "name": "href",
38
+ "description": "The URL to which the link button points.",
39
+ "values": []
40
+ },
41
+ {
42
+ "name": "orientation",
43
+ "description": "The layout orientation of the item.",
44
+ "values": [{ "name": "NavItemOrientation" }]
45
+ },
46
+ {
47
+ "name": "rel",
48
+ "description": "The relationship between the `target` of the link button and the document.",
49
+ "values": []
50
+ },
51
+ {
52
+ "name": "selected",
53
+ "description": "A value indicating whether the element is selected.",
54
+ "values": []
55
+ },
56
+ {
57
+ "name": "target",
58
+ "description": "The target of the link button.",
59
+ "values": []
60
+ }
61
+ ],
62
+ "references": []
63
+ }
64
+ ]
65
+ }