Skip to content

Commit

Permalink
✨ Custom Controls, Automatic i18n, WYSIWYG Editor, HTML Labels ✨ (#414)
Browse files Browse the repository at this point in the history
* Add browserify, code cleanup

* v1.25.0 WIP

* 1.25.0 WIP

* Bugfix: fast clicking with editOnAdd

* Remove allowSelect from opts.messages

* Only editOnAdd for new fields

* Update gulpfile, getData action, remove bootstrap color styles

* Customizable Form action buttons, clearer selected button styles

* Fix delete toggle element

* i18n WIP, new subtypes WIP

* fieldRender refactor for inline radios and checkboxes and templates

* fieldRender refactor continued

* minor bugfix for getTemplate

* Add Quill support for rich text editing

* Fix tinymce and getScripts caching

* refactor for lower filesize

* Bugfix: disabled tooltip forn appended and prepended fields

* Add mini dom library, working autocomplete

* Fix preview value binding

* update variable

quill WIP

* Upgrade dependencies

* start disabled subtypes, extendable actionButtons WIP, text-overflow for controls

* Minors updates, jsdoc-ing

* stickyControls and Autocomplete field updates

* Bugfix: inputSet drag #368, btnStyle

* Add polyfill for ie11 #365

* Fix ie11 forEach

* Bugfix: Custom class and name attrs #355

* Bugfix: date form-control default class #351

* demo build

* Update icon font label, fix bug where custom classname and name are not used #355

* Fix Custom names, Checkbox field show 2 labels in editor #345

* Update icon font

* Update fonts, stage labels

* HTML labels WIP

* Bugfix: select field multiple options

* Doc updates WIP

* update bower deps

* Module abstraction WIP

* Upgrade packages fix style lint

* Start editorUI render function, Refactor WIP

* fix demo.js

* refactor WIP

* Start new i18n support

* multiple instance refactor WIP

* refactor WIP

* helpers refactor WIP, return promise option for formBuilder

* fix template map issue

* Begin merging checkbox and checkbox-group

* Allow underscore in attribut name 😢, Resolves #300

* Enable custom fields and templates

* fix textarea not saving value

* Add lang files for demo

* fix placeholder strings

* Fix paragraph template, update on toggle edit

* v2.0-beta

* Replace kc-toggle plugin with css only toggle solution (#412)

* Fix control drag issue

* Temporarily remove scrollIntoView(too jarring), autocomplete styling should be available for form-render.css also

* Fix required asterisk, make formData a getter

* Change default lang location

* required asterisk style update

* correct version number

* Enable html labels

* XML options rendering resolves #380

* Button not draggable resolves #378

* XML save updates

* Remove unused strings

* Fix preview layout issue, html labels
  • Loading branch information
kevinchappell authored Apr 18, 2017
1 parent 0ff75d0 commit 7f184c1
Show file tree
Hide file tree
Showing 13 changed files with 13,617 additions and 48 deletions.
1,172 changes: 1,172 additions & 0 deletions assets/css/form-builder.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/form-builder.min.css

Large diffs are not rendered by default.

308 changes: 308 additions & 0 deletions assets/css/form-render.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,308 @@
.kc-toggle {
padding-left: 0 !important; }
.kc-toggle span {
position: relative;
width: 48px;
height: 24px;
background: #e6e6e6;
display: inline-block;
border-radius: 4px;
border: 1px solid #cccccc;
padding: 2px;
overflow: hidden;
float: left;
margin-right: 5px; }
.kc-toggle span::after, .kc-toggle span::before {
position: absolute;
display: inline-block;
top: 0; }
.kc-toggle span::after {
position: relative;
content: '';
width: 50%;
height: 100%;
left: 0;
border-radius: 3px;
background: -webkit-linear-gradient(top, white 0%, #ccc 100%);
background: linear-gradient(to bottom, white 0%, #ccc 100%);
border: 1px solid #999999;
-webkit-transition: -webkit-transform 50ms;
transition: -webkit-transform 50ms;
transition: transform 50ms;
transition: transform 50ms, -webkit-transform 50ms;
-webkit-transform: translateX(0);
transform: translateX(0); }
.kc-toggle span::before {
border-radius: 4px;
top: 2px;
left: 2px;
content: '';
width: calc(100% - 4px);
height: 18px;
box-shadow: 0 0 1px 1px #b3b3b3 inset;
background-color: transparent; }
.kc-toggle input {
height: 0;
overflow: hidden;
width: 0;
opacity: 0;
pointer-events: none;
margin: 0; }
.kc-toggle input:checked + span::after {
-webkit-transform: translateX(100%);
transform: translateX(100%); }
.kc-toggle input:checked + span::before {
background-color: #6fc665; }

.rendered-form * {
box-sizing: border-box; }

.rendered-form button,
.rendered-form input,
.rendered-form select,
.rendered-form textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit; }

.rendered-form input {
line-height: normal; }

.rendered-form button,
.rendered-form input,
.rendered-form optgroup,
.rendered-form select,
.rendered-form textarea {
margin: 0;
font: inherit;
color: inherit; }

.rendered-form textarea {
overflow: auto; }

.rendered-form button,
.rendered-form input,
.rendered-form select,
.rendered-form textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit; }

.rendered-form .btn-group {
position: relative;
display: inline-block;
vertical-align: middle; }
.rendered-form .btn-group > .btn {
position: relative;
float: left; }
.rendered-form .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
border-top-right-radius: 0;
border-bottom-right-radius: 0; }
.rendered-form .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
border-radius: 0; }
.rendered-form .btn-group .btn + .btn,
.rendered-form .btn-group .btn + .btn-group,
.rendered-form .btn-group .btn-group + .btn,
.rendered-form .btn-group .btn-group + .btn-group {
margin-left: -1px; }
.rendered-form .btn-group > .btn:last-child:not(:first-child),
.rendered-form .btn-group > .dropdown-toggle:not(:first-child),
.rendered-form .btn-group .input-group .form-control:last-child,
.rendered-form .btn-group .input-group-addon:last-child,
.rendered-form .btn-group .input-group-btn:first-child > .btn-group:not(:first-child) > .btn,
.rendered-form .btn-group .input-group-btn:first-child > .btn:not(:first-child),
.rendered-form .btn-group .input-group-btn:last-child > .btn,
.rendered-form .btn-group .input-group-btn:last-child > .btn-group > .btn, .rendered-form .btn-group .input-group-btn:last-child > .dropdown-toggle {
border-top-left-radius: 0;
border-bottom-left-radius: 0; }
.rendered-form .btn-group > .btn.active,
.rendered-form .btn-group > .btn:active,
.rendered-form .btn-group > .btn:focus,
.rendered-form .btn-group > .btn:hover {
z-index: 2; }

.rendered-form .btn {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border-radius: 4px; }
.rendered-form .btn.btn-lg {
padding: 10px 16px;
font-size: 18px;
line-height: 1.3333333;
border-radius: 6px; }
.rendered-form .btn.btn-sm {
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px; }
.rendered-form .btn.btn-xs {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px; }
.rendered-form .btn.active, .rendered-form .btn.btn-active, .rendered-form .btn:active {
background-image: none; }

.rendered-form .input-group .form-control:last-child,
.rendered-form .input-group-addon:last-child,
.rendered-form .input-group-btn:first-child > .btn-group:not(:first-child) > .btn,
.rendered-form .input-group-btn:first-child > .btn:not(:first-child),
.rendered-form .input-group-btn:last-child > .btn,
.rendered-form .input-group-btn:last-child > .btn-group > .btn,
.rendered-form .input-group-btn:last-child > .dropdown-toggle {
border-top-left-radius: 0;
border-bottom-left-radius: 0; }

.rendered-form .input-group .form-control,
.rendered-form .input-group-addon,
.rendered-form .input-group-btn {
display: table-cell; }

.rendered-form .input-group-lg > .form-control,
.rendered-form .input-group-lg > .input-group-addon,
.rendered-form .input-group-lg > .input-group-btn > .btn {
height: 46px;
padding: 10px 16px;
font-size: 18px;
line-height: 1.3333333;
border-radius: 6px; }

.rendered-form .input-group {
position: relative;
display: table;
border-collapse: separate; }
.rendered-form .input-group .form-control {
position: relative;
z-index: 2;
float: left;
width: 100%;
margin-bottom: 0; }

.rendered-form .form-control,
.rendered-form output {
font-size: 14px;
line-height: 1.42857143;
display: block; }

.rendered-form textarea.form-control {
height: auto; }

.rendered-form .form-control {
height: 34px;
display: block;
width: 100%;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
border-radius: 4px; }
.rendered-form .form-control:focus {
outline: 0;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); }

.rendered-form .form-group {
margin-left: 0px;
margin-bottom: 15px; }

.rendered-form .btn,
.rendered-form .form-control {
background-image: none; }

.rendered-form .pull-right {
float: right; }

.rendered-form .pull-left {
float: left; }

.rendered-form .required,
.rendered-form .required-asterisk {
color: #c10000; }

.rendered-form .fb-autocomplete-list {
background-color: #fff;
display: none;
list-style: none;
padding: 0;
border: 1px solid #ccc;
border-width: 0 1px 1px;
position: absolute;
z-index: 20;
max-height: 200px;
overflow-y: auto; }
.rendered-form .fb-autocomplete-list li {
display: none;
cursor: default;
padding: 5px;
margin: 0;
-webkit-transition: background-color 200ms ease-in-out;
transition: background-color 200ms ease-in-out; }
.rendered-form .fb-autocomplete-list li:hover, .rendered-form .fb-autocomplete-list li.active-option {
background-color: rgba(0, 0, 0, 0.075); }

.form-group .required {
color: #c10000; }

*[tooltip] {
position: relative; }

*[tooltip]:hover::after {
background: rgba(0, 0, 0, 0.9);
border-radius: 5px 5px 5px 0;
bottom: 23px;
color: #fff;
content: attr(tooltip);
padding: 10px 5px;
position: absolute;
z-index: 98;
left: 2px;
width: 230px;
text-shadow: none;
font-size: 12px;
line-height: 1.5em; }

*[tooltip]:hover::before {
border: solid;
border-color: #222 transparent;
border-width: 6px 6px 0;
bottom: 17px;
content: '';
left: 2px;
position: absolute;
z-index: 99; }

.tooltip-element {
color: #fff;
background: #000;
width: 16px;
height: 16px;
border-radius: 8px;
display: inline-block;
text-align: center;
line-height: 16px;
margin: 0 5px;
font-size: 12px; }

.form-control.number {
width: auto; }

.form-control[type='color'] {
width: 60px;
padding: 2px;
display: inline-block; }

.form-control[multiple] {
height: auto; }
Loading

0 comments on commit 7f184c1

Please sign in to comment.