Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
muhimasri committed Aug 15, 2021
1 parent 13918a0 commit 1b309da
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 37 deletions.
31 changes: 14 additions & 17 deletions dist/b-editable-table.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11917,7 +11917,7 @@ var BTable = /*#__PURE__*/Vue.extend({
});

var script = Vue.extend({
name: 'BEditableTable',
name: "BEditableTable",
components: {
BTable,
BFormDatepicker,
Expand All @@ -11934,10 +11934,10 @@ var script = Vue.extend({
focus: {
inserted: function (el, event) {
switch (event.value) {
case 'checkbox':
case "checkbox":
el.children[0].focus();

case 'date':
case "date":
el.children[0].focus();

default:
Expand All @@ -11955,10 +11955,10 @@ var script = Vue.extend({
}
};

document.addEventListener('click', el.clickOutsideEvent);
document.addEventListener("click", el.clickOutsideEvent);
},
unbind: function (el) {
document.removeEventListener('click', el.clickOutsideEvent);
document.removeEventListener("click", el.clickOutsideEvent);
}
}
},
Expand All @@ -11984,7 +11984,7 @@ var script = Vue.extend({
},

handleKeydown(e, index, data) {
if (e.code === 'Tab') {
if (e.code === "Tab") {
e.preventDefault();
let fieldIndex = this.fields.length - 1 === index ? 0 : index + 1;
let rowIndex = this.fields.length - 1 === index ? data.index + 1 : data.index;
Expand All @@ -12002,7 +12002,7 @@ var script = Vue.extend({
fieldIndex = i;
this.selectedCell = this.fields[fieldIndex].key;
this.selectedRow = rowIndex;
} else if (e.code === 'Escape') {
} else if (e.code === "Escape") {
e.preventDefault();
this.selectedCell = null;
this.selectedRow = null;
Expand Down Expand Up @@ -12167,7 +12167,7 @@ var __vue_render__ = function () {
return {
key: "cell(" + field.key + ")",
fn: function (data) {
return [field.type === 'date' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-datepicker', {
return [field.type === 'date' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-datepicker', _vm._b({
directives: [{
name: "focus",
rawName: "v-focus",
Expand Down Expand Up @@ -12195,15 +12195,12 @@ var __vue_render__ = function () {
},
expression: "items[data.index][field.key]"
}
}) : field.type === 'select' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-select', {
}, 'b-form-datepicker', Object.assign({}, field), false)) : field.type === 'select' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-select', _vm._b({
directives: [{
name: "focus",
rawName: "v-focus"
}],
key: index,
attrs: {
"options": field.options
},
on: {
"change": function ($event) {
return _vm.$emit('input-change', $event, data);
Expand All @@ -12221,7 +12218,7 @@ var __vue_render__ = function () {
},
expression: "items[data.index][field.key]"
}
}) : field.type === 'checkbox' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-checkbox', {
}, 'b-form-select', Object.assign({}, field), false)) : field.type === 'checkbox' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-checkbox', _vm._b({
directives: [{
name: "focus",
rawName: "v-focus",
Expand All @@ -12246,7 +12243,7 @@ var __vue_render__ = function () {
},
expression: "items[data.index][field.key]"
}
}) : field.type === 'rating' && field.type && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-rating', {
}, 'b-form-checkbox', Object.assign({}, field), false)) : field.type === 'rating' && field.type && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-rating', _vm._b({
directives: [{
name: "focus",
rawName: "v-focus"
Expand All @@ -12270,7 +12267,7 @@ var __vue_render__ = function () {
},
expression: "items[data.index][field.key]"
}
}) : field.type && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-input', {
}, 'b-form-rating', Object.assign({}, field), false)) : field.type && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-input', _vm._b({
directives: [{
name: "focus",
rawName: "v-focus"
Expand All @@ -12294,7 +12291,7 @@ var __vue_render__ = function () {
},
expression: "items[data.index][field.key]"
}
}) : _c('span', {
}, 'b-form-input', Object.assign({}, field), false)) : _c('span', {
key: index,
staticClass: "data-cell",
on: {
Expand All @@ -12321,7 +12318,7 @@ var __vue_staticRenderFns__ = [];

const __vue_inject_styles__ = function (inject) {
if (!inject) return;
inject("data-v-e3921fa0_0", {
inject("data-v-1f18c6de_0", {
source: ".data-cell{display:flex;width:100%}",
map: undefined,
media: undefined
Expand Down
2 changes: 1 addition & 1 deletion dist/b-editable-table.min.js

Large diffs are not rendered by default.

33 changes: 15 additions & 18 deletions dist/b-editable-table.ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -11756,7 +11756,7 @@ var BTable = /*#__PURE__*/Vue__default['default'].extend({
props: props // Render function is provided by `tableRendererMixin`

});var script = Vue__default['default'].extend({
name: 'BEditableTable',
name: "BEditableTable",
components: {
BTable: BTable,
BFormDatepicker: BFormDatepicker,
Expand All @@ -11773,10 +11773,10 @@ var BTable = /*#__PURE__*/Vue__default['default'].extend({
focus: {
inserted: function inserted(el, event) {
switch (event.value) {
case 'checkbox':
case "checkbox":
el.children[0].focus();

case 'date':
case "date":
el.children[0].focus();

default:
Expand All @@ -11794,10 +11794,10 @@ var BTable = /*#__PURE__*/Vue__default['default'].extend({
}
};

document.addEventListener('click', el.clickOutsideEvent);
document.addEventListener("click", el.clickOutsideEvent);
},
unbind: function unbind(el) {
document.removeEventListener('click', el.clickOutsideEvent);
document.removeEventListener("click", el.clickOutsideEvent);
}
}
},
Expand All @@ -11820,7 +11820,7 @@ var BTable = /*#__PURE__*/Vue__default['default'].extend({
this.selectedRow = index;
},
handleKeydown: function handleKeydown(e, index, data) {
if (e.code === 'Tab') {
if (e.code === "Tab") {
e.preventDefault();
var fieldIndex = this.fields.length - 1 === index ? 0 : index + 1;
var rowIndex = this.fields.length - 1 === index ? data.index + 1 : data.index;
Expand All @@ -11838,7 +11838,7 @@ var BTable = /*#__PURE__*/Vue__default['default'].extend({
fieldIndex = i;
this.selectedCell = this.fields[fieldIndex].key;
this.selectedRow = rowIndex;
} else if (e.code === 'Escape') {
} else if (e.code === "Escape") {
e.preventDefault();
this.selectedCell = null;
this.selectedRow = null;
Expand Down Expand Up @@ -11984,7 +11984,7 @@ var __vue_render__ = function __vue_render__() {
return {
key: "cell(" + field.key + ")",
fn: function fn(data) {
return [field.type === 'date' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-datepicker', {
return [field.type === 'date' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-datepicker', _vm._b({
directives: [{
name: "focus",
rawName: "v-focus",
Expand Down Expand Up @@ -12012,15 +12012,12 @@ var __vue_render__ = function __vue_render__() {
},
expression: "items[data.index][field.key]"
}
}) : field.type === 'select' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-select', {
}, 'b-form-datepicker', Object.assign({}, field), false)) : field.type === 'select' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-select', _vm._b({
directives: [{
name: "focus",
rawName: "v-focus"
}],
key: index,
attrs: {
"options": field.options
},
on: {
"change": function change($event) {
return _vm.$emit('input-change', $event, data);
Expand All @@ -12038,7 +12035,7 @@ var __vue_render__ = function __vue_render__() {
},
expression: "items[data.index][field.key]"
}
}) : field.type === 'checkbox' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-checkbox', {
}, 'b-form-select', Object.assign({}, field), false)) : field.type === 'checkbox' && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-checkbox', _vm._b({
directives: [{
name: "focus",
rawName: "v-focus",
Expand All @@ -12063,7 +12060,7 @@ var __vue_render__ = function __vue_render__() {
},
expression: "items[data.index][field.key]"
}
}) : field.type === 'rating' && field.type && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-rating', {
}, 'b-form-checkbox', Object.assign({}, field), false)) : field.type === 'rating' && field.type && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-rating', _vm._b({
directives: [{
name: "focus",
rawName: "v-focus"
Expand All @@ -12087,7 +12084,7 @@ var __vue_render__ = function __vue_render__() {
},
expression: "items[data.index][field.key]"
}
}) : field.type && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-input', {
}, 'b-form-rating', Object.assign({}, field), false)) : field.type && _vm.selectedRow === data.index && _vm.selectedCell === field.key && field.editable ? _c('b-form-input', _vm._b({
directives: [{
name: "focus",
rawName: "v-focus"
Expand All @@ -12111,7 +12108,7 @@ var __vue_render__ = function __vue_render__() {
},
expression: "items[data.index][field.key]"
}
}) : _c('span', {
}, 'b-form-input', Object.assign({}, field), false)) : _c('span', {
key: index,
staticClass: "data-cell",
on: {
Expand All @@ -12138,7 +12135,7 @@ var __vue_staticRenderFns__ = [];

var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
if (!inject) return;
inject("data-v-e3921fa0_0", {
inject("data-v-1f18c6de_0", {
source: ".data-cell{display:flex;width:100%}",
map: undefined,
media: undefined
Expand All @@ -12150,7 +12147,7 @@ var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
var __vue_scope_id__ = undefined;
/* module identifier */

var __vue_module_identifier__ = "data-v-e3921fa0";
var __vue_module_identifier__ = "data-v-1f18c6de";
/* functional template */

var __vue_is_functional_template__ = false;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-vue-editable-table",
"version": "0.1.0-beta.8",
"version": "0.1.0-beta.9",
"description": "A Bootstrap Vue editable table for editing cells using built-in Bootstrap form elements",
"repository": {
"type": "git",
Expand Down

0 comments on commit 1b309da

Please sign in to comment.