@design.estate/dees-catalog 22.0.0 → 22.1.0

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.
@@ -77062,6 +77062,11 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a103 = Dee
77062
77062
  if (!stopElement) return;
77063
77063
  const row = target?.closest(".row");
77064
77064
  const currentKey = row?.dataset.rowId ?? stopElement.dataset.stop ?? "";
77065
+ if (eventArg.key === "ContextMenu" || eventArg.key === "F10" && eventArg.shiftKey) {
77066
+ const contextRow = row ? this.rows.find((rowArg) => rowArg.id === row.dataset.rowId) : void 0;
77067
+ if (contextRow) this.emitContext(eventArg, contextRow, "keyboard");
77068
+ return;
77069
+ }
77065
77070
  if (eventArg.key === "ArrowRight" || eventArg.key === "ArrowLeft") {
77066
77071
  if (!row) return;
77067
77072
  const part = eventArg.key === "ArrowRight" ? ".ticket" : ".rowMain";
@@ -77177,6 +77182,7 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a103 = Dee
77177
77182
  class="row state-${rowArg.state} ${selected2 ? "selected" : ""}"
77178
77183
  data-row-id=${rowArg.id}
77179
77184
  @click=${() => this.select(rowArg)}
77185
+ @contextmenu=${(event) => this.emitContext(event, rowArg, "pointer")}
77180
77186
  >
77181
77187
  <button
77182
77188
  class="rowMain"
@@ -77185,6 +77191,7 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a103 = Dee
77185
77191
  tabindex=${activeArg ? "0" : "-1"}
77186
77192
  aria-current=${selected2 ? "true" : "false"}
77187
77193
  aria-describedby=${ageId}
77194
+ aria-keyshortcuts="ContextMenu Shift+F10"
77188
77195
  @focus=${() => {
77189
77196
  this.activeKey = rowArg.id;
77190
77197
  }}
@@ -77240,6 +77247,31 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a103 = Dee
77240
77247
  const detail = { row: rowArg, ticket: ticket2 };
77241
77248
  this.dispatchEvent(new CustomEvent("harness-session-ticket-select", { detail, bubbles: true, composed: true }));
77242
77249
  }
77250
+ /**
77251
+ * Asks the host for a row's menu. The host owns the menu; the list only says which row, and where: at the pointer,
77252
+ * or under the row for the keyboard.
77253
+ */
77254
+ emitContext(eventArg, rowArg, sourceArg) {
77255
+ eventArg.preventDefault();
77256
+ eventArg.stopPropagation();
77257
+ this.activeKey = rowArg.id;
77258
+ const anchor = eventArg.target?.closest(".row");
77259
+ const rect = anchor?.getBoundingClientRect();
77260
+ const pointer = sourceArg === "pointer" && eventArg instanceof MouseEvent;
77261
+ const detail = {
77262
+ row: rowArg,
77263
+ clientX: pointer ? eventArg.clientX : rect ? rect.left + Math.min(rect.width / 2, 24) : 0,
77264
+ clientY: pointer ? eventArg.clientY : rect?.bottom ?? 0,
77265
+ source: sourceArg,
77266
+ originalEvent: eventArg
77267
+ };
77268
+ this.dispatchEvent(new CustomEvent("harness-session-row-context", { detail, bubbles: true, composed: true }));
77269
+ }
77270
+ /** Focuses the list's keyboard stop: the row last used, else the selected row, else the first. */
77271
+ focusList() {
77272
+ const key = this.resolveActiveKey(this.focusStops());
77273
+ if (key) this.focusStop(key);
77274
+ }
77243
77275
  focusStop(keyArg, partArg = "main") {
77244
77276
  this.activeKey = keyArg;
77245
77277
  const element = this.stopElement(keyArg, partArg);
@@ -126708,7 +126740,7 @@ var bright = {
126708
126740
  // ts_web/00_commitinfo_data.ts
126709
126741
  var commitinfo = {
126710
126742
  name: "@design.estate/dees-catalog",
126711
- version: "22.0.0",
126743
+ version: "22.1.0",
126712
126744
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
126713
126745
  };
126714
126746
  export {