@mk-kit/mcp 0.44.0 → 0.45.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.44.0",
3
+ "version": "0.45.0",
4
4
  "site": "https://mk-kit.dev",
5
5
  "entries": [
6
6
  {
@@ -463,6 +463,15 @@
463
463
  "<T>(value: MkResponsive<T>): value is Partial<Record<MkBreakpoint, T>>"
464
464
  ]
465
465
  },
466
+ {
467
+ "name": "mkMergeI18n",
468
+ "description": "Merges `overrides` over a complete string map — shallow for the top level,\ndeep for the `dateNames`, `blockEditor` and `validation` groups. Exported\nso locale packs and tests can build a map without providing it.",
469
+ "file": "projects/mk-kit/core/i18n/mk-i18n.ts",
470
+ "kind": "function",
471
+ "signatures": [
472
+ "(base: MkI18nStrings, overrides: MkI18nOverrides): MkI18nStrings"
473
+ ]
474
+ },
466
475
  {
467
476
  "name": "mkQueryCompact",
468
477
  "description": "Drop empty groups and rules that still need a value, so the API gets only complete conditions.",
@@ -582,11 +591,11 @@
582
591
  },
583
592
  {
584
593
  "name": "provideMkI18n",
585
- "description": "Provide localised strings (merged over the English defaults) pass any\nsubset. The nested `dateNames`, `blockEditor` and `validation` groups are\nmerged deeply, so partial overrides of those work too.\n\n```ts\nbootstrapApplication(App, {\n providers: [provideMkI18n({ noResults: 'Brak wyników', close: 'Zamknij' })],\n});\n```",
594
+ "description": "Provide localised strings — pass any subset, merged over `base` (the\nEnglish defaults unless given). The nested `dateNames`, `blockEditor` and\n`validation` groups are merged deeply, so partial overrides of those work\ntoo.\n\n```ts\nbootstrapApplication(App, {\n providers: [provideMkI18n({ noResults: 'Brak wyników', close: 'Zamknij' })],\n});\n```\n\nA locale pack is a complete map that serves as the base — either through\nits own helper (`provideMkI18nPl(overrides)` from `@mk-kit/ui/locales/pl`)\nor explicitly: `provideMkI18n(overrides, MK_PL_I18N)`.",
586
595
  "file": "projects/mk-kit/core/i18n/mk-i18n.ts",
587
596
  "kind": "function",
588
597
  "signatures": [
589
- "(overrides: Partial<Omit<MkI18nStrings, \"dateNames\" | \"blockEditor\" | \"validation\">> & { dateNames?: Partial<MkDateNames>; blockEditor?: Partial<MkBlockEditorStrings>; validation?: Partial<MkValidationStrings>; }): Provider"
598
+ "(overrides: MkI18nOverrides, base?: MkI18nStrings): Provider"
590
599
  ],
591
600
  "docs": "/core-services"
592
601
  },
@@ -3124,6 +3133,13 @@
3124
3133
  "kind": "type",
3125
3134
  "definition": "Readonly<Record<string, string | ((err: any) => string)>>"
3126
3135
  },
3136
+ {
3137
+ "name": "MkI18nOverrides",
3138
+ "description": "Any subset of `MkI18nStrings`; the nested `dateNames`, `blockEditor`\nand `validation` groups may be partial too (they are merged deeply).",
3139
+ "file": "projects/mk-kit/core/i18n/mk-i18n.ts",
3140
+ "kind": "type",
3141
+ "definition": "Partial< Omit<MkI18nStrings, 'dateNames' | 'blockEditor' | 'validation'> > & { dateNames?: Partial<MkDateNames>; blockEditor?: Partial<MkBlockEditorStrings>; validation?: Partial<MkValidationStrings>; }"
3142
+ },
3127
3143
  {
3128
3144
  "name": "MkPlacement",
3129
3145
  "description": "Common placement values for overlays (menus, tooltips, popovers).",
@@ -22443,6 +22459,58 @@
22443
22459
  }
22444
22460
  ]
22445
22461
  },
22462
+ {
22463
+ "name": "locales/pl",
22464
+ "import": "@mk-kit/ui/locales/pl",
22465
+ "exports": [
22466
+ {
22467
+ "name": "mkPluralPl",
22468
+ "description": "Picks the Polish plural form for a count: `one` for 1, `few` for 2–4\n(except 12–14), `many` otherwise — CLDR's `pl` rules for integers, which is\nall the library's counts ever are.\n\n```ts\nmkPluralPl(1, 'wynik', 'wyniki', 'wyników'); // 'wynik'\nmkPluralPl(3, 'wynik', 'wyniki', 'wyników'); // 'wyniki'\nmkPluralPl(12, 'wynik', 'wyniki', 'wyników'); // 'wyników'\n```",
22469
+ "file": "projects/mk-kit/locales/pl/pl.ts",
22470
+ "kind": "function",
22471
+ "signatures": [
22472
+ "(count: number, one: string, few: string, many: string): string"
22473
+ ]
22474
+ },
22475
+ {
22476
+ "name": "provideMkI18nPl",
22477
+ "description": "Provides the Polish strings — `MK_PL_I18N` with any `overrides`\nmerged on top (deep for `dateNames`, `blockEditor` and `validation`, like\n`provideMkI18n`).\n\n```ts\nbootstrapApplication(App, {\n providers: [provideMkI18nPl({ noData: 'Nic tu nie ma' })],\n});\n```",
22478
+ "file": "projects/mk-kit/locales/pl/pl.ts",
22479
+ "kind": "function",
22480
+ "signatures": [
22481
+ "(overrides?: MkI18nOverrides): Provider"
22482
+ ]
22483
+ },
22484
+ {
22485
+ "name": "MK_PL_BLOCK_EDITOR",
22486
+ "description": "Polish strings of the block editor's chrome.",
22487
+ "file": "projects/mk-kit/locales/pl/pl.ts",
22488
+ "kind": "const",
22489
+ "type": "MkBlockEditorStrings"
22490
+ },
22491
+ {
22492
+ "name": "MK_PL_DATE_NAMES",
22493
+ "description": "Polish month and weekday names (Sunday-first, lowercase as in `Intl`).",
22494
+ "file": "projects/mk-kit/locales/pl/pl.ts",
22495
+ "kind": "const",
22496
+ "type": "MkDateNames"
22497
+ },
22498
+ {
22499
+ "name": "MK_PL_I18N",
22500
+ "description": "The complete Polish string map — every key of `MkI18nStrings`,\n`locale: 'pl-PL'` and `currency: 'PLN'` for the formatting pipes.\nProvide it whole with `provideMkI18nPl`, or pass it as the base of\n`provideMkI18n(overrides, MK_PL_I18N)`.",
22501
+ "file": "projects/mk-kit/locales/pl/pl.ts",
22502
+ "kind": "const",
22503
+ "type": "MkI18nStrings"
22504
+ },
22505
+ {
22506
+ "name": "MK_PL_VALIDATION",
22507
+ "description": "Polish validation messages rendered by `mk-form-field`.",
22508
+ "file": "projects/mk-kit/locales/pl/pl.ts",
22509
+ "kind": "const",
22510
+ "type": "MkValidationStrings"
22511
+ }
22512
+ ]
22513
+ },
22446
22514
  {
22447
22515
  "name": "testing",
22448
22516
  "import": "@mk-kit/ui/testing",
@@ -1,4 +1,4 @@
1
- # @mk-kit/ui 0.44.0 — full API reference
1
+ # @mk-kit/ui 0.45.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
 
@@ -12,7 +12,7 @@ Every component and directive below is standalone — import the class from its
12
12
 
13
13
  ## @mk-kit/ui/core
14
14
 
15
- 74 exports. `import { … } from '@mk-kit/ui/core';`
15
+ 76 exports. `import { … } from '@mk-kit/ui/core';`
16
16
 
17
17
  ### MkAnchoredPanel (directive)
18
18
 
@@ -386,6 +386,18 @@ True when `value` is a per-breakpoint map rather than a plain value.
386
386
  function mkIsResponsive<T>(value: MkResponsive<T>): value is Partial<Record<MkBreakpoint, T>>
387
387
  ```
388
388
 
389
+ ### mkMergeI18n (function)
390
+
391
+ Import: `import { mkMergeI18n } from '@mk-kit/ui/core';`
392
+
393
+ Merges `overrides` over a complete string map — shallow for the top level,
394
+ deep for the `dateNames`, `blockEditor` and `validation` groups. Exported
395
+ so locale packs and tests can build a map without providing it.
396
+
397
+ ```ts
398
+ function mkMergeI18n(base: MkI18nStrings, overrides: MkI18nOverrides): MkI18nStrings
399
+ ```
400
+
389
401
  ### mkQueryCompact (function)
390
402
 
391
403
  Import: `import { mkQueryCompact } from '@mk-kit/ui/core';`
@@ -555,9 +567,10 @@ Docs: https://mk-kit.dev/core-services
555
567
 
556
568
  Import: `import { provideMkI18n } from '@mk-kit/ui/core';`
557
569
 
558
- Provide localised strings (merged over the English defaults) pass any
559
- subset. The nested `dateNames`, `blockEditor` and `validation` groups are
560
- merged deeply, so partial overrides of those work too.
570
+ Provide localised strings pass any subset, merged over `base` (the
571
+ English defaults unless given). The nested `dateNames`, `blockEditor` and
572
+ `validation` groups are merged deeply, so partial overrides of those work
573
+ too.
561
574
 
562
575
  ```ts
563
576
  bootstrapApplication(App, {
@@ -565,8 +578,12 @@ bootstrapApplication(App, {
565
578
  });
566
579
  ```
567
580
 
581
+ A locale pack is a complete map that serves as the base — either through
582
+ its own helper (`provideMkI18nPl(overrides)` from `@mk-kit/ui/locales/pl`)
583
+ or explicitly: `provideMkI18n(overrides, MK_PL_I18N)`.
584
+
568
585
  ```ts
569
- function provideMkI18n(overrides: Partial<Omit<MkI18nStrings, "dateNames" | "blockEditor" | "validation">> & { dateNames?: Partial<MkDateNames>; blockEditor?: Partial<MkBlockEditorStrings>; validation?: Partial<MkValidationStrings>; }): Provider
586
+ function provideMkI18n(overrides: MkI18nOverrides, base?: MkI18nStrings): Provider
570
587
  ```
571
588
 
572
589
  ### MK_BREAKPOINTS (token)
@@ -1362,6 +1379,17 @@ to a function receiving that key's error payload.
1362
1379
  type MkErrorMessages = Readonly<Record<string, string | ((err: any) => string)>>;
1363
1380
  ```
1364
1381
 
1382
+ ### MkI18nOverrides (type)
1383
+
1384
+ Import: `import { MkI18nOverrides } from '@mk-kit/ui/core';`
1385
+
1386
+ Any subset of `MkI18nStrings`; the nested `dateNames`, `blockEditor`
1387
+ and `validation` groups may be partial too (they are merged deeply).
1388
+
1389
+ ```ts
1390
+ type MkI18nOverrides = Partial< Omit<MkI18nStrings, 'dateNames' | 'blockEditor' | 'validation'> > & { dateNames?: Partial<MkDateNames>; blockEditor?: Partial<MkBlockEditorStrings>; validation?: Partial<MkValidationStrings>; };
1391
+ ```
1392
+
1365
1393
  ### MkPlacement (type)
1366
1394
 
1367
1395
  Import: `import { MkPlacement } from '@mk-kit/ui/core';`
@@ -14972,6 +15000,89 @@ Load lifecycle of an `MkImage`.
14972
15000
  type MkImageState = 'loading' | 'loaded' | 'error';
14973
15001
  ```
14974
15002
 
15003
+ ## @mk-kit/ui/locales/pl
15004
+
15005
+ 6 exports. `import { … } from '@mk-kit/ui/locales/pl';`
15006
+
15007
+ ### mkPluralPl (function)
15008
+
15009
+ Import: `import { mkPluralPl } from '@mk-kit/ui/locales/pl';`
15010
+
15011
+ Picks the Polish plural form for a count: `one` for 1, `few` for 2–4
15012
+ (except 12–14), `many` otherwise — CLDR's `pl` rules for integers, which is
15013
+ all the library's counts ever are.
15014
+
15015
+ ```ts
15016
+ mkPluralPl(1, 'wynik', 'wyniki', 'wyników'); // 'wynik'
15017
+ mkPluralPl(3, 'wynik', 'wyniki', 'wyników'); // 'wyniki'
15018
+ mkPluralPl(12, 'wynik', 'wyniki', 'wyników'); // 'wyników'
15019
+ ```
15020
+
15021
+ ```ts
15022
+ function mkPluralPl(count: number, one: string, few: string, many: string): string
15023
+ ```
15024
+
15025
+ ### provideMkI18nPl (function)
15026
+
15027
+ Import: `import { provideMkI18nPl } from '@mk-kit/ui/locales/pl';`
15028
+
15029
+ Provides the Polish strings — `MK_PL_I18N` with any `overrides`
15030
+ merged on top (deep for `dateNames`, `blockEditor` and `validation`, like
15031
+ `provideMkI18n`).
15032
+
15033
+ ```ts
15034
+ bootstrapApplication(App, {
15035
+ providers: [provideMkI18nPl({ noData: 'Nic tu nie ma' })],
15036
+ });
15037
+ ```
15038
+
15039
+ ```ts
15040
+ function provideMkI18nPl(overrides?: MkI18nOverrides): Provider
15041
+ ```
15042
+
15043
+ ### MK_PL_BLOCK_EDITOR (const)
15044
+
15045
+ Import: `import { MK_PL_BLOCK_EDITOR } from '@mk-kit/ui/locales/pl';`
15046
+
15047
+ Polish strings of the block editor's chrome.
15048
+
15049
+ ```ts
15050
+ const MK_PL_BLOCK_EDITOR: MkBlockEditorStrings;
15051
+ ```
15052
+
15053
+ ### MK_PL_DATE_NAMES (const)
15054
+
15055
+ Import: `import { MK_PL_DATE_NAMES } from '@mk-kit/ui/locales/pl';`
15056
+
15057
+ Polish month and weekday names (Sunday-first, lowercase as in `Intl`).
15058
+
15059
+ ```ts
15060
+ const MK_PL_DATE_NAMES: MkDateNames;
15061
+ ```
15062
+
15063
+ ### MK_PL_I18N (const)
15064
+
15065
+ Import: `import { MK_PL_I18N } from '@mk-kit/ui/locales/pl';`
15066
+
15067
+ The complete Polish string map — every key of `MkI18nStrings`,
15068
+ `locale: 'pl-PL'` and `currency: 'PLN'` for the formatting pipes.
15069
+ Provide it whole with `provideMkI18nPl`, or pass it as the base of
15070
+ `provideMkI18n(overrides, MK_PL_I18N)`.
15071
+
15072
+ ```ts
15073
+ const MK_PL_I18N: MkI18nStrings;
15074
+ ```
15075
+
15076
+ ### MK_PL_VALIDATION (const)
15077
+
15078
+ Import: `import { MK_PL_VALIDATION } from '@mk-kit/ui/locales/pl';`
15079
+
15080
+ Polish validation messages rendered by `mk-form-field`.
15081
+
15082
+ ```ts
15083
+ const MK_PL_VALIDATION: MkValidationStrings;
15084
+ ```
15085
+
14975
15086
  ## @mk-kit/ui/testing
14976
15087
 
14977
15088
  23 exports. `import { … } from '@mk-kit/ui/testing';`
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.44.0. 170 components, 41 directives, 16 services and 130 helper functions across 23 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.45.0. 170 components, 41 directives, 16 services and 133 helper functions across 24 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.44.0",
3
+ "version": "0.45.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",