@genesislcap/grid-pro 14.30.2-bny.7 → 14.30.2-bny.9

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.
@@ -1932,6 +1932,13 @@
1932
1932
  "text": "string"
1933
1933
  },
1934
1934
  "description": "Optional appearance for the button that opens the menu. Default is 'outline'."
1935
+ },
1936
+ {
1937
+ "name": "hideMenuSingleOption",
1938
+ "optional": true,
1939
+ "type": {
1940
+ "text": "boolean"
1941
+ }
1935
1942
  }
1936
1943
  ],
1937
1944
  "description": "Helper function to get ColDef https://www.ag-grid.com/javascript-data-grid/column-properties/ for Actions Menu Renderer.\nWill take the parameter values for a base ColDef and merge them with the overrideDef (if specified).",
@@ -60,5 +60,5 @@ export declare const foundationGridProActionsMenuRenderer: (overrideDefinition?:
60
60
  * ```
61
61
  * @public
62
62
  */
63
- export declare const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => ColDef;
63
+ export declare const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string, hideMenuSingleOption?: boolean) => ColDef;
64
64
  //# sourceMappingURL=actions-menu.renderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actions-menu.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/actions-menu.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,iBAAkB,YAAW,iBAAiB;IAClE,MAAM,EAAE,mBAAmB,CAAC;IAExC,IAAI,CAAC,MAAM,EAAE,mBAAmB;IAKhC,MAAM,IAAI,WAAW;IAIrB,OAAO,CAAC,MAAM,EAAE,mBAAmB;CAG3C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC;;;;;;8BAQ/C,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,iBAAiB,YACnB,cAAc,EAAE,gBACZ,MAAM,4BACM,MAAM,eACnB,OAAO,qBACA,MAAM,KACxB,MAqBF,CAAC"}
1
+ {"version":3,"file":"actions-menu.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/actions-menu.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,iBAAkB,YAAW,iBAAiB;IAClE,MAAM,EAAE,mBAAmB,CAAC;IAExC,IAAI,CAAC,MAAM,EAAE,mBAAmB;IAKhC,MAAM,IAAI,WAAW;IAIrB,OAAO,CAAC,MAAM,EAAE,mBAAmB;CAG3C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC;;;;;;8BAQ/C,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,iBAAiB,YACnB,cAAc,EAAE,gBACZ,MAAM,4BACM,MAAM,eACnB,OAAO,qBACA,MAAM,yBACF,OAAO,KAC7B,MAsBF,CAAC"}
@@ -73,7 +73,7 @@ export const foundationGridProActionsMenuRenderer = ActionsMenuRenderer.compose(
73
73
  * ```
74
74
  * @public
75
75
  */
76
- export const getActionsMenuDef = (actions, overrideDef = {}, customActionsOpenerName = '⋮', isVertical = false, buttonAppearance) => {
76
+ export const getActionsMenuDef = (actions, overrideDef = {}, customActionsOpenerName = '⋮', isVertical = false, buttonAppearance, hideMenuSingleOption) => {
77
77
  const actionsMenuDef = {
78
78
  cellRenderer: GridProRendererTypes.actionsMenu,
79
79
  cellRendererParams: {
@@ -81,6 +81,7 @@ export const getActionsMenuDef = (actions, overrideDef = {}, customActionsOpener
81
81
  buttonAppearance,
82
82
  isVertical,
83
83
  buttonText: customActionsOpenerName,
84
+ hideMenuSingleOption: true,
84
85
  },
85
86
  cellStyle: { border: 'none', overflow: 'visible' },
86
87
  field: 'actions',
@@ -4401,7 +4401,7 @@
4401
4401
  },
4402
4402
  {
4403
4403
  "kind": "Content",
4404
- "text": ", customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => "
4404
+ "text": ", customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string, hideMenuSingleOption?: boolean) => "
4405
4405
  },
4406
4406
  {
4407
4407
  "kind": "Reference",
@@ -700,7 +700,7 @@ declare interface FuiCellRendererParams_2 extends ICellRendererParams {
700
700
  * ```
701
701
  * @public
702
702
  */
703
- export declare const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => ColDef;
703
+ export declare const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string, hideMenuSingleOption?: boolean) => ColDef;
704
704
 
705
705
  /**
706
706
  * Get a Design System prefixed Checkbox template.
@@ -9,7 +9,7 @@ Helper function to get ColDef [https://www.ag-grid.com/javascript-data-grid/colu
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => ColDef
12
+ getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string, hideMenuSingleOption?: boolean) => ColDef
13
13
  ```
14
14
 
15
15
  ## Example
@@ -500,7 +500,7 @@ export const foundationGridProShadowOptions: ShadowRootInit;
500
500
  export const foundationGridProStyles: ElementStyles;
501
501
 
502
502
  // @public
503
- export const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string) => ColDef;
503
+ export const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef, customActionsOpenerName?: string, isVertical?: boolean, buttonAppearance?: string, hideMenuSingleOption?: boolean) => ColDef;
504
504
 
505
505
  // @public
506
506
  export const getAgBooleanRendererTemplate: (designSystem?: string) => ViewTemplate<any, any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/grid-pro",
3
3
  "description": "Genesis Foundation AG Grid",
4
- "version": "14.30.2-bny.7",
4
+ "version": "14.30.2-bny.9",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -21,8 +21,8 @@
21
21
  "serve": "genx serve"
22
22
  },
23
23
  "devDependencies": {
24
- "@genesislcap/foundation-testing": "14.30.2-bny.7",
25
- "@genesislcap/genx": "14.30.2-bny.7",
24
+ "@genesislcap/foundation-testing": "14.30.2-bny.9",
25
+ "@genesislcap/genx": "14.30.2-bny.9",
26
26
  "@playwright/test": "^1.18.1",
27
27
  "bulma": "^0.9.3",
28
28
  "c8": "^7.11.0",
@@ -38,9 +38,9 @@
38
38
  "watchlist": "^0.3.1"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/foundation-comms": "14.30.2-bny.7",
42
- "@genesislcap/foundation-ui": "14.30.2-bny.7",
43
- "@genesislcap/foundation-utils": "14.30.2-bny.7",
41
+ "@genesislcap/foundation-comms": "14.30.2-bny.9",
42
+ "@genesislcap/foundation-ui": "14.30.2-bny.9",
43
+ "@genesislcap/foundation-utils": "14.30.2-bny.9",
44
44
  "@microsoft/fast-colors": "^5.1.4",
45
45
  "@microsoft/fast-components": "^2.21.3",
46
46
  "@microsoft/fast-element": "^1.7.0",
@@ -66,5 +66,5 @@
66
66
  "access": "public"
67
67
  },
68
68
  "customElements": "dist/custom-elements.json",
69
- "gitHead": "d703ce6c43249fdc52d1138233359b79fae56bda"
69
+ "gitHead": "c65a5adb6e4f96336eef7fcdfd2efd388a9764cd"
70
70
  }