@ng-primitives/mcp 0.99.6 → 0.100.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-primitives/mcp",
3
- "version": "0.99.6",
3
+ "version": "0.100.0",
4
4
  "description": "MCP server for Angular Primitives - headless UI library",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -470,6 +470,12 @@
470
470
  "type": "boolean",
471
471
  "description": "The disabled state of the option.",
472
472
  "isRequired": false
473
+ },
474
+ {
475
+ "name": "ngpComboboxOptionIndex",
476
+ "type": "number | undefined",
477
+ "description": "The index of the option in the combobox. This can be used to define the order of options\nwhen virtual scrolling is used or when the order is not determined by DOM order.",
478
+ "isRequired": false
473
479
  }
474
480
  ],
475
481
  "outputs": []
@@ -523,6 +529,24 @@
523
529
  "type": "string | HTMLElement | null",
524
530
  "description": "The container for the dropdown.",
525
531
  "isRequired": false
532
+ },
533
+ {
534
+ "name": "ngpComboboxScrollToOption",
535
+ "type": "((index: number) => void) | undefined",
536
+ "description": "A function that will scroll the active option into view. This can be overridden\nfor cases such as virtual scrolling where we cannot scroll the option directly because\nit may not be rendered.",
537
+ "isRequired": false
538
+ },
539
+ {
540
+ "name": "ngpComboboxOptionCount",
541
+ "type": "number | undefined",
542
+ "description": "The number of options within the combobox. By default this is calculated based on the\noptions added to the combobox, but in virtual scrolling scenarios the total number of options\nmay be different from the number of rendered options.",
543
+ "isRequired": false
544
+ },
545
+ {
546
+ "name": "ngpComboboxOptions",
547
+ "type": "any[] | undefined",
548
+ "description": "Provide all the option values to the combobox. This is useful for virtual scrolling scenarios\nwhere not all options are rendered in the DOM. This is not an alternative to adding the options\nin the DOM, it is only to provide the combobox with the full list of options. This list should match\nthe order of the options as they would appear in the DOM.",
549
+ "isRequired": false
526
550
  }
527
551
  ],
528
552
  "outputs": [
@@ -1545,7 +1569,7 @@
1545
1569
  },
1546
1570
  {
1547
1571
  "name": "ngpMenuTriggerScrollBehavior",
1548
- "type": "\"block\" | \"reposition\"",
1572
+ "type": "\"reposition\" | \"block\"",
1549
1573
  "description": "Defines how the menu behaves when the window is scrolled.",
1550
1574
  "isRequired": false,
1551
1575
  "defaultValue": "'block'"
@@ -1866,7 +1890,7 @@
1866
1890
  },
1867
1891
  {
1868
1892
  "name": "ngpPopoverTriggerScrollBehavior",
1869
- "type": "\"block\" | \"reposition\"",
1893
+ "type": "\"reposition\" | \"block\"",
1870
1894
  "description": "Defines how the popover behaves when the window is scrolled.",
1871
1895
  "isRequired": false,
1872
1896
  "defaultValue": "'reposition'"
@@ -2179,6 +2203,12 @@
2179
2203
  "type": "boolean",
2180
2204
  "description": "The disabled state of the option.",
2181
2205
  "isRequired": false
2206
+ },
2207
+ {
2208
+ "name": "ngpSelectOptionIndex",
2209
+ "type": "number | undefined",
2210
+ "description": "The index of the option in the list.",
2211
+ "isRequired": false
2182
2212
  }
2183
2213
  ],
2184
2214
  "outputs": []
@@ -2226,6 +2256,18 @@
2226
2256
  "type": "string | HTMLElement | null",
2227
2257
  "description": "The container for the dropdown.",
2228
2258
  "isRequired": false
2259
+ },
2260
+ {
2261
+ "name": "ngpSelectScrollToOption",
2262
+ "type": "((index: number) => void) | undefined",
2263
+ "description": "A function that will scroll the active option into view. This can be overridden\nfor cases such as virtual scrolling where we cannot scroll the option directly because\nit may not be rendered.",
2264
+ "isRequired": false
2265
+ },
2266
+ {
2267
+ "name": "ngpSelectOptions",
2268
+ "type": "any[] | undefined",
2269
+ "description": "Provide all the option values to the select. This is useful for virtual scrolling scenarios\nwhere not all options are rendered in the DOM. This is not an alternative to adding the options\nin the DOM, it is only to provide the select with the full list of options. This list should match\nthe order of the options as they would appear in the DOM.",
2270
+ "isRequired": false
2229
2271
  }
2230
2272
  ],
2231
2273
  "outputs": [