@design.estate/dees-catalog 21.46.1 → 21.48.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 (71) hide show
  1. package/dist_bundle/bundle.js +812 -249
  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-thread/dees-thread.d.ts +9 -1
  13. package/dist_ts_web/elements/00group-dataview/dees-thread/dees-thread.js +42 -5
  14. package/dist_ts_web/elements/00group-dataview/dees-thread/interfaces.d.ts +11 -0
  15. package/dist_ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.d.ts +13 -4
  16. package/dist_ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.demo.js +17 -2
  17. package/dist_ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.js +10 -2
  18. package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.d.ts +30 -8
  19. package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.js +95 -24
  20. package/dist_ts_web/elements/00group-harness/interfaces.d.ts +14 -3
  21. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.d.ts +17 -5
  22. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.demo.js +6 -2
  23. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.js +76 -20
  24. package/dist_ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.js +3 -1
  25. package/dist_ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.d.ts +3 -1
  26. package/dist_ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.js +17 -3
  27. package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.d.ts +3 -1
  28. package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.js +12 -2
  29. package/dist_ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.d.ts +41 -5
  30. package/dist_ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.js +196 -20
  31. package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.d.ts +25 -2
  32. package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.js +137 -8
  33. package/dist_ts_web/elements/00group-kanban/index.d.ts +1 -0
  34. package/dist_ts_web/elements/00group-kanban/index.js +2 -1
  35. package/dist_ts_web/elements/00group-kanban/interfaces.d.ts +96 -3
  36. package/dist_ts_web/elements/00group-kanban/kanban.demodata.js +119 -3
  37. package/dist_ts_web/elements/00group-kanban/kanban.helpers.d.ts +19 -1
  38. package/dist_ts_web/elements/00group-kanban/kanban.helpers.js +50 -1
  39. package/dist_ts_web/elements/00group-kanban/kanban.styles.js +32 -1
  40. package/dist_ts_web/i18n/de.d.ts +53 -1
  41. package/dist_ts_web/i18n/de.js +15 -2
  42. package/dist_ts_web/i18n/messages.d.ts +53 -1
  43. package/dist_ts_web/i18n/messages.js +15 -2
  44. package/package.json +1 -1
  45. package/readme.md +67 -21
  46. package/ts_web/00_commitinfo_data.ts +1 -1
  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-feedback/dees-statusbutton/dees-statusbutton.demo.ts +16 -1
  50. package/ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.ts +20 -5
  51. package/ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.ts +83 -21
  52. package/ts_web/elements/00group-harness/interfaces.ts +14 -3
  53. package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.demo.ts +5 -1
  54. package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.ts +82 -23
  55. package/ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.ts +2 -0
  56. package/ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.ts +11 -2
  57. package/ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.ts +6 -1
  58. package/ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.ts +199 -21
  59. package/ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.ts +144 -6
  60. package/ts_web/elements/00group-kanban/index.ts +1 -0
  61. package/ts_web/elements/00group-kanban/interfaces.ts +101 -4
  62. package/ts_web/elements/00group-kanban/kanban.demodata.ts +126 -2
  63. package/ts_web/elements/00group-kanban/kanban.helpers.ts +70 -0
  64. package/ts_web/elements/00group-kanban/kanban.styles.ts +31 -0
  65. package/ts_web/i18n/de.ts +14 -1
  66. package/ts_web/i18n/messages.ts +14 -1
  67. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-7PGZC4IF.js.map +0 -1
  68. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-FCUX4QGD.js.map → chunk-Q5VY4AV7.js.map} +0 -0
  69. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-LWT7IIPZ.js.map → chunk-QG5BHDQO.js.map} +0 -0
  70. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-VOIWY235.js.map → dees-modal-YOGT7PSU.js.map} +0 -0
  71. /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,
@@ -26307,9 +26307,9 @@ var _DeesInputList = class _DeesInputList extends (_a45 = DeesInputBase, _value_
26307
26307
  __publicField(this, "commitEntry", /* @__PURE__ */ __name(() => {
26308
26308
  const entry = this.inputValue.trim();
26309
26309
  if (!entry) return;
26310
- const refusal = this.entryRefusal(entry);
26311
- if (refusal) {
26312
- this.refuse("add", refusal);
26310
+ const refusal2 = this.entryRefusal(entry);
26311
+ if (refusal2) {
26312
+ this.refuse("add", refusal2);
26313
26313
  return;
26314
26314
  }
26315
26315
  const candidate = this.candidateFor(entry);
@@ -26737,9 +26737,9 @@ var _DeesInputList = class _DeesInputList extends (_a45 = DeesInputBase, _value_
26737
26737
  this.cancelEdit();
26738
26738
  return true;
26739
26739
  }
26740
- const refusal = this.editRefusal(index, trimmedValue);
26741
- if (refusal) {
26742
- this.refuse("edit", refusal);
26740
+ const refusal2 = this.editRefusal(index, trimmedValue);
26741
+ if (refusal2) {
26742
+ this.refuse("edit", refusal2);
26743
26743
  return false;
26744
26744
  }
26745
26745
  this.closeEditor();
@@ -50772,7 +50772,7 @@ var demoFunc45 = /* @__PURE__ */ __name(() => {
50772
50772
  }, "demoFunc");
50773
50773
 
50774
50774
  // ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.ts
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, _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;
50776
50776
  var titleIcon = /* @__PURE__ */ __name((kindArg, severityArg) => severityArg === "danger" ? "lucide:OctagonAlert" : severityArg === "warning" ? "lucide:TriangleAlert" : kindArg === "proposal" ? "lucide:ListChecks" : "lucide:MessageCircleQuestionMark", "titleIcon");
50777
50777
  var ITEM_ICON = {
50778
50778
  warning: "lucide:TriangleAlert",
@@ -50796,25 +50796,27 @@ var STATE_BADGE = {
50796
50796
  failed: "error"
50797
50797
  };
50798
50798
  _DeesHarnessQuestionCard_decorators = [customElement("dees-harness-question-card")];
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 })], _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) {
50800
50800
  constructor() {
50801
50801
  super(...arguments);
50802
50802
  __publicField(this, "t", dcLocalize(this));
50803
50803
  __privateAdd(this, _request2, __runInitializers(_init67, 8, this, { id: "", question: "" })), __runInitializers(_init67, 11, this);
50804
50804
  __privateAdd(this, _busy2, __runInitializers(_init67, 12, this, false)), __runInitializers(_init67, 15, this);
50805
50805
  __privateAdd(this, _viewState6, __runInitializers(_init67, 16, this)), __runInitializers(_init67, 19, this);
50806
- __privateAdd(this, _answered2, __runInitializers(_init67, 20, this)), __runInitializers(_init67, 23, this);
50807
- __privateAdd(this, _selected, __runInitializers(_init67, 24, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 27, this);
50808
- __privateAdd(this, _customText, __runInitializers(_init67, 28, this, "")), __runInitializers(_init67, 31, this);
50809
- __privateAdd(this, _itemsExpanded2, __runInitializers(_init67, 32, this)), __runInitializers(_init67, 35, this);
50810
- __privateAdd(this, _leftOut, __runInitializers(_init67, 36, this)), __runInitializers(_init67, 39, this);
50811
- __privateAdd(this, _credentialsShown, __runInitializers(_init67, 40, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 43, this);
50812
- __privateAdd(this, _copyFeedback2, __runInitializers(_init67, 44, this)), __runInitializers(_init67, 47, this);
50813
- __privateAdd(this, _personResults, __runInitializers(_init67, 48, this, NO_PERSON_RESULTS)), __runInitializers(_init67, 51, this);
50814
- __privateAdd(this, _personValues, __runInitializers(_init67, 52, this, /* @__PURE__ */ new Map())), __runInitializers(_init67, 55, this);
50815
- __privateAdd(this, _personFieldsShown, __runInitializers(_init67, 56, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 59, this);
50816
- __privateAdd(this, _personResultsShown, __runInitializers(_init67, 60, this, /* @__PURE__ */ new Set())), __runInitializers(_init67, 63, this);
50817
- __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);
50818
50820
  __publicField(this, "copyRequest", 0);
50819
50821
  __publicField(this, "copyResetTimeout");
50820
50822
  __publicField(this, "footerActions");
@@ -50876,9 +50878,9 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
50876
50878
  get personFieldsComplete() {
50877
50879
  return !this.personFieldsMissing && this.includedPersonFields.every((field) => this.personValueOf(field).length <= field.maxLength);
50878
50880
  }
50879
- /** 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. */
50880
50882
  get locked() {
50881
- return this.busy || this.effectiveResponse !== void 0 || this.proposalState !== "pending";
50883
+ return this.busy || this.readOnly || this.effectiveResponse !== void 0 || this.proposalState !== "pending";
50882
50884
  }
50883
50885
  render() {
50884
50886
  const request = this.request;
@@ -50907,13 +50909,15 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
50907
50909
  renderQuestion() {
50908
50910
  const request = this.request;
50909
50911
  const response = this.effectiveResponse;
50910
- const disabled = this.busy || response !== void 0;
50912
+ const disabled = this.busy || this.readOnly || response !== void 0;
50913
+ const rejection = this.effectiveRejection;
50911
50914
  return response ? b`
50912
50915
  <div class="answeredNote">
50913
50916
  ${this.t("question.answered")}
50914
50917
  <span class="answerText">${this.t.format.list(response, "unit") || "\u2014"}</span>
50915
50918
  </div>
50916
50919
  ` : b`
50920
+ ${rejection ? b`<p class="rejection" role="alert">${rejection.message || this.t("question.answerRefused")}</p>` : ""}
50917
50921
  ${request.options?.length ? b`
50918
50922
  <div class="options" role=${request.multiSelect ? "group" : "radiogroup"}>
50919
50923
  ${request.options.map((option) => b`
@@ -50941,18 +50945,14 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
50941
50945
  }}
50942
50946
  @keydown=${(event) => {
50943
50947
  if (event.key === "Enter" && this.effectiveCustomText.trim()) {
50944
- this.respond([...this.effectiveSelected, this.effectiveCustomText.trim()]);
50948
+ this.answerQuestion([...this.effectiveSelected], this.effectiveCustomText);
50945
50949
  }
50946
50950
  }}
50947
50951
  />
50948
50952
  <dees-button
50949
50953
  size="sm"
50950
50954
  ?disabled=${disabled || !this.effectiveCustomText.trim() && !this.effectiveSelected.size}
50951
- @clicked=${() => {
50952
- const answers = [...this.effectiveSelected];
50953
- if (this.effectiveCustomText.trim()) answers.push(this.effectiveCustomText.trim());
50954
- this.respond(answers);
50955
- }}
50955
+ @clicked=${() => this.answerQuestion([...this.effectiveSelected], this.effectiveCustomText)}
50956
50956
  >${this.t("question.send")}</dees-button>
50957
50957
  </div>
50958
50958
  ` : ""}
@@ -50962,7 +50962,7 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
50962
50962
  type="accent"
50963
50963
  size="sm"
50964
50964
  ?disabled=${disabled || !this.effectiveSelected.size}
50965
- @clicked=${() => this.respond([...this.effectiveSelected])}
50965
+ @clicked=${() => this.answerQuestion([...this.effectiveSelected], "")}
50966
50966
  >${this.t("question.confirm")}</dees-button>
50967
50967
  </div>
50968
50968
  ` : ""}
@@ -51299,9 +51299,16 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
51299
51299
  if (this.viewState) this.viewState.selected = [...next];
51300
51300
  return;
51301
51301
  }
51302
- this.respond([label]);
51302
+ this.answerQuestion([label], "");
51303
+ }
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 });
51303
51310
  }
51304
- respond(answers) {
51311
+ respond(answers, questionAnswerArg = {}) {
51305
51312
  if (this.locked || !answers.length) return;
51306
51313
  const items = this.request.items ?? [];
51307
51314
  const confirming = answers[0] === "confirm";
@@ -51319,6 +51326,7 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
51319
51326
  const detail = {
51320
51327
  requestId: this.request.id,
51321
51328
  answers,
51329
+ ...questionAnswerArg,
51322
51330
  request: harnessWithoutCredentials(this.request)
51323
51331
  };
51324
51332
  if (leftOut.size > 0) detail.declinedItemIds = items.filter((item) => leftOut.has(item.id)).map((item) => item.id);
@@ -51331,21 +51339,35 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a65 = De
51331
51339
  this.clearPersonEntries();
51332
51340
  }
51333
51341
  /**
51334
- * The host refused the answer it was sent, such as a confirmation its server turned down: the
51335
- * card waits for an answer again, keeps the changes the reader left out, and shows the host's
51336
- * `message` and the error of each value it names. What the person entered went with the answer
51337
- * and is entered anew. The refusal stands until the next answer, in the view state as well, so a
51338
- * card the transcript remounts still shows it. A question that is not a proposal, a card whose
51339
- * 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`.
51340
51349
  */
51341
51350
  rejectResponse(rejectionArg = {}) {
51342
- if (this.request.kind !== "proposal" || this.request.response !== void 0) return false;
51343
- 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;
51344
51353
  this.answered = void 0;
51345
51354
  if (this.viewState) this.viewState.answered = void 0;
51346
51355
  this.setRejection(rejectionArg);
51347
51356
  return true;
51348
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
+ }
51349
51371
  willUpdate(changedProperties) {
51350
51372
  super.willUpdate(changedProperties);
51351
51373
  const previous = changedProperties.get("request");
@@ -51371,6 +51393,8 @@ _init67 = __decoratorStart(_a65);
51371
51393
  _request2 = new WeakMap();
51372
51394
  _busy2 = new WeakMap();
51373
51395
  _viewState6 = new WeakMap();
51396
+ _frameless13 = new WeakMap();
51397
+ _readOnly = new WeakMap();
51374
51398
  _answered2 = new WeakMap();
51375
51399
  _selected = new WeakMap();
51376
51400
  _customText = new WeakMap();
@@ -51386,6 +51410,8 @@ _rejection = new WeakMap();
51386
51410
  __decorateElement(_init67, 4, "request", _request_dec2, _DeesHarnessQuestionCard, _request2);
51387
51411
  __decorateElement(_init67, 4, "busy", _busy_dec2, _DeesHarnessQuestionCard, _busy2);
51388
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);
51389
51415
  __decorateElement(_init67, 4, "answered", _answered_dec2, _DeesHarnessQuestionCard, _answered2);
51390
51416
  __decorateElement(_init67, 4, "selected", _selected_dec, _DeesHarnessQuestionCard, _selected);
51391
51417
  __decorateElement(_init67, 4, "customText", _customText_dec, _DeesHarnessQuestionCard, _customText);
@@ -51436,6 +51462,27 @@ __publicField(_DeesHarnessQuestionCard, "styles", [
51436
51462
  padding: 16px;
51437
51463
  }
51438
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
+
51439
51486
  .body > :last-child {
51440
51487
  margin-bottom: 0;
51441
51488
  }
@@ -68968,7 +69015,7 @@ var demoFunc61 = /* @__PURE__ */ __name(() => {
68968
69015
  }, "demoFunc");
68969
69016
 
68970
69017
  // ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.ts
68971
- 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;
68972
69019
  var rateWindowMs = 1e4;
68973
69020
  var emptyMetrics = /* @__PURE__ */ __name(() => ({
68974
69021
  debug: 0,
@@ -68997,7 +69044,7 @@ var hiddenPlaceholder = /* @__PURE__ */ __name((countArg, tArg) => `${sgr.dim}${
68997
69044
  `, "hiddenPlaceholder");
68998
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");
68999
69046
  _DeesChartLog_decorators = [customElement("dees-chart-log")];
69000
- 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) {
69001
69048
  constructor() {
69002
69049
  super();
69003
69050
  __publicField(this, "t", dcLocalize(this));
@@ -69008,7 +69055,7 @@ var _DeesChartLog = class _DeesChartLog extends (_a89 = DeesElement, _label_dec7
69008
69055
  __privateAdd(this, _maxEntries, __runInitializers(_init90, 24, this, 1e4)), __runInitializers(_init90, 27, this);
69009
69056
  __privateAdd(this, _highlightKeywords, __runInitializers(_init90, 28, this, [])), __runInitializers(_init90, 31, this);
69010
69057
  __privateAdd(this, _showMetrics, __runInitializers(_init90, 32, this, true)), __runInitializers(_init90, 35, this);
69011
- __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);
69012
69059
  __privateAdd(this, _searchQuery3, __runInitializers(_init90, 40, this, "")), __runInitializers(_init90, 43, this);
69013
69060
  __privateAdd(this, _filterMode, __runInitializers(_init90, 44, this, false)), __runInitializers(_init90, 47, this);
69014
69061
  __privateAdd(this, _metrics2, __runInitializers(_init90, 48, this, emptyMetrics())), __runInitializers(_init90, 51, this);
@@ -69429,7 +69476,7 @@ _autoScroll = new WeakMap();
69429
69476
  _maxEntries = new WeakMap();
69430
69477
  _highlightKeywords = new WeakMap();
69431
69478
  _showMetrics = new WeakMap();
69432
- _frameless13 = new WeakMap();
69479
+ _frameless14 = new WeakMap();
69433
69480
  _searchQuery3 = new WeakMap();
69434
69481
  _filterMode = new WeakMap();
69435
69482
  _metrics2 = new WeakMap();
@@ -69441,7 +69488,7 @@ __decorateElement(_init90, 4, "autoScroll", _autoScroll_dec, _DeesChartLog, _aut
69441
69488
  __decorateElement(_init90, 4, "maxEntries", _maxEntries_dec, _DeesChartLog, _maxEntries);
69442
69489
  __decorateElement(_init90, 4, "highlightKeywords", _highlightKeywords_dec, _DeesChartLog, _highlightKeywords);
69443
69490
  __decorateElement(_init90, 4, "showMetrics", _showMetrics_dec, _DeesChartLog, _showMetrics);
69444
- __decorateElement(_init90, 4, "frameless", _frameless_dec13, _DeesChartLog, _frameless13);
69491
+ __decorateElement(_init90, 4, "frameless", _frameless_dec14, _DeesChartLog, _frameless14);
69445
69492
  __decorateElement(_init90, 4, "searchQuery", _searchQuery_dec3, _DeesChartLog, _searchQuery3);
69446
69493
  __decorateElement(_init90, 4, "filterMode", _filterMode_dec, _DeesChartLog, _filterMode);
69447
69494
  __decorateElement(_init90, 4, "metrics", _metrics_dec2, _DeesChartLog, _metrics2);
@@ -70801,7 +70848,7 @@ var demoFunc66 = /* @__PURE__ */ __name(() => demoPage(
70801
70848
  ), "demoFunc");
70802
70849
 
70803
70850
  // ts_web/elements/00group-dataview/dees-thread/dees-thread.ts
70804
- 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;
70805
70852
  var eventIcons = {
70806
70853
  opened: "lucide:CircleDot",
70807
70854
  answered: "lucide:Check",
@@ -70847,7 +70894,7 @@ var safeHref2 = /* @__PURE__ */ __name((hrefArg) => {
70847
70894
  }
70848
70895
  }, "safeHref");
70849
70896
  _DeesThread_decorators = [customElement("dees-thread")];
70850
- 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) {
70851
70898
  constructor() {
70852
70899
  super(...arguments);
70853
70900
  __publicField(this, "t", dcLocalize(this));
@@ -70864,7 +70911,7 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70864
70911
  __privateAdd(this, _referenceSearchLabel2, __runInitializers(_init97, 48, this, "")), __runInitializers(_init97, 51, this);
70865
70912
  __privateAdd(this, _draft2, __runInitializers(_init97, 52, this, "")), __runInitializers(_init97, 55, this);
70866
70913
  __privateAdd(this, _placeholder9, __runInitializers(_init97, 56, this, "")), __runInitializers(_init97, 59, this);
70867
- __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);
70868
70915
  __privateAdd(this, _readOnlyReason, __runInitializers(_init97, 64, this, "")), __runInitializers(_init97, 67, this);
70869
70916
  __privateAdd(this, _view, __runInitializers(_init97, 68, this, "full")), __runInitializers(_init97, 71, this);
70870
70917
  __privateAdd(this, _loading7, __runInitializers(_init97, 72, this, false)), __runInitializers(_init97, 75, this);
@@ -70935,7 +70982,9 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70935
70982
  const collapsing = this.collapseAfter > 0 && items.length > this.collapseAfter && collapsedHead + this.revealed + collapsedTail < items.length;
70936
70983
  const head = collapsing ? items.slice(0, collapsedHead + this.revealed) : items;
70937
70984
  const tail = collapsing ? items.slice(items.length - collapsedTail) : [];
70938
- 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;
70939
70988
  const key = /* @__PURE__ */ __name((item) => `${item.type}:${item.id}`, "key");
70940
70989
  const renderItem = /* @__PURE__ */ __name((list) => (item, index) => {
70941
70990
  const tight = item.type === "event" && index > 0 && list[index - 1].type === "event";
@@ -70950,6 +70999,7 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70950
70999
  ${items.length ? b`<ol class="timeline" aria-label=${this.t("thread.timeline")} aria-busy=${this.loading ? "true" : "false"}>
70951
71000
  ${directives_exports.repeat(head, key, renderItem(head))}
70952
71001
  ${hidden ? this.renderCollapsed(hidden) : ""}
71002
+ ${directives_exports.repeat(waiting, key, renderItem(waiting))}
70953
71003
  ${directives_exports.repeat(tail, key, renderItem(tail))}
70954
71004
  </ol>` : ""}
70955
71005
  ${this.view === "entries" || !items.length && (this.loading || this.error) ? "" : this.readOnly ? this.renderReadOnly(!items.length) : this.renderComposer(!items.length)}
@@ -70973,6 +71023,23 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70973
71023
  focusComposer() {
70974
71024
  this.shadowRoot?.querySelector(".composerInput")?.focus();
70975
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
+ }
70976
71043
  // --- Items ---
70977
71044
  items() {
70978
71045
  const items = [
@@ -70991,9 +71058,10 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
70991
71058
  const agent2 = entry.author.kind === "agent";
70992
71059
  const refused = entry.delivery === "refused";
70993
71060
  const pending = entry.delivery === "pending";
71061
+ const attention = entry.attention && !entry.delivery ? entry.attention : "";
70994
71062
  return b`<li class="item entry ${first ? "first" : ""}" data-entry-id=${entry.id}>
70995
71063
  ${this.renderAvatar(entry.author, "railAvatar")}
70996
- <dees-tile class="entryTile ${refused ? "refused" : ""} ${pending ? "pending" : ""}">
71064
+ <dees-tile class="entryTile ${refused ? "refused" : ""} ${pending ? "pending" : ""} ${attention ? "attention" : ""}">
70997
71065
  <div slot="header" class="entryHeader">
70998
71066
  ${this.renderAvatar(entry.author, "headerAvatar")}
70999
71067
  <span class="name">${entry.author.name}</span>
@@ -71003,6 +71071,7 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
71003
71071
  ${this.renderEntryState(entry)}
71004
71072
  ${entry.editedAt && !entry.delivery ? this.renderEdited(entry.editedAt) : ""}
71005
71073
  <span class="spacer"></span>
71074
+ ${attention ? b`<dees-badge class="attentionBadge" type="warning" size="compact" .text=${attention}></dees-badge>` : ""}
71006
71075
  ${entry.actions?.length && !entry.delivery ? b`<dees-button class="menuButton" size="icon" type="ghost" icon="lucide:Ellipsis"
71007
71076
  text=${this.t("thread.entryMenu")} title=${this.t("thread.entryMenu")} .ariaHasPopup=${"menu"}
71008
71077
  @clicked=${(event) => {
@@ -71011,7 +71080,7 @@ var _DeesThread = class _DeesThread extends (_a96 = DeesElement, _threadId_dec =
71011
71080
  ></dees-button>` : ""}
71012
71081
  </div>
71013
71082
  <div class="entryBody">
71014
- ${this.renderBody(entry)}
71083
+ ${entry.slot ? b`<slot name=${entry.slot}>${this.renderBody(entry)}</slot>` : this.renderBody(entry)}
71015
71084
  ${entry.attachments?.length ? this.renderAttachments(entry, entry.attachments) : ""}
71016
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>` : ""}
71017
71086
  </div>
@@ -71342,7 +71411,7 @@ _searchReferences3 = new WeakMap();
71342
71411
  _referenceSearchLabel2 = new WeakMap();
71343
71412
  _draft2 = new WeakMap();
71344
71413
  _placeholder9 = new WeakMap();
71345
- _readOnly = new WeakMap();
71414
+ _readOnly2 = new WeakMap();
71346
71415
  _readOnlyReason = new WeakMap();
71347
71416
  _view = new WeakMap();
71348
71417
  _loading7 = new WeakMap();
@@ -71365,7 +71434,7 @@ __decorateElement(_init97, 4, "searchReferences", _searchReferences_dec3, _DeesT
71365
71434
  __decorateElement(_init97, 4, "referenceSearchLabel", _referenceSearchLabel_dec2, _DeesThread, _referenceSearchLabel2);
71366
71435
  __decorateElement(_init97, 4, "draft", _draft_dec2, _DeesThread, _draft2);
71367
71436
  __decorateElement(_init97, 4, "placeholder", _placeholder_dec9, _DeesThread, _placeholder9);
71368
- __decorateElement(_init97, 4, "readOnly", _readOnly_dec, _DeesThread, _readOnly);
71437
+ __decorateElement(_init97, 4, "readOnly", _readOnly_dec2, _DeesThread, _readOnly2);
71369
71438
  __decorateElement(_init97, 4, "readOnlyReason", _readOnlyReason_dec, _DeesThread, _readOnlyReason);
71370
71439
  __decorateElement(_init97, 4, "view", _view_dec, _DeesThread, _view);
71371
71440
  __decorateElement(_init97, 4, "loading", _loading_dec7, _DeesThread, _loading7);
@@ -71684,6 +71753,10 @@ __publicField(_DeesThread, "styles", [
71684
71753
  border-color: var(--dees-color-accent-error);
71685
71754
  }
71686
71755
 
71756
+ .entryTile.attention::part(outer) {
71757
+ border-color: var(--dees-color-accent-warning);
71758
+ }
71759
+
71687
71760
  .entryTile.refused::part(content),
71688
71761
  .composerTile::part(content) {
71689
71762
  border-bottom-color: transparent;
@@ -72428,6 +72501,18 @@ var demoFunc68 = /* @__PURE__ */ __name(() => {
72428
72501
  throw new Error("The bank refused the connection (403).");
72429
72502
  }, "action")
72430
72503
  }
72504
+ },
72505
+ {
72506
+ key: "unmatched",
72507
+ severity: "warning",
72508
+ text: "1 payment is not matched to an invoice.",
72509
+ action: {
72510
+ label: "Match payment",
72511
+ iconName: "lucide:Link",
72512
+ // Matching opens in the page, under the panel: the panel closes before it does.
72513
+ closesPanel: true,
72514
+ action: /* @__PURE__ */ __name(() => showDemoResult(actionStatus, "Match payment: the panel closed first (panel-toggle: action), the focus is on the status button, and the matching would open in the page now."), "action")
72515
+ }
72431
72516
  }
72432
72517
  ];
72433
72518
  return demoPage("Status button", "A page's status in its header: one button beside the page's actions that shows the worst status and a count of the warnings and errors, and opens a speech-bubble panel that lists them. An error or a severe warning opens the panel by itself.", b`
@@ -72508,10 +72593,13 @@ const statuses: IStatusbuttonItem[] = [
72508
72593
  </div>
72509
72594
  ${demoOutput("Add an error.")}
72510
72595
  `)}
72511
- ${demoSection("Actions on statuses", "A status can offer the way to resolve it. Remove duplicates runs for a moment and resolves its warning; Retry sync fails, and the failure is reported as dees-action-error, here shown as a toast.", b`
72596
+ ${demoSection("Actions on statuses", "A status can offer the way to resolve it. Remove duplicates runs for a moment and resolves its warning; Retry sync fails, and the failure is reported as dees-action-error, here shown as a toast. Match payment takes the reader on to a flow in the page (closesPanel): the panel closes before it runs.", b`
72512
72597
  <div class="dees-demo-row">
72513
72598
  ${actionStatus}
72514
72599
  </div>
72600
+ ${demoOutput("Press Match payment.")}
72601
+ ${demoCode(`{ key: 'unmatched', severity: 'warning', text: '1 payment is not matched to an invoice.',
72602
+ action: { label: 'Match payment', iconName: 'lucide:Link', closesPanel: true, action: () => openMatching() } }`)}
72515
72603
  `)}
72516
72604
  `);
72517
72605
  }, "demoFunc");
@@ -72564,6 +72652,8 @@ var _DeesStatusbutton = class _DeesStatusbutton extends (_a98 = DeesElement, _it
72564
72652
  __publicField(this, "autoOpening", false);
72565
72653
  /** Why the panel is about to open, set by whoever opens it; unset, the host set `open`. */
72566
72654
  __publicField(this, "openReason");
72655
+ /** Why the panel is closing through the popover's `close()`, set around the call; unset, a press of the button. */
72656
+ __publicField(this, "closeReason");
72567
72657
  /** The popover accepted the last opening: the panel is on screen. */
72568
72658
  __publicField(this, "panelShown", false);
72569
72659
  /** Tells when the button comes on screen, for an automatic opening that had to wait. */
@@ -72586,7 +72676,7 @@ var _DeesStatusbutton = class _DeesStatusbutton extends (_a98 = DeesElement, _it
72586
72676
  if (!shown) return;
72587
72677
  this.clearAnnouncements();
72588
72678
  const reason = event.detail.reason;
72589
- this.dispatchToggle(false, reason === "explicit" ? "button" : reason);
72679
+ this.dispatchToggle(false, reason === "explicit" ? this.closeReason ?? "button" : reason);
72590
72680
  }, "handlePopoverClose"));
72591
72681
  }
72592
72682
  /** The statuses, an absent list counting as none. */
@@ -72878,6 +72968,11 @@ var _DeesStatusbutton = class _DeesStatusbutton extends (_a98 = DeesElement, _it
72878
72968
  async runItemAction(item, button) {
72879
72969
  const action = item.action;
72880
72970
  if (!action || action.disabled || this.pendingActions.has(item.key)) return;
72971
+ if (action.closesPanel && this.open) {
72972
+ this.closeReason = "action";
72973
+ this.popoverElement?.close();
72974
+ this.closeReason = void 0;
72975
+ }
72881
72976
  this.pendingActions = /* @__PURE__ */ new Set([...this.pendingActions, item.key]);
72882
72977
  try {
72883
72978
  await runAction(this, { action, source: "statusbutton-action" }, () => action.action());
@@ -73249,7 +73344,7 @@ var _DeesHarnessConversationPicker = class _DeesHarnessConversationPicker extend
73249
73344
  * cancelled. Focus returns to whatever had it when the picker opened.
73250
73345
  */
73251
73346
  static async pick(optionsArg = {}) {
73252
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-VOIWY235.js");
73347
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-YOGT7PSU.js");
73253
73348
  const picker = new _DeesHarnessConversationPicker();
73254
73349
  picker.sessions = optionsArg.sessions ?? [];
73255
73350
  picker.groups = optionsArg.groups ?? [];
@@ -73710,7 +73805,7 @@ var handleResourceContext = /* @__PURE__ */ __name(async (event) => {
73710
73805
  list.selectedResourceId = event.detail.resource.id;
73711
73806
  }, "handleResourceContext");
73712
73807
  var openModal = /* @__PURE__ */ __name(async (sessions, groups) => {
73713
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-VOIWY235.js");
73808
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-YOGT7PSU.js");
73714
73809
  const content = document.createElement("dees-harness-session-list");
73715
73810
  content.sessions = sessions;
73716
73811
  content.groups = groups;
@@ -76510,6 +76605,98 @@ __publicField(_DeesHarnessSidebar, "styles", [
76510
76605
  __runInitializers(_init103, 1, _DeesHarnessSidebar);
76511
76606
  var DeesHarnessSidebar = _DeesHarnessSidebar;
76512
76607
 
76608
+ // ts_web/elements/00group-kanban/kanban.helpers.ts
76609
+ var kanbanInitials = /* @__PURE__ */ __name((name) => name.trim().split(/\s+/).map((part) => part[0]).join("").slice(0, 2), "kanbanInitials");
76610
+ var kanbanPriorityIcon = /* @__PURE__ */ __name((priority) => priority === "urgent" ? "lucide:ChevronsUp" : priority === "high" ? "lucide:ChevronUp" : priority === "low" ? "lucide:ChevronDown" : "lucide:Minus", "kanbanPriorityIcon");
76611
+ var sortKanbanTickets = /* @__PURE__ */ __name((tickets) => [...tickets].sort((a, b2) => a.order - b2.order || a.id.localeCompare(b2.id)), "sortKanbanTickets");
76612
+ var ticketLabel = /* @__PURE__ */ __name((ticket) => `#${ticket.key} ${ticket.title}`, "ticketLabel");
76613
+ var ticketDraft = /* @__PURE__ */ __name((ticket) => ({
76614
+ title: ticket.title,
76615
+ description: ticket.description ?? "",
76616
+ priority: ticket.priority ?? "none",
76617
+ assigneeId: ticket.assignee?.id ?? "",
76618
+ parentId: ticket.parentId ?? "",
76619
+ labels: [...ticket.labels ?? []],
76620
+ project: ticket.project ?? "",
76621
+ ...ticket.revision === void 0 ? {} : { revision: ticket.revision }
76622
+ }), "ticketDraft");
76623
+ var kanbanTicketVersion = /* @__PURE__ */ __name((ticket) => ticket?.revision !== void 0 ? `revision:${ticket.revision}` : ticket?.updatedAt, "kanbanTicketVersion");
76624
+ var kanbanDraftFields = [
76625
+ "title",
76626
+ "description",
76627
+ "project",
76628
+ "priority",
76629
+ "assigneeId",
76630
+ "parentId",
76631
+ "labels"
76632
+ ];
76633
+ var sameDraftField = /* @__PURE__ */ __name((field, a, b2) => field === "labels" ? sameKanbanLabels(a.labels ?? [], b2.labels ?? []) : (a[field] ?? "") === (b2[field] ?? ""), "sameDraftField");
76634
+ var kanbanDraftChanges = /* @__PURE__ */ __name((base, draft, latest) => Object.fromEntries(
76635
+ kanbanDraftFields.filter((field) => draft[field] !== void 0 && !sameDraftField(field, draft, base) && !sameDraftField(field, draft, latest)).map((field) => [field, draft[field]])
76636
+ ), "kanbanDraftChanges");
76637
+ var isKanbanRevisionConflict = /* @__PURE__ */ __name((error) => error instanceof Error && error.code === "revision_conflict", "isKanbanRevisionConflict");
76638
+ var kanbanProjectName = /* @__PURE__ */ __name((projects, id) => projects.find((project2) => project2.id === id)?.name ?? id, "kanbanProjectName");
76639
+ var kanbanProjects = /* @__PURE__ */ __name((projects, tickets) => {
76640
+ const known = new Set(projects.map((project2) => project2.id));
76641
+ 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 }));
76642
+ return [...projects, ...named];
76643
+ }, "kanbanProjects");
76644
+ var sameKanbanLabels = /* @__PURE__ */ __name((a, b2) => a.length === b2.length && [...a].sort().join("\n") === [...b2].sort().join("\n"), "sameKanbanLabels");
76645
+ var kanbanHref = /* @__PURE__ */ __name((url) => {
76646
+ if (!url || /[\u0000- \u007f\\]/.test(url)) return void 0;
76647
+ const scheme = /^([a-z][a-z0-9+.-]*):/i.exec(url)?.[1].toLowerCase();
76648
+ return !scheme || scheme === "http" || scheme === "https" || scheme === "mailto" ? url : void 0;
76649
+ }, "kanbanHref");
76650
+ var kanbanShortSha = /* @__PURE__ */ __name((sha) => sha.slice(0, 7), "kanbanShortSha");
76651
+ var kanbanMoment = /* @__PURE__ */ __name((format, date2) => format.instant(date2, { date: "long", time: "short" }), "kanbanMoment");
76652
+ var kanbanLinkHost = /* @__PURE__ */ __name((url) => {
76653
+ try {
76654
+ return new URL(url).host.replace(/^www\./, "") || url;
76655
+ } catch {
76656
+ return url;
76657
+ }
76658
+ }, "kanbanLinkHost");
76659
+ var kanbanLinkIcon = /* @__PURE__ */ __name((link) => link.kind === "branch" ? "lucide:GitBranch" : link.kind === "commit" ? "lucide:GitCommitHorizontal" : link.kind === "release" ? "lucide:Package" : "lucide:Link", "kanbanLinkIcon");
76660
+ 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");
76661
+ var kanbanEvent = /* @__PURE__ */ __name((owner, name, detail) => {
76662
+ owner.dispatchEvent(new CustomEvent(name, { detail, bubbles: true, composed: true }));
76663
+ }, "kanbanEvent");
76664
+ var kanbanError = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "kanbanError");
76665
+ var isKanbanQuestion = /* @__PURE__ */ __name((item) => item.kind === "question", "isKanbanQuestion");
76666
+ var kanbanItemKey = /* @__PURE__ */ __name((item) => `${item.kind ?? "comment"}:${item.id}`, "kanbanItemKey");
76667
+ var kanbanOpenQuestionLabel = "openQuestion";
76668
+ var kanbanAutoLabel = /* @__PURE__ */ __name((t, definitions, label) => {
76669
+ const own = label === kanbanOpenQuestionLabel ? {
76670
+ label,
76671
+ name: t("kanban.autoLabelOpenQuestion"),
76672
+ description: t("kanban.autoLabelOpenQuestionDescription"),
76673
+ iconName: "lucide:MessageCircleQuestionMark",
76674
+ tone: "warning"
76675
+ } : void 0;
76676
+ const host = definitions.find((item) => item.label === label);
76677
+ const value = /* @__PURE__ */ __name((key) => host?.[key] ?? own?.[key], "value");
76678
+ return {
76679
+ label,
76680
+ name: value("name") || label,
76681
+ description: value("description"),
76682
+ iconName: value("iconName") || "lucide:Sparkles",
76683
+ tone: value("tone") ?? "neutral"
76684
+ };
76685
+ }, "kanbanAutoLabel");
76686
+ var renderKanbanAutoLabels = /* @__PURE__ */ __name((t, definitions, labels) => {
76687
+ if (!labels?.length) return "";
76688
+ return b`<span class="auto-labels" role="list" aria-label=${t("kanban.autoLabels")}>${labels.map((label) => {
76689
+ const view = kanbanAutoLabel(t, definitions, label);
76690
+ return b`<span
76691
+ class="badge auto ${view.tone}"
76692
+ role="listitem"
76693
+ data-auto-label=${label}
76694
+ title=${view.description ?? view.name}
76695
+ ><dees-icon .icon=${view.iconName} iconSize="12" aria-hidden="true"></dees-icon><span class="badge-text"
76696
+ >${view.name}</span></span>`;
76697
+ })}</span>`;
76698
+ }, "renderKanbanAutoLabels");
76699
+
76513
76700
  // ts_web/elements/00group-kanban/kanban.styles.ts
76514
76701
  var kanbanStyles = [
76515
76702
  themeDefaultStyles,
@@ -76600,6 +76787,37 @@ var kanbanStyles = [
76600
76787
  color: var(--dees-color-text-secondary);
76601
76788
  }
76602
76789
 
76790
+ /* AutoLabels: set by the host and never edited, so outlined where a label is filled. */
76791
+ .auto-labels {
76792
+ display: inline-flex;
76793
+ flex-wrap: wrap;
76794
+ gap: 6px;
76795
+ min-width: 0;
76796
+ max-width: 100%;
76797
+ }
76798
+
76799
+ .badge.auto {
76800
+ background: transparent;
76801
+ box-shadow: inset 0 0 0 var(--dees-line-width-hairline) var(--dees-color-border-strong);
76802
+ }
76803
+
76804
+ .badge.auto.warning {
76805
+ color: var(--dees-color-text-warning);
76806
+ box-shadow: inset 0 0 0 var(--dees-line-width-hairline) var(--dees-color-accent-warning);
76807
+ }
76808
+
76809
+ .badge.auto dees-icon {
76810
+ flex: 0 0 auto;
76811
+ font-size: var(--dees-icon-size-xs);
76812
+ }
76813
+
76814
+ .badge-text {
76815
+ min-width: 0;
76816
+ overflow: hidden;
76817
+ white-space: nowrap;
76818
+ text-overflow: ellipsis;
76819
+ }
76820
+
76603
76821
  .avatar {
76604
76822
  flex: 0 0 auto;
76605
76823
  width: 24px;
@@ -76715,68 +76933,10 @@ var kanbanFeedStyles = i`
76715
76933
  }
76716
76934
  `;
76717
76935
 
76718
- // ts_web/elements/00group-kanban/kanban.helpers.ts
76719
- var kanbanInitials = /* @__PURE__ */ __name((name) => name.trim().split(/\s+/).map((part) => part[0]).join("").slice(0, 2), "kanbanInitials");
76720
- var kanbanPriorityIcon = /* @__PURE__ */ __name((priority) => priority === "urgent" ? "lucide:ChevronsUp" : priority === "high" ? "lucide:ChevronUp" : priority === "low" ? "lucide:ChevronDown" : "lucide:Minus", "kanbanPriorityIcon");
76721
- var sortKanbanTickets = /* @__PURE__ */ __name((tickets) => [...tickets].sort((a, b2) => a.order - b2.order || a.id.localeCompare(b2.id)), "sortKanbanTickets");
76722
- var ticketLabel = /* @__PURE__ */ __name((ticket) => `#${ticket.key} ${ticket.title}`, "ticketLabel");
76723
- var ticketDraft = /* @__PURE__ */ __name((ticket) => ({
76724
- title: ticket.title,
76725
- description: ticket.description ?? "",
76726
- priority: ticket.priority ?? "none",
76727
- assigneeId: ticket.assignee?.id ?? "",
76728
- parentId: ticket.parentId ?? "",
76729
- labels: [...ticket.labels ?? []],
76730
- project: ticket.project ?? "",
76731
- ...ticket.revision === void 0 ? {} : { revision: ticket.revision }
76732
- }), "ticketDraft");
76733
- var kanbanTicketVersion = /* @__PURE__ */ __name((ticket) => ticket?.revision !== void 0 ? `revision:${ticket.revision}` : ticket?.updatedAt, "kanbanTicketVersion");
76734
- var kanbanDraftFields = [
76735
- "title",
76736
- "description",
76737
- "project",
76738
- "priority",
76739
- "assigneeId",
76740
- "parentId",
76741
- "labels"
76742
- ];
76743
- var sameDraftField = /* @__PURE__ */ __name((field, a, b2) => field === "labels" ? sameKanbanLabels(a.labels ?? [], b2.labels ?? []) : (a[field] ?? "") === (b2[field] ?? ""), "sameDraftField");
76744
- var kanbanDraftChanges = /* @__PURE__ */ __name((base, draft, latest) => Object.fromEntries(
76745
- kanbanDraftFields.filter((field) => draft[field] !== void 0 && !sameDraftField(field, draft, base) && !sameDraftField(field, draft, latest)).map((field) => [field, draft[field]])
76746
- ), "kanbanDraftChanges");
76747
- var isKanbanRevisionConflict = /* @__PURE__ */ __name((error) => error instanceof Error && error.code === "revision_conflict", "isKanbanRevisionConflict");
76748
- var kanbanProjectName = /* @__PURE__ */ __name((projects, id) => projects.find((project2) => project2.id === id)?.name ?? id, "kanbanProjectName");
76749
- var kanbanProjects = /* @__PURE__ */ __name((projects, tickets) => {
76750
- const known = new Set(projects.map((project2) => project2.id));
76751
- 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 }));
76752
- return [...projects, ...named];
76753
- }, "kanbanProjects");
76754
- var sameKanbanLabels = /* @__PURE__ */ __name((a, b2) => a.length === b2.length && [...a].sort().join("\n") === [...b2].sort().join("\n"), "sameKanbanLabels");
76755
- var kanbanHref = /* @__PURE__ */ __name((url) => {
76756
- if (!url || /[\u0000- \u007f\\]/.test(url)) return void 0;
76757
- const scheme = /^([a-z][a-z0-9+.-]*):/i.exec(url)?.[1].toLowerCase();
76758
- return !scheme || scheme === "http" || scheme === "https" || scheme === "mailto" ? url : void 0;
76759
- }, "kanbanHref");
76760
- var kanbanShortSha = /* @__PURE__ */ __name((sha) => sha.slice(0, 7), "kanbanShortSha");
76761
- var kanbanMoment = /* @__PURE__ */ __name((format, date2) => format.instant(date2, { date: "long", time: "short" }), "kanbanMoment");
76762
- var kanbanLinkHost = /* @__PURE__ */ __name((url) => {
76763
- try {
76764
- return new URL(url).host.replace(/^www\./, "") || url;
76765
- } catch {
76766
- return url;
76767
- }
76768
- }, "kanbanLinkHost");
76769
- var kanbanLinkIcon = /* @__PURE__ */ __name((link) => link.kind === "branch" ? "lucide:GitBranch" : link.kind === "commit" ? "lucide:GitCommitHorizontal" : link.kind === "release" ? "lucide:Package" : "lucide:Link", "kanbanLinkIcon");
76770
- 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");
76771
- var kanbanEvent = /* @__PURE__ */ __name((owner, name, detail) => {
76772
- owner.dispatchEvent(new CustomEvent(name, { detail, bubbles: true, composed: true }));
76773
- }, "kanbanEvent");
76774
- var kanbanError = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "kanbanError");
76775
-
76776
76936
  // ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.ts
76777
- 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;
76937
+ 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;
76778
76938
  _DeesKanbanDiscussion_decorators = [customElement("dees-kanban-discussion")];
76779
- 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) {
76939
+ 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) {
76780
76940
  constructor() {
76781
76941
  super(...arguments);
76782
76942
  __publicField(this, "t", dcLocalize(this));
@@ -76787,19 +76947,39 @@ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesEle
76787
76947
  __privateAdd(this, _currentPerson, __runInitializers(_init104, 24, this)), __runInitializers(_init104, 27, this);
76788
76948
  __privateAdd(this, _view2, __runInitializers(_init104, 28, this, "full")), __runInitializers(_init104, 31, this);
76789
76949
  __privateAdd(this, _addComment, __runInitializers(_init104, 32, this)), __runInitializers(_init104, 35, this);
76790
- __privateAdd(this, _loading9, __runInitializers(_init104, 36, this, false)), __runInitializers(_init104, 39, this);
76791
- __privateAdd(this, _readOnly2, __runInitializers(_init104, 40, this, false)), __runInitializers(_init104, 43, this);
76792
- __privateAdd(this, _error4, __runInitializers(_init104, 44, this, "")), __runInitializers(_init104, 47, this);
76793
- __privateAdd(this, _showHeader2, __runInitializers(_init104, 48, this, true)), __runInitializers(_init104, 51, this);
76794
- /** The ticket's comments as the thread's entries, oldest first. */
76950
+ __privateAdd(this, _askQuestion, __runInitializers(_init104, 36, this)), __runInitializers(_init104, 39, this);
76951
+ __privateAdd(this, _answerQuestion, __runInitializers(_init104, 40, this)), __runInitializers(_init104, 43, this);
76952
+ __privateAdd(this, _loading9, __runInitializers(_init104, 44, this, false)), __runInitializers(_init104, 47, this);
76953
+ __privateAdd(this, _readOnly3, __runInitializers(_init104, 48, this, false)), __runInitializers(_init104, 51, this);
76954
+ __privateAdd(this, _error4, __runInitializers(_init104, 52, this, "")), __runInitializers(_init104, 55, this);
76955
+ __privateAdd(this, _showHeader2, __runInitializers(_init104, 56, this, true)), __runInitializers(_init104, 59, this);
76956
+ __privateAdd(this, _answering, __runInitializers(_init104, 60, this, /* @__PURE__ */ new Set())), __runInitializers(_init104, 63, this);
76957
+ /** The ticket's comments and questions as the thread's entries, oldest first. */
76795
76958
  __publicField(this, "threadEntries", []);
76959
+ /** The ticket's questions, oldest first, each with a card in the thread. */
76960
+ __publicField(this, "questions", []);
76961
+ /** Each question as its card asks it, kept while the question is unchanged. */
76962
+ __publicField(this, "cardRequests", /* @__PURE__ */ new WeakMap());
76963
+ __publicField(this, "askActions", []);
76796
76964
  /** The composer's Markdown the draft was read from, given back while the draft is unchanged. */
76797
76965
  __publicField(this, "draftSource");
76798
- /** Saves a comment; a refusal or a comment saved to another ticket stays in the composer. */
76799
- __publicField(this, "post", /* @__PURE__ */ __name(async ({ body }) => {
76966
+ /**
76967
+ * Saves a comment, or with "Ask as question" a question; a refusal, or a comment or question saved
76968
+ * to another ticket, stays in the composer.
76969
+ */
76970
+ __publicField(this, "post", /* @__PURE__ */ __name(async ({ body, action }) => {
76800
76971
  const ticketId = this.ticketId;
76972
+ if (!ticketId || typeof body !== "string") return;
76973
+ if (action === "ask") {
76974
+ const askQuestion2 = this.askQuestion;
76975
+ if (!askQuestion2) return;
76976
+ const question = await askQuestion2({ ticketId, question: body });
76977
+ if (question.ticketId !== ticketId) throw new Error(this.t("kanban.questionMismatch"));
76978
+ kanbanEvent(this, "kanban-question-added", { question, submittedBody: markdownToReferences(body) });
76979
+ return;
76980
+ }
76801
76981
  const addComment = this.addComment;
76802
- if (!ticketId || !addComment || typeof body !== "string") return;
76982
+ if (!addComment) return;
76803
76983
  const submittedBody = markdownToReferences(body);
76804
76984
  const comment = await addComment({ ticketId, body: submittedBody });
76805
76985
  if (comment.ticketId !== ticketId) throw new Error(this.t("kanban.commentMismatch"));
@@ -76808,13 +76988,67 @@ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesEle
76808
76988
  }
76809
76989
  willUpdate(changed3) {
76810
76990
  super.willUpdate(changed3);
76811
- if (!changed3.has("comments") && !changed3.has("ticketId")) return;
76812
- this.threadEntries = this.comments.filter((comment) => comment.ticketId === this.ticketId).sort((a, b2) => Date.parse(a.createdAt) - Date.parse(b2.createdAt)).map((comment) => ({
76813
- id: comment.id,
76814
- author: { id: comment.author.id, name: comment.author.name },
76815
- createdAt: comment.createdAt,
76816
- body: referencesToMarkdown(comment.body)
76817
- }));
76991
+ if (!changed3.has("comments") && !changed3.has("ticketId") && !changed3.has("answering")) return;
76992
+ const items = this.comments.filter((item) => item.ticketId === this.ticketId).sort((a, b2) => Date.parse(a.createdAt) - Date.parse(b2.createdAt));
76993
+ this.questions = items.filter(isKanbanQuestion);
76994
+ this.threadEntries = items.map((item) => isKanbanQuestion(item) ? this.questionEntry(item) : {
76995
+ id: item.id,
76996
+ author: { id: item.author.id, name: item.author.name },
76997
+ createdAt: item.createdAt,
76998
+ body: referencesToMarkdown(item.body)
76999
+ });
77000
+ }
77001
+ /** A question as the thread's entry: its card in the body's place, outlined while it waits. */
77002
+ questionEntry(question) {
77003
+ const answer = question.answer;
77004
+ const answeredAt = answer && new Date(answer.answeredAt);
77005
+ return {
77006
+ id: `question:${question.id}`,
77007
+ author: { id: question.author.id, name: question.author.name },
77008
+ createdAt: question.createdAt,
77009
+ body: question.question,
77010
+ slot: `question-${question.id}`,
77011
+ attention: answer ? void 0 : this.t("kanban.autoLabelOpenQuestion"),
77012
+ footnote: this.answering.has(question.id) ? this.t("kanban.answerSaving") : answer && answeredAt && !Number.isNaN(answeredAt.getTime()) ? this.t("kanban.answeredBy", {
77013
+ name: answer.answeredBy.name,
77014
+ when: this.t.format.instant(answeredAt, { date: "medium", time: "short" })
77015
+ }) : void 0
77016
+ };
77017
+ }
77018
+ /** A question as its card asks it, with its answer as the card shows one: the options chosen, then the words. */
77019
+ cardRequest(question) {
77020
+ const known = this.cardRequests.get(question);
77021
+ if (known) return known;
77022
+ const options = question.options ?? [];
77023
+ const answer = question.answer;
77024
+ const request = {
77025
+ id: question.id,
77026
+ kind: "question",
77027
+ question: referenceText(markdownToReferences(question.question)),
77028
+ options: options.map((option) => ({ id: option.id, label: option.label, description: option.description })),
77029
+ multiSelect: question.multiSelect ?? false,
77030
+ allowCustom: question.allowCustom ?? true,
77031
+ createdAt: Date.parse(question.createdAt)
77032
+ };
77033
+ if (answer) {
77034
+ const chosen = new Set(answer.choices);
77035
+ const text = answer.text?.trim();
77036
+ request.response = [
77037
+ ...options.filter((option) => chosen.has(option.id)).map((option) => option.label),
77038
+ ...text ? [text] : []
77039
+ ];
77040
+ request.respondedAt = Date.parse(answer.answeredAt);
77041
+ }
77042
+ this.cardRequests.set(question, request);
77043
+ return request;
77044
+ }
77045
+ composerActions() {
77046
+ if (!this.askQuestion) return [];
77047
+ const label = this.t("kanban.askQuestion");
77048
+ if (this.askActions[0]?.label !== label) {
77049
+ this.askActions = [{ key: "ask", label, iconName: "lucide:MessageCircleQuestionMark" }];
77050
+ }
77051
+ return this.askActions;
76818
77052
  }
76819
77053
  threadDraft() {
76820
77054
  return this.draftSource?.draft === this.draft ? this.draftSource.markdown : referencesToMarkdown(this.draft);
@@ -76843,6 +77077,7 @@ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesEle
76843
77077
  .searchReferences=${this.searchTickets}
76844
77078
  .referenceSearchLabel=${this.t("reference.search")}
76845
77079
  .view=${this.view}
77080
+ .composerActions=${this.composerActions()}
76846
77081
  .onSubmit=${this.post}
76847
77082
  .readOnly=${this.readOnly || !this.addComment || !this.ticketId}
76848
77083
  .readOnlyReason=${this.t("kanban.readOnly")}
@@ -76865,7 +77100,18 @@ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesEle
76865
77100
  kanbanEvent(this, "kanban-comments-refresh", { ticketId: this.ticketId });
76866
77101
  }}
76867
77102
  @thread-submit=${(event) => event.stopPropagation()}
76868
- ></dees-thread>`;
77103
+ >${this.view === "composer" ? "" : directives_exports.repeat(
77104
+ this.questions,
77105
+ (question) => question.id,
77106
+ (question) => b`<dees-harness-question-card
77107
+ slot=${`question-${question.id}`}
77108
+ frameless
77109
+ .request=${this.cardRequest(question)}
77110
+ .busy=${this.answering.has(question.id)}
77111
+ .readOnly=${!this.answerQuestion || !this.ticketId}
77112
+ @harness-question-response=${(event) => this.answer(question, event)}
77113
+ ></dees-harness-question-card>`
77114
+ )}</dees-thread>`;
76869
77115
  }
76870
77116
  /** Posts the draft as the Comment button would; resolves once the post settled. */
76871
77117
  async submit() {
@@ -76873,6 +77119,51 @@ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a103 = DeesEle
76873
77119
  await this.updateComplete;
76874
77120
  await this.shadowRoot?.querySelector("dees-thread")?.submit();
76875
77121
  }
77122
+ /**
77123
+ * Shows a question, unfolding a long discussion to it, and puts the focus on its answer where the
77124
+ * reader may answer it; `false` when it is not here or takes no answer.
77125
+ */
77126
+ async revealQuestion(questionId) {
77127
+ await this.updateComplete;
77128
+ const thread = this.shadowRoot?.querySelector("dees-thread");
77129
+ if (!thread || !await thread.revealEntry(`question:${questionId}`)) return false;
77130
+ const card = [...this.shadowRoot?.querySelectorAll("dees-harness-question-card") ?? []].find((element) => element.slot === `question-${questionId}`);
77131
+ return card ? card.focusAnswer({ preventScroll: true }) : false;
77132
+ }
77133
+ /**
77134
+ * Saves the answer a card gave; the card shows it while it is saved. A refusal, or a saved
77135
+ * question that is another or still open, shows on the card, which waits for an answer again.
77136
+ */
77137
+ async answer(question, event) {
77138
+ event.stopPropagation();
77139
+ const card = event.currentTarget;
77140
+ const ticketId = this.ticketId;
77141
+ const answerQuestion = this.answerQuestion;
77142
+ if (!answerQuestion || question.ticketId !== ticketId || this.answering.has(question.id)) {
77143
+ card.rejectResponse();
77144
+ return;
77145
+ }
77146
+ const text = event.detail.text?.trim();
77147
+ const input = {
77148
+ ticketId,
77149
+ questionId: question.id,
77150
+ choices: event.detail.optionIds ?? [],
77151
+ ...text ? { text } : {}
77152
+ };
77153
+ this.answering = /* @__PURE__ */ new Set([...this.answering, question.id]);
77154
+ try {
77155
+ const saved = await answerQuestion(input);
77156
+ if (saved.ticketId !== ticketId || saved.id !== question.id) throw new Error(this.t("kanban.questionMismatch"));
77157
+ if (!saved.answer) throw new Error(this.t("question.answerRefused"));
77158
+ kanbanEvent(this, "kanban-question-answered", { question: saved, answer: input });
77159
+ } catch (error) {
77160
+ card.rejectResponse({ message: kanbanError(error) });
77161
+ } finally {
77162
+ const answering = new Set(this.answering);
77163
+ answering.delete(question.id);
77164
+ this.answering = answering;
77165
+ }
77166
+ }
76876
77167
  };
76877
77168
  _init104 = __decoratorStart(_a103);
76878
77169
  _ticketId = new WeakMap();
@@ -76882,10 +77173,13 @@ _searchTickets = new WeakMap();
76882
77173
  _currentPerson = new WeakMap();
76883
77174
  _view2 = new WeakMap();
76884
77175
  _addComment = new WeakMap();
77176
+ _askQuestion = new WeakMap();
77177
+ _answerQuestion = new WeakMap();
76885
77178
  _loading9 = new WeakMap();
76886
- _readOnly2 = new WeakMap();
77179
+ _readOnly3 = new WeakMap();
76887
77180
  _error4 = new WeakMap();
76888
77181
  _showHeader2 = new WeakMap();
77182
+ _answering = new WeakMap();
76889
77183
  __decorateElement(_init104, 4, "ticketId", _ticketId_dec, _DeesKanbanDiscussion, _ticketId);
76890
77184
  __decorateElement(_init104, 4, "comments", _comments_dec, _DeesKanbanDiscussion, _comments);
76891
77185
  __decorateElement(_init104, 4, "draft", _draft_dec3, _DeesKanbanDiscussion, _draft3);
@@ -76893,10 +77187,13 @@ __decorateElement(_init104, 4, "searchTickets", _searchTickets_dec, _DeesKanbanD
76893
77187
  __decorateElement(_init104, 4, "currentPerson", _currentPerson_dec, _DeesKanbanDiscussion, _currentPerson);
76894
77188
  __decorateElement(_init104, 4, "view", _view_dec2, _DeesKanbanDiscussion, _view2);
76895
77189
  __decorateElement(_init104, 4, "addComment", _addComment_dec, _DeesKanbanDiscussion, _addComment);
77190
+ __decorateElement(_init104, 4, "askQuestion", _askQuestion_dec, _DeesKanbanDiscussion, _askQuestion);
77191
+ __decorateElement(_init104, 4, "answerQuestion", _answerQuestion_dec, _DeesKanbanDiscussion, _answerQuestion);
76896
77192
  __decorateElement(_init104, 4, "loading", _loading_dec9, _DeesKanbanDiscussion, _loading9);
76897
- __decorateElement(_init104, 4, "readOnly", _readOnly_dec2, _DeesKanbanDiscussion, _readOnly2);
77193
+ __decorateElement(_init104, 4, "readOnly", _readOnly_dec3, _DeesKanbanDiscussion, _readOnly3);
76898
77194
  __decorateElement(_init104, 4, "error", _error_dec4, _DeesKanbanDiscussion, _error4);
76899
77195
  __decorateElement(_init104, 4, "showHeader", _showHeader_dec2, _DeesKanbanDiscussion, _showHeader2);
77196
+ __decorateElement(_init104, 4, "answering", _answering_dec, _DeesKanbanDiscussion, _answering);
76900
77197
  _DeesKanbanDiscussion = __decorateElement(_init104, 0, "DeesKanbanDiscussion", _DeesKanbanDiscussion_decorators, _DeesKanbanDiscussion);
76901
77198
  __name(_DeesKanbanDiscussion, "DeesKanbanDiscussion");
76902
77199
  __publicField(_DeesKanbanDiscussion, "styles", [...kanbanStyles, kanbanFeedStyles]);
@@ -76913,7 +77210,9 @@ var actionIcons = {
76913
77210
  moved: "lucide:ArrowRight",
76914
77211
  reordered: "lucide:ArrowUpDown",
76915
77212
  commented: "lucide:MessageSquare",
76916
- linked: "lucide:Link"
77213
+ linked: "lucide:Link",
77214
+ asked: "lucide:MessageCircleQuestionMark",
77215
+ answered: "lucide:MessageCircleReply"
76917
77216
  };
76918
77217
  _DeesKanbanActivity_decorators = [customElement("dees-kanban-activity")];
76919
77218
  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) {
@@ -77153,9 +77452,10 @@ __runInitializers(_init105, 1, _DeesKanbanActivity);
77153
77452
  var DeesKanbanActivity = _DeesKanbanActivity;
77154
77453
 
77155
77454
  // ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.ts
77156
- 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;
77455
+ 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;
77456
+ var discussionActions = /* @__PURE__ */ new Set(["commented", "asked", "answered"]);
77157
77457
  _DeesKanbanTicketDetail_decorators = [customElement("dees-kanban-ticket-detail")];
77158
- 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) {
77458
+ 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) {
77159
77459
  constructor() {
77160
77460
  super(...arguments);
77161
77461
  __publicField(this, "t", dcLocalize(this));
@@ -77168,24 +77468,33 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77168
77468
  __privateAdd(this, _draft4, __runInitializers(_init106, 32, this)), __runInitializers(_init106, 35, this);
77169
77469
  __privateAdd(this, _commentDraft, __runInitializers(_init106, 36, this, [])), __runInitializers(_init106, 39, this);
77170
77470
  __privateAdd(this, _comments2, __runInitializers(_init106, 40, this, [])), __runInitializers(_init106, 43, this);
77171
- __privateAdd(this, _searchTickets2, __runInitializers(_init106, 44, this)), __runInitializers(_init106, 47, this);
77172
- __privateAdd(this, _loadingComments, __runInitializers(_init106, 48, this, false)), __runInitializers(_init106, 51, this);
77173
- __privateAdd(this, _commentsError, __runInitializers(_init106, 52, this, "")), __runInitializers(_init106, 55, this);
77174
- __privateAdd(this, _activity2, __runInitializers(_init106, 56, this, [])), __runInitializers(_init106, 59, this);
77175
- __privateAdd(this, _loadingActivity, __runInitializers(_init106, 60, this, false)), __runInitializers(_init106, 63, this);
77176
- __privateAdd(this, _activityError, __runInitializers(_init106, 64, this, "")), __runInitializers(_init106, 67, this);
77177
- __privateAdd(this, _projects2, __runInitializers(_init106, 68, this, [])), __runInitializers(_init106, 71, this);
77178
- __privateAdd(this, _error6, __runInitializers(_init106, 72, this, "")), __runInitializers(_init106, 75, this);
77179
- __privateAdd(this, _saving2, __runInitializers(_init106, 76, this, false)), __runInitializers(_init106, 79, this);
77180
- __privateAdd(this, _canGoBack, __runInitializers(_init106, 80, this, false)), __runInitializers(_init106, 83, this);
77181
- __privateAdd(this, _showTicketKey, __runInitializers(_init106, 84, this, true)), __runInitializers(_init106, 87, this);
77182
- __privateAdd(this, _frameless14, __runInitializers(_init106, 88, this, false)), __runInitializers(_init106, 91, this);
77183
- __privateAdd(this, _conflict, __runInitializers(_init106, 92, this)), __runInitializers(_init106, 95, this);
77184
- __privateAdd(this, _editing3, __runInitializers(_init106, 96, this, false)), __runInitializers(_init106, 99, this);
77471
+ __privateAdd(this, _autoLabelDefinitions, __runInitializers(_init106, 44, this, [])), __runInitializers(_init106, 47, this);
77472
+ __privateAdd(this, _searchTickets2, __runInitializers(_init106, 48, this)), __runInitializers(_init106, 51, this);
77473
+ __privateAdd(this, _loadingComments, __runInitializers(_init106, 52, this, false)), __runInitializers(_init106, 55, this);
77474
+ __privateAdd(this, _commentsError, __runInitializers(_init106, 56, this, "")), __runInitializers(_init106, 59, this);
77475
+ __privateAdd(this, _activity2, __runInitializers(_init106, 60, this, [])), __runInitializers(_init106, 63, this);
77476
+ __privateAdd(this, _loadingActivity, __runInitializers(_init106, 64, this, false)), __runInitializers(_init106, 67, this);
77477
+ __privateAdd(this, _activityError, __runInitializers(_init106, 68, this, "")), __runInitializers(_init106, 71, this);
77478
+ __privateAdd(this, _projects2, __runInitializers(_init106, 72, this, [])), __runInitializers(_init106, 75, this);
77479
+ __privateAdd(this, _error6, __runInitializers(_init106, 76, this, "")), __runInitializers(_init106, 79, this);
77480
+ __privateAdd(this, _saving2, __runInitializers(_init106, 80, this, false)), __runInitializers(_init106, 83, this);
77481
+ __privateAdd(this, _canGoBack, __runInitializers(_init106, 84, this, false)), __runInitializers(_init106, 87, this);
77482
+ __privateAdd(this, _showTicketKey, __runInitializers(_init106, 88, this, true)), __runInitializers(_init106, 91, this);
77483
+ __privateAdd(this, _frameless15, __runInitializers(_init106, 92, this, false)), __runInitializers(_init106, 95, this);
77484
+ __privateAdd(this, _conflict, __runInitializers(_init106, 96, this)), __runInitializers(_init106, 99, this);
77485
+ __privateAdd(this, _editing3, __runInitializers(_init106, 100, this, false)), __runInitializers(_init106, 103, this);
77185
77486
  /** The reader pressed a button of the refusal, which leaves with its answer: the focus follows. */
77186
77487
  __publicField(this, "conflictFocus", false);
77187
- __privateAdd(this, _feed, __runInitializers(_init106, 100, this, "comments")), __runInitializers(_init106, 103, this);
77488
+ __privateAdd(this, _feed, __runInitializers(_init106, 104, this, "comments")), __runInitializers(_init106, 107, this);
77489
+ /**
77490
+ * The pinned composer covers the foot of the main column: its height is the column's scroll
77491
+ * padding, so what scrolls into view there, such as a question the hint shows, is not under it.
77492
+ */
77493
+ __publicField(this, "composerObserver");
77494
+ __publicField(this, "observedComposer", null);
77188
77495
  __publicField(this, "addComment", /* @__PURE__ */ __name((input) => this.provider.addComment(input), "addComment"));
77496
+ __publicField(this, "askQuestion", /* @__PURE__ */ __name((input) => this.provider.askQuestion(input), "askQuestion"));
77497
+ __publicField(this, "answerQuestion", /* @__PURE__ */ __name((input) => this.provider.answerQuestion(input), "answerQuestion"));
77189
77498
  /** Keeps the comment the reader is writing, so that the next render gives the composer it back, not an older one. */
77190
77499
  __publicField(this, "keepCommentDraft", /* @__PURE__ */ __name((event) => {
77191
77500
  if (event.detail.ticketId === this.ticket?.id) this.commentDraft = event.detail.body;
@@ -77201,6 +77510,30 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77201
77510
  const target = root.querySelector(".conflict dees-button") ?? root.querySelector(".edit dees-input-text");
77202
77511
  void target?.updateComplete.then(() => target.focus());
77203
77512
  }
77513
+ this.observeComposer();
77514
+ }
77515
+ async disconnectedCallback() {
77516
+ this.composerObserver?.disconnect();
77517
+ this.observedComposer = null;
77518
+ await super.disconnectedCallback();
77519
+ }
77520
+ async connectedCallback() {
77521
+ const connection = super.connectedCallback();
77522
+ if (this.hasUpdated) this.observeComposer();
77523
+ await connection;
77524
+ }
77525
+ observeComposer() {
77526
+ const composer = this.shadowRoot?.querySelector(".main > .composer") ?? null;
77527
+ if (composer === this.observedComposer) return;
77528
+ this.composerObserver ??= new ResizeObserver(([entry]) => this.padForComposer(entry?.borderBoxSize[0]?.blockSize ?? 0));
77529
+ if (this.observedComposer) this.composerObserver.unobserve(this.observedComposer);
77530
+ if (composer) this.composerObserver.observe(composer);
77531
+ else this.padForComposer(0);
77532
+ this.observedComposer = composer;
77533
+ }
77534
+ /** Makes the composer's height the main column's scroll padding. */
77535
+ padForComposer(blockSize) {
77536
+ this.shadowRoot?.querySelector(".main")?.style.setProperty("--detail-composer-block-size", `${blockSize}px`);
77204
77537
  }
77205
77538
  /**
77206
77539
  * A save the provider refused as stale, at the top of the edit: the server's reason and the
@@ -77310,6 +77643,39 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77310
77643
  this.draft = { ...this.draft ?? ticketDraft(this.ticket), ...change };
77311
77644
  kanbanEvent(this, "kanban-ticket-draft", { ticketId: this.ticket.id, draft: this.draft });
77312
77645
  }
77646
+ /**
77647
+ * Shows the ticket's first unanswered question in the discussion, ready for an answer where the
77648
+ * reader may give one.
77649
+ */
77650
+ async revealOpenQuestion(questionId) {
77651
+ this.feed = "comments";
77652
+ await this.updateComplete;
77653
+ const composer = this.shadowRoot?.querySelector(".main > .composer");
77654
+ if (composer) this.padForComposer(composer.getBoundingClientRect().height);
77655
+ await this.shadowRoot?.querySelector("dees-kanban-discussion:not(.composer)")?.revealQuestion(questionId);
77656
+ }
77657
+ /** Says how many questions wait for an answer, with a button to the first. */
77658
+ renderOpenQuestions(ticket) {
77659
+ const open = this.comments.filter(
77660
+ (item) => isKanbanQuestion(item) && item.ticketId === ticket.id && !item.answer
77661
+ );
77662
+ if (!open.length) return "";
77663
+ const first = open.reduce((oldest, item) => Date.parse(item.createdAt) < Date.parse(oldest.createdAt) ? item : oldest);
77664
+ const canAnswer = Boolean(this.provider.answerQuestion) && ticket.permissions?.answer !== false;
77665
+ return b`<div class="open-questions">
77666
+ <dees-hint type="warning">
77667
+ <div class="open-questions-row">
77668
+ <p>${this.t("kanban.openQuestions", { count: open.length })}</p>
77669
+ <dees-button
77670
+ size="sm"
77671
+ type=${canAnswer ? "accent" : "secondary"}
77672
+ text=${this.t(canAnswer ? "kanban.answerQuestion" : "kanban.showQuestion")}
77673
+ @clicked=${() => this.revealOpenQuestion(first.id)}
77674
+ ></dees-button>
77675
+ </div>
77676
+ </dees-hint>
77677
+ </div>`;
77678
+ }
77313
77679
  render() {
77314
77680
  const ticket = this.ticket;
77315
77681
  if (!ticket) return b``;
@@ -77345,6 +77711,7 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77345
77711
  <div class="panes">
77346
77712
  <div class="main">
77347
77713
  ${this.error ? b`<p class="error" role="alert">${this.error}</p>` : ""}
77714
+ ${this.renderOpenQuestions(ticket)}
77348
77715
  <section class="lead">
77349
77716
  ${this.editing && editable ? b`<div class="edit">
77350
77717
  ${this.conflict ? this.renderConflict(ticket, this.conflict, parents, projects) : ""}
@@ -77499,10 +77866,14 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77499
77866
  }}
77500
77867
  @input=${(event) => event.stopPropagation()}
77501
77868
  ></dees-input-tags>
77869
+ ${ticket.autoLabels?.length ? b`<div class="row auto-row">
77870
+ ${renderKanbanAutoLabels(this.t, this.autoLabelDefinitions, ticket.autoLabels)}
77871
+ </div>` : ""}
77502
77872
  </div>` : b`<div class="labels">
77503
77873
  <label class="caption">${this.t("kanban.labels")}</label>
77504
- ${ticket.labels?.length ? b`<div class="row value">
77505
- ${ticket.labels.map((label) => b`<span class="badge">${label}</span>`)}
77874
+ ${ticket.labels?.length || ticket.autoLabels?.length ? b`<div class="row value">
77875
+ ${renderKanbanAutoLabels(this.t, this.autoLabelDefinitions, ticket.autoLabels)}
77876
+ ${ticket.labels?.map((label) => b`<span class="badge">${label}</span>`)}
77506
77877
  </div>` : this.renderUnset(this.t("kanban.noLabels"))}
77507
77878
  </div>`}
77508
77879
  </div>
@@ -77574,6 +77945,7 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77574
77945
  .view=${"entries"}
77575
77946
  .ticketId=${ticket.id}
77576
77947
  .comments=${this.comments}
77948
+ .answerQuestion=${this.provider.answerQuestion && ticket.permissions?.answer !== false ? this.answerQuestion : void 0}
77577
77949
  .loading=${this.loadingComments}
77578
77950
  .error=${this.commentsError}
77579
77951
  .showHeader=${!inFeed}
@@ -77591,6 +77963,7 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77591
77963
  .searchTickets=${this.searchTickets}
77592
77964
  .currentPerson=${this.currentPerson}
77593
77965
  .addComment=${this.provider.addComment ? this.addComment : void 0}
77966
+ .askQuestion=${this.provider.askQuestion && ticket.permissions?.ask !== false ? this.askQuestion : void 0}
77594
77967
  ?hidden=${!!this.provider.loadActivity && this.feed !== "comments"}
77595
77968
  @kanban-comment-draft=${this.keepCommentDraft}
77596
77969
  ></dees-kanban-discussion>`;
@@ -77602,7 +77975,7 @@ var _DeesKanbanTicketDetail = class _DeesKanbanTicketDetail extends (_a105 = Dee
77602
77975
  renderFeed(ticket) {
77603
77976
  const comments = this.comments.filter((comment) => comment.ticketId === ticket.id).length;
77604
77977
  const changes = this.activity.filter(
77605
- (entry) => entry.ticketId === ticket.id && entry.action !== "commented"
77978
+ (entry) => entry.ticketId === ticket.id && !discussionActions.has(entry.action)
77606
77979
  );
77607
77980
  const history = this.feed === "history";
77608
77981
  return b`<section class="feed">
@@ -77730,6 +78103,7 @@ _provider3 = new WeakMap();
77730
78103
  _draft4 = new WeakMap();
77731
78104
  _commentDraft = new WeakMap();
77732
78105
  _comments2 = new WeakMap();
78106
+ _autoLabelDefinitions = new WeakMap();
77733
78107
  _searchTickets2 = new WeakMap();
77734
78108
  _loadingComments = new WeakMap();
77735
78109
  _commentsError = new WeakMap();
@@ -77741,7 +78115,7 @@ _error6 = new WeakMap();
77741
78115
  _saving2 = new WeakMap();
77742
78116
  _canGoBack = new WeakMap();
77743
78117
  _showTicketKey = new WeakMap();
77744
- _frameless14 = new WeakMap();
78118
+ _frameless15 = new WeakMap();
77745
78119
  _conflict = new WeakMap();
77746
78120
  _editing3 = new WeakMap();
77747
78121
  _feed = new WeakMap();
@@ -77754,6 +78128,7 @@ __decorateElement(_init106, 4, "provider", _provider_dec3, _DeesKanbanTicketDeta
77754
78128
  __decorateElement(_init106, 4, "draft", _draft_dec4, _DeesKanbanTicketDetail, _draft4);
77755
78129
  __decorateElement(_init106, 4, "commentDraft", _commentDraft_dec, _DeesKanbanTicketDetail, _commentDraft);
77756
78130
  __decorateElement(_init106, 4, "comments", _comments_dec2, _DeesKanbanTicketDetail, _comments2);
78131
+ __decorateElement(_init106, 4, "autoLabelDefinitions", _autoLabelDefinitions_dec, _DeesKanbanTicketDetail, _autoLabelDefinitions);
77757
78132
  __decorateElement(_init106, 4, "searchTickets", _searchTickets_dec2, _DeesKanbanTicketDetail, _searchTickets2);
77758
78133
  __decorateElement(_init106, 4, "loadingComments", _loadingComments_dec, _DeesKanbanTicketDetail, _loadingComments);
77759
78134
  __decorateElement(_init106, 4, "commentsError", _commentsError_dec, _DeesKanbanTicketDetail, _commentsError);
@@ -77765,7 +78140,7 @@ __decorateElement(_init106, 4, "error", _error_dec6, _DeesKanbanTicketDetail, _e
77765
78140
  __decorateElement(_init106, 4, "saving", _saving_dec2, _DeesKanbanTicketDetail, _saving2);
77766
78141
  __decorateElement(_init106, 4, "canGoBack", _canGoBack_dec, _DeesKanbanTicketDetail, _canGoBack);
77767
78142
  __decorateElement(_init106, 4, "showTicketKey", _showTicketKey_dec, _DeesKanbanTicketDetail, _showTicketKey);
77768
- __decorateElement(_init106, 4, "frameless", _frameless_dec14, _DeesKanbanTicketDetail, _frameless14);
78143
+ __decorateElement(_init106, 4, "frameless", _frameless_dec15, _DeesKanbanTicketDetail, _frameless15);
77769
78144
  __decorateElement(_init106, 4, "conflict", _conflict_dec, _DeesKanbanTicketDetail, _conflict);
77770
78145
  __decorateElement(_init106, 4, "editing", _editing_dec3, _DeesKanbanTicketDetail, _editing3);
77771
78146
  __decorateElement(_init106, 4, "feed", _feed_dec, _DeesKanbanTicketDetail, _feed);
@@ -77815,6 +78190,11 @@ __publicField(_DeesKanbanTicketDetail, "styles", [
77815
78190
  scrollbar-width: thin;
77816
78191
  }
77817
78192
 
78193
+ /* What scrolls into view, a revealed question or a focused control, stops short of the composer. */
78194
+ .main {
78195
+ scroll-padding-bottom: calc(var(--detail-composer-block-size, 0px) + var(--dees-spacing-md));
78196
+ }
78197
+
77818
78198
  /* Positioned content of the main column is placed in it, so it scrolls with it, not over the panes. */
77819
78199
  .main > :not(aside) {
77820
78200
  position: relative;
@@ -78250,6 +78630,27 @@ __publicField(_DeesKanbanTicketDetail, "styles", [
78250
78630
  gap: 14px;
78251
78631
  }
78252
78632
 
78633
+ .open-questions {
78634
+ margin-bottom: 16px;
78635
+ }
78636
+
78637
+ .open-questions-row {
78638
+ display: flex;
78639
+ flex-wrap: wrap;
78640
+ align-items: center;
78641
+ justify-content: space-between;
78642
+ gap: 8px 12px;
78643
+ }
78644
+
78645
+ .open-questions-row p {
78646
+ color: var(--dees-color-text-primary);
78647
+ font-weight: 600;
78648
+ }
78649
+
78650
+ .auto-row {
78651
+ margin-top: 8px;
78652
+ }
78653
+
78253
78654
  .conflict p + p,
78254
78655
  .conflict p + dees-button {
78255
78656
  margin-top: 8px;
@@ -78336,10 +78737,15 @@ __publicField(_DeesKanbanTicketDetail, "styles", [
78336
78737
  overflow: visible;
78337
78738
  }
78338
78739
  .main > .error,
78740
+ .main > .open-questions,
78339
78741
  .lead,
78340
78742
  .body {
78341
78743
  padding-inline: var(--detail-inset-inline, 16px);
78342
78744
  }
78745
+ .main > .open-questions {
78746
+ margin: 0;
78747
+ padding-block: 12px 0;
78748
+ }
78343
78749
  .main > .error {
78344
78750
  padding-block: 10px 0;
78345
78751
  }
@@ -78430,6 +78836,7 @@ var kanbanDemoProjects = [
78430
78836
  { id: "catalog", name: "Design catalog" }
78431
78837
  ];
78432
78838
  var [mara2, jonas2, alex] = kanbanDemoPeople;
78839
+ var refusal = /* @__PURE__ */ __name((code, message) => Object.assign(new Error(message), { code }), "refusal");
78433
78840
  var releasedTickets = /* @__PURE__ */ __name(() => [
78434
78841
  ["Remember the last board filters", "app", "2.0.0"],
78435
78842
  ["Show who is viewing a ticket", "app", "2.1.0"],
@@ -78724,7 +79131,45 @@ var createKanbanDemo = /* @__PURE__ */ __name((options = {}) => {
78724
79131
  ...options.released ? releasedTickets() : [],
78725
79132
  ...options.workflow ? workflowTickets() : []
78726
79133
  ];
78727
- let tickets = seeded.map(revised);
79134
+ let questions = [
79135
+ {
79136
+ kind: "question",
79137
+ id: "Q1",
79138
+ ticketId: "task-3",
79139
+ author: alex,
79140
+ createdAt: "2026-09-16T10:20:00Z",
79141
+ question: "Should the arrow keys move a focused card between columns as well?",
79142
+ options: [
79143
+ { id: "1", label: "Within its column only" },
79144
+ { id: "2", label: "Between columns too", description: "Left and right change the column." }
79145
+ ],
79146
+ multiSelect: false,
79147
+ allowCustom: true,
79148
+ answer: {
79149
+ choices: ["2"],
79150
+ text: "Up and down stay in the column.",
79151
+ answeredBy: mara2,
79152
+ answeredAt: "2026-09-16T10:48:00Z"
79153
+ }
79154
+ },
79155
+ {
79156
+ kind: "question",
79157
+ id: "Q2",
79158
+ ticketId: "task-3",
79159
+ author: alex,
79160
+ createdAt: "2026-09-16T11:05:00Z",
79161
+ question: "Which keys should open the focused card?",
79162
+ options: [
79163
+ { id: "1", label: "Enter" },
79164
+ { id: "2", label: "Space" },
79165
+ { id: "3", label: "O", description: "As in the list views." }
79166
+ ],
79167
+ multiSelect: true,
79168
+ allowCustom: true
79169
+ }
79170
+ ];
79171
+ const labelled = /* @__PURE__ */ __name(({ autoLabels: _, ...ticket }) => questions.some((question) => question.ticketId === ticket.id && !question.answer) ? { ...ticket, autoLabels: [kanbanOpenQuestionLabel] } : ticket, "labelled");
79172
+ let tickets = seeded.map((ticket) => revised(labelled(ticket)));
78728
79173
  let comments = [
78729
79174
  {
78730
79175
  id: "comment-1",
@@ -78810,6 +79255,27 @@ var createKanbanDemo = /* @__PURE__ */ __name((options = {}) => {
78810
79255
  actor: jonas2,
78811
79256
  createdAt: "2026-09-18T09:42:00Z",
78812
79257
  action: "commented"
79258
+ },
79259
+ {
79260
+ id: "activity-7",
79261
+ ticketId: "task-3",
79262
+ actor: alex,
79263
+ createdAt: "2026-09-16T10:20:00Z",
79264
+ action: "asked"
79265
+ },
79266
+ {
79267
+ id: "activity-8",
79268
+ ticketId: "task-3",
79269
+ actor: mara2,
79270
+ createdAt: "2026-09-16T10:48:00Z",
79271
+ action: "answered"
79272
+ },
79273
+ {
79274
+ id: "activity-9",
79275
+ ticketId: "task-3",
79276
+ actor: alex,
79277
+ createdAt: "2026-09-16T11:05:00Z",
79278
+ action: "asked"
78813
79279
  }
78814
79280
  ];
78815
79281
  let nextKey = 300;
@@ -78824,6 +79290,11 @@ var createKanbanDemo = /* @__PURE__ */ __name((options = {}) => {
78824
79290
  revision++;
78825
79291
  return createdAt;
78826
79292
  }, "record");
79293
+ const saveQuestion = /* @__PURE__ */ __name((question) => {
79294
+ questions = [...questions.filter((other) => other.id !== question.id), question];
79295
+ tickets = tickets.map((ticket) => ticket.id === question.ticketId ? revised(labelled(ticket)) : ticket);
79296
+ return question;
79297
+ }, "saveQuestion");
78827
79298
  const provider = {
78828
79299
  getTicket: /* @__PURE__ */ __name(async (id) => {
78829
79300
  const ticket = tickets.find((item) => item.id === id);
@@ -78833,7 +79304,7 @@ var createKanbanDemo = /* @__PURE__ */ __name((options = {}) => {
78833
79304
  searchTickets: /* @__PURE__ */ __name(async (query2) => tickets.filter(
78834
79305
  (ticket) => `${ticket.key} ${ticket.title}`.toLowerCase().includes(query2.toLowerCase())
78835
79306
  ), "searchTickets"),
78836
- loadComments: /* @__PURE__ */ __name(async (id) => comments.filter((comment) => comment.ticketId === id), "loadComments"),
79307
+ loadComments: /* @__PURE__ */ __name(async (id) => [...comments, ...questions].filter((item) => item.ticketId === id).sort((a, b2) => a.createdAt.localeCompare(b2.createdAt)), "loadComments"),
78837
79308
  loadActivity: /* @__PURE__ */ __name(async (id) => activity.filter((entry) => entry.ticketId === id), "loadActivity"),
78838
79309
  loadBoard: /* @__PURE__ */ __name(async () => ({ tickets, revision }), "loadBoard"),
78839
79310
  addComment: /* @__PURE__ */ __name(async (input) => {
@@ -78847,6 +79318,46 @@ var createKanbanDemo = /* @__PURE__ */ __name((options = {}) => {
78847
79318
  record(input.ticketId, "commented");
78848
79319
  return comment;
78849
79320
  }, "addComment"),
79321
+ askQuestion: /* @__PURE__ */ __name(async ({ ticketId, question }) => {
79322
+ return saveQuestion({
79323
+ kind: "question",
79324
+ id: `Q${questions.length + 1}`,
79325
+ ticketId,
79326
+ author: actor,
79327
+ createdAt: record(ticketId, "asked"),
79328
+ question,
79329
+ options: [],
79330
+ multiSelect: false,
79331
+ allowCustom: true
79332
+ });
79333
+ }, "askQuestion"),
79334
+ // Like a server: one answer per question, an identical second one changes nothing.
79335
+ answerQuestion: /* @__PURE__ */ __name(async ({ ticketId, questionId, choices, text }) => {
79336
+ const question = questions.find((item) => item.id === questionId && item.ticketId === ticketId);
79337
+ if (!question) throw refusal("ticket_question_not_found", "This question is no longer on the ticket.");
79338
+ const options2 = question.options ?? [];
79339
+ const ordered = options2.filter((option) => choices.includes(option.id)).map((option) => option.id);
79340
+ const words = text?.trim() || void 0;
79341
+ if (question.answer) {
79342
+ if (JSON.stringify([question.answer.choices, question.answer.text]) === JSON.stringify([ordered, words]))
79343
+ return question;
79344
+ throw refusal(
79345
+ "ticket_question_answered",
79346
+ `${question.answer.answeredBy.name} answered this question already. Ask a new one to change course.`
79347
+ );
79348
+ }
79349
+ if (ordered.length !== choices.length || !question.multiSelect && ordered.length > 1 || words && question.allowCustom === false || !ordered.length && !words)
79350
+ throw refusal("ticket_answer_invalid", "This answer does not fit the question.");
79351
+ return saveQuestion({
79352
+ ...question,
79353
+ answer: {
79354
+ choices: ordered,
79355
+ ...words ? { text: words } : {},
79356
+ answeredBy: actor,
79357
+ answeredAt: record(ticketId, "answered")
79358
+ }
79359
+ });
79360
+ }, "answerQuestion"),
78850
79361
  updateTicket: /* @__PURE__ */ __name(async ({ ticketId, changes, expectedRevision }) => {
78851
79362
  const previous = tickets.find((ticket2) => ticket2.id === ticketId);
78852
79363
  if (expectedRevision !== void 0 && expectedRevision !== previous.revision)
@@ -78960,9 +79471,10 @@ var demoFunc72 = /* @__PURE__ */ __name(() => {
78960
79471
  demo11.actAs(mara3);
78961
79472
  await board.refresh();
78962
79473
  }, "rename");
79474
+ const questionSaved = /* @__PURE__ */ __name((event) => void event.currentTarget.refresh(), "questionSaved");
78963
79475
  return demoApp(b`<div style="display: flex; flex-direction: column; height: 100%">
78964
79476
  <div class="dees-demo-row" style="flex: none; padding: 0 24px 4px">
78965
- <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>
79477
+ <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>
78966
79478
  <dees-button type="outline" size="sm" text="Simulate a teammate's change" @clicked=${simulate2}></dees-button>
78967
79479
  <dees-button type="outline" size="sm" text="Jonas renames CAT-102" @clicked=${rename}></dees-button>
78968
79480
  </div>
@@ -78975,14 +79487,16 @@ var demoFunc72 = /* @__PURE__ */ __name(() => {
78975
79487
  .projects=${kanbanDemoProjects}
78976
79488
  .revision=${demo11.revision}
78977
79489
  .provider=${demo11.provider}
79490
+ @kanban-question-asked=${questionSaved}
79491
+ @kanban-question-answer=${questionSaved}
78978
79492
  ></dees-kanban>
78979
79493
  </div>`);
78980
79494
  }, "demoFunc");
78981
79495
 
78982
79496
  // ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.ts
78983
- 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;
79497
+ 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;
78984
79498
  _DeesKanbanCard_decorators = [customElement("dees-kanban-card")];
78985
- 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) {
79499
+ 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) {
78986
79500
  constructor() {
78987
79501
  super(...arguments);
78988
79502
  __privateAdd(this, _ticket2, __runInitializers(_init107, 8, this)), __runInitializers(_init107, 11, this);
@@ -78990,11 +79504,12 @@ var _DeesKanbanCard = class _DeesKanbanCard extends (_a106 = DeesElement, _ticke
78990
79504
  __privateAdd(this, _subtasks, __runInitializers(_init107, 16, this, [])), __runInitializers(_init107, 19, this);
78991
79505
  __privateAdd(this, _projectName, __runInitializers(_init107, 20, this, "")), __runInitializers(_init107, 23, this);
78992
79506
  __privateAdd(this, _columns5, __runInitializers(_init107, 24, this, [])), __runInitializers(_init107, 27, this);
78993
- __privateAdd(this, _movable, __runInitializers(_init107, 28, this, false)), __runInitializers(_init107, 31, this);
78994
- __privateAdd(this, _moveDisabled, __runInitializers(_init107, 32, this, false)), __runInitializers(_init107, 35, this);
78995
- __privateAdd(this, _pending2, __runInitializers(_init107, 36, this, false)), __runInitializers(_init107, 39, this);
78996
- __privateAdd(this, _saving3, __runInitializers(_init107, 40, this, false)), __runInitializers(_init107, 43, this);
78997
- __privateAdd(this, _pointerManaged, __runInitializers(_init107, 44, this, false)), __runInitializers(_init107, 47, this);
79507
+ __privateAdd(this, _autoLabelDefinitions2, __runInitializers(_init107, 28, this, [])), __runInitializers(_init107, 31, this);
79508
+ __privateAdd(this, _movable, __runInitializers(_init107, 32, this, false)), __runInitializers(_init107, 35, this);
79509
+ __privateAdd(this, _moveDisabled, __runInitializers(_init107, 36, this, false)), __runInitializers(_init107, 39, this);
79510
+ __privateAdd(this, _pending2, __runInitializers(_init107, 40, this, false)), __runInitializers(_init107, 43, this);
79511
+ __privateAdd(this, _saving3, __runInitializers(_init107, 44, this, false)), __runInitializers(_init107, 47, this);
79512
+ __privateAdd(this, _pointerManaged, __runInitializers(_init107, 48, this, false)), __runInitializers(_init107, 51, this);
78998
79513
  __publicField(this, "t", dcLocalize(this));
78999
79514
  }
79000
79515
  open(ticketId) {
@@ -79052,6 +79567,7 @@ var _DeesKanbanCard = class _DeesKanbanCard extends (_a106 = DeesElement, _ticke
79052
79567
  iconSize="13"
79053
79568
  aria-hidden="true"
79054
79569
  ></dees-icon>${this.t("kanban.priority", { priority: ticket.priority })}</span>` : ""}
79570
+ ${renderKanbanAutoLabels(this.t, this.autoLabelDefinitions, ticket.autoLabels)}
79055
79571
  ${ticket.labels?.map((label) => b`<span class="badge" title=${label}>${label}</span>`)}
79056
79572
  <span class="assignee" title=${ticket.assignee?.name ?? this.t("kanban.unassigned")}>
79057
79573
  <span
@@ -79090,6 +79606,7 @@ _epic = new WeakMap();
79090
79606
  _subtasks = new WeakMap();
79091
79607
  _projectName = new WeakMap();
79092
79608
  _columns5 = new WeakMap();
79609
+ _autoLabelDefinitions2 = new WeakMap();
79093
79610
  _movable = new WeakMap();
79094
79611
  _moveDisabled = new WeakMap();
79095
79612
  _pending2 = new WeakMap();
@@ -79100,6 +79617,7 @@ __decorateElement(_init107, 4, "epic", _epic_dec, _DeesKanbanCard, _epic);
79100
79617
  __decorateElement(_init107, 4, "subtasks", _subtasks_dec, _DeesKanbanCard, _subtasks);
79101
79618
  __decorateElement(_init107, 4, "projectName", _projectName_dec, _DeesKanbanCard, _projectName);
79102
79619
  __decorateElement(_init107, 4, "columns", _columns_dec5, _DeesKanbanCard, _columns5);
79620
+ __decorateElement(_init107, 4, "autoLabelDefinitions", _autoLabelDefinitions_dec2, _DeesKanbanCard, _autoLabelDefinitions2);
79103
79621
  __decorateElement(_init107, 4, "movable", _movable_dec, _DeesKanbanCard, _movable);
79104
79622
  __decorateElement(_init107, 4, "moveDisabled", _moveDisabled_dec, _DeesKanbanCard, _moveDisabled);
79105
79623
  __decorateElement(_init107, 4, "pending", _pending_dec2, _DeesKanbanCard, _pending2);
@@ -79234,6 +79752,10 @@ __publicField(_DeesKanbanCard, "styles", [
79234
79752
  text-overflow: ellipsis;
79235
79753
  }
79236
79754
 
79755
+ .badge.auto {
79756
+ display: inline-flex;
79757
+ }
79758
+
79237
79759
  .assignee {
79238
79760
  display: flex;
79239
79761
  align-items: center;
@@ -79978,10 +80500,10 @@ var KanbanDragController = class {
79978
80500
  };
79979
80501
 
79980
80502
  // ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.ts
79981
- 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;
80503
+ 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;
79982
80504
  var collapsedCards = 3;
79983
80505
  _DeesKanbanColumn_decorators = [customElement("dees-kanban-column")];
79984
- 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) {
80506
+ 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) {
79985
80507
  constructor() {
79986
80508
  super(...arguments);
79987
80509
  __publicField(this, "t", dcLocalize(this));
@@ -79990,17 +80512,18 @@ var _DeesKanbanColumn = class _DeesKanbanColumn extends (_a107 = DeesElement, _c
79990
80512
  __privateAdd(this, _allTickets, __runInitializers(_init108, 16, this, [])), __runInitializers(_init108, 19, this);
79991
80513
  __privateAdd(this, _columns6, __runInitializers(_init108, 20, this, [])), __runInitializers(_init108, 23, this);
79992
80514
  __privateAdd(this, _projects3, __runInitializers(_init108, 24, this, [])), __runInitializers(_init108, 27, this);
79993
- __privateAdd(this, _showProjects, __runInitializers(_init108, 28, this, false)), __runInitializers(_init108, 31, this);
79994
- __privateAdd(this, _movable2, __runInitializers(_init108, 32, this, false)), __runInitializers(_init108, 35, this);
79995
- __privateAdd(this, _movesDisabled, __runInitializers(_init108, 36, this, false)), __runInitializers(_init108, 39, this);
79996
- __privateAdd(this, _canCreate, __runInitializers(_init108, 40, this, false)), __runInitializers(_init108, 43, this);
79997
- __privateAdd(this, _collapsed3, __runInitializers(_init108, 44, this, false)), __runInitializers(_init108, 47, this);
79998
- __privateAdd(this, _pendingTicketId, __runInitializers(_init108, 48, this, "")), __runInitializers(_init108, 51, this);
79999
- __privateAdd(this, _draggingTicketId, __runInitializers(_init108, 52, this, "")), __runInitializers(_init108, 55, this);
80000
- __privateAdd(this, _pointerManaged2, __runInitializers(_init108, 56, this, false)), __runInitializers(_init108, 59, this);
80001
- __privateAdd(this, _nativeDropBefore, __runInitializers(_init108, 60, this)), __runInitializers(_init108, 63, this);
80002
- __privateAdd(this, _nativeOver, __runInitializers(_init108, 64, this, false)), __runInitializers(_init108, 67, this);
80003
- __privateAdd(this, _motion, __runInitializers(_init108, 68, this)), __runInitializers(_init108, 71, this);
80515
+ __privateAdd(this, _autoLabelDefinitions3, __runInitializers(_init108, 28, this, [])), __runInitializers(_init108, 31, this);
80516
+ __privateAdd(this, _showProjects, __runInitializers(_init108, 32, this, false)), __runInitializers(_init108, 35, this);
80517
+ __privateAdd(this, _movable2, __runInitializers(_init108, 36, this, false)), __runInitializers(_init108, 39, this);
80518
+ __privateAdd(this, _movesDisabled, __runInitializers(_init108, 40, this, false)), __runInitializers(_init108, 43, this);
80519
+ __privateAdd(this, _canCreate, __runInitializers(_init108, 44, this, false)), __runInitializers(_init108, 47, this);
80520
+ __privateAdd(this, _collapsed3, __runInitializers(_init108, 48, this, false)), __runInitializers(_init108, 51, this);
80521
+ __privateAdd(this, _pendingTicketId, __runInitializers(_init108, 52, this, "")), __runInitializers(_init108, 55, this);
80522
+ __privateAdd(this, _draggingTicketId, __runInitializers(_init108, 56, this, "")), __runInitializers(_init108, 59, this);
80523
+ __privateAdd(this, _pointerManaged2, __runInitializers(_init108, 60, this, false)), __runInitializers(_init108, 63, this);
80524
+ __privateAdd(this, _nativeDropBefore, __runInitializers(_init108, 64, this)), __runInitializers(_init108, 67, this);
80525
+ __privateAdd(this, _nativeOver, __runInitializers(_init108, 68, this, false)), __runInitializers(_init108, 71, this);
80526
+ __privateAdd(this, _motion, __runInitializers(_init108, 72, this)), __runInitializers(_init108, 75, this);
80004
80527
  /** "Show all" unfolded the column and went away with it: focus moves to the header's toggle. */
80005
80528
  __publicField(this, "focusToggle", false);
80006
80529
  __publicField(this, "scrollEdges", new ScrollEdgeShadowController(this, () => this.cardScroller));
@@ -80103,6 +80626,7 @@ var _DeesKanbanColumn = class _DeesKanbanColumn extends (_a107 = DeesElement, _c
80103
80626
  ></div>` : b`<dees-kanban-card
80104
80627
  .ticket=${ticket}
80105
80628
  .columns=${this.columns}
80629
+ .autoLabelDefinitions=${this.autoLabelDefinitions}
80106
80630
  .projectName=${this.showProjects && ticket.project ? kanbanProjectName(this.projects, ticket.project) : ""}
80107
80631
  .epic=${this.allTickets.find(
80108
80632
  (item) => item.id === ticket.parentId && item.kind === "epic"
@@ -80159,6 +80683,7 @@ _tickets3 = new WeakMap();
80159
80683
  _allTickets = new WeakMap();
80160
80684
  _columns6 = new WeakMap();
80161
80685
  _projects3 = new WeakMap();
80686
+ _autoLabelDefinitions3 = new WeakMap();
80162
80687
  _showProjects = new WeakMap();
80163
80688
  _movable2 = new WeakMap();
80164
80689
  _movesDisabled = new WeakMap();
@@ -80175,6 +80700,7 @@ __decorateElement(_init108, 4, "tickets", _tickets_dec3, _DeesKanbanColumn, _tic
80175
80700
  __decorateElement(_init108, 4, "allTickets", _allTickets_dec, _DeesKanbanColumn, _allTickets);
80176
80701
  __decorateElement(_init108, 4, "columns", _columns_dec6, _DeesKanbanColumn, _columns6);
80177
80702
  __decorateElement(_init108, 4, "projects", _projects_dec3, _DeesKanbanColumn, _projects3);
80703
+ __decorateElement(_init108, 4, "autoLabelDefinitions", _autoLabelDefinitions_dec3, _DeesKanbanColumn, _autoLabelDefinitions3);
80178
80704
  __decorateElement(_init108, 4, "showProjects", _showProjects_dec, _DeesKanbanColumn, _showProjects);
80179
80705
  __decorateElement(_init108, 4, "movable", _movable_dec2, _DeesKanbanColumn, _movable2);
80180
80706
  __decorateElement(_init108, 4, "movesDisabled", _movesDisabled_dec, _DeesKanbanColumn, _movesDisabled);
@@ -80336,7 +80862,7 @@ __runInitializers(_init108, 1, _DeesKanbanColumn);
80336
80862
  var DeesKanbanColumn = _DeesKanbanColumn;
80337
80863
 
80338
80864
  // ts_web/elements/00group-kanban/dees-kanban/dees-kanban.ts
80339
- 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;
80865
+ 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;
80340
80866
  var interactionEvents = [
80341
80867
  "kanban-ticket-open",
80342
80868
  "kanban-ticket-move",
@@ -80346,6 +80872,8 @@ var interactionEvents = [
80346
80872
  "kanban-ticket-draft",
80347
80873
  "kanban-comment-draft",
80348
80874
  "kanban-comment-added",
80875
+ "kanban-question-added",
80876
+ "kanban-question-answered",
80349
80877
  "kanban-comments-refresh",
80350
80878
  "kanban-activity-refresh",
80351
80879
  "kanban-detail-back",
@@ -80355,7 +80883,7 @@ var interactionEvents = [
80355
80883
  "kanban-column-toggle"
80356
80884
  ];
80357
80885
  _DeesKanban_decorators = [customElement("dees-kanban")];
80358
- 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) {
80886
+ 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) {
80359
80887
  constructor() {
80360
80888
  super(...arguments);
80361
80889
  __publicField(this, "t", dcLocalize(this));
@@ -80367,16 +80895,17 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80367
80895
  __privateAdd(this, _loading11, __runInitializers(_init109, 28, this, false)), __runInitializers(_init109, 31, this);
80368
80896
  __privateAdd(this, _error7, __runInitializers(_init109, 32, this, "")), __runInitializers(_init109, 35, this);
80369
80897
  __privateAdd(this, _projects4, __runInitializers(_init109, 36, this, [])), __runInitializers(_init109, 39, this);
80370
- __privateAdd(this, _projectRequired, __runInitializers(_init109, 40, this, false)), __runInitializers(_init109, 43, this);
80371
- __privateAdd(this, _currentPersonId, __runInitializers(_init109, 44, this, "")), __runInitializers(_init109, 47, this);
80372
- __privateAdd(this, _filterValues2, __runInitializers(_init109, 48, this, {})), __runInitializers(_init109, 51, this);
80373
- __privateAdd(this, _revision, __runInitializers(_init109, 52, this)), __runInitializers(_init109, 55, this);
80374
- __privateAdd(this, _operationError, __runInitializers(_init109, 56, this, "")), __runInitializers(_init109, 59, this);
80375
- __privateAdd(this, _filtersOpen, __runInitializers(_init109, 60, this, false)), __runInitializers(_init109, 63, this);
80376
- __privateAdd(this, _filterAnnouncement, __runInitializers(_init109, 64, this, "")), __runInitializers(_init109, 67, this);
80377
- __privateAdd(this, _pendingTicketId2, __runInitializers(_init109, 68, this, "")), __runInitializers(_init109, 71, this);
80378
- __privateAdd(this, _openingTicket, __runInitializers(_init109, 72, this, false)), __runInitializers(_init109, 75, this);
80379
- __privateAdd(this, _columnsCollapsed, __runInitializers(_init109, 76, this, {})), __runInitializers(_init109, 79, this);
80898
+ __privateAdd(this, _autoLabelDefinitions4, __runInitializers(_init109, 40, this, [])), __runInitializers(_init109, 43, this);
80899
+ __privateAdd(this, _projectRequired, __runInitializers(_init109, 44, this, false)), __runInitializers(_init109, 47, this);
80900
+ __privateAdd(this, _currentPersonId, __runInitializers(_init109, 48, this, "")), __runInitializers(_init109, 51, this);
80901
+ __privateAdd(this, _filterValues2, __runInitializers(_init109, 52, this, {})), __runInitializers(_init109, 55, this);
80902
+ __privateAdd(this, _revision, __runInitializers(_init109, 56, this)), __runInitializers(_init109, 59, this);
80903
+ __privateAdd(this, _operationError, __runInitializers(_init109, 60, this, "")), __runInitializers(_init109, 63, this);
80904
+ __privateAdd(this, _filtersOpen, __runInitializers(_init109, 64, this, false)), __runInitializers(_init109, 67, this);
80905
+ __privateAdd(this, _filterAnnouncement, __runInitializers(_init109, 68, this, "")), __runInitializers(_init109, 71, this);
80906
+ __privateAdd(this, _pendingTicketId2, __runInitializers(_init109, 72, this, "")), __runInitializers(_init109, 75, this);
80907
+ __privateAdd(this, _openingTicket, __runInitializers(_init109, 76, this, false)), __runInitializers(_init109, 79, this);
80908
+ __privateAdd(this, _columnsCollapsed, __runInitializers(_init109, 80, this, {})), __runInitializers(_init109, 83, this);
80380
80909
  __publicField(this, "modal");
80381
80910
  __publicField(this, "modalOpening");
80382
80911
  __publicField(this, "detail");
@@ -80505,18 +81034,22 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80505
81034
  break;
80506
81035
  case "kanban-comment-added": {
80507
81036
  const { comment, submittedBody } = detail;
80508
- const comments = this.commentCache.get(comment.ticketId) ?? [];
80509
- this.commentCache.set(comment.ticketId, [
80510
- ...comments.filter((item) => item.id !== comment.id),
80511
- comment
80512
- ]);
80513
- if (JSON.stringify(this.commentDrafts.get(comment.ticketId) ?? []) === JSON.stringify(submittedBody))
80514
- this.commentDrafts.delete(comment.ticketId);
80515
- this.syncDetail();
80516
- if (comment.ticketId === this.selectedId) void this.refreshActivity(comment.ticketId, true);
81037
+ this.keepDiscussionItem(comment, submittedBody);
80517
81038
  kanbanEvent(this, "kanban-comment-saved", { comment });
80518
81039
  break;
80519
81040
  }
81041
+ case "kanban-question-added": {
81042
+ const { question, submittedBody } = detail;
81043
+ this.keepDiscussionItem(question, submittedBody);
81044
+ kanbanEvent(this, "kanban-question-asked", { question });
81045
+ break;
81046
+ }
81047
+ case "kanban-question-answered": {
81048
+ const { question, answer } = detail;
81049
+ this.keepDiscussionItem(question);
81050
+ kanbanEvent(this, "kanban-question-answer", { ...answer, question });
81051
+ break;
81052
+ }
80520
81053
  case "kanban-comments-refresh":
80521
81054
  void this.refreshComments(detail.ticketId);
80522
81055
  break;
@@ -80539,8 +81072,8 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80539
81072
  }
80540
81073
  willUpdate(changed3) {
80541
81074
  super.willUpdate(changed3);
80542
- const refusal = this.refusal;
80543
- if (refusal && changed3.has("tickets") && kanbanTicketVersion(this.findTicket(refusal.ticketId)) !== refusal.version)
81075
+ const refusal2 = this.refusal;
81076
+ if (refusal2 && changed3.has("tickets") && kanbanTicketVersion(this.findTicket(refusal2.ticketId)) !== refusal2.version)
80544
81077
  this.clearOperationError();
80545
81078
  }
80546
81079
  updated() {
@@ -80652,6 +81185,7 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80652
81185
  .tickets=${tasks.filter((ticket) => ticket.columnId === column.id)}
80653
81186
  .allTickets=${this.tickets}
80654
81187
  .projects=${projects}
81188
+ .autoLabelDefinitions=${this.autoLabelDefinitions}
80655
81189
  .showProjects=${!filters.project && projects.length > 0}
80656
81190
  .movable=${Boolean(this.provider.moveTicket)}
80657
81191
  .canCreate=${Boolean(this.provider.createTicket)}
@@ -80699,20 +81233,25 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80699
81233
  const query2 = (filters.text ?? "").trim().toLocaleLowerCase();
80700
81234
  const mine = filters.mine && this.currentPersonId;
80701
81235
  return this.tickets.filter(
80702
- (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 || [
81236
+ (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 || [
80703
81237
  ticket.key,
80704
81238
  ticket.title,
80705
81239
  ticket.project ? kanbanProjectName(this.projects, ticket.project) : "",
80706
81240
  ticket.assignee?.name,
80707
81241
  ...ticket.labels ?? [],
81242
+ ...(ticket.autoLabels ?? []).map((label) => this.autoLabelName(label)),
80708
81243
  ...this.tickets.filter((child) => child.parentId === ticket.id).map((child) => `${child.key} ${child.title}`)
80709
81244
  ].join(" ").toLocaleLowerCase().includes(query2))
80710
81245
  );
80711
81246
  }
81247
+ /** An AutoLabel's name, as its chip shows it. */
81248
+ autoLabelName(label) {
81249
+ return kanbanAutoLabel(this.t, this.autoLabelDefinitions, label).name;
81250
+ }
80712
81251
  /**
80713
81252
  * The filter bubble's fields, as the table's filters: a project, an epic (of that project), an
80714
- * assignee and a label, each with an "all" option, and "Assigned to me" while the board knows
80715
- * its reader. A field with nothing to choose from is left out; a value set in code that no
81253
+ * assignee, a label and an AutoLabel, each with an "all" option, and "Assigned to me" while the
81254
+ * 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
80716
81255
  * ticket has stays a choice.
80717
81256
  */
80718
81257
  filterFields() {
@@ -80743,6 +81282,10 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80743
81282
  ...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))
80744
81283
  ];
80745
81284
  const labels = [...new Set(this.tickets.flatMap((ticket) => ticket.labels ?? []))].sort((a, b2) => a.localeCompare(b2));
81285
+ const autoLabels = [.../* @__PURE__ */ new Set([
81286
+ ...this.autoLabelDefinitions.map((definition) => definition.label),
81287
+ ...this.tickets.flatMap((ticket) => ticket.autoLabels ?? [])
81288
+ ])].map((label) => ({ key: label, label: this.autoLabelName(label) })).sort((a, b2) => a.label.localeCompare(b2.label));
80746
81289
  const fields = [
80747
81290
  choices(
80748
81291
  "project",
@@ -80765,7 +81308,8 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80765
81308
  this.t("kanban.label"),
80766
81309
  this.t("kanban.allLabels"),
80767
81310
  labels.map((label) => ({ key: label, label }))
80768
- )
81311
+ ),
81312
+ choices("autoLabel", this.t("kanban.autoLabel"), this.t("kanban.allAutoLabels"), autoLabels)
80769
81313
  ].filter((field) => Boolean(field));
80770
81314
  if (this.currentPersonId)
80771
81315
  fields.push({
@@ -80925,6 +81469,7 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80925
81469
  this.detail.provider = this.provider;
80926
81470
  this.detail.searchTickets = this.searchTickets;
80927
81471
  this.detail.projects = this.projects;
81472
+ this.detail.autoLabelDefinitions = this.autoLabelDefinitions;
80928
81473
  this.detail.comments = this.commentCache.get(this.selectedId) ?? [];
80929
81474
  this.detail.activity = this.activityCache.get(this.selectedId) ?? [];
80930
81475
  this.detail.commentDraft = this.commentDrafts.get(this.selectedId) ?? [];
@@ -80934,7 +81479,7 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80934
81479
  this.detail.saving = this.pendingTicketId === this.selectedId;
80935
81480
  if (this.modal) this.modal.heading = this.detail.ticket.key;
80936
81481
  }
80937
- /** Replace a ticket's discussion with an authoritative snapshot (for realtime updates). */
81482
+ /** Replace a ticket's discussion, comments and questions, with an authoritative snapshot (for realtime updates). */
80938
81483
  setComments(ticketId, comments) {
80939
81484
  if (comments.some((comment) => comment.ticketId !== ticketId))
80940
81485
  throw new Error("Comment ticket IDs must match.");
@@ -80942,6 +81487,19 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80942
81487
  this.commentRevisions.set(ticketId, (this.commentRevisions.get(ticketId) ?? 0) + 1);
80943
81488
  this.syncDetail();
80944
81489
  }
81490
+ /**
81491
+ * Takes a comment or question the discussion saved into the ticket's discussion, over its earlier
81492
+ * state; the composer's kept text leaves once it is what was posted. The history loads again.
81493
+ */
81494
+ keepDiscussionItem(item, submittedBody) {
81495
+ const key = kanbanItemKey(item);
81496
+ const items = this.commentCache.get(item.ticketId) ?? [];
81497
+ this.commentCache.set(item.ticketId, [...items.filter((other) => kanbanItemKey(other) !== key), item]);
81498
+ if (submittedBody && JSON.stringify(this.commentDrafts.get(item.ticketId) ?? []) === JSON.stringify(submittedBody))
81499
+ this.commentDrafts.delete(item.ticketId);
81500
+ this.syncDetail();
81501
+ if (item.ticketId === this.selectedId) void this.refreshActivity(item.ticketId, true);
81502
+ }
80945
81503
  /** Loads a ticket's comments again; `quiet` keeps the shown ones without a loading line meanwhile. */
80946
81504
  async refreshComments(ticketId = this.selectedId, quiet = false) {
80947
81505
  this.commentsAbort?.abort();
@@ -80954,7 +81512,7 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80954
81512
  return;
80955
81513
  }
80956
81514
  const revision = this.commentRevisions.get(ticketId) ?? 0;
80957
- const existingIds = new Set((this.commentCache.get(ticketId) ?? []).map((comment) => comment.id));
81515
+ const before = new Map((this.commentCache.get(ticketId) ?? []).map((item) => [kanbanItemKey(item), item]));
80958
81516
  if (this.detail && ticketId === this.selectedId && !quiet) {
80959
81517
  this.detail.loadingComments = true;
80960
81518
  this.detail.commentsError = "";
@@ -80962,10 +81520,12 @@ var _DeesKanban = class _DeesKanban extends (_a108 = DeesElement, _heading_dec11
80962
81520
  try {
80963
81521
  const comments = await this.provider.loadComments(ticketId, controller.signal);
80964
81522
  if (!controller.signal.aborted && (this.commentRevisions.get(ticketId) ?? 0) === revision) {
80965
- const postedWhileLoading = (this.commentCache.get(ticketId) ?? []).filter(
80966
- (comment) => !existingIds.has(comment.id) && !comments.some((item) => item.id === comment.id)
80967
- );
80968
- this.setComments(ticketId, [...comments, ...postedWhileLoading]);
81523
+ const loaded = new Set(comments.map(kanbanItemKey));
81524
+ const savedWhileLoading = new Map((this.commentCache.get(ticketId) ?? []).filter((item) => before.get(kanbanItemKey(item)) !== item).map((item) => [kanbanItemKey(item), item]));
81525
+ this.setComments(ticketId, [
81526
+ ...comments.map((item) => before.has(kanbanItemKey(item)) ? savedWhileLoading.get(kanbanItemKey(item)) ?? item : item),
81527
+ ...[...savedWhileLoading.values()].filter((item) => !loaded.has(kanbanItemKey(item)))
81528
+ ]);
80969
81529
  if (this.detail && ticketId === this.selectedId) this.detail.commentsError = "";
80970
81530
  }
80971
81531
  } catch (error) {
@@ -81400,6 +81960,7 @@ _provider4 = new WeakMap();
81400
81960
  _loading11 = new WeakMap();
81401
81961
  _error7 = new WeakMap();
81402
81962
  _projects4 = new WeakMap();
81963
+ _autoLabelDefinitions4 = new WeakMap();
81403
81964
  _projectRequired = new WeakMap();
81404
81965
  _currentPersonId = new WeakMap();
81405
81966
  _filterValues2 = new WeakMap();
@@ -81418,6 +81979,7 @@ __decorateElement(_init109, 4, "provider", _provider_dec4, _DeesKanban, _provide
81418
81979
  __decorateElement(_init109, 4, "loading", _loading_dec11, _DeesKanban, _loading11);
81419
81980
  __decorateElement(_init109, 4, "error", _error_dec7, _DeesKanban, _error7);
81420
81981
  __decorateElement(_init109, 4, "projects", _projects_dec4, _DeesKanban, _projects4);
81982
+ __decorateElement(_init109, 4, "autoLabelDefinitions", _autoLabelDefinitions_dec4, _DeesKanban, _autoLabelDefinitions4);
81421
81983
  __decorateElement(_init109, 4, "projectRequired", _projectRequired_dec, _DeesKanban, _projectRequired);
81422
81984
  __decorateElement(_init109, 4, "currentPersonId", _currentPersonId_dec, _DeesKanban, _currentPersonId);
81423
81985
  __decorateElement(_init109, 4, "filterValues", _filterValues_dec2, _DeesKanban, _filterValues2);
@@ -86206,16 +86768,16 @@ var demoFunc79 = /* @__PURE__ */ __name(() => {
86206
86768
  }, "demoFunc");
86207
86769
 
86208
86770
  // ts_web/elements/00group-layout/dees-settings/dees-settings.ts
86209
- var _frameless_dec15, _actions_dec6, _settingsFields_dec, _description_dec5, _heading_dec12, _a117, _DeesSettings_decorators, _init119, _heading12, _description5, _settingsFields, _actions6, _frameless15;
86771
+ var _frameless_dec16, _actions_dec6, _settingsFields_dec, _description_dec5, _heading_dec12, _a117, _DeesSettings_decorators, _init119, _heading12, _description5, _settingsFields, _actions6, _frameless16;
86210
86772
  _DeesSettings_decorators = [customElement("dees-settings")];
86211
- 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) {
86773
+ 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) {
86212
86774
  constructor() {
86213
86775
  super(...arguments);
86214
86776
  __privateAdd(this, _heading12, __runInitializers(_init119, 8, this, "")), __runInitializers(_init119, 11, this);
86215
86777
  __privateAdd(this, _description5, __runInitializers(_init119, 12, this, "")), __runInitializers(_init119, 15, this);
86216
86778
  __privateAdd(this, _settingsFields, __runInitializers(_init119, 16, this, [])), __runInitializers(_init119, 19, this);
86217
86779
  __privateAdd(this, _actions6, __runInitializers(_init119, 20, this, [])), __runInitializers(_init119, 23, this);
86218
- __privateAdd(this, _frameless15, __runInitializers(_init119, 24, this, false)), __runInitializers(_init119, 27, this);
86780
+ __privateAdd(this, _frameless16, __runInitializers(_init119, 24, this, false)), __runInitializers(_init119, 27, this);
86219
86781
  }
86220
86782
  render() {
86221
86783
  const hasFields = this.settingsFields.length > 0;
@@ -86249,12 +86811,12 @@ _heading12 = new WeakMap();
86249
86811
  _description5 = new WeakMap();
86250
86812
  _settingsFields = new WeakMap();
86251
86813
  _actions6 = new WeakMap();
86252
- _frameless15 = new WeakMap();
86814
+ _frameless16 = new WeakMap();
86253
86815
  __decorateElement(_init119, 4, "heading", _heading_dec12, _DeesSettings, _heading12);
86254
86816
  __decorateElement(_init119, 4, "description", _description_dec5, _DeesSettings, _description5);
86255
86817
  __decorateElement(_init119, 4, "settingsFields", _settingsFields_dec, _DeesSettings, _settingsFields);
86256
86818
  __decorateElement(_init119, 4, "actions", _actions_dec6, _DeesSettings, _actions6);
86257
- __decorateElement(_init119, 4, "frameless", _frameless_dec15, _DeesSettings, _frameless15);
86819
+ __decorateElement(_init119, 4, "frameless", _frameless_dec16, _DeesSettings, _frameless16);
86258
86820
  _DeesSettings = __decorateElement(_init119, 0, "DeesSettings", _DeesSettings_decorators, _DeesSettings);
86259
86821
  __name(_DeesSettings, "DeesSettings");
86260
86822
  __publicField(_DeesSettings, "demo", demoFunc79);
@@ -89664,14 +90226,14 @@ var viewerStyles3 = i`
89664
90226
  var demo3 = /* @__PURE__ */ __name(() => mediaDemo("video"), "demo");
89665
90227
 
89666
90228
  // ts_web/elements/00group-media/dees-video-viewer/component.ts
89667
- 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;
90229
+ 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;
89668
90230
  _DeesVideoViewer_decorators = [customElement("dees-video-viewer")];
89669
- 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) {
90231
+ 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) {
89670
90232
  constructor() {
89671
90233
  super(...arguments);
89672
90234
  __publicField(this, "t", dcLocalize(this));
89673
90235
  __privateAdd(this, _src3, __runInitializers(_init127, 8, this, "")), __runInitializers(_init127, 11, this);
89674
- __privateAdd(this, _frameless16, __runInitializers(_init127, 12, this, false)), __runInitializers(_init127, 15, this);
90236
+ __privateAdd(this, _frameless17, __runInitializers(_init127, 12, this, false)), __runInitializers(_init127, 15, this);
89675
90237
  __privateAdd(this, _poster, __runInitializers(_init127, 16, this, "")), __runInitializers(_init127, 19, this);
89676
90238
  __privateAdd(this, _showControls, __runInitializers(_init127, 20, this, true)), __runInitializers(_init127, 23, this);
89677
90239
  __privateAdd(this, _autoplay2, __runInitializers(_init127, 24, this, false)), __runInitializers(_init127, 27, this);
@@ -89932,7 +90494,7 @@ var _DeesVideoViewer = class _DeesVideoViewer extends (_a124 = DeesElement, _src
89932
90494
  };
89933
90495
  _init127 = __decoratorStart(_a124);
89934
90496
  _src3 = new WeakMap();
89935
- _frameless16 = new WeakMap();
90497
+ _frameless17 = new WeakMap();
89936
90498
  _poster = new WeakMap();
89937
90499
  _showControls = new WeakMap();
89938
90500
  _autoplay2 = new WeakMap();
@@ -89948,7 +90510,7 @@ _isFullscreen = new WeakMap();
89948
90510
  _controlsVisible = new WeakMap();
89949
90511
  _playbackError2 = new WeakMap();
89950
90512
  __decorateElement(_init127, 4, "src", _src_dec3, _DeesVideoViewer, _src3);
89951
- __decorateElement(_init127, 4, "frameless", _frameless_dec16, _DeesVideoViewer, _frameless16);
90513
+ __decorateElement(_init127, 4, "frameless", _frameless_dec17, _DeesVideoViewer, _frameless17);
89952
90514
  __decorateElement(_init127, 4, "poster", _poster_dec, _DeesVideoViewer, _poster);
89953
90515
  __decorateElement(_init127, 4, "showControls", _showControls_dec, _DeesVideoViewer, _showControls);
89954
90516
  __decorateElement(_init127, 4, "autoplay", _autoplay_dec2, _DeesVideoViewer, _autoplay2);
@@ -112685,15 +113247,15 @@ var viewerInsetStyles = i`
112685
113247
  var demo4 = /* @__PURE__ */ __name(() => mediaDemo("pdf"), "demo");
112686
113248
 
112687
113249
  // ts_web/elements/00group-media/dees-pdf-viewer/component.ts
112688
- 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;
113250
+ 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;
112689
113251
  var pipelineSettlementGraceMs = 2500;
112690
113252
  _DeesPdfViewer_decorators = [customElement("dees-pdf-viewer")];
112691
- 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) {
113253
+ 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) {
112692
113254
  constructor() {
112693
113255
  super();
112694
113256
  __publicField(this, "t", dcLocalize(this));
112695
113257
  __privateAdd(this, _viewMode, __runInitializers(_init128, 8, this, "document")), __runInitializers(_init128, 11, this);
112696
- __privateAdd(this, _frameless17, __runInitializers(_init128, 12, this, false)), __runInitializers(_init128, 15, this);
113258
+ __privateAdd(this, _frameless18, __runInitializers(_init128, 12, this, false)), __runInitializers(_init128, 15, this);
112697
113259
  __privateAdd(this, _showFooter2, __runInitializers(_init128, 16, this, true)), __runInitializers(_init128, 19, this);
112698
113260
  __privateAdd(this, _filename3, __runInitializers(_init128, 20, this, "")), __runInitializers(_init128, 23, this);
112699
113261
  __privateAdd(this, _loadError4, __runInitializers(_init128, 24, this, "")), __runInitializers(_init128, 27, this);
@@ -114084,7 +114646,7 @@ var _DeesPdfViewer = class _DeesPdfViewer extends (_a125 = DeesElement, _viewMod
114084
114646
  };
114085
114647
  _init128 = __decoratorStart(_a125);
114086
114648
  _viewMode = new WeakMap();
114087
- _frameless17 = new WeakMap();
114649
+ _frameless18 = new WeakMap();
114088
114650
  _showFooter2 = new WeakMap();
114089
114651
  _filename3 = new WeakMap();
114090
114652
  _loadError4 = new WeakMap();
@@ -114103,7 +114665,7 @@ _thumbnailData = new WeakMap();
114103
114665
  _pageData = new WeakMap();
114104
114666
  _pdfFileSize = new WeakMap();
114105
114667
  __decorateElement(_init128, 4, "viewMode", _viewMode_dec, _DeesPdfViewer, _viewMode);
114106
- __decorateElement(_init128, 4, "frameless", _frameless_dec17, _DeesPdfViewer, _frameless17);
114668
+ __decorateElement(_init128, 4, "frameless", _frameless_dec18, _DeesPdfViewer, _frameless18);
114107
114669
  __decorateElement(_init128, 4, "showFooter", _showFooter_dec2, _DeesPdfViewer, _showFooter2);
114108
114670
  __decorateElement(_init128, 4, "filename", _filename_dec3, _DeesPdfViewer, _filename3);
114109
114671
  __decorateElement(_init128, 4, "loadError", _loadError_dec4, _DeesPdfViewer, _loadError4);
@@ -114133,7 +114695,7 @@ var DeesPdfViewer = _DeesPdfViewer;
114133
114695
  var demoFunc81 = /* @__PURE__ */ __name(() => mediaDemo("preview"), "demoFunc");
114134
114696
 
114135
114697
  // ts_web/elements/00group-media/dees-preview/dees-preview.ts
114136
- 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;
114698
+ 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;
114137
114699
  var EXTENSION_MAP = {
114138
114700
  // Image
114139
114701
  jpg: "image",
@@ -114246,7 +114808,7 @@ var TYPE_ICONS = {
114246
114808
  unknown: "lucide:File"
114247
114809
  };
114248
114810
  _DeesPreview_decorators = [customElement("dees-preview")];
114249
- 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) {
114811
+ 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) {
114250
114812
  constructor() {
114251
114813
  super(...arguments);
114252
114814
  __publicField(this, "t", dcLocalize(this));
@@ -114260,7 +114822,7 @@ var _DeesPreview = class _DeesPreview extends (_a126 = DeesElement, _url_dec = [
114260
114822
  __privateAdd(this, _filename4, __runInitializers(_init129, 36, this, "")), __runInitializers(_init129, 39, this);
114261
114823
  __privateAdd(this, _showToolbar5, __runInitializers(_init129, 40, this, true)), __runInitializers(_init129, 43, this);
114262
114824
  __privateAdd(this, _showFilename, __runInitializers(_init129, 44, this, true)), __runInitializers(_init129, 47, this);
114263
- __privateAdd(this, _frameless18, __runInitializers(_init129, 48, this, false)), __runInitializers(_init129, 51, this);
114825
+ __privateAdd(this, _frameless19, __runInitializers(_init129, 48, this, false)), __runInitializers(_init129, 51, this);
114264
114826
  __privateAdd(this, _resolvedType, __runInitializers(_init129, 52, this, "unknown")), __runInitializers(_init129, 55, this);
114265
114827
  __privateAdd(this, _resolvedSrc, __runInitializers(_init129, 56, this, "")), __runInitializers(_init129, 59, this);
114266
114828
  __privateAdd(this, _resolvedText, __runInitializers(_init129, 60, this, "")), __runInitializers(_init129, 63, this);
@@ -114493,7 +115055,7 @@ _mimeType = new WeakMap();
114493
115055
  _filename4 = new WeakMap();
114494
115056
  _showToolbar5 = new WeakMap();
114495
115057
  _showFilename = new WeakMap();
114496
- _frameless18 = new WeakMap();
115058
+ _frameless19 = new WeakMap();
114497
115059
  _resolvedType = new WeakMap();
114498
115060
  _resolvedSrc = new WeakMap();
114499
115061
  _resolvedText = new WeakMap();
@@ -114510,7 +115072,7 @@ __decorateElement(_init129, 4, "mimeType", _mimeType_dec, _DeesPreview, _mimeTyp
114510
115072
  __decorateElement(_init129, 4, "filename", _filename_dec4, _DeesPreview, _filename4);
114511
115073
  __decorateElement(_init129, 4, "showToolbar", _showToolbar_dec5, _DeesPreview, _showToolbar5);
114512
115074
  __decorateElement(_init129, 4, "showFilename", _showFilename_dec, _DeesPreview, _showFilename);
114513
- __decorateElement(_init129, 4, "frameless", _frameless_dec18, _DeesPreview, _frameless18);
115075
+ __decorateElement(_init129, 4, "frameless", _frameless_dec19, _DeesPreview, _frameless19);
114514
115076
  __decorateElement(_init129, 4, "resolvedType", _resolvedType_dec, _DeesPreview, _resolvedType);
114515
115077
  __decorateElement(_init129, 4, "resolvedSrc", _resolvedSrc_dec, _DeesPreview, _resolvedSrc);
114516
115078
  __decorateElement(_init129, 4, "resolvedText", _resolvedText_dec, _DeesPreview, _resolvedText);
@@ -117755,7 +118317,7 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a139 = DeesElement,
117755
118317
  this.terminalOpen = true;
117756
118318
  const request = ++this.terminalRequest;
117757
118319
  try {
117758
- const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-EJRHSZ5F.js");
118320
+ const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-ORLONA36.js");
117759
118321
  await this.updateComplete;
117760
118322
  if (!this.isConnected || request !== this.terminalRequest) return;
117761
118323
  const terminal = new DeesWorkspaceTerminal3();
@@ -118070,10 +118632,10 @@ var DeesDemoSimpleLogin = _DeesDemoSimpleLogin;
118070
118632
  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");
118071
118633
 
118072
118634
  // ts_web/elements/00group-simple/dees-simple-login/dees-simple-login.ts
118073
- 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;
118635
+ 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;
118074
118636
  var canonicalMethodOrder = ["passkey", "provider", "password"];
118075
118637
  _DeesSimpleLogin_decorators = [customElement("dees-simple-login")];
118076
- 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) {
118638
+ 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) {
118077
118639
  constructor() {
118078
118640
  super(...arguments);
118079
118641
  __publicField(this, "t", dcLocalize(this));
@@ -118086,7 +118648,7 @@ var _DeesSimpleLogin = class _DeesSimpleLogin extends (_a141 = DeesElement, _nam
118086
118648
  __privateAdd(this, _password, __runInitializers(_init149, 32, this, true)), __runInitializers(_init149, 35, this);
118087
118649
  __privateAdd(this, _methodOrder, __runInitializers(_init149, 36, this, ["passkey", "provider", "password"])), __runInitializers(_init149, 39, this);
118088
118650
  __privateAdd(this, _labels11, __runInitializers(_init149, 40, this, {})), __runInitializers(_init149, 43, this);
118089
- __privateAdd(this, _frameless19, __runInitializers(_init149, 44, this, false)), __runInitializers(_init149, 47, this);
118651
+ __privateAdd(this, _frameless20, __runInitializers(_init149, 44, this, false)), __runInitializers(_init149, 47, this);
118090
118652
  __privateAdd(this, _passkeyLoginHandler, __runInitializers(_init149, 48, this)), __runInitializers(_init149, 51, this);
118091
118653
  __privateAdd(this, _passkeyRegisterHandler, __runInitializers(_init149, 52, this)), __runInitializers(_init149, 55, this);
118092
118654
  __privateAdd(this, _providerLoginHandler, __runInitializers(_init149, 56, this)), __runInitializers(_init149, 59, this);
@@ -118686,7 +119248,7 @@ _providers = new WeakMap();
118686
119248
  _password = new WeakMap();
118687
119249
  _methodOrder = new WeakMap();
118688
119250
  _labels11 = new WeakMap();
118689
- _frameless19 = new WeakMap();
119251
+ _frameless20 = new WeakMap();
118690
119252
  _passkeyLoginHandler = new WeakMap();
118691
119253
  _passkeyRegisterHandler = new WeakMap();
118692
119254
  _providerLoginHandler = new WeakMap();
@@ -118703,7 +119265,7 @@ __decorateElement(_init149, 4, "providers", _providers_dec, _DeesSimpleLogin, _p
118703
119265
  __decorateElement(_init149, 4, "password", _password_dec, _DeesSimpleLogin, _password);
118704
119266
  __decorateElement(_init149, 4, "methodOrder", _methodOrder_dec, _DeesSimpleLogin, _methodOrder);
118705
119267
  __decorateElement(_init149, 4, "labels", _labels_dec11, _DeesSimpleLogin, _labels11);
118706
- __decorateElement(_init149, 4, "frameless", _frameless_dec19, _DeesSimpleLogin, _frameless19);
119268
+ __decorateElement(_init149, 4, "frameless", _frameless_dec20, _DeesSimpleLogin, _frameless20);
118707
119269
  __decorateElement(_init149, 4, "passkeyLoginHandler", _passkeyLoginHandler_dec, _DeesSimpleLogin, _passkeyLoginHandler);
118708
119270
  __decorateElement(_init149, 4, "passkeyRegisterHandler", _passkeyRegisterHandler_dec, _DeesSimpleLogin, _passkeyRegisterHandler);
118709
119271
  __decorateElement(_init149, 4, "providerLoginHandler", _providerLoginHandler_dec, _DeesSimpleLogin, _providerLoginHandler);
@@ -121374,15 +121936,15 @@ __runInitializers(_init153, 1, _DeesWorkspaceFiletree);
121374
121936
  var DeesWorkspaceFiletree = _DeesWorkspaceFiletree;
121375
121937
 
121376
121938
  // ts_web/elements/00group-workspace/dees-workspace-terminal-preview/dees-workspace-terminal-preview.ts
121377
- var _frameless_dec20, _lines_dec, _command_dec, _a146, _DeesWorkspaceTerminalPreview_decorators, _init154, _command, _lines, _frameless20;
121939
+ var _frameless_dec21, _lines_dec, _command_dec, _a146, _DeesWorkspaceTerminalPreview_decorators, _init154, _command, _lines, _frameless21;
121378
121940
  _DeesWorkspaceTerminalPreview_decorators = [customElement("dees-workspace-terminal-preview")];
121379
- 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) {
121941
+ 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) {
121380
121942
  constructor() {
121381
121943
  super();
121382
121944
  __publicField(this, "t", dcLocalize(this));
121383
121945
  __privateAdd(this, _command, __runInitializers(_init154, 8, this, "")), __runInitializers(_init154, 11, this);
121384
121946
  __privateAdd(this, _lines, __runInitializers(_init154, 12, this, [])), __runInitializers(_init154, 15, this);
121385
- __privateAdd(this, _frameless20, __runInitializers(_init154, 16, this, false)), __runInitializers(_init154, 19, this);
121947
+ __privateAdd(this, _frameless21, __runInitializers(_init154, 16, this, false)), __runInitializers(_init154, 19, this);
121386
121948
  /** The lines the surface of this connection holds, in the order it got them. */
121387
121949
  __publicField(this, "painted", []);
121388
121950
  this.registerStartupFunction(async (signalArg) => {
@@ -121464,10 +122026,10 @@ var _DeesWorkspaceTerminalPreview = class _DeesWorkspaceTerminalPreview extends
121464
122026
  _init154 = __decoratorStart(_a146);
121465
122027
  _command = new WeakMap();
121466
122028
  _lines = new WeakMap();
121467
- _frameless20 = new WeakMap();
122029
+ _frameless21 = new WeakMap();
121468
122030
  __decorateElement(_init154, 4, "command", _command_dec, _DeesWorkspaceTerminalPreview, _command);
121469
122031
  __decorateElement(_init154, 4, "lines", _lines_dec, _DeesWorkspaceTerminalPreview, _lines);
121470
- __decorateElement(_init154, 4, "frameless", _frameless_dec20, _DeesWorkspaceTerminalPreview, _frameless20);
122032
+ __decorateElement(_init154, 4, "frameless", _frameless_dec21, _DeesWorkspaceTerminalPreview, _frameless21);
121471
122033
  _DeesWorkspaceTerminalPreview = __decorateElement(_init154, 0, "DeesWorkspaceTerminalPreview", _DeesWorkspaceTerminalPreview_decorators, _DeesWorkspaceTerminalPreview);
121472
122034
  __name(_DeesWorkspaceTerminalPreview, "DeesWorkspaceTerminalPreview");
121473
122035
  __publicField(_DeesWorkspaceTerminalPreview, "demo", /* @__PURE__ */ __name(() => b`
@@ -124759,7 +125321,7 @@ var bright = {
124759
125321
  // ts_web/00_commitinfo_data.ts
124760
125322
  var commitinfo = {
124761
125323
  name: "@design.estate/dees-catalog",
124762
- version: "21.46.1",
125324
+ version: "21.48.0",
124763
125325
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
124764
125326
  };
124765
125327
  export {
@@ -125018,6 +125580,7 @@ export {
125018
125580
  hintTypeIcons,
125019
125581
  insetInlineStyles,
125020
125582
  isInViewport,
125583
+ kanbanOpenQuestionLabel,
125021
125584
  listProjectSourceFiles,
125022
125585
  makeStreamingSimulator,
125023
125586
  markdownStyles,