@genesislcap/foundation-forms 14.445.0 → 14.445.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +649 -649
  2. package/package.json +15 -15
@@ -1593,407 +1593,204 @@
1593
1593
  },
1594
1594
  {
1595
1595
  "kind": "javascript-module",
1596
- "path": "src/utils/confirmation-dialog-utils.ts",
1597
- "declarations": [],
1598
- "exports": []
1599
- },
1600
- {
1601
- "kind": "javascript-module",
1602
- "path": "src/utils/csv-parser.ts",
1596
+ "path": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts",
1603
1597
  "declarations": [
1604
1598
  {
1605
1599
  "kind": "function",
1606
- "name": "parseCsv",
1607
- "return": {
1608
- "type": {
1609
- "text": ""
1610
- }
1611
- },
1600
+ "name": "ArrayListWrapperRendererTemplate",
1612
1601
  "parameters": [
1613
1602
  {
1614
- "name": "content",
1603
+ "name": "prefix",
1604
+ "default": "'zero'",
1615
1605
  "type": {
1616
1606
  "text": "string"
1617
- },
1618
- "description": "The CSV content as a string"
1607
+ }
1619
1608
  }
1620
- ],
1621
- "description": "Parses a CSV string into headers and rows using PapaParse.\nHandles quoted fields, escaped quotes, empty values, and mixed line endings.",
1622
- "privacy": "public"
1609
+ ]
1623
1610
  },
1624
1611
  {
1625
- "kind": "function",
1626
- "name": "mapCsvToSchema",
1627
- "return": {
1628
- "type": {
1629
- "text": ""
1630
- }
1631
- },
1632
- "parameters": [
1612
+ "kind": "class",
1613
+ "description": "",
1614
+ "name": "ArrayListWrapper",
1615
+ "members": [
1633
1616
  {
1634
- "name": "csvRows",
1635
- "type": {
1636
- "text": "Record<string, string>[]"
1637
- },
1638
- "description": "The parsed CSV rows"
1617
+ "kind": "field",
1618
+ "name": "form"
1639
1619
  },
1640
1620
  {
1641
- "name": "schema",
1642
- "type": {
1643
- "text": "JSONSchema7 | undefined"
1644
- },
1645
- "description": "The JSON schema defining the fields"
1621
+ "kind": "field",
1622
+ "name": "control"
1646
1623
  },
1647
1624
  {
1648
- "name": "uiSchema",
1649
- "optional": true,
1650
- "type": {
1651
- "text": "UiSchema"
1652
- },
1653
- "description": "Optional UI schema to map labels to field names on import"
1654
- }
1655
- ],
1656
- "description": "Maps CSV rows to schema fields with case-insensitive matching.\nWhen uiSchema is provided, CSV headers can also match UI schema labels.\nConverts values to appropriate types based on schema definition.",
1657
- "privacy": "public"
1658
- },
1659
- {
1660
- "kind": "function",
1661
- "name": "generateCsvTemplate",
1662
- "return": {
1663
- "type": {
1664
- "text": ""
1665
- }
1666
- },
1667
- "parameters": [
1668
- {
1669
- "name": "schema",
1670
- "type": {
1671
- "text": "JSONSchema7 | undefined"
1672
- },
1673
- "description": "The JSON schema defining the fields"
1625
+ "kind": "field",
1626
+ "name": "schema"
1674
1627
  },
1675
1628
  {
1676
- "name": "uiSchema",
1677
- "optional": true,
1678
- "type": {
1679
- "text": "UiSchema"
1680
- },
1681
- "description": "Optional UI schema to determine field order and visibility"
1629
+ "kind": "field",
1630
+ "name": "uiSchema"
1682
1631
  },
1683
1632
  {
1684
- "name": "includeOptionalFields",
1685
- "default": "true",
1633
+ "kind": "field",
1634
+ "name": "isGridView",
1686
1635
  "type": {
1687
1636
  "text": "boolean"
1688
1637
  },
1689
- "description": "Whether to include optional fields when no UI schema (default: true)"
1638
+ "default": "false"
1690
1639
  },
1691
1640
  {
1692
- "name": "includeBom",
1693
- "default": "true",
1641
+ "kind": "field",
1642
+ "name": "gridViewHeaderCells",
1694
1643
  "type": {
1695
- "text": "boolean"
1644
+ "text": "GridHeaderCell[]"
1696
1645
  },
1697
- "description": "Whether to prepend UTF-8 BOM for Excel compatibility (default: true)"
1698
- }
1699
- ],
1700
- "description": "Generates a CSV template string with headers and sample data based on JSON schema.\nIf a UI schema is provided, it will be used to determine which fields to include\nand in what order. Hidden fields in the UI schema will be excluded.",
1701
- "privacy": "public"
1702
- },
1703
- {
1704
- "kind": "function",
1705
- "name": "downloadCsvTemplate",
1706
- "return": {
1707
- "type": {
1708
- "text": "void"
1709
- }
1710
- },
1711
- "parameters": [
1646
+ "default": "[]"
1647
+ },
1712
1648
  {
1713
- "name": "csvContent",
1649
+ "kind": "field",
1650
+ "name": "gridViewUiSchema",
1714
1651
  "type": {
1715
- "text": "string"
1652
+ "text": "any"
1716
1653
  },
1717
- "description": "The CSV content to download"
1654
+ "default": "null"
1718
1655
  },
1719
1656
  {
1720
- "name": "fileName",
1721
- "default": "'template.csv'",
1722
- "type": {
1723
- "text": "string"
1724
- },
1725
- "description": "The name for the downloaded file (default: 'template.csv')"
1657
+ "kind": "method",
1658
+ "name": "controlChanged"
1659
+ },
1660
+ {
1661
+ "kind": "method",
1662
+ "name": "addItem"
1663
+ },
1664
+ {
1665
+ "kind": "method",
1666
+ "name": "deleteItem",
1667
+ "parameters": [
1668
+ {
1669
+ "name": "index",
1670
+ "type": {
1671
+ "text": "number"
1672
+ }
1673
+ }
1674
+ ]
1675
+ },
1676
+ {
1677
+ "kind": "method",
1678
+ "name": "submitRow",
1679
+ "parameters": [
1680
+ {
1681
+ "name": "index",
1682
+ "type": {
1683
+ "text": "number"
1684
+ },
1685
+ "description": "The row index to submit"
1686
+ }
1687
+ ],
1688
+ "description": "Submits a single row by emitting an event that bubbles up to the foundation-form."
1726
1689
  }
1727
1690
  ],
1728
- "description": "Triggers a download of the CSV template file in the browser.",
1729
- "privacy": "public"
1691
+ "superclass": {
1692
+ "name": "FASTElement",
1693
+ "package": "@microsoft/fast-element"
1694
+ },
1695
+ "tagName": "array-list-wrapper",
1696
+ "customElement": true
1730
1697
  }
1731
1698
  ],
1732
1699
  "exports": [
1733
1700
  {
1734
1701
  "kind": "js",
1735
- "name": "parseCsv",
1736
- "declaration": {
1737
- "name": "parseCsv",
1738
- "module": "src/utils/csv-parser.ts"
1739
- }
1740
- },
1741
- {
1742
- "kind": "js",
1743
- "name": "mapCsvToSchema",
1702
+ "name": "ArrayListWrapperRendererTemplate",
1744
1703
  "declaration": {
1745
- "name": "mapCsvToSchema",
1746
- "module": "src/utils/csv-parser.ts"
1704
+ "name": "ArrayListWrapperRendererTemplate",
1705
+ "module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
1747
1706
  }
1748
1707
  },
1749
1708
  {
1750
1709
  "kind": "js",
1751
- "name": "generateCsvTemplate",
1710
+ "name": "ArrayListWrapper",
1752
1711
  "declaration": {
1753
- "name": "generateCsvTemplate",
1754
- "module": "src/utils/csv-parser.ts"
1712
+ "name": "ArrayListWrapper",
1713
+ "module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
1755
1714
  }
1756
1715
  },
1757
1716
  {
1758
- "kind": "js",
1759
- "name": "downloadCsvTemplate",
1717
+ "kind": "custom-element-definition",
1718
+ "name": "array-list-wrapper",
1760
1719
  "declaration": {
1761
- "name": "downloadCsvTemplate",
1762
- "module": "src/utils/csv-parser.ts"
1720
+ "name": "ArrayListWrapper",
1721
+ "module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
1763
1722
  }
1764
1723
  }
1765
1724
  ]
1766
1725
  },
1767
1726
  {
1768
1727
  "kind": "javascript-module",
1769
- "path": "src/utils/filters.ts",
1770
- "declarations": [],
1771
- "exports": []
1772
- },
1773
- {
1774
- "kind": "javascript-module",
1775
- "path": "src/utils/form-utils.ts",
1728
+ "path": "src/jsonforms/renderers/BooleanControlRenderer.ts",
1776
1729
  "declarations": [
1777
1730
  {
1778
1731
  "kind": "function",
1779
- "name": "removeDataPropertiesNotInSchema",
1780
- "return": {
1781
- "type": {
1782
- "text": ""
1783
- }
1784
- },
1732
+ "name": "BooleanControlRendererTemplate",
1785
1733
  "parameters": [
1786
1734
  {
1787
- "name": "data",
1788
- "type": {
1789
- "text": "any"
1790
- },
1791
- "description": "The data object to clean"
1792
- },
1793
- {
1794
- "name": "jsonSchema",
1735
+ "name": "prefix",
1736
+ "default": "'zero'",
1795
1737
  "type": {
1796
- "text": "JSONSchema7"
1797
- },
1798
- "description": "The JSON schema to validate against"
1738
+ "text": "string"
1739
+ }
1799
1740
  }
1800
- ],
1801
- "description": "Removes data properties that aren't part of the schema"
1741
+ ]
1742
+ },
1743
+ {
1744
+ "kind": "variable",
1745
+ "name": "BooleanControlEntry",
1746
+ "type": {
1747
+ "text": "RendererEntry"
1748
+ },
1749
+ "default": "{\n renderer: html<DispatchRenderer>`\n ${(x) => BooleanControlRendererTemplate(x.prefix)}\n `,\n tester: rankWith(BOOLEAN_CONTROL_RANK, isOneOfBoolean),\n mapper: mapStateToControlProps,\n}"
1802
1750
  }
1803
1751
  ],
1804
1752
  "exports": [
1805
1753
  {
1806
1754
  "kind": "js",
1807
- "name": "removeDataPropertiesNotInSchema",
1755
+ "name": "BooleanControlRendererTemplate",
1808
1756
  "declaration": {
1809
- "name": "removeDataPropertiesNotInSchema",
1810
- "module": "src/utils/form-utils.ts"
1757
+ "name": "BooleanControlRendererTemplate",
1758
+ "module": "src/jsonforms/renderers/BooleanControlRenderer.ts"
1759
+ }
1760
+ },
1761
+ {
1762
+ "kind": "js",
1763
+ "name": "BooleanControlEntry",
1764
+ "declaration": {
1765
+ "name": "BooleanControlEntry",
1766
+ "module": "src/jsonforms/renderers/BooleanControlRenderer.ts"
1811
1767
  }
1812
1768
  }
1813
1769
  ]
1814
1770
  },
1815
1771
  {
1816
1772
  "kind": "javascript-module",
1817
- "path": "src/utils/index.ts",
1818
- "declarations": [],
1819
- "exports": [
1820
- {
1821
- "kind": "js",
1822
- "name": "*",
1823
- "declaration": {
1824
- "name": "*",
1825
- "package": "./csv-parser"
1826
- }
1827
- },
1828
- {
1829
- "kind": "js",
1830
- "name": "*",
1831
- "declaration": {
1832
- "name": "*",
1833
- "package": "./filters"
1834
- }
1835
- },
1836
- {
1837
- "kind": "js",
1838
- "name": "*",
1839
- "declaration": {
1840
- "name": "*",
1841
- "package": "./logger"
1842
- }
1843
- },
1844
- {
1845
- "kind": "js",
1846
- "name": "*",
1847
- "declaration": {
1848
- "name": "*",
1849
- "package": "./translation"
1850
- }
1851
- },
1852
- {
1853
- "kind": "js",
1854
- "name": "*",
1855
- "declaration": {
1856
- "name": "*",
1857
- "package": "./validation"
1858
- }
1859
- },
1860
- {
1861
- "kind": "js",
1862
- "name": "*",
1863
- "declaration": {
1864
- "name": "*",
1865
- "package": "./types"
1866
- }
1867
- }
1868
- ]
1869
- },
1870
- {
1871
- "kind": "javascript-module",
1872
- "path": "src/utils/logger.ts",
1873
- "declarations": [],
1874
- "exports": []
1875
- },
1876
- {
1877
- "kind": "javascript-module",
1878
- "path": "src/utils/schema-utils.ts",
1879
- "declarations": [],
1880
- "exports": []
1881
- },
1882
- {
1883
- "kind": "javascript-module",
1884
- "path": "src/utils/translation.ts",
1885
- "declarations": [],
1886
- "exports": []
1887
- },
1888
- {
1889
- "kind": "javascript-module",
1890
- "path": "src/utils/types.ts",
1891
- "declarations": [],
1892
- "exports": []
1893
- },
1894
- {
1895
- "kind": "javascript-module",
1896
- "path": "src/utils/validation.ts",
1773
+ "path": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts",
1897
1774
  "declarations": [
1898
1775
  {
1899
- "kind": "function",
1900
- "name": "mustMatch",
1901
- "parameters": [
1902
- {
1903
- "name": "target",
1904
- "type": {
1905
- "text": "string"
1906
- },
1907
- "description": "any other field"
1908
- }
1909
- ],
1910
- "description": "Ensures the value of the current field (the one the validator is on) matches the one of the target field.",
1911
- "return": {
1912
- "type": {
1913
- "text": ""
1914
- }
1915
- },
1916
- "privacy": "public"
1917
- },
1918
- {
1919
- "kind": "function",
1920
- "name": "getAnyOfErrorMessage",
1921
- "return": {
1922
- "type": {
1923
- "text": "string"
1924
- }
1925
- },
1926
- "parameters": [
1927
- {
1928
- "name": "errors",
1929
- "type": {
1930
- "text": "Array<any> | undefined"
1931
- }
1932
- },
1933
- {
1934
- "name": "schema",
1935
- "type": {
1936
- "text": "any"
1937
- }
1938
- },
1939
- {
1940
- "name": "controlPath",
1941
- "type": {
1942
- "text": "string | undefined"
1943
- }
1944
- },
1945
- {
1946
- "name": "uiCustomMsg",
1947
- "optional": true,
1948
- "type": {
1949
- "text": "string"
1950
- }
1951
- }
1952
- ],
1953
- "description": "Computes a human-friendly anyOf error message for a given control path.\nPrefers UI schema custom message, then JSON schema errorMessage.anyOf, then a constructed fallback.",
1954
- "privacy": "public"
1955
- }
1956
- ],
1957
- "exports": [
1958
- {
1959
- "kind": "js",
1960
- "name": "mustMatch",
1961
- "declaration": {
1962
- "name": "mustMatch",
1963
- "module": "src/utils/validation.ts"
1964
- }
1776
+ "kind": "variable",
1777
+ "name": "tabControlIconStyles",
1778
+ "default": "css`\n .tab-control-icon {\n margin-left: 3px;\n color: #f9644d;\n }\n`"
1965
1779
  },
1966
- {
1967
- "kind": "js",
1968
- "name": "getAnyOfErrorMessage",
1969
- "declaration": {
1970
- "name": "getAnyOfErrorMessage",
1971
- "module": "src/utils/validation.ts"
1972
- }
1973
- }
1974
- ]
1975
- },
1976
- {
1977
- "kind": "javascript-module",
1978
- "path": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts",
1979
- "declarations": [
1980
1780
  {
1981
1781
  "kind": "function",
1982
- "name": "ArrayListWrapperRendererTemplate",
1782
+ "name": "CategorizationWrapperRendererTemplate",
1983
1783
  "parameters": [
1984
1784
  {
1985
1785
  "name": "prefix",
1986
- "default": "'zero'",
1987
- "type": {
1988
- "text": "string"
1989
- }
1786
+ "default": "'zero'"
1990
1787
  }
1991
1788
  ]
1992
1789
  },
1993
1790
  {
1994
1791
  "kind": "class",
1995
1792
  "description": "",
1996
- "name": "ArrayListWrapper",
1793
+ "name": "CategorizationWrapper",
1997
1794
  "members": [
1998
1795
  {
1999
1796
  "kind": "field",
@@ -2005,261 +1802,82 @@
2005
1802
  },
2006
1803
  {
2007
1804
  "kind": "field",
2008
- "name": "schema"
2009
- },
2010
- {
2011
- "kind": "field",
2012
- "name": "uiSchema"
2013
- },
2014
- {
2015
- "kind": "field",
2016
- "name": "isGridView",
2017
- "type": {
2018
- "text": "boolean"
2019
- },
2020
- "default": "false"
2021
- },
2022
- {
2023
- "kind": "field",
2024
- "name": "gridViewHeaderCells",
2025
- "type": {
2026
- "text": "GridHeaderCell[]"
2027
- },
2028
- "default": "[]"
2029
- },
2030
- {
2031
- "kind": "field",
2032
- "name": "gridViewUiSchema",
1805
+ "name": "mountedTabs",
2033
1806
  "type": {
2034
- "text": "any"
1807
+ "text": "Set<number>"
2035
1808
  },
2036
- "default": "null"
2037
- },
2038
- {
2039
- "kind": "method",
2040
- "name": "controlChanged"
1809
+ "default": "new Set([0])"
2041
1810
  },
2042
1811
  {
2043
1812
  "kind": "method",
2044
- "name": "addItem"
1813
+ "name": "isMounted",
1814
+ "return": {
1815
+ "type": {
1816
+ "text": "boolean"
1817
+ }
1818
+ },
1819
+ "parameters": [
1820
+ {
1821
+ "name": "index",
1822
+ "type": {
1823
+ "text": "number"
1824
+ }
1825
+ }
1826
+ ]
2045
1827
  },
2046
1828
  {
2047
1829
  "kind": "method",
2048
- "name": "deleteItem",
1830
+ "name": "handleTabChange",
2049
1831
  "parameters": [
2050
1832
  {
2051
- "name": "index",
1833
+ "name": "event",
2052
1834
  "type": {
2053
- "text": "number"
1835
+ "text": "Event"
2054
1836
  }
2055
1837
  }
2056
1838
  ]
2057
1839
  },
2058
1840
  {
2059
1841
  "kind": "method",
2060
- "name": "submitRow",
1842
+ "name": "hasCategoryError",
1843
+ "return": {
1844
+ "type": {
1845
+ "text": "boolean"
1846
+ }
1847
+ },
2061
1848
  "parameters": [
2062
1849
  {
2063
- "name": "index",
1850
+ "name": "categoryIndex",
2064
1851
  "type": {
2065
1852
  "text": "number"
2066
- },
2067
- "description": "The row index to submit"
1853
+ }
2068
1854
  }
2069
- ],
2070
- "description": "Submits a single row by emitting an event that bubbles up to the foundation-form."
1855
+ ]
2071
1856
  }
2072
1857
  ],
2073
1858
  "superclass": {
2074
1859
  "name": "FASTElement",
2075
1860
  "package": "@microsoft/fast-element"
2076
1861
  },
2077
- "tagName": "array-list-wrapper",
1862
+ "tagName": "categorization-wrapper",
2078
1863
  "customElement": true
2079
1864
  }
2080
1865
  ],
2081
1866
  "exports": [
2082
1867
  {
2083
1868
  "kind": "js",
2084
- "name": "ArrayListWrapperRendererTemplate",
1869
+ "name": "tabControlIconStyles",
2085
1870
  "declaration": {
2086
- "name": "ArrayListWrapperRendererTemplate",
2087
- "module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
1871
+ "name": "tabControlIconStyles",
1872
+ "module": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts"
2088
1873
  }
2089
1874
  },
2090
1875
  {
2091
1876
  "kind": "js",
2092
- "name": "ArrayListWrapper",
1877
+ "name": "CategorizationWrapperRendererTemplate",
2093
1878
  "declaration": {
2094
- "name": "ArrayListWrapper",
2095
- "module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
2096
- }
2097
- },
2098
- {
2099
- "kind": "custom-element-definition",
2100
- "name": "array-list-wrapper",
2101
- "declaration": {
2102
- "name": "ArrayListWrapper",
2103
- "module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
2104
- }
2105
- }
2106
- ]
2107
- },
2108
- {
2109
- "kind": "javascript-module",
2110
- "path": "src/jsonforms/renderers/BooleanControlRenderer.ts",
2111
- "declarations": [
2112
- {
2113
- "kind": "function",
2114
- "name": "BooleanControlRendererTemplate",
2115
- "parameters": [
2116
- {
2117
- "name": "prefix",
2118
- "default": "'zero'",
2119
- "type": {
2120
- "text": "string"
2121
- }
2122
- }
2123
- ]
2124
- },
2125
- {
2126
- "kind": "variable",
2127
- "name": "BooleanControlEntry",
2128
- "type": {
2129
- "text": "RendererEntry"
2130
- },
2131
- "default": "{\n renderer: html<DispatchRenderer>`\n ${(x) => BooleanControlRendererTemplate(x.prefix)}\n `,\n tester: rankWith(BOOLEAN_CONTROL_RANK, isOneOfBoolean),\n mapper: mapStateToControlProps,\n}"
2132
- }
2133
- ],
2134
- "exports": [
2135
- {
2136
- "kind": "js",
2137
- "name": "BooleanControlRendererTemplate",
2138
- "declaration": {
2139
- "name": "BooleanControlRendererTemplate",
2140
- "module": "src/jsonforms/renderers/BooleanControlRenderer.ts"
2141
- }
2142
- },
2143
- {
2144
- "kind": "js",
2145
- "name": "BooleanControlEntry",
2146
- "declaration": {
2147
- "name": "BooleanControlEntry",
2148
- "module": "src/jsonforms/renderers/BooleanControlRenderer.ts"
2149
- }
2150
- }
2151
- ]
2152
- },
2153
- {
2154
- "kind": "javascript-module",
2155
- "path": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts",
2156
- "declarations": [
2157
- {
2158
- "kind": "variable",
2159
- "name": "tabControlIconStyles",
2160
- "default": "css`\n .tab-control-icon {\n margin-left: 3px;\n color: #f9644d;\n }\n`"
2161
- },
2162
- {
2163
- "kind": "function",
2164
- "name": "CategorizationWrapperRendererTemplate",
2165
- "parameters": [
2166
- {
2167
- "name": "prefix",
2168
- "default": "'zero'"
2169
- }
2170
- ]
2171
- },
2172
- {
2173
- "kind": "class",
2174
- "description": "",
2175
- "name": "CategorizationWrapper",
2176
- "members": [
2177
- {
2178
- "kind": "field",
2179
- "name": "form"
2180
- },
2181
- {
2182
- "kind": "field",
2183
- "name": "control"
2184
- },
2185
- {
2186
- "kind": "field",
2187
- "name": "mountedTabs",
2188
- "type": {
2189
- "text": "Set<number>"
2190
- },
2191
- "default": "new Set([0])"
2192
- },
2193
- {
2194
- "kind": "method",
2195
- "name": "isMounted",
2196
- "return": {
2197
- "type": {
2198
- "text": "boolean"
2199
- }
2200
- },
2201
- "parameters": [
2202
- {
2203
- "name": "index",
2204
- "type": {
2205
- "text": "number"
2206
- }
2207
- }
2208
- ]
2209
- },
2210
- {
2211
- "kind": "method",
2212
- "name": "handleTabChange",
2213
- "parameters": [
2214
- {
2215
- "name": "event",
2216
- "type": {
2217
- "text": "Event"
2218
- }
2219
- }
2220
- ]
2221
- },
2222
- {
2223
- "kind": "method",
2224
- "name": "hasCategoryError",
2225
- "return": {
2226
- "type": {
2227
- "text": "boolean"
2228
- }
2229
- },
2230
- "parameters": [
2231
- {
2232
- "name": "categoryIndex",
2233
- "type": {
2234
- "text": "number"
2235
- }
2236
- }
2237
- ]
2238
- }
2239
- ],
2240
- "superclass": {
2241
- "name": "FASTElement",
2242
- "package": "@microsoft/fast-element"
2243
- },
2244
- "tagName": "categorization-wrapper",
2245
- "customElement": true
2246
- }
2247
- ],
2248
- "exports": [
2249
- {
2250
- "kind": "js",
2251
- "name": "tabControlIconStyles",
2252
- "declaration": {
2253
- "name": "tabControlIconStyles",
2254
- "module": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts"
2255
- }
2256
- },
2257
- {
2258
- "kind": "js",
2259
- "name": "CategorizationWrapperRendererTemplate",
2260
- "declaration": {
2261
- "name": "CategorizationWrapperRendererTemplate",
2262
- "module": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts"
1879
+ "name": "CategorizationWrapperRendererTemplate",
1880
+ "module": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts"
2263
1881
  }
2264
1882
  },
2265
1883
  {
@@ -4284,208 +3902,590 @@
4284
3902
  "exports": [
4285
3903
  {
4286
3904
  "kind": "js",
4287
- "name": "isArray",
3905
+ "name": "isArray",
3906
+ "declaration": {
3907
+ "name": "isArray",
3908
+ "module": "src/jsonforms/testers/isArray.ts"
3909
+ }
3910
+ }
3911
+ ]
3912
+ },
3913
+ {
3914
+ "kind": "javascript-module",
3915
+ "path": "src/jsonforms/testers/isDate.ts",
3916
+ "declarations": [
3917
+ {
3918
+ "kind": "variable",
3919
+ "name": "isOneOfDate"
3920
+ }
3921
+ ],
3922
+ "exports": [
3923
+ {
3924
+ "kind": "js",
3925
+ "name": "isOneOfDate",
3926
+ "declaration": {
3927
+ "name": "isOneOfDate",
3928
+ "module": "src/jsonforms/testers/isDate.ts"
3929
+ }
3930
+ }
3931
+ ]
3932
+ },
3933
+ {
3934
+ "kind": "javascript-module",
3935
+ "path": "src/jsonforms/testers/isInvisible.ts",
3936
+ "declarations": [
3937
+ {
3938
+ "kind": "function",
3939
+ "name": "isInvisible",
3940
+ "return": {
3941
+ "type": {
3942
+ "text": "boolean"
3943
+ }
3944
+ },
3945
+ "parameters": [
3946
+ {
3947
+ "name": "uischema",
3948
+ "type": {
3949
+ "text": "UISchemaElement"
3950
+ }
3951
+ },
3952
+ {
3953
+ "name": "schema",
3954
+ "type": {
3955
+ "text": "JsonSchema"
3956
+ }
3957
+ },
3958
+ {
3959
+ "name": "context",
3960
+ "type": {
3961
+ "text": "TesterContext"
3962
+ }
3963
+ }
3964
+ ]
3965
+ }
3966
+ ],
3967
+ "exports": [
3968
+ {
3969
+ "kind": "js",
3970
+ "name": "isInvisible",
3971
+ "declaration": {
3972
+ "name": "isInvisible",
3973
+ "module": "src/jsonforms/testers/isInvisible.ts"
3974
+ }
3975
+ }
3976
+ ]
3977
+ },
3978
+ {
3979
+ "kind": "javascript-module",
3980
+ "path": "src/jsonforms/testers/isOneOfBoolean.ts",
3981
+ "declarations": [
3982
+ {
3983
+ "kind": "variable",
3984
+ "name": "isOneOfBoolean"
3985
+ }
3986
+ ],
3987
+ "exports": [
3988
+ {
3989
+ "kind": "js",
3990
+ "name": "isOneOfBoolean",
3991
+ "declaration": {
3992
+ "name": "isOneOfBoolean",
3993
+ "module": "src/jsonforms/testers/isOneOfBoolean.ts"
3994
+ }
3995
+ }
3996
+ ]
3997
+ },
3998
+ {
3999
+ "kind": "javascript-module",
4000
+ "path": "src/jsonforms/testers/isOneOfEnum.ts",
4001
+ "declarations": [
4002
+ {
4003
+ "kind": "variable",
4004
+ "name": "isOneOfEnum"
4005
+ }
4006
+ ],
4007
+ "exports": [
4008
+ {
4009
+ "kind": "js",
4010
+ "name": "isOneOfEnum",
4011
+ "declaration": {
4012
+ "name": "isOneOfEnum",
4013
+ "module": "src/jsonforms/testers/isOneOfEnum.ts"
4014
+ }
4015
+ }
4016
+ ]
4017
+ },
4018
+ {
4019
+ "kind": "javascript-module",
4020
+ "path": "src/jsonforms/testers/isOneOfNumber.ts",
4021
+ "declarations": [
4022
+ {
4023
+ "kind": "variable",
4024
+ "name": "isOneOfNumber"
4025
+ }
4026
+ ],
4027
+ "exports": [
4028
+ {
4029
+ "kind": "js",
4030
+ "name": "isOneOfNumber",
4031
+ "declaration": {
4032
+ "name": "isOneOfNumber",
4033
+ "module": "src/jsonforms/testers/isOneOfNumber.ts"
4034
+ }
4035
+ }
4036
+ ]
4037
+ },
4038
+ {
4039
+ "kind": "javascript-module",
4040
+ "path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
4041
+ "declarations": [
4042
+ {
4043
+ "kind": "variable",
4044
+ "name": "isOneOfOptionMultiselect"
4045
+ }
4046
+ ],
4047
+ "exports": [
4048
+ {
4049
+ "kind": "js",
4050
+ "name": "isOneOfOptionMultiselect",
4051
+ "declaration": {
4052
+ "name": "isOneOfOptionMultiselect",
4053
+ "module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
4054
+ }
4055
+ }
4056
+ ]
4057
+ },
4058
+ {
4059
+ "kind": "javascript-module",
4060
+ "path": "src/jsonforms/testers/isTime.ts",
4061
+ "declarations": [
4062
+ {
4063
+ "kind": "variable",
4064
+ "name": "isOneOfTime"
4065
+ }
4066
+ ],
4067
+ "exports": [
4068
+ {
4069
+ "kind": "js",
4070
+ "name": "isOneOfTime",
4071
+ "declaration": {
4072
+ "name": "isOneOfTime",
4073
+ "module": "src/jsonforms/testers/isTime.ts"
4074
+ }
4075
+ }
4076
+ ]
4077
+ },
4078
+ {
4079
+ "kind": "javascript-module",
4080
+ "path": "src/jsonforms/testers/optionIs.ts",
4081
+ "declarations": [
4082
+ {
4083
+ "kind": "function",
4084
+ "name": "optionIs",
4085
+ "return": {
4086
+ "type": {
4087
+ "text": "Tester"
4088
+ }
4089
+ },
4090
+ "parameters": [
4091
+ {
4092
+ "name": "optionName",
4093
+ "type": {
4094
+ "text": "string"
4095
+ }
4096
+ }
4097
+ ]
4098
+ }
4099
+ ],
4100
+ "exports": [
4101
+ {
4102
+ "kind": "js",
4103
+ "name": "optionIs",
4104
+ "declaration": {
4105
+ "name": "optionIs",
4106
+ "module": "src/jsonforms/testers/optionIs.ts"
4107
+ }
4108
+ }
4109
+ ]
4110
+ },
4111
+ {
4112
+ "kind": "javascript-module",
4113
+ "path": "src/utils/confirmation-dialog-utils.ts",
4114
+ "declarations": [],
4115
+ "exports": []
4116
+ },
4117
+ {
4118
+ "kind": "javascript-module",
4119
+ "path": "src/utils/csv-parser.ts",
4120
+ "declarations": [
4121
+ {
4122
+ "kind": "function",
4123
+ "name": "parseCsv",
4124
+ "return": {
4125
+ "type": {
4126
+ "text": ""
4127
+ }
4128
+ },
4129
+ "parameters": [
4130
+ {
4131
+ "name": "content",
4132
+ "type": {
4133
+ "text": "string"
4134
+ },
4135
+ "description": "The CSV content as a string"
4136
+ }
4137
+ ],
4138
+ "description": "Parses a CSV string into headers and rows using PapaParse.\nHandles quoted fields, escaped quotes, empty values, and mixed line endings.",
4139
+ "privacy": "public"
4140
+ },
4141
+ {
4142
+ "kind": "function",
4143
+ "name": "mapCsvToSchema",
4144
+ "return": {
4145
+ "type": {
4146
+ "text": ""
4147
+ }
4148
+ },
4149
+ "parameters": [
4150
+ {
4151
+ "name": "csvRows",
4152
+ "type": {
4153
+ "text": "Record<string, string>[]"
4154
+ },
4155
+ "description": "The parsed CSV rows"
4156
+ },
4157
+ {
4158
+ "name": "schema",
4159
+ "type": {
4160
+ "text": "JSONSchema7 | undefined"
4161
+ },
4162
+ "description": "The JSON schema defining the fields"
4163
+ },
4164
+ {
4165
+ "name": "uiSchema",
4166
+ "optional": true,
4167
+ "type": {
4168
+ "text": "UiSchema"
4169
+ },
4170
+ "description": "Optional UI schema to map labels to field names on import"
4171
+ }
4172
+ ],
4173
+ "description": "Maps CSV rows to schema fields with case-insensitive matching.\nWhen uiSchema is provided, CSV headers can also match UI schema labels.\nConverts values to appropriate types based on schema definition.",
4174
+ "privacy": "public"
4175
+ },
4176
+ {
4177
+ "kind": "function",
4178
+ "name": "generateCsvTemplate",
4179
+ "return": {
4180
+ "type": {
4181
+ "text": ""
4182
+ }
4183
+ },
4184
+ "parameters": [
4185
+ {
4186
+ "name": "schema",
4187
+ "type": {
4188
+ "text": "JSONSchema7 | undefined"
4189
+ },
4190
+ "description": "The JSON schema defining the fields"
4191
+ },
4192
+ {
4193
+ "name": "uiSchema",
4194
+ "optional": true,
4195
+ "type": {
4196
+ "text": "UiSchema"
4197
+ },
4198
+ "description": "Optional UI schema to determine field order and visibility"
4199
+ },
4200
+ {
4201
+ "name": "includeOptionalFields",
4202
+ "default": "true",
4203
+ "type": {
4204
+ "text": "boolean"
4205
+ },
4206
+ "description": "Whether to include optional fields when no UI schema (default: true)"
4207
+ },
4208
+ {
4209
+ "name": "includeBom",
4210
+ "default": "true",
4211
+ "type": {
4212
+ "text": "boolean"
4213
+ },
4214
+ "description": "Whether to prepend UTF-8 BOM for Excel compatibility (default: true)"
4215
+ }
4216
+ ],
4217
+ "description": "Generates a CSV template string with headers and sample data based on JSON schema.\nIf a UI schema is provided, it will be used to determine which fields to include\nand in what order. Hidden fields in the UI schema will be excluded.",
4218
+ "privacy": "public"
4219
+ },
4220
+ {
4221
+ "kind": "function",
4222
+ "name": "downloadCsvTemplate",
4223
+ "return": {
4224
+ "type": {
4225
+ "text": "void"
4226
+ }
4227
+ },
4228
+ "parameters": [
4229
+ {
4230
+ "name": "csvContent",
4231
+ "type": {
4232
+ "text": "string"
4233
+ },
4234
+ "description": "The CSV content to download"
4235
+ },
4236
+ {
4237
+ "name": "fileName",
4238
+ "default": "'template.csv'",
4239
+ "type": {
4240
+ "text": "string"
4241
+ },
4242
+ "description": "The name for the downloaded file (default: 'template.csv')"
4243
+ }
4244
+ ],
4245
+ "description": "Triggers a download of the CSV template file in the browser.",
4246
+ "privacy": "public"
4247
+ }
4248
+ ],
4249
+ "exports": [
4250
+ {
4251
+ "kind": "js",
4252
+ "name": "parseCsv",
4253
+ "declaration": {
4254
+ "name": "parseCsv",
4255
+ "module": "src/utils/csv-parser.ts"
4256
+ }
4257
+ },
4258
+ {
4259
+ "kind": "js",
4260
+ "name": "mapCsvToSchema",
4261
+ "declaration": {
4262
+ "name": "mapCsvToSchema",
4263
+ "module": "src/utils/csv-parser.ts"
4264
+ }
4265
+ },
4266
+ {
4267
+ "kind": "js",
4268
+ "name": "generateCsvTemplate",
4269
+ "declaration": {
4270
+ "name": "generateCsvTemplate",
4271
+ "module": "src/utils/csv-parser.ts"
4272
+ }
4273
+ },
4274
+ {
4275
+ "kind": "js",
4276
+ "name": "downloadCsvTemplate",
4288
4277
  "declaration": {
4289
- "name": "isArray",
4290
- "module": "src/jsonforms/testers/isArray.ts"
4278
+ "name": "downloadCsvTemplate",
4279
+ "module": "src/utils/csv-parser.ts"
4291
4280
  }
4292
4281
  }
4293
4282
  ]
4294
4283
  },
4295
4284
  {
4296
4285
  "kind": "javascript-module",
4297
- "path": "src/jsonforms/testers/isDate.ts",
4298
- "declarations": [
4299
- {
4300
- "kind": "variable",
4301
- "name": "isOneOfDate"
4302
- }
4303
- ],
4304
- "exports": [
4305
- {
4306
- "kind": "js",
4307
- "name": "isOneOfDate",
4308
- "declaration": {
4309
- "name": "isOneOfDate",
4310
- "module": "src/jsonforms/testers/isDate.ts"
4311
- }
4312
- }
4313
- ]
4286
+ "path": "src/utils/filters.ts",
4287
+ "declarations": [],
4288
+ "exports": []
4314
4289
  },
4315
4290
  {
4316
4291
  "kind": "javascript-module",
4317
- "path": "src/jsonforms/testers/isInvisible.ts",
4292
+ "path": "src/utils/form-utils.ts",
4318
4293
  "declarations": [
4319
4294
  {
4320
4295
  "kind": "function",
4321
- "name": "isInvisible",
4296
+ "name": "removeDataPropertiesNotInSchema",
4322
4297
  "return": {
4323
4298
  "type": {
4324
- "text": "boolean"
4299
+ "text": ""
4325
4300
  }
4326
4301
  },
4327
4302
  "parameters": [
4328
4303
  {
4329
- "name": "uischema",
4330
- "type": {
4331
- "text": "UISchemaElement"
4332
- }
4333
- },
4334
- {
4335
- "name": "schema",
4304
+ "name": "data",
4336
4305
  "type": {
4337
- "text": "JsonSchema"
4338
- }
4306
+ "text": "any"
4307
+ },
4308
+ "description": "The data object to clean"
4339
4309
  },
4340
4310
  {
4341
- "name": "context",
4311
+ "name": "jsonSchema",
4342
4312
  "type": {
4343
- "text": "TesterContext"
4344
- }
4313
+ "text": "JSONSchema7"
4314
+ },
4315
+ "description": "The JSON schema to validate against"
4345
4316
  }
4346
- ]
4317
+ ],
4318
+ "description": "Removes data properties that aren't part of the schema"
4347
4319
  }
4348
4320
  ],
4349
4321
  "exports": [
4350
4322
  {
4351
4323
  "kind": "js",
4352
- "name": "isInvisible",
4324
+ "name": "removeDataPropertiesNotInSchema",
4353
4325
  "declaration": {
4354
- "name": "isInvisible",
4355
- "module": "src/jsonforms/testers/isInvisible.ts"
4326
+ "name": "removeDataPropertiesNotInSchema",
4327
+ "module": "src/utils/form-utils.ts"
4356
4328
  }
4357
4329
  }
4358
4330
  ]
4359
4331
  },
4360
4332
  {
4361
4333
  "kind": "javascript-module",
4362
- "path": "src/jsonforms/testers/isOneOfBoolean.ts",
4363
- "declarations": [
4364
- {
4365
- "kind": "variable",
4366
- "name": "isOneOfBoolean"
4367
- }
4368
- ],
4334
+ "path": "src/utils/index.ts",
4335
+ "declarations": [],
4369
4336
  "exports": [
4370
4337
  {
4371
4338
  "kind": "js",
4372
- "name": "isOneOfBoolean",
4339
+ "name": "*",
4373
4340
  "declaration": {
4374
- "name": "isOneOfBoolean",
4375
- "module": "src/jsonforms/testers/isOneOfBoolean.ts"
4341
+ "name": "*",
4342
+ "package": "./csv-parser"
4376
4343
  }
4377
- }
4378
- ]
4379
- },
4380
- {
4381
- "kind": "javascript-module",
4382
- "path": "src/jsonforms/testers/isOneOfEnum.ts",
4383
- "declarations": [
4384
- {
4385
- "kind": "variable",
4386
- "name": "isOneOfEnum"
4387
- }
4388
- ],
4389
- "exports": [
4344
+ },
4390
4345
  {
4391
4346
  "kind": "js",
4392
- "name": "isOneOfEnum",
4347
+ "name": "*",
4393
4348
  "declaration": {
4394
- "name": "isOneOfEnum",
4395
- "module": "src/jsonforms/testers/isOneOfEnum.ts"
4349
+ "name": "*",
4350
+ "package": "./filters"
4396
4351
  }
4397
- }
4398
- ]
4399
- },
4400
- {
4401
- "kind": "javascript-module",
4402
- "path": "src/jsonforms/testers/isOneOfNumber.ts",
4403
- "declarations": [
4404
- {
4405
- "kind": "variable",
4406
- "name": "isOneOfNumber"
4407
- }
4408
- ],
4409
- "exports": [
4352
+ },
4410
4353
  {
4411
4354
  "kind": "js",
4412
- "name": "isOneOfNumber",
4355
+ "name": "*",
4413
4356
  "declaration": {
4414
- "name": "isOneOfNumber",
4415
- "module": "src/jsonforms/testers/isOneOfNumber.ts"
4357
+ "name": "*",
4358
+ "package": "./logger"
4416
4359
  }
4417
- }
4418
- ]
4419
- },
4420
- {
4421
- "kind": "javascript-module",
4422
- "path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
4423
- "declarations": [
4424
- {
4425
- "kind": "variable",
4426
- "name": "isOneOfOptionMultiselect"
4427
- }
4428
- ],
4429
- "exports": [
4360
+ },
4430
4361
  {
4431
4362
  "kind": "js",
4432
- "name": "isOneOfOptionMultiselect",
4363
+ "name": "*",
4433
4364
  "declaration": {
4434
- "name": "isOneOfOptionMultiselect",
4435
- "module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
4365
+ "name": "*",
4366
+ "package": "./translation"
4436
4367
  }
4437
- }
4438
- ]
4439
- },
4440
- {
4441
- "kind": "javascript-module",
4442
- "path": "src/jsonforms/testers/isTime.ts",
4443
- "declarations": [
4368
+ },
4444
4369
  {
4445
- "kind": "variable",
4446
- "name": "isOneOfTime"
4447
- }
4448
- ],
4449
- "exports": [
4370
+ "kind": "js",
4371
+ "name": "*",
4372
+ "declaration": {
4373
+ "name": "*",
4374
+ "package": "./validation"
4375
+ }
4376
+ },
4450
4377
  {
4451
4378
  "kind": "js",
4452
- "name": "isOneOfTime",
4379
+ "name": "*",
4453
4380
  "declaration": {
4454
- "name": "isOneOfTime",
4455
- "module": "src/jsonforms/testers/isTime.ts"
4381
+ "name": "*",
4382
+ "package": "./types"
4456
4383
  }
4457
4384
  }
4458
4385
  ]
4459
4386
  },
4460
4387
  {
4461
4388
  "kind": "javascript-module",
4462
- "path": "src/jsonforms/testers/optionIs.ts",
4389
+ "path": "src/utils/logger.ts",
4390
+ "declarations": [],
4391
+ "exports": []
4392
+ },
4393
+ {
4394
+ "kind": "javascript-module",
4395
+ "path": "src/utils/schema-utils.ts",
4396
+ "declarations": [],
4397
+ "exports": []
4398
+ },
4399
+ {
4400
+ "kind": "javascript-module",
4401
+ "path": "src/utils/translation.ts",
4402
+ "declarations": [],
4403
+ "exports": []
4404
+ },
4405
+ {
4406
+ "kind": "javascript-module",
4407
+ "path": "src/utils/types.ts",
4408
+ "declarations": [],
4409
+ "exports": []
4410
+ },
4411
+ {
4412
+ "kind": "javascript-module",
4413
+ "path": "src/utils/validation.ts",
4463
4414
  "declarations": [
4464
4415
  {
4465
4416
  "kind": "function",
4466
- "name": "optionIs",
4417
+ "name": "mustMatch",
4418
+ "parameters": [
4419
+ {
4420
+ "name": "target",
4421
+ "type": {
4422
+ "text": "string"
4423
+ },
4424
+ "description": "any other field"
4425
+ }
4426
+ ],
4427
+ "description": "Ensures the value of the current field (the one the validator is on) matches the one of the target field.",
4467
4428
  "return": {
4468
4429
  "type": {
4469
- "text": "Tester"
4430
+ "text": ""
4431
+ }
4432
+ },
4433
+ "privacy": "public"
4434
+ },
4435
+ {
4436
+ "kind": "function",
4437
+ "name": "getAnyOfErrorMessage",
4438
+ "return": {
4439
+ "type": {
4440
+ "text": "string"
4470
4441
  }
4471
4442
  },
4472
4443
  "parameters": [
4473
4444
  {
4474
- "name": "optionName",
4445
+ "name": "errors",
4446
+ "type": {
4447
+ "text": "Array<any> | undefined"
4448
+ }
4449
+ },
4450
+ {
4451
+ "name": "schema",
4452
+ "type": {
4453
+ "text": "any"
4454
+ }
4455
+ },
4456
+ {
4457
+ "name": "controlPath",
4458
+ "type": {
4459
+ "text": "string | undefined"
4460
+ }
4461
+ },
4462
+ {
4463
+ "name": "uiCustomMsg",
4464
+ "optional": true,
4475
4465
  "type": {
4476
4466
  "text": "string"
4477
4467
  }
4478
4468
  }
4479
- ]
4469
+ ],
4470
+ "description": "Computes a human-friendly anyOf error message for a given control path.\nPrefers UI schema custom message, then JSON schema errorMessage.anyOf, then a constructed fallback.",
4471
+ "privacy": "public"
4480
4472
  }
4481
4473
  ],
4482
4474
  "exports": [
4483
4475
  {
4484
4476
  "kind": "js",
4485
- "name": "optionIs",
4477
+ "name": "mustMatch",
4486
4478
  "declaration": {
4487
- "name": "optionIs",
4488
- "module": "src/jsonforms/testers/optionIs.ts"
4479
+ "name": "mustMatch",
4480
+ "module": "src/utils/validation.ts"
4481
+ }
4482
+ },
4483
+ {
4484
+ "kind": "js",
4485
+ "name": "getAnyOfErrorMessage",
4486
+ "declaration": {
4487
+ "name": "getAnyOfErrorMessage",
4488
+ "module": "src/utils/validation.ts"
4489
4489
  }
4490
4490
  }
4491
4491
  ]