@genesislcap/foundation-entity-management 14.162.5 → 14.163.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +512 -512
  2. package/package.json +21 -21
@@ -87,41 +87,6 @@
87
87
  }
88
88
  ]
89
89
  },
90
- {
91
- "kind": "javascript-module",
92
- "path": "src/components/components.ts",
93
- "declarations": [
94
- {
95
- "kind": "function",
96
- "name": "loadRemotes"
97
- }
98
- ],
99
- "exports": [
100
- {
101
- "kind": "js",
102
- "name": "loadRemotes",
103
- "declaration": {
104
- "name": "loadRemotes",
105
- "module": "src/components/components.ts"
106
- }
107
- }
108
- ]
109
- },
110
- {
111
- "kind": "javascript-module",
112
- "path": "src/components/index.ts",
113
- "declarations": [],
114
- "exports": [
115
- {
116
- "kind": "js",
117
- "name": "*",
118
- "declaration": {
119
- "name": "*",
120
- "package": "./components"
121
- }
122
- }
123
- ]
124
- },
125
90
  {
126
91
  "kind": "javascript-module",
127
92
  "path": "src/entities/entities.styles.ts",
@@ -838,6 +803,41 @@
838
803
  }
839
804
  ]
840
805
  },
806
+ {
807
+ "kind": "javascript-module",
808
+ "path": "src/components/components.ts",
809
+ "declarations": [
810
+ {
811
+ "kind": "function",
812
+ "name": "loadRemotes"
813
+ }
814
+ ],
815
+ "exports": [
816
+ {
817
+ "kind": "js",
818
+ "name": "loadRemotes",
819
+ "declaration": {
820
+ "name": "loadRemotes",
821
+ "module": "src/components/components.ts"
822
+ }
823
+ }
824
+ ]
825
+ },
826
+ {
827
+ "kind": "javascript-module",
828
+ "path": "src/components/index.ts",
829
+ "declarations": [],
830
+ "exports": [
831
+ {
832
+ "kind": "js",
833
+ "name": "*",
834
+ "declaration": {
835
+ "name": "*",
836
+ "package": "./components"
837
+ }
838
+ }
839
+ ]
840
+ },
841
841
  {
842
842
  "kind": "javascript-module",
843
843
  "path": "src/layouts/default.ts",
@@ -1462,395 +1462,215 @@
1462
1462
  },
1463
1463
  {
1464
1464
  "kind": "javascript-module",
1465
- "path": "src/routes/config.ts",
1466
- "declarations": [],
1467
- "exports": []
1468
- },
1469
- {
1470
- "kind": "javascript-module",
1471
- "path": "src/routes/index.ts",
1472
- "declarations": [],
1473
- "exports": [
1474
- {
1475
- "kind": "js",
1476
- "name": "*",
1477
- "declaration": {
1478
- "name": "*",
1479
- "package": "./config"
1480
- }
1481
- }
1482
- ]
1483
- },
1484
- {
1485
- "kind": "javascript-module",
1486
- "path": "src/users/users.template.ts",
1465
+ "path": "src/profiles/editProfileSchema.ts",
1487
1466
  "declarations": [
1488
1467
  {
1489
1468
  "kind": "variable",
1490
- "name": "UsersTemplate",
1469
+ "name": "editProfileFormSchema",
1491
1470
  "type": {
1492
- "text": "ViewTemplate"
1471
+ "text": "object"
1493
1472
  },
1494
- "default": "html<Users>`\n <entity-management\n resourceName=${(x) => x.resourceName}\n title=\"User Management\"\n :gridOptions=${(x) => x.gridOptions}\n createEvent=\"${(x) => x.createEvent}\"\n :readEventFn=${(x) => (user) => x.readUserData(user)}\n updateEvent=\"${(x) => x.updateEvent}\"\n deleteEvent=\"${(x) => x.deleteEvent}\"\n entityLabel=\"User Details\"\n enable-search-bar=\"${(x) => x.enableSearchBar}\"\n :updateFormUiSchema=${(x) =>\n editUserSchema(\n true,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalUpdateFields,\n )}\n :createFormUiSchema=${(x) =>\n editUserSchema(\n false,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalCreateFields,\n )}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit\n :columns=${(x) => [...x.columns, ...x.entityColumn(), x.statusColumn()]}\n :datasourceConfig=${(x) => x.datasourceConfig}\n ></entity-management>\n`"
1473
+ "default": "{\n type: 'VerticalLayout',\n elements: [\n {\n type: 'Control',\n label: 'Name',\n scope: '#/properties/NAME',\n },\n {\n type: 'Control',\n label: 'Description',\n scope: '#/properties/DESCRIPTION',\n },\n {\n type: 'Control',\n label: 'Status',\n scope: '#/properties/STATUS',\n },\n {\n type: 'Control',\n label: 'Rights',\n scope: '#/properties/RIGHT_CODES',\n options: {\n allOptionsResourceName: 'RIGHT',\n valueField: 'CODE',\n labelField: 'CODE',\n },\n },\n {\n type: 'Control',\n label: 'Users',\n scope: '#/properties/USER_NAMES',\n options: {\n allOptionsResourceName: 'USER',\n valueField: 'USER_NAME',\n labelField: 'USER_NAME',\n },\n },\n ],\n}"
1495
1474
  }
1496
1475
  ],
1497
1476
  "exports": [
1498
1477
  {
1499
1478
  "kind": "js",
1500
- "name": "UsersTemplate",
1479
+ "name": "editProfileFormSchema",
1501
1480
  "declaration": {
1502
- "name": "UsersTemplate",
1503
- "module": "src/users/users.template.ts"
1481
+ "name": "editProfileFormSchema",
1482
+ "module": "src/profiles/editProfileSchema.ts"
1504
1483
  }
1505
1484
  }
1506
1485
  ]
1507
1486
  },
1508
1487
  {
1509
1488
  "kind": "javascript-module",
1510
- "path": "src/users/users.ts",
1489
+ "path": "src/profiles/profiles.ts",
1511
1490
  "declarations": [
1512
- {
1513
- "kind": "variable",
1514
- "name": "UsersColumnConfig",
1515
- "type": {
1516
- "text": "array"
1517
- },
1518
- "default": "[\n {\n ...defaultColumnConfig,\n field: 'USER_NAME',\n headerName: 'Username',\n },\n {\n ...defaultColumnConfig,\n field: 'FIRST_NAME',\n headerName: 'First Name',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_NAME',\n headerName: 'Last Name',\n },\n {\n ...defaultColumnConfig,\n field: 'EMAIL_ADDRESS',\n headerName: 'Email',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_LOGIN',\n headerName: 'Last Login',\n valueFormatter: ({ value }) =>\n value\n ? new Intl.DateTimeFormat('default', {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n }).format(value)\n : '',\n },\n]",
1519
- "description": "Defines the default columns which are present on the user management component",
1520
- "privacy": "public"
1521
- },
1522
1491
  {
1523
1492
  "kind": "class",
1524
- "description": "Main class which defines the user management functionality",
1525
- "name": "Users",
1493
+ "description": "Main class which defined the profile management functionality",
1494
+ "name": "Profiles",
1526
1495
  "members": [
1496
+ {
1497
+ "kind": "method",
1498
+ "name": "readProfileData",
1499
+ "privacy": "public",
1500
+ "parameters": [
1501
+ {
1502
+ "name": "profile"
1503
+ }
1504
+ ]
1505
+ },
1506
+ {
1507
+ "kind": "method",
1508
+ "name": "confirmDelete",
1509
+ "inheritedFrom": {
1510
+ "name": "EntityManagement",
1511
+ "module": "src/entities/entities.ts"
1512
+ }
1513
+ },
1527
1514
  {
1528
1515
  "kind": "field",
1529
- "name": "persistColumnStateKey",
1516
+ "name": "createEvent",
1530
1517
  "type": {
1531
1518
  "text": "string"
1532
1519
  },
1533
- "default": "'entity_users_management'",
1534
- "description": "This attribute controls whether and how the user manager stores the state of the columns when the user edits them. Defaulted to `entity_users_management`.",
1535
- "privacy": "public"
1520
+ "description": "Name of the event handler on the Genesis server which handles creating an entity",
1521
+ "privacy": "public",
1522
+ "inheritedFrom": {
1523
+ "name": "EntityManagement",
1524
+ "module": "src/entities/entities.ts"
1525
+ }
1536
1526
  },
1537
1527
  {
1538
1528
  "kind": "field",
1539
- "name": "enableSearchBar",
1529
+ "name": "deleteEvent",
1540
1530
  "type": {
1541
- "text": "boolean"
1531
+ "text": "string"
1542
1532
  },
1543
- "default": "false",
1544
- "description": "This attribute controls whether to enable the search-bar.",
1545
- "privacy": "public"
1533
+ "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1534
+ "privacy": "public",
1535
+ "inheritedFrom": {
1536
+ "name": "EntityManagement",
1537
+ "module": "src/entities/entities.ts"
1538
+ }
1546
1539
  },
1547
1540
  {
1548
1541
  "kind": "field",
1549
- "name": "gridOptions",
1542
+ "name": "updateEvent",
1550
1543
  "type": {
1551
- "text": "GridOptions"
1544
+ "text": "string"
1552
1545
  },
1553
- "description": "GridOptions to be passed down from application",
1554
- "privacy": "public"
1546
+ "description": "Name of the event handler on the Genesis server which handles updating the entity",
1547
+ "privacy": "public",
1548
+ "inheritedFrom": {
1549
+ "name": "EntityManagement",
1550
+ "module": "src/entities/entities.ts"
1551
+ }
1555
1552
  },
1556
1553
  {
1557
1554
  "kind": "field",
1558
- "name": "columns",
1555
+ "name": "persistColumnStateKey",
1559
1556
  "type": {
1560
- "text": "any"
1557
+ "text": "string"
1561
1558
  },
1562
- "default": "[\n {\n ...defaultColumnConfig,\n field: 'USER_NAME',\n headerName: 'Username',\n },\n {\n ...defaultColumnConfig,\n field: 'FIRST_NAME',\n headerName: 'First Name',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_NAME',\n headerName: 'Last Name',\n },\n {\n ...defaultColumnConfig,\n field: 'EMAIL_ADDRESS',\n headerName: 'Email',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_LOGIN',\n headerName: 'Last Login',\n valueFormatter: ({ value }) =>\n value\n ? new Intl.DateTimeFormat('default', {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n }).format(value)\n : '',\n },\n]",
1563
- "description": "Column definition, default to the UsersColumnConfig"
1559
+ "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
1560
+ "privacy": "public",
1561
+ "default": "'entity_profiles_management'",
1562
+ "inheritedFrom": {
1563
+ "name": "EntityManagement",
1564
+ "module": "src/entities/entities.ts"
1565
+ }
1564
1566
  },
1565
1567
  {
1566
1568
  "kind": "field",
1567
- "name": "additionalCreateFields",
1569
+ "name": "updateFormUiSchema",
1568
1570
  "type": {
1569
1571
  "text": "any"
1570
1572
  },
1571
- "default": "[]"
1573
+ "default": "editProfileFormSchema",
1574
+ "inheritedFrom": {
1575
+ "name": "EntityManagement",
1576
+ "module": "src/entities/entities.ts"
1577
+ }
1572
1578
  },
1573
1579
  {
1574
1580
  "kind": "field",
1575
- "name": "additionalUpdateFields",
1581
+ "name": "createFormUiSchema",
1576
1582
  "type": {
1577
1583
  "text": "any"
1578
1584
  },
1579
- "default": "[]"
1585
+ "default": "editProfileFormSchema",
1586
+ "inheritedFrom": {
1587
+ "name": "EntityManagement",
1588
+ "module": "src/entities/entities.ts"
1589
+ }
1580
1590
  },
1581
1591
  {
1582
1592
  "kind": "field",
1583
- "name": "allAccessType",
1593
+ "name": "readEventFn",
1584
1594
  "type": {
1585
- "text": "boolean"
1595
+ "text": "(...args) => {}"
1596
+ },
1597
+ "inheritedFrom": {
1598
+ "name": "EntityManagement",
1599
+ "module": "src/entities/entities.ts"
1586
1600
  }
1587
1601
  },
1588
1602
  {
1589
1603
  "kind": "field",
1590
- "name": "entityIdValue",
1604
+ "name": "resourceName",
1591
1605
  "type": {
1592
1606
  "text": "string"
1593
1607
  },
1594
- "privacy": "private"
1608
+ "description": "Name of the backend resource which contain the entities to manage",
1609
+ "privacy": "public",
1610
+ "default": "'ALL_PROFILES'",
1611
+ "inheritedFrom": {
1612
+ "name": "EntityManagement",
1613
+ "module": "src/entities/entities.ts"
1614
+ }
1595
1615
  },
1596
1616
  {
1597
1617
  "kind": "field",
1598
- "name": "createEvent",
1618
+ "name": "title",
1599
1619
  "type": {
1600
1620
  "text": "string"
1601
1621
  },
1602
- "description": "String which contains event if we have permission to insert user of empty string if not"
1622
+ "description": "Title of the grid",
1623
+ "privacy": "public",
1624
+ "default": "'Profile Management'",
1625
+ "inheritedFrom": {
1626
+ "name": "EntityManagement",
1627
+ "module": "src/entities/entities.ts"
1628
+ }
1603
1629
  },
1604
1630
  {
1605
1631
  "kind": "field",
1606
- "name": "deleteEvent",
1632
+ "name": "entityLabel",
1607
1633
  "type": {
1608
1634
  "text": "string"
1609
1635
  },
1610
- "description": "String which contains event if we have permission to delete user of empty string if not"
1636
+ "default": "'Profile'",
1637
+ "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1638
+ "privacy": "public",
1639
+ "inheritedFrom": {
1640
+ "name": "EntityManagement",
1641
+ "module": "src/entities/entities.ts"
1642
+ }
1611
1643
  },
1612
1644
  {
1613
1645
  "kind": "field",
1614
- "name": "updateEvent",
1646
+ "name": "connect",
1615
1647
  "type": {
1616
- "text": "string"
1648
+ "text": "Connect"
1617
1649
  },
1618
- "description": "String which contains event if we have permission to update user of empty string if not"
1650
+ "privacy": "protected",
1651
+ "description": "DI connect object which is used to interact with the backend.",
1652
+ "inheritedFrom": {
1653
+ "name": "EntityManagement",
1654
+ "module": "src/entities/entities.ts"
1655
+ }
1619
1656
  },
1620
1657
  {
1621
- "kind": "method",
1622
- "name": "deepClone",
1623
- "return": {
1624
- "type": {
1625
- "text": "Node"
1626
- }
1627
- }
1628
- }
1629
- ],
1630
- "attributes": [
1631
- {
1632
- "name": "persist-column-state-key",
1658
+ "kind": "field",
1659
+ "name": "readEvent",
1633
1660
  "type": {
1634
1661
  "text": "string"
1635
1662
  },
1636
- "default": "'entity_users_management'",
1637
- "description": "This attribute controls whether and how the user manager stores the state of the columns when the user edits them. Defaulted to `entity_users_management`.",
1638
- "fieldName": "persistColumnStateKey"
1663
+ "inheritedFrom": {
1664
+ "name": "EntityManagement",
1665
+ "module": "src/entities/entities.ts"
1666
+ }
1639
1667
  },
1640
1668
  {
1641
- "name": "enable-search-bar",
1669
+ "kind": "field",
1670
+ "name": "readonly",
1642
1671
  "type": {
1643
1672
  "text": "boolean"
1644
1673
  },
1645
- "default": "false",
1646
- "description": "This attribute controls whether to enable the search-bar.",
1647
- "fieldName": "enableSearchBar"
1648
- }
1649
- ],
1650
- "mixins": [
1651
- {
1652
- "name": "LifecycleMixin",
1653
- "package": "@genesislcap/foundation-utils"
1654
- }
1655
- ],
1656
- "superclass": {
1657
- "name": "FASTElement",
1658
- "package": "@microsoft/fast-element"
1659
- },
1660
- "deprecated": "- Use '\\@genesislcap/pbc-auth' instead. 'https://www.npmjs.com/package/\\@genesislcap/pbc-auth'",
1661
- "tagName": "user-management",
1662
- "customElement": true
1663
- }
1664
- ],
1665
- "exports": [
1666
- {
1667
- "kind": "js",
1668
- "name": "UsersColumnConfig",
1669
- "declaration": {
1670
- "name": "UsersColumnConfig",
1671
- "module": "src/users/users.ts"
1672
- }
1673
- },
1674
- {
1675
- "kind": "js",
1676
- "name": "Users",
1677
- "declaration": {
1678
- "name": "Users",
1679
- "module": "src/users/users.ts"
1680
- }
1681
- },
1682
- {
1683
- "kind": "custom-element-definition",
1684
- "name": "user-management",
1685
- "declaration": {
1686
- "name": "Users",
1687
- "module": "src/users/users.ts"
1688
- }
1689
- }
1690
- ]
1691
- },
1692
- {
1693
- "kind": "javascript-module",
1694
- "path": "src/utils/formatting.ts",
1695
- "declarations": [
1696
- {
1697
- "kind": "function",
1698
- "name": "getErrorFormat",
1699
- "parameters": [
1700
- {
1701
- "name": "err"
1702
- }
1703
- ],
1704
- "description": "Format the error as a string with a different format depending on whether\n`err` has a `FIELD` property or not",
1705
- "privacy": "public"
1706
- }
1707
- ],
1708
- "exports": [
1709
- {
1710
- "kind": "js",
1711
- "name": "getErrorFormat",
1712
- "declaration": {
1713
- "name": "getErrorFormat",
1714
- "module": "src/utils/formatting.ts"
1715
- }
1716
- }
1717
- ]
1718
- },
1719
- {
1720
- "kind": "javascript-module",
1721
- "path": "src/utils/index.ts",
1722
- "declarations": [],
1723
- "exports": [
1724
- {
1725
- "kind": "js",
1726
- "name": "*",
1727
- "declaration": {
1728
- "name": "*",
1729
- "package": "./formatting"
1730
- }
1731
- },
1732
- {
1733
- "kind": "js",
1734
- "name": "*",
1735
- "declaration": {
1736
- "name": "*",
1737
- "package": "./logger"
1738
- }
1739
- },
1740
- {
1741
- "kind": "js",
1742
- "name": "*",
1743
- "declaration": {
1744
- "name": "*",
1745
- "package": "./renderer"
1746
- }
1747
- }
1748
- ]
1749
- },
1750
- {
1751
- "kind": "javascript-module",
1752
- "path": "src/utils/logger.ts",
1753
- "declarations": [
1754
- {
1755
- "kind": "variable",
1756
- "name": "logger",
1757
- "privacy": "public"
1758
- }
1759
- ],
1760
- "exports": [
1761
- {
1762
- "kind": "js",
1763
- "name": "logger",
1764
- "declaration": {
1765
- "name": "logger",
1766
- "module": "src/utils/logger.ts"
1767
- }
1768
- }
1769
- ]
1770
- },
1771
- {
1772
- "kind": "javascript-module",
1773
- "path": "src/utils/renderer.ts",
1774
- "declarations": [
1775
- {
1776
- "kind": "function",
1777
- "name": "buttonCellRenderer",
1778
- "return": {
1779
- "type": {
1780
- "text": "ColDef"
1781
- }
1782
- },
1783
- "parameters": [
1784
- {
1785
- "name": "title"
1786
- },
1787
- {
1788
- "name": "clickHandler"
1789
- },
1790
- {
1791
- "name": "contentTemplate"
1792
- }
1793
- ],
1794
- "privacy": "public"
1795
- }
1796
- ],
1797
- "exports": [
1798
- {
1799
- "kind": "js",
1800
- "name": "buttonCellRenderer",
1801
- "declaration": {
1802
- "name": "buttonCellRenderer",
1803
- "module": "src/utils/renderer.ts"
1804
- }
1805
- }
1806
- ]
1807
- },
1808
- {
1809
- "kind": "javascript-module",
1810
- "path": "src/profiles/editProfileSchema.ts",
1811
- "declarations": [
1812
- {
1813
- "kind": "variable",
1814
- "name": "editProfileFormSchema",
1815
- "type": {
1816
- "text": "object"
1817
- },
1818
- "default": "{\n type: 'VerticalLayout',\n elements: [\n {\n type: 'Control',\n label: 'Name',\n scope: '#/properties/NAME',\n },\n {\n type: 'Control',\n label: 'Description',\n scope: '#/properties/DESCRIPTION',\n },\n {\n type: 'Control',\n label: 'Status',\n scope: '#/properties/STATUS',\n },\n {\n type: 'Control',\n label: 'Rights',\n scope: '#/properties/RIGHT_CODES',\n options: {\n allOptionsResourceName: 'RIGHT',\n valueField: 'CODE',\n labelField: 'CODE',\n },\n },\n {\n type: 'Control',\n label: 'Users',\n scope: '#/properties/USER_NAMES',\n options: {\n allOptionsResourceName: 'USER',\n valueField: 'USER_NAME',\n labelField: 'USER_NAME',\n },\n },\n ],\n}"
1819
- }
1820
- ],
1821
- "exports": [
1822
- {
1823
- "kind": "js",
1824
- "name": "editProfileFormSchema",
1825
- "declaration": {
1826
- "name": "editProfileFormSchema",
1827
- "module": "src/profiles/editProfileSchema.ts"
1828
- }
1829
- }
1830
- ]
1831
- },
1832
- {
1833
- "kind": "javascript-module",
1834
- "path": "src/profiles/profiles.ts",
1835
- "declarations": [
1836
- {
1837
- "kind": "class",
1838
- "description": "Main class which defined the profile management functionality",
1839
- "name": "Profiles",
1840
- "members": [
1841
- {
1842
- "kind": "method",
1843
- "name": "readProfileData",
1844
- "privacy": "public",
1845
- "parameters": [
1846
- {
1847
- "name": "profile"
1848
- }
1849
- ]
1850
- },
1851
- {
1852
- "kind": "method",
1853
- "name": "confirmDelete",
1854
1674
  "inheritedFrom": {
1855
1675
  "name": "EntityManagement",
1856
1676
  "module": "src/entities/entities.ts"
@@ -1858,11 +1678,12 @@
1858
1678
  },
1859
1679
  {
1860
1680
  "kind": "field",
1861
- "name": "createEvent",
1681
+ "name": "asyncAdd",
1862
1682
  "type": {
1863
- "text": "string"
1683
+ "text": "boolean"
1864
1684
  },
1865
- "description": "Name of the event handler on the Genesis server which handles creating an entity",
1685
+ "default": "false",
1686
+ "description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
1866
1687
  "privacy": "public",
1867
1688
  "inheritedFrom": {
1868
1689
  "name": "EntityManagement",
@@ -1871,11 +1692,12 @@
1871
1692
  },
1872
1693
  {
1873
1694
  "kind": "field",
1874
- "name": "deleteEvent",
1695
+ "name": "asyncRemove",
1875
1696
  "type": {
1876
- "text": "string"
1697
+ "text": "boolean"
1877
1698
  },
1878
- "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1699
+ "default": "false",
1700
+ "description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
1879
1701
  "privacy": "public",
1880
1702
  "inheritedFrom": {
1881
1703
  "name": "EntityManagement",
@@ -1884,11 +1706,12 @@
1884
1706
  },
1885
1707
  {
1886
1708
  "kind": "field",
1887
- "name": "updateEvent",
1709
+ "name": "asyncUpdate",
1888
1710
  "type": {
1889
- "text": "string"
1711
+ "text": "boolean"
1890
1712
  },
1891
- "description": "Name of the event handler on the Genesis server which handles updating the entity",
1713
+ "default": "true",
1714
+ "description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
1892
1715
  "privacy": "public",
1893
1716
  "inheritedFrom": {
1894
1717
  "name": "EntityManagement",
@@ -1897,177 +1720,9 @@
1897
1720
  },
1898
1721
  {
1899
1722
  "kind": "field",
1900
- "name": "persistColumnStateKey",
1723
+ "name": "enableCellFlashing",
1901
1724
  "type": {
1902
- "text": "string"
1903
- },
1904
- "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
1905
- "privacy": "public",
1906
- "default": "'entity_profiles_management'",
1907
- "inheritedFrom": {
1908
- "name": "EntityManagement",
1909
- "module": "src/entities/entities.ts"
1910
- }
1911
- },
1912
- {
1913
- "kind": "field",
1914
- "name": "updateFormUiSchema",
1915
- "type": {
1916
- "text": "any"
1917
- },
1918
- "default": "editProfileFormSchema",
1919
- "inheritedFrom": {
1920
- "name": "EntityManagement",
1921
- "module": "src/entities/entities.ts"
1922
- }
1923
- },
1924
- {
1925
- "kind": "field",
1926
- "name": "createFormUiSchema",
1927
- "type": {
1928
- "text": "any"
1929
- },
1930
- "default": "editProfileFormSchema",
1931
- "inheritedFrom": {
1932
- "name": "EntityManagement",
1933
- "module": "src/entities/entities.ts"
1934
- }
1935
- },
1936
- {
1937
- "kind": "field",
1938
- "name": "readEventFn",
1939
- "type": {
1940
- "text": "(...args) => {}"
1941
- },
1942
- "inheritedFrom": {
1943
- "name": "EntityManagement",
1944
- "module": "src/entities/entities.ts"
1945
- }
1946
- },
1947
- {
1948
- "kind": "field",
1949
- "name": "resourceName",
1950
- "type": {
1951
- "text": "string"
1952
- },
1953
- "description": "Name of the backend resource which contain the entities to manage",
1954
- "privacy": "public",
1955
- "default": "'ALL_PROFILES'",
1956
- "inheritedFrom": {
1957
- "name": "EntityManagement",
1958
- "module": "src/entities/entities.ts"
1959
- }
1960
- },
1961
- {
1962
- "kind": "field",
1963
- "name": "title",
1964
- "type": {
1965
- "text": "string"
1966
- },
1967
- "description": "Title of the grid",
1968
- "privacy": "public",
1969
- "default": "'Profile Management'",
1970
- "inheritedFrom": {
1971
- "name": "EntityManagement",
1972
- "module": "src/entities/entities.ts"
1973
- }
1974
- },
1975
- {
1976
- "kind": "field",
1977
- "name": "entityLabel",
1978
- "type": {
1979
- "text": "string"
1980
- },
1981
- "default": "'Profile'",
1982
- "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1983
- "privacy": "public",
1984
- "inheritedFrom": {
1985
- "name": "EntityManagement",
1986
- "module": "src/entities/entities.ts"
1987
- }
1988
- },
1989
- {
1990
- "kind": "field",
1991
- "name": "connect",
1992
- "type": {
1993
- "text": "Connect"
1994
- },
1995
- "privacy": "protected",
1996
- "description": "DI connect object which is used to interact with the backend.",
1997
- "inheritedFrom": {
1998
- "name": "EntityManagement",
1999
- "module": "src/entities/entities.ts"
2000
- }
2001
- },
2002
- {
2003
- "kind": "field",
2004
- "name": "readEvent",
2005
- "type": {
2006
- "text": "string"
2007
- },
2008
- "inheritedFrom": {
2009
- "name": "EntityManagement",
2010
- "module": "src/entities/entities.ts"
2011
- }
2012
- },
2013
- {
2014
- "kind": "field",
2015
- "name": "readonly",
2016
- "type": {
2017
- "text": "boolean"
2018
- },
2019
- "inheritedFrom": {
2020
- "name": "EntityManagement",
2021
- "module": "src/entities/entities.ts"
2022
- }
2023
- },
2024
- {
2025
- "kind": "field",
2026
- "name": "asyncAdd",
2027
- "type": {
2028
- "text": "boolean"
2029
- },
2030
- "default": "false",
2031
- "description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
2032
- "privacy": "public",
2033
- "inheritedFrom": {
2034
- "name": "EntityManagement",
2035
- "module": "src/entities/entities.ts"
2036
- }
2037
- },
2038
- {
2039
- "kind": "field",
2040
- "name": "asyncRemove",
2041
- "type": {
2042
- "text": "boolean"
2043
- },
2044
- "default": "false",
2045
- "description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
2046
- "privacy": "public",
2047
- "inheritedFrom": {
2048
- "name": "EntityManagement",
2049
- "module": "src/entities/entities.ts"
2050
- }
2051
- },
2052
- {
2053
- "kind": "field",
2054
- "name": "asyncUpdate",
2055
- "type": {
2056
- "text": "boolean"
2057
- },
2058
- "default": "true",
2059
- "description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
2060
- "privacy": "public",
2061
- "inheritedFrom": {
2062
- "name": "EntityManagement",
2063
- "module": "src/entities/entities.ts"
2064
- }
2065
- },
2066
- {
2067
- "kind": "field",
2068
- "name": "enableCellFlashing",
2069
- "type": {
2070
- "text": "boolean"
1725
+ "text": "boolean"
2071
1726
  },
2072
1727
  "default": "false",
2073
1728
  "description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef",
@@ -2759,6 +2414,351 @@
2759
2414
  }
2760
2415
  ]
2761
2416
  },
2417
+ {
2418
+ "kind": "javascript-module",
2419
+ "path": "src/routes/config.ts",
2420
+ "declarations": [],
2421
+ "exports": []
2422
+ },
2423
+ {
2424
+ "kind": "javascript-module",
2425
+ "path": "src/routes/index.ts",
2426
+ "declarations": [],
2427
+ "exports": [
2428
+ {
2429
+ "kind": "js",
2430
+ "name": "*",
2431
+ "declaration": {
2432
+ "name": "*",
2433
+ "package": "./config"
2434
+ }
2435
+ }
2436
+ ]
2437
+ },
2438
+ {
2439
+ "kind": "javascript-module",
2440
+ "path": "src/users/users.template.ts",
2441
+ "declarations": [
2442
+ {
2443
+ "kind": "variable",
2444
+ "name": "UsersTemplate",
2445
+ "type": {
2446
+ "text": "ViewTemplate"
2447
+ },
2448
+ "default": "html<Users>`\n <entity-management\n resourceName=${(x) => x.resourceName}\n title=\"User Management\"\n :gridOptions=${(x) => x.gridOptions}\n createEvent=\"${(x) => x.createEvent}\"\n :readEventFn=${(x) => (user) => x.readUserData(user)}\n updateEvent=\"${(x) => x.updateEvent}\"\n deleteEvent=\"${(x) => x.deleteEvent}\"\n entityLabel=\"User Details\"\n enable-search-bar=\"${(x) => x.enableSearchBar}\"\n :updateFormUiSchema=${(x) =>\n editUserSchema(\n true,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalUpdateFields,\n )}\n :createFormUiSchema=${(x) =>\n editUserSchema(\n false,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalCreateFields,\n )}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit\n :columns=${(x) => [...x.columns, ...x.entityColumn(), x.statusColumn()]}\n :datasourceConfig=${(x) => x.datasourceConfig}\n ></entity-management>\n`"
2449
+ }
2450
+ ],
2451
+ "exports": [
2452
+ {
2453
+ "kind": "js",
2454
+ "name": "UsersTemplate",
2455
+ "declaration": {
2456
+ "name": "UsersTemplate",
2457
+ "module": "src/users/users.template.ts"
2458
+ }
2459
+ }
2460
+ ]
2461
+ },
2462
+ {
2463
+ "kind": "javascript-module",
2464
+ "path": "src/users/users.ts",
2465
+ "declarations": [
2466
+ {
2467
+ "kind": "variable",
2468
+ "name": "UsersColumnConfig",
2469
+ "type": {
2470
+ "text": "array"
2471
+ },
2472
+ "default": "[\n {\n ...defaultColumnConfig,\n field: 'USER_NAME',\n headerName: 'Username',\n },\n {\n ...defaultColumnConfig,\n field: 'FIRST_NAME',\n headerName: 'First Name',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_NAME',\n headerName: 'Last Name',\n },\n {\n ...defaultColumnConfig,\n field: 'EMAIL_ADDRESS',\n headerName: 'Email',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_LOGIN',\n headerName: 'Last Login',\n valueFormatter: ({ value }) =>\n value\n ? new Intl.DateTimeFormat('default', {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n }).format(value)\n : '',\n },\n]",
2473
+ "description": "Defines the default columns which are present on the user management component",
2474
+ "privacy": "public"
2475
+ },
2476
+ {
2477
+ "kind": "class",
2478
+ "description": "Main class which defines the user management functionality",
2479
+ "name": "Users",
2480
+ "members": [
2481
+ {
2482
+ "kind": "field",
2483
+ "name": "persistColumnStateKey",
2484
+ "type": {
2485
+ "text": "string"
2486
+ },
2487
+ "default": "'entity_users_management'",
2488
+ "description": "This attribute controls whether and how the user manager stores the state of the columns when the user edits them. Defaulted to `entity_users_management`.",
2489
+ "privacy": "public"
2490
+ },
2491
+ {
2492
+ "kind": "field",
2493
+ "name": "enableSearchBar",
2494
+ "type": {
2495
+ "text": "boolean"
2496
+ },
2497
+ "default": "false",
2498
+ "description": "This attribute controls whether to enable the search-bar.",
2499
+ "privacy": "public"
2500
+ },
2501
+ {
2502
+ "kind": "field",
2503
+ "name": "gridOptions",
2504
+ "type": {
2505
+ "text": "GridOptions"
2506
+ },
2507
+ "description": "GridOptions to be passed down from application",
2508
+ "privacy": "public"
2509
+ },
2510
+ {
2511
+ "kind": "field",
2512
+ "name": "columns",
2513
+ "type": {
2514
+ "text": "any"
2515
+ },
2516
+ "default": "[\n {\n ...defaultColumnConfig,\n field: 'USER_NAME',\n headerName: 'Username',\n },\n {\n ...defaultColumnConfig,\n field: 'FIRST_NAME',\n headerName: 'First Name',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_NAME',\n headerName: 'Last Name',\n },\n {\n ...defaultColumnConfig,\n field: 'EMAIL_ADDRESS',\n headerName: 'Email',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_LOGIN',\n headerName: 'Last Login',\n valueFormatter: ({ value }) =>\n value\n ? new Intl.DateTimeFormat('default', {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n }).format(value)\n : '',\n },\n]",
2517
+ "description": "Column definition, default to the UsersColumnConfig"
2518
+ },
2519
+ {
2520
+ "kind": "field",
2521
+ "name": "additionalCreateFields",
2522
+ "type": {
2523
+ "text": "any"
2524
+ },
2525
+ "default": "[]"
2526
+ },
2527
+ {
2528
+ "kind": "field",
2529
+ "name": "additionalUpdateFields",
2530
+ "type": {
2531
+ "text": "any"
2532
+ },
2533
+ "default": "[]"
2534
+ },
2535
+ {
2536
+ "kind": "field",
2537
+ "name": "allAccessType",
2538
+ "type": {
2539
+ "text": "boolean"
2540
+ }
2541
+ },
2542
+ {
2543
+ "kind": "field",
2544
+ "name": "entityIdValue",
2545
+ "type": {
2546
+ "text": "string"
2547
+ },
2548
+ "privacy": "private"
2549
+ },
2550
+ {
2551
+ "kind": "field",
2552
+ "name": "createEvent",
2553
+ "type": {
2554
+ "text": "string"
2555
+ },
2556
+ "description": "String which contains event if we have permission to insert user of empty string if not"
2557
+ },
2558
+ {
2559
+ "kind": "field",
2560
+ "name": "deleteEvent",
2561
+ "type": {
2562
+ "text": "string"
2563
+ },
2564
+ "description": "String which contains event if we have permission to delete user of empty string if not"
2565
+ },
2566
+ {
2567
+ "kind": "field",
2568
+ "name": "updateEvent",
2569
+ "type": {
2570
+ "text": "string"
2571
+ },
2572
+ "description": "String which contains event if we have permission to update user of empty string if not"
2573
+ },
2574
+ {
2575
+ "kind": "method",
2576
+ "name": "deepClone",
2577
+ "return": {
2578
+ "type": {
2579
+ "text": "Node"
2580
+ }
2581
+ }
2582
+ }
2583
+ ],
2584
+ "attributes": [
2585
+ {
2586
+ "name": "persist-column-state-key",
2587
+ "type": {
2588
+ "text": "string"
2589
+ },
2590
+ "default": "'entity_users_management'",
2591
+ "description": "This attribute controls whether and how the user manager stores the state of the columns when the user edits them. Defaulted to `entity_users_management`.",
2592
+ "fieldName": "persistColumnStateKey"
2593
+ },
2594
+ {
2595
+ "name": "enable-search-bar",
2596
+ "type": {
2597
+ "text": "boolean"
2598
+ },
2599
+ "default": "false",
2600
+ "description": "This attribute controls whether to enable the search-bar.",
2601
+ "fieldName": "enableSearchBar"
2602
+ }
2603
+ ],
2604
+ "mixins": [
2605
+ {
2606
+ "name": "LifecycleMixin",
2607
+ "package": "@genesislcap/foundation-utils"
2608
+ }
2609
+ ],
2610
+ "superclass": {
2611
+ "name": "FASTElement",
2612
+ "package": "@microsoft/fast-element"
2613
+ },
2614
+ "deprecated": "- Use '\\@genesislcap/pbc-auth' instead. 'https://www.npmjs.com/package/\\@genesislcap/pbc-auth'",
2615
+ "tagName": "user-management",
2616
+ "customElement": true
2617
+ }
2618
+ ],
2619
+ "exports": [
2620
+ {
2621
+ "kind": "js",
2622
+ "name": "UsersColumnConfig",
2623
+ "declaration": {
2624
+ "name": "UsersColumnConfig",
2625
+ "module": "src/users/users.ts"
2626
+ }
2627
+ },
2628
+ {
2629
+ "kind": "js",
2630
+ "name": "Users",
2631
+ "declaration": {
2632
+ "name": "Users",
2633
+ "module": "src/users/users.ts"
2634
+ }
2635
+ },
2636
+ {
2637
+ "kind": "custom-element-definition",
2638
+ "name": "user-management",
2639
+ "declaration": {
2640
+ "name": "Users",
2641
+ "module": "src/users/users.ts"
2642
+ }
2643
+ }
2644
+ ]
2645
+ },
2646
+ {
2647
+ "kind": "javascript-module",
2648
+ "path": "src/utils/formatting.ts",
2649
+ "declarations": [
2650
+ {
2651
+ "kind": "function",
2652
+ "name": "getErrorFormat",
2653
+ "parameters": [
2654
+ {
2655
+ "name": "err"
2656
+ }
2657
+ ],
2658
+ "description": "Format the error as a string with a different format depending on whether\n`err` has a `FIELD` property or not",
2659
+ "privacy": "public"
2660
+ }
2661
+ ],
2662
+ "exports": [
2663
+ {
2664
+ "kind": "js",
2665
+ "name": "getErrorFormat",
2666
+ "declaration": {
2667
+ "name": "getErrorFormat",
2668
+ "module": "src/utils/formatting.ts"
2669
+ }
2670
+ }
2671
+ ]
2672
+ },
2673
+ {
2674
+ "kind": "javascript-module",
2675
+ "path": "src/utils/index.ts",
2676
+ "declarations": [],
2677
+ "exports": [
2678
+ {
2679
+ "kind": "js",
2680
+ "name": "*",
2681
+ "declaration": {
2682
+ "name": "*",
2683
+ "package": "./formatting"
2684
+ }
2685
+ },
2686
+ {
2687
+ "kind": "js",
2688
+ "name": "*",
2689
+ "declaration": {
2690
+ "name": "*",
2691
+ "package": "./logger"
2692
+ }
2693
+ },
2694
+ {
2695
+ "kind": "js",
2696
+ "name": "*",
2697
+ "declaration": {
2698
+ "name": "*",
2699
+ "package": "./renderer"
2700
+ }
2701
+ }
2702
+ ]
2703
+ },
2704
+ {
2705
+ "kind": "javascript-module",
2706
+ "path": "src/utils/logger.ts",
2707
+ "declarations": [
2708
+ {
2709
+ "kind": "variable",
2710
+ "name": "logger",
2711
+ "privacy": "public"
2712
+ }
2713
+ ],
2714
+ "exports": [
2715
+ {
2716
+ "kind": "js",
2717
+ "name": "logger",
2718
+ "declaration": {
2719
+ "name": "logger",
2720
+ "module": "src/utils/logger.ts"
2721
+ }
2722
+ }
2723
+ ]
2724
+ },
2725
+ {
2726
+ "kind": "javascript-module",
2727
+ "path": "src/utils/renderer.ts",
2728
+ "declarations": [
2729
+ {
2730
+ "kind": "function",
2731
+ "name": "buttonCellRenderer",
2732
+ "return": {
2733
+ "type": {
2734
+ "text": "ColDef"
2735
+ }
2736
+ },
2737
+ "parameters": [
2738
+ {
2739
+ "name": "title"
2740
+ },
2741
+ {
2742
+ "name": "clickHandler"
2743
+ },
2744
+ {
2745
+ "name": "contentTemplate"
2746
+ }
2747
+ ],
2748
+ "privacy": "public"
2749
+ }
2750
+ ],
2751
+ "exports": [
2752
+ {
2753
+ "kind": "js",
2754
+ "name": "buttonCellRenderer",
2755
+ "declaration": {
2756
+ "name": "buttonCellRenderer",
2757
+ "module": "src/utils/renderer.ts"
2758
+ }
2759
+ }
2760
+ ]
2761
+ },
2762
2762
  {
2763
2763
  "kind": "javascript-module",
2764
2764
  "path": "src/routes/demo/entity-management.template.ts",
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.162.5",
4
+ "version": "14.163.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -43,29 +43,29 @@
43
43
  "test:debug": "genx test --debug"
44
44
  },
45
45
  "devDependencies": {
46
- "@genesislcap/foundation-testing": "14.162.5",
47
- "@genesislcap/genx": "14.162.5",
48
- "@genesislcap/rollup-builder": "14.162.5",
49
- "@genesislcap/ts-builder": "14.162.5",
50
- "@genesislcap/uvu-playwright-builder": "14.162.5",
51
- "@genesislcap/vite-builder": "14.162.5",
52
- "@genesislcap/webpack-builder": "14.162.5",
46
+ "@genesislcap/foundation-testing": "14.163.0",
47
+ "@genesislcap/genx": "14.163.0",
48
+ "@genesislcap/rollup-builder": "14.163.0",
49
+ "@genesislcap/ts-builder": "14.163.0",
50
+ "@genesislcap/uvu-playwright-builder": "14.163.0",
51
+ "@genesislcap/vite-builder": "14.163.0",
52
+ "@genesislcap/webpack-builder": "14.163.0",
53
53
  "rimraf": "^3.0.2"
54
54
  },
55
55
  "dependencies": {
56
56
  "@ag-grid-community/core": "29.2.0",
57
- "@genesislcap/foundation-comms": "14.162.5",
58
- "@genesislcap/foundation-errors": "14.162.5",
59
- "@genesislcap/foundation-events": "14.162.5",
60
- "@genesislcap/foundation-forms": "14.162.5",
61
- "@genesislcap/foundation-logger": "14.162.5",
62
- "@genesislcap/foundation-login": "14.162.5",
63
- "@genesislcap/foundation-notifications": "14.162.5",
64
- "@genesislcap/foundation-ui": "14.162.5",
65
- "@genesislcap/foundation-utils": "14.162.5",
66
- "@genesislcap/foundation-zero": "14.162.5",
67
- "@genesislcap/foundation-zero-grid-pro": "14.162.5",
68
- "@genesislcap/grid-pro": "14.162.5",
57
+ "@genesislcap/foundation-comms": "14.163.0",
58
+ "@genesislcap/foundation-errors": "14.163.0",
59
+ "@genesislcap/foundation-events": "14.163.0",
60
+ "@genesislcap/foundation-forms": "14.163.0",
61
+ "@genesislcap/foundation-logger": "14.163.0",
62
+ "@genesislcap/foundation-login": "14.163.0",
63
+ "@genesislcap/foundation-notifications": "14.163.0",
64
+ "@genesislcap/foundation-ui": "14.163.0",
65
+ "@genesislcap/foundation-utils": "14.163.0",
66
+ "@genesislcap/foundation-zero": "14.163.0",
67
+ "@genesislcap/foundation-zero-grid-pro": "14.163.0",
68
+ "@genesislcap/grid-pro": "14.163.0",
69
69
  "@microsoft/fast-components": "^2.30.6",
70
70
  "@microsoft/fast-element": "^1.12.0",
71
71
  "@microsoft/fast-foundation": "^2.49.4",
@@ -81,5 +81,5 @@
81
81
  "access": "public"
82
82
  },
83
83
  "customElements": "dist/custom-elements.json",
84
- "gitHead": "47733285b6e2d7988941967021ea4a48e9613aba"
84
+ "gitHead": "e141f8ae65838f2eb2f88f47da9d738566c2eda7"
85
85
  }