@@ -300,6 +300,21 @@ export namespace Components {
300300 */
301301 "colorBoxHeight" : string ;
302302 }
303+ interface DnnContextMenu {
304+ /**
305+ * Closes the menu.
306+ */
307+ "close" : ( ) => Promise < void > ;
308+ /**
309+ * If true, the menu will close when an item is clicked.
310+ * @default false
311+ */
312+ "closeOnClick" : boolean ;
313+ /**
314+ * Opens the menu using a pointer event.
315+ */
316+ "open" : ( event : PointerEvent ) => Promise < void > ;
317+ }
303318 interface DnnDropzone {
304319 /**
305320 * If true, will allow the user to take a snapshot using the device camera. (only works over https).
@@ -1066,6 +1081,12 @@ declare global {
10661081 prototype : HTMLDnnColorPickerElement ;
10671082 new ( ) : HTMLDnnColorPickerElement ;
10681083 } ;
1084+ interface HTMLDnnContextMenuElement extends Components . DnnContextMenu , HTMLStencilElement {
1085+ }
1086+ var HTMLDnnContextMenuElement : {
1087+ prototype : HTMLDnnContextMenuElement ;
1088+ new ( ) : HTMLDnnContextMenuElement ;
1089+ } ;
10691090 interface HTMLDnnDropzoneElementEventMap {
10701091 "filesSelected" : File [ ] ;
10711092 }
@@ -1377,6 +1398,7 @@ declare global {
13771398 "dnn-collapsible" : HTMLDnnCollapsibleElement ;
13781399 "dnn-color-input" : HTMLDnnColorInputElement ;
13791400 "dnn-color-picker" : HTMLDnnColorPickerElement ;
1401+ "dnn-context-menu" : HTMLDnnContextMenuElement ;
13801402 "dnn-dropzone" : HTMLDnnDropzoneElement ;
13811403 "dnn-example-form" : HTMLDnnExampleFormElement ;
13821404 "dnn-fieldset" : HTMLDnnFieldsetElement ;
@@ -1733,6 +1755,13 @@ declare namespace LocalJSX {
17331755 */
17341756 "onColorChanged" ?: ( event : DnnColorPickerCustomEvent < ColorInfo > ) => void ;
17351757 }
1758+ interface DnnContextMenu {
1759+ /**
1760+ * If true, the menu will close when an item is clicked.
1761+ * @default false
1762+ */
1763+ "closeOnClick" ?: boolean ;
1764+ }
17361765 interface DnnDropzone {
17371766 /**
17381767 * If true, will allow the user to take a snapshot using the device camera. (only works over https).
@@ -2392,6 +2421,9 @@ declare namespace LocalJSX {
23922421 "color" : string ;
23932422 "colorBoxHeight" : string ;
23942423 }
2424+ interface DnnContextMenuAttributes {
2425+ "closeOnClick" : boolean ;
2426+ }
23952427 interface DnnDropzoneAttributes {
23962428 "allowCameraMode" : boolean ;
23972429 "captureQuality" : number ;
@@ -2515,6 +2547,7 @@ declare namespace LocalJSX {
25152547 "dnn-collapsible" : Omit < DnnCollapsible , keyof DnnCollapsibleAttributes > & { [ K in keyof DnnCollapsible & keyof DnnCollapsibleAttributes ] ?: DnnCollapsible [ K ] } & { [ K in keyof DnnCollapsible & keyof DnnCollapsibleAttributes as `attr:${K } `] ?: DnnCollapsibleAttributes [ K ] } & { [ K in keyof DnnCollapsible & keyof DnnCollapsibleAttributes as `prop:${K } `] ?: DnnCollapsible [ K ] } ;
25162548 "dnn-color-input" : Omit < DnnColorInput , keyof DnnColorInputAttributes > & { [ K in keyof DnnColorInput & keyof DnnColorInputAttributes ] ?: DnnColorInput [ K ] } & { [ K in keyof DnnColorInput & keyof DnnColorInputAttributes as `attr:${K } `] ?: DnnColorInputAttributes [ K ] } & { [ K in keyof DnnColorInput & keyof DnnColorInputAttributes as `prop:${K } `] ?: DnnColorInput [ K ] } ;
25172549 "dnn-color-picker" : Omit < DnnColorPicker , keyof DnnColorPickerAttributes > & { [ K in keyof DnnColorPicker & keyof DnnColorPickerAttributes ] ?: DnnColorPicker [ K ] } & { [ K in keyof DnnColorPicker & keyof DnnColorPickerAttributes as `attr:${K } `] ?: DnnColorPickerAttributes [ K ] } & { [ K in keyof DnnColorPicker & keyof DnnColorPickerAttributes as `prop:${K } `] ?: DnnColorPicker [ K ] } ;
2550+ "dnn-context-menu" : Omit < DnnContextMenu , keyof DnnContextMenuAttributes > & { [ K in keyof DnnContextMenu & keyof DnnContextMenuAttributes ] ?: DnnContextMenu [ K ] } & { [ K in keyof DnnContextMenu & keyof DnnContextMenuAttributes as `attr:${K } `] ?: DnnContextMenuAttributes [ K ] } & { [ K in keyof DnnContextMenu & keyof DnnContextMenuAttributes as `prop:${K } `] ?: DnnContextMenu [ K ] } ;
25182551 "dnn-dropzone" : Omit < DnnDropzone , keyof DnnDropzoneAttributes > & { [ K in keyof DnnDropzone & keyof DnnDropzoneAttributes ] ?: DnnDropzone [ K ] } & { [ K in keyof DnnDropzone & keyof DnnDropzoneAttributes as `attr:${K } `] ?: DnnDropzoneAttributes [ K ] } & { [ K in keyof DnnDropzone & keyof DnnDropzoneAttributes as `prop:${K } `] ?: DnnDropzone [ K ] } ;
25192552 "dnn-example-form" : DnnExampleForm ;
25202553 "dnn-fieldset" : Omit < DnnFieldset , keyof DnnFieldsetAttributes > & { [ K in keyof DnnFieldset & keyof DnnFieldsetAttributes ] ?: DnnFieldset [ K ] } & { [ K in keyof DnnFieldset & keyof DnnFieldsetAttributes as `attr:${K } `] ?: DnnFieldsetAttributes [ K ] } & { [ K in keyof DnnFieldset & keyof DnnFieldsetAttributes as `prop:${K } `] ?: DnnFieldset [ K ] } ;
@@ -2554,6 +2587,7 @@ declare module "@stencil/core" {
25542587 * Color Picker for Dnn
25552588 */
25562589 "dnn-color-picker" : LocalJSX . IntrinsicElements [ "dnn-color-picker" ] & JSXBase . HTMLAttributes < HTMLDnnColorPickerElement > ;
2590+ "dnn-context-menu" : LocalJSX . IntrinsicElements [ "dnn-context-menu" ] & JSXBase . HTMLAttributes < HTMLDnnContextMenuElement > ;
25572591 "dnn-dropzone" : LocalJSX . IntrinsicElements [ "dnn-dropzone" ] & JSXBase . HTMLAttributes < HTMLDnnDropzoneElement > ;
25582592 /**
25592593 * Do not use this component in production, it is meant for testing purposes only and is not distributed in the production package.
0 commit comments