@genesislcap/foundation-forms 15.20.2-grid-pro-datasource-fix.1 → 15.21.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 +628 -628
  2. package/package.json +14 -14
@@ -1719,842 +1719,842 @@
1719
1719
  },
1720
1720
  {
1721
1721
  "kind": "javascript-module",
1722
- "path": "src/utils/confirmation-dialog-utils.ts",
1723
- "declarations": [],
1724
- "exports": []
1725
- },
1726
- {
1727
- "kind": "javascript-module",
1728
- "path": "src/utils/csv-parser.ts",
1722
+ "path": "src/jsonforms/json-forms.ts",
1729
1723
  "declarations": [
1730
1724
  {
1731
- "kind": "function",
1732
- "name": "parseCsv",
1733
- "return": {
1734
- "type": {
1735
- "text": ""
1736
- }
1737
- },
1738
- "parameters": [
1725
+ "kind": "class",
1726
+ "description": "JSON Forms host element for schema-driven UI.",
1727
+ "name": "JSONForms",
1728
+ "members": [
1739
1729
  {
1740
- "name": "content",
1730
+ "kind": "field",
1731
+ "name": "_submitted",
1741
1732
  "type": {
1742
- "text": "string"
1733
+ "text": "boolean"
1743
1734
  },
1744
- "description": "The CSV content as a string"
1745
- }
1746
- ],
1747
- "description": "Parses a CSV string into headers and rows using PapaParse.\nHandles quoted fields, escaped quotes, empty values, and mixed line endings.",
1748
- "privacy": "public"
1749
- },
1750
- {
1751
- "kind": "function",
1752
- "name": "mapCsvToSchema",
1753
- "return": {
1754
- "type": {
1755
- "text": ""
1756
- }
1757
- },
1758
- "parameters": [
1735
+ "privacy": "private",
1736
+ "default": "false"
1737
+ },
1759
1738
  {
1760
- "name": "csvRows",
1739
+ "kind": "field",
1740
+ "name": "serverErrors",
1761
1741
  "type": {
1762
- "text": "Record<string, string>[]"
1742
+ "text": "ErrorObject[]"
1763
1743
  },
1764
- "description": "The parsed CSV rows"
1744
+ "privacy": "private",
1745
+ "default": "[]"
1765
1746
  },
1766
1747
  {
1767
- "name": "schema",
1748
+ "kind": "field",
1749
+ "name": "submitted",
1768
1750
  "type": {
1769
- "text": "JSONSchema7 | undefined"
1770
- },
1771
- "description": "The JSON schema defining the fields"
1751
+ "text": "boolean"
1752
+ }
1772
1753
  },
1773
1754
  {
1774
- "name": "uiSchema",
1775
- "optional": true,
1755
+ "kind": "field",
1756
+ "name": "prefix"
1757
+ },
1758
+ {
1759
+ "kind": "method",
1760
+ "name": "prefixChanged"
1761
+ },
1762
+ {
1763
+ "kind": "field",
1764
+ "name": "jsonforms"
1765
+ },
1766
+ {
1767
+ "kind": "field",
1768
+ "name": "i18n"
1769
+ },
1770
+ {
1771
+ "kind": "field",
1772
+ "name": "uichemaToUse"
1773
+ },
1774
+ {
1775
+ "kind": "field",
1776
+ "name": "schema"
1777
+ },
1778
+ {
1779
+ "kind": "method",
1780
+ "name": "schemaChanged"
1781
+ },
1782
+ {
1783
+ "kind": "field",
1784
+ "name": "uischema",
1776
1785
  "type": {
1777
- "text": "UiSchema"
1778
- },
1779
- "description": "Optional UI schema to map labels to field names on import"
1780
- }
1781
- ],
1782
- "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.",
1783
- "privacy": "public"
1784
- },
1785
- {
1786
- "kind": "function",
1787
- "name": "generateCsvTemplate",
1788
- "return": {
1789
- "type": {
1790
- "text": ""
1791
- }
1792
- },
1793
- "parameters": [
1786
+ "text": "UISchemaElement"
1787
+ }
1788
+ },
1794
1789
  {
1795
- "name": "schema",
1790
+ "kind": "method",
1791
+ "name": "uischemaChanged"
1792
+ },
1793
+ {
1794
+ "kind": "field",
1795
+ "name": "data"
1796
+ },
1797
+ {
1798
+ "kind": "method",
1799
+ "name": "dataChanged"
1800
+ },
1801
+ {
1802
+ "kind": "field",
1803
+ "name": "renderers",
1796
1804
  "type": {
1797
- "text": "JSONSchema7 | undefined"
1798
- },
1799
- "description": "The JSON schema defining the fields"
1805
+ "text": "JsonFormsRendererRegistryEntry[]"
1806
+ }
1800
1807
  },
1801
1808
  {
1802
- "name": "uiSchema",
1803
- "optional": true,
1809
+ "kind": "method",
1810
+ "name": "renderersChanged"
1811
+ },
1812
+ {
1813
+ "kind": "field",
1814
+ "name": "validationMode",
1804
1815
  "type": {
1805
- "text": "UiSchema"
1806
- },
1807
- "description": "Optional UI schema to determine field order and visibility"
1816
+ "text": "ValidationMode"
1817
+ }
1808
1818
  },
1809
1819
  {
1810
- "name": "includeOptionalFields",
1811
- "default": "true",
1820
+ "kind": "method",
1821
+ "name": "validationModeChanged"
1822
+ },
1823
+ {
1824
+ "kind": "field",
1825
+ "name": "ajv",
1826
+ "type": {
1827
+ "text": "Ajv"
1828
+ }
1829
+ },
1830
+ {
1831
+ "kind": "method",
1832
+ "name": "ajvChanged"
1833
+ },
1834
+ {
1835
+ "kind": "field",
1836
+ "name": "readonly",
1812
1837
  "type": {
1813
1838
  "text": "boolean"
1839
+ }
1840
+ },
1841
+ {
1842
+ "kind": "method",
1843
+ "name": "readonlyChanged"
1844
+ },
1845
+ {
1846
+ "kind": "field",
1847
+ "name": "config",
1848
+ "type": {
1849
+ "text": "any"
1850
+ }
1851
+ },
1852
+ {
1853
+ "kind": "method",
1854
+ "name": "configChanged"
1855
+ },
1856
+ {
1857
+ "kind": "field",
1858
+ "name": "rowSubmitStatuses",
1859
+ "type": {
1860
+ "text": "Map<number, BulkRowStatus>"
1814
1861
  },
1815
- "description": "Whether to include optional fields when no UI schema (default: true)"
1862
+ "default": "new Map()",
1863
+ "description": "Row submit statuses for bulk insert mode.\nPassed from the parent foundation-form."
1816
1864
  },
1817
1865
  {
1818
- "name": "includeBom",
1819
- "default": "true",
1866
+ "kind": "method",
1867
+ "name": "rowSubmitStatusesChanged"
1868
+ },
1869
+ {
1870
+ "kind": "field",
1871
+ "name": "bulkInsert",
1820
1872
  "type": {
1821
1873
  "text": "boolean"
1822
1874
  },
1823
- "description": "Whether to prepend UTF-8 BOM for Excel compatibility (default: true)"
1824
- }
1825
- ],
1826
- "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.",
1827
- "privacy": "public"
1828
- },
1829
- {
1830
- "kind": "function",
1831
- "name": "downloadCsvTemplate",
1832
- "return": {
1833
- "type": {
1834
- "text": "void"
1835
- }
1836
- },
1837
- "parameters": [
1875
+ "default": "false",
1876
+ "description": "Whether the form is in bulk insert mode.\nPassed from the parent foundation-form."
1877
+ },
1838
1878
  {
1839
- "name": "csvContent",
1879
+ "kind": "method",
1880
+ "name": "bulkInsertChanged"
1881
+ },
1882
+ {
1883
+ "kind": "field",
1884
+ "name": "serverFieldErrors",
1840
1885
  "type": {
1841
- "text": "string"
1886
+ "text": "ErrorObject[]"
1842
1887
  },
1843
- "description": "The CSV content to download"
1888
+ "default": "[]",
1889
+ "description": "Server-side field validation errors from the parent foundation-form.\nSynced into internal state when the binding changes."
1844
1890
  },
1845
1891
  {
1846
- "name": "fileName",
1847
- "default": "'template.csv'",
1892
+ "kind": "method",
1893
+ "name": "serverFieldErrorsChanged"
1894
+ },
1895
+ {
1896
+ "kind": "field",
1897
+ "name": "props",
1848
1898
  "type": {
1849
- "text": "string"
1899
+ "text": "RendererProps"
1850
1900
  },
1851
- "description": "The name for the downloaded file (default: 'template.csv')"
1852
- }
1853
- ],
1854
- "description": "Triggers a download of the CSV template file in the browser.",
1855
- "privacy": "public"
1856
- }
1857
- ],
1858
- "exports": [
1859
- {
1860
- "kind": "js",
1861
- "name": "parseCsv",
1862
- "declaration": {
1863
- "name": "parseCsv",
1864
- "module": "src/utils/csv-parser.ts"
1865
- }
1866
- },
1867
- {
1868
- "kind": "js",
1869
- "name": "mapCsvToSchema",
1870
- "declaration": {
1871
- "name": "mapCsvToSchema",
1872
- "module": "src/utils/csv-parser.ts"
1873
- }
1874
- },
1875
- {
1876
- "kind": "js",
1877
- "name": "generateCsvTemplate",
1878
- "declaration": {
1879
- "name": "generateCsvTemplate",
1880
- "module": "src/utils/csv-parser.ts"
1881
- }
1882
- },
1883
- {
1884
- "kind": "js",
1885
- "name": "downloadCsvTemplate",
1886
- "declaration": {
1887
- "name": "downloadCsvTemplate",
1888
- "module": "src/utils/csv-parser.ts"
1889
- }
1890
- }
1891
- ]
1892
- },
1893
- {
1894
- "kind": "javascript-module",
1895
- "path": "src/utils/filters.ts",
1896
- "declarations": [],
1897
- "exports": []
1898
- },
1899
- {
1900
- "kind": "javascript-module",
1901
- "path": "src/utils/form-utils.ts",
1902
- "declarations": [
1903
- {
1904
- "kind": "function",
1905
- "name": "removeDataPropertiesNotInSchema",
1906
- "return": {
1907
- "type": {
1908
- "text": ""
1909
- }
1910
- },
1911
- "parameters": [
1901
+ "readonly": true
1902
+ },
1912
1903
  {
1913
- "name": "data",
1914
- "type": {
1915
- "text": "any"
1904
+ "kind": "field",
1905
+ "name": "dispatch"
1906
+ },
1907
+ {
1908
+ "kind": "method",
1909
+ "name": "setServerErrors",
1910
+ "parameters": [
1911
+ {
1912
+ "name": "errors",
1913
+ "type": {
1914
+ "text": "ErrorObject[]"
1915
+ }
1916
+ }
1917
+ ],
1918
+ "description": "Applies server-side validation errors returned from an EVENT_NACK response.\nErrors are merged into `core.additionalErrors` and shown inline on fields.",
1919
+ "privacy": "public"
1920
+ },
1921
+ {
1922
+ "kind": "method",
1923
+ "name": "clearServerErrors",
1924
+ "description": "Clears all server-side validation errors from the form.",
1925
+ "privacy": "public"
1926
+ },
1927
+ {
1928
+ "kind": "method",
1929
+ "name": "buildAdditionalErrors",
1930
+ "privacy": "private",
1931
+ "return": {
1932
+ "type": {
1933
+ "text": "ErrorObject[]"
1934
+ }
1916
1935
  },
1917
- "description": "The data object to clean"
1936
+ "parameters": [
1937
+ {
1938
+ "name": "uischema",
1939
+ "type": {
1940
+ "text": "UISchemaElement"
1941
+ }
1942
+ },
1943
+ {
1944
+ "name": "data",
1945
+ "type": {
1946
+ "text": "any"
1947
+ }
1948
+ }
1949
+ ]
1918
1950
  },
1919
1951
  {
1920
- "name": "jsonSchema",
1952
+ "kind": "method",
1953
+ "name": "applyAdditionalErrorsToCore",
1954
+ "privacy": "private",
1955
+ "parameters": [
1956
+ {
1957
+ "name": "nextCore",
1958
+ "type": {
1959
+ "text": "JsonFormsCore"
1960
+ }
1961
+ },
1962
+ {
1963
+ "name": "changedPath",
1964
+ "optional": true,
1965
+ "type": {
1966
+ "text": "string"
1967
+ }
1968
+ }
1969
+ ]
1970
+ },
1971
+ {
1972
+ "kind": "method",
1973
+ "name": "refreshAdditionalErrors",
1974
+ "privacy": "private"
1975
+ },
1976
+ {
1977
+ "kind": "field",
1978
+ "name": "validate",
1979
+ "description": "Performs client-side validation by running the validator defined in the UI schema.",
1980
+ "parameters": [
1981
+ {
1982
+ "description": "the UI schema",
1983
+ "name": "uischema"
1984
+ },
1985
+ {
1986
+ "description": "the data to validate against (defaults to the current core data)",
1987
+ "name": "data"
1988
+ }
1989
+ ],
1990
+ "return": {
1991
+ "type": {
1992
+ "text": ""
1993
+ }
1994
+ }
1995
+ },
1996
+ {
1997
+ "kind": "method",
1998
+ "name": "copyUISchemaToClipboard"
1999
+ }
2000
+ ],
2001
+ "events": [
2002
+ {
2003
+ "description": "Bubbles from nested dispatch-renderer when a control emits change (e.g. multiselect)",
2004
+ "name": "change"
2005
+ },
2006
+ {
2007
+ "description": "Fired when bound form data changes. detail: `FormDataChangeEventDetail`",
2008
+ "name": "data-change"
2009
+ }
2010
+ ],
2011
+ "attributes": [
2012
+ {
1921
2013
  "type": {
1922
- "text": "JSONSchema7"
2014
+ "text": "boolean"
1923
2015
  },
1924
- "description": "The JSON schema to validate against"
2016
+ "fieldName": "readonly"
1925
2017
  }
1926
2018
  ],
1927
- "description": "Removes data properties that aren't part of the schema"
2019
+ "superclass": {
2020
+ "name": "FASTElement",
2021
+ "package": "@microsoft/fast-element"
2022
+ },
2023
+ "tagName": "json-forms",
2024
+ "customElement": true
1928
2025
  }
1929
2026
  ],
1930
2027
  "exports": [
1931
2028
  {
1932
2029
  "kind": "js",
1933
- "name": "removeDataPropertiesNotInSchema",
1934
- "declaration": {
1935
- "name": "removeDataPropertiesNotInSchema",
1936
- "module": "src/utils/form-utils.ts"
1937
- }
1938
- }
1939
- ]
1940
- },
1941
- {
1942
- "kind": "javascript-module",
1943
- "path": "src/utils/index.ts",
1944
- "declarations": [],
1945
- "exports": [
1946
- {
1947
- "kind": "js",
1948
- "name": "*",
1949
- "declaration": {
1950
- "name": "*",
1951
- "package": "./csv-parser"
1952
- }
1953
- },
1954
- {
1955
- "kind": "js",
1956
- "name": "*",
1957
- "declaration": {
1958
- "name": "*",
1959
- "package": "./review-utils"
1960
- }
1961
- },
1962
- {
1963
- "kind": "js",
1964
- "name": "*",
1965
- "declaration": {
1966
- "name": "*",
1967
- "package": "./filters"
1968
- }
1969
- },
1970
- {
1971
- "kind": "js",
1972
- "name": "*",
1973
- "declaration": {
1974
- "name": "*",
1975
- "package": "./logger"
1976
- }
1977
- },
1978
- {
1979
- "kind": "js",
1980
- "name": "*",
1981
- "declaration": {
1982
- "name": "*",
1983
- "package": "./translation"
1984
- }
1985
- },
1986
- {
1987
- "kind": "js",
1988
- "name": "*",
1989
- "declaration": {
1990
- "name": "*",
1991
- "package": "./validation"
1992
- }
1993
- },
1994
- {
1995
- "kind": "js",
1996
- "name": "*",
2030
+ "name": "JSONForms",
1997
2031
  "declaration": {
1998
- "name": "*",
1999
- "package": "./server-errors"
2032
+ "name": "JSONForms",
2033
+ "module": "src/jsonforms/json-forms.ts"
2000
2034
  }
2001
2035
  },
2002
2036
  {
2003
- "kind": "js",
2004
- "name": "*",
2037
+ "kind": "custom-element-definition",
2038
+ "name": "json-forms",
2005
2039
  "declaration": {
2006
- "name": "*",
2007
- "package": "./types"
2040
+ "name": "JSONForms",
2041
+ "module": "src/jsonforms/json-forms.ts"
2008
2042
  }
2009
2043
  }
2010
2044
  ]
2011
2045
  },
2012
2046
  {
2013
2047
  "kind": "javascript-module",
2014
- "path": "src/utils/logger.ts",
2015
- "declarations": [],
2016
- "exports": []
2017
- },
2018
- {
2019
- "kind": "javascript-module",
2020
- "path": "src/utils/review-utils.ts",
2048
+ "path": "src/utils/confirmation-dialog-utils.ts",
2021
2049
  "declarations": [],
2022
2050
  "exports": []
2023
2051
  },
2024
2052
  {
2025
2053
  "kind": "javascript-module",
2026
- "path": "src/utils/schema-utils.ts",
2054
+ "path": "src/utils/csv-parser.ts",
2027
2055
  "declarations": [
2028
2056
  {
2029
2057
  "kind": "function",
2030
- "name": "extractErrorScopes",
2058
+ "name": "parseCsv",
2031
2059
  "return": {
2032
2060
  "type": {
2033
- "text": "string[]"
2061
+ "text": ""
2034
2062
  }
2035
2063
  },
2036
2064
  "parameters": [
2037
2065
  {
2038
- "name": "errors",
2066
+ "name": "content",
2039
2067
  "type": {
2040
- "text": "ErrorObject[]"
2041
- }
2068
+ "text": "string"
2069
+ },
2070
+ "description": "The CSV content as a string"
2042
2071
  }
2043
2072
  ],
2044
- "description": "Converts AJV validation errors to the JSON Schema scope strings they correspond to\n(e.g. `#/properties/ADDRESS/properties/STREET`). Used to match errors back to UI\nschema controls for features like categorization-tab error indicators."
2073
+ "description": "Parses a CSV string into headers and rows using PapaParse.\nHandles quoted fields, escaped quotes, empty values, and mixed line endings.",
2074
+ "privacy": "public"
2045
2075
  },
2046
2076
  {
2047
2077
  "kind": "function",
2048
- "name": "uiSchemaHasAnyError",
2078
+ "name": "mapCsvToSchema",
2049
2079
  "return": {
2050
2080
  "type": {
2051
- "text": "boolean"
2081
+ "text": ""
2052
2082
  }
2053
2083
  },
2054
2084
  "parameters": [
2055
2085
  {
2056
- "name": "uiSchema",
2086
+ "name": "csvRows",
2057
2087
  "type": {
2058
- "text": "UiSchemaElement | UiSchema"
2059
- }
2088
+ "text": "Record<string, string>[]"
2089
+ },
2090
+ "description": "The parsed CSV rows"
2060
2091
  },
2061
2092
  {
2062
- "name": "errorScopes",
2093
+ "name": "schema",
2063
2094
  "type": {
2064
- "text": "string[]"
2065
- }
2095
+ "text": "JSONSchema7 | undefined"
2096
+ },
2097
+ "description": "The JSON schema defining the fields"
2098
+ },
2099
+ {
2100
+ "name": "uiSchema",
2101
+ "optional": true,
2102
+ "type": {
2103
+ "text": "UiSchema"
2104
+ },
2105
+ "description": "Optional UI schema to map labels to field names on import"
2066
2106
  }
2067
2107
  ],
2068
- "description": "Returns true when `uiSchema` (or any of its descendants) has a scope that appears\nin `errorScopes`. Walks both `elements` and `options.childElements`."
2069
- }
2070
- ],
2071
- "exports": [
2072
- {
2073
- "kind": "js",
2074
- "name": "extractErrorScopes",
2075
- "declaration": {
2076
- "name": "extractErrorScopes",
2077
- "module": "src/utils/schema-utils.ts"
2078
- }
2108
+ "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.",
2109
+ "privacy": "public"
2079
2110
  },
2080
- {
2081
- "kind": "js",
2082
- "name": "uiSchemaHasAnyError",
2083
- "declaration": {
2084
- "name": "uiSchemaHasAnyError",
2085
- "module": "src/utils/schema-utils.ts"
2086
- }
2087
- }
2088
- ]
2089
- },
2090
- {
2091
- "kind": "javascript-module",
2092
- "path": "src/utils/server-errors.ts",
2093
- "declarations": [
2094
2111
  {
2095
2112
  "kind": "function",
2096
- "name": "mapGenesisFieldErrorsToAdditionalErrors",
2113
+ "name": "generateCsvTemplate",
2097
2114
  "return": {
2098
2115
  "type": {
2099
- "text": "ErrorObject[]"
2116
+ "text": ""
2100
2117
  }
2101
2118
  },
2102
2119
  "parameters": [
2103
2120
  {
2104
- "name": "errors",
2121
+ "name": "schema",
2105
2122
  "type": {
2106
- "text": "GenesisFieldError[] | undefined"
2123
+ "text": "JSONSchema7 | undefined"
2107
2124
  },
2108
- "description": "Genesis ERROR array from an EVENT_NACK response"
2125
+ "description": "The JSON schema defining the fields"
2109
2126
  },
2110
2127
  {
2111
- "name": "schema",
2128
+ "name": "uiSchema",
2112
2129
  "optional": true,
2113
2130
  "type": {
2114
- "text": "JSONSchema7"
2131
+ "text": "UiSchema"
2115
2132
  },
2116
- "description": "JSON schema used to resolve `parentSchema` for each field"
2133
+ "description": "Optional UI schema to determine field order and visibility"
2117
2134
  },
2118
2135
  {
2119
- "name": "instancePathPrefix",
2120
- "optional": true,
2136
+ "name": "includeOptionalFields",
2137
+ "default": "true",
2138
+ "type": {
2139
+ "text": "boolean"
2140
+ },
2141
+ "description": "Whether to include optional fields when no UI schema (default: true)"
2142
+ },
2143
+ {
2144
+ "name": "includeBom",
2145
+ "default": "true",
2146
+ "type": {
2147
+ "text": "boolean"
2148
+ },
2149
+ "description": "Whether to prepend UTF-8 BOM for Excel compatibility (default: true)"
2150
+ }
2151
+ ],
2152
+ "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.",
2153
+ "privacy": "public"
2154
+ },
2155
+ {
2156
+ "kind": "function",
2157
+ "name": "downloadCsvTemplate",
2158
+ "return": {
2159
+ "type": {
2160
+ "text": "void"
2161
+ }
2162
+ },
2163
+ "parameters": [
2164
+ {
2165
+ "name": "csvContent",
2121
2166
  "type": {
2122
2167
  "text": "string"
2123
2168
  },
2124
- "description": "Optional prefix for bulk-insert rows (e.g. `/items/0`)"
2169
+ "description": "The CSV content to download"
2170
+ },
2171
+ {
2172
+ "name": "fileName",
2173
+ "default": "'template.csv'",
2174
+ "type": {
2175
+ "text": "string"
2176
+ },
2177
+ "description": "The name for the downloaded file (default: 'template.csv')"
2125
2178
  }
2126
2179
  ],
2127
- "description": "Maps Genesis commitEvent NACK `ERROR[]` entries to JsonForms `ErrorObject[]`\nsuitable for `additionalErrors` on the form core.\n\nOnly entries with a `FIELD` or `PATH` are mapped; generic errors (no field\nassociation) are omitted so callers can still surface them via toast/dialog.",
2180
+ "description": "Triggers a download of the CSV template file in the browser.",
2128
2181
  "privacy": "public"
2129
2182
  }
2130
2183
  ],
2131
2184
  "exports": [
2132
2185
  {
2133
2186
  "kind": "js",
2134
- "name": "mapGenesisFieldErrorsToAdditionalErrors",
2187
+ "name": "parseCsv",
2135
2188
  "declaration": {
2136
- "name": "mapGenesisFieldErrorsToAdditionalErrors",
2137
- "module": "src/utils/server-errors.ts"
2189
+ "name": "parseCsv",
2190
+ "module": "src/utils/csv-parser.ts"
2191
+ }
2192
+ },
2193
+ {
2194
+ "kind": "js",
2195
+ "name": "mapCsvToSchema",
2196
+ "declaration": {
2197
+ "name": "mapCsvToSchema",
2198
+ "module": "src/utils/csv-parser.ts"
2199
+ }
2200
+ },
2201
+ {
2202
+ "kind": "js",
2203
+ "name": "generateCsvTemplate",
2204
+ "declaration": {
2205
+ "name": "generateCsvTemplate",
2206
+ "module": "src/utils/csv-parser.ts"
2207
+ }
2208
+ },
2209
+ {
2210
+ "kind": "js",
2211
+ "name": "downloadCsvTemplate",
2212
+ "declaration": {
2213
+ "name": "downloadCsvTemplate",
2214
+ "module": "src/utils/csv-parser.ts"
2138
2215
  }
2139
2216
  }
2140
2217
  ]
2141
2218
  },
2142
2219
  {
2143
2220
  "kind": "javascript-module",
2144
- "path": "src/utils/translation.ts",
2145
- "declarations": [],
2146
- "exports": []
2147
- },
2148
- {
2149
- "kind": "javascript-module",
2150
- "path": "src/utils/types.ts",
2221
+ "path": "src/utils/filters.ts",
2151
2222
  "declarations": [],
2152
2223
  "exports": []
2153
2224
  },
2154
2225
  {
2155
2226
  "kind": "javascript-module",
2156
- "path": "src/utils/validation.ts",
2227
+ "path": "src/utils/form-utils.ts",
2157
2228
  "declarations": [
2158
2229
  {
2159
2230
  "kind": "function",
2160
- "name": "mustMatch",
2161
- "parameters": [
2162
- {
2163
- "name": "target",
2164
- "type": {
2165
- "text": "string"
2166
- },
2167
- "description": "any other field"
2168
- }
2169
- ],
2170
- "description": "Ensures the value of the current field (the one the validator is on) matches the one of the target field.",
2231
+ "name": "removeDataPropertiesNotInSchema",
2171
2232
  "return": {
2172
2233
  "type": {
2173
2234
  "text": ""
2174
2235
  }
2175
2236
  },
2176
- "privacy": "public"
2177
- },
2178
- {
2179
- "kind": "function",
2180
- "name": "getAnyOfErrorMessage",
2181
- "return": {
2182
- "type": {
2183
- "text": "string"
2184
- }
2185
- },
2186
2237
  "parameters": [
2187
2238
  {
2188
- "name": "errors",
2189
- "type": {
2190
- "text": "Array<any> | undefined"
2191
- }
2192
- },
2193
- {
2194
- "name": "schema",
2239
+ "name": "data",
2195
2240
  "type": {
2196
2241
  "text": "any"
2197
- }
2198
- },
2199
- {
2200
- "name": "controlPath",
2201
- "type": {
2202
- "text": "string | undefined"
2203
- }
2242
+ },
2243
+ "description": "The data object to clean"
2204
2244
  },
2205
2245
  {
2206
- "name": "uiCustomMsg",
2207
- "optional": true,
2246
+ "name": "jsonSchema",
2208
2247
  "type": {
2209
- "text": "string"
2210
- }
2248
+ "text": "JSONSchema7"
2249
+ },
2250
+ "description": "The JSON schema to validate against"
2211
2251
  }
2212
2252
  ],
2213
- "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.",
2214
- "privacy": "public"
2253
+ "description": "Removes data properties that aren't part of the schema"
2215
2254
  }
2216
2255
  ],
2217
2256
  "exports": [
2218
2257
  {
2219
2258
  "kind": "js",
2220
- "name": "mustMatch",
2221
- "declaration": {
2222
- "name": "mustMatch",
2223
- "module": "src/utils/validation.ts"
2224
- }
2225
- },
2226
- {
2227
- "kind": "js",
2228
- "name": "getAnyOfErrorMessage",
2259
+ "name": "removeDataPropertiesNotInSchema",
2229
2260
  "declaration": {
2230
- "name": "getAnyOfErrorMessage",
2231
- "module": "src/utils/validation.ts"
2261
+ "name": "removeDataPropertiesNotInSchema",
2262
+ "module": "src/utils/form-utils.ts"
2232
2263
  }
2233
2264
  }
2234
2265
  ]
2235
2266
  },
2236
2267
  {
2237
2268
  "kind": "javascript-module",
2238
- "path": "src/jsonforms/json-forms.ts",
2239
- "declarations": [
2269
+ "path": "src/utils/index.ts",
2270
+ "declarations": [],
2271
+ "exports": [
2240
2272
  {
2241
- "kind": "class",
2242
- "description": "JSON Forms host element for schema-driven UI.",
2243
- "name": "JSONForms",
2244
- "members": [
2245
- {
2246
- "kind": "field",
2247
- "name": "_submitted",
2248
- "type": {
2249
- "text": "boolean"
2250
- },
2251
- "privacy": "private",
2252
- "default": "false"
2253
- },
2254
- {
2255
- "kind": "field",
2256
- "name": "serverErrors",
2257
- "type": {
2258
- "text": "ErrorObject[]"
2259
- },
2260
- "privacy": "private",
2261
- "default": "[]"
2262
- },
2263
- {
2264
- "kind": "field",
2265
- "name": "submitted",
2266
- "type": {
2267
- "text": "boolean"
2268
- }
2269
- },
2270
- {
2271
- "kind": "field",
2272
- "name": "prefix"
2273
- },
2274
- {
2275
- "kind": "method",
2276
- "name": "prefixChanged"
2277
- },
2278
- {
2279
- "kind": "field",
2280
- "name": "jsonforms"
2281
- },
2282
- {
2283
- "kind": "field",
2284
- "name": "i18n"
2285
- },
2286
- {
2287
- "kind": "field",
2288
- "name": "uichemaToUse"
2289
- },
2290
- {
2291
- "kind": "field",
2292
- "name": "schema"
2293
- },
2294
- {
2295
- "kind": "method",
2296
- "name": "schemaChanged"
2297
- },
2298
- {
2299
- "kind": "field",
2300
- "name": "uischema",
2301
- "type": {
2302
- "text": "UISchemaElement"
2303
- }
2304
- },
2305
- {
2306
- "kind": "method",
2307
- "name": "uischemaChanged"
2308
- },
2309
- {
2310
- "kind": "field",
2311
- "name": "data"
2312
- },
2313
- {
2314
- "kind": "method",
2315
- "name": "dataChanged"
2316
- },
2317
- {
2318
- "kind": "field",
2319
- "name": "renderers",
2320
- "type": {
2321
- "text": "JsonFormsRendererRegistryEntry[]"
2322
- }
2323
- },
2324
- {
2325
- "kind": "method",
2326
- "name": "renderersChanged"
2327
- },
2328
- {
2329
- "kind": "field",
2330
- "name": "validationMode",
2331
- "type": {
2332
- "text": "ValidationMode"
2333
- }
2334
- },
2335
- {
2336
- "kind": "method",
2337
- "name": "validationModeChanged"
2338
- },
2273
+ "kind": "js",
2274
+ "name": "*",
2275
+ "declaration": {
2276
+ "name": "*",
2277
+ "package": "./csv-parser"
2278
+ }
2279
+ },
2280
+ {
2281
+ "kind": "js",
2282
+ "name": "*",
2283
+ "declaration": {
2284
+ "name": "*",
2285
+ "package": "./review-utils"
2286
+ }
2287
+ },
2288
+ {
2289
+ "kind": "js",
2290
+ "name": "*",
2291
+ "declaration": {
2292
+ "name": "*",
2293
+ "package": "./filters"
2294
+ }
2295
+ },
2296
+ {
2297
+ "kind": "js",
2298
+ "name": "*",
2299
+ "declaration": {
2300
+ "name": "*",
2301
+ "package": "./logger"
2302
+ }
2303
+ },
2304
+ {
2305
+ "kind": "js",
2306
+ "name": "*",
2307
+ "declaration": {
2308
+ "name": "*",
2309
+ "package": "./translation"
2310
+ }
2311
+ },
2312
+ {
2313
+ "kind": "js",
2314
+ "name": "*",
2315
+ "declaration": {
2316
+ "name": "*",
2317
+ "package": "./validation"
2318
+ }
2319
+ },
2320
+ {
2321
+ "kind": "js",
2322
+ "name": "*",
2323
+ "declaration": {
2324
+ "name": "*",
2325
+ "package": "./server-errors"
2326
+ }
2327
+ },
2328
+ {
2329
+ "kind": "js",
2330
+ "name": "*",
2331
+ "declaration": {
2332
+ "name": "*",
2333
+ "package": "./types"
2334
+ }
2335
+ }
2336
+ ]
2337
+ },
2338
+ {
2339
+ "kind": "javascript-module",
2340
+ "path": "src/utils/logger.ts",
2341
+ "declarations": [],
2342
+ "exports": []
2343
+ },
2344
+ {
2345
+ "kind": "javascript-module",
2346
+ "path": "src/utils/review-utils.ts",
2347
+ "declarations": [],
2348
+ "exports": []
2349
+ },
2350
+ {
2351
+ "kind": "javascript-module",
2352
+ "path": "src/utils/schema-utils.ts",
2353
+ "declarations": [
2354
+ {
2355
+ "kind": "function",
2356
+ "name": "extractErrorScopes",
2357
+ "return": {
2358
+ "type": {
2359
+ "text": "string[]"
2360
+ }
2361
+ },
2362
+ "parameters": [
2339
2363
  {
2340
- "kind": "field",
2341
- "name": "ajv",
2364
+ "name": "errors",
2342
2365
  "type": {
2343
- "text": "Ajv"
2366
+ "text": "ErrorObject[]"
2344
2367
  }
2345
- },
2346
- {
2347
- "kind": "method",
2348
- "name": "ajvChanged"
2349
- },
2368
+ }
2369
+ ],
2370
+ "description": "Converts AJV validation errors to the JSON Schema scope strings they correspond to\n(e.g. `#/properties/ADDRESS/properties/STREET`). Used to match errors back to UI\nschema controls for features like categorization-tab error indicators."
2371
+ },
2372
+ {
2373
+ "kind": "function",
2374
+ "name": "uiSchemaHasAnyError",
2375
+ "return": {
2376
+ "type": {
2377
+ "text": "boolean"
2378
+ }
2379
+ },
2380
+ "parameters": [
2350
2381
  {
2351
- "kind": "field",
2352
- "name": "readonly",
2382
+ "name": "uiSchema",
2353
2383
  "type": {
2354
- "text": "boolean"
2384
+ "text": "UiSchemaElement | UiSchema"
2355
2385
  }
2356
2386
  },
2357
2387
  {
2358
- "kind": "method",
2359
- "name": "readonlyChanged"
2360
- },
2361
- {
2362
- "kind": "field",
2363
- "name": "config",
2388
+ "name": "errorScopes",
2364
2389
  "type": {
2365
- "text": "any"
2390
+ "text": "string[]"
2366
2391
  }
2367
- },
2368
- {
2369
- "kind": "method",
2370
- "name": "configChanged"
2371
- },
2392
+ }
2393
+ ],
2394
+ "description": "Returns true when `uiSchema` (or any of its descendants) has a scope that appears\nin `errorScopes`. Walks both `elements` and `options.childElements`."
2395
+ }
2396
+ ],
2397
+ "exports": [
2398
+ {
2399
+ "kind": "js",
2400
+ "name": "extractErrorScopes",
2401
+ "declaration": {
2402
+ "name": "extractErrorScopes",
2403
+ "module": "src/utils/schema-utils.ts"
2404
+ }
2405
+ },
2406
+ {
2407
+ "kind": "js",
2408
+ "name": "uiSchemaHasAnyError",
2409
+ "declaration": {
2410
+ "name": "uiSchemaHasAnyError",
2411
+ "module": "src/utils/schema-utils.ts"
2412
+ }
2413
+ }
2414
+ ]
2415
+ },
2416
+ {
2417
+ "kind": "javascript-module",
2418
+ "path": "src/utils/server-errors.ts",
2419
+ "declarations": [
2420
+ {
2421
+ "kind": "function",
2422
+ "name": "mapGenesisFieldErrorsToAdditionalErrors",
2423
+ "return": {
2424
+ "type": {
2425
+ "text": "ErrorObject[]"
2426
+ }
2427
+ },
2428
+ "parameters": [
2372
2429
  {
2373
- "kind": "field",
2374
- "name": "rowSubmitStatuses",
2430
+ "name": "errors",
2375
2431
  "type": {
2376
- "text": "Map<number, BulkRowStatus>"
2432
+ "text": "GenesisFieldError[] | undefined"
2377
2433
  },
2378
- "default": "new Map()",
2379
- "description": "Row submit statuses for bulk insert mode.\nPassed from the parent foundation-form."
2380
- },
2381
- {
2382
- "kind": "method",
2383
- "name": "rowSubmitStatusesChanged"
2434
+ "description": "Genesis ERROR array from an EVENT_NACK response"
2384
2435
  },
2385
2436
  {
2386
- "kind": "field",
2387
- "name": "bulkInsert",
2437
+ "name": "schema",
2438
+ "optional": true,
2388
2439
  "type": {
2389
- "text": "boolean"
2440
+ "text": "JSONSchema7"
2390
2441
  },
2391
- "default": "false",
2392
- "description": "Whether the form is in bulk insert mode.\nPassed from the parent foundation-form."
2393
- },
2394
- {
2395
- "kind": "method",
2396
- "name": "bulkInsertChanged"
2442
+ "description": "JSON schema used to resolve `parentSchema` for each field"
2397
2443
  },
2398
2444
  {
2399
- "kind": "field",
2400
- "name": "serverFieldErrors",
2445
+ "name": "instancePathPrefix",
2446
+ "optional": true,
2401
2447
  "type": {
2402
- "text": "ErrorObject[]"
2448
+ "text": "string"
2403
2449
  },
2404
- "default": "[]",
2405
- "description": "Server-side field validation errors from the parent foundation-form.\nSynced into internal state when the binding changes."
2406
- },
2407
- {
2408
- "kind": "method",
2409
- "name": "serverFieldErrorsChanged"
2410
- },
2450
+ "description": "Optional prefix for bulk-insert rows (e.g. `/items/0`)"
2451
+ }
2452
+ ],
2453
+ "description": "Maps Genesis commitEvent NACK `ERROR[]` entries to JsonForms `ErrorObject[]`\nsuitable for `additionalErrors` on the form core.\n\nOnly entries with a `FIELD` or `PATH` are mapped; generic errors (no field\nassociation) are omitted so callers can still surface them via toast/dialog.",
2454
+ "privacy": "public"
2455
+ }
2456
+ ],
2457
+ "exports": [
2458
+ {
2459
+ "kind": "js",
2460
+ "name": "mapGenesisFieldErrorsToAdditionalErrors",
2461
+ "declaration": {
2462
+ "name": "mapGenesisFieldErrorsToAdditionalErrors",
2463
+ "module": "src/utils/server-errors.ts"
2464
+ }
2465
+ }
2466
+ ]
2467
+ },
2468
+ {
2469
+ "kind": "javascript-module",
2470
+ "path": "src/utils/translation.ts",
2471
+ "declarations": [],
2472
+ "exports": []
2473
+ },
2474
+ {
2475
+ "kind": "javascript-module",
2476
+ "path": "src/utils/types.ts",
2477
+ "declarations": [],
2478
+ "exports": []
2479
+ },
2480
+ {
2481
+ "kind": "javascript-module",
2482
+ "path": "src/utils/validation.ts",
2483
+ "declarations": [
2484
+ {
2485
+ "kind": "function",
2486
+ "name": "mustMatch",
2487
+ "parameters": [
2411
2488
  {
2412
- "kind": "field",
2413
- "name": "props",
2489
+ "name": "target",
2414
2490
  "type": {
2415
- "text": "RendererProps"
2416
- },
2417
- "readonly": true
2418
- },
2419
- {
2420
- "kind": "field",
2421
- "name": "dispatch"
2422
- },
2423
- {
2424
- "kind": "method",
2425
- "name": "setServerErrors",
2426
- "parameters": [
2427
- {
2428
- "name": "errors",
2429
- "type": {
2430
- "text": "ErrorObject[]"
2431
- }
2432
- }
2433
- ],
2434
- "description": "Applies server-side validation errors returned from an EVENT_NACK response.\nErrors are merged into `core.additionalErrors` and shown inline on fields.",
2435
- "privacy": "public"
2436
- },
2437
- {
2438
- "kind": "method",
2439
- "name": "clearServerErrors",
2440
- "description": "Clears all server-side validation errors from the form.",
2441
- "privacy": "public"
2442
- },
2443
- {
2444
- "kind": "method",
2445
- "name": "buildAdditionalErrors",
2446
- "privacy": "private",
2447
- "return": {
2448
- "type": {
2449
- "text": "ErrorObject[]"
2450
- }
2491
+ "text": "string"
2451
2492
  },
2452
- "parameters": [
2453
- {
2454
- "name": "uischema",
2455
- "type": {
2456
- "text": "UISchemaElement"
2457
- }
2458
- },
2459
- {
2460
- "name": "data",
2461
- "type": {
2462
- "text": "any"
2463
- }
2464
- }
2465
- ]
2466
- },
2467
- {
2468
- "kind": "method",
2469
- "name": "applyAdditionalErrorsToCore",
2470
- "privacy": "private",
2471
- "parameters": [
2472
- {
2473
- "name": "nextCore",
2474
- "type": {
2475
- "text": "JsonFormsCore"
2476
- }
2477
- },
2478
- {
2479
- "name": "changedPath",
2480
- "optional": true,
2481
- "type": {
2482
- "text": "string"
2483
- }
2484
- }
2485
- ]
2486
- },
2493
+ "description": "any other field"
2494
+ }
2495
+ ],
2496
+ "description": "Ensures the value of the current field (the one the validator is on) matches the one of the target field.",
2497
+ "return": {
2498
+ "type": {
2499
+ "text": ""
2500
+ }
2501
+ },
2502
+ "privacy": "public"
2503
+ },
2504
+ {
2505
+ "kind": "function",
2506
+ "name": "getAnyOfErrorMessage",
2507
+ "return": {
2508
+ "type": {
2509
+ "text": "string"
2510
+ }
2511
+ },
2512
+ "parameters": [
2487
2513
  {
2488
- "kind": "method",
2489
- "name": "refreshAdditionalErrors",
2490
- "privacy": "private"
2514
+ "name": "errors",
2515
+ "type": {
2516
+ "text": "Array<any> | undefined"
2517
+ }
2491
2518
  },
2492
2519
  {
2493
- "kind": "field",
2494
- "name": "validate",
2495
- "description": "Performs client-side validation by running the validator defined in the UI schema.",
2496
- "parameters": [
2497
- {
2498
- "description": "the UI schema",
2499
- "name": "uischema"
2500
- },
2501
- {
2502
- "description": "the data to validate against (defaults to the current core data)",
2503
- "name": "data"
2504
- }
2505
- ],
2506
- "return": {
2507
- "type": {
2508
- "text": ""
2509
- }
2520
+ "name": "schema",
2521
+ "type": {
2522
+ "text": "any"
2510
2523
  }
2511
2524
  },
2512
2525
  {
2513
- "kind": "method",
2514
- "name": "copyUISchemaToClipboard"
2515
- }
2516
- ],
2517
- "events": [
2518
- {
2519
- "description": "Bubbles from nested dispatch-renderer when a control emits change (e.g. multiselect)",
2520
- "name": "change"
2526
+ "name": "controlPath",
2527
+ "type": {
2528
+ "text": "string | undefined"
2529
+ }
2521
2530
  },
2522
2531
  {
2523
- "description": "Fired when bound form data changes. detail: `FormDataChangeEventDetail`",
2524
- "name": "data-change"
2525
- }
2526
- ],
2527
- "attributes": [
2528
- {
2532
+ "name": "uiCustomMsg",
2533
+ "optional": true,
2529
2534
  "type": {
2530
- "text": "boolean"
2531
- },
2532
- "fieldName": "readonly"
2535
+ "text": "string"
2536
+ }
2533
2537
  }
2534
2538
  ],
2535
- "superclass": {
2536
- "name": "FASTElement",
2537
- "package": "@microsoft/fast-element"
2538
- },
2539
- "tagName": "json-forms",
2540
- "customElement": true
2539
+ "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.",
2540
+ "privacy": "public"
2541
2541
  }
2542
2542
  ],
2543
2543
  "exports": [
2544
2544
  {
2545
2545
  "kind": "js",
2546
- "name": "JSONForms",
2546
+ "name": "mustMatch",
2547
2547
  "declaration": {
2548
- "name": "JSONForms",
2549
- "module": "src/jsonforms/json-forms.ts"
2548
+ "name": "mustMatch",
2549
+ "module": "src/utils/validation.ts"
2550
2550
  }
2551
2551
  },
2552
2552
  {
2553
- "kind": "custom-element-definition",
2554
- "name": "json-forms",
2553
+ "kind": "js",
2554
+ "name": "getAnyOfErrorMessage",
2555
2555
  "declaration": {
2556
- "name": "JSONForms",
2557
- "module": "src/jsonforms/json-forms.ts"
2556
+ "name": "getAnyOfErrorMessage",
2557
+ "module": "src/utils/validation.ts"
2558
2558
  }
2559
2559
  }
2560
2560
  ]