@ng-primitives/mcp 0.128.5 → 0.128.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-primitives/mcp",
3
- "version": "0.128.5",
3
+ "version": "0.128.7",
4
4
  "description": "MCP server for Angular Primitives - headless UI library",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -1757,7 +1757,7 @@
1757
1757
  {
1758
1758
  "name": "ngpFileDropzoneDisabled",
1759
1759
  "type": "boolean",
1760
- "description": "Whether the file upload is disabled.",
1760
+ "description": "Whether the file dropzone is disabled.",
1761
1761
  "isRequired": false,
1762
1762
  "defaultValue": "false"
1763
1763
  }
@@ -2228,16 +2228,6 @@
2228
2228
  }
2229
2229
  ]
2230
2230
  },
2231
- "NgpMenuTriggerGroup": {
2232
- "name": "NgpMenuTriggerGroup",
2233
- "description": "The `NgpMenuTriggerGroup` directive wraps a set of sibling `NgpMenuTrigger` elements,\nsuch as the items of a vertical navigation menu, so that moving the pointer from an\nopen menu's trigger toward the menu itself does not accidentally open a sibling\ntrigger it passes over on the way.",
2234
- "selector": "[ngpMenuTriggerGroup]",
2235
- "exportAs": [
2236
- "ngpMenuTriggerGroup"
2237
- ],
2238
- "inputs": [],
2239
- "outputs": []
2240
- },
2241
2231
  "NgpMenuItemRadioGroup": {
2242
2232
  "name": "NgpMenuItemRadioGroup",
2243
2233
  "description": "The `NgpMenuItemRadioGroup` directive represents a group of radio menu items.",
@@ -2268,6 +2258,24 @@
2268
2258
  }
2269
2259
  ]
2270
2260
  },
2261
+ "NgpMenuTriggerGroup": {
2262
+ "name": "NgpMenuTriggerGroup",
2263
+ "description": "The `NgpMenuTriggerGroup` directive wraps a set of sibling `NgpMenuTrigger` elements,\nsuch as the items of a vertical navigation menu, so that moving the pointer from an\nopen menu's trigger toward the menu itself does not accidentally open a sibling\ntrigger it passes over on the way.",
2264
+ "selector": "[ngpMenuTriggerGroup]",
2265
+ "exportAs": [
2266
+ "ngpMenuTriggerGroup"
2267
+ ],
2268
+ "inputs": [
2269
+ {
2270
+ "name": "ngpMenuTriggerGroupSiblingTracking",
2271
+ "type": "boolean",
2272
+ "description": "Whether the group coordinates hover between its sibling triggers. Turn it off\nwhen the siblings no longer sit between a trigger and its menu - a collapsed\nicon rail, say, where the pointer reaches the panel without crossing anything,\nso the coordination only costs the siblings their responsiveness. Takes effect\nfrom the next transit; one already in flight finishes as it started.",
2273
+ "isRequired": false,
2274
+ "defaultValue": "true"
2275
+ }
2276
+ ],
2277
+ "outputs": []
2278
+ },
2271
2279
  "NgpMenuItem": {
2272
2280
  "name": "NgpMenuItem",
2273
2281
  "description": "The `NgpMenuItem` directive represents a menu item.",
@@ -4729,6 +4737,70 @@
4729
4737
  }
4730
4738
  ]
4731
4739
  },
4740
+ "NgpFileDropzoneConfig": {
4741
+ "name": "NgpFileDropzoneConfig",
4742
+ "properties": [
4743
+ {
4744
+ "name": "fileTypes",
4745
+ "type": "string[] | undefined",
4746
+ "description": "The accepted file types, either file extensions (e.g. `.jpg`) or MIME types (e.g. `image/jpeg`).",
4747
+ "default": "undefined"
4748
+ },
4749
+ {
4750
+ "name": "multiple",
4751
+ "type": "boolean",
4752
+ "description": "Whether to allow multiple files to be selected.",
4753
+ "default": "false"
4754
+ },
4755
+ {
4756
+ "name": "directory",
4757
+ "type": "boolean",
4758
+ "description": "Whether to allow the user to select directories.",
4759
+ "default": "false"
4760
+ },
4761
+ {
4762
+ "name": "disabled",
4763
+ "type": "boolean",
4764
+ "description": "Whether the file dropzone is disabled.",
4765
+ "default": "false"
4766
+ }
4767
+ ]
4768
+ },
4769
+ "NgpFileUploadConfig": {
4770
+ "name": "NgpFileUploadConfig",
4771
+ "properties": [
4772
+ {
4773
+ "name": "fileTypes",
4774
+ "type": "string[] | undefined",
4775
+ "description": "The accepted file types, either file extensions (e.g. `.jpg`) or MIME types (e.g. `image/jpeg`).",
4776
+ "default": "undefined"
4777
+ },
4778
+ {
4779
+ "name": "multiple",
4780
+ "type": "boolean",
4781
+ "description": "Whether to allow multiple files to be selected.",
4782
+ "default": "false"
4783
+ },
4784
+ {
4785
+ "name": "directory",
4786
+ "type": "boolean",
4787
+ "description": "Whether to allow the user to select directories.",
4788
+ "default": "false"
4789
+ },
4790
+ {
4791
+ "name": "dragAndDrop",
4792
+ "type": "boolean",
4793
+ "description": "Whether drag-and-drop is enabled.",
4794
+ "default": "true"
4795
+ },
4796
+ {
4797
+ "name": "disabled",
4798
+ "type": "boolean",
4799
+ "description": "Whether the file upload is disabled.",
4800
+ "default": "false"
4801
+ }
4802
+ ]
4803
+ },
4732
4804
  "NgpInteractionsConfig": {
4733
4805
  "name": "NgpInteractionsConfig",
4734
4806
  "properties": [
@@ -840,7 +840,11 @@
840
840
  "ngpFileUpload",
841
841
  "NgpFileUploadProps",
842
842
  "NgpFileUploadState",
843
- "provideFileUploadState"
843
+ "provideFileUploadState",
844
+ "NgpFileDropzoneConfig",
845
+ "provideFileDropzoneConfig",
846
+ "NgpFileUploadConfig",
847
+ "provideFileUploadConfig"
844
848
  ],
845
849
  "hasSecondaryEntryPoint": true,
846
850
  "category": "form",
@@ -851,6 +855,11 @@
851
855
  "name": "example-0",
852
856
  "code": "<button\n ngpFileUpload\n (ngpFileUploadSelected)=\"onFilesSelected($event)\"\n (ngpFileUploadCanceled)=\"onCancel()\"\n></button>",
853
857
  "description": "Usage"
858
+ },
859
+ {
860
+ "name": "example-1",
861
+ "code": "import { provideFileDropzoneConfig, provideFileUploadConfig } from 'ng-primitives/file-upload';\n\nbootstrapApplication(AppComponent, {\n providers: [\n provideFileUploadConfig({\n fileTypes: ['image/png', '.jpg'],\n multiple: true,\n dragAndDrop: false,\n }),\n provideFileDropzoneConfig({\n fileTypes: ['image/png', '.jpg'],\n multiple: true,\n }),\n ],\n});",
862
+ "description": "Global Configuration"
854
863
  }
855
864
  ],
856
865
  "reusableComponent": {
@@ -1187,6 +1196,11 @@
1187
1196
  },
1188
1197
  {
1189
1198
  "name": "example-7",
1199
+ "code": "<nav ngpMenuTriggerGroup [ngpMenuTriggerGroupSiblingTracking]=\"!collapsed()\">\n <!-- triggers -->\n</nav>",
1200
+ "description": "Grouping Root Triggers"
1201
+ },
1202
+ {
1203
+ "name": "example-8",
1190
1204
  "code": "import { provideMenuConfig } from 'ng-primitives/menu';\n\nbootstrapApplication(AppComponent, {\n providers: [\n provideMenuConfig({\n offset: 4,\n placement: 'top',\n flip: true,\n container: document.body,\n scrollBehavior: 'reposition',\n cooldown: 0,\n }),\n ],\n});",
1191
1205
  "description": "Global Configuration"
1192
1206
  }