@genesislcap/foundation-forms 14.488.2 → 14.489.0-GENC-1351.10

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 +715 -715
  2. package/package.json +15 -15
@@ -1779,205 +1779,647 @@
1779
1779
  },
1780
1780
  {
1781
1781
  "kind": "javascript-module",
1782
- "path": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts",
1782
+ "path": "src/utils/confirmation-dialog-utils.ts",
1783
+ "declarations": [],
1784
+ "exports": []
1785
+ },
1786
+ {
1787
+ "kind": "javascript-module",
1788
+ "path": "src/utils/csv-parser.ts",
1783
1789
  "declarations": [
1784
1790
  {
1785
1791
  "kind": "function",
1786
- "name": "ArrayListWrapperRendererTemplate",
1792
+ "name": "parseCsv",
1793
+ "return": {
1794
+ "type": {
1795
+ "text": ""
1796
+ }
1797
+ },
1787
1798
  "parameters": [
1788
1799
  {
1789
- "name": "prefix",
1790
- "default": "'zero'",
1800
+ "name": "content",
1791
1801
  "type": {
1792
1802
  "text": "string"
1793
- }
1803
+ },
1804
+ "description": "The CSV content as a string"
1794
1805
  }
1795
- ]
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"
1796
1809
  },
1797
1810
  {
1798
- "kind": "class",
1799
- "description": "",
1800
- "name": "ArrayListWrapper",
1801
- "members": [
1802
- {
1803
- "kind": "field",
1804
- "name": "form"
1805
- },
1806
- {
1807
- "kind": "field",
1808
- "name": "control"
1809
- },
1811
+ "kind": "function",
1812
+ "name": "mapCsvToSchema",
1813
+ "return": {
1814
+ "type": {
1815
+ "text": ""
1816
+ }
1817
+ },
1818
+ "parameters": [
1810
1819
  {
1811
- "kind": "field",
1812
- "name": "schema"
1820
+ "name": "csvRows",
1821
+ "type": {
1822
+ "text": "Record<string, string>[]"
1823
+ },
1824
+ "description": "The parsed CSV rows"
1813
1825
  },
1814
1826
  {
1815
- "kind": "field",
1816
- "name": "uiSchema"
1827
+ "name": "schema",
1828
+ "type": {
1829
+ "text": "JSONSchema7 | undefined"
1830
+ },
1831
+ "description": "The JSON schema defining the fields"
1817
1832
  },
1818
1833
  {
1819
- "kind": "field",
1820
- "name": "isGridView",
1834
+ "name": "uiSchema",
1835
+ "optional": true,
1821
1836
  "type": {
1822
- "text": "boolean"
1837
+ "text": "UiSchema"
1823
1838
  },
1824
- "default": "false"
1825
- },
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": [
1826
1854
  {
1827
- "kind": "field",
1828
- "name": "gridViewHeaderCells",
1855
+ "name": "schema",
1829
1856
  "type": {
1830
- "text": "GridHeaderCell[]"
1857
+ "text": "JSONSchema7 | undefined"
1831
1858
  },
1832
- "default": "[]"
1859
+ "description": "The JSON schema defining the fields"
1833
1860
  },
1834
1861
  {
1835
- "kind": "field",
1836
- "name": "gridViewUiSchema",
1862
+ "name": "uiSchema",
1863
+ "optional": true,
1837
1864
  "type": {
1838
- "text": "any"
1865
+ "text": "UiSchema"
1839
1866
  },
1840
- "default": "null"
1867
+ "description": "Optional UI schema to determine field order and visibility"
1841
1868
  },
1842
1869
  {
1843
- "kind": "method",
1844
- "name": "controlChanged"
1870
+ "name": "includeOptionalFields",
1871
+ "default": "true",
1872
+ "type": {
1873
+ "text": "boolean"
1874
+ },
1875
+ "description": "Whether to include optional fields when no UI schema (default: true)"
1845
1876
  },
1846
1877
  {
1847
- "kind": "method",
1848
- "name": "addItem"
1849
- },
1878
+ "name": "includeBom",
1879
+ "default": "true",
1880
+ "type": {
1881
+ "text": "boolean"
1882
+ },
1883
+ "description": "Whether to prepend UTF-8 BOM for Excel compatibility (default: true)"
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": [
1850
1898
  {
1851
- "kind": "method",
1852
- "name": "deleteItem",
1853
- "parameters": [
1854
- {
1855
- "name": "index",
1856
- "type": {
1857
- "text": "number"
1858
- }
1859
- }
1860
- ]
1899
+ "name": "csvContent",
1900
+ "type": {
1901
+ "text": "string"
1902
+ },
1903
+ "description": "The CSV content to download"
1861
1904
  },
1862
1905
  {
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."
1906
+ "name": "fileName",
1907
+ "default": "'template.csv'",
1908
+ "type": {
1909
+ "text": "string"
1910
+ },
1911
+ "description": "The name for the downloaded file (default: 'template.csv')"
1875
1912
  }
1876
1913
  ],
1877
- "superclass": {
1878
- "name": "FASTElement",
1879
- "package": "@microsoft/fast-element"
1880
- },
1881
- "tagName": "array-list-wrapper",
1882
- "customElement": true
1914
+ "description": "Triggers a download of the CSV template file in the browser.",
1915
+ "privacy": "public"
1883
1916
  }
1884
1917
  ],
1885
1918
  "exports": [
1886
1919
  {
1887
1920
  "kind": "js",
1888
- "name": "ArrayListWrapperRendererTemplate",
1921
+ "name": "parseCsv",
1889
1922
  "declaration": {
1890
- "name": "ArrayListWrapperRendererTemplate",
1891
- "module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
1923
+ "name": "parseCsv",
1924
+ "module": "src/utils/csv-parser.ts"
1892
1925
  }
1893
1926
  },
1894
1927
  {
1895
1928
  "kind": "js",
1896
- "name": "ArrayListWrapper",
1897
- "declaration": {
1898
- "name": "ArrayListWrapper",
1899
- "module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
1900
- }
1901
- },
1902
- {
1903
- "kind": "custom-element-definition",
1904
- "name": "array-list-wrapper",
1929
+ "name": "mapCsvToSchema",
1905
1930
  "declaration": {
1906
- "name": "ArrayListWrapper",
1907
- "module": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts"
1931
+ "name": "mapCsvToSchema",
1932
+ "module": "src/utils/csv-parser.ts"
1908
1933
  }
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
- ]
1928
1934
  },
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": [
1939
1935
  {
1940
1936
  "kind": "js",
1941
- "name": "BooleanControlRendererTemplate",
1937
+ "name": "generateCsvTemplate",
1942
1938
  "declaration": {
1943
- "name": "BooleanControlRendererTemplate",
1944
- "module": "src/jsonforms/renderers/BooleanControlRenderer.ts"
1939
+ "name": "generateCsvTemplate",
1940
+ "module": "src/utils/csv-parser.ts"
1945
1941
  }
1946
1942
  },
1947
1943
  {
1948
1944
  "kind": "js",
1949
- "name": "BooleanControlEntry",
1945
+ "name": "downloadCsvTemplate",
1950
1946
  "declaration": {
1951
- "name": "BooleanControlEntry",
1952
- "module": "src/jsonforms/renderers/BooleanControlRenderer.ts"
1947
+ "name": "downloadCsvTemplate",
1948
+ "module": "src/utils/csv-parser.ts"
1953
1949
  }
1954
1950
  }
1955
1951
  ]
1956
1952
  },
1957
1953
  {
1958
1954
  "kind": "javascript-module",
1959
- "path": "src/jsonforms/renderers/CategorizationWrapperRenderer.ts",
1955
+ "path": "src/utils/filters.ts",
1956
+ "declarations": [],
1957
+ "exports": []
1958
+ },
1959
+ {
1960
+ "kind": "javascript-module",
1961
+ "path": "src/utils/form-utils.ts",
1960
1962
  "declarations": [
1961
1963
  {
1962
1964
  "kind": "function",
1963
- "name": "computeCategoryClassName",
1965
+ "name": "removeDataPropertiesNotInSchema",
1964
1966
  "return": {
1965
1967
  "type": {
1966
- "text": "string"
1968
+ "text": ""
1967
1969
  }
1968
1970
  },
1969
1971
  "parameters": [
1970
1972
  {
1971
- "name": "category",
1973
+ "name": "data",
1972
1974
  "type": {
1973
- "text": "UiSchemaElement"
1974
- }
1975
+ "text": "any"
1976
+ },
1977
+ "description": "The data object to clean"
1975
1978
  },
1976
1979
  {
1977
- "name": "data",
1980
+ "name": "jsonSchema",
1978
1981
  "type": {
1979
- "text": "any"
1980
- }
1982
+ "text": "JSONSchema7"
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
+ }
1981
2423
  }
1982
2424
  ]
1983
2425
  },
@@ -4427,280 +4869,57 @@
4427
4869
  "text": "void"
4428
4870
  }
4429
4871
  }
4430
- },
4431
- {
4432
- "kind": "method",
4433
- "name": "flush",
4434
- "privacy": "private",
4435
- "return": {
4436
- "type": {
4437
- "text": "void"
4438
- }
4439
- }
4440
- }
4441
- ],
4442
- "superclass": {
4443
- "name": "FASTElement",
4444
- "package": "@microsoft/fast-element"
4445
- },
4446
- "tagName": "foundation-react-slot",
4447
- "customElement": true
4448
- }
4449
- ],
4450
- "exports": [
4451
- {
4452
- "kind": "js",
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"
4872
+ },
4873
+ {
4874
+ "kind": "method",
4875
+ "name": "flush",
4876
+ "privacy": "private",
4877
+ "return": {
4878
+ "type": {
4879
+ "text": "void"
4880
+ }
4881
+ }
4882
+ }
4883
+ ],
4884
+ "superclass": {
4885
+ "name": "FASTElement",
4886
+ "package": "@microsoft/fast-element"
4887
+ },
4888
+ "tagName": "foundation-react-slot",
4889
+ "customElement": true
4654
4890
  }
4655
4891
  ],
4656
4892
  "exports": [
4657
4893
  {
4658
4894
  "kind": "js",
4659
- "name": "isOneOfOptionMultiselect",
4895
+ "name": "FoundationReactSlot",
4660
4896
  "declaration": {
4661
- "name": "isOneOfOptionMultiselect",
4662
- "module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
4897
+ "name": "FoundationReactSlot",
4898
+ "module": "src/jsonforms/renderers/foundation-react-slot.ts"
4663
4899
  }
4664
- }
4665
- ]
4666
- },
4667
- {
4668
- "kind": "javascript-module",
4669
- "path": "src/jsonforms/testers/isTime.ts",
4670
- "declarations": [
4671
- {
4672
- "kind": "variable",
4673
- "name": "isOneOfTime"
4674
- }
4675
- ],
4676
- "exports": [
4900
+ },
4677
4901
  {
4678
- "kind": "js",
4679
- "name": "isOneOfTime",
4902
+ "kind": "custom-element-definition",
4903
+ "name": "foundation-react-slot",
4680
4904
  "declaration": {
4681
- "name": "isOneOfTime",
4682
- "module": "src/jsonforms/testers/isTime.ts"
4905
+ "name": "FoundationReactSlot",
4906
+ "module": "src/jsonforms/renderers/foundation-react-slot.ts"
4683
4907
  }
4684
4908
  }
4685
4909
  ]
4686
4910
  },
4687
4911
  {
4688
4912
  "kind": "javascript-module",
4689
- "path": "src/jsonforms/testers/optionIs.ts",
4913
+ "path": "src/jsonforms/testers/isArray.ts",
4690
4914
  "declarations": [
4691
4915
  {
4692
4916
  "kind": "function",
4693
- "name": "optionIs",
4694
- "return": {
4695
- "type": {
4696
- "text": "Tester"
4697
- }
4698
- },
4917
+ "name": "isArray",
4699
4918
  "parameters": [
4700
4919
  {
4701
- "name": "optionName",
4920
+ "name": "itemsType",
4702
4921
  "type": {
4703
- "text": "string"
4922
+ "text": "ArrayItemsType"
4704
4923
  }
4705
4924
  }
4706
4925
  ]
@@ -4709,452 +4928,233 @@
4709
4928
  "exports": [
4710
4929
  {
4711
4930
  "kind": "js",
4712
- "name": "optionIs",
4931
+ "name": "isArray",
4713
4932
  "declaration": {
4714
- "name": "optionIs",
4715
- "module": "src/jsonforms/testers/optionIs.ts"
4933
+ "name": "isArray",
4934
+ "module": "src/jsonforms/testers/isArray.ts"
4716
4935
  }
4717
4936
  }
4718
4937
  ]
4719
4938
  },
4720
4939
  {
4721
4940
  "kind": "javascript-module",
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",
4941
+ "path": "src/jsonforms/testers/isDate.ts",
4729
4942
  "declarations": [
4730
4943
  {
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"
4944
+ "kind": "variable",
4945
+ "name": "isOneOfDate"
4856
4946
  }
4857
4947
  ],
4858
4948
  "exports": [
4859
4949
  {
4860
4950
  "kind": "js",
4861
- "name": "parseCsv",
4862
- "declaration": {
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",
4951
+ "name": "isOneOfDate",
4886
4952
  "declaration": {
4887
- "name": "downloadCsvTemplate",
4888
- "module": "src/utils/csv-parser.ts"
4953
+ "name": "isOneOfDate",
4954
+ "module": "src/jsonforms/testers/isDate.ts"
4889
4955
  }
4890
4956
  }
4891
4957
  ]
4892
4958
  },
4893
4959
  {
4894
4960
  "kind": "javascript-module",
4895
- "path": "src/utils/filters.ts",
4896
- "declarations": [],
4897
- "exports": []
4898
- },
4899
- {
4900
- "kind": "javascript-module",
4901
- "path": "src/utils/form-utils.ts",
4961
+ "path": "src/jsonforms/testers/isInvisible.ts",
4902
4962
  "declarations": [
4903
4963
  {
4904
4964
  "kind": "function",
4905
- "name": "removeDataPropertiesNotInSchema",
4965
+ "name": "isInvisible",
4906
4966
  "return": {
4907
4967
  "type": {
4908
- "text": ""
4968
+ "text": "boolean"
4909
4969
  }
4910
4970
  },
4911
4971
  "parameters": [
4912
4972
  {
4913
- "name": "data",
4973
+ "name": "uischema",
4914
4974
  "type": {
4915
- "text": "any"
4916
- },
4917
- "description": "The data object to clean"
4975
+ "text": "UISchemaElement"
4976
+ }
4918
4977
  },
4919
4978
  {
4920
- "name": "jsonSchema",
4979
+ "name": "schema",
4980
+ "type": {
4981
+ "text": "JsonSchema"
4982
+ }
4983
+ },
4984
+ {
4985
+ "name": "context",
4921
4986
  "type": {
4922
- "text": "JSONSchema7"
4923
- },
4924
- "description": "The JSON schema to validate against"
4987
+ "text": "TesterContext"
4988
+ }
4925
4989
  }
4926
- ],
4927
- "description": "Removes data properties that aren't part of the schema"
4990
+ ]
4928
4991
  }
4929
4992
  ],
4930
4993
  "exports": [
4931
4994
  {
4932
4995
  "kind": "js",
4933
- "name": "removeDataPropertiesNotInSchema",
4996
+ "name": "isInvisible",
4934
4997
  "declaration": {
4935
- "name": "removeDataPropertiesNotInSchema",
4936
- "module": "src/utils/form-utils.ts"
4998
+ "name": "isInvisible",
4999
+ "module": "src/jsonforms/testers/isInvisible.ts"
4937
5000
  }
4938
5001
  }
4939
5002
  ]
4940
5003
  },
4941
5004
  {
4942
5005
  "kind": "javascript-module",
4943
- "path": "src/utils/index.ts",
4944
- "declarations": [],
4945
- "exports": [
4946
- {
4947
- "kind": "js",
4948
- "name": "*",
4949
- "declaration": {
4950
- "name": "*",
4951
- "package": "./csv-parser"
4952
- }
4953
- },
4954
- {
4955
- "kind": "js",
4956
- "name": "*",
4957
- "declaration": {
4958
- "name": "*",
4959
- "package": "./filters"
4960
- }
4961
- },
4962
- {
4963
- "kind": "js",
4964
- "name": "*",
4965
- "declaration": {
4966
- "name": "*",
4967
- "package": "./logger"
4968
- }
4969
- },
5006
+ "path": "src/jsonforms/testers/isOneOfBoolean.ts",
5007
+ "declarations": [
4970
5008
  {
4971
- "kind": "js",
4972
- "name": "*",
4973
- "declaration": {
4974
- "name": "*",
4975
- "package": "./translation"
4976
- }
4977
- },
5009
+ "kind": "variable",
5010
+ "name": "isOneOfBoolean"
5011
+ }
5012
+ ],
5013
+ "exports": [
4978
5014
  {
4979
5015
  "kind": "js",
4980
- "name": "*",
5016
+ "name": "isOneOfBoolean",
4981
5017
  "declaration": {
4982
- "name": "*",
4983
- "package": "./validation"
5018
+ "name": "isOneOfBoolean",
5019
+ "module": "src/jsonforms/testers/isOneOfBoolean.ts"
4984
5020
  }
4985
- },
5021
+ }
5022
+ ]
5023
+ },
5024
+ {
5025
+ "kind": "javascript-module",
5026
+ "path": "src/jsonforms/testers/isOneOfEnum.ts",
5027
+ "declarations": [
4986
5028
  {
4987
- "kind": "js",
4988
- "name": "*",
4989
- "declaration": {
4990
- "name": "*",
4991
- "package": "./server-errors"
4992
- }
4993
- },
5029
+ "kind": "variable",
5030
+ "name": "isOneOfEnum"
5031
+ }
5032
+ ],
5033
+ "exports": [
4994
5034
  {
4995
5035
  "kind": "js",
4996
- "name": "*",
5036
+ "name": "isOneOfEnum",
4997
5037
  "declaration": {
4998
- "name": "*",
4999
- "package": "./types"
5038
+ "name": "isOneOfEnum",
5039
+ "module": "src/jsonforms/testers/isOneOfEnum.ts"
5000
5040
  }
5001
5041
  }
5002
5042
  ]
5003
5043
  },
5004
5044
  {
5005
5045
  "kind": "javascript-module",
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",
5046
+ "path": "src/jsonforms/testers/isOneOfNumber.ts",
5019
5047
  "declarations": [
5020
5048
  {
5021
5049
  "kind": "function",
5022
- "name": "mapGenesisFieldErrorsToAdditionalErrors",
5050
+ "name": "isBigDecimal",
5023
5051
  "return": {
5024
5052
  "type": {
5025
- "text": "ErrorObject[]"
5053
+ "text": "boolean"
5026
5054
  }
5027
5055
  },
5028
5056
  "parameters": [
5029
5057
  {
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,
5058
+ "name": "fieldSchema",
5047
5059
  "type": {
5048
- "text": "string"
5049
- },
5050
- "description": "Optional prefix for bulk-insert rows (e.g. `/items/0`)"
5060
+ "text": "GenesisJsonSchema"
5061
+ }
5051
5062
  }
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"
5063
+ ]
5064
+ },
5065
+ {
5066
+ "kind": "variable",
5067
+ "name": "isOneOfNumber"
5055
5068
  }
5056
5069
  ],
5057
5070
  "exports": [
5058
5071
  {
5059
5072
  "kind": "js",
5060
- "name": "mapGenesisFieldErrorsToAdditionalErrors",
5073
+ "name": "isBigDecimal",
5061
5074
  "declaration": {
5062
- "name": "mapGenesisFieldErrorsToAdditionalErrors",
5063
- "module": "src/utils/server-errors.ts"
5075
+ "name": "isBigDecimal",
5076
+ "module": "src/jsonforms/testers/isOneOfNumber.ts"
5077
+ }
5078
+ },
5079
+ {
5080
+ "kind": "js",
5081
+ "name": "isOneOfNumber",
5082
+ "declaration": {
5083
+ "name": "isOneOfNumber",
5084
+ "module": "src/jsonforms/testers/isOneOfNumber.ts"
5064
5085
  }
5065
5086
  }
5066
5087
  ]
5067
5088
  },
5068
5089
  {
5069
5090
  "kind": "javascript-module",
5070
- "path": "src/utils/translation.ts",
5071
- "declarations": [],
5072
- "exports": []
5091
+ "path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
5092
+ "declarations": [
5093
+ {
5094
+ "kind": "variable",
5095
+ "name": "isOneOfOptionMultiselect"
5096
+ }
5097
+ ],
5098
+ "exports": [
5099
+ {
5100
+ "kind": "js",
5101
+ "name": "isOneOfOptionMultiselect",
5102
+ "declaration": {
5103
+ "name": "isOneOfOptionMultiselect",
5104
+ "module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
5105
+ }
5106
+ }
5107
+ ]
5073
5108
  },
5074
5109
  {
5075
5110
  "kind": "javascript-module",
5076
- "path": "src/utils/types.ts",
5077
- "declarations": [],
5078
- "exports": []
5111
+ "path": "src/jsonforms/testers/isTime.ts",
5112
+ "declarations": [
5113
+ {
5114
+ "kind": "variable",
5115
+ "name": "isOneOfTime"
5116
+ }
5117
+ ],
5118
+ "exports": [
5119
+ {
5120
+ "kind": "js",
5121
+ "name": "isOneOfTime",
5122
+ "declaration": {
5123
+ "name": "isOneOfTime",
5124
+ "module": "src/jsonforms/testers/isTime.ts"
5125
+ }
5126
+ }
5127
+ ]
5079
5128
  },
5080
5129
  {
5081
5130
  "kind": "javascript-module",
5082
- "path": "src/utils/validation.ts",
5131
+ "path": "src/jsonforms/testers/optionIs.ts",
5083
5132
  "declarations": [
5084
5133
  {
5085
5134
  "kind": "function",
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.",
5097
- "return": {
5098
- "type": {
5099
- "text": ""
5100
- }
5101
- },
5102
- "privacy": "public"
5103
- },
5104
- {
5105
- "kind": "function",
5106
- "name": "getAnyOfErrorMessage",
5135
+ "name": "optionIs",
5107
5136
  "return": {
5108
5137
  "type": {
5109
- "text": "string"
5138
+ "text": "Tester"
5110
5139
  }
5111
5140
  },
5112
5141
  "parameters": [
5113
5142
  {
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,
5143
+ "name": "optionName",
5134
5144
  "type": {
5135
5145
  "text": "string"
5136
5146
  }
5137
5147
  }
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"
5148
+ ]
5141
5149
  }
5142
5150
  ],
5143
5151
  "exports": [
5144
5152
  {
5145
5153
  "kind": "js",
5146
- "name": "mustMatch",
5147
- "declaration": {
5148
- "name": "mustMatch",
5149
- "module": "src/utils/validation.ts"
5150
- }
5151
- },
5152
- {
5153
- "kind": "js",
5154
- "name": "getAnyOfErrorMessage",
5154
+ "name": "optionIs",
5155
5155
  "declaration": {
5156
- "name": "getAnyOfErrorMessage",
5157
- "module": "src/utils/validation.ts"
5156
+ "name": "optionIs",
5157
+ "module": "src/jsonforms/testers/optionIs.ts"
5158
5158
  }
5159
5159
  }
5160
5160
  ]