formbuilder-lhcforms 12.5.0 → 12.6.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.
@@ -2825,6 +2825,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2825
2825
  SOFTWARE.
2826
2826
 
2827
2827
 
2828
+ mime-db
2829
+ MIT
2830
+ (The MIT License)
2831
+
2832
+ Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
2833
+ Copyright (c) 2015-2022 Douglas Christopher Wilson <doug@somethingdoug.com>
2834
+
2835
+ Permission is hereby granted, free of charge, to any person obtaining
2836
+ a copy of this software and associated documentation files (the
2837
+ 'Software'), to deal in the Software without restriction, including
2838
+ without limitation the rights to use, copy, modify, merge, publish,
2839
+ distribute, sublicense, and/or sell copies of the Software, and to
2840
+ permit persons to whom the Software is furnished to do so, subject to
2841
+ the following conditions:
2842
+
2843
+ The above copyright notice and this permission notice shall be
2844
+ included in all copies or substantial portions of the Software.
2845
+
2846
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
2847
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2848
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
2849
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
2850
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2851
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2852
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2853
+
2854
+
2828
2855
  mobx
2829
2856
  MIT
2830
2857
  The MIT License (MIT)
@@ -54,7 +54,7 @@
54
54
  "labelClasses": "col-2 ps-0 pe-1",
55
55
  "controlClasses": "col-10 p-0",
56
56
  "selectOptionsMap": {
57
- "remove": ["reference", "attachment"],
57
+ "remove": ["reference"],
58
58
  "validateType": true
59
59
  }
60
60
  },
@@ -65,7 +65,7 @@
65
65
  "title": "Entry format",
66
66
  "type": "string",
67
67
  "visibleIf": {
68
- "type": ["$EXP$ target.value != 'group' && target.value != 'display' && target.value != 'boolean' && target.value != 'reference'"]
68
+ "type": ["$EXP$ target.value != 'group' && target.value != 'display' && target.value != 'boolean' && target.value != 'reference' && target.value != 'attachment'"]
69
69
  },
70
70
  "widget": {
71
71
  "id": "entry-format",
@@ -152,7 +152,7 @@
152
152
  "regex",
153
153
  "minValue",
154
154
  "maxValue",
155
- "mazSize",
155
+ "maxSize",
156
156
  "mimeType"
157
157
  ],
158
158
  "title": "Restriction",
@@ -161,7 +161,8 @@
161
161
  "value": {
162
162
  "description": "Value to restrict the input",
163
163
  "type": "string",
164
- "title": "Value"
164
+ "title": "Value",
165
+ "widget": {"id": "restrictions-value"}
165
166
  }
166
167
  },
167
168
  "additionalProperties": false,
@@ -193,9 +194,14 @@
193
194
  "answerConstraint": ["$EXP$ target.value == 'optionsOrType' || target.value == 'optionsOrString'"]
194
195
  }
195
196
  ],
197
+ },
198
+ // Attachment cannot be an answer list; its maxSize/mimeType restrictions always apply.
199
+ // This branch depends only on 'type' (always visible), because '__$isAnswerList' is
200
+ // hidden for attachment and hidden dependencies evaluate to false in visibleIf.
201
+ {
202
+ "type": ["attachment"]
196
203
  }
197
- ],
198
- "type": ["$EXP$ target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url'"]
204
+ ]
199
205
  },
200
206
  "widget": {
201
207
  "id": "restrictions",
@@ -1703,6 +1709,28 @@
1703
1709
  "id": "hidden"
1704
1710
  }
1705
1711
  },
1712
+ "__$stringify": {
1713
+ "description": "JSON representation used to display an Attachment initial value.",
1714
+ "title": "Value",
1715
+ "type": "string",
1716
+ "visibleIf": {
1717
+ "/type": ["attachment"]
1718
+ },
1719
+ "widget": {
1720
+ "id": "string",
1721
+ "readOnly": true,
1722
+ "tooltipFormat": "json"
1723
+ }
1724
+ },
1725
+ "__$attachmentInputMethod": {
1726
+ "description": "Attachment input method used by the initial-value editor.",
1727
+ "type": "string",
1728
+ "enum": ["file", "url"],
1729
+ "visibleIf": {
1730
+ "/type": ["attachment"]
1731
+ },
1732
+ "widget": {"id": "hidden"}
1733
+ },
1706
1734
  "valueBoolean": {
1707
1735
  "description": "The actual value to for an initial answer.",
1708
1736
  "pattern": "^true|false$",
@@ -1810,7 +1838,10 @@
1810
1838
  "id": {
1811
1839
  "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
1812
1840
  "pattern": "^[ \\r\\n\\t\\S]+$",
1813
- "type": "string"
1841
+ "type": "string",
1842
+ "widget": {
1843
+ "id": "hidden"
1844
+ }
1814
1845
  },
1815
1846
  "extension": {
1816
1847
  "description": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
@@ -1824,43 +1855,168 @@
1824
1855
  },
1825
1856
  "contentType": {
1826
1857
  "description": "Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.",
1858
+ "title": "Mime Type",
1827
1859
  "pattern": "^[^\\s]+(\\s[^\\s]+)*$",
1828
- "type": "string"
1860
+ "type": "string",
1861
+ "widget": {
1862
+ "id": "string",
1863
+ "readOnly": true,
1864
+ "labelPosition": "left",
1865
+ "labelClasses": "col-sm-2 p-0",
1866
+ "controlClasses": "col-sm-10 px-0",
1867
+ "placeholder": "e.g. application/pdf"
1868
+ }
1829
1869
  },
1830
1870
  "language": {
1831
1871
  "description": "The human language of the content. The value can be any valid value according to BCP 47.",
1872
+ "title": "Language",
1832
1873
  "pattern": "^[^\\s]+(\\s[^\\s]+)*$",
1833
- "type": "string"
1874
+ "type": "string",
1875
+ "widget": {
1876
+ "id": "string",
1877
+ "labelPosition": "left",
1878
+ "labelClasses": "col-sm-2 p-0",
1879
+ "controlClasses": "col-sm-10 px-0",
1880
+ "placeholder": "Search or enter a BCP-47 language tag"
1881
+ }
1834
1882
  },
1835
1883
  "data": {
1836
1884
  "description": "The actual data of the attachment - a sequence of bytes, base64 encoded.",
1837
1885
  "pattern": "^[ \\r\\n\\t\\S]+$",
1838
- "type": "string"
1886
+ "type": "string",
1887
+ "widget": {
1888
+ "id": "hidden"
1889
+ }
1839
1890
  },
1840
1891
  "url": {
1841
1892
  "description": "A location where the data can be accessed.",
1893
+ "title": "URL",
1842
1894
  "pattern": "^\\S*$",
1843
- "type": "string"
1895
+ "type": "string",
1896
+ "widget": {
1897
+ "id": "url",
1898
+ "labelPosition": "left",
1899
+ "labelClasses": "col-sm-2 p-0",
1900
+ "controlClasses": "col-sm-10 px-0",
1901
+ "placeholder": "https://example.org/file.pdf"
1902
+ }
1844
1903
  },
1845
1904
  "size": {
1846
1905
  "description": "The number of bytes of data that make up this attachment (before base64 encoding, if that is done).",
1847
- "pattern": "^[0]|([1-9][0-9]*)$",
1848
- "type": "number"
1906
+ "title": "Size",
1907
+ "pattern": "^(0|[1-9][0-9]*)$",
1908
+ "type": "string",
1909
+ "widget": {
1910
+ "id": "string",
1911
+ "readOnly": true,
1912
+ "labelPosition": "left",
1913
+ "labelClasses": "col-sm-2 p-0",
1914
+ "controlClasses": "col-sm-10 px-0",
1915
+ "placeholder": "Number of bytes"
1916
+ }
1849
1917
  },
1850
1918
  "hash": {
1851
1919
  "description": "The calculated hash of the data using SHA-1. Represented using base64.",
1852
1920
  "pattern": "^[ \\r\\n\\t\\S]+$",
1853
- "type": "string"
1921
+ "type": "string",
1922
+ "widget": {
1923
+ "id": "hidden"
1924
+ }
1854
1925
  },
1855
1926
  "title": {
1856
1927
  "description": "A label or set of text to display in place of the data.",
1928
+ "title": "Title",
1857
1929
  "pattern": "^[ \\r\\n\\t\\S]+$",
1858
- "type": "string"
1930
+ "type": "string",
1931
+ "widget": {
1932
+ "id": "string",
1933
+ "readOnly": true,
1934
+ "labelPosition": "left",
1935
+ "labelClasses": "col-sm-2 p-0",
1936
+ "controlClasses": "col-sm-10 px-0",
1937
+ "placeholder": "Label to display for the file"
1938
+ }
1859
1939
  },
1860
1940
  "creation": {
1861
1941
  "description": "The date that the attachment was first created.",
1942
+ "title": "Creation",
1862
1943
  "pattern": "^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?$",
1863
- "type": "string"
1944
+ "type": "string",
1945
+ "widget": {
1946
+ "id": "datetime",
1947
+ "labelPosition": "left",
1948
+ "labelClasses": "col-sm-2 p-0",
1949
+ "controlClasses": "col-sm-10 px-0"
1950
+ }
1951
+ },
1952
+ "height": {
1953
+ "description": "Height of the image in pixels (photo/video).",
1954
+ "title": "Height",
1955
+ "type": "integer",
1956
+ "minimum": 1,
1957
+ "maximum": 2147483647,
1958
+ "widget": {
1959
+ "id": "positive-integer",
1960
+ "labelPosition": "left",
1961
+ "labelClasses": "col-sm-2 p-0",
1962
+ "controlClasses": "col-sm-10 px-0",
1963
+ "placeholder": "Pixels"
1964
+ }
1965
+ },
1966
+ "width": {
1967
+ "description": "Width of the image in pixels (photo/video).",
1968
+ "title": "Width",
1969
+ "type": "integer",
1970
+ "minimum": 1,
1971
+ "maximum": 2147483647,
1972
+ "widget": {
1973
+ "id": "positive-integer",
1974
+ "labelPosition": "left",
1975
+ "labelClasses": "col-sm-2 p-0",
1976
+ "controlClasses": "col-sm-10 px-0",
1977
+ "placeholder": "Pixels"
1978
+ }
1979
+ },
1980
+ "frames": {
1981
+ "description": "Number of frames if greater than one (photo).",
1982
+ "title": "Frames",
1983
+ "type": "integer",
1984
+ "minimum": 1,
1985
+ "maximum": 2147483647,
1986
+ "widget": {
1987
+ "id": "positive-integer",
1988
+ "labelPosition": "left",
1989
+ "labelClasses": "col-sm-2 p-0",
1990
+ "controlClasses": "col-sm-10 px-0",
1991
+ "placeholder": "Number of frames"
1992
+ }
1993
+ },
1994
+ "duration": {
1995
+ "description": "Length in seconds (audio/video).",
1996
+ "title": "Duration",
1997
+ "type": "number",
1998
+ "minimum": 0,
1999
+ "widget": {
2000
+ "id": "number",
2001
+ "labelPosition": "left",
2002
+ "labelClasses": "col-sm-2 p-0",
2003
+ "controlClasses": "col-sm-10 px-0",
2004
+ "placeholder": "Seconds"
2005
+ }
2006
+ },
2007
+ "pages": {
2008
+ "description": "Number of printed pages.",
2009
+ "title": "Pages",
2010
+ "type": "integer",
2011
+ "minimum": 1,
2012
+ "maximum": 2147483647,
2013
+ "widget": {
2014
+ "id": "positive-integer",
2015
+ "labelPosition": "left",
2016
+ "labelClasses": "col-sm-2 p-0",
2017
+ "controlClasses": "col-sm-10 px-0",
2018
+ "placeholder": "Number of printed pages"
2019
+ }
1864
2020
  }
1865
2021
  },
1866
2022
  "additionalProperties": false,
@@ -2087,7 +2243,7 @@
2087
2243
  ]
2088
2244
  },
2089
2245
  "widget": {
2090
- "id": "table",
2246
+ "id": "initial",
2091
2247
  "labelPosition": "left",
2092
2248
  "labelClasses": "col-2 ps-0 pe-1",
2093
2249
  "controlClasses": "col p-0",
@@ -2109,6 +2265,10 @@
2109
2265
  {"field": "valueQuantity.unit", "title": "Unit", "col": 4, "nolabel": true},
2110
2266
  {"field": "valueQuantity.code", "title": "Code", "col": 3, "nolabel": true},
2111
2267
  {"field": "valueQuantity.system", "title": "System", "col": 3, "nolabel": true},
2268
+ {"field": "valueAttachment.title", "title": "Title", "col": 2, "nolabel": true},
2269
+ {"field": "valueAttachment.contentType", "title": "Mime Type", "col": 2, "nolabel": true},
2270
+ {"field": "valueAttachment.size", "title": "Size", "col": 2, "nolabel": true},
2271
+ {"field": "__$stringify", "title": "Value", "col": 5, "nolabel": true},
2112
2272
  {"field": "valueReference", "noHeader": true, "nolabel": true}
2113
2273
  ],
2114
2274
  "showErrorTypeList": [
@@ -1 +1 @@
1
- {"version": "12.5.0"}
1
+ {"version": "12.6.0"}
@@ -19,6 +19,6 @@
19
19
  <body class="bg-secondary">
20
20
  <lfb-root></lfb-root>
21
21
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
22
- <script src="runtime.821ff28674267dd4.js" type="module"></script><script src="polyfills.ff3bd2c828bc396b.js" type="module"></script><script src="scripts.5c83cbb4dbb11a83.js" defer></script><script src="main.d7d33054f6ac48c2.js" type="module"></script></body>
22
+ <script src="runtime.821ff28674267dd4.js" type="module"></script><script src="polyfills.741ec81967e9c9c3.js" type="module"></script><script src="scripts.5c83cbb4dbb11a83.js" defer></script><script src="main.703d1488ddba0bb6.js" type="module"></script></body>
23
23
  </html>
24
24