vue-laravel-crud 1.8.3 → 1.8.4
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.
- package/dist/vue-laravel-crud.esm.js +84 -71
- package/dist/vue-laravel-crud.min.js +2 -2
- package/dist/vue-laravel-crud.ssr.js +92 -70
- package/package.json +1 -1
- package/src/vue-laravel-crud.vue +54 -35
|
@@ -12724,7 +12724,7 @@ var _sfc_render$1 = function render() {
|
|
|
12724
12724
|
};
|
|
12725
12725
|
var _sfc_staticRenderFns$1 = [];
|
|
12726
12726
|
var __component__$1 = /*#__PURE__*/normalizeComponent(_sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
|
|
12727
|
-
var ItemCard = __component__$1.exports;var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}var css = "tr td[data-v-
|
|
12727
|
+
var ItemCard = __component__$1.exports;var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}var css = "tr td[data-v-9859c699]:last-child,\ntr td[data-v-9859c699]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-9859c699] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-9859c699] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-9859c699] .crud-title[data-v-9859c699] {\n margin: 0; }\n .crud-header[data-v-9859c699] .crud-search[data-v-9859c699] {\n max-width: 15rem; }\n .crud-header[data-v-9859c699] .crud-search[data-v-9859c699] .btn[data-v-9859c699] {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem; }\n .crud-header[data-v-9859c699] .crud-search[data-v-9859c699] .btn[data-v-9859c699].open[data-v-9859c699] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-9859c699] .table-options[data-v-9859c699] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-9859c699] {\n position: relative; }\n\n@media (min-width: 992px) {\n .table[data-v-9859c699] {\n table-layout: auto; }\n .table[data-v-9859c699] tbody[data-v-9859c699] td[data-v-9859c699] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-9859c699] tbody[data-v-9859c699] td[data-v-9859c699]::-webkit-scrollbar {\n display: none; } }\n\n.kanban-board[data-v-9859c699] {\n display: flex;\n gap: 1rem;\n overflow-x: auto;\n padding: 1rem; }\n\n.kanban-column[data-v-9859c699] {\n background: #f4f5f7;\n border-radius: 8px;\n width: 300px;\n display: flex;\n flex-direction: column;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }\n\n.kanban-column-header[data-v-9859c699] {\n font-weight: bold;\n padding: 0.5rem;\n background: #dfe1e6;\n border-radius: 8px 8px 0 0;\n text-align: center; }\n\n.kanban-column-body[data-v-9859c699] {\n padding: 0.5rem;\n min-height: 100px;\n background: #ffffff;\n border-radius: 0 0 8px 8px;\n display: flex;\n flex-direction: column;\n gap: 0.5rem; }\n\n.kanban-card[data-v-9859c699] {\n background: #ffffff;\n border-radius: 4px;\n padding: 1rem;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n cursor: grab; }\n";
|
|
12728
12728
|
n(css, {});var _sfc_main = {
|
|
12729
12729
|
name: "VueLaravelCrud",
|
|
12730
12730
|
components: {
|
|
@@ -13044,6 +13044,10 @@ n(css, {});var _sfc_main = {
|
|
|
13044
13044
|
type: String,
|
|
13045
13045
|
default: ""
|
|
13046
13046
|
},
|
|
13047
|
+
groupedSplit: {
|
|
13048
|
+
type: Boolean,
|
|
13049
|
+
default: false
|
|
13050
|
+
},
|
|
13047
13051
|
draggableGroup: {
|
|
13048
13052
|
type: String,
|
|
13049
13053
|
default: "people"
|
|
@@ -13167,6 +13171,12 @@ n(css, {});var _sfc_main = {
|
|
|
13167
13171
|
}
|
|
13168
13172
|
};
|
|
13169
13173
|
},
|
|
13174
|
+
isSplitGroups: function isSplitGroups() {
|
|
13175
|
+
if (this.groupedSplit) {
|
|
13176
|
+
return true;
|
|
13177
|
+
}
|
|
13178
|
+
return this.displayMode == this.displayModes.MODE_KANBAN;
|
|
13179
|
+
},
|
|
13170
13180
|
itemsList: function itemsList() {
|
|
13171
13181
|
var items = this.ajax ? this.items : this.items.slice(this.paginationIndexStart, this.paginationIndexEnd);
|
|
13172
13182
|
if (this.masonrySort && !this.isMobile) {
|
|
@@ -13608,7 +13618,7 @@ n(css, {});var _sfc_main = {
|
|
|
13608
13618
|
var items = response.data.data;
|
|
13609
13619
|
if (_this12.grouped) {
|
|
13610
13620
|
//this.items = items;
|
|
13611
|
-
_this12.groupItems(items, concat);
|
|
13621
|
+
_this12.groupItems(items, concat, _this12.isSplitGroups);
|
|
13612
13622
|
} else {
|
|
13613
13623
|
if (concat) {
|
|
13614
13624
|
_this12.items = _this12.items.concat(items);
|
|
@@ -13629,35 +13639,52 @@ n(css, {});var _sfc_main = {
|
|
|
13629
13639
|
},
|
|
13630
13640
|
groupItems: function groupItems(items) {
|
|
13631
13641
|
var concat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
13632
|
-
var
|
|
13633
|
-
var
|
|
13634
|
-
var
|
|
13635
|
-
var
|
|
13636
|
-
var
|
|
13637
|
-
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13642
|
+
var splitGroups = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
13643
|
+
var groupedAttribute = this.groupedAttribute;
|
|
13644
|
+
var groupLabelPre = this.groupedLabelPre || '';
|
|
13645
|
+
var groupLabelAfter = this.groupedLabelAfter || '';
|
|
13646
|
+
var itemsWithGroup = [];
|
|
13647
|
+
|
|
13648
|
+
// Usamos un objeto para agrupar los elementos por groupedAttribute
|
|
13649
|
+
var groupedMap = items.reduce(function (acc, item) {
|
|
13650
|
+
var groupKey = item[groupedAttribute] || 'undefined';
|
|
13651
|
+
if (!acc[groupKey]) {
|
|
13652
|
+
acc[groupKey] = [];
|
|
13653
|
+
}
|
|
13654
|
+
acc[groupKey].push(item);
|
|
13655
|
+
return acc;
|
|
13656
|
+
}, {});
|
|
13657
|
+
if (splitGroups) {
|
|
13658
|
+
// Dividimos los grupos en arrays separados
|
|
13659
|
+
this.items = Object.entries(groupedMap).map(function (_ref) {
|
|
13660
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
13661
|
+
groupKey = _ref2[0],
|
|
13662
|
+
groupItems = _ref2[1];
|
|
13663
|
+
return {
|
|
13664
|
+
groupKey: groupKey,
|
|
13665
|
+
groupLabel: groupLabelPre + groupKey + groupLabelAfter,
|
|
13666
|
+
items: groupItems
|
|
13667
|
+
};
|
|
13668
|
+
});
|
|
13669
|
+
} else {
|
|
13670
|
+
// Creamos la estructura agrupada en un solo array
|
|
13671
|
+
for (var _i2 = 0, _Object$entries = Object.entries(groupedMap); _i2 < _Object$entries.length; _i2++) {
|
|
13672
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries[_i2], 2),
|
|
13673
|
+
groupKey = _Object$entries$_i[0],
|
|
13674
|
+
groupItems = _Object$entries$_i[1];
|
|
13675
|
+
itemsWithGroup.push({
|
|
13676
|
+
crudgrouplabel: groupLabelPre + groupKey + groupLabelAfter,
|
|
13677
|
+
crudgroup: true
|
|
13645
13678
|
});
|
|
13679
|
+
itemsWithGroup.push.apply(itemsWithGroup, _toConsumableArray$1(groupItems));
|
|
13680
|
+
}
|
|
13681
|
+
|
|
13682
|
+
// Decidimos si concatenar o reemplazar los items existentes
|
|
13683
|
+
if (concat) {
|
|
13684
|
+
this.items = this.items.concat(itemsWithGroup);
|
|
13646
13685
|
} else {
|
|
13647
|
-
|
|
13648
|
-
lastcomparevalue = item[compareattr];
|
|
13649
|
-
itemswithgroup.push({
|
|
13650
|
-
crudgrouplabel: groupLabelPre + lastcomparevalue + groupLabelAfter,
|
|
13651
|
-
crudgroup: true
|
|
13652
|
-
});
|
|
13653
|
-
}
|
|
13654
|
-
itemswithgroup.push(item);
|
|
13686
|
+
this.items = itemsWithGroup;
|
|
13655
13687
|
}
|
|
13656
|
-
});
|
|
13657
|
-
if (concat) {
|
|
13658
|
-
this.items = this.items.concat(itemswithgroup);
|
|
13659
|
-
} else {
|
|
13660
|
-
this.items = itemswithgroup;
|
|
13661
13688
|
}
|
|
13662
13689
|
},
|
|
13663
13690
|
removeItem: function removeItem(id, index) {
|
|
@@ -15154,29 +15181,26 @@ var _sfc_render = function render() {
|
|
|
15154
15181
|
700: '15px'
|
|
15155
15182
|
}
|
|
15156
15183
|
}
|
|
15157
|
-
}, _vm._l(_vm.itemsList, function (item,
|
|
15184
|
+
}, _vm._l(_vm.itemsList, function (item, itemIndex) {
|
|
15158
15185
|
return _c('div', {
|
|
15159
|
-
key:
|
|
15186
|
+
key: itemIndex,
|
|
15160
15187
|
staticClass: "item"
|
|
15161
15188
|
}, [_vm._t("card", function () {
|
|
15162
|
-
return
|
|
15163
|
-
|
|
15164
|
-
|
|
15165
|
-
|
|
15166
|
-
|
|
15167
|
-
|
|
15168
|
-
|
|
15169
|
-
|
|
15170
|
-
|
|
15171
|
-
|
|
15172
|
-
|
|
15173
|
-
|
|
15174
|
-
|
|
15175
|
-
|
|
15176
|
-
|
|
15177
|
-
}
|
|
15178
|
-
});
|
|
15179
|
-
});
|
|
15189
|
+
return [_c('ItemCard', {
|
|
15190
|
+
attrs: {
|
|
15191
|
+
"item": item,
|
|
15192
|
+
"columns": _vm.columns,
|
|
15193
|
+
"index": itemIndex,
|
|
15194
|
+
"cardClass": _vm.cardClass,
|
|
15195
|
+
"cardHideFooter": _vm.cardHideFooter,
|
|
15196
|
+
"itemValue": _vm.itemValue,
|
|
15197
|
+
"getStateValue": _vm.getStateValue,
|
|
15198
|
+
"getArrayValue": _vm.getArrayValue,
|
|
15199
|
+
"showItem": _vm.showItem,
|
|
15200
|
+
"updateItem": _vm.updateItem,
|
|
15201
|
+
"removeItem": _vm.removeItem
|
|
15202
|
+
}
|
|
15203
|
+
})];
|
|
15180
15204
|
}, {
|
|
15181
15205
|
"item": item
|
|
15182
15206
|
})], 2);
|
|
@@ -15188,7 +15212,7 @@ var _sfc_render = function render() {
|
|
|
15188
15212
|
staticClass: "kanban-column"
|
|
15189
15213
|
}, [_c('div', {
|
|
15190
15214
|
staticClass: "kanban-column-header"
|
|
15191
|
-
}, [_vm._v(" " + _vm._s(
|
|
15215
|
+
}, [_vm._v(" " + _vm._s(column.groupLabel) + " ")]), _vm._v(" " + _vm._s(JSON.stringify(column)) + " "), _c('draggable', {
|
|
15192
15216
|
staticClass: "kanban-column-body",
|
|
15193
15217
|
attrs: {
|
|
15194
15218
|
"group": "kanban"
|
|
@@ -15203,29 +15227,27 @@ var _sfc_render = function render() {
|
|
|
15203
15227
|
},
|
|
15204
15228
|
expression: "column.items"
|
|
15205
15229
|
}
|
|
15206
|
-
}, _vm._l(
|
|
15230
|
+
}, _vm._l(column.items, function (item, itemIndex) {
|
|
15207
15231
|
return _c('div', {
|
|
15208
|
-
key:
|
|
15232
|
+
key: itemIndex,
|
|
15209
15233
|
staticClass: "item"
|
|
15210
15234
|
}, [_vm._t("card", function () {
|
|
15211
|
-
return
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15220
|
-
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
});
|
|
15228
|
-
});
|
|
15235
|
+
return [_c('ItemCard', {
|
|
15236
|
+
key: itemIndex,
|
|
15237
|
+
attrs: {
|
|
15238
|
+
"item": item,
|
|
15239
|
+
"columns": _vm.columns,
|
|
15240
|
+
"index": _vm.index,
|
|
15241
|
+
"cardClass": _vm.cardClass,
|
|
15242
|
+
"cardHideFooter": _vm.cardHideFooter,
|
|
15243
|
+
"itemValue": _vm.itemValue,
|
|
15244
|
+
"getStateValue": _vm.getStateValue,
|
|
15245
|
+
"getArrayValue": _vm.getArrayValue,
|
|
15246
|
+
"showItem": _vm.showItem,
|
|
15247
|
+
"updateItem": _vm.updateItem,
|
|
15248
|
+
"removeItem": _vm.removeItem
|
|
15249
|
+
}
|
|
15250
|
+
})];
|
|
15229
15251
|
}, {
|
|
15230
15252
|
"item": item
|
|
15231
15253
|
})], 2);
|
|
@@ -15511,7 +15533,7 @@ var _sfc_render = function render() {
|
|
|
15511
15533
|
}) : _vm._e()], 2) : _vm._e()], 1);
|
|
15512
15534
|
};
|
|
15513
15535
|
var _sfc_staticRenderFns = [];
|
|
15514
|
-
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "
|
|
15536
|
+
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "9859c699", null, null);
|
|
15515
15537
|
var component$1 = __component__.exports;// Import vue component
|
|
15516
15538
|
|
|
15517
15539
|
// Default export is installable instance of component.
|
package/package.json
CHANGED
package/src/vue-laravel-crud.vue
CHANGED
|
@@ -333,7 +333,10 @@ export default /*#__PURE__*/ {
|
|
|
333
333
|
type: String,
|
|
334
334
|
default: "",
|
|
335
335
|
},
|
|
336
|
-
|
|
336
|
+
groupedSplit: {
|
|
337
|
+
type: Boolean,
|
|
338
|
+
default: false,
|
|
339
|
+
},
|
|
337
340
|
draggableGroup: {
|
|
338
341
|
type: String,
|
|
339
342
|
default: "people",
|
|
@@ -488,6 +491,15 @@ export default /*#__PURE__*/ {
|
|
|
488
491
|
}
|
|
489
492
|
};
|
|
490
493
|
},
|
|
494
|
+
|
|
495
|
+
isSplitGroups(){
|
|
496
|
+
|
|
497
|
+
if(this.groupedSplit){
|
|
498
|
+
return true;
|
|
499
|
+
}
|
|
500
|
+
return this.displayMode == this.displayModes.MODE_KANBAN;
|
|
501
|
+
|
|
502
|
+
},
|
|
491
503
|
itemsList() {
|
|
492
504
|
const items = this.ajax ? this.items : this.items.slice(this.paginationIndexStart, this.paginationIndexEnd);
|
|
493
505
|
if (this.masonrySort && !this.isMobile) {
|
|
@@ -930,7 +942,7 @@ export default /*#__PURE__*/ {
|
|
|
930
942
|
let items = response.data.data;
|
|
931
943
|
if (this.grouped) {
|
|
932
944
|
//this.items = items;
|
|
933
|
-
this.groupItems(items, concat);
|
|
945
|
+
this.groupItems(items, concat,this.isSplitGroups);
|
|
934
946
|
} else {
|
|
935
947
|
if (concat) {
|
|
936
948
|
this.items = this.items.concat(items);
|
|
@@ -951,38 +963,45 @@ export default /*#__PURE__*/ {
|
|
|
951
963
|
this.fetchError = true;
|
|
952
964
|
});
|
|
953
965
|
},
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
items.
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
+
groupItems(items, concat = false, splitGroups = false) {
|
|
967
|
+
const groupedAttribute = this.groupedAttribute;
|
|
968
|
+
const groupLabelPre = this.groupedLabelPre || '';
|
|
969
|
+
const groupLabelAfter = this.groupedLabelAfter || '';
|
|
970
|
+
const itemsWithGroup = [];
|
|
971
|
+
|
|
972
|
+
// Usamos un objeto para agrupar los elementos por groupedAttribute
|
|
973
|
+
const groupedMap = items.reduce((acc, item) => {
|
|
974
|
+
const groupKey = item[groupedAttribute] || 'undefined';
|
|
975
|
+
if (!acc[groupKey]) {
|
|
976
|
+
acc[groupKey] = [];
|
|
977
|
+
}
|
|
978
|
+
acc[groupKey].push(item);
|
|
979
|
+
return acc;
|
|
980
|
+
}, {});
|
|
981
|
+
|
|
982
|
+
if (splitGroups) {
|
|
983
|
+
// Dividimos los grupos en arrays separados
|
|
984
|
+
this.items = Object.entries(groupedMap).map(([groupKey, groupItems]) => ({
|
|
985
|
+
groupKey,
|
|
986
|
+
groupLabel: groupLabelPre + groupKey + groupLabelAfter,
|
|
987
|
+
items: groupItems,
|
|
988
|
+
}));
|
|
989
|
+
} else {
|
|
990
|
+
// Creamos la estructura agrupada en un solo array
|
|
991
|
+
for (const [groupKey, groupItems] of Object.entries(groupedMap)) {
|
|
992
|
+
itemsWithGroup.push({
|
|
993
|
+
crudgrouplabel: groupLabelPre + groupKey + groupLabelAfter,
|
|
994
|
+
crudgroup: true,
|
|
966
995
|
});
|
|
996
|
+
itemsWithGroup.push(...groupItems);
|
|
997
|
+
}
|
|
967
998
|
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
999
|
+
// Decidimos si concatenar o reemplazar los items existentes
|
|
1000
|
+
if (concat) {
|
|
1001
|
+
this.items = this.items.concat(itemsWithGroup);
|
|
971
1002
|
} else {
|
|
972
|
-
|
|
973
|
-
lastcomparevalue = item[compareattr];
|
|
974
|
-
itemswithgroup.push({
|
|
975
|
-
crudgrouplabel: groupLabelPre + lastcomparevalue + groupLabelAfter,
|
|
976
|
-
crudgroup: true,
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
|
-
itemswithgroup.push(item);
|
|
1003
|
+
this.items = itemsWithGroup;
|
|
980
1004
|
}
|
|
981
|
-
});
|
|
982
|
-
if (concat) {
|
|
983
|
-
this.items = this.items.concat(itemswithgroup);
|
|
984
|
-
} else {
|
|
985
|
-
this.items = itemswithgroup;
|
|
986
1005
|
}
|
|
987
1006
|
},
|
|
988
1007
|
removeItem(id, index) {
|
|
@@ -1969,9 +1988,9 @@ export default /*#__PURE__*/ {
|
|
|
1969
1988
|
<masonry
|
|
1970
1989
|
:cols="{ default: 12 / colLg, 1400: 12 / colXl, 1200: 12 / colLg, 1000: 12 / colMd, 700: 12 / colSm, 400: 12 / colXs }"
|
|
1971
1990
|
:gutter="{ default: '15px', 700: '15px' }">
|
|
1972
|
-
<div v-for="(item,
|
|
1991
|
+
<div v-for="(item, itemIndex) in itemsList" v-bind:key="itemIndex" class="item">
|
|
1973
1992
|
<slot name="card" v-bind:item="item">
|
|
1974
|
-
<ItemCard
|
|
1993
|
+
<ItemCard :item="item" :columns="columns" :index="itemIndex"
|
|
1975
1994
|
:cardClass="cardClass" :cardHideFooter="cardHideFooter" :itemValue="itemValue"
|
|
1976
1995
|
:getStateValue="getStateValue" :getArrayValue="getArrayValue" :showItem="showItem"
|
|
1977
1996
|
:updateItem="updateItem" :removeItem="removeItem" />
|
|
@@ -1991,7 +2010,7 @@ export default /*#__PURE__*/ {
|
|
|
1991
2010
|
|
|
1992
2011
|
<div v-for="(column, colIndex) in items" :key="colIndex" class="kanban-column">
|
|
1993
2012
|
<div class="kanban-column-header">
|
|
1994
|
-
|
|
2013
|
+
{{ column.groupLabel }}
|
|
1995
2014
|
</div>
|
|
1996
2015
|
|
|
1997
2016
|
{{ JSON.stringify(column) }}
|
|
@@ -1999,9 +2018,9 @@ export default /*#__PURE__*/ {
|
|
|
1999
2018
|
|
|
2000
2019
|
<draggable v-model="column.items" group="kanban" class="kanban-column-body" @end="onDragEnd">
|
|
2001
2020
|
|
|
2002
|
-
<div v-for="(item,
|
|
2021
|
+
<div v-for="(item, itemIndex) in column.items" v-bind:key="itemIndex" class="item">
|
|
2003
2022
|
<slot name="card" v-bind:item="item">
|
|
2004
|
-
<ItemCard
|
|
2023
|
+
<ItemCard :key="itemIndex" :item="item" :columns="columns" :index="index"
|
|
2005
2024
|
:cardClass="cardClass" :cardHideFooter="cardHideFooter" :itemValue="itemValue"
|
|
2006
2025
|
:getStateValue="getStateValue" :getArrayValue="getArrayValue" :showItem="showItem"
|
|
2007
2026
|
:updateItem="updateItem" :removeItem="removeItem" />
|