@genesislcap/foundation-entity-management 14.205.1 → 14.206.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.
@@ -1123,6 +1123,200 @@
1123
1123
  }
1124
1124
  ]
1125
1125
  },
1126
+ {
1127
+ "kind": "javascript-module",
1128
+ "path": "src/layouts/default.ts",
1129
+ "declarations": [
1130
+ {
1131
+ "kind": "variable",
1132
+ "name": "loginLayout",
1133
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
1134
+ },
1135
+ {
1136
+ "kind": "variable",
1137
+ "name": "defaultLayout",
1138
+ "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)"
1139
+ }
1140
+ ],
1141
+ "exports": [
1142
+ {
1143
+ "kind": "js",
1144
+ "name": "loginLayout",
1145
+ "declaration": {
1146
+ "name": "loginLayout",
1147
+ "module": "src/layouts/default.ts"
1148
+ }
1149
+ },
1150
+ {
1151
+ "kind": "js",
1152
+ "name": "defaultLayout",
1153
+ "declaration": {
1154
+ "name": "defaultLayout",
1155
+ "module": "src/layouts/default.ts"
1156
+ }
1157
+ }
1158
+ ]
1159
+ },
1160
+ {
1161
+ "kind": "javascript-module",
1162
+ "path": "src/layouts/index.ts",
1163
+ "declarations": [],
1164
+ "exports": [
1165
+ {
1166
+ "kind": "js",
1167
+ "name": "*",
1168
+ "declaration": {
1169
+ "name": "*",
1170
+ "package": "./default"
1171
+ }
1172
+ }
1173
+ ]
1174
+ },
1175
+ {
1176
+ "kind": "javascript-module",
1177
+ "path": "src/main/index.ts",
1178
+ "declarations": [],
1179
+ "exports": [
1180
+ {
1181
+ "kind": "js",
1182
+ "name": "*",
1183
+ "declaration": {
1184
+ "name": "*",
1185
+ "package": "./main.template"
1186
+ }
1187
+ },
1188
+ {
1189
+ "kind": "js",
1190
+ "name": "*",
1191
+ "declaration": {
1192
+ "name": "*",
1193
+ "package": "./main"
1194
+ }
1195
+ }
1196
+ ]
1197
+ },
1198
+ {
1199
+ "kind": "javascript-module",
1200
+ "path": "src/main/main.styles.ts",
1201
+ "declarations": [
1202
+ {
1203
+ "kind": "variable",
1204
+ "name": "MainStyles",
1205
+ "default": "css`\n ${mixinRobotoFont()}\n :host {\n contain: content;\n }\n\n :host,\n zero-design-system-provider,\n .dynamic-template,\n foundation-router {\n display: flex;\n width: 100%;\n height: 100%;\n }\n\n fast-progress {\n --accent-foreground-rest: #654df9;\n\n height: calc(var(--design-unit) * 1px);\n margin: 0;\n width: 100%;\n }\n`"
1206
+ }
1207
+ ],
1208
+ "exports": [
1209
+ {
1210
+ "kind": "js",
1211
+ "name": "MainStyles",
1212
+ "declaration": {
1213
+ "name": "MainStyles",
1214
+ "module": "src/main/main.styles.ts"
1215
+ }
1216
+ }
1217
+ ]
1218
+ },
1219
+ {
1220
+ "kind": "javascript-module",
1221
+ "path": "src/main/main.template.ts",
1222
+ "declarations": [],
1223
+ "exports": []
1224
+ },
1225
+ {
1226
+ "kind": "javascript-module",
1227
+ "path": "src/main/main.ts",
1228
+ "declarations": [
1229
+ {
1230
+ "kind": "class",
1231
+ "description": "",
1232
+ "name": "MainApplication",
1233
+ "members": [
1234
+ {
1235
+ "kind": "field",
1236
+ "name": "config",
1237
+ "type": {
1238
+ "text": "MainRouterConfig"
1239
+ }
1240
+ },
1241
+ {
1242
+ "kind": "field",
1243
+ "name": "connect",
1244
+ "type": {
1245
+ "text": "Connect"
1246
+ }
1247
+ },
1248
+ {
1249
+ "kind": "field",
1250
+ "name": "session",
1251
+ "type": {
1252
+ "text": "Session"
1253
+ }
1254
+ },
1255
+ {
1256
+ "kind": "field",
1257
+ "name": "container",
1258
+ "type": {
1259
+ "text": "Container"
1260
+ }
1261
+ },
1262
+ {
1263
+ "kind": "field",
1264
+ "name": "provider",
1265
+ "type": {
1266
+ "text": "HTMLElement"
1267
+ }
1268
+ },
1269
+ {
1270
+ "kind": "field",
1271
+ "name": "ready",
1272
+ "type": {
1273
+ "text": "boolean"
1274
+ },
1275
+ "default": "false"
1276
+ },
1277
+ {
1278
+ "kind": "method",
1279
+ "name": "onLuminanceToggle"
1280
+ },
1281
+ {
1282
+ "kind": "method",
1283
+ "name": "loadRemotes"
1284
+ },
1285
+ {
1286
+ "kind": "method",
1287
+ "name": "selectTemplate"
1288
+ },
1289
+ {
1290
+ "kind": "method",
1291
+ "name": "registerDIDependencies",
1292
+ "privacy": "private"
1293
+ }
1294
+ ],
1295
+ "superclass": {
1296
+ "name": "FASTElement",
1297
+ "package": "@microsoft/fast-element"
1298
+ },
1299
+ "customElement": true
1300
+ }
1301
+ ],
1302
+ "exports": [
1303
+ {
1304
+ "kind": "js",
1305
+ "name": "MainApplication",
1306
+ "declaration": {
1307
+ "name": "MainApplication",
1308
+ "module": "src/main/main.ts"
1309
+ }
1310
+ },
1311
+ {
1312
+ "kind": "custom-element-definition",
1313
+ "declaration": {
1314
+ "name": "MainApplication",
1315
+ "module": "src/main/main.ts"
1316
+ }
1317
+ }
1318
+ ]
1319
+ },
1126
1320
  {
1127
1321
  "kind": "javascript-module",
1128
1322
  "path": "src/list/index.ts",
@@ -1623,200 +1817,6 @@
1623
1817
  }
1624
1818
  ]
1625
1819
  },
1626
- {
1627
- "kind": "javascript-module",
1628
- "path": "src/main/index.ts",
1629
- "declarations": [],
1630
- "exports": [
1631
- {
1632
- "kind": "js",
1633
- "name": "*",
1634
- "declaration": {
1635
- "name": "*",
1636
- "package": "./main.template"
1637
- }
1638
- },
1639
- {
1640
- "kind": "js",
1641
- "name": "*",
1642
- "declaration": {
1643
- "name": "*",
1644
- "package": "./main"
1645
- }
1646
- }
1647
- ]
1648
- },
1649
- {
1650
- "kind": "javascript-module",
1651
- "path": "src/main/main.styles.ts",
1652
- "declarations": [
1653
- {
1654
- "kind": "variable",
1655
- "name": "MainStyles",
1656
- "default": "css`\n ${mixinRobotoFont()}\n :host {\n contain: content;\n }\n\n :host,\n zero-design-system-provider,\n .dynamic-template,\n foundation-router {\n display: flex;\n width: 100%;\n height: 100%;\n }\n\n fast-progress {\n --accent-foreground-rest: #654df9;\n\n height: calc(var(--design-unit) * 1px);\n margin: 0;\n width: 100%;\n }\n`"
1657
- }
1658
- ],
1659
- "exports": [
1660
- {
1661
- "kind": "js",
1662
- "name": "MainStyles",
1663
- "declaration": {
1664
- "name": "MainStyles",
1665
- "module": "src/main/main.styles.ts"
1666
- }
1667
- }
1668
- ]
1669
- },
1670
- {
1671
- "kind": "javascript-module",
1672
- "path": "src/main/main.template.ts",
1673
- "declarations": [],
1674
- "exports": []
1675
- },
1676
- {
1677
- "kind": "javascript-module",
1678
- "path": "src/main/main.ts",
1679
- "declarations": [
1680
- {
1681
- "kind": "class",
1682
- "description": "",
1683
- "name": "MainApplication",
1684
- "members": [
1685
- {
1686
- "kind": "field",
1687
- "name": "config",
1688
- "type": {
1689
- "text": "MainRouterConfig"
1690
- }
1691
- },
1692
- {
1693
- "kind": "field",
1694
- "name": "connect",
1695
- "type": {
1696
- "text": "Connect"
1697
- }
1698
- },
1699
- {
1700
- "kind": "field",
1701
- "name": "session",
1702
- "type": {
1703
- "text": "Session"
1704
- }
1705
- },
1706
- {
1707
- "kind": "field",
1708
- "name": "container",
1709
- "type": {
1710
- "text": "Container"
1711
- }
1712
- },
1713
- {
1714
- "kind": "field",
1715
- "name": "provider",
1716
- "type": {
1717
- "text": "HTMLElement"
1718
- }
1719
- },
1720
- {
1721
- "kind": "field",
1722
- "name": "ready",
1723
- "type": {
1724
- "text": "boolean"
1725
- },
1726
- "default": "false"
1727
- },
1728
- {
1729
- "kind": "method",
1730
- "name": "onLuminanceToggle"
1731
- },
1732
- {
1733
- "kind": "method",
1734
- "name": "loadRemotes"
1735
- },
1736
- {
1737
- "kind": "method",
1738
- "name": "selectTemplate"
1739
- },
1740
- {
1741
- "kind": "method",
1742
- "name": "registerDIDependencies",
1743
- "privacy": "private"
1744
- }
1745
- ],
1746
- "superclass": {
1747
- "name": "FASTElement",
1748
- "package": "@microsoft/fast-element"
1749
- },
1750
- "customElement": true
1751
- }
1752
- ],
1753
- "exports": [
1754
- {
1755
- "kind": "js",
1756
- "name": "MainApplication",
1757
- "declaration": {
1758
- "name": "MainApplication",
1759
- "module": "src/main/main.ts"
1760
- }
1761
- },
1762
- {
1763
- "kind": "custom-element-definition",
1764
- "declaration": {
1765
- "name": "MainApplication",
1766
- "module": "src/main/main.ts"
1767
- }
1768
- }
1769
- ]
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
1820
  {
1821
1821
  "kind": "javascript-module",
1822
1822
  "path": "src/profiles/editProfileSchema.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,EAGjB,YAAY,EACb,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G;IACI,YAAY;IASnB;;;;;OAKG;IACU,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW;IA4B/C,OAAO,CAAC,UAAU;IAMX,UAAU;IAMjB,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;IAwBnB,OAAO,CAAC,sBAAsB;IAc9B;;;OAGG;IACI,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ;IAIpD;;;OAGG;IACI,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY,EAAE;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","sourceRo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ACI,YAAY;;;;;;;;;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
- this.searchBarConfig = ((_a = meta.FIELD) !== null && _a !== void 0 ? _a : meta.REPLY_FIELD).map((field) => ({
251
- field: field.NAME,
252
- label: (searchTerm) => `${searchTerm} as ${field.NAME}`,
253
- resourceType: meta.TYPE,
254
- createCriteria: getCriteriaBuilder,
255
- isEnabled: (searchTerm, selectedOption) => {
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
  /**
@@ -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.205.1",
4
+ "version": "14.206.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -52,29 +52,29 @@
52
52
  }
53
53
  },
54
54
  "devDependencies": {
55
- "@genesislcap/foundation-testing": "14.205.1",
56
- "@genesislcap/genx": "14.205.1",
57
- "@genesislcap/rollup-builder": "14.205.1",
58
- "@genesislcap/ts-builder": "14.205.1",
59
- "@genesislcap/uvu-playwright-builder": "14.205.1",
60
- "@genesislcap/vite-builder": "14.205.1",
61
- "@genesislcap/webpack-builder": "14.205.1",
55
+ "@genesislcap/foundation-testing": "14.206.0",
56
+ "@genesislcap/genx": "14.206.0",
57
+ "@genesislcap/rollup-builder": "14.206.0",
58
+ "@genesislcap/ts-builder": "14.206.0",
59
+ "@genesislcap/uvu-playwright-builder": "14.206.0",
60
+ "@genesislcap/vite-builder": "14.206.0",
61
+ "@genesislcap/webpack-builder": "14.206.0",
62
62
  "rimraf": "^5.0.0"
63
63
  },
64
64
  "dependencies": {
65
65
  "@ag-grid-community/core": "29.2.0",
66
- "@genesislcap/foundation-comms": "14.205.1",
67
- "@genesislcap/foundation-errors": "14.205.1",
68
- "@genesislcap/foundation-events": "14.205.1",
69
- "@genesislcap/foundation-forms": "14.205.1",
70
- "@genesislcap/foundation-logger": "14.205.1",
71
- "@genesislcap/foundation-login": "14.205.1",
72
- "@genesislcap/foundation-notifications": "14.205.1",
73
- "@genesislcap/foundation-ui": "14.205.1",
74
- "@genesislcap/foundation-utils": "14.205.1",
75
- "@genesislcap/foundation-zero": "14.205.1",
76
- "@genesislcap/foundation-zero-grid-pro": "14.205.1",
77
- "@genesislcap/grid-pro": "14.205.1",
66
+ "@genesislcap/foundation-comms": "14.206.0",
67
+ "@genesislcap/foundation-errors": "14.206.0",
68
+ "@genesislcap/foundation-events": "14.206.0",
69
+ "@genesislcap/foundation-forms": "14.206.0",
70
+ "@genesislcap/foundation-logger": "14.206.0",
71
+ "@genesislcap/foundation-login": "14.206.0",
72
+ "@genesislcap/foundation-notifications": "14.206.0",
73
+ "@genesislcap/foundation-ui": "14.206.0",
74
+ "@genesislcap/foundation-utils": "14.206.0",
75
+ "@genesislcap/foundation-zero": "14.206.0",
76
+ "@genesislcap/foundation-zero-grid-pro": "14.206.0",
77
+ "@genesislcap/grid-pro": "14.206.0",
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": "038140d9695a4367c145d6bbbd4ec0a1dea78bc6"
93
+ "gitHead": "dc2e3e53b87e8adf417eef0ac0e9ccccd6021684"
94
94
  }