@design.estate/dees-catalog 21.46.0 → 21.47.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.
Files changed (69) hide show
  1. package/dist_bundle/bundle.js +825 -259
  2. package/dist_bundle/bundle.js.map +1 -1
  3. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-FCUX4QGD.js → chunk-Q5VY4AV7.js} +3 -3
  4. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-LWT7IIPZ.js → chunk-QG5BHDQO.js} +2 -2
  5. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-VJVZHESI.js → chunk-UPDBEHU2.js} +16 -3
  6. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-VJVZHESI.js.map → chunk-UPDBEHU2.js.map} +1 -1
  7. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-7PGZC4IF.js → de-E2CUVVOP.js} +16 -3
  8. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-E2CUVVOP.js.map +1 -0
  9. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-VOIWY235.js → dees-modal-YOGT7PSU.js} +3 -3
  10. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-EJRHSZ5F.js → dees-workspace-terminal-ORLONA36.js} +4 -4
  11. package/dist_ts_web/00_commitinfo_data.js +1 -1
  12. package/dist_ts_web/elements/00group-dataview/dees-table/dees-table.d.ts +24 -7
  13. package/dist_ts_web/elements/00group-dataview/dees-table/dees-table.js +53 -18
  14. package/dist_ts_web/elements/00group-dataview/dees-thread/dees-thread.d.ts +9 -1
  15. package/dist_ts_web/elements/00group-dataview/dees-thread/dees-thread.js +42 -5
  16. package/dist_ts_web/elements/00group-dataview/dees-thread/interfaces.d.ts +11 -0
  17. package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.d.ts +30 -8
  18. package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.js +95 -24
  19. package/dist_ts_web/elements/00group-harness/interfaces.d.ts +14 -3
  20. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.d.ts +17 -5
  21. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.demo.js +6 -2
  22. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.js +76 -20
  23. package/dist_ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.js +3 -1
  24. package/dist_ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.d.ts +3 -1
  25. package/dist_ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.js +17 -3
  26. package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.d.ts +3 -1
  27. package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.js +12 -2
  28. package/dist_ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.d.ts +41 -5
  29. package/dist_ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.js +196 -20
  30. package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.d.ts +25 -2
  31. package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.js +137 -8
  32. package/dist_ts_web/elements/00group-kanban/index.d.ts +1 -0
  33. package/dist_ts_web/elements/00group-kanban/index.js +2 -1
  34. package/dist_ts_web/elements/00group-kanban/interfaces.d.ts +96 -3
  35. package/dist_ts_web/elements/00group-kanban/kanban.demodata.js +119 -3
  36. package/dist_ts_web/elements/00group-kanban/kanban.helpers.d.ts +19 -1
  37. package/dist_ts_web/elements/00group-kanban/kanban.helpers.js +50 -1
  38. package/dist_ts_web/elements/00group-kanban/kanban.styles.js +32 -1
  39. package/dist_ts_web/i18n/de.d.ts +53 -1
  40. package/dist_ts_web/i18n/de.js +15 -2
  41. package/dist_ts_web/i18n/messages.d.ts +53 -1
  42. package/dist_ts_web/i18n/messages.js +15 -2
  43. package/package.json +1 -1
  44. package/readme.md +58 -19
  45. package/ts_web/00_commitinfo_data.ts +1 -1
  46. package/ts_web/elements/00group-dataview/dees-table/dees-table.ts +54 -17
  47. package/ts_web/elements/00group-dataview/dees-thread/dees-thread.ts +39 -4
  48. package/ts_web/elements/00group-dataview/dees-thread/interfaces.ts +11 -0
  49. package/ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.ts +83 -21
  50. package/ts_web/elements/00group-harness/interfaces.ts +14 -3
  51. package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.demo.ts +5 -1
  52. package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.ts +82 -23
  53. package/ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.ts +2 -0
  54. package/ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.ts +11 -2
  55. package/ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.ts +6 -1
  56. package/ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.ts +199 -21
  57. package/ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.ts +144 -6
  58. package/ts_web/elements/00group-kanban/index.ts +1 -0
  59. package/ts_web/elements/00group-kanban/interfaces.ts +101 -4
  60. package/ts_web/elements/00group-kanban/kanban.demodata.ts +126 -2
  61. package/ts_web/elements/00group-kanban/kanban.helpers.ts +70 -0
  62. package/ts_web/elements/00group-kanban/kanban.styles.ts +31 -0
  63. package/ts_web/i18n/de.ts +14 -1
  64. package/ts_web/i18n/messages.ts +14 -1
  65. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-7PGZC4IF.js.map +0 -1
  66. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-FCUX4QGD.js.map → chunk-Q5VY4AV7.js.map} +0 -0
  67. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-LWT7IIPZ.js.map → chunk-QG5BHDQO.js.map} +0 -0
  68. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-VOIWY235.js.map → dees-modal-YOGT7PSU.js.map} +0 -0
  69. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-EJRHSZ5F.js.map → dees-workspace-terminal-ORLONA36.js.map} +0 -0
@@ -25,7 +25,7 @@ import {
25
25
  ownAppuiLabels,
26
26
  resolveAppuiLabels,
27
27
  xtermStyles
28
- } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-FCUX4QGD.js";
28
+ } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-Q5VY4AV7.js";
29
29
  import {
30
30
  ActionRunController,
31
31
  BarInfoController,
@@ -124,7 +124,7 @@ import {
124
124
  workspaceVisibility,
125
125
  zIndexLayers,
126
126
  zIndexRegistry
127
- } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-LWT7IIPZ.js";
127
+ } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-QG5BHDQO.js";
128
128
  import {
129
129
  dcMessages,
130
130
  dcSourceI18n,
@@ -134,7 +134,7 @@ import {
134
134
  firstDayOfWeek,
135
135
  iso_exports,
136
136
  momentFormat
137
- } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-VJVZHESI.js";
137
+ } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-UPDBEHU2.js";
138
138
  import {
139
139
  __decorateElement,
140
140
  __decoratorMetadata,
@@ -8396,8 +8396,17 @@ var _DeesTable = class _DeesTable extends (_a17 = DeesElement, _heading1_dec = [
8396
8396
  * virtualized.
8397
8397
  */
8398
8398
  __publicField(this, "__settledAnchor");
8399
- /** The window whose values the column widths were last checked against. */
8399
+ /**
8400
+ * The window, and the view it showed, whose values the column widths were
8401
+ * last checked against: a search, a filter or a sort shows other rows in the
8402
+ * same window.
8403
+ */
8400
8404
  __publicField(this, "__virtualColumnsCheckedFor");
8405
+ /**
8406
+ * What each data column's values have needed, laid out at their natural
8407
+ * width, in the windows shown since the widths were frozen.
8408
+ */
8409
+ __publicField(this, "__columnContentWidths");
8401
8410
  __publicField(this, "__virtualSettleFrame");
8402
8411
  __privateAdd(this, ___virtualRange, __runInitializers(_init19, 212, this, { start: 0, end: 0 })), __runInitializers(_init19, 215, this);
8403
8412
  /** The row that holds the rows' tab stop in a table whose rows activate. */
@@ -9420,9 +9429,13 @@ var _DeesTable = class _DeesTable extends (_a17 = DeesElement, _heading1_dec = [
9420
9429
  /**
9421
9430
  * The column widths are frozen from the first window. Under virtualization
9422
9431
  * later windows bring other values, so a column widens to the widest value
9423
- * rendered so far: the window is laid out at its natural widths once and
9424
- * every column keeps the larger of that and its frozen width. Returns
9425
- * whether a column widened.
9432
+ * rendered so far: the window is laid out at its natural widths once, and
9433
+ * each column needs the widest it has been in any window since the freeze.
9434
+ * A column that needs more than it has takes the room the columns were
9435
+ * stretched by to fill the table's container, shared out in proportion to
9436
+ * what each needs as the browser shares it; the table grows wider than its
9437
+ * container only once the columns need more than it holds. Returns whether
9438
+ * a column's width changed.
9426
9439
  */
9427
9440
  __growColumnWidths() {
9428
9441
  const table = this.__realTableEl;
@@ -9438,15 +9451,20 @@ var _DeesTable = class _DeesTable extends (_a17 = DeesElement, _heading1_dec = [
9438
9451
  cell.style.width = "";
9439
9452
  });
9440
9453
  const natural = cells.map((cell) => parseFloat(getComputedStyle(cell).width) || 0);
9441
- let grew = false;
9454
+ const naturalTotal = natural.reduce((sum, width) => sum + width, 0);
9455
+ const naturalTableWidth = parseFloat(getComputedStyle(table).width) || 0;
9456
+ table.style.minWidth = "";
9457
+ const room = (parseFloat(getComputedStyle(table).width) || 0) - (naturalTableWidth - naturalTotal);
9458
+ const before = this.__columnContentWidths?.length === cells.length ? this.__columnContentWidths : [];
9459
+ const needed = natural.map((width, index) => Math.max(before[index] ?? 0, width));
9460
+ this.__columnContentWidths = needed;
9461
+ const neededTotal = needed.reduce((sum, width) => sum + width, 0);
9462
+ const widths = !needed.some((width, index) => width > frozen[index] + 0.5) ? frozen : neededTotal >= room ? needed : needed.map((width) => width + Math.floor((room - neededTotal) * width / neededTotal));
9442
9463
  cells.forEach((cell, index) => {
9443
- const width = Math.max(frozen[index], natural[index]);
9444
- if (width > frozen[index] + 0.5) grew = true;
9445
- cell.style.width = `${width}px`;
9464
+ cell.style.width = `${widths[index]}px`;
9446
9465
  });
9447
- table.style.minWidth = "";
9448
9466
  table.style.tableLayout = "fixed";
9449
- return grew;
9467
+ return widths.some((width, index) => Math.abs(width - frozen[index]) > 0.5);
9450
9468
  }
9451
9469
  /** Settles the window on the next frame: at most one range change per frame. */
9452
9470
  __scheduleVirtualSettle() {
@@ -9459,14 +9477,15 @@ var _DeesTable = class _DeesTable extends (_a17 = DeesElement, _heading1_dec = [
9459
9477
  this.__restoreVirtualAnchor(settled);
9460
9478
  }
9461
9479
  const range = this.__virtualRange;
9480
+ const view = this.__rowKeysFor?.view;
9462
9481
  const checked = this.__virtualColumnsCheckedFor;
9463
- if (!checked || checked.start !== range.start || checked.end !== range.end) {
9482
+ if (!checked || checked.start !== range.start || checked.end !== range.end || checked.view !== view) {
9464
9483
  const anchor = this.__captureVirtualAnchor();
9465
9484
  if (this.__growColumnWidths()) {
9466
9485
  this.__measureRenderedRows();
9467
9486
  if (anchor) this.__restoreVirtualAnchor(anchor);
9468
9487
  }
9469
- if (this.__realTableEl?.style.tableLayout === "fixed") this.__virtualColumnsCheckedFor = { ...range };
9488
+ if (this.__realTableEl?.style.tableLayout === "fixed") this.__virtualColumnsCheckedFor = { ...range, view };
9470
9489
  }
9471
9490
  this.__measureRenderedRows();
9472
9491
  this.__computeVirtualRange();
@@ -10056,7 +10075,13 @@ var _DeesTable = class _DeesTable extends (_a17 = DeesElement, _heading1_dec = [
10056
10075
  dataCells.forEach((cell) => {
10057
10076
  cell.style.width = "";
10058
10077
  });
10078
+ this.__columnContentWidths = void 0;
10059
10079
  if (!table.querySelector("tbody tr[data-row-idx]")) return;
10080
+ if (this.virtualized) {
10081
+ table.style.minWidth = "0";
10082
+ this.__columnContentWidths = dataCells.map((cell) => parseFloat(getComputedStyle(cell).width) || 0);
10083
+ table.style.minWidth = "";
10084
+ }
10060
10085
  const widths = dataCells.map((cell) => getComputedStyle(cell).width);
10061
10086
  dataCells.forEach((cell, index) => {
10062
10087
  cell.style.width = widths[index];
@@ -26282,9 +26307,9 @@ var _DeesInputList = class _DeesInputList extends (_a45 = DeesInputBase, _value_
26282
26307
  __publicField(this, "commitEntry", /* @__PURE__ */ __name(() => {
26283
26308
  const entry = this.inputValue.trim();
26284
26309
  if (!entry) return;
26285
- const refusal = this.entryRefusal(entry);
26286
- if (refusal) {
26287
- this.refuse("add", refusal);
26310
+ const refusal2 = this.entryRefusal(entry);
26311
+ if (refusal2) {
26312
+ this.refuse("add", refusal2);
26288
26313
  return;
26289
26314
  }
26290
26315
  const candidate = this.candidateFor(entry);
@@ -26712,9 +26737,9 @@ var _DeesInputList = class _DeesInputList extends (_a45 = DeesInputBase, _value_
26712
26737
  this.cancelEdit();
26713
26738
  return true;
26714
26739
  }
26715
- const refusal = this.editRefusal(index, trimmedValue);
26716
- if (refusal) {
26717
- this.refuse("edit", refusal);
26740
+ const refusal2 = this.editRefusal(index, trimmedValue);
26741
+ if (refusal2) {
26742
+ this.refuse("edit", refusal2);
26718
26743
  return false;
26719
26744
  }
26720
26745
  this.closeEditor();
@@ -50747,7 +50772,7 @@ var demoFunc45 = /* @__PURE__ */ __name(() => {
50747
50772
  }, "demoFunc");
50748
50773
 
50749
50774
  // ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.ts
50750
- var _rejection_dec, _personResultsShown_dec, _personFieldsShown_dec, _personValues_dec, _personResults_dec, _copyFeedback_dec2, _credentialsShown_dec, _leftOut_dec, _itemsExpanded_dec2, _customText_dec, _selected_dec, _answered_dec2, _viewState_dec6, _busy_dec2, _request_dec2, _a65, _DeesHarnessQuestionCard_decorators, _init67, _request2, _busy2, _viewState6, _answered2, _selected, _customText, _itemsExpanded2, _leftOut, _credentialsShown, _copyFeedback2, _personResults, _personValues, _personFieldsShown, _personResultsShown, _rejection;
50775
+ var _rejection_dec, _personResultsShown_dec, _personFieldsShown_dec, _personValues_dec, _personResults_dec, _copyFeedback_dec2, _credentialsShown_dec, _leftOut_dec, _itemsExpanded_dec2, _customText_dec, _selected_dec, _answered_dec2, _readOnly_dec, _frameless_dec13, _viewState_dec6, _busy_dec2, _request_dec2, _a65, _DeesHarnessQuestionCard_decorators, _init67, _request2, _busy2, _viewState6, _frameless13, _readOnly, _answered2, _selected, _customText, _itemsExpanded2, _leftOut, _credentialsShown, _copyFeedback2, _personResults, _personValues, _personFieldsShown, _personResultsShown, _rejection;
50751
50776
  var titleIcon = /* @__PURE__ */ __name((kindArg, severityArg) => severityArg === "danger" ? "lucide:OctagonAlert" : severityArg === "warning" ? "lucide:TriangleAlert" : kindArg === "proposal" ? "lucide:ListChecks" : "lucide:MessageCircleQuestionMark", "titleIcon");
50752
50777
  var ITEM_ICON = {
50753
50778
  warning: "lucide:TriangleAlert",
@@ -50771,25 +50796,27 @@ var STATE_BADGE = {
50771
50796
  failed: "error"
50772
50797
  };
50773
50798
  _DeesHarnessQuestionCard_decorators = [customElement("dees-harness-question-card")];
50774
- var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = DeesElement, _request_dec2 = [n({ attribute: false })], _busy_dec2 = [n({ type: Boolean, reflect: true })], _viewState_dec6 = [n({ attribute: false })], _answered_dec2 = [r2()], _selected_dec = [r2()], _customText_dec = [r2()], _itemsExpanded_dec2 = [r2()], _leftOut_dec = [r2()], _credentialsShown_dec = [r2()], _copyFeedback_dec2 = [r2()], _personResults_dec = [n({ attribute: false })], _personValues_dec = [r2()], _personFieldsShown_dec = [r2()], _personResultsShown_dec = [r2()], _rejection_dec = [r2()], _a65) {
50799
+ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = DeesElement, _request_dec2 = [n({ attribute: false })], _busy_dec2 = [n({ type: Boolean, reflect: true })], _viewState_dec6 = [n({ attribute: false })], _frameless_dec13 = [n({ type: Boolean, reflect: true })], _readOnly_dec = [n({ type: Boolean, reflect: true })], _answered_dec2 = [r2()], _selected_dec = [r2()], _customText_dec = [r2()], _itemsExpanded_dec2 = [r2()], _leftOut_dec = [r2()], _credentialsShown_dec = [r2()], _copyFeedback_dec2 = [r2()], _personResults_dec = [n({ attribute: false })], _personValues_dec = [r2()], _personFieldsShown_dec = [r2()], _personResultsShown_dec = [r2()], _rejection_dec = [r2()], _a65) {
50775
50800
  constructor() {
50776
50801
  super(...arguments);
50777
50802
  __publicField(this, "t", dcLocalize(this));
50778
50803
  __privateAdd(this, _request2, __runInitializers(_init67, 8, this, { id: "", question: "" })), __runInitializers(_init67, 11, this);
50779
50804
  __privateAdd(this, _busy2, __runInitializers(_init67, 12, this, false)), __runInitializers(_init67, 15, this);
50780
50805
  __privateAdd(this, _viewState6, __runInitializers(_init67, 16, this)), __runInitializers(_init67, 19, this);
50781
- __privateAdd(this, _answered2, __runInitializers(_init67, 20, this)), __runInitializers(_init67, 23, this);
50782
- __privateAdd(this, _selected, __runInitializers(_init67, 24, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 27, this);
50783
- __privateAdd(this, _customText, __runInitializers(_init67, 28, this, "")), __runInitializers(_init67, 31, this);
50784
- __privateAdd(this, _itemsExpanded2, __runInitializers(_init67, 32, this)), __runInitializers(_init67, 35, this);
50785
- __privateAdd(this, _leftOut, __runInitializers(_init67, 36, this)), __runInitializers(_init67, 39, this);
50786
- __privateAdd(this, _credentialsShown, __runInitializers(_init67, 40, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 43, this);
50787
- __privateAdd(this, _copyFeedback2, __runInitializers(_init67, 44, this)), __runInitializers(_init67, 47, this);
50788
- __privateAdd(this, _personResults, __runInitializers(_init67, 48, this, NO_PERSON_RESULTS)), __runInitializers(_init67, 51, this);
50789
- __privateAdd(this, _personValues, __runInitializers(_init67, 52, this, /* @__PURE__ */ new Map())), __runInitializers(_init67, 55, this);
50790
- __privateAdd(this, _personFieldsShown, __runInitializers(_init67, 56, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 59, this);
50791
- __privateAdd(this, _personResultsShown, __runInitializers(_init67, 60, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 63, this);
50792
- __privateAdd(this, _rejection, __runInitializers(_init67, 64, this)), __runInitializers(_init67, 67, this);
50806
+ __privateAdd(this, _frameless13, __runInitializers(_init67, 20, this, false)), __runInitializers(_init67, 23, this);
50807
+ __privateAdd(this, _readOnly, __runInitializers(_init67, 24, this, false)), __runInitializers(_init67, 27, this);
50808
+ __privateAdd(this, _answered2, __runInitializers(_init67, 28, this)), __runInitializers(_init67, 31, this);
50809
+ __privateAdd(this, _selected, __runInitializers(_init67, 32, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 35, this);
50810
+ __privateAdd(this, _customText, __runInitializers(_init67, 36, this, "")), __runInitializers(_init67, 39, this);
50811
+ __privateAdd(this, _itemsExpanded2, __runInitializers(_init67, 40, this)), __runInitializers(_init67, 43, this);
50812
+ __privateAdd(this, _leftOut, __runInitializers(_init67, 44, this)), __runInitializers(_init67, 47, this);
50813
+ __privateAdd(this, _credentialsShown, __runInitializers(_init67, 48, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 51, this);
50814
+ __privateAdd(this, _copyFeedback2, __runInitializers(_init67, 52, this)), __runInitializers(_init67, 55, this);
50815
+ __privateAdd(this, _personResults, __runInitializers(_init67, 56, this, NO_PERSON_RESULTS)), __runInitializers(_init67, 59, this);
50816
+ __privateAdd(this, _personValues, __runInitializers(_init67, 60, this, /* @__PURE__ */ new Map())), __runInitializers(_init67, 63, this);
50817
+ __privateAdd(this, _personFieldsShown, __runInitializers(_init67, 64, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 67, this);
50818
+ __privateAdd(this, _personResultsShown, __runInitializers(_init67, 68, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 71, this);
50819
+ __privateAdd(this, _rejection, __runInitializers(_init67, 72, this)), __runInitializers(_init67, 75, this);
50793
50820
  __publicField(this, "copyRequest", 0);
50794
50821
  __publicField(this, "copyResetTimeout");
50795
50822
  __publicField(this, "footerActions");
@@ -50851,9 +50878,9 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
50851
50878
  get personFieldsComplete() {
50852
50879
  return !this.personFieldsMissing && this.includedPersonFields.every((field) => this.personValueOf(field).length <= field.maxLength);
50853
50880
  }
50854
- /** Whether the card takes no answer: answered, waiting for the host (`busy`), or its changes under way or decided. */
50881
+ /** Whether the card takes no answer: answered, waiting for the host (`busy`), read-only, or its changes under way or decided. */
50855
50882
  get locked() {
50856
- return this.busy || this.effectiveResponse !== void 0 || this.proposalState !== "pending";
50883
+ return this.busy || this.readOnly || this.effectiveResponse !== void 0 || this.proposalState !== "pending";
50857
50884
  }
50858
50885
  render() {
50859
50886
  const request = this.request;
@@ -50882,13 +50909,15 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
50882
50909
  renderQuestion() {
50883
50910
  const request = this.request;
50884
50911
  const response = this.effectiveResponse;
50885
- const disabled = this.busy || response !== void 0;
50912
+ const disabled = this.busy || this.readOnly || response !== void 0;
50913
+ const rejection = this.effectiveRejection;
50886
50914
  return response ? b`
50887
50915
  <div class="answeredNote">
50888
50916
  ${this.t("question.answered")}
50889
50917
  <span class="answerText">${this.t.format.list(response, "unit") || "\u2014"}</span>
50890
50918
  </div>
50891
50919
  ` : b`
50920
+ ${rejection ? b`<p class="rejection" role="alert">${rejection.message || this.t("question.answerRefused")}</p>` : ""}
50892
50921
  ${request.options?.length ? b`
50893
50922
  <div class="options" role=${request.multiSelect ? "group" : "radiogroup"}>
50894
50923
  ${request.options.map((option) => b`
@@ -50916,18 +50945,14 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
50916
50945
  }}
50917
50946
  @keydown=${(event) => {
50918
50947
  if (event.key === "Enter" && this.effectiveCustomText.trim()) {
50919
- this.respond([...this.effectiveSelected, this.effectiveCustomText.trim()]);
50948
+ this.answerQuestion([...this.effectiveSelected], this.effectiveCustomText);
50920
50949
  }
50921
50950
  }}
50922
50951
  />
50923
50952
  <dees-button
50924
50953
  size="sm"
50925
50954
  ?disabled=${disabled || !this.effectiveCustomText.trim() && !this.effectiveSelected.size}
50926
- @clicked=${() => {
50927
- const answers = [...this.effectiveSelected];
50928
- if (this.effectiveCustomText.trim()) answers.push(this.effectiveCustomText.trim());
50929
- this.respond(answers);
50930
- }}
50955
+ @clicked=${() => this.answerQuestion([...this.effectiveSelected], this.effectiveCustomText)}
50931
50956
  >${this.t("question.send")}</dees-button>
50932
50957
  </div>
50933
50958
  ` : ""}
@@ -50937,7 +50962,7 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
50937
50962
  type="accent"
50938
50963
  size="sm"
50939
50964
  ?disabled=${disabled || !this.effectiveSelected.size}
50940
- @clicked=${() => this.respond([...this.effectiveSelected])}
50965
+ @clicked=${() => this.answerQuestion([...this.effectiveSelected], "")}
50941
50966
  >${this.t("question.confirm")}</dees-button>
50942
50967
  </div>
50943
50968
  ` : ""}
@@ -51274,9 +51299,16 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
51274
51299
  if (this.viewState) this.viewState.selected = [...next];
51275
51300
  return;
51276
51301
  }
51277
- this.respond([label]);
51302
+ this.answerQuestion([label], "");
51278
51303
  }
51279
- respond(answers) {
51304
+ /** Answers a question with the options chosen, by label, and the reader's own words. */
51305
+ answerQuestion(labelsArg, textArg) {
51306
+ const text = textArg.trim();
51307
+ const chosen = new Set(labelsArg);
51308
+ const optionIds = (this.request.options ?? []).filter((option) => chosen.has(option.label)).map((option) => option.id ?? option.label);
51309
+ this.respond(text ? [...labelsArg, text] : [...labelsArg], text ? { optionIds, text } : { optionIds });
51310
+ }
51311
+ respond(answers, questionAnswerArg = {}) {
51280
51312
  if (this.locked || !answers.length) return;
51281
51313
  const items = this.request.items ?? [];
51282
51314
  const confirming = answers[0] === "confirm";
@@ -51294,6 +51326,7 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
51294
51326
  const detail = {
51295
51327
  requestId: this.request.id,
51296
51328
  answers,
51329
+ ...questionAnswerArg,
51297
51330
  request: harnessWithoutCredentials(this.request)
51298
51331
  };
51299
51332
  if (leftOut.size > 0) detail.declinedItemIds = items.filter((item) => leftOut.has(item.id)).map((item) => item.id);
@@ -51306,21 +51339,35 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
51306
51339
  this.clearPersonEntries();
51307
51340
  }
51308
51341
  /**
51309
- * The host refused the answer it was sent, such as a confirmation its server turned down: the
51310
- * card waits for an answer again, keeps the changes the reader left out, and shows the host's
51311
- * `message` and the error of each value it names. What the person entered went with the answer
51312
- * and is entered anew. The refusal stands until the next answer, in the view state as well, so a
51313
- * card the transcript remounts still shows it. A question that is not a proposal, a card whose
51314
- * request carries the host's `response`, and one the host decided otherwise stay as they are: `false`.
51342
+ * The host refused the answer it was sent, such as a confirmation its server turned down or an
51343
+ * answer it could not save: the card waits for an answer again, keeps the options chosen, the
51344
+ * reader's own words and the changes left out, and shows the host's `message` and the error of
51345
+ * each value it names. What the person entered in `personFields` went with the answer and is
51346
+ * entered anew. The refusal stands until the next answer, in the view state as well, so a card
51347
+ * the transcript remounts still shows it. A card whose request carries the host's `response`,
51348
+ * and a proposal the host decided otherwise, stay as they are: `false`.
51315
51349
  */
51316
51350
  rejectResponse(rejectionArg = {}) {
51317
- if (this.request.kind !== "proposal" || this.request.response !== void 0) return false;
51318
- if (harnessProposalState(this.request, void 0) !== "pending") return false;
51351
+ if (this.request.response !== void 0) return false;
51352
+ if (this.request.kind === "proposal" && harnessProposalState(this.request, void 0) !== "pending") return false;
51319
51353
  this.answered = void 0;
51320
51354
  if (this.viewState) this.viewState.answered = void 0;
51321
51355
  this.setRejection(rejectionArg);
51322
51356
  return true;
51323
51357
  }
51358
+ /**
51359
+ * Puts the focus on a question's first option, or on the field for the reader's own words where
51360
+ * it has none, with `options` as `focus()` takes them (`preventScroll` for a host that scrolls the
51361
+ * card into view itself). `false` for a proposal and for a card that takes no answer.
51362
+ */
51363
+ async focusAnswer(options) {
51364
+ await this.updateComplete;
51365
+ if (this.request.kind === "proposal" || this.locked) return false;
51366
+ const control = this.shadowRoot?.querySelector(".option, .customRow input");
51367
+ if (!control) return false;
51368
+ control.focus(options);
51369
+ return true;
51370
+ }
51324
51371
  willUpdate(changedProperties) {
51325
51372
  super.willUpdate(changedProperties);
51326
51373
  const previous = changedProperties.get("request");
@@ -51346,6 +51393,8 @@ _init67 = __decoratorStart(_a65);
51346
51393
  _request2 = new WeakMap();
51347
51394
  _busy2 = new WeakMap();
51348
51395
  _viewState6 = new WeakMap();
51396
+ _frameless13 = new WeakMap();
51397
+ _readOnly = new WeakMap();
51349
51398
  _answered2 = new WeakMap();
51350
51399
  _selected = new WeakMap();
51351
51400
  _customText = new WeakMap();
@@ -51361,6 +51410,8 @@ _rejection = new WeakMap();
51361
51410
  __decorateElement(_init67, 4, "request", _request_dec2, _DeesHarnessQuestionCard, _request2);
51362
51411
  __decorateElement(_init67, 4, "busy", _busy_dec2, _DeesHarnessQuestionCard, _busy2);
51363
51412
  __decorateElement(_init67, 4, "viewState", _viewState_dec6, _DeesHarnessQuestionCard, _viewState6);
51413
+ __decorateElement(_init67, 4, "frameless", _frameless_dec13, _DeesHarnessQuestionCard, _frameless13);
51414
+ __decorateElement(_init67, 4, "readOnly", _readOnly_dec, _DeesHarnessQuestionCard, _readOnly);
51364
51415
  __decorateElement(_init67, 4, "answered", _answered_dec2, _DeesHarnessQuestionCard, _answered2);
51365
51416
  __decorateElement(_init67, 4, "selected", _selected_dec, _DeesHarnessQuestionCard, _selected);
51366
51417
  __decorateElement(_init67, 4, "customText", _customText_dec, _DeesHarnessQuestionCard, _customText);
@@ -51411,6 +51462,27 @@ __publicField(_DeesHarnessQuestionCard, "styles", [
51411
51462
  padding: 16px;
51412
51463
  }
51413
51464
 
51465
+ /* the host's surface and padding hold the card; its severity shows in the title's icon */
51466
+ /* with no padding of its own, a control's focus ring reaches past the card into the host's */
51467
+ :host([frameless]),
51468
+ :host([frameless]) .card {
51469
+ overflow: visible;
51470
+ }
51471
+
51472
+ :host([frameless]) .card {
51473
+ border: none;
51474
+ border-radius: 0;
51475
+ background: none;
51476
+ }
51477
+
51478
+ :host([frameless]) .body {
51479
+ padding: 0;
51480
+ }
51481
+
51482
+ :host([frameless]) dees-actionfooter {
51483
+ --dees-actionfooter-inset: 0px;
51484
+ }
51485
+
51414
51486
  .body > :last-child {
51415
51487
  margin-bottom: 0;
51416
51488
  }
@@ -68943,7 +69015,7 @@ var demoFunc61 = /* @__PURE__ */ __name(() => {
68943
69015
  }, "demoFunc");
68944
69016
 
68945
69017
  // ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.ts
68946
- var _canJumpToMatch_dec, _metrics_dec2, _filterMode_dec, _searchQuery_dec3, _frameless_dec13, _showMetrics_dec, _highlightKeywords_dec, _maxEntries_dec, _autoScroll_dec, _logEntries_dec, _meta_dec4, _label_dec7, _a89, _DeesChartLog_decorators, _init90, _label7, _meta4, _logEntries, _autoScroll, _maxEntries, _highlightKeywords, _showMetrics, _frameless13, _searchQuery3, _filterMode, _metrics2, _canJumpToMatch;
69018
+ var _canJumpToMatch_dec, _metrics_dec2, _filterMode_dec, _searchQuery_dec3, _frameless_dec14, _showMetrics_dec, _highlightKeywords_dec, _maxEntries_dec, _autoScroll_dec, _logEntries_dec, _meta_dec4, _label_dec7, _a89, _DeesChartLog_decorators, _init90, _label7, _meta4, _logEntries, _autoScroll, _maxEntries, _highlightKeywords, _showMetrics, _frameless14, _searchQuery3, _filterMode, _metrics2, _canJumpToMatch;
68947
69019
  var rateWindowMs = 1e4;
68948
69020
  var emptyMetrics = /* @__PURE__ */ __name(() => ({
68949
69021
  debug: 0,
@@ -68972,7 +69044,7 @@ var hiddenPlaceholder = /* @__PURE__ */ __name((countArg, tArg) => `${sgr.dim}${
68972
69044
  `, "hiddenPlaceholder");
68973
69045
  var sameEntry = /* @__PURE__ */ __name((oneArg, otherArg) => otherArg !== void 0 && oneArg.timestamp === otherArg.timestamp && oneArg.level === otherArg.level && oneArg.message === otherArg.message && oneArg.source === otherArg.source, "sameEntry");
68974
69046
  _DeesChartLog_decorators = [customElement("dees-chart-log")];
68975
- var _DeesChartLog = class _DeesChartLog extends (_a89 = DeesElement, _label_dec7 = [n({ reflect: true })], _meta_dec4 = [n({ reflect: true })], _logEntries_dec = [n({ type: Array })], _autoScroll_dec = [n({ type: Boolean, reflect: true })], _maxEntries_dec = [n({ type: Number, reflect: true })], _highlightKeywords_dec = [n({ type: Array })], _showMetrics_dec = [n({ type: Boolean, reflect: true })], _frameless_dec13 = [n({ type: Boolean, reflect: true })], _searchQuery_dec3 = [r2()], _filterMode_dec = [r2()], _metrics_dec2 = [r2()], _canJumpToMatch_dec = [r2()], _a89) {
69047
+ var _DeesChartLog = class _DeesChartLog extends (_a89 = DeesElement, _label_dec7 = [n({ reflect: true })], _meta_dec4 = [n({ reflect: true })], _logEntries_dec = [n({ type: Array })], _autoScroll_dec = [n({ type: Boolean, reflect: true })], _maxEntries_dec = [n({ type: Number, reflect: true })], _highlightKeywords_dec = [n({ type: Array })], _showMetrics_dec = [n({ type: Boolean, reflect: true })], _frameless_dec14 = [n({ type: Boolean, reflect: true })], _searchQuery_dec3 = [r2()], _filterMode_dec = [r2()], _metrics_dec2 = [r2()], _canJumpToMatch_dec = [r2()], _a89) {
68976
69048
  constructor() {
68977
69049
  super();
68978
69050
  __publicField(this, "t", dcLocalize(this));
@@ -68983,7 +69055,7 @@ var _DeesChartLog = class _DeesChartLog extends (_a89 = DeesElement, _label_dec7
68983
69055
  __privateAdd(this, _maxEntries, __runInitializers(_init90, 24, this, 1e4)), __runInitializers(_init90, 27, this);
68984
69056
  __privateAdd(this, _highlightKeywords, __runInitializers(_init90, 28, this, [])), __runInitializers(_init90, 31, this);
68985
69057
  __privateAdd(this, _showMetrics, __runInitializers(_init90, 32, this, true)), __runInitializers(_init90, 35, this);
68986
- __privateAdd(this, _frameless13, __runInitializers(_init90, 36, this, false)), __runInitializers(_init90, 39, this);
69058
+ __privateAdd(this, _frameless14, __runInitializers(_init90, 36, this, false)), __runInitializers(_init90, 39, this);
68987
69059
  __privateAdd(this, _searchQuery3, __runInitializers(_init90, 40, this, "")), __runInitializers(_init90, 43, this);
68988
69060
  __privateAdd(this, _filterMode, __runInitializers(_init90, 44, this, false)), __runInitializers(_init90, 47, this);
68989
69061
  __privateAdd(this, _metrics2, __runInitializers(_init90, 48, this, emptyMetrics())), __runInitializers(_init90, 51, this);
@@ -69404,7 +69476,7 @@ _autoScroll = new WeakMap();
69404
69476
  _maxEntries = new WeakMap();
69405
69477
  _highlightKeywords = new WeakMap();
69406
69478
  _showMetrics = new WeakMap();
69407
- _frameless13 = new WeakMap();
69479
+ _frameless14 = new WeakMap();
69408
69480
  _searchQuery3 = new WeakMap();
69409
69481
  _filterMode = new WeakMap();
69410
69482
  _metrics2 = new WeakMap();
@@ -69416,7 +69488,7 @@ __decorateElement(_init90, 4, "autoScroll", _autoScroll_dec, _DeesChartLog, _aut
69416
69488
  __decorateElement(_init90, 4, "maxEntries", _maxEntries_dec, _DeesChartLog, _maxEntries);
69417
69489
  __decorateElement(_init90, 4, "highlightKeywords", _highlightKeywords_dec, _DeesChartLog, _highlightKeywords);
69418
69490
  __decorateElement(_init90, 4, "showMetrics", _showMetrics_dec, _DeesChartLog, _showMetrics);
69419
- __decorateElement(_init90, 4, "frameless", _frameless_dec13, _DeesChartLog, _frameless13);
69491
+ __decorateElement(_init90, 4, "frameless", _frameless_dec14, _DeesChartLog, _frameless14);
69420
69492
  __decorateElement(_init90, 4, "searchQuery", _searchQuery_dec3, _DeesChartLog, _searchQuery3);
69421
69493
  __decorateElement(_init90, 4, "filterMode", _filterMode_dec, _DeesChartLog, _filterMode);
69422
69494
  __decorateElement(_init90, 4, "metrics", _metrics_dec2, _DeesChartLog, _metrics2);
@@ -70776,7 +70848,7 @@ var demoFunc66 = /* @__PURE__ */ __name(() => demoPage(
70776
70848
  ), "demoFunc");
70777
70849
 
70778
70850
  // ts_web/elements/00group-dataview/dees-thread/dees-thread.ts
70779
- var _postErrors_dec, _postingThreads_dec, _revealed_dec, _timeFormat_dec3, _collapseAfter_dec, _error_dec3, _loading_dec7, _view_dec, _readOnlyReason_dec, _readOnly_dec, _placeholder_dec9, _draft_dec2, _referenceSearchLabel_dec2, _searchReferences_dec3, _format_dec2, _composerInfo_dec, _composerActions_dec, _submitLabel_dec, _onSubmit_dec, _currentUser_dec, _events_dec4, _entries_dec3, _threadId_dec, _a96, _DeesThread_decorators, _init97, _threadId, _entries3, _events4, _currentUser, _onSubmit, _submitLabel, _composerActions, _composerInfo, _format2, _searchReferences3, _referenceSearchLabel2, _draft2, _placeholder9, _readOnly, _readOnlyReason, _view, _loading7, _error3, _collapseAfter, _timeFormat3, _revealed, _postingThreads, _postErrors;
70851
+ var _postErrors_dec, _postingThreads_dec, _revealed_dec, _timeFormat_dec3, _collapseAfter_dec, _error_dec3, _loading_dec7, _view_dec, _readOnlyReason_dec, _readOnly_dec2, _placeholder_dec9, _draft_dec2, _referenceSearchLabel_dec2, _searchReferences_dec3, _format_dec2, _composerInfo_dec, _composerActions_dec, _submitLabel_dec, _onSubmit_dec, _currentUser_dec, _events_dec4, _entries_dec3, _threadId_dec, _a96, _DeesThread_decorators, _init97, _threadId, _entries3, _events4, _currentUser, _onSubmit, _submitLabel, _composerActions, _composerInfo, _format2, _searchReferences3, _referenceSearchLabel2, _draft2, _placeholder9, _readOnly2, _readOnlyReason, _view, _loading7, _error3, _collapseAfter, _timeFormat3, _revealed, _postingThreads, _postErrors;
70780
70852
  var eventIcons = {
70781
70853
  opened: "lucide:CircleDot",
70782
70854
  answered: "lucide:Check",
@@ -70822,7 +70894,7 @@ var safeHref2 = /* @__PURE__ */ __name((hrefArg) => {
70822
70894
  }
70823
70895
  }, "safeHref");
70824
70896
  _DeesThread_decorators = [customElement("dees-thread")];
70825
- var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec = [n({ type: String, reflect: true })], _entries_dec3 = [n({ attribute: false })], _events_dec4 = [n({ attribute: false })], _currentUser_dec = [n({ attribute: false })], _onSubmit_dec = [n({ attribute: false })], _submitLabel_dec = [n({ type: String, reflect: true })], _composerActions_dec = [n({ attribute: false })], _composerInfo_dec = [n({ attribute: false })], _format_dec2 = [n({ type: String, reflect: true })], _searchReferences_dec3 = [n({ attribute: false })], _referenceSearchLabel_dec2 = [n({ type: String, reflect: true })], _draft_dec2 = [n({ attribute: false })], _placeholder_dec9 = [n({ type: String, reflect: true })], _readOnly_dec = [n({ type: Boolean, reflect: true })], _readOnlyReason_dec = [n({ type: String, reflect: true })], _view_dec = [n({ type: String, reflect: true })], _loading_dec7 = [n({ type: Boolean, reflect: true })], _error_dec3 = [n({ type: String, reflect: true })], _collapseAfter_dec = [n({ type: Number, reflect: true })], _timeFormat_dec3 = [n({ type: String, reflect: true })], _revealed_dec = [r2()], _postingThreads_dec = [r2()], _postErrors_dec = [r2()], _a96) {
70897
+ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec = [n({ type: String, reflect: true })], _entries_dec3 = [n({ attribute: false })], _events_dec4 = [n({ attribute: false })], _currentUser_dec = [n({ attribute: false })], _onSubmit_dec = [n({ attribute: false })], _submitLabel_dec = [n({ type: String, reflect: true })], _composerActions_dec = [n({ attribute: false })], _composerInfo_dec = [n({ attribute: false })], _format_dec2 = [n({ type: String, reflect: true })], _searchReferences_dec3 = [n({ attribute: false })], _referenceSearchLabel_dec2 = [n({ type: String, reflect: true })], _draft_dec2 = [n({ attribute: false })], _placeholder_dec9 = [n({ type: String, reflect: true })], _readOnly_dec2 = [n({ type: Boolean, reflect: true })], _readOnlyReason_dec = [n({ type: String, reflect: true })], _view_dec = [n({ type: String, reflect: true })], _loading_dec7 = [n({ type: Boolean, reflect: true })], _error_dec3 = [n({ type: String, reflect: true })], _collapseAfter_dec = [n({ type: Number, reflect: true })], _timeFormat_dec3 = [n({ type: String, reflect: true })], _revealed_dec = [r2()], _postingThreads_dec = [r2()], _postErrors_dec = [r2()], _a96) {
70826
70898
  constructor() {
70827
70899
  super(...arguments);
70828
70900
  __publicField(this, "t", dcLocalize(this));
@@ -70839,7 +70911,7 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70839
70911
  __privateAdd(this, _referenceSearchLabel2, __runInitializers(_init97, 48, this, "")), __runInitializers(_init97, 51, this);
70840
70912
  __privateAdd(this, _draft2, __runInitializers(_init97, 52, this, "")), __runInitializers(_init97, 55, this);
70841
70913
  __privateAdd(this, _placeholder9, __runInitializers(_init97, 56, this, "")), __runInitializers(_init97, 59, this);
70842
- __privateAdd(this, _readOnly, __runInitializers(_init97, 60, this, false)), __runInitializers(_init97, 63, this);
70914
+ __privateAdd(this, _readOnly2, __runInitializers(_init97, 60, this, false)), __runInitializers(_init97, 63, this);
70843
70915
  __privateAdd(this, _readOnlyReason, __runInitializers(_init97, 64, this, "")), __runInitializers(_init97, 67, this);
70844
70916
  __privateAdd(this, _view, __runInitializers(_init97, 68, this, "full")), __runInitializers(_init97, 71, this);
70845
70917
  __privateAdd(this, _loading7, __runInitializers(_init97, 72, this, false)), __runInitializers(_init97, 75, this);
@@ -70910,7 +70982,9 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70910
70982
  const collapsing = this.collapseAfter > 0 && items.length > this.collapseAfter && collapsedHead + this.revealed + collapsedTail < items.length;
70911
70983
  const head = collapsing ? items.slice(0, collapsedHead + this.revealed) : items;
70912
70984
  const tail = collapsing ? items.slice(items.length - collapsedTail) : [];
70913
- const hidden = collapsing ? items.length - head.length - tail.length : 0;
70985
+ const middle = collapsing ? items.slice(head.length, items.length - tail.length) : [];
70986
+ const waiting = middle.filter((item) => item.type === "entry" && item.entry.attention);
70987
+ const hidden = middle.length - waiting.length;
70914
70988
  const key = /* @__PURE__ */ __name((item) => `${item.type}:${item.id}`, "key");
70915
70989
  const renderItem = /* @__PURE__ */ __name((list) => (item, index) => {
70916
70990
  const tight = item.type === "event" && index > 0 && list[index - 1].type === "event";
@@ -70925,6 +70999,7 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70925
70999
  ${items.length ? b`<ol class="timeline" aria-label=${this.t("thread.timeline")} aria-busy=${this.loading ? "true" : "false"}>
70926
71000
  ${directives_exports.repeat(head, key, renderItem(head))}
70927
71001
  ${hidden ? this.renderCollapsed(hidden) : ""}
71002
+ ${directives_exports.repeat(waiting, key, renderItem(waiting))}
70928
71003
  ${directives_exports.repeat(tail, key, renderItem(tail))}
70929
71004
  </ol>` : ""}
70930
71005
  ${this.view === "entries" || !items.length && (this.loading || this.error) ? "" : this.readOnly ? this.renderReadOnly(!items.length) : this.renderComposer(!items.length)}
@@ -70948,6 +71023,23 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70948
71023
  focusComposer() {
70949
71024
  this.shadowRoot?.querySelector(".composerInput")?.focus();
70950
71025
  }
71026
+ /**
71027
+ * Scrolls the entry `id` into view, showing the collapsed middle down to it first if it lies
71028
+ * there. Resolves `false` for an entry the thread does not have.
71029
+ */
71030
+ async revealEntry(id) {
71031
+ if (this.view === "composer") return false;
71032
+ const items = this.items();
71033
+ const index = items.findIndex((item2) => item2.type === "entry" && item2.id === id);
71034
+ if (index < 0) return false;
71035
+ const target = items[index];
71036
+ const hidden = this.collapseAfter > 0 && items.length > this.collapseAfter && index >= collapsedHead + this.revealed && index < items.length - collapsedTail && !(target.type === "entry" && target.entry.attention);
71037
+ if (hidden) this.revealed = index + 1 - collapsedHead;
71038
+ await this.updateComplete;
71039
+ const item = [...this.shadowRoot?.querySelectorAll("li[data-entry-id]") ?? []].find((element) => element.dataset.entryId === id);
71040
+ item?.scrollIntoView({ block: "nearest", behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth" });
71041
+ return item !== void 0;
71042
+ }
70951
71043
  // --- Items ---
70952
71044
  items() {
70953
71045
  const items = [
@@ -70966,9 +71058,10 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70966
71058
  const agent2 = entry.author.kind === "agent";
70967
71059
  const refused = entry.delivery === "refused";
70968
71060
  const pending = entry.delivery === "pending";
71061
+ const attention = entry.attention && !entry.delivery ? entry.attention : "";
70969
71062
  return b`<li class="item entry ${first ? "first" : ""}" data-entry-id=${entry.id}>
70970
71063
  ${this.renderAvatar(entry.author, "railAvatar")}
70971
- <dees-tile class="entryTile ${refused ? "refused" : ""} ${pending ? "pending" : ""}">
71064
+ <dees-tile class="entryTile ${refused ? "refused" : ""} ${pending ? "pending" : ""} ${attention ? "attention" : ""}">
70972
71065
  <div slot="header" class="entryHeader">
70973
71066
  ${this.renderAvatar(entry.author, "headerAvatar")}
70974
71067
  <span class="name">${entry.author.name}</span>
@@ -70978,6 +71071,7 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70978
71071
  ${this.renderEntryState(entry)}
70979
71072
  ${entry.editedAt && !entry.delivery ? this.renderEdited(entry.editedAt) : ""}
70980
71073
  <span class="spacer"></span>
71074
+ ${attention ? b`<dees-badge class="attentionBadge" type="warning" size="compact" .text=${attention}></dees-badge>` : ""}
70981
71075
  ${entry.actions?.length && !entry.delivery ? b`<dees-button class="menuButton" size="icon" type="ghost" icon="lucide:Ellipsis"
70982
71076
  text=${this.t("thread.entryMenu")} title=${this.t("thread.entryMenu")} .ariaHasPopup=${"menu"}
70983
71077
  @clicked=${(event) => {
@@ -70986,7 +71080,7 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70986
71080
  ></dees-button>` : ""}
70987
71081
  </div>
70988
71082
  <div class="entryBody">
70989
- ${this.renderBody(entry)}
71083
+ ${entry.slot ? b`<slot name=${entry.slot}>${this.renderBody(entry)}</slot>` : this.renderBody(entry)}
70990
71084
  ${entry.attachments?.length ? this.renderAttachments(entry, entry.attachments) : ""}
70991
71085
  ${refused && entry.deliveryError ? b`<p class="deliveryError"><dees-icon icon="lucide:CircleAlert" .iconSize=${14} aria-hidden="true"></dees-icon><span>${entry.deliveryError}</span></p>` : ""}
70992
71086
  </div>
@@ -71317,7 +71411,7 @@ _searchReferences3 = new WeakMap();
71317
71411
  _referenceSearchLabel2 = new WeakMap();
71318
71412
  _draft2 = new WeakMap();
71319
71413
  _placeholder9 = new WeakMap();
71320
- _readOnly = new WeakMap();
71414
+ _readOnly2 = new WeakMap();
71321
71415
  _readOnlyReason = new WeakMap();
71322
71416
  _view = new WeakMap();
71323
71417
  _loading7 = new WeakMap();
@@ -71340,7 +71434,7 @@ __decorateElement(_init97, 4, "searchReferences", _searchReferences_dec3, _DeesT
71340
71434
  __decorateElement(_init97, 4, "referenceSearchLabel", _referenceSearchLabel_dec2, _DeesThread, _referenceSearchLabel2);
71341
71435
  __decorateElement(_init97, 4, "draft", _draft_dec2, _DeesThread, _draft2);
71342
71436
  __decorateElement(_init97, 4, "placeholder", _placeholder_dec9, _DeesThread, _placeholder9);
71343
- __decorateElement(_init97, 4, "readOnly", _readOnly_dec, _DeesThread, _readOnly);
71437
+ __decorateElement(_init97, 4, "readOnly", _readOnly_dec2, _DeesThread, _readOnly2);
71344
71438
  __decorateElement(_init97, 4, "readOnlyReason", _readOnlyReason_dec, _DeesThread, _readOnlyReason);
71345
71439
  __decorateElement(_init97, 4, "view", _view_dec, _DeesThread, _view);
71346
71440
  __decorateElement(_init97, 4, "loading", _loading_dec7, _DeesThread, _loading7);
@@ -71659,6 +71753,10 @@ __publicField(_DeesThread, "styles", [
71659
71753
  border-color: var(--dees-color-accent-error);
71660
71754
  }
71661
71755
 
71756
+ .entryTile.attention::part(outer) {
71757
+ border-color: var(--dees-color-accent-warning);
71758
+ }
71759
+
71662
71760
  .entryTile.refused::part(content),
71663
71761
  .composerTile::part(content) {
71664
71762
  border-bottom-color: transparent;
@@ -73224,7 +73322,7 @@ var _DeesHarnessConversationPicker = class _DeesHarnessConversationPicker extend
73224
73322
  * cancelled. Focus returns to whatever had it when the picker opened.
73225
73323
  */
73226
73324
  static async pick(optionsArg = {}) {
73227
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-VOIWY235.js");
73325
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-YOGT7PSU.js");
73228
73326
  const picker = new _DeesHarnessConversationPicker();
73229
73327
  picker.sessions = optionsArg.sessions ?? [];
73230
73328
  picker.groups = optionsArg.groups ?? [];
@@ -73685,7 +73783,7 @@ var handleResourceContext = /* @__PURE__ */ __name(async (event) => {
73685
73783
  list.selectedResourceId = event.detail.resource.id;
73686
73784
  }, "handleResourceContext");
73687
73785
  var openModal = /* @__PURE__ */ __name(async (sessions, groups) => {
73688
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-VOIWY235.js");
73786
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-YOGT7PSU.js");
73689
73787
  const content = document.createElement("dees-harness-session-list");
73690
73788
  content.sessions = sessions;
73691
73789
  content.groups = groups;
@@ -76485,6 +76583,98 @@ __publicField(_DeesHarnessSidebar, "styles", [
76485
76583
  __runInitializers(_init103, 1, _DeesHarnessSidebar);
76486
76584
  var DeesHarnessSidebar = _DeesHarnessSidebar;
76487
76585
 
76586
+ // ts_web/elements/00group-kanban/kanban.helpers.ts
76587
+ var kanbanInitials = /* @__PURE__ */ __name((name) => name.trim().split(/\s+/).map((part) => part[0]).join("").slice(0, 2), "kanbanInitials");
76588
+ var kanbanPriorityIcon = /* @__PURE__ */ __name((priority) => priority === "urgent" ? "lucide:ChevronsUp" : priority === "high" ? "lucide:ChevronUp" : priority === "low" ? "lucide:ChevronDown" : "lucide:Minus", "kanbanPriorityIcon");
76589
+ var sortKanbanTickets = /* @__PURE__ */ __name((tickets) => [...tickets].sort((a, b2) => a.order - b2.order || a.id.localeCompare(b2.id)), "sortKanbanTickets");
76590
+ var ticketLabel = /* @__PURE__ */ __name((ticket) => `#${ticket.key} ${ticket.title}`, "ticketLabel");
76591
+ var ticketDraft = /* @__PURE__ */ __name((ticket) => ({
76592
+ title: ticket.title,
76593
+ description: ticket.description ?? "",
76594
+ priority: ticket.priority ?? "none",
76595
+ assigneeId: ticket.assignee?.id ?? "",
76596
+ parentId: ticket.parentId ?? "",
76597
+ labels: [...ticket.labels ?? []],
76598
+ project: ticket.project ?? "",
76599
+ ...ticket.revision === void 0 ? {} : { revision: ticket.revision }
76600
+ }), "ticketDraft");
76601
+ var kanbanTicketVersion = /* @__PURE__ */ __name((ticket) => ticket?.revision !== void 0 ? `revision:${ticket.revision}` : ticket?.updatedAt, "kanbanTicketVersion");
76602
+ var kanbanDraftFields = [
76603
+ "title",
76604
+ "description",
76605
+ "project",
76606
+ "priority",
76607
+ "assigneeId",
76608
+ "parentId",
76609
+ "labels"
76610
+ ];
76611
+ var sameDraftField = /* @__PURE__ */ __name((field, a, b2) => field === "labels" ? sameKanbanLabels(a.labels ?? [], b2.labels ?? []) : (a[field] ?? "") === (b2[field] ?? ""), "sameDraftField");
76612
+ var kanbanDraftChanges = /* @__PURE__ */ __name((base, draft, latest) => Object.fromEntries(
76613
+ kanbanDraftFields.filter((field) => draft[field] !== void 0 && !sameDraftField(field, draft, base) && !sameDraftField(field, draft, latest)).map((field) => [field, draft[field]])
76614
+ ), "kanbanDraftChanges");
76615
+ var isKanbanRevisionConflict = /* @__PURE__ */ __name((error) => error instanceof Error && error.code === "revision_conflict", "isKanbanRevisionConflict");
76616
+ var kanbanProjectName = /* @__PURE__ */ __name((projects, id) => projects.find((project2) => project2.id === id)?.name ?? id, "kanbanProjectName");
76617
+ var kanbanProjects = /* @__PURE__ */ __name((projects, tickets) => {
76618
+ const known = new Set(projects.map((project2) => project2.id));
76619
+ const named = [...new Set(tickets.map((ticket) => ticket.project).filter(Boolean))].filter((id) => !known.has(id)).sort((a, b2) => a.localeCompare(b2)).map((id) => ({ id, name: id }));
76620
+ return [...projects, ...named];
76621
+ }, "kanbanProjects");
76622
+ var sameKanbanLabels = /* @__PURE__ */ __name((a, b2) => a.length === b2.length && [...a].sort().join("\n") === [...b2].sort().join("\n"), "sameKanbanLabels");
76623
+ var kanbanHref = /* @__PURE__ */ __name((url) => {
76624
+ if (!url || /[\u0000- \u007f\\]/.test(url)) return void 0;
76625
+ const scheme = /^([a-z][a-z0-9+.-]*):/i.exec(url)?.[1].toLowerCase();
76626
+ return !scheme || scheme === "http" || scheme === "https" || scheme === "mailto" ? url : void 0;
76627
+ }, "kanbanHref");
76628
+ var kanbanShortSha = /* @__PURE__ */ __name((sha) => sha.slice(0, 7), "kanbanShortSha");
76629
+ var kanbanMoment = /* @__PURE__ */ __name((format, date2) => format.instant(date2, { date: "long", time: "short" }), "kanbanMoment");
76630
+ var kanbanLinkHost = /* @__PURE__ */ __name((url) => {
76631
+ try {
76632
+ return new URL(url).host.replace(/^www\./, "") || url;
76633
+ } catch {
76634
+ return url;
76635
+ }
76636
+ }, "kanbanLinkHost");
76637
+ var kanbanLinkIcon = /* @__PURE__ */ __name((link) => link.kind === "branch" ? "lucide:GitBranch" : link.kind === "commit" ? "lucide:GitCommitHorizontal" : link.kind === "release" ? "lucide:Package" : "lucide:Link", "kanbanLinkIcon");
76638
+ var kanbanLinkText = /* @__PURE__ */ __name((link) => link.kind === "branch" ? `${link.repo} ${link.branch}` : link.kind === "commit" ? `${link.repo} ${kanbanShortSha(link.sha)}` : link.kind === "release" ? `${link.package}@${link.version}` : link.label || link.url, "kanbanLinkText");
76639
+ var kanbanEvent = /* @__PURE__ */ __name((owner, name, detail) => {
76640
+ owner.dispatchEvent(new CustomEvent(name, { detail, bubbles: true, composed: true }));
76641
+ }, "kanbanEvent");
76642
+ var kanbanError = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "kanbanError");
76643
+ var isKanbanQuestion = /* @__PURE__ */ __name((item) => item.kind === "question", "isKanbanQuestion");
76644
+ var kanbanItemKey = /* @__PURE__ */ __name((item) => `${item.kind ?? "comment"}:${item.id}`, "kanbanItemKey");
76645
+ var kanbanOpenQuestionLabel = "openQuestion";
76646
+ var kanbanAutoLabel = /* @__PURE__ */ __name((t, definitions, label) => {
76647
+ const own = label === kanbanOpenQuestionLabel ? {
76648
+ label,
76649
+ name: t("kanban.autoLabelOpenQuestion"),
76650
+ description: t("kanban.autoLabelOpenQuestionDescription"),
76651
+ iconName: "lucide:MessageCircleQuestionMark",
76652
+ tone: "warning"
76653
+ } : void 0;
76654
+ const host = definitions.find((item) => item.label === label);
76655
+ const value = /* @__PURE__ */ __name((key) => host?.[key] ?? own?.[key], "value");
76656
+ return {
76657
+ label,
76658
+ name: value("name") || label,
76659
+ description: value("description"),
76660
+ iconName: value("iconName") || "lucide:Sparkles",
76661
+ tone: value("tone") ?? "neutral"
76662
+ };
76663
+ }, "kanbanAutoLabel");
76664
+ var renderKanbanAutoLabels = /* @__PURE__ */ __name((t, definitions, labels) => {
76665
+ if (!labels?.length) return "";
76666
+ return b`<span class="auto-labels" role="list" aria-label=${t("kanban.autoLabels")}>${labels.map((label) => {
76667
+ const view = kanbanAutoLabel(t, definitions, label);
76668
+ return b`<span
76669
+ class="badge auto ${view.tone}"
76670
+ role="listitem"
76671
+ data-auto-label=${label}
76672
+ title=${view.description ?? view.name}
76673
+ ><dees-icon .icon=${view.iconName} iconSize="12" aria-hidden="true"></dees-icon><span class="badge-text"
76674
+ >${view.name}</span></span>`;
76675
+ })}</span>`;
76676
+ }, "renderKanbanAutoLabels");
76677
+
76488
76678
  // ts_web/elements/00group-kanban/kanban.styles.ts
76489
76679
  var kanbanStyles = [
76490
76680
  themeDefaultStyles,
@@ -76575,6 +76765,37 @@ var kanbanStyles = [
76575
76765
  color: var(--dees-color-text-secondary);
76576
76766
  }
76577
76767
 
76768
+ /* AutoLabels: set by the host and never edited, so outlined where a label is filled. */
76769
+ .auto-labels {
76770
+ display: inline-flex;
76771
+ flex-wrap: wrap;
76772
+ gap: 6px;
76773
+ min-width: 0;
76774
+ max-width: 100%;
76775
+ }
76776
+
76777
+ .badge.auto {
76778
+ background: transparent;
76779
+ box-shadow: inset 0 0 0 var(--dees-line-width-hairline) var(--dees-color-border-strong);
76780
+ }
76781
+
76782
+ .badge.auto.warning {
76783
+ color: var(--dees-color-text-warning);
76784
+ box-shadow: inset 0 0 0 var(--dees-line-width-hairline) var(--dees-color-accent-warning);
76785
+ }
76786
+
76787
+ .badge.auto dees-icon {
76788
+ flex: 0 0 auto;
76789
+ font-size: var(--dees-icon-size-xs);
76790
+ }
76791
+
76792
+ .badge-text {
76793
+ min-width: 0;
76794
+ overflow: hidden;
76795
+ white-space: nowrap;
76796
+ text-overflow: ellipsis;
76797
+ }
76798
+
76578
76799
  .avatar {
76579
76800
  flex: 0 0 auto;
76580
76801
  width: 24px;
@@ -76690,68 +76911,10 @@ var kanbanFeedStyles = i`
76690
76911
  }
76691
76912
  `;
76692
76913
 
76693
- // ts_web/elements/00group-kanban/kanban.helpers.ts
76694
- var kanbanInitials = /* @__PURE__ */ __name((name) => name.trim().split(/\s+/).map((part) => part[0]).join("").slice(0, 2), "kanbanInitials");
76695
- var kanbanPriorityIcon = /* @__PURE__ */ __name((priority) => priority === "urgent" ? "lucide:ChevronsUp" : priority === "high" ? "lucide:ChevronUp" : priority === "low" ? "lucide:ChevronDown" : "lucide:Minus", "kanbanPriorityIcon");
76696
- var sortKanbanTickets = /* @__PURE__ */ __name((tickets) => [...tickets].sort((a, b2) => a.order - b2.order || a.id.localeCompare(b2.id)), "sortKanbanTickets");
76697
- var ticketLabel = /* @__PURE__ */ __name((ticket) => `#${ticket.key} ${ticket.title}`, "ticketLabel");
76698
- var ticketDraft = /* @__PURE__ */ __name((ticket) => ({
76699
- title: ticket.title,
76700
- description: ticket.description ?? "",
76701
- priority: ticket.priority ?? "none",
76702
- assigneeId: ticket.assignee?.id ?? "",
76703
- parentId: ticket.parentId ?? "",
76704
- labels: [...ticket.labels ?? []],
76705
- project: ticket.project ?? "",
76706
- ...ticket.revision === void 0 ? {} : { revision: ticket.revision }
76707
- }), "ticketDraft");
76708
- var kanbanTicketVersion = /* @__PURE__ */ __name((ticket) => ticket?.revision !== void 0 ? `revision:${ticket.revision}` : ticket?.updatedAt, "kanbanTicketVersion");
76709
- var kanbanDraftFields = [
76710
- "title",
76711
- "description",
76712
- "project",
76713
- "priority",
76714
- "assigneeId",
76715
- "parentId",
76716
- "labels"
76717
- ];
76718
- var sameDraftField = /* @__PURE__ */ __name((field, a, b2) => field === "labels" ? sameKanbanLabels(a.labels ?? [], b2.labels ?? []) : (a[field] ?? "") === (b2[field] ?? ""), "sameDraftField");
76719
- var kanbanDraftChanges = /* @__PURE__ */ __name((base, draft, latest) => Object.fromEntries(
76720
- kanbanDraftFields.filter((field) => draft[field] !== void 0 && !sameDraftField(field, draft, base) && !sameDraftField(field, draft, latest)).map((field) => [field, draft[field]])
76721
- ), "kanbanDraftChanges");
76722
- var isKanbanRevisionConflict = /* @__PURE__ */ __name((error) => error instanceof Error && error.code === "revision_conflict", "isKanbanRevisionConflict");
76723
- var kanbanProjectName = /* @__PURE__ */ __name((projects, id) => projects.find((project2) => project2.id === id)?.name ?? id, "kanbanProjectName");
76724
- var kanbanProjects = /* @__PURE__ */ __name((projects, tickets) => {
76725
- const known = new Set(projects.map((project2) => project2.id));
76726
- const named = [...new Set(tickets.map((ticket) => ticket.project).filter(Boolean))].filter((id) => !known.has(id)).sort((a, b2) => a.localeCompare(b2)).map((id) => ({ id, name: id }));
76727
- return [...projects, ...named];
76728
- }, "kanbanProjects");
76729
- var sameKanbanLabels = /* @__PURE__ */ __name((a, b2) => a.length === b2.length && [...a].sort().join("\n") === [...b2].sort().join("\n"), "sameKanbanLabels");
76730
- var kanbanHref = /* @__PURE__ */ __name((url) => {
76731
- if (!url || /[\u0000- \u007f\\]/.test(url)) return void 0;
76732
- const scheme = /^([a-z][a-z0-9+.-]*):/i.exec(url)?.[1].toLowerCase();
76733
- return !scheme || scheme === "http" || scheme === "https" || scheme === "mailto" ? url : void 0;
76734
- }, "kanbanHref");
76735
- var kanbanShortSha = /* @__PURE__ */ __name((sha) => sha.slice(0, 7), "kanbanShortSha");
76736
- var kanbanMoment = /* @__PURE__ */ __name((format, date2) => format.instant(date2, { date: "long", time: "short" }), "kanbanMoment");
76737
- var kanbanLinkHost = /* @__PURE__ */ __name((url) => {
76738
- try {
76739
- return new URL(url).host.replace(/^www\./, "") || url;
76740
- } catch {
76741
- return url;
76742
- }
76743
- }, "kanbanLinkHost");
76744
- var kanbanLinkIcon = /* @__PURE__ */ __name((link) => link.kind === "branch" ? "lucide:GitBranch" : link.kind === "commit" ? "lucide:GitCommitHorizontal" : link.kind === "release" ? "lucide:Package" : "lucide:Link", "kanbanLinkIcon");
76745
- var kanbanLinkText = /* @__PURE__ */ __name((link) => link.kind === "branch" ? `${link.repo} ${link.branch}` : link.kind === "commit" ? `${link.repo} ${kanbanShortSha(link.sha)}` : link.kind === "release" ? `${link.package}@${link.version}` : link.label || link.url, "kanbanLinkText");
76746
- var kanbanEvent = /* @__PURE__ */ __name((owner, name, detail) => {
76747
- owner.dispatchEvent(new CustomEvent(name, { detail, bubbles: true, composed: true }));
76748
- }, "kanbanEvent");
76749
- var kanbanError = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "kanbanError");
76750
-
76751
76914
  // ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.ts
76752
- var _showHeader_dec2, _error_dec4, _readOnly_dec2, _loading_dec9, _addComment_dec, _view_dec2, _currentPerson_dec, _searchTickets_dec, _draft_dec3, _comments_dec, _ticketId_dec, _a103, _DeesKanbanDiscussion_decorators, _init104, _ticketId, _comments, _draft3, _searchTickets, _currentPerson, _view2, _addComment, _loading9, _readOnly2, _error4, _showHeader2;
76915
+ var _answering_dec, _showHeader_dec2, _error_dec4, _readOnly_dec3, _loading_dec9, _answerQuestion_dec, _askQuestion_dec, _addComment_dec, _view_dec2, _currentPerson_dec, _searchTickets_dec, _draft_dec3, _comments_dec, _ticketId_dec, _a103, _DeesKanbanDiscussion_decorators, _init104, _ticketId, _comments, _draft3, _searchTickets, _currentPerson, _view2, _addComment, _askQuestion, _answerQuestion, _loading9, _readOnly3, _error4, _showHeader2, _answering;
76753
76916
  _DeesKanbanDiscussion_decorators = [customElement("dees-kanban-discussion")];
76754
- var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesElement, _ticketId_dec = [n({ type: String, reflect: true })], _comments_dec = [n({ attribute: false })], _draft_dec3 = [n({ attribute: false })], _searchTickets_dec = [n({ attribute: false })], _currentPerson_dec = [n({ attribute: false })], _view_dec2 = [n({ type: String, reflect: true })], _addComment_dec = [n({ attribute: false })], _loading_dec9 = [n({ type: Boolean, reflect: true })], _readOnly_dec2 = [n({ type: Boolean, reflect: true })], _error_dec4 = [n({ type: String, reflect: true })], _showHeader_dec2 = [n({ type: Boolean, reflect: true })], _a103) {
76917
+ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesElement, _ticketId_dec = [n({ type: String, reflect: true })], _comments_dec = [n({ attribute: false })], _draft_dec3 = [n({ attribute: false })], _searchTickets_dec = [n({ attribute: false })], _currentPerson_dec = [n({ attribute: false })], _view_dec2 = [n({ type: String, reflect: true })], _addComment_dec = [n({ attribute: false })], _askQuestion_dec = [n({ attribute: false })], _answerQuestion_dec = [n({ attribute: false })], _loading_dec9 = [n({ type: Boolean, reflect: true })], _readOnly_dec3 = [n({ type: Boolean, reflect: true })], _error_dec4 = [n({ type: String, reflect: true })], _showHeader_dec2 = [n({ type: Boolean, reflect: true })], _answering_dec = [r2()], _a103) {
76755
76918
  constructor() {
76756
76919
  super(...arguments);
76757
76920
  __publicField(this, "t", dcLocalize(this));
@@ -76762,19 +76925,39 @@ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesEle
76762
76925
  __privateAdd(this, _currentPerson, __runInitializers(_init104, 24, this)), __runInitializers(_init104, 27, this);
76763
76926
  __privateAdd(this, _view2, __runInitializers(_init104, 28, this, "full")), __runInitializers(_init104, 31, this);
76764
76927
  __privateAdd(this, _addComment, __runInitializers(_init104, 32, this)), __runInitializers(_init104, 35, this);
76765
- __privateAdd(this, _loading9, __runInitializers(_init104, 36, this, false)), __runInitializers(_init104, 39, this);
76766
- __privateAdd(this, _readOnly2, __runInitializers(_init104, 40, this, false)), __runInitializers(_init104, 43, this);
76767
- __privateAdd(this, _error4, __runInitializers(_init104, 44, this, "")), __runInitializers(_init104, 47, this);
76768
- __privateAdd(this, _showHeader2, __runInitializers(_init104, 48, this, true)), __runInitializers(_init104, 51, this);
76769
- /** The ticket's comments as the thread's entries, oldest first. */
76928
+ __privateAdd(this, _askQuestion, __runInitializers(_init104, 36, this)), __runInitializers(_init104, 39, this);
76929
+ __privateAdd(this, _answerQuestion, __runInitializers(_init104, 40, this)), __runInitializers(_init104, 43, this);
76930
+ __privateAdd(this, _loading9, __runInitializers(_init104, 44, this, false)), __runInitializers(_init104, 47, this);
76931
+ __privateAdd(this, _readOnly3, __runInitializers(_init104, 48, this, false)), __runInitializers(_init104, 51, this);
76932
+ __privateAdd(this, _error4, __runInitializers(_init104, 52, this, "")), __runInitializers(_init104, 55, this);
76933
+ __privateAdd(this, _showHeader2, __runInitializers(_init104, 56, this, true)), __runInitializers(_init104, 59, this);
76934
+ __privateAdd(this, _answering, __runInitializers(_init104, 60, this, /* @__PURE__ */ new Set())), __runInitializers(_init104, 63, this);
76935
+ /** The ticket's comments and questions as the thread's entries, oldest first. */
76770
76936
  __publicField(this, "threadEntries", []);
76937
+ /** The ticket's questions, oldest first, each with a card in the thread. */
76938
+ __publicField(this, "questions", []);
76939
+ /** Each question as its card asks it, kept while the question is unchanged. */
76940
+ __publicField(this, "cardRequests", /* @__PURE__ */ new WeakMap());
76941
+ __publicField(this, "askActions", []);
76771
76942
  /** The composer's Markdown the draft was read from, given back while the draft is unchanged. */
76772
76943
  __publicField(this, "draftSource");
76773
- /** Saves a comment; a refusal or a comment saved to another ticket stays in the composer. */
76774
- __publicField(this, "post", /* @__PURE__ */ __name(async ({ body }) => {
76944
+ /**
76945
+ * Saves a comment, or with "Ask as question" a question; a refusal, or a comment or question saved
76946
+ * to another ticket, stays in the composer.
76947
+ */
76948
+ __publicField(this, "post", /* @__PURE__ */ __name(async ({ body, action }) => {
76775
76949
  const ticketId = this.ticketId;
76950
+ if (!ticketId || typeof body !== "string") return;
76951
+ if (action === "ask") {
76952
+ const askQuestion2 = this.askQuestion;
76953
+ if (!askQuestion2) return;
76954
+ const question = await askQuestion2({ ticketId, question: body });
76955
+ if (question.ticketId !== ticketId) throw new Error(this.t("kanban.questionMismatch"));
76956
+ kanbanEvent(this, "kanban-question-added", { question, submittedBody: markdownToReferences(body) });
76957
+ return;
76958
+ }
76776
76959
  const addComment = this.addComment;
76777
- if (!ticketId || !addComment || typeof body !== "string") return;
76960
+ if (!addComment) return;
76778
76961
  const submittedBody = markdownToReferences(body);
76779
76962
  const comment = await addComment({ ticketId, body: submittedBody });
76780
76963
  if (comment.ticketId !== ticketId) throw new Error(this.t("kanban.commentMismatch"));
@@ -76783,13 +76966,67 @@ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesEle
76783
76966
  }
76784
76967
  willUpdate(changed3) {
76785
76968
  super.willUpdate(changed3);
76786
- if (!changed3.has("comments") && !changed3.has("ticketId")) return;
76787
- this.threadEntries = this.comments.filter((comment) => comment.ticketId === this.ticketId).sort((a, b2) => Date.parse(a.createdAt) - Date.parse(b2.createdAt)).map((comment) => ({
76788
- id: comment.id,
76789
- author: { id: comment.author.id, name: comment.author.name },
76790
- createdAt: comment.createdAt,
76791
- body: referencesToMarkdown(comment.body)
76792
- }));
76969
+ if (!changed3.has("comments") && !changed3.has("ticketId") && !changed3.has("answering")) return;
76970
+ const items = this.comments.filter((item) => item.ticketId === this.ticketId).sort((a, b2) => Date.parse(a.createdAt) - Date.parse(b2.createdAt));
76971
+ this.questions = items.filter(isKanbanQuestion);
76972
+ this.threadEntries = items.map((item) => isKanbanQuestion(item) ? this.questionEntry(item) : {
76973
+ id: item.id,
76974
+ author: { id: item.author.id, name: item.author.name },
76975
+ createdAt: item.createdAt,
76976
+ body: referencesToMarkdown(item.body)
76977
+ });
76978
+ }
76979
+ /** A question as the thread's entry: its card in the body's place, outlined while it waits. */
76980
+ questionEntry(question) {
76981
+ const answer = question.answer;
76982
+ const answeredAt = answer && new Date(answer.answeredAt);
76983
+ return {
76984
+ id: `question:${question.id}`,
76985
+ author: { id: question.author.id, name: question.author.name },
76986
+ createdAt: question.createdAt,
76987
+ body: question.question,
76988
+ slot: `question-${question.id}`,
76989
+ attention: answer ? void 0 : this.t("kanban.autoLabelOpenQuestion"),
76990
+ footnote: this.answering.has(question.id) ? this.t("kanban.answerSaving") : answer && answeredAt && !Number.isNaN(answeredAt.getTime()) ? this.t("kanban.answeredBy", {
76991
+ name: answer.answeredBy.name,
76992
+ when: this.t.format.instant(answeredAt, { date: "medium", time: "short" })
76993
+ }) : void 0
76994
+ };
76995
+ }
76996
+ /** A question as its card asks it, with its answer as the card shows one: the options chosen, then the words. */
76997
+ cardRequest(question) {
76998
+ const known = this.cardRequests.get(question);
76999
+ if (known) return known;
77000
+ const options = question.options ?? [];
77001
+ const answer = question.answer;
77002
+ const request = {
77003
+ id: question.id,
77004
+ kind: "question",
77005
+ question: referenceText(markdownToReferences(question.question)),
77006
+ options: options.map((option) => ({ id: option.id, label: option.label, description: option.description })),
77007
+ multiSelect: question.multiSelect ?? false,
77008
+ allowCustom: question.allowCustom ?? true,
77009
+ createdAt: Date.parse(question.createdAt)
77010
+ };
77011
+ if (answer) {
77012
+ const chosen = new Set(answer.choices);
77013
+ const text = answer.text?.trim();
77014
+ request.response = [
77015
+ ...options.filter((option) => chosen.has(option.id)).map((option) => option.label),
77016
+ ...text ? [text] : []
77017
+ ];
77018
+ request.respondedAt = Date.parse(answer.answeredAt);
77019
+ }
77020
+ this.cardRequests.set(question, request);
77021
+ return request;
77022
+ }
77023
+ composerActions() {
77024
+ if (!this.askQuestion) return [];
77025
+ const label = this.t("kanban.askQuestion");
77026
+ if (this.askActions[0]?.label !== label) {
77027
+ this.askActions = [{ key: "ask", label, iconName: "lucide:MessageCircleQuestionMark" }];
77028
+ }
77029
+ return this.askActions;
76793
77030
  }
76794
77031
  threadDraft() {
76795
77032
  return this.draftSource?.draft === this.draft ? this.draftSource.markdown : referencesToMarkdown(this.draft);
@@ -76818,6 +77055,7 @@ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesEle
76818
77055
  .searchReferences=${this.searchTickets}
76819
77056
  .referenceSearchLabel=${this.t("reference.search")}
76820
77057
  .view=${this.view}
77058
+ .composerActions=${this.composerActions()}
76821
77059
  .onSubmit=${this.post}
76822
77060
  .readOnly=${this.readOnly || !this.addComment || !this.ticketId}
76823
77061
  .readOnlyReason=${this.t("kanban.readOnly")}
@@ -76840,7 +77078,18 @@ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesEle
76840
77078
  kanbanEvent(this, "kanban-comments-refresh", { ticketId: this.ticketId });
76841
77079
  }}
76842
77080
  @thread-submit=${(event) => event.stopPropagation()}
76843
- ></dees-thread>`;
77081
+ >${this.view === "composer" ? "" : directives_exports.repeat(
77082
+ this.questions,
77083
+ (question) => question.id,
77084
+ (question) => b`<dees-harness-question-card
77085
+ slot=${`question-${question.id}`}
77086
+ frameless
77087
+ .request=${this.cardRequest(question)}
77088
+ .busy=${this.answering.has(question.id)}
77089
+ .readOnly=${!this.answerQuestion || !this.ticketId}
77090
+ @harness-question-response=${(event) => this.answer(question, event)}
77091
+ ></dees-harness-question-card>`
77092
+ )}</dees-thread>`;
76844
77093
  }
76845
77094
  /** Posts the draft as the Comment button would; resolves once the post settled. */
76846
77095
  async submit() {
@@ -76848,6 +77097,51 @@ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesEle
76848
77097
  await this.updateComplete;
76849
77098
  await this.shadowRoot?.querySelector("dees-thread")?.submit();
76850
77099
  }
77100
+ /**
77101
+ * Shows a question, unfolding a long discussion to it, and puts the focus on its answer where the
77102
+ * reader may answer it; `false` when it is not here or takes no answer.
77103
+ */
77104
+ async revealQuestion(questionId) {
77105
+ await this.updateComplete;
77106
+ const thread = this.shadowRoot?.querySelector("dees-thread");
77107
+ if (!thread || !await thread.revealEntry(`question:${questionId}`)) return false;
77108
+ const card = [...this.shadowRoot?.querySelectorAll("dees-harness-question-card") ?? []].find((element) => element.slot === `question-${questionId}`);
77109
+ return card ? card.focusAnswer({ preventScroll: true }) : false;
77110
+ }
77111
+ /**
77112
+ * Saves the answer a card gave; the card shows it while it is saved. A refusal, or a saved
77113
+ * question that is another or still open, shows on the card, which waits for an answer again.
77114
+ */
77115
+ async answer(question, event) {
77116
+ event.stopPropagation();
77117
+ const card = event.currentTarget;
77118
+ const ticketId = this.ticketId;
77119
+ const answerQuestion = this.answerQuestion;
77120
+ if (!answerQuestion || question.ticketId !== ticketId || this.answering.has(question.id)) {
77121
+ card.rejectResponse();
77122
+ return;
77123
+ }
77124
+ const text = event.detail.text?.trim();
77125
+ const input = {
77126
+ ticketId,
77127
+ questionId: question.id,
77128
+ choices: event.detail.optionIds ?? [],
77129
+ ...text ? { text } : {}
77130
+ };
77131
+ this.answering = /* @__PURE__ */ new Set([...this.answering, question.id]);
77132
+ try {
77133
+ const saved = await answerQuestion(input);
77134
+ if (saved.ticketId !== ticketId || saved.id !== question.id) throw new Error(this.t("kanban.questionMismatch"));
77135
+ if (!saved.answer) throw new Error(this.t("question.answerRefused"));
77136
+ kanbanEvent(this, "kanban-question-answered", { question: saved, answer: input });
77137
+ } catch (error) {
77138
+ card.rejectResponse({ message: kanbanError(error) });
77139
+ } finally {
77140
+ const answering = new Set(this.answering);
77141
+ answering.delete(question.id);
77142
+ this.answering = answering;
77143
+ }
77144
+ }
76851
77145
  };
76852
77146
  _init104 = __decoratorStart(_a103);
76853
77147
  _ticketId = new WeakMap();
@@ -76857,10 +77151,13 @@ _searchTickets = new WeakMap();
76857
77151
  _currentPerson = new WeakMap();
76858
77152
  _view2 = new WeakMap();
76859
77153
  _addComment = new WeakMap();
77154
+ _askQuestion = new WeakMap();
77155
+ _answerQuestion = new WeakMap();
76860
77156
  _loading9 = new WeakMap();
76861
- _readOnly2 = new WeakMap();
77157
+ _readOnly3 = new WeakMap();
76862
77158
  _error4 = new WeakMap();
76863
77159
  _showHeader2 = new WeakMap();
77160
+ _answering = new WeakMap();
76864
77161
  __decorateElement(_init104, 4, "ticketId", _ticketId_dec, _DeesKanbanDiscussion, _ticketId);
76865
77162
  __decorateElement(_init104, 4, "comments", _comments_dec, _DeesKanbanDiscussion, _comments);
76866
77163
  __decorateElement(_init104, 4, "draft", _draft_dec3, _DeesKanbanDiscussion, _draft3);
@@ -76868,10 +77165,13 @@ __decorateElement(_init104, 4, "searchTickets", _searchTickets_dec, _DeesKanbanD
76868
77165
  __decorateElement(_init104, 4, "currentPerson", _currentPerson_dec, _DeesKanbanDiscussion, _currentPerson);
76869
77166
  __decorateElement(_init104, 4, "view", _view_dec2, _DeesKanbanDiscussion, _view2);
76870
77167
  __decorateElement(_init104, 4, "addComment", _addComment_dec, _DeesKanbanDiscussion, _addComment);
77168
+ __decorateElement(_init104, 4, "askQuestion", _askQuestion_dec, _DeesKanbanDiscussion, _askQuestion);
77169
+ __decorateElement(_init104, 4, "answerQuestion", _answerQuestion_dec, _DeesKanbanDiscussion, _answerQuestion);
76871
77170
  __decorateElement(_init104, 4, "loading", _loading_dec9, _DeesKanbanDiscussion, _loading9);
76872
- __decorateElement(_init104, 4, "readOnly", _readOnly_dec2, _DeesKanbanDiscussion, _readOnly2);
77171
+ __decorateElement(_init104, 4, "readOnly", _readOnly_dec3, _DeesKanbanDiscussion, _readOnly3);
76873
77172
  __decorateElement(_init104, 4, "error", _error_dec4, _DeesKanbanDiscussion, _error4);
76874
77173
  __decorateElement(_init104, 4, "showHeader", _showHeader_dec2, _DeesKanbanDiscussion, _showHeader2);
77174
+ __decorateElement(_init104, 4, "answering", _answering_dec, _DeesKanbanDiscussion, _answering);
76875
77175
  _DeesKanbanDiscussion = __decorateElement(_init104, 0, "DeesKanbanDiscussion", _DeesKanbanDiscussion_decorators, _DeesKanbanDiscussion);
76876
77176
  __name(_DeesKanbanDiscussion, "DeesKanbanDiscussion");
76877
77177
  __publicField(_DeesKanbanDiscussion, "styles", [...kanbanStyles, kanbanFeedStyles]);
@@ -76888,7 +77188,9 @@ var actionIcons = {
76888
77188
  moved: "lucide:ArrowRight",
76889
77189
  reordered: "lucide:ArrowUpDown",
76890
77190
  commented: "lucide:MessageSquare",
76891
- linked: "lucide:Link"
77191
+ linked: "lucide:Link",
77192
+ asked: "lucide:MessageCircleQuestionMark",
77193
+ answered: "lucide:MessageCircleReply"
76892
77194
  };
76893
77195
  _DeesKanbanActivity_decorators = [customElement("dees-kanban-activity")];
76894
77196
  var _DeesKanbanActivity = class _DeesKanbanActivity extends (_a104 = DeesElement, _ticketId_dec2 = [n({ type: String, reflect: true })], _activity_dec = [n({ attribute: false })], _columns_dec3 = [n({ attribute: false })], _tickets_dec = [n({ attribute: false })], _projects_dec = [n({ attribute: false })], _loading_dec10 = [n({ type: Boolean, reflect: true })], _error_dec5 = [n({ type: String, reflect: true })], _showHeader_dec3 = [n({ type: Boolean, reflect: true })], _a104) {
@@ -77128,9 +77430,10 @@ __runInitializers(_init105, 1, _DeesKanbanActivity);
77128
77430
  var DeesKanbanActivity = _DeesKanbanActivity;
77129
77431
 
77130
77432
  // ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.ts
77131
- var _feed_dec, _editing_dec3, _conflict_dec, _frameless_dec14, _showTicketKey_dec, _canGoBack_dec, _saving_dec2, _error_dec6, _projects_dec2, _activityError_dec, _loadingActivity_dec, _activity_dec2, _commentsError_dec, _loadingComments_dec, _searchTickets_dec2, _comments_dec2, _commentDraft_dec, _draft_dec4, _provider_dec3, _currentPerson_dec2, _people_dec, _columns_dec4, _tickets_dec2, _ticket_dec, _a105, _DeesKanbanTicketDetail_decorators, _init106, _ticket, _tickets2, _columns4, _people, _currentPerson2, _provider3, _draft4, _commentDraft, _comments2, _searchTickets2, _loadingComments, _commentsError, _activity2, _loadingActivity, _activityError, _projects2, _error6, _saving2, _canGoBack, _showTicketKey, _frameless14, _conflict, _editing3, _feed;
77433
+ var _feed_dec, _editing_dec3, _conflict_dec, _frameless_dec15, _showTicketKey_dec, _canGoBack_dec, _saving_dec2, _error_dec6, _projects_dec2, _activityError_dec, _loadingActivity_dec, _activity_dec2, _commentsError_dec, _loadingComments_dec, _searchTickets_dec2, _autoLabelDefinitions_dec, _comments_dec2, _commentDraft_dec, _draft_dec4, _provider_dec3, _currentPerson_dec2, _people_dec, _columns_dec4, _tickets_dec2, _ticket_dec, _a105, _DeesKanbanTicketDetail_decorators, _init106, _ticket, _tickets2, _columns4, _people, _currentPerson2, _provider3, _draft4, _commentDraft, _comments2, _autoLabelDefinitions, _searchTickets2, _loadingComments, _commentsError, _activity2, _loadingActivity, _activityError, _projects2, _error6, _saving2, _canGoBack, _showTicketKey, _frameless15, _conflict, _editing3, _feed;
77434
+ var discussionActions = /* @__PURE__ */ new Set(["commented", "asked", "answered"]);
77132
77435
  _DeesKanbanTicketDetail_decorators = [customElement("dees-kanban-ticket-detail")];
77133
- var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = DeesElement, _ticket_dec = [n({ attribute: false })], _tickets_dec2 = [n({ attribute: false })], _columns_dec4 = [n({ attribute: false })], _people_dec = [n({ attribute: false })], _currentPerson_dec2 = [n({ attribute: false })], _provider_dec3 = [n({ attribute: false })], _draft_dec4 = [n({ attribute: false })], _commentDraft_dec = [n({ attribute: false })], _comments_dec2 = [n({ attribute: false })], _searchTickets_dec2 = [n({ attribute: false })], _loadingComments_dec = [n({ type: Boolean, reflect: true })], _commentsError_dec = [n({ type: String, reflect: true })], _activity_dec2 = [n({ attribute: false })], _loadingActivity_dec = [n({ type: Boolean, reflect: true })], _activityError_dec = [n({ type: String, reflect: true })], _projects_dec2 = [n({ attribute: false })], _error_dec6 = [n({ type: String, reflect: true })], _saving_dec2 = [n({ type: Boolean, reflect: true })], _canGoBack_dec = [n({ type: Boolean, reflect: true })], _showTicketKey_dec = [n({ type: Boolean, reflect: true })], _frameless_dec14 = [n({ type: Boolean, reflect: true })], _conflict_dec = [n({ attribute: false })], _editing_dec3 = [r2()], _feed_dec = [r2()], _a105) {
77436
+ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = DeesElement, _ticket_dec = [n({ attribute: false })], _tickets_dec2 = [n({ attribute: false })], _columns_dec4 = [n({ attribute: false })], _people_dec = [n({ attribute: false })], _currentPerson_dec2 = [n({ attribute: false })], _provider_dec3 = [n({ attribute: false })], _draft_dec4 = [n({ attribute: false })], _commentDraft_dec = [n({ attribute: false })], _comments_dec2 = [n({ attribute: false })], _autoLabelDefinitions_dec = [n({ attribute: false })], _searchTickets_dec2 = [n({ attribute: false })], _loadingComments_dec = [n({ type: Boolean, reflect: true })], _commentsError_dec = [n({ type: String, reflect: true })], _activity_dec2 = [n({ attribute: false })], _loadingActivity_dec = [n({ type: Boolean, reflect: true })], _activityError_dec = [n({ type: String, reflect: true })], _projects_dec2 = [n({ attribute: false })], _error_dec6 = [n({ type: String, reflect: true })], _saving_dec2 = [n({ type: Boolean, reflect: true })], _canGoBack_dec = [n({ type: Boolean, reflect: true })], _showTicketKey_dec = [n({ type: Boolean, reflect: true })], _frameless_dec15 = [n({ type: Boolean, reflect: true })], _conflict_dec = [n({ attribute: false })], _editing_dec3 = [r2()], _feed_dec = [r2()], _a105) {
77134
77437
  constructor() {
77135
77438
  super(...arguments);
77136
77439
  __publicField(this, "t", dcLocalize(this));
@@ -77143,24 +77446,33 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77143
77446
  __privateAdd(this, _draft4, __runInitializers(_init106, 32, this)), __runInitializers(_init106, 35, this);
77144
77447
  __privateAdd(this, _commentDraft, __runInitializers(_init106, 36, this, [])), __runInitializers(_init106, 39, this);
77145
77448
  __privateAdd(this, _comments2, __runInitializers(_init106, 40, this, [])), __runInitializers(_init106, 43, this);
77146
- __privateAdd(this, _searchTickets2, __runInitializers(_init106, 44, this)), __runInitializers(_init106, 47, this);
77147
- __privateAdd(this, _loadingComments, __runInitializers(_init106, 48, this, false)), __runInitializers(_init106, 51, this);
77148
- __privateAdd(this, _commentsError, __runInitializers(_init106, 52, this, "")), __runInitializers(_init106, 55, this);
77149
- __privateAdd(this, _activity2, __runInitializers(_init106, 56, this, [])), __runInitializers(_init106, 59, this);
77150
- __privateAdd(this, _loadingActivity, __runInitializers(_init106, 60, this, false)), __runInitializers(_init106, 63, this);
77151
- __privateAdd(this, _activityError, __runInitializers(_init106, 64, this, "")), __runInitializers(_init106, 67, this);
77152
- __privateAdd(this, _projects2, __runInitializers(_init106, 68, this, [])), __runInitializers(_init106, 71, this);
77153
- __privateAdd(this, _error6, __runInitializers(_init106, 72, this, "")), __runInitializers(_init106, 75, this);
77154
- __privateAdd(this, _saving2, __runInitializers(_init106, 76, this, false)), __runInitializers(_init106, 79, this);
77155
- __privateAdd(this, _canGoBack, __runInitializers(_init106, 80, this, false)), __runInitializers(_init106, 83, this);
77156
- __privateAdd(this, _showTicketKey, __runInitializers(_init106, 84, this, true)), __runInitializers(_init106, 87, this);
77157
- __privateAdd(this, _frameless14, __runInitializers(_init106, 88, this, false)), __runInitializers(_init106, 91, this);
77158
- __privateAdd(this, _conflict, __runInitializers(_init106, 92, this)), __runInitializers(_init106, 95, this);
77159
- __privateAdd(this, _editing3, __runInitializers(_init106, 96, this, false)), __runInitializers(_init106, 99, this);
77449
+ __privateAdd(this, _autoLabelDefinitions, __runInitializers(_init106, 44, this, [])), __runInitializers(_init106, 47, this);
77450
+ __privateAdd(this, _searchTickets2, __runInitializers(_init106, 48, this)), __runInitializers(_init106, 51, this);
77451
+ __privateAdd(this, _loadingComments, __runInitializers(_init106, 52, this, false)), __runInitializers(_init106, 55, this);
77452
+ __privateAdd(this, _commentsError, __runInitializers(_init106, 56, this, "")), __runInitializers(_init106, 59, this);
77453
+ __privateAdd(this, _activity2, __runInitializers(_init106, 60, this, [])), __runInitializers(_init106, 63, this);
77454
+ __privateAdd(this, _loadingActivity, __runInitializers(_init106, 64, this, false)), __runInitializers(_init106, 67, this);
77455
+ __privateAdd(this, _activityError, __runInitializers(_init106, 68, this, "")), __runInitializers(_init106, 71, this);
77456
+ __privateAdd(this, _projects2, __runInitializers(_init106, 72, this, [])), __runInitializers(_init106, 75, this);
77457
+ __privateAdd(this, _error6, __runInitializers(_init106, 76, this, "")), __runInitializers(_init106, 79, this);
77458
+ __privateAdd(this, _saving2, __runInitializers(_init106, 80, this, false)), __runInitializers(_init106, 83, this);
77459
+ __privateAdd(this, _canGoBack, __runInitializers(_init106, 84, this, false)), __runInitializers(_init106, 87, this);
77460
+ __privateAdd(this, _showTicketKey, __runInitializers(_init106, 88, this, true)), __runInitializers(_init106, 91, this);
77461
+ __privateAdd(this, _frameless15, __runInitializers(_init106, 92, this, false)), __runInitializers(_init106, 95, this);
77462
+ __privateAdd(this, _conflict, __runInitializers(_init106, 96, this)), __runInitializers(_init106, 99, this);
77463
+ __privateAdd(this, _editing3, __runInitializers(_init106, 100, this, false)), __runInitializers(_init106, 103, this);
77160
77464
  /** The reader pressed a button of the refusal, which leaves with its answer: the focus follows. */
77161
77465
  __publicField(this, "conflictFocus", false);
77162
- __privateAdd(this, _feed, __runInitializers(_init106, 100, this, "comments")), __runInitializers(_init106, 103, this);
77466
+ __privateAdd(this, _feed, __runInitializers(_init106, 104, this, "comments")), __runInitializers(_init106, 107, this);
77467
+ /**
77468
+ * The pinned composer covers the foot of the main column: its height is the column's scroll
77469
+ * padding, so what scrolls into view there, such as a question the hint shows, is not under it.
77470
+ */
77471
+ __publicField(this, "composerObserver");
77472
+ __publicField(this, "observedComposer", null);
77163
77473
  __publicField(this, "addComment", /* @__PURE__ */ __name((input) => this.provider.addComment(input), "addComment"));
77474
+ __publicField(this, "askQuestion", /* @__PURE__ */ __name((input) => this.provider.askQuestion(input), "askQuestion"));
77475
+ __publicField(this, "answerQuestion", /* @__PURE__ */ __name((input) => this.provider.answerQuestion(input), "answerQuestion"));
77164
77476
  /** Keeps the comment the reader is writing, so that the next render gives the composer it back, not an older one. */
77165
77477
  __publicField(this, "keepCommentDraft", /* @__PURE__ */ __name((event) => {
77166
77478
  if (event.detail.ticketId === this.ticket?.id) this.commentDraft = event.detail.body;
@@ -77176,6 +77488,30 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77176
77488
  const target = root.querySelector(".conflict dees-button") ?? root.querySelector(".edit dees-input-text");
77177
77489
  void target?.updateComplete.then(() => target.focus());
77178
77490
  }
77491
+ this.observeComposer();
77492
+ }
77493
+ async disconnectedCallback() {
77494
+ this.composerObserver?.disconnect();
77495
+ this.observedComposer = null;
77496
+ await super.disconnectedCallback();
77497
+ }
77498
+ async connectedCallback() {
77499
+ const connection = super.connectedCallback();
77500
+ if (this.hasUpdated) this.observeComposer();
77501
+ await connection;
77502
+ }
77503
+ observeComposer() {
77504
+ const composer = this.shadowRoot?.querySelector(".main > .composer") ?? null;
77505
+ if (composer === this.observedComposer) return;
77506
+ this.composerObserver ??= new ResizeObserver(([entry]) => this.padForComposer(entry?.borderBoxSize[0]?.blockSize ?? 0));
77507
+ if (this.observedComposer) this.composerObserver.unobserve(this.observedComposer);
77508
+ if (composer) this.composerObserver.observe(composer);
77509
+ else this.padForComposer(0);
77510
+ this.observedComposer = composer;
77511
+ }
77512
+ /** Makes the composer's height the main column's scroll padding. */
77513
+ padForComposer(blockSize) {
77514
+ this.shadowRoot?.querySelector(".main")?.style.setProperty("--detail-composer-block-size", `${blockSize}px`);
77179
77515
  }
77180
77516
  /**
77181
77517
  * A save the provider refused as stale, at the top of the edit: the server's reason and the
@@ -77285,6 +77621,39 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77285
77621
  this.draft = { ...this.draft ?? ticketDraft(this.ticket), ...change };
77286
77622
  kanbanEvent(this, "kanban-ticket-draft", { ticketId: this.ticket.id, draft: this.draft });
77287
77623
  }
77624
+ /**
77625
+ * Shows the ticket's first unanswered question in the discussion, ready for an answer where the
77626
+ * reader may give one.
77627
+ */
77628
+ async revealOpenQuestion(questionId) {
77629
+ this.feed = "comments";
77630
+ await this.updateComplete;
77631
+ const composer = this.shadowRoot?.querySelector(".main > .composer");
77632
+ if (composer) this.padForComposer(composer.getBoundingClientRect().height);
77633
+ await this.shadowRoot?.querySelector("dees-kanban-discussion:not(.composer)")?.revealQuestion(questionId);
77634
+ }
77635
+ /** Says how many questions wait for an answer, with a button to the first. */
77636
+ renderOpenQuestions(ticket) {
77637
+ const open = this.comments.filter(
77638
+ (item) => isKanbanQuestion(item) && item.ticketId === ticket.id && !item.answer
77639
+ );
77640
+ if (!open.length) return "";
77641
+ const first = open.reduce((oldest, item) => Date.parse(item.createdAt) < Date.parse(oldest.createdAt) ? item : oldest);
77642
+ const canAnswer = Boolean(this.provider.answerQuestion) && ticket.permissions?.answer !== false;
77643
+ return b`<div class="open-questions">
77644
+ <dees-hint type="warning">
77645
+ <div class="open-questions-row">
77646
+ <p>${this.t("kanban.openQuestions", { count: open.length })}</p>
77647
+ <dees-button
77648
+ size="sm"
77649
+ type=${canAnswer ? "accent" : "secondary"}
77650
+ text=${this.t(canAnswer ? "kanban.answerQuestion" : "kanban.showQuestion")}
77651
+ @clicked=${() => this.revealOpenQuestion(first.id)}
77652
+ ></dees-button>
77653
+ </div>
77654
+ </dees-hint>
77655
+ </div>`;
77656
+ }
77288
77657
  render() {
77289
77658
  const ticket = this.ticket;
77290
77659
  if (!ticket) return b``;
@@ -77320,6 +77689,7 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77320
77689
  <div class="panes">
77321
77690
  <div class="main">
77322
77691
  ${this.error ? b`<p class="error" role="alert">${this.error}</p>` : ""}
77692
+ ${this.renderOpenQuestions(ticket)}
77323
77693
  <section class="lead">
77324
77694
  ${this.editing && editable ? b`<div class="edit">
77325
77695
  ${this.conflict ? this.renderConflict(ticket, this.conflict, parents, projects) : ""}
@@ -77474,10 +77844,14 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77474
77844
  }}
77475
77845
  @input=${(event) => event.stopPropagation()}
77476
77846
  ></dees-input-tags>
77847
+ ${ticket.autoLabels?.length ? b`<div class="row auto-row">
77848
+ ${renderKanbanAutoLabels(this.t, this.autoLabelDefinitions, ticket.autoLabels)}
77849
+ </div>` : ""}
77477
77850
  </div>` : b`<div class="labels">
77478
77851
  <label class="caption">${this.t("kanban.labels")}</label>
77479
- ${ticket.labels?.length ? b`<div class="row value">
77480
- ${ticket.labels.map((label) => b`<span class="badge">${label}</span>`)}
77852
+ ${ticket.labels?.length || ticket.autoLabels?.length ? b`<div class="row value">
77853
+ ${renderKanbanAutoLabels(this.t, this.autoLabelDefinitions, ticket.autoLabels)}
77854
+ ${ticket.labels?.map((label) => b`<span class="badge">${label}</span>`)}
77481
77855
  </div>` : this.renderUnset(this.t("kanban.noLabels"))}
77482
77856
  </div>`}
77483
77857
  </div>
@@ -77549,6 +77923,7 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77549
77923
  .view=${"entries"}
77550
77924
  .ticketId=${ticket.id}
77551
77925
  .comments=${this.comments}
77926
+ .answerQuestion=${this.provider.answerQuestion && ticket.permissions?.answer !== false ? this.answerQuestion : void 0}
77552
77927
  .loading=${this.loadingComments}
77553
77928
  .error=${this.commentsError}
77554
77929
  .showHeader=${!inFeed}
@@ -77566,6 +77941,7 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77566
77941
  .searchTickets=${this.searchTickets}
77567
77942
  .currentPerson=${this.currentPerson}
77568
77943
  .addComment=${this.provider.addComment ? this.addComment : void 0}
77944
+ .askQuestion=${this.provider.askQuestion && ticket.permissions?.ask !== false ? this.askQuestion : void 0}
77569
77945
  ?hidden=${!!this.provider.loadActivity && this.feed !== "comments"}
77570
77946
  @kanban-comment-draft=${this.keepCommentDraft}
77571
77947
  ></dees-kanban-discussion>`;
@@ -77577,7 +77953,7 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77577
77953
  renderFeed(ticket) {
77578
77954
  const comments = this.comments.filter((comment) => comment.ticketId === ticket.id).length;
77579
77955
  const changes = this.activity.filter(
77580
- (entry) => entry.ticketId === ticket.id && entry.action !== "commented"
77956
+ (entry) => entry.ticketId === ticket.id && !discussionActions.has(entry.action)
77581
77957
  );
77582
77958
  const history = this.feed === "history";
77583
77959
  return b`<section class="feed">
@@ -77705,6 +78081,7 @@ _provider3 = new WeakMap();
77705
78081
  _draft4 = new WeakMap();
77706
78082
  _commentDraft = new WeakMap();
77707
78083
  _comments2 = new WeakMap();
78084
+ _autoLabelDefinitions = new WeakMap();
77708
78085
  _searchTickets2 = new WeakMap();
77709
78086
  _loadingComments = new WeakMap();
77710
78087
  _commentsError = new WeakMap();
@@ -77716,7 +78093,7 @@ _error6 = new WeakMap();
77716
78093
  _saving2 = new WeakMap();
77717
78094
  _canGoBack = new WeakMap();
77718
78095
  _showTicketKey = new WeakMap();
77719
- _frameless14 = new WeakMap();
78096
+ _frameless15 = new WeakMap();
77720
78097
  _conflict = new WeakMap();
77721
78098
  _editing3 = new WeakMap();
77722
78099
  _feed = new WeakMap();
@@ -77729,6 +78106,7 @@ __decorateElement(_init106, 4, "provider", _provider_dec3, _DeesKanbanTicketDeta
77729
78106
  __decorateElement(_init106, 4, "draft", _draft_dec4, _DeesKanbanTicketDetail, _draft4);
77730
78107
  __decorateElement(_init106, 4, "commentDraft", _commentDraft_dec, _DeesKanbanTicketDetail, _commentDraft);
77731
78108
  __decorateElement(_init106, 4, "comments", _comments_dec2, _DeesKanbanTicketDetail, _comments2);
78109
+ __decorateElement(_init106, 4, "autoLabelDefinitions", _autoLabelDefinitions_dec, _DeesKanbanTicketDetail, _autoLabelDefinitions);
77732
78110
  __decorateElement(_init106, 4, "searchTickets", _searchTickets_dec2, _DeesKanbanTicketDetail, _searchTickets2);
77733
78111
  __decorateElement(_init106, 4, "loadingComments", _loadingComments_dec, _DeesKanbanTicketDetail, _loadingComments);
77734
78112
  __decorateElement(_init106, 4, "commentsError", _commentsError_dec, _DeesKanbanTicketDetail, _commentsError);
@@ -77740,7 +78118,7 @@ __decorateElement(_init106, 4, "error", _error_dec6, _DeesKanbanTicketDetail, _e
77740
78118
  __decorateElement(_init106, 4, "saving", _saving_dec2, _DeesKanbanTicketDetail, _saving2);
77741
78119
  __decorateElement(_init106, 4, "canGoBack", _canGoBack_dec, _DeesKanbanTicketDetail, _canGoBack);
77742
78120
  __decorateElement(_init106, 4, "showTicketKey", _showTicketKey_dec, _DeesKanbanTicketDetail, _showTicketKey);
77743
- __decorateElement(_init106, 4, "frameless", _frameless_dec14, _DeesKanbanTicketDetail, _frameless14);
78121
+ __decorateElement(_init106, 4, "frameless", _frameless_dec15, _DeesKanbanTicketDetail, _frameless15);
77744
78122
  __decorateElement(_init106, 4, "conflict", _conflict_dec, _DeesKanbanTicketDetail, _conflict);
77745
78123
  __decorateElement(_init106, 4, "editing", _editing_dec3, _DeesKanbanTicketDetail, _editing3);
77746
78124
  __decorateElement(_init106, 4, "feed", _feed_dec, _DeesKanbanTicketDetail, _feed);
@@ -77790,6 +78168,11 @@ __publicField(_DeesKanbanTicketDetail, "styles", [
77790
78168
  scrollbar-width: thin;
77791
78169
  }
77792
78170
 
78171
+ /* What scrolls into view, a revealed question or a focused control, stops short of the composer. */
78172
+ .main {
78173
+ scroll-padding-bottom: calc(var(--detail-composer-block-size, 0px) + var(--dees-spacing-md));
78174
+ }
78175
+
77793
78176
  /* Positioned content of the main column is placed in it, so it scrolls with it, not over the panes. */
77794
78177
  .main > :not(aside) {
77795
78178
  position: relative;
@@ -78225,6 +78608,27 @@ __publicField(_DeesKanbanTicketDetail, "styles", [
78225
78608
  gap: 14px;
78226
78609
  }
78227
78610
 
78611
+ .open-questions {
78612
+ margin-bottom: 16px;
78613
+ }
78614
+
78615
+ .open-questions-row {
78616
+ display: flex;
78617
+ flex-wrap: wrap;
78618
+ align-items: center;
78619
+ justify-content: space-between;
78620
+ gap: 8px 12px;
78621
+ }
78622
+
78623
+ .open-questions-row p {
78624
+ color: var(--dees-color-text-primary);
78625
+ font-weight: 600;
78626
+ }
78627
+
78628
+ .auto-row {
78629
+ margin-top: 8px;
78630
+ }
78631
+
78228
78632
  .conflict p + p,
78229
78633
  .conflict p + dees-button {
78230
78634
  margin-top: 8px;
@@ -78311,10 +78715,15 @@ __publicField(_DeesKanbanTicketDetail, "styles", [
78311
78715
  overflow: visible;
78312
78716
  }
78313
78717
  .main > .error,
78718
+ .main > .open-questions,
78314
78719
  .lead,
78315
78720
  .body {
78316
78721
  padding-inline: var(--detail-inset-inline, 16px);
78317
78722
  }
78723
+ .main > .open-questions {
78724
+ margin: 0;
78725
+ padding-block: 12px 0;
78726
+ }
78318
78727
  .main > .error {
78319
78728
  padding-block: 10px 0;
78320
78729
  }
@@ -78405,6 +78814,7 @@ var kanbanDemoProjects = [
78405
78814
  { id: "catalog", name: "Design catalog" }
78406
78815
  ];
78407
78816
  var [mara2, jonas2, alex] = kanbanDemoPeople;
78817
+ var refusal = /* @__PURE__ */ __name((code, message) => Object.assign(new Error(message), { code }), "refusal");
78408
78818
  var releasedTickets = /* @__PURE__ */ __name(() => [
78409
78819
  ["Remember the last board filters", "app", "2.0.0"],
78410
78820
  ["Show who is viewing a ticket", "app", "2.1.0"],
@@ -78699,7 +79109,45 @@ var createKanbanDemo = /* @__PURE__ */ __name((options = {}) => {
78699
79109
  ...options.released ? releasedTickets() : [],
78700
79110
  ...options.workflow ? workflowTickets() : []
78701
79111
  ];
78702
- let tickets = seeded.map(revised);
79112
+ let questions = [
79113
+ {
79114
+ kind: "question",
79115
+ id: "Q1",
79116
+ ticketId: "task-3",
79117
+ author: alex,
79118
+ createdAt: "2026-09-16T10:20:00Z",
79119
+ question: "Should the arrow keys move a focused card between columns as well?",
79120
+ options: [
79121
+ { id: "1", label: "Within its column only" },
79122
+ { id: "2", label: "Between columns too", description: "Left and right change the column." }
79123
+ ],
79124
+ multiSelect: false,
79125
+ allowCustom: true,
79126
+ answer: {
79127
+ choices: ["2"],
79128
+ text: "Up and down stay in the column.",
79129
+ answeredBy: mara2,
79130
+ answeredAt: "2026-09-16T10:48:00Z"
79131
+ }
79132
+ },
79133
+ {
79134
+ kind: "question",
79135
+ id: "Q2",
79136
+ ticketId: "task-3",
79137
+ author: alex,
79138
+ createdAt: "2026-09-16T11:05:00Z",
79139
+ question: "Which keys should open the focused card?",
79140
+ options: [
79141
+ { id: "1", label: "Enter" },
79142
+ { id: "2", label: "Space" },
79143
+ { id: "3", label: "O", description: "As in the list views." }
79144
+ ],
79145
+ multiSelect: true,
79146
+ allowCustom: true
79147
+ }
79148
+ ];
79149
+ const labelled = /* @__PURE__ */ __name(({ autoLabels: _, ...ticket }) => questions.some((question) => question.ticketId === ticket.id && !question.answer) ? { ...ticket, autoLabels: [kanbanOpenQuestionLabel] } : ticket, "labelled");
79150
+ let tickets = seeded.map((ticket) => revised(labelled(ticket)));
78703
79151
  let comments = [
78704
79152
  {
78705
79153
  id: "comment-1",
@@ -78785,6 +79233,27 @@ var createKanbanDemo = /* @__PURE__ */ __name((options = {}) => {
78785
79233
  actor: jonas2,
78786
79234
  createdAt: "2026-09-18T09:42:00Z",
78787
79235
  action: "commented"
79236
+ },
79237
+ {
79238
+ id: "activity-7",
79239
+ ticketId: "task-3",
79240
+ actor: alex,
79241
+ createdAt: "2026-09-16T10:20:00Z",
79242
+ action: "asked"
79243
+ },
79244
+ {
79245
+ id: "activity-8",
79246
+ ticketId: "task-3",
79247
+ actor: mara2,
79248
+ createdAt: "2026-09-16T10:48:00Z",
79249
+ action: "answered"
79250
+ },
79251
+ {
79252
+ id: "activity-9",
79253
+ ticketId: "task-3",
79254
+ actor: alex,
79255
+ createdAt: "2026-09-16T11:05:00Z",
79256
+ action: "asked"
78788
79257
  }
78789
79258
  ];
78790
79259
  let nextKey = 300;
@@ -78799,6 +79268,11 @@ var createKanbanDemo = /* @__PURE__ */ __name((options = {}) => {
78799
79268
  revision++;
78800
79269
  return createdAt;
78801
79270
  }, "record");
79271
+ const saveQuestion = /* @__PURE__ */ __name((question) => {
79272
+ questions = [...questions.filter((other) => other.id !== question.id), question];
79273
+ tickets = tickets.map((ticket) => ticket.id === question.ticketId ? revised(labelled(ticket)) : ticket);
79274
+ return question;
79275
+ }, "saveQuestion");
78802
79276
  const provider = {
78803
79277
  getTicket: /* @__PURE__ */ __name(async (id) => {
78804
79278
  const ticket = tickets.find((item) => item.id === id);
@@ -78808,7 +79282,7 @@ var createKanbanDemo = /* @__PURE__ */ __name((options = {}) => {
78808
79282
  searchTickets: /* @__PURE__ */ __name(async (query2) => tickets.filter(
78809
79283
  (ticket) => `${ticket.key} ${ticket.title}`.toLowerCase().includes(query2.toLowerCase())
78810
79284
  ), "searchTickets"),
78811
- loadComments: /* @__PURE__ */ __name(async (id) => comments.filter((comment) => comment.ticketId === id), "loadComments"),
79285
+ loadComments: /* @__PURE__ */ __name(async (id) => [...comments, ...questions].filter((item) => item.ticketId === id).sort((a, b2) => a.createdAt.localeCompare(b2.createdAt)), "loadComments"),
78812
79286
  loadActivity: /* @__PURE__ */ __name(async (id) => activity.filter((entry) => entry.ticketId === id), "loadActivity"),
78813
79287
  loadBoard: /* @__PURE__ */ __name(async () => ({ tickets, revision }), "loadBoard"),
78814
79288
  addComment: /* @__PURE__ */ __name(async (input) => {
@@ -78822,6 +79296,46 @@ var createKanbanDemo = /* @__PURE__ */ __name((options = {}) => {
78822
79296
  record(input.ticketId, "commented");
78823
79297
  return comment;
78824
79298
  }, "addComment"),
79299
+ askQuestion: /* @__PURE__ */ __name(async ({ ticketId, question }) => {
79300
+ return saveQuestion({
79301
+ kind: "question",
79302
+ id: `Q${questions.length + 1}`,
79303
+ ticketId,
79304
+ author: actor,
79305
+ createdAt: record(ticketId, "asked"),
79306
+ question,
79307
+ options: [],
79308
+ multiSelect: false,
79309
+ allowCustom: true
79310
+ });
79311
+ }, "askQuestion"),
79312
+ // Like a server: one answer per question, an identical second one changes nothing.
79313
+ answerQuestion: /* @__PURE__ */ __name(async ({ ticketId, questionId, choices, text }) => {
79314
+ const question = questions.find((item) => item.id === questionId && item.ticketId === ticketId);
79315
+ if (!question) throw refusal("ticket_question_not_found", "This question is no longer on the ticket.");
79316
+ const options2 = question.options ?? [];
79317
+ const ordered = options2.filter((option) => choices.includes(option.id)).map((option) => option.id);
79318
+ const words = text?.trim() || void 0;
79319
+ if (question.answer) {
79320
+ if (JSON.stringify([question.answer.choices, question.answer.text]) === JSON.stringify([ordered, words]))
79321
+ return question;
79322
+ throw refusal(
79323
+ "ticket_question_answered",
79324
+ `${question.answer.answeredBy.name} answered this question already. Ask a new one to change course.`
79325
+ );
79326
+ }
79327
+ if (ordered.length !== choices.length || !question.multiSelect && ordered.length > 1 || words && question.allowCustom === false || !ordered.length && !words)
79328
+ throw refusal("ticket_answer_invalid", "This answer does not fit the question.");
79329
+ return saveQuestion({
79330
+ ...question,
79331
+ answer: {
79332
+ choices: ordered,
79333
+ ...words ? { text: words } : {},
79334
+ answeredBy: actor,
79335
+ answeredAt: record(ticketId, "answered")
79336
+ }
79337
+ });
79338
+ }, "answerQuestion"),
78825
79339
  updateTicket: /* @__PURE__ */ __name(async ({ ticketId, changes, expectedRevision }) => {
78826
79340
  const previous = tickets.find((ticket2) => ticket2.id === ticketId);
78827
79341
  if (expectedRevision !== void 0 && expectedRevision !== previous.revision)
@@ -78935,9 +79449,10 @@ var demoFunc72 = /* @__PURE__ */ __name(() => {
78935
79449
  demo11.actAs(mara3);
78936
79450
  await board.refresh();
78937
79451
  }, "rename");
79452
+ const questionSaved = /* @__PURE__ */ __name((event) => void event.currentTarget.refresh(), "questionSaved");
78938
79453
  return demoApp(b`<div style="display: flex; flex-direction: column; height: 100%">
78939
79454
  <div class="dees-demo-row" style="flex: none; padding: 0 24px 4px">
78940
- <p class="dees-demo-caption">Signed in as Mara Chen. Jonas and Alex work on the same board. To see a refused stale edit, start editing CAT-102, close it, let Jonas rename it and save.</p>
79455
+ <p class="dees-demo-caption">Signed in as Mara Chen. Jonas and Alex work on the same board; Alex waits for Mara's answer on CAT-103. To see a refused stale edit, start editing CAT-102, close it, let Jonas rename it and save.</p>
78941
79456
  <dees-button type="outline" size="sm" text="Simulate a teammate's change" @clicked=${simulate2}></dees-button>
78942
79457
  <dees-button type="outline" size="sm" text="Jonas renames CAT-102" @clicked=${rename}></dees-button>
78943
79458
  </div>
@@ -78950,14 +79465,16 @@ var demoFunc72 = /* @__PURE__ */ __name(() => {
78950
79465
  .projects=${kanbanDemoProjects}
78951
79466
  .revision=${demo11.revision}
78952
79467
  .provider=${demo11.provider}
79468
+ @kanban-question-asked=${questionSaved}
79469
+ @kanban-question-answer=${questionSaved}
78953
79470
  ></dees-kanban>
78954
79471
  </div>`);
78955
79472
  }, "demoFunc");
78956
79473
 
78957
79474
  // ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.ts
78958
- var _pointerManaged_dec, _saving_dec3, _pending_dec2, _moveDisabled_dec, _movable_dec, _columns_dec5, _projectName_dec, _subtasks_dec, _epic_dec, _ticket_dec2, _a106, _DeesKanbanCard_decorators, _init107, _ticket2, _epic, _subtasks, _projectName, _columns5, _movable, _moveDisabled, _pending2, _saving3, _pointerManaged;
79475
+ var _pointerManaged_dec, _saving_dec3, _pending_dec2, _moveDisabled_dec, _movable_dec, _autoLabelDefinitions_dec2, _columns_dec5, _projectName_dec, _subtasks_dec, _epic_dec, _ticket_dec2, _a106, _DeesKanbanCard_decorators, _init107, _ticket2, _epic, _subtasks, _projectName, _columns5, _autoLabelDefinitions2, _movable, _moveDisabled, _pending2, _saving3, _pointerManaged;
78959
79476
  _DeesKanbanCard_decorators = [customElement("dees-kanban-card")];
78960
- var _DeesKanbanCard = class _DeesKanbanCard extends (_a106 = DeesElement, _ticket_dec2 = [n({ attribute: false })], _epic_dec = [n({ attribute: false })], _subtasks_dec = [n({ attribute: false })], _projectName_dec = [n({ type: String, reflect: true })], _columns_dec5 = [n({ attribute: false })], _movable_dec = [n({ type: Boolean, reflect: true })], _moveDisabled_dec = [n({ type: Boolean, reflect: true })], _pending_dec2 = [n({ type: Boolean, reflect: true })], _saving_dec3 = [n({ type: Boolean, reflect: true })], _pointerManaged_dec = [n({ attribute: false })], _a106) {
79477
+ var _DeesKanbanCard = class _DeesKanbanCard extends (_a106 = DeesElement, _ticket_dec2 = [n({ attribute: false })], _epic_dec = [n({ attribute: false })], _subtasks_dec = [n({ attribute: false })], _projectName_dec = [n({ type: String, reflect: true })], _columns_dec5 = [n({ attribute: false })], _autoLabelDefinitions_dec2 = [n({ attribute: false })], _movable_dec = [n({ type: Boolean, reflect: true })], _moveDisabled_dec = [n({ type: Boolean, reflect: true })], _pending_dec2 = [n({ type: Boolean, reflect: true })], _saving_dec3 = [n({ type: Boolean, reflect: true })], _pointerManaged_dec = [n({ attribute: false })], _a106) {
78961
79478
  constructor() {
78962
79479
  super(...arguments);
78963
79480
  __privateAdd(this, _ticket2, __runInitializers(_init107, 8, this)), __runInitializers(_init107, 11, this);
@@ -78965,11 +79482,12 @@ var _DeesKanbanCard = class _DeesKanbanCard extends (_a106 = DeesElement, _ticke
78965
79482
  __privateAdd(this, _subtasks, __runInitializers(_init107, 16, this, [])), __runInitializers(_init107, 19, this);
78966
79483
  __privateAdd(this, _projectName, __runInitializers(_init107, 20, this, "")), __runInitializers(_init107, 23, this);
78967
79484
  __privateAdd(this, _columns5, __runInitializers(_init107, 24, this, [])), __runInitializers(_init107, 27, this);
78968
- __privateAdd(this, _movable, __runInitializers(_init107, 28, this, false)), __runInitializers(_init107, 31, this);
78969
- __privateAdd(this, _moveDisabled, __runInitializers(_init107, 32, this, false)), __runInitializers(_init107, 35, this);
78970
- __privateAdd(this, _pending2, __runInitializers(_init107, 36, this, false)), __runInitializers(_init107, 39, this);
78971
- __privateAdd(this, _saving3, __runInitializers(_init107, 40, this, false)), __runInitializers(_init107, 43, this);
78972
- __privateAdd(this, _pointerManaged, __runInitializers(_init107, 44, this, false)), __runInitializers(_init107, 47, this);
79485
+ __privateAdd(this, _autoLabelDefinitions2, __runInitializers(_init107, 28, this, [])), __runInitializers(_init107, 31, this);
79486
+ __privateAdd(this, _movable, __runInitializers(_init107, 32, this, false)), __runInitializers(_init107, 35, this);
79487
+ __privateAdd(this, _moveDisabled, __runInitializers(_init107, 36, this, false)), __runInitializers(_init107, 39, this);
79488
+ __privateAdd(this, _pending2, __runInitializers(_init107, 40, this, false)), __runInitializers(_init107, 43, this);
79489
+ __privateAdd(this, _saving3, __runInitializers(_init107, 44, this, false)), __runInitializers(_init107, 47, this);
79490
+ __privateAdd(this, _pointerManaged, __runInitializers(_init107, 48, this, false)), __runInitializers(_init107, 51, this);
78973
79491
  __publicField(this, "t", dcLocalize(this));
78974
79492
  }
78975
79493
  open(ticketId) {
@@ -79027,6 +79545,7 @@ var _DeesKanbanCard = class _DeesKanbanCard extends (_a106 = DeesElement, _ticke
79027
79545
  iconSize="13"
79028
79546
  aria-hidden="true"
79029
79547
  ></dees-icon>${this.t("kanban.priority", { priority: ticket.priority })}</span>` : ""}
79548
+ ${renderKanbanAutoLabels(this.t, this.autoLabelDefinitions, ticket.autoLabels)}
79030
79549
  ${ticket.labels?.map((label) => b`<span class="badge" title=${label}>${label}</span>`)}
79031
79550
  <span class="assignee" title=${ticket.assignee?.name ?? this.t("kanban.unassigned")}>
79032
79551
  <span
@@ -79065,6 +79584,7 @@ _epic = new WeakMap();
79065
79584
  _subtasks = new WeakMap();
79066
79585
  _projectName = new WeakMap();
79067
79586
  _columns5 = new WeakMap();
79587
+ _autoLabelDefinitions2 = new WeakMap();
79068
79588
  _movable = new WeakMap();
79069
79589
  _moveDisabled = new WeakMap();
79070
79590
  _pending2 = new WeakMap();
@@ -79075,6 +79595,7 @@ __decorateElement(_init107, 4, "epic", _epic_dec, _DeesKanbanCard, _epic);
79075
79595
  __decorateElement(_init107, 4, "subtasks", _subtasks_dec, _DeesKanbanCard, _subtasks);
79076
79596
  __decorateElement(_init107, 4, "projectName", _projectName_dec, _DeesKanbanCard, _projectName);
79077
79597
  __decorateElement(_init107, 4, "columns", _columns_dec5, _DeesKanbanCard, _columns5);
79598
+ __decorateElement(_init107, 4, "autoLabelDefinitions", _autoLabelDefinitions_dec2, _DeesKanbanCard, _autoLabelDefinitions2);
79078
79599
  __decorateElement(_init107, 4, "movable", _movable_dec, _DeesKanbanCard, _movable);
79079
79600
  __decorateElement(_init107, 4, "moveDisabled", _moveDisabled_dec, _DeesKanbanCard, _moveDisabled);
79080
79601
  __decorateElement(_init107, 4, "pending", _pending_dec2, _DeesKanbanCard, _pending2);
@@ -79209,6 +79730,10 @@ __publicField(_DeesKanbanCard, "styles", [
79209
79730
  text-overflow: ellipsis;
79210
79731
  }
79211
79732
 
79733
+ .badge.auto {
79734
+ display: inline-flex;
79735
+ }
79736
+
79212
79737
  .assignee {
79213
79738
  display: flex;
79214
79739
  align-items: center;
@@ -79953,10 +80478,10 @@ var KanbanDragController = class {
79953
80478
  };
79954
80479
 
79955
80480
  // ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.ts
79956
- var _motion_dec, _nativeOver_dec, _nativeDropBefore_dec, _pointerManaged_dec2, _draggingTicketId_dec, _pendingTicketId_dec, _collapsed_dec3, _canCreate_dec, _movesDisabled_dec, _movable_dec2, _showProjects_dec, _projects_dec3, _columns_dec6, _allTickets_dec, _tickets_dec3, _column_dec, _a107, _DeesKanbanColumn_decorators, _init108, _column, _tickets3, _allTickets, _columns6, _projects3, _showProjects, _movable2, _movesDisabled, _canCreate, _collapsed3, _pendingTicketId, _draggingTicketId, _pointerManaged2, _nativeDropBefore, _nativeOver, _motion;
80481
+ var _motion_dec, _nativeOver_dec, _nativeDropBefore_dec, _pointerManaged_dec2, _draggingTicketId_dec, _pendingTicketId_dec, _collapsed_dec3, _canCreate_dec, _movesDisabled_dec, _movable_dec2, _showProjects_dec, _autoLabelDefinitions_dec3, _projects_dec3, _columns_dec6, _allTickets_dec, _tickets_dec3, _column_dec, _a107, _DeesKanbanColumn_decorators, _init108, _column, _tickets3, _allTickets, _columns6, _projects3, _autoLabelDefinitions3, _showProjects, _movable2, _movesDisabled, _canCreate, _collapsed3, _pendingTicketId, _draggingTicketId, _pointerManaged2, _nativeDropBefore, _nativeOver, _motion;
79957
80482
  var collapsedCards = 3;
79958
80483
  _DeesKanbanColumn_decorators = [customElement("dees-kanban-column")];
79959
- var _DeesKanbanColumn = class _DeesKanbanColumn extends (_a107 = DeesElement, _column_dec = [n({ attribute: false })], _tickets_dec3 = [n({ attribute: false })], _allTickets_dec = [n({ attribute: false })], _columns_dec6 = [n({ attribute: false })], _projects_dec3 = [n({ attribute: false })], _showProjects_dec = [n({ type: Boolean, reflect: true })], _movable_dec2 = [n({ type: Boolean, reflect: true })], _movesDisabled_dec = [n({ type: Boolean, reflect: true })], _canCreate_dec = [n({ type: Boolean, reflect: true })], _collapsed_dec3 = [n({ type: Boolean, reflect: true })], _pendingTicketId_dec = [n({ type: String, reflect: true })], _draggingTicketId_dec = [n({ type: String, reflect: true })], _pointerManaged_dec2 = [n({ attribute: false })], _nativeDropBefore_dec = [r2()], _nativeOver_dec = [r2()], _motion_dec = [n({ attribute: false })], _a107) {
80484
+ var _DeesKanbanColumn = class _DeesKanbanColumn extends (_a107 = DeesElement, _column_dec = [n({ attribute: false })], _tickets_dec3 = [n({ attribute: false })], _allTickets_dec = [n({ attribute: false })], _columns_dec6 = [n({ attribute: false })], _projects_dec3 = [n({ attribute: false })], _autoLabelDefinitions_dec3 = [n({ attribute: false })], _showProjects_dec = [n({ type: Boolean, reflect: true })], _movable_dec2 = [n({ type: Boolean, reflect: true })], _movesDisabled_dec = [n({ type: Boolean, reflect: true })], _canCreate_dec = [n({ type: Boolean, reflect: true })], _collapsed_dec3 = [n({ type: Boolean, reflect: true })], _pendingTicketId_dec = [n({ type: String, reflect: true })], _draggingTicketId_dec = [n({ type: String, reflect: true })], _pointerManaged_dec2 = [n({ attribute: false })], _nativeDropBefore_dec = [r2()], _nativeOver_dec = [r2()], _motion_dec = [n({ attribute: false })], _a107) {
79960
80485
  constructor() {
79961
80486
  super(...arguments);
79962
80487
  __publicField(this, "t", dcLocalize(this));
@@ -79965,17 +80490,18 @@ var _DeesKanbanColumn = class _DeesKanbanColumn extends (_a107 = DeesElement, _c
79965
80490
  __privateAdd(this, _allTickets, __runInitializers(_init108, 16, this, [])), __runInitializers(_init108, 19, this);
79966
80491
  __privateAdd(this, _columns6, __runInitializers(_init108, 20, this, [])), __runInitializers(_init108, 23, this);
79967
80492
  __privateAdd(this, _projects3, __runInitializers(_init108, 24, this, [])), __runInitializers(_init108, 27, this);
79968
- __privateAdd(this, _showProjects, __runInitializers(_init108, 28, this, false)), __runInitializers(_init108, 31, this);
79969
- __privateAdd(this, _movable2, __runInitializers(_init108, 32, this, false)), __runInitializers(_init108, 35, this);
79970
- __privateAdd(this, _movesDisabled, __runInitializers(_init108, 36, this, false)), __runInitializers(_init108, 39, this);
79971
- __privateAdd(this, _canCreate, __runInitializers(_init108, 40, this, false)), __runInitializers(_init108, 43, this);
79972
- __privateAdd(this, _collapsed3, __runInitializers(_init108, 44, this, false)), __runInitializers(_init108, 47, this);
79973
- __privateAdd(this, _pendingTicketId, __runInitializers(_init108, 48, this, "")), __runInitializers(_init108, 51, this);
79974
- __privateAdd(this, _draggingTicketId, __runInitializers(_init108, 52, this, "")), __runInitializers(_init108, 55, this);
79975
- __privateAdd(this, _pointerManaged2, __runInitializers(_init108, 56, this, false)), __runInitializers(_init108, 59, this);
79976
- __privateAdd(this, _nativeDropBefore, __runInitializers(_init108, 60, this)), __runInitializers(_init108, 63, this);
79977
- __privateAdd(this, _nativeOver, __runInitializers(_init108, 64, this, false)), __runInitializers(_init108, 67, this);
79978
- __privateAdd(this, _motion, __runInitializers(_init108, 68, this)), __runInitializers(_init108, 71, this);
80493
+ __privateAdd(this, _autoLabelDefinitions3, __runInitializers(_init108, 28, this, [])), __runInitializers(_init108, 31, this);
80494
+ __privateAdd(this, _showProjects, __runInitializers(_init108, 32, this, false)), __runInitializers(_init108, 35, this);
80495
+ __privateAdd(this, _movable2, __runInitializers(_init108, 36, this, false)), __runInitializers(_init108, 39, this);
80496
+ __privateAdd(this, _movesDisabled, __runInitializers(_init108, 40, this, false)), __runInitializers(_init108, 43, this);
80497
+ __privateAdd(this, _canCreate, __runInitializers(_init108, 44, this, false)), __runInitializers(_init108, 47, this);
80498
+ __privateAdd(this, _collapsed3, __runInitializers(_init108, 48, this, false)), __runInitializers(_init108, 51, this);
80499
+ __privateAdd(this, _pendingTicketId, __runInitializers(_init108, 52, this, "")), __runInitializers(_init108, 55, this);
80500
+ __privateAdd(this, _draggingTicketId, __runInitializers(_init108, 56, this, "")), __runInitializers(_init108, 59, this);
80501
+ __privateAdd(this, _pointerManaged2, __runInitializers(_init108, 60, this, false)), __runInitializers(_init108, 63, this);
80502
+ __privateAdd(this, _nativeDropBefore, __runInitializers(_init108, 64, this)), __runInitializers(_init108, 67, this);
80503
+ __privateAdd(this, _nativeOver, __runInitializers(_init108, 68, this, false)), __runInitializers(_init108, 71, this);
80504
+ __privateAdd(this, _motion, __runInitializers(_init108, 72, this)), __runInitializers(_init108, 75, this);
79979
80505
  /** "Show all" unfolded the column and went away with it: focus moves to the header's toggle. */
79980
80506
  __publicField(this, "focusToggle", false);
79981
80507
  __publicField(this, "scrollEdges", new ScrollEdgeShadowController(this, () => this.cardScroller));
@@ -80078,6 +80604,7 @@ var _DeesKanbanColumn = class _DeesKanbanColumn extends (_a107 = DeesElement, _c
80078
80604
  ></div>` : b`<dees-kanban-card
80079
80605
  .ticket=${ticket}
80080
80606
  .columns=${this.columns}
80607
+ .autoLabelDefinitions=${this.autoLabelDefinitions}
80081
80608
  .projectName=${this.showProjects && ticket.project ? kanbanProjectName(this.projects, ticket.project) : ""}
80082
80609
  .epic=${this.allTickets.find(
80083
80610
  (item) => item.id === ticket.parentId && item.kind === "epic"
@@ -80134,6 +80661,7 @@ _tickets3 = new WeakMap();
80134
80661
  _allTickets = new WeakMap();
80135
80662
  _columns6 = new WeakMap();
80136
80663
  _projects3 = new WeakMap();
80664
+ _autoLabelDefinitions3 = new WeakMap();
80137
80665
  _showProjects = new WeakMap();
80138
80666
  _movable2 = new WeakMap();
80139
80667
  _movesDisabled = new WeakMap();
@@ -80150,6 +80678,7 @@ __decorateElement(_init108, 4, "tickets", _tickets_dec3, _DeesKanbanColumn, _tic
80150
80678
  __decorateElement(_init108, 4, "allTickets", _allTickets_dec, _DeesKanbanColumn, _allTickets);
80151
80679
  __decorateElement(_init108, 4, "columns", _columns_dec6, _DeesKanbanColumn, _columns6);
80152
80680
  __decorateElement(_init108, 4, "projects", _projects_dec3, _DeesKanbanColumn, _projects3);
80681
+ __decorateElement(_init108, 4, "autoLabelDefinitions", _autoLabelDefinitions_dec3, _DeesKanbanColumn, _autoLabelDefinitions3);
80153
80682
  __decorateElement(_init108, 4, "showProjects", _showProjects_dec, _DeesKanbanColumn, _showProjects);
80154
80683
  __decorateElement(_init108, 4, "movable", _movable_dec2, _DeesKanbanColumn, _movable2);
80155
80684
  __decorateElement(_init108, 4, "movesDisabled", _movesDisabled_dec, _DeesKanbanColumn, _movesDisabled);
@@ -80311,7 +80840,7 @@ __runInitializers(_init108, 1, _DeesKanbanColumn);
80311
80840
  var DeesKanbanColumn = _DeesKanbanColumn;
80312
80841
 
80313
80842
  // ts_web/elements/00group-kanban/dees-kanban/dees-kanban.ts
80314
- var _columnsCollapsed_dec, _openingTicket_dec, _pendingTicketId_dec2, _filterAnnouncement_dec, _filtersOpen_dec, _operationError_dec, _revision_dec, _filterValues_dec2, _currentPersonId_dec, _projectRequired_dec, _projects_dec4, _error_dec7, _loading_dec11, _provider_dec4, _people_dec2, _columns_dec7, _tickets_dec4, _heading_dec11, _a108, _DeesKanban_decorators, _init109, _heading11, _tickets4, _columns7, _people2, _provider4, _loading11, _error7, _projects4, _projectRequired, _currentPersonId, _filterValues2, _revision, _operationError, _filtersOpen, _filterAnnouncement, _pendingTicketId2, _openingTicket, _columnsCollapsed;
80843
+ var _columnsCollapsed_dec, _openingTicket_dec, _pendingTicketId_dec2, _filterAnnouncement_dec, _filtersOpen_dec, _operationError_dec, _revision_dec, _filterValues_dec2, _currentPersonId_dec, _projectRequired_dec, _autoLabelDefinitions_dec4, _projects_dec4, _error_dec7, _loading_dec11, _provider_dec4, _people_dec2, _columns_dec7, _tickets_dec4, _heading_dec11, _a108, _DeesKanban_decorators, _init109, _heading11, _tickets4, _columns7, _people2, _provider4, _loading11, _error7, _projects4, _autoLabelDefinitions4, _projectRequired, _currentPersonId, _filterValues2, _revision, _operationError, _filtersOpen, _filterAnnouncement, _pendingTicketId2, _openingTicket, _columnsCollapsed;
80315
80844
  var interactionEvents = [
80316
80845
  "kanban-ticket-open",
80317
80846
  "kanban-ticket-move",
@@ -80321,6 +80850,8 @@ var interactionEvents = [
80321
80850
  "kanban-ticket-draft",
80322
80851
  "kanban-comment-draft",
80323
80852
  "kanban-comment-added",
80853
+ "kanban-question-added",
80854
+ "kanban-question-answered",
80324
80855
  "kanban-comments-refresh",
80325
80856
  "kanban-activity-refresh",
80326
80857
  "kanban-detail-back",
@@ -80330,7 +80861,7 @@ var interactionEvents = [
80330
80861
  "kanban-column-toggle"
80331
80862
  ];
80332
80863
  _DeesKanban_decorators = [customElement("dees-kanban")];
80333
- var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11 = [n({ type: String, reflect: true })], _tickets_dec4 = [n({ attribute: false })], _columns_dec7 = [n({ attribute: false })], _people_dec2 = [n({ attribute: false })], _provider_dec4 = [n({ attribute: false })], _loading_dec11 = [n({ type: Boolean, reflect: true })], _error_dec7 = [n({ type: String, reflect: true })], _projects_dec4 = [n({ attribute: false })], _projectRequired_dec = [n({ type: Boolean, reflect: true })], _currentPersonId_dec = [n({ type: String, reflect: true })], _filterValues_dec2 = [n({ attribute: false })], _revision_dec = [n({ attribute: false })], _operationError_dec = [r2()], _filtersOpen_dec = [r2()], _filterAnnouncement_dec = [r2()], _pendingTicketId_dec2 = [r2()], _openingTicket_dec = [r2()], _columnsCollapsed_dec = [r2()], _a108) {
80864
+ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11 = [n({ type: String, reflect: true })], _tickets_dec4 = [n({ attribute: false })], _columns_dec7 = [n({ attribute: false })], _people_dec2 = [n({ attribute: false })], _provider_dec4 = [n({ attribute: false })], _loading_dec11 = [n({ type: Boolean, reflect: true })], _error_dec7 = [n({ type: String, reflect: true })], _projects_dec4 = [n({ attribute: false })], _autoLabelDefinitions_dec4 = [n({ attribute: false })], _projectRequired_dec = [n({ type: Boolean, reflect: true })], _currentPersonId_dec = [n({ type: String, reflect: true })], _filterValues_dec2 = [n({ attribute: false })], _revision_dec = [n({ attribute: false })], _operationError_dec = [r2()], _filtersOpen_dec = [r2()], _filterAnnouncement_dec = [r2()], _pendingTicketId_dec2 = [r2()], _openingTicket_dec = [r2()], _columnsCollapsed_dec = [r2()], _a108) {
80334
80865
  constructor() {
80335
80866
  super(...arguments);
80336
80867
  __publicField(this, "t", dcLocalize(this));
@@ -80342,16 +80873,17 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80342
80873
  __privateAdd(this, _loading11, __runInitializers(_init109, 28, this, false)), __runInitializers(_init109, 31, this);
80343
80874
  __privateAdd(this, _error7, __runInitializers(_init109, 32, this, "")), __runInitializers(_init109, 35, this);
80344
80875
  __privateAdd(this, _projects4, __runInitializers(_init109, 36, this, [])), __runInitializers(_init109, 39, this);
80345
- __privateAdd(this, _projectRequired, __runInitializers(_init109, 40, this, false)), __runInitializers(_init109, 43, this);
80346
- __privateAdd(this, _currentPersonId, __runInitializers(_init109, 44, this, "")), __runInitializers(_init109, 47, this);
80347
- __privateAdd(this, _filterValues2, __runInitializers(_init109, 48, this, {})), __runInitializers(_init109, 51, this);
80348
- __privateAdd(this, _revision, __runInitializers(_init109, 52, this)), __runInitializers(_init109, 55, this);
80349
- __privateAdd(this, _operationError, __runInitializers(_init109, 56, this, "")), __runInitializers(_init109, 59, this);
80350
- __privateAdd(this, _filtersOpen, __runInitializers(_init109, 60, this, false)), __runInitializers(_init109, 63, this);
80351
- __privateAdd(this, _filterAnnouncement, __runInitializers(_init109, 64, this, "")), __runInitializers(_init109, 67, this);
80352
- __privateAdd(this, _pendingTicketId2, __runInitializers(_init109, 68, this, "")), __runInitializers(_init109, 71, this);
80353
- __privateAdd(this, _openingTicket, __runInitializers(_init109, 72, this, false)), __runInitializers(_init109, 75, this);
80354
- __privateAdd(this, _columnsCollapsed, __runInitializers(_init109, 76, this, {})), __runInitializers(_init109, 79, this);
80876
+ __privateAdd(this, _autoLabelDefinitions4, __runInitializers(_init109, 40, this, [])), __runInitializers(_init109, 43, this);
80877
+ __privateAdd(this, _projectRequired, __runInitializers(_init109, 44, this, false)), __runInitializers(_init109, 47, this);
80878
+ __privateAdd(this, _currentPersonId, __runInitializers(_init109, 48, this, "")), __runInitializers(_init109, 51, this);
80879
+ __privateAdd(this, _filterValues2, __runInitializers(_init109, 52, this, {})), __runInitializers(_init109, 55, this);
80880
+ __privateAdd(this, _revision, __runInitializers(_init109, 56, this)), __runInitializers(_init109, 59, this);
80881
+ __privateAdd(this, _operationError, __runInitializers(_init109, 60, this, "")), __runInitializers(_init109, 63, this);
80882
+ __privateAdd(this, _filtersOpen, __runInitializers(_init109, 64, this, false)), __runInitializers(_init109, 67, this);
80883
+ __privateAdd(this, _filterAnnouncement, __runInitializers(_init109, 68, this, "")), __runInitializers(_init109, 71, this);
80884
+ __privateAdd(this, _pendingTicketId2, __runInitializers(_init109, 72, this, "")), __runInitializers(_init109, 75, this);
80885
+ __privateAdd(this, _openingTicket, __runInitializers(_init109, 76, this, false)), __runInitializers(_init109, 79, this);
80886
+ __privateAdd(this, _columnsCollapsed, __runInitializers(_init109, 80, this, {})), __runInitializers(_init109, 83, this);
80355
80887
  __publicField(this, "modal");
80356
80888
  __publicField(this, "modalOpening");
80357
80889
  __publicField(this, "detail");
@@ -80480,18 +81012,22 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80480
81012
  break;
80481
81013
  case "kanban-comment-added": {
80482
81014
  const { comment, submittedBody } = detail;
80483
- const comments = this.commentCache.get(comment.ticketId) ?? [];
80484
- this.commentCache.set(comment.ticketId, [
80485
- ...comments.filter((item) => item.id !== comment.id),
80486
- comment
80487
- ]);
80488
- if (JSON.stringify(this.commentDrafts.get(comment.ticketId) ?? []) === JSON.stringify(submittedBody))
80489
- this.commentDrafts.delete(comment.ticketId);
80490
- this.syncDetail();
80491
- if (comment.ticketId === this.selectedId) void this.refreshActivity(comment.ticketId, true);
81015
+ this.keepDiscussionItem(comment, submittedBody);
80492
81016
  kanbanEvent(this, "kanban-comment-saved", { comment });
80493
81017
  break;
80494
81018
  }
81019
+ case "kanban-question-added": {
81020
+ const { question, submittedBody } = detail;
81021
+ this.keepDiscussionItem(question, submittedBody);
81022
+ kanbanEvent(this, "kanban-question-asked", { question });
81023
+ break;
81024
+ }
81025
+ case "kanban-question-answered": {
81026
+ const { question, answer } = detail;
81027
+ this.keepDiscussionItem(question);
81028
+ kanbanEvent(this, "kanban-question-answer", { ...answer, question });
81029
+ break;
81030
+ }
80495
81031
  case "kanban-comments-refresh":
80496
81032
  void this.refreshComments(detail.ticketId);
80497
81033
  break;
@@ -80514,8 +81050,8 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80514
81050
  }
80515
81051
  willUpdate(changed3) {
80516
81052
  super.willUpdate(changed3);
80517
- const refusal = this.refusal;
80518
- if (refusal && changed3.has("tickets") && kanbanTicketVersion(this.findTicket(refusal.ticketId)) !== refusal.version)
81053
+ const refusal2 = this.refusal;
81054
+ if (refusal2 && changed3.has("tickets") && kanbanTicketVersion(this.findTicket(refusal2.ticketId)) !== refusal2.version)
80519
81055
  this.clearOperationError();
80520
81056
  }
80521
81057
  updated() {
@@ -80627,6 +81163,7 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80627
81163
  .tickets=${tasks.filter((ticket) => ticket.columnId === column.id)}
80628
81164
  .allTickets=${this.tickets}
80629
81165
  .projects=${projects}
81166
+ .autoLabelDefinitions=${this.autoLabelDefinitions}
80630
81167
  .showProjects=${!filters.project && projects.length > 0}
80631
81168
  .movable=${Boolean(this.provider.moveTicket)}
80632
81169
  .canCreate=${Boolean(this.provider.createTicket)}
@@ -80674,20 +81211,25 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80674
81211
  const query2 = (filters.text ?? "").trim().toLocaleLowerCase();
80675
81212
  const mine = filters.mine && this.currentPersonId;
80676
81213
  return this.tickets.filter(
80677
- (ticket) => ticket.kind === "task" && (!filters.epic || ticket.parentId === filters.epic) && (!filters.project || ticket.project === filters.project) && (!filters.assignee || (filters.assignee === "none" ? !ticket.assignee : ticket.assignee?.id === filters.assignee)) && (!filters.label || Boolean(ticket.labels?.includes(filters.label))) && (!mine || ticket.assignee?.id === this.currentPersonId) && (!query2 || [
81214
+ (ticket) => ticket.kind === "task" && (!filters.epic || ticket.parentId === filters.epic) && (!filters.project || ticket.project === filters.project) && (!filters.assignee || (filters.assignee === "none" ? !ticket.assignee : ticket.assignee?.id === filters.assignee)) && (!filters.label || Boolean(ticket.labels?.includes(filters.label))) && (!filters.autoLabel || Boolean(ticket.autoLabels?.includes(filters.autoLabel))) && (!mine || ticket.assignee?.id === this.currentPersonId) && (!query2 || [
80678
81215
  ticket.key,
80679
81216
  ticket.title,
80680
81217
  ticket.project ? kanbanProjectName(this.projects, ticket.project) : "",
80681
81218
  ticket.assignee?.name,
80682
81219
  ...ticket.labels ?? [],
81220
+ ...(ticket.autoLabels ?? []).map((label) => this.autoLabelName(label)),
80683
81221
  ...this.tickets.filter((child) => child.parentId === ticket.id).map((child) => `${child.key} ${child.title}`)
80684
81222
  ].join(" ").toLocaleLowerCase().includes(query2))
80685
81223
  );
80686
81224
  }
81225
+ /** An AutoLabel's name, as its chip shows it. */
81226
+ autoLabelName(label) {
81227
+ return kanbanAutoLabel(this.t, this.autoLabelDefinitions, label).name;
81228
+ }
80687
81229
  /**
80688
81230
  * The filter bubble's fields, as the table's filters: a project, an epic (of that project), an
80689
- * assignee and a label, each with an "all" option, and "Assigned to me" while the board knows
80690
- * its reader. A field with nothing to choose from is left out; a value set in code that no
81231
+ * assignee, a label and an AutoLabel, each with an "all" option, and "Assigned to me" while the
81232
+ * board knows its reader. The AutoLabels are the defined ones and those a ticket carries. A field with nothing to choose from is left out; a value set in code that no
80691
81233
  * ticket has stays a choice.
80692
81234
  */
80693
81235
  filterFields() {
@@ -80718,6 +81260,10 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80718
81260
  ...this.tickets.map((ticket) => ticket.assignee).filter((person) => Boolean(person)).filter((person, index, all) => all.findIndex((item) => item.id === person.id) === index).filter((person) => !this.people.some((known) => known.id === person.id)).sort((a, b2) => a.name.localeCompare(b2.name))
80719
81261
  ];
80720
81262
  const labels = [...new Set(this.tickets.flatMap((ticket) => ticket.labels ?? []))].sort((a, b2) => a.localeCompare(b2));
81263
+ const autoLabels = [.../* @__PURE__ */ new Set([
81264
+ ...this.autoLabelDefinitions.map((definition) => definition.label),
81265
+ ...this.tickets.flatMap((ticket) => ticket.autoLabels ?? [])
81266
+ ])].map((label) => ({ key: label, label: this.autoLabelName(label) })).sort((a, b2) => a.label.localeCompare(b2.label));
80721
81267
  const fields = [
80722
81268
  choices(
80723
81269
  "project",
@@ -80740,7 +81286,8 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80740
81286
  this.t("kanban.label"),
80741
81287
  this.t("kanban.allLabels"),
80742
81288
  labels.map((label) => ({ key: label, label }))
80743
- )
81289
+ ),
81290
+ choices("autoLabel", this.t("kanban.autoLabel"), this.t("kanban.allAutoLabels"), autoLabels)
80744
81291
  ].filter((field) => Boolean(field));
80745
81292
  if (this.currentPersonId)
80746
81293
  fields.push({
@@ -80900,6 +81447,7 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80900
81447
  this.detail.provider = this.provider;
80901
81448
  this.detail.searchTickets = this.searchTickets;
80902
81449
  this.detail.projects = this.projects;
81450
+ this.detail.autoLabelDefinitions = this.autoLabelDefinitions;
80903
81451
  this.detail.comments = this.commentCache.get(this.selectedId) ?? [];
80904
81452
  this.detail.activity = this.activityCache.get(this.selectedId) ?? [];
80905
81453
  this.detail.commentDraft = this.commentDrafts.get(this.selectedId) ?? [];
@@ -80909,7 +81457,7 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80909
81457
  this.detail.saving = this.pendingTicketId === this.selectedId;
80910
81458
  if (this.modal) this.modal.heading = this.detail.ticket.key;
80911
81459
  }
80912
- /** Replace a ticket's discussion with an authoritative snapshot (for realtime updates). */
81460
+ /** Replace a ticket's discussion, comments and questions, with an authoritative snapshot (for realtime updates). */
80913
81461
  setComments(ticketId, comments) {
80914
81462
  if (comments.some((comment) => comment.ticketId !== ticketId))
80915
81463
  throw new Error("Comment ticket IDs must match.");
@@ -80917,6 +81465,19 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80917
81465
  this.commentRevisions.set(ticketId, (this.commentRevisions.get(ticketId) ?? 0) + 1);
80918
81466
  this.syncDetail();
80919
81467
  }
81468
+ /**
81469
+ * Takes a comment or question the discussion saved into the ticket's discussion, over its earlier
81470
+ * state; the composer's kept text leaves once it is what was posted. The history loads again.
81471
+ */
81472
+ keepDiscussionItem(item, submittedBody) {
81473
+ const key = kanbanItemKey(item);
81474
+ const items = this.commentCache.get(item.ticketId) ?? [];
81475
+ this.commentCache.set(item.ticketId, [...items.filter((other) => kanbanItemKey(other) !== key), item]);
81476
+ if (submittedBody && JSON.stringify(this.commentDrafts.get(item.ticketId) ?? []) === JSON.stringify(submittedBody))
81477
+ this.commentDrafts.delete(item.ticketId);
81478
+ this.syncDetail();
81479
+ if (item.ticketId === this.selectedId) void this.refreshActivity(item.ticketId, true);
81480
+ }
80920
81481
  /** Loads a ticket's comments again; `quiet` keeps the shown ones without a loading line meanwhile. */
80921
81482
  async refreshComments(ticketId = this.selectedId, quiet = false) {
80922
81483
  this.commentsAbort?.abort();
@@ -80929,7 +81490,7 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80929
81490
  return;
80930
81491
  }
80931
81492
  const revision = this.commentRevisions.get(ticketId) ?? 0;
80932
- const existingIds = new Set((this.commentCache.get(ticketId) ?? []).map((comment) => comment.id));
81493
+ const before = new Map((this.commentCache.get(ticketId) ?? []).map((item) => [kanbanItemKey(item), item]));
80933
81494
  if (this.detail && ticketId === this.selectedId && !quiet) {
80934
81495
  this.detail.loadingComments = true;
80935
81496
  this.detail.commentsError = "";
@@ -80937,10 +81498,12 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80937
81498
  try {
80938
81499
  const comments = await this.provider.loadComments(ticketId, controller.signal);
80939
81500
  if (!controller.signal.aborted && (this.commentRevisions.get(ticketId) ?? 0) === revision) {
80940
- const postedWhileLoading = (this.commentCache.get(ticketId) ?? []).filter(
80941
- (comment) => !existingIds.has(comment.id) && !comments.some((item) => item.id === comment.id)
80942
- );
80943
- this.setComments(ticketId, [...comments, ...postedWhileLoading]);
81501
+ const loaded = new Set(comments.map(kanbanItemKey));
81502
+ const savedWhileLoading = new Map((this.commentCache.get(ticketId) ?? []).filter((item) => before.get(kanbanItemKey(item)) !== item).map((item) => [kanbanItemKey(item), item]));
81503
+ this.setComments(ticketId, [
81504
+ ...comments.map((item) => before.has(kanbanItemKey(item)) ? savedWhileLoading.get(kanbanItemKey(item)) ?? item : item),
81505
+ ...[...savedWhileLoading.values()].filter((item) => !loaded.has(kanbanItemKey(item)))
81506
+ ]);
80944
81507
  if (this.detail && ticketId === this.selectedId) this.detail.commentsError = "";
80945
81508
  }
80946
81509
  } catch (error) {
@@ -81375,6 +81938,7 @@ _provider4 = new WeakMap();
81375
81938
  _loading11 = new WeakMap();
81376
81939
  _error7 = new WeakMap();
81377
81940
  _projects4 = new WeakMap();
81941
+ _autoLabelDefinitions4 = new WeakMap();
81378
81942
  _projectRequired = new WeakMap();
81379
81943
  _currentPersonId = new WeakMap();
81380
81944
  _filterValues2 = new WeakMap();
@@ -81393,6 +81957,7 @@ __decorateElement(_init109, 4, "provider", _provider_dec4, _DeesKanban, _provide
81393
81957
  __decorateElement(_init109, 4, "loading", _loading_dec11, _DeesKanban, _loading11);
81394
81958
  __decorateElement(_init109, 4, "error", _error_dec7, _DeesKanban, _error7);
81395
81959
  __decorateElement(_init109, 4, "projects", _projects_dec4, _DeesKanban, _projects4);
81960
+ __decorateElement(_init109, 4, "autoLabelDefinitions", _autoLabelDefinitions_dec4, _DeesKanban, _autoLabelDefinitions4);
81396
81961
  __decorateElement(_init109, 4, "projectRequired", _projectRequired_dec, _DeesKanban, _projectRequired);
81397
81962
  __decorateElement(_init109, 4, "currentPersonId", _currentPersonId_dec, _DeesKanban, _currentPersonId);
81398
81963
  __decorateElement(_init109, 4, "filterValues", _filterValues_dec2, _DeesKanban, _filterValues2);
@@ -86181,16 +86746,16 @@ var demoFunc79 = /* @__PURE__ */ __name(() => {
86181
86746
  }, "demoFunc");
86182
86747
 
86183
86748
  // ts_web/elements/00group-layout/dees-settings/dees-settings.ts
86184
- var _frameless_dec15, _actions_dec6, _settingsFields_dec, _description_dec5, _heading_dec12, _a117, _DeesSettings_decorators, _init119, _heading12, _description5, _settingsFields, _actions6, _frameless15;
86749
+ var _frameless_dec16, _actions_dec6, _settingsFields_dec, _description_dec5, _heading_dec12, _a117, _DeesSettings_decorators, _init119, _heading12, _description5, _settingsFields, _actions6, _frameless16;
86185
86750
  _DeesSettings_decorators = [customElement("dees-settings")];
86186
- var _DeesSettings = class _DeesSettings extends (_a117 = DeesElement, _heading_dec12 = [n({ type: String, reflect: true })], _description_dec5 = [n({ type: String, reflect: true })], _settingsFields_dec = [n({ attribute: false })], _actions_dec6 = [n({ attribute: false })], _frameless_dec15 = [n({ type: Boolean, reflect: true })], _a117) {
86751
+ var _DeesSettings = class _DeesSettings extends (_a117 = DeesElement, _heading_dec12 = [n({ type: String, reflect: true })], _description_dec5 = [n({ type: String, reflect: true })], _settingsFields_dec = [n({ attribute: false })], _actions_dec6 = [n({ attribute: false })], _frameless_dec16 = [n({ type: Boolean, reflect: true })], _a117) {
86187
86752
  constructor() {
86188
86753
  super(...arguments);
86189
86754
  __privateAdd(this, _heading12, __runInitializers(_init119, 8, this, "")), __runInitializers(_init119, 11, this);
86190
86755
  __privateAdd(this, _description5, __runInitializers(_init119, 12, this, "")), __runInitializers(_init119, 15, this);
86191
86756
  __privateAdd(this, _settingsFields, __runInitializers(_init119, 16, this, [])), __runInitializers(_init119, 19, this);
86192
86757
  __privateAdd(this, _actions6, __runInitializers(_init119, 20, this, [])), __runInitializers(_init119, 23, this);
86193
- __privateAdd(this, _frameless15, __runInitializers(_init119, 24, this, false)), __runInitializers(_init119, 27, this);
86758
+ __privateAdd(this, _frameless16, __runInitializers(_init119, 24, this, false)), __runInitializers(_init119, 27, this);
86194
86759
  }
86195
86760
  render() {
86196
86761
  const hasFields = this.settingsFields.length > 0;
@@ -86224,12 +86789,12 @@ _heading12 = new WeakMap();
86224
86789
  _description5 = new WeakMap();
86225
86790
  _settingsFields = new WeakMap();
86226
86791
  _actions6 = new WeakMap();
86227
- _frameless15 = new WeakMap();
86792
+ _frameless16 = new WeakMap();
86228
86793
  __decorateElement(_init119, 4, "heading", _heading_dec12, _DeesSettings, _heading12);
86229
86794
  __decorateElement(_init119, 4, "description", _description_dec5, _DeesSettings, _description5);
86230
86795
  __decorateElement(_init119, 4, "settingsFields", _settingsFields_dec, _DeesSettings, _settingsFields);
86231
86796
  __decorateElement(_init119, 4, "actions", _actions_dec6, _DeesSettings, _actions6);
86232
- __decorateElement(_init119, 4, "frameless", _frameless_dec15, _DeesSettings, _frameless15);
86797
+ __decorateElement(_init119, 4, "frameless", _frameless_dec16, _DeesSettings, _frameless16);
86233
86798
  _DeesSettings = __decorateElement(_init119, 0, "DeesSettings", _DeesSettings_decorators, _DeesSettings);
86234
86799
  __name(_DeesSettings, "DeesSettings");
86235
86800
  __publicField(_DeesSettings, "demo", demoFunc79);
@@ -89639,14 +90204,14 @@ var viewerStyles3 = i`
89639
90204
  var demo3 = /* @__PURE__ */ __name(() => mediaDemo("video"), "demo");
89640
90205
 
89641
90206
  // ts_web/elements/00group-media/dees-video-viewer/component.ts
89642
- var _playbackError_dec2, _controlsVisible_dec, _isFullscreen_dec, _error_dec10, _loading_dec14, _volume_dec2, _duration_dec2, _currentTime_dec2, _isPlaying_dec2, _muted_dec, _loop_dec2, _autoplay_dec2, _showControls_dec, _poster_dec, _frameless_dec16, _src_dec3, _a124, _DeesVideoViewer_decorators, _init127, _src3, _frameless16, _poster, _showControls, _autoplay2, _loop2, _muted, _isPlaying2, _currentTime2, _duration2, _volume2, _loading14, _error10, _isFullscreen, _controlsVisible, _playbackError2;
90207
+ var _playbackError_dec2, _controlsVisible_dec, _isFullscreen_dec, _error_dec10, _loading_dec14, _volume_dec2, _duration_dec2, _currentTime_dec2, _isPlaying_dec2, _muted_dec, _loop_dec2, _autoplay_dec2, _showControls_dec, _poster_dec, _frameless_dec17, _src_dec3, _a124, _DeesVideoViewer_decorators, _init127, _src3, _frameless17, _poster, _showControls, _autoplay2, _loop2, _muted, _isPlaying2, _currentTime2, _duration2, _volume2, _loading14, _error10, _isFullscreen, _controlsVisible, _playbackError2;
89643
90208
  _DeesVideoViewer_decorators = [customElement("dees-video-viewer")];
89644
- var _DeesVideoViewer = class _DeesVideoViewer extends (_a124 = DeesElement, _src_dec3 = [n({ reflect: true })], _frameless_dec16 = [n({ type: Boolean, reflect: true })], _poster_dec = [n({ reflect: true })], _showControls_dec = [n({ type: Boolean, reflect: true })], _autoplay_dec2 = [n({ type: Boolean, reflect: true })], _loop_dec2 = [n({ type: Boolean, reflect: true })], _muted_dec = [n({ type: Boolean, reflect: true })], _isPlaying_dec2 = [r2()], _currentTime_dec2 = [r2()], _duration_dec2 = [r2()], _volume_dec2 = [r2()], _loading_dec14 = [r2()], _error_dec10 = [r2()], _isFullscreen_dec = [r2()], _controlsVisible_dec = [r2()], _playbackError_dec2 = [r2()], _a124) {
90209
+ var _DeesVideoViewer = class _DeesVideoViewer extends (_a124 = DeesElement, _src_dec3 = [n({ reflect: true })], _frameless_dec17 = [n({ type: Boolean, reflect: true })], _poster_dec = [n({ reflect: true })], _showControls_dec = [n({ type: Boolean, reflect: true })], _autoplay_dec2 = [n({ type: Boolean, reflect: true })], _loop_dec2 = [n({ type: Boolean, reflect: true })], _muted_dec = [n({ type: Boolean, reflect: true })], _isPlaying_dec2 = [r2()], _currentTime_dec2 = [r2()], _duration_dec2 = [r2()], _volume_dec2 = [r2()], _loading_dec14 = [r2()], _error_dec10 = [r2()], _isFullscreen_dec = [r2()], _controlsVisible_dec = [r2()], _playbackError_dec2 = [r2()], _a124) {
89645
90210
  constructor() {
89646
90211
  super(...arguments);
89647
90212
  __publicField(this, "t", dcLocalize(this));
89648
90213
  __privateAdd(this, _src3, __runInitializers(_init127, 8, this, "")), __runInitializers(_init127, 11, this);
89649
- __privateAdd(this, _frameless16, __runInitializers(_init127, 12, this, false)), __runInitializers(_init127, 15, this);
90214
+ __privateAdd(this, _frameless17, __runInitializers(_init127, 12, this, false)), __runInitializers(_init127, 15, this);
89650
90215
  __privateAdd(this, _poster, __runInitializers(_init127, 16, this, "")), __runInitializers(_init127, 19, this);
89651
90216
  __privateAdd(this, _showControls, __runInitializers(_init127, 20, this, true)), __runInitializers(_init127, 23, this);
89652
90217
  __privateAdd(this, _autoplay2, __runInitializers(_init127, 24, this, false)), __runInitializers(_init127, 27, this);
@@ -89907,7 +90472,7 @@ var _DeesVideoViewer = class _DeesVideoViewer extends (_a124 = DeesElement, _src
89907
90472
  };
89908
90473
  _init127 = __decoratorStart(_a124);
89909
90474
  _src3 = new WeakMap();
89910
- _frameless16 = new WeakMap();
90475
+ _frameless17 = new WeakMap();
89911
90476
  _poster = new WeakMap();
89912
90477
  _showControls = new WeakMap();
89913
90478
  _autoplay2 = new WeakMap();
@@ -89923,7 +90488,7 @@ _isFullscreen = new WeakMap();
89923
90488
  _controlsVisible = new WeakMap();
89924
90489
  _playbackError2 = new WeakMap();
89925
90490
  __decorateElement(_init127, 4, "src", _src_dec3, _DeesVideoViewer, _src3);
89926
- __decorateElement(_init127, 4, "frameless", _frameless_dec16, _DeesVideoViewer, _frameless16);
90491
+ __decorateElement(_init127, 4, "frameless", _frameless_dec17, _DeesVideoViewer, _frameless17);
89927
90492
  __decorateElement(_init127, 4, "poster", _poster_dec, _DeesVideoViewer, _poster);
89928
90493
  __decorateElement(_init127, 4, "showControls", _showControls_dec, _DeesVideoViewer, _showControls);
89929
90494
  __decorateElement(_init127, 4, "autoplay", _autoplay_dec2, _DeesVideoViewer, _autoplay2);
@@ -112660,15 +113225,15 @@ var viewerInsetStyles = i`
112660
113225
  var demo4 = /* @__PURE__ */ __name(() => mediaDemo("pdf"), "demo");
112661
113226
 
112662
113227
  // ts_web/elements/00group-media/dees-pdf-viewer/component.ts
112663
- var _pdfFileSize_dec, _pageData_dec, _thumbnailData_dec, _documentId_dec, _loading_dec15, _currentZoom_dec, _totalPages_dec, _currentPage_dec, _sidebarPosition_dec, _showSidebar_dec, _showToolbar_dec4, _initialZoom_dec, _initialPage_dec, _pdfUrl_dec, _loadError_dec4, _filename_dec3, _showFooter_dec2, _frameless_dec17, _viewMode_dec, _a125, _DeesPdfViewer_decorators, _init128, _viewMode, _frameless17, _showFooter2, _filename3, _loadError4, _pdfUrl, _initialPage, _initialZoom, _showToolbar4, _showSidebar, _sidebarPosition, _currentPage, _totalPages, _currentZoom, _loading15, _documentId, _thumbnailData, _pageData, _pdfFileSize;
113228
+ var _pdfFileSize_dec, _pageData_dec, _thumbnailData_dec, _documentId_dec, _loading_dec15, _currentZoom_dec, _totalPages_dec, _currentPage_dec, _sidebarPosition_dec, _showSidebar_dec, _showToolbar_dec4, _initialZoom_dec, _initialPage_dec, _pdfUrl_dec, _loadError_dec4, _filename_dec3, _showFooter_dec2, _frameless_dec18, _viewMode_dec, _a125, _DeesPdfViewer_decorators, _init128, _viewMode, _frameless18, _showFooter2, _filename3, _loadError4, _pdfUrl, _initialPage, _initialZoom, _showToolbar4, _showSidebar, _sidebarPosition, _currentPage, _totalPages, _currentZoom, _loading15, _documentId, _thumbnailData, _pageData, _pdfFileSize;
112664
113229
  var pipelineSettlementGraceMs = 2500;
112665
113230
  _DeesPdfViewer_decorators = [customElement("dees-pdf-viewer")];
112666
- var _DeesPdfViewer = class _DeesPdfViewer extends (_a125 = DeesElement, _viewMode_dec = [n({ type: String, reflect: true })], _frameless_dec17 = [n({ type: Boolean, reflect: true })], _showFooter_dec2 = [n({ type: Boolean, reflect: true })], _filename_dec3 = [n({ type: String, reflect: true })], _loadError_dec4 = [n({ type: String, reflect: true })], _pdfUrl_dec = [n({ type: String, reflect: true })], _initialPage_dec = [n({ type: Number, reflect: true })], _initialZoom_dec = [n({ type: String, reflect: true })], _showToolbar_dec4 = [n({ type: Boolean, reflect: true })], _showSidebar_dec = [n({ type: Boolean, reflect: true })], _sidebarPosition_dec = [n({ type: String, reflect: true })], _currentPage_dec = [n({ type: Number })], _totalPages_dec = [n({ type: Number, reflect: true })], _currentZoom_dec = [n({ type: Number })], _loading_dec15 = [n({ type: Boolean, reflect: true })], _documentId_dec = [n({ type: String, reflect: true })], _thumbnailData_dec = [n({ type: Array })], _pageData_dec = [n({ type: Array })], _pdfFileSize_dec = [n({ type: Number, reflect: true })], _a125) {
113231
+ var _DeesPdfViewer = class _DeesPdfViewer extends (_a125 = DeesElement, _viewMode_dec = [n({ type: String, reflect: true })], _frameless_dec18 = [n({ type: Boolean, reflect: true })], _showFooter_dec2 = [n({ type: Boolean, reflect: true })], _filename_dec3 = [n({ type: String, reflect: true })], _loadError_dec4 = [n({ type: String, reflect: true })], _pdfUrl_dec = [n({ type: String, reflect: true })], _initialPage_dec = [n({ type: Number, reflect: true })], _initialZoom_dec = [n({ type: String, reflect: true })], _showToolbar_dec4 = [n({ type: Boolean, reflect: true })], _showSidebar_dec = [n({ type: Boolean, reflect: true })], _sidebarPosition_dec = [n({ type: String, reflect: true })], _currentPage_dec = [n({ type: Number })], _totalPages_dec = [n({ type: Number, reflect: true })], _currentZoom_dec = [n({ type: Number })], _loading_dec15 = [n({ type: Boolean, reflect: true })], _documentId_dec = [n({ type: String, reflect: true })], _thumbnailData_dec = [n({ type: Array })], _pageData_dec = [n({ type: Array })], _pdfFileSize_dec = [n({ type: Number, reflect: true })], _a125) {
112667
113232
  constructor() {
112668
113233
  super();
112669
113234
  __publicField(this, "t", dcLocalize(this));
112670
113235
  __privateAdd(this, _viewMode, __runInitializers(_init128, 8, this, "document")), __runInitializers(_init128, 11, this);
112671
- __privateAdd(this, _frameless17, __runInitializers(_init128, 12, this, false)), __runInitializers(_init128, 15, this);
113236
+ __privateAdd(this, _frameless18, __runInitializers(_init128, 12, this, false)), __runInitializers(_init128, 15, this);
112672
113237
  __privateAdd(this, _showFooter2, __runInitializers(_init128, 16, this, true)), __runInitializers(_init128, 19, this);
112673
113238
  __privateAdd(this, _filename3, __runInitializers(_init128, 20, this, "")), __runInitializers(_init128, 23, this);
112674
113239
  __privateAdd(this, _loadError4, __runInitializers(_init128, 24, this, "")), __runInitializers(_init128, 27, this);
@@ -114059,7 +114624,7 @@ var _DeesPdfViewer = class _DeesPdfViewer extends (_a125 = DeesElement, _viewMod
114059
114624
  };
114060
114625
  _init128 = __decoratorStart(_a125);
114061
114626
  _viewMode = new WeakMap();
114062
- _frameless17 = new WeakMap();
114627
+ _frameless18 = new WeakMap();
114063
114628
  _showFooter2 = new WeakMap();
114064
114629
  _filename3 = new WeakMap();
114065
114630
  _loadError4 = new WeakMap();
@@ -114078,7 +114643,7 @@ _thumbnailData = new WeakMap();
114078
114643
  _pageData = new WeakMap();
114079
114644
  _pdfFileSize = new WeakMap();
114080
114645
  __decorateElement(_init128, 4, "viewMode", _viewMode_dec, _DeesPdfViewer, _viewMode);
114081
- __decorateElement(_init128, 4, "frameless", _frameless_dec17, _DeesPdfViewer, _frameless17);
114646
+ __decorateElement(_init128, 4, "frameless", _frameless_dec18, _DeesPdfViewer, _frameless18);
114082
114647
  __decorateElement(_init128, 4, "showFooter", _showFooter_dec2, _DeesPdfViewer, _showFooter2);
114083
114648
  __decorateElement(_init128, 4, "filename", _filename_dec3, _DeesPdfViewer, _filename3);
114084
114649
  __decorateElement(_init128, 4, "loadError", _loadError_dec4, _DeesPdfViewer, _loadError4);
@@ -114108,7 +114673,7 @@ var DeesPdfViewer = _DeesPdfViewer;
114108
114673
  var demoFunc81 = /* @__PURE__ */ __name(() => mediaDemo("preview"), "demoFunc");
114109
114674
 
114110
114675
  // ts_web/elements/00group-media/dees-preview/dees-preview.ts
114111
- var _error_dec11, _loading_dec16, _resolvedLang_dec, _resolvedText_dec, _resolvedSrc_dec, _resolvedType_dec, _frameless_dec18, _showFilename_dec, _showToolbar_dec5, _filename_dec4, _mimeType_dec, _language_dec6, _contentType_dec2, _textContent_dec, _base64_dec, _file_dec, _url_dec, _a126, _DeesPreview_decorators, _init129, _url, _file, _base64, _textContent, _contentType2, _language6, _mimeType, _filename4, _showToolbar5, _showFilename, _frameless18, _resolvedType, _resolvedSrc, _resolvedText, _resolvedLang, _loading16, _error11;
114676
+ var _error_dec11, _loading_dec16, _resolvedLang_dec, _resolvedText_dec, _resolvedSrc_dec, _resolvedType_dec, _frameless_dec19, _showFilename_dec, _showToolbar_dec5, _filename_dec4, _mimeType_dec, _language_dec6, _contentType_dec2, _textContent_dec, _base64_dec, _file_dec, _url_dec, _a126, _DeesPreview_decorators, _init129, _url, _file, _base64, _textContent, _contentType2, _language6, _mimeType, _filename4, _showToolbar5, _showFilename, _frameless19, _resolvedType, _resolvedSrc, _resolvedText, _resolvedLang, _loading16, _error11;
114112
114677
  var EXTENSION_MAP = {
114113
114678
  // Image
114114
114679
  jpg: "image",
@@ -114221,7 +114786,7 @@ var TYPE_ICONS = {
114221
114786
  unknown: "lucide:File"
114222
114787
  };
114223
114788
  _DeesPreview_decorators = [customElement("dees-preview")];
114224
- var _DeesPreview = class _DeesPreview extends (_a126 = DeesElement, _url_dec = [n({ reflect: true })], _file_dec = [n({ attribute: false })], _base64_dec = [n()], _textContent_dec = [n()], _contentType_dec2 = [n({ reflect: true })], _language_dec6 = [n({ reflect: true })], _mimeType_dec = [n({ reflect: true })], _filename_dec4 = [n({ reflect: true })], _showToolbar_dec5 = [n({ type: Boolean, reflect: true })], _showFilename_dec = [n({ type: Boolean, reflect: true })], _frameless_dec18 = [n({ type: Boolean, reflect: true })], _resolvedType_dec = [r2()], _resolvedSrc_dec = [r2()], _resolvedText_dec = [r2()], _resolvedLang_dec = [r2()], _loading_dec16 = [r2()], _error_dec11 = [r2()], _a126) {
114789
+ var _DeesPreview = class _DeesPreview extends (_a126 = DeesElement, _url_dec = [n({ reflect: true })], _file_dec = [n({ attribute: false })], _base64_dec = [n()], _textContent_dec = [n()], _contentType_dec2 = [n({ reflect: true })], _language_dec6 = [n({ reflect: true })], _mimeType_dec = [n({ reflect: true })], _filename_dec4 = [n({ reflect: true })], _showToolbar_dec5 = [n({ type: Boolean, reflect: true })], _showFilename_dec = [n({ type: Boolean, reflect: true })], _frameless_dec19 = [n({ type: Boolean, reflect: true })], _resolvedType_dec = [r2()], _resolvedSrc_dec = [r2()], _resolvedText_dec = [r2()], _resolvedLang_dec = [r2()], _loading_dec16 = [r2()], _error_dec11 = [r2()], _a126) {
114225
114790
  constructor() {
114226
114791
  super(...arguments);
114227
114792
  __publicField(this, "t", dcLocalize(this));
@@ -114235,7 +114800,7 @@ var _DeesPreview = class _DeesPreview extends (_a126 = DeesElement, _url_dec = [
114235
114800
  __privateAdd(this, _filename4, __runInitializers(_init129, 36, this, "")), __runInitializers(_init129, 39, this);
114236
114801
  __privateAdd(this, _showToolbar5, __runInitializers(_init129, 40, this, true)), __runInitializers(_init129, 43, this);
114237
114802
  __privateAdd(this, _showFilename, __runInitializers(_init129, 44, this, true)), __runInitializers(_init129, 47, this);
114238
- __privateAdd(this, _frameless18, __runInitializers(_init129, 48, this, false)), __runInitializers(_init129, 51, this);
114803
+ __privateAdd(this, _frameless19, __runInitializers(_init129, 48, this, false)), __runInitializers(_init129, 51, this);
114239
114804
  __privateAdd(this, _resolvedType, __runInitializers(_init129, 52, this, "unknown")), __runInitializers(_init129, 55, this);
114240
114805
  __privateAdd(this, _resolvedSrc, __runInitializers(_init129, 56, this, "")), __runInitializers(_init129, 59, this);
114241
114806
  __privateAdd(this, _resolvedText, __runInitializers(_init129, 60, this, "")), __runInitializers(_init129, 63, this);
@@ -114468,7 +115033,7 @@ _mimeType = new WeakMap();
114468
115033
  _filename4 = new WeakMap();
114469
115034
  _showToolbar5 = new WeakMap();
114470
115035
  _showFilename = new WeakMap();
114471
- _frameless18 = new WeakMap();
115036
+ _frameless19 = new WeakMap();
114472
115037
  _resolvedType = new WeakMap();
114473
115038
  _resolvedSrc = new WeakMap();
114474
115039
  _resolvedText = new WeakMap();
@@ -114485,7 +115050,7 @@ __decorateElement(_init129, 4, "mimeType", _mimeType_dec, _DeesPreview, _mimeTyp
114485
115050
  __decorateElement(_init129, 4, "filename", _filename_dec4, _DeesPreview, _filename4);
114486
115051
  __decorateElement(_init129, 4, "showToolbar", _showToolbar_dec5, _DeesPreview, _showToolbar5);
114487
115052
  __decorateElement(_init129, 4, "showFilename", _showFilename_dec, _DeesPreview, _showFilename);
114488
- __decorateElement(_init129, 4, "frameless", _frameless_dec18, _DeesPreview, _frameless18);
115053
+ __decorateElement(_init129, 4, "frameless", _frameless_dec19, _DeesPreview, _frameless19);
114489
115054
  __decorateElement(_init129, 4, "resolvedType", _resolvedType_dec, _DeesPreview, _resolvedType);
114490
115055
  __decorateElement(_init129, 4, "resolvedSrc", _resolvedSrc_dec, _DeesPreview, _resolvedSrc);
114491
115056
  __decorateElement(_init129, 4, "resolvedText", _resolvedText_dec, _DeesPreview, _resolvedText);
@@ -117730,7 +118295,7 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a139 = DeesElement,
117730
118295
  this.terminalOpen = true;
117731
118296
  const request = ++this.terminalRequest;
117732
118297
  try {
117733
- const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-EJRHSZ5F.js");
118298
+ const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-ORLONA36.js");
117734
118299
  await this.updateComplete;
117735
118300
  if (!this.isConnected || request !== this.terminalRequest) return;
117736
118301
  const terminal = new DeesWorkspaceTerminal3();
@@ -118045,10 +118610,10 @@ var DeesDemoSimpleLogin = _DeesDemoSimpleLogin;
118045
118610
  var demoFunc85 = /* @__PURE__ */ __name(() => demoPage("Sign in", "One welcoming surface. Passkeys, workspace accounts, and passwords working together.", b`<dees-demo-simple-login></dees-demo-simple-login>`), "demoFunc");
118046
118611
 
118047
118612
  // ts_web/elements/00group-simple/dees-simple-login/dees-simple-login.ts
118048
- var _errorMap_dec, _busyKeys_dec, _detectedPasskeySupport_dec, _passwordLoginHandler_dec, _providerLoginHandler_dec, _passkeyRegisterHandler_dec, _passkeyLoginHandler_dec, _frameless_dec19, _labels_dec11, _methodOrder_dec, _password_dec, _providers_dec, _passkeyAutofill_dec, _passkeyAvailable_dec, _passkeyIntents_dec, _passkey_dec, _name_dec4, _a141, _DeesSimpleLogin_decorators, _init149, _name4, _passkey, _passkeyIntents, _passkeyAvailable, _passkeyAutofill, _providers, _password, _methodOrder, _labels11, _frameless19, _passkeyLoginHandler, _passkeyRegisterHandler, _providerLoginHandler, _passwordLoginHandler, _detectedPasskeySupport, _busyKeys, _errorMap;
118613
+ var _errorMap_dec, _busyKeys_dec, _detectedPasskeySupport_dec, _passwordLoginHandler_dec, _providerLoginHandler_dec, _passkeyRegisterHandler_dec, _passkeyLoginHandler_dec, _frameless_dec20, _labels_dec11, _methodOrder_dec, _password_dec, _providers_dec, _passkeyAutofill_dec, _passkeyAvailable_dec, _passkeyIntents_dec, _passkey_dec, _name_dec4, _a141, _DeesSimpleLogin_decorators, _init149, _name4, _passkey, _passkeyIntents, _passkeyAvailable, _passkeyAutofill, _providers, _password, _methodOrder, _labels11, _frameless20, _passkeyLoginHandler, _passkeyRegisterHandler, _providerLoginHandler, _passwordLoginHandler, _detectedPasskeySupport, _busyKeys, _errorMap;
118049
118614
  var canonicalMethodOrder = ["passkey", "provider", "password"];
118050
118615
  _DeesSimpleLogin_decorators = [customElement("dees-simple-login")];
118051
- var _DeesSimpleLogin = class _DeesSimpleLogin extends (_a141 = DeesElement, _name_dec4 = [n({ reflect: true })], _passkey_dec = [n({ type: Boolean, reflect: true })], _passkeyIntents_dec = [n({ attribute: false })], _passkeyAvailable_dec = [n({ attribute: false })], _passkeyAutofill_dec = [n({ type: Boolean, reflect: true })], _providers_dec = [n({ attribute: false })], _password_dec = [n({ type: Boolean, reflect: true })], _methodOrder_dec = [n({ attribute: false })], _labels_dec11 = [n({ attribute: false })], _frameless_dec19 = [n({ type: Boolean, reflect: true })], _passkeyLoginHandler_dec = [n({ attribute: false })], _passkeyRegisterHandler_dec = [n({ attribute: false })], _providerLoginHandler_dec = [n({ attribute: false })], _passwordLoginHandler_dec = [n({ attribute: false })], _detectedPasskeySupport_dec = [r2()], _busyKeys_dec = [r2()], _errorMap_dec = [r2()], _a141) {
118616
+ var _DeesSimpleLogin = class _DeesSimpleLogin extends (_a141 = DeesElement, _name_dec4 = [n({ reflect: true })], _passkey_dec = [n({ type: Boolean, reflect: true })], _passkeyIntents_dec = [n({ attribute: false })], _passkeyAvailable_dec = [n({ attribute: false })], _passkeyAutofill_dec = [n({ type: Boolean, reflect: true })], _providers_dec = [n({ attribute: false })], _password_dec = [n({ type: Boolean, reflect: true })], _methodOrder_dec = [n({ attribute: false })], _labels_dec11 = [n({ attribute: false })], _frameless_dec20 = [n({ type: Boolean, reflect: true })], _passkeyLoginHandler_dec = [n({ attribute: false })], _passkeyRegisterHandler_dec = [n({ attribute: false })], _providerLoginHandler_dec = [n({ attribute: false })], _passwordLoginHandler_dec = [n({ attribute: false })], _detectedPasskeySupport_dec = [r2()], _busyKeys_dec = [r2()], _errorMap_dec = [r2()], _a141) {
118052
118617
  constructor() {
118053
118618
  super(...arguments);
118054
118619
  __publicField(this, "t", dcLocalize(this));
@@ -118061,7 +118626,7 @@ var _DeesSimpleLogin = class _DeesSimpleLogin extends (_a141 = DeesElement, _nam
118061
118626
  __privateAdd(this, _password, __runInitializers(_init149, 32, this, true)), __runInitializers(_init149, 35, this);
118062
118627
  __privateAdd(this, _methodOrder, __runInitializers(_init149, 36, this, ["passkey", "provider", "password"])), __runInitializers(_init149, 39, this);
118063
118628
  __privateAdd(this, _labels11, __runInitializers(_init149, 40, this, {})), __runInitializers(_init149, 43, this);
118064
- __privateAdd(this, _frameless19, __runInitializers(_init149, 44, this, false)), __runInitializers(_init149, 47, this);
118629
+ __privateAdd(this, _frameless20, __runInitializers(_init149, 44, this, false)), __runInitializers(_init149, 47, this);
118065
118630
  __privateAdd(this, _passkeyLoginHandler, __runInitializers(_init149, 48, this)), __runInitializers(_init149, 51, this);
118066
118631
  __privateAdd(this, _passkeyRegisterHandler, __runInitializers(_init149, 52, this)), __runInitializers(_init149, 55, this);
118067
118632
  __privateAdd(this, _providerLoginHandler, __runInitializers(_init149, 56, this)), __runInitializers(_init149, 59, this);
@@ -118661,7 +119226,7 @@ _providers = new WeakMap();
118661
119226
  _password = new WeakMap();
118662
119227
  _methodOrder = new WeakMap();
118663
119228
  _labels11 = new WeakMap();
118664
- _frameless19 = new WeakMap();
119229
+ _frameless20 = new WeakMap();
118665
119230
  _passkeyLoginHandler = new WeakMap();
118666
119231
  _passkeyRegisterHandler = new WeakMap();
118667
119232
  _providerLoginHandler = new WeakMap();
@@ -118678,7 +119243,7 @@ __decorateElement(_init149, 4, "providers", _providers_dec, _DeesSimpleLogin, _p
118678
119243
  __decorateElement(_init149, 4, "password", _password_dec, _DeesSimpleLogin, _password);
118679
119244
  __decorateElement(_init149, 4, "methodOrder", _methodOrder_dec, _DeesSimpleLogin, _methodOrder);
118680
119245
  __decorateElement(_init149, 4, "labels", _labels_dec11, _DeesSimpleLogin, _labels11);
118681
- __decorateElement(_init149, 4, "frameless", _frameless_dec19, _DeesSimpleLogin, _frameless19);
119246
+ __decorateElement(_init149, 4, "frameless", _frameless_dec20, _DeesSimpleLogin, _frameless20);
118682
119247
  __decorateElement(_init149, 4, "passkeyLoginHandler", _passkeyLoginHandler_dec, _DeesSimpleLogin, _passkeyLoginHandler);
118683
119248
  __decorateElement(_init149, 4, "passkeyRegisterHandler", _passkeyRegisterHandler_dec, _DeesSimpleLogin, _passkeyRegisterHandler);
118684
119249
  __decorateElement(_init149, 4, "providerLoginHandler", _providerLoginHandler_dec, _DeesSimpleLogin, _providerLoginHandler);
@@ -121349,15 +121914,15 @@ __runInitializers(_init153, 1, _DeesWorkspaceFiletree);
121349
121914
  var DeesWorkspaceFiletree = _DeesWorkspaceFiletree;
121350
121915
 
121351
121916
  // ts_web/elements/00group-workspace/dees-workspace-terminal-preview/dees-workspace-terminal-preview.ts
121352
- var _frameless_dec20, _lines_dec, _command_dec, _a146, _DeesWorkspaceTerminalPreview_decorators, _init154, _command, _lines, _frameless20;
121917
+ var _frameless_dec21, _lines_dec, _command_dec, _a146, _DeesWorkspaceTerminalPreview_decorators, _init154, _command, _lines, _frameless21;
121353
121918
  _DeesWorkspaceTerminalPreview_decorators = [customElement("dees-workspace-terminal-preview")];
121354
- var _DeesWorkspaceTerminalPreview = class _DeesWorkspaceTerminalPreview extends (_a146 = DeesElement, _command_dec = [n({ type: String, reflect: true })], _lines_dec = [n({ type: Array })], _frameless_dec20 = [n({ type: Boolean, reflect: true })], _a146) {
121919
+ var _DeesWorkspaceTerminalPreview = class _DeesWorkspaceTerminalPreview extends (_a146 = DeesElement, _command_dec = [n({ type: String, reflect: true })], _lines_dec = [n({ type: Array })], _frameless_dec21 = [n({ type: Boolean, reflect: true })], _a146) {
121355
121920
  constructor() {
121356
121921
  super();
121357
121922
  __publicField(this, "t", dcLocalize(this));
121358
121923
  __privateAdd(this, _command, __runInitializers(_init154, 8, this, "")), __runInitializers(_init154, 11, this);
121359
121924
  __privateAdd(this, _lines, __runInitializers(_init154, 12, this, [])), __runInitializers(_init154, 15, this);
121360
- __privateAdd(this, _frameless20, __runInitializers(_init154, 16, this, false)), __runInitializers(_init154, 19, this);
121925
+ __privateAdd(this, _frameless21, __runInitializers(_init154, 16, this, false)), __runInitializers(_init154, 19, this);
121361
121926
  /** The lines the surface of this connection holds, in the order it got them. */
121362
121927
  __publicField(this, "painted", []);
121363
121928
  this.registerStartupFunction(async (signalArg) => {
@@ -121439,10 +122004,10 @@ var _DeesWorkspaceTerminalPreview = class _DeesWorkspaceTerminalPreview extends
121439
122004
  _init154 = __decoratorStart(_a146);
121440
122005
  _command = new WeakMap();
121441
122006
  _lines = new WeakMap();
121442
- _frameless20 = new WeakMap();
122007
+ _frameless21 = new WeakMap();
121443
122008
  __decorateElement(_init154, 4, "command", _command_dec, _DeesWorkspaceTerminalPreview, _command);
121444
122009
  __decorateElement(_init154, 4, "lines", _lines_dec, _DeesWorkspaceTerminalPreview, _lines);
121445
- __decorateElement(_init154, 4, "frameless", _frameless_dec20, _DeesWorkspaceTerminalPreview, _frameless20);
122010
+ __decorateElement(_init154, 4, "frameless", _frameless_dec21, _DeesWorkspaceTerminalPreview, _frameless21);
121446
122011
  _DeesWorkspaceTerminalPreview = __decorateElement(_init154, 0, "DeesWorkspaceTerminalPreview", _DeesWorkspaceTerminalPreview_decorators, _DeesWorkspaceTerminalPreview);
121447
122012
  __name(_DeesWorkspaceTerminalPreview, "DeesWorkspaceTerminalPreview");
121448
122013
  __publicField(_DeesWorkspaceTerminalPreview, "demo", /* @__PURE__ */ __name(() => b`
@@ -124734,7 +125299,7 @@ var bright = {
124734
125299
  // ts_web/00_commitinfo_data.ts
124735
125300
  var commitinfo = {
124736
125301
  name: "@design.estate/dees-catalog",
124737
- version: "21.46.0",
125302
+ version: "21.47.0",
124738
125303
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
124739
125304
  };
124740
125305
  export {
@@ -124993,6 +125558,7 @@ export {
124993
125558
  hintTypeIcons,
124994
125559
  insetInlineStyles,
124995
125560
  isInViewport,
125561
+ kanbanOpenQuestionLabel,
124996
125562
  listProjectSourceFiles,
124997
125563
  makeStreamingSimulator,
124998
125564
  markdownStyles,