@tsed/tailwind-formio 1.11.1 → 1.13.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.
Files changed (140) hide show
  1. package/dist/tailwind.js +1 -1
  2. package/gulpfile.js +24 -22
  3. package/lib/index.d.ts +19 -0
  4. package/lib/templates/index.d.ts +19 -0
  5. package/lib/templates/tailwind/address/form.ejs.js +3 -1
  6. package/lib/templates/tailwind/address/html.ejs.js +16 -0
  7. package/lib/templates/tailwind/alert/form.ejs.js +27 -0
  8. package/lib/templates/tailwind/alert/index.d.ts +6 -0
  9. package/lib/templates/tailwind/alert/index.js +4 -0
  10. package/lib/templates/tailwind/builderComponent/form.ejs.js +6 -6
  11. package/lib/templates/tailwind/builderEditForm/form.ejs.js +20 -20
  12. package/lib/templates/tailwind/builderSidebarGroup/form.ejs.js +3 -3
  13. package/lib/templates/tailwind/button/form.ejs.js +12 -2
  14. package/lib/templates/tailwind/checkbox/form.ejs.js +12 -2
  15. package/lib/templates/tailwind/columns/form.ejs.js +1 -1
  16. package/lib/templates/tailwind/componentModal/form.ejs.js +31 -3
  17. package/lib/templates/tailwind/datagrid/form.ejs.js +29 -13
  18. package/lib/templates/tailwind/datagrid/html.ejs.js +3 -3
  19. package/lib/templates/tailwind/day/form.ejs.js +21 -1
  20. package/lib/templates/tailwind/dialog/form.ejs.js +1 -1
  21. package/lib/templates/tailwind/editgrid/form.ejs.js +4 -4
  22. package/lib/templates/tailwind/editgrid/html.ejs.js +2 -2
  23. package/lib/templates/tailwind/editgridTable/form.ejs.js +69 -0
  24. package/lib/templates/tailwind/editgridTable/html.ejs.js +59 -0
  25. package/lib/templates/tailwind/editgridTable/index.d.ts +5 -0
  26. package/lib/templates/tailwind/editgridTable/index.js +5 -0
  27. package/lib/templates/tailwind/errorsList/form.ejs.js +25 -0
  28. package/lib/templates/tailwind/errorsList/index.d.ts +4 -0
  29. package/lib/templates/tailwind/errorsList/index.js +4 -0
  30. package/lib/templates/tailwind/field/align.ejs.js +1 -1
  31. package/lib/templates/tailwind/field/form.ejs.js +6 -2
  32. package/lib/templates/tailwind/fieldset/form.ejs.js +6 -6
  33. package/lib/templates/tailwind/file/form.ejs.js +37 -13
  34. package/lib/templates/tailwind/iconClass.d.ts +1 -0
  35. package/lib/templates/tailwind/iconClass.js +2 -1
  36. package/lib/templates/tailwind/index.d.ts +19 -0
  37. package/lib/templates/tailwind/index.js +14 -4
  38. package/lib/templates/tailwind/input/form.ejs.js +62 -32
  39. package/lib/templates/tailwind/label/form.ejs.js +14 -4
  40. package/lib/templates/tailwind/message/form.ejs.js +6 -2
  41. package/lib/templates/tailwind/modalPreview/form.ejs.js +16 -4
  42. package/lib/templates/tailwind/multiValueTable/form.ejs.js +1 -1
  43. package/lib/templates/tailwind/panel/form.ejs.js +18 -4
  44. package/lib/templates/tailwind/pdfBuilder/form.ejs.js +1 -1
  45. package/lib/templates/tailwind/radio/form.ejs.js +32 -6
  46. package/lib/templates/tailwind/radio/html.ejs.js +2 -2
  47. package/lib/templates/tailwind/resourceAdd/form.ejs.js +1 -1
  48. package/lib/templates/tailwind/select/form.ejs.js +14 -2
  49. package/lib/templates/tailwind/selectOption/form.ejs.js +3 -3
  50. package/lib/templates/tailwind/selectOption/html.ejs.js +1 -1
  51. package/lib/templates/tailwind/signature/form.ejs.js +3 -3
  52. package/lib/templates/tailwind/survey/form.ejs.js +26 -6
  53. package/lib/templates/tailwind/tab/flat.ejs.js +1 -1
  54. package/lib/templates/tailwind/tab/form.ejs.js +14 -8
  55. package/lib/templates/tailwind/table/form.ejs.js +3 -1
  56. package/lib/templates/tailwind/tableComponents/form.ejs.js +15 -0
  57. package/lib/templates/tailwind/tableComponents/index.d.ts +4 -0
  58. package/lib/templates/tailwind/tableComponents/index.js +4 -0
  59. package/lib/templates/tailwind/webform/builder.ejs.js +1 -1
  60. package/lib/templates/tailwind/wizard/builder.ejs.js +1 -1
  61. package/lib/templates/tailwind/wizard/form.ejs.js +33 -6
  62. package/lib/templates/tailwind/wizardHeader/form.ejs.js +21 -7
  63. package/lib/templates/tailwind/wizardHeaderClassic/form.ejs.js +29 -0
  64. package/lib/templates/tailwind/wizardHeaderClassic/index.d.ts +4 -0
  65. package/lib/templates/tailwind/wizardHeaderClassic/index.js +4 -0
  66. package/lib/templates/tailwind/wizardHeaderVertical/form.ejs.js +31 -0
  67. package/lib/templates/tailwind/wizardHeaderVertical/index.d.ts +4 -0
  68. package/lib/templates/tailwind/wizardHeaderVertical/index.js +4 -0
  69. package/lib/templates/tailwind/wizardNav/form.ejs.js +44 -20
  70. package/package.json +2 -5
  71. package/readme.md +96 -115
  72. package/src/templates/stories/builder.stories.js +8 -23
  73. package/src/templates/stories/pagination.stories.js +1 -6
  74. package/src/templates/stories/wizard.stories.js +8 -23
  75. package/src/templates/tailwind/address/form.ejs +1 -0
  76. package/src/templates/tailwind/address/html.ejs +1 -0
  77. package/src/templates/tailwind/alert/form.ejs +10 -0
  78. package/src/templates/tailwind/alert/index.js +3 -0
  79. package/src/templates/tailwind/builderComponent/form.ejs +42 -6
  80. package/src/templates/tailwind/builderEditForm/form.ejs +53 -49
  81. package/src/templates/tailwind/builderSidebarGroup/form.ejs +3 -3
  82. package/src/templates/tailwind/button/form.ejs +6 -3
  83. package/src/templates/tailwind/checkbox/form.ejs +5 -1
  84. package/src/templates/tailwind/columns/form.ejs +1 -1
  85. package/src/templates/tailwind/componentModal/form.ejs +12 -3
  86. package/src/templates/tailwind/datagrid/form.ejs +13 -12
  87. package/src/templates/tailwind/datagrid/html.ejs +2 -2
  88. package/src/templates/tailwind/day/form.ejs +10 -1
  89. package/src/templates/tailwind/dialog/form.ejs +2 -2
  90. package/src/templates/tailwind/editgrid/form.ejs +3 -3
  91. package/src/templates/tailwind/editgrid/html.ejs +2 -2
  92. package/src/templates/tailwind/editgridTable/form.ejs +55 -0
  93. package/src/templates/tailwind/editgridTable/html.ejs +49 -0
  94. package/src/templates/tailwind/editgridTable/index.ts +4 -0
  95. package/src/templates/tailwind/errorsList/form.ejs +19 -0
  96. package/src/templates/tailwind/errorsList/index.ts +3 -0
  97. package/src/templates/tailwind/field/align.ejs +1 -1
  98. package/src/templates/tailwind/field/form.ejs +1 -1
  99. package/src/templates/tailwind/fieldset/form.ejs +5 -4
  100. package/src/templates/tailwind/file/form.ejs +35 -11
  101. package/src/templates/tailwind/iconClass.ts +3 -6
  102. package/src/templates/tailwind/index.ts +14 -4
  103. package/src/templates/tailwind/input/form.ejs +47 -34
  104. package/src/templates/tailwind/label/form.ejs +7 -2
  105. package/src/templates/tailwind/message/form.ejs +1 -1
  106. package/src/templates/tailwind/modalPreview/form.ejs +13 -2
  107. package/src/templates/tailwind/multiValueTable/form.ejs +1 -1
  108. package/src/templates/tailwind/panel/form.ejs +12 -4
  109. package/src/templates/tailwind/pdfBuilder/form.ejs +0 -1
  110. package/src/templates/tailwind/radio/form.ejs +16 -6
  111. package/src/templates/tailwind/radio/html.ejs +2 -2
  112. package/src/templates/tailwind/resourceAdd/form.ejs +1 -1
  113. package/src/templates/tailwind/select/form.ejs +5 -0
  114. package/src/templates/tailwind/selectOption/form.ejs +2 -2
  115. package/src/templates/tailwind/selectOption/html.ejs +1 -1
  116. package/src/templates/tailwind/signature/form.ejs +3 -3
  117. package/src/templates/tailwind/survey/form.ejs +13 -3
  118. package/src/templates/tailwind/tab/flat.ejs +1 -1
  119. package/src/templates/tailwind/tab/form.ejs +11 -5
  120. package/src/templates/tailwind/table/form.ejs +1 -0
  121. package/src/templates/tailwind/tableComponents/form.ejs +5 -0
  122. package/src/templates/tailwind/tableComponents/index.ts +3 -0
  123. package/src/templates/tailwind/webform/builder.ejs +1 -1
  124. package/src/templates/tailwind/wizard/builder.ejs +1 -1
  125. package/src/templates/tailwind/wizard/form.ejs +28 -7
  126. package/src/templates/tailwind/wizardHeader/form.ejs +9 -4
  127. package/src/templates/tailwind/wizardHeaderClassic/form.ejs +16 -0
  128. package/src/templates/tailwind/wizardHeaderClassic/index.ts +3 -0
  129. package/src/templates/tailwind/wizardHeaderVertical/form.ejs +14 -0
  130. package/src/templates/tailwind/wizardHeaderVertical/index.ts +3 -0
  131. package/src/templates/tailwind/wizardNav/form.ejs +27 -21
  132. package/styles/alert.css +9 -0
  133. package/styles/choices.css +3 -0
  134. package/styles/fieldset.css +5 -0
  135. package/styles/form.css +3 -0
  136. package/styles/index.css +1 -0
  137. package/styles/tables.css +9 -1
  138. package/tsconfig.json +3 -14
  139. package/.eslintrc +0 -40
  140. package/.prettierrc +0 -10
@@ -3,8 +3,12 @@ Object.defineProperty(exports, "__esModule", {
3
3
  });
4
4
  exports.default=function(ctx) {
5
5
  var __t, __p = '';
6
- __p += '<div class="form-text ' +
7
- ((__t = (ctx.level)) == null ? '' : __t) +
6
+ __p += '<div id="e-' +
7
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
8
+ '-' +
9
+ ((__t = (ctx.key)) == null ? '' : __t) +
10
+ '" class="form-text ' +
11
+ ((__t = (ctx.level || 'error')) == null ? '' : __t) +
8
12
  '">' +
9
13
  ((__t = (ctx.message)) == null ? '' : __t) +
10
14
  '</div>\n';
@@ -3,10 +3,22 @@ Object.defineProperty(exports, "__esModule", {
3
3
  });
4
4
  exports.default=function(ctx) {
5
5
  var __t, __p = '';
6
- __p += '<label class="control-label">' +
7
- ((__t = ( ctx.t(ctx.component.label) )) == null ? '' : __t) +
8
- '</label><br>\n<button lang=\'en\' class=\'btn btn-light btn-md open-modal-button\' ref=\'openModal\'>\n ' +
6
+ __p += '<label id="l-' +
7
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
8
+ '" class="control-label ' +
9
+ ((__t = ( ctx.label.className )) == null ? '' : __t) +
10
+ '">\n ' +
11
+ ((__t = ( ctx.t(ctx.component.label, { _userInput: true }) )) == null ? '' : __t) +
12
+ '<span ref="modalLabelValue" class="sr-only">. ' +
13
+ ((__t = ( ctx.component.type === 'signature' ? ctx.self.getValueAsString(ctx.previewText) : ctx.previewText )) == null ? '' : __t) +
14
+ '</span>\n</label><br>\n<span class="sr-only" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n lang="en"\n class="btn btn-light btn-md open-modal-button form-control ' +
15
+ ((__t = (ctx.openModalBtnClasses || '')) == null ? '' : __t) +
16
+ '"\n ref="openModal"\n aria-labelledby="l-' +
17
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
18
+ '"\n>\n ' +
9
19
  ((__t = ( ctx.previewText )) == null ? '' : __t) +
10
- '\n</button>\n';
20
+ '\n</button>\n<div class="formio-errors invalid-feedback">\n ' +
21
+ ((__t = ( ctx.messages )) == null ? '' : __t) +
22
+ '\n</div>\n';
11
23
  return __p
12
24
  }
@@ -11,7 +11,7 @@ __p += '<table class="table table-bordered">\n <tbody>\n ' +
11
11
  __p += '\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="' +
12
12
  ((__t = (ctx.iconClass('plus'))) == null ? '' : __t) +
13
13
  '"></i> ' +
14
- ((__t = (ctx.t(ctx.addAnother))) == null ? '' : __t) +
14
+ ((__t = (ctx.t(ctx.addAnother, { _userInput: true }))) == null ? '' : __t) +
15
15
  '</button>\n </td>\n </tr>\n ';
16
16
  } ;
17
17
  __p += '\n </tbody>\n</table>\n';
@@ -8,7 +8,17 @@ __p += '<div class="mb-2 card border">\n ';
8
8
  if (!ctx.component.hideLabel || ctx.builder || ctx.component.collapsible || ctx.component.tooltip) { ;
9
9
  __p += '\n <div class="card-header ' +
10
10
  ((__t = (ctx.transform('class', 'bg-' + ctx.component.theme))) == null ? '' : __t) +
11
- '" ref="header">\n <span class="mb-0 card-title ';
11
+ '"\n ';
12
+ if (ctx.component.collapsible) { ;
13
+ __p += '\n tabindex="0"\n ';
14
+ } ;
15
+ __p += '\n role="button"\n aria-expanded="' +
16
+ ((__t = (ctx.component.collapsible ? !ctx.collapsed : true)) == null ? '' : __t) +
17
+ '"\n aria-controls="' +
18
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
19
+ '-' +
20
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
21
+ '"\n ref="header"\n >\n <span class="mb-0 card-title ';
12
22
  if (ctx.component.theme && ctx.component.theme !== 'default') { ;
13
23
  __p += 'text-light';
14
24
  } ;
@@ -21,14 +31,14 @@ __p += '\n <i class="formio-collapse-icon ' +
21
31
  __p += '\n ';
22
32
  if (!ctx.component.hideLabel || ctx.builder) { ;
23
33
  __p += '\n ' +
24
- ((__t = (ctx.t(ctx.component.title))) == null ? '' : __t) +
34
+ ((__t = (ctx.t(ctx.component.title, { _userInput: true }))) == null ? '' : __t) +
25
35
  '\n ';
26
36
  } ;
27
37
  __p += '\n ';
28
38
  if (ctx.component.tooltip) { ;
29
- __p += '\n <i ref="tooltip" class="' +
39
+ __p += '\n <i ref="tooltip" tabindex="0" class="' +
30
40
  ((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) +
31
- '" data-tooltip="' +
41
+ ' text-muted" data-tooltip="' +
32
42
  ((__t = (ctx.component.tooltip)) == null ? '' : __t) +
33
43
  '"></i>\n ';
34
44
  } ;
@@ -38,6 +48,10 @@ __p += '\n ';
38
48
  if (!ctx.collapsed || ctx.builder) { ;
39
49
  __p += '\n <div class="card-body" ref="' +
40
50
  ((__t = (ctx.nestedKey)) == null ? '' : __t) +
51
+ '" id="' +
52
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
53
+ '-' +
54
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
41
55
  '">\n ' +
42
56
  ((__t = (ctx.children)) == null ? '' : __t) +
43
57
  '\n </div>\n ';
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", {
3
3
  });
4
4
  exports.default=function(ctx) {
5
5
  var __t, __p = '';
6
- __p += '<div class="formio builder grid grid-cols-12 gap-4 formbuilder">\n <div class="loader-wrapper" ref="sidebar-loader"><div class="loader text-center"></div></div>\n <div class="col-span-12 xs:col-span-4 sm:col-span-3 md:col-span-2 formcomponents">\n ' +
6
+ __p += '<div class="formio builder grid grid-cols-12 gap-4 formbuilder">\n <div class="col-span-12 xs:col-span-4 sm:col-span-3 md:col-span-2 formcomponents">\n ' +
7
7
  ((__t = (ctx.sidebar)) == null ? '' : __t) +
8
8
  '\n </div>\n <div class="col-span-12 xs:col-span-8 sm:col-span-9 md:col-span-10 formarea" ref="form">\n <div class="formio-drop-zone" ref="iframeDropzone"></div>\n ' +
9
9
  ((__t = (ctx.form)) == null ? '' : __t) +
@@ -4,22 +4,44 @@ Object.defineProperty(exports, "__esModule", {
4
4
  exports.default=function(ctx) {
5
5
  var __t, __p = '', __j = Array.prototype.join;
6
6
  function print() { __p += __j.call(arguments, '') }
7
- __p += '<div class="form-radio radio">\n ';
7
+ __p += '<div\n class="form-radio radio"\n ref="radioGroup"\n role="' +
8
+ ((__t = (ctx.component.type === 'selectboxes' ? 'group' : 'radiogroup')) == null ? '' : __t) +
9
+ '"\n aria-required="' +
10
+ ((__t = (ctx.input.component.validate.required)) == null ? '' : __t) +
11
+ '"\n aria-labelledby="l-' +
12
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
13
+ '-' +
14
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
15
+ '"\n ';
16
+ if (ctx.component.description) { ;
17
+ __p += '\n aria-describedby="d-' +
18
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
19
+ '-' +
20
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
21
+ '"\n ';
22
+ } ;
23
+ __p += '\n>\n ';
8
24
  ctx.values.forEach(function(item) { ;
9
- __p += '\n <div class="form-check' +
25
+ __p += '\n <div class="' +
26
+ ((__t = (ctx.input.attr.type)) == null ? '' : __t) +
27
+ ' ' +
28
+ ((__t = ( ctx.component.optionsLabelPosition && ctx.component.optionsLabelPosition !== 'right' ? 'pl-0' : '')) == null ? '' : __t) +
29
+ ' form-check' +
10
30
  ((__t = (ctx.inline ? '-inline' : '')) == null ? '' : __t) +
11
31
  '" ref="wrapper">\n <label class="form-check-label label-position-' +
12
32
  ((__t = ( ctx.component.optionsLabelPosition )) == null ? '' : __t) +
13
33
  '" for="' +
34
+ ((__t = (ctx.instance.root && ctx.instance.root.id)) == null ? '' : __t) +
35
+ '-' +
14
36
  ((__t = (ctx.id)) == null ? '' : __t) +
15
- '' +
37
+ '-' +
16
38
  ((__t = (ctx.row)) == null ? '' : __t) +
17
39
  '-' +
18
40
  ((__t = (item.value)) == null ? '' : __t) +
19
41
  '">\n ';
20
42
  if (ctx.component.optionsLabelPosition === 'left' || ctx.component.optionsLabelPosition === 'top') { ;
21
43
  __p += '\n <span>' +
22
- ((__t = (ctx.t(item.label))) == null ? '' : __t) +
44
+ ((__t = (ctx.t(item.label, { _userInput: true }))) == null ? '' : __t) +
23
45
  '</span>\n ';
24
46
  } ;
25
47
  __p += '\n <' +
@@ -43,15 +65,19 @@ __p += '\n ';
43
65
  __p += '\n disabled=true\n ';
44
66
  } ;
45
67
  __p += '\n id="' +
68
+ ((__t = (ctx.instance.root && ctx.instance.root.id)) == null ? '' : __t) +
69
+ '-' +
46
70
  ((__t = (ctx.id)) == null ? '' : __t) +
47
- '' +
71
+ '-' +
48
72
  ((__t = (ctx.row)) == null ? '' : __t) +
49
73
  '-' +
50
74
  ((__t = (item.value)) == null ? '' : __t) +
75
+ '"\n role="' +
76
+ ((__t = (ctx.component.type === 'selectboxes' ? 'checkbox' : 'radio')) == null ? '' : __t) +
51
77
  '"\n >\n ';
52
78
  if (!ctx.component.optionsLabelPosition || ctx.component.optionsLabelPosition === 'right' || ctx.component.optionsLabelPosition === 'bottom') { ;
53
79
  __p += '\n <span>' +
54
- ((__t = (ctx.t(item.label))) == null ? '' : __t) +
80
+ ((__t = (ctx.t(item.label, { _userInput: true }))) == null ? '' : __t) +
55
81
  '</span>\n ';
56
82
  } ;
57
83
  __p += '\n </label>\n </div>\n ';
@@ -5,9 +5,9 @@ exports.default=function(ctx) {
5
5
  var __t, __p = '', __j = Array.prototype.join;
6
6
  function print() { __p += __j.call(arguments, '') }
7
7
  __p += '<div ref="value">\n ';
8
- var filtered = ctx.values.filter(function(item) {return ctx.value === item.value || (typeof ctx.value === 'object' && ctx.value.hasOwnProperty(item.value) && ctx.value[item.value])}).map(function(item) { return ctx.t(item.label)}).join(', ') ;
8
+ var filtered = ctx.values.filter(function(item) {return ctx.value === item.value || (typeof ctx.value === 'object' && ctx.value.hasOwnProperty(item.value) && ctx.value[item.value])}).map(function(item) { return ctx.t(item.label, { _userInput: true })}).join(', ') ;
9
9
  __p += '\n ' +
10
10
  ((__t = ( filtered )) == null ? '' : __t) +
11
- '\n </div>\n';
11
+ '\n</div>\n';
12
12
  return __p
13
13
  }
@@ -8,7 +8,7 @@ __p += '<table class="table table-bordered">\n <tbody>\n <tr>\n <td>\n
8
8
  '\n </td>\n </tr>\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-resource" ref="addResource">\n <i class="' +
9
9
  ((__t = (ctx.iconClass('plus'))) == null ? '' : __t) +
10
10
  ' mr-1"></i>\n ' +
11
- ((__t = (ctx.t(ctx.component.addResourceLabel || 'Add Resource'))) == null ? '' : __t) +
11
+ ((__t = (ctx.t(ctx.component.addResourceLabel || 'Add Resource', { _userInput: true }))) == null ? '' : __t) +
12
12
  '\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n';
13
13
  return __p
14
14
  }
@@ -24,7 +24,17 @@ __p += '\n id="' +
24
24
  ((__t = (ctx.component.key)) == null ? '' : __t) +
25
25
  '"\n ';
26
26
  } ;
27
- __p += '\n>' +
27
+ __p += '\n ';
28
+ if (ctx.component.description) { ;
29
+ __p += '\n aria-describedby="d-' +
30
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
31
+ '-' +
32
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
33
+ '"\n ';
34
+ } ;
35
+ __p += '\n aria-required="' +
36
+ ((__t = (ctx.input.ref === 'selectContainer' || !ctx.input.ref ? ctx.input.component.validate.required : ctx.component.fields[ctx.input.ref].required)) == null ? '' : __t) +
37
+ '"\n>' +
28
38
  ((__t = (ctx.selectOptions)) == null ? '' : __t) +
29
39
  '</select>\n<input type="text"\n class="formio-select-autocomplete-input"\n ref="autocompleteInput"\n ';
30
40
  if (ctx.input.attr.autocomplete) { ;
@@ -32,6 +42,8 @@ __p += '\n autocomplete="' +
32
42
  ((__t = (ctx.input.attr.autocomplete)) == null ? '' : __t) +
33
43
  '"\n ';
34
44
  } ;
35
- __p += '\n tabindex="-1"\n/>\n';
45
+ __p += '\n tabindex="-1"\n aria-label="' +
46
+ ((__t = (ctx.t('autocomplete'))) == null ? '' : __t) +
47
+ '"\n/>\n';
36
48
  return __p
37
49
  }
@@ -6,9 +6,9 @@ var __t, __p = '', __j = Array.prototype.join;
6
6
  function print() { __p += __j.call(arguments, '') }
7
7
  __p += '<option ' +
8
8
  ((__t = ( ctx.selected ? 'selected="selected"' : '' )) == null ? '' : __t) +
9
- '\n value="' +
9
+ '\n value=\'' +
10
10
  ((__t = (ctx.useId ? ctx.id : ctx.option.value)) == null ? '' : __t) +
11
- '"\n ';
11
+ '\'\n ';
12
12
  for (var attr in ctx.attrs) { ;
13
13
  __p += '\n ' +
14
14
  ((__t = (attr)) == null ? '' : __t) +
@@ -17,7 +17,7 @@ __p += '\n ' +
17
17
  '"\n ';
18
18
  } ;
19
19
  __p += '\n >\n ' +
20
- ((__t = (ctx.t(ctx.option.label))) == null ? '' : __t) +
20
+ ((__t = (ctx.t(ctx.option.label, { _userInput: true }))) == null ? '' : __t) +
21
21
  '\n</option>\n';
22
22
  return __p
23
23
  }
@@ -7,7 +7,7 @@ function print() { __p += __j.call(arguments, '') }
7
7
 
8
8
  if (ctx.selected) { ;
9
9
  __p +=
10
- ((__t = (ctx.t(ctx.option.label))) == null ? '' : __t);
10
+ ((__t = (ctx.t(ctx.option.label, { _userInput: true }))) == null ? '' : __t);
11
11
  } ;
12
12
  __p += '\n';
13
13
  return __p
@@ -14,7 +14,7 @@ __p +=
14
14
  ((__t = (ctx.component.tabindex || 0)) == null ? '' : __t) +
15
15
  '"\n ref="padBody"\n>\n <button class="btn btn-sm btn-light signature-pad-refresh" ref="refresh">\n <i class="' +
16
16
  ((__t = (ctx.iconClass('refresh'))) == null ? '' : __t) +
17
- '"></i>\n </button>\n <canvas class="signature-pad-canvas" height="' +
17
+ '"></i>\n </button>\n <canvas class="signature-pad-canvas" style="display: none;" height="' +
18
18
  ((__t = (ctx.component.height)) == null ? '' : __t) +
19
19
  '" ref="canvas"></canvas>\n ';
20
20
  if (ctx.required) { ;
@@ -22,10 +22,10 @@ __p += '\n <span class="form-control-feedback field-required-inline text-danger
22
22
  ((__t = (ctx.iconClass('asterisk'))) == null ? '' : __t) +
23
23
  '"></i>\n </span>\n ';
24
24
  } ;
25
- __p += '\n <img style="width: 100%;display: none;" ref="signatureImage">\n</div>\n';
25
+ __p += '\n <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n';
26
26
  if (ctx.component.footer) { ;
27
27
  __p += '\n <div class="signature-pad-footer">\n ' +
28
- ((__t = (ctx.t(ctx.component.footer))) == null ? '' : __t) +
28
+ ((__t = (ctx.t(ctx.component.footer, { _userInput: true }))) == null ? '' : __t) +
29
29
  '\n </div>\n';
30
30
  } ;
31
31
  __p += '\n';
@@ -4,17 +4,37 @@ Object.defineProperty(exports, "__esModule", {
4
4
  exports.default=function(ctx) {
5
5
  var __t, __p = '', __j = Array.prototype.join;
6
6
  function print() { __p += __j.call(arguments, '') }
7
- __p += '<table class="table table-striped table-bordered">\n <thead>\n <tr>\n <th></th>\n ';
7
+ __p += '<table class="table table-striped table-bordered" aria-labelledby="l-' +
8
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
9
+ '-' +
10
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
11
+ '">\n <thead>\n <tr>\n <th></th>\n ';
8
12
  ctx.component.values.forEach(function(value) { ;
9
- __p += '\n <th style="text-align: center;">' +
10
- ((__t = (ctx.t(value.label))) == null ? '' : __t) +
11
- '</th>\n ';
13
+ __p += '\n <th style="text-align: center;">\n ' +
14
+ ((__t = (ctx.t(value.label, { _userInput: true }))) == null ? '' : __t) +
15
+ '\n ';
16
+ if (value.tooltip) { ;
17
+ __p += '\n <i ref="tooltip" class="' +
18
+ ((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) +
19
+ ' text-muted" data-tooltip="' +
20
+ ((__t = (value.tooltip)) == null ? '' : __t) +
21
+ '"></i>\n ';
22
+ } ;
23
+ __p += '\n </th>\n ';
12
24
  }) ;
13
25
  __p += '\n </tr>\n </thead>\n <tbody>\n ';
14
26
  ctx.component.questions.forEach(function(question) { ;
15
- __p += '\n <tr>\n <td>' +
27
+ __p += '\n <tr>\n <td>\n ' +
16
28
  ((__t = (ctx.t(question.label))) == null ? '' : __t) +
17
- '</td>\n ';
29
+ '\n ';
30
+ if (question.tooltip) { ;
31
+ __p += '\n <i ref="tooltip" class="' +
32
+ ((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) +
33
+ ' text-muted" data-tooltip="' +
34
+ ((__t = (question.tooltip)) == null ? '' : __t) +
35
+ '"></i>\n ';
36
+ } ;
37
+ __p += '\n </td>\n ';
18
38
  ctx.component.values.forEach(function(value) { ;
19
39
  __p += '\n <td style="text-align: center;">\n <input type="radio" name="' +
20
40
  ((__t = ( ctx.self.getInputName(question) )) == null ? '' : __t) +
@@ -7,7 +7,7 @@ function print() { __p += __j.call(arguments, '') }
7
7
 
8
8
  ctx.component.components.forEach(function(tab, index) { ;
9
9
  __p += '\n <div class="mb-2 card border">\n <div class="card-header bg-default">\n <h4 class="mb-0 card-title">' +
10
- ((__t = ( ctx.t(tab.label) )) == null ? '' : __t) +
10
+ ((__t = ( ctx.t(tab.label, { _userInput: true }) )) == null ? '' : __t) +
11
11
  '</h4>\n </div>\n <div\n class="card-body"\n ref="' +
12
12
  ((__t = (ctx.tabKey)) == null ? '' : __t) +
13
13
  '"\n >\n ' +
@@ -4,23 +4,29 @@ Object.defineProperty(exports, "__esModule", {
4
4
  exports.default=function(ctx) {
5
5
  var __t, __p = '', __j = Array.prototype.join;
6
6
  function print() { __p += __j.call(arguments, '') }
7
- __p += '<div class="card card-tabs">\n <div class="card-header card-header-tabs">\n <ul class="nav nav-tabs">\n ';
7
+ __p += '<div class="card card-tabs { ctx.component.verticalLayout ? \' card-vertical\' : \'\'}}">\n <div class="card-header card-header-tabs">\n <ul class="nav nav-tabs ' +
8
+ ((__t = ( ctx.component.verticalLayout ? ' nav-tabs-vertical' : '')) == null ? '' : __t) +
9
+ '" role="tablist">\n ';
8
10
  ctx.component.components.forEach(function(tab, index) { ;
9
11
  __p += '\n <li class="nav-item ' +
10
12
  ((__t = ( ctx.currentTab === index ? ' active' : '')) == null ? '' : __t) +
11
- '" role="presentation" ref="' +
13
+ '" role="tab" ref="' +
12
14
  ((__t = (ctx.tabLikey)) == null ? '' : __t) +
13
- '">\n <a class="nav-link" href="#' +
15
+ '">\n <a\n class="nav-link' +
16
+ ((__t = ( ctx.currentTab === index ? ' active' : '')) == null ? '' : __t) +
17
+ '' +
18
+ ((__t = ( ctx.component.verticalLayout ? ' nav-link-vertical' : '')) == null ? '' : __t) +
19
+ '"\n href="#' +
14
20
  ((__t = (tab.key)) == null ? '' : __t) +
15
- '" ref="' +
21
+ '"\n ref="' +
16
22
  ((__t = (ctx.tabLinkKey)) == null ? '' : __t) +
17
- '">' +
18
- ((__t = (ctx.t(tab.label))) == null ? '' : __t) +
19
- '</a>\n <div class="nav-border"></div>\n </li>\n ';
23
+ '"\n >\n ' +
24
+ ((__t = (ctx.t(tab.label, { _userInput: true }))) == null ? '' : __t) +
25
+ '\n </a>\n <div class="nav-border"></div>\n </li>\n ';
20
26
  }) ;
21
27
  __p += '\n </ul>\n </div>\n ';
22
28
  ctx.component.components.forEach(function(tab, index) { ;
23
- __p += '\n <div\n role="tabpanel"\n class="card-body card-body-tabs tab-pane' +
29
+ __p += '\n <div\n role="tabpanel"\n class="card-body tab-pane' +
24
30
  ((__t = ( ctx.currentTab === index ? ' active' : '')) == null ? '' : __t) +
25
31
  '"\n style="display: ' +
26
32
  ((__t = (ctx.currentTab === index ? 'block' : 'none')) == null ? '' : __t) +
@@ -12,7 +12,9 @@ __p += '<table class="table\n ' +
12
12
  ((__t = ( ctx.component.hover ? 'table-hover' : '')) == null ? '' : __t) +
13
13
  '\n ' +
14
14
  ((__t = ( ctx.component.condensed ? 'table-sm' : '')) == null ? '' : __t) +
15
- '\n ">\n ';
15
+ '\n ">\n <caption class="sr-only">' +
16
+ ((__t = (ctx.t(ctx.component.label))) == null ? '' : __t) +
17
+ '</caption>\n ';
16
18
  if (ctx.component.header && ctx.component.header.length > 0) { ;
17
19
  __p += '\n <thead>\n <tr>\n ';
18
20
  ctx.component.header.forEach(function(header) { ;
@@ -0,0 +1,15 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.default=function(ctx) {
5
+ var __t, __p = '', __j = Array.prototype.join;
6
+ function print() { __p += __j.call(arguments, '') }
7
+
8
+ ctx.children.forEach(function(component) { ;
9
+ __p += '\n <td class="editgrid-table-column">\n ' +
10
+ ((__t = ( component )) == null ? '' : __t) +
11
+ '\n </td>\n';
12
+ }) ;
13
+ __p += '\n';
14
+ return __p
15
+ }
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ form: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var form_ejs_1 = require("./form.ejs");
4
+ exports.default = { form: form_ejs_1.default };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  exports.default=function(ctx) {
5
5
  var __t, __p = '';
6
6
  __p += '<div class="text-muted text-center p-2">' +
7
- ((__t = ( ctx.t(ctx.component.title) )) == null ? '' : __t) +
7
+ ((__t = ( ctx.t(ctx.component.title, { _userInput: true }) )) == null ? '' : __t) +
8
8
  '</div>\n';
9
9
  return __p
10
10
  }
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  exports.default=function(ctx) {
5
5
  var __t, __p = '';
6
6
  __p += '<div class="text-muted text-center p-2">' +
7
- ((__t = ( ctx.t(ctx.component.title) )) == null ? '' : __t) +
7
+ ((__t = ( ctx.t(ctx.component.title, { _userInput: true }) )) == null ? '' : __t) +
8
8
  '</div>\n';
9
9
  return __p
10
10
  }
@@ -2,17 +2,44 @@ Object.defineProperty(exports, "__esModule", {
2
2
  value: true
3
3
  });
4
4
  exports.default=function(ctx) {
5
- var __t, __p = '';
5
+ var __t, __p = '', __j = Array.prototype.join;
6
+ function print() { __p += __j.call(arguments, '') }
6
7
  __p += '<div class="' +
7
8
  ((__t = (ctx.className)) == null ? '' : __t) +
8
- '">\n <div style="position: relative;">\n ' +
9
+ '">\n <div style="position: relative;">\n ';
10
+ if (ctx.wizardHeaderType === 'wizardHeaderVertical') { ;
11
+ __p += '\n <div class="row">\n ';
12
+ if (ctx.wizardHeaderLocation !== 'right') { ;
13
+ __p += '\n <div class="col-sm-2">\n ' +
9
14
  ((__t = ( ctx.wizardHeader )) == null ? '' : __t) +
10
- '\n <div class="wizard-page" ref="' +
15
+ '\n </div>\n ';
16
+ } ;
17
+ __p += '\n <div class="wizard-page col-sm-10" ref="' +
11
18
  ((__t = (ctx.wizardKey)) == null ? '' : __t) +
12
- '">\n ' +
19
+ '">\n ' +
13
20
  ((__t = (ctx.components)) == null ? '' : __t) +
14
- '\n </div>\n ' +
21
+ '\n </div>\n ';
22
+ if (ctx.wizardHeaderLocation === 'right') { ;
23
+ __p += '\n <div class="col-sm-2">\n ' +
24
+ ((__t = ( ctx.wizardHeader )) == null ? '' : __t) +
25
+ '\n </div>\n ';
26
+ } ;
27
+ __p += '\n </div>\n <div class="col-sm-offset-2 col-sm-10 ' +
28
+ ((__t = (ctx.wizardHeaderLocation === 'right' ? 'col-sm-offset-0 col-md-offset-0' : '')) == null ? '' : __t) +
29
+ '">\n ' +
30
+ ((__t = ( ctx.wizardNav )) == null ? '' : __t) +
31
+ '\n </div>\n ';
32
+ } else { ;
33
+ __p += '\n ' +
34
+ ((__t = ( ctx.wizardHeader )) == null ? '' : __t) +
35
+ '\n <div class="wizard-page" ref="' +
36
+ ((__t = (ctx.wizardKey)) == null ? '' : __t) +
37
+ '">\n ' +
38
+ ((__t = (ctx.components)) == null ? '' : __t) +
39
+ '\n </div>\n ' +
15
40
  ((__t = ( ctx.wizardNav )) == null ? '' : __t) +
16
- '\n </div>\n</div>';
41
+ '\n ';
42
+ } ;
43
+ __p += '\n </div>\n</div>\n';
17
44
  return __p
18
45
  }
@@ -4,17 +4,31 @@ Object.defineProperty(exports, "__esModule", {
4
4
  exports.default=function(ctx) {
5
5
  var __t, __p = '', __j = Array.prototype.join;
6
6
  function print() { __p += __j.call(arguments, '') }
7
- __p += '<nav aria-label="navigation" id="' +
7
+ __p += '<nav aria-label="Wizard navigation" id="' +
8
8
  ((__t = ( ctx.wizardKey )) == null ? '' : __t) +
9
- '-header">\n <ul class="reset-list pagination">\n ';
9
+ '-header" ref="' +
10
+ ((__t = (ctx.wizardKey)) == null ? '' : __t) +
11
+ '-header">\n <ul class="pagination" role="tablist">\n ';
10
12
  ctx.panels.forEach(function(panel, index) { ;
11
- __p += '\n <li class="page-item ' +
13
+ __p += '\n <li class="page-item' +
12
14
  ((__t = (ctx.currentPage === index ? ' active' : '')) == null ? '' : __t) +
13
- '" style="">\n <span class="page-link" ref="' +
15
+ '" style="cursor: pointer;">\n <button tabindex="0" data-index="' +
16
+ ((__t = (index)) == null ? '' : __t) +
17
+ '" role="tab" class="page-link" ref="' +
18
+ ((__t = (ctx.wizardKey)) == null ? '' : __t) +
19
+ '-link">\n ' +
20
+ ((__t = (ctx.t(panel.title, { _userInput: true }))) == null ? '' : __t) +
21
+ '\n ';
22
+ if (panel.tooltip && ctx.currentPage === index) { ;
23
+ __p += '\n <i ref="' +
14
24
  ((__t = (ctx.wizardKey)) == null ? '' : __t) +
15
- '-link">' +
16
- ((__t = (ctx.t(panel.title))) == null ? '' : __t) +
17
- '</span>\n </li>\n ';
25
+ '-tooltip" class="' +
26
+ ((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) +
27
+ ' text-muted" data-tooltip="' +
28
+ ((__t = (panel.tooltip)) == null ? '' : __t) +
29
+ '"></i>\n ';
30
+ } ;
31
+ __p += '\n </button>\n </li>\n ';
18
32
  }) ;
19
33
  __p += '\n </ul>\n</nav>\n';
20
34
  return __p
@@ -0,0 +1,29 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.default=function(ctx) {
5
+ var __t, __p = '', __j = Array.prototype.join;
6
+ function print() { __p += __j.call(arguments, '') }
7
+ __p += '<nav aria-label="navigation" id="' +
8
+ ((__t = ( ctx.wizardKey )) == null ? '' : __t) +
9
+ '-header">\n <div class="classic-pagination row justify-content-center" style="border-bottom:0;">\n ';
10
+ ctx.panels.forEach(function(panel, index) { ;
11
+ __p += '\n <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n ' +
12
+ ((__t = (ctx.currentPage < index ? ' disabled' : '')) == null ? '' : __t) +
13
+ '\n ' +
14
+ ((__t = (ctx.currentPage === index ? ' active' : '')) == null ? '' : __t) +
15
+ '\n ' +
16
+ ((__t = (ctx.currentPage > index ? ' complete' : '')) == null ? '' : __t) +
17
+ '">\n <div class="text-center classic-pagination-title">' +
18
+ ((__t = (ctx.t(panel.title, { _userInput: true }))) == null ? '' : __t) +
19
+ '</div>\n ';
20
+ if (ctx.panels.length > 1) { ;
21
+ __p += '\n <div class="progress"><div class="progress-bar"></div></div>\n ';
22
+ } ;
23
+ __p += ' \n <span ref="' +
24
+ ((__t = (ctx.wizardKey)) == null ? '' : __t) +
25
+ '-link" class="classic-pagination-dot"></span>\n </div>\n ';
26
+ }) ;
27
+ __p += '\n </div>\n</nav>\n';
28
+ return __p
29
+ }
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ form: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var form_ejs_1 = require("./form.ejs");
4
+ exports.default = { form: form_ejs_1.default };
@@ -0,0 +1,31 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.default=function(ctx) {
5
+ var __t, __p = '', __j = Array.prototype.join;
6
+ function print() { __p += __j.call(arguments, '') }
7
+ __p += '<nav aria-label="navigation" id="' +
8
+ ((__t = ( ctx.wizardKey )) == null ? '' : __t) +
9
+ '-header">\n <ul class="pagination flex-column">\n ';
10
+ ctx.panels.forEach(function(panel, index) { ;
11
+ __p += '\n <li class="col-xs-12 page-item' +
12
+ ((__t = (ctx.currentPage === index ? ' active' : '')) == null ? '' : __t) +
13
+ '" style="cursor: pointer;">\n <span class="page-link" ref="' +
14
+ ((__t = (ctx.wizardKey)) == null ? '' : __t) +
15
+ '-link" style="margin-left: 0px;">\n ' +
16
+ ((__t = (ctx.t(panel.title, { _userInput: true }))) == null ? '' : __t) +
17
+ '\n ';
18
+ if (panel.tooltip && ctx.currentPage === index) { ;
19
+ __p += '\n <i ref="' +
20
+ ((__t = (ctx.wizardKey)) == null ? '' : __t) +
21
+ '-tooltip" class="' +
22
+ ((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) +
23
+ ' text-muted" data-tooltip="' +
24
+ ((__t = (panel.tooltip)) == null ? '' : __t) +
25
+ '"></i>\n ';
26
+ } ;
27
+ __p += '\n </span>\n </li>\n ';
28
+ }) ;
29
+ __p += '\n </ul>\n</nav>\n';
30
+ return __p
31
+ }
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ form: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var form_ejs_1 = require("./form.ejs");
4
+ exports.default = { form: form_ejs_1.default };