@genesislcap/foundation-entity-management 14.41.2-bny.1 → 14.41.2-bny.2
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 +113 -1
- package/dist/dts/entities/entities.d.ts +14 -12
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/entities/entities.template.d.ts.map +1 -1
- package/dist/dts/list/list.d.ts +2 -0
- package/dist/dts/list/list.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +8 -0
- package/dist/esm/entities/entities.template.js +2 -0
- package/dist/esm/list/list.js +10 -2
- package/dist/foundation-entity-management.api.json +60 -0
- package/dist/foundation-entity-management.d.ts +14 -12
- package/docs/api/foundation-entity-management.entitymanagement.hidedelete.md +11 -0
- package/docs/api/foundation-entity-management.entitymanagement.hideedit.md +11 -0
- package/docs/api/foundation-entity-management.entitymanagement.md +2 -0
- package/docs/api-report.md +4 -0
- package/package.json +13 -13
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
{
|
|
152
152
|
"kind": "variable",
|
|
153
153
|
"name": "template",
|
|
154
|
-
"default": "html<EntityManagement>`\n <div class=\"container\">\n <slot name=\"header\" part=\"header\">${defaultHeader}</slot>\n <entity-list\n title=${(x) => x.title}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit=${(x) => x.sizeColumnsToFit}\n enable-filter-bar=${(x) => x.enableFilterBar}\n resourceName=${(x) => x.resourceName}\n :deleteEvent=${(x) => x.deleteEvent}\n :updateEvent=${(x) => x.updateEvent}\n :gridOptions=${(x) => x.gridOptions}\n :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\n >\n <slot name=\"header\" slot=\"header\">${defaultHeader}</slot>\n </entity-list>\n <zero-modal\n ${ref('editEntityModal')}\n position=${(x) => x.modalPosition}\n :onCloseCallback=${(x) => x.closeModal.bind(x)}\n data-test-id=\"edit-entity-modal\"\n >\n <div slot=\"top\" data-test-id=\"dialog-title\">${(x) => x.editDialogTitle}</div>\n\n <slot name=\"edit\">\n ${when(\n (x) => x.editModalVisible,\n html<EntityManagement>`\n <foundation-form\n part=\"form\"\n ${ref('editEntityForm')}\n resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\n @submit-failure=${(x, c) =>\n x.errorSnack((c.event as CustomEvent<{ errors: MessageError[] }>).detail.errors)}\n ></foundation-form>\n `\n )}\n </slot>\n </zero-modal>\n </div>\n`",
|
|
154
|
+
"default": "html<EntityManagement>`\n <div class=\"container\">\n <slot name=\"header\" part=\"header\">${defaultHeader}</slot>\n <entity-list\n title=${(x) => x.title}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit=${(x) => x.sizeColumnsToFit}\n enable-filter-bar=${(x) => x.enableFilterBar}\n resourceName=${(x) => x.resourceName}\n :deleteEvent=${(x) => x.deleteEvent}\n :updateEvent=${(x) => x.updateEvent}\n :gridOptions=${(x) => x.gridOptions}\n :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\n hide-edit=${(x) => x.hideEdit}\n hide-delete=${(x) => x.hideDelete}\n >\n <slot name=\"header\" slot=\"header\">${defaultHeader}</slot>\n </entity-list>\n <zero-modal\n ${ref('editEntityModal')}\n position=${(x) => x.modalPosition}\n :onCloseCallback=${(x) => x.closeModal.bind(x)}\n data-test-id=\"edit-entity-modal\"\n >\n <div slot=\"top\" data-test-id=\"dialog-title\">${(x) => x.editDialogTitle}</div>\n\n <slot name=\"edit\">\n ${when(\n (x) => x.editModalVisible,\n html<EntityManagement>`\n <foundation-form\n part=\"form\"\n ${ref('editEntityForm')}\n resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\n @submit-failure=${(x, c) =>\n x.errorSnack((c.event as CustomEvent<{ errors: MessageError[] }>).detail.errors)}\n ></foundation-form>\n `\n )}\n </slot>\n </zero-modal>\n </div>\n`",
|
|
155
155
|
"description": "Defines the html of the entity component as a ViewTemplate object"
|
|
156
156
|
}
|
|
157
157
|
],
|
|
@@ -406,6 +406,22 @@
|
|
|
406
406
|
"text": "boolean"
|
|
407
407
|
}
|
|
408
408
|
},
|
|
409
|
+
{
|
|
410
|
+
"kind": "field",
|
|
411
|
+
"name": "hideEdit",
|
|
412
|
+
"type": {
|
|
413
|
+
"text": "boolean"
|
|
414
|
+
},
|
|
415
|
+
"default": "false"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"kind": "field",
|
|
419
|
+
"name": "hideDelete",
|
|
420
|
+
"type": {
|
|
421
|
+
"text": "boolean"
|
|
422
|
+
},
|
|
423
|
+
"default": "false"
|
|
424
|
+
},
|
|
409
425
|
{
|
|
410
426
|
"kind": "field",
|
|
411
427
|
"name": "modalPosition",
|
|
@@ -575,6 +591,22 @@
|
|
|
575
591
|
},
|
|
576
592
|
"fieldName": "enableCellFlashing"
|
|
577
593
|
},
|
|
594
|
+
{
|
|
595
|
+
"name": "hide-edit",
|
|
596
|
+
"type": {
|
|
597
|
+
"text": "boolean"
|
|
598
|
+
},
|
|
599
|
+
"default": "false",
|
|
600
|
+
"fieldName": "hideEdit"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"name": "hide-delete",
|
|
604
|
+
"type": {
|
|
605
|
+
"text": "boolean"
|
|
606
|
+
},
|
|
607
|
+
"default": "false",
|
|
608
|
+
"fieldName": "hideDelete"
|
|
609
|
+
},
|
|
578
610
|
{
|
|
579
611
|
"name": "modal-position",
|
|
580
612
|
"type": {
|
|
@@ -808,6 +840,22 @@
|
|
|
808
840
|
"text": "boolean"
|
|
809
841
|
}
|
|
810
842
|
},
|
|
843
|
+
{
|
|
844
|
+
"kind": "field",
|
|
845
|
+
"name": "hideEdit",
|
|
846
|
+
"type": {
|
|
847
|
+
"text": "boolean"
|
|
848
|
+
},
|
|
849
|
+
"default": "false"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"kind": "field",
|
|
853
|
+
"name": "hideDelete",
|
|
854
|
+
"type": {
|
|
855
|
+
"text": "boolean"
|
|
856
|
+
},
|
|
857
|
+
"default": "false"
|
|
858
|
+
},
|
|
811
859
|
{
|
|
812
860
|
"kind": "field",
|
|
813
861
|
"name": "grid",
|
|
@@ -956,6 +1004,22 @@
|
|
|
956
1004
|
"text": "boolean"
|
|
957
1005
|
},
|
|
958
1006
|
"fieldName": "enableCellFlashing"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"name": "hide-edit",
|
|
1010
|
+
"type": {
|
|
1011
|
+
"text": "boolean"
|
|
1012
|
+
},
|
|
1013
|
+
"default": "false",
|
|
1014
|
+
"fieldName": "hideEdit"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"name": "hide-delete",
|
|
1018
|
+
"type": {
|
|
1019
|
+
"text": "boolean"
|
|
1020
|
+
},
|
|
1021
|
+
"default": "false",
|
|
1022
|
+
"fieldName": "hideDelete"
|
|
959
1023
|
}
|
|
960
1024
|
],
|
|
961
1025
|
"superclass": {
|
|
@@ -1541,6 +1605,30 @@
|
|
|
1541
1605
|
"module": "src/entities/entities.ts"
|
|
1542
1606
|
}
|
|
1543
1607
|
},
|
|
1608
|
+
{
|
|
1609
|
+
"kind": "field",
|
|
1610
|
+
"name": "hideEdit",
|
|
1611
|
+
"type": {
|
|
1612
|
+
"text": "boolean"
|
|
1613
|
+
},
|
|
1614
|
+
"default": "false",
|
|
1615
|
+
"inheritedFrom": {
|
|
1616
|
+
"name": "EntityManagement",
|
|
1617
|
+
"module": "src/entities/entities.ts"
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
"kind": "field",
|
|
1622
|
+
"name": "hideDelete",
|
|
1623
|
+
"type": {
|
|
1624
|
+
"text": "boolean"
|
|
1625
|
+
},
|
|
1626
|
+
"default": "false",
|
|
1627
|
+
"inheritedFrom": {
|
|
1628
|
+
"name": "EntityManagement",
|
|
1629
|
+
"module": "src/entities/entities.ts"
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1544
1632
|
{
|
|
1545
1633
|
"kind": "field",
|
|
1546
1634
|
"name": "modalPosition",
|
|
@@ -1788,6 +1876,30 @@
|
|
|
1788
1876
|
"module": "src/entities/entities.ts"
|
|
1789
1877
|
}
|
|
1790
1878
|
},
|
|
1879
|
+
{
|
|
1880
|
+
"name": "hide-edit",
|
|
1881
|
+
"type": {
|
|
1882
|
+
"text": "boolean"
|
|
1883
|
+
},
|
|
1884
|
+
"default": "false",
|
|
1885
|
+
"fieldName": "hideEdit",
|
|
1886
|
+
"inheritedFrom": {
|
|
1887
|
+
"name": "EntityManagement",
|
|
1888
|
+
"module": "src/entities/entities.ts"
|
|
1889
|
+
}
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
"name": "hide-delete",
|
|
1893
|
+
"type": {
|
|
1894
|
+
"text": "boolean"
|
|
1895
|
+
},
|
|
1896
|
+
"default": "false",
|
|
1897
|
+
"fieldName": "hideDelete",
|
|
1898
|
+
"inheritedFrom": {
|
|
1899
|
+
"name": "EntityManagement",
|
|
1900
|
+
"module": "src/entities/entities.ts"
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1791
1903
|
{
|
|
1792
1904
|
"name": "modal-position",
|
|
1793
1905
|
"type": {
|
|
@@ -96,18 +96,9 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
96
96
|
getBoundingClientRect(): DOMRect;
|
|
97
97
|
getClientRects(): DOMRectList;
|
|
98
98
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
99
|
-
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
*/
|
|
103
|
-
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>; /**
|
|
104
|
-
* Determines where the modal dialog will appear on screen
|
|
105
|
-
* @public
|
|
106
|
-
*/
|
|
107
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /**
|
|
108
|
-
* Determines where the modal dialog will appear on screen
|
|
109
|
-
* @public
|
|
110
|
-
*/
|
|
99
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
100
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
101
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
111
102
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
112
103
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
113
104
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
@@ -151,6 +142,11 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
151
142
|
readonly parentElement: HTMLElement;
|
|
152
143
|
readonly parentNode: ParentNode;
|
|
153
144
|
readonly previousSibling: ChildNode;
|
|
145
|
+
/**
|
|
146
|
+
* Show the entity create form
|
|
147
|
+
* Sets the initial value on the form to be defaultEntityValues if present.
|
|
148
|
+
* @internal
|
|
149
|
+
*/
|
|
154
150
|
textContent: string;
|
|
155
151
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
156
152
|
compareDocumentPosition(other: Node): number;
|
|
@@ -237,6 +233,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
237
233
|
readonly childElementCount: number;
|
|
238
234
|
readonly children: HTMLCollection;
|
|
239
235
|
readonly firstElementChild: Element;
|
|
236
|
+
/**
|
|
237
|
+
* Show notifications if the executed event returned an error.
|
|
238
|
+
* @internal
|
|
239
|
+
*/
|
|
240
240
|
readonly lastElementChild: Element;
|
|
241
241
|
append(...nodes: (string | Node)[]): void;
|
|
242
242
|
prepend(...nodes: (string | Node)[]): void;
|
|
@@ -500,6 +500,8 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
500
500
|
sizeColumnsToFit: boolean;
|
|
501
501
|
enableFilterBar: boolean;
|
|
502
502
|
enableCellFlashing: boolean;
|
|
503
|
+
hideEdit: boolean;
|
|
504
|
+
hideDelete: boolean;
|
|
503
505
|
/**
|
|
504
506
|
* Determines where the modal dialog will appear on screen
|
|
505
507
|
* @public
|
|
@@ -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,EAAE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAUzF,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAKrD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+IxF;;;OAGG
|
|
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,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AAM,CAAC;IAI7C;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAK3B,aAAa;IAoBnB,OAAO,CAAC,sBAAsB;IAgB9B;;;OAGG;IACI,WAAW,CAAC,OAAO,KAAA;IAuB1B;;OAEG;IACI,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE;CAexC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAmB9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAmB9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,uEA+CpB,CAAC"}
|
package/dist/dts/list/list.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare class List extends FASTElement {
|
|
|
9
9
|
sizeColumnsToFit: boolean;
|
|
10
10
|
enableFilterBar: boolean;
|
|
11
11
|
enableCellFlashing: boolean;
|
|
12
|
+
hideEdit: boolean;
|
|
13
|
+
hideDelete: boolean;
|
|
12
14
|
grid: ZeroGridPro;
|
|
13
15
|
datasource: GridProGenesisDatasource;
|
|
14
16
|
gridOptions: GridOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM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AC,IAAI,CAEV;IAEI,MAAM,CAAC,CAAC,KAAA;CAGf"}
|
|
@@ -47,6 +47,8 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
47
47
|
*/
|
|
48
48
|
this.entityLabel = '';
|
|
49
49
|
this.editModalVisible = false;
|
|
50
|
+
this.hideEdit = false;
|
|
51
|
+
this.hideDelete = false;
|
|
50
52
|
/**
|
|
51
53
|
* Determines where the modal dialog will appear on screen
|
|
52
54
|
* @public
|
|
@@ -338,6 +340,12 @@ __decorate([
|
|
|
338
340
|
__decorate([
|
|
339
341
|
attr({ mode: 'boolean', attribute: 'enable-cell-flashing' })
|
|
340
342
|
], EntityManagement.prototype, "enableCellFlashing", void 0);
|
|
343
|
+
__decorate([
|
|
344
|
+
attr({ mode: 'boolean', attribute: 'hide-edit' })
|
|
345
|
+
], EntityManagement.prototype, "hideEdit", void 0);
|
|
346
|
+
__decorate([
|
|
347
|
+
attr({ mode: 'boolean', attribute: 'hide-delete' })
|
|
348
|
+
], EntityManagement.prototype, "hideDelete", void 0);
|
|
341
349
|
__decorate([
|
|
342
350
|
attr({ attribute: 'modal-position' })
|
|
343
351
|
], EntityManagement.prototype, "modalPosition", void 0);
|
|
@@ -32,6 +32,8 @@ export const template = html `
|
|
|
32
32
|
:columns=${(x) => x.columns}
|
|
33
33
|
:datasourceConfig=${(x) => x.datasourceConfig}
|
|
34
34
|
data-test-id="entity-list"
|
|
35
|
+
hide-edit=${(x) => x.hideEdit}
|
|
36
|
+
hide-delete=${(x) => x.hideDelete}
|
|
35
37
|
>
|
|
36
38
|
<slot name="header" slot="header">${defaultHeader}</slot>
|
|
37
39
|
</entity-list>
|
package/dist/esm/list/list.js
CHANGED
|
@@ -9,6 +9,8 @@ let List = class List extends FASTElement {
|
|
|
9
9
|
super(...arguments);
|
|
10
10
|
this.resourceName = '';
|
|
11
11
|
this.title = '';
|
|
12
|
+
this.hideEdit = false;
|
|
13
|
+
this.hideDelete = false;
|
|
12
14
|
this.actionButtonsConfig = [];
|
|
13
15
|
this.edit = (e) => {
|
|
14
16
|
this.$emit('edit-entity', e);
|
|
@@ -24,10 +26,10 @@ let List = class List extends FASTElement {
|
|
|
24
26
|
});
|
|
25
27
|
this.grid.gridApi.addEventListener('rowClicked', (e) => this.select(e));
|
|
26
28
|
this.actionButtonsConfig = [];
|
|
27
|
-
if (this.deleteEvent) {
|
|
29
|
+
if (this.deleteEvent && !this.hideDelete) {
|
|
28
30
|
this.actionButtonsConfig.push(buttonCellRenderer('Delete', (e) => this.delete(e)));
|
|
29
31
|
}
|
|
30
|
-
if (this.updateEvent) {
|
|
32
|
+
if (this.updateEvent && !this.hideEdit) {
|
|
31
33
|
this.actionButtonsConfig.push(buttonCellRenderer('Edit', this.edit));
|
|
32
34
|
}
|
|
33
35
|
if (this.enableFilterBar) {
|
|
@@ -81,6 +83,12 @@ __decorate([
|
|
|
81
83
|
__decorate([
|
|
82
84
|
attr({ mode: 'boolean', attribute: 'enable-cell-flashing' })
|
|
83
85
|
], List.prototype, "enableCellFlashing", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
attr({ mode: 'boolean', attribute: 'hide-edit' })
|
|
88
|
+
], List.prototype, "hideEdit", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
attr({ mode: 'boolean', attribute: 'hide-delete' })
|
|
91
|
+
], List.prototype, "hideDelete", void 0);
|
|
84
92
|
__decorate([
|
|
85
93
|
observable
|
|
86
94
|
], List.prototype, "gridOptions", void 0);
|
|
@@ -962,6 +962,66 @@
|
|
|
962
962
|
"isProtected": false,
|
|
963
963
|
"isAbstract": false
|
|
964
964
|
},
|
|
965
|
+
{
|
|
966
|
+
"kind": "Property",
|
|
967
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#hideDelete:member",
|
|
968
|
+
"docComment": "",
|
|
969
|
+
"excerptTokens": [
|
|
970
|
+
{
|
|
971
|
+
"kind": "Content",
|
|
972
|
+
"text": "hideDelete: "
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"kind": "Content",
|
|
976
|
+
"text": "boolean"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"kind": "Content",
|
|
980
|
+
"text": ";"
|
|
981
|
+
}
|
|
982
|
+
],
|
|
983
|
+
"isReadonly": false,
|
|
984
|
+
"isOptional": false,
|
|
985
|
+
"releaseTag": "Public",
|
|
986
|
+
"name": "hideDelete",
|
|
987
|
+
"propertyTypeTokenRange": {
|
|
988
|
+
"startIndex": 1,
|
|
989
|
+
"endIndex": 2
|
|
990
|
+
},
|
|
991
|
+
"isStatic": false,
|
|
992
|
+
"isProtected": false,
|
|
993
|
+
"isAbstract": false
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"kind": "Property",
|
|
997
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#hideEdit:member",
|
|
998
|
+
"docComment": "",
|
|
999
|
+
"excerptTokens": [
|
|
1000
|
+
{
|
|
1001
|
+
"kind": "Content",
|
|
1002
|
+
"text": "hideEdit: "
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"kind": "Content",
|
|
1006
|
+
"text": "boolean"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"kind": "Content",
|
|
1010
|
+
"text": ";"
|
|
1011
|
+
}
|
|
1012
|
+
],
|
|
1013
|
+
"isReadonly": false,
|
|
1014
|
+
"isOptional": false,
|
|
1015
|
+
"releaseTag": "Public",
|
|
1016
|
+
"name": "hideEdit",
|
|
1017
|
+
"propertyTypeTokenRange": {
|
|
1018
|
+
"startIndex": 1,
|
|
1019
|
+
"endIndex": 2
|
|
1020
|
+
},
|
|
1021
|
+
"isStatic": false,
|
|
1022
|
+
"isProtected": false,
|
|
1023
|
+
"isAbstract": false
|
|
1024
|
+
},
|
|
965
1025
|
{
|
|
966
1026
|
"kind": "Property",
|
|
967
1027
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#modalPosition:member",
|
|
@@ -212,6 +212,8 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
212
212
|
sizeColumnsToFit: boolean;
|
|
213
213
|
enableFilterBar: boolean;
|
|
214
214
|
enableCellFlashing: boolean;
|
|
215
|
+
hideEdit: boolean;
|
|
216
|
+
hideDelete: boolean;
|
|
215
217
|
/**
|
|
216
218
|
* Determines where the modal dialog will appear on screen
|
|
217
219
|
* @public
|
|
@@ -354,18 +356,9 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
354
356
|
getBoundingClientRect(): DOMRect;
|
|
355
357
|
getClientRects(): DOMRectList;
|
|
356
358
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
357
|
-
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
*/
|
|
361
|
-
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>; /**
|
|
362
|
-
* Determines where the modal dialog will appear on screen
|
|
363
|
-
* @public
|
|
364
|
-
*/
|
|
365
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /**
|
|
366
|
-
* Determines where the modal dialog will appear on screen
|
|
367
|
-
* @public
|
|
368
|
-
*/
|
|
359
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
360
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
361
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
369
362
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
370
363
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
371
364
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
@@ -409,6 +402,11 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
409
402
|
readonly parentElement: HTMLElement;
|
|
410
403
|
readonly parentNode: ParentNode;
|
|
411
404
|
readonly previousSibling: ChildNode;
|
|
405
|
+
/**
|
|
406
|
+
* Show the entity create form
|
|
407
|
+
* Sets the initial value on the form to be defaultEntityValues if present.
|
|
408
|
+
* @internal
|
|
409
|
+
*/
|
|
412
410
|
textContent: string;
|
|
413
411
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
414
412
|
compareDocumentPosition(other: Node): number;
|
|
@@ -495,6 +493,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
495
493
|
readonly childElementCount: number;
|
|
496
494
|
readonly children: HTMLCollection;
|
|
497
495
|
readonly firstElementChild: Element;
|
|
496
|
+
/**
|
|
497
|
+
* Show notifications if the executed event returned an error.
|
|
498
|
+
* @internal
|
|
499
|
+
*/
|
|
498
500
|
readonly lastElementChild: Element;
|
|
499
501
|
append(...nodes: (string | Node)[]): void;
|
|
500
502
|
prepend(...nodes: (string | Node)[]): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-entity-management](./foundation-entity-management.md) > [EntityManagement](./foundation-entity-management.entitymanagement.md) > [hideDelete](./foundation-entity-management.entitymanagement.hidedelete.md)
|
|
4
|
+
|
|
5
|
+
## EntityManagement.hideDelete property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
hideDelete: boolean;
|
|
11
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-entity-management](./foundation-entity-management.md) > [EntityManagement](./foundation-entity-management.entitymanagement.md) > [hideEdit](./foundation-entity-management.entitymanagement.hideedit.md)
|
|
4
|
+
|
|
5
|
+
## EntityManagement.hideEdit property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
hideEdit: boolean;
|
|
11
|
+
```
|
|
@@ -53,6 +53,8 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
53
53
|
| [entityLabel](./foundation-entity-management.entitymanagement.entitylabel.md) | | string | Label for the entity which has usages such as being shown in the title of the modal wen editing the entity |
|
|
54
54
|
| [formUiSchema](./foundation-entity-management.entitymanagement.formuischema.md) | | any | |
|
|
55
55
|
| [gridOptions](./foundation-entity-management.entitymanagement.gridoptions.md) | | GridOptions | GridOptions to be passed down from application |
|
|
56
|
+
| [hideDelete](./foundation-entity-management.entitymanagement.hidedelete.md) | | boolean | |
|
|
57
|
+
| [hideEdit](./foundation-entity-management.entitymanagement.hideedit.md) | | boolean | |
|
|
56
58
|
| [modalPosition](./foundation-entity-management.entitymanagement.modalposition.md) | | 'centre' \| 'left' \| 'right' | Determines where the modal dialog will appear on screen |
|
|
57
59
|
| [persistColumnStateKey](./foundation-entity-management.entitymanagement.persistcolumnstatekey.md) | | string | This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it. |
|
|
58
60
|
| [readEvent](./foundation-entity-management.entitymanagement.readevent.md) | | string | |
|
package/docs/api-report.md
CHANGED
|
@@ -109,6 +109,10 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
109
109
|
// (undocumented)
|
|
110
110
|
formUiSchema: any;
|
|
111
111
|
gridOptions: GridOptions;
|
|
112
|
+
// (undocumented)
|
|
113
|
+
hideDelete: boolean;
|
|
114
|
+
// (undocumented)
|
|
115
|
+
hideEdit: boolean;
|
|
112
116
|
modalPosition: 'centre' | 'left' | 'right';
|
|
113
117
|
persistColumnStateKey: string;
|
|
114
118
|
// (undocumented)
|
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.41.2-bny.
|
|
4
|
+
"version": "14.41.2-bny.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@genesislcap/foundation-login": "^14.40.0",
|
|
44
|
-
"@genesislcap/foundation-testing": "14.41.2-bny.
|
|
45
|
-
"@genesislcap/genx": "14.41.2-bny.
|
|
44
|
+
"@genesislcap/foundation-testing": "14.41.2-bny.2",
|
|
45
|
+
"@genesislcap/genx": "14.41.2-bny.2",
|
|
46
46
|
"bulma": "^0.9.3"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@ag-grid-community/core": "29.2.0",
|
|
50
|
-
"@genesislcap/foundation-comms": "14.41.2-bny.
|
|
51
|
-
"@genesislcap/foundation-errors": "14.41.2-bny.
|
|
52
|
-
"@genesislcap/foundation-forms": "14.41.2-bny.
|
|
53
|
-
"@genesislcap/foundation-login": "14.41.2-bny.
|
|
54
|
-
"@genesislcap/foundation-ui": "14.41.2-bny.
|
|
55
|
-
"@genesislcap/foundation-utils": "14.41.2-bny.
|
|
56
|
-
"@genesislcap/foundation-zero": "14.41.2-bny.
|
|
57
|
-
"@genesislcap/foundation-zero-grid-pro": "14.41.2-bny.
|
|
58
|
-
"@genesislcap/grid-pro": "14.41.2-bny.
|
|
50
|
+
"@genesislcap/foundation-comms": "14.41.2-bny.2",
|
|
51
|
+
"@genesislcap/foundation-errors": "14.41.2-bny.2",
|
|
52
|
+
"@genesislcap/foundation-forms": "14.41.2-bny.2",
|
|
53
|
+
"@genesislcap/foundation-login": "14.41.2-bny.2",
|
|
54
|
+
"@genesislcap/foundation-ui": "14.41.2-bny.2",
|
|
55
|
+
"@genesislcap/foundation-utils": "14.41.2-bny.2",
|
|
56
|
+
"@genesislcap/foundation-zero": "14.41.2-bny.2",
|
|
57
|
+
"@genesislcap/foundation-zero-grid-pro": "14.41.2-bny.2",
|
|
58
|
+
"@genesislcap/grid-pro": "14.41.2-bny.2",
|
|
59
59
|
"@microsoft/fast-components": "^2.21.3",
|
|
60
60
|
"@microsoft/fast-element": "^1.7.0",
|
|
61
61
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
73
|
"customElements": "dist/custom-elements.json",
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "4796266e66246b813f0f96b8617cd9df1d6ec891"
|
|
75
75
|
}
|