@meshmakers/shared-ui 3.4.1490 → 3.5.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 (47) hide show
  1. package/README.md +18 -0
  2. package/assets/octobot/lg/octo_blink.webp +0 -0
  3. package/assets/octobot/lg/octo_blink_still.png +0 -0
  4. package/assets/octobot/lg/octo_idle.webp +0 -0
  5. package/assets/octobot/lg/octo_idle_still.png +0 -0
  6. package/assets/octobot/lg/octo_look.webp +0 -0
  7. package/assets/octobot/lg/octo_look_still.png +0 -0
  8. package/assets/octobot/lg/octo_swim.webp +0 -0
  9. package/assets/octobot/lg/octo_swim_still.png +0 -0
  10. package/assets/octobot/lg/octo_thinking.webp +0 -0
  11. package/assets/octobot/lg/octo_thinking_still.png +0 -0
  12. package/assets/octobot/lg/octo_wave.webp +0 -0
  13. package/assets/octobot/lg/octo_wave_still.png +0 -0
  14. package/assets/octobot/md/octo_blink.webp +0 -0
  15. package/assets/octobot/md/octo_blink_still.png +0 -0
  16. package/assets/octobot/md/octo_idle.webp +0 -0
  17. package/assets/octobot/md/octo_idle_still.png +0 -0
  18. package/assets/octobot/md/octo_look.webp +0 -0
  19. package/assets/octobot/md/octo_look_still.png +0 -0
  20. package/assets/octobot/md/octo_swim.webp +0 -0
  21. package/assets/octobot/md/octo_swim_still.png +0 -0
  22. package/assets/octobot/md/octo_thinking.webp +0 -0
  23. package/assets/octobot/md/octo_thinking_still.png +0 -0
  24. package/assets/octobot/md/octo_wave.webp +0 -0
  25. package/assets/octobot/md/octo_wave_still.png +0 -0
  26. package/assets/octobot/sm/octo_blink.webp +0 -0
  27. package/assets/octobot/sm/octo_blink_still.png +0 -0
  28. package/assets/octobot/sm/octo_idle.webp +0 -0
  29. package/assets/octobot/sm/octo_idle_still.png +0 -0
  30. package/assets/octobot/sm/octo_look.webp +0 -0
  31. package/assets/octobot/sm/octo_look_still.png +0 -0
  32. package/assets/octobot/sm/octo_swim.webp +0 -0
  33. package/assets/octobot/sm/octo_swim_still.png +0 -0
  34. package/assets/octobot/sm/octo_thinking.webp +0 -0
  35. package/assets/octobot/sm/octo_thinking_still.png +0 -0
  36. package/assets/octobot/sm/octo_wave.webp +0 -0
  37. package/assets/octobot/sm/octo_wave_still.png +0 -0
  38. package/fesm2022/meshmakers-shared-ui-assistant-core.mjs +2 -0
  39. package/fesm2022/meshmakers-shared-ui-assistant-core.mjs.map +1 -1
  40. package/fesm2022/meshmakers-shared-ui-assistant.mjs +28 -5
  41. package/fesm2022/meshmakers-shared-ui-assistant.mjs.map +1 -1
  42. package/fesm2022/meshmakers-shared-ui.mjs +402 -21
  43. package/fesm2022/meshmakers-shared-ui.mjs.map +1 -1
  44. package/package.json +1 -1
  45. package/types/meshmakers-shared-ui-assistant-core.d.ts +4 -0
  46. package/types/meshmakers-shared-ui-assistant.d.ts +11 -0
  47. package/types/meshmakers-shared-ui.d.ts +270 -6
package/README.md CHANGED
@@ -137,6 +137,8 @@ Configurable data grid with Kendo Grid integration.
137
137
 
138
138
  **Features:** Pagination, sorting, filtering, row selection, search, context menus, action menus, Excel/PDF export, toolbar actions, column types (text, numeric, boolean, date, bytes, status icons, cron expressions).
139
139
 
140
+ Empty state (AB#3444): `[emptyState]="{ title, text }"` shows the shared `mm-empty-state` (OctoBot `idle`) for a list without records and the "no results" variant (OctoBot `look`) while a search or filter is active; `[emptyTemplate]` replaces it. Without either the list keeps the plain "No records available." line.
141
+
140
142
  The toolbar's "Reset Filters" button only appears while something narrows the default view: a row filter, a column sort, a free-text search, or host-side filters. Hosts with their own quick-view/bar filters announce them via `[hasExternalFilters]="myBarFilterIsSet"` so the button shows (and `(resetFilters)` lets them clear those filters when it is clicked).
141
143
 
142
144
  ```html
@@ -196,6 +198,21 @@ and a canonical verb→icon map (`MM_ACTION_ICONS`). See [Actions](docs/actions.
196
198
  <mm-action-button [action]="refresh" context="toolbar" (triggered)="reload()" />
197
199
  ```
198
200
 
201
+ ### OctoBot (`mm-octobot`, `mm-empty-state`)
202
+
203
+ The meshmakers mascot as a small animated pixel-art image (`idle`, `blink`, `look`, `swim`,
204
+ `thinking`, `wave`; `sm`/`md`/`lg`), loaded by URL from the library assets (copy
205
+ `node_modules/@meshmakers/shared-ui/assets/octobot` to `/assets/octobot` in `angular.json`;
206
+ base URL via `OCTOBOT_ASSET_BASE_URL`). Decorative unless labelled; still frame under
207
+ `prefers-reduced-motion`. `mm-empty-state` is the shared empty / no-results / error block, and
208
+ `mm-list-view [emptyState]` renders it once per list. Placement rules (never in rows, tiles,
209
+ buttons, toasts or errors): see [OctoBot](docs/octobot.md).
210
+
211
+ ```html
212
+ <mm-octobot animation="wave" size="md" playOnce />
213
+ <mm-list-view [emptyState]="{ title: 'No data flows yet', text: 'Create your first data flow.' }" ...></mm-list-view>
214
+ ```
215
+
199
216
  ### EntitySelectInputComponent (`mm-entity-select-input`)
200
217
 
201
218
  Autocomplete input for entity selection with dialog fallback.
@@ -296,6 +313,7 @@ Data binding directive for `ListViewComponent`, managing data source and paginat
296
313
  ## Detailed Documentation
297
314
 
298
315
  - [Actions](docs/actions.md) — `mm-row-actions`, `mm-action-button`, `MmAction`, canonical icons
316
+ - [OctoBot](docs/octobot.md) — `mm-octobot`, `mm-empty-state`, assets, placement rules
299
317
  - [Time Range Picker](docs/time-range-picker.md) — Full API reference, configuration, examples
300
318
  - [Unsaved Changes Guard](docs/unsaved-changes-guard.md) — Implementation guide with checklists
301
319
  - [Progress Window Usage](src/lib/progress-window/USAGE.md) — Progress dialog examples, migration from Angular Material
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -19,6 +19,8 @@ const DEFAULT_ASSISTANT_MESSAGES = {
19
19
  composerPlaceholder: 'Ask something or type / for commands…',
20
20
  send: 'Send',
21
21
  stop: 'Stop',
22
+ greeting: 'Hi! How can I help?',
23
+ thinking: 'Thinking…',
22
24
  conversationLabel: 'Conversation',
23
25
  youPrefix: 'You: ',
24
26
  assistantPrefix: 'Assistant: ',