lforms 29.3.0 → 33.2.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.
- package/CHANGELOG.md +261 -0
- package/README.md +97 -14
- package/changed-features.md +99 -0
- package/dist/lforms/LICENSE.md +70 -0
- package/dist/lforms/README.md +100 -0
- package/dist/lforms/fhir/R4/lformsFHIR.min.js +2 -0
- package/dist/lforms/fhir/R4/lformsFHIR.min.js.map +1 -0
- package/dist/lforms/fhir/STU3/lformsFHIR.min.js +2 -0
- package/dist/lforms/fhir/STU3/lformsFHIR.min.js.map +1 -0
- package/dist/lforms/fhir/lformsFHIRAll.min.js +2 -0
- package/dist/lforms/fhir/lformsFHIRAll.min.js.map +1 -0
- package/dist/lforms/webcomponent/assets/lib/zone.min.js +134 -0
- package/dist/lforms/webcomponent/down_arrow_gray_10_10.png +0 -0
- package/dist/lforms/webcomponent/favicon.ico +0 -0
- package/dist/lforms/webcomponent/index.html +9 -0
- package/dist/lforms/webcomponent/lhc-forms.js +2471 -0
- package/dist/lforms/webcomponent/magnifying_glass.png +0 -0
- package/dist/lforms/webcomponent/main.js +2464 -0
- package/dist/lforms/webcomponent/main.js.map +1 -0
- package/dist/lforms/webcomponent/polyfills.js +2 -0
- package/dist/lforms/webcomponent/polyfills.js.map +1 -0
- package/dist/lforms/webcomponent/runtime.js +2 -0
- package/dist/lforms/webcomponent/runtime.js.map +1 -0
- package/dist/lforms/webcomponent/scripts.js +3 -0
- package/dist/lforms/webcomponent/scripts.js.map +1 -0
- package/dist/lforms/webcomponent/styles.css +3 -0
- package/dist/lforms/webcomponent/styles.css.map +1 -0
- package/form_definition.md +382 -0
- package/lforms-33.2.0.tgz +0 -0
- package/package.json +94 -88
- package/r4-support.md +147 -0
- package/sdc-support.md +127 -0
- package/app/.npmignore +0 -3
- package/app/images/blank.gif +0 -0
- package/app/images/signal-stop.png +0 -0
- package/app/index.html +0 -10
- package/app/lforms.js +0 -56
- package/app/lforms.tpl.js +0 -964
- package/app/scripts/angular-packages.js +0 -11
- package/app/scripts/bootstrap-decorators.js +0 -31
- package/app/scripts/bower-index.js +0 -14
- package/app/scripts/fhir/R4/export.js +0 -33
- package/app/scripts/fhir/R4/fhirRequire.js +0 -36
- package/app/scripts/fhir/R4/lformsFHIR.js +0 -27260
- package/app/scripts/fhir/R4/sdc-export.js +0 -455
- package/app/scripts/fhir/R4/sdc-import.js +0 -483
- package/app/scripts/fhir/STU3/export.js +0 -27
- package/app/scripts/fhir/STU3/fhirRequire.js +0 -36
- package/app/scripts/fhir/STU3/lformsFHIR.js +0 -27291
- package/app/scripts/fhir/STU3/sdc-export.js +0 -493
- package/app/scripts/fhir/STU3/sdc-import.js +0 -494
- package/app/scripts/fhir/diagnostic-report.js +0 -707
- package/app/scripts/fhir/export-common.js +0 -209
- package/app/scripts/fhir/expression-processor.js +0 -670
- package/app/scripts/fhir/extensions/rendering-style.js +0 -23
- package/app/scripts/fhir/fhir-common.js +0 -3
- package/app/scripts/fhir/obs-prepop.mjs +0 -97
- package/app/scripts/fhir/runtime-common.js +0 -33
- package/app/scripts/fhir/sdc-common.js +0 -334
- package/app/scripts/fhir/sdc-export-common.js +0 -1046
- package/app/scripts/fhir/sdc-import-common.js +0 -1343
- package/app/scripts/fhir/versions.js +0 -8
- package/app/scripts/index.js +0 -20
- package/app/scripts/lforms-config.js +0 -12
- package/app/scripts/lforms-constants.js +0 -10
- package/app/scripts/lforms-controllers.js +0 -1196
- package/app/scripts/lforms-directives.js +0 -424
- package/app/scripts/lforms-index.js +0 -20
- package/app/scripts/lib/cross_browser.js +0 -21
- package/app/scripts/lib/lforms-data.js +0 -3591
- package/app/scripts/lib/lforms-hl7.js +0 -525
- package/app/scripts/lib/lforms-util.js +0 -1122
- package/app/scripts/lib/lforms-validate.js +0 -277
- package/app/scripts/lib/polyfill.js +0 -81
- package/app/scripts/themeList.js +0 -17
- package/app/styles/lforms.css +0 -1219
- package/app/styles/redmond-theme/README.txt +0 -2
- package/app/styles/redmond-theme/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- package/app/styles/redmond-theme/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- package/app/styles/redmond-theme/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- package/app/styles/redmond-theme/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- package/app/styles/redmond-theme/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- package/app/styles/redmond-theme/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- package/app/styles/redmond-theme/images/ui-icons_217bc0_256x240.png +0 -0
- package/app/styles/redmond-theme/images/ui-icons_2e83ff_256x240.png +0 -0
- package/app/styles/redmond-theme/images/ui-icons_469bdd_256x240.png +0 -0
- package/app/styles/redmond-theme/images/ui-icons_6da8d5_256x240.png +0 -0
- package/app/styles/redmond-theme/images/ui-icons_cd0a0a_256x240.png +0 -0
- package/app/styles/redmond-theme/images/ui-icons_d8e7f3_256x240.png +0 -0
- package/app/styles/redmond-theme/images/ui-icons_f9bd01_256x240.png +0 -0
- package/app/styles/redmond-theme/jquery-ui.css +0 -1311
- package/app/styles/redmond-theme/jquery-ui.min.css +0 -7
- package/app/styles/redmond-theme/theme.css +0 -443
- package/app/styles/themes.css +0 -1541
- package/app/styles/themes.css.map +0 -9
- package/app/styles/themes.scss +0 -411
- package/app/version.json +0 -1
- package/app/views/partials/attachment.html +0 -38
- package/app/views/partials/field-answers.html +0 -67
- package/app/views/partials/field-units.html +0 -24
- package/app/views/partials/form-controls.html +0 -19
- package/app/views/partials/form-header.html +0 -35
- package/app/views/partials/form-options.html +0 -50
- package/app/views/partials/form-title.html +0 -20
- package/app/views/partials/form-view.html +0 -13
- package/app/views/partials/item-options.html +0 -48
- package/app/views/partials/item.html +0 -126
- package/app/views/partials/itemPrefixAndText.html +0 -4
- package/app/views/partials/layout-horizontal.html +0 -156
- package/app/views/partials/layout-matrix.html +0 -145
- package/app/views/partials/popover-content.html +0 -1
- package/app/views/partials/repeating-button.html +0 -16
- package/app/views/partials/table-item.html +0 -30
- package/app/views/partials/template-table.html +0 -69
- package/app/views/partials/uib-popover-templates/uib-popover-template.html +0 -13
- package/app/views/partials/uib-popover-templates/uib-popover.html +0 -11
package/app/lforms.tpl.js
DELETED
|
@@ -1,964 +0,0 @@
|
|
|
1
|
-
angular.module('lformsWidget').run(['$templateCache', function($templateCache) {
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
$templateCache.put('attachment.html',
|
|
5
|
-
"<div id=\"{{item._elementId}}\" aria-describedby=\"help-{{ item._elementId }}\"\n" +
|
|
6
|
-
" ng-attr-aria-labelledby=\"{{labelledBy}}\">\n" +
|
|
7
|
-
" <span ng-if=\"!item.value\">\n" +
|
|
8
|
-
" <input name=\"{{item._text}}\" type=\"file\"\n" +
|
|
9
|
-
" lf-file-model=\"item\"\n" +
|
|
10
|
-
" placeholder=\"{{item._toolTip}}\" ng-disabled=\"item._readOnly\"\n" +
|
|
11
|
-
" id=\"{{'file-'+item._elementId}}\" ng-focus=\"setActiveRow(item)\"\n" +
|
|
12
|
-
" ng-blur=\"activeRowOnBlur(item)\" >\n" +
|
|
13
|
-
" <button class=\"lf-attachment-button toggle-attachment-fields\" title=\"{{item._useURL ?\n" +
|
|
14
|
-
" 'Hide URL field' : 'Show URL field'}}\"\n" +
|
|
15
|
-
" ng-click=\"item._useURL = !item._useURL\">↯</button>\n" +
|
|
16
|
-
" <div ng-if=\"item._useURL\">\n" +
|
|
17
|
-
" <label>URL for file:\n" +
|
|
18
|
-
" <input type=\"string\" ng-disabled=\"item._readOnly\"\n" +
|
|
19
|
-
" ng-model=\"item._attachmentURL\" placeholder=\"URL for retrieving file\" ng-focus=\"setActiveRow(item)\"\n" +
|
|
20
|
-
" ng-blur=\"activeRowOnBlur(item)\" >\n" +
|
|
21
|
-
" <input type=\"string\" ng-disabled=\"item._readOnly\" ng-focus=\"setActiveRow(item)\"\n" +
|
|
22
|
-
" ng-blur=\"activeRowOnBlur(item)\" ng-model=\"item._attachmentName\" placeholder=\"File name (optional)\">\n" +
|
|
23
|
-
" <button class=\"lf-float-button attach-button\" ng-click=\"createAttachment(item)\"\n" +
|
|
24
|
-
" >Attach URL{{item._fileInfo ? ' and file data': ''}}</button><br>\n" +
|
|
25
|
-
" Note: The URL you enter will not be downloaded or\n" +
|
|
26
|
-
" verified, but simply copied into your response. Please ensure\n" +
|
|
27
|
-
" that it works.\n" +
|
|
28
|
-
" </div>\n" +
|
|
29
|
-
" </span>\n" +
|
|
30
|
-
" <span ng-if=\"item.value\">\n" +
|
|
31
|
-
" <a ng-if=\"!item.value._progress\" button title=\"{{'Download '+item.value.title}}\"\n" +
|
|
32
|
-
" target=_blank rel=\"noreferrer\" download={{item.title}}\n" +
|
|
33
|
-
" href=\"{{item.value.url && !item.value.data ? item.value.url : 'javascript:void(0)'}}\" class=\"download-link\"\n" +
|
|
34
|
-
" ng-click=\"downloadAttachment(item.value, $event)\"\n" +
|
|
35
|
-
" >{{item.value.title || item.value.url || 'Unknown filename'}}</a>\n" +
|
|
36
|
-
" <span ng-if=\"item.value._progress\"><label>Download progress:\n" +
|
|
37
|
-
" <progress value=\"{{item.value._progress}}\"></progress></label></span>\n" +
|
|
38
|
-
" <button class=\"lf-attachment-button lf-remove-attachment\" ng-if\"!item._readOnly\"\n" +
|
|
39
|
-
" type=\"button\" title=\"{{'Remove '+item.value.title}}\"\n" +
|
|
40
|
-
" ng-click=\"removeAttachment(item)\">✖</button>\n" +
|
|
41
|
-
" </span>\n" +
|
|
42
|
-
"</div>\n"
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
$templateCache.put('field-answers.html',
|
|
47
|
-
"<!-- Do not create a list that does not exist yet (e.g. one based on an\n" +
|
|
48
|
-
" Expression that has not yet been evalulated). Once the list is created,\n" +
|
|
49
|
-
" autocomplete-lhc will erase the model data if the list is changed.\n" +
|
|
50
|
-
" We do show the empty list if a list did exist and now does not. -->\n" +
|
|
51
|
-
"<div class=\"lf-field-answers\" ng-if=\"lfData._expressionProcessor._firstExpressionRunComplete || !item._hasListExpr\"\n" +
|
|
52
|
-
" ng-switch on=\"item.displayControl.answerLayout.type\">\n" +
|
|
53
|
-
" <!--list style-->\n" +
|
|
54
|
-
" <div ng-switch-when=\"RADIO_CHECKBOX\" class=\"lf-answer-type-list\"\n" +
|
|
55
|
-
" role=\"radiogroup\" aria-labeledby=\"label-{{ item._elementId }}\"\n" +
|
|
56
|
-
" aria-describedby=\"help-{{ item._elementId }}\">\n" +
|
|
57
|
-
" <span ng-repeat=\"answer in item._modifiedAnswers track by $index\" class=\"lf-answer {{getAnswerLayoutColumnClass(item)}}\">\n" +
|
|
58
|
-
" <!--checkboxes for multiple selections-->\n" +
|
|
59
|
-
" <div ng-if=\"item._multipleAnswers\">\n" +
|
|
60
|
-
" <input class=\"lf-answer-button\" type=\"checkbox\" id=\"{{item._elementId + answer.code}}\"\n" +
|
|
61
|
-
" ng-click=\"updateCheckboxList(item, answer)\" ng-disabled=\"item._readOnly\"\n" +
|
|
62
|
-
" ng-checked=\"checkAnswer(item,answer)\">\n" +
|
|
63
|
-
" <label class=\"lf-answer-label\" for=\"{{item._elementId + answer.code}}\">{{answer._displayText}}</label>\n" +
|
|
64
|
-
" </div>\n" +
|
|
65
|
-
" <!--radio buttons for single selection-->\n" +
|
|
66
|
-
" <div ng-if=\"!item._multipleAnswers\">\n" +
|
|
67
|
-
" <input class=\"lf-answer-button\" type=\"radio\" id=\"{{item._elementId + answer.code}}\"\n" +
|
|
68
|
-
" ng-model=\"item.value\" ng-value=\"answer\" name=\"{{item._elementId}}\"\n" +
|
|
69
|
-
" ng-click=\"updateRadioList(item)\" ng-disabled=\"item._readOnly\" >\n" +
|
|
70
|
-
" <label class=\"lf-answer-label\" for=\"{{item._elementId + answer.code}}\">{{answer._displayText}}</label>\n" +
|
|
71
|
-
" </div>\n" +
|
|
72
|
-
" </span>\n" +
|
|
73
|
-
" <!--extra OTHER field-->\n" +
|
|
74
|
-
" <!--<div class=\"lf-answer-type-list-other\">-->\n" +
|
|
75
|
-
" <span ng-if=\"item.dataType==='CWE'\" class=\"lf-answer lf-answer-cwe-other {{getAnswerLayoutColumnClass(item)}}\">\n" +
|
|
76
|
-
" <!--checkboxes for multiple selections-->\n" +
|
|
77
|
-
" <div ng-if=\"item._multipleAnswers\" class=\"\">\n" +
|
|
78
|
-
" <input class=\"lf-answer-button\" type=\"checkbox\" ng-model=\"item._otherValueChecked\"\n" +
|
|
79
|
-
" id=\"{{item._elementId + '_other'}}\" ng-disabled=\"item._readOnly\"\n" +
|
|
80
|
-
" ng-change=\"updateCheckboxListForOther(item, item._answerOther)\"\n" +
|
|
81
|
-
" ng-checked=\"checkAnswer(item,{'text':item._answerOther})\">\n" +
|
|
82
|
-
" <label class=\"lf-answer-label\" for=\"{{item._elementId + '_other'}}\">OTHER:</label>\n" +
|
|
83
|
-
" <input ng-if=\"item._otherValueChecked\" class=\"lf-answer-other\" type=\"text\" ng-model=\"item._answerOther\"\n" +
|
|
84
|
-
" id=\"{{item._elementId + '_otherValue'}}\" ng-disabled=\"item._readOnly\"\n" +
|
|
85
|
-
" ng-change=\"updateCheckboxListForOther(item, item._answerOther)\">\n" +
|
|
86
|
-
" </div>\n" +
|
|
87
|
-
"\n" +
|
|
88
|
-
" <!--radio buttons for single selection-->\n" +
|
|
89
|
-
" <div ng-if=\"!item._multipleAnswers\" class=\"\">\n" +
|
|
90
|
-
" <input class=\"lf-answer-button\" type=\"radio\" id=\"{{item._elementId + '_other'}}\"\n" +
|
|
91
|
-
" ng-model=\"item._otherValueChecked\" ng-value=\"true\"\n" +
|
|
92
|
-
" name=\"{{item._elementId}}\" ng-disabled=\"item._readOnly\"\n" +
|
|
93
|
-
" ng-change=\"updateRadioListForOther(item, item._answerOther)\">\n" +
|
|
94
|
-
" <label class=\"lf-answer-label\" for=\"{{item._elementId + '_other'}}\">OTHER:</label>\n" +
|
|
95
|
-
" <input ng-if=\"item._otherValueChecked\" class=\"lf-answer-other\" type=\"text\"\n" +
|
|
96
|
-
" id=\"{{item._elementId + '_otherValue'}}\" ng-model=\"item._answerOther\"\n" +
|
|
97
|
-
" ng-change=\"updateRadioListForOther(item, item._answerOther)\"\n" +
|
|
98
|
-
" ng-disabled=\"item._readOnly\">\n" +
|
|
99
|
-
" </div>\n" +
|
|
100
|
-
" </span>\n" +
|
|
101
|
-
" <!--</div>-->\n" +
|
|
102
|
-
" </div>\n" +
|
|
103
|
-
"\n" +
|
|
104
|
-
" <!--COMBO_BOX style (default is 'COMBO_BOX')-->\n" +
|
|
105
|
-
" <div ng-switch-default class=\"lf-answer-type-combo\">\n" +
|
|
106
|
-
" <input name=\"{{item._text +'_'+ $id}}\" type=\"text\"\n" +
|
|
107
|
-
" ng-model=\"item.value\" autocomplete-lhc=\"item._autocompOptions\"\n" +
|
|
108
|
-
" ng-disabled=\"item._readOnly\" placeholder=\"{{item._toolTip}}\"\n" +
|
|
109
|
-
" id=\"{{item._elementId}}\"\n" +
|
|
110
|
-
" ng-focus=\"setActiveRow(item)\" ng-blur=\"activeRowOnBlur(item)\">\n" +
|
|
111
|
-
" </div>\n" +
|
|
112
|
-
"</div>\n" +
|
|
113
|
-
"<div ng-if=\"!lfData._expressionProcessor._firstExpressionRunComplete && item._hasListExpr\">Waiting for list data</div>\n"
|
|
114
|
-
);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
$templateCache.put('field-units.html',
|
|
118
|
-
"<div class=\"lf-field-units\" ng-switch on=\"item.displayControl.unitLayout\">\n" +
|
|
119
|
-
" <!--list style-->\n" +
|
|
120
|
-
" <div ng-switch-when=\"RADIO_CHECKBOX\">\n" +
|
|
121
|
-
" <span ng-repeat=\"unit in item.units\">\n" +
|
|
122
|
-
" <label>\n" +
|
|
123
|
-
" <input type=\"radio\" ng-model=\"item.unit\" ng-value=\"unit\"\n" +
|
|
124
|
-
" ng-readonly=\"item._unitReadonly\">{{unit._displayUnit}}\n" +
|
|
125
|
-
" </label>\n" +
|
|
126
|
-
" </span>\n" +
|
|
127
|
-
" </div>\n" +
|
|
128
|
-
"\n" +
|
|
129
|
-
" <!--COMBO_BOX style (default is 'COMBO_BOX')-->\n" +
|
|
130
|
-
" <div ng-switch-default>\n" +
|
|
131
|
-
" <input ng-if=\"!item._unitReadonly\" class=\"units\" type=\"text\" ng-disabled=\"item._readOnly\"\n" +
|
|
132
|
-
" ng-model=\"item.unit\" autocomplete-lhc=\"item._unitAutocompOptions\"\n" +
|
|
133
|
-
" placeholder=\"Select one\" id=\"unit_{{item._elementId}}\"\n" +
|
|
134
|
-
" aria-labelledby=\"th_Units\">\n" +
|
|
135
|
-
" <input ng-if=\"item._unitReadonly\" class=\"units\" type=\"text\" ng-disabled=\"item._readOnly\"\n" +
|
|
136
|
-
" id=\"unit_{{item._elementId}}\" value=\"{{item.unit._displayUnit}}\"\n" +
|
|
137
|
-
" aria-labelledby=\"th_Units\" readonly>\n" +
|
|
138
|
-
" </div>\n" +
|
|
139
|
-
"\n" +
|
|
140
|
-
"</div>\n" +
|
|
141
|
-
"\n"
|
|
142
|
-
);
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
$templateCache.put('form-controls.html',
|
|
146
|
-
"<div class=\"stopped\" ng-show=\"isFormDone()\">\n" +
|
|
147
|
-
" <img ng-src=\"{{::blankGifDataUrl}}\" class=\"stop-sign\">\n" +
|
|
148
|
-
" <span>This form is complete.</span>\n" +
|
|
149
|
-
"</div>\n" +
|
|
150
|
-
"<div class=\"lf-form-controls\" ng-if=\"!lfData.templateOptions.hideFormControls\">\n" +
|
|
151
|
-
" <div class=\"lf-form-control\">\n" +
|
|
152
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.showQuestionCode\"> Display Question Code</label>\n" +
|
|
153
|
-
" </div>\n" +
|
|
154
|
-
"\n" +
|
|
155
|
-
" <div class=\"lf-form-control\">\n" +
|
|
156
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.showCodingInstruction\"> Show Help/Description</label>\n" +
|
|
157
|
-
" </div>\n" +
|
|
158
|
-
" <div class=\"lf-form-control\">\n" +
|
|
159
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.tabOnInputFieldsOnly\"> Keyboard Navigation On Input Fields</label>\n" +
|
|
160
|
-
" </div>\n" +
|
|
161
|
-
" <div class=\"lf-form-control\">\n" +
|
|
162
|
-
" <div class=\"text-info\" >Total # of Questions: {{getNumberOfQuestions()}}</div>\n" +
|
|
163
|
-
" </div>\n" +
|
|
164
|
-
"</div>\n"
|
|
165
|
-
);
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
$templateCache.put('form-header.html',
|
|
169
|
-
" <div class=\"lf-form-header\" ng-if=\"lfData.templateOptions.showFormHeader\">\n" +
|
|
170
|
-
" <div class=\"lf-header-de\" ng-style=\"getHeaderItemStyle(item)\"\n" +
|
|
171
|
-
" ng-repeat=\"item in lfData.templateOptions.formHeaderItems\">\n" +
|
|
172
|
-
" <div class=\"lf-header-de-label\">\n" +
|
|
173
|
-
" <span class=\"lf-question\"><label for=\"{{item.questionCode}}\">{{item.question}}</label></span>\n" +
|
|
174
|
-
" </div>\n" +
|
|
175
|
-
" <div class=\"lf-header-de-input\" ng-switch on=\"item.dataType\">\n" +
|
|
176
|
-
" <ng-form name=\"innerForm\">\n" +
|
|
177
|
-
" <div class=\"lf-form-item-data tooltipContainer\">\n" +
|
|
178
|
-
" <div class=\"tooltipContent\" lf-validate=\"item\" ng-model=\"item.value\"></div>\n" +
|
|
179
|
-
" <input ng-switch-when=\"CWE\" name=\"{{item.question}}\" type=\"text\"\n" +
|
|
180
|
-
" placeholder=\"Select or type a value\"\n" +
|
|
181
|
-
" ng-model=\"item.value\"\n" +
|
|
182
|
-
" autocomplete-lhc=\"item._autocompOptions\"\n" +
|
|
183
|
-
" id=\"{{item.questionCode}}\"\n" +
|
|
184
|
-
" ng-blur=\"activeRowOnBlur(item)\">\n" +
|
|
185
|
-
" <input ng-switch-when=\"DT\" name=\"{{item.question}}\" type=\"text\"\n" +
|
|
186
|
-
" ng-model=\"item.value\" lf-date=\"dateOptions\"\n" +
|
|
187
|
-
" placeholder=\"MM/DD/YYYY\"\n" +
|
|
188
|
-
" id=\"{{item.questionCode}}\"\n" +
|
|
189
|
-
" ng-blur=\"activeRowOnBlur(item)\">\n" +
|
|
190
|
-
" <input ng-switch-default name=\"{{item.question}}\" type=\"text\"\n" +
|
|
191
|
-
" ng-model=\"item.value\" placeholder=\"Type a value\"\n" +
|
|
192
|
-
" id=\"{{item.questionCode}}\"\n" +
|
|
193
|
-
" ng-blur=\"activeRowOnBlur(item)\">\n" +
|
|
194
|
-
" <textarea ng-switch-when=\"TX\" name=\"{{item.question}}\"\n" +
|
|
195
|
-
" ng-model=\"item.value\" placeholder=\"Type a value\"\n" +
|
|
196
|
-
" id=\"{{item.questionCode}}\" ng-keyup=\"autoExpand($event)\" ng-blur=\"autoExpand($event)\" rows=\"1\"\n" +
|
|
197
|
-
" ng-blur=\"activeRowOnBlur(item)\">\n" +
|
|
198
|
-
" </textarea>\n" +
|
|
199
|
-
" </div>\n" +
|
|
200
|
-
" </ng-form>\n" +
|
|
201
|
-
" </div>\n" +
|
|
202
|
-
" </div>\n" +
|
|
203
|
-
" </div>\n"
|
|
204
|
-
);
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
$templateCache.put('form-options.html',
|
|
208
|
-
"<div class=\"lf-form-options\" ng-if=\"lfData.templateOptions.showFormOptionPanel\">\n" +
|
|
209
|
-
"\n" +
|
|
210
|
-
" <div class=\"lf-form-option\">\n" +
|
|
211
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.showQuestionCode\">Display question code</label>\n" +
|
|
212
|
-
" </div>\n" +
|
|
213
|
-
" <div class=\"lf-form-option\">\n" +
|
|
214
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.showCodingInstruction\">Show help/description</label>\n" +
|
|
215
|
-
" </div>\n" +
|
|
216
|
-
" <div class=\"lf-form-option\">\n" +
|
|
217
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.hideFormControls\">Hide form controls</label>\n" +
|
|
218
|
-
" </div>\n" +
|
|
219
|
-
" <div class=\"lf-form-option\">\n" +
|
|
220
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.showFormOptionPanelButton\">Display form's option button</label>\n" +
|
|
221
|
-
" </div>\n" +
|
|
222
|
-
" <div class=\"lf-form-option\">\n" +
|
|
223
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.showFormOptionPanel\">Display form's option panel</label>\n" +
|
|
224
|
-
" </div>\n" +
|
|
225
|
-
" <div class=\"lf-form-option\">\n" +
|
|
226
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.showItemOptionPanelButton\">Display item's option button</label>\n" +
|
|
227
|
-
" </div>\n" +
|
|
228
|
-
" <div class=\"lf-form-option\">\n" +
|
|
229
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.hideUnits\">Hide units</label>\n" +
|
|
230
|
-
" </div>\n" +
|
|
231
|
-
" <div class=\"lf-form-option\">\n" +
|
|
232
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.allowMultipleEmptyRepeatingItems\">Allow multiple empty repeating questions/sections</label>\n" +
|
|
233
|
-
" </div>\n" +
|
|
234
|
-
" <div class=\"lf-form-option\">\n" +
|
|
235
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.allowHTMLInInstructions\">Allow HTML content in instructions</label>\n" +
|
|
236
|
-
" </div>\n" +
|
|
237
|
-
" <div class=\"lf-form-option\">\n" +
|
|
238
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.showFormHeader\">Display form header questions</label>\n" +
|
|
239
|
-
" </div>\n" +
|
|
240
|
-
" <div class=\"lf-form-option\">\n" +
|
|
241
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.showColumnHeaders\">Display column headers</label>\n" +
|
|
242
|
-
" </div>\n" +
|
|
243
|
-
" <div class=\"lf-form-option\">\n" +
|
|
244
|
-
" <label><input type=\"checkbox\" value=\"\" ng-model=\"lfData.templateOptions.useTreeLineStyle\">Tree line style</label>\n" +
|
|
245
|
-
" </div>\n" +
|
|
246
|
-
" <div class=\"lf-form-option\">\n" +
|
|
247
|
-
" <label for=\"viewMode\">View mode</label>\n" +
|
|
248
|
-
" <select name=\"viewMode\" ng-model=\"lfData.templateOptions.viewMode\">\n" +
|
|
249
|
-
" <option value=\"auto\">Responsive [auto]</option>\n" +
|
|
250
|
-
" <option value=\"lg\">For large screen [lg]</option>\n" +
|
|
251
|
-
" <option value=\"md\">For medium screen [md]</option>\n" +
|
|
252
|
-
" <option value=\"sm\">For small screen [sm]</option>\n" +
|
|
253
|
-
" </select>\n" +
|
|
254
|
-
"\n" +
|
|
255
|
-
" </div>\n" +
|
|
256
|
-
"\n" +
|
|
257
|
-
"</div>\n"
|
|
258
|
-
);
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
$templateCache.put('form-title.html',
|
|
262
|
-
"<div class=\"lf-form-title\" role=\"heading\" aria-level=1>\n" +
|
|
263
|
-
" <span id=\"label-{{ lfData.code }}\" class=\"lf-question\"\n" +
|
|
264
|
-
" style=\"{{lfData._obj_titleCSS}}\">{{lfData.name || lfData.fhirQName}}</span>\n" +
|
|
265
|
-
" <span class=\"lf-item-code\" ng-if=\"lfData.templateOptions.showQuestionCode\">\n" +
|
|
266
|
-
" <a ng-if=\"lfData._linkToDef\" href=\"{{ lfData._linkToDef }}\" target=\"_blank\" rel=\"noopener noreferrer\">[{{ lfData.code }}]</a>\n" +
|
|
267
|
-
" <span ng-if=\"!lfData._linkToDef\">[{{ lfData.code }}]</span>\n" +
|
|
268
|
-
" </span>\n" +
|
|
269
|
-
" <button ng-if=\"lfData.copyrightNotice\" id=\"copyright-{{lfData.code}}\" type=\"button\"\n" +
|
|
270
|
-
" class=\"lf-copyright-button btn-sm\" uib-popover=\"{{lfData.copyrightNotice}}\"\n" +
|
|
271
|
-
" popover-trigger=\"focus\" popover-placement=\"right\"\n" +
|
|
272
|
-
" popover-title=\"Copyright\" aria-label=\"Copyright notice\"\n" +
|
|
273
|
-
" aria-describedby=\"label-{{ lfData.code }}\">\n" +
|
|
274
|
-
" <span class=\"glyphicon glyphicon-copyright-mark\" aria-hidden=\"true\"></span>\n" +
|
|
275
|
-
" </button>\n" +
|
|
276
|
-
" <button ng-if=\"lfData.templateOptions.showFormOptionPanelButton\" type=\"button\" class=\"lf-control-button btn-sm\"\n" +
|
|
277
|
-
" ng-click=\"hideShowFormOptionPanel()\" aria-label=\"Form Option Panel\">\n" +
|
|
278
|
-
" <span class=\"glyphicon glyphicon-cog\" aria-hidden=\"true\"></span>\n" +
|
|
279
|
-
" </button>\n" +
|
|
280
|
-
"\n" +
|
|
281
|
-
"</div>\n"
|
|
282
|
-
);
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
$templateCache.put('form-view.html',
|
|
286
|
-
"<div class=\"lf-form-view {{getViewModeClass()}}\" ng-controller=\"LFormsCtrl\" ng-switch on=\"lfData.template\">\n" +
|
|
287
|
-
" <div ng-switch-when=\"table\">\n" +
|
|
288
|
-
" <div ng-include=\"'template-table.html'\"></div>\n" +
|
|
289
|
-
" </div>\n" +
|
|
290
|
-
" <!-- default is 'table' -->\n" +
|
|
291
|
-
" <div ng-switch-default>\n" +
|
|
292
|
-
" <div ng-include=\"'template-table.html'\"></div>\n" +
|
|
293
|
-
" </div>\n" +
|
|
294
|
-
"\n" +
|
|
295
|
-
" <!--debugging-->\n" +
|
|
296
|
-
" <button type=\"button\" ng-if=\"debug\" ng-click=\"onclick()\">Click to debug Panel Controller</button>\n" +
|
|
297
|
-
"\n" +
|
|
298
|
-
"</div>\n"
|
|
299
|
-
);
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
$templateCache.put('item-options.html',
|
|
303
|
-
"<div ng-if=\"item._showItemOptionPanel\">\n" +
|
|
304
|
-
"\n" +
|
|
305
|
-
" <div class=\"lf-item-options lf-section-options\" ng-if=\"item.dataType==='SECTION'\">\n" +
|
|
306
|
-
" <div class=\"lf-item-option\">\n" +
|
|
307
|
-
" <input class=\"lf-answer-button\" type=\"radio\" id=\"{{item._elementId + 'vertical'}}\"\n" +
|
|
308
|
-
" ng-model=\"item.displayControl.questionLayout\" value=\"vertical\" name=\"{{item._elementId}} +'option'\">\n" +
|
|
309
|
-
" <label class=\"lf-answer-label\" for=\"{{item._elementId + 'vertical'}}\">Vertical</label>\n" +
|
|
310
|
-
" </div>\n" +
|
|
311
|
-
" <div class=\"lf-item-option\" ng-if=\"isQuestionLayoutAllowed(item, 'horizontal')\">\n" +
|
|
312
|
-
" <input class=\"lf-answer-button\" type=\"radio\" id=\"{{item._elementId + 'horizontal'}}\"\n" +
|
|
313
|
-
" ng-model=\"item.displayControl.questionLayout\" value=\"horizontal\" name=\"{{item._elementId}} +'option'\">\n" +
|
|
314
|
-
" <label class=\"lf-answer-label\" for=\"{{item._elementId + 'horizontal'}}\">Horizontal</label>\n" +
|
|
315
|
-
" </div>\n" +
|
|
316
|
-
" <div class=\"lf-item-option\" ng-if=\"isQuestionLayoutAllowed(item, 'matrix')\">\n" +
|
|
317
|
-
" <input class=\"lf-answer-button\" type=\"radio\" id=\"{{item._elementId + 'matrix'}}\"\n" +
|
|
318
|
-
" ng-model=\"item.displayControl.questionLayout\" value=\"matrix\" name=\"{{item._elementId}} +'option'\">\n" +
|
|
319
|
-
" <label class=\"lf-answer-label\" for=\"{{item._elementId + 'matrix'}}\">Matrix</label>\n" +
|
|
320
|
-
" </div>\n" +
|
|
321
|
-
"\n" +
|
|
322
|
-
" </div>\n" +
|
|
323
|
-
"\n" +
|
|
324
|
-
" <div class=\"lf-item-options\" ng-if=\"item.answers && (item.dataType==='CWE' || item.dataType==='CNE')\">\n" +
|
|
325
|
-
" <div class=\"lf-item-option\">\n" +
|
|
326
|
-
" <input class=\"lf-answer-button\" type=\"radio\" id=\"{{item._elementId + 'combo'}}\"\n" +
|
|
327
|
-
" ng-model=\"item.displayControl.answerLayout.type\" value=\"COMBO_BOX\" name=\"{{item._elementId}} +'option'\">\n" +
|
|
328
|
-
" <label class=\"lf-answer-label\" for=\"{{item._elementId + 'combo'}}\">Combo box</label>\n" +
|
|
329
|
-
" </div>\n" +
|
|
330
|
-
" <div class=\"lf-item-option\">\n" +
|
|
331
|
-
" <input class=\"lf-answer-button\" type=\"radio\" id=\"{{item._elementId + 'list'}}\"\n" +
|
|
332
|
-
" ng-model=\"item.displayControl.answerLayout.type\" value=\"RADIO_CHECKBOX\" name=\"{{item._elementId}} +'option'\">\n" +
|
|
333
|
-
" <label class=\"lf-answer-label\" for=\"{{item._elementId + 'list'}}\">{{item._multipleAnswers ? \"Checkboxes\" : \"Radio buttons\"}}</label>\n" +
|
|
334
|
-
" </div>\n" +
|
|
335
|
-
" <div class=\"lf-item-option\" ng-if=\"item.displayControl.answerLayout.type==='RADIO_CHECKBOX'\">\n" +
|
|
336
|
-
" <label for=\"{{item._elementId + 'columns'}}\"> Display format:</label>\n" +
|
|
337
|
-
" <select name=\"{{item._elementId + 'columns'}}\" id=\"{{item._elementId + 'columns'}}\" ng-model=\"item.displayControl.answerLayout.columns\">\n" +
|
|
338
|
-
" <option value=\"\">---Please select---</option> <!-- not selected / blank option -->\n" +
|
|
339
|
-
" <option value=\"0\">Compact</option>\n" +
|
|
340
|
-
" <option value=\"1\">In 1 column</option>\n" +
|
|
341
|
-
" <option value=\"2\">In 2 columns</option>\n" +
|
|
342
|
-
" <option value=\"3\">In 3 columns</option>\n" +
|
|
343
|
-
" <option value=\"4\">In 4 columns</option>\n" +
|
|
344
|
-
" <option value=\"5\">In 5 columns</option>\n" +
|
|
345
|
-
" <option value=\"6\">In 6 columns</option>\n" +
|
|
346
|
-
" </select>\n" +
|
|
347
|
-
" </div>\n" +
|
|
348
|
-
" </div>\n" +
|
|
349
|
-
"\n" +
|
|
350
|
-
"</div>\n"
|
|
351
|
-
);
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
$templateCache.put('item.html',
|
|
355
|
-
"<div ng-attr-role=\"{{item.header ? 'heading' : undefined}}\"\n" +
|
|
356
|
-
" ng-attr-aria-level=\"{{item.header ? item._displayLevel+1 : undefined}}\"\n" +
|
|
357
|
-
" class=\"lf-form-table-row lf-de {{getSiblingStatus(item)}} {{getRowClass(item)}}\n" +
|
|
358
|
-
" {{getSkipLogicClass(item)}} {{getActiveRowClass(item)}}\" ng-click=\"setActiveRow(item)\">\n" +
|
|
359
|
-
" <div class=\"lf-de-label-button\">\n" +
|
|
360
|
-
" <!-- label -->\n" +
|
|
361
|
-
" <div class=\"lf-de-label\">\n" +
|
|
362
|
-
" <span ng-show=\"item._questionRepeatable\" class=\"lf-sn\">{{getRepeatingSN(item) }}</span>\n" +
|
|
363
|
-
" <span class=\"lf-question\"><label id=\"label-{{ item._elementId }}\"\n" +
|
|
364
|
-
" for=\"{{item._elementId}}\"><ng-include src=\"'itemPrefixAndText.html'\"></label></span>\n" +
|
|
365
|
-
" <span class=\"lf-item-code\" ng-show=\"lfData.templateOptions.showQuestionCode\">\n" +
|
|
366
|
-
" <a ng-if=\"item._linkToDef\" href=\"{{ item._linkToDef }}\" target=\"_blank\" rel=\"noopener noreferrer\">[{{ item.questionCode }}]</a>\n" +
|
|
367
|
-
" <span ng-if=\"!item._linkToDef\">[{{ item.questionCode }}]</span>\n" +
|
|
368
|
-
" </span>\n" +
|
|
369
|
-
" <span ng-switch on=\"getCodingInstructionsDisplayType(item)\" ng-if=\"item.codingInstructions\">\n" +
|
|
370
|
-
" <span ng-switch-when=\"inline-html\" id=\"help-{{ item._elementId }}\"\n" +
|
|
371
|
-
" class=\"lf-prompt\" ng-bind-html=\"getTrustedCodingInstructions(item)\"></span>\n" +
|
|
372
|
-
" <span ng-switch-when=\"inline-escaped\" id=\"help-{{ item._elementId }}\"\n" +
|
|
373
|
-
" class=\"lf-prompt\" ng-bind=\"item.codingInstructions\"></span>\n" +
|
|
374
|
-
" <button ng-switch-when=\"popover-html\" id=\"helpButton-{{ item._elementId }}\"\n" +
|
|
375
|
-
" class=\"lf-help-button btn-sm\" uib-popover-template=\"'popover-content.html'\"\n" +
|
|
376
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Instruction\"\n" +
|
|
377
|
-
" type=\"button\" aria-label=\"Help\"\n" +
|
|
378
|
-
" aria-describedby=\"label-{{ item._elementId }}\">\n" +
|
|
379
|
-
" <span class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></span>\n" +
|
|
380
|
-
" </button>\n" +
|
|
381
|
-
" <button ng-switch-when=\"popover-escaped\" id=\"helpButton-{{ item._elementId }}\"\n" +
|
|
382
|
-
" class=\"lf-help-button btn-sm\" uib-popover=\"{{item.codingInstructions}}\"\n" +
|
|
383
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Instruction\"\n" +
|
|
384
|
-
" type=\"button\" aria-label=\"Help\"\n" +
|
|
385
|
-
" aria-describedby=\"label-{{ item._elementId }}\">\n" +
|
|
386
|
-
" <span class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></span>\n" +
|
|
387
|
-
" </button>\n" +
|
|
388
|
-
" </span>\n" +
|
|
389
|
-
" <button ng-if=\"item.copyrightNotice\" id=\"copyright-{{item._elementId}}\" type=\"button\"\n" +
|
|
390
|
-
" class=\"lf-copyright-button btn-sm\" uib-popover=\"{{item.copyrightNotice}}\"\n" +
|
|
391
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Copyright\"\n" +
|
|
392
|
-
" aria-label=\"Copyright notice\" aria-describedby=\"label-{{ item._elementId }}\">\n" +
|
|
393
|
-
" <span class=\"glyphicon glyphicon-copyright-mark\" aria-hidden=\"true\"></span>\n" +
|
|
394
|
-
" </button>\n" +
|
|
395
|
-
" <button ng-if=\"isItemOptionPanelButtonShown(item)\" type=\"button\" class=\"lf-control-button btn-sm\"\n" +
|
|
396
|
-
" ng-click=\"hideShowItemOptionPanel(item)\" aria-label=\"Item controls\"\n" +
|
|
397
|
-
" aria-describedby=\"label-{{ item._elementId }}\">\n" +
|
|
398
|
-
" <span class=\"glyphicon glyphicon-cog\" aria-hidden=\"true\"></span>\n" +
|
|
399
|
-
" </button>\n" +
|
|
400
|
-
" <!-- TBD -->\n" +
|
|
401
|
-
" <lf-item-options></lf-item-options>\n" +
|
|
402
|
-
" </div>\n" +
|
|
403
|
-
"\n" +
|
|
404
|
-
" <!-- button -->\n" +
|
|
405
|
-
" <div class=\"lf-de-button\">\n" +
|
|
406
|
-
" <button ng-if=\"!hasOneRepeatingItem(item)\" class=\"lf-float-button\" type=\"button\"\n" +
|
|
407
|
-
" ng-click=\"removeOneRepeatingItem(item)\" id=\"del-{{item._elementId}}\"\n" +
|
|
408
|
-
" title='Remove this \"{{ item._text }}\"'>-</button>\n" +
|
|
409
|
-
" </div>\n" +
|
|
410
|
-
" </div>\n" +
|
|
411
|
-
"\n" +
|
|
412
|
-
" <div ng-if=\"item.dataType !=='TITLE' && !item.header\" class=\"lf-de-input-unit\" ng-style=\"getFieldWidth(item)\">\n" +
|
|
413
|
-
" <!-- input field -->\n" +
|
|
414
|
-
" <div ng-switch on=\"item.dataType\" class=\"lf-de-input values hasTooltip\">\n" +
|
|
415
|
-
" <ng-form name=\"innerForm2\">\n" +
|
|
416
|
-
" <div class=\"lf-form-item-data tooltipContainer\">\n" +
|
|
417
|
-
" <div class=\"tooltipContent\" lf-validate=\"item\" ng-model=\"item.value\" ng-if=\"item._hasValidation\"></div>\n" +
|
|
418
|
-
" <div ng-switch-when=\"CNE\">\n" +
|
|
419
|
-
" <lf-answers item=\"item\"></lf-answers>\n" +
|
|
420
|
-
" </div>\n" +
|
|
421
|
-
" <div ng-switch-when=\"CWE\">\n" +
|
|
422
|
-
" <lf-answers item=\"item\"></lf-answers>\n" +
|
|
423
|
-
" </div>\n" +
|
|
424
|
-
"\n" +
|
|
425
|
-
" <input ng-switch-when=\"DT\" name=\"{{item._text}}\" type=\"text\"\n" +
|
|
426
|
-
" ng-model=\"item.value\" lf-date=\"dateOptions\" placeholder=\"{{item._toolTip}}\"\n" +
|
|
427
|
-
" ng-disabled=\"item._readOnly\" id=\"{{item._elementId}}\" ng-focus=\"setActiveRow(item)\"\n" +
|
|
428
|
-
" ng-blur=\"activeRowOnBlur(item)\" aria-describedby=\"help-{{ item._elementId }}\"\n" +
|
|
429
|
-
" aria-required=\"{{ item._answerRequired }}\">\n" +
|
|
430
|
-
"\n" +
|
|
431
|
-
" <!-- Gillardo boostrap datetime picker -->\n" +
|
|
432
|
-
" <div ng-switch-when=\"DTM\" class=\"lf-dtm-picker-block\">\n" +
|
|
433
|
-
" <input name=\"{{item._text}}\" type=\"text\" class=\"form-control\"\n" +
|
|
434
|
-
" ng-model=\"item.value\" placeholder=\"{{item._toolTip}}\"\n" +
|
|
435
|
-
" datetime-picker=\"{{uibDateTimePickerFormat}}\" alt-input-formats=\"uibDatePickerAltFormats\"\n" +
|
|
436
|
-
" is-open=\"isOpen\" enable-time=\"true\" close-on-date-selection=\"true\" button-bar=\"uibDtmPickerButtonBar\"\n" +
|
|
437
|
-
" datepicker-options=\"uibDatePickerOptions\" timepicker-options=\"uibTimePickerOptions\"\n" +
|
|
438
|
-
" ng-disabled=\"item._readOnly\" id=\"{{item._elementId}}\" ng-focus=\"setActiveRow(item)\"\n" +
|
|
439
|
-
" ng-blur=\"activeRowOnBlur(item); uibDtmPickerOnBlur('input')\" aria-describedby=\"help-{{ item._elementId }}\"\n" +
|
|
440
|
-
" aria-required=\"{{ item._answerRequired }}\">\n" +
|
|
441
|
-
" <button type=\"button\" class=\"ui-datepicker-trigger\" ng-click=\"openUibDtmPicker($event)\"></button>\n" +
|
|
442
|
-
" </div>\n" +
|
|
443
|
-
"\n" +
|
|
444
|
-
" <textarea ng-switch-when=\"TX\" name=\"{{item._text}}\"\n" +
|
|
445
|
-
" ng-model=\"item.value\" ng-attr-placeholder=\"{{item._toolTip}}\" ng-disabled=\"item._readOnly\"\n" +
|
|
446
|
-
" id=\"{{item._elementId}}\" ng-keyup=\"autoExpand($event)\" ng-blur=\"activeRowOnBlur(item);autoExpand($event)\" rows=\"1\"\n" +
|
|
447
|
-
" ng-focus=\"setActiveRow(item)\" aria-describedby=\"help-{{ item._elementId }}\"\n" +
|
|
448
|
-
" aria-required=\"{{ item._answerRequired }}\">\n" +
|
|
449
|
-
" </textarea>\n" +
|
|
450
|
-
" <input ng-switch-when=\"BL\" name=\"{{item._text}}\" type=\"checkbox\"\n" +
|
|
451
|
-
" ng-model=\"item.value\" placeholder=\"{{item._toolTip}}\" ng-disabled=\"item._readOnly\"\n" +
|
|
452
|
-
" id=\"{{item._elementId}}\" ng-focus=\"setActiveRow(item)\"\n" +
|
|
453
|
-
" ng-true-value=\"true\" ng-false-value=\"false\"\n" +
|
|
454
|
-
" ng-blur=\"activeRowOnBlur(item)\" aria-describedby=\"help-{{ item._elementId }}\">\n" +
|
|
455
|
-
" <lf-attachment ng-switch-when=\"attachment\" item=\"item\"\n" +
|
|
456
|
-
" create-attachment=\"createAttachment(item)\" id=\"item._elementId\"></lf-attachment>\n" +
|
|
457
|
-
" <input ng-switch-default name=\"{{item._text}}\" type=\"text\"\n" +
|
|
458
|
-
" ng-model=\"item.value\" placeholder=\"{{item._toolTip}}\" ng-disabled=\"item._readOnly\"\n" +
|
|
459
|
-
" id=\"{{item._elementId}}\" ng-focus=\"setActiveRow(item)\"\n" +
|
|
460
|
-
" ng-blur=\"activeRowOnBlur(item)\" aria-describedby=\"help-{{ item._elementId }}\"\n" +
|
|
461
|
-
" aria-required=\"{{ item._answerRequired }}\">\n" +
|
|
462
|
-
" </div>\n" +
|
|
463
|
-
" </ng-form>\n" +
|
|
464
|
-
" </div>\n" +
|
|
465
|
-
"\n" +
|
|
466
|
-
" <!--unit-->\n" +
|
|
467
|
-
" <div ng-if=\"!lfData.templateOptions.hideUnits && checkUnits(item)\" class=\"lf-de-unit\">\n" +
|
|
468
|
-
" <lf-units item=\"item\"></lf-units>\n" +
|
|
469
|
-
" </div>\n" +
|
|
470
|
-
"\n" +
|
|
471
|
-
" <!-- extra question -->\n" +
|
|
472
|
-
" <div ng-if=\"needExtra(item)\" class=\"lf-de-unit\">\n" +
|
|
473
|
-
" <input class=\"lf-extra-field\" ng-model=\"item.valueOther\" placeholder=\"Please specify\"\n" +
|
|
474
|
-
" ng-disabled=\"item._readOnly\" type=\"text\" ng-focus=\"setActiveRow(item)\">\n" +
|
|
475
|
-
" </div>\n" +
|
|
476
|
-
" </div>\n" +
|
|
477
|
-
"\n" +
|
|
478
|
-
"\n" +
|
|
479
|
-
"</div>\n" +
|
|
480
|
-
"\n"
|
|
481
|
-
);
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
$templateCache.put('itemPrefixAndText.html',
|
|
485
|
-
"<span ng-if=\"item.prefix\" class=\"prefix\"\n" +
|
|
486
|
-
" style=\"{{item._obj_prefixCSS}}\">{{item.prefix}}</span><span\n" +
|
|
487
|
-
" class=\"question\" style={{item._obj_textCSS}}>{{item.question}}<span\n" +
|
|
488
|
-
" ng-if=\"item._answerRequired\" class=\"required\" title=\"Required\"> *</span></span>\n"
|
|
489
|
-
);
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
$templateCache.put('layout-horizontal.html',
|
|
493
|
-
"<div class=\"lf-layout-horizontal lf-table-item {{getSiblingStatus(item)}} \" ng-if=\"item._horizontalTableHeader && lfData._horizontalTableInfo[item._horizontalTableId]\">\n" +
|
|
494
|
-
" <div ng-attr-role=\"{{item.header ? 'heading' : undefined}}\"\n" +
|
|
495
|
-
" ng-attr-aria-level=\"{{item.header ? item._displayLevel+1 : undefined}}\"\n" +
|
|
496
|
-
" class=\"lf-form-horizontal-table-title lf-de-label\">\n" +
|
|
497
|
-
" <span class=\"lf-question\"><label id=\"label-{{ item._elementId }}\"><ng-include src=\"'itemPrefixAndText.html'\"></label></span>\n" +
|
|
498
|
-
" <span class=\"lf-item-code\" ng-show=\"lfData.templateOptions.showQuestionCode\">\n" +
|
|
499
|
-
" <a ng-if=\"item._linkToDef\" href=\"{{ item._linkToDef }}\" target=\"_blank\" rel=\"noopener noreferrer\">[{{ item.questionCode }}]</a>\n" +
|
|
500
|
-
" <span ng-if=\"!item._linkToDef\">[{{ item.questionCode }}]</span>\n" +
|
|
501
|
-
" </span>\n" +
|
|
502
|
-
" <span ng-switch on=\"getCodingInstructionsDisplayType(item)\" ng-if=\"item.codingInstructions\">\n" +
|
|
503
|
-
" <span ng-switch-when=\"inline-html\" class=\"lf-prompt\" ng-bind-html=\"getTrustedCodingInstructions(item)\"></span>\n" +
|
|
504
|
-
" <span ng-switch-when=\"inline-escaped\" class=\"lf-prompt\" ng-bind=\"item.codingInstructions\"></span>\n" +
|
|
505
|
-
" <button ng-switch-when=\"popover-html\" class=\"lf-help-button btn-sm\" uib-popover-template=\"'popover.html'\"\n" +
|
|
506
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Instruction\"\n" +
|
|
507
|
-
" type=\"button\" id=\"help-{{item._elementId}}\" aria-label=\"Help\"\n" +
|
|
508
|
-
" aria-describedby=\"label-{{ item._elementId }}\">\n" +
|
|
509
|
-
" <span class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></span>\n" +
|
|
510
|
-
" </button>\n" +
|
|
511
|
-
" <button ng-switch-when=\"popover-escaped\" class=\"lf-help-button btn-sm\" uib-popover=\"{{item.codingInstructions}}\"\n" +
|
|
512
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Instruction\"\n" +
|
|
513
|
-
" type=\"button\" id=\"help-{{item._elementId}}\" aria-label=\"Help\"\n" +
|
|
514
|
-
" aria-describedby=\"label-{{ item._elementId }}\">\n" +
|
|
515
|
-
" <span class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></span>\n" +
|
|
516
|
-
" </button>\n" +
|
|
517
|
-
" </span>\n" +
|
|
518
|
-
" <button ng-if=\"item.copyrightNotice\" id=\"copyright-{{item._elementId}}\" type=\"button\"\n" +
|
|
519
|
-
" class=\"lf-copyright-button btn-sm\" uib-popover=\"{{item.copyrightNotice}}\"\n" +
|
|
520
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Copyright\"\n" +
|
|
521
|
-
" aria-label=\"Copyright notice\" aria-describedby=\"label-{{ item._elementId }}\">\n" +
|
|
522
|
-
" <span class=\"glyphicon glyphicon-copyright-mark\" aria-hidden=\"true\"></span>\n" +
|
|
523
|
-
" </button>\n" +
|
|
524
|
-
" <button ng-if=\"isItemOptionPanelButtonShown(item)\" type=\"button\" class=\"lf-control-button btn-sm\"\n" +
|
|
525
|
-
" ng-click=\"hideShowItemOptionPanel(item)\" aria-label=\"Item controls\"\n" +
|
|
526
|
-
" aria-describedby=\"label-{{ item._elementId }}\">\n" +
|
|
527
|
-
" <span class=\"glyphicon glyphicon-cog\" aria-hidden=\"true\"></span>\n" +
|
|
528
|
-
" </button>\n" +
|
|
529
|
-
" <!-- TBD -->\n" +
|
|
530
|
-
" <lf-item-options></lf-item-options>\n" +
|
|
531
|
-
" </div>\n" +
|
|
532
|
-
"\n" +
|
|
533
|
-
" <table class=\"lf-form-horizontal-table\">\n" +
|
|
534
|
-
" <colgroup>\n" +
|
|
535
|
-
" <col class=\"lf-de-button\" ng-if=\"item._questionRepeatable && lfData._horizontalTableInfo[item._horizontalTableId].tableRows.length>1\">\n" +
|
|
536
|
-
" <col ng-repeat=\"col in lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders\"\n" +
|
|
537
|
-
" ng-style=\"getTableColumnStyle(col)\">\n" +
|
|
538
|
-
" </colgroup>\n" +
|
|
539
|
-
" <thead>\n" +
|
|
540
|
-
" <tr>\n" +
|
|
541
|
-
" <th class=\"lf-form-horizontal-table-header\" ng-if=\"item._questionRepeatable && lfData._horizontalTableInfo[item._horizontalTableId].tableRows.length>1\"></th>\n" +
|
|
542
|
-
" <th ng-repeat=\"col in lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders\"\n" +
|
|
543
|
-
" ng-init=\"item = col.item\" class=\"lf-form-horizontal-table-header\"\n" +
|
|
544
|
-
" id=\"{{col.id}}\"><ng-include src=\"'itemPrefixAndText.html'\"></th>\n" +
|
|
545
|
-
" </tr>\n" +
|
|
546
|
-
" </thead>\n" +
|
|
547
|
-
" <tbody id=\"\" class=\"\">\n" +
|
|
548
|
-
" <tr ng-repeat=\"row in lfData._horizontalTableInfo[item._horizontalTableId].tableRows track by $index\"\n" +
|
|
549
|
-
" class=\"data-row has-ng-animate\">\n" +
|
|
550
|
-
" <td class=\"lf-de-button\" ng-if=\"item._questionRepeatable && lfData._horizontalTableInfo[item._horizontalTableId].tableRows.length>1\">\n" +
|
|
551
|
-
" <button ng-if=\"!hasOneRepeatingItem(item)\" type=\"button\"\n" +
|
|
552
|
-
" id=\"del-{{row.header._elementId}}\"\n" +
|
|
553
|
-
" class=\"lf-float-button\" ng-click=\"removeOneRepeatingItem(row.header)\"\n" +
|
|
554
|
-
" title='Remove this row of \"{{ row.header.question }}\"'>-</button>\n" +
|
|
555
|
-
" </td>\n" +
|
|
556
|
-
"\n" +
|
|
557
|
-
" <td ng-repeat=\"cell in row.cells\"\n" +
|
|
558
|
-
" class=\"hasTooltip {{getRowClass(cell)}} {{getSkipLogicClass(cell)}} {{getActiveRowClass(cell)}}\"\n" +
|
|
559
|
-
" ng-switch on=\"(!lfData._expressionProcessor._firstExpressionRunComplete && cell._hasListExpr) ? 'Loading List' : cell.dataType\">\n" +
|
|
560
|
-
" <ng-form name=\"innerForm2\">\n" +
|
|
561
|
-
" <div class=\"lf-form-item-data tooltipContainer\">\n" +
|
|
562
|
-
" <div class=\"tooltipContent\" lf-validate=\"cell\" ng-model=\"cell.value\" ng-if=\"cell._hasValidation\"></div>\n" +
|
|
563
|
-
" <span ng-switch-when=\"\" > </span>\n" +
|
|
564
|
-
" <span ng-switch-when=\"Loading List\">Loading list data...</span>\n" +
|
|
565
|
-
" <input ng-switch-when=\"CNE\" name=\"{{cell.question + '_' + $id}}\" type=\"text\"\n" +
|
|
566
|
-
" ng-model=\"cell.value\"\n" +
|
|
567
|
-
" autocomplete-lhc=\"cell._autocompOptions\"\n" +
|
|
568
|
-
" ng-disabled=\"cell._readOnly\" placeholder=\"{{cell._toolTip}}\"\n" +
|
|
569
|
-
" id=\"{{cell._elementId}}\"\n" +
|
|
570
|
-
" aria-labelledby=\"{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}\"\n" +
|
|
571
|
-
" ng-focus=\"setActiveRow(cell)\" ng-blur=\"activeRowOnBlur(cell)\">\n" +
|
|
572
|
-
" <input ng-switch-when=\"CWE\" name=\"{{cell.question + '_' + $id}}\" type=\"text\"\n" +
|
|
573
|
-
" ng-model=\"cell.value\"\n" +
|
|
574
|
-
" autocomplete-lhc=\"cell._autocompOptions\"\n" +
|
|
575
|
-
" ng-disabled=\"cell._readOnly\" placeholder=\"{{cell._toolTip}}\"\n" +
|
|
576
|
-
" id=\"{{cell._elementId}}\"\n" +
|
|
577
|
-
" aria-labelledby=\"{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}\"\n" +
|
|
578
|
-
" ng-focus=\"setActiveRow(cell)\" ng-blur=\"activeRowOnBlur(cell)\">\n" +
|
|
579
|
-
" <input ng-switch-when=\"REAL\" name=\"{{cell.question}}\" type=\"text\"\n" +
|
|
580
|
-
" ng-model=\"cell.value\"\n" +
|
|
581
|
-
" placeholder=\"{{cell._toolTip}}\" ng-disabled=\"cell._readOnly\"\n" +
|
|
582
|
-
" id=\"{{cell._elementId}}\"\n" +
|
|
583
|
-
" aria-labelledby=\"{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}\"\n" +
|
|
584
|
-
" ng-focus=\"setActiveRow(cell)\" ng-blur=\"activeRowOnBlur(cell)\">\n" +
|
|
585
|
-
" <input ng-switch-when=\"INT\" name=\"{{cell.question}}\" type=\"text\"\n" +
|
|
586
|
-
" ng-model=\"cell.value\"\n" +
|
|
587
|
-
" placeholder=\"{{cell._toolTip}}\" ng-disabled=\"cell._readOnly\"\n" +
|
|
588
|
-
" id=\"{{cell._elementId}}\"\n" +
|
|
589
|
-
" aria-labelledby=\"{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}\"\n" +
|
|
590
|
-
" ng-focus=\"setActiveRow(cell)\" ng-blur=\"activeRowOnBlur(cell)\">\n" +
|
|
591
|
-
" <input ng-switch-when=\"DT\" name=\"{{cell.question}}\" type=\"text\"\n" +
|
|
592
|
-
" ng-model=\"cell.value\"\n" +
|
|
593
|
-
" lf-date=\"dateOptions\" placeholder=\"{{cell._toolTip}}\" ng-disabled=\"cell._readOnly\"\n" +
|
|
594
|
-
" id=\"{{cell._elementId}}\"\n" +
|
|
595
|
-
" aria-labelledby=\"{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}\"\n" +
|
|
596
|
-
" ng-focus=\"setActiveRow(cell)\" ng-blur=\"activeRowOnBlur(cell)\">\n" +
|
|
597
|
-
" <!-- Gillardo boostrap datetime picker -->\n" +
|
|
598
|
-
" <div ng-switch-when=\"DTM\" class=\"lf-dtm-picker-block\">\n" +
|
|
599
|
-
" <input name=\"{{cell.question}}\" type=\"text\" class=\"form-control\"\n" +
|
|
600
|
-
" ng-model=\"cell.value\"\n" +
|
|
601
|
-
" datetime-picker=\"{{uibDateTimePickerFormat}}\" alt-input-formats=\"uibDatePickerAltFormats\"\n" +
|
|
602
|
-
" is-open=\"isOpen\" enable-time=\"true\" close-on-date-selection=\"true\" button-bar=\"uibDtmPickerButtonBar\"\n" +
|
|
603
|
-
" datepicker-options=\"uibDatePickerOptions\" timepicker-options=\"uibTimePickerOptions\"\n" +
|
|
604
|
-
" placeholder=\"{{cell._toolTip}}\" ng-disabled=\"cell._readOnly\"\n" +
|
|
605
|
-
" id=\"{{cell._elementId}}\"\n" +
|
|
606
|
-
" aria-labelledby=\"{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}\"\n" +
|
|
607
|
-
" ng-focus=\"setActiveRow(cell)\" ng-blur=\"activeRowOnBlur(cell); uibDtmPickerOnBlur('input')\">\n" +
|
|
608
|
-
" <button type=\"button\" class=\"ui-datepicker-trigger\" ng-click=\"openUibDtmPicker($event)\"></button>\n" +
|
|
609
|
-
" </div>\n" +
|
|
610
|
-
" <textarea ng-switch-when=\"TX\" name=\"{{cell.question}}\"\n" +
|
|
611
|
-
" ng-model=\"cell.value\" ng-attr-placeholder=\"{{cell._toolTip}}\" ng-disabled=\"cell._readOnly\"\n" +
|
|
612
|
-
" id=\"{{cell._elementId}}\"\n" +
|
|
613
|
-
" aria-labelledby=\"{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}\"\n" +
|
|
614
|
-
" ng-keyup=\"autoExpand($event)\" rows=\"1\"\n" +
|
|
615
|
-
" ng-focus=\"setActiveRow(cell)\" ng-blur=\"activeRowOnBlur(cell)\"></textarea>\n" +
|
|
616
|
-
" <lf-attachment ng-switch-when=\"attachment\" item=\"cell\"\n" +
|
|
617
|
-
" create-attachment=\"createAttachment(item)\"\n" +
|
|
618
|
-
" labelled-by=lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id\n" +
|
|
619
|
-
" ></lf-attachment>\n" +
|
|
620
|
-
" <input ng-switch-default name=\"{{cell.question}}\" type=\"text\"\n" +
|
|
621
|
-
" ng-model=\"cell.value\" placeholder=\"{{cell._toolTip}}\" ng-disabled=\"cell._readOnly\"\n" +
|
|
622
|
-
" id=\"{{cell._elementId}}\"\n" +
|
|
623
|
-
" aria-labelledby=\"{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}\"\n" +
|
|
624
|
-
" ng-focus=\"setActiveRow(cell)\" ng-blur=\"activeRowOnBlur(cell)\">\n" +
|
|
625
|
-
" </div>\n" +
|
|
626
|
-
" </ng-form>\n" +
|
|
627
|
-
" </td>\n" +
|
|
628
|
-
" </tr>\n" +
|
|
629
|
-
" </tbody>\n" +
|
|
630
|
-
" </table>\n" +
|
|
631
|
-
"\n" +
|
|
632
|
-
" <div ng-if=\"item._questionRepeatable && targetShown(item) \"\n" +
|
|
633
|
-
" class=\"lf-form-table-row button-row {{getSkipLogicClass(item)}}\">\n" +
|
|
634
|
-
" <div class=\"has-popover-warning\">\n" +
|
|
635
|
-
" <button type=\"button\"\n" +
|
|
636
|
-
" class=\"lf-float-button\" id=\"add-{{item._elementId}}\"\n" +
|
|
637
|
-
" ng-click=\"addOneRepeatingItem(item, true)\"\n" +
|
|
638
|
-
" ng-blur=\"hideUnusedItemWarning(item)\"\n" +
|
|
639
|
-
" uib-popover='Please enter info in the blank \"{{ item._text }}\".'\n" +
|
|
640
|
-
" popover-placement=\"top-left\"\n" +
|
|
641
|
-
" popover-trigger=\"none\"\n" +
|
|
642
|
-
" popover-is-open=\"item._showUnusedItemWarning\">\n" +
|
|
643
|
-
" + Add another \"{{item._text}}\"\n" +
|
|
644
|
-
" </button>\n" +
|
|
645
|
-
" </div>\n" +
|
|
646
|
-
" </div>\n" +
|
|
647
|
-
"</div>\n" +
|
|
648
|
-
"\n"
|
|
649
|
-
);
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
$templateCache.put('layout-matrix.html',
|
|
653
|
-
"<div class=\"lf-layout-matrix lf-table-item {{getSiblingStatus(item)}}\">\n" +
|
|
654
|
-
" <div ng-attr-role=\"{{item.header ? 'heading' : undefined}}\"\n" +
|
|
655
|
-
" ng-attr-aria-level=\"{{item.header ? item._displayLevel+1 : undefined}}\"\n" +
|
|
656
|
-
" class=\"lf-form-matrix-table-title lf-de-label\">\n" +
|
|
657
|
-
" <span class=\"lf-question\"><label id=\"label-{{ item._elementId }}\"><ng-include src=\"'itemPrefixAndText.html'\"></label></span>\n" +
|
|
658
|
-
" <span class=\"lf-item-code\" ng-show=\"lfData.templateOptions.showQuestionCode\">\n" +
|
|
659
|
-
" <a ng-if=\"item._linkToDef\" href=\"{{ item._linkToDef }}\" target=\"_blank\" rel=\"noopener noreferrer\">[{{ item.questionCode }}]</a>\n" +
|
|
660
|
-
" <span ng-if=\"!item._linkToDef\">[{{ item.questionCode }}]</span>\n" +
|
|
661
|
-
" </span>\n" +
|
|
662
|
-
" <span ng-switch on=\"getCodingInstructionsDisplayType(item)\" ng-if=\"item.codingInstructions\">\n" +
|
|
663
|
-
" <span ng-switch-when=\"inline-html\" class=\"lf-prompt\" ng-bind-html=\"getTrustedCodingInstructions(item)\"\n" +
|
|
664
|
-
" id=\"help-{{ item._elementId }}\"></span>\n" +
|
|
665
|
-
" <span ng-switch-when=\"inline-escaped\" class=\"lf-prompt\" ng-bind=\"item.codingInstructions\"\n" +
|
|
666
|
-
" id=\"help-{{ item._elementId }}\"></span>\n" +
|
|
667
|
-
" <button ng-switch-when=\"popover-html\" class=\"lf-help-button btn-sm\" uib-popover-template=\"'popover.html'\"\n" +
|
|
668
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Instruction\"\n" +
|
|
669
|
-
" type=\"button\" id=\"helpButton-{{item._elementId}}\" aria-label=\"Help\"\n" +
|
|
670
|
-
" aria-describedby=\"label-{{ item._elementId }}\">\n" +
|
|
671
|
-
" <span class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></span>\n" +
|
|
672
|
-
" </button>\n" +
|
|
673
|
-
" <button ng-switch-when=\"popover-escaped\" class=\"lf-help-button btn-sm\" uib-popover=\"{{item.codingInstructions}}\"\n" +
|
|
674
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Instruction\"\n" +
|
|
675
|
-
" type=\"button\" id=\"helpButton-{{item._elementId}}\" aria-label=\"Help\"\n" +
|
|
676
|
-
" aria-describedby=\"label-{{ item._elementId }}\">\n" +
|
|
677
|
-
" <span class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></span>\n" +
|
|
678
|
-
" </button>\n" +
|
|
679
|
-
" </span>\n" +
|
|
680
|
-
" <button ng-if=\"item.copyrightNotice\" id=\"copyright-{{item._elementId}}\" type=\"button\"\n" +
|
|
681
|
-
" class=\"lf-copyright-button btn-sm\" uib-popover=\"{{item.copyrightNotice}}\"\n" +
|
|
682
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Copyright\"\n" +
|
|
683
|
-
" aria-label=\"Copyright notice\" aria-describedby=\"label-{{ item._elementId }}\">\n" +
|
|
684
|
-
" <span class=\"glyphicon glyphicon-copyright-mark\" aria-hidden=\"true\"></span>\n" +
|
|
685
|
-
" </button>\n" +
|
|
686
|
-
" <button ng-if=\"isItemOptionPanelButtonShown(item)\" type=\"button\" class=\"lf-control-button btn-sm\"\n" +
|
|
687
|
-
" ng-click=\"hideShowItemOptionPanel(item)\" aria-label=\"Item controls\"\n" +
|
|
688
|
-
" aria-describedby=\"label-{{item._elementId}}\">\n" +
|
|
689
|
-
" <span class=\"glyphicon glyphicon-cog\" aria-hidden=\"true\"></span>\n" +
|
|
690
|
-
" </button>\n" +
|
|
691
|
-
" <!-- TBD -->\n" +
|
|
692
|
-
" <lf-item-options></lf-item-options>\n" +
|
|
693
|
-
" </div>\n" +
|
|
694
|
-
" <table class=\"lf-form-matrix-table lf-form-table\">\n" +
|
|
695
|
-
" <colgroup>\n" +
|
|
696
|
-
" <col class=\"lf-question\">\n" +
|
|
697
|
-
" <col ng-repeat=\"answer in item.items[0].answers\">\n" +
|
|
698
|
-
" <col class=\"other-answer\" ng-if=\"item.items[0].dataType ==='CWE'\">\n" +
|
|
699
|
-
" </colgroup>\n" +
|
|
700
|
-
" <thead>\n" +
|
|
701
|
-
" <tr class=\"lf-\">\n" +
|
|
702
|
-
" <th class=\"lf-question lf-form-table-header\"></th>\n" +
|
|
703
|
-
" <th ng-repeat=\"answer in item.items[0].answers\"\n" +
|
|
704
|
-
" class=\"lf-form-matrix-cell lf-form-table-header\"\n" +
|
|
705
|
-
" id=\"answer-{{$index}}\">{{answer.text}}</th>\n" +
|
|
706
|
-
" <th class=\"lf-form-matrix-cell-other lf-form-table-header\" ng-if=\"item.items[0].dataType ==='CWE'\"\n" +
|
|
707
|
-
" id=\"otherAnswer\">Other</th>\n" +
|
|
708
|
-
" </tr>\n" +
|
|
709
|
-
" </thead>\n" +
|
|
710
|
-
" <tbody>\n" +
|
|
711
|
-
" <tr ng-repeat=\"subItem in item.items\" role=\"radiogroup\"\n" +
|
|
712
|
-
" ng-init=\"firstItem = item.items[0] ; item = subItem\"\n" +
|
|
713
|
-
" aria-labeledby=\"label-{{subItem._elementId }}\"\n" +
|
|
714
|
-
" aria-describedby=\"help-{{ subItem._parentItem._elementId }} help-{{ subItem._elementId }}\">\n" +
|
|
715
|
-
" <td class=\"lf-question\">\n" +
|
|
716
|
-
" <div class=\"lf-de-label\">\n" +
|
|
717
|
-
" <span class=\"lf-question\"><label id=\"label-{{ subItem._elementId }}\"\n" +
|
|
718
|
-
" for=\"{{subItem._elementId}}\"><ng-include src=\"'itemPrefixAndText.html'\"></label></span>\n" +
|
|
719
|
-
" <span class=\"lf-item-code\" ng-show=\"lfData.templateOptions.showQuestionCode\">\n" +
|
|
720
|
-
" <a ng-if=\"subItem._linkToDef\" href=\"{{ subItem._linkToDef }}\" target=\"_blank\" rel=\"noopener noreferrer\">[{{ subItem.questionCode }}]</a>\n" +
|
|
721
|
-
" <span ng-if=\"!subItem._linkToDef\">[{{ subItem.questionCode }}]</span>\n" +
|
|
722
|
-
" </span>\n" +
|
|
723
|
-
" <span ng-switch on=\"getCodingInstructionsDisplayType(subItem)\" ng-if=\"subItem.codingInstructions\">\n" +
|
|
724
|
-
" <span ng-switch-when=\"inline-html\" id=\"help-{{subItem._elementId}}\"\n" +
|
|
725
|
-
" class=\"lf-prompt\" ng-bind-html=\"getTrustedCodingInstructions(subItem)\"></span>\n" +
|
|
726
|
-
" <span ng-switch-when=\"inline-escaped\" id=\"help-{{subItem._elementId}}\"\n" +
|
|
727
|
-
" class=\"lf-prompt\" ng-bind=\"subItem.codingInstructions\"></span>\n" +
|
|
728
|
-
" <button ng-switch-when=\"popover-html\" class=\"lf-help-button btn-sm\" uib-popover-template=\"'popover.html'\"\n" +
|
|
729
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Instruction\"\n" +
|
|
730
|
-
" type=\"button\" id=\"helpButton-{{subItem._elementId}}\"\n" +
|
|
731
|
-
" aria-label=\"Help\" aria-describedby=\"label-{{ subItem._elementId }}\">\n" +
|
|
732
|
-
" <span class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></span>\n" +
|
|
733
|
-
" </button>\n" +
|
|
734
|
-
" <button ng-switch-when=\"popover-escaped\" class=\"lf-help-button btn-sm\" uib-popover=\"{{subItem.codingInstructions}}\"\n" +
|
|
735
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Instruction\"\n" +
|
|
736
|
-
" type=\"button\" id=\"helpButton-{{subItem._elementId}}\" aria-label=\"Help\"\n" +
|
|
737
|
-
" aria-describedby=\"label-{{ subItem._elementId }}\">\n" +
|
|
738
|
-
" <span class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></span>\n" +
|
|
739
|
-
" </button>\n" +
|
|
740
|
-
" </span>\n" +
|
|
741
|
-
" <button ng-if=\"subItem.copyrightNotice\" id=\"copyright-{{subItem._elementId}}\" type=\"button\"\n" +
|
|
742
|
-
" class=\"lf-copyright-button btn-sm\" uib-popover=\"{{subItem.copyrightNotice}}\"\n" +
|
|
743
|
-
" popover-trigger=\"focus\" popover-placement=\"right\" popover-title=\"Copyright\"\n" +
|
|
744
|
-
" aria-label=\"Copyright notice\"\n" +
|
|
745
|
-
" aria-describedby=\"label-{{ subItem._elementId }}\">\n" +
|
|
746
|
-
" <span class=\"glyphicon glyphicon-copyright-mark\" aria-hidden=\"true\"></span>\n" +
|
|
747
|
-
" </button>\n" +
|
|
748
|
-
" </div>\n" +
|
|
749
|
-
" </td>\n" +
|
|
750
|
-
" <td ng-repeat=\"answer in firstItem.answers\"\n" +
|
|
751
|
-
" class=\"lf-form-matrix-cell\">\n" +
|
|
752
|
-
" <span class=\"lf-form-matrix-answer\">\n" +
|
|
753
|
-
" <label ng-if=\"subItem._multipleAnswers\">\n" +
|
|
754
|
-
" <input type=\"checkbox\" id=\"{{subItem._elementId + answer.code}}\"\n" +
|
|
755
|
-
" ng-click=\"updateCheckboxList(subItem, answer)\" aria-labeledby=\"answer-{{$index}}\">\n" +
|
|
756
|
-
" </label>\n" +
|
|
757
|
-
" <label ng-if=\"!subItem._multipleAnswers\">\n" +
|
|
758
|
-
" <input type=\"radio\" id=\"{{subItem._elementId + answer.code}}\"\n" +
|
|
759
|
-
" aria-labeledby=\"answer-{{$index}}\" ng-model=\"subItem.value\" ng-value=\"answer\"\n" +
|
|
760
|
-
" name=\"{{subItem._elementId}}\" ng-change=\"updateRadioList(subItem)\">\n" +
|
|
761
|
-
" </label>\n" +
|
|
762
|
-
" </span>\n" +
|
|
763
|
-
" </td>\n" +
|
|
764
|
-
" <td class=\"lf-form-matrix-cell-other\" ng-if=\"subItem.dataType ==='CWE'\"\n" +
|
|
765
|
-
" aria-labeledby=otherAnswer>\n" +
|
|
766
|
-
" <!--for multiple answers-->\n" +
|
|
767
|
-
" <span ng-if=\"subItem._multipleAnswers\" class=\"lf-form-matrix-answer\">\n" +
|
|
768
|
-
" <label>\n" +
|
|
769
|
-
" <input type=\"checkbox\" ng-model=\"subItem._otherValueChecked\"\n" +
|
|
770
|
-
" id=\"{{subItem._elementId + '_other'}}\"\n" +
|
|
771
|
-
" ng-change=\"updateCheckboxListForOther(subItem, subitem._answerOther)\">\n" +
|
|
772
|
-
" </label>\n" +
|
|
773
|
-
" <label>\n" +
|
|
774
|
-
" <input type=\"text\" ng-model=\"subitem._answerOther\"\n" +
|
|
775
|
-
" id=\"{{subItem._elementId + '_otherValue'}}\"\n" +
|
|
776
|
-
" ng-change=\"updateCheckboxListForOther(subItem, subitem._answerOther)\">\n" +
|
|
777
|
-
" </label>\n" +
|
|
778
|
-
" </span>\n" +
|
|
779
|
-
" <!--for single answer-->\n" +
|
|
780
|
-
" <span ng-if=\"!subItem._multipleAnswers\" class=\"lf-form-matrix-answer\">\n" +
|
|
781
|
-
" <label>\n" +
|
|
782
|
-
" <input type=\"radio\" id=\"{{subItem._elementId + '_other'}}\" ng-model=\"subItem._otherValueChecked\"\n" +
|
|
783
|
-
" ng-value=\"true\" name=\"{{subItem._elementId}}\"\n" +
|
|
784
|
-
" ng-change=\"updateRadioListForOther(subItem, subitem._answerOther)\">\n" +
|
|
785
|
-
" </label>\n" +
|
|
786
|
-
" <label>\n" +
|
|
787
|
-
" <input type=\"text\" id=\"{{subItem._elementId + '_otherValue'}}\" ng-model=\"subitem._answerOther\"\n" +
|
|
788
|
-
" ng-change=\"updateRadioListForOther(subItem, subitem._answerOther)\">\n" +
|
|
789
|
-
" </label>\n" +
|
|
790
|
-
" </span>\n" +
|
|
791
|
-
" </td>\n" +
|
|
792
|
-
" </tr>\n" +
|
|
793
|
-
" </tbody>\n" +
|
|
794
|
-
" </table>\n" +
|
|
795
|
-
" <lf-repeating-button></lf-repeating-button>\n" +
|
|
796
|
-
"</div>\n" +
|
|
797
|
-
"\n"
|
|
798
|
-
);
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
$templateCache.put('popover-content.html',
|
|
802
|
-
"<div class=\"lf-popover\" ng-bind-html=\"getTrustedCodingInstructions(item)\"></div>\n"
|
|
803
|
-
);
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
$templateCache.put('repeating-button.html',
|
|
807
|
-
"<!--a button at the end of each repeating section-->\n" +
|
|
808
|
-
"<div ng-if=\"item._lastRepeatingItem && targetShown(item) \"\n" +
|
|
809
|
-
" class=\"lf-form-table-row button-row {{getSkipLogicClass(item)}}\">\n" +
|
|
810
|
-
" <div class=\"has-popover-warning\">\n" +
|
|
811
|
-
" <button type=\"button\"\n" +
|
|
812
|
-
" class=\"lf-float-button\" id=\"add-{{item._elementId}}\"\n" +
|
|
813
|
-
" ng-click=\"addOneRepeatingItem(item)\"\n" +
|
|
814
|
-
" ng-blur=\"hideUnusedItemWarning(item)\"\n" +
|
|
815
|
-
" uib-popover='{{item._unusedItemWarning}}'\n" +
|
|
816
|
-
" popover-placement=\"top-left\"\n" +
|
|
817
|
-
" popover-trigger=\"none\"\n" +
|
|
818
|
-
" popover-is-open=\"item._showUnusedItemWarning\">\n" +
|
|
819
|
-
" + Add another \"{{item._text}}\"\n" +
|
|
820
|
-
" </button>\n" +
|
|
821
|
-
" </div>\n" +
|
|
822
|
-
"</div>\n"
|
|
823
|
-
);
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
$templateCache.put('table-item.html',
|
|
827
|
-
"<div class=\"lf-table-item {{getSiblingStatus(item)}}\">\n" +
|
|
828
|
-
" <!-- question -->\n" +
|
|
829
|
-
" <lf-item ng-if=\"!item._isHiddenFromView\" ng-style=\"getItemStyle(item)\"></lf-item>\n" +
|
|
830
|
-
"\n" +
|
|
831
|
-
" <!--sub sections, check each item's layout -->\n" +
|
|
832
|
-
" <div ng-if=\"item.items\" class=\"section\">\n" +
|
|
833
|
-
" <div ng-repeat=\"item in item.items\" ng-if=\"targetShown(item) && !item._isHiddenFromView\"\n" +
|
|
834
|
-
" class=\"data-row has-ng-animate {{getRowClass(item)}} {{getSkipLogicClass(item)}}\n" +
|
|
835
|
-
" {{getActiveRowClass(item)}} {{getItemViewModeClass(item)}}\">\n" +
|
|
836
|
-
" <div ng-if=\"item.header\" ng-switch on=\"item.displayControl.questionLayout\">\n" +
|
|
837
|
-
" <div ng-switch-when=\"horizontal\">\n" +
|
|
838
|
-
" <lf-section-horizontal></lf-section-horizontal>\n" +
|
|
839
|
-
" </div>\n" +
|
|
840
|
-
" <div ng-switch-when=\"matrix\">\n" +
|
|
841
|
-
" <lf-section-matrix></lf-section-matrix>\n" +
|
|
842
|
-
" </div>\n" +
|
|
843
|
-
" <div ng-switch-when=\"vertical\">\n" +
|
|
844
|
-
" <lf-table-item></lf-table-item>\n" +
|
|
845
|
-
" </div>\n" +
|
|
846
|
-
" <div ng-switch-default>\n" +
|
|
847
|
-
" <lf-table-item></lf-table-item>\n" +
|
|
848
|
-
" </div>\n" +
|
|
849
|
-
" </div>\n" +
|
|
850
|
-
" <div ng-if=\"!item.header\">\n" +
|
|
851
|
-
" <lf-table-item></lf-table-item>\n" +
|
|
852
|
-
" </div>\n" +
|
|
853
|
-
" </div>\n" +
|
|
854
|
-
" </div>\n" +
|
|
855
|
-
" <lf-repeating-button></lf-repeating-button>\n" +
|
|
856
|
-
"</div>\n"
|
|
857
|
-
);
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
$templateCache.put('template-table.html',
|
|
861
|
-
"<form ng-if=\"lfData\" class=\"lf-form lf-template-table {{getIndentationStyle()}}\" novalidate autocomplete=\"false\"\n" +
|
|
862
|
-
" ng-keydown=\"handleNavigationKeyEventByTab($event)\">\n" +
|
|
863
|
-
" <!--form controls-->\n" +
|
|
864
|
-
" <lf-form-controls></lf-form-controls>\n" +
|
|
865
|
-
" <!--form title-->\n" +
|
|
866
|
-
" <lf-form-title></lf-form-title>\n" +
|
|
867
|
-
" <!-- form options -->\n" +
|
|
868
|
-
" <lf-form-options></lf-form-options>\n" +
|
|
869
|
-
" <!--form header-->\n" +
|
|
870
|
-
" <lf-form-header></lf-form-header>\n" +
|
|
871
|
-
" <!--form body-->\n" +
|
|
872
|
-
" <div class=\"lf-form-body\">\n" +
|
|
873
|
-
" <!--check form level questionLayout for matrix and horizontal layouts-->\n" +
|
|
874
|
-
" <div ng-switch on=\"lfData.templateOptions.displayControl.questionLayout\">\n" +
|
|
875
|
-
" <!--horizontal-->\n" +
|
|
876
|
-
" <div ng-switch-when=\"horizontal\" class=\"lf-top-section\">\n" +
|
|
877
|
-
" <lf-section-horizontal></lf-section-horizontal>\n" +
|
|
878
|
-
" </div>\n" +
|
|
879
|
-
" <!--matrix-->\n" +
|
|
880
|
-
" <div ng-switch-when=\"matrix\" class=\"lf-top-section\">\n" +
|
|
881
|
-
" <lf-section-matrix></lf-section-matrix>\n" +
|
|
882
|
-
" </div>\n" +
|
|
883
|
-
" <!--vertical-->\n" +
|
|
884
|
-
" <div ng-switch-default>\n" +
|
|
885
|
-
" <!-- data row, column header -->\n" +
|
|
886
|
-
" <div class=\"lf-column-header\" ng-if=\"lfData.templateOptions.showColumnHeaders\">\n" +
|
|
887
|
-
" <div class=\"lf-column-label-button\" id=\"th_Name\">\n" +
|
|
888
|
-
" {{lfData.templateOptions.columnHeaders[0].name}}\n" +
|
|
889
|
-
" </div>\n" +
|
|
890
|
-
" <div class=\"lf-column-input-unit\" ng-style=\"getFieldWidth(item)\">\n" +
|
|
891
|
-
" <div class=\"lf-column-input\" id=\"th_Value\">\n" +
|
|
892
|
-
" {{lfData.templateOptions.columnHeaders[1].name}}\n" +
|
|
893
|
-
" </div>\n" +
|
|
894
|
-
" <div ng-if=\"!lfData.templateOptions.hideUnits\" class=\"lf-column-unit\" id=\"th_Units\">\n" +
|
|
895
|
-
" {{lfData.templateOptions.columnHeaders[2].name}}\n" +
|
|
896
|
-
" </div>\n" +
|
|
897
|
-
" </div>\n" +
|
|
898
|
-
" </div>\n" +
|
|
899
|
-
" <!-- data row, for each item -->\n" +
|
|
900
|
-
" <!-- check each top level item's questionLayout -->\n" +
|
|
901
|
-
" <div ng-if=\"lfData.items\" class=\"lf-form-table\">\n" +
|
|
902
|
-
" <div ng-repeat=\"item in lfData.items\" ng-if=\"targetShown(item) && !item._isHiddenFromView\"\n" +
|
|
903
|
-
" class=\"data-row has-ng-animate {{getRowClass(item)}} {{getSkipLogicClass(item)}}\n" +
|
|
904
|
-
" {{getActiveRowClass(item)}} {{getItemViewModeClass(item)}}\">\n" +
|
|
905
|
-
" <!--header item-->\n" +
|
|
906
|
-
" <div ng-if=\"item.header\" ng-switch on=\"item.displayControl.questionLayout\">\n" +
|
|
907
|
-
" <div ng-switch-when=\"horizontal\">\n" +
|
|
908
|
-
" <lf-section-horizontal></lf-section-horizontal>\n" +
|
|
909
|
-
" </div>\n" +
|
|
910
|
-
" <div ng-switch-when=\"matrix\">\n" +
|
|
911
|
-
" <lf-section-matrix></lf-section-matrix>\n" +
|
|
912
|
-
" </div>\n" +
|
|
913
|
-
" <div ng-switch-when=\"vertical\">\n" +
|
|
914
|
-
" <lf-table-item></lf-table-item>\n" +
|
|
915
|
-
" </div>\n" +
|
|
916
|
-
" <div ng-switch-default>\n" +
|
|
917
|
-
" <lf-table-item></lf-table-item>\n" +
|
|
918
|
-
" </div>\n" +
|
|
919
|
-
" </div>\n" +
|
|
920
|
-
" <!--non-header data item-->\n" +
|
|
921
|
-
" <div ng-if=\"!item.header\">\n" +
|
|
922
|
-
" <lf-table-item></lf-table-item>\n" +
|
|
923
|
-
" </div>\n" +
|
|
924
|
-
" </div>\n" +
|
|
925
|
-
" </div>\n" +
|
|
926
|
-
" </div>\n" +
|
|
927
|
-
" </div>\n" +
|
|
928
|
-
" </div>\n" +
|
|
929
|
-
"</form>\n"
|
|
930
|
-
);
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
$templateCache.put('uib-popover-templates/uib-popover-template.html',
|
|
934
|
-
"<div class=\"popover\"\n" +
|
|
935
|
-
" tooltip-animation-class=\"fade\"\n" +
|
|
936
|
-
" uib-tooltip-classes\n" +
|
|
937
|
-
" ng-class=\"{ in: isOpen() }\">\n" +
|
|
938
|
-
" <div class=\"arrow\"></div>\n" +
|
|
939
|
-
"\n" +
|
|
940
|
-
" <div aria-live=polite class=\"popover-inner\">\n" +
|
|
941
|
-
" <h3 class=\"popover-title\" ng-bind=\"uibTitle\" ng-if=\"uibTitle\"></h3>\n" +
|
|
942
|
-
" <div class=\"popover-content\"\n" +
|
|
943
|
-
" uib-tooltip-template-transclude=\"contentExp()\"\n" +
|
|
944
|
-
" tooltip-template-transclude-scope=\"originScope()\"></div>\n" +
|
|
945
|
-
" </div>\n" +
|
|
946
|
-
"</div>\n"
|
|
947
|
-
);
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
$templateCache.put('uib-popover-templates/uib-popover.html',
|
|
951
|
-
"<div class=\"popover\"\n" +
|
|
952
|
-
" tooltip-animation-class=\"fade\"\n" +
|
|
953
|
-
" uib-tooltip-classes\n" +
|
|
954
|
-
" ng-class=\"{ in: isOpen() }\">\n" +
|
|
955
|
-
" <div class=\"arrow\"></div>\n" +
|
|
956
|
-
"\n" +
|
|
957
|
-
" <div aria-live=polite class=\"popover-inner\">\n" +
|
|
958
|
-
" <h3 class=\"popover-title\" ng-bind=\"uibTitle\" ng-if=\"uibTitle\"></h3>\n" +
|
|
959
|
-
" <div class=\"popover-content\" ng-bind=\"content\" ng-if=\"content\"></div>\n" +
|
|
960
|
-
" </div>\n" +
|
|
961
|
-
"</div>\n"
|
|
962
|
-
);
|
|
963
|
-
|
|
964
|
-
}]);
|