@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
package/lib/index.d.ts CHANGED
@@ -16,9 +16,21 @@ declare const _default: {
16
16
  wizardHeader: {
17
17
  form: string;
18
18
  };
19
+ wizardHeaderClassic: {
20
+ form: string;
21
+ };
22
+ wizardHeaderVertical: {
23
+ form: string;
24
+ };
19
25
  wizardNav: {
20
26
  form: string;
21
27
  };
28
+ errorsList: {
29
+ form: string;
30
+ };
31
+ alert: {
32
+ form: string;
33
+ };
22
34
  treeView: {
23
35
  form: string;
24
36
  };
@@ -81,6 +93,9 @@ declare const _default: {
81
93
  components: {
82
94
  form: string;
83
95
  };
96
+ tableComponents: {
97
+ form: string;
98
+ };
84
99
  container: {
85
100
  form: string;
86
101
  };
@@ -98,6 +113,10 @@ declare const _default: {
98
113
  form: string;
99
114
  html: string;
100
115
  };
116
+ editgridTable: {
117
+ form: string;
118
+ html: string;
119
+ };
101
120
  field: {
102
121
  form: string;
103
122
  align: string;
@@ -14,9 +14,21 @@ declare const _default: {
14
14
  wizardHeader: {
15
15
  form: string;
16
16
  };
17
+ wizardHeaderClassic: {
18
+ form: string;
19
+ };
20
+ wizardHeaderVertical: {
21
+ form: string;
22
+ };
17
23
  wizardNav: {
18
24
  form: string;
19
25
  };
26
+ errorsList: {
27
+ form: string;
28
+ };
29
+ alert: {
30
+ form: string;
31
+ };
20
32
  treeView: {
21
33
  form: string;
22
34
  };
@@ -79,6 +91,9 @@ declare const _default: {
79
91
  components: {
80
92
  form: string;
81
93
  };
94
+ tableComponents: {
95
+ form: string;
96
+ };
82
97
  container: {
83
98
  form: string;
84
99
  };
@@ -96,6 +111,10 @@ declare const _default: {
96
111
  form: string;
97
112
  html: string;
98
113
  };
114
+ editgridTable: {
115
+ form: string;
116
+ html: string;
117
+ };
99
118
  field: {
100
119
  form: string;
101
120
  align: string;
@@ -18,7 +18,9 @@ __p += '\n ' +
18
18
  } ;
19
19
  __p += '\n value="' +
20
20
  ((__t = ( ctx.displayValue )) == null ? '' : __t) +
21
- '"\n autocomplete="off"\n >\n ';
21
+ '"\n autocomplete="off"\n aria-label="' +
22
+ ((__t = (ctx.t('autocomplete'))) == null ? '' : __t) +
23
+ '"\n >\n ';
22
24
  if (!ctx.component.disableClearIcon) { ;
23
25
  __p += '\n <i\n class="address-autocomplete-remove-value-icon fa fa-times"\n tabindex="' +
24
26
  ((__t = ( ctx.inputAttributes.tabindex )) == null ? '' : __t) +
@@ -0,0 +1,16 @@
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 += '<div ref="value">';
8
+ if (ctx.displayValue) { ;
9
+ __p +=
10
+ ((__t = (ctx.displayValue)) == null ? '' : __t);
11
+ } else { ;
12
+ __p += '-';
13
+ } ;
14
+ __p += '</div>\n';
15
+ return __p
16
+ }
@@ -0,0 +1,27 @@
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 += '<div\n ';
8
+ for (var attr in ctx.attrs) { ;
9
+ __p += '\n ' +
10
+ ((__t = (attr)) == null ? '' : __t) +
11
+ '="' +
12
+ ((__t = (ctx.attrs[attr])) == null ? '' : __t) +
13
+ '"\n ';
14
+ } ;
15
+ __p += '\n>\n ' +
16
+ ((__t = (ctx.message)) == null ? '' : __t) +
17
+ '\n ';
18
+ if (ctx.options.vpat) { ;
19
+ __p += '\n <span class="sr-only" id="hotkey-i-' +
20
+ ((__t = (ctx.form._id)) == null ? '' : __t) +
21
+ '">' +
22
+ ((__t = (ctx.t('errorListHotkey'))) == null ? '' : __t) +
23
+ '</span>\n ';
24
+ } ;
25
+ __p += '\n</div>\n';
26
+ return __p
27
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference path="../../../../src/ejs.d.ts" />
2
+ declare namespace _default {
3
+ export { form };
4
+ }
5
+ export default _default;
6
+ import form from "*.ejs";
@@ -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 };
@@ -6,17 +6,17 @@ var __t, __p = '', __j = Array.prototype.join;
6
6
  function print() { __p += __j.call(arguments, '') }
7
7
  __p += '<div class="builder-component" ref="dragComponent">\n ';
8
8
  if (!ctx.disableBuilderActions) { ;
9
- __p += '\n <div class="component-btn-group" data-noattach="true">\n <button class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove" ref="removeComponent">\n <i class="' +
9
+ __p += '\n <div class="component-btn-group" data-noattach="true">\n <button\n role="button"\n aria-label="Remove button. Click to remove component from the form"\n tabindex="-1"\n class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove"\n ref="removeComponent"\n >\n <i class="' +
10
10
  ((__t = (ctx.iconClass('remove'))) == null ? '' : __t) +
11
- '"></i>\n </button>\n <button class="btn btn-xxs btn-default component-settings-button component-settings-button-copy" ref="copyComponent">\n <i class="' +
11
+ '"></i>\n </button>\n <button\n role="button"\n aria-label="Copy button. Click to copy component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-copy"\n ref="copyComponent"\n >\n <i class="' +
12
12
  ((__t = (ctx.iconClass('copy'))) == null ? '' : __t) +
13
- '"></i>\n </button>\n <button class="btn btn-xxs btn-default component-settings-button component-settings-button-paste" ref="pasteComponent">\n <i class="' +
13
+ '"></i>\n </button>\n <button\n role="button"\n aria-label="Paste below button. Click to paste component below the current component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-paste"\n ref="pasteComponent"\n >\n <i class="' +
14
14
  ((__t = (ctx.iconClass('save'))) == null ? '' : __t) +
15
- '"></i>\n </button>\n <button class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json" ref="editJson">\n <i class="' +
15
+ '"></i>\n </button>\n <button\n role="button"\n aria-label="Edit json button. Click to edit json of the current component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json"\n ref="editJson"\n >\n <i class="' +
16
16
  ((__t = (ctx.iconClass('wrench'))) == null ? '' : __t) +
17
- '"></i>\n </button>\n <button class="btn btn-xxs btn-default component-settings-button component-settings-button-move" ref="moveComponent">\n <i class="' +
17
+ '"></i>\n </button>\n <button\n role="button"\n aria-label="Move button"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-move"\n ref="moveComponent"\n >\n <i class="' +
18
18
  ((__t = (ctx.iconClass('move'))) == null ? '' : __t) +
19
- '"></i>\n </button>\n <button class="btn btn-xxs btn-secondary component-settings-button component-settings-button-edit", ref="editComponent">\n <i class="' +
19
+ '"></i>\n </button>\n <button\n role="button"\n aria-label="Edit button. Click to open component settings modal window"\n tabindex="-1"\n class="btn btn-xxs btn-secondary component-settings-button component-settings-button-edit"\n ref="editComponent"\n >\n <i class="' +
20
20
  ((__t = (ctx.iconClass('cog'))) == null ? '' : __t) +
21
21
  '"></i>\n </button>\n </div>\n ';
22
22
  } ;
@@ -4,50 +4,50 @@ 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="flex flex-col w-full h-full">\n <div>\n <div class="grid grid-cols-12 gap-4">\n <div class="col-span-6">\n <div class="text-md px-3 py-3">' +
7
+ __p += '<div class="flex flex-col w-full h-full">\n <div>\n <div class="grid grid-cols-12 gap-4">\n <div class="col-span-6">\n <div class="text-md px-3 py-3">\n ' +
8
8
  ((__t = (ctx.t(ctx.componentInfo.title, { _userInput: true }))) == null ? '' : __t) +
9
- ' ' +
9
+ '\n ' +
10
10
  ((__t = (ctx.t('Component'))) == null ? '' : __t) +
11
- '</div>\n </div>\n ';
11
+ '\n </div>\n </div>\n ';
12
12
  if (ctx.helplinks) { ;
13
- __p += '\n <div class="col-span-6 flex justify-end items-center pr-15">\n <a class="reset-link inline-flex items-center text-secondary text-decoration-none hover:text-primary" href="' +
13
+ __p += '\n <div class="col-span-6 flex justify-end items-center pr-15">\n <a class="reset-link inline-flex items-center text-secondary text-decoration-none hover:text-primary"\n href="' +
14
14
  ((__t = (ctx.t(ctx.helplinks + ctx.componentInfo.documentation))) == null ? '' : __t) +
15
- '" target="_blank">\n <i class="' +
15
+ '" target="_blank">\n <i class="' +
16
16
  ((__t = (ctx.iconClass('new-window'))) == null ? '' : __t) +
17
17
  ' mr-1"></i> ' +
18
18
  ((__t = (ctx.t('Help'))) == null ? '' : __t) +
19
- '\n </a>\n </div>\n ';
19
+ '\n </a>\n </div>\n ';
20
20
  } ;
21
- __p += '\n </div>\n </div>\n <div class="overflow-auto flex-1 p-3 pt-0" style="max-height: calc(90vh - 95px)">\n <div class="grid grid-cols-12 gap-4">\n <div class="';
21
+ __p += '\n </div>\n </div>\n <div class="overflow-auto flex-1 p-3 pt-0" style="max-height: calc(90vh - 95px)">\n <div class="grid grid-cols-12 gap-4">\n <div class="';
22
22
  if (ctx.preview) { ;
23
23
  __p += 'col-span-12 sm:col-span-6';
24
24
  } else { ;
25
25
  __p += 'col-span-12';
26
26
  } ;
27
- __p += '">\n <div ref="editForm">\n ' +
27
+ __p += '">\n <div ref="editForm">\n ' +
28
28
  ((__t = (ctx.editForm)) == null ? '' : __t) +
29
- '\n </div>\n </div>\n ';
29
+ '\n </div>\n </div>\n ';
30
30
  if (ctx.preview) { ;
31
- __p += '\n <div class="col-span-12 sm:col-span-6">\n <div class="card panel preview-panel">\n <div class="card-header">\n <div class="text-sm">' +
31
+ __p += '\n <div class="col-span-12 sm:col-span-6">\n <div class="card panel preview-panel">\n <div class="card-header">\n <div class="text-sm">' +
32
32
  ((__t = (ctx.t('Preview'))) == null ? '' : __t) +
33
- '</div>\n </div>\n <div class="card-body">\n <div class="component-preview" ref="preview">\n ' +
33
+ '</div>\n </div>\n <div class="card-body">\n <div class="component-preview" ref="preview">\n ' +
34
34
  ((__t = (ctx.preview)) == null ? '' : __t) +
35
- '\n </div>\n </div>\n </div>\n ';
35
+ '\n </div>\n </div>\n </div>\n ';
36
36
  if (ctx.componentInfo.help) { ;
37
- __p += '\n <div class="card card-body bg-light formio-settings-help">\n ' +
37
+ __p += '\n <div class="card card-body bg-light formio-settings-help">\n ' +
38
38
  ((__t = ( ctx.t(ctx.componentInfo.help) )) == null ? '' : __t) +
39
- '\n </div>\n ';
39
+ '\n </div>\n ';
40
40
  } ;
41
- __p += '\n </div>\n ';
41
+ __p += '\n </div>\n ';
42
42
  } ;
43
- __p += '\n </div>\n </div>\n <div class="bg-white p-2 flex justify-center">\n <button class="btn btn-primary mx-2" ref="saveButton">\n ' +
43
+ __p += '\n </div>\n </div>\n <div class="bg-white p-2 flex justify-center">\n <button class="btn btn-primary mx-2" ref="saveButton">\n ' +
44
44
  ((__t = (ctx.t('Save'))) == null ? '' : __t) +
45
- '\n </button>\n <button class="btn btn-dark mx-2" ref="cancelButton">\n ' +
45
+ '\n </button>\n <button class="btn btn-dark mx-2" ref="cancelButton">\n ' +
46
46
  ((__t = (ctx.t('Cancel'))) == null ? '' : __t) +
47
- '\n </button>\n <button class="btn btn-danger mx-2" ref="removeButton">\n <i class="' +
47
+ '\n </button>\n <button class="btn btn-danger mx-2" ref="removeButton">\n <i class="' +
48
48
  ((__t = (ctx.iconClass('remove'))) == null ? '' : __t) +
49
- ' sm:mr-2"></i>\n <span class="hidden sm:inline">' +
49
+ ' sm:mr-2"></i>\n <span class="hidden sm:inline">' +
50
50
  ((__t = (ctx.t('Remove'))) == null ? '' : __t) +
51
- '</span>\n </button>\n </div>\n</div>\n\n\n';
51
+ '</span>\n </button>\n </div>\n</div>\n\n\n';
52
52
  return __p
53
53
  }
@@ -34,7 +34,7 @@ __p += '<div class="card form-builder-panel" ref="group-panel-' +
34
34
  if (ctx.group.componentOrder.length || ctx.subgroups.length) { ;
35
35
  __p += '\n ';
36
36
  !ctx.group.componentOrder || ctx.group.componentOrder.forEach(function(componentKey) { ;
37
- __p += '\n <button\n data-group="' +
37
+ __p += '\n <span\n data-group="' +
38
38
  ((__t = (ctx.groupKey)) == null ? '' : __t) +
39
39
  '"\n data-key="' +
40
40
  ((__t = (ctx.group.components[componentKey].key)) == null ? '' : __t) +
@@ -47,8 +47,8 @@ __p += '\n <i class="' +
47
47
  '" style="margin-right: 5px;"></i>\n ';
48
48
  } ;
49
49
  __p += '\n ' +
50
- ((__t = (ctx.t(ctx.group.components[componentKey].title))) == null ? '' : __t) +
51
- '\n </button>\n ';
50
+ ((__t = (ctx.t(ctx.group.components[componentKey].title, { _userInput: true }))) == null ? '' : __t) +
51
+ '\n </span>\n ';
52
52
  }) ;
53
53
  __p += '\n ' +
54
54
  ((__t = (ctx.subgroups.join(''))) == null ? '' : __t) +
@@ -12,13 +12,21 @@ __p += '\n ' +
12
12
  ((__t = (attr)) == null ? '' : __t) +
13
13
  '="' +
14
14
  ((__t = (ctx.input.attr[attr])) == null ? '' : __t) +
15
+ '"\n ';
16
+ } ;
17
+ __p += '\n ';
18
+ if (ctx.component.description) { ;
19
+ __p += '\n aria-describedby="d-' +
20
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
21
+ '-' +
22
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
15
23
  '"\n ';
16
24
  } ;
17
25
  __p += '\n>\n';
18
26
  if (ctx.component.leftIcon) { ;
19
27
  __p += '<span class="' +
20
28
  ((__t = (ctx.component.leftIcon)) == null ? '' : __t) +
21
- '"></span>';
29
+ '"></span>&nbsp;';
22
30
  } ;
23
31
  __p += '\n';
24
32
  if (ctx.input.content) { ;
@@ -30,11 +38,13 @@ __p += '\n';
30
38
  if (ctx.component.tooltip) { ;
31
39
  __p += '\n <i ref="tooltip" class="' +
32
40
  ((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) +
41
+ ' text-muted" data-tooltip="' +
42
+ ((__t = (ctx.component.tooltip)) == null ? '' : __t) +
33
43
  '"></i>\n';
34
44
  } ;
35
45
  __p += '\n';
36
46
  if (ctx.component.rightIcon) { ;
37
- __p += '<span class="' +
47
+ __p += '&nbsp;<span class="' +
38
48
  ((__t = (ctx.component.rightIcon)) == null ? '' : __t) +
39
49
  '"></span>';
40
50
  } ;
@@ -20,6 +20,16 @@ __p += '\n ';
20
20
  if (ctx.checked) { ;
21
21
  __p += 'checked=true';
22
22
  } ;
23
+ __p += '\n aria-required="' +
24
+ ((__t = (ctx.component.validate.required)) == null ? '' : __t) +
25
+ '"\n ';
26
+ if (ctx.component.description) { ;
27
+ __p += '\n aria-describedby="d-' +
28
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
29
+ '-' +
30
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
31
+ '"\n ';
32
+ } ;
23
33
  __p += '\n >\n ';
24
34
  if (!ctx.self.labelIsHidden()) { ;
25
35
  __p += '<span>' +
@@ -28,9 +38,9 @@ __p += '<span>' +
28
38
  } ;
29
39
  __p += '\n ';
30
40
  if (ctx.component.tooltip) { ;
31
- __p += '\n <i ref="tooltip" class="' +
41
+ __p += '\n <i ref="tooltip" tabindex="0" class="' +
32
42
  ((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) +
33
- '" data-tooltip="' +
43
+ ' text-muted" data-tooltip="' +
34
44
  ((__t = (ctx.component.tooltip)) == null ? '' : __t) +
35
45
  '"></i>\n ';
36
46
  } ;
@@ -9,7 +9,7 @@ function print() { __p += __j.call(arguments, '') }
9
9
  __p += '\n<div class="\n col-' +
10
10
  ((__t = (column.size)) == null ? '' : __t) +
11
11
  '-' +
12
- ((__t = (column.width)) == null ? '' : __t) +
12
+ ((__t = (column.currentWidth || column.width)) == null ? '' : __t) +
13
13
  '\n col-' +
14
14
  ((__t = (column.size)) == null ? '' : __t) +
15
15
  '-offset-' +
@@ -6,14 +6,42 @@ var __t, __p = '', __j = Array.prototype.join;
6
6
  function print() { __p += __j.call(arguments, '') }
7
7
  __p += '<div class="formio-component-modal-wrapper formio-component-modal-wrapper-' +
8
8
  ((__t = ( ctx.component.type )) == null ? '' : __t) +
9
- '" ref="componentModalWrapper">\n <div ref="openModalWrapper"></div>\n <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n <div class="formio-dialog-content" ref="modalContents">\n <div ref="modalContents">\n ';
9
+ '" ref="componentModalWrapper">\n <div ref="openModalWrapper"></div>\n <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n <div class="formio-dialog-content" aria-labelledby="ml-' +
10
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
11
+ '-' +
12
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
13
+ '" ';
14
+ if (!ctx.self.isIE()) { ;
15
+ __p += ' role="dialog" ';
16
+ } ;
17
+ __p += ' ref="modalContents">\n <label class="sr-only" id="ml-' +
18
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
19
+ '-' +
20
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
21
+ '">' +
22
+ ((__t = ( ctx.t(ctx.component.label) )) == null ? '' : __t) +
23
+ '' +
24
+ ((__t = (ctx.self.isIE() ? ', dialog' : '')) == null ? '' : __t) +
25
+ '</label>\n ';
26
+ if (ctx.options.vpat) { ;
27
+ __p += '\n <button class="formio-dialog-close float-right" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n ';
28
+ } else { ;
29
+ __p += '\n <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n ';
30
+ } ;
31
+ __p += '\n <div ref="modalContents">\n ';
10
32
  if (ctx.visible) { ;
11
33
  __p += '\n ' +
12
34
  ((__t = (ctx.children)) == null ? '' : __t) +
13
35
  '\n ';
14
36
  } ;
15
- __p += '\n <div class="formio-dialog-buttons">\n <button class="btn btn-success formio-dialog-button" ref="modalSave">' +
37
+ __p += '\n <div class="formio-dialog-buttons">\n ';
38
+ if (ctx.options.vpat) { ;
39
+ __p += '\n <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">' +
40
+ ((__t = (ctx.t('Cancel'))) == null ? '' : __t) +
41
+ '</button>\n ';
42
+ } ;
43
+ __p += '\n <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">' +
16
44
  ((__t = (ctx.t('Save'))) == null ? '' : __t) +
17
- '</button>\n </div>\n </div>\n <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="close" ref="modalClose"></button>\n </div>\n </div>\n</div>\n';
45
+ '</button>\n </div>\n </div>\n </div>\n <span class="sr-only" ref="modalLiveRegion" aria-live="assertive"></span>\n </div>\n</div>\n';
18
46
  return __p
19
47
  }
@@ -25,14 +25,14 @@ __p += '\n ';
25
25
  __p += '\n <th class="' +
26
26
  ((__t = (col.validate && col.validate.required ? 'field-required' : '')) == null ? '' : __t) +
27
27
  '">\n ' +
28
- ((__t = ( col.hideLabel ? '' : ctx.t(col.label || col.title) )) == null ? '' : __t) +
28
+ ((__t = ( col.hideLabel ? '' : ctx.t(col.label || col.title, { _userInput: true }) )) == null ? '' : __t) +
29
29
  '\n ';
30
30
  if (col.tooltip) { ;
31
- __p += ' <i ref="tooltip" data-title="' +
31
+ __p += ' <i ref="tooltip" tabindex="0" data-title="' +
32
32
  ((__t = (col.tooltip)) == null ? '' : __t) +
33
33
  '" class="' +
34
34
  ((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) +
35
- '" data-tooltip="' +
35
+ ' text-muted" data-tooltip="' +
36
36
  ((__t = (col.tooltip)) == null ? '' : __t) +
37
37
  '"></i>';
38
38
  } ;
@@ -40,7 +40,9 @@ __p += '\n </th>\n ';
40
40
  }) ;
41
41
  __p += '\n ';
42
42
  if (ctx.hasExtraColumn) { ;
43
- __p += '\n <th>\n ';
43
+ __p += '\n <th>\n <span class="sr-only">' +
44
+ ((__t = ( ctx.t('Add/Remove') )) == null ? '' : __t) +
45
+ '</span>\n ';
44
46
  if (!ctx.builder && ctx.hasAddButton && ctx.hasTopSubmit) { ;
45
47
  __p += '\n <button class="btn btn-primary formio-button-add-row" ref="' +
46
48
  ((__t = (ctx.datagridKey)) == null ? '' : __t) +
@@ -48,8 +50,8 @@ __p += '\n <button class="btn btn-primary formio-button-add-row" ref="' +
48
50
  ((__t = (ctx.tabIndex)) == null ? '' : __t) +
49
51
  '">\n <i class="' +
50
52
  ((__t = (ctx.iconClass('plus'))) == null ? '' : __t) +
51
- ' mr-1"></i>' +
52
- ((__t = (ctx.t(ctx.component.addAnother || 'Add Another'))) == null ? '' : __t) +
53
+ '"></i>' +
54
+ ((__t = (ctx.t(ctx.component.addAnother || 'Add Another', { _userInput: true }))) == null ? '' : __t) +
53
55
  '\n </button>\n ';
54
56
  } ;
55
57
  __p += '\n </th>\n ';
@@ -58,7 +60,9 @@ __p += '\n </tr>\n </thead>\n ';
58
60
  } ;
59
61
  __p += '\n <tbody ref="' +
60
62
  ((__t = (ctx.datagridKey)) == null ? '' : __t) +
61
- '-tbody">\n ';
63
+ '-tbody" data-key="' +
64
+ ((__t = (ctx.datagridKey)) == null ? '' : __t) +
65
+ '">\n ';
62
66
  ctx.rows.forEach(function(row, index) { ;
63
67
  __p += '\n ';
64
68
  if (ctx.hasGroups && ctx.groups[index]) { ;
@@ -78,24 +82,36 @@ __p += '\n <tr ref="' +
78
82
  ((__t = (ctx.datagridKey)) == null ? '' : __t) +
79
83
  '-row">\n ';
80
84
  if (ctx.component.reorder) { ;
81
- __p += '\n <td>\n <button type="button" class="formio-drag-button btn btn-default fa fa-bars"></button>\n </td>\n ';
85
+ __p += '\n <td class="align-middle">\n <button type="button" class="formio-drag-button btn btn-sm btn-light ' +
86
+ ((__t = (ctx.iconClass('bars'))) == null ? '' : __t) +
87
+ '" data-key="' +
88
+ ((__t = (ctx.datagridKey)) == null ? '' : __t) +
89
+ '"></button>\n </td>\n ';
82
90
  } ;
83
91
  __p += '\n ';
84
92
  ctx.columns.forEach(function(col) { ;
85
93
  __p += '\n <td ref="' +
86
94
  ((__t = (ctx.datagridKey)) == null ? '' : __t) +
87
- '">\n ' +
95
+ '" ';
96
+ if (col.key && col.overlay && col.overlay.width) { ;
97
+ __p += ' style="width: ' +
98
+ ((__t = (col.overlay.width + 'px')) == null ? '' : __t) +
99
+ '"';
100
+ } ;
101
+ __p += ' >\n ' +
88
102
  ((__t = (row[col.key])) == null ? '' : __t) +
89
103
  '\n </td>\n ';
90
104
  }) ;
91
105
  __p += '\n ';
92
106
  if (ctx.hasExtraColumn) { ;
93
107
  __p += '\n ';
94
- if (!ctx.builder && ctx.hasRemoveButtons) { ;
95
- __p += '\n <td>\n <button type="button" class="btn btn-secondary formio-button-remove-row" ref="' +
108
+ if (ctx.hasRemoveButtons) { ;
109
+ __p += '\n <td class="align-middle">\n <button type="button" class="btn btn-light btn-sm formio-button-remove-row" ref="' +
96
110
  ((__t = (ctx.datagridKey)) == null ? '' : __t) +
97
111
  '-removeRow" tabindex="' +
98
112
  ((__t = (ctx.tabIndex)) == null ? '' : __t) +
113
+ '" aria-label="' +
114
+ ((__t = (ctx.t('remove'))) == null ? '' : __t) +
99
115
  '">\n <i class="' +
100
116
  ((__t = (ctx.iconClass('remove-circle'))) == null ? '' : __t) +
101
117
  '"></i>\n </button>\n </td>\n ';
@@ -115,7 +131,7 @@ __p += '\n </tr>\n ';
115
131
  __p += '\n </tbody>\n ';
116
132
  if (!ctx.builder && ctx.hasAddButton && ctx.hasBottomSubmit) { ;
117
133
  __p += '\n <tfoot>\n <tr>\n <td colspan="' +
118
- ((__t = (ctx.numColumns + 1)) == null ? '' : __t) +
134
+ ((__t = (ctx.component.layoutFixed ? ctx.numColumns : ctx.numColumns + 1)) == null ? '' : __t) +
119
135
  '">\n <button class="btn btn-primary formio-button-add-row" ref="' +
120
136
  ((__t = (ctx.datagridKey)) == null ? '' : __t) +
121
137
  '-addRow" tabindex="' +
@@ -123,7 +139,7 @@ __p += '\n <tfoot>\n <tr>\n <td colspan="' +
123
139
  '">\n <i class="' +
124
140
  ((__t = (ctx.iconClass('plus'))) == null ? '' : __t) +
125
141
  ' mr-1"></i> ' +
126
- ((__t = (ctx.t(ctx.component.addAnother || 'Add Another'))) == null ? '' : __t) +
142
+ ((__t = (ctx.t(ctx.component.addAnother || 'Add Another', { _userInput: true }))) == null ? '' : __t) +
127
143
  '\n </button>\n </td>\n </tr>\n </tfoot>\n ';
128
144
  } ;
129
145
  __p += '\n</table>\n';
@@ -17,14 +17,14 @@ __p += '\n <thead>\n <tr>\n ';
17
17
  __p += '\n <th class="' +
18
18
  ((__t = (col.validate && col.validate.required ? 'field-required' : '')) == null ? '' : __t) +
19
19
  '">\n ' +
20
- ((__t = ( col.hideLabel ? '' : ctx.t(col.label || col.title) )) == null ? '' : __t) +
20
+ ((__t = ( col.hideLabel ? '' : ctx.t(col.label || col.title, { _userInput: true }) )) == null ? '' : __t) +
21
21
  '\n ';
22
22
  if (col.tooltip) { ;
23
- __p += ' <i ref="tooltip" data-title="' +
23
+ __p += ' <i ref="tooltip" tabindex="0" data-title="' +
24
24
  ((__t = (col.tooltip)) == null ? '' : __t) +
25
25
  '" class="' +
26
26
  ((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) +
27
- '" data-tooltip="' +
27
+ ' text-muted" data-tooltip="' +
28
28
  ((__t = (col.tooltip)) == null ? '' : __t) +
29
29
  '"></i>';
30
30
  } ;
@@ -4,7 +4,27 @@ 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="grid grid-cols-12 gap-4">\n ';
7
+ __p += '<div class="grid grid-cols-12 gap-4"\n ';
8
+ if (ctx.component.hideLabel) { ;
9
+ __p += '\n aria-label="' +
10
+ ((__t = (ctx.component.label)) == null ? '' : __t) +
11
+ '"\n ';
12
+ } else { ;
13
+ __p += '\n aria-labelledby="l-' +
14
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
15
+ '-' +
16
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
17
+ '"\n ';
18
+ } ;
19
+ __p += '\n ';
20
+ if (ctx.component.description) { ;
21
+ __p += '\n aria-describedby="d-' +
22
+ ((__t = (ctx.instance.id)) == null ? '' : __t) +
23
+ '-' +
24
+ ((__t = (ctx.component.key)) == null ? '' : __t) +
25
+ '"\n ';
26
+ } ;
27
+ __p += '\n >\n ';
8
28
  if (ctx.dayFirst && ctx.showDay) { ;
9
29
  __p += '\n <div class="col-span-3">\n ';
10
30
  if (!ctx.component.hideInputLabels) { ;
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", {
3
3
  });
4
4
  exports.default=function(ctx) {
5
5
  var __t, __p = '';
6
- __p += '<div class="formio-dialog formio-dialog-theme-default component-settings">\n <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n <div class="formio-dialog-content" ref="dialogContents">\n <div ref="dialogContents"></div>\n <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="close" ref="dialogClose"></button>\n </div>\n</div>\n';
6
+ __p += '<div class="formio-dialog formio-dialog-theme-default component-settings">\n <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n <div ref="dialogContents"></div>\n <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n </div>\n</div>\n';
7
7
  return __p
8
8
  }
@@ -29,13 +29,13 @@ __p += '\n <li class="list-group-item" ref="' +
29
29
  __p += '\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="' +
30
30
  ((__t = (ctx.ref.saveRow)) == null ? '' : __t) +
31
31
  '">' +
32
- ((__t = (ctx.t(ctx.component.saveRow || 'Save'))) == null ? '' : __t) +
32
+ ((__t = (ctx.t(ctx.component.saveRow || 'Save', { _userInput: true }))) == null ? '' : __t) +
33
33
  '</button>\n ';
34
34
  if (ctx.component.removeRow) { ;
35
35
  __p += '\n <button class="btn btn-danger" ref="' +
36
36
  ((__t = (ctx.ref.cancelRow)) == null ? '' : __t) +
37
37
  '">' +
38
- ((__t = (ctx.t(ctx.component.removeRow || 'Cancel'))) == null ? '' : __t) +
38
+ ((__t = (ctx.t(ctx.component.removeRow || 'Cancel', { _userInput: true }))) == null ? '' : __t) +
39
39
  '</button>\n ';
40
40
  } ;
41
41
  __p += '\n </div>\n ';
@@ -56,8 +56,8 @@ __p += '\n<button class="btn btn-primary" ref="' +
56
56
  ((__t = (ctx.ref.addRow)) == null ? '' : __t) +
57
57
  '">\n <i class="' +
58
58
  ((__t = (ctx.iconClass('plus'))) == null ? '' : __t) +
59
- ' mr-1"></i> ' +
60
- ((__t = (ctx.t(ctx.component.addAnother || 'Add Another'))) == null ? '' : __t) +
59
+ '"></i> ' +
60
+ ((__t = (ctx.t(ctx.component.addAnother || 'Add Another', { _userInput: true }))) == null ? '' : __t) +
61
61
  '\n</button>\n';
62
62
  } ;
63
63
  __p += '\n';
@@ -29,13 +29,13 @@ __p += '\n <li class="list-group-item" ref="' +
29
29
  __p += '\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="' +
30
30
  ((__t = (ctx.ref.saveRow)) == null ? '' : __t) +
31
31
  '">' +
32
- ((__t = (ctx.t(ctx.component.saveRow || 'Save'))) == null ? '' : __t) +
32
+ ((__t = (ctx.t(ctx.component.saveRow || 'Save', { _userInput: true }))) == null ? '' : __t) +
33
33
  '</button>\n ';
34
34
  if (ctx.component.removeRow) { ;
35
35
  __p += '\n <button class="btn btn-danger" ref="' +
36
36
  ((__t = (ctx.ref.cancelRow)) == null ? '' : __t) +
37
37
  '">' +
38
- ((__t = (ctx.t(ctx.component.removeRow || 'Cancel'))) == null ? '' : __t) +
38
+ ((__t = (ctx.t(ctx.component.removeRow || 'Cancel', { _userInput: true }))) == null ? '' : __t) +
39
39
  '</button>\n ';
40
40
  } ;
41
41
  __p += '\n </div>\n ';