@genesislcap/foundation-entity-management 14.205.1 → 14.206.1
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 +103 -49
- package/dist/dts/entities/entities.d.ts +13 -8
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/users/users.d.ts +3 -0
- package/dist/dts/users/users.d.ts.map +1 -1
- package/dist/dts/utils/search-bar-utils.d.ts +6 -0
- package/dist/dts/utils/search-bar-utils.d.ts.map +1 -0
- package/dist/esm/entities/entities.js +17 -13
- package/dist/esm/users/users.js +10 -1
- package/dist/esm/utils/search-bar-utils.js +24 -0
- package/dist/foundation-entity-management.d.ts +16 -8
- package/package.json +21 -21
|
@@ -1768,55 +1768,6 @@
|
|
|
1768
1768
|
}
|
|
1769
1769
|
]
|
|
1770
1770
|
},
|
|
1771
|
-
{
|
|
1772
|
-
"kind": "javascript-module",
|
|
1773
|
-
"path": "src/layouts/default.ts",
|
|
1774
|
-
"declarations": [
|
|
1775
|
-
{
|
|
1776
|
-
"kind": "variable",
|
|
1777
|
-
"name": "loginLayout",
|
|
1778
|
-
"default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
|
|
1779
|
-
},
|
|
1780
|
-
{
|
|
1781
|
-
"kind": "variable",
|
|
1782
|
-
"name": "defaultLayout",
|
|
1783
|
-
"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)"
|
|
1784
|
-
}
|
|
1785
|
-
],
|
|
1786
|
-
"exports": [
|
|
1787
|
-
{
|
|
1788
|
-
"kind": "js",
|
|
1789
|
-
"name": "loginLayout",
|
|
1790
|
-
"declaration": {
|
|
1791
|
-
"name": "loginLayout",
|
|
1792
|
-
"module": "src/layouts/default.ts"
|
|
1793
|
-
}
|
|
1794
|
-
},
|
|
1795
|
-
{
|
|
1796
|
-
"kind": "js",
|
|
1797
|
-
"name": "defaultLayout",
|
|
1798
|
-
"declaration": {
|
|
1799
|
-
"name": "defaultLayout",
|
|
1800
|
-
"module": "src/layouts/default.ts"
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
]
|
|
1804
|
-
},
|
|
1805
|
-
{
|
|
1806
|
-
"kind": "javascript-module",
|
|
1807
|
-
"path": "src/layouts/index.ts",
|
|
1808
|
-
"declarations": [],
|
|
1809
|
-
"exports": [
|
|
1810
|
-
{
|
|
1811
|
-
"kind": "js",
|
|
1812
|
-
"name": "*",
|
|
1813
|
-
"declaration": {
|
|
1814
|
-
"name": "*",
|
|
1815
|
-
"package": "./default"
|
|
1816
|
-
}
|
|
1817
|
-
}
|
|
1818
|
-
]
|
|
1819
|
-
},
|
|
1820
1771
|
{
|
|
1821
1772
|
"kind": "javascript-module",
|
|
1822
1773
|
"path": "src/profiles/editProfileSchema.ts",
|
|
@@ -3151,6 +3102,55 @@
|
|
|
3151
3102
|
}
|
|
3152
3103
|
]
|
|
3153
3104
|
},
|
|
3105
|
+
{
|
|
3106
|
+
"kind": "javascript-module",
|
|
3107
|
+
"path": "src/layouts/default.ts",
|
|
3108
|
+
"declarations": [
|
|
3109
|
+
{
|
|
3110
|
+
"kind": "variable",
|
|
3111
|
+
"name": "loginLayout",
|
|
3112
|
+
"default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
|
|
3113
|
+
},
|
|
3114
|
+
{
|
|
3115
|
+
"kind": "variable",
|
|
3116
|
+
"name": "defaultLayout",
|
|
3117
|
+
"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)"
|
|
3118
|
+
}
|
|
3119
|
+
],
|
|
3120
|
+
"exports": [
|
|
3121
|
+
{
|
|
3122
|
+
"kind": "js",
|
|
3123
|
+
"name": "loginLayout",
|
|
3124
|
+
"declaration": {
|
|
3125
|
+
"name": "loginLayout",
|
|
3126
|
+
"module": "src/layouts/default.ts"
|
|
3127
|
+
}
|
|
3128
|
+
},
|
|
3129
|
+
{
|
|
3130
|
+
"kind": "js",
|
|
3131
|
+
"name": "defaultLayout",
|
|
3132
|
+
"declaration": {
|
|
3133
|
+
"name": "defaultLayout",
|
|
3134
|
+
"module": "src/layouts/default.ts"
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
]
|
|
3138
|
+
},
|
|
3139
|
+
{
|
|
3140
|
+
"kind": "javascript-module",
|
|
3141
|
+
"path": "src/layouts/index.ts",
|
|
3142
|
+
"declarations": [],
|
|
3143
|
+
"exports": [
|
|
3144
|
+
{
|
|
3145
|
+
"kind": "js",
|
|
3146
|
+
"name": "*",
|
|
3147
|
+
"declaration": {
|
|
3148
|
+
"name": "*",
|
|
3149
|
+
"package": "./default"
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
]
|
|
3153
|
+
},
|
|
3154
3154
|
{
|
|
3155
3155
|
"kind": "javascript-module",
|
|
3156
3156
|
"path": "src/users/users.template.ts",
|
|
@@ -3522,6 +3522,60 @@
|
|
|
3522
3522
|
}
|
|
3523
3523
|
]
|
|
3524
3524
|
},
|
|
3525
|
+
{
|
|
3526
|
+
"kind": "javascript-module",
|
|
3527
|
+
"path": "src/utils/search-bar-utils.ts",
|
|
3528
|
+
"declarations": [
|
|
3529
|
+
{
|
|
3530
|
+
"kind": "function",
|
|
3531
|
+
"name": "getSearchBarColumnsConfig",
|
|
3532
|
+
"parameters": [
|
|
3533
|
+
{
|
|
3534
|
+
"name": "columns",
|
|
3535
|
+
"type": {
|
|
3536
|
+
"text": "ColDef[]"
|
|
3537
|
+
}
|
|
3538
|
+
},
|
|
3539
|
+
{
|
|
3540
|
+
"name": "meta",
|
|
3541
|
+
"type": {
|
|
3542
|
+
"text": "Metadata"
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
]
|
|
3546
|
+
},
|
|
3547
|
+
{
|
|
3548
|
+
"kind": "function",
|
|
3549
|
+
"name": "getSearchBarMetaConfig",
|
|
3550
|
+
"parameters": [
|
|
3551
|
+
{
|
|
3552
|
+
"name": "meta",
|
|
3553
|
+
"type": {
|
|
3554
|
+
"text": "Metadata"
|
|
3555
|
+
}
|
|
3556
|
+
}
|
|
3557
|
+
]
|
|
3558
|
+
}
|
|
3559
|
+
],
|
|
3560
|
+
"exports": [
|
|
3561
|
+
{
|
|
3562
|
+
"kind": "js",
|
|
3563
|
+
"name": "getSearchBarColumnsConfig",
|
|
3564
|
+
"declaration": {
|
|
3565
|
+
"name": "getSearchBarColumnsConfig",
|
|
3566
|
+
"module": "src/utils/search-bar-utils.ts"
|
|
3567
|
+
}
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
"kind": "js",
|
|
3571
|
+
"name": "getSearchBarMetaConfig",
|
|
3572
|
+
"declaration": {
|
|
3573
|
+
"name": "getSearchBarMetaConfig",
|
|
3574
|
+
"module": "src/utils/search-bar-utils.ts"
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
]
|
|
3578
|
+
},
|
|
3525
3579
|
{
|
|
3526
3580
|
"kind": "javascript-module",
|
|
3527
3581
|
"path": "src/routes/demo/entity-management.template.ts",
|
|
@@ -89,7 +89,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
89
89
|
scrollLeft: number;
|
|
90
90
|
scrollTop: number;
|
|
91
91
|
readonly scrollWidth: number;
|
|
92
|
-
readonly shadowRoot: ShadowRoot;
|
|
92
|
+
readonly shadowRoot: ShadowRoot; /**
|
|
93
|
+
* Array which holds the column definitions.
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
93
96
|
slot: string;
|
|
94
97
|
readonly tagName: string;
|
|
95
98
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
@@ -98,7 +101,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
98
101
|
closest<E extends Element = Element>(selectors: string): E;
|
|
99
102
|
getAttribute(qualifiedName: string): string;
|
|
100
103
|
getAttributeNS(namespace: string, localName: string): string;
|
|
101
|
-
getAttributeNames(): string[];
|
|
104
|
+
getAttributeNames(): string[]; /**
|
|
105
|
+
* The name of the resource in the backend to interact with when dispatching actions from the update/create modal
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
102
108
|
getAttributeNode(qualifiedName: string): Attr;
|
|
103
109
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
104
110
|
getBoundingClientRect(): DOMRect;
|
|
@@ -192,6 +198,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
192
198
|
ariaColIndex: string;
|
|
193
199
|
ariaColIndexText: string;
|
|
194
200
|
ariaColSpan: string;
|
|
201
|
+
/**
|
|
202
|
+
* Set up the web component
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
195
205
|
ariaCurrent: string;
|
|
196
206
|
ariaDisabled: string;
|
|
197
207
|
ariaExpanded: string;
|
|
@@ -278,12 +288,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
278
288
|
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
279
289
|
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
280
290
|
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
281
|
-
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
282
|
-
* Opens the model to edit an entity. Added as an event listener on the class when receiving the `edit-entity` event.
|
|
283
|
-
*
|
|
284
|
-
* @param e - CustomEvent where `e.detail` is the entity to edit.
|
|
285
|
-
* @internal
|
|
286
|
-
*/
|
|
291
|
+
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
287
292
|
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
288
293
|
onemptied: (this: GlobalEventHandlers, ev: Event) => any;
|
|
289
294
|
onended: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -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,OAAO,EACP,iBAAiB,
|
|
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,OAAO,EACP,iBAAiB,EAEjB,YAAY,EAEb,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,EAAE,KAAK,EAAe,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAIL,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAMzF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAiK5E;;;OAGG;;;;;;;;;mCAgBH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,QAAQ;IAIpD;;;OAGG;IACI,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY,EAAE;IA6C1F;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAkC/B;;OAEG;IACI,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,qBAAqB,CAAC;CASlE"}
|
|
@@ -81,6 +81,9 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
81
81
|
readonly part: DOMTokenList;
|
|
82
82
|
readonly prefix: string;
|
|
83
83
|
readonly scrollHeight: number;
|
|
84
|
+
/**
|
|
85
|
+
* Column definition, default to the UsersColumnConfig
|
|
86
|
+
*/
|
|
84
87
|
scrollLeft: number;
|
|
85
88
|
scrollTop: number;
|
|
86
89
|
readonly scrollWidth: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/users/users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIhF,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7F,OAAO,EAAiC,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjG,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQ3C;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;IAoC7B,CAAC
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/users/users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIhF,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,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AY;;;;;;;;;IAYnB;;;;;OAKG;IACI,YAAY;;;;;IAYnB;;OAEG;IACS,OAAO,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,CAAqB;IAEhE,sBAAsB,EAAE,eAAe,EAAE,CAAM;IAC/C,sBAAsB,EAAE,eAAe,EAAE,CAAM;IAE/C,aAAa,EAAE,OAAO,CAAC;IACnC,OAAO,CAAC,aAAa,CAAS;IAE9B;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;;OAGG;IACG,QAAQ,EAAE,MAAM,CAAqB;IAE3C;;;OAGG;IACG,cAAc,EAAE,MAAM,CAAU;IAEtC;;;OAGG;IACG,WAAW,EAAE,MAAM,CAAkB;IAE3C;;;OAGG;IACG,yBAAyB,EAAE,MAAM,CAAuB;IAE9D;;OAEG;;IAaG,iBAAiB;IAgBjB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IASlC,SAAS,IAAI,IAAI;IAe1B;;;OAGG;IACH,sBAAsB,CAAC,MAAM,KAAA;;;;;;;;IAW7B;;;;;;;;OAQG;IACG,YAAY,CAAC,MAAM,KAAA;IAoCzB;;OAEG;IACG,YAAY,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;CAwBxB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ColDef } from '@ag-grid-community/core';
|
|
2
|
+
import { Metadata } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { AvailableOption } from '@genesislcap/foundation-ui';
|
|
4
|
+
export declare const getSearchBarColumnsConfig: (columns: ColDef[], meta: Metadata) => AvailableOption<string>[];
|
|
5
|
+
export declare const getSearchBarMetaConfig: (meta: Metadata) => AvailableOption<string>[];
|
|
6
|
+
//# sourceMappingURL=search-bar-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-bar-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/search-bar-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAgC,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,eAAe,EAAwC,MAAM,4BAA4B,CAAC;AAEnG,eAAO,MAAM,yBAAyB,YAAa,MAAM,EAAE,QAAQ,QAAQ,8BAcxE,CAAC;AAEJ,eAAO,MAAM,sBAAsB,SAAU,QAAQ,8BAclD,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __awaiter, __decorate, __rest } from "tslib";
|
|
2
|
-
import { Connect, ResourceType, } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { Connect, ResourceType, defaultDatasourceConfig, } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { renderers } from '@genesislcap/foundation-forms';
|
|
4
4
|
import { showNotification, showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
5
|
-
import { getCriteriaBuilder, INPUT_MIN_LENGTH, } from '@genesislcap/foundation-ui';
|
|
6
5
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
7
6
|
import { attr, customElement, DOM, FASTElement, observable, volatile, } from '@microsoft/fast-element';
|
|
8
7
|
import { CrudMenuPosition, ActionsMenuStyle, ModalFormType, CrudAction } from '../types';
|
|
9
8
|
import { getErrorFormat, logger } from '../utils';
|
|
9
|
+
import { getSearchBarColumnsConfig, getSearchBarMetaConfig } from '../utils/search-bar-utils';
|
|
10
10
|
import { styles } from './entities.styles';
|
|
11
11
|
import { defaultHeader, searchBarHeader, template } from './entities.template';
|
|
12
12
|
/**
|
|
@@ -89,6 +89,15 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
89
89
|
* @public
|
|
90
90
|
*/
|
|
91
91
|
this.datasourceType = 'client';
|
|
92
|
+
/**
|
|
93
|
+
* The configuration which is used when interacting with the resource on the backend
|
|
94
|
+
*
|
|
95
|
+
* @remarks
|
|
96
|
+
*
|
|
97
|
+
* Handles the configuration such as how many rows of entities to fetch at a time
|
|
98
|
+
* @public
|
|
99
|
+
*/
|
|
100
|
+
this.datasourceConfig = defaultDatasourceConfig.options;
|
|
92
101
|
/**
|
|
93
102
|
* Array with renderers used by foundation-forms
|
|
94
103
|
* @public
|
|
@@ -239,7 +248,6 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
239
248
|
* @internal
|
|
240
249
|
*/
|
|
241
250
|
getDefaultSearchBarConfig() {
|
|
242
|
-
var _a;
|
|
243
251
|
return __awaiter(this, void 0, void 0, function* () {
|
|
244
252
|
const meta = yield this.connect
|
|
245
253
|
.getMetadata(this.resourceName)
|
|
@@ -247,16 +255,12 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
247
255
|
if (!meta) {
|
|
248
256
|
return;
|
|
249
257
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
return (searchTerm.length >= INPUT_MIN_LENGTH &&
|
|
257
|
-
!selectedOption.some((e) => e.field === field.NAME));
|
|
258
|
-
},
|
|
259
|
-
}));
|
|
258
|
+
if (this.columns) {
|
|
259
|
+
this.searchBarConfig = getSearchBarColumnsConfig(this.columns, meta);
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
this.searchBarConfig = getSearchBarMetaConfig(meta);
|
|
263
|
+
}
|
|
260
264
|
});
|
|
261
265
|
}
|
|
262
266
|
/**
|
package/dist/esm/users/users.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { Auth, Connect, defaultDatasourceConfig } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { showNotification } from '@genesislcap/foundation-notifications';
|
|
4
4
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
5
5
|
import { GridProRendererTypes } from '@genesislcap/foundation-zero-grid-pro';
|
|
@@ -101,6 +101,15 @@ let Users = class Users extends LifecycleMixin(FASTElement) {
|
|
|
101
101
|
*/
|
|
102
102
|
constructor() {
|
|
103
103
|
super();
|
|
104
|
+
/**
|
|
105
|
+
* The configuration which is used when interacting with the resource on the backend
|
|
106
|
+
*
|
|
107
|
+
* @remarks
|
|
108
|
+
*
|
|
109
|
+
* Handles the configuration such as how many rows of entities to fetch at a time
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
this.datasourceConfig = defaultDatasourceConfig.options;
|
|
104
113
|
/**
|
|
105
114
|
* Name of the design system prefix that will be used for components.
|
|
106
115
|
* @public
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getCriteriaBuilder, INPUT_MIN_LENGTH } from '@genesislcap/foundation-ui';
|
|
2
|
+
export const getSearchBarColumnsConfig = (columns, meta) => columns.map((column) => ({
|
|
3
|
+
field: column.field,
|
|
4
|
+
label: (searchTerm) => `${searchTerm} as ${column.headerName}`,
|
|
5
|
+
resourceType: meta.TYPE,
|
|
6
|
+
createCriteria: getCriteriaBuilder,
|
|
7
|
+
isEnabled: (searchTerm, selectedOption) => {
|
|
8
|
+
return (searchTerm.length >= INPUT_MIN_LENGTH &&
|
|
9
|
+
!selectedOption.some((e) => e.field === column.field));
|
|
10
|
+
},
|
|
11
|
+
}));
|
|
12
|
+
export const getSearchBarMetaConfig = (meta) => {
|
|
13
|
+
var _a;
|
|
14
|
+
return ((_a = meta.FIELD) !== null && _a !== void 0 ? _a : meta.REPLY_FIELD).map((field) => ({
|
|
15
|
+
field: field.NAME,
|
|
16
|
+
label: (searchTerm) => `${searchTerm} as ${field.NAME}`,
|
|
17
|
+
resourceType: meta.TYPE,
|
|
18
|
+
createCriteria: getCriteriaBuilder,
|
|
19
|
+
isEnabled: (searchTerm, selectedOption) => {
|
|
20
|
+
return (searchTerm.length >= INPUT_MIN_LENGTH &&
|
|
21
|
+
!selectedOption.some((e) => e.field === field.NAME));
|
|
22
|
+
},
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
@@ -506,7 +506,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
506
506
|
scrollLeft: number;
|
|
507
507
|
scrollTop: number;
|
|
508
508
|
readonly scrollWidth: number;
|
|
509
|
-
readonly shadowRoot: ShadowRoot;
|
|
509
|
+
readonly shadowRoot: ShadowRoot; /**
|
|
510
|
+
* Array which holds the column definitions.
|
|
511
|
+
* @public
|
|
512
|
+
*/
|
|
510
513
|
slot: string;
|
|
511
514
|
readonly tagName: string;
|
|
512
515
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
@@ -515,7 +518,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
515
518
|
closest<E extends Element = Element>(selectors: string): E;
|
|
516
519
|
getAttribute(qualifiedName: string): string;
|
|
517
520
|
getAttributeNS(namespace: string, localName: string): string;
|
|
518
|
-
getAttributeNames(): string[];
|
|
521
|
+
getAttributeNames(): string[]; /**
|
|
522
|
+
* The name of the resource in the backend to interact with when dispatching actions from the update/create modal
|
|
523
|
+
* @internal
|
|
524
|
+
*/
|
|
519
525
|
getAttributeNode(qualifiedName: string): Attr;
|
|
520
526
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
521
527
|
getBoundingClientRect(): DOMRect;
|
|
@@ -609,6 +615,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
609
615
|
ariaColIndex: string;
|
|
610
616
|
ariaColIndexText: string;
|
|
611
617
|
ariaColSpan: string;
|
|
618
|
+
/**
|
|
619
|
+
* Set up the web component
|
|
620
|
+
* @internal
|
|
621
|
+
*/
|
|
612
622
|
ariaCurrent: string;
|
|
613
623
|
ariaDisabled: string;
|
|
614
624
|
ariaExpanded: string;
|
|
@@ -695,12 +705,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
695
705
|
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
696
706
|
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
697
707
|
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
698
|
-
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
699
|
-
* Opens the model to edit an entity. Added as an event listener on the class when receiving the `edit-entity` event.
|
|
700
|
-
*
|
|
701
|
-
* @param e - CustomEvent where `e.detail` is the entity to edit.
|
|
702
|
-
* @internal
|
|
703
|
-
*/
|
|
708
|
+
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
704
709
|
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
705
710
|
onemptied: (this: GlobalEventHandlers, ev: Event) => any;
|
|
706
711
|
onended: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -1175,6 +1180,9 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1175
1180
|
readonly part: DOMTokenList;
|
|
1176
1181
|
readonly prefix: string;
|
|
1177
1182
|
readonly scrollHeight: number;
|
|
1183
|
+
/**
|
|
1184
|
+
* Column definition, default to the UsersColumnConfig
|
|
1185
|
+
*/
|
|
1178
1186
|
scrollLeft: number;
|
|
1179
1187
|
scrollTop: number;
|
|
1180
1188
|
readonly scrollWidth: number;
|
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.206.1",
|
|
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.206.1",
|
|
56
|
+
"@genesislcap/genx": "14.206.1",
|
|
57
|
+
"@genesislcap/rollup-builder": "14.206.1",
|
|
58
|
+
"@genesislcap/ts-builder": "14.206.1",
|
|
59
|
+
"@genesislcap/uvu-playwright-builder": "14.206.1",
|
|
60
|
+
"@genesislcap/vite-builder": "14.206.1",
|
|
61
|
+
"@genesislcap/webpack-builder": "14.206.1",
|
|
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.206.1",
|
|
67
|
+
"@genesislcap/foundation-errors": "14.206.1",
|
|
68
|
+
"@genesislcap/foundation-events": "14.206.1",
|
|
69
|
+
"@genesislcap/foundation-forms": "14.206.1",
|
|
70
|
+
"@genesislcap/foundation-logger": "14.206.1",
|
|
71
|
+
"@genesislcap/foundation-login": "14.206.1",
|
|
72
|
+
"@genesislcap/foundation-notifications": "14.206.1",
|
|
73
|
+
"@genesislcap/foundation-ui": "14.206.1",
|
|
74
|
+
"@genesislcap/foundation-utils": "14.206.1",
|
|
75
|
+
"@genesislcap/foundation-zero": "14.206.1",
|
|
76
|
+
"@genesislcap/foundation-zero-grid-pro": "14.206.1",
|
|
77
|
+
"@genesislcap/grid-pro": "14.206.1",
|
|
78
78
|
"@microsoft/fast-components": "^2.30.6",
|
|
79
79
|
"@microsoft/fast-element": "^1.12.0",
|
|
80
80
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"access": "public"
|
|
91
91
|
},
|
|
92
92
|
"customElements": "dist/custom-elements.json",
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "7adbde570ac145ed1ed2a6cbab8c3204533a367d"
|
|
94
94
|
}
|