@f-ewald/components 1.45.0 → 1.46.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.
Files changed (57) hide show
  1. package/custom-elements.json +361 -73
  2. package/dist/app-shell.d.ts.map +1 -1
  3. package/dist/app-shell.js +4 -0
  4. package/dist/app-shell.js.map +1 -1
  5. package/dist/calendar-day.d.ts +0 -2
  6. package/dist/calendar-day.d.ts.map +1 -1
  7. package/dist/calendar-day.js +3 -30
  8. package/dist/calendar-day.js.map +1 -1
  9. package/dist/calendar-timeline-base.d.ts +4 -0
  10. package/dist/calendar-timeline-base.d.ts.map +1 -1
  11. package/dist/calendar-timeline-base.js +31 -2
  12. package/dist/calendar-timeline-base.js.map +1 -1
  13. package/dist/calendar-week.d.ts +0 -2
  14. package/dist/calendar-week.d.ts.map +1 -1
  15. package/dist/calendar-week.js +5 -32
  16. package/dist/calendar-week.js.map +1 -1
  17. package/dist/cron-schedule.d.ts.map +1 -1
  18. package/dist/cron-schedule.js +4 -2
  19. package/dist/cron-schedule.js.map +1 -1
  20. package/dist/dag-graph.d.ts +25 -1
  21. package/dist/dag-graph.d.ts.map +1 -1
  22. package/dist/dag-graph.js +133 -20
  23. package/dist/dag-graph.js.map +1 -1
  24. package/dist/distribution-chart.d.ts +1 -0
  25. package/dist/distribution-chart.d.ts.map +1 -1
  26. package/dist/distribution-chart.js +23 -2
  27. package/dist/distribution-chart.js.map +1 -1
  28. package/dist/multi-select.d.ts.map +1 -1
  29. package/dist/multi-select.js +1 -1
  30. package/dist/multi-select.js.map +1 -1
  31. package/dist/price-history-chart.d.ts.map +1 -1
  32. package/dist/price-history-chart.js +12 -7
  33. package/dist/price-history-chart.js.map +1 -1
  34. package/dist/range-slider.d.ts.map +1 -1
  35. package/dist/range-slider.js +1 -1
  36. package/dist/range-slider.js.map +1 -1
  37. package/dist/ui-checkbox.d.ts.map +1 -1
  38. package/dist/ui-checkbox.js +1 -1
  39. package/dist/ui-checkbox.js.map +1 -1
  40. package/dist/utils/calendar.d.ts +14 -1
  41. package/dist/utils/calendar.d.ts.map +1 -1
  42. package/dist/utils/calendar.js +17 -2
  43. package/dist/utils/calendar.js.map +1 -1
  44. package/dist/utils/cron.d.ts.map +1 -1
  45. package/dist/utils/cron.js +19 -10
  46. package/dist/utils/cron.js.map +1 -1
  47. package/dist/utils/dag-layout.d.ts +23 -6
  48. package/dist/utils/dag-layout.d.ts.map +1 -1
  49. package/dist/utils/dag-layout.js +32 -10
  50. package/dist/utils/dag-layout.js.map +1 -1
  51. package/dist/utils/layer-stack.d.ts +2 -0
  52. package/dist/utils/layer-stack.d.ts.map +1 -1
  53. package/dist/utils/layer-stack.js +4 -0
  54. package/dist/utils/layer-stack.js.map +1 -1
  55. package/docs/dag-graph.md +5 -2
  56. package/llms.txt +5 -2
  57. package/package.json +1 -1
@@ -3126,38 +3126,6 @@
3126
3126
  ],
3127
3127
  "description": "Renders one lane's stacked all-day bars, given the entries assigned to it."
3128
3128
  },
3129
- {
3130
- "kind": "method",
3131
- "name": "_renderTimedEntry",
3132
- "privacy": "private",
3133
- "parameters": [
3134
- {
3135
- "name": "entry",
3136
- "type": {
3137
- "text": "LanedEntry"
3138
- }
3139
- },
3140
- {
3141
- "name": "laneCount",
3142
- "type": {
3143
- "text": "number"
3144
- }
3145
- },
3146
- {
3147
- "name": "dayStart",
3148
- "type": {
3149
- "text": "Date"
3150
- }
3151
- },
3152
- {
3153
- "name": "dayEnd",
3154
- "type": {
3155
- "text": "Date"
3156
- }
3157
- }
3158
- ],
3159
- "description": "Renders a positioned/sized block for one timed entry, clamped to this day's bounds."
3160
- },
3161
3129
  {
3162
3130
  "kind": "field",
3163
3131
  "name": "entryElements",
@@ -3241,6 +3209,42 @@
3241
3209
  "module": "src/calendar-timeline-base.ts"
3242
3210
  }
3243
3211
  },
3212
+ {
3213
+ "kind": "method",
3214
+ "name": "renderTimedEntry",
3215
+ "privacy": "protected",
3216
+ "parameters": [
3217
+ {
3218
+ "name": "entry",
3219
+ "type": {
3220
+ "text": "LanedEntry"
3221
+ }
3222
+ },
3223
+ {
3224
+ "name": "laneCount",
3225
+ "type": {
3226
+ "text": "number"
3227
+ }
3228
+ },
3229
+ {
3230
+ "name": "dayStart",
3231
+ "type": {
3232
+ "text": "Date"
3233
+ }
3234
+ },
3235
+ {
3236
+ "name": "dayEnd",
3237
+ "type": {
3238
+ "text": "Date"
3239
+ }
3240
+ }
3241
+ ],
3242
+ "description": "Renders a positioned/sized block for one timed entry, clamped to `[dayStart, dayEnd]`.",
3243
+ "inheritedFrom": {
3244
+ "name": "CalendarTimelineBase",
3245
+ "module": "src/calendar-timeline-base.ts"
3246
+ }
3247
+ },
3244
3248
  {
3245
3249
  "kind": "method",
3246
3250
  "name": "entryKey",
@@ -3938,6 +3942,15 @@
3938
3942
  "kind": "javascript-module",
3939
3943
  "path": "src/calendar-timeline-base.ts",
3940
3944
  "declarations": [
3945
+ {
3946
+ "kind": "variable",
3947
+ "name": "HOUR_HEIGHT_REM",
3948
+ "type": {
3949
+ "text": "number"
3950
+ },
3951
+ "default": "3",
3952
+ "description": "Height of one hour row in the hour grid."
3953
+ },
3941
3954
  {
3942
3955
  "kind": "class",
3943
3956
  "description": "Shared base for the hour-grid calendar views, `calendar-day` and\n`calendar-week` — not a registered custom element itself. Holds what both\nneed identically: observing declarative `calendar-entry` children for live\nupdates, resolving them into time-aware entries, and syncing hover/focus\ninteraction classes on rendered entry bars/links. Pure date/geometry math\n(parsing, lane assignment) stays in `utils/calendar.ts` per this\ncodebase's existing convention; this class holds only the parts that need\nto be instance state on a `LitElement` (observers, cached query results).\n\nSubclasses must render a default `<slot",
@@ -4006,6 +4019,38 @@
4006
4019
  ],
4007
4020
  "description": "Reads, resolves, and filters slotted entries to those overlapping `[rangeStart, rangeEnd]`."
4008
4021
  },
4022
+ {
4023
+ "kind": "method",
4024
+ "name": "renderTimedEntry",
4025
+ "privacy": "protected",
4026
+ "parameters": [
4027
+ {
4028
+ "name": "entry",
4029
+ "type": {
4030
+ "text": "LanedEntry"
4031
+ }
4032
+ },
4033
+ {
4034
+ "name": "laneCount",
4035
+ "type": {
4036
+ "text": "number"
4037
+ }
4038
+ },
4039
+ {
4040
+ "name": "dayStart",
4041
+ "type": {
4042
+ "text": "Date"
4043
+ }
4044
+ },
4045
+ {
4046
+ "name": "dayEnd",
4047
+ "type": {
4048
+ "text": "Date"
4049
+ }
4050
+ }
4051
+ ],
4052
+ "description": "Renders a positioned/sized block for one timed entry, clamped to `[dayStart, dayEnd]`."
4053
+ },
4009
4054
  {
4010
4055
  "kind": "method",
4011
4056
  "name": "entryKey",
@@ -4096,6 +4141,14 @@
4096
4141
  }
4097
4142
  ],
4098
4143
  "exports": [
4144
+ {
4145
+ "kind": "js",
4146
+ "name": "HOUR_HEIGHT_REM",
4147
+ "declaration": {
4148
+ "name": "HOUR_HEIGHT_REM",
4149
+ "module": "src/calendar-timeline-base.ts"
4150
+ }
4151
+ },
4099
4152
  {
4100
4153
  "kind": "js",
4101
4154
  "name": "CalendarTimelineBase",
@@ -4161,38 +4214,6 @@
4161
4214
  ],
4162
4215
  "description": "Renders one all-day/multi-day bar, spanning the visible-week columns it covers."
4163
4216
  },
4164
- {
4165
- "kind": "method",
4166
- "name": "_renderTimedEntry",
4167
- "privacy": "private",
4168
- "parameters": [
4169
- {
4170
- "name": "entry",
4171
- "type": {
4172
- "text": "LanedEntry"
4173
- }
4174
- },
4175
- {
4176
- "name": "laneCount",
4177
- "type": {
4178
- "text": "number"
4179
- }
4180
- },
4181
- {
4182
- "name": "dayStart",
4183
- "type": {
4184
- "text": "Date"
4185
- }
4186
- },
4187
- {
4188
- "name": "dayEnd",
4189
- "type": {
4190
- "text": "Date"
4191
- }
4192
- }
4193
- ],
4194
- "description": "Renders a positioned/sized block for one timed entry, clamped to `day`'s bounds."
4195
- },
4196
4217
  {
4197
4218
  "kind": "method",
4198
4219
  "name": "_renderDayColumn",
@@ -4302,6 +4323,42 @@
4302
4323
  "module": "src/calendar-timeline-base.ts"
4303
4324
  }
4304
4325
  },
4326
+ {
4327
+ "kind": "method",
4328
+ "name": "renderTimedEntry",
4329
+ "privacy": "protected",
4330
+ "parameters": [
4331
+ {
4332
+ "name": "entry",
4333
+ "type": {
4334
+ "text": "LanedEntry"
4335
+ }
4336
+ },
4337
+ {
4338
+ "name": "laneCount",
4339
+ "type": {
4340
+ "text": "number"
4341
+ }
4342
+ },
4343
+ {
4344
+ "name": "dayStart",
4345
+ "type": {
4346
+ "text": "Date"
4347
+ }
4348
+ },
4349
+ {
4350
+ "name": "dayEnd",
4351
+ "type": {
4352
+ "text": "Date"
4353
+ }
4354
+ }
4355
+ ],
4356
+ "description": "Renders a positioned/sized block for one timed entry, clamped to `[dayStart, dayEnd]`.",
4357
+ "inheritedFrom": {
4358
+ "name": "CalendarTimelineBase",
4359
+ "module": "src/calendar-timeline-base.ts"
4360
+ }
4361
+ },
4305
4362
  {
4306
4363
  "kind": "method",
4307
4364
  "name": "entryKey",
@@ -6582,7 +6639,7 @@
6582
6639
  "declarations": [
6583
6640
  {
6584
6641
  "kind": "class",
6585
- "description": "Interactive layered drawing of a directed graph — dependencies, pipelines, or any node-link data.\n\nNodes are placed in layers (via dagre) so edges flow left to right (or top to bottom with\n`direction=\"TB\"`); cycles are allowed, and the edges closing them are drawn dashed and point backward.\nEach node is a compact card sized to its label, with an optional icon, color, and border style from\n`kinds`. The whole graph is shown when it fits at a readable zoom; otherwise the selected node is centered at\n100%. Drag to pan; pinch or Ctrl/⌘ + wheel to zoom (a plain wheel scrolls the page). With keyboard\nfocus on the graph, arrow keys pan, `+`/`-` zoom, and `0` fits the graph. Clicking a node, or pressing\nEnter/Space on it, selects it. A toolbar in the top-right corner offers the `controls` you enable.\n\nSet `static` to present a fixed picture: the graph is always fitted into view, panning and zooming\nare off, and the toolbar is hidden; nodes can still be selected.\n\nColors can be changed with these custom properties: `--dag-node-background`, `--dag-node-text`,\n`--dag-edge-color`, `--dag-selected-color`, and `--dag-highlight-color`; `--dag-graph-height` sets the\nheight (default `24rem`).",
6642
+ "description": "Interactive layered drawing of a directed graph — dependencies, pipelines, or any node-link data.\n\nNodes are placed in layers (via dagre) so edges flow left to right (or top to bottom with\n`direction=\"TB\"`); cycles are allowed, and the edges closing them are drawn dashed and point backward.\nEach node is a compact card sized to its label, with an optional icon, color, and border style from\n`kinds`. The whole graph is shown when it fits at a readable zoom; otherwise the selected node is centered at\n100%. Drag to pan; pinch or Ctrl/⌘ + wheel to zoom (a plain wheel scrolls the page). With keyboard\nfocus on the graph, arrow keys pan, `+`/`-` zoom, and `0` fits the graph. Clicking a node, or pressing\nEnter/Space on it, selects it. A toolbar in the top-right corner offers the `controls` you enable.\n\nEdges can carry an optional `label`, drawn midway along the edge, and an optional `weight`, which draws the\nedge thicker in proportion to the heaviest weight in the graph.\n\nSet `static` to present a fixed picture: the graph is always fitted into view, panning and zooming\nare off, and the toolbar is hidden; nodes can still be selected.\n\nColors can be changed with these custom properties: `--dag-node-background`, `--dag-node-text`,\n`--dag-edge-color`, `--dag-selected-color`, and `--dag-highlight-color`; `--dag-graph-height` sets the\nheight (default `24rem`).",
6586
6643
  "name": "DagGraph",
6587
6644
  "slots": [
6588
6645
  {
@@ -6890,13 +6947,118 @@
6890
6947
  },
6891
6948
  {
6892
6949
  "kind": "method",
6893
- "name": "_renderEdges",
6950
+ "name": "_styledEdges",
6951
+ "privacy": "private",
6952
+ "return": {
6953
+ "type": {
6954
+ "text": "StyledEdge[]"
6955
+ }
6956
+ },
6957
+ "description": "Pairs each laid-out edge with its input's presentation; on duplicate edges the last one wins."
6958
+ },
6959
+ {
6960
+ "kind": "method",
6961
+ "name": "_renderWeightedArrows",
6894
6962
  "privacy": "private",
6895
6963
  "return": {
6896
6964
  "type": {
6897
6965
  "text": "SVGTemplateResult[]"
6898
6966
  }
6899
- }
6967
+ },
6968
+ "parameters": [
6969
+ {
6970
+ "name": "edges",
6971
+ "type": {
6972
+ "text": "StyledEdge[]"
6973
+ }
6974
+ }
6975
+ ],
6976
+ "description": "Arrowheads for weighted edges, one per size and color: they grow more slowly than the stroke and sit just\npast the shortened path, so a thick stroke never pokes out beside the arrow's tip."
6977
+ },
6978
+ {
6979
+ "kind": "method",
6980
+ "name": "_arrowId",
6981
+ "privacy": "private",
6982
+ "return": {
6983
+ "type": {
6984
+ "text": "string"
6985
+ }
6986
+ },
6987
+ "parameters": [
6988
+ {
6989
+ "name": "size",
6990
+ "type": {
6991
+ "text": "number"
6992
+ }
6993
+ },
6994
+ {
6995
+ "name": "highlighted",
6996
+ "type": {
6997
+ "text": "boolean"
6998
+ }
6999
+ }
7000
+ ]
7001
+ },
7002
+ {
7003
+ "kind": "method",
7004
+ "name": "_renderEdge",
7005
+ "privacy": "private",
7006
+ "return": {
7007
+ "type": {
7008
+ "text": "SVGTemplateResult"
7009
+ }
7010
+ },
7011
+ "parameters": [
7012
+ {
7013
+ "name": "edge",
7014
+ "type": {
7015
+ "text": "StyledEdge"
7016
+ }
7017
+ }
7018
+ ]
7019
+ },
7020
+ {
7021
+ "kind": "method",
7022
+ "name": "_renderEdgeLabel",
7023
+ "privacy": "private",
7024
+ "return": {
7025
+ "type": {
7026
+ "text": "SVGTemplateResult | typeof nothing"
7027
+ }
7028
+ },
7029
+ "parameters": [
7030
+ {
7031
+ "name": "edge",
7032
+ "type": {
7033
+ "text": "StyledEdge"
7034
+ }
7035
+ }
7036
+ ]
7037
+ },
7038
+ {
7039
+ "kind": "method",
7040
+ "name": "_shortenEnd",
7041
+ "privacy": "private",
7042
+ "return": {
7043
+ "type": {
7044
+ "text": "DagPoint[]"
7045
+ }
7046
+ },
7047
+ "parameters": [
7048
+ {
7049
+ "name": "points",
7050
+ "type": {
7051
+ "text": "DagPoint[]"
7052
+ }
7053
+ },
7054
+ {
7055
+ "name": "length",
7056
+ "type": {
7057
+ "text": "number"
7058
+ }
7059
+ }
7060
+ ],
7061
+ "description": "Pulls the last point back by `length` (at most 80% of the final segment) to make room for an arrowhead."
6900
7062
  },
6901
7063
  {
6902
7064
  "kind": "method",
@@ -7713,6 +7875,15 @@
7713
7875
  "privacy": "private",
7714
7876
  "default": "\"\""
7715
7877
  },
7878
+ {
7879
+ "kind": "field",
7880
+ "name": "_abort",
7881
+ "type": {
7882
+ "text": "AbortController | null"
7883
+ },
7884
+ "privacy": "private",
7885
+ "default": "null"
7886
+ },
7716
7887
  {
7717
7888
  "kind": "field",
7718
7889
  "name": "_ro",
@@ -15770,7 +15941,8 @@
15770
15941
  },
15771
15942
  "default": "false",
15772
15943
  "description": "Disables the whole control, preventing the popover from opening.",
15773
- "attribute": "disabled"
15944
+ "attribute": "disabled",
15945
+ "reflects": true
15774
15946
  },
15775
15947
  {
15776
15948
  "kind": "field",
@@ -18949,7 +19121,8 @@
18949
19121
  },
18950
19122
  "default": "false",
18951
19123
  "description": "Disables interaction; merged with an ancestor `<fieldset disabled>`.",
18952
- "attribute": "disabled"
19124
+ "attribute": "disabled",
19125
+ "reflects": true
18953
19126
  },
18954
19127
  {
18955
19128
  "kind": "field",
@@ -23149,7 +23322,8 @@
23149
23322
  },
23150
23323
  "default": "false",
23151
23324
  "description": "Disables interaction; merged with an ancestor `<fieldset disabled>`.",
23152
- "attribute": "disabled"
23325
+ "attribute": "disabled",
23326
+ "reflects": true
23153
23327
  },
23154
23328
  {
23155
23329
  "kind": "field",
@@ -24836,9 +25010,16 @@
24836
25010
  "type": {
24837
25011
  "text": "ResolvedCalendarEntry[]"
24838
25012
  }
25013
+ },
25014
+ {
25015
+ "name": "{ exclusiveEnd = false }",
25016
+ "default": "{}",
25017
+ "type": {
25018
+ "text": "{ exclusiveEnd?: boolean }"
25019
+ }
24839
25020
  }
24840
25021
  ],
24841
- "description": "Assigns each entry a 0-based stacking lane via greedy interval\npartitioning (\"meeting rooms II\"): entries are sorted by start date, then\neach is placed in the lowest-numbered lane whose current occupant ends\nstrictly before the entry starts. Because entry ranges are\ninclusive-inclusive, an entry ending on day X and one starting on day X\nboth occupy day X and must not share a lane — hence the strict `<`.\n\nLane assignment is meant to be computed independently per `calendar-month`\n(from only the entries overlapping that month); an entry spanning a month\nboundary may therefore land in a different lane in adjacent months. This\nis an accepted v1 limitation, not a bug."
25022
+ "description": "Assigns each entry a 0-based stacking lane via greedy interval\npartitioning (\"meeting rooms II\"): entries are sorted by start date, then\neach is placed in the lowest-numbered lane whose current occupant ends\nstrictly before the entry starts. Because entry ranges are\ninclusive-inclusive, an entry ending on day X and one starting on day X\nboth occupy day X and must not share a lane — hence the strict `<`.\n\nLane assignment is meant to be computed independently per `calendar-month`\n(from only the entries overlapping that month); an entry spanning a month\nboundary may therefore land in a different lane in adjacent months. This\nis an accepted v1 limitation, not a bug.\n\nPass `exclusiveEnd` for timed hour-grid entries, whose end is an instant\nrather than an inclusive day: a 09:00–10:00 and a 10:00–11:00 entry then\nshare a lane."
24842
25023
  },
24843
25024
  {
24844
25025
  "kind": "function",
@@ -24953,6 +25134,36 @@
24953
25134
  }
24954
25135
  ],
24955
25136
  "description": "Resolves a `CalendarEntryData`'s date/datetime strings for hour-grid\nrendering. Returns `null` when `start` is missing or unparseable. A blank\n`end` defaults to `start`; when `start` has a time but `end` doesn't (or is\nblank), `end` defaults to one hour after `start` rather than clamping to\n`start`'s instant, so a timed entry with no explicit end still renders as\na visible block. `allDay` is true only when neither endpoint carries a\ntime-of-day component — this is a separate, additive resolution path from\n`resolveEntry`/`ResolvedCalendarEntry`, which stay date-only and are used\nunchanged by `calendar-month`/`calendar-year`."
25137
+ },
25138
+ {
25139
+ "kind": "function",
25140
+ "name": "overlapsTimedRange",
25141
+ "return": {
25142
+ "type": {
25143
+ "text": "boolean"
25144
+ }
25145
+ },
25146
+ "parameters": [
25147
+ {
25148
+ "name": "entry",
25149
+ "type": {
25150
+ "text": "ResolvedTimedEntry"
25151
+ }
25152
+ },
25153
+ {
25154
+ "name": "rangeStart",
25155
+ "type": {
25156
+ "text": "Date"
25157
+ }
25158
+ },
25159
+ {
25160
+ "name": "rangeEnd",
25161
+ "type": {
25162
+ "text": "Date"
25163
+ }
25164
+ }
25165
+ ],
25166
+ "description": "Whether an hour-grid entry intersects `[rangeStart, rangeEnd]`. All-day\nentries use `overlapsRange`'s inclusive days; timed entries end\nexclusively, so one ending at 00:00 does not reach into the next day. A\nzero-length timed entry still counts where it starts."
24956
25167
  }
24957
25168
  ],
24958
25169
  "exports": [
@@ -25091,6 +25302,14 @@
25091
25302
  "name": "resolveTimedEntry",
25092
25303
  "module": "src/utils/calendar.ts"
25093
25304
  }
25305
+ },
25306
+ {
25307
+ "kind": "js",
25308
+ "name": "overlapsTimedRange",
25309
+ "declaration": {
25310
+ "name": "overlapsTimedRange",
25311
+ "module": "src/utils/calendar.ts"
25312
+ }
25094
25313
  }
25095
25314
  ]
25096
25315
  },
@@ -25521,6 +25740,33 @@
25521
25740
  "default": "200",
25522
25741
  "description": "Widest node card, in pixels; longer labels are shortened with an ellipsis."
25523
25742
  },
25743
+ {
25744
+ "kind": "variable",
25745
+ "name": "DAG_EDGE_LABEL_HEIGHT",
25746
+ "type": {
25747
+ "text": "number"
25748
+ },
25749
+ "default": "16",
25750
+ "description": "Height of an edge label's box, in pixels."
25751
+ },
25752
+ {
25753
+ "kind": "variable",
25754
+ "name": "DAG_EDGE_LABEL_PADDING",
25755
+ "type": {
25756
+ "text": "number"
25757
+ },
25758
+ "default": "4",
25759
+ "description": "Space on each side of an edge label's text, inside its box."
25760
+ },
25761
+ {
25762
+ "kind": "variable",
25763
+ "name": "DAG_MAX_EDGE_LABEL_WIDTH",
25764
+ "type": {
25765
+ "text": "number"
25766
+ },
25767
+ "default": "140",
25768
+ "description": "Widest edge label box, in pixels; longer labels are shortened with an ellipsis."
25769
+ },
25524
25770
  {
25525
25771
  "kind": "function",
25526
25772
  "name": "approximateTextWidth",
@@ -25579,7 +25825,7 @@
25579
25825
  {
25580
25826
  "name": "edges",
25581
25827
  "type": {
25582
- "text": "Array<{ source: string; target: string }>"
25828
+ "text": "DagLayoutEdgeInput[]"
25583
25829
  }
25584
25830
  },
25585
25831
  {
@@ -25597,7 +25843,7 @@
25597
25843
  }
25598
25844
  }
25599
25845
  ],
25600
- "description": "Lays out a directed graph in layers (Sugiyama-style, via dagre) so every edge points along `direction`.\n\nCycles are broken only to assign layers: every edge is returned, and the ones that close a cycle are marked\n`backward`. Edges whose endpoints are not both in `nodes`, self-edges, and duplicates are ignored. The result\ndoes not depend on input order."
25846
+ "description": "Lays out a directed graph in layers (Sugiyama-style, via dagre) so every edge points along `direction`.\n\nCycles are broken only to assign layers: every edge is returned, and the ones that close a cycle are marked\n`backward`. Edges whose endpoints are not both in `nodes`, self-edges, and duplicates are ignored (the last\nduplicate wins). Labeled edges reserve room for their label midway along the edge. The result does not depend\non input order."
25601
25847
  }
25602
25848
  ],
25603
25849
  "exports": [
@@ -25641,6 +25887,30 @@
25641
25887
  "module": "src/utils/dag-layout.ts"
25642
25888
  }
25643
25889
  },
25890
+ {
25891
+ "kind": "js",
25892
+ "name": "DAG_EDGE_LABEL_HEIGHT",
25893
+ "declaration": {
25894
+ "name": "DAG_EDGE_LABEL_HEIGHT",
25895
+ "module": "src/utils/dag-layout.ts"
25896
+ }
25897
+ },
25898
+ {
25899
+ "kind": "js",
25900
+ "name": "DAG_EDGE_LABEL_PADDING",
25901
+ "declaration": {
25902
+ "name": "DAG_EDGE_LABEL_PADDING",
25903
+ "module": "src/utils/dag-layout.ts"
25904
+ }
25905
+ },
25906
+ {
25907
+ "kind": "js",
25908
+ "name": "DAG_MAX_EDGE_LABEL_WIDTH",
25909
+ "declaration": {
25910
+ "name": "DAG_MAX_EDGE_LABEL_WIDTH",
25911
+ "module": "src/utils/dag-layout.ts"
25912
+ }
25913
+ },
25644
25914
  {
25645
25915
  "kind": "js",
25646
25916
  "name": "approximateTextWidth",
@@ -25992,6 +26262,16 @@
25992
26262
  ],
25993
26263
  "description": "Whether this overlay currently owns global Escape/focus behavior."
25994
26264
  },
26265
+ {
26266
+ "kind": "function",
26267
+ "name": "hasOpenLayer",
26268
+ "return": {
26269
+ "type": {
26270
+ "text": "boolean"
26271
+ }
26272
+ },
26273
+ "description": "Whether any overlay is open, so page-level Escape handlers can defer to it."
26274
+ },
25995
26275
  {
25996
26276
  "kind": "function",
25997
26277
  "name": "claimEscape",
@@ -26042,6 +26322,14 @@
26042
26322
  "module": "src/utils/layer-stack.ts"
26043
26323
  }
26044
26324
  },
26325
+ {
26326
+ "kind": "js",
26327
+ "name": "hasOpenLayer",
26328
+ "declaration": {
26329
+ "name": "hasOpenLayer",
26330
+ "module": "src/utils/layer-stack.ts"
26331
+ }
26332
+ },
26045
26333
  {
26046
26334
  "kind": "js",
26047
26335
  "name": "claimEscape",
@@ -1 +1 @@
1
- {"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../src/app-shell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1E,OAAO,eAAe,CAAC;AAGvB,gEAAgE;AAChE,MAAM,WAAW,mBAAmB;IAClC,uCAAuC;IACvC,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,qBACa,QAAS,SAAQ,UAAU;IACtC,0EAA0E;IACH,WAAW,UAAS;IAC3F,uGAAuG;IAC/C,WAAW,EAAE,SAAS,GAAG,MAAM,CAAa;IACpG,uGAAuG;IAC9C,YAAY,EAAE,MAAM,GAAG,MAAM,CAAU;IAChG,gFAAgF;IACV,UAAU,UAAS;IACzF,gEAAgE;IACvB,WAAW,EAAE,SAAS,GAAG,aAAa,CAAa;IAC5F,+MAA+M;IAC3I,QAAQ,UAAS;IAErF,6DAA6D;IACpD,OAAO,CAAC,OAAO,CAAS;IACjC,oDAAoD;IAC3C,OAAO,CAAC,UAAU,CAAS;IAEpC,OAAgB,MAAM,4BAsQpB;IAEF,OAAO,CAAC,WAAW,CAA+B;IAClD,OAAO,CAAC,cAAc,CAA4B;IAEzC,iBAAiB,IAAI,IAAI,CAMjC;IAEQ,oBAAoB,IAAI,IAAI,CAKpC;IAED,wEAAwE;IACxE,OAAO,CAAC,cAAc,CAEpB;IAEF,gFAAgF;IAChF,OAAO,CAAC,UAAU,CAsBhB;IAEF,wFAAwF;IACxF,OAAO,CAAC,iBAAiB;IAQzB,4CAA4C;IAC5C,OAAO,CAAC,cAAc;IActB,mFAAmF;IACnF,OAAO,CAAC,YAAY;IAKpB,uDAAuD;IACvD,OAAO,CAAC,QAAQ;IAKhB,4FAA4F;IAC5F,OAAO,CAAC,iBAAiB;IAQzB,UAAmB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CASxD;IAEQ,MAAM,yCA2Dd;IAED,gEAAgE;IAChE,OAAO,CAAC,mBAAmB;CAG5B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
1
+ {"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../src/app-shell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1E,OAAO,eAAe,CAAC;AAIvB,gEAAgE;AAChE,MAAM,WAAW,mBAAmB;IAClC,uCAAuC;IACvC,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,qBACa,QAAS,SAAQ,UAAU;IACtC,0EAA0E;IACH,WAAW,UAAS;IAC3F,uGAAuG;IAC/C,WAAW,EAAE,SAAS,GAAG,MAAM,CAAa;IACpG,uGAAuG;IAC9C,YAAY,EAAE,MAAM,GAAG,MAAM,CAAU;IAChG,gFAAgF;IACV,UAAU,UAAS;IACzF,gEAAgE;IACvB,WAAW,EAAE,SAAS,GAAG,aAAa,CAAa;IAC5F,+MAA+M;IAC3I,QAAQ,UAAS;IAErF,6DAA6D;IACpD,OAAO,CAAC,OAAO,CAAS;IACjC,oDAAoD;IAC3C,OAAO,CAAC,UAAU,CAAS;IAEpC,OAAgB,MAAM,4BAsQpB;IAEF,OAAO,CAAC,WAAW,CAA+B;IAClD,OAAO,CAAC,cAAc,CAA4B;IAEzC,iBAAiB,IAAI,IAAI,CAMjC;IAEQ,oBAAoB,IAAI,IAAI,CAKpC;IAED,wEAAwE;IACxE,OAAO,CAAC,cAAc,CAEpB;IAEF,gFAAgF;IAChF,OAAO,CAAC,UAAU,CAwBhB;IAEF,wFAAwF;IACxF,OAAO,CAAC,iBAAiB;IAQzB,4CAA4C;IAC5C,OAAO,CAAC,cAAc;IActB,mFAAmF;IACnF,OAAO,CAAC,YAAY;IAKpB,uDAAuD;IACvD,OAAO,CAAC,QAAQ;IAKhB,4FAA4F;IAC5F,OAAO,CAAC,iBAAiB;IAQzB,UAAmB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CASxD;IAEQ,MAAM,yCA2Dd;IAED,gEAAgE;IAChE,OAAO,CAAC,mBAAmB;CAG5B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
package/dist/app-shell.js CHANGED
@@ -9,6 +9,7 @@ import { customElement, property, state } from "lit/decorators.js";
9
9
  import { iconBars3 } from "./icons.js";
10
10
  import "./kbd-hint.js";
11
11
  import { tokens } from "./tokens.js";
12
+ import { hasOpenLayer } from "./utils/layer-stack.js";
12
13
  /**
13
14
  * The dashboard page shell: a slot-based CSS-grid backbone that arranges a
14
15
  * top bar, the main content, an optional right-hand detail column, an
@@ -97,6 +98,9 @@ let AppShell = class AppShell extends LitElement {
97
98
  if (event.defaultPrevented)
98
99
  return;
99
100
  if (event.key === "Escape" && this._mobile) {
101
+ // An open dialog/popover/panel above the shell owns Escape.
102
+ if (hasOpenLayer())
103
+ return;
100
104
  if (this.detailOpen) {
101
105
  event.preventDefault();
102
106
  this._closeDetail();