@genesislcap/foundation-entity-management 14.139.2 → 14.140.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 +104 -2
- package/dist/dts/entities/entities.d.ts +6 -4
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/entities/entities.styles.d.ts.map +1 -1
- package/dist/dts/entities/entities.template.d.ts +10 -0
- package/dist/dts/entities/entities.template.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +32 -2
- package/dist/esm/entities/entities.styles.js +9 -0
- package/dist/esm/entities/entities.template.js +22 -2
- package/dist/foundation-entity-management.api.json +184 -0
- package/dist/foundation-entity-management.d.ts +7 -4
- package/docs/api/foundation-entity-management.entitymanagement.enablesearchbar.md +11 -0
- package/docs/api/foundation-entity-management.entitymanagement.headertempalate.md +11 -0
- package/docs/api/foundation-entity-management.entitymanagement.md +4 -0
- package/docs/api/foundation-entity-management.entitymanagement.searchbarconfig.md +11 -0
- package/docs/api/foundation-entity-management.entitymanagement.searchchanged.md +22 -0
- package/docs/api-report.md +10 -0
- package/package.json +16 -15
|
@@ -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 .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 :host::part(header) {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n`",
|
|
132
|
+
"default": "css`\n :host {\n contain: content;\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 :host::part(header) {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .search-container {\n display: flex;\n align-items: center;\n }\n\n .search-container zero-search-bar {\n width: 500px;\n }\n`",
|
|
133
133
|
"description": "Defines the css of the entity component as an ElementStyles object"
|
|
134
134
|
}
|
|
135
135
|
],
|
|
@@ -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\">${
|
|
154
|
+
"default": "html<EntityManagement>`\n <div class=\"container\">\n <slot name=\"header\" part=\"header\">${(x) => x.headerTempalate}</slot>\n <entity-list\n title=${(x) => x.title}\n async-add=${(x) => x.asyncAdd}\n async-remove=${(x) => x.asyncRemove}\n async-update=${(x) => x.asyncUpdate}\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n enable-row-flashing=${(x) => x.enableRowFlashing}\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 :renderers=${(x) => x.formRenderers}\n resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n readonly=${(x) => x.readonly}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\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
|
],
|
|
@@ -467,6 +467,21 @@
|
|
|
467
467
|
},
|
|
468
468
|
"default": "false"
|
|
469
469
|
},
|
|
470
|
+
{
|
|
471
|
+
"kind": "field",
|
|
472
|
+
"name": "enableSearchBar",
|
|
473
|
+
"type": {
|
|
474
|
+
"text": "boolean"
|
|
475
|
+
},
|
|
476
|
+
"default": "false"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"kind": "field",
|
|
480
|
+
"name": "searchBarConfig",
|
|
481
|
+
"type": {
|
|
482
|
+
"text": "AvailableOption[]"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
470
485
|
{
|
|
471
486
|
"kind": "field",
|
|
472
487
|
"name": "modalPosition",
|
|
@@ -521,6 +536,24 @@
|
|
|
521
536
|
"name": "closeModal",
|
|
522
537
|
"privacy": "public"
|
|
523
538
|
},
|
|
539
|
+
{
|
|
540
|
+
"kind": "field",
|
|
541
|
+
"name": "headerTempalate",
|
|
542
|
+
"readonly": true
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"kind": "method",
|
|
546
|
+
"name": "searchChanged",
|
|
547
|
+
"privacy": "public",
|
|
548
|
+
"parameters": [
|
|
549
|
+
{
|
|
550
|
+
"name": "event",
|
|
551
|
+
"type": {
|
|
552
|
+
"text": "CustomEvent<Array<SelectedOption>>"
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
]
|
|
556
|
+
},
|
|
524
557
|
{
|
|
525
558
|
"kind": "method",
|
|
526
559
|
"name": "criteriaChanged",
|
|
@@ -703,6 +736,14 @@
|
|
|
703
736
|
"default": "false",
|
|
704
737
|
"fieldName": "hideDelete"
|
|
705
738
|
},
|
|
739
|
+
{
|
|
740
|
+
"name": "enable-search-bar",
|
|
741
|
+
"type": {
|
|
742
|
+
"text": "boolean"
|
|
743
|
+
},
|
|
744
|
+
"default": "false",
|
|
745
|
+
"fieldName": "enableSearchBar"
|
|
746
|
+
},
|
|
706
747
|
{
|
|
707
748
|
"name": "modal-position",
|
|
708
749
|
"type": {
|
|
@@ -1873,6 +1914,29 @@
|
|
|
1873
1914
|
"module": "src/entities/entities.ts"
|
|
1874
1915
|
}
|
|
1875
1916
|
},
|
|
1917
|
+
{
|
|
1918
|
+
"kind": "field",
|
|
1919
|
+
"name": "enableSearchBar",
|
|
1920
|
+
"type": {
|
|
1921
|
+
"text": "boolean"
|
|
1922
|
+
},
|
|
1923
|
+
"default": "false",
|
|
1924
|
+
"inheritedFrom": {
|
|
1925
|
+
"name": "EntityManagement",
|
|
1926
|
+
"module": "src/entities/entities.ts"
|
|
1927
|
+
}
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
"kind": "field",
|
|
1931
|
+
"name": "searchBarConfig",
|
|
1932
|
+
"type": {
|
|
1933
|
+
"text": "AvailableOption[]"
|
|
1934
|
+
},
|
|
1935
|
+
"inheritedFrom": {
|
|
1936
|
+
"name": "EntityManagement",
|
|
1937
|
+
"module": "src/entities/entities.ts"
|
|
1938
|
+
}
|
|
1939
|
+
},
|
|
1876
1940
|
{
|
|
1877
1941
|
"kind": "field",
|
|
1878
1942
|
"name": "modalPosition",
|
|
@@ -1947,6 +2011,32 @@
|
|
|
1947
2011
|
"module": "src/entities/entities.ts"
|
|
1948
2012
|
}
|
|
1949
2013
|
},
|
|
2014
|
+
{
|
|
2015
|
+
"kind": "field",
|
|
2016
|
+
"name": "headerTempalate",
|
|
2017
|
+
"readonly": true,
|
|
2018
|
+
"inheritedFrom": {
|
|
2019
|
+
"name": "EntityManagement",
|
|
2020
|
+
"module": "src/entities/entities.ts"
|
|
2021
|
+
}
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
"kind": "method",
|
|
2025
|
+
"name": "searchChanged",
|
|
2026
|
+
"privacy": "public",
|
|
2027
|
+
"parameters": [
|
|
2028
|
+
{
|
|
2029
|
+
"name": "event",
|
|
2030
|
+
"type": {
|
|
2031
|
+
"text": "CustomEvent<Array<SelectedOption>>"
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
],
|
|
2035
|
+
"inheritedFrom": {
|
|
2036
|
+
"name": "EntityManagement",
|
|
2037
|
+
"module": "src/entities/entities.ts"
|
|
2038
|
+
}
|
|
2039
|
+
},
|
|
1950
2040
|
{
|
|
1951
2041
|
"kind": "method",
|
|
1952
2042
|
"name": "criteriaChanged",
|
|
@@ -2215,6 +2305,18 @@
|
|
|
2215
2305
|
"module": "src/entities/entities.ts"
|
|
2216
2306
|
}
|
|
2217
2307
|
},
|
|
2308
|
+
{
|
|
2309
|
+
"name": "enable-search-bar",
|
|
2310
|
+
"type": {
|
|
2311
|
+
"text": "boolean"
|
|
2312
|
+
},
|
|
2313
|
+
"default": "false",
|
|
2314
|
+
"fieldName": "enableSearchBar",
|
|
2315
|
+
"inheritedFrom": {
|
|
2316
|
+
"name": "EntityManagement",
|
|
2317
|
+
"module": "src/entities/entities.ts"
|
|
2318
|
+
}
|
|
2319
|
+
},
|
|
2218
2320
|
{
|
|
2219
2321
|
"name": "modal-position",
|
|
2220
2322
|
"type": {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ColDef, GridOptions } from '@ag-grid-community/core';
|
|
2
2
|
import { Connect, DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
4
|
+
import { AvailableOption, SelectedOption } from '@genesislcap/foundation-ui';
|
|
4
5
|
import { FASTElement } from '@microsoft/fast-element';
|
|
5
6
|
/**
|
|
6
7
|
* The attribute which is set to configure the resource that the entity manager is working with
|
|
@@ -58,10 +59,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
58
59
|
spellcheck: boolean;
|
|
59
60
|
title: string;
|
|
60
61
|
translate: boolean;
|
|
61
|
-
attachInternals(): ElementInternals;
|
|
62
|
-
* GridOptions to be passed down from application
|
|
63
|
-
* @public
|
|
64
|
-
*/
|
|
62
|
+
attachInternals(): ElementInternals;
|
|
65
63
|
click(): void;
|
|
66
64
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
67
65
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -531,6 +529,8 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
531
529
|
enableFilterBar: boolean;
|
|
532
530
|
hideEdit: boolean;
|
|
533
531
|
hideDelete: boolean;
|
|
532
|
+
enableSearchBar: boolean;
|
|
533
|
+
searchBarConfig: AvailableOption[];
|
|
534
534
|
/**
|
|
535
535
|
* Determines where the modal dialog will appear on screen
|
|
536
536
|
* @public
|
|
@@ -577,6 +577,8 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
577
577
|
private editEntity;
|
|
578
578
|
private readEntity;
|
|
579
579
|
closeModal(): void;
|
|
580
|
+
get headerTempalate(): import("@microsoft/fast-element").ViewTemplate<EntityManagement, any>;
|
|
581
|
+
searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
|
|
580
582
|
criteriaChanged(e: CustomEvent<string>): void;
|
|
581
583
|
submitFailureNotification(e: CustomEvent): void;
|
|
582
584
|
/**
|
|
@@ -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,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAa,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"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"}
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"entities.styles.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.styles.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,iDAqClB,CAAC"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { EntityManagement } from './entities';
|
|
2
|
+
/**
|
|
3
|
+
* Default header for Entity Management screen
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultHeader: import("@microsoft/fast-element").ViewTemplate<EntityManagement, any>;
|
|
7
|
+
/**
|
|
8
|
+
* Header with search-bar for Entity Management screen
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare const searchBarHeader: import("@microsoft/fast-element").ViewTemplate<EntityManagement, any>;
|
|
2
12
|
/**
|
|
3
13
|
* Defines the html of the entity component as a ViewTemplate object
|
|
4
14
|
* @typeParam EntityManagement - the {@link EntityManagement | class} the template is defined for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"
|
|
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;AAK9C;;;GAGG;AACH,eAAO,MAAM,aAAa,uEAWzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,uEAiB3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,uEAmDpB,CAAC"}
|
|
@@ -3,10 +3,10 @@ import { Connect } from '@genesislcap/foundation-comms';
|
|
|
3
3
|
import { renderers } from '@genesislcap/foundation-forms';
|
|
4
4
|
import { showNotification, showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
5
5
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
6
|
-
import { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';
|
|
6
|
+
import { attr, customElement, FASTElement, observable, volatile } from '@microsoft/fast-element';
|
|
7
7
|
import { getErrorFormat, logger } from '../utils';
|
|
8
8
|
import { styles } from './entities.styles';
|
|
9
|
-
import { template } from './entities.template';
|
|
9
|
+
import { defaultHeader, searchBarHeader, template } from './entities.template';
|
|
10
10
|
/**
|
|
11
11
|
* Main class which defines the entity management functionality
|
|
12
12
|
*
|
|
@@ -83,6 +83,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
83
83
|
this.editModalVisible = false;
|
|
84
84
|
this.hideEdit = false;
|
|
85
85
|
this.hideDelete = false;
|
|
86
|
+
this.enableSearchBar = false;
|
|
86
87
|
/**
|
|
87
88
|
* Determines where the modal dialog will appear on screen
|
|
88
89
|
* @public
|
|
@@ -215,6 +216,26 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
215
216
|
this.readonly = false;
|
|
216
217
|
this.editModalVisible = false;
|
|
217
218
|
}
|
|
219
|
+
get headerTempalate() {
|
|
220
|
+
return this.enableSearchBar ? searchBarHeader : defaultHeader;
|
|
221
|
+
}
|
|
222
|
+
searchChanged(event) {
|
|
223
|
+
const options = event.detail;
|
|
224
|
+
const criteriaBuilder = options
|
|
225
|
+
.map((option) => {
|
|
226
|
+
const { field, term, createCriteria } = option;
|
|
227
|
+
if (createCriteria) {
|
|
228
|
+
return createCriteria(field, term);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
console.log('Cannot convert search option into criteria', option);
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
})
|
|
235
|
+
.filter((x) => x)
|
|
236
|
+
.join(' && ');
|
|
237
|
+
this.$emit('criteria-changed', criteriaBuilder);
|
|
238
|
+
}
|
|
218
239
|
criteriaChanged(e) {
|
|
219
240
|
this.datasourceConfig = Object.assign(Object.assign({}, this.datasourceConfig), { criteria: e.detail });
|
|
220
241
|
}
|
|
@@ -410,9 +431,18 @@ __decorate([
|
|
|
410
431
|
__decorate([
|
|
411
432
|
attr({ mode: 'boolean', attribute: 'hide-delete' })
|
|
412
433
|
], EntityManagement.prototype, "hideDelete", void 0);
|
|
434
|
+
__decorate([
|
|
435
|
+
attr({ mode: 'boolean', attribute: 'enable-search-bar' })
|
|
436
|
+
], EntityManagement.prototype, "enableSearchBar", void 0);
|
|
437
|
+
__decorate([
|
|
438
|
+
observable
|
|
439
|
+
], EntityManagement.prototype, "searchBarConfig", void 0);
|
|
413
440
|
__decorate([
|
|
414
441
|
attr({ attribute: 'modal-position' })
|
|
415
442
|
], EntityManagement.prototype, "modalPosition", void 0);
|
|
443
|
+
__decorate([
|
|
444
|
+
volatile
|
|
445
|
+
], EntityManagement.prototype, "headerTempalate", null);
|
|
416
446
|
EntityManagement = __decorate([
|
|
417
447
|
customElement({
|
|
418
448
|
name: 'entity-management',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { customEvent } from '@genesislcap/foundation-events';
|
|
1
2
|
import { Form } from '@genesislcap/foundation-forms';
|
|
2
3
|
import { html, ref, when } from '@microsoft/fast-element';
|
|
3
4
|
import { List } from '../list';
|
|
@@ -7,7 +8,7 @@ Form;
|
|
|
7
8
|
* Default header for Entity Management screen
|
|
8
9
|
* @internal
|
|
9
10
|
*/
|
|
10
|
-
const defaultHeader = html `
|
|
11
|
+
export const defaultHeader = html `
|
|
11
12
|
<h3>${(x) => x.title}</h3>
|
|
12
13
|
${when((x) => x.createEvent, html `
|
|
13
14
|
<zero-button appearance="neutral" @click=${(x, y) => x.createEntity()}>
|
|
@@ -16,13 +17,32 @@ const defaultHeader = html `
|
|
|
16
17
|
</zero-button>
|
|
17
18
|
`)}
|
|
18
19
|
`;
|
|
20
|
+
/**
|
|
21
|
+
* Header with search-bar for Entity Management screen
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export const searchBarHeader = html `
|
|
25
|
+
<h3>${(x) => x.title}</h3>
|
|
26
|
+
<div class="search-container">
|
|
27
|
+
<zero-search-bar
|
|
28
|
+
:options="${(x) => x.searchBarConfig}"
|
|
29
|
+
@selectionChange=${(x, ctx) => x.searchChanged(customEvent(ctx))}
|
|
30
|
+
></zero-search-bar>
|
|
31
|
+
${when((x) => x.createEvent, html `
|
|
32
|
+
<zero-button appearance="neutral" @click=${(x, y) => x.createEntity()}>
|
|
33
|
+
<zero-icon size="lg" name="plus"></zero-icon>
|
|
34
|
+
Add
|
|
35
|
+
</zero-button>
|
|
36
|
+
`)}
|
|
37
|
+
</div>
|
|
38
|
+
`;
|
|
19
39
|
/**
|
|
20
40
|
* Defines the html of the entity component as a ViewTemplate object
|
|
21
41
|
* @typeParam EntityManagement - the {@link EntityManagement | class} the template is defined for
|
|
22
42
|
*/
|
|
23
43
|
export const template = html `
|
|
24
44
|
<div class="container">
|
|
25
|
-
<slot name="header" part="header">${
|
|
45
|
+
<slot name="header" part="header">${(x) => x.headerTempalate}</slot>
|
|
26
46
|
<entity-list
|
|
27
47
|
title=${(x) => x.title}
|
|
28
48
|
async-add=${(x) => x.asyncAdd}
|
|
@@ -965,6 +965,36 @@
|
|
|
965
965
|
"isProtected": false,
|
|
966
966
|
"isAbstract": false
|
|
967
967
|
},
|
|
968
|
+
{
|
|
969
|
+
"kind": "Property",
|
|
970
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#enableSearchBar:member",
|
|
971
|
+
"docComment": "",
|
|
972
|
+
"excerptTokens": [
|
|
973
|
+
{
|
|
974
|
+
"kind": "Content",
|
|
975
|
+
"text": "enableSearchBar: "
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"kind": "Content",
|
|
979
|
+
"text": "boolean"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"kind": "Content",
|
|
983
|
+
"text": ";"
|
|
984
|
+
}
|
|
985
|
+
],
|
|
986
|
+
"isReadonly": false,
|
|
987
|
+
"isOptional": false,
|
|
988
|
+
"releaseTag": "Public",
|
|
989
|
+
"name": "enableSearchBar",
|
|
990
|
+
"propertyTypeTokenRange": {
|
|
991
|
+
"startIndex": 1,
|
|
992
|
+
"endIndex": 2
|
|
993
|
+
},
|
|
994
|
+
"isStatic": false,
|
|
995
|
+
"isProtected": false,
|
|
996
|
+
"isAbstract": false
|
|
997
|
+
},
|
|
968
998
|
{
|
|
969
999
|
"kind": "Property",
|
|
970
1000
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#entityLabel:member",
|
|
@@ -1091,6 +1121,54 @@
|
|
|
1091
1121
|
"isProtected": false,
|
|
1092
1122
|
"isAbstract": false
|
|
1093
1123
|
},
|
|
1124
|
+
{
|
|
1125
|
+
"kind": "Property",
|
|
1126
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#headerTempalate:member",
|
|
1127
|
+
"docComment": "",
|
|
1128
|
+
"excerptTokens": [
|
|
1129
|
+
{
|
|
1130
|
+
"kind": "Content",
|
|
1131
|
+
"text": "get headerTempalate(): "
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"kind": "Content",
|
|
1135
|
+
"text": "import(\"@microsoft/fast-element\")."
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"kind": "Reference",
|
|
1139
|
+
"text": "ViewTemplate",
|
|
1140
|
+
"canonicalReference": "@microsoft/fast-element!ViewTemplate:class"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"kind": "Content",
|
|
1144
|
+
"text": "<"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"kind": "Reference",
|
|
1148
|
+
"text": "EntityManagement",
|
|
1149
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement:class"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"kind": "Content",
|
|
1153
|
+
"text": ", any>"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"kind": "Content",
|
|
1157
|
+
"text": ";"
|
|
1158
|
+
}
|
|
1159
|
+
],
|
|
1160
|
+
"isReadonly": true,
|
|
1161
|
+
"isOptional": false,
|
|
1162
|
+
"releaseTag": "Public",
|
|
1163
|
+
"name": "headerTempalate",
|
|
1164
|
+
"propertyTypeTokenRange": {
|
|
1165
|
+
"startIndex": 1,
|
|
1166
|
+
"endIndex": 6
|
|
1167
|
+
},
|
|
1168
|
+
"isStatic": false,
|
|
1169
|
+
"isProtected": false,
|
|
1170
|
+
"isAbstract": false
|
|
1171
|
+
},
|
|
1094
1172
|
{
|
|
1095
1173
|
"kind": "Property",
|
|
1096
1174
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#hideDelete:member",
|
|
@@ -1331,6 +1409,112 @@
|
|
|
1331
1409
|
"isProtected": false,
|
|
1332
1410
|
"isAbstract": false
|
|
1333
1411
|
},
|
|
1412
|
+
{
|
|
1413
|
+
"kind": "Property",
|
|
1414
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#searchBarConfig:member",
|
|
1415
|
+
"docComment": "",
|
|
1416
|
+
"excerptTokens": [
|
|
1417
|
+
{
|
|
1418
|
+
"kind": "Content",
|
|
1419
|
+
"text": "searchBarConfig: "
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
"kind": "Reference",
|
|
1423
|
+
"text": "AvailableOption",
|
|
1424
|
+
"canonicalReference": "@genesislcap/foundation-ui!AvailableOption:type"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"kind": "Content",
|
|
1428
|
+
"text": "[]"
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
"kind": "Content",
|
|
1432
|
+
"text": ";"
|
|
1433
|
+
}
|
|
1434
|
+
],
|
|
1435
|
+
"isReadonly": false,
|
|
1436
|
+
"isOptional": false,
|
|
1437
|
+
"releaseTag": "Public",
|
|
1438
|
+
"name": "searchBarConfig",
|
|
1439
|
+
"propertyTypeTokenRange": {
|
|
1440
|
+
"startIndex": 1,
|
|
1441
|
+
"endIndex": 3
|
|
1442
|
+
},
|
|
1443
|
+
"isStatic": false,
|
|
1444
|
+
"isProtected": false,
|
|
1445
|
+
"isAbstract": false
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"kind": "Method",
|
|
1449
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#searchChanged:member(1)",
|
|
1450
|
+
"docComment": "",
|
|
1451
|
+
"excerptTokens": [
|
|
1452
|
+
{
|
|
1453
|
+
"kind": "Content",
|
|
1454
|
+
"text": "searchChanged(event: "
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"kind": "Reference",
|
|
1458
|
+
"text": "CustomEvent",
|
|
1459
|
+
"canonicalReference": "!CustomEvent:interface"
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
"kind": "Content",
|
|
1463
|
+
"text": "<"
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
"kind": "Reference",
|
|
1467
|
+
"text": "Array",
|
|
1468
|
+
"canonicalReference": "!Array:interface"
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"kind": "Content",
|
|
1472
|
+
"text": "<"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
"kind": "Reference",
|
|
1476
|
+
"text": "SelectedOption",
|
|
1477
|
+
"canonicalReference": "@genesislcap/foundation-ui!SelectedOption:type"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"kind": "Content",
|
|
1481
|
+
"text": ">>"
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
"kind": "Content",
|
|
1485
|
+
"text": "): "
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"kind": "Content",
|
|
1489
|
+
"text": "void"
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"kind": "Content",
|
|
1493
|
+
"text": ";"
|
|
1494
|
+
}
|
|
1495
|
+
],
|
|
1496
|
+
"isStatic": false,
|
|
1497
|
+
"returnTypeTokenRange": {
|
|
1498
|
+
"startIndex": 8,
|
|
1499
|
+
"endIndex": 9
|
|
1500
|
+
},
|
|
1501
|
+
"releaseTag": "Public",
|
|
1502
|
+
"isProtected": false,
|
|
1503
|
+
"overloadIndex": 1,
|
|
1504
|
+
"parameters": [
|
|
1505
|
+
{
|
|
1506
|
+
"parameterName": "event",
|
|
1507
|
+
"parameterTypeTokenRange": {
|
|
1508
|
+
"startIndex": 1,
|
|
1509
|
+
"endIndex": 7
|
|
1510
|
+
},
|
|
1511
|
+
"isOptional": false
|
|
1512
|
+
}
|
|
1513
|
+
],
|
|
1514
|
+
"isOptional": false,
|
|
1515
|
+
"isAbstract": false,
|
|
1516
|
+
"name": "searchChanged"
|
|
1517
|
+
},
|
|
1334
1518
|
{
|
|
1335
1519
|
"kind": "Property",
|
|
1336
1520
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#selectedEntity:member",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Auth } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { AvailableOption } from '@genesislcap/foundation-ui';
|
|
2
3
|
import { ColDef } from '@ag-grid-community/core';
|
|
3
4
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
5
|
import { Constructable } from '@microsoft/fast-element';
|
|
@@ -16,6 +17,7 @@ import { Logger } from '@genesislcap/foundation-logger';
|
|
|
16
17
|
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
17
18
|
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
18
19
|
import { RouterConfiguration } from '@microsoft/fast-router';
|
|
20
|
+
import { SelectedOption } from '@genesislcap/foundation-ui';
|
|
19
21
|
import { Session } from '@genesislcap/foundation-comms';
|
|
20
22
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
21
23
|
|
|
@@ -225,6 +227,8 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
225
227
|
enableFilterBar: boolean;
|
|
226
228
|
hideEdit: boolean;
|
|
227
229
|
hideDelete: boolean;
|
|
230
|
+
enableSearchBar: boolean;
|
|
231
|
+
searchBarConfig: AvailableOption[];
|
|
228
232
|
/**
|
|
229
233
|
* Determines where the modal dialog will appear on screen
|
|
230
234
|
* @public
|
|
@@ -271,6 +275,8 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
271
275
|
private editEntity;
|
|
272
276
|
private readEntity;
|
|
273
277
|
closeModal(): void;
|
|
278
|
+
get headerTempalate(): ViewTemplate<EntityManagement, any>;
|
|
279
|
+
searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
|
|
274
280
|
criteriaChanged(e: CustomEvent<string>): void;
|
|
275
281
|
submitFailureNotification(e: CustomEvent): void;
|
|
276
282
|
/**
|
|
@@ -324,10 +330,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
324
330
|
spellcheck: boolean;
|
|
325
331
|
title: string;
|
|
326
332
|
translate: boolean;
|
|
327
|
-
attachInternals(): ElementInternals;
|
|
328
|
-
* GridOptions to be passed down from application
|
|
329
|
-
* @public
|
|
330
|
-
*/
|
|
333
|
+
attachInternals(): ElementInternals;
|
|
331
334
|
click(): void;
|
|
332
335
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
333
336
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): 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) > [enableSearchBar](./foundation-entity-management.entitymanagement.enablesearchbar.md)
|
|
4
|
+
|
|
5
|
+
## EntityManagement.enableSearchBar property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
enableSearchBar: 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) > [headerTempalate](./foundation-entity-management.entitymanagement.headertempalate.md)
|
|
4
|
+
|
|
5
|
+
## EntityManagement.headerTempalate property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
get headerTempalate(): import("@microsoft/fast-element").ViewTemplate<EntityManagement, any>;
|
|
11
|
+
```
|
|
@@ -53,10 +53,12 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
53
53
|
| [enableCellFlashing](./foundation-entity-management.entitymanagement.enablecellflashing.md) | | boolean | If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef |
|
|
54
54
|
| [enableFilterBar](./foundation-entity-management.entitymanagement.enablefilterbar.md) | | boolean | |
|
|
55
55
|
| [enableRowFlashing](./foundation-entity-management.entitymanagement.enablerowflashing.md) | | boolean | If true, will enable row flashing for all rows for <code>add</code> transactions |
|
|
56
|
+
| [enableSearchBar](./foundation-entity-management.entitymanagement.enablesearchbar.md) | | boolean | |
|
|
56
57
|
| [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 |
|
|
57
58
|
| [formRenderers](./foundation-entity-management.entitymanagement.formrenderers.md) | | RendererEntry\[\] | Array with renderers used by foundation-forms |
|
|
58
59
|
| [formUiSchema](./foundation-entity-management.entitymanagement.formuischema.md) | | any | |
|
|
59
60
|
| [gridOptions](./foundation-entity-management.entitymanagement.gridoptions.md) | | GridOptions | GridOptions to be passed down from application |
|
|
61
|
+
| [headerTempalate](./foundation-entity-management.entitymanagement.headertempalate.md) | <code>readonly</code> | import("@microsoft/fast-element").ViewTemplate<[EntityManagement](./foundation-entity-management.entitymanagement.md)<!-- -->, any> | |
|
|
60
62
|
| [hideDelete](./foundation-entity-management.entitymanagement.hidedelete.md) | | boolean | |
|
|
61
63
|
| [hideEdit](./foundation-entity-management.entitymanagement.hideedit.md) | | boolean | |
|
|
62
64
|
| [modalPosition](./foundation-entity-management.entitymanagement.modalposition.md) | | 'centre' \| 'left' \| 'right' | Determines where the modal dialog will appear on screen |
|
|
@@ -65,6 +67,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
65
67
|
| [readEventFn](./foundation-entity-management.entitymanagement.readeventfn.md) | | (...args: any\[\]) => {} | |
|
|
66
68
|
| [readonly](./foundation-entity-management.entitymanagement.readonly.md) | | boolean | |
|
|
67
69
|
| [resourceName](./foundation-entity-management.entitymanagement.resourcename.md) | | string | Name of the backend resource which contain the entities to manage |
|
|
70
|
+
| [searchBarConfig](./foundation-entity-management.entitymanagement.searchbarconfig.md) | | AvailableOption\[\] | |
|
|
68
71
|
| [selectedEntity](./foundation-entity-management.entitymanagement.selectedentity.md) | | any | Reference to the currently selected entity from the grid. |
|
|
69
72
|
| [sizeColumnsToFit](./foundation-entity-management.entitymanagement.sizecolumnstofit.md) | | boolean | |
|
|
70
73
|
| [submitting](./foundation-entity-management.entitymanagement.submitting.md) | | boolean | |
|
|
@@ -81,6 +84,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
81
84
|
| [criteriaChanged(e)](./foundation-entity-management.entitymanagement.criteriachanged.md) | | |
|
|
82
85
|
| [deepClone()](./foundation-entity-management.entitymanagement.deepclone.md) | | Override the deepClone method to ensure that observable attributes are cloned |
|
|
83
86
|
| [editModalVisibleChanged()](./foundation-entity-management.entitymanagement.editmodalvisiblechanged.md) | | |
|
|
87
|
+
| [searchChanged(event)](./foundation-entity-management.entitymanagement.searchchanged.md) | | |
|
|
84
88
|
| [submitEntityChanges(e)](./foundation-entity-management.entitymanagement.submitentitychanges.md) | | Event handler for when the user submits the action for the currently open form, either editing or adding the entity |
|
|
85
89
|
| [submitFailureNotification(e)](./foundation-entity-management.entitymanagement.submitfailurenotification.md) | | |
|
|
86
90
|
|
|
@@ -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) > [searchBarConfig](./foundation-entity-management.entitymanagement.searchbarconfig.md)
|
|
4
|
+
|
|
5
|
+
## EntityManagement.searchBarConfig property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
searchBarConfig: AvailableOption[];
|
|
11
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
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) > [searchChanged](./foundation-entity-management.entitymanagement.searchchanged.md)
|
|
4
|
+
|
|
5
|
+
## EntityManagement.searchChanged() method
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
| Parameter | Type | Description |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| event | CustomEvent<Array<SelectedOption>> | |
|
|
18
|
+
|
|
19
|
+
**Returns:**
|
|
20
|
+
|
|
21
|
+
void
|
|
22
|
+
|
package/docs/api-report.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
7
|
import { Auth } from '@genesislcap/foundation-comms';
|
|
8
|
+
import { AvailableOption } from '@genesislcap/foundation-ui';
|
|
8
9
|
import { ColDef } from '@ag-grid-community/core';
|
|
9
10
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
10
11
|
import { Constructable } from '@microsoft/fast-element';
|
|
@@ -22,6 +23,7 @@ import { Logger } from '@genesislcap/foundation-logger';
|
|
|
22
23
|
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
23
24
|
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
24
25
|
import { RouterConfiguration } from '@microsoft/fast-router';
|
|
26
|
+
import { SelectedOption } from '@genesislcap/foundation-ui';
|
|
25
27
|
import { Session } from '@genesislcap/foundation-comms';
|
|
26
28
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
27
29
|
|
|
@@ -77,6 +79,8 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
77
79
|
// (undocumented)
|
|
78
80
|
enableFilterBar: boolean;
|
|
79
81
|
enableRowFlashing: boolean;
|
|
82
|
+
// (undocumented)
|
|
83
|
+
enableSearchBar: boolean;
|
|
80
84
|
entityLabel: string;
|
|
81
85
|
// @internal
|
|
82
86
|
errorNotify(request: any): void;
|
|
@@ -87,6 +91,8 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
87
91
|
formUiSchema: any;
|
|
88
92
|
gridOptions: GridOptions;
|
|
89
93
|
// (undocumented)
|
|
94
|
+
get headerTempalate(): ViewTemplate<EntityManagement, any>;
|
|
95
|
+
// (undocumented)
|
|
90
96
|
hideDelete: boolean;
|
|
91
97
|
// (undocumented)
|
|
92
98
|
hideEdit: boolean;
|
|
@@ -99,6 +105,10 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
99
105
|
// (undocumented)
|
|
100
106
|
readonly: boolean;
|
|
101
107
|
resourceName: string;
|
|
108
|
+
// (undocumented)
|
|
109
|
+
searchBarConfig: AvailableOption[];
|
|
110
|
+
// (undocumented)
|
|
111
|
+
searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
|
|
102
112
|
selectedEntity: any;
|
|
103
113
|
// (undocumented)
|
|
104
114
|
sizeColumnsToFit: boolean;
|
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.140.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -43,23 +43,24 @@
|
|
|
43
43
|
"test:debug": "genx test --debug"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@genesislcap/foundation-login": "14.
|
|
47
|
-
"@genesislcap/foundation-testing": "14.
|
|
48
|
-
"@genesislcap/genx": "14.
|
|
46
|
+
"@genesislcap/foundation-login": "14.140.0",
|
|
47
|
+
"@genesislcap/foundation-testing": "14.140.0",
|
|
48
|
+
"@genesislcap/genx": "14.140.0",
|
|
49
49
|
"rimraf": "^3.0.2"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@ag-grid-community/core": "29.2.0",
|
|
53
|
-
"@genesislcap/foundation-comms": "14.
|
|
54
|
-
"@genesislcap/foundation-errors": "14.
|
|
55
|
-
"@genesislcap/foundation-
|
|
56
|
-
"@genesislcap/foundation-
|
|
57
|
-
"@genesislcap/foundation-
|
|
58
|
-
"@genesislcap/foundation-
|
|
59
|
-
"@genesislcap/foundation-
|
|
60
|
-
"@genesislcap/foundation-
|
|
61
|
-
"@genesislcap/foundation-zero
|
|
62
|
-
"@genesislcap/grid-pro": "14.
|
|
53
|
+
"@genesislcap/foundation-comms": "14.140.0",
|
|
54
|
+
"@genesislcap/foundation-errors": "14.140.0",
|
|
55
|
+
"@genesislcap/foundation-events": "14.140.0",
|
|
56
|
+
"@genesislcap/foundation-forms": "14.140.0",
|
|
57
|
+
"@genesislcap/foundation-logger": "14.140.0",
|
|
58
|
+
"@genesislcap/foundation-notifications": "14.140.0",
|
|
59
|
+
"@genesislcap/foundation-ui": "14.140.0",
|
|
60
|
+
"@genesislcap/foundation-utils": "14.140.0",
|
|
61
|
+
"@genesislcap/foundation-zero": "14.140.0",
|
|
62
|
+
"@genesislcap/foundation-zero-grid-pro": "14.140.0",
|
|
63
|
+
"@genesislcap/grid-pro": "14.140.0",
|
|
63
64
|
"@microsoft/fast-components": "^2.30.6",
|
|
64
65
|
"@microsoft/fast-element": "^1.12.0",
|
|
65
66
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
@@ -75,5 +76,5 @@
|
|
|
75
76
|
"access": "public"
|
|
76
77
|
},
|
|
77
78
|
"customElements": "dist/custom-elements.json",
|
|
78
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "219aed4b34d2df90cbf2003e9a4d84a8a627495e"
|
|
79
80
|
}
|