@genesislcap/foundation-forms 14.488.2-GENC-1351.9 → 14.488.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +697 -697
- package/package.json +15 -15
|
@@ -1779,647 +1779,205 @@
|
|
|
1779
1779
|
},
|
|
1780
1780
|
{
|
|
1781
1781
|
"kind": "javascript-module",
|
|
1782
|
-
"path": "src/
|
|
1783
|
-
"declarations": [],
|
|
1784
|
-
"exports": []
|
|
1785
|
-
},
|
|
1786
|
-
{
|
|
1787
|
-
"kind": "javascript-module",
|
|
1788
|
-
"path": "src/utils/csv-parser.ts",
|
|
1782
|
+
"path": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts",
|
|
1789
1783
|
"declarations": [
|
|
1790
1784
|
{
|
|
1791
1785
|
"kind": "function",
|
|
1792
|
-
"name": "
|
|
1793
|
-
"return": {
|
|
1794
|
-
"type": {
|
|
1795
|
-
"text": ""
|
|
1796
|
-
}
|
|
1797
|
-
},
|
|
1786
|
+
"name": "ArrayListWrapperRendererTemplate",
|
|
1798
1787
|
"parameters": [
|
|
1799
1788
|
{
|
|
1800
|
-
"name": "
|
|
1789
|
+
"name": "prefix",
|
|
1790
|
+
"default": "'zero'",
|
|
1801
1791
|
"type": {
|
|
1802
1792
|
"text": "string"
|
|
1803
|
-
}
|
|
1804
|
-
"description": "The CSV content as a string"
|
|
1793
|
+
}
|
|
1805
1794
|
}
|
|
1806
|
-
]
|
|
1807
|
-
"description": "Parses a CSV string into headers and rows using PapaParse.\nHandles quoted fields, escaped quotes, empty values, and mixed line endings.",
|
|
1808
|
-
"privacy": "public"
|
|
1795
|
+
]
|
|
1809
1796
|
},
|
|
1810
1797
|
{
|
|
1811
|
-
"kind": "
|
|
1812
|
-
"
|
|
1813
|
-
"
|
|
1814
|
-
|
|
1815
|
-
"text": ""
|
|
1816
|
-
}
|
|
1817
|
-
},
|
|
1818
|
-
"parameters": [
|
|
1798
|
+
"kind": "class",
|
|
1799
|
+
"description": "",
|
|
1800
|
+
"name": "ArrayListWrapper",
|
|
1801
|
+
"members": [
|
|
1819
1802
|
{
|
|
1820
|
-
"
|
|
1821
|
-
"
|
|
1822
|
-
"text": "Record<string, string>[]"
|
|
1823
|
-
},
|
|
1824
|
-
"description": "The parsed CSV rows"
|
|
1803
|
+
"kind": "field",
|
|
1804
|
+
"name": "form"
|
|
1825
1805
|
},
|
|
1826
1806
|
{
|
|
1827
|
-
"
|
|
1828
|
-
"
|
|
1829
|
-
"text": "JSONSchema7 | undefined"
|
|
1830
|
-
},
|
|
1831
|
-
"description": "The JSON schema defining the fields"
|
|
1807
|
+
"kind": "field",
|
|
1808
|
+
"name": "control"
|
|
1832
1809
|
},
|
|
1833
1810
|
{
|
|
1834
|
-
"
|
|
1835
|
-
"
|
|
1836
|
-
"type": {
|
|
1837
|
-
"text": "UiSchema"
|
|
1838
|
-
},
|
|
1839
|
-
"description": "Optional UI schema to map labels to field names on import"
|
|
1840
|
-
}
|
|
1841
|
-
],
|
|
1842
|
-
"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.",
|
|
1843
|
-
"privacy": "public"
|
|
1844
|
-
},
|
|
1845
|
-
{
|
|
1846
|
-
"kind": "function",
|
|
1847
|
-
"name": "generateCsvTemplate",
|
|
1848
|
-
"return": {
|
|
1849
|
-
"type": {
|
|
1850
|
-
"text": ""
|
|
1851
|
-
}
|
|
1852
|
-
},
|
|
1853
|
-
"parameters": [
|
|
1854
|
-
{
|
|
1855
|
-
"name": "schema",
|
|
1856
|
-
"type": {
|
|
1857
|
-
"text": "JSONSchema7 | undefined"
|
|
1858
|
-
},
|
|
1859
|
-
"description": "The JSON schema defining the fields"
|
|
1811
|
+
"kind": "field",
|
|
1812
|
+
"name": "schema"
|
|
1860
1813
|
},
|
|
1861
1814
|
{
|
|
1862
|
-
"
|
|
1863
|
-
"
|
|
1864
|
-
"type": {
|
|
1865
|
-
"text": "UiSchema"
|
|
1866
|
-
},
|
|
1867
|
-
"description": "Optional UI schema to determine field order and visibility"
|
|
1815
|
+
"kind": "field",
|
|
1816
|
+
"name": "uiSchema"
|
|
1868
1817
|
},
|
|
1869
1818
|
{
|
|
1870
|
-
"
|
|
1871
|
-
"
|
|
1819
|
+
"kind": "field",
|
|
1820
|
+
"name": "isGridView",
|
|
1872
1821
|
"type": {
|
|
1873
1822
|
"text": "boolean"
|
|
1874
1823
|
},
|
|
1875
|
-
"
|
|
1824
|
+
"default": "false"
|
|
1876
1825
|
},
|
|
1877
1826
|
{
|
|
1878
|
-
"
|
|
1879
|
-
"
|
|
1827
|
+
"kind": "field",
|
|
1828
|
+
"name": "gridViewHeaderCells",
|
|
1880
1829
|
"type": {
|
|
1881
|
-
"text": "
|
|
1830
|
+
"text": "GridHeaderCell[]"
|
|
1882
1831
|
},
|
|
1883
|
-
"
|
|
1884
|
-
}
|
|
1885
|
-
],
|
|
1886
|
-
"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.",
|
|
1887
|
-
"privacy": "public"
|
|
1888
|
-
},
|
|
1889
|
-
{
|
|
1890
|
-
"kind": "function",
|
|
1891
|
-
"name": "downloadCsvTemplate",
|
|
1892
|
-
"return": {
|
|
1893
|
-
"type": {
|
|
1894
|
-
"text": "void"
|
|
1895
|
-
}
|
|
1896
|
-
},
|
|
1897
|
-
"parameters": [
|
|
1832
|
+
"default": "[]"
|
|
1833
|
+
},
|
|
1898
1834
|
{
|
|
1899
|
-
"
|
|
1835
|
+
"kind": "field",
|
|
1836
|
+
"name": "gridViewUiSchema",
|
|
1900
1837
|
"type": {
|
|
1901
|
-
"text": "
|
|
1838
|
+
"text": "any"
|
|
1902
1839
|
},
|
|
1903
|
-
"
|
|
1840
|
+
"default": "null"
|
|
1904
1841
|
},
|
|
1905
1842
|
{
|
|
1906
|
-
"
|
|
1907
|
-
"
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
"
|
|
1843
|
+
"kind": "method",
|
|
1844
|
+
"name": "controlChanged"
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"kind": "method",
|
|
1848
|
+
"name": "addItem"
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
"kind": "method",
|
|
1852
|
+
"name": "deleteItem",
|
|
1853
|
+
"parameters": [
|
|
1854
|
+
{
|
|
1855
|
+
"name": "index",
|
|
1856
|
+
"type": {
|
|
1857
|
+
"text": "number"
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
]
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
"kind": "method",
|
|
1864
|
+
"name": "submitRow",
|
|
1865
|
+
"parameters": [
|
|
1866
|
+
{
|
|
1867
|
+
"name": "index",
|
|
1868
|
+
"type": {
|
|
1869
|
+
"text": "number"
|
|
1870
|
+
},
|
|
1871
|
+
"description": "The row index to submit"
|
|
1872
|
+
}
|
|
1873
|
+
],
|
|
1874
|
+
"description": "Submits a single row by emitting an event that bubbles up to the foundation-form."
|
|
1912
1875
|
}
|
|
1913
1876
|
],
|
|
1914
|
-
"
|
|
1915
|
-
|
|
1877
|
+
"superclass": {
|
|
1878
|
+
"name": "FASTElement",
|
|
1879
|
+
"package": "@microsoft/fast-element"
|
|
1880
|
+
},
|
|
1881
|
+
"tagName": "array-list-wrapper",
|
|
1882
|
+
"customElement": true
|
|
1916
1883
|
}
|
|
1917
1884
|
],
|
|
1918
1885
|
"exports": [
|
|
1919
1886
|
{
|
|
1920
1887
|
"kind": "js",
|
|
1921
|
-
"name": "
|
|
1888
|
+
"name": "ArrayListWrapperRendererTemplate",
|
|
1922
1889
|
"declaration": {
|
|
1923
|
-
"name": "
|
|
1924
|
-
"module": "src/
|
|
1890
|
+
"name": "ArrayListWrapperRendererTemplate",
|
|
1891
|
+
"module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
|
|
1925
1892
|
}
|
|
1926
1893
|
},
|
|
1927
1894
|
{
|
|
1928
1895
|
"kind": "js",
|
|
1929
|
-
"name": "
|
|
1896
|
+
"name": "ArrayListWrapper",
|
|
1930
1897
|
"declaration": {
|
|
1931
|
-
"name": "
|
|
1932
|
-
"module": "src/
|
|
1898
|
+
"name": "ArrayListWrapper",
|
|
1899
|
+
"module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
|
|
1900
|
+
}
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
"kind": "custom-element-definition",
|
|
1904
|
+
"name": "array-list-wrapper",
|
|
1905
|
+
"declaration": {
|
|
1906
|
+
"name": "ArrayListWrapper",
|
|
1907
|
+
"module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
|
|
1933
1908
|
}
|
|
1909
|
+
}
|
|
1910
|
+
]
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
"kind": "javascript-module",
|
|
1914
|
+
"path": "src/jsonforms/renderers/BooleanControlRenderer.ts",
|
|
1915
|
+
"declarations": [
|
|
1916
|
+
{
|
|
1917
|
+
"kind": "function",
|
|
1918
|
+
"name": "BooleanControlRendererTemplate",
|
|
1919
|
+
"parameters": [
|
|
1920
|
+
{
|
|
1921
|
+
"name": "prefix",
|
|
1922
|
+
"default": "'zero'",
|
|
1923
|
+
"type": {
|
|
1924
|
+
"text": "string"
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
]
|
|
1934
1928
|
},
|
|
1929
|
+
{
|
|
1930
|
+
"kind": "variable",
|
|
1931
|
+
"name": "BooleanControlEntry",
|
|
1932
|
+
"type": {
|
|
1933
|
+
"text": "RendererEntry"
|
|
1934
|
+
},
|
|
1935
|
+
"default": "{\n renderer: html<DispatchRenderer>`\n ${(x) => BooleanControlRendererTemplate(x.prefix)}\n `,\n tester: rankWith(BOOLEAN_CONTROL_RANK, isOneOfBoolean),\n mapper: mapStateToControlProps,\n}"
|
|
1936
|
+
}
|
|
1937
|
+
],
|
|
1938
|
+
"exports": [
|
|
1935
1939
|
{
|
|
1936
1940
|
"kind": "js",
|
|
1937
|
-
"name": "
|
|
1941
|
+
"name": "BooleanControlRendererTemplate",
|
|
1938
1942
|
"declaration": {
|
|
1939
|
-
"name": "
|
|
1940
|
-
"module": "src/
|
|
1943
|
+
"name": "BooleanControlRendererTemplate",
|
|
1944
|
+
"module": "src/jsonforms/renderers/BooleanControlRenderer.ts"
|
|
1941
1945
|
}
|
|
1942
1946
|
},
|
|
1943
1947
|
{
|
|
1944
1948
|
"kind": "js",
|
|
1945
|
-
"name": "
|
|
1949
|
+
"name": "BooleanControlEntry",
|
|
1946
1950
|
"declaration": {
|
|
1947
|
-
"name": "
|
|
1948
|
-
"module": "src/
|
|
1951
|
+
"name": "BooleanControlEntry",
|
|
1952
|
+
"module": "src/jsonforms/renderers/BooleanControlRenderer.ts"
|
|
1949
1953
|
}
|
|
1950
1954
|
}
|
|
1951
1955
|
]
|
|
1952
1956
|
},
|
|
1953
1957
|
{
|
|
1954
1958
|
"kind": "javascript-module",
|
|
1955
|
-
"path": "src/
|
|
1956
|
-
"declarations": [],
|
|
1957
|
-
"exports": []
|
|
1958
|
-
},
|
|
1959
|
-
{
|
|
1960
|
-
"kind": "javascript-module",
|
|
1961
|
-
"path": "src/utils/form-utils.ts",
|
|
1959
|
+
"path": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts",
|
|
1962
1960
|
"declarations": [
|
|
1963
1961
|
{
|
|
1964
1962
|
"kind": "function",
|
|
1965
|
-
"name": "
|
|
1963
|
+
"name": "computeCategoryClassName",
|
|
1966
1964
|
"return": {
|
|
1967
1965
|
"type": {
|
|
1968
|
-
"text": ""
|
|
1966
|
+
"text": "string"
|
|
1969
1967
|
}
|
|
1970
1968
|
},
|
|
1971
1969
|
"parameters": [
|
|
1972
1970
|
{
|
|
1973
|
-
"name": "
|
|
1971
|
+
"name": "category",
|
|
1974
1972
|
"type": {
|
|
1975
|
-
"text": "
|
|
1976
|
-
}
|
|
1977
|
-
"description": "The data object to clean"
|
|
1973
|
+
"text": "UiSchemaElement"
|
|
1974
|
+
}
|
|
1978
1975
|
},
|
|
1979
1976
|
{
|
|
1980
|
-
"name": "
|
|
1977
|
+
"name": "data",
|
|
1981
1978
|
"type": {
|
|
1982
|
-
"text": "
|
|
1983
|
-
}
|
|
1984
|
-
"description": "The JSON schema to validate against"
|
|
1985
|
-
}
|
|
1986
|
-
],
|
|
1987
|
-
"description": "Removes data properties that aren't part of the schema"
|
|
1988
|
-
}
|
|
1989
|
-
],
|
|
1990
|
-
"exports": [
|
|
1991
|
-
{
|
|
1992
|
-
"kind": "js",
|
|
1993
|
-
"name": "removeDataPropertiesNotInSchema",
|
|
1994
|
-
"declaration": {
|
|
1995
|
-
"name": "removeDataPropertiesNotInSchema",
|
|
1996
|
-
"module": "src/utils/form-utils.ts"
|
|
1997
|
-
}
|
|
1998
|
-
}
|
|
1999
|
-
]
|
|
2000
|
-
},
|
|
2001
|
-
{
|
|
2002
|
-
"kind": "javascript-module",
|
|
2003
|
-
"path": "src/utils/index.ts",
|
|
2004
|
-
"declarations": [],
|
|
2005
|
-
"exports": [
|
|
2006
|
-
{
|
|
2007
|
-
"kind": "js",
|
|
2008
|
-
"name": "*",
|
|
2009
|
-
"declaration": {
|
|
2010
|
-
"name": "*",
|
|
2011
|
-
"package": "./csv-parser"
|
|
2012
|
-
}
|
|
2013
|
-
},
|
|
2014
|
-
{
|
|
2015
|
-
"kind": "js",
|
|
2016
|
-
"name": "*",
|
|
2017
|
-
"declaration": {
|
|
2018
|
-
"name": "*",
|
|
2019
|
-
"package": "./filters"
|
|
2020
|
-
}
|
|
2021
|
-
},
|
|
2022
|
-
{
|
|
2023
|
-
"kind": "js",
|
|
2024
|
-
"name": "*",
|
|
2025
|
-
"declaration": {
|
|
2026
|
-
"name": "*",
|
|
2027
|
-
"package": "./logger"
|
|
2028
|
-
}
|
|
2029
|
-
},
|
|
2030
|
-
{
|
|
2031
|
-
"kind": "js",
|
|
2032
|
-
"name": "*",
|
|
2033
|
-
"declaration": {
|
|
2034
|
-
"name": "*",
|
|
2035
|
-
"package": "./translation"
|
|
2036
|
-
}
|
|
2037
|
-
},
|
|
2038
|
-
{
|
|
2039
|
-
"kind": "js",
|
|
2040
|
-
"name": "*",
|
|
2041
|
-
"declaration": {
|
|
2042
|
-
"name": "*",
|
|
2043
|
-
"package": "./validation"
|
|
2044
|
-
}
|
|
2045
|
-
},
|
|
2046
|
-
{
|
|
2047
|
-
"kind": "js",
|
|
2048
|
-
"name": "*",
|
|
2049
|
-
"declaration": {
|
|
2050
|
-
"name": "*",
|
|
2051
|
-
"package": "./server-errors"
|
|
2052
|
-
}
|
|
2053
|
-
},
|
|
2054
|
-
{
|
|
2055
|
-
"kind": "js",
|
|
2056
|
-
"name": "*",
|
|
2057
|
-
"declaration": {
|
|
2058
|
-
"name": "*",
|
|
2059
|
-
"package": "./types"
|
|
2060
|
-
}
|
|
2061
|
-
}
|
|
2062
|
-
]
|
|
2063
|
-
},
|
|
2064
|
-
{
|
|
2065
|
-
"kind": "javascript-module",
|
|
2066
|
-
"path": "src/utils/logger.ts",
|
|
2067
|
-
"declarations": [],
|
|
2068
|
-
"exports": []
|
|
2069
|
-
},
|
|
2070
|
-
{
|
|
2071
|
-
"kind": "javascript-module",
|
|
2072
|
-
"path": "src/utils/schema-utils.ts",
|
|
2073
|
-
"declarations": [],
|
|
2074
|
-
"exports": []
|
|
2075
|
-
},
|
|
2076
|
-
{
|
|
2077
|
-
"kind": "javascript-module",
|
|
2078
|
-
"path": "src/utils/server-errors.ts",
|
|
2079
|
-
"declarations": [
|
|
2080
|
-
{
|
|
2081
|
-
"kind": "function",
|
|
2082
|
-
"name": "mapGenesisFieldErrorsToAdditionalErrors",
|
|
2083
|
-
"return": {
|
|
2084
|
-
"type": {
|
|
2085
|
-
"text": "ErrorObject[]"
|
|
2086
|
-
}
|
|
2087
|
-
},
|
|
2088
|
-
"parameters": [
|
|
2089
|
-
{
|
|
2090
|
-
"name": "errors",
|
|
2091
|
-
"type": {
|
|
2092
|
-
"text": "GenesisFieldError[] | undefined"
|
|
2093
|
-
},
|
|
2094
|
-
"description": "Genesis ERROR array from an EVENT_NACK response"
|
|
2095
|
-
},
|
|
2096
|
-
{
|
|
2097
|
-
"name": "schema",
|
|
2098
|
-
"optional": true,
|
|
2099
|
-
"type": {
|
|
2100
|
-
"text": "JSONSchema7"
|
|
2101
|
-
},
|
|
2102
|
-
"description": "JSON schema used to resolve `parentSchema` for each field"
|
|
2103
|
-
},
|
|
2104
|
-
{
|
|
2105
|
-
"name": "instancePathPrefix",
|
|
2106
|
-
"optional": true,
|
|
2107
|
-
"type": {
|
|
2108
|
-
"text": "string"
|
|
2109
|
-
},
|
|
2110
|
-
"description": "Optional prefix for bulk-insert rows (e.g. `/items/0`)"
|
|
2111
|
-
}
|
|
2112
|
-
],
|
|
2113
|
-
"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.",
|
|
2114
|
-
"privacy": "public"
|
|
2115
|
-
}
|
|
2116
|
-
],
|
|
2117
|
-
"exports": [
|
|
2118
|
-
{
|
|
2119
|
-
"kind": "js",
|
|
2120
|
-
"name": "mapGenesisFieldErrorsToAdditionalErrors",
|
|
2121
|
-
"declaration": {
|
|
2122
|
-
"name": "mapGenesisFieldErrorsToAdditionalErrors",
|
|
2123
|
-
"module": "src/utils/server-errors.ts"
|
|
2124
|
-
}
|
|
2125
|
-
}
|
|
2126
|
-
]
|
|
2127
|
-
},
|
|
2128
|
-
{
|
|
2129
|
-
"kind": "javascript-module",
|
|
2130
|
-
"path": "src/utils/translation.ts",
|
|
2131
|
-
"declarations": [],
|
|
2132
|
-
"exports": []
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
"kind": "javascript-module",
|
|
2136
|
-
"path": "src/utils/types.ts",
|
|
2137
|
-
"declarations": [],
|
|
2138
|
-
"exports": []
|
|
2139
|
-
},
|
|
2140
|
-
{
|
|
2141
|
-
"kind": "javascript-module",
|
|
2142
|
-
"path": "src/utils/validation.ts",
|
|
2143
|
-
"declarations": [
|
|
2144
|
-
{
|
|
2145
|
-
"kind": "function",
|
|
2146
|
-
"name": "mustMatch",
|
|
2147
|
-
"parameters": [
|
|
2148
|
-
{
|
|
2149
|
-
"name": "target",
|
|
2150
|
-
"type": {
|
|
2151
|
-
"text": "string"
|
|
2152
|
-
},
|
|
2153
|
-
"description": "any other field"
|
|
2154
|
-
}
|
|
2155
|
-
],
|
|
2156
|
-
"description": "Ensures the value of the current field (the one the validator is on) matches the one of the target field.",
|
|
2157
|
-
"return": {
|
|
2158
|
-
"type": {
|
|
2159
|
-
"text": ""
|
|
2160
|
-
}
|
|
2161
|
-
},
|
|
2162
|
-
"privacy": "public"
|
|
2163
|
-
},
|
|
2164
|
-
{
|
|
2165
|
-
"kind": "function",
|
|
2166
|
-
"name": "getAnyOfErrorMessage",
|
|
2167
|
-
"return": {
|
|
2168
|
-
"type": {
|
|
2169
|
-
"text": "string"
|
|
2170
|
-
}
|
|
2171
|
-
},
|
|
2172
|
-
"parameters": [
|
|
2173
|
-
{
|
|
2174
|
-
"name": "errors",
|
|
2175
|
-
"type": {
|
|
2176
|
-
"text": "Array<any> | undefined"
|
|
2177
|
-
}
|
|
2178
|
-
},
|
|
2179
|
-
{
|
|
2180
|
-
"name": "schema",
|
|
2181
|
-
"type": {
|
|
2182
|
-
"text": "any"
|
|
2183
|
-
}
|
|
2184
|
-
},
|
|
2185
|
-
{
|
|
2186
|
-
"name": "controlPath",
|
|
2187
|
-
"type": {
|
|
2188
|
-
"text": "string | undefined"
|
|
2189
|
-
}
|
|
2190
|
-
},
|
|
2191
|
-
{
|
|
2192
|
-
"name": "uiCustomMsg",
|
|
2193
|
-
"optional": true,
|
|
2194
|
-
"type": {
|
|
2195
|
-
"text": "string"
|
|
2196
|
-
}
|
|
2197
|
-
}
|
|
2198
|
-
],
|
|
2199
|
-
"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.",
|
|
2200
|
-
"privacy": "public"
|
|
2201
|
-
}
|
|
2202
|
-
],
|
|
2203
|
-
"exports": [
|
|
2204
|
-
{
|
|
2205
|
-
"kind": "js",
|
|
2206
|
-
"name": "mustMatch",
|
|
2207
|
-
"declaration": {
|
|
2208
|
-
"name": "mustMatch",
|
|
2209
|
-
"module": "src/utils/validation.ts"
|
|
2210
|
-
}
|
|
2211
|
-
},
|
|
2212
|
-
{
|
|
2213
|
-
"kind": "js",
|
|
2214
|
-
"name": "getAnyOfErrorMessage",
|
|
2215
|
-
"declaration": {
|
|
2216
|
-
"name": "getAnyOfErrorMessage",
|
|
2217
|
-
"module": "src/utils/validation.ts"
|
|
2218
|
-
}
|
|
2219
|
-
}
|
|
2220
|
-
]
|
|
2221
|
-
},
|
|
2222
|
-
{
|
|
2223
|
-
"kind": "javascript-module",
|
|
2224
|
-
"path": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts",
|
|
2225
|
-
"declarations": [
|
|
2226
|
-
{
|
|
2227
|
-
"kind": "function",
|
|
2228
|
-
"name": "ArrayListWrapperRendererTemplate",
|
|
2229
|
-
"parameters": [
|
|
2230
|
-
{
|
|
2231
|
-
"name": "prefix",
|
|
2232
|
-
"default": "'zero'",
|
|
2233
|
-
"type": {
|
|
2234
|
-
"text": "string"
|
|
2235
|
-
}
|
|
2236
|
-
}
|
|
2237
|
-
]
|
|
2238
|
-
},
|
|
2239
|
-
{
|
|
2240
|
-
"kind": "class",
|
|
2241
|
-
"description": "",
|
|
2242
|
-
"name": "ArrayListWrapper",
|
|
2243
|
-
"members": [
|
|
2244
|
-
{
|
|
2245
|
-
"kind": "field",
|
|
2246
|
-
"name": "form"
|
|
2247
|
-
},
|
|
2248
|
-
{
|
|
2249
|
-
"kind": "field",
|
|
2250
|
-
"name": "control"
|
|
2251
|
-
},
|
|
2252
|
-
{
|
|
2253
|
-
"kind": "field",
|
|
2254
|
-
"name": "schema"
|
|
2255
|
-
},
|
|
2256
|
-
{
|
|
2257
|
-
"kind": "field",
|
|
2258
|
-
"name": "uiSchema"
|
|
2259
|
-
},
|
|
2260
|
-
{
|
|
2261
|
-
"kind": "field",
|
|
2262
|
-
"name": "isGridView",
|
|
2263
|
-
"type": {
|
|
2264
|
-
"text": "boolean"
|
|
2265
|
-
},
|
|
2266
|
-
"default": "false"
|
|
2267
|
-
},
|
|
2268
|
-
{
|
|
2269
|
-
"kind": "field",
|
|
2270
|
-
"name": "gridViewHeaderCells",
|
|
2271
|
-
"type": {
|
|
2272
|
-
"text": "GridHeaderCell[]"
|
|
2273
|
-
},
|
|
2274
|
-
"default": "[]"
|
|
2275
|
-
},
|
|
2276
|
-
{
|
|
2277
|
-
"kind": "field",
|
|
2278
|
-
"name": "gridViewUiSchema",
|
|
2279
|
-
"type": {
|
|
2280
|
-
"text": "any"
|
|
2281
|
-
},
|
|
2282
|
-
"default": "null"
|
|
2283
|
-
},
|
|
2284
|
-
{
|
|
2285
|
-
"kind": "method",
|
|
2286
|
-
"name": "controlChanged"
|
|
2287
|
-
},
|
|
2288
|
-
{
|
|
2289
|
-
"kind": "method",
|
|
2290
|
-
"name": "addItem"
|
|
2291
|
-
},
|
|
2292
|
-
{
|
|
2293
|
-
"kind": "method",
|
|
2294
|
-
"name": "deleteItem",
|
|
2295
|
-
"parameters": [
|
|
2296
|
-
{
|
|
2297
|
-
"name": "index",
|
|
2298
|
-
"type": {
|
|
2299
|
-
"text": "number"
|
|
2300
|
-
}
|
|
2301
|
-
}
|
|
2302
|
-
]
|
|
2303
|
-
},
|
|
2304
|
-
{
|
|
2305
|
-
"kind": "method",
|
|
2306
|
-
"name": "submitRow",
|
|
2307
|
-
"parameters": [
|
|
2308
|
-
{
|
|
2309
|
-
"name": "index",
|
|
2310
|
-
"type": {
|
|
2311
|
-
"text": "number"
|
|
2312
|
-
},
|
|
2313
|
-
"description": "The row index to submit"
|
|
2314
|
-
}
|
|
2315
|
-
],
|
|
2316
|
-
"description": "Submits a single row by emitting an event that bubbles up to the foundation-form."
|
|
2317
|
-
}
|
|
2318
|
-
],
|
|
2319
|
-
"superclass": {
|
|
2320
|
-
"name": "FASTElement",
|
|
2321
|
-
"package": "@microsoft/fast-element"
|
|
2322
|
-
},
|
|
2323
|
-
"tagName": "array-list-wrapper",
|
|
2324
|
-
"customElement": true
|
|
2325
|
-
}
|
|
2326
|
-
],
|
|
2327
|
-
"exports": [
|
|
2328
|
-
{
|
|
2329
|
-
"kind": "js",
|
|
2330
|
-
"name": "ArrayListWrapperRendererTemplate",
|
|
2331
|
-
"declaration": {
|
|
2332
|
-
"name": "ArrayListWrapperRendererTemplate",
|
|
2333
|
-
"module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
|
|
2334
|
-
}
|
|
2335
|
-
},
|
|
2336
|
-
{
|
|
2337
|
-
"kind": "js",
|
|
2338
|
-
"name": "ArrayListWrapper",
|
|
2339
|
-
"declaration": {
|
|
2340
|
-
"name": "ArrayListWrapper",
|
|
2341
|
-
"module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
|
|
2342
|
-
}
|
|
2343
|
-
},
|
|
2344
|
-
{
|
|
2345
|
-
"kind": "custom-element-definition",
|
|
2346
|
-
"name": "array-list-wrapper",
|
|
2347
|
-
"declaration": {
|
|
2348
|
-
"name": "ArrayListWrapper",
|
|
2349
|
-
"module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
|
|
2350
|
-
}
|
|
2351
|
-
}
|
|
2352
|
-
]
|
|
2353
|
-
},
|
|
2354
|
-
{
|
|
2355
|
-
"kind": "javascript-module",
|
|
2356
|
-
"path": "src/jsonforms/renderers/BooleanControlRenderer.ts",
|
|
2357
|
-
"declarations": [
|
|
2358
|
-
{
|
|
2359
|
-
"kind": "function",
|
|
2360
|
-
"name": "BooleanControlRendererTemplate",
|
|
2361
|
-
"parameters": [
|
|
2362
|
-
{
|
|
2363
|
-
"name": "prefix",
|
|
2364
|
-
"default": "'zero'",
|
|
2365
|
-
"type": {
|
|
2366
|
-
"text": "string"
|
|
2367
|
-
}
|
|
2368
|
-
}
|
|
2369
|
-
]
|
|
2370
|
-
},
|
|
2371
|
-
{
|
|
2372
|
-
"kind": "variable",
|
|
2373
|
-
"name": "BooleanControlEntry",
|
|
2374
|
-
"type": {
|
|
2375
|
-
"text": "RendererEntry"
|
|
2376
|
-
},
|
|
2377
|
-
"default": "{\n renderer: html<DispatchRenderer>`\n ${(x) => BooleanControlRendererTemplate(x.prefix)}\n `,\n tester: rankWith(BOOLEAN_CONTROL_RANK, isOneOfBoolean),\n mapper: mapStateToControlProps,\n}"
|
|
2378
|
-
}
|
|
2379
|
-
],
|
|
2380
|
-
"exports": [
|
|
2381
|
-
{
|
|
2382
|
-
"kind": "js",
|
|
2383
|
-
"name": "BooleanControlRendererTemplate",
|
|
2384
|
-
"declaration": {
|
|
2385
|
-
"name": "BooleanControlRendererTemplate",
|
|
2386
|
-
"module": "src/jsonforms/renderers/BooleanControlRenderer.ts"
|
|
2387
|
-
}
|
|
2388
|
-
},
|
|
2389
|
-
{
|
|
2390
|
-
"kind": "js",
|
|
2391
|
-
"name": "BooleanControlEntry",
|
|
2392
|
-
"declaration": {
|
|
2393
|
-
"name": "BooleanControlEntry",
|
|
2394
|
-
"module": "src/jsonforms/renderers/BooleanControlRenderer.ts"
|
|
2395
|
-
}
|
|
2396
|
-
}
|
|
2397
|
-
]
|
|
2398
|
-
},
|
|
2399
|
-
{
|
|
2400
|
-
"kind": "javascript-module",
|
|
2401
|
-
"path": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts",
|
|
2402
|
-
"declarations": [
|
|
2403
|
-
{
|
|
2404
|
-
"kind": "function",
|
|
2405
|
-
"name": "computeCategoryClassName",
|
|
2406
|
-
"return": {
|
|
2407
|
-
"type": {
|
|
2408
|
-
"text": "string"
|
|
2409
|
-
}
|
|
2410
|
-
},
|
|
2411
|
-
"parameters": [
|
|
2412
|
-
{
|
|
2413
|
-
"name": "category",
|
|
2414
|
-
"type": {
|
|
2415
|
-
"text": "UiSchemaElement"
|
|
2416
|
-
}
|
|
2417
|
-
},
|
|
2418
|
-
{
|
|
2419
|
-
"name": "data",
|
|
2420
|
-
"type": {
|
|
2421
|
-
"text": "any"
|
|
2422
|
-
}
|
|
1979
|
+
"text": "any"
|
|
1980
|
+
}
|
|
2423
1981
|
}
|
|
2424
1982
|
]
|
|
2425
1983
|
},
|
|
@@ -4892,34 +4450,257 @@
|
|
|
4892
4450
|
"exports": [
|
|
4893
4451
|
{
|
|
4894
4452
|
"kind": "js",
|
|
4895
|
-
"name": "FoundationReactSlot",
|
|
4453
|
+
"name": "FoundationReactSlot",
|
|
4454
|
+
"declaration": {
|
|
4455
|
+
"name": "FoundationReactSlot",
|
|
4456
|
+
"module": "src/jsonforms/renderers/foundation-react-slot.ts"
|
|
4457
|
+
}
|
|
4458
|
+
},
|
|
4459
|
+
{
|
|
4460
|
+
"kind": "custom-element-definition",
|
|
4461
|
+
"name": "foundation-react-slot",
|
|
4462
|
+
"declaration": {
|
|
4463
|
+
"name": "FoundationReactSlot",
|
|
4464
|
+
"module": "src/jsonforms/renderers/foundation-react-slot.ts"
|
|
4465
|
+
}
|
|
4466
|
+
}
|
|
4467
|
+
]
|
|
4468
|
+
},
|
|
4469
|
+
{
|
|
4470
|
+
"kind": "javascript-module",
|
|
4471
|
+
"path": "src/jsonforms/testers/isArray.ts",
|
|
4472
|
+
"declarations": [
|
|
4473
|
+
{
|
|
4474
|
+
"kind": "function",
|
|
4475
|
+
"name": "isArray",
|
|
4476
|
+
"parameters": [
|
|
4477
|
+
{
|
|
4478
|
+
"name": "itemsType",
|
|
4479
|
+
"type": {
|
|
4480
|
+
"text": "ArrayItemsType"
|
|
4481
|
+
}
|
|
4482
|
+
}
|
|
4483
|
+
]
|
|
4484
|
+
}
|
|
4485
|
+
],
|
|
4486
|
+
"exports": [
|
|
4487
|
+
{
|
|
4488
|
+
"kind": "js",
|
|
4489
|
+
"name": "isArray",
|
|
4490
|
+
"declaration": {
|
|
4491
|
+
"name": "isArray",
|
|
4492
|
+
"module": "src/jsonforms/testers/isArray.ts"
|
|
4493
|
+
}
|
|
4494
|
+
}
|
|
4495
|
+
]
|
|
4496
|
+
},
|
|
4497
|
+
{
|
|
4498
|
+
"kind": "javascript-module",
|
|
4499
|
+
"path": "src/jsonforms/testers/isDate.ts",
|
|
4500
|
+
"declarations": [
|
|
4501
|
+
{
|
|
4502
|
+
"kind": "variable",
|
|
4503
|
+
"name": "isOneOfDate"
|
|
4504
|
+
}
|
|
4505
|
+
],
|
|
4506
|
+
"exports": [
|
|
4507
|
+
{
|
|
4508
|
+
"kind": "js",
|
|
4509
|
+
"name": "isOneOfDate",
|
|
4510
|
+
"declaration": {
|
|
4511
|
+
"name": "isOneOfDate",
|
|
4512
|
+
"module": "src/jsonforms/testers/isDate.ts"
|
|
4513
|
+
}
|
|
4514
|
+
}
|
|
4515
|
+
]
|
|
4516
|
+
},
|
|
4517
|
+
{
|
|
4518
|
+
"kind": "javascript-module",
|
|
4519
|
+
"path": "src/jsonforms/testers/isInvisible.ts",
|
|
4520
|
+
"declarations": [
|
|
4521
|
+
{
|
|
4522
|
+
"kind": "function",
|
|
4523
|
+
"name": "isInvisible",
|
|
4524
|
+
"return": {
|
|
4525
|
+
"type": {
|
|
4526
|
+
"text": "boolean"
|
|
4527
|
+
}
|
|
4528
|
+
},
|
|
4529
|
+
"parameters": [
|
|
4530
|
+
{
|
|
4531
|
+
"name": "uischema",
|
|
4532
|
+
"type": {
|
|
4533
|
+
"text": "UISchemaElement"
|
|
4534
|
+
}
|
|
4535
|
+
},
|
|
4536
|
+
{
|
|
4537
|
+
"name": "schema",
|
|
4538
|
+
"type": {
|
|
4539
|
+
"text": "JsonSchema"
|
|
4540
|
+
}
|
|
4541
|
+
},
|
|
4542
|
+
{
|
|
4543
|
+
"name": "context",
|
|
4544
|
+
"type": {
|
|
4545
|
+
"text": "TesterContext"
|
|
4546
|
+
}
|
|
4547
|
+
}
|
|
4548
|
+
]
|
|
4549
|
+
}
|
|
4550
|
+
],
|
|
4551
|
+
"exports": [
|
|
4552
|
+
{
|
|
4553
|
+
"kind": "js",
|
|
4554
|
+
"name": "isInvisible",
|
|
4555
|
+
"declaration": {
|
|
4556
|
+
"name": "isInvisible",
|
|
4557
|
+
"module": "src/jsonforms/testers/isInvisible.ts"
|
|
4558
|
+
}
|
|
4559
|
+
}
|
|
4560
|
+
]
|
|
4561
|
+
},
|
|
4562
|
+
{
|
|
4563
|
+
"kind": "javascript-module",
|
|
4564
|
+
"path": "src/jsonforms/testers/isOneOfBoolean.ts",
|
|
4565
|
+
"declarations": [
|
|
4566
|
+
{
|
|
4567
|
+
"kind": "variable",
|
|
4568
|
+
"name": "isOneOfBoolean"
|
|
4569
|
+
}
|
|
4570
|
+
],
|
|
4571
|
+
"exports": [
|
|
4572
|
+
{
|
|
4573
|
+
"kind": "js",
|
|
4574
|
+
"name": "isOneOfBoolean",
|
|
4575
|
+
"declaration": {
|
|
4576
|
+
"name": "isOneOfBoolean",
|
|
4577
|
+
"module": "src/jsonforms/testers/isOneOfBoolean.ts"
|
|
4578
|
+
}
|
|
4579
|
+
}
|
|
4580
|
+
]
|
|
4581
|
+
},
|
|
4582
|
+
{
|
|
4583
|
+
"kind": "javascript-module",
|
|
4584
|
+
"path": "src/jsonforms/testers/isOneOfEnum.ts",
|
|
4585
|
+
"declarations": [
|
|
4586
|
+
{
|
|
4587
|
+
"kind": "variable",
|
|
4588
|
+
"name": "isOneOfEnum"
|
|
4589
|
+
}
|
|
4590
|
+
],
|
|
4591
|
+
"exports": [
|
|
4592
|
+
{
|
|
4593
|
+
"kind": "js",
|
|
4594
|
+
"name": "isOneOfEnum",
|
|
4595
|
+
"declaration": {
|
|
4596
|
+
"name": "isOneOfEnum",
|
|
4597
|
+
"module": "src/jsonforms/testers/isOneOfEnum.ts"
|
|
4598
|
+
}
|
|
4599
|
+
}
|
|
4600
|
+
]
|
|
4601
|
+
},
|
|
4602
|
+
{
|
|
4603
|
+
"kind": "javascript-module",
|
|
4604
|
+
"path": "src/jsonforms/testers/isOneOfNumber.ts",
|
|
4605
|
+
"declarations": [
|
|
4606
|
+
{
|
|
4607
|
+
"kind": "function",
|
|
4608
|
+
"name": "isBigDecimal",
|
|
4609
|
+
"return": {
|
|
4610
|
+
"type": {
|
|
4611
|
+
"text": "boolean"
|
|
4612
|
+
}
|
|
4613
|
+
},
|
|
4614
|
+
"parameters": [
|
|
4615
|
+
{
|
|
4616
|
+
"name": "fieldSchema",
|
|
4617
|
+
"type": {
|
|
4618
|
+
"text": "GenesisJsonSchema"
|
|
4619
|
+
}
|
|
4620
|
+
}
|
|
4621
|
+
]
|
|
4622
|
+
},
|
|
4623
|
+
{
|
|
4624
|
+
"kind": "variable",
|
|
4625
|
+
"name": "isOneOfNumber"
|
|
4626
|
+
}
|
|
4627
|
+
],
|
|
4628
|
+
"exports": [
|
|
4629
|
+
{
|
|
4630
|
+
"kind": "js",
|
|
4631
|
+
"name": "isBigDecimal",
|
|
4632
|
+
"declaration": {
|
|
4633
|
+
"name": "isBigDecimal",
|
|
4634
|
+
"module": "src/jsonforms/testers/isOneOfNumber.ts"
|
|
4635
|
+
}
|
|
4636
|
+
},
|
|
4637
|
+
{
|
|
4638
|
+
"kind": "js",
|
|
4639
|
+
"name": "isOneOfNumber",
|
|
4640
|
+
"declaration": {
|
|
4641
|
+
"name": "isOneOfNumber",
|
|
4642
|
+
"module": "src/jsonforms/testers/isOneOfNumber.ts"
|
|
4643
|
+
}
|
|
4644
|
+
}
|
|
4645
|
+
]
|
|
4646
|
+
},
|
|
4647
|
+
{
|
|
4648
|
+
"kind": "javascript-module",
|
|
4649
|
+
"path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
|
|
4650
|
+
"declarations": [
|
|
4651
|
+
{
|
|
4652
|
+
"kind": "variable",
|
|
4653
|
+
"name": "isOneOfOptionMultiselect"
|
|
4654
|
+
}
|
|
4655
|
+
],
|
|
4656
|
+
"exports": [
|
|
4657
|
+
{
|
|
4658
|
+
"kind": "js",
|
|
4659
|
+
"name": "isOneOfOptionMultiselect",
|
|
4896
4660
|
"declaration": {
|
|
4897
|
-
"name": "
|
|
4898
|
-
"module": "src/jsonforms/
|
|
4661
|
+
"name": "isOneOfOptionMultiselect",
|
|
4662
|
+
"module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
|
|
4899
4663
|
}
|
|
4900
|
-
}
|
|
4664
|
+
}
|
|
4665
|
+
]
|
|
4666
|
+
},
|
|
4667
|
+
{
|
|
4668
|
+
"kind": "javascript-module",
|
|
4669
|
+
"path": "src/jsonforms/testers/isTime.ts",
|
|
4670
|
+
"declarations": [
|
|
4901
4671
|
{
|
|
4902
|
-
"kind": "
|
|
4903
|
-
"name": "
|
|
4672
|
+
"kind": "variable",
|
|
4673
|
+
"name": "isOneOfTime"
|
|
4674
|
+
}
|
|
4675
|
+
],
|
|
4676
|
+
"exports": [
|
|
4677
|
+
{
|
|
4678
|
+
"kind": "js",
|
|
4679
|
+
"name": "isOneOfTime",
|
|
4904
4680
|
"declaration": {
|
|
4905
|
-
"name": "
|
|
4906
|
-
"module": "src/jsonforms/
|
|
4681
|
+
"name": "isOneOfTime",
|
|
4682
|
+
"module": "src/jsonforms/testers/isTime.ts"
|
|
4907
4683
|
}
|
|
4908
4684
|
}
|
|
4909
4685
|
]
|
|
4910
4686
|
},
|
|
4911
4687
|
{
|
|
4912
4688
|
"kind": "javascript-module",
|
|
4913
|
-
"path": "src/jsonforms/testers/
|
|
4689
|
+
"path": "src/jsonforms/testers/optionIs.ts",
|
|
4914
4690
|
"declarations": [
|
|
4915
4691
|
{
|
|
4916
4692
|
"kind": "function",
|
|
4917
|
-
"name": "
|
|
4693
|
+
"name": "optionIs",
|
|
4694
|
+
"return": {
|
|
4695
|
+
"type": {
|
|
4696
|
+
"text": "Tester"
|
|
4697
|
+
}
|
|
4698
|
+
},
|
|
4918
4699
|
"parameters": [
|
|
4919
4700
|
{
|
|
4920
|
-
"name": "
|
|
4701
|
+
"name": "optionName",
|
|
4921
4702
|
"type": {
|
|
4922
|
-
"text": "
|
|
4703
|
+
"text": "string"
|
|
4923
4704
|
}
|
|
4924
4705
|
}
|
|
4925
4706
|
]
|
|
@@ -4928,233 +4709,452 @@
|
|
|
4928
4709
|
"exports": [
|
|
4929
4710
|
{
|
|
4930
4711
|
"kind": "js",
|
|
4931
|
-
"name": "
|
|
4712
|
+
"name": "optionIs",
|
|
4932
4713
|
"declaration": {
|
|
4933
|
-
"name": "
|
|
4934
|
-
"module": "src/jsonforms/testers/
|
|
4714
|
+
"name": "optionIs",
|
|
4715
|
+
"module": "src/jsonforms/testers/optionIs.ts"
|
|
4935
4716
|
}
|
|
4936
4717
|
}
|
|
4937
4718
|
]
|
|
4938
4719
|
},
|
|
4939
4720
|
{
|
|
4940
4721
|
"kind": "javascript-module",
|
|
4941
|
-
"path": "src/
|
|
4722
|
+
"path": "src/utils/confirmation-dialog-utils.ts",
|
|
4723
|
+
"declarations": [],
|
|
4724
|
+
"exports": []
|
|
4725
|
+
},
|
|
4726
|
+
{
|
|
4727
|
+
"kind": "javascript-module",
|
|
4728
|
+
"path": "src/utils/csv-parser.ts",
|
|
4942
4729
|
"declarations": [
|
|
4943
4730
|
{
|
|
4944
|
-
"kind": "
|
|
4945
|
-
"name": "
|
|
4731
|
+
"kind": "function",
|
|
4732
|
+
"name": "parseCsv",
|
|
4733
|
+
"return": {
|
|
4734
|
+
"type": {
|
|
4735
|
+
"text": ""
|
|
4736
|
+
}
|
|
4737
|
+
},
|
|
4738
|
+
"parameters": [
|
|
4739
|
+
{
|
|
4740
|
+
"name": "content",
|
|
4741
|
+
"type": {
|
|
4742
|
+
"text": "string"
|
|
4743
|
+
},
|
|
4744
|
+
"description": "The CSV content as a string"
|
|
4745
|
+
}
|
|
4746
|
+
],
|
|
4747
|
+
"description": "Parses a CSV string into headers and rows using PapaParse.\nHandles quoted fields, escaped quotes, empty values, and mixed line endings.",
|
|
4748
|
+
"privacy": "public"
|
|
4749
|
+
},
|
|
4750
|
+
{
|
|
4751
|
+
"kind": "function",
|
|
4752
|
+
"name": "mapCsvToSchema",
|
|
4753
|
+
"return": {
|
|
4754
|
+
"type": {
|
|
4755
|
+
"text": ""
|
|
4756
|
+
}
|
|
4757
|
+
},
|
|
4758
|
+
"parameters": [
|
|
4759
|
+
{
|
|
4760
|
+
"name": "csvRows",
|
|
4761
|
+
"type": {
|
|
4762
|
+
"text": "Record<string, string>[]"
|
|
4763
|
+
},
|
|
4764
|
+
"description": "The parsed CSV rows"
|
|
4765
|
+
},
|
|
4766
|
+
{
|
|
4767
|
+
"name": "schema",
|
|
4768
|
+
"type": {
|
|
4769
|
+
"text": "JSONSchema7 | undefined"
|
|
4770
|
+
},
|
|
4771
|
+
"description": "The JSON schema defining the fields"
|
|
4772
|
+
},
|
|
4773
|
+
{
|
|
4774
|
+
"name": "uiSchema",
|
|
4775
|
+
"optional": true,
|
|
4776
|
+
"type": {
|
|
4777
|
+
"text": "UiSchema"
|
|
4778
|
+
},
|
|
4779
|
+
"description": "Optional UI schema to map labels to field names on import"
|
|
4780
|
+
}
|
|
4781
|
+
],
|
|
4782
|
+
"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.",
|
|
4783
|
+
"privacy": "public"
|
|
4784
|
+
},
|
|
4785
|
+
{
|
|
4786
|
+
"kind": "function",
|
|
4787
|
+
"name": "generateCsvTemplate",
|
|
4788
|
+
"return": {
|
|
4789
|
+
"type": {
|
|
4790
|
+
"text": ""
|
|
4791
|
+
}
|
|
4792
|
+
},
|
|
4793
|
+
"parameters": [
|
|
4794
|
+
{
|
|
4795
|
+
"name": "schema",
|
|
4796
|
+
"type": {
|
|
4797
|
+
"text": "JSONSchema7 | undefined"
|
|
4798
|
+
},
|
|
4799
|
+
"description": "The JSON schema defining the fields"
|
|
4800
|
+
},
|
|
4801
|
+
{
|
|
4802
|
+
"name": "uiSchema",
|
|
4803
|
+
"optional": true,
|
|
4804
|
+
"type": {
|
|
4805
|
+
"text": "UiSchema"
|
|
4806
|
+
},
|
|
4807
|
+
"description": "Optional UI schema to determine field order and visibility"
|
|
4808
|
+
},
|
|
4809
|
+
{
|
|
4810
|
+
"name": "includeOptionalFields",
|
|
4811
|
+
"default": "true",
|
|
4812
|
+
"type": {
|
|
4813
|
+
"text": "boolean"
|
|
4814
|
+
},
|
|
4815
|
+
"description": "Whether to include optional fields when no UI schema (default: true)"
|
|
4816
|
+
},
|
|
4817
|
+
{
|
|
4818
|
+
"name": "includeBom",
|
|
4819
|
+
"default": "true",
|
|
4820
|
+
"type": {
|
|
4821
|
+
"text": "boolean"
|
|
4822
|
+
},
|
|
4823
|
+
"description": "Whether to prepend UTF-8 BOM for Excel compatibility (default: true)"
|
|
4824
|
+
}
|
|
4825
|
+
],
|
|
4826
|
+
"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.",
|
|
4827
|
+
"privacy": "public"
|
|
4828
|
+
},
|
|
4829
|
+
{
|
|
4830
|
+
"kind": "function",
|
|
4831
|
+
"name": "downloadCsvTemplate",
|
|
4832
|
+
"return": {
|
|
4833
|
+
"type": {
|
|
4834
|
+
"text": "void"
|
|
4835
|
+
}
|
|
4836
|
+
},
|
|
4837
|
+
"parameters": [
|
|
4838
|
+
{
|
|
4839
|
+
"name": "csvContent",
|
|
4840
|
+
"type": {
|
|
4841
|
+
"text": "string"
|
|
4842
|
+
},
|
|
4843
|
+
"description": "The CSV content to download"
|
|
4844
|
+
},
|
|
4845
|
+
{
|
|
4846
|
+
"name": "fileName",
|
|
4847
|
+
"default": "'template.csv'",
|
|
4848
|
+
"type": {
|
|
4849
|
+
"text": "string"
|
|
4850
|
+
},
|
|
4851
|
+
"description": "The name for the downloaded file (default: 'template.csv')"
|
|
4852
|
+
}
|
|
4853
|
+
],
|
|
4854
|
+
"description": "Triggers a download of the CSV template file in the browser.",
|
|
4855
|
+
"privacy": "public"
|
|
4946
4856
|
}
|
|
4947
4857
|
],
|
|
4948
4858
|
"exports": [
|
|
4949
4859
|
{
|
|
4950
4860
|
"kind": "js",
|
|
4951
|
-
"name": "
|
|
4861
|
+
"name": "parseCsv",
|
|
4952
4862
|
"declaration": {
|
|
4953
|
-
"name": "
|
|
4954
|
-
"module": "src/
|
|
4863
|
+
"name": "parseCsv",
|
|
4864
|
+
"module": "src/utils/csv-parser.ts"
|
|
4865
|
+
}
|
|
4866
|
+
},
|
|
4867
|
+
{
|
|
4868
|
+
"kind": "js",
|
|
4869
|
+
"name": "mapCsvToSchema",
|
|
4870
|
+
"declaration": {
|
|
4871
|
+
"name": "mapCsvToSchema",
|
|
4872
|
+
"module": "src/utils/csv-parser.ts"
|
|
4873
|
+
}
|
|
4874
|
+
},
|
|
4875
|
+
{
|
|
4876
|
+
"kind": "js",
|
|
4877
|
+
"name": "generateCsvTemplate",
|
|
4878
|
+
"declaration": {
|
|
4879
|
+
"name": "generateCsvTemplate",
|
|
4880
|
+
"module": "src/utils/csv-parser.ts"
|
|
4881
|
+
}
|
|
4882
|
+
},
|
|
4883
|
+
{
|
|
4884
|
+
"kind": "js",
|
|
4885
|
+
"name": "downloadCsvTemplate",
|
|
4886
|
+
"declaration": {
|
|
4887
|
+
"name": "downloadCsvTemplate",
|
|
4888
|
+
"module": "src/utils/csv-parser.ts"
|
|
4955
4889
|
}
|
|
4956
4890
|
}
|
|
4957
4891
|
]
|
|
4958
4892
|
},
|
|
4959
4893
|
{
|
|
4960
4894
|
"kind": "javascript-module",
|
|
4961
|
-
"path": "src/
|
|
4895
|
+
"path": "src/utils/filters.ts",
|
|
4896
|
+
"declarations": [],
|
|
4897
|
+
"exports": []
|
|
4898
|
+
},
|
|
4899
|
+
{
|
|
4900
|
+
"kind": "javascript-module",
|
|
4901
|
+
"path": "src/utils/form-utils.ts",
|
|
4962
4902
|
"declarations": [
|
|
4963
4903
|
{
|
|
4964
4904
|
"kind": "function",
|
|
4965
|
-
"name": "
|
|
4905
|
+
"name": "removeDataPropertiesNotInSchema",
|
|
4966
4906
|
"return": {
|
|
4967
4907
|
"type": {
|
|
4968
|
-
"text": "
|
|
4908
|
+
"text": ""
|
|
4969
4909
|
}
|
|
4970
4910
|
},
|
|
4971
4911
|
"parameters": [
|
|
4972
4912
|
{
|
|
4973
|
-
"name": "
|
|
4974
|
-
"type": {
|
|
4975
|
-
"text": "UISchemaElement"
|
|
4976
|
-
}
|
|
4977
|
-
},
|
|
4978
|
-
{
|
|
4979
|
-
"name": "schema",
|
|
4913
|
+
"name": "data",
|
|
4980
4914
|
"type": {
|
|
4981
|
-
"text": "
|
|
4982
|
-
}
|
|
4915
|
+
"text": "any"
|
|
4916
|
+
},
|
|
4917
|
+
"description": "The data object to clean"
|
|
4983
4918
|
},
|
|
4984
4919
|
{
|
|
4985
|
-
"name": "
|
|
4920
|
+
"name": "jsonSchema",
|
|
4986
4921
|
"type": {
|
|
4987
|
-
"text": "
|
|
4988
|
-
}
|
|
4922
|
+
"text": "JSONSchema7"
|
|
4923
|
+
},
|
|
4924
|
+
"description": "The JSON schema to validate against"
|
|
4989
4925
|
}
|
|
4990
|
-
]
|
|
4926
|
+
],
|
|
4927
|
+
"description": "Removes data properties that aren't part of the schema"
|
|
4991
4928
|
}
|
|
4992
4929
|
],
|
|
4993
4930
|
"exports": [
|
|
4994
4931
|
{
|
|
4995
4932
|
"kind": "js",
|
|
4996
|
-
"name": "
|
|
4933
|
+
"name": "removeDataPropertiesNotInSchema",
|
|
4997
4934
|
"declaration": {
|
|
4998
|
-
"name": "
|
|
4999
|
-
"module": "src/
|
|
4935
|
+
"name": "removeDataPropertiesNotInSchema",
|
|
4936
|
+
"module": "src/utils/form-utils.ts"
|
|
5000
4937
|
}
|
|
5001
4938
|
}
|
|
5002
4939
|
]
|
|
5003
4940
|
},
|
|
5004
4941
|
{
|
|
5005
4942
|
"kind": "javascript-module",
|
|
5006
|
-
"path": "src/
|
|
5007
|
-
"declarations": [
|
|
5008
|
-
{
|
|
5009
|
-
"kind": "variable",
|
|
5010
|
-
"name": "isOneOfBoolean"
|
|
5011
|
-
}
|
|
5012
|
-
],
|
|
4943
|
+
"path": "src/utils/index.ts",
|
|
4944
|
+
"declarations": [],
|
|
5013
4945
|
"exports": [
|
|
5014
4946
|
{
|
|
5015
4947
|
"kind": "js",
|
|
5016
|
-
"name": "
|
|
4948
|
+
"name": "*",
|
|
5017
4949
|
"declaration": {
|
|
5018
|
-
"name": "
|
|
5019
|
-
"
|
|
4950
|
+
"name": "*",
|
|
4951
|
+
"package": "./csv-parser"
|
|
5020
4952
|
}
|
|
5021
|
-
}
|
|
5022
|
-
]
|
|
5023
|
-
},
|
|
5024
|
-
{
|
|
5025
|
-
"kind": "javascript-module",
|
|
5026
|
-
"path": "src/jsonforms/testers/isOneOfEnum.ts",
|
|
5027
|
-
"declarations": [
|
|
5028
|
-
{
|
|
5029
|
-
"kind": "variable",
|
|
5030
|
-
"name": "isOneOfEnum"
|
|
5031
|
-
}
|
|
5032
|
-
],
|
|
5033
|
-
"exports": [
|
|
4953
|
+
},
|
|
5034
4954
|
{
|
|
5035
4955
|
"kind": "js",
|
|
5036
|
-
"name": "
|
|
4956
|
+
"name": "*",
|
|
5037
4957
|
"declaration": {
|
|
5038
|
-
"name": "
|
|
5039
|
-
"
|
|
4958
|
+
"name": "*",
|
|
4959
|
+
"package": "./filters"
|
|
5040
4960
|
}
|
|
5041
|
-
}
|
|
5042
|
-
]
|
|
5043
|
-
},
|
|
5044
|
-
{
|
|
5045
|
-
"kind": "javascript-module",
|
|
5046
|
-
"path": "src/jsonforms/testers/isOneOfNumber.ts",
|
|
5047
|
-
"declarations": [
|
|
5048
|
-
{
|
|
5049
|
-
"kind": "function",
|
|
5050
|
-
"name": "isBigDecimal",
|
|
5051
|
-
"return": {
|
|
5052
|
-
"type": {
|
|
5053
|
-
"text": "boolean"
|
|
5054
|
-
}
|
|
5055
|
-
},
|
|
5056
|
-
"parameters": [
|
|
5057
|
-
{
|
|
5058
|
-
"name": "fieldSchema",
|
|
5059
|
-
"type": {
|
|
5060
|
-
"text": "GenesisJsonSchema"
|
|
5061
|
-
}
|
|
5062
|
-
}
|
|
5063
|
-
]
|
|
5064
4961
|
},
|
|
5065
4962
|
{
|
|
5066
|
-
"kind": "
|
|
5067
|
-
"name": "
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
4963
|
+
"kind": "js",
|
|
4964
|
+
"name": "*",
|
|
4965
|
+
"declaration": {
|
|
4966
|
+
"name": "*",
|
|
4967
|
+
"package": "./logger"
|
|
4968
|
+
}
|
|
4969
|
+
},
|
|
5071
4970
|
{
|
|
5072
4971
|
"kind": "js",
|
|
5073
|
-
"name": "
|
|
4972
|
+
"name": "*",
|
|
5074
4973
|
"declaration": {
|
|
5075
|
-
"name": "
|
|
5076
|
-
"
|
|
4974
|
+
"name": "*",
|
|
4975
|
+
"package": "./translation"
|
|
5077
4976
|
}
|
|
5078
4977
|
},
|
|
5079
4978
|
{
|
|
5080
4979
|
"kind": "js",
|
|
5081
|
-
"name": "
|
|
4980
|
+
"name": "*",
|
|
5082
4981
|
"declaration": {
|
|
5083
|
-
"name": "
|
|
5084
|
-
"
|
|
4982
|
+
"name": "*",
|
|
4983
|
+
"package": "./validation"
|
|
5085
4984
|
}
|
|
5086
|
-
}
|
|
5087
|
-
]
|
|
5088
|
-
},
|
|
5089
|
-
{
|
|
5090
|
-
"kind": "javascript-module",
|
|
5091
|
-
"path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
|
|
5092
|
-
"declarations": [
|
|
4985
|
+
},
|
|
5093
4986
|
{
|
|
5094
|
-
"kind": "
|
|
5095
|
-
"name": "
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
4987
|
+
"kind": "js",
|
|
4988
|
+
"name": "*",
|
|
4989
|
+
"declaration": {
|
|
4990
|
+
"name": "*",
|
|
4991
|
+
"package": "./server-errors"
|
|
4992
|
+
}
|
|
4993
|
+
},
|
|
5099
4994
|
{
|
|
5100
4995
|
"kind": "js",
|
|
5101
|
-
"name": "
|
|
4996
|
+
"name": "*",
|
|
5102
4997
|
"declaration": {
|
|
5103
|
-
"name": "
|
|
5104
|
-
"
|
|
4998
|
+
"name": "*",
|
|
4999
|
+
"package": "./types"
|
|
5105
5000
|
}
|
|
5106
5001
|
}
|
|
5107
5002
|
]
|
|
5108
5003
|
},
|
|
5109
5004
|
{
|
|
5110
5005
|
"kind": "javascript-module",
|
|
5111
|
-
"path": "src/
|
|
5006
|
+
"path": "src/utils/logger.ts",
|
|
5007
|
+
"declarations": [],
|
|
5008
|
+
"exports": []
|
|
5009
|
+
},
|
|
5010
|
+
{
|
|
5011
|
+
"kind": "javascript-module",
|
|
5012
|
+
"path": "src/utils/schema-utils.ts",
|
|
5013
|
+
"declarations": [],
|
|
5014
|
+
"exports": []
|
|
5015
|
+
},
|
|
5016
|
+
{
|
|
5017
|
+
"kind": "javascript-module",
|
|
5018
|
+
"path": "src/utils/server-errors.ts",
|
|
5112
5019
|
"declarations": [
|
|
5113
5020
|
{
|
|
5114
|
-
"kind": "
|
|
5115
|
-
"name": "
|
|
5021
|
+
"kind": "function",
|
|
5022
|
+
"name": "mapGenesisFieldErrorsToAdditionalErrors",
|
|
5023
|
+
"return": {
|
|
5024
|
+
"type": {
|
|
5025
|
+
"text": "ErrorObject[]"
|
|
5026
|
+
}
|
|
5027
|
+
},
|
|
5028
|
+
"parameters": [
|
|
5029
|
+
{
|
|
5030
|
+
"name": "errors",
|
|
5031
|
+
"type": {
|
|
5032
|
+
"text": "GenesisFieldError[] | undefined"
|
|
5033
|
+
},
|
|
5034
|
+
"description": "Genesis ERROR array from an EVENT_NACK response"
|
|
5035
|
+
},
|
|
5036
|
+
{
|
|
5037
|
+
"name": "schema",
|
|
5038
|
+
"optional": true,
|
|
5039
|
+
"type": {
|
|
5040
|
+
"text": "JSONSchema7"
|
|
5041
|
+
},
|
|
5042
|
+
"description": "JSON schema used to resolve `parentSchema` for each field"
|
|
5043
|
+
},
|
|
5044
|
+
{
|
|
5045
|
+
"name": "instancePathPrefix",
|
|
5046
|
+
"optional": true,
|
|
5047
|
+
"type": {
|
|
5048
|
+
"text": "string"
|
|
5049
|
+
},
|
|
5050
|
+
"description": "Optional prefix for bulk-insert rows (e.g. `/items/0`)"
|
|
5051
|
+
}
|
|
5052
|
+
],
|
|
5053
|
+
"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.",
|
|
5054
|
+
"privacy": "public"
|
|
5116
5055
|
}
|
|
5117
5056
|
],
|
|
5118
5057
|
"exports": [
|
|
5119
5058
|
{
|
|
5120
5059
|
"kind": "js",
|
|
5121
|
-
"name": "
|
|
5060
|
+
"name": "mapGenesisFieldErrorsToAdditionalErrors",
|
|
5122
5061
|
"declaration": {
|
|
5123
|
-
"name": "
|
|
5124
|
-
"module": "src/
|
|
5062
|
+
"name": "mapGenesisFieldErrorsToAdditionalErrors",
|
|
5063
|
+
"module": "src/utils/server-errors.ts"
|
|
5125
5064
|
}
|
|
5126
5065
|
}
|
|
5127
5066
|
]
|
|
5128
5067
|
},
|
|
5129
5068
|
{
|
|
5130
5069
|
"kind": "javascript-module",
|
|
5131
|
-
"path": "src/
|
|
5070
|
+
"path": "src/utils/translation.ts",
|
|
5071
|
+
"declarations": [],
|
|
5072
|
+
"exports": []
|
|
5073
|
+
},
|
|
5074
|
+
{
|
|
5075
|
+
"kind": "javascript-module",
|
|
5076
|
+
"path": "src/utils/types.ts",
|
|
5077
|
+
"declarations": [],
|
|
5078
|
+
"exports": []
|
|
5079
|
+
},
|
|
5080
|
+
{
|
|
5081
|
+
"kind": "javascript-module",
|
|
5082
|
+
"path": "src/utils/validation.ts",
|
|
5132
5083
|
"declarations": [
|
|
5133
5084
|
{
|
|
5134
5085
|
"kind": "function",
|
|
5135
|
-
"name": "
|
|
5086
|
+
"name": "mustMatch",
|
|
5087
|
+
"parameters": [
|
|
5088
|
+
{
|
|
5089
|
+
"name": "target",
|
|
5090
|
+
"type": {
|
|
5091
|
+
"text": "string"
|
|
5092
|
+
},
|
|
5093
|
+
"description": "any other field"
|
|
5094
|
+
}
|
|
5095
|
+
],
|
|
5096
|
+
"description": "Ensures the value of the current field (the one the validator is on) matches the one of the target field.",
|
|
5136
5097
|
"return": {
|
|
5137
5098
|
"type": {
|
|
5138
|
-
"text": "
|
|
5099
|
+
"text": ""
|
|
5100
|
+
}
|
|
5101
|
+
},
|
|
5102
|
+
"privacy": "public"
|
|
5103
|
+
},
|
|
5104
|
+
{
|
|
5105
|
+
"kind": "function",
|
|
5106
|
+
"name": "getAnyOfErrorMessage",
|
|
5107
|
+
"return": {
|
|
5108
|
+
"type": {
|
|
5109
|
+
"text": "string"
|
|
5139
5110
|
}
|
|
5140
5111
|
},
|
|
5141
5112
|
"parameters": [
|
|
5142
5113
|
{
|
|
5143
|
-
"name": "
|
|
5114
|
+
"name": "errors",
|
|
5115
|
+
"type": {
|
|
5116
|
+
"text": "Array<any> | undefined"
|
|
5117
|
+
}
|
|
5118
|
+
},
|
|
5119
|
+
{
|
|
5120
|
+
"name": "schema",
|
|
5121
|
+
"type": {
|
|
5122
|
+
"text": "any"
|
|
5123
|
+
}
|
|
5124
|
+
},
|
|
5125
|
+
{
|
|
5126
|
+
"name": "controlPath",
|
|
5127
|
+
"type": {
|
|
5128
|
+
"text": "string | undefined"
|
|
5129
|
+
}
|
|
5130
|
+
},
|
|
5131
|
+
{
|
|
5132
|
+
"name": "uiCustomMsg",
|
|
5133
|
+
"optional": true,
|
|
5144
5134
|
"type": {
|
|
5145
5135
|
"text": "string"
|
|
5146
5136
|
}
|
|
5147
5137
|
}
|
|
5148
|
-
]
|
|
5138
|
+
],
|
|
5139
|
+
"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.",
|
|
5140
|
+
"privacy": "public"
|
|
5149
5141
|
}
|
|
5150
5142
|
],
|
|
5151
5143
|
"exports": [
|
|
5152
5144
|
{
|
|
5153
5145
|
"kind": "js",
|
|
5154
|
-
"name": "
|
|
5146
|
+
"name": "mustMatch",
|
|
5155
5147
|
"declaration": {
|
|
5156
|
-
"name": "
|
|
5157
|
-
"module": "src/
|
|
5148
|
+
"name": "mustMatch",
|
|
5149
|
+
"module": "src/utils/validation.ts"
|
|
5150
|
+
}
|
|
5151
|
+
},
|
|
5152
|
+
{
|
|
5153
|
+
"kind": "js",
|
|
5154
|
+
"name": "getAnyOfErrorMessage",
|
|
5155
|
+
"declaration": {
|
|
5156
|
+
"name": "getAnyOfErrorMessage",
|
|
5157
|
+
"module": "src/utils/validation.ts"
|
|
5158
5158
|
}
|
|
5159
5159
|
}
|
|
5160
5160
|
]
|