@design.estate/dees-catalog 21.29.0 → 21.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist_bundle/bundle.js +2616 -1301
  2. package/dist_bundle/bundle.js.map +1 -1
  3. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-CJVVAKHG.js → chunk-NKLF624Z.js} +2 -2
  4. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-QFJ7LA5L.js → chunk-Q2W326R5.js} +3 -3
  5. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-YBZRR5YD.js → chunk-W57NRRM4.js} +41 -2
  6. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-YBZRR5YD.js.map → chunk-W57NRRM4.js.map} +1 -1
  7. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-ZU5CNY4P.js → de-J7BORZFB.js} +41 -2
  8. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-J7BORZFB.js.map +1 -0
  9. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-NVJRWZKO.js → dees-modal-UURRHHYX.js} +3 -3
  10. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-BSBYG5IX.js → dees-workspace-terminal-ZBGBOINI.js} +4 -4
  11. package/dist_ts_web/00_commitinfo_data.js +1 -1
  12. package/dist_ts_web/elements/00group-dataview/dees-table/filters.d.ts +2 -0
  13. package/dist_ts_web/elements/00group-dataview/dees-table/filters.js +11 -13
  14. package/dist_ts_web/elements/00group-dataview/dees-table/styles.d.ts +6 -0
  15. package/dist_ts_web/elements/00group-dataview/dees-table/styles.js +33 -23
  16. package/dist_ts_web/elements/00group-form/dees-form/dees-form.d.ts +8 -1
  17. package/dist_ts_web/elements/00group-form/dees-form/dees-form.js +10 -2
  18. package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.d.ts +17 -0
  19. package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.js +8 -1
  20. package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.js +36 -6
  21. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.d.ts +80 -6
  22. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.demo.d.ts +1 -0
  23. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.demo.js +38 -9
  24. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.js +502 -73
  25. package/dist_ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.d.ts +40 -0
  26. package/dist_ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.js +373 -0
  27. package/dist_ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.d.ts +2 -0
  28. package/dist_ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.js +35 -2
  29. package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.d.ts +5 -1
  30. package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.js +24 -3
  31. package/dist_ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.d.ts +2 -0
  32. package/dist_ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.js +31 -70
  33. package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.d.ts +26 -3
  34. package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.js +475 -21
  35. package/dist_ts_web/elements/00group-kanban/index.d.ts +1 -0
  36. package/dist_ts_web/elements/00group-kanban/index.js +2 -1
  37. package/dist_ts_web/elements/00group-kanban/interfaces.d.ts +114 -0
  38. package/dist_ts_web/elements/00group-kanban/kanban.demodata.d.ts +9 -3
  39. package/dist_ts_web/elements/00group-kanban/kanban.demodata.js +210 -17
  40. package/dist_ts_web/elements/00group-kanban/kanban.helpers.d.ts +23 -1
  41. package/dist_ts_web/elements/00group-kanban/kanban.helpers.js +57 -1
  42. package/dist_ts_web/elements/00group-kanban/kanban.styles.d.ts +2 -0
  43. package/dist_ts_web/elements/00group-kanban/kanban.styles.js +54 -1
  44. package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.d.ts +4 -3
  45. package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.js +8 -4
  46. package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.js +7 -6
  47. package/dist_ts_web/i18n/de.d.ts +156 -0
  48. package/dist_ts_web/i18n/de.js +40 -1
  49. package/dist_ts_web/i18n/messages.d.ts +156 -0
  50. package/dist_ts_web/i18n/messages.js +40 -1
  51. package/package.json +1 -1
  52. package/readme.md +76 -13
  53. package/scripts/reflect-allowlist.json +2 -1
  54. package/ts_web/00_commitinfo_data.ts +1 -1
  55. package/ts_web/elements/00group-dataview/dees-table/filters.ts +14 -12
  56. package/ts_web/elements/00group-dataview/dees-table/styles.ts +33 -22
  57. package/ts_web/elements/00group-form/dees-form/dees-form.ts +10 -2
  58. package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.ts +10 -0
  59. package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.ts +31 -1
  60. package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.demo.ts +43 -8
  61. package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.ts +521 -60
  62. package/ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.ts +328 -0
  63. package/ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.ts +28 -0
  64. package/ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.ts +13 -2
  65. package/ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.ts +25 -68
  66. package/ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.ts +476 -17
  67. package/ts_web/elements/00group-kanban/index.ts +1 -0
  68. package/ts_web/elements/00group-kanban/interfaces.ts +98 -0
  69. package/ts_web/elements/00group-kanban/kanban.demodata.ts +231 -17
  70. package/ts_web/elements/00group-kanban/kanban.helpers.ts +79 -1
  71. package/ts_web/elements/00group-kanban/kanban.styles.ts +54 -0
  72. package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.ts +7 -3
  73. package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.ts +5 -4
  74. package/ts_web/i18n/de.ts +39 -0
  75. package/ts_web/i18n/messages.ts +39 -0
  76. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-ZU5CNY4P.js.map +0 -1
  77. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-CJVVAKHG.js.map → chunk-NKLF624Z.js.map} +0 -0
  78. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-QFJ7LA5L.js.map → chunk-Q2W326R5.js.map} +0 -0
  79. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-NVJRWZKO.js.map → dees-modal-UURRHHYX.js.map} +0 -0
  80. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-BSBYG5IX.js.map → dees-workspace-terminal-ZBGBOINI.js.map} +0 -0
package/readme.md CHANGED
@@ -37,7 +37,7 @@ switcher**, **view-toggle**, and **single-selection toggle** all lead to
37
37
  | Collect and submit form values | [`dees-form`](#deesform), [`dees-form-submit`](#deesformsubmit) | Give each input a stable `key`; use the form's collection and validation flow. |
38
38
  | Choose, photograph or drop files, and show each file's upload | [`dees-input-fileupload`](#deesinputfileupload), [`dees-dropzone-overlay`](#deesdropzoneoverlay) | The field selects files (`capture` opens a phone camera) and shows the upload state the host reports with `setFileState()`; the overlay receives files dropped anywhere in the window. |
39
39
  | Edit multiline plain text | [`dees-input-textarea`](#deesinputtextarea) | Notes and descriptions as strings, with validation and form reset; no rich-text editor. |
40
- | Track epics, tasks and subtasks across workflow columns | [`dees-kanban`](#deeskanban) | Board, ordering, ticket detail, discussion and stable ticket references. |
40
+ | Track epics, tasks and subtasks across workflow columns | [`dees-kanban`](#deeskanban) | Board, ordering, projects, filters, ticket detail with links, source and history, discussion, live refresh and stable ticket references. |
41
41
  | Compose comments with searchable inline references | [`dees-input-reference`](#deesinputreference) | Typing `#_` opens a searchable picker at the caret; the value contains text and stable reference IDs. |
42
42
  | Search, filter, sort, edit and act on records | [`dees-table`](#deestable) | Use its columns, selection and data actions before building a table toolbar or row-action layer. |
43
43
  | Offer an action about what a tile shows: open its details, export it, add to it | [`dees-tile`](#deestile) `actions` | Footer or header actions, drawn and held while they run exactly like a table's header and footer actions. Never a footer bar of buttons built by hand; actions on a table's rows or on the table itself are the table's own. See [Where actions go](#where-actions-go). |
@@ -426,6 +426,7 @@ task guide and examples deliberately; the generated table does not replace them.
426
426
  | `dees-input-typelist` | input | [DeesInputTypelist](#deesinputtypelist) | [Source](ts_web/elements/00group-input/dees-input-typelist/dees-input-typelist.ts) |
427
427
  | `dees-input-wysiwyg` | input | [DeesInputWysiwyg](#deesinputwysiwyg) | [Source](ts_web/elements/00group-input/dees-input-wysiwyg/dees-input-wysiwyg.ts) |
428
428
  | `dees-kanban` | kanban | [DeesKanban](#deeskanban) | [Source](ts_web/elements/00group-kanban/dees-kanban/dees-kanban.ts) |
429
+ | `dees-kanban-activity` | kanban | [DeesKanbanActivity](#deeskanbanactivity) | [Source](ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.ts) |
429
430
  | `dees-kanban-card` | kanban | [DeesKanbanCard](#deeskanbancard) | [Source](ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.ts) |
430
431
  | `dees-kanban-column` | kanban | [DeesKanbanColumn](#deeskanbancolumn) | [Source](ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.ts) |
431
432
  | `dees-kanban-discussion` | kanban | [DeesKanbanDiscussion](#deeskanbandiscussion) | [Source](ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.ts) |
@@ -1506,6 +1507,9 @@ from `formData` when a `dees-form-submit` is activated. `changeSubject` publishe
1506
1507
  updated form data as fields change. Required values and fields implementing
1507
1508
  `checkValidity()` control the submit button. Invalid fields implementing
1508
1509
  `reportValidity()` receive a validation/focus request on attempted submission.
1510
+ `await form.gatherAndDispatch()` submits through the form: it resolves to `true` once
1511
+ `formData` went out and to `false` when a field refused, after that field reported why
1512
+ and took the focus, so a host that submits through the form can stop where it did.
1509
1513
  Fields notify the form with a bubbling `validation-change` event when their
1510
1514
  validity changes; this does not publish a successful value change. Disabled fields
1511
1515
  do not block submission. `reset()` calls each field's reset method when available
@@ -1885,6 +1889,8 @@ Radio-style single-choice form input, including required validation and optional
1885
1889
 
1886
1890
  The options sit in one `radiogroup` named by the label (with `aria-required`, `aria-disabled` and `aria-invalid`), and the group is one tab stop: Tab reaches the chosen option, or the first while nothing is chosen. The arrow keys move the choice with the focus and wrap; Space chooses the focused option. Enter belongs to the form, as in a native radio group: it moves to the next field, or submits from the last.
1887
1891
 
1892
+ Where a heading or a step title already asks the question, leave the label out and name the group with `aria-label` (the `ariaLabel` property). The name moves from the host, which has no role, to the `radiogroup`, and it takes precedence over `label`; set `ariaLabel` to `null` to name the group by its label again. A group with neither carries no name.
1893
+
1888
1894
  ```typescript
1889
1895
  <dees-input-radiogroup
1890
1896
  key="plan"
@@ -1916,6 +1922,13 @@ The options sit in one `radiogroup` named by the label (with `aria-required`, `a
1916
1922
  { key: 'text', option: 'Read them from a text', description: 'Paste a signature; a language model picks out the details.' }
1917
1923
  ]}
1918
1924
  ></dees-input-radiogroup>
1925
+
1926
+ // Named by the question a step title already asks
1927
+ <dees-input-radiogroup
1928
+ key="source"
1929
+ aria-label="How do you want to add the contact?"
1930
+ .options=${sourceOptions}
1931
+ ></dees-input-radiogroup>
1919
1932
  ```
1920
1933
 
1921
1934
  #### `DeesInputTags`
@@ -4584,8 +4597,9 @@ modal with `DeesStepper.createAndShow({ steps, cancelable: true })`.
4584
4597
  step whose actions are all `primary: false` has none, so a lookup's own Cancel is
4585
4598
  an ordinary button that stays usable while the lookup runs and after it failed.
4586
4599
  A nested `dees-form` gates the primary on its required fields and dispatches
4587
- collected `formData` before the action runs; a running or failed progress step
4588
- holds it too. While required fields are empty, "Complete required fields" shows
4600
+ collected `formData` before the action runs; a field the form refuses (its
4601
+ `checkValidity()` fails) holds the action: the field says why and takes the focus,
4602
+ and the step stays. A running or failed progress step holds the primary too. While required fields are empty, "Complete required fields" shows
4589
4603
  in the footer right before the primary; it fades without changing the footer's size.
4590
4604
  - **A stable footer.** Back (when the step allows it) holds the footer's inline start;
4591
4605
  the hint and the actions sit at its inline end, the primary last. The hint is always
@@ -4687,7 +4701,8 @@ The catalog demo combines setup fields, preferences, a review, background work,
4687
4701
  and completion. **Retry example** fails the first background attempt and preserves
4688
4702
  the choices for recovery, **Lookup** a flow of unknown length (`'position'`),
4689
4703
  **Choice first** a flow whose later steps follow the first step's answer (three
4690
- described choices in a `dees-input-radiogroup`; its `beforeClose` asks first only once
4704
+ described choices in a `dees-input-radiogroup` named by the step's question; a text
4705
+ that names no way to reach the contact stays on its step; its `beforeClose` asks first only once
4691
4706
  something was read), and **Long flow** a ribbon that
4692
4707
  scrolls. **Narrow** shows the strip, **Centred** the centred card. It also shows
4693
4708
  optional and required-completion overlays.
@@ -5066,8 +5081,9 @@ IDE-style bottom status bar for the workspace.
5066
5081
  #### DeesKanban
5067
5082
 
5068
5083
  `dees-kanban` assembles the Kanban family: configurable workflow columns, task
5069
- cards, epic filtering, search, expandable subtask progress, and ticket detail in
5070
- `dees-modal`. The **Kanban** catalog demo includes a working in-memory provider.
5084
+ cards, projects, filters, search, expandable subtask progress, and ticket detail in
5085
+ `dees-modal`. The **Kanban** catalog demo includes a working in-memory provider and
5086
+ a teammate button that changes the board through `refresh()`.
5071
5087
 
5072
5088
  ```typescript
5073
5089
  import '@design.estate/dees-catalog';
@@ -5099,10 +5115,12 @@ must enforce the same permissions.
5099
5115
  | `getTicket` | `(id, signal)` | Full `IKanbanTicket`, including tickets outside the current board |
5100
5116
  | `searchTickets` | `(query, signal)` | Tickets matching key or title; omitted uses the supplied board tickets |
5101
5117
  | `loadComments` | `(ticketId, signal)` | `IKanbanComment[]` for that ticket |
5118
+ | `loadActivity` | `(ticketId, signal)` | `IKanbanActivity[]`, oldest first; omitted shows no history |
5119
+ | `loadBoard` | `(signal)` | `IKanbanBoardSnapshot` (`tickets`, optional `columns` and `revision`) for `refresh()` |
5102
5120
  | `addComment` | `{ ticketId, body }` | Saved `IKanbanComment` with stable ID, author and ISO timestamp |
5103
5121
  | `updateTicket` | `{ ticketId, changes }` | Saved `IKanbanTicket`; nullable assignee/parent clears that field |
5104
5122
  | `moveTicket` | `{ ticketId, columnId, beforeTicketId? }` | All `IKanbanTicket` records whose order/column changed |
5105
- | `createTicket` | `{ kind, title, columnId, parentId? }` | Created `IKanbanTicket` |
5123
+ | `createTicket` | `{ kind, title, columnId, parentId?, project? }` | Created `IKanbanTicket` |
5106
5124
 
5107
5125
  Provider reads receive an `AbortSignal`; obsolete reads cannot overwrite a newer
5108
5126
  selection. Reject mutations with an `Error` to show the failure and preserve the
@@ -5117,6 +5135,29 @@ containers, and reduced motion removes lift, rearrangement and landing animation
5117
5135
  Touch retains normal scrolling. The keyboard-accessible Move menu supports both
5118
5136
  within-column ordering and column selection.
5119
5137
 
5138
+ Projects group tickets across one shared board. A ticket's `project` is an
5139
+ `IKanbanProject` id; supply `.projects` for their names. Cards show their
5140
+ project unless the board is filtered to one. A new task takes the filtered
5141
+ project, else its epic's. The detail edits the project and the labels and sends
5142
+ them in `updateTicket` changes.
5143
+
5144
+ The filters follow the catalog's filter standard, as `dees-table` does: the
5145
+ search field's filter button counts the active filters and opens Project, Epic,
5146
+ Assignee, Label and "Assigned to me" in a speech bubble with Clear filters in its
5147
+ action footer, and the active-filter bar below the header shows each filter and
5148
+ the search as a removable chip with Clear all. `.filterValues` (`IKanbanFilterValues`: `text`, `project`, `epic`,
5149
+ `assignee` with `'none'` for unassigned, `label`, `mine`) starts the board
5150
+ filtered; the reader's changes emit `kanban-filter-change`. "Assigned to me"
5151
+ appears when `.currentPersonId` is set. `clearFilters()` clears them.
5152
+
5153
+ A ticket's `links` (`TKanbanLink`) name where its work lives: a branch with
5154
+ an optional sha, a commit, a release with its version, or any page. A link with
5155
+ a `url` opens it in a new tab. `source` (`IKanbanSource`) keeps the words the
5156
+ ticket was written from, with their author, time and attachments. `createdAt`,
5157
+ `updatedAt`, `createdBy` and `updatedBy` show as sentences below the fields.
5158
+ With `loadActivity`, the detail switches between the discussion and the history
5159
+ of changes; comments stay in the discussion.
5160
+
5120
5161
  Hierarchy is independent of workflow: tasks optionally belong to epics, and
5121
5162
  subtasks belong to tasks. Each ticket has its own `columnId`; moving a parent
5122
5163
  does not move its children. Column array order controls board order, and `done`
@@ -5132,33 +5173,45 @@ Public methods and events:
5132
5173
  - `moveTicket(input)` invokes the same permission-aware move path as the UI.
5133
5174
  - `refreshComments(ticketId?)` reloads discussion; `setComments(ticketId, comments)`
5134
5175
  accepts authoritative realtime snapshots without introducing transport coupling.
5176
+ `refreshActivity(ticketId?)` reloads the history.
5177
+ - `refresh()` is the live update: it loads the board through `loadBoard` and
5178
+ shows it in place. The open ticket keeps its unsaved changes and comment
5179
+ draft, its comments and history reload quietly, and the filters and scroll
5180
+ position stay. Calls made during a load share it and one more load follows;
5181
+ a snapshot older than `.revision`, or loaded while the board saved its own
5182
+ change, is dropped. Call it from the host's push channel.
5135
5183
  - `kanban-change`: `detail.tickets` contains saved/created/moved records to merge
5136
5184
  into the host's state.
5137
5185
  - `kanban-ticket-opened`: `detail.ticketId` identifies the selected ticket.
5138
5186
  - `kanban-comment-saved`: `detail.comment` contains the saved comment.
5139
5187
  - `kanban-error`: `detail.error` and `detail.message` report failed operations.
5188
+ - `kanban-filter-change`: `detail.filterValues` holds the reader's filters.
5140
5189
 
5141
5190
  #### DeesKanbanColumn
5142
5191
 
5143
5192
  `dees-kanban-column` accepts `.column`, `.tickets`, `.allTickets`, `.columns`,
5144
- `.movable`, `.canCreate`, `.pendingTicketId` and `.draggingTicketId`. It composes
5193
+ `.movable`, `.canCreate`, `.pendingTicketId`, `.draggingTicketId`, `.projects`
5194
+ and `.showProjects`. It composes
5145
5195
  cards and forwards their open, create and Move menu requests. Standalone columns
5146
5196
  retain native dragging and emit `kanban-ticket-move` with the insertion target.
5147
5197
  Use it through `dees-kanban` for provider handling and board-local drag ownership.
5148
5198
 
5149
5199
  #### DeesKanbanCard
5150
5200
 
5151
- `dees-kanban-card` accepts `.ticket`, `.epic`, `.subtasks`, `.columns`, `.movable`
5152
- and `.pending`. It displays priority, assignee, labels and completion counts.
5201
+ `dees-kanban-card` accepts `.ticket`, `.epic`, `.subtasks`, `.columns`, `.movable`,
5202
+ `.pending` and `.projectName`. It displays priority, assignee, labels, its project
5203
+ and completion counts.
5153
5204
  `kanban-ticket-open` identifies a requested ticket, and `kanban-move-menu` carries
5154
5205
  the ticket ID and anchor element. Secondary cards remain usable independently.
5155
5206
 
5156
5207
  #### DeesKanbanTicketDetail
5157
5208
 
5158
5209
  `dees-kanban-ticket-detail` is the reusable detail content, composed into the
5159
- board's modal. It displays the parent, child tickets, description, fields and
5160
- discussion. It accepts `.ticket`, `.tickets`, `.columns`, `.people`, `.provider`,
5161
- `.draft`, `.comments` and `.commentDraft`. It emits `kanban-ticket-save` and
5210
+ board's modal. It displays the parent, child tickets, description, links, source,
5211
+ fields, created and updated stamps, and the discussion beside the history. It
5212
+ accepts `.ticket`, `.tickets`, `.columns`, `.people`, `.projects`, `.provider`,
5213
+ `.draft`, `.comments`, `.commentDraft`, `.activity`, `.loadingActivity` and
5214
+ `.activityError`. It emits `kanban-ticket-save` and
5162
5215
  `kanban-ticket-draft` intents; `dees-kanban` owns persistence, navigation and draft
5163
5216
  caching. `finishEditing()` returns to the saved view after a successful update.
5164
5217
  The ticket key is visible by default. Set `.showTicketKey = false` only when the
@@ -5173,6 +5226,16 @@ leave the draft intact. Ctrl/⌘ Enter submits; Enter inserts a newline.
5173
5226
  Standalone consumers handle `kanban-comment-draft` (`ticketId`, `body`),
5174
5227
  `kanban-comment-added` (`comment`, `submittedBody`), `kanban-ticket-open` and
5175
5228
  `kanban-comments-refresh`. The assembled board handles these events itself.
5229
+ Set `.showHeader = false` where the host's own header names the discussion.
5230
+
5231
+ #### DeesKanbanActivity
5232
+
5233
+ `dees-kanban-activity` renders a ticket's history, oldest first: who changed what,
5234
+ marked by the kind of change, with the fields each change touched in words.
5235
+ Provide `.ticketId`, `.activity` (`IKanbanActivity[]`), `.columns`, `.tickets`,
5236
+ `.projects`, `.loading` and `.error`. An entry's `summary` replaces the board's
5237
+ sentence. Its refresh button emits `kanban-activity-refresh` (`ticketId`); set
5238
+ `.showHeader = false` where the host's own header names the history.
5176
5239
 
5177
5240
  #### DeesInputReference
5178
5241
 
@@ -66,7 +66,8 @@
66
66
  "value": "user-data: the chosen quantity"
67
67
  },
68
68
  "ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.ts": {
69
- "selectedOption": "user-data: the chosen option, the field value"
69
+ "selectedOption": "user-data: the chosen option, the field value",
70
+ "ariaLabel": "global-attribute: aria-label on the host would name an element without a role; the inner radiogroup carries it"
70
71
  },
71
72
  "ts_web/elements/00group-input/dees-input-textarea/dees-input-textarea.ts": {
72
73
  "value": "user-data: the typed text"
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '21.29.0',
6
+ version: '21.30.1',
7
7
  description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
8
8
  }
@@ -119,32 +119,34 @@ export const tableFilterPanelStyles: CSSResult = css`
119
119
  `;
120
120
 
121
121
  /** Renders one filter as its field; a choice applies as it is made. */
122
- const renderFilterField = (tableArg: DeesTable<any>, filterArg: ITableFilter): TemplateResult => {
123
- const value = filterValueOf(filterArg, tableArg.filterValues);
124
- const set = (next: TTableFilterValue) => tableArg.setFilterValue(filterArg.key, next);
122
+ export const renderFilterField = (
123
+ filterArg: ITableFilter,
124
+ valueArg: TTableFilterValue,
125
+ setArg: (valueArg: TTableFilterValue) => void,
126
+ ): TemplateResult => {
125
127
  switch (filterArg.type) {
126
128
  case 'select': {
127
129
  const options = (filterArg.options ?? []).map((option) => ({ key: option.key, option: option.label }));
128
130
  return html`<dees-input-dropdown class="filterField" data-filter-key=${filterArg.key}
129
131
  .label=${filterArg.label} .options=${options} .enableSearch=${options.length > 8}
130
- .selectedOption=${options.find((option) => option.key === value) ?? null}
131
- @change=${(event: CustomEvent<{ value: { key: string } | null }>) => set(event.detail.value?.key ?? null)}
132
+ .selectedOption=${options.find((option) => option.key === valueArg) ?? null}
133
+ @change=${(event: CustomEvent<{ value: { key: string } | null }>) => setArg(event.detail.value?.key ?? null)}
132
134
  ></dees-input-dropdown>`;
133
135
  }
134
136
  case 'toggle':
135
137
  return html`<dees-input-checkbox class="filterField" data-filter-key=${filterArg.key}
136
- .label=${filterArg.label} .value=${value === true}
137
- @change=${(event: CustomEvent<{ value: boolean }>) => set(event.detail.value)}
138
+ .label=${filterArg.label} .value=${valueArg === true}
139
+ @change=${(event: CustomEvent<{ value: boolean }>) => setArg(event.detail.value)}
138
140
  ></dees-input-checkbox>`;
139
141
  case 'date':
140
142
  return html`<dees-input-datepicker class="filterField" data-filter-key=${filterArg.key}
141
- .label=${filterArg.label} .value=${typeof value === 'string' ? value : ''}
142
- @change=${(event: CustomEvent<{ value: string }>) => set(event.detail.value || null)}
143
+ .label=${filterArg.label} .value=${typeof valueArg === 'string' ? valueArg : ''}
144
+ @change=${(event: CustomEvent<{ value: string }>) => setArg(event.detail.value || null)}
143
145
  ></dees-input-datepicker>`;
144
146
  default:
145
147
  return html`<dees-input-text class="filterField" data-filter-key=${filterArg.key}
146
- .label=${filterArg.label} .value=${typeof value === 'string' ? value : ''}
147
- @input=${(event: Event) => set((event.currentTarget as HTMLElement & { value: string }).value)}
148
+ .label=${filterArg.label} .value=${typeof valueArg === 'string' ? valueArg : ''}
149
+ @input=${(event: Event) => setArg((event.currentTarget as HTMLElement & { value: string }).value)}
148
150
  ></dees-input-text>`;
149
151
  }
150
152
  };
@@ -158,7 +160,7 @@ export const renderTableFilterPanel = (tableArg: DeesTable<any>, t: TDcLocalizer
158
160
  const filterable = tableArg.hasFilterableColumns;
159
161
  return html`<div class="filterPanel">
160
162
  ${tableArg.filters.length
161
- ? html`<div class="filterPanelSection">${tableArg.filters.map((filter) => renderFilterField(tableArg, filter))}</div>`
163
+ ? html`<div class="filterPanelSection">${tableArg.filters.map((filter) => renderFilterField(filter, filterValueOf(filter, tableArg.filterValues), (next) => tableArg.setFilterValue(filter.key, next)))}</div>`
162
164
  : ''}
163
165
  <div class="filterPanelSection">
164
166
  ${filterable
@@ -52,6 +52,38 @@ export const tableSearchFieldStyles: CSSResult = css`
52
52
  }
53
53
  `;
54
54
 
55
+ /**
56
+ * The active-filter bar: a chip per filter that narrows the view, each removing its filter, and
57
+ * "Clear all". One look below the table's header and below the board's (dees-kanban); a view sets
58
+ * its own inset and frame on `.activeFilters`.
59
+ */
60
+ export const activeFilterBarStyles: CSSResult = css`
61
+ /* Between the header and the column headers, across the table, a soft accent tint at the region
62
+ inset, its chips wrapping onto further lines. */
63
+ .activeFilters {
64
+ box-sizing: border-box; display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 6px 8px; width: 100%;
65
+ min-height: 40px; padding: 6px var(--table-inset-inline, 20px);
66
+ background: color-mix(in srgb, var(--dees-color-accent-primary) 8%, transparent);
67
+ border-bottom: var(--dees-line-width-hairline) solid color-mix(in srgb, var(--dees-color-accent-primary) 16%, transparent);
68
+ color: var(--dees-color-text-primary); font-size: 12px;
69
+ }
70
+ .activeFiltersIcon { flex: 0 0 auto; color: var(--dees-color-accent-primary); }
71
+ .activeFilterChip {
72
+ min-width: 0; max-width: 100%; height: 26px; gap: 4px; padding: 0 6px 0 10px; border-radius: 13px;
73
+ background: color-mix(in srgb, var(--dees-color-accent-primary) 14%, transparent); color: var(--dees-color-text-primary); font-size: 12px;
74
+ }
75
+ .activeFilterLabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
76
+ .activeFilterChip dees-icon { flex: 0 0 auto; color: var(--dees-color-text-secondary); }
77
+ .clearAllFilters { height: 26px; padding: 0 8px; color: var(--dees-color-accent-primary); font-size: 12px; font-weight: 500; }
78
+ @media (hover: hover) {
79
+ .activeFilterChip:hover { background: color-mix(in srgb, var(--dees-color-accent-primary) 22%, transparent); }
80
+ }
81
+ @media (pointer: coarse) {
82
+ .activeFilterChip, .clearAllFilters { height: var(--dees-control-height-touch); }
83
+ .activeFilterChip { border-radius: 22px; }
84
+ }
85
+ `;
86
+
55
87
  export const tableStyles: CSSResult[] = [
56
88
  themeDefaultStyles,
57
89
  cssManager.defaultStyles,
@@ -66,6 +98,7 @@ export const tableStyles: CSSResult[] = [
66
98
  barInfoStyles,
67
99
  tableSearchFieldStyles,
68
100
  tableFilterPanelStyles,
101
+ activeFilterBarStyles,
69
102
  scrollEdgeShadowStyles,
70
103
  css`
71
104
  :host {
@@ -332,26 +365,6 @@ export const tableStyles: CSSResult[] = [
332
365
  .skeletonList .skeletonRow:last-child { border-bottom: 0; }
333
366
  @keyframes dees-table-skeleton { 0%, 100% { opacity: 1; } 50% { opacity: var(--dees-loading-pulse-opacity); } }
334
367
  .loadingStatus, .filterStatus { ${visuallyHidden} }
335
- /* The active-filter bar: between the header and the column headers, across the table, a soft
336
- accent tint at the region inset, its chips wrapping onto further lines. */
337
- .activeFilters {
338
- box-sizing: border-box; display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 6px 8px; width: 100%;
339
- min-height: 40px; padding: 6px var(--table-inset-inline, 20px);
340
- background: color-mix(in srgb, var(--dees-color-accent-primary) 8%, transparent);
341
- border-bottom: var(--dees-line-width-hairline) solid color-mix(in srgb, var(--dees-color-accent-primary) 16%, transparent);
342
- color: var(--dees-color-text-primary); font-size: 12px;
343
- }
344
- .activeFiltersIcon { flex: 0 0 auto; color: var(--dees-color-accent-primary); }
345
- .activeFilterChip {
346
- min-width: 0; max-width: 100%; height: 26px; gap: 4px; padding: 0 6px 0 10px; border-radius: 13px;
347
- background: color-mix(in srgb, var(--dees-color-accent-primary) 14%, transparent); color: var(--dees-color-text-primary); font-size: 12px;
348
- }
349
- .activeFilterLabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
350
- .activeFilterChip dees-icon { flex: 0 0 auto; color: var(--dees-color-text-secondary); }
351
- .clearAllFilters { height: 26px; padding: 0 8px; color: var(--dees-color-accent-primary); font-size: 12px; font-weight: 500; }
352
- @media (hover: hover) {
353
- .activeFilterChip:hover { background: color-mix(in srgb, var(--dees-color-accent-primary) 22%, transparent); }
354
- }
355
368
  .emptyRow td { padding: 0; }
356
369
  /* The row spans the whole table; its state keeps to the scroll viewport, centred in what the reader sees. */
357
370
  .emptyRow td > .noDataSet { position: sticky; inset-inline-start: 0; width: var(--table-viewport-width, auto); }
@@ -411,8 +424,6 @@ export const tableStyles: CSSResult[] = [
411
424
  .header .searchOptions:not(.filtering) { width: var(--dees-control-height-touch); }
412
425
  .header .filterButton.filtering { min-width: var(--dees-control-height-touch); }
413
426
  .control, .sortControl, .filtersRow input { min-height: var(--dees-control-height-touch); }
414
- .activeFilterChip, .clearAllFilters { height: var(--dees-control-height-touch); }
415
- .activeFilterChip { border-radius: 22px; }
416
427
  thead tr:first-child th { padding-block: var(--dees-spacing-2xs); }
417
428
  td { height: 48px; padding-block: var(--dees-spacing-2xs); }
418
429
  .selectionCol { min-width: 52px; padding-inline: var(--table-inset-inline, 4px) 4px !important; }
@@ -346,14 +346,21 @@ export class DeesForm extends DeesElement {
346
346
  return valueObject;
347
347
  }
348
348
 
349
- public async gatherAndDispatch() {
349
+ /**
350
+ * Dispatches the collected data as `formData`, unless a field refuses: the
351
+ * first enabled field whose `checkValidity()` fails reports its validity and
352
+ * takes the focus, and nothing is dispatched. Resolves to `true` once
353
+ * `formData` went out and to `false` after a refusal, so a host that submits
354
+ * through the form (a stepper's primary) can stop where the field did.
355
+ */
356
+ public async gatherAndDispatch(): Promise<boolean> {
350
357
  for (const child of this.getFormElements()) {
351
358
  if (child.disabled) continue;
352
359
  const input = child as IFormCompatibleElement;
353
360
  if (input.checkValidity?.() === false) {
354
361
  input.reportValidity?.();
355
362
  child.focus();
356
- return;
363
+ return false;
357
364
  }
358
365
  }
359
366
  const valueObject = await this.collectFormData();
@@ -364,6 +371,7 @@ export class DeesForm extends DeesElement {
364
371
  bubbles: true,
365
372
  });
366
373
  this.dispatchEvent(formDataEvent);
374
+ return true;
367
375
  }
368
376
 
369
377
  /**
@@ -19,6 +19,16 @@ const sections = html`
19
19
  ${demoOutput('Chosen: manual')}
20
20
  ${demoCode("<dees-input-radiogroup .options=${[\n { key: 'manual', option: 'Enter the details yourself', description: 'Type the name and whatever else you know.' },\n ...\n]}></dees-input-radiogroup>")}
21
21
  `)}
22
+ ${demoSection('Named by the question above it',
23
+ 'Where a heading or a step title already asks the question, the group shows no label of its own. An aria-label names it instead, so assistive technology still announces the question when the focus enters the group.',
24
+ html`
25
+ <p class="dees-demo-label">How do you want to add the contact?</p>
26
+ <dees-input-radiogroup key="source" aria-label="How do you want to add the contact?" .options=${imports} selectedOption="text"
27
+ @change=${(event: Event) => showDemoResult(event.currentTarget as Element,
28
+ `Chosen: ${(event.currentTarget as DeesInputRadiogroup).selectedOption}`)}></dees-input-radiogroup>
29
+ ${demoOutput('Chosen: text')}
30
+ ${demoCode('<p>How do you want to add the contact?</p>\n<dees-input-radiogroup aria-label="How do you want to add the contact?" .options=${options}></dees-input-radiogroup>')}
31
+ `)}
22
32
  `;
23
33
 
24
34
  export const demoFunc = () => focusedInputDemo('radiogroup', sections);
@@ -43,6 +43,19 @@ export class DeesInputRadiogroup extends DeesInputBase<string | object> {
43
43
  @property({ type: String, reflect: true })
44
44
  accessor validationState: 'valid' | 'invalid' | 'warn' | 'pending' | null = null;
45
45
 
46
+ /**
47
+ * The group's accessible name where no label says it: a group under a
48
+ * heading or a step title that asks the question. The `radiogroup` role
49
+ * lives inside, so the name is forwarded to it; an `aria-label` attribute in
50
+ * markup sets it and moves from the host, which has no role, to the group.
51
+ * `null` (the default) names the group by its `label`.
52
+ */
53
+ @property({ type: String, attribute: 'aria-label' })
54
+ override accessor ariaLabel: string | null = null;
55
+
56
+ /** Whether the host's `aria-label` was just removed by the group itself, after moving it. */
57
+ private movedAriaLabel = false;
58
+
46
59
  // Form compatibility
47
60
  public get value() {
48
61
  const option = this.getOptionByKey(this.selectedOption);
@@ -258,7 +271,7 @@ export class DeesInputRadiogroup extends DeesInputBase<string | object> {
258
271
  <div class="input-wrapper">
259
272
  ${this.label ? this.renderLabel() : ''}
260
273
  <div class="maincontainer ${this.direction} ${described ? 'described' : ''}" role="radiogroup"
261
- aria-label=${this.label} aria-required=${this.required ? 'true' : 'false'}
274
+ .ariaLabel=${this.ariaLabel || this.label || null} aria-required=${this.required ? 'true' : 'false'}
262
275
  aria-disabled=${this.disabled ? 'true' : 'false'}
263
276
  aria-invalid=${this.validationState === 'invalid' ? 'true' : 'false'}>
264
277
  ${this.options.map((option) => {
@@ -294,6 +307,23 @@ export class DeesInputRadiogroup extends DeesInputBase<string | object> {
294
307
  `;
295
308
  }
296
309
 
310
+ /**
311
+ * An `aria-label` written on the host sets `ariaLabel`, which the group
312
+ * carries, and leaves the host: kept there, Chromium would expose a generic
313
+ * node with the name beside the group. The removal the group makes itself
314
+ * changes nothing; to clear the name, set `ariaLabel` to `null`.
315
+ */
316
+ public attributeChangedCallback(name: string, oldValue: string | null, value: string | null): void {
317
+ if (name === 'aria-label' && value === null && this.movedAriaLabel) {
318
+ this.movedAriaLabel = false;
319
+ return;
320
+ }
321
+ super.attributeChangedCallback(name, oldValue, value);
322
+ if (name !== 'aria-label' || value === null) return;
323
+ this.movedAriaLabel = true;
324
+ this.removeAttribute(name);
325
+ }
326
+
297
327
  private getOptionKey(option: TRadiogroupOption): string {
298
328
  if (typeof option === 'string') {
299
329
  return option;
@@ -1,14 +1,49 @@
1
1
  import { html } from '@design.estate/dees-element';
2
2
  import { demoApp } from '../../../demos/templates.js';
3
- import { createKanbanDemo, kanbanDemoColumns, kanbanDemoPeople } from '../kanban.demodata.js';
3
+ import {
4
+ createKanbanDemo,
5
+ kanbanDemoColumns,
6
+ kanbanDemoPeople,
7
+ kanbanDemoProjects,
8
+ } from '../kanban.demodata.js';
9
+ import type { DeesKanban } from './dees-kanban.js';
10
+ import '../../00group-button/dees-button/dees-button.js';
4
11
 
5
12
  export const demoFunc = () => {
6
13
  const demo = createKanbanDemo();
7
- return demoApp(html`<dees-kanban
8
- heading="Product workspace"
9
- .tickets=${demo.tickets}
10
- .columns=${kanbanDemoColumns}
11
- .people=${kanbanDemoPeople}
12
- .provider=${demo.provider}
13
- ></dees-kanban>`);
14
+ const [mara, jonas, alex] = kanbanDemoPeople;
15
+ // A teammate's changes, one per click: the board fetches them through `refresh()`.
16
+ const teammate = [
17
+ () => demo.provider.moveTicket!({ ticketId: 'task-1', columnId: 'progress' }),
18
+ () => demo.provider.addComment!({
19
+ ticketId: 'task-2',
20
+ body: [{ type: 'text', text: 'The branch is rebased; the picker keeps focus now.' }],
21
+ }),
22
+ () => demo.provider.updateTicket!({ ticketId: 'task-3', changes: { priority: 'high' } }),
23
+ () => demo.provider.moveTicket!({ ticketId: 'task-2', columnId: 'review' }),
24
+ ];
25
+ let step = 0;
26
+ const simulate = async (event: Event) => {
27
+ const board = (event.currentTarget as HTMLElement)
28
+ .closest('.dees-demo-app')!
29
+ .querySelector<DeesKanban>('dees-kanban')!;
30
+ demo.actAs(step % 2 ? alex : jonas);
31
+ await teammate[step++ % teammate.length]();
32
+ demo.actAs(mara);
33
+ await board.refresh();
34
+ };
35
+ return demoApp(html`<div class="dees-demo-row" style="padding: 0 24px 4px">
36
+ <p class="dees-demo-caption">Signed in as Mara Chen. Jonas and Alex work on the same board.</p>
37
+ <dees-button type="outline" size="sm" text="Simulate a teammate's change" @clicked=${simulate}></dees-button>
38
+ </div>
39
+ <dees-kanban
40
+ heading="Product workspace"
41
+ currentPersonId=${mara.id}
42
+ .tickets=${demo.tickets}
43
+ .columns=${kanbanDemoColumns}
44
+ .people=${kanbanDemoPeople}
45
+ .projects=${kanbanDemoProjects}
46
+ .revision=${demo.revision}
47
+ .provider=${demo.provider}
48
+ ></dees-kanban>`);
14
49
  };