formbuilder-lhcforms 12.4.1 → 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)
@@ -26,6 +26,8 @@
26
26
  { "field": "__$pickInitial", "col": 12 },
27
27
  { "field": "__$initialCalculatedExpression", "col": 12 },
28
28
  { "field": "__$itemControl", "col": 12 },
29
+ { "field": "__$choiceOrientation", "col": 12 },
30
+ { "field": "__$columnCount", "col": 12 },
29
31
  { "field": "__$itemControlQuestion", "col": 12 },
30
32
  { "field": "__$itemControlGroup", "col": 12 },
31
33
  { "field": "__$itemControlDisplay", "col": 12 },
@@ -52,6 +54,7 @@
52
54
  {
53
55
  "showFields": [
54
56
  { "field": "linkId", "col": 12 },
57
+ { "field": "__$hidden", "col": 12 },
55
58
  { "field": "__$enableWhenMethod", "col": 12 },
56
59
  { "field": "enableWhen", "col": 12 },
57
60
  { "field": "enableBehavior", "col": 12 },
@@ -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",
@@ -74,6 +74,68 @@
74
74
  "controlClasses": "col-10 p-0"
75
75
  }
76
76
  },
77
+ "__$choiceOrientation": {
78
+ "description": "Identifies the desired orientation when rendering a list of choices.",
79
+ "title": "Choice orientation",
80
+ "type": "string",
81
+ "enum": [
82
+ "horizontal",
83
+ "vertical"
84
+ ],
85
+ "default": "",
86
+ "visibleIf": {
87
+ "allOf": [
88
+ {
89
+ "__$isAnswerList": [true]
90
+ },
91
+ {
92
+ "__$itemControl": ["$EXP$ target.value == 'radio-button' || target.value == 'check-box'"]
93
+ }
94
+ ]
95
+ },
96
+ "widget": {
97
+ "id": "extension-primitive",
98
+ "extensionUrl": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
99
+ "valueX": "valueCode",
100
+ "buttonRadio": true,
101
+ "addEmptyOption": true,
102
+ "emptyOptionValue": "",
103
+ "emptyOptionLabel": "Unspecified",
104
+ "optionLabels": {
105
+ "horizontal": "Horizontal",
106
+ "vertical": "Vertical"
107
+ },
108
+ "labelPosition": "left",
109
+ "labelClasses": "col-2 ps-0 pe-1",
110
+ "controlClasses": "col-10 p-0"
111
+ }
112
+ },
113
+ "__$columnCount": {
114
+ "description": "The number of columns to use when rendering a list of choices.",
115
+ "title": "Column count",
116
+ "type": "integer",
117
+ "minimum": 1,
118
+ "maximum": 2147483647,
119
+ "visibleIf": {
120
+ "allOf": [
121
+ {
122
+ "__$isAnswerList": [true]
123
+ },
124
+ {
125
+ "__$itemControl": ["$EXP$ target.value == 'radio-button' || target.value == 'check-box'"]
126
+ }
127
+ ]
128
+ },
129
+ "widget": {
130
+ "id": "extension-primitive",
131
+ "extensionUrl": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-columnCount",
132
+ "legacyExtensionUrls": ["http://hl7.org/fhir/StructureDefinition/questionnaire-columnCount"],
133
+ "valueX": "valuePositiveInt",
134
+ "labelPosition": "left",
135
+ "labelClasses": "col-2 ps-0 pe-1",
136
+ "controlClasses": "col-10 p-0"
137
+ }
138
+ },
77
139
  "__$restrictions": {
78
140
  "description": "Choose to add value restrictions to the input.",
79
141
  "title": "Restrictions",
@@ -90,7 +152,7 @@
90
152
  "regex",
91
153
  "minValue",
92
154
  "maxValue",
93
- "mazSize",
155
+ "maxSize",
94
156
  "mimeType"
95
157
  ],
96
158
  "title": "Restriction",
@@ -99,7 +161,8 @@
99
161
  "value": {
100
162
  "description": "Value to restrict the input",
101
163
  "type": "string",
102
- "title": "Value"
164
+ "title": "Value",
165
+ "widget": {"id": "restrictions-value"}
103
166
  }
104
167
  },
105
168
  "additionalProperties": false,
@@ -131,9 +194,14 @@
131
194
  "answerConstraint": ["$EXP$ target.value == 'optionsOrType' || target.value == 'optionsOrString'"]
132
195
  }
133
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"]
134
203
  }
135
- ],
136
- "type": ["$EXP$ target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url'"]
204
+ ]
137
205
  },
138
206
  "widget": {
139
207
  "id": "restrictions",
@@ -943,6 +1011,18 @@
943
1011
  "controlClasses": "col-auto btn-group btn-group-sm ps-0"
944
1012
  }
945
1013
  },
1014
+ "__$hidden": {
1015
+ "description": "If enabled, this item is not displayed to the user. All descendant items are hidden as well. Descendants remain visible in Form Builder so they can still be edited.",
1016
+ "title": "Hide this item from users?",
1017
+ "type": "boolean",
1018
+ "default": false,
1019
+ "widget": {
1020
+ "id": "questionnaire-hidden",
1021
+ "optionLabels": [[false, "No"], [true, "Yes"]],
1022
+ "labelClasses": "col-2 ps-0 pe-1",
1023
+ "controlClasses": "col-auto btn-group btn-group-sm ps-0"
1024
+ }
1025
+ },
946
1026
  "__$isAnswerList": {
947
1027
  "description": "An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.",
948
1028
  "title": "Create answer list",
@@ -1629,6 +1709,28 @@
1629
1709
  "id": "hidden"
1630
1710
  }
1631
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
+ },
1632
1734
  "valueBoolean": {
1633
1735
  "description": "The actual value to for an initial answer.",
1634
1736
  "pattern": "^true|false$",
@@ -1736,7 +1838,10 @@
1736
1838
  "id": {
1737
1839
  "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
1738
1840
  "pattern": "^[ \\r\\n\\t\\S]+$",
1739
- "type": "string"
1841
+ "type": "string",
1842
+ "widget": {
1843
+ "id": "hidden"
1844
+ }
1740
1845
  },
1741
1846
  "extension": {
1742
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.",
@@ -1750,43 +1855,168 @@
1750
1855
  },
1751
1856
  "contentType": {
1752
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",
1753
1859
  "pattern": "^[^\\s]+(\\s[^\\s]+)*$",
1754
- "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
+ }
1755
1869
  },
1756
1870
  "language": {
1757
1871
  "description": "The human language of the content. The value can be any valid value according to BCP 47.",
1872
+ "title": "Language",
1758
1873
  "pattern": "^[^\\s]+(\\s[^\\s]+)*$",
1759
- "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
+ }
1760
1882
  },
1761
1883
  "data": {
1762
1884
  "description": "The actual data of the attachment - a sequence of bytes, base64 encoded.",
1763
1885
  "pattern": "^[ \\r\\n\\t\\S]+$",
1764
- "type": "string"
1886
+ "type": "string",
1887
+ "widget": {
1888
+ "id": "hidden"
1889
+ }
1765
1890
  },
1766
1891
  "url": {
1767
1892
  "description": "A location where the data can be accessed.",
1893
+ "title": "URL",
1768
1894
  "pattern": "^\\S*$",
1769
- "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
+ }
1770
1903
  },
1771
1904
  "size": {
1772
1905
  "description": "The number of bytes of data that make up this attachment (before base64 encoding, if that is done).",
1773
- "pattern": "^[0]|([1-9][0-9]*)$",
1774
- "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
+ }
1775
1917
  },
1776
1918
  "hash": {
1777
1919
  "description": "The calculated hash of the data using SHA-1. Represented using base64.",
1778
1920
  "pattern": "^[ \\r\\n\\t\\S]+$",
1779
- "type": "string"
1921
+ "type": "string",
1922
+ "widget": {
1923
+ "id": "hidden"
1924
+ }
1780
1925
  },
1781
1926
  "title": {
1782
1927
  "description": "A label or set of text to display in place of the data.",
1928
+ "title": "Title",
1783
1929
  "pattern": "^[ \\r\\n\\t\\S]+$",
1784
- "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
+ }
1785
1939
  },
1786
1940
  "creation": {
1787
1941
  "description": "The date that the attachment was first created.",
1942
+ "title": "Creation",
1788
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)))?)?)?$",
1789
- "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
+ }
1790
2020
  }
1791
2021
  },
1792
2022
  "additionalProperties": false,
@@ -2013,7 +2243,7 @@
2013
2243
  ]
2014
2244
  },
2015
2245
  "widget": {
2016
- "id": "table",
2246
+ "id": "initial",
2017
2247
  "labelPosition": "left",
2018
2248
  "labelClasses": "col-2 ps-0 pe-1",
2019
2249
  "controlClasses": "col p-0",
@@ -2035,6 +2265,10 @@
2035
2265
  {"field": "valueQuantity.unit", "title": "Unit", "col": 4, "nolabel": true},
2036
2266
  {"field": "valueQuantity.code", "title": "Code", "col": 3, "nolabel": true},
2037
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},
2038
2272
  {"field": "valueReference", "noHeader": true, "nolabel": true}
2039
2273
  ],
2040
2274
  "showErrorTypeList": [
@@ -2691,6 +2925,17 @@
2691
2925
  }
2692
2926
  ]
2693
2927
  },
2928
+ {
2929
+ "fields": [
2930
+ "__$hidden"
2931
+ ],
2932
+ "showFields": [
2933
+ {
2934
+ "field": "__$hidden",
2935
+ "col": 12
2936
+ }
2937
+ ]
2938
+ },
2694
2939
  {
2695
2940
  "fields": [
2696
2941
  "__$minMaxOccurs"
@@ -2883,6 +3128,28 @@
2883
3128
  }
2884
3129
  ]
2885
3130
  },
3131
+ {
3132
+ "fields": [
3133
+ "__$choiceOrientation"
3134
+ ],
3135
+ "showFields": [
3136
+ {
3137
+ "field": "__$choiceOrientation",
3138
+ "col": 12
3139
+ }
3140
+ ]
3141
+ },
3142
+ {
3143
+ "fields": [
3144
+ "__$columnCount"
3145
+ ],
3146
+ "showFields": [
3147
+ {
3148
+ "field": "__$columnCount",
3149
+ "col": 12
3150
+ }
3151
+ ]
3152
+ },
2886
3153
  {
2887
3154
  "fields": [
2888
3155
  "__$pickInitial"
@@ -1 +1 @@
1
- {"version": "12.4.1"}
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.0318f5708dbff174.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