@genesislcap/foundation-entity-management 14.203.1 → 14.203.2-alpha-9f2807c.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 +203 -156
- package/dist/dts/entities/entities.d.ts +33 -18
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/entities/entities.template.d.ts.map +1 -1
- package/dist/dts/profiles/profiles.d.ts.map +1 -1
- package/dist/dts/types.d.ts +11 -0
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +55 -17
- package/dist/esm/entities/entities.styles.js +2 -2
- package/dist/esm/entities/entities.template.js +5 -5
- package/dist/esm/profiles/profiles.js +2 -1
- package/dist/esm/types.js +13 -0
- package/dist/foundation-entity-management.api.json +119 -30
- package/dist/foundation-entity-management.d.ts +45 -16
- package/docs/api/foundation-entity-management.entitymanagement.gettitlebasedonactionortype.md +24 -0
- package/docs/api/foundation-entity-management.entitymanagement.md +3 -1
- package/docs/api/foundation-entity-management.entitymanagement.modalformtitle.md +13 -0
- package/docs/api/foundation-entity-management.entitymanagement.modalformtype.md +13 -0
- package/docs/api-report.md +9 -4
- package/package.json +21 -21
- package/docs/api/foundation-entity-management.entitymanagement.editdialogtitle.md +0 -13
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
{
|
|
130
130
|
"kind": "variable",
|
|
131
131
|
"name": "styles",
|
|
132
|
-
"default": "css`\n :host {\n contain: content;\n }\n\n :host::part(header) {\n display: flex;\n justify-content: space-between;\n align-items: center;\n user-select: none;\n }\n\n :host([modal-position='centre']) .edit-modal {\n overflow-y: auto;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n foundation-form {\n height: 100%;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n\n .title {\n margin-left: 1px;\n }\n\n .header-title {\n color: var(--neutral-foreground-rest);\n font-size: var(--type-ramp-plus-4-font-size);\n font-family: var(--body-font);\n font-weight: 700;\n
|
|
132
|
+
"default": "css`\n :host {\n contain: content;\n }\n\n :host::part(header) {\n display: flex;\n justify-content: space-between;\n align-items: center;\n user-select: none;\n padding: 0 calc(var(--design-unit) * 2px);\n }\n\n :host([modal-position='centre']) .edit-modal {\n overflow-y: auto;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n foundation-form {\n height: 100%;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n\n .title {\n margin-left: 1px;\n }\n\n .header-title {\n color: var(--neutral-foreground-rest);\n font-size: var(--type-ramp-plus-4-font-size);\n font-family: var(--body-font);\n font-weight: 700;\n }\n\n .search-container {\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .search-container zero-search-bar,\n .search-container rapid-search-bar {\n width: 500px;\n }\n\n .crud-buttons {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .crud-buttons-wrapper {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n justify-content: flex-end;\n }\n\n .crud-buttons-wrapper-bottom {\n padding: calc(var(--design-unit) * 2px);\n }\n`",
|
|
133
133
|
"description": "Defines the css of the entity component as an ElementStyles object"
|
|
134
134
|
}
|
|
135
135
|
],
|
|
@@ -294,7 +294,6 @@
|
|
|
294
294
|
"type": {
|
|
295
295
|
"text": "string"
|
|
296
296
|
},
|
|
297
|
-
"default": "''",
|
|
298
297
|
"description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
|
|
299
298
|
"privacy": "public"
|
|
300
299
|
},
|
|
@@ -471,11 +470,11 @@
|
|
|
471
470
|
},
|
|
472
471
|
{
|
|
473
472
|
"kind": "field",
|
|
474
|
-
"name": "
|
|
473
|
+
"name": "modalFormType",
|
|
475
474
|
"type": {
|
|
476
|
-
"text": "
|
|
475
|
+
"text": "ModalFormType"
|
|
477
476
|
},
|
|
478
|
-
"description": "
|
|
477
|
+
"description": "The type of form that is currently being displayed in the modal"
|
|
479
478
|
},
|
|
480
479
|
{
|
|
481
480
|
"kind": "field",
|
|
@@ -596,6 +595,27 @@
|
|
|
596
595
|
"privacy": "public",
|
|
597
596
|
"description": "The Id of the crud buttons wrapper element"
|
|
598
597
|
},
|
|
598
|
+
{
|
|
599
|
+
"kind": "method",
|
|
600
|
+
"name": "getTitleBasedOnActionOrType",
|
|
601
|
+
"privacy": "public",
|
|
602
|
+
"parameters": [
|
|
603
|
+
{
|
|
604
|
+
"name": "actionOrType",
|
|
605
|
+
"type": {
|
|
606
|
+
"text": "CrudAction | ModalFormType"
|
|
607
|
+
},
|
|
608
|
+
"description": "The crud action or modal form type"
|
|
609
|
+
}
|
|
610
|
+
],
|
|
611
|
+
"description": "The helper function to determine the title of the modal form or button based on the action or type"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"kind": "field",
|
|
615
|
+
"name": "modalFormTitle",
|
|
616
|
+
"description": "Getter for the title of the modal form",
|
|
617
|
+
"readonly": true
|
|
618
|
+
},
|
|
599
619
|
{
|
|
600
620
|
"kind": "field",
|
|
601
621
|
"name": "shouldHideEditInColumn",
|
|
@@ -869,7 +889,6 @@
|
|
|
869
889
|
"type": {
|
|
870
890
|
"text": "string"
|
|
871
891
|
},
|
|
872
|
-
"default": "''",
|
|
873
892
|
"description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
|
|
874
893
|
"fieldName": "entityLabel"
|
|
875
894
|
},
|
|
@@ -1139,6 +1158,151 @@
|
|
|
1139
1158
|
}
|
|
1140
1159
|
]
|
|
1141
1160
|
},
|
|
1161
|
+
{
|
|
1162
|
+
"kind": "javascript-module",
|
|
1163
|
+
"path": "src/main/index.ts",
|
|
1164
|
+
"declarations": [],
|
|
1165
|
+
"exports": [
|
|
1166
|
+
{
|
|
1167
|
+
"kind": "js",
|
|
1168
|
+
"name": "*",
|
|
1169
|
+
"declaration": {
|
|
1170
|
+
"name": "*",
|
|
1171
|
+
"package": "./main.template"
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"kind": "js",
|
|
1176
|
+
"name": "*",
|
|
1177
|
+
"declaration": {
|
|
1178
|
+
"name": "*",
|
|
1179
|
+
"package": "./main"
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
]
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"kind": "javascript-module",
|
|
1186
|
+
"path": "src/main/main.styles.ts",
|
|
1187
|
+
"declarations": [
|
|
1188
|
+
{
|
|
1189
|
+
"kind": "variable",
|
|
1190
|
+
"name": "MainStyles",
|
|
1191
|
+
"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`"
|
|
1192
|
+
}
|
|
1193
|
+
],
|
|
1194
|
+
"exports": [
|
|
1195
|
+
{
|
|
1196
|
+
"kind": "js",
|
|
1197
|
+
"name": "MainStyles",
|
|
1198
|
+
"declaration": {
|
|
1199
|
+
"name": "MainStyles",
|
|
1200
|
+
"module": "src/main/main.styles.ts"
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
]
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"kind": "javascript-module",
|
|
1207
|
+
"path": "src/main/main.template.ts",
|
|
1208
|
+
"declarations": [],
|
|
1209
|
+
"exports": []
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"kind": "javascript-module",
|
|
1213
|
+
"path": "src/main/main.ts",
|
|
1214
|
+
"declarations": [
|
|
1215
|
+
{
|
|
1216
|
+
"kind": "class",
|
|
1217
|
+
"description": "",
|
|
1218
|
+
"name": "MainApplication",
|
|
1219
|
+
"members": [
|
|
1220
|
+
{
|
|
1221
|
+
"kind": "field",
|
|
1222
|
+
"name": "config",
|
|
1223
|
+
"type": {
|
|
1224
|
+
"text": "MainRouterConfig"
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"kind": "field",
|
|
1229
|
+
"name": "connect",
|
|
1230
|
+
"type": {
|
|
1231
|
+
"text": "Connect"
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"kind": "field",
|
|
1236
|
+
"name": "session",
|
|
1237
|
+
"type": {
|
|
1238
|
+
"text": "Session"
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"kind": "field",
|
|
1243
|
+
"name": "container",
|
|
1244
|
+
"type": {
|
|
1245
|
+
"text": "Container"
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"kind": "field",
|
|
1250
|
+
"name": "provider",
|
|
1251
|
+
"type": {
|
|
1252
|
+
"text": "HTMLElement"
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"kind": "field",
|
|
1257
|
+
"name": "ready",
|
|
1258
|
+
"type": {
|
|
1259
|
+
"text": "boolean"
|
|
1260
|
+
},
|
|
1261
|
+
"default": "false"
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"kind": "method",
|
|
1265
|
+
"name": "onLuminanceToggle"
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"kind": "method",
|
|
1269
|
+
"name": "loadRemotes"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"kind": "method",
|
|
1273
|
+
"name": "selectTemplate"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"kind": "method",
|
|
1277
|
+
"name": "registerDIDependencies",
|
|
1278
|
+
"privacy": "private"
|
|
1279
|
+
}
|
|
1280
|
+
],
|
|
1281
|
+
"superclass": {
|
|
1282
|
+
"name": "FASTElement",
|
|
1283
|
+
"package": "@microsoft/fast-element"
|
|
1284
|
+
},
|
|
1285
|
+
"customElement": true
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1288
|
+
"exports": [
|
|
1289
|
+
{
|
|
1290
|
+
"kind": "js",
|
|
1291
|
+
"name": "MainApplication",
|
|
1292
|
+
"declaration": {
|
|
1293
|
+
"name": "MainApplication",
|
|
1294
|
+
"module": "src/main/main.ts"
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
"kind": "custom-element-definition",
|
|
1299
|
+
"declaration": {
|
|
1300
|
+
"name": "MainApplication",
|
|
1301
|
+
"module": "src/main/main.ts"
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
]
|
|
1305
|
+
},
|
|
1142
1306
|
{
|
|
1143
1307
|
"kind": "javascript-module",
|
|
1144
1308
|
"path": "src/list/index.ts",
|
|
@@ -1626,151 +1790,6 @@
|
|
|
1626
1790
|
}
|
|
1627
1791
|
]
|
|
1628
1792
|
},
|
|
1629
|
-
{
|
|
1630
|
-
"kind": "javascript-module",
|
|
1631
|
-
"path": "src/main/index.ts",
|
|
1632
|
-
"declarations": [],
|
|
1633
|
-
"exports": [
|
|
1634
|
-
{
|
|
1635
|
-
"kind": "js",
|
|
1636
|
-
"name": "*",
|
|
1637
|
-
"declaration": {
|
|
1638
|
-
"name": "*",
|
|
1639
|
-
"package": "./main.template"
|
|
1640
|
-
}
|
|
1641
|
-
},
|
|
1642
|
-
{
|
|
1643
|
-
"kind": "js",
|
|
1644
|
-
"name": "*",
|
|
1645
|
-
"declaration": {
|
|
1646
|
-
"name": "*",
|
|
1647
|
-
"package": "./main"
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
]
|
|
1651
|
-
},
|
|
1652
|
-
{
|
|
1653
|
-
"kind": "javascript-module",
|
|
1654
|
-
"path": "src/main/main.styles.ts",
|
|
1655
|
-
"declarations": [
|
|
1656
|
-
{
|
|
1657
|
-
"kind": "variable",
|
|
1658
|
-
"name": "MainStyles",
|
|
1659
|
-
"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`"
|
|
1660
|
-
}
|
|
1661
|
-
],
|
|
1662
|
-
"exports": [
|
|
1663
|
-
{
|
|
1664
|
-
"kind": "js",
|
|
1665
|
-
"name": "MainStyles",
|
|
1666
|
-
"declaration": {
|
|
1667
|
-
"name": "MainStyles",
|
|
1668
|
-
"module": "src/main/main.styles.ts"
|
|
1669
|
-
}
|
|
1670
|
-
}
|
|
1671
|
-
]
|
|
1672
|
-
},
|
|
1673
|
-
{
|
|
1674
|
-
"kind": "javascript-module",
|
|
1675
|
-
"path": "src/main/main.template.ts",
|
|
1676
|
-
"declarations": [],
|
|
1677
|
-
"exports": []
|
|
1678
|
-
},
|
|
1679
|
-
{
|
|
1680
|
-
"kind": "javascript-module",
|
|
1681
|
-
"path": "src/main/main.ts",
|
|
1682
|
-
"declarations": [
|
|
1683
|
-
{
|
|
1684
|
-
"kind": "class",
|
|
1685
|
-
"description": "",
|
|
1686
|
-
"name": "MainApplication",
|
|
1687
|
-
"members": [
|
|
1688
|
-
{
|
|
1689
|
-
"kind": "field",
|
|
1690
|
-
"name": "config",
|
|
1691
|
-
"type": {
|
|
1692
|
-
"text": "MainRouterConfig"
|
|
1693
|
-
}
|
|
1694
|
-
},
|
|
1695
|
-
{
|
|
1696
|
-
"kind": "field",
|
|
1697
|
-
"name": "connect",
|
|
1698
|
-
"type": {
|
|
1699
|
-
"text": "Connect"
|
|
1700
|
-
}
|
|
1701
|
-
},
|
|
1702
|
-
{
|
|
1703
|
-
"kind": "field",
|
|
1704
|
-
"name": "session",
|
|
1705
|
-
"type": {
|
|
1706
|
-
"text": "Session"
|
|
1707
|
-
}
|
|
1708
|
-
},
|
|
1709
|
-
{
|
|
1710
|
-
"kind": "field",
|
|
1711
|
-
"name": "container",
|
|
1712
|
-
"type": {
|
|
1713
|
-
"text": "Container"
|
|
1714
|
-
}
|
|
1715
|
-
},
|
|
1716
|
-
{
|
|
1717
|
-
"kind": "field",
|
|
1718
|
-
"name": "provider",
|
|
1719
|
-
"type": {
|
|
1720
|
-
"text": "HTMLElement"
|
|
1721
|
-
}
|
|
1722
|
-
},
|
|
1723
|
-
{
|
|
1724
|
-
"kind": "field",
|
|
1725
|
-
"name": "ready",
|
|
1726
|
-
"type": {
|
|
1727
|
-
"text": "boolean"
|
|
1728
|
-
},
|
|
1729
|
-
"default": "false"
|
|
1730
|
-
},
|
|
1731
|
-
{
|
|
1732
|
-
"kind": "method",
|
|
1733
|
-
"name": "onLuminanceToggle"
|
|
1734
|
-
},
|
|
1735
|
-
{
|
|
1736
|
-
"kind": "method",
|
|
1737
|
-
"name": "loadRemotes"
|
|
1738
|
-
},
|
|
1739
|
-
{
|
|
1740
|
-
"kind": "method",
|
|
1741
|
-
"name": "selectTemplate"
|
|
1742
|
-
},
|
|
1743
|
-
{
|
|
1744
|
-
"kind": "method",
|
|
1745
|
-
"name": "registerDIDependencies",
|
|
1746
|
-
"privacy": "private"
|
|
1747
|
-
}
|
|
1748
|
-
],
|
|
1749
|
-
"superclass": {
|
|
1750
|
-
"name": "FASTElement",
|
|
1751
|
-
"package": "@microsoft/fast-element"
|
|
1752
|
-
},
|
|
1753
|
-
"customElement": true
|
|
1754
|
-
}
|
|
1755
|
-
],
|
|
1756
|
-
"exports": [
|
|
1757
|
-
{
|
|
1758
|
-
"kind": "js",
|
|
1759
|
-
"name": "MainApplication",
|
|
1760
|
-
"declaration": {
|
|
1761
|
-
"name": "MainApplication",
|
|
1762
|
-
"module": "src/main/main.ts"
|
|
1763
|
-
}
|
|
1764
|
-
},
|
|
1765
|
-
{
|
|
1766
|
-
"kind": "custom-element-definition",
|
|
1767
|
-
"declaration": {
|
|
1768
|
-
"name": "MainApplication",
|
|
1769
|
-
"module": "src/main/main.ts"
|
|
1770
|
-
}
|
|
1771
|
-
}
|
|
1772
|
-
]
|
|
1773
|
-
},
|
|
1774
1793
|
{
|
|
1775
1794
|
"kind": "javascript-module",
|
|
1776
1795
|
"path": "src/profiles/editProfileSchema.ts",
|
|
@@ -1944,9 +1963,9 @@
|
|
|
1944
1963
|
"type": {
|
|
1945
1964
|
"text": "string"
|
|
1946
1965
|
},
|
|
1947
|
-
"default": "'Profile'",
|
|
1948
1966
|
"description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
|
|
1949
1967
|
"privacy": "public",
|
|
1968
|
+
"default": "'Profile'",
|
|
1950
1969
|
"inheritedFrom": {
|
|
1951
1970
|
"name": "EntityManagement",
|
|
1952
1971
|
"module": "src/entities/entities.ts"
|
|
@@ -2215,11 +2234,11 @@
|
|
|
2215
2234
|
},
|
|
2216
2235
|
{
|
|
2217
2236
|
"kind": "field",
|
|
2218
|
-
"name": "
|
|
2237
|
+
"name": "modalFormType",
|
|
2219
2238
|
"type": {
|
|
2220
|
-
"text": "
|
|
2239
|
+
"text": "ModalFormType"
|
|
2221
2240
|
},
|
|
2222
|
-
"description": "
|
|
2241
|
+
"description": "The type of form that is currently being displayed in the modal",
|
|
2223
2242
|
"inheritedFrom": {
|
|
2224
2243
|
"name": "EntityManagement",
|
|
2225
2244
|
"module": "src/entities/entities.ts"
|
|
@@ -2404,6 +2423,35 @@
|
|
|
2404
2423
|
"module": "src/entities/entities.ts"
|
|
2405
2424
|
}
|
|
2406
2425
|
},
|
|
2426
|
+
{
|
|
2427
|
+
"kind": "method",
|
|
2428
|
+
"name": "getTitleBasedOnActionOrType",
|
|
2429
|
+
"privacy": "public",
|
|
2430
|
+
"parameters": [
|
|
2431
|
+
{
|
|
2432
|
+
"name": "actionOrType",
|
|
2433
|
+
"type": {
|
|
2434
|
+
"text": "CrudAction | ModalFormType"
|
|
2435
|
+
},
|
|
2436
|
+
"description": "The crud action or modal form type"
|
|
2437
|
+
}
|
|
2438
|
+
],
|
|
2439
|
+
"description": "The helper function to determine the title of the modal form or button based on the action or type",
|
|
2440
|
+
"inheritedFrom": {
|
|
2441
|
+
"name": "EntityManagement",
|
|
2442
|
+
"module": "src/entities/entities.ts"
|
|
2443
|
+
}
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
"kind": "field",
|
|
2447
|
+
"name": "modalFormTitle",
|
|
2448
|
+
"description": "Getter for the title of the modal form",
|
|
2449
|
+
"readonly": true,
|
|
2450
|
+
"inheritedFrom": {
|
|
2451
|
+
"name": "EntityManagement",
|
|
2452
|
+
"module": "src/entities/entities.ts"
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2407
2455
|
{
|
|
2408
2456
|
"kind": "field",
|
|
2409
2457
|
"name": "shouldHideEditInColumn",
|
|
@@ -2784,7 +2832,6 @@
|
|
|
2784
2832
|
"type": {
|
|
2785
2833
|
"text": "string"
|
|
2786
2834
|
},
|
|
2787
|
-
"default": "''",
|
|
2788
2835
|
"description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
|
|
2789
2836
|
"fieldName": "entityLabel",
|
|
2790
2837
|
"inheritedFrom": {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ColDef, GridOptions } from '@ag-grid-community/core';
|
|
2
|
-
import { Connect, DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { Connect, DatasourceOptions, MessageError } from '@genesislcap/foundation-comms';
|
|
3
3
|
import type { UiSchema } from '@genesislcap/foundation-forms';
|
|
4
4
|
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
5
|
-
import
|
|
5
|
+
import { Modal } from '@genesislcap/foundation-ui';
|
|
6
6
|
import { AvailableOption, SelectedOption } from '@genesislcap/foundation-ui';
|
|
7
7
|
import type { DatasourceType, GridProCaseType } from '@genesislcap/grid-pro';
|
|
8
8
|
import { FASTElement } from '@microsoft/fast-element';
|
|
9
|
-
import { CrudMenuPosition, ActionsMenuStyle } from '../types';
|
|
9
|
+
import { CrudMenuPosition, ActionsMenuStyle, ModalFormType, CrudAction } from '../types';
|
|
10
10
|
/**
|
|
11
11
|
* The attribute which is set to configure the resource that the entity manager is working with
|
|
12
12
|
*
|
|
@@ -44,11 +44,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
44
44
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
45
45
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
46
46
|
disconnectedCallback(): void;
|
|
47
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
48
|
-
* This attribute allows you to change row-selection to 'single' or 'multiple' which will allow you to select single or multiple rows.
|
|
49
|
-
* @remarks Defaults to single
|
|
50
|
-
* @public
|
|
51
|
-
*/
|
|
47
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
52
48
|
accessKey: string;
|
|
53
49
|
readonly accessKeyLabel: string;
|
|
54
50
|
autocapitalize: string;
|
|
@@ -66,10 +62,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
66
62
|
outerText: string;
|
|
67
63
|
spellcheck: boolean;
|
|
68
64
|
title: string;
|
|
69
|
-
/**
|
|
70
|
-
* If true, will enable row flashing for all rows for `add` transactions
|
|
71
|
-
* @public
|
|
72
|
-
*/
|
|
73
65
|
translate: boolean;
|
|
74
66
|
attachInternals(): ElementInternals;
|
|
75
67
|
click(): void;
|
|
@@ -99,6 +91,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
99
91
|
readonly scrollWidth: number;
|
|
100
92
|
readonly shadowRoot: ShadowRoot;
|
|
101
93
|
slot: string;
|
|
94
|
+
/**
|
|
95
|
+
* The configuration which is used when interacting with the resource on the backend
|
|
96
|
+
*
|
|
97
|
+
* @remarks
|
|
98
|
+
*
|
|
99
|
+
* Handles the configuration such as how many rows of entities to fetch at a time
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
102
|
readonly tagName: string;
|
|
103
103
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
104
104
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
@@ -144,11 +144,17 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
144
144
|
setAttributeNode(attr: Attr): Attr;
|
|
145
145
|
setAttributeNodeNS(attr: Attr): Attr;
|
|
146
146
|
setPointerCapture(pointerId: number): void;
|
|
147
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
147
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean; /**
|
|
148
|
+
* Determines where the buttons will appear
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
148
151
|
webkitMatchesSelector(selectors: string): boolean;
|
|
149
152
|
readonly baseURI: string;
|
|
150
153
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
151
|
-
readonly firstChild: ChildNode;
|
|
154
|
+
readonly firstChild: ChildNode; /**
|
|
155
|
+
* Determines the style of the buttons
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
152
158
|
readonly isConnected: boolean;
|
|
153
159
|
readonly lastChild: ChildNode;
|
|
154
160
|
readonly nextSibling: ChildNode;
|
|
@@ -552,9 +558,9 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
552
558
|
defaultEntityValues: Record<string, unknown>;
|
|
553
559
|
submitting: boolean;
|
|
554
560
|
/**
|
|
555
|
-
*
|
|
561
|
+
* The type of form that is currently being displayed in the modal
|
|
556
562
|
*/
|
|
557
|
-
|
|
563
|
+
modalFormType: ModalFormType;
|
|
558
564
|
editModalVisible: boolean;
|
|
559
565
|
editModalVisibleChanged(): void;
|
|
560
566
|
editEntityModal: Modal;
|
|
@@ -597,6 +603,15 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
597
603
|
* The Id of the crud buttons wrapper element
|
|
598
604
|
*/
|
|
599
605
|
crudMenuWrapper: any;
|
|
606
|
+
/**
|
|
607
|
+
* The helper function to determine the title of the modal form or button based on the action or type
|
|
608
|
+
* @param actionOrType - The crud action or modal form type
|
|
609
|
+
*/
|
|
610
|
+
getTitleBasedOnActionOrType(actionOrType: CrudAction | ModalFormType): string;
|
|
611
|
+
/**
|
|
612
|
+
* Getter for the title of the modal form
|
|
613
|
+
*/
|
|
614
|
+
get modalFormTitle(): string;
|
|
600
615
|
/**
|
|
601
616
|
* Determines whether the button edit should be hidden in the column
|
|
602
617
|
*/
|
|
@@ -687,10 +702,10 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
687
702
|
*/
|
|
688
703
|
emitCrud(action: 'create' | 'edit' | 'delete'): void;
|
|
689
704
|
/**
|
|
690
|
-
* Show notifications
|
|
705
|
+
* Show notifications after CRUD operations (success or failure).
|
|
691
706
|
* @internal
|
|
692
707
|
*/
|
|
693
|
-
|
|
708
|
+
handleNotify(type: ModalFormType | CrudAction.Delete, requestError?: MessageError[]): void;
|
|
694
709
|
/**
|
|
695
710
|
* Clear the selected entity
|
|
696
711
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,OAAO,EACP,iBAAiB,
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,OAAO,EACP,iBAAiB,EAGjB,YAAY,EACb,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,MA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ACI,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;CAiChC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,gBAAgB,EAAc,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAoBnD;;GAEG;AACH,eAAO,MAAM,mBAAmB,0BAAsB,gBAAgB,0EAkDrE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,wFAWlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,wFAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,wFAS3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,wFAwD/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,QAAQ,uEAEpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../src/profiles/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAoB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../src/profiles/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAoB,MAAM,aAAa,CAAC;AAIjE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAKa,QAAS,SAAQ,gBAAgB;IAC5C;;;;;;;;OAQG;IACG,OAAO,CAAC,IAAI,CAAO;IAEzB;;OAEG;;IAuBU,eAAe,CAAC,OAAO,KAAA;;;;;IAsBrB,aAAa;CAM7B"}
|
package/dist/dts/types.d.ts
CHANGED
|
@@ -25,4 +25,15 @@ export declare enum CrudMenuPosition {
|
|
|
25
25
|
Action = "action",
|
|
26
26
|
None = "none"
|
|
27
27
|
}
|
|
28
|
+
export declare enum CrudAction {
|
|
29
|
+
Create = "create",
|
|
30
|
+
Read = "read",
|
|
31
|
+
Update = "update",
|
|
32
|
+
Delete = "delete"
|
|
33
|
+
}
|
|
34
|
+
export declare enum ModalFormType {
|
|
35
|
+
Create = "create",
|
|
36
|
+
Read = "read",
|
|
37
|
+
Update = "update"
|
|
38
|
+
}
|
|
28
39
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/dts/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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