@softheon/armature 21.2.4 → 21.2.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
|
@@ -4202,13 +4202,12 @@ declare class SofCompareAddressPipe implements PipeTransform {
|
|
|
4202
4202
|
* `<sof-context-menu></sof-context-menu>`
|
|
4203
4203
|
*/
|
|
4204
4204
|
declare class SofContextComponent {
|
|
4205
|
-
private cdRef;
|
|
4206
4205
|
/** Context menu */
|
|
4207
4206
|
contextMenu: MatMenuTrigger;
|
|
4208
4207
|
/** Search input */
|
|
4209
4208
|
searchInput: ElementRef;
|
|
4210
4209
|
/** List of menu items */
|
|
4211
|
-
menuItems: ContextMenuItem
|
|
4210
|
+
menuItems: Array<ContextMenuItem>;
|
|
4212
4211
|
/** Menu position (x, y) */
|
|
4213
4212
|
position: {
|
|
4214
4213
|
x: string;
|
|
@@ -4216,27 +4215,11 @@ declare class SofContextComponent {
|
|
|
4216
4215
|
};
|
|
4217
4216
|
/** Selected row data */
|
|
4218
4217
|
selectedRowData: any;
|
|
4219
|
-
/** Tooltip text */
|
|
4220
|
-
tooltipText: string;
|
|
4221
|
-
/** Whether tooltip is visible */
|
|
4222
|
-
tooltipVisible: boolean;
|
|
4223
|
-
/** The position of the tooltip */
|
|
4224
|
-
tooltipPosition: {
|
|
4225
|
-
x: string;
|
|
4226
|
-
y: string;
|
|
4227
|
-
};
|
|
4228
|
-
/** The tooltip timer */
|
|
4229
|
-
private tooltipTimer;
|
|
4230
|
-
/**
|
|
4231
|
-
* Constructs the component
|
|
4232
|
-
* @param cdRef The change detector
|
|
4233
|
-
*/
|
|
4234
|
-
constructor(cdRef: ChangeDetectorRef);
|
|
4235
4218
|
/**
|
|
4236
4219
|
* Sets the menu items
|
|
4237
4220
|
* @param items List of context menu items
|
|
4238
4221
|
*/
|
|
4239
|
-
setMenuItems(items: ContextMenuItem
|
|
4222
|
+
setMenuItems(items: Array<ContextMenuItem>): void;
|
|
4240
4223
|
/**
|
|
4241
4224
|
* Shows the context menu at the mouse position
|
|
4242
4225
|
* @param event Mouse event
|
|
@@ -4258,20 +4241,10 @@ declare class SofContextComponent {
|
|
|
4258
4241
|
* @param item Clicked menu item
|
|
4259
4242
|
*/
|
|
4260
4243
|
onMenuItemClick(item: ContextMenuItem): void;
|
|
4261
|
-
/**
|
|
4262
|
-
* Shows tooltip when hovering over a menu item
|
|
4263
|
-
* @param event Mouse event
|
|
4264
|
-
* @param description Tooltip text
|
|
4265
|
-
*/
|
|
4266
|
-
showTooltip(event: MouseEvent, description: string): void;
|
|
4267
|
-
/**
|
|
4268
|
-
* Hides the tooltip when the user moves the mouse away
|
|
4269
|
-
*/
|
|
4270
|
-
hideTooltip(): void;
|
|
4271
4244
|
/**
|
|
4272
4245
|
* Hides the menu when clicking outside
|
|
4273
4246
|
*/
|
|
4274
|
-
|
|
4247
|
+
onMenuClose(): void;
|
|
4275
4248
|
/**
|
|
4276
4249
|
* Sets sub menu options
|
|
4277
4250
|
*/
|
|
@@ -4283,15 +4256,15 @@ declare class SofContextComponent {
|
|
|
4283
4256
|
interface ContextMenuItem {
|
|
4284
4257
|
type: string;
|
|
4285
4258
|
text: string;
|
|
4286
|
-
iconClasses: string
|
|
4259
|
+
iconClasses: Array<string>;
|
|
4287
4260
|
action: (data: any, mailbox?: string) => void;
|
|
4288
4261
|
disabled?: boolean;
|
|
4289
4262
|
description?: string;
|
|
4290
4263
|
hidden?: boolean;
|
|
4291
4264
|
enableSubMenuSearch?: boolean;
|
|
4292
4265
|
subMenuSearchPlaceholder?: string;
|
|
4293
|
-
subMenuItems?: ContextMenuItem
|
|
4294
|
-
_filteredSubMenuItems?: ContextMenuItem
|
|
4266
|
+
subMenuItems?: Array<ContextMenuItem>;
|
|
4267
|
+
_filteredSubMenuItems?: Array<ContextMenuItem>;
|
|
4295
4268
|
}
|
|
4296
4269
|
|
|
4297
4270
|
/**
|