@genesislcap/foundation-entity-management 14.200.1-alpha-eb310c6.0 → 14.201.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.
Files changed (26) hide show
  1. package/dist/custom-elements.json +362 -50
  2. package/dist/dts/entities/entities.d.ts +66 -14
  3. package/dist/dts/entities/entities.d.ts.map +1 -1
  4. package/dist/dts/entities/entities.styles.d.ts.map +1 -1
  5. package/dist/dts/entities/entities.template.d.ts +10 -0
  6. package/dist/dts/entities/entities.template.d.ts.map +1 -1
  7. package/dist/dts/types.d.ts +12 -0
  8. package/dist/dts/types.d.ts.map +1 -1
  9. package/dist/esm/entities/entities.js +111 -1
  10. package/dist/esm/entities/entities.styles.js +13 -2
  11. package/dist/esm/entities/entities.template.js +68 -16
  12. package/dist/esm/types.js +14 -0
  13. package/dist/foundation-entity-management.api.json +308 -0
  14. package/dist/foundation-entity-management.d.ts +79 -14
  15. package/docs/api/foundation-entity-management.entitymanagement.crudactionmenuname.md +13 -0
  16. package/docs/api/foundation-entity-management.entitymanagement.crudmenuposition.md +13 -0
  17. package/docs/api/foundation-entity-management.entitymanagement.crudmenustyle.md +13 -0
  18. package/docs/api/foundation-entity-management.entitymanagement.crudmenuwrapper.md +13 -0
  19. package/docs/api/foundation-entity-management.entitymanagement.emitcrud.md +24 -0
  20. package/docs/api/foundation-entity-management.entitymanagement.hascontentinslot.md +26 -0
  21. package/docs/api/foundation-entity-management.entitymanagement.hasselectedentity.md +13 -0
  22. package/docs/api/foundation-entity-management.entitymanagement.md +9 -0
  23. package/docs/api/foundation-entity-management.entitymanagement.shouldhidedeleteincolumn.md +13 -0
  24. package/docs/api/foundation-entity-management.entitymanagement.shouldhideeditincolumn.md +13 -0
  25. package/docs/api-report.md +13 -0
  26. package/package.json +21 -21
@@ -129,7 +129,7 @@
129
129
  {
130
130
  "kind": "variable",
131
131
  "name": "styles",
132
- "default": "css`\n :host {\n contain: content;\n }\n\n :host::part(header) {\n display: flex;\n justify-content: space-between;\n align-items: center;\n user-select: none;\n }\n\n :host([modal-position='centre']) .edit-modal {\n overflow-y: auto;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n foundation-form {\n height: 100%;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n\n .title {\n margin-left: 1px;\n }\n\n .header-title {\n color: var(--neutral-foreground-rest);\n font-size: var(--type-ramp-plus-4-font-size);\n font-family: var(--body-font);\n font-weight: 700;\n padding-left: calc(var(--design-unit) * 2px);\n }\n\n .search-container {\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .search-container zero-search-bar,\n .search-container rapid-search-bar {\n width: 500px;\n }\n\n .add-button {\n margin-right: calc(var(--design-unit) * 2px);\n }\n`",
132
+ "default": "css`\n :host {\n contain: content;\n }\n\n :host::part(header) {\n display: flex;\n justify-content: space-between;\n align-items: center;\n user-select: none;\n }\n\n :host([modal-position='centre']) .edit-modal {\n overflow-y: auto;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n foundation-form {\n height: 100%;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n\n .title {\n margin-left: 1px;\n }\n\n .header-title {\n color: var(--neutral-foreground-rest);\n font-size: var(--type-ramp-plus-4-font-size);\n font-family: var(--body-font);\n font-weight: 700;\n padding-left: calc(var(--design-unit) * 2px);\n }\n\n .search-container {\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .search-container zero-search-bar,\n .search-container rapid-search-bar {\n width: 500px;\n }\n\n .crud-buttons {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .crud-buttons-wrapper {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n justify-content: flex-end;\n }\n\n .crud-buttons-wrapper-bottom {\n padding-top: calc(var(--design-unit) * 2px);\n }\n`",
133
133
  "description": "Defines the css of the entity component as an ElementStyles object"
134
134
  }
135
135
  ],
@@ -148,6 +148,22 @@
148
148
  "kind": "javascript-module",
149
149
  "path": "src/entities/entities.template.ts",
150
150
  "declarations": [
151
+ {
152
+ "kind": "function",
153
+ "name": "crudButtonsTemplate",
154
+ "parameters": [
155
+ {
156
+ "name": "prefix"
157
+ },
158
+ {
159
+ "name": "position",
160
+ "type": {
161
+ "text": "CrudMenuPosition"
162
+ }
163
+ }
164
+ ],
165
+ "description": "Default crud buttons for Entity Management screen"
166
+ },
151
167
  {
152
168
  "kind": "function",
153
169
  "name": "getPrefixedEntities",
@@ -160,6 +176,14 @@
160
176
  }
161
177
  ],
162
178
  "exports": [
179
+ {
180
+ "kind": "js",
181
+ "name": "crudButtonsTemplate",
182
+ "declaration": {
183
+ "name": "crudButtonsTemplate",
184
+ "module": "src/entities/entities.template.ts"
185
+ }
186
+ },
163
187
  {
164
188
  "kind": "js",
165
189
  "name": "getPrefixedEntities",
@@ -539,6 +563,86 @@
539
563
  "description": "Determines where the modal dialog will appear on screen",
540
564
  "privacy": "public"
541
565
  },
566
+ {
567
+ "kind": "field",
568
+ "name": "crudMenuPosition",
569
+ "type": {
570
+ "text": "CrudMenuPosition"
571
+ },
572
+ "description": "Determines where the buttons will appear",
573
+ "privacy": "public"
574
+ },
575
+ {
576
+ "kind": "field",
577
+ "name": "crudMenuStyle",
578
+ "type": {
579
+ "text": "ActionsMenuStyle"
580
+ },
581
+ "description": "Determines the style of the buttons",
582
+ "privacy": "public"
583
+ },
584
+ {
585
+ "kind": "field",
586
+ "name": "crudActionMenuName",
587
+ "type": {
588
+ "text": "string"
589
+ },
590
+ "default": "'⋮'",
591
+ "description": "The label of the crud action menu"
592
+ },
593
+ {
594
+ "kind": "field",
595
+ "name": "crudMenuWrapper",
596
+ "privacy": "public",
597
+ "description": "The Id of the crud buttons wrapper element"
598
+ },
599
+ {
600
+ "kind": "field",
601
+ "name": "shouldHideEditInColumn",
602
+ "type": {
603
+ "text": "boolean"
604
+ },
605
+ "description": "Determines whether the button edit should be hidden in the column",
606
+ "readonly": true
607
+ },
608
+ {
609
+ "kind": "field",
610
+ "name": "shouldHideDeleteInColumn",
611
+ "type": {
612
+ "text": "boolean"
613
+ },
614
+ "description": "Determines whether the button delete should be hidden in the column",
615
+ "readonly": true
616
+ },
617
+ {
618
+ "kind": "field",
619
+ "name": "hasSelectedEntity",
620
+ "type": {
621
+ "text": "boolean"
622
+ },
623
+ "description": "Determines whether there is a selected entity",
624
+ "readonly": true
625
+ },
626
+ {
627
+ "kind": "method",
628
+ "name": "hasContentInSlot",
629
+ "privacy": "public",
630
+ "return": {
631
+ "type": {
632
+ "text": ""
633
+ }
634
+ },
635
+ "parameters": [
636
+ {
637
+ "name": "slotName",
638
+ "type": {
639
+ "text": "string"
640
+ },
641
+ "description": "The name of the slot to check."
642
+ }
643
+ ],
644
+ "description": "Checks if a slot contains any content."
645
+ },
542
646
  {
543
647
  "kind": "method",
544
648
  "name": "deepClone",
@@ -680,6 +784,21 @@
680
784
  "kind": "method",
681
785
  "name": "showDeleteConfirmation",
682
786
  "privacy": "private"
787
+ },
788
+ {
789
+ "kind": "method",
790
+ "name": "emitCrud",
791
+ "privacy": "public",
792
+ "parameters": [
793
+ {
794
+ "name": "action",
795
+ "type": {
796
+ "text": "'create' | 'edit' | 'delete'"
797
+ },
798
+ "description": "the action to emit"
799
+ }
800
+ ],
801
+ "description": "Emit the CRUD event for the selected entity"
683
802
  }
684
803
  ],
685
804
  "attributes": [
@@ -880,6 +999,31 @@
880
999
  "default": "'right'",
881
1000
  "description": "Determines where the modal dialog will appear on screen",
882
1001
  "fieldName": "modalPosition"
1002
+ },
1003
+ {
1004
+ "name": "crud-menu-position",
1005
+ "type": {
1006
+ "text": "CrudMenuPosition"
1007
+ },
1008
+ "description": "Determines where the buttons will appear",
1009
+ "fieldName": "crudMenuPosition"
1010
+ },
1011
+ {
1012
+ "name": "crud-menu-style",
1013
+ "type": {
1014
+ "text": "ActionsMenuStyle"
1015
+ },
1016
+ "description": "Determines the style of the buttons",
1017
+ "fieldName": "crudMenuStyle"
1018
+ },
1019
+ {
1020
+ "name": "crud-action-menu-name",
1021
+ "type": {
1022
+ "text": "string"
1023
+ },
1024
+ "default": "'⋮'",
1025
+ "description": "The label of the crud action menu",
1026
+ "fieldName": "crudActionMenuName"
883
1027
  }
884
1028
  ],
885
1029
  "mixins": [
@@ -946,6 +1090,55 @@
946
1090
  }
947
1091
  ]
948
1092
  },
1093
+ {
1094
+ "kind": "javascript-module",
1095
+ "path": "src/layouts/default.ts",
1096
+ "declarations": [
1097
+ {
1098
+ "kind": "variable",
1099
+ "name": "loginLayout",
1100
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
1101
+ },
1102
+ {
1103
+ "kind": "variable",
1104
+ "name": "defaultLayout",
1105
+ "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)"
1106
+ }
1107
+ ],
1108
+ "exports": [
1109
+ {
1110
+ "kind": "js",
1111
+ "name": "loginLayout",
1112
+ "declaration": {
1113
+ "name": "loginLayout",
1114
+ "module": "src/layouts/default.ts"
1115
+ }
1116
+ },
1117
+ {
1118
+ "kind": "js",
1119
+ "name": "defaultLayout",
1120
+ "declaration": {
1121
+ "name": "defaultLayout",
1122
+ "module": "src/layouts/default.ts"
1123
+ }
1124
+ }
1125
+ ]
1126
+ },
1127
+ {
1128
+ "kind": "javascript-module",
1129
+ "path": "src/layouts/index.ts",
1130
+ "declarations": [],
1131
+ "exports": [
1132
+ {
1133
+ "kind": "js",
1134
+ "name": "*",
1135
+ "declaration": {
1136
+ "name": "*",
1137
+ "package": "./default"
1138
+ }
1139
+ }
1140
+ ]
1141
+ },
949
1142
  {
950
1143
  "kind": "javascript-module",
951
1144
  "path": "src/list/index.ts",
@@ -1433,55 +1626,6 @@
1433
1626
  }
1434
1627
  ]
1435
1628
  },
1436
- {
1437
- "kind": "javascript-module",
1438
- "path": "src/layouts/default.ts",
1439
- "declarations": [
1440
- {
1441
- "kind": "variable",
1442
- "name": "loginLayout",
1443
- "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
1444
- },
1445
- {
1446
- "kind": "variable",
1447
- "name": "defaultLayout",
1448
- "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)"
1449
- }
1450
- ],
1451
- "exports": [
1452
- {
1453
- "kind": "js",
1454
- "name": "loginLayout",
1455
- "declaration": {
1456
- "name": "loginLayout",
1457
- "module": "src/layouts/default.ts"
1458
- }
1459
- },
1460
- {
1461
- "kind": "js",
1462
- "name": "defaultLayout",
1463
- "declaration": {
1464
- "name": "defaultLayout",
1465
- "module": "src/layouts/default.ts"
1466
- }
1467
- }
1468
- ]
1469
- },
1470
- {
1471
- "kind": "javascript-module",
1472
- "path": "src/layouts/index.ts",
1473
- "declarations": [],
1474
- "exports": [
1475
- {
1476
- "kind": "js",
1477
- "name": "*",
1478
- "declaration": {
1479
- "name": "*",
1480
- "package": "./default"
1481
- }
1482
- }
1483
- ]
1484
- },
1485
1629
  {
1486
1630
  "kind": "javascript-module",
1487
1631
  "path": "src/main/index.ts",
@@ -2211,6 +2355,118 @@
2211
2355
  "module": "src/entities/entities.ts"
2212
2356
  }
2213
2357
  },
2358
+ {
2359
+ "kind": "field",
2360
+ "name": "crudMenuPosition",
2361
+ "type": {
2362
+ "text": "CrudMenuPosition"
2363
+ },
2364
+ "description": "Determines where the buttons will appear",
2365
+ "privacy": "public",
2366
+ "inheritedFrom": {
2367
+ "name": "EntityManagement",
2368
+ "module": "src/entities/entities.ts"
2369
+ }
2370
+ },
2371
+ {
2372
+ "kind": "field",
2373
+ "name": "crudMenuStyle",
2374
+ "type": {
2375
+ "text": "ActionsMenuStyle"
2376
+ },
2377
+ "description": "Determines the style of the buttons",
2378
+ "privacy": "public",
2379
+ "inheritedFrom": {
2380
+ "name": "EntityManagement",
2381
+ "module": "src/entities/entities.ts"
2382
+ }
2383
+ },
2384
+ {
2385
+ "kind": "field",
2386
+ "name": "crudActionMenuName",
2387
+ "type": {
2388
+ "text": "string"
2389
+ },
2390
+ "default": "'⋮'",
2391
+ "description": "The label of the crud action menu",
2392
+ "inheritedFrom": {
2393
+ "name": "EntityManagement",
2394
+ "module": "src/entities/entities.ts"
2395
+ }
2396
+ },
2397
+ {
2398
+ "kind": "field",
2399
+ "name": "crudMenuWrapper",
2400
+ "privacy": "public",
2401
+ "description": "The Id of the crud buttons wrapper element",
2402
+ "inheritedFrom": {
2403
+ "name": "EntityManagement",
2404
+ "module": "src/entities/entities.ts"
2405
+ }
2406
+ },
2407
+ {
2408
+ "kind": "field",
2409
+ "name": "shouldHideEditInColumn",
2410
+ "type": {
2411
+ "text": "boolean"
2412
+ },
2413
+ "description": "Determines whether the button edit should be hidden in the column",
2414
+ "readonly": true,
2415
+ "inheritedFrom": {
2416
+ "name": "EntityManagement",
2417
+ "module": "src/entities/entities.ts"
2418
+ }
2419
+ },
2420
+ {
2421
+ "kind": "field",
2422
+ "name": "shouldHideDeleteInColumn",
2423
+ "type": {
2424
+ "text": "boolean"
2425
+ },
2426
+ "description": "Determines whether the button delete should be hidden in the column",
2427
+ "readonly": true,
2428
+ "inheritedFrom": {
2429
+ "name": "EntityManagement",
2430
+ "module": "src/entities/entities.ts"
2431
+ }
2432
+ },
2433
+ {
2434
+ "kind": "field",
2435
+ "name": "hasSelectedEntity",
2436
+ "type": {
2437
+ "text": "boolean"
2438
+ },
2439
+ "description": "Determines whether there is a selected entity",
2440
+ "readonly": true,
2441
+ "inheritedFrom": {
2442
+ "name": "EntityManagement",
2443
+ "module": "src/entities/entities.ts"
2444
+ }
2445
+ },
2446
+ {
2447
+ "kind": "method",
2448
+ "name": "hasContentInSlot",
2449
+ "privacy": "public",
2450
+ "return": {
2451
+ "type": {
2452
+ "text": ""
2453
+ }
2454
+ },
2455
+ "parameters": [
2456
+ {
2457
+ "name": "slotName",
2458
+ "type": {
2459
+ "text": "string"
2460
+ },
2461
+ "description": "The name of the slot to check."
2462
+ }
2463
+ ],
2464
+ "description": "Checks if a slot contains any content.",
2465
+ "inheritedFrom": {
2466
+ "name": "EntityManagement",
2467
+ "module": "src/entities/entities.ts"
2468
+ }
2469
+ },
2214
2470
  {
2215
2471
  "kind": "method",
2216
2472
  "name": "deepClone",
@@ -2400,6 +2656,25 @@
2400
2656
  "name": "EntityManagement",
2401
2657
  "module": "src/entities/entities.ts"
2402
2658
  }
2659
+ },
2660
+ {
2661
+ "kind": "method",
2662
+ "name": "emitCrud",
2663
+ "privacy": "public",
2664
+ "parameters": [
2665
+ {
2666
+ "name": "action",
2667
+ "type": {
2668
+ "text": "'create' | 'edit' | 'delete'"
2669
+ },
2670
+ "description": "the action to emit"
2671
+ }
2672
+ ],
2673
+ "description": "Emit the CRUD event for the selected entity",
2674
+ "inheritedFrom": {
2675
+ "name": "EntityManagement",
2676
+ "module": "src/entities/entities.ts"
2677
+ }
2403
2678
  }
2404
2679
  ],
2405
2680
  "superclass": {
@@ -2703,6 +2978,43 @@
2703
2978
  "name": "EntityManagement",
2704
2979
  "module": "src/entities/entities.ts"
2705
2980
  }
2981
+ },
2982
+ {
2983
+ "name": "crud-menu-position",
2984
+ "type": {
2985
+ "text": "CrudMenuPosition"
2986
+ },
2987
+ "description": "Determines where the buttons will appear",
2988
+ "fieldName": "crudMenuPosition",
2989
+ "inheritedFrom": {
2990
+ "name": "EntityManagement",
2991
+ "module": "src/entities/entities.ts"
2992
+ }
2993
+ },
2994
+ {
2995
+ "name": "crud-menu-style",
2996
+ "type": {
2997
+ "text": "ActionsMenuStyle"
2998
+ },
2999
+ "description": "Determines the style of the buttons",
3000
+ "fieldName": "crudMenuStyle",
3001
+ "inheritedFrom": {
3002
+ "name": "EntityManagement",
3003
+ "module": "src/entities/entities.ts"
3004
+ }
3005
+ },
3006
+ {
3007
+ "name": "crud-action-menu-name",
3008
+ "type": {
3009
+ "text": "string"
3010
+ },
3011
+ "default": "'⋮'",
3012
+ "description": "The label of the crud action menu",
3013
+ "fieldName": "crudActionMenuName",
3014
+ "inheritedFrom": {
3015
+ "name": "EntityManagement",
3016
+ "module": "src/entities/entities.ts"
3017
+ }
2706
3018
  }
2707
3019
  ]
2708
3020
  }
@@ -6,6 +6,7 @@ import type { Modal } from '@genesislcap/foundation-ui';
6
6
  import { AvailableOption, SelectedOption } from '@genesislcap/foundation-ui';
7
7
  import type { DatasourceType, GridProCaseType } from '@genesislcap/grid-pro';
8
8
  import { FASTElement } from '@microsoft/fast-element';
9
+ import { CrudMenuPosition, ActionsMenuStyle } from '../types';
9
10
  /**
10
11
  * The attribute which is set to configure the resource that the entity manager is working with
11
12
  *
@@ -43,7 +44,11 @@ declare const EntityManagement_base: (new (...args: any[]) => {
43
44
  readonly $fastController: import("@microsoft/fast-element").Controller;
44
45
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
45
46
  disconnectedCallback(): void;
46
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
47
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void; /**
48
+ * This attribute allows you to change row-selection to 'single' or 'multiple' which will allow you to select single or multiple rows.
49
+ * @remarks Defaults to single
50
+ * @public
51
+ */
47
52
  accessKey: string;
48
53
  readonly accessKeyLabel: string;
49
54
  autocapitalize: string;
@@ -61,6 +66,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
61
66
  outerText: string;
62
67
  spellcheck: boolean;
63
68
  title: string;
69
+ /**
70
+ * If true, will enable row flashing for all rows for `add` transactions
71
+ * @public
72
+ */
64
73
  translate: boolean;
65
74
  attachInternals(): ElementInternals;
66
75
  click(): void;
@@ -96,10 +105,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
96
105
  closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
97
106
  closest<E extends Element = Element>(selectors: string): E;
98
107
  getAttribute(qualifiedName: string): string;
99
- getAttributeNS(namespace: string, localName: string): string; /**
100
- * Array with renderers used by foundation-forms
101
- * @public
102
- */
108
+ getAttributeNS(namespace: string, localName: string): string;
103
109
  getAttributeNames(): string[];
104
110
  getAttributeNode(qualifiedName: string): Attr;
105
111
  getAttributeNodeNS(namespace: string, localName: string): Attr;
@@ -222,14 +228,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
222
228
  ariaSetSize: string;
223
229
  ariaSort: string;
224
230
  ariaValueMax: string;
225
- /**
226
- * Event handler for when the user submits the action for the currently open form, either editing or adding the entity
227
- *
228
- * @param e - CustomEvent which contains the payload for the entity to submit to the backend
229
- *
230
- * Emits an event upon error
231
- * @public
232
- */
233
231
  ariaValueMin: string;
234
232
  ariaValueNow: string;
235
233
  ariaValueText: string;
@@ -581,6 +579,44 @@ export declare class EntityManagement extends EntityManagement_base {
581
579
  * @public
582
580
  */
583
581
  modalPosition: 'centre' | 'left' | 'right';
582
+ /**
583
+ * Determines where the buttons will appear
584
+ * @public
585
+ */
586
+ crudMenuPosition: CrudMenuPosition;
587
+ /**
588
+ * Determines the style of the buttons
589
+ * @public
590
+ */
591
+ crudMenuStyle: ActionsMenuStyle;
592
+ /**
593
+ * The label of the crud action menu
594
+ */
595
+ crudActionMenuName: string;
596
+ /**
597
+ * The Id of the crud buttons wrapper element
598
+ */
599
+ crudMenuWrapper: any;
600
+ /**
601
+ * Determines whether the button edit should be hidden in the column
602
+ */
603
+ get shouldHideEditInColumn(): boolean;
604
+ /**
605
+ * Determines whether the button delete should be hidden in the column
606
+ */
607
+ get shouldHideDeleteInColumn(): boolean;
608
+ /**
609
+ * Determines whether there is a selected entity
610
+ */
611
+ get hasSelectedEntity(): boolean;
612
+ /**
613
+ * Checks if a slot contains any content.
614
+ *
615
+ * @param slotName - The name of the slot to check.
616
+ * @returns True if the slot has content, otherwise false.
617
+ * @public
618
+ */
619
+ hasContentInSlot(slotName: string): boolean;
584
620
  /**
585
621
  * Set up the web component
586
622
  * @internal
@@ -625,7 +661,7 @@ export declare class EntityManagement extends EntityManagement_base {
625
661
  * @param e - CustomEvent where `e.detail` is the entity to edit.
626
662
  * @internal
627
663
  */
628
- private editEntity;
664
+ editEntity({ detail }: CustomEvent): Promise<void>;
629
665
  private readEntity;
630
666
  closeModal(): void;
631
667
  get headerTempalate(): import("@microsoft/fast-element").ViewTemplate<EntityManagement, any>;
@@ -645,11 +681,27 @@ export declare class EntityManagement extends EntityManagement_base {
645
681
  deleteEntity(e: CustomEvent): Promise<void>;
646
682
  confirmDelete(): Promise<void>;
647
683
  private showDeleteConfirmation;
684
+ /**
685
+ * Emit the CRUD event for the selected entity
686
+ * @param action - the action to emit
687
+ */
688
+ emitCrud(action: 'create' | 'edit' | 'delete'): void;
648
689
  /**
649
690
  * Show notifications if the executed event returned an error.
650
691
  * @internal
651
692
  */
652
693
  errorNotify(request: any): void;
694
+ /**
695
+ * Clear the selected entity
696
+ * @internal
697
+ */
698
+ private clearSelectedEntity;
699
+ /**
700
+ * Helper to generate the CRUD actions menu
701
+ *
702
+ * @internal
703
+ */
704
+ private generateCrudActionsMenu;
653
705
  }
654
706
  export {};
655
707
  //# sourceMappingURL=entities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,OAAO,EACP,iBAAiB,EAGlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAa,MAAM,+BAA+B,CAAC;AAEzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,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AAU,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW;IA4B/C,OAAO,CAAC,UAAU;IAMX,UAAU;IAKjB,IACI,eAAe,0EAElB;IAED,IAAI,sBAAsB,IAAI,OAAO,CAEpC;IAEM,aAAa,CAAC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAe9D,kBAAkB,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE;IAKpD,mBAAmB,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE;IAiB9C,cAAc,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAIrC,eAAe,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAItC,yBAAyB,CAAC,CAAC,EAAE,WAAW;IAgC/C;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAK3B,aAAa;IAuBnB,OAAO,CAAC,sBAAsB;IAc9B;;;OAGG;IACI,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ;IAIpD;;;OAGG;IACI,WAAW,CAAC,OAAO,KAAA;IAmB1B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAiChC"}
@@ -1 +1 @@
1
- {"version":3,"file":"entities.styles.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.styles.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,iDAwDlB,CAAC"}
1
+ {"version":3,"file":"entities.styles.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.styles.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,iDAmElB,CAAC"}
@@ -1,4 +1,14 @@
1
+ import { CrudMenuPosition } from '../types';
1
2
  import type { EntityManagement } from './entities';
3
+ /**
4
+ * Default crud buttons for Entity Management screen
5
+ */
6
+ export declare const crudButtonsTemplate: (prefix: any, position: CrudMenuPosition) => import("@microsoft/fast-element").ViewTemplate<EntityManagement, any>;
7
+ /**
8
+ * Default header crud buttons area for Entity Management screen
9
+ * @internal
10
+ */
11
+ export declare const headerCrudAreaTemplate: (prefix: any) => import("@microsoft/fast-element").ViewTemplate<EntityManagement, any>;
2
12
  /**
3
13
  * Default header for Entity Management screen
4
14
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAKnD;;;GAGG;AACH,eAAO,MAAM,aAAa,wFAWzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,wFAiB3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,wFAyD/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,QAAQ,uEAEpB,CAAC"}
1
+ {"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAoBnD;;GAEG;AACH,eAAO,MAAM,mBAAmB,0BAAsB,gBAAgB,0EAkDrE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,wFAWlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,wFAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,wFAS3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,wFAwD/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,QAAQ,uEAEpB,CAAC"}