@genesislcap/foundation-ui 15.64.0 → 15.64.1-FUI-2629.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/dist/custom-elements.json +548 -439
- package/dist/dts/actions-menu/actions-menu.d.ts +46 -0
- package/dist/dts/actions-menu/actions-menu.d.ts.map +1 -1
- package/dist/dts/actions-menu/actions-menu.styles.d.ts.map +1 -1
- package/dist/dts/actions-menu/actions-menu.template.d.ts +2 -2
- package/dist/dts/actions-menu/actions-menu.template.d.ts.map +1 -1
- package/dist/dts/ai-criteria-search/validation/criteria-ir.d.ts.map +1 -1
- package/dist/dts/ai-criteria-search/validation/operator-map.d.ts.map +1 -1
- package/dist/dts/filter-bar/filter-bar.utils.d.ts +1 -1
- package/dist/dts/react.d.ts +9 -9
- package/dist/dts/utils/popover-position.d.ts +22 -0
- package/dist/dts/utils/popover-position.d.ts.map +1 -0
- package/dist/esm/actions-menu/actions-menu.js +136 -19
- package/dist/esm/actions-menu/actions-menu.styles.js +76 -5
- package/dist/esm/actions-menu/actions-menu.template.js +69 -8
- package/dist/esm/ai-criteria-search/validation/operator-map.js +9 -4
- package/dist/esm/utils/popover-position.js +50 -0
- package/dist/foundation-ui.api.json +367 -5
- package/dist/foundation-ui.d.ts +49 -3
- package/dist/react.cjs +6 -6
- package/dist/react.mjs +5 -5
- package/package.json +17 -17
|
@@ -8,6 +8,7 @@ const OPERATOR_TO_SERIALISER = {
|
|
|
8
8
|
contains: Serialisers.containsIgnoreCase,
|
|
9
9
|
equals: Serialisers.EQ,
|
|
10
10
|
startsWith: Serialisers.startsWith,
|
|
11
|
+
// Deprecated: GSF 8.14+ rejects FIELD.endsWith, and validateGroups refuses it.
|
|
11
12
|
endsWith: Serialisers.endsWith,
|
|
12
13
|
greaterThan: Serialisers.GT,
|
|
13
14
|
lessThan: Serialisers.LT,
|
|
@@ -26,11 +27,16 @@ const OPERATOR_TO_SERIALISER = {
|
|
|
26
27
|
dateTimeIsLessEqual: Serialisers.dateTimeIsLessEqual,
|
|
27
28
|
};
|
|
28
29
|
function clauseToExpression(clause) {
|
|
29
|
-
var _a
|
|
30
|
-
const serialiser =
|
|
30
|
+
var _a;
|
|
31
|
+
const serialiser = OPERATOR_TO_SERIALISER[clause.operator];
|
|
32
|
+
if (!serialiser) {
|
|
33
|
+
// An operator outside CriteriaOperator (a restored or hand-written IR that skipped
|
|
34
|
+
// validateGroups). Falling back to another operator would quietly match different rows.
|
|
35
|
+
throw new Error(`Unknown criteria operator '${clause.operator}'`);
|
|
36
|
+
}
|
|
31
37
|
return new ExpressionBuilder()
|
|
32
38
|
.withField(clause.field)
|
|
33
|
-
.withValue((
|
|
39
|
+
.withValue((_a = clause.value) !== null && _a !== void 0 ? _a : null)
|
|
34
40
|
.withSerialiser(serialiser)
|
|
35
41
|
.withGroup('default')
|
|
36
42
|
.build();
|
|
@@ -70,7 +76,6 @@ export const STRING_OPERATORS = [
|
|
|
70
76
|
'contains',
|
|
71
77
|
'equals',
|
|
72
78
|
'startsWith',
|
|
73
|
-
'endsWith',
|
|
74
79
|
'notEqual',
|
|
75
80
|
];
|
|
76
81
|
export const NUMERIC_OPERATORS = [
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps a Popover-API element anchored to its trigger, and reports back when the trigger has been
|
|
3
|
+
* removed from the DOM (e.g. AG Grid row virtualization recycling the row that owns it).
|
|
4
|
+
* @remarks Checks the trigger once per animation frame while started, and repositions only when
|
|
5
|
+
* the trigger or the viewport moved. Events alone miss moves: native `scroll` events don't cross
|
|
6
|
+
* shadow-DOM boundaries, and a grid re-sort moves a row by `transform`, which fires nothing on the
|
|
7
|
+
* rows that didn't change. Callers start it when the popover opens and stop it when it closes.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export class AnchoredPopoverPositionTracker {
|
|
11
|
+
constructor(anchor, onReposition, onAnchorDetached) {
|
|
12
|
+
this.anchor = anchor;
|
|
13
|
+
this.onReposition = onReposition;
|
|
14
|
+
this.onAnchorDetached = onAnchorDetached;
|
|
15
|
+
this.check = () => {
|
|
16
|
+
if (!this.anchor.isConnected) {
|
|
17
|
+
this.stop();
|
|
18
|
+
this.onAnchorDetached();
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const { top, right, bottom } = this.anchor.getBoundingClientRect();
|
|
22
|
+
const position = `${top},${right},${bottom},${this.view.innerWidth},${this.view.innerHeight}`;
|
|
23
|
+
// The first check only records where the caller already positioned the popover.
|
|
24
|
+
if (this.lastPosition !== undefined && position !== this.lastPosition) {
|
|
25
|
+
this.onReposition();
|
|
26
|
+
// onReposition may have stopped the tracker; don't schedule past that.
|
|
27
|
+
if (!this.view)
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.lastPosition = position;
|
|
31
|
+
this.frame = this.view.requestAnimationFrame(this.check);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
start() {
|
|
35
|
+
this.stop();
|
|
36
|
+
this.view = this.anchor.ownerDocument.defaultView;
|
|
37
|
+
if (!this.view)
|
|
38
|
+
return;
|
|
39
|
+
this.check();
|
|
40
|
+
}
|
|
41
|
+
stop() {
|
|
42
|
+
var _a;
|
|
43
|
+
if (this.frame !== undefined) {
|
|
44
|
+
(_a = this.view) === null || _a === void 0 ? void 0 : _a.cancelAnimationFrame(this.frame);
|
|
45
|
+
}
|
|
46
|
+
this.frame = undefined;
|
|
47
|
+
this.lastPosition = undefined;
|
|
48
|
+
this.view = undefined;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -279,7 +279,25 @@
|
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
"kind": "Content",
|
|
282
|
-
"text": "{\n name: string | ((rowData: any) => string);\n callback: (rowData: any) => void | any;\n isDisabled?: (rowData: any) => boolean;\n color?: string;\n
|
|
282
|
+
"text": "{\n name: string | ((rowData: any) => string);\n callback: (rowData: any) => void | any;\n isDisabled?: (rowData: any) => boolean;\n color?: string;\n icon?: {\n variant?: "
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"kind": "Reference",
|
|
286
|
+
"text": "IconStyle",
|
|
287
|
+
"canonicalReference": "@fortawesome/fontawesome-common-types!IconStyle:type"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"kind": "Content",
|
|
291
|
+
"text": ";\n name: string;\n size?: "
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"kind": "Reference",
|
|
295
|
+
"text": "FaSize",
|
|
296
|
+
"canonicalReference": "@genesislcap/foundation-ui!FaSize:type"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"kind": "Content",
|
|
300
|
+
"text": ";\n };\n}"
|
|
283
301
|
},
|
|
284
302
|
{
|
|
285
303
|
"kind": "Content",
|
|
@@ -291,7 +309,78 @@
|
|
|
291
309
|
"name": "ActionMenuItem",
|
|
292
310
|
"typeTokenRange": {
|
|
293
311
|
"startIndex": 1,
|
|
294
|
-
"endIndex":
|
|
312
|
+
"endIndex": 6
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"kind": "TypeAlias",
|
|
317
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionMenuItems:type",
|
|
318
|
+
"docComment": "/**\n * The actions a grid column's Actions Menu shows: a fixed array, or a resolver per row.\n *\n * @public\n */\n",
|
|
319
|
+
"excerptTokens": [
|
|
320
|
+
{
|
|
321
|
+
"kind": "Content",
|
|
322
|
+
"text": "export type ActionMenuItems = "
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"kind": "Reference",
|
|
326
|
+
"text": "ActionMenuItem",
|
|
327
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionMenuItem:type"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"kind": "Content",
|
|
331
|
+
"text": "[] | "
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"kind": "Reference",
|
|
335
|
+
"text": "ActionMenuItemsResolver",
|
|
336
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionMenuItemsResolver:type"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"kind": "Content",
|
|
340
|
+
"text": ";"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"fileUrlPath": "src/actions-menu/actions-menu.ts",
|
|
344
|
+
"releaseTag": "Public",
|
|
345
|
+
"name": "ActionMenuItems",
|
|
346
|
+
"typeTokenRange": {
|
|
347
|
+
"startIndex": 1,
|
|
348
|
+
"endIndex": 4
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"kind": "TypeAlias",
|
|
353
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionMenuItemsResolver:type",
|
|
354
|
+
"docComment": "/**\n * A function of the row data returning the actions for that row (for row-scoped eligibility/permission filtering).\n *\n * @public\n */\n",
|
|
355
|
+
"excerptTokens": [
|
|
356
|
+
{
|
|
357
|
+
"kind": "Content",
|
|
358
|
+
"text": "export type ActionMenuItemsResolver = "
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"kind": "Content",
|
|
362
|
+
"text": "(rowData: any) => "
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"kind": "Reference",
|
|
366
|
+
"text": "ActionMenuItem",
|
|
367
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionMenuItem:type"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"kind": "Content",
|
|
371
|
+
"text": "[]"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"kind": "Content",
|
|
375
|
+
"text": ";"
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"fileUrlPath": "src/actions-menu/actions-menu.ts",
|
|
379
|
+
"releaseTag": "Public",
|
|
380
|
+
"name": "ActionMenuItemsResolver",
|
|
381
|
+
"typeTokenRange": {
|
|
382
|
+
"startIndex": 1,
|
|
383
|
+
"endIndex": 4
|
|
295
384
|
}
|
|
296
385
|
},
|
|
297
386
|
{
|
|
@@ -416,6 +505,37 @@
|
|
|
416
505
|
"isProtected": false,
|
|
417
506
|
"isAbstract": false
|
|
418
507
|
},
|
|
508
|
+
{
|
|
509
|
+
"kind": "Property",
|
|
510
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#actionsResolver:member",
|
|
511
|
+
"docComment": "/**\n * Resolves the actions per row instead of `actions`, from the row data in `definition`.\n *\n * @remarks\n *\n * Set from a function passed as the cell params' `actions`.\n */\n",
|
|
512
|
+
"excerptTokens": [
|
|
513
|
+
{
|
|
514
|
+
"kind": "Content",
|
|
515
|
+
"text": "actionsResolver?: "
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"kind": "Reference",
|
|
519
|
+
"text": "ActionMenuItemsResolver",
|
|
520
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionMenuItemsResolver:type"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"kind": "Content",
|
|
524
|
+
"text": ";"
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
"isReadonly": false,
|
|
528
|
+
"isOptional": true,
|
|
529
|
+
"releaseTag": "Public",
|
|
530
|
+
"name": "actionsResolver",
|
|
531
|
+
"propertyTypeTokenRange": {
|
|
532
|
+
"startIndex": 1,
|
|
533
|
+
"endIndex": 2
|
|
534
|
+
},
|
|
535
|
+
"isStatic": false,
|
|
536
|
+
"isProtected": false,
|
|
537
|
+
"isAbstract": false
|
|
538
|
+
},
|
|
419
539
|
{
|
|
420
540
|
"kind": "Property",
|
|
421
541
|
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#addDefaultActions:member",
|
|
@@ -810,6 +930,36 @@
|
|
|
810
930
|
"isAbstract": false,
|
|
811
931
|
"name": "getTemplate"
|
|
812
932
|
},
|
|
933
|
+
{
|
|
934
|
+
"kind": "Property",
|
|
935
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#hasVisibleActions:member",
|
|
936
|
+
"docComment": "/**\n * Whether the row has an action to show: an enabled one, or any when disabled ones show.\n */\n",
|
|
937
|
+
"excerptTokens": [
|
|
938
|
+
{
|
|
939
|
+
"kind": "Content",
|
|
940
|
+
"text": "get hasVisibleActions(): "
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"kind": "Content",
|
|
944
|
+
"text": "boolean"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"kind": "Content",
|
|
948
|
+
"text": ";"
|
|
949
|
+
}
|
|
950
|
+
],
|
|
951
|
+
"isReadonly": true,
|
|
952
|
+
"isOptional": false,
|
|
953
|
+
"releaseTag": "Public",
|
|
954
|
+
"name": "hasVisibleActions",
|
|
955
|
+
"propertyTypeTokenRange": {
|
|
956
|
+
"startIndex": 1,
|
|
957
|
+
"endIndex": 2
|
|
958
|
+
},
|
|
959
|
+
"isStatic": false,
|
|
960
|
+
"isProtected": false,
|
|
961
|
+
"isAbstract": false
|
|
962
|
+
},
|
|
813
963
|
{
|
|
814
964
|
"kind": "Property",
|
|
815
965
|
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#hideDisabled:member",
|
|
@@ -870,6 +1020,85 @@
|
|
|
870
1020
|
"isProtected": false,
|
|
871
1021
|
"isAbstract": false
|
|
872
1022
|
},
|
|
1023
|
+
{
|
|
1024
|
+
"kind": "Property",
|
|
1025
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#iconName:member",
|
|
1026
|
+
"docComment": "/**\n * When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis` for an icon-only \"kebab\" opener).\n */\n",
|
|
1027
|
+
"excerptTokens": [
|
|
1028
|
+
{
|
|
1029
|
+
"kind": "Content",
|
|
1030
|
+
"text": "iconName: "
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"kind": "Content",
|
|
1034
|
+
"text": "string"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"kind": "Content",
|
|
1038
|
+
"text": ";"
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
"isReadonly": false,
|
|
1042
|
+
"isOptional": false,
|
|
1043
|
+
"releaseTag": "Public",
|
|
1044
|
+
"name": "iconName",
|
|
1045
|
+
"propertyTypeTokenRange": {
|
|
1046
|
+
"startIndex": 1,
|
|
1047
|
+
"endIndex": 2
|
|
1048
|
+
},
|
|
1049
|
+
"isStatic": false,
|
|
1050
|
+
"isProtected": false,
|
|
1051
|
+
"isAbstract": false
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"kind": "Method",
|
|
1055
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#isActionDisabled:member(1)",
|
|
1056
|
+
"docComment": "/**\n * Resolves an action's `isDisabled` for the current row.\n */\n",
|
|
1057
|
+
"excerptTokens": [
|
|
1058
|
+
{
|
|
1059
|
+
"kind": "Content",
|
|
1060
|
+
"text": "isActionDisabled(action: "
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"kind": "Reference",
|
|
1064
|
+
"text": "ActionMenuItem",
|
|
1065
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionMenuItem:type"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"kind": "Content",
|
|
1069
|
+
"text": "): "
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"kind": "Content",
|
|
1073
|
+
"text": "boolean"
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"kind": "Content",
|
|
1077
|
+
"text": ";"
|
|
1078
|
+
}
|
|
1079
|
+
],
|
|
1080
|
+
"isStatic": false,
|
|
1081
|
+
"returnTypeTokenRange": {
|
|
1082
|
+
"startIndex": 3,
|
|
1083
|
+
"endIndex": 4
|
|
1084
|
+
},
|
|
1085
|
+
"releaseTag": "Public",
|
|
1086
|
+
"isProtected": false,
|
|
1087
|
+
"overloadIndex": 1,
|
|
1088
|
+
"parameters": [
|
|
1089
|
+
{
|
|
1090
|
+
"parameterName": "action",
|
|
1091
|
+
"parameterTypeTokenRange": {
|
|
1092
|
+
"startIndex": 1,
|
|
1093
|
+
"endIndex": 2
|
|
1094
|
+
},
|
|
1095
|
+
"isOptional": false
|
|
1096
|
+
}
|
|
1097
|
+
],
|
|
1098
|
+
"isOptional": false,
|
|
1099
|
+
"isAbstract": false,
|
|
1100
|
+
"name": "isActionDisabled"
|
|
1101
|
+
},
|
|
873
1102
|
{
|
|
874
1103
|
"kind": "Property",
|
|
875
1104
|
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#isVertical:member",
|
|
@@ -978,6 +1207,104 @@
|
|
|
978
1207
|
"isAbstract": false,
|
|
979
1208
|
"name": "onActionMenuItemClick"
|
|
980
1209
|
},
|
|
1210
|
+
{
|
|
1211
|
+
"kind": "Method",
|
|
1212
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#onIconOpenerKeydown:member(1)",
|
|
1213
|
+
"docComment": "/**\n * Opens the icon-only opener from the keyboard, as a native button would.\n */\n",
|
|
1214
|
+
"excerptTokens": [
|
|
1215
|
+
{
|
|
1216
|
+
"kind": "Content",
|
|
1217
|
+
"text": "onIconOpenerKeydown(event: "
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"kind": "Reference",
|
|
1221
|
+
"text": "KeyboardEvent",
|
|
1222
|
+
"canonicalReference": "!KeyboardEvent:interface"
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"kind": "Content",
|
|
1226
|
+
"text": "): "
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"kind": "Content",
|
|
1230
|
+
"text": "boolean"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"kind": "Content",
|
|
1234
|
+
"text": ";"
|
|
1235
|
+
}
|
|
1236
|
+
],
|
|
1237
|
+
"isStatic": false,
|
|
1238
|
+
"returnTypeTokenRange": {
|
|
1239
|
+
"startIndex": 3,
|
|
1240
|
+
"endIndex": 4
|
|
1241
|
+
},
|
|
1242
|
+
"releaseTag": "Public",
|
|
1243
|
+
"isProtected": false,
|
|
1244
|
+
"overloadIndex": 1,
|
|
1245
|
+
"parameters": [
|
|
1246
|
+
{
|
|
1247
|
+
"parameterName": "event",
|
|
1248
|
+
"parameterTypeTokenRange": {
|
|
1249
|
+
"startIndex": 1,
|
|
1250
|
+
"endIndex": 2
|
|
1251
|
+
},
|
|
1252
|
+
"isOptional": false
|
|
1253
|
+
}
|
|
1254
|
+
],
|
|
1255
|
+
"isOptional": false,
|
|
1256
|
+
"isAbstract": false,
|
|
1257
|
+
"name": "onIconOpenerKeydown"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"kind": "Method",
|
|
1261
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#onPopoverToggle:member(1)",
|
|
1262
|
+
"docComment": "/**\n * Syncs `open` when the native `popover=\"auto\"` light-dismiss (outside click / Escape) closes the vertical menu without going through `toggleActionsMenuVisibility()`.\n */\n",
|
|
1263
|
+
"excerptTokens": [
|
|
1264
|
+
{
|
|
1265
|
+
"kind": "Content",
|
|
1266
|
+
"text": "onPopoverToggle(event: "
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"kind": "Reference",
|
|
1270
|
+
"text": "Event",
|
|
1271
|
+
"canonicalReference": "!Event:interface"
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"kind": "Content",
|
|
1275
|
+
"text": "): "
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"kind": "Content",
|
|
1279
|
+
"text": "void"
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"kind": "Content",
|
|
1283
|
+
"text": ";"
|
|
1284
|
+
}
|
|
1285
|
+
],
|
|
1286
|
+
"isStatic": false,
|
|
1287
|
+
"returnTypeTokenRange": {
|
|
1288
|
+
"startIndex": 3,
|
|
1289
|
+
"endIndex": 4
|
|
1290
|
+
},
|
|
1291
|
+
"releaseTag": "Public",
|
|
1292
|
+
"isProtected": false,
|
|
1293
|
+
"overloadIndex": 1,
|
|
1294
|
+
"parameters": [
|
|
1295
|
+
{
|
|
1296
|
+
"parameterName": "event",
|
|
1297
|
+
"parameterTypeTokenRange": {
|
|
1298
|
+
"startIndex": 1,
|
|
1299
|
+
"endIndex": 2
|
|
1300
|
+
},
|
|
1301
|
+
"isOptional": false
|
|
1302
|
+
}
|
|
1303
|
+
],
|
|
1304
|
+
"isOptional": false,
|
|
1305
|
+
"isAbstract": false,
|
|
1306
|
+
"name": "onPopoverToggle"
|
|
1307
|
+
},
|
|
981
1308
|
{
|
|
982
1309
|
"kind": "Property",
|
|
983
1310
|
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#open:member",
|
|
@@ -1039,6 +1366,41 @@
|
|
|
1039
1366
|
"isAbstract": false,
|
|
1040
1367
|
"name": "openChanged"
|
|
1041
1368
|
},
|
|
1369
|
+
{
|
|
1370
|
+
"kind": "Property",
|
|
1371
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#resolvedActions:member",
|
|
1372
|
+
"docComment": "/**\n * The actions for the current row: from `actionsResolver` when set, else `actions`.\n */\n",
|
|
1373
|
+
"excerptTokens": [
|
|
1374
|
+
{
|
|
1375
|
+
"kind": "Content",
|
|
1376
|
+
"text": "get resolvedActions(): "
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"kind": "Reference",
|
|
1380
|
+
"text": "ActionMenuItem",
|
|
1381
|
+
"canonicalReference": "@genesislcap/foundation-ui!ActionMenuItem:type"
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"kind": "Content",
|
|
1385
|
+
"text": "[]"
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"kind": "Content",
|
|
1389
|
+
"text": ";"
|
|
1390
|
+
}
|
|
1391
|
+
],
|
|
1392
|
+
"isReadonly": true,
|
|
1393
|
+
"isOptional": false,
|
|
1394
|
+
"releaseTag": "Public",
|
|
1395
|
+
"name": "resolvedActions",
|
|
1396
|
+
"propertyTypeTokenRange": {
|
|
1397
|
+
"startIndex": 1,
|
|
1398
|
+
"endIndex": 3
|
|
1399
|
+
},
|
|
1400
|
+
"isStatic": false,
|
|
1401
|
+
"isProtected": false,
|
|
1402
|
+
"isAbstract": false
|
|
1403
|
+
},
|
|
1042
1404
|
{
|
|
1043
1405
|
"kind": "Property",
|
|
1044
1406
|
"canonicalReference": "@genesislcap/foundation-ui!ActionsMenu#rowData:member",
|
|
@@ -54125,7 +54487,7 @@
|
|
|
54125
54487
|
},
|
|
54126
54488
|
{
|
|
54127
54489
|
"kind": "Content",
|
|
54128
|
-
"text": "\"boolean\" | \"number\" | \"
|
|
54490
|
+
"text": "\"boolean\" | \"number\" | \"text\" | \"date\" | \"enum\""
|
|
54129
54491
|
}
|
|
54130
54492
|
],
|
|
54131
54493
|
"fileUrlPath": "src/filter-bar/filter-bar.utils.ts",
|
|
@@ -54527,7 +54889,7 @@
|
|
|
54527
54889
|
},
|
|
54528
54890
|
{
|
|
54529
54891
|
"kind": "Content",
|
|
54530
|
-
"text": "
|
|
54892
|
+
"text": ">"
|
|
54531
54893
|
}
|
|
54532
54894
|
],
|
|
54533
54895
|
"fileUrlPath": "src/actions-menu/actions-menu.template.ts",
|
|
@@ -66682,7 +67044,7 @@
|
|
|
66682
67044
|
},
|
|
66683
67045
|
{
|
|
66684
67046
|
"kind": "Content",
|
|
66685
|
-
"text": "
|
|
67047
|
+
"text": ">"
|
|
66686
67048
|
}
|
|
66687
67049
|
],
|
|
66688
67050
|
"fileUrlPath": "src/actions-menu/actions-menu.template.ts",
|
package/dist/foundation-ui.d.ts
CHANGED
|
@@ -312,19 +312,47 @@ export declare type ActionMenuItem = {
|
|
|
312
312
|
callback: (rowData: any) => void | any;
|
|
313
313
|
isDisabled?: (rowData: any) => boolean;
|
|
314
314
|
color?: string;
|
|
315
|
+
icon?: {
|
|
316
|
+
variant?: IconStyle;
|
|
317
|
+
name: string;
|
|
318
|
+
size?: FaSize;
|
|
319
|
+
};
|
|
315
320
|
};
|
|
316
321
|
|
|
322
|
+
/**
|
|
323
|
+
* The actions a grid column's Actions Menu shows: a fixed array, or a resolver per row.
|
|
324
|
+
* @public
|
|
325
|
+
*/
|
|
326
|
+
export declare type ActionMenuItems = ActionMenuItem[] | ActionMenuItemsResolver;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* A function of the row data returning the actions for that row (for row-scoped
|
|
330
|
+
* eligibility/permission filtering).
|
|
331
|
+
* @public
|
|
332
|
+
*/
|
|
333
|
+
export declare type ActionMenuItemsResolver = (rowData: any) => ActionMenuItem[];
|
|
334
|
+
|
|
317
335
|
/**
|
|
318
336
|
* @tagname %%prefix%%-actions-menu
|
|
319
337
|
*/
|
|
320
338
|
export declare class ActionsMenu extends FoundationElement {
|
|
321
339
|
actions: ActionMenuItem[];
|
|
340
|
+
/**
|
|
341
|
+
* Resolves the actions per row instead of `actions`, from the row data in `definition`.
|
|
342
|
+
* @remarks Set from a function passed as the cell params' `actions`.
|
|
343
|
+
*/
|
|
344
|
+
actionsResolver?: ActionMenuItemsResolver;
|
|
322
345
|
isVertical: boolean;
|
|
323
346
|
addDefaultActions: boolean;
|
|
324
347
|
autoCloseOnAction: boolean;
|
|
325
348
|
classNames: string;
|
|
326
349
|
definition: any;
|
|
327
350
|
name: string;
|
|
351
|
+
/**
|
|
352
|
+
* When set, the opener renders this icon instead of the `name` text (e.g. `ellipsis`
|
|
353
|
+
* for an icon-only "kebab" opener).
|
|
354
|
+
*/
|
|
355
|
+
iconName: string;
|
|
328
356
|
open: boolean;
|
|
329
357
|
buttonAppearance: string;
|
|
330
358
|
hideDisabled: boolean;
|
|
@@ -332,12 +360,30 @@ export declare class ActionsMenu extends FoundationElement {
|
|
|
332
360
|
singleOption: ActionMenuItem;
|
|
333
361
|
actionsMenu: HTMLElement;
|
|
334
362
|
actionsOpener: HTMLElement;
|
|
363
|
+
private positionTracker?;
|
|
364
|
+
/** Set when the keyboard opens the menu, so focus moves into it as screen readers announce. */
|
|
365
|
+
private focusMenuOnOpen;
|
|
335
366
|
disconnectedCallback(): void;
|
|
336
367
|
private updateMenuPosition;
|
|
368
|
+
private startTrackingPosition;
|
|
369
|
+
private stopTrackingPosition;
|
|
337
370
|
protected definitionChanged(oldValue: any, newValue: any): void;
|
|
338
371
|
protected openChanged(): void;
|
|
339
372
|
toggleActionsMenuVisibility(): void;
|
|
373
|
+
/**
|
|
374
|
+
* Syncs `open` when the native `popover="auto"` light-dismiss (outside click / Escape) closes
|
|
375
|
+
* the vertical menu without going through `toggleActionsMenuVisibility()`.
|
|
376
|
+
*/
|
|
377
|
+
onPopoverToggle(event: Event): void;
|
|
378
|
+
/** Opens the icon-only opener from the keyboard, as a native button would. */
|
|
379
|
+
onIconOpenerKeydown(event: KeyboardEvent): boolean;
|
|
340
380
|
onActionMenuItemClick(callback: (rowData: any) => void | any): void;
|
|
381
|
+
/** Resolves an action's `isDisabled` for the current row. */
|
|
382
|
+
isActionDisabled(action: ActionMenuItem): boolean;
|
|
383
|
+
/** The actions for the current row: from `actionsResolver` when set, else `actions`. */
|
|
384
|
+
get resolvedActions(): ActionMenuItem[];
|
|
385
|
+
/** Whether the row has an action to show: an enabled one, or any when disabled ones show. */
|
|
386
|
+
get hasVisibleActions(): boolean;
|
|
341
387
|
get allActions(): ActionMenuItem[];
|
|
342
388
|
get rowData(): any;
|
|
343
389
|
getLabel(name: string | ((rowData: any) => string)): string;
|
|
@@ -5480,7 +5526,7 @@ export declare class Listbox extends Listbox_2 {
|
|
|
5480
5526
|
export declare class ListboxOption extends ListboxOption_2 {
|
|
5481
5527
|
}
|
|
5482
5528
|
|
|
5483
|
-
export declare const mapType: (TYPE: string) => "boolean" | "number" | "
|
|
5529
|
+
export declare const mapType: (TYPE: string) => "boolean" | "number" | "text" | "date" | "enum";
|
|
5484
5530
|
|
|
5485
5531
|
export declare const MAX_DAYS = 31;
|
|
5486
5532
|
|
|
@@ -5515,7 +5561,7 @@ export declare class MenuItem extends MenuItem_2 {
|
|
|
5515
5561
|
connectedCallback(): void;
|
|
5516
5562
|
}
|
|
5517
5563
|
|
|
5518
|
-
export declare const menuTemplate: (prefix: string) => ViewTemplate<ActionsMenu
|
|
5564
|
+
export declare const menuTemplate: (prefix: string) => ViewTemplate<ActionsMenu>;
|
|
5519
5565
|
|
|
5520
5566
|
export declare type MinutesConfig = Omit<baseConfig, 'minutes'> & {
|
|
5521
5567
|
type: RecurrenceType.MINUTES;
|
|
@@ -6948,7 +6994,7 @@ export declare interface SetStatesEventDetail {
|
|
|
6948
6994
|
|
|
6949
6995
|
export declare const sharedFieldStyles: ElementStyles;
|
|
6950
6996
|
|
|
6951
|
-
export declare const singleOptionTemplate: (prefix: string) => ViewTemplate<ActionsMenu
|
|
6997
|
+
export declare const singleOptionTemplate: (prefix: string) => ViewTemplate<ActionsMenu>;
|
|
6952
6998
|
|
|
6953
6999
|
/**
|
|
6954
7000
|
* @tagname %%prefix%%-skeleton
|
package/dist/react.cjs
CHANGED
|
@@ -123,11 +123,6 @@ const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
|
|
|
123
123
|
return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
-
const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
|
|
127
|
-
const { children, ...rest } = props;
|
|
128
|
-
return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
|
|
129
|
-
});
|
|
130
|
-
|
|
131
126
|
const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
|
|
132
127
|
const { onCriteriaChanged, onValidationErrors, children, ...rest } = props;
|
|
133
128
|
const _innerRef = React.useRef(null);
|
|
@@ -150,6 +145,11 @@ const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref)
|
|
|
150
145
|
return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
151
146
|
});
|
|
152
147
|
|
|
148
|
+
const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
|
|
149
|
+
const { children, ...rest } = props;
|
|
150
|
+
return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
|
|
151
|
+
});
|
|
152
|
+
|
|
153
153
|
const Accordion = React.forwardRef(function Accordion(props, ref) {
|
|
154
154
|
const { children, ...rest } = props;
|
|
155
155
|
return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
|
|
@@ -1145,8 +1145,8 @@ const WeeklyRecurrence = React.forwardRef(function WeeklyRecurrence(props, ref)
|
|
|
1145
1145
|
module.exports = {
|
|
1146
1146
|
ActionsMenu,
|
|
1147
1147
|
AccordionItem,
|
|
1148
|
-
AiIndicator,
|
|
1149
1148
|
AiCriteriaSearch,
|
|
1149
|
+
AiIndicator,
|
|
1150
1150
|
Accordion,
|
|
1151
1151
|
Anchor,
|
|
1152
1152
|
AnchoredRegion,
|