@ng-primitives/mcp 0.128.4 → 0.128.6
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
|
@@ -231,6 +231,12 @@
|
|
|
231
231
|
"type": "boolean",
|
|
232
232
|
"description": "Whether the dictation button should be disabled.",
|
|
233
233
|
"isRequired": false
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "ngpPromptComposerDictationLanguage",
|
|
237
|
+
"type": "string | undefined",
|
|
238
|
+
"description": "The BCP 47 language tag dictation transcribes in, e.g. `en-US` or `es-ES`.\nDefaults to the page's own language: the document's `lang` attribute, then the browser's.",
|
|
239
|
+
"isRequired": false
|
|
234
240
|
}
|
|
235
241
|
],
|
|
236
242
|
"outputs": []
|
|
@@ -1751,7 +1757,7 @@
|
|
|
1751
1757
|
{
|
|
1752
1758
|
"name": "ngpFileDropzoneDisabled",
|
|
1753
1759
|
"type": "boolean",
|
|
1754
|
-
"description": "Whether the file
|
|
1760
|
+
"description": "Whether the file dropzone is disabled.",
|
|
1755
1761
|
"isRequired": false,
|
|
1756
1762
|
"defaultValue": "false"
|
|
1757
1763
|
}
|
|
@@ -2252,6 +2258,24 @@
|
|
|
2252
2258
|
}
|
|
2253
2259
|
]
|
|
2254
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
|
+
},
|
|
2255
2279
|
"NgpMenuItem": {
|
|
2256
2280
|
"name": "NgpMenuItem",
|
|
2257
2281
|
"description": "The `NgpMenuItem` directive represents a menu item.",
|
|
@@ -3291,6 +3315,13 @@
|
|
|
3291
3315
|
"description": "Define the cooldown duration in milliseconds.\nWhen moving from one popover to another within this duration,\nthe showDelay is skipped for the new popover.\n@default 0",
|
|
3292
3316
|
"isRequired": false,
|
|
3293
3317
|
"defaultValue": "0"
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
"name": "ngpPopoverTriggerKeepMounted",
|
|
3321
|
+
"type": "boolean",
|
|
3322
|
+
"description": "When true, hiding the popover removes its content from the DOM but keeps the\nunderlying component/view instance alive in memory instead of destroying it - a\nlater show reuses the same instance rather than creating a new one, so the content\nis not re-instantiated and any one-time setup (e.g. a network fetch) is not repeated.\nThe kept-alive view stays attached to change detection while it is hidden.\n@default false",
|
|
3323
|
+
"isRequired": false,
|
|
3324
|
+
"defaultValue": "false"
|
|
3294
3325
|
}
|
|
3295
3326
|
],
|
|
3296
3327
|
"outputs": [
|
|
@@ -4544,6 +4575,17 @@
|
|
|
4544
4575
|
}
|
|
4545
4576
|
]
|
|
4546
4577
|
},
|
|
4578
|
+
"NgpAiConfig": {
|
|
4579
|
+
"name": "NgpAiConfig",
|
|
4580
|
+
"properties": [
|
|
4581
|
+
{
|
|
4582
|
+
"name": "dictationLanguage",
|
|
4583
|
+
"type": "string | undefined",
|
|
4584
|
+
"description": "The BCP 47 language tag dictation transcribes in, e.g. `en-US` or `es-ES`. When undefined the page's own language is used: the document's `lang` attribute, falling back to the browser's language.",
|
|
4585
|
+
"default": "undefined"
|
|
4586
|
+
}
|
|
4587
|
+
]
|
|
4588
|
+
},
|
|
4547
4589
|
"NgpAvatarConfig": {
|
|
4548
4590
|
"name": "NgpAvatarConfig",
|
|
4549
4591
|
"properties": [
|
|
@@ -4695,6 +4737,70 @@
|
|
|
4695
4737
|
}
|
|
4696
4738
|
]
|
|
4697
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
|
+
},
|
|
4698
4804
|
"NgpInteractionsConfig": {
|
|
4699
4805
|
"name": "NgpInteractionsConfig",
|
|
4700
4806
|
"properties": [
|
|
@@ -4975,6 +5081,12 @@
|
|
|
4975
5081
|
"type": "number",
|
|
4976
5082
|
"description": "Cooldown duration in milliseconds. When moving from one popover to another within this duration, the showDelay is skipped for the new popover.",
|
|
4977
5083
|
"default": "0"
|
|
5084
|
+
},
|
|
5085
|
+
{
|
|
5086
|
+
"name": "keepMounted",
|
|
5087
|
+
"type": "boolean",
|
|
5088
|
+
"description": "When true, hiding the popover removes its content from the DOM but keeps the underlying component/view instance alive in memory instead of destroying it - a later show reuses the same instance rather than creating a new one, so the content is not re-instantiated and any one-time setup (e.g. a network fetch) is not repeated. The kept-alive view stays attached to change detection while it is hidden.",
|
|
5089
|
+
"default": "false"
|
|
4978
5090
|
}
|
|
4979
5091
|
]
|
|
4980
5092
|
},
|
|
@@ -5106,6 +5218,12 @@
|
|
|
5106
5218
|
"type": "string",
|
|
5107
5219
|
"description": "Overlay type identifier for cooldown grouping. When set, overlays of the same type share a cooldown period. For example, 'tooltip' ensures quickly moving between tooltips shows the second one immediately without the showDelay."
|
|
5108
5220
|
},
|
|
5221
|
+
{
|
|
5222
|
+
"name": "keepMounted",
|
|
5223
|
+
"type": "Signal<boolean>",
|
|
5224
|
+
"description": "When true, hiding the overlay removes its content from the DOM but keeps the underlying component/view instance alive in memory instead of destroying it - a later `show()` re-inserts the same instance rather than creating a new one, so the content is not re-instantiated and any one-time setup is not repeated. The kept-alive view stays attached to change detection while it is hidden. Read on each hide, so a trigger can hand over an input signal and let it change.",
|
|
5225
|
+
"default": "false"
|
|
5226
|
+
},
|
|
5109
5227
|
{
|
|
5110
5228
|
"name": "cooldown",
|
|
5111
5229
|
"type": "number",
|
|
@@ -137,7 +137,9 @@
|
|
|
137
137
|
"ngpThreadMessage",
|
|
138
138
|
"provideThreadMessageState",
|
|
139
139
|
"injectThreadMessageState",
|
|
140
|
-
"type NgpThreadMessageState"
|
|
140
|
+
"type NgpThreadMessageState",
|
|
141
|
+
"NgpAiConfig",
|
|
142
|
+
"provideAiConfig"
|
|
141
143
|
],
|
|
142
144
|
"hasSecondaryEntryPoint": true,
|
|
143
145
|
"category": "utility",
|
|
@@ -838,7 +840,11 @@
|
|
|
838
840
|
"ngpFileUpload",
|
|
839
841
|
"NgpFileUploadProps",
|
|
840
842
|
"NgpFileUploadState",
|
|
841
|
-
"provideFileUploadState"
|
|
843
|
+
"provideFileUploadState",
|
|
844
|
+
"NgpFileDropzoneConfig",
|
|
845
|
+
"provideFileDropzoneConfig",
|
|
846
|
+
"NgpFileUploadConfig",
|
|
847
|
+
"provideFileUploadConfig"
|
|
842
848
|
],
|
|
843
849
|
"hasSecondaryEntryPoint": true,
|
|
844
850
|
"category": "form",
|
|
@@ -849,6 +855,11 @@
|
|
|
849
855
|
"name": "example-0",
|
|
850
856
|
"code": "<button\n ngpFileUpload\n (ngpFileUploadSelected)=\"onFilesSelected($event)\"\n (ngpFileUploadCanceled)=\"onCancel()\"\n></button>",
|
|
851
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"
|
|
852
863
|
}
|
|
853
864
|
],
|
|
854
865
|
"reusableComponent": {
|
|
@@ -1131,7 +1142,14 @@
|
|
|
1131
1142
|
"injectSubmenuTriggerState",
|
|
1132
1143
|
"NgpSubmenuTriggerProps",
|
|
1133
1144
|
"NgpSubmenuTriggerState",
|
|
1134
|
-
"provideSubmenuTriggerState"
|
|
1145
|
+
"provideSubmenuTriggerState",
|
|
1146
|
+
"NgpMenuTriggerGroup",
|
|
1147
|
+
"NgpMenuTriggerGroupStateToken",
|
|
1148
|
+
"ngpMenuTriggerGroup",
|
|
1149
|
+
"injectMenuTriggerGroupState",
|
|
1150
|
+
"provideMenuTriggerGroupState",
|
|
1151
|
+
"type NgpMenuTriggerGroupState",
|
|
1152
|
+
"type NgpMenuTriggerGroupProps"
|
|
1135
1153
|
],
|
|
1136
1154
|
"hasSecondaryEntryPoint": true,
|
|
1137
1155
|
"category": "navigation",
|
|
@@ -1143,7 +1161,7 @@
|
|
|
1143
1161
|
"examples": [
|
|
1144
1162
|
{
|
|
1145
1163
|
"name": "example-0",
|
|
1146
|
-
"code": "import {\n NgpMenu,\n NgpMenuItem,\n NgpMenuTrigger,\n NgpSubmenuTrigger,\n NgpMenuItemCheckbox,\n NgpMenuItemRadioGroup,\n NgpMenuItemRadio,\n NgpMenuItemIndicator,\n} from 'ng-primitives/menu';",
|
|
1164
|
+
"code": "import {\n NgpMenu,\n NgpMenuItem,\n NgpMenuTrigger,\n NgpMenuTriggerGroup,\n NgpSubmenuTrigger,\n NgpMenuItemCheckbox,\n NgpMenuItemRadioGroup,\n NgpMenuItemRadio,\n NgpMenuItemIndicator,\n} from 'ng-primitives/menu';",
|
|
1147
1165
|
"description": "Import"
|
|
1148
1166
|
},
|
|
1149
1167
|
{
|
|
@@ -1178,6 +1196,11 @@
|
|
|
1178
1196
|
},
|
|
1179
1197
|
{
|
|
1180
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",
|
|
1181
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});",
|
|
1182
1205
|
"description": "Global Configuration"
|
|
1183
1206
|
}
|
|
@@ -1558,7 +1581,7 @@
|
|
|
1558
1581
|
},
|
|
1559
1582
|
{
|
|
1560
1583
|
"name": "example-5",
|
|
1561
|
-
"code": "import { providePopoverConfig } from 'ng-primitives/popover';\n\nbootstrapApplication(AppComponent, {\n providers: [\n providePopoverConfig({\n offset: 4,\n placement: 'top',\n showDelay: 0,\n hideDelay: 0,\n flip: true,\n container: document.body,\n closeOnOutsideClick: true,\n scrollBehavior: 'reposition',\n cooldown: 0,\n }),\n ],\n});",
|
|
1584
|
+
"code": "import { providePopoverConfig } from 'ng-primitives/popover';\n\nbootstrapApplication(AppComponent, {\n providers: [\n providePopoverConfig({\n offset: 4,\n placement: 'top',\n showDelay: 0,\n hideDelay: 0,\n flip: true,\n container: document.body,\n closeOnOutsideClick: true,\n scrollBehavior: 'reposition',\n cooldown: 0,\n keepMounted: false,\n }),\n ],\n});",
|
|
1562
1585
|
"description": "Global Configuration"
|
|
1563
1586
|
}
|
|
1564
1587
|
],
|
|
@@ -1587,6 +1610,7 @@
|
|
|
1587
1610
|
"NgpOverlayConfig",
|
|
1588
1611
|
"NgpOverlayContent",
|
|
1589
1612
|
"NgpOverlayTemplateContext",
|
|
1613
|
+
"OverlayHideImmediateOptions",
|
|
1590
1614
|
"NgpOverlayCooldownManager",
|
|
1591
1615
|
"dismissGuardAttribute",
|
|
1592
1616
|
"NgpDismissGuard",
|
|
@@ -1606,6 +1630,8 @@
|
|
|
1606
1630
|
"createPortal",
|
|
1607
1631
|
"NgpComponentPortal",
|
|
1608
1632
|
"NgpPortal",
|
|
1633
|
+
"NgpPortalAttachOptions",
|
|
1634
|
+
"NgpPortalDetachOptions",
|
|
1609
1635
|
"NgpTemplatePortal",
|
|
1610
1636
|
"NgpPosition",
|
|
1611
1637
|
"NgpBoundary",
|