@ng-primitives/mcp 0.128.3 → 0.128.5
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": []
|
|
@@ -986,7 +992,7 @@
|
|
|
986
992
|
},
|
|
987
993
|
{
|
|
988
994
|
"name": "ngpComboboxDropdownPlacement",
|
|
989
|
-
"type": "
|
|
995
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
990
996
|
"description": "The position of the dropdown.",
|
|
991
997
|
"isRequired": false,
|
|
992
998
|
"defaultValue": "'bottom'"
|
|
@@ -1203,7 +1209,7 @@
|
|
|
1203
1209
|
},
|
|
1204
1210
|
{
|
|
1205
1211
|
"name": "ngpContextMenuSubmenuTriggerPlacement",
|
|
1206
|
-
"type": "
|
|
1212
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
1207
1213
|
"description": "Define the placement of the submenu relative to the trigger.\n@default 'right-start'",
|
|
1208
1214
|
"isRequired": false,
|
|
1209
1215
|
"defaultValue": "'right-start'"
|
|
@@ -2222,6 +2228,16 @@
|
|
|
2222
2228
|
}
|
|
2223
2229
|
]
|
|
2224
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
|
+
},
|
|
2225
2241
|
"NgpMenuItemRadioGroup": {
|
|
2226
2242
|
"name": "NgpMenuItemRadioGroup",
|
|
2227
2243
|
"description": "The `NgpMenuItemRadioGroup` directive represents a group of radio menu items.",
|
|
@@ -2389,7 +2405,7 @@
|
|
|
2389
2405
|
},
|
|
2390
2406
|
{
|
|
2391
2407
|
"name": "ngpSubmenuTriggerPlacement",
|
|
2392
|
-
"type": "
|
|
2408
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
2393
2409
|
"description": "Define the placement of the menu relative to the trigger.\n@default 'right-start'",
|
|
2394
2410
|
"isRequired": false,
|
|
2395
2411
|
"defaultValue": "'right-start'"
|
|
@@ -2441,7 +2457,7 @@
|
|
|
2441
2457
|
},
|
|
2442
2458
|
{
|
|
2443
2459
|
"name": "ngpMenuTriggerPlacement",
|
|
2444
|
-
"type": "
|
|
2460
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
2445
2461
|
"description": "Define the placement of the menu relative to the trigger.\n@default 'bottom-start'",
|
|
2446
2462
|
"isRequired": false,
|
|
2447
2463
|
"defaultValue": "'bottom-start'"
|
|
@@ -2765,7 +2781,7 @@
|
|
|
2765
2781
|
},
|
|
2766
2782
|
{
|
|
2767
2783
|
"name": "ngpNavigationMenuTriggerPlacement",
|
|
2768
|
-
"type": "
|
|
2784
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
2769
2785
|
"description": "The placement of the content relative to the trigger.\n@default 'bottom-start'",
|
|
2770
2786
|
"isRequired": false,
|
|
2771
2787
|
"defaultValue": "'bottom-start'"
|
|
@@ -3198,7 +3214,7 @@
|
|
|
3198
3214
|
},
|
|
3199
3215
|
{
|
|
3200
3216
|
"name": "ngpPopoverTriggerPlacement",
|
|
3201
|
-
"type": "
|
|
3217
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
3202
3218
|
"description": "Define the placement of the popover relative to the trigger.\n@default 'top'",
|
|
3203
3219
|
"isRequired": false,
|
|
3204
3220
|
"defaultValue": "'bottom'"
|
|
@@ -3291,6 +3307,13 @@
|
|
|
3291
3307
|
"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
3308
|
"isRequired": false,
|
|
3293
3309
|
"defaultValue": "0"
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"name": "ngpPopoverTriggerKeepMounted",
|
|
3313
|
+
"type": "boolean",
|
|
3314
|
+
"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",
|
|
3315
|
+
"isRequired": false,
|
|
3316
|
+
"defaultValue": "false"
|
|
3294
3317
|
}
|
|
3295
3318
|
],
|
|
3296
3319
|
"outputs": [
|
|
@@ -3735,7 +3758,7 @@
|
|
|
3735
3758
|
},
|
|
3736
3759
|
{
|
|
3737
3760
|
"name": "ngpSelectDropdownPlacement",
|
|
3738
|
-
"type": "
|
|
3761
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
3739
3762
|
"description": "The position of the dropdown.",
|
|
3740
3763
|
"isRequired": false,
|
|
3741
3764
|
"defaultValue": "'bottom'"
|
|
@@ -4410,7 +4433,7 @@
|
|
|
4410
4433
|
},
|
|
4411
4434
|
{
|
|
4412
4435
|
"name": "ngpTooltipTriggerPlacement",
|
|
4413
|
-
"type": "
|
|
4436
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
4414
4437
|
"description": "Define the placement of the tooltip relative to the trigger.\n@default 'top'",
|
|
4415
4438
|
"isRequired": false,
|
|
4416
4439
|
"defaultValue": "'top'"
|
|
@@ -4544,6 +4567,17 @@
|
|
|
4544
4567
|
}
|
|
4545
4568
|
]
|
|
4546
4569
|
},
|
|
4570
|
+
"NgpAiConfig": {
|
|
4571
|
+
"name": "NgpAiConfig",
|
|
4572
|
+
"properties": [
|
|
4573
|
+
{
|
|
4574
|
+
"name": "dictationLanguage",
|
|
4575
|
+
"type": "string | undefined",
|
|
4576
|
+
"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.",
|
|
4577
|
+
"default": "undefined"
|
|
4578
|
+
}
|
|
4579
|
+
]
|
|
4580
|
+
},
|
|
4547
4581
|
"NgpAvatarConfig": {
|
|
4548
4582
|
"name": "NgpAvatarConfig",
|
|
4549
4583
|
"properties": [
|
|
@@ -4560,7 +4594,7 @@
|
|
|
4560
4594
|
"properties": [
|
|
4561
4595
|
{
|
|
4562
4596
|
"name": "placement",
|
|
4563
|
-
"type": "
|
|
4597
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
4564
4598
|
"description": "The default placement for the combobox dropdown.",
|
|
4565
4599
|
"default": "'bottom'"
|
|
4566
4600
|
},
|
|
@@ -4741,7 +4775,7 @@
|
|
|
4741
4775
|
},
|
|
4742
4776
|
{
|
|
4743
4777
|
"name": "placement",
|
|
4744
|
-
"type": "
|
|
4778
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
4745
4779
|
"description": "Define the placement of the menu relative to the trigger.",
|
|
4746
4780
|
"default": "'bottom-start'"
|
|
4747
4781
|
},
|
|
@@ -4824,7 +4858,7 @@
|
|
|
4824
4858
|
},
|
|
4825
4859
|
{
|
|
4826
4860
|
"name": "placement",
|
|
4827
|
-
"type": "
|
|
4861
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
4828
4862
|
"description": "Define the placement of the content relative to the trigger.",
|
|
4829
4863
|
"default": "'bottom-start'"
|
|
4830
4864
|
},
|
|
@@ -4912,7 +4946,7 @@
|
|
|
4912
4946
|
},
|
|
4913
4947
|
{
|
|
4914
4948
|
"name": "placement",
|
|
4915
|
-
"type": "
|
|
4949
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
4916
4950
|
"description": "Define the placement of the popover relative to the trigger.",
|
|
4917
4951
|
"default": "'bottom'"
|
|
4918
4952
|
},
|
|
@@ -4975,6 +5009,12 @@
|
|
|
4975
5009
|
"type": "number",
|
|
4976
5010
|
"description": "Cooldown duration in milliseconds. When moving from one popover to another within this duration, the showDelay is skipped for the new popover.",
|
|
4977
5011
|
"default": "0"
|
|
5012
|
+
},
|
|
5013
|
+
{
|
|
5014
|
+
"name": "keepMounted",
|
|
5015
|
+
"type": "boolean",
|
|
5016
|
+
"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.",
|
|
5017
|
+
"default": "false"
|
|
4978
5018
|
}
|
|
4979
5019
|
]
|
|
4980
5020
|
},
|
|
@@ -5048,7 +5088,7 @@
|
|
|
5048
5088
|
},
|
|
5049
5089
|
{
|
|
5050
5090
|
"name": "strategy",
|
|
5051
|
-
"type": "
|
|
5091
|
+
"type": "'absolute' | 'fixed'",
|
|
5052
5092
|
"description": "Whether the overlay should be positioned with fixed or absolute strategy"
|
|
5053
5093
|
},
|
|
5054
5094
|
{
|
|
@@ -5106,6 +5146,12 @@
|
|
|
5106
5146
|
"type": "string",
|
|
5107
5147
|
"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
5148
|
},
|
|
5149
|
+
{
|
|
5150
|
+
"name": "keepMounted",
|
|
5151
|
+
"type": "Signal<boolean>",
|
|
5152
|
+
"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.",
|
|
5153
|
+
"default": "false"
|
|
5154
|
+
},
|
|
5109
5155
|
{
|
|
5110
5156
|
"name": "cooldown",
|
|
5111
5157
|
"type": "number",
|
|
@@ -5141,7 +5187,7 @@
|
|
|
5141
5187
|
"properties": [
|
|
5142
5188
|
{
|
|
5143
5189
|
"name": "placement",
|
|
5144
|
-
"type": "
|
|
5190
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
5145
5191
|
"description": "The default placement for the select dropdown.",
|
|
5146
5192
|
"default": "'bottom'"
|
|
5147
5193
|
},
|
|
@@ -5333,7 +5379,7 @@
|
|
|
5333
5379
|
},
|
|
5334
5380
|
{
|
|
5335
5381
|
"name": "placement",
|
|
5336
|
-
"type": "
|
|
5382
|
+
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
5337
5383
|
"description": "Define the placement of the tooltip relative to the trigger.",
|
|
5338
5384
|
"default": "'top'"
|
|
5339
5385
|
},
|
|
@@ -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",
|
|
@@ -1131,7 +1133,14 @@
|
|
|
1131
1133
|
"injectSubmenuTriggerState",
|
|
1132
1134
|
"NgpSubmenuTriggerProps",
|
|
1133
1135
|
"NgpSubmenuTriggerState",
|
|
1134
|
-
"provideSubmenuTriggerState"
|
|
1136
|
+
"provideSubmenuTriggerState",
|
|
1137
|
+
"NgpMenuTriggerGroup",
|
|
1138
|
+
"NgpMenuTriggerGroupStateToken",
|
|
1139
|
+
"ngpMenuTriggerGroup",
|
|
1140
|
+
"injectMenuTriggerGroupState",
|
|
1141
|
+
"provideMenuTriggerGroupState",
|
|
1142
|
+
"type NgpMenuTriggerGroupState",
|
|
1143
|
+
"type NgpMenuTriggerGroupProps"
|
|
1135
1144
|
],
|
|
1136
1145
|
"hasSecondaryEntryPoint": true,
|
|
1137
1146
|
"category": "navigation",
|
|
@@ -1143,7 +1152,7 @@
|
|
|
1143
1152
|
"examples": [
|
|
1144
1153
|
{
|
|
1145
1154
|
"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';",
|
|
1155
|
+
"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
1156
|
"description": "Import"
|
|
1148
1157
|
},
|
|
1149
1158
|
{
|
|
@@ -1558,7 +1567,7 @@
|
|
|
1558
1567
|
},
|
|
1559
1568
|
{
|
|
1560
1569
|
"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});",
|
|
1570
|
+
"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
1571
|
"description": "Global Configuration"
|
|
1563
1572
|
}
|
|
1564
1573
|
],
|
|
@@ -1587,6 +1596,7 @@
|
|
|
1587
1596
|
"NgpOverlayConfig",
|
|
1588
1597
|
"NgpOverlayContent",
|
|
1589
1598
|
"NgpOverlayTemplateContext",
|
|
1599
|
+
"OverlayHideImmediateOptions",
|
|
1590
1600
|
"NgpOverlayCooldownManager",
|
|
1591
1601
|
"dismissGuardAttribute",
|
|
1592
1602
|
"NgpDismissGuard",
|
|
@@ -1606,12 +1616,15 @@
|
|
|
1606
1616
|
"createPortal",
|
|
1607
1617
|
"NgpComponentPortal",
|
|
1608
1618
|
"NgpPortal",
|
|
1619
|
+
"NgpPortalAttachOptions",
|
|
1620
|
+
"NgpPortalDetachOptions",
|
|
1609
1621
|
"NgpTemplatePortal",
|
|
1610
1622
|
"NgpPosition",
|
|
1611
1623
|
"NgpBoundary",
|
|
1612
1624
|
"NgpMiddleware",
|
|
1613
1625
|
"NgpPlacement",
|
|
1614
1626
|
"NgpPositioningStrategy",
|
|
1627
|
+
"NgpRect",
|
|
1615
1628
|
"NgpRootBoundary",
|
|
1616
1629
|
"BlockScrollStrategy",
|
|
1617
1630
|
"CloseScrollStrategy",
|