@besaitech/ng-design-system-mcp 0.0.6 → 0.0.7

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 (2) hide show
  1. package/data/docs.json +176 -3
  2. package/package.json +1 -1
package/data/docs.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "libraryVersion": "0.0.33",
3
+ "libraryVersion": "0.0.34",
4
4
  "packageName": "@besaitech/ng-design-system",
5
5
  "devImport": "saitech-design-system",
6
- "generatedAt": "2026-09-01T20:18:31.287Z",
7
- "componentCount": 30,
6
+ "generatedAt": "2026-09-02T09:32:28.288Z",
7
+ "componentCount": 31,
8
8
  "components": [
9
9
  {
10
10
  "className": "SdsAccordion",
@@ -1864,6 +1864,179 @@
1864
1864
  },
1865
1865
  "examples": []
1866
1866
  },
1867
+ {
1868
+ "className": "SdsOtpInput",
1869
+ "selector": "sds-otp-input",
1870
+ "kind": "component",
1871
+ "group": "primitive",
1872
+ "importName": "SdsOtpInput",
1873
+ "description": "Champ de code à usage unique segmenté : une case par caractère, pour les courts codes numériques envoyés par e-mail ou SMS. Saisie automatique de case en case, collage réparti, navigation au clavier. Implémente ControlValueAccessor — utilisable avec les formulaires réactifs ou [(ngModel)] ; la valeur est la chaîne concaténée.",
1874
+ "overviewDescription": "Code à usage unique segmenté : saisie auto, collage, clavier.",
1875
+ "jsdoc": "A segmented one-time-code field: one box per character, for the short numeric codes emailed or\ntexted for sign-in and verification. Implements ControlValueAccessor — bind\n`formControlName`/`[(ngModel)]`; the value is the concatenated string (e.g. `\"483920\"`), and\n{@link completed} fires the moment every box is filled.\n\n<p>Only digits are accepted (`inputMode` is `numeric` by default). Typing auto-advances,\nBackspace steps back and clears, the arrow keys move between boxes, and pasting a whole code\ndistributes it across the boxes from the focused one — so a user can paste `483920` into the\nfirst box and have it land correctly.",
1876
+ "example": null,
1877
+ "cva": true,
1878
+ "usesNgModel": true,
1879
+ "inputs": [
1880
+ {
1881
+ "name": "length",
1882
+ "type": "number",
1883
+ "default": "6",
1884
+ "required": false,
1885
+ "transform": "numberAttribute",
1886
+ "alias": null,
1887
+ "jsdoc": "How many boxes / characters the code has."
1888
+ },
1889
+ {
1890
+ "name": "label",
1891
+ "type": "string",
1892
+ "default": "''",
1893
+ "required": false,
1894
+ "transform": null,
1895
+ "alias": null,
1896
+ "jsdoc": null
1897
+ },
1898
+ {
1899
+ "name": "ariaLabel",
1900
+ "type": "string",
1901
+ "default": "''",
1902
+ "required": false,
1903
+ "transform": null,
1904
+ "alias": null,
1905
+ "jsdoc": "Accessible name for the whole group when no visible [label] is provided."
1906
+ },
1907
+ {
1908
+ "name": "hint",
1909
+ "type": "string",
1910
+ "default": "''",
1911
+ "required": false,
1912
+ "transform": null,
1913
+ "alias": null,
1914
+ "jsdoc": null
1915
+ },
1916
+ {
1917
+ "name": "error",
1918
+ "type": "string",
1919
+ "default": "''",
1920
+ "required": false,
1921
+ "transform": null,
1922
+ "alias": null,
1923
+ "jsdoc": null
1924
+ },
1925
+ {
1926
+ "name": "size",
1927
+ "type": "SdsOtpInputSize",
1928
+ "default": "'md'",
1929
+ "required": false,
1930
+ "transform": null,
1931
+ "alias": null,
1932
+ "jsdoc": null
1933
+ },
1934
+ {
1935
+ "name": "inputMode",
1936
+ "type": "'numeric' | 'text'",
1937
+ "default": "'numeric'",
1938
+ "required": false,
1939
+ "transform": null,
1940
+ "alias": null,
1941
+ "jsdoc": "`numeric` for digit codes (the default); `text` for alphanumeric codes."
1942
+ },
1943
+ {
1944
+ "name": "disabled",
1945
+ "type": "boolean",
1946
+ "default": "false",
1947
+ "required": false,
1948
+ "transform": "booleanAttribute",
1949
+ "alias": null,
1950
+ "jsdoc": null
1951
+ },
1952
+ {
1953
+ "name": "autoFocus",
1954
+ "type": "boolean",
1955
+ "default": "false",
1956
+ "required": false,
1957
+ "transform": "booleanAttribute",
1958
+ "alias": null,
1959
+ "jsdoc": "Focus the first box on first render."
1960
+ },
1961
+ {
1962
+ "name": "cellLabel",
1963
+ "type": "string",
1964
+ "default": "'Chiffre'",
1965
+ "required": false,
1966
+ "transform": null,
1967
+ "alias": null,
1968
+ "jsdoc": "Accessible name for an individual box, suffixed with its 1-based position (\"Digit 1\", \"Digit\n2\", …). French default so existing consumers are unchanged; translate it in an app serving more\nthan one language, since each box is an icon-less control whose only name this is."
1969
+ }
1970
+ ],
1971
+ "outputs": [
1972
+ {
1973
+ "name": "completed",
1974
+ "type": "string",
1975
+ "fromModel": false
1976
+ }
1977
+ ],
1978
+ "exportedTypes": [
1979
+ {
1980
+ "name": "SdsOtpInputSize",
1981
+ "kind": "union",
1982
+ "body": "'md' | 'lg'"
1983
+ }
1984
+ ],
1985
+ "projectionSlots": [],
1986
+ "hostBindings": {
1987
+ "class": "block"
1988
+ },
1989
+ "examples": [
1990
+ {
1991
+ "sectionTitle": "Basique",
1992
+ "sectionDescription": "Six cases, code numérique.",
1993
+ "code": "<sds-otp-input label=\"Code de vérification\" [(ngModel)]=\"code\" />",
1994
+ "runnableExample": "<sds-otp-input label=\"Code de vérification\" [(ngModel)]=\"code\" />\n <p class=\"text-sm text-ink-soft\">\n Valeur : <span class=\"font-mono font-medium text-ink\">{{ code() || '—' }}</span>\n </p>",
1995
+ "stack": true,
1996
+ "dark": false
1997
+ },
1998
+ {
1999
+ "sectionTitle": "Longueur",
2000
+ "sectionDescription": "Le nombre de cases est réglable.",
2001
+ "code": "<sds-otp-input label=\"Code à 4 chiffres\" [length]=\"4\" />",
2002
+ "runnableExample": "<sds-otp-input label=\"Code à 4 chiffres\" [length]=\"4\" />",
2003
+ "stack": true,
2004
+ "dark": false
2005
+ },
2006
+ {
2007
+ "sectionTitle": "Avec aide",
2008
+ "sectionDescription": null,
2009
+ "code": "<sds-otp-input\n label=\"Entrez le code\"\n hint=\"Nous avons envoyé un code à 6 chiffres à votre adresse e-mail.\"\n/>",
2010
+ "runnableExample": "<sds-otp-input\n label=\"Entrez le code\"\n hint=\"Nous avons envoyé un code à 6 chiffres à votre adresse e-mail.\"\n />",
2011
+ "stack": true,
2012
+ "dark": false
2013
+ },
2014
+ {
2015
+ "sectionTitle": "Erreur",
2016
+ "sectionDescription": null,
2017
+ "code": "<sds-otp-input label=\"Code de vérification\" error=\"Code invalide ou expiré.\" />",
2018
+ "runnableExample": "<sds-otp-input label=\"Code de vérification\" error=\"Code invalide ou expiré.\" />",
2019
+ "stack": true,
2020
+ "dark": false
2021
+ },
2022
+ {
2023
+ "sectionTitle": "Désactivé",
2024
+ "sectionDescription": null,
2025
+ "code": "<sds-otp-input label=\"Code de vérification\" [ngModel]=\"'12'\" disabled />",
2026
+ "runnableExample": "<sds-otp-input label=\"Code de vérification\" [ngModel]=\"'12'\" disabled />",
2027
+ "stack": true,
2028
+ "dark": false
2029
+ },
2030
+ {
2031
+ "sectionTitle": "Événement completed",
2032
+ "sectionDescription": "Émis dès que la dernière case est remplie.",
2033
+ "code": "<sds-otp-input label=\"Code de vérification\" (completed)=\"onCompleted($event)\" />",
2034
+ "runnableExample": "<sds-otp-input label=\"Code de vérification\" (completed)=\"onCompleted($event)\" />\n <p class=\"text-sm text-ink-soft\">\n Dernier code complet :\n <span class=\"font-mono font-medium text-ink\">{{ lastCompleted() || '—' }}</span>\n </p>",
2035
+ "stack": true,
2036
+ "dark": false
2037
+ }
2038
+ ]
2039
+ },
1867
2040
  {
1868
2041
  "className": "SdsPaginator",
1869
2042
  "selector": "sds-paginator",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@besaitech/ng-design-system-mcp",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "MCP server that exposes the @besaitech/ng-design-system Angular component library documentation (API, examples, tokens, icons, setup) to AI coding tools.",
5
5
  "type": "module",
6
6
  "bin": {