@genesislcap/foundation-entity-management 14.220.0 → 14.222.0
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 +236 -49
- package/dist/dts/entities/entities.d.ts +37 -36
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/list/list.d.ts +3 -0
- package/dist/dts/list/list.d.ts.map +1 -1
- package/dist/dts/list/list.template.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +13 -0
- package/dist/esm/list/list.js +9 -0
- package/dist/esm/list/list.template.js +4 -0
- package/dist/foundation-entity-management.api.json +8 -2
- package/dist/foundation-entity-management.d.ts +37 -36
- package/package.json +21 -21
- package/tsdoc.json +14 -0
|
@@ -613,6 +613,52 @@
|
|
|
613
613
|
"privacy": "private"
|
|
614
614
|
}
|
|
615
615
|
],
|
|
616
|
+
"events": [
|
|
617
|
+
{
|
|
618
|
+
"description": "Fired when the request is changed",
|
|
619
|
+
"name": "request-changed"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"description": "Fired when the criteria is changed",
|
|
623
|
+
"name": "criteria-changed"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"description": "Fired when an entity is created",
|
|
627
|
+
"name": "create-entity"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"description": "Fired when an entity is edited",
|
|
631
|
+
"name": "edit-entity"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"description": "Fired when an entity is deleted Bubbled events from the child entity-list component",
|
|
635
|
+
"name": "delete-entity"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"description": "Fired when there is an error in a create, edit or delete operation",
|
|
639
|
+
"name": "submit-failure"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"description": "Fired when a create, edit or delete operation is completed successfully",
|
|
643
|
+
"name": "submit-success"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"description": "Fired when a row is clicked",
|
|
647
|
+
"name": "rowClick"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"description": "Fired when a row is double clicked",
|
|
651
|
+
"name": "rowDblClick"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"description": "Fired when a row is right clicked",
|
|
655
|
+
"name": "contextMenu"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"description": "Fired when a row is selected",
|
|
659
|
+
"name": "rowSelected"
|
|
660
|
+
}
|
|
661
|
+
],
|
|
616
662
|
"attributes": [
|
|
617
663
|
{
|
|
618
664
|
"name": "design-system-prefix",
|
|
@@ -1206,6 +1252,57 @@
|
|
|
1206
1252
|
"name": "reverse",
|
|
1207
1253
|
"readonly": true
|
|
1208
1254
|
},
|
|
1255
|
+
{
|
|
1256
|
+
"kind": "method",
|
|
1257
|
+
"name": "handleRowClicked",
|
|
1258
|
+
"return": {
|
|
1259
|
+
"type": {
|
|
1260
|
+
"text": "void"
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
"parameters": [
|
|
1264
|
+
{
|
|
1265
|
+
"name": "e",
|
|
1266
|
+
"type": {
|
|
1267
|
+
"text": "CustomEvent"
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
]
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"kind": "method",
|
|
1274
|
+
"name": "handleRowDblClicked",
|
|
1275
|
+
"return": {
|
|
1276
|
+
"type": {
|
|
1277
|
+
"text": "void"
|
|
1278
|
+
}
|
|
1279
|
+
},
|
|
1280
|
+
"parameters": [
|
|
1281
|
+
{
|
|
1282
|
+
"name": "e",
|
|
1283
|
+
"type": {
|
|
1284
|
+
"text": "CustomEvent"
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
]
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"kind": "method",
|
|
1291
|
+
"name": "handleRowContextMenu",
|
|
1292
|
+
"return": {
|
|
1293
|
+
"type": {
|
|
1294
|
+
"text": "void"
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
"parameters": [
|
|
1298
|
+
{
|
|
1299
|
+
"name": "e",
|
|
1300
|
+
"type": {
|
|
1301
|
+
"text": "CustomEvent"
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
]
|
|
1305
|
+
},
|
|
1209
1306
|
{
|
|
1210
1307
|
"kind": "method",
|
|
1211
1308
|
"name": "handleFilterChanged",
|
|
@@ -1423,55 +1520,6 @@
|
|
|
1423
1520
|
}
|
|
1424
1521
|
]
|
|
1425
1522
|
},
|
|
1426
|
-
{
|
|
1427
|
-
"kind": "javascript-module",
|
|
1428
|
-
"path": "src/layouts/default.ts",
|
|
1429
|
-
"declarations": [
|
|
1430
|
-
{
|
|
1431
|
-
"kind": "variable",
|
|
1432
|
-
"name": "loginLayout",
|
|
1433
|
-
"default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
|
|
1434
|
-
},
|
|
1435
|
-
{
|
|
1436
|
-
"kind": "variable",
|
|
1437
|
-
"name": "defaultLayout",
|
|
1438
|
-
"default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n css`\n ${baseLayoutCss}\n `,\n)"
|
|
1439
|
-
}
|
|
1440
|
-
],
|
|
1441
|
-
"exports": [
|
|
1442
|
-
{
|
|
1443
|
-
"kind": "js",
|
|
1444
|
-
"name": "loginLayout",
|
|
1445
|
-
"declaration": {
|
|
1446
|
-
"name": "loginLayout",
|
|
1447
|
-
"module": "src/layouts/default.ts"
|
|
1448
|
-
}
|
|
1449
|
-
},
|
|
1450
|
-
{
|
|
1451
|
-
"kind": "js",
|
|
1452
|
-
"name": "defaultLayout",
|
|
1453
|
-
"declaration": {
|
|
1454
|
-
"name": "defaultLayout",
|
|
1455
|
-
"module": "src/layouts/default.ts"
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
]
|
|
1459
|
-
},
|
|
1460
|
-
{
|
|
1461
|
-
"kind": "javascript-module",
|
|
1462
|
-
"path": "src/layouts/index.ts",
|
|
1463
|
-
"declarations": [],
|
|
1464
|
-
"exports": [
|
|
1465
|
-
{
|
|
1466
|
-
"kind": "js",
|
|
1467
|
-
"name": "*",
|
|
1468
|
-
"declaration": {
|
|
1469
|
-
"name": "*",
|
|
1470
|
-
"package": "./default"
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
]
|
|
1474
|
-
},
|
|
1475
1523
|
{
|
|
1476
1524
|
"kind": "javascript-module",
|
|
1477
1525
|
"path": "src/main/index.ts",
|
|
@@ -1617,6 +1665,55 @@
|
|
|
1617
1665
|
}
|
|
1618
1666
|
]
|
|
1619
1667
|
},
|
|
1668
|
+
{
|
|
1669
|
+
"kind": "javascript-module",
|
|
1670
|
+
"path": "src/layouts/default.ts",
|
|
1671
|
+
"declarations": [
|
|
1672
|
+
{
|
|
1673
|
+
"kind": "variable",
|
|
1674
|
+
"name": "loginLayout",
|
|
1675
|
+
"default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"kind": "variable",
|
|
1679
|
+
"name": "defaultLayout",
|
|
1680
|
+
"default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n css`\n ${baseLayoutCss}\n `,\n)"
|
|
1681
|
+
}
|
|
1682
|
+
],
|
|
1683
|
+
"exports": [
|
|
1684
|
+
{
|
|
1685
|
+
"kind": "js",
|
|
1686
|
+
"name": "loginLayout",
|
|
1687
|
+
"declaration": {
|
|
1688
|
+
"name": "loginLayout",
|
|
1689
|
+
"module": "src/layouts/default.ts"
|
|
1690
|
+
}
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"kind": "js",
|
|
1694
|
+
"name": "defaultLayout",
|
|
1695
|
+
"declaration": {
|
|
1696
|
+
"name": "defaultLayout",
|
|
1697
|
+
"module": "src/layouts/default.ts"
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
]
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
"kind": "javascript-module",
|
|
1704
|
+
"path": "src/layouts/index.ts",
|
|
1705
|
+
"declarations": [],
|
|
1706
|
+
"exports": [
|
|
1707
|
+
{
|
|
1708
|
+
"kind": "js",
|
|
1709
|
+
"name": "*",
|
|
1710
|
+
"declaration": {
|
|
1711
|
+
"name": "*",
|
|
1712
|
+
"package": "./default"
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
]
|
|
1716
|
+
},
|
|
1620
1717
|
{
|
|
1621
1718
|
"kind": "javascript-module",
|
|
1622
1719
|
"path": "src/profiles/editProfileSchema.ts",
|
|
@@ -2538,6 +2635,96 @@
|
|
|
2538
2635
|
"module": "src/entities/entities.ts"
|
|
2539
2636
|
}
|
|
2540
2637
|
}
|
|
2638
|
+
],
|
|
2639
|
+
"events": [
|
|
2640
|
+
{
|
|
2641
|
+
"description": "Fired when the request is changed",
|
|
2642
|
+
"name": "request-changed",
|
|
2643
|
+
"inheritedFrom": {
|
|
2644
|
+
"name": "EntityManagement",
|
|
2645
|
+
"module": "src/entities/entities.ts"
|
|
2646
|
+
}
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
"description": "Fired when the criteria is changed",
|
|
2650
|
+
"name": "criteria-changed",
|
|
2651
|
+
"inheritedFrom": {
|
|
2652
|
+
"name": "EntityManagement",
|
|
2653
|
+
"module": "src/entities/entities.ts"
|
|
2654
|
+
}
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
"description": "Fired when an entity is created",
|
|
2658
|
+
"name": "create-entity",
|
|
2659
|
+
"inheritedFrom": {
|
|
2660
|
+
"name": "EntityManagement",
|
|
2661
|
+
"module": "src/entities/entities.ts"
|
|
2662
|
+
}
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
"description": "Fired when an entity is edited",
|
|
2666
|
+
"name": "edit-entity",
|
|
2667
|
+
"inheritedFrom": {
|
|
2668
|
+
"name": "EntityManagement",
|
|
2669
|
+
"module": "src/entities/entities.ts"
|
|
2670
|
+
}
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
"description": "Fired when an entity is deleted Bubbled events from the child entity-list component",
|
|
2674
|
+
"name": "delete-entity",
|
|
2675
|
+
"inheritedFrom": {
|
|
2676
|
+
"name": "EntityManagement",
|
|
2677
|
+
"module": "src/entities/entities.ts"
|
|
2678
|
+
}
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
"description": "Fired when there is an error in a create, edit or delete operation",
|
|
2682
|
+
"name": "submit-failure",
|
|
2683
|
+
"inheritedFrom": {
|
|
2684
|
+
"name": "EntityManagement",
|
|
2685
|
+
"module": "src/entities/entities.ts"
|
|
2686
|
+
}
|
|
2687
|
+
},
|
|
2688
|
+
{
|
|
2689
|
+
"description": "Fired when a create, edit or delete operation is completed successfully",
|
|
2690
|
+
"name": "submit-success",
|
|
2691
|
+
"inheritedFrom": {
|
|
2692
|
+
"name": "EntityManagement",
|
|
2693
|
+
"module": "src/entities/entities.ts"
|
|
2694
|
+
}
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
"description": "Fired when a row is clicked",
|
|
2698
|
+
"name": "rowClick",
|
|
2699
|
+
"inheritedFrom": {
|
|
2700
|
+
"name": "EntityManagement",
|
|
2701
|
+
"module": "src/entities/entities.ts"
|
|
2702
|
+
}
|
|
2703
|
+
},
|
|
2704
|
+
{
|
|
2705
|
+
"description": "Fired when a row is double clicked",
|
|
2706
|
+
"name": "rowDblClick",
|
|
2707
|
+
"inheritedFrom": {
|
|
2708
|
+
"name": "EntityManagement",
|
|
2709
|
+
"module": "src/entities/entities.ts"
|
|
2710
|
+
}
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"description": "Fired when a row is right clicked",
|
|
2714
|
+
"name": "contextMenu",
|
|
2715
|
+
"inheritedFrom": {
|
|
2716
|
+
"name": "EntityManagement",
|
|
2717
|
+
"module": "src/entities/entities.ts"
|
|
2718
|
+
}
|
|
2719
|
+
},
|
|
2720
|
+
{
|
|
2721
|
+
"description": "Fired when a row is selected",
|
|
2722
|
+
"name": "rowSelected",
|
|
2723
|
+
"inheritedFrom": {
|
|
2724
|
+
"name": "EntityManagement",
|
|
2725
|
+
"module": "src/entities/entities.ts"
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2541
2728
|
]
|
|
2542
2729
|
}
|
|
2543
2730
|
],
|
|
@@ -60,7 +60,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
60
60
|
readonly offsetTop: number;
|
|
61
61
|
readonly offsetWidth: number;
|
|
62
62
|
outerText: string;
|
|
63
|
-
spellcheck: boolean;
|
|
63
|
+
spellcheck: boolean; /**
|
|
64
|
+
* Name of the event handler on the Genesis server which handles creating an entity
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
64
67
|
title: string;
|
|
65
68
|
translate: boolean;
|
|
66
69
|
attachInternals(): ElementInternals;
|
|
@@ -89,7 +92,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
89
92
|
scrollLeft: number;
|
|
90
93
|
scrollTop: number;
|
|
91
94
|
readonly scrollWidth: number;
|
|
92
|
-
readonly shadowRoot: ShadowRoot;
|
|
95
|
+
readonly shadowRoot: ShadowRoot; /**
|
|
96
|
+
* If true, will enable row flashing for all rows for `add` transactions
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
93
99
|
slot: string;
|
|
94
100
|
readonly tagName: string;
|
|
95
101
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
@@ -99,10 +105,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
99
105
|
getAttribute(qualifiedName: string): string;
|
|
100
106
|
getAttributeNS(namespace: string, localName: string): string;
|
|
101
107
|
getAttributeNames(): string[];
|
|
102
|
-
/**
|
|
103
|
-
* GridOptions to be passed down from application
|
|
104
|
-
* @public
|
|
105
|
-
*/
|
|
106
108
|
getAttributeNode(qualifiedName: string): Attr;
|
|
107
109
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
108
110
|
getBoundingClientRect(): DOMRect;
|
|
@@ -156,6 +158,9 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
156
158
|
readonly previousSibling: ChildNode;
|
|
157
159
|
textContent: string;
|
|
158
160
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
161
|
+
/**
|
|
162
|
+
* @internal
|
|
163
|
+
*/
|
|
159
164
|
compareDocumentPosition(other: Node): number;
|
|
160
165
|
contains(other: Node): boolean;
|
|
161
166
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
@@ -163,10 +168,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
163
168
|
insertBefore<T_2 extends Node>(node: T_2, child: Node): T_2;
|
|
164
169
|
isDefaultNamespace(namespace: string): boolean;
|
|
165
170
|
isEqualNode(otherNode: Node): boolean;
|
|
166
|
-
isSameNode(otherNode: Node): boolean;
|
|
167
|
-
* Allows configuration of the search bar component, if not provided it would build configuration based on columns in the grid
|
|
168
|
-
* * @public
|
|
169
|
-
*/
|
|
171
|
+
isSameNode(otherNode: Node): boolean;
|
|
170
172
|
lookupNamespaceURI(prefix: string): string;
|
|
171
173
|
lookupPrefix(namespace: string): string;
|
|
172
174
|
normalize(): void;
|
|
@@ -187,15 +189,13 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
187
189
|
readonly ELEMENT_NODE: number;
|
|
188
190
|
readonly ENTITY_NODE: number;
|
|
189
191
|
readonly ENTITY_REFERENCE_NODE: number;
|
|
190
|
-
/**
|
|
191
|
-
* The helper function to determine the title of the modal form or button based on the action or type
|
|
192
|
-
* @param actionOrType - The crud action or modal form type
|
|
193
|
-
* @internal
|
|
194
|
-
*/
|
|
195
192
|
readonly NOTATION_NODE: number;
|
|
196
193
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
197
194
|
readonly TEXT_NODE: number;
|
|
198
|
-
dispatchEvent(event: Event): boolean;
|
|
195
|
+
dispatchEvent(event: Event): boolean; /**
|
|
196
|
+
* Determines where the buttons will appear
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
199
|
ariaAtomic: string;
|
|
200
200
|
ariaAutoComplete: string;
|
|
201
201
|
ariaBusy: string;
|
|
@@ -209,10 +209,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
209
209
|
ariaExpanded: string;
|
|
210
210
|
ariaHasPopup: string;
|
|
211
211
|
ariaHidden: string;
|
|
212
|
-
ariaInvalid: string;
|
|
213
|
-
* Getter for the title of the modal form
|
|
214
|
-
* @internal
|
|
215
|
-
*/
|
|
212
|
+
ariaInvalid: string;
|
|
216
213
|
ariaKeyShortcuts: string;
|
|
217
214
|
ariaLabel: string;
|
|
218
215
|
ariaLevel: string;
|
|
@@ -306,12 +303,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
306
303
|
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
307
304
|
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
308
305
|
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
309
|
-
onload: (this: GlobalEventHandlers, ev: Event) => any;
|
|
310
|
-
* Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
|
|
311
|
-
*
|
|
312
|
-
* @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
|
|
313
|
-
* @internal
|
|
314
|
-
*/
|
|
306
|
+
onload: (this: GlobalEventHandlers, ev: Event) => any;
|
|
315
307
|
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
316
308
|
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
317
309
|
onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -323,17 +315,16 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
323
315
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
324
316
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
325
317
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
326
|
-
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
327
|
-
* Opens the model to edit an entity. Added as an event listener on the class when receiving the `edit-entity` event.
|
|
328
|
-
*
|
|
329
|
-
* @param e - CustomEvent where `e.detail` is the entity to edit.
|
|
330
|
-
* @internal
|
|
331
|
-
*/
|
|
318
|
+
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
332
319
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
333
320
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
334
321
|
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
335
322
|
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
336
|
-
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
323
|
+
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any; /**
|
|
324
|
+
* Show the entity create form
|
|
325
|
+
* Sets the initial value on the form to be defaultEntityValues if present.
|
|
326
|
+
* @internal
|
|
327
|
+
*/
|
|
337
328
|
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
338
329
|
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
339
330
|
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
@@ -350,9 +341,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
350
341
|
onselect: (this: GlobalEventHandlers, ev: Event) => any;
|
|
351
342
|
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
352
343
|
onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
353
|
-
/**
|
|
354
|
-
* @internal
|
|
355
|
-
*/
|
|
356
344
|
onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
357
345
|
onstalled: (this: GlobalEventHandlers, ev: Event) => any;
|
|
358
346
|
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
@@ -417,6 +405,19 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
417
405
|
* - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br />
|
|
418
406
|
* - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />
|
|
419
407
|
*
|
|
408
|
+
* @fires request-changed - Fired when the request is changed
|
|
409
|
+
* @fires criteria-changed - Fired when the criteria is changed
|
|
410
|
+
* @fires create-entity - Fired when an entity is created
|
|
411
|
+
* @fires edit-entity - Fired when an entity is edited
|
|
412
|
+
* @fires delete-entity - Fired when an entity is deleted
|
|
413
|
+
*
|
|
414
|
+
* Bubbled events from the child entity-list component
|
|
415
|
+
* @fires submit-failure - Fired when there is an error in a create, edit or delete operation
|
|
416
|
+
* @fires submit-success - Fired when a create, edit or delete operation is completed successfully
|
|
417
|
+
* @fires rowClick - Fired when a row is clicked
|
|
418
|
+
* @fires rowDblClick - Fired when a row is double clicked
|
|
419
|
+
* @fires contextMenu - Fired when a row is right clicked
|
|
420
|
+
* @fires rowSelected - Fired when a row is selected
|
|
420
421
|
*/
|
|
421
422
|
export declare class EntityManagement extends EntityManagement_base {
|
|
422
423
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EACL,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MjB;;OAEG;IACH,IACI,eAAe,0EAElB;IAGD;;OAEG;IACH,IAAI,sBAAsB,IAAI,OAAO,CAEpC;IAED;;OAEG;IACI,aAAa,CAAC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAe9D,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,yBAAyB;IAgCjC,OAAO,CAAC,kBAAkB;IAiB1B;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAKjC;;OAEG;IACG,aAAa;IAwBnB,OAAO,CAAC,sBAAsB;IAc9B;;;;OAIG;IACI,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ;IAIpD;;;OAGG;IACI,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY,EAAE;IA8C1F;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAkC/B;;;OAGG;IACI,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,qBAAqB,CAAC;CASlE"}
|
package/dist/dts/list/list.d.ts
CHANGED
|
@@ -380,6 +380,9 @@ export declare class List extends List_base {
|
|
|
380
380
|
get pollingInterval(): number;
|
|
381
381
|
get request(): any;
|
|
382
382
|
get reverse(): boolean;
|
|
383
|
+
handleRowClicked(e: CustomEvent): void;
|
|
384
|
+
handleRowDblClicked(e: CustomEvent): void;
|
|
385
|
+
handleRowContextMenu(e: CustomEvent): void;
|
|
383
386
|
private handleFilterChanged;
|
|
384
387
|
private handleFilterCleared;
|
|
385
388
|
private select;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,K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AsB,IAAI,OAAO,CAEpC;IAED,iBAAiB;YAgEH,oBAAoB;IA+C5B,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAa3C,IACI,QAAQ,WAEX;IAED,IACI,MAAM,WAET;IAED,IACI,UAAU,YAEb;IAED,IACI,OAAO,WAEV;IAED,IACI,OAAO,WAEV;IAED,IACI,UAAU,YAEb;IAED,IACI,OAAO,WAEV;IAED,IACI,eAAe,WAElB;IAED,IACI,OAAO,QAEV;IAED,IACI,OAAO,YAEV;IAED,gBAAgB,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI;IAItC,mBAAmB,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI;IAIzC,oBAAoB,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI;IAI1C,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,IAAI,CAEV;IAEI,MAAM,CAAC,CAAC,KAAA;CAGf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../src/list/list.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../src/list/list.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAyCnC,eAAO,MAAM,eAAe,4EAiD3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,YAAY,2DAExB,CAAC"}
|
|
@@ -40,6 +40,19 @@ import { defaultHeader, searchBarHeader, template } from './entities.template';
|
|
|
40
40
|
* - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br />
|
|
41
41
|
* - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />
|
|
42
42
|
*
|
|
43
|
+
* @fires request-changed - Fired when the request is changed
|
|
44
|
+
* @fires criteria-changed - Fired when the criteria is changed
|
|
45
|
+
* @fires create-entity - Fired when an entity is created
|
|
46
|
+
* @fires edit-entity - Fired when an entity is edited
|
|
47
|
+
* @fires delete-entity - Fired when an entity is deleted
|
|
48
|
+
*
|
|
49
|
+
* Bubbled events from the child entity-list component
|
|
50
|
+
* @fires submit-failure - Fired when there is an error in a create, edit or delete operation
|
|
51
|
+
* @fires submit-success - Fired when a create, edit or delete operation is completed successfully
|
|
52
|
+
* @fires rowClick - Fired when a row is clicked
|
|
53
|
+
* @fires rowDblClick - Fired when a row is double clicked
|
|
54
|
+
* @fires contextMenu - Fired when a row is right clicked
|
|
55
|
+
* @fires rowSelected - Fired when a row is selected
|
|
43
56
|
*/
|
|
44
57
|
let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement) {
|
|
45
58
|
constructor() {
|
package/dist/esm/list/list.js
CHANGED
|
@@ -163,6 +163,15 @@ let List = class List extends LifecycleMixin(FASTElement) {
|
|
|
163
163
|
var _a;
|
|
164
164
|
return (_a = this.datasource) === null || _a === void 0 ? void 0 : _a.reverse;
|
|
165
165
|
}
|
|
166
|
+
handleRowClicked(e) {
|
|
167
|
+
this.$emit('rowClick', e.detail.data);
|
|
168
|
+
}
|
|
169
|
+
handleRowDblClicked(e) {
|
|
170
|
+
this.$emit('rowDblClick', e.detail.data);
|
|
171
|
+
}
|
|
172
|
+
handleRowContextMenu(e) {
|
|
173
|
+
this.$emit('contextMenu', e.detail.data);
|
|
174
|
+
}
|
|
166
175
|
handleFilterChanged(e) {
|
|
167
176
|
var _a, _b;
|
|
168
177
|
const fieldName = (_a = e === null || e === void 0 ? void 0 : e.detail) === null || _a === void 0 ? void 0 : _a.fieldName;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { customEvent } from '@genesislcap/foundation-events';
|
|
1
2
|
import { html, ref, repeat, when } from '@microsoft/fast-element';
|
|
2
3
|
/** @internal */
|
|
3
4
|
const datasource = (list) => {
|
|
@@ -62,6 +63,9 @@ export const getPrefixedList = (prefix) => html `
|
|
|
62
63
|
enable-cell-flashing=${(x) => x.enableCellFlashing}
|
|
63
64
|
enable-row-flashing=${(x) => x.enableRowFlashing}
|
|
64
65
|
header-case-type=${(x) => x.headerCaseType}
|
|
66
|
+
@rowClicked="${(x, ctx) => x.handleRowClicked(customEvent(ctx))}"
|
|
67
|
+
@rowDblClicked="${(x, ctx) => x.handleRowDblClicked(customEvent(ctx))}"
|
|
68
|
+
@cellContextMenu="${(x, ctx) => x.handleRowContextMenu(customEvent(ctx))}"
|
|
65
69
|
>
|
|
66
70
|
|
|
67
71
|
${(x) => datasource(x)}
|
|
@@ -125,6 +125,11 @@
|
|
|
125
125
|
{
|
|
126
126
|
"tagName": "@preapproved",
|
|
127
127
|
"syntaxKind": "modifier"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"tagName": "@fires",
|
|
131
|
+
"syntaxKind": "block",
|
|
132
|
+
"allowMultiple": true
|
|
128
133
|
}
|
|
129
134
|
],
|
|
130
135
|
"supportForTags": {
|
|
@@ -155,7 +160,8 @@
|
|
|
155
160
|
"@virtual": true,
|
|
156
161
|
"@betaDocumentation": true,
|
|
157
162
|
"@internalRemarks": true,
|
|
158
|
-
"@preapproved": true
|
|
163
|
+
"@preapproved": true,
|
|
164
|
+
"@fires": true
|
|
159
165
|
},
|
|
160
166
|
"reportUnsupportedHtmlElements": false
|
|
161
167
|
}
|
|
@@ -243,7 +249,7 @@
|
|
|
243
249
|
{
|
|
244
250
|
"kind": "Class",
|
|
245
251
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement:class",
|
|
246
|
-
"docComment": "/**\n * Main class which defines the entity management functionality\n *\n * @remarks\n *\n * Connects to a backend resource and wraps up a grid which is populated with entities from that resource. The different interactions that the user can perform with the entities can be configured, examples being able to update and delete entities.\n *\n * @example\n *\n * Example of using the entity management system to handle counterparties\n * ```\n * <entity-management\n * resourceName=\"ALL_COUNTERPARTYS\"\n * title=\"Counterparty Management\"\n * updateEvent=\"EVENT_COUNTERPARTY_MODIFY\"\n * deleteEvent=\"EVENT_COUNTERPARTY_DELETE\"\n * createEvent=\"EVENT_COUNTERPARTY_INSERT\"\n * ></entity-management>\n * ```\n *\n * Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the name of the resource in the database to manage is `ALL_COUNTERPARTYS`<br /> - the name of the event handler for update events is `EVENT_COUNTERPARTY_MODIFY`<br /> - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br /> - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />\n *\n * @public\n */\n",
|
|
252
|
+
"docComment": "/**\n * Main class which defines the entity management functionality\n *\n * @remarks\n *\n * Connects to a backend resource and wraps up a grid which is populated with entities from that resource. The different interactions that the user can perform with the entities can be configured, examples being able to update and delete entities.\n *\n * @example\n *\n * Example of using the entity management system to handle counterparties\n * ```\n * <entity-management\n * resourceName=\"ALL_COUNTERPARTYS\"\n * title=\"Counterparty Management\"\n * updateEvent=\"EVENT_COUNTERPARTY_MODIFY\"\n * deleteEvent=\"EVENT_COUNTERPARTY_DELETE\"\n * createEvent=\"EVENT_COUNTERPARTY_INSERT\"\n * ></entity-management>\n * ```\n *\n * Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the name of the resource in the database to manage is `ALL_COUNTERPARTYS`<br /> - the name of the event handler for update events is `EVENT_COUNTERPARTY_MODIFY`<br /> - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br /> - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />\n *\n * @fires\n *\n * request-changed - Fired when the request is changed\n *\n * @fires\n *\n * criteria-changed - Fired when the criteria is changed\n *\n * @fires\n *\n * create-entity - Fired when an entity is created\n *\n * @fires\n *\n * edit-entity - Fired when an entity is edited\n *\n * @fires\n *\n * delete-entity - Fired when an entity is deleted\n *\n * Bubbled events from the child entity-list component\n *\n * @fires\n *\n * submit-failure - Fired when there is an error in a create, edit or delete operation\n *\n * @fires\n *\n * submit-success - Fired when a create, edit or delete operation is completed successfully\n *\n * @fires\n *\n * rowClick - Fired when a row is clicked\n *\n * @fires\n *\n * rowDblClick - Fired when a row is double clicked\n *\n * @fires\n *\n * contextMenu - Fired when a row is right clicked\n *\n * @fires\n *\n * rowSelected - Fired when a row is selected\n *\n * @public\n */\n",
|
|
247
253
|
"excerptTokens": [
|
|
248
254
|
{
|
|
249
255
|
"kind": "Content",
|
|
@@ -125,6 +125,19 @@ export declare const DynamicTemplate: ViewTemplate<MainApplication>;
|
|
|
125
125
|
* - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br />
|
|
126
126
|
* - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />
|
|
127
127
|
*
|
|
128
|
+
* @fires request-changed - Fired when the request is changed
|
|
129
|
+
* @fires criteria-changed - Fired when the criteria is changed
|
|
130
|
+
* @fires create-entity - Fired when an entity is created
|
|
131
|
+
* @fires edit-entity - Fired when an entity is edited
|
|
132
|
+
* @fires delete-entity - Fired when an entity is deleted
|
|
133
|
+
*
|
|
134
|
+
* Bubbled events from the child entity-list component
|
|
135
|
+
* @fires submit-failure - Fired when there is an error in a create, edit or delete operation
|
|
136
|
+
* @fires submit-success - Fired when a create, edit or delete operation is completed successfully
|
|
137
|
+
* @fires rowClick - Fired when a row is clicked
|
|
138
|
+
* @fires rowDblClick - Fired when a row is double clicked
|
|
139
|
+
* @fires contextMenu - Fired when a row is right clicked
|
|
140
|
+
* @fires rowSelected - Fired when a row is selected
|
|
128
141
|
*/
|
|
129
142
|
export declare class EntityManagement extends EntityManagement_base {
|
|
130
143
|
/**
|
|
@@ -558,7 +571,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
558
571
|
readonly offsetTop: number;
|
|
559
572
|
readonly offsetWidth: number;
|
|
560
573
|
outerText: string;
|
|
561
|
-
spellcheck: boolean;
|
|
574
|
+
spellcheck: boolean; /**
|
|
575
|
+
* Name of the event handler on the Genesis server which handles creating an entity
|
|
576
|
+
* @public
|
|
577
|
+
*/
|
|
562
578
|
title: string;
|
|
563
579
|
translate: boolean;
|
|
564
580
|
attachInternals(): ElementInternals;
|
|
@@ -587,7 +603,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
587
603
|
scrollLeft: number;
|
|
588
604
|
scrollTop: number;
|
|
589
605
|
readonly scrollWidth: number;
|
|
590
|
-
readonly shadowRoot: ShadowRoot;
|
|
606
|
+
readonly shadowRoot: ShadowRoot; /**
|
|
607
|
+
* If true, will enable row flashing for all rows for `add` transactions
|
|
608
|
+
* @public
|
|
609
|
+
*/
|
|
591
610
|
slot: string;
|
|
592
611
|
readonly tagName: string;
|
|
593
612
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
@@ -597,10 +616,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
597
616
|
getAttribute(qualifiedName: string): string;
|
|
598
617
|
getAttributeNS(namespace: string, localName: string): string;
|
|
599
618
|
getAttributeNames(): string[];
|
|
600
|
-
/**
|
|
601
|
-
* GridOptions to be passed down from application
|
|
602
|
-
* @public
|
|
603
|
-
*/
|
|
604
619
|
getAttributeNode(qualifiedName: string): Attr;
|
|
605
620
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
606
621
|
getBoundingClientRect(): DOMRect;
|
|
@@ -654,6 +669,9 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
654
669
|
readonly previousSibling: ChildNode;
|
|
655
670
|
textContent: string;
|
|
656
671
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
672
|
+
/**
|
|
673
|
+
* @internal
|
|
674
|
+
*/
|
|
657
675
|
compareDocumentPosition(other: Node): number;
|
|
658
676
|
contains(other: Node): boolean;
|
|
659
677
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
@@ -661,10 +679,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
661
679
|
insertBefore<T_2 extends Node>(node: T_2, child: Node): T_2;
|
|
662
680
|
isDefaultNamespace(namespace: string): boolean;
|
|
663
681
|
isEqualNode(otherNode: Node): boolean;
|
|
664
|
-
isSameNode(otherNode: Node): boolean;
|
|
665
|
-
* Allows configuration of the search bar component, if not provided it would build configuration based on columns in the grid
|
|
666
|
-
* * @public
|
|
667
|
-
*/
|
|
682
|
+
isSameNode(otherNode: Node): boolean;
|
|
668
683
|
lookupNamespaceURI(prefix: string): string;
|
|
669
684
|
lookupPrefix(namespace: string): string;
|
|
670
685
|
normalize(): void;
|
|
@@ -685,15 +700,13 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
685
700
|
readonly ELEMENT_NODE: number;
|
|
686
701
|
readonly ENTITY_NODE: number;
|
|
687
702
|
readonly ENTITY_REFERENCE_NODE: number;
|
|
688
|
-
/**
|
|
689
|
-
* The helper function to determine the title of the modal form or button based on the action or type
|
|
690
|
-
* @param actionOrType - The crud action or modal form type
|
|
691
|
-
* @internal
|
|
692
|
-
*/
|
|
693
703
|
readonly NOTATION_NODE: number;
|
|
694
704
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
695
705
|
readonly TEXT_NODE: number;
|
|
696
|
-
dispatchEvent(event: Event): boolean;
|
|
706
|
+
dispatchEvent(event: Event): boolean; /**
|
|
707
|
+
* Determines where the buttons will appear
|
|
708
|
+
* @public
|
|
709
|
+
*/
|
|
697
710
|
ariaAtomic: string;
|
|
698
711
|
ariaAutoComplete: string;
|
|
699
712
|
ariaBusy: string;
|
|
@@ -707,10 +720,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
707
720
|
ariaExpanded: string;
|
|
708
721
|
ariaHasPopup: string;
|
|
709
722
|
ariaHidden: string;
|
|
710
|
-
ariaInvalid: string;
|
|
711
|
-
* Getter for the title of the modal form
|
|
712
|
-
* @internal
|
|
713
|
-
*/
|
|
723
|
+
ariaInvalid: string;
|
|
714
724
|
ariaKeyShortcuts: string;
|
|
715
725
|
ariaLabel: string;
|
|
716
726
|
ariaLevel: string;
|
|
@@ -804,12 +814,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
804
814
|
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
805
815
|
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
806
816
|
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
807
|
-
onload: (this: GlobalEventHandlers, ev: Event) => any;
|
|
808
|
-
* Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
|
|
809
|
-
*
|
|
810
|
-
* @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
|
|
811
|
-
* @internal
|
|
812
|
-
*/
|
|
817
|
+
onload: (this: GlobalEventHandlers, ev: Event) => any;
|
|
813
818
|
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
814
819
|
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
815
820
|
onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -821,17 +826,16 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
821
826
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
822
827
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
823
828
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
824
|
-
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
825
|
-
* Opens the model to edit an entity. Added as an event listener on the class when receiving the `edit-entity` event.
|
|
826
|
-
*
|
|
827
|
-
* @param e - CustomEvent where `e.detail` is the entity to edit.
|
|
828
|
-
* @internal
|
|
829
|
-
*/
|
|
829
|
+
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
830
830
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
831
831
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
832
832
|
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
833
833
|
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
834
|
-
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
834
|
+
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any; /**
|
|
835
|
+
* Show the entity create form
|
|
836
|
+
* Sets the initial value on the form to be defaultEntityValues if present.
|
|
837
|
+
* @internal
|
|
838
|
+
*/
|
|
835
839
|
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
836
840
|
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
837
841
|
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
@@ -848,9 +852,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
848
852
|
onselect: (this: GlobalEventHandlers, ev: Event) => any;
|
|
849
853
|
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
850
854
|
onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
851
|
-
/**
|
|
852
|
-
* @internal
|
|
853
|
-
*/
|
|
854
855
|
onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
855
856
|
onstalled: (this: GlobalEventHandlers, ev: Event) => any;
|
|
856
857
|
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-entity-management",
|
|
3
3
|
"description": "Genesis Foundation Entity Management",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.222.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -52,29 +52,29 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@genesislcap/foundation-testing": "14.
|
|
56
|
-
"@genesislcap/genx": "14.
|
|
57
|
-
"@genesislcap/rollup-builder": "14.
|
|
58
|
-
"@genesislcap/ts-builder": "14.
|
|
59
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
60
|
-
"@genesislcap/vite-builder": "14.
|
|
61
|
-
"@genesislcap/webpack-builder": "14.
|
|
55
|
+
"@genesislcap/foundation-testing": "14.222.0",
|
|
56
|
+
"@genesislcap/genx": "14.222.0",
|
|
57
|
+
"@genesislcap/rollup-builder": "14.222.0",
|
|
58
|
+
"@genesislcap/ts-builder": "14.222.0",
|
|
59
|
+
"@genesislcap/uvu-playwright-builder": "14.222.0",
|
|
60
|
+
"@genesislcap/vite-builder": "14.222.0",
|
|
61
|
+
"@genesislcap/webpack-builder": "14.222.0",
|
|
62
62
|
"rimraf": "^5.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@ag-grid-community/core": "29.2.0",
|
|
66
|
-
"@genesislcap/foundation-comms": "14.
|
|
67
|
-
"@genesislcap/foundation-errors": "14.
|
|
68
|
-
"@genesislcap/foundation-events": "14.
|
|
69
|
-
"@genesislcap/foundation-forms": "14.
|
|
70
|
-
"@genesislcap/foundation-logger": "14.
|
|
71
|
-
"@genesislcap/foundation-login": "14.
|
|
72
|
-
"@genesislcap/foundation-notifications": "14.
|
|
73
|
-
"@genesislcap/foundation-ui": "14.
|
|
74
|
-
"@genesislcap/foundation-utils": "14.
|
|
75
|
-
"@genesislcap/foundation-zero": "14.
|
|
76
|
-
"@genesislcap/foundation-zero-grid-pro": "14.
|
|
77
|
-
"@genesislcap/grid-pro": "14.
|
|
66
|
+
"@genesislcap/foundation-comms": "14.222.0",
|
|
67
|
+
"@genesislcap/foundation-errors": "14.222.0",
|
|
68
|
+
"@genesislcap/foundation-events": "14.222.0",
|
|
69
|
+
"@genesislcap/foundation-forms": "14.222.0",
|
|
70
|
+
"@genesislcap/foundation-logger": "14.222.0",
|
|
71
|
+
"@genesislcap/foundation-login": "14.222.0",
|
|
72
|
+
"@genesislcap/foundation-notifications": "14.222.0",
|
|
73
|
+
"@genesislcap/foundation-ui": "14.222.0",
|
|
74
|
+
"@genesislcap/foundation-utils": "14.222.0",
|
|
75
|
+
"@genesislcap/foundation-zero": "14.222.0",
|
|
76
|
+
"@genesislcap/foundation-zero-grid-pro": "14.222.0",
|
|
77
|
+
"@genesislcap/grid-pro": "14.222.0",
|
|
78
78
|
"@microsoft/fast-components": "^2.30.6",
|
|
79
79
|
"@microsoft/fast-element": "^1.12.0",
|
|
80
80
|
"@microsoft/fast-foundation": "2.49.6",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"access": "public"
|
|
92
92
|
},
|
|
93
93
|
"customElements": "dist/custom-elements.json",
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "d123c20ba58c810e8ca64c1be44d349e6db79487"
|
|
95
95
|
}
|
package/tsdoc.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
|
|
3
|
+
"extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"],
|
|
4
|
+
"tagDefinitions": [
|
|
5
|
+
{
|
|
6
|
+
"tagName": "@fires",
|
|
7
|
+
"syntaxKind": "block",
|
|
8
|
+
"allowMultiple": true
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"supportForTags": {
|
|
12
|
+
"@fires": true
|
|
13
|
+
}
|
|
14
|
+
}
|