@mk-kit/ui 0.37.0 → 0.39.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.
package/README.md CHANGED
@@ -10,6 +10,9 @@ is the target, not the marketing. MIT licensed. Zero runtime dependencies
10
10
  beyond Angular.
11
11
 
12
12
  - **Docs & live demos:** <https://mk-kit.dev>
13
+ - **API reference:** <https://mk-kit.dev/api> — also as [api.json](https://mk-kit.dev/api.json), [llms.txt](https://mk-kit.dev/llms.txt) and [llms-full.txt](https://mk-kit.dev/llms-full.txt) for tools and AI assistants
14
+ - **Testing:** `@mk-kit/ui/testing` — component harnesses for TestBed specs (<https://mk-kit.dev/testing>)
15
+ - **MCP server:** `npx -y @mk-kit/mcp` — exact component/input/output lookup for Claude Code, Cursor & co. ([@mk-kit/mcp](https://www.npmjs.com/package/@mk-kit/mcp))
13
16
  - **Changelog:** [CHANGELOG.md](https://github.com/mk-kit/mk-kit/blob/main/CHANGELOG.md)
14
17
  - **Issues:** <https://github.com/mk-kit/mk-kit/issues>
15
18
 
@@ -20,7 +23,12 @@ ng add @mk-kit/ui
20
23
  ```
21
24
 
22
25
  `ng add` installs the package and wires the theme stylesheet into
23
- `angular.json`. By hand instead:
26
+ `angular.json`.
27
+
28
+ **Coming from PrimeNG?** `ng g @mk-kit/ui:migrate-primeng --dry-run` shows
29
+ what the codemod would rewrite (imports, class names, 1:1 selectors, a few
30
+ input names) and what needs a manual touch; without `--dry-run` it applies
31
+ the changes and writes `primeng-migration.md`. Details: <https://mk-kit.dev/migration>. By hand instead:
24
32
 
25
33
  ```bash
26
34
  npm install @mk-kit/ui
@@ -71,14 +79,14 @@ export class AppRoot {
71
79
 
72
80
  | Group | Highlights |
73
81
  |---|---|
74
- | **Forms & inputs** (53)** | text, number, password (strength meter), OTP, phone (country prefix), postal code, currency, card number, IBAN, tax id, masked input, tag input, select, autocomplete, multi-select, tree-select, transfer list, checkbox, radio, switch, slider, range slider, rating, colour picker, file upload (dropzone), signature pad, numeric keypad & on-screen keyboard, repeater (`FormArray`), form field with automatic validation messages, form error summary, listbox, cascader (multi-column select), floating labels |
82
+ | **Forms & inputs** (54) | text, number, password (strength meter), OTP, phone (country prefix), postal code, currency, card number, IBAN, tax id, masked input, tag input, select, autocomplete, multi-select, tree-select, transfer list, checkbox, radio, switch, slider, range slider, rating, colour picker, file upload (dropzone), signature pad, numeric keypad & on-screen keyboard, repeater (`FormArray`), form field with automatic validation messages, form error summary, listbox, cascader (multi-column select), floating labels, dynamic form (JSON schema → form) |
75
83
  | **Date & time** | calendar, date picker, date-range picker, time picker, month/year picker, week picker, inline mini date, event calendar with editable week/day grid (drag to move / resize) |
76
- | **Tables & grids** (7)** | data table — sort, multi-select, expandable rows, tree rows, grouping, sticky header, column resize / reorder / pin, inline cell edit, responsive stacking, CSV export, print styles — plus `MkTableDataSource` for server-side sort/page/filter, query builder (`mk-query-builder` → predicate / readable text / `MkTableDataSource.setQuery()`) |
84
+ | **Tables & grids** (7) | data table — sort, multi-select, expandable rows, tree rows, grouping, sticky header, column resize / reorder / pin, inline cell edit, responsive stacking, CSV export, print styles — plus `MkTableDataSource` for server-side sort/page/filter, query builder (`mk-query-builder` → predicate / readable text / `MkTableDataSource.setQuery()`) |
77
85
  | **Charts** (12) | line/area, bar (stacked, horizontal, label fitting), donut, gauge, progress ring, scatter/bubble, radar, funnel, treemap, heatmap, calendar heatmap, sparkline — SVG, themed, accessible |
78
86
  | **Data display** (25) | cards, lists, stat cards, badges, tags, chips, avatars & groups, timeline, description list, tree, empty state, countdown, QR code, diff view, JSON viewer, code block, virtual scroll, carousel, kanban |
79
87
  | **Navigation & layout** (21) | app shell (responsive sidebar), stack / flex / grid layout primitives, nav list & groups, tabs, stepper, breadcrumb, pagination, menu, context menu, command palette (⌘K), page header, toolbar, splitter, drawer, scroll area, FAB, back-to-top |
80
- | **Feedback & overlays** (21)** | dialogs (+ `confirm()` / `alert()` / `prompt()`), bottom sheet, drawer, popover, popconfirm, hovercard, tooltip, toast, snackbar, alert, banner, result page, notification center, product tour, progress bar, loading bar, spinner, skeletons, block UI (region / page overlay), draggable & resizable dialogs |
81
- | **Editors & interactions** (25)** | block editor (Notion-style, HTML round-trip), rich text, markdown renderer, code editor, log viewer, drag & drop, sortable list, @mentions, hotkeys, undo/redo history, permissions (`*mkCan`), clipboard, intersect, infinite scroll, ripple, scrollspy, chat (streaming message log, tool cards, prompt box) |
88
+ | **Feedback & overlays** (21) | dialogs (+ `confirm()` / `alert()` / `prompt()`), bottom sheet, drawer, popover, popconfirm, hovercard, tooltip, toast, snackbar, alert, banner, result page, notification center, product tour, progress bar, loading bar, spinner, skeletons, block UI (region / page overlay), draggable & resizable dialogs |
89
+ | **Editors & interactions** (25) | block editor (Notion-style, HTML round-trip), rich text, markdown renderer, code editor, log viewer, drag & drop, sortable list, @mentions, hotkeys, undo/redo history, permissions (`*mkCan`), clipboard, intersect, infinite scroll, ripple, scrollspy, chat (streaming message log, tool cards, prompt box) |
82
90
  | **Media** (6) | image with states, gallery, lightbox, cropper, media manager |
83
91
  | **Core services** | theme (light/dark/system + density), breakpoints, overlay & anchored panels, focus trap, live announcer, icon registry (426 built-in icons), i18n |
84
92
 
@@ -96,7 +104,9 @@ import { MkDatePicker } from '@mk-kit/ui/datetime';
96
104
 
97
105
  Available: `core`, `forms`, `datetime`, `table`, `data`, `navigation`,
98
106
  `feedback`, `directives`, `dnd`, `media`, `icon`, `button`, `checkbox`, `chip`,
99
- `context-menu`, `layout`, `chat`, `query-builder`, `rich-text`, `block-editor`. `sideEffects: false` throughout.
107
+ `context-menu`, `layout`, `chat`, `query-builder`, `dynamic-form`, `rich-text`, `block-editor`,
108
+ plus `testing` (component harnesses for specs — never re-exported from the
109
+ umbrella). `sideEffects: false` throughout.
100
110
 
101
111
  ## Theming
102
112
 
@@ -1379,6 +1379,8 @@ const MK_DEFAULT_I18N = {
1379
1379
  chatToolRunning: 'Running',
1380
1380
  chatToolDone: 'Done',
1381
1381
  chatToolError: 'Failed',
1382
+ dynamicFormAdd: 'Add',
1383
+ dynamicFormRemove: (index) => `Remove item ${index}`,
1382
1384
  queryBuilderLabel: 'Filter conditions',
1383
1385
  queryAddRule: 'Add rule',
1384
1386
  queryAddGroup: 'Add group',