@mk-kit/mcp 0.55.0 → 0.56.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/data/api.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@mk-kit/ui",
3
- "version": "0.55.0",
3
+ "version": "0.56.0",
4
4
  "site": "https://mk-kit.dev",
5
5
  "entries": [
6
6
  {
@@ -1507,6 +1507,46 @@
1507
1507
  "type": "string",
1508
1508
  "description": "Empty data table / list."
1509
1509
  },
1510
+ {
1511
+ "name": "translationEditorSearch",
1512
+ "type": "string",
1513
+ "description": "Translation editor (`@mk-kit/ui/translate/editor`)."
1514
+ },
1515
+ {
1516
+ "name": "translationEditorAll",
1517
+ "type": "string",
1518
+ "description": ""
1519
+ },
1520
+ {
1521
+ "name": "translationEditorOverridden",
1522
+ "type": "string",
1523
+ "description": ""
1524
+ },
1525
+ {
1526
+ "name": "translationEditorMissing",
1527
+ "type": "string",
1528
+ "description": ""
1529
+ },
1530
+ {
1531
+ "name": "translationEditorKey",
1532
+ "type": "string",
1533
+ "description": ""
1534
+ },
1535
+ {
1536
+ "name": "translationEditorReset",
1537
+ "type": "string",
1538
+ "description": ""
1539
+ },
1540
+ {
1541
+ "name": "translationEditorExport",
1542
+ "type": "string",
1543
+ "description": ""
1544
+ },
1545
+ {
1546
+ "name": "translationEditorKeys",
1547
+ "type": "string",
1548
+ "description": ""
1549
+ },
1510
1550
  {
1511
1551
  "name": "resultsCount",
1512
1552
  "type": "(count: number) => string",
@@ -18296,6 +18336,11 @@
18296
18336
  "name": "set",
18297
18337
  "signature": "(lang: string, strings: MkTranslationTree | MkFlatTranslations): void",
18298
18338
  "description": "Replace `lang` entirely (tests, editors reloading from source)."
18339
+ },
18340
+ {
18341
+ "name": "isPartial",
18342
+ "signature": "(lang?: string): boolean",
18343
+ "description": "`true` while `lang` holds only a server render's keys and the rest is still loading."
18299
18344
  }
18300
18345
  ],
18301
18346
  "properties": [
@@ -18454,6 +18499,12 @@
18454
18499
  "description": "Block application bootstrap until the initial language is loaded, so the\nfirst render never shows raw keys and `instant()` calls inside\n`computed()` never cache them. Default `true`.",
18455
18500
  "optional": true
18456
18501
  },
18502
+ {
18503
+ "name": "transfer",
18504
+ "type": "\"none\" | \"used\" | \"all\" | undefined",
18505
+ "description": "What a server render hands to the browser through `TransferState`:\n- `'used'` (default): only the keys read while rendering this page —\n a few KB — so hydration never flashes raw keys, while the full\n dictionary loads in the background right after;\n- `'all'`: the whole dictionary (no second request, but every page\n carries it);\n- `'none'`: nothing; the browser loads the file itself before bootstrap.",
18506
+ "optional": true
18507
+ },
18457
18508
  {
18458
18509
  "name": "documentLang",
18459
18510
  "type": "boolean | undefined",
@@ -24748,6 +24799,106 @@
24748
24799
  }
24749
24800
  ]
24750
24801
  },
24802
+ {
24803
+ "name": "translate/editor",
24804
+ "import": "@mk-kit/ui/translate/editor",
24805
+ "exports": [
24806
+ {
24807
+ "name": "MkTranslationEditor",
24808
+ "description": "Translation editor — keys as rows, locales as columns, click a cell to\nedit. The base strings are your bundled files; edits are **overrides**\nkept apart from them, so a rebuild never loses them and a cell can be\nrestored to the file text. Search by key or text, filter to the keys a\nlocale is missing or the ones already edited, export the grid as CSV.\nPersistence is yours: every edit is emitted as `changed`, feed the result\nback through `overrides`.\n\n```html\n<mk-translation-editor\n [locales]=\"['pl', 'en', 'ru']\"\n [base]=\"base()\"\n [overrides]=\"overrides()\"\n (changed)=\"save($event)\" />\n```",
24809
+ "file": "projects/mk-kit/translate/editor/translation-editor.ts",
24810
+ "kind": "component",
24811
+ "selector": "mk-translation-editor",
24812
+ "selectors": [
24813
+ "mk-translation-editor"
24814
+ ],
24815
+ "inputs": [
24816
+ {
24817
+ "name": "locales",
24818
+ "type": "string[]",
24819
+ "description": "Locale codes, in column order. The first one is the reference language.",
24820
+ "required": true
24821
+ },
24822
+ {
24823
+ "name": "base",
24824
+ "type": "Record<string, MkFlatTranslations>",
24825
+ "description": "Bundled strings per locale, flat (`'a.b.c': 'text'`) or nested.",
24826
+ "required": true
24827
+ },
24828
+ {
24829
+ "name": "overrides",
24830
+ "type": "Record<string, MkFlatTranslations>",
24831
+ "description": "Edits per locale, flat. Missing locales are fine.",
24832
+ "default": "{}"
24833
+ },
24834
+ {
24835
+ "name": "readonly",
24836
+ "type": "boolean",
24837
+ "description": "Show but do not edit.",
24838
+ "default": "false"
24839
+ },
24840
+ {
24841
+ "name": "exportFilename",
24842
+ "type": "string",
24843
+ "description": "File name of the CSV export.",
24844
+ "default": "'translations.csv'"
24845
+ }
24846
+ ],
24847
+ "outputs": [
24848
+ {
24849
+ "name": "changed",
24850
+ "type": "MkTranslationChange",
24851
+ "description": "An edit or a restore; persist it and update `overrides`."
24852
+ }
24853
+ ],
24854
+ "methods": [],
24855
+ "properties": [],
24856
+ "queries": [],
24857
+ "docs": "/components/translate"
24858
+ },
24859
+ {
24860
+ "name": "MkTranslationChange",
24861
+ "description": "One edit made in the editor. `value: null` clears the override.",
24862
+ "file": "projects/mk-kit/translate/editor/translation-editor.ts",
24863
+ "kind": "interface",
24864
+ "members": [
24865
+ {
24866
+ "name": "locale",
24867
+ "type": "string",
24868
+ "description": ""
24869
+ },
24870
+ {
24871
+ "name": "key",
24872
+ "type": "string",
24873
+ "description": ""
24874
+ },
24875
+ {
24876
+ "name": "value",
24877
+ "type": "string | null",
24878
+ "description": ""
24879
+ },
24880
+ {
24881
+ "name": "previous",
24882
+ "type": "string | null",
24883
+ "description": "The text shown before the edit (override, or the base string)."
24884
+ }
24885
+ ]
24886
+ },
24887
+ {
24888
+ "name": "MkTranslationRow",
24889
+ "description": "A row of the editor: the key plus the effective text per locale.",
24890
+ "file": "projects/mk-kit/translate/editor/translation-editor.ts",
24891
+ "kind": "interface",
24892
+ "members": [
24893
+ {
24894
+ "name": "key",
24895
+ "type": "string",
24896
+ "description": ""
24897
+ }
24898
+ ]
24899
+ }
24900
+ ]
24901
+ },
24751
24902
  {
24752
24903
  "name": "translate/server",
24753
24904
  "import": "@mk-kit/ui/translate/server",
@@ -1,4 +1,4 @@
1
- # @mk-kit/ui 0.55.0 — full API reference
1
+ # @mk-kit/ui 0.56.0 — full API reference
2
2
 
3
3
  Generated from the library sources. Browsable version: https://mk-kit.dev/api · JSON: https://mk-kit.dev/api.json · Guides: https://mk-kit.dev/llms.txt
4
4
 
@@ -903,6 +903,14 @@ Members:
903
903
  | `noOptions` | `string` | Empty listbox with no options (select, time picker). |
904
904
  | `noResults` | `string` | Empty async/filtered results (autocomplete, multi-select, command palette). |
905
905
  | `noData` | `string` | Empty data table / list. |
906
+ | `translationEditorSearch` | `string` | Translation editor (`@mk-kit/ui/translate/editor`). |
907
+ | `translationEditorAll` | `string` | |
908
+ | `translationEditorOverridden` | `string` | |
909
+ | `translationEditorMissing` | `string` | |
910
+ | `translationEditorKey` | `string` | |
911
+ | `translationEditorReset` | `string` | |
912
+ | `translationEditorExport` | `string` | |
913
+ | `translationEditorKeys` | `string` | |
906
914
  | `resultsCount` | `(count: number) => string` | Announced when a filterable list updates (autocomplete, multi-select, command palette). |
907
915
  | `previousPage` | `string` | Pagination: previous page control. |
908
916
  | `nextPage` | `string` | Pagination: next page control. |
@@ -12125,6 +12133,7 @@ Methods:
12125
12133
  | `loadedLangs(): string[]` | Languages currently in memory. |
12126
12134
  | `patch(lang: string, strings: MkTranslationTree \| MkFlatTranslations): void` | Merge strings into `lang` at runtime — a translation editor previewing an edit, or a late-arriving overrides payload. Nested or flat. |
12127
12135
  | `set(lang: string, strings: MkTranslationTree \| MkFlatTranslations): void` | Replace `lang` entirely (tests, editors reloading from source). |
12136
+ | `isPartial(lang?: string): boolean` | `true` while `lang` holds only a server render's keys and the rest is still loading. |
12128
12137
 
12129
12138
  Properties:
12130
12139
 
@@ -12262,6 +12271,7 @@ Members:
12262
12271
  | `loader` | `MkTranslateLoaderFactory` | Base strings — the bundled JSON, typically (`mkHttpTranslateLoader`). |
12263
12272
  | `overrides`? | `MkTranslateLoaderFactory \| undefined` | Optional second source merged OVER the base per language: edits kept in a database, a tenant's wording, a translator's work in progress. A loader that throws or resolves `{}` leaves the base untouched. |
12264
12273
  | `preload`? | `boolean \| undefined` | Block application bootstrap until the initial language is loaded, so the first render never shows raw keys and `instant()` calls inside `computed()` never cache them. Default `true`. |
12274
+ | `transfer`? | `"none" \| "used" \| "all" \| undefined` | What a server render hands to the browser through `TransferState`: - `'used'` (default): only the keys read while rendering this page — a few KB — so hydration never flashes raw keys, while the full dictionary loads in the background right after; - `'all'`: the whole dictionary (no second request, but every page carries it); - `'none'`: nothing; the browser loads the file itself before bootstrap. |
12265
12275
  | `documentLang`? | `boolean \| undefined` | Mirror the active language onto `<html lang>` (server and browser), so screen readers, hyphenation and search engines follow `use()`. Default `true`. |
12266
12276
  | `onMissing`? | `((key: string, lang: string) => string \| undefined \| void) \| undefined` | Called for a key missing in both the active and the fallback language. Return a string to render instead of the key. Missing keys are also collected in `MkTranslate.missingKeys`. |
12267
12277
 
@@ -16642,6 +16652,77 @@ Keys accepted by `MkTestElement.sendKeys` besides printable characters.
16642
16652
  type MkTestKey = | 'Enter' | 'Escape' | 'Tab' | 'Backspace' | 'Delete' | ' ' | 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight' | 'Home' | 'End' | 'PageUp' | 'PageDown';
16643
16653
  ```
16644
16654
 
16655
+ ## @mk-kit/ui/translate/editor
16656
+
16657
+ 3 exports. `import { … } from '@mk-kit/ui/translate/editor';`
16658
+
16659
+ ### MkTranslationEditor (component)
16660
+
16661
+ Selector: `mk-translation-editor`
16662
+
16663
+ Docs: https://mk-kit.dev/components/translate
16664
+
16665
+ Import: `import { MkTranslationEditor } from '@mk-kit/ui/translate/editor';`
16666
+
16667
+ Translation editor — keys as rows, locales as columns, click a cell to
16668
+ edit. The base strings are your bundled files; edits are **overrides**
16669
+ kept apart from them, so a rebuild never loses them and a cell can be
16670
+ restored to the file text. Search by key or text, filter to the keys a
16671
+ locale is missing or the ones already edited, export the grid as CSV.
16672
+ Persistence is yours: every edit is emitted as `changed`, feed the result
16673
+ back through `overrides`.
16674
+
16675
+ ```html
16676
+ <mk-translation-editor
16677
+ [locales]="['pl', 'en', 'ru']"
16678
+ [base]="base()"
16679
+ [overrides]="overrides()"
16680
+ (changed)="save($event)" />
16681
+ ```
16682
+
16683
+ Inputs:
16684
+
16685
+ | Name | Type | Default | Description |
16686
+ | --- | --- | --- | --- |
16687
+ | `locales` (required) | `string[]` | | Locale codes, in column order. The first one is the reference language. |
16688
+ | `base` (required) | `Record<string, MkFlatTranslations>` | | Bundled strings per locale, flat (`'a.b.c': 'text'`) or nested. |
16689
+ | `overrides` | `Record<string, MkFlatTranslations>` | `{}` | Edits per locale, flat. Missing locales are fine. |
16690
+ | `readonly` | `boolean` | `false` | Show but do not edit. |
16691
+ | `exportFilename` | `string` | `'translations.csv'` | File name of the CSV export. |
16692
+
16693
+ Outputs:
16694
+
16695
+ | Name | Type | Description |
16696
+ | --- | --- | --- |
16697
+ | `changed` | `MkTranslationChange` | An edit or a restore; persist it and update `overrides`. |
16698
+
16699
+ ### MkTranslationChange (interface)
16700
+
16701
+ Import: `import { MkTranslationChange } from '@mk-kit/ui/translate/editor';`
16702
+
16703
+ One edit made in the editor. `value: null` clears the override.
16704
+
16705
+ Members:
16706
+
16707
+ | Name | Type | Description |
16708
+ | --- | --- | --- |
16709
+ | `locale` | `string` | |
16710
+ | `key` | `string` | |
16711
+ | `value` | `string \| null` | |
16712
+ | `previous` | `string \| null` | The text shown before the edit (override, or the base string). |
16713
+
16714
+ ### MkTranslationRow (interface)
16715
+
16716
+ Import: `import { MkTranslationRow } from '@mk-kit/ui/translate/editor';`
16717
+
16718
+ A row of the editor: the key plus the effective text per locale.
16719
+
16720
+ Members:
16721
+
16722
+ | Name | Type | Description |
16723
+ | --- | --- | --- |
16724
+ | `key` | `string` | |
16725
+
16645
16726
  ## @mk-kit/ui/translate/server
16646
16727
 
16647
16728
  2 exports. `import { … } from '@mk-kit/ui/translate/server';`
package/data/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # mk-kit
2
2
 
3
- > Themable, accessible Angular 22 component library for admin dashboards and UIs. Signals-based, WCAG 2.1 AA, controlled entirely through CSS variables with light/dark out of the box. — `@mk-kit/ui` 0.55.0. 173 components, 45 directives, 17 services and 152 helper functions across 34 tree-shakeable entry points. MIT licensed, zero runtime dependencies beyond Angular. Standalone components, signals, OnPush, zoneless-ready, SSR-safe, RTL and i18n via `provideMkI18n`.
3
+ > Themable, accessible Angular 22 component library for admin dashboards and UIs. Signals-based, WCAG 2.1 AA, controlled entirely through CSS variables with light/dark out of the box. — `@mk-kit/ui` 0.56.0. 174 components, 45 directives, 17 services and 152 helper functions across 35 tree-shakeable entry points. MIT licensed, zero runtime dependencies beyond Angular. Standalone components, signals, OnPush, zoneless-ready, SSR-safe, RTL and i18n via `provideMkI18n`.
4
4
 
5
5
  Install with `ng add @mk-kit/ui` (or `npm i @mk-kit/ui` + import `@mk-kit/ui/styles/mk-kit.css`). Import from the group entry points (`@mk-kit/ui/forms`, `@mk-kit/ui/table`, …) so each lazy chunk only carries what it uses; the root `@mk-kit/ui` entry re-exports everything. Every component is standalone: add the class to a component's `imports`. Theme with `--mk-*` CSS custom properties; `MkThemeService` switches light/dark/system and density.
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mk-kit/mcp",
3
- "version": "0.55.0",
3
+ "version": "0.56.0",
4
4
  "description": "MCP server for @mk-kit/ui — lets AI coding assistants look up every component, directive, service and helper of the mk-kit Angular library (inputs, outputs, methods, import paths, docs links).",
5
5
  "license": "MIT",
6
6
  "type": "module",