@genesislcap/foundation-entity-management 14.208.0 → 14.208.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +179 -167
- package/dist/dts/entities/entities.d.ts +9 -11
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/utils/search-bar-utils.d.ts +2 -2
- package/dist/dts/utils/search-bar-utils.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +4 -2
- package/dist/esm/utils/search-bar-utils.js +4 -4
- package/dist/foundation-entity-management.d.ts +10 -12
- package/package.json +22 -21
|
@@ -1123,6 +1123,55 @@
|
|
|
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
|
+
},
|
|
1126
1175
|
{
|
|
1127
1176
|
"kind": "javascript-module",
|
|
1128
1177
|
"path": "src/list/index.ts",
|
|
@@ -1625,49 +1674,145 @@
|
|
|
1625
1674
|
},
|
|
1626
1675
|
{
|
|
1627
1676
|
"kind": "javascript-module",
|
|
1628
|
-
"path": "src/
|
|
1629
|
-
"declarations": [
|
|
1677
|
+
"path": "src/main/index.ts",
|
|
1678
|
+
"declarations": [],
|
|
1679
|
+
"exports": [
|
|
1630
1680
|
{
|
|
1631
|
-
"kind": "
|
|
1632
|
-
"name": "
|
|
1633
|
-
"
|
|
1681
|
+
"kind": "js",
|
|
1682
|
+
"name": "*",
|
|
1683
|
+
"declaration": {
|
|
1684
|
+
"name": "*",
|
|
1685
|
+
"package": "./main.template"
|
|
1686
|
+
}
|
|
1634
1687
|
},
|
|
1688
|
+
{
|
|
1689
|
+
"kind": "js",
|
|
1690
|
+
"name": "*",
|
|
1691
|
+
"declaration": {
|
|
1692
|
+
"name": "*",
|
|
1693
|
+
"package": "./main"
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
]
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"kind": "javascript-module",
|
|
1700
|
+
"path": "src/main/main.styles.ts",
|
|
1701
|
+
"declarations": [
|
|
1635
1702
|
{
|
|
1636
1703
|
"kind": "variable",
|
|
1637
|
-
"name": "
|
|
1638
|
-
"default": "
|
|
1704
|
+
"name": "MainStyles",
|
|
1705
|
+
"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`"
|
|
1639
1706
|
}
|
|
1640
1707
|
],
|
|
1641
1708
|
"exports": [
|
|
1642
1709
|
{
|
|
1643
1710
|
"kind": "js",
|
|
1644
|
-
"name": "
|
|
1645
|
-
"declaration": {
|
|
1646
|
-
"name": "loginLayout",
|
|
1647
|
-
"module": "src/layouts/default.ts"
|
|
1648
|
-
}
|
|
1649
|
-
},
|
|
1650
|
-
{
|
|
1651
|
-
"kind": "js",
|
|
1652
|
-
"name": "defaultLayout",
|
|
1711
|
+
"name": "MainStyles",
|
|
1653
1712
|
"declaration": {
|
|
1654
|
-
"name": "
|
|
1655
|
-
"module": "src/
|
|
1713
|
+
"name": "MainStyles",
|
|
1714
|
+
"module": "src/main/main.styles.ts"
|
|
1656
1715
|
}
|
|
1657
1716
|
}
|
|
1658
1717
|
]
|
|
1659
1718
|
},
|
|
1660
1719
|
{
|
|
1661
1720
|
"kind": "javascript-module",
|
|
1662
|
-
"path": "src/
|
|
1721
|
+
"path": "src/main/main.template.ts",
|
|
1663
1722
|
"declarations": [],
|
|
1723
|
+
"exports": []
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"kind": "javascript-module",
|
|
1727
|
+
"path": "src/main/main.ts",
|
|
1728
|
+
"declarations": [
|
|
1729
|
+
{
|
|
1730
|
+
"kind": "class",
|
|
1731
|
+
"description": "",
|
|
1732
|
+
"name": "MainApplication",
|
|
1733
|
+
"members": [
|
|
1734
|
+
{
|
|
1735
|
+
"kind": "field",
|
|
1736
|
+
"name": "config",
|
|
1737
|
+
"type": {
|
|
1738
|
+
"text": "MainRouterConfig"
|
|
1739
|
+
}
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"kind": "field",
|
|
1743
|
+
"name": "connect",
|
|
1744
|
+
"type": {
|
|
1745
|
+
"text": "Connect"
|
|
1746
|
+
}
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"kind": "field",
|
|
1750
|
+
"name": "session",
|
|
1751
|
+
"type": {
|
|
1752
|
+
"text": "Session"
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
"kind": "field",
|
|
1757
|
+
"name": "container",
|
|
1758
|
+
"type": {
|
|
1759
|
+
"text": "Container"
|
|
1760
|
+
}
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"kind": "field",
|
|
1764
|
+
"name": "provider",
|
|
1765
|
+
"type": {
|
|
1766
|
+
"text": "HTMLElement"
|
|
1767
|
+
}
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
"kind": "field",
|
|
1771
|
+
"name": "ready",
|
|
1772
|
+
"type": {
|
|
1773
|
+
"text": "boolean"
|
|
1774
|
+
},
|
|
1775
|
+
"default": "false"
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
"kind": "method",
|
|
1779
|
+
"name": "onLuminanceToggle"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"kind": "method",
|
|
1783
|
+
"name": "loadRemotes"
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"kind": "method",
|
|
1787
|
+
"name": "selectTemplate"
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
"kind": "method",
|
|
1791
|
+
"name": "registerDIDependencies",
|
|
1792
|
+
"privacy": "private"
|
|
1793
|
+
}
|
|
1794
|
+
],
|
|
1795
|
+
"superclass": {
|
|
1796
|
+
"name": "FASTElement",
|
|
1797
|
+
"package": "@microsoft/fast-element"
|
|
1798
|
+
},
|
|
1799
|
+
"customElement": true
|
|
1800
|
+
}
|
|
1801
|
+
],
|
|
1664
1802
|
"exports": [
|
|
1665
1803
|
{
|
|
1666
1804
|
"kind": "js",
|
|
1667
|
-
"name": "
|
|
1805
|
+
"name": "MainApplication",
|
|
1668
1806
|
"declaration": {
|
|
1669
|
-
"name": "
|
|
1670
|
-
"
|
|
1807
|
+
"name": "MainApplication",
|
|
1808
|
+
"module": "src/main/main.ts"
|
|
1809
|
+
}
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
"kind": "custom-element-definition",
|
|
1813
|
+
"declaration": {
|
|
1814
|
+
"name": "MainApplication",
|
|
1815
|
+
"module": "src/main/main.ts"
|
|
1671
1816
|
}
|
|
1672
1817
|
}
|
|
1673
1818
|
]
|
|
@@ -2985,151 +3130,6 @@
|
|
|
2985
3130
|
}
|
|
2986
3131
|
]
|
|
2987
3132
|
},
|
|
2988
|
-
{
|
|
2989
|
-
"kind": "javascript-module",
|
|
2990
|
-
"path": "src/main/index.ts",
|
|
2991
|
-
"declarations": [],
|
|
2992
|
-
"exports": [
|
|
2993
|
-
{
|
|
2994
|
-
"kind": "js",
|
|
2995
|
-
"name": "*",
|
|
2996
|
-
"declaration": {
|
|
2997
|
-
"name": "*",
|
|
2998
|
-
"package": "./main.template"
|
|
2999
|
-
}
|
|
3000
|
-
},
|
|
3001
|
-
{
|
|
3002
|
-
"kind": "js",
|
|
3003
|
-
"name": "*",
|
|
3004
|
-
"declaration": {
|
|
3005
|
-
"name": "*",
|
|
3006
|
-
"package": "./main"
|
|
3007
|
-
}
|
|
3008
|
-
}
|
|
3009
|
-
]
|
|
3010
|
-
},
|
|
3011
|
-
{
|
|
3012
|
-
"kind": "javascript-module",
|
|
3013
|
-
"path": "src/main/main.styles.ts",
|
|
3014
|
-
"declarations": [
|
|
3015
|
-
{
|
|
3016
|
-
"kind": "variable",
|
|
3017
|
-
"name": "MainStyles",
|
|
3018
|
-
"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`"
|
|
3019
|
-
}
|
|
3020
|
-
],
|
|
3021
|
-
"exports": [
|
|
3022
|
-
{
|
|
3023
|
-
"kind": "js",
|
|
3024
|
-
"name": "MainStyles",
|
|
3025
|
-
"declaration": {
|
|
3026
|
-
"name": "MainStyles",
|
|
3027
|
-
"module": "src/main/main.styles.ts"
|
|
3028
|
-
}
|
|
3029
|
-
}
|
|
3030
|
-
]
|
|
3031
|
-
},
|
|
3032
|
-
{
|
|
3033
|
-
"kind": "javascript-module",
|
|
3034
|
-
"path": "src/main/main.template.ts",
|
|
3035
|
-
"declarations": [],
|
|
3036
|
-
"exports": []
|
|
3037
|
-
},
|
|
3038
|
-
{
|
|
3039
|
-
"kind": "javascript-module",
|
|
3040
|
-
"path": "src/main/main.ts",
|
|
3041
|
-
"declarations": [
|
|
3042
|
-
{
|
|
3043
|
-
"kind": "class",
|
|
3044
|
-
"description": "",
|
|
3045
|
-
"name": "MainApplication",
|
|
3046
|
-
"members": [
|
|
3047
|
-
{
|
|
3048
|
-
"kind": "field",
|
|
3049
|
-
"name": "config",
|
|
3050
|
-
"type": {
|
|
3051
|
-
"text": "MainRouterConfig"
|
|
3052
|
-
}
|
|
3053
|
-
},
|
|
3054
|
-
{
|
|
3055
|
-
"kind": "field",
|
|
3056
|
-
"name": "connect",
|
|
3057
|
-
"type": {
|
|
3058
|
-
"text": "Connect"
|
|
3059
|
-
}
|
|
3060
|
-
},
|
|
3061
|
-
{
|
|
3062
|
-
"kind": "field",
|
|
3063
|
-
"name": "session",
|
|
3064
|
-
"type": {
|
|
3065
|
-
"text": "Session"
|
|
3066
|
-
}
|
|
3067
|
-
},
|
|
3068
|
-
{
|
|
3069
|
-
"kind": "field",
|
|
3070
|
-
"name": "container",
|
|
3071
|
-
"type": {
|
|
3072
|
-
"text": "Container"
|
|
3073
|
-
}
|
|
3074
|
-
},
|
|
3075
|
-
{
|
|
3076
|
-
"kind": "field",
|
|
3077
|
-
"name": "provider",
|
|
3078
|
-
"type": {
|
|
3079
|
-
"text": "HTMLElement"
|
|
3080
|
-
}
|
|
3081
|
-
},
|
|
3082
|
-
{
|
|
3083
|
-
"kind": "field",
|
|
3084
|
-
"name": "ready",
|
|
3085
|
-
"type": {
|
|
3086
|
-
"text": "boolean"
|
|
3087
|
-
},
|
|
3088
|
-
"default": "false"
|
|
3089
|
-
},
|
|
3090
|
-
{
|
|
3091
|
-
"kind": "method",
|
|
3092
|
-
"name": "onLuminanceToggle"
|
|
3093
|
-
},
|
|
3094
|
-
{
|
|
3095
|
-
"kind": "method",
|
|
3096
|
-
"name": "loadRemotes"
|
|
3097
|
-
},
|
|
3098
|
-
{
|
|
3099
|
-
"kind": "method",
|
|
3100
|
-
"name": "selectTemplate"
|
|
3101
|
-
},
|
|
3102
|
-
{
|
|
3103
|
-
"kind": "method",
|
|
3104
|
-
"name": "registerDIDependencies",
|
|
3105
|
-
"privacy": "private"
|
|
3106
|
-
}
|
|
3107
|
-
],
|
|
3108
|
-
"superclass": {
|
|
3109
|
-
"name": "FASTElement",
|
|
3110
|
-
"package": "@microsoft/fast-element"
|
|
3111
|
-
},
|
|
3112
|
-
"customElement": true
|
|
3113
|
-
}
|
|
3114
|
-
],
|
|
3115
|
-
"exports": [
|
|
3116
|
-
{
|
|
3117
|
-
"kind": "js",
|
|
3118
|
-
"name": "MainApplication",
|
|
3119
|
-
"declaration": {
|
|
3120
|
-
"name": "MainApplication",
|
|
3121
|
-
"module": "src/main/main.ts"
|
|
3122
|
-
}
|
|
3123
|
-
},
|
|
3124
|
-
{
|
|
3125
|
-
"kind": "custom-element-definition",
|
|
3126
|
-
"declaration": {
|
|
3127
|
-
"name": "MainApplication",
|
|
3128
|
-
"module": "src/main/main.ts"
|
|
3129
|
-
}
|
|
3130
|
-
}
|
|
3131
|
-
]
|
|
3132
|
-
},
|
|
3133
3133
|
{
|
|
3134
3134
|
"kind": "javascript-module",
|
|
3135
3135
|
"path": "src/routes/config.ts",
|
|
@@ -3541,6 +3541,12 @@
|
|
|
3541
3541
|
"type": {
|
|
3542
3542
|
"text": "Metadata"
|
|
3543
3543
|
}
|
|
3544
|
+
},
|
|
3545
|
+
{
|
|
3546
|
+
"name": "changeCase",
|
|
3547
|
+
"type": {
|
|
3548
|
+
"text": "(input: string) => string"
|
|
3549
|
+
}
|
|
3544
3550
|
}
|
|
3545
3551
|
]
|
|
3546
3552
|
},
|
|
@@ -3553,6 +3559,12 @@
|
|
|
3553
3559
|
"type": {
|
|
3554
3560
|
"text": "Metadata"
|
|
3555
3561
|
}
|
|
3562
|
+
},
|
|
3563
|
+
{
|
|
3564
|
+
"name": "changeCase",
|
|
3565
|
+
"type": {
|
|
3566
|
+
"text": "(input: string) => string"
|
|
3567
|
+
}
|
|
3556
3568
|
}
|
|
3557
3569
|
]
|
|
3558
3570
|
}
|
|
@@ -88,11 +88,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
88
88
|
readonly scrollHeight: number;
|
|
89
89
|
scrollLeft: number;
|
|
90
90
|
scrollTop: number;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
* Array which holds the column definitions.
|
|
91
|
+
/**
|
|
92
|
+
* GridOptions to be passed down from application
|
|
94
93
|
* @public
|
|
95
94
|
*/
|
|
95
|
+
readonly scrollWidth: number;
|
|
96
|
+
readonly shadowRoot: ShadowRoot;
|
|
96
97
|
slot: string;
|
|
97
98
|
readonly tagName: string;
|
|
98
99
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
@@ -101,10 +102,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
101
102
|
closest<E extends Element = Element>(selectors: string): E;
|
|
102
103
|
getAttribute(qualifiedName: string): string;
|
|
103
104
|
getAttributeNS(namespace: string, localName: string): 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
|
-
*/
|
|
105
|
+
getAttributeNames(): string[];
|
|
108
106
|
getAttributeNode(qualifiedName: string): Attr;
|
|
109
107
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
110
108
|
getBoundingClientRect(): DOMRect;
|
|
@@ -151,6 +149,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
151
149
|
readonly lastChild: ChildNode;
|
|
152
150
|
readonly nextSibling: ChildNode;
|
|
153
151
|
readonly nodeName: string;
|
|
152
|
+
/**
|
|
153
|
+
* Determines the style of the buttons
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
154
156
|
readonly nodeType: number;
|
|
155
157
|
nodeValue: string;
|
|
156
158
|
readonly parentElement: HTMLElement;
|
|
@@ -198,10 +200,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
198
200
|
ariaColIndex: string;
|
|
199
201
|
ariaColIndexText: string;
|
|
200
202
|
ariaColSpan: string;
|
|
201
|
-
/**
|
|
202
|
-
* Set up the web component
|
|
203
|
-
* @internal
|
|
204
|
-
*/
|
|
205
203
|
ariaCurrent: string;
|
|
206
204
|
ariaDisabled: string;
|
|
207
205
|
ariaExpanded: string;
|
|
@@ -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,EAEjB,YAAY,EAEb,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EA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AAC,IAAI,EAAE,aAAa,GAAG,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY,EAAE;IA8C1F;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAkC/B;;OAEG;IACI,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,qBAAqB,CAAC;CASlE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ColDef } from '@ag-grid-community/core';
|
|
2
2
|
import { Metadata } from '@genesislcap/foundation-comms';
|
|
3
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>[];
|
|
4
|
+
export declare const getSearchBarColumnsConfig: (columns: ColDef[], meta: Metadata, changeCase: (input: string) => string) => AvailableOption<string>[];
|
|
5
|
+
export declare const getSearchBarMetaConfig: (meta: Metadata, changeCase: (input: string) => string) => AvailableOption<string>[];
|
|
6
6
|
//# sourceMappingURL=search-bar-utils.d.ts.map
|
|
@@ -1 +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,
|
|
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,YAC3B,MAAM,EAAE,QACX,QAAQ,sBACM,MAAM,KAAK,MAAM,8BAgBpC,CAAC;AAEJ,eAAO,MAAM,sBAAsB,SAAU,QAAQ,sBAAsB,MAAM,KAAK,MAAM,8BAczF,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { renderers } from '@genesislcap/foundation-forms';
|
|
|
4
4
|
import { showNotification, showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
5
5
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
6
6
|
import { attr, customElement, DOM, FASTElement, observable, volatile, } from '@microsoft/fast-element';
|
|
7
|
+
import * as changeCase from 'change-case';
|
|
7
8
|
import { CrudMenuPosition, ActionsMenuStyle, ModalFormType, CrudAction } from '../types';
|
|
8
9
|
import { getErrorFormat, logger } from '../utils';
|
|
9
10
|
import { getSearchBarColumnsConfig, getSearchBarMetaConfig } from '../utils/search-bar-utils';
|
|
@@ -255,11 +256,12 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
255
256
|
if (!meta) {
|
|
256
257
|
return;
|
|
257
258
|
}
|
|
259
|
+
const changeCaseByType = changeCase[this.headerCaseType];
|
|
258
260
|
if (this.columns) {
|
|
259
|
-
this.searchBarConfig = getSearchBarColumnsConfig(this.columns, meta);
|
|
261
|
+
this.searchBarConfig = getSearchBarColumnsConfig(this.columns, meta, changeCaseByType);
|
|
260
262
|
}
|
|
261
263
|
else {
|
|
262
|
-
this.searchBarConfig = getSearchBarMetaConfig(meta);
|
|
264
|
+
this.searchBarConfig = getSearchBarMetaConfig(meta, changeCaseByType);
|
|
263
265
|
}
|
|
264
266
|
});
|
|
265
267
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCriteriaBuilder, INPUT_MIN_LENGTH } from '@genesislcap/foundation-ui';
|
|
2
|
-
export const getSearchBarColumnsConfig = (columns, meta) => columns.map((column) => ({
|
|
2
|
+
export const getSearchBarColumnsConfig = (columns, meta, changeCase) => columns.map((column) => ({
|
|
3
3
|
field: column.field,
|
|
4
|
-
label: (searchTerm) => `${searchTerm} as ${column.headerName}`,
|
|
4
|
+
label: (searchTerm) => `${searchTerm} as ${column.headerName || (changeCase ? changeCase(column.field) : column.field)}`,
|
|
5
5
|
resourceType: meta.TYPE,
|
|
6
6
|
createCriteria: getCriteriaBuilder,
|
|
7
7
|
isEnabled: (searchTerm, selectedOption) => {
|
|
@@ -9,11 +9,11 @@ export const getSearchBarColumnsConfig = (columns, meta) => columns.map((column)
|
|
|
9
9
|
!selectedOption.some((e) => e.field === column.field));
|
|
10
10
|
},
|
|
11
11
|
}));
|
|
12
|
-
export const getSearchBarMetaConfig = (meta) => {
|
|
12
|
+
export const getSearchBarMetaConfig = (meta, changeCase) => {
|
|
13
13
|
var _a;
|
|
14
14
|
return ((_a = meta.FIELD) !== null && _a !== void 0 ? _a : meta.REPLY_FIELD).map((field) => ({
|
|
15
15
|
field: field.NAME,
|
|
16
|
-
label: (searchTerm) => `${searchTerm} as ${field.NAME}`,
|
|
16
|
+
label: (searchTerm) => `${searchTerm} as ${changeCase ? changeCase(field.NAME) : field.NAME}`,
|
|
17
17
|
resourceType: meta.TYPE,
|
|
18
18
|
createCriteria: getCriteriaBuilder,
|
|
19
19
|
isEnabled: (searchTerm, selectedOption) => {
|
|
@@ -505,11 +505,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
505
505
|
readonly scrollHeight: number;
|
|
506
506
|
scrollLeft: number;
|
|
507
507
|
scrollTop: number;
|
|
508
|
+
/**
|
|
509
|
+
* GridOptions to be passed down from application
|
|
510
|
+
* @public
|
|
511
|
+
*/
|
|
508
512
|
readonly scrollWidth: number;
|
|
509
|
-
readonly shadowRoot: ShadowRoot;
|
|
510
|
-
* Array which holds the column definitions.
|
|
511
|
-
* @public
|
|
512
|
-
*/
|
|
513
|
+
readonly shadowRoot: ShadowRoot;
|
|
513
514
|
slot: string;
|
|
514
515
|
readonly tagName: string;
|
|
515
516
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
@@ -518,10 +519,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
518
519
|
closest<E extends Element = Element>(selectors: string): E;
|
|
519
520
|
getAttribute(qualifiedName: string): string;
|
|
520
521
|
getAttributeNS(namespace: string, localName: string): 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
|
-
*/
|
|
522
|
+
getAttributeNames(): string[];
|
|
525
523
|
getAttributeNode(qualifiedName: string): Attr;
|
|
526
524
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
527
525
|
getBoundingClientRect(): DOMRect;
|
|
@@ -568,6 +566,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
568
566
|
readonly lastChild: ChildNode;
|
|
569
567
|
readonly nextSibling: ChildNode;
|
|
570
568
|
readonly nodeName: string;
|
|
569
|
+
/**
|
|
570
|
+
* Determines the style of the buttons
|
|
571
|
+
* @public
|
|
572
|
+
*/
|
|
571
573
|
readonly nodeType: number;
|
|
572
574
|
nodeValue: string;
|
|
573
575
|
readonly parentElement: HTMLElement;
|
|
@@ -615,10 +617,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
615
617
|
ariaColIndex: string;
|
|
616
618
|
ariaColIndexText: string;
|
|
617
619
|
ariaColSpan: string;
|
|
618
|
-
/**
|
|
619
|
-
* Set up the web component
|
|
620
|
-
* @internal
|
|
621
|
-
*/
|
|
622
620
|
ariaCurrent: string;
|
|
623
621
|
ariaDisabled: string;
|
|
624
622
|
ariaExpanded: string;
|
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.208.
|
|
4
|
+
"version": "14.208.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -52,33 +52,34 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@genesislcap/foundation-testing": "14.208.
|
|
56
|
-
"@genesislcap/genx": "14.208.
|
|
57
|
-
"@genesislcap/rollup-builder": "14.208.
|
|
58
|
-
"@genesislcap/ts-builder": "14.208.
|
|
59
|
-
"@genesislcap/uvu-playwright-builder": "14.208.
|
|
60
|
-
"@genesislcap/vite-builder": "14.208.
|
|
61
|
-
"@genesislcap/webpack-builder": "14.208.
|
|
55
|
+
"@genesislcap/foundation-testing": "14.208.2",
|
|
56
|
+
"@genesislcap/genx": "14.208.2",
|
|
57
|
+
"@genesislcap/rollup-builder": "14.208.2",
|
|
58
|
+
"@genesislcap/ts-builder": "14.208.2",
|
|
59
|
+
"@genesislcap/uvu-playwright-builder": "14.208.2",
|
|
60
|
+
"@genesislcap/vite-builder": "14.208.2",
|
|
61
|
+
"@genesislcap/webpack-builder": "14.208.2",
|
|
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.208.
|
|
67
|
-
"@genesislcap/foundation-errors": "14.208.
|
|
68
|
-
"@genesislcap/foundation-events": "14.208.
|
|
69
|
-
"@genesislcap/foundation-forms": "14.208.
|
|
70
|
-
"@genesislcap/foundation-logger": "14.208.
|
|
71
|
-
"@genesislcap/foundation-login": "14.208.
|
|
72
|
-
"@genesislcap/foundation-notifications": "14.208.
|
|
73
|
-
"@genesislcap/foundation-ui": "14.208.
|
|
74
|
-
"@genesislcap/foundation-utils": "14.208.
|
|
75
|
-
"@genesislcap/foundation-zero": "14.208.
|
|
76
|
-
"@genesislcap/foundation-zero-grid-pro": "14.208.
|
|
77
|
-
"@genesislcap/grid-pro": "14.208.
|
|
66
|
+
"@genesislcap/foundation-comms": "14.208.2",
|
|
67
|
+
"@genesislcap/foundation-errors": "14.208.2",
|
|
68
|
+
"@genesislcap/foundation-events": "14.208.2",
|
|
69
|
+
"@genesislcap/foundation-forms": "14.208.2",
|
|
70
|
+
"@genesislcap/foundation-logger": "14.208.2",
|
|
71
|
+
"@genesislcap/foundation-login": "14.208.2",
|
|
72
|
+
"@genesislcap/foundation-notifications": "14.208.2",
|
|
73
|
+
"@genesislcap/foundation-ui": "14.208.2",
|
|
74
|
+
"@genesislcap/foundation-utils": "14.208.2",
|
|
75
|
+
"@genesislcap/foundation-zero": "14.208.2",
|
|
76
|
+
"@genesislcap/foundation-zero-grid-pro": "14.208.2",
|
|
77
|
+
"@genesislcap/grid-pro": "14.208.2",
|
|
78
78
|
"@microsoft/fast-components": "^2.30.6",
|
|
79
79
|
"@microsoft/fast-element": "^1.12.0",
|
|
80
80
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
81
81
|
"@microsoft/fast-router": "^0.4.8",
|
|
82
|
+
"change-case": "^4.1.2",
|
|
82
83
|
"tslib": "^2.3.1"
|
|
83
84
|
},
|
|
84
85
|
"repository": {
|
|
@@ -90,5 +91,5 @@
|
|
|
90
91
|
"access": "public"
|
|
91
92
|
},
|
|
92
93
|
"customElements": "dist/custom-elements.json",
|
|
93
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "6e8bcdbd7a90cc39adef48f79ae5b073ff38c358"
|
|
94
95
|
}
|