Skip to content

Commit

Permalink
revert noop style change
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanbond committed Dec 6, 2024
1 parent 060994d commit fb7e713
Show file tree
Hide file tree
Showing 594 changed files with 9,969 additions and 36 deletions.
2 changes: 1 addition & 1 deletion dist/bootstrap3.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bootstrap4.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bootstrap5.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions lib/cjs/templates/bootstrap3/iconClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ exports.default = (iconset, name, spinning) => {
case 'move':
name = 'arrows';
break;
case 'ok-sign':
name = 'check-circle';
break;
case 'remove-sign':
name = 'times-circle';
break;
}
}
return spinning ? `${iconset} ${iconset}-${name} ${iconset}-spin` : `${iconset} ${iconset}-${name}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ __p += '\n <span\n ref="sidebar-component"\n data
'"\n data-type="' +
((__t = (ctx.group.components[componentKey].schema.type)) == null ? '' : __t) +
'"\n class="btn btn-primary btn-sm btn-block formcomponent drag-copy"\n tabindex="' +
((__t = (ctx.keyboardActionsEnabled ? -1 : 0)) == null ? '' : __t) +
((__t = (ctx.keyboardActionsEnabled ? 0 : -1)) == null ? '' : __t) +
'"\n >\n ';
if (ctx.group.components[componentKey].icon) { ;
__p += '\n <i class="' +
Expand Down
4 changes: 2 additions & 2 deletions lib/cjs/templates/bootstrap4/datagrid/form.ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ __p += '\n <tr ref="' +
((__t = (ctx.datagridKey)) == null ? '' : __t) +
'-row">\n ';
if (ctx.component.reorder) { ;
__p += '\n <td class="col-md-1">\n <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="' +
__p += '\n <td class="col-1">\n <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="' +
((__t = (ctx.datagridKey)) == null ? '' : __t) +
'"></button>\n </td>\n ';
} ;
Expand All @@ -104,7 +104,7 @@ __p += '\n ';
if (ctx.hasExtraColumn) { ;
__p += '\n ';
if (ctx.hasRemoveButtons) { ;
__p += '\n <td class="col-md-1">\n <button type="button" class="btn btn-secondary formio-button-remove-row" ref="' +
__p += '\n <td class="col-1">\n <button type="button" class="btn btn-secondary formio-button-remove-row" ref="' +
((__t = (ctx.datagridKey)) == null ? '' : __t) +
'-removeRow" tabindex="' +
((__t = (ctx.tabIndex)) == null ? '' : __t) +
Expand Down
6 changes: 6 additions & 0 deletions lib/cjs/templates/bootstrap4/iconClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ exports.default = (iconset, name, spinning) => {
case 'time':
name = 'clock-o';
break;
case 'ok-sign':
name = 'check-circle';
break;
case 'remove-sign':
name = 'times-circle';
break;
}
}
return spinning ? `${iconset} ${iconset}-${name} ${iconset}-spin` : `${iconset} ${iconset}-${name}`;
Expand Down
6 changes: 3 additions & 3 deletions lib/cjs/templates/bootstrap4/tbody/html.ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ __p += '\n ';
row.forEach(function(rowComp) { ;
__p += '\n ';
if (rowComp.component.show) { ;
__p += '\n <td \n ' +
__p += '\n <td\n ' +
((__t = ( ctx.component.cellMaxWidth ? 'style="max-width:'+ ctx.component.cellMaxWidth + ';"' : '')) == null ? '' : __t) +
'\n ' +
((__t = ( ctx.component.clipCells ? 'class="clip"' : '')) == null ? '' : __t) +
'>\n ' +
((__t = ( ctx.instance.hook('format', rowComp.component.key, rowComp.dataValue) )) == null ? '' : __t) +
((__t = ( ctx.instance.hook('format', rowComp.component.key, rowComp.dataValue, rowComp.rowIndex) )) == null ? '' : __t) +
'\n </td>\n ';
} ;
__p += '\n ';
Expand All @@ -40,6 +40,6 @@ __p += '\n </ul>\n </div>\n ⋮\n </div>\n </th>\
} ;
__p += '\n </tr>\n ';
}); ;
__p += '\n</tbody>\n</table>';
__p += '\n</tbody>\n</table>\n';
return __p
}
2 changes: 1 addition & 1 deletion lib/cjs/templates/bootstrap5/address/form.ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ __p += '\n value="' +
((__t = (ctx.t('autocomplete'))) == null ? '' : __t) +
'"\n >\n ';
if (!ctx.component.disableClearIcon) { ;
__p += '\n <i\n class="address-autocomplete-remove-value-icon fa fa-times"\n tabindex="' +
__p += '\n <i\n class="address-autocomplete-remove-value-icon fa fa-times bi bi-x"\n tabindex="' +
((__t = ( ctx.inputAttributes.tabindex )) == null ? '' : __t) +
'"\n ref="' +
((__t = ( ctx.ref.removeValueIcon )) == null ? '' : __t) +
Expand Down
2 changes: 1 addition & 1 deletion lib/cjs/templates/bootstrap5/builderEditForm/form.ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ __p += '\n <div style="margin-top: 10px;">\n <button class="btn btn-succ
((__t = (ctx.t('Cancel'))) == null ? '' : __t) +
'</button>\n <button class="btn btn-danger" ref="removeButton">' +
((__t = (ctx.t('Remove'))) == null ? '' : __t) +
'</button>\n <button class="btn btn-primary float-right" ref="previewButton">' +
'</button>\n <button class="btn btn-primary float-end" ref="previewButton">' +
((__t = (ctx.t('Hide preview'))) == null ? '' : __t) +
'</button>\n </div>\n </div>\n ';
} ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ __p += '\n <span\n ref="sidebar-component"\n data
'"\n data-type="' +
((__t = (ctx.group.components[componentKey].schema.type)) == null ? '' : __t) +
'"\n class="btn btn-outline-primary btn-sm formcomponent drag-copy m-0"\n tabindex="' +
((__t = (ctx.keyboardActionsEnabled ? -1 : 0)) == null ? '' : __t) +
((__t = (ctx.keyboardActionsEnabled ? 0 : -1)) == null ? '' : __t) +
'"\n >\n ';
if (ctx.group.components[componentKey].icon) { ;
__p += '\n <i class="' +
Expand Down
4 changes: 2 additions & 2 deletions lib/cjs/templates/bootstrap5/datagrid/form.ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ __p += '\n <tr ref="' +
((__t = (ctx.datagridKey)) == null ? '' : __t) +
'-row">\n ';
if (ctx.component.reorder) { ;
__p += '\n <td>\n <button type="button" class="formio-drag-button btn btn-default bi bi-list" data-key="' +
__p += '\n <td class="col-1">\n <button type="button" class="formio-drag-button btn btn-default bi bi-list" data-key="' +
((__t = (ctx.datagridKey)) == null ? '' : __t) +
'"></button>\n </td>\n ';
} ;
Expand All @@ -104,7 +104,7 @@ __p += '\n ';
if (ctx.hasExtraColumn) { ;
__p += '\n ';
if (ctx.hasRemoveButtons) { ;
__p += '\n <td>\n <button type="button" class="btn btn-secondary formio-button-remove-row" ref="' +
__p += '\n <td class="col-1">\n <button type="button" class="btn btn-secondary formio-button-remove-row" ref="' +
((__t = (ctx.datagridKey)) == null ? '' : __t) +
'-removeRow" tabindex="' +
((__t = (ctx.tabIndex)) == null ? '' : __t) +
Expand Down
2 changes: 1 addition & 1 deletion lib/cjs/templates/bootstrap5/dialog/form.ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default=function(ctx) {
var __t, __p = '';
__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-end btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n </div>\n</div>\n';
__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-end btn-sm" title="Close" aria-label="Close modal window." ref="dialogClose"></button>\n </div>\n</div>\n';
return __p
}
4 changes: 3 additions & 1 deletion lib/cjs/templates/bootstrap5/file/form.ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ __p += '\n <div>\n <span>\n <img ref="fileImage" src="" alt
if (!ctx.disabled) { ;
__p += '\n <i tabindex="0" class="' +
((__t = (ctx.iconClass('remove'))) == null ? '' : __t) +
'" ref="removeLink"></i>\n ';
'" ref="removeLink" aria-label="' +
((__t = (ctx.t('Remove button. Press to remove ' + (file.originalName || file.name) + ' file'))) == null ? '' : __t) +
'"></i>\n ';
} ;
__p += '\n </span>\n </div>\n ';
}) ;
Expand Down
33 changes: 33 additions & 0 deletions lib/cjs/templates/bootstrap5/iconClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,18 @@ exports.default = (iconset, name, spinning) => {
biName = 'plus-lg';
break;
case 'question-sign':
name = 'question-circle';
biName = 'question-circle';
break;
case 'remove-circle':
biName = 'x-circle';
break;
case 'new-window':
name = 'window-restore';
biName = 'window-plus';
break;
case 'move':
name = 'arrows';
biName = 'arrows-move';
break;
case 'edit':
Expand All @@ -132,6 +135,36 @@ exports.default = (iconset, name, spinning) => {
case 'folder-open':
biName = 'folder2-open';
break;
case 'check-circle':
biName = 'check-circle-fill';
break;
case 'times-circle':
biName = 'x-circle-fill';
break;
case 'pencil':
biName = 'pencil-fill';
break;
case 'minus':
biName = 'dash';
break;
case 'circle':
biName = 'circle-fill';
break;
case 'search-plus':
biName = 'zoom-in';
break;
case 'search-minus':
biName = 'zoom-out';
break;
case 'hand-paper-o':
biName = 'hand-index';
break;
case 'undo':
biName = 'arrow-counterclockwise';
break;
case 'repeat':
biName = 'arrow-clockwise';
break;
}
return spinning ? 'spinner-border spinner-border-sm' : `fa fa-${name} bi bi-${biName}`;
};
2 changes: 1 addition & 1 deletion lib/cjs/templates/bootstrap5/select/form.ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ __p += '\n aria-describedby="d-' +
} ;
__p += '\n aria-required="' +
((__t = (ctx.input.ref === 'selectContainer' || !ctx.input.ref ? ctx.input.component.validate.required : ctx.component.fields[ctx.input.ref].required)) == null ? '' : __t) +
'"\n>' +
'"\n style="height:calc(1.4em + 0.75rem + 2px);"\n \n>' +
((__t = (ctx.selectOptions)) == null ? '' : __t) +
'</select>\n<input type="text"\n class="formio-select-autocomplete-input"\n ref="autocompleteInput"\n ';
if (ctx.input.attr.autocomplete) { ;
Expand Down
4 changes: 2 additions & 2 deletions lib/cjs/templates/bootstrap5/table/form.ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ __p += '<table class="table\n ' +
if (ctx.component.header && ctx.component.header.length > 0) { ;
__p += '\n <thead>\n <tr>\n ';
ctx.component.header.forEach(function(header) { ;
__p += '\n <th>' +
__p += '\n <th scope="col">' +
((__t = (ctx.t(header))) == null ? '' : __t) +
'</th>\n ';
}) ;
Expand All @@ -30,7 +30,7 @@ __p += '\n <tr ref="row-' +
((__t = (ctx.id)) == null ? '' : __t) +
'">\n ';
row.forEach(function(column, colIndex) { ;
__p += '\n <td ref="' +
__p += '\n <td scope="col" ref="' +
((__t = (ctx.tableKey)) == null ? '' : __t) +
'-' +
((__t = (rowIndex)) == null ? '' : __t) +
Expand Down
61 changes: 61 additions & 0 deletions lib/cjs/templates/default/address/form.ejs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default=function(ctx) {
var __t, __p = '', __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }

if (ctx.mode.autocomplete) { ;
__p += '\n <div class="address-autocomplete-container">\n <input\n ref="' +
((__t = ( ctx.ref.searchInput )) == null ? '' : __t) +
'"\n ';
for (var attr in ctx.inputAttributes) { ;
__p += '\n ' +
((__t = (attr)) == null ? '' : __t) +
'="' +
((__t = (ctx.inputAttributes[attr])) == null ? '' : __t) +
'"\n ';
} ;
__p += '\n value="' +
((__t = ( ctx.displayValue )) == null ? '' : __t) +
'"\n autocomplete="off"\n aria-label="' +
((__t = (ctx.t('autocomplete'))) == null ? '' : __t) +
'"\n >\n ';
if (!ctx.component.disableClearIcon) { ;
__p += '\n <i\n class="address-autocomplete-remove-value-icon fa fa-times"\n tabindex="' +
((__t = ( ctx.inputAttributes.tabindex )) == null ? '' : __t) +
'"\n ref="' +
((__t = ( ctx.ref.removeValueIcon )) == null ? '' : __t) +
'"\n ></i>\n ';
} ;
__p += '\n </div>\n';
} ;
__p += '\n';
if (ctx.self.manualModeEnabled) { ;
__p += '\n <div class="form-check checkbox">\n <label class="form-check-label">\n <input\n ref="' +
((__t = ( ctx.ref.modeSwitcher )) == null ? '' : __t) +
'"\n type="checkbox"\n class="form-check-input"\n tabindex="' +
((__t = ( ctx.inputAttributes.tabindex )) == null ? '' : __t) +
'"\n ';
if (ctx.mode.manual) { ;
__p += 'checked=true';
} ;
__p += '\n ';
if (ctx.disabled) { ;
__p += 'disabled=true';
} ;
__p += '\n >\n <span>' +
((__t = ( ctx.component.switchToManualModeLabel )) == null ? '' : __t) +
'</span>\n </label>\n </div>\n';
} ;
__p += '\n';
if (ctx.self.manualMode) { ;
__p += '\n <div ref="' +
((__t = ( ctx.nestedKey )) == null ? '' : __t) +
'">\n ' +
((__t = ( ctx.children )) == null ? '' : __t) +
'\n </div>\n';
} ;
__p += '\n';
return __p
}
16 changes: 16 additions & 0 deletions lib/cjs/templates/default/address/html.ejs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default=function(ctx) {
var __t, __p = '', __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
__p += '<div ref="value">';
if (ctx.displayValue) { ;
__p +=
((__t = (ctx.displayValue)) == null ? '' : __t);
} else { ;
__p += '-';
} ;
__p += '</div>\n';
return __p
}
5 changes: 5 additions & 0 deletions lib/cjs/templates/default/address/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare const _default: {
form: string;
html: string;
};
export default _default;
5 changes: 5 additions & 0 deletions lib/cjs/templates/default/address/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const form_ejs_1 = require("./form.ejs");
const html_ejs_1 = require("./html.ejs");
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
27 changes: 27 additions & 0 deletions lib/cjs/templates/default/alert/form.ejs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default=function(ctx) {
var __t, __p = '', __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
__p += '<div\n ';
for (var attr in ctx.attrs) { ;
__p += '\n ' +
((__t = (attr)) == null ? '' : __t) +
'="' +
((__t = (ctx.attrs[attr])) == null ? '' : __t) +
'"\n ';
} ;
__p += '\n>\n ' +
((__t = (ctx.message)) == null ? '' : __t) +
'\n ';
if (ctx.options.vpat) { ;
__p += '\n <span class="visually-hidden" id="hotkey-i-' +
((__t = (ctx.form._id)) == null ? '' : __t) +
'">' +
((__t = (ctx.t('errorListHotkey'))) == null ? '' : __t) +
'</span>\n ';
} ;
__p += '\n</div>\n';
return __p
}
4 changes: 4 additions & 0 deletions lib/cjs/templates/default/alert/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare const _default: {
form: string;
};
export default _default;
4 changes: 4 additions & 0 deletions lib/cjs/templates/default/alert/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const form_ejs_1 = require("./form.ejs");
exports.default = { form: form_ejs_1.default };
12 changes: 12 additions & 0 deletions lib/cjs/templates/default/builder/form.ejs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default=function(ctx) {
var __t, __p = '';
__p += '<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n ' +
((__t = (ctx.sidebar)) == null ? '' : __t) +
'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n ' +
((__t = (ctx.form)) == null ? '' : __t) +
'\n </div>\n</div>\n';
return __p
}
4 changes: 4 additions & 0 deletions lib/cjs/templates/default/builder/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare const _default: {
form: string;
};
export default _default;
4 changes: 4 additions & 0 deletions lib/cjs/templates/default/builder/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const form_ejs_1 = require("./form.ejs");
exports.default = { form: form_ejs_1.default };
Loading

0 comments on commit fb7e713

Please sign in to comment.