@oniti/quasar-ui-vlank-collection-crud 3.7.57 → 3.7.58
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/index.common.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.umd.js +83 -200
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/components/Uses/exportData.js +5 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @oniti/quasar-ui-vlank-collection-crud v3.7.
|
|
2
|
+
* @oniti/quasar-ui-vlank-collection-crud v3.7.53
|
|
3
3
|
* (c) 2025 Oniti
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
(function (global, factory) {
|
|
8
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('vue'), require('quasar'), require('@oniti/oniti-helpers'), require('oniti-sse-client'), require('
|
|
9
|
-
typeof define === 'function' && define.amd ? define(['vue', 'quasar', '@oniti/oniti-helpers', 'oniti-sse-client', '
|
|
10
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.global = factory(global.Vue, global.Quasar, global.onitiHelpers, global.onitiSseClient, global.
|
|
11
|
-
})(this, (function (vue, quasar, onitiHelpers, onitiSseClient,
|
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('vue'), require('quasar'), require('@oniti/oniti-helpers'), require('oniti-sse-client'), require('vuex'), require('vue-router'), require('vlank-collection-crud-forms')) :
|
|
9
|
+
typeof define === 'function' && define.amd ? define(['vue', 'quasar', '@oniti/oniti-helpers', 'oniti-sse-client', 'vuex', 'vue-router', 'vlank-collection-crud-forms'], factory) :
|
|
10
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.global = factory(global.Vue, global.Quasar, global.onitiHelpers, global.onitiSseClient, global.vuex, global.vueRouter, global.Components));
|
|
11
|
+
})(this, (function (vue, quasar, onitiHelpers, onitiSseClient, vuex, vueRouter, Components) { 'use strict';
|
|
12
12
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
14
|
|
|
15
15
|
var onitiSseClient__default = /*#__PURE__*/_interopDefaultLegacy(onitiSseClient);
|
|
16
16
|
var Components__default = /*#__PURE__*/_interopDefaultLegacy(Components);
|
|
17
17
|
|
|
18
|
-
var _hoisted_1$4 = /*#__PURE__*/vue.createTextVNode("Suppression");
|
|
19
|
-
var _hoisted_2$4 = /*#__PURE__*/vue.createTextVNode("Confirmez vous la suppression ?");
|
|
20
|
-
|
|
21
|
-
|
|
22
18
|
var script$5 = {
|
|
23
19
|
__name: 'VlankDeleteModal',
|
|
24
20
|
props: {
|
|
@@ -29,16 +25,14 @@
|
|
|
29
25
|
},
|
|
30
26
|
emits: ['close'],
|
|
31
27
|
setup: function setup(__props, ref) {
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var props = __props;
|
|
28
|
+
var __emit = ref.emit;
|
|
36
29
|
|
|
37
30
|
|
|
31
|
+
var $emit = __emit;
|
|
38
32
|
|
|
39
33
|
var $collectionCrud = vue.inject('vlank-ccrud');
|
|
40
34
|
|
|
41
|
-
|
|
35
|
+
var props = __props;
|
|
42
36
|
|
|
43
37
|
function onConfirmeDelete() {
|
|
44
38
|
var obj;
|
|
@@ -72,8 +66,8 @@
|
|
|
72
66
|
var _directive_close_popup = vue.resolveDirective("close-popup");
|
|
73
67
|
|
|
74
68
|
return (vue.openBlock(), vue.createBlock(vue.unref(quasar.QDialog), vue.mergeProps({
|
|
75
|
-
modelValue:
|
|
76
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { return (
|
|
69
|
+
modelValue: alertLocalDelete.value,
|
|
70
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { return ((alertLocalDelete).value = $event); })
|
|
77
71
|
}, props.props.modalDeleteOptions.dialog, {
|
|
78
72
|
"transition-show": __props.isMobile ? 'slide-up' : 'fade',
|
|
79
73
|
"transition-hide": __props.isMobile ? 'slide-down' : 'fade',
|
|
@@ -109,9 +103,9 @@
|
|
|
109
103
|
_: 1 /* STABLE */
|
|
110
104
|
}))
|
|
111
105
|
: (vue.openBlock(), vue.createBlock(vue.unref(quasar.QToolbarTitle), { key: 1 }, {
|
|
112
|
-
default: vue.withCtx(function () { return [
|
|
113
|
-
|
|
114
|
-
]; }),
|
|
106
|
+
default: vue.withCtx(function () { return _cache[1] || (_cache[1] = [
|
|
107
|
+
vue.createTextVNode("Suppression")
|
|
108
|
+
]); }),
|
|
115
109
|
_: 1 /* STABLE */
|
|
116
110
|
}))
|
|
117
111
|
]; })
|
|
@@ -123,9 +117,9 @@
|
|
|
123
117
|
align: __props.isMobile ? 'center' : 'left',
|
|
124
118
|
style: {"padding":"30px"}
|
|
125
119
|
}, {
|
|
126
|
-
default: vue.withCtx(function () { return [
|
|
127
|
-
|
|
128
|
-
]; }),
|
|
120
|
+
default: vue.withCtx(function () { return _cache[2] || (_cache[2] = [
|
|
121
|
+
vue.createTextVNode("Confirmez vous la suppression ?")
|
|
122
|
+
]); }),
|
|
129
123
|
_: 1 /* STABLE */
|
|
130
124
|
}, 8 /* PROPS */, ["align"])
|
|
131
125
|
]; }),
|
|
@@ -162,10 +156,6 @@
|
|
|
162
156
|
|
|
163
157
|
script$5.__file = "src/components/VlankDeleteModal.vue";
|
|
164
158
|
|
|
165
|
-
var _hoisted_1$3 = /*#__PURE__*/vue.createTextVNode("Création");
|
|
166
|
-
var _hoisted_2$3 = /*#__PURE__*/vue.createTextVNode("Modification");
|
|
167
|
-
|
|
168
|
-
|
|
169
159
|
var script$4 = {
|
|
170
160
|
__name: 'VlankEditModal',
|
|
171
161
|
props: {
|
|
@@ -182,14 +172,12 @@
|
|
|
182
172
|
},
|
|
183
173
|
emits: ['close'],
|
|
184
174
|
setup: function setup(__props, ref$1) {
|
|
185
|
-
var
|
|
175
|
+
var __emit = ref$1.emit;
|
|
186
176
|
|
|
187
177
|
|
|
188
178
|
var props = __props;
|
|
189
179
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
180
|
+
var $emit = __emit;
|
|
193
181
|
var slots = vue.useSlots();
|
|
194
182
|
|
|
195
183
|
var $collectionCrud = vue.inject('vlank-ccrud');
|
|
@@ -282,8 +270,8 @@
|
|
|
282
270
|
|
|
283
271
|
return (vue.openBlock(), vue.createBlock(vue.unref(quasar.QDialog), vue.mergeProps({
|
|
284
272
|
class: { 'mobile-modal': __props.isMobile },
|
|
285
|
-
modelValue:
|
|
286
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { return (
|
|
273
|
+
modelValue: editModalLocal.value,
|
|
274
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { return ((editModalLocal).value = $event); })
|
|
287
275
|
}, props.modalEditOptions.dialog, {
|
|
288
276
|
"transition-show": __props.isMobile ? 'slide-left' : 'fade',
|
|
289
277
|
"transition-hide": __props.isMobile ? 'slide-right' : 'fade',
|
|
@@ -323,9 +311,9 @@
|
|
|
323
311
|
})),
|
|
324
312
|
(!props.localDetail.uuid)
|
|
325
313
|
? (vue.openBlock(), vue.createBlock(vue.unref(quasar.QToolbarTitle), { key: 2 }, {
|
|
326
|
-
default: vue.withCtx(function () { return [
|
|
327
|
-
|
|
328
|
-
]; }),
|
|
314
|
+
default: vue.withCtx(function () { return _cache[1] || (_cache[1] = [
|
|
315
|
+
vue.createTextVNode("Création")
|
|
316
|
+
]); }),
|
|
329
317
|
_: 1 /* STABLE */
|
|
330
318
|
}))
|
|
331
319
|
: (
|
|
@@ -341,13 +329,13 @@
|
|
|
341
329
|
_: 1 /* STABLE */
|
|
342
330
|
}, 8 /* PROPS */, ["class"]))
|
|
343
331
|
: (vue.openBlock(), vue.createBlock(vue.unref(quasar.QToolbarTitle), { key: 4 }, {
|
|
344
|
-
default: vue.withCtx(function () { return [
|
|
345
|
-
|
|
346
|
-
]; }),
|
|
332
|
+
default: vue.withCtx(function () { return _cache[2] || (_cache[2] = [
|
|
333
|
+
vue.createTextVNode("Modification")
|
|
334
|
+
]); }),
|
|
347
335
|
_: 1 /* STABLE */
|
|
348
336
|
}))
|
|
349
337
|
]; }),
|
|
350
|
-
(__props.isMobile && !
|
|
338
|
+
(__props.isMobile && !hasCustomModalActions.value && props.modalEditOptions.showBtn.valid)
|
|
351
339
|
? (vue.openBlock(), vue.createBlock(vue.unref(quasar.QBtn), {
|
|
352
340
|
key: 0,
|
|
353
341
|
flat: "",
|
|
@@ -405,7 +393,7 @@
|
|
|
405
393
|
close: close,
|
|
406
394
|
data: props.localDetail
|
|
407
395
|
}),
|
|
408
|
-
(!
|
|
396
|
+
(!hasCustomModalActions.value && props.modalEditOptions.showBtn.cancel)
|
|
409
397
|
? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(quasar.QBtn), {
|
|
410
398
|
key: 0,
|
|
411
399
|
flat: "",
|
|
@@ -415,7 +403,7 @@
|
|
|
415
403
|
[_directive_close_popup]
|
|
416
404
|
])
|
|
417
405
|
: vue.createCommentVNode("v-if", true),
|
|
418
|
-
(!
|
|
406
|
+
(!hasCustomModalActions.value && props.modalEditOptions.showBtn.valid)
|
|
419
407
|
? (vue.openBlock(), vue.createBlock(vue.unref(quasar.QBtn), {
|
|
420
408
|
key: 1,
|
|
421
409
|
flat: "",
|
|
@@ -482,16 +470,14 @@
|
|
|
482
470
|
},
|
|
483
471
|
emits: ['update', 'onEditCellHandler', 'onClickTabHandler'],
|
|
484
472
|
setup: function setup(__props, ref$1) {
|
|
485
|
-
var
|
|
473
|
+
var __emit = ref$1.emit;
|
|
486
474
|
|
|
487
475
|
|
|
488
476
|
var props = __props;
|
|
489
477
|
|
|
490
|
-
|
|
491
|
-
|
|
492
478
|
var localDetail = vue.ref(Object.assign({}, props.data));
|
|
493
479
|
var $collectionCrud = vue.inject('vlank-ccrud');
|
|
494
|
-
|
|
480
|
+
var $emit = __emit;
|
|
495
481
|
|
|
496
482
|
|
|
497
483
|
var getRawValue = vue.computed({
|
|
@@ -557,7 +543,7 @@
|
|
|
557
543
|
: (props.colOptions.type === 'boolean')
|
|
558
544
|
? vue.renderSlot(_ctx.$slots, getScopedSlotName('boolean-uncheck', props.colOptions.name), { key: 1 })
|
|
559
545
|
: vue.createCommentVNode("v-if", true),
|
|
560
|
-
vue.createTextVNode(" " + vue.toDisplayString(
|
|
546
|
+
vue.createTextVNode(" " + vue.toDisplayString(getValue.value) + " ", 1 /* TEXT */),
|
|
561
547
|
vue.createVNode(vue.unref(quasar.QPopupEdit), {
|
|
562
548
|
modelValue: localValue.value,
|
|
563
549
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { return ((localValue).value = $event); }),
|
|
@@ -630,9 +616,6 @@
|
|
|
630
616
|
},
|
|
631
617
|
propsLibelleTitle: null,
|
|
632
618
|
customCreateButtonText: null,
|
|
633
|
-
exportOptions: {
|
|
634
|
-
enabled: false,
|
|
635
|
-
},
|
|
636
619
|
};
|
|
637
620
|
|
|
638
621
|
/**
|
|
@@ -702,10 +685,6 @@
|
|
|
702
685
|
var rightName = getRightName("create");
|
|
703
686
|
return props.value.showBtnCreate && (!rightName || $auth.check(rightName));
|
|
704
687
|
});
|
|
705
|
-
var showBtnExport = vue.computed(function () {
|
|
706
|
-
// TODO: check a specific 'export' right?
|
|
707
|
-
return props.value.exportOptions && props.value.exportOptions.enabled;
|
|
708
|
-
});
|
|
709
688
|
var editOnTable = vue.computed(function () {
|
|
710
689
|
return props.value.editMode === "table" && showBtnEdit.value;
|
|
711
690
|
});
|
|
@@ -718,7 +697,6 @@
|
|
|
718
697
|
showBtnEditPage: showBtnEditPage,
|
|
719
698
|
showBtnEditModal: showBtnEditModal,
|
|
720
699
|
showBtnCreatePage: showBtnCreatePage,
|
|
721
|
-
showBtnExport: showBtnExport,
|
|
722
700
|
editOnTable: editOnTable,
|
|
723
701
|
};
|
|
724
702
|
}
|
|
@@ -1308,78 +1286,6 @@
|
|
|
1308
1286
|
}
|
|
1309
1287
|
}
|
|
1310
1288
|
|
|
1311
|
-
function useExportData(props, pagination, filter) {
|
|
1312
|
-
var $collectionCrud = vue.inject('vlank-ccrud');
|
|
1313
|
-
var $q = quasar.useQuasar();
|
|
1314
|
-
|
|
1315
|
-
function showDlFailure() {
|
|
1316
|
-
$q.notify({
|
|
1317
|
-
message: 'Téléchargement impossible',
|
|
1318
|
-
color: 'negative',
|
|
1319
|
-
icon: 'warning'
|
|
1320
|
-
});
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
function doExport() {
|
|
1324
|
-
var exportParams = {
|
|
1325
|
-
'primaryFieldSearch': $collectionCrud.getRouteParameterName(props.value.collection),
|
|
1326
|
-
'sortBy': pagination.value.sortBy,
|
|
1327
|
-
'descending': pagination.value.descending,
|
|
1328
|
-
'filter': filter.value,
|
|
1329
|
-
};
|
|
1330
|
-
|
|
1331
|
-
if (props.value.extraRequestParams && props.value.extraRequestParams.index) {
|
|
1332
|
-
for (var key in props.value.extraRequestParams.index) {
|
|
1333
|
-
exportParams[key] = props.value.extraRequestParams.index[key];
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
var options = props.value.exportOptions;
|
|
1338
|
-
var url = (options && options.url) ? options.url : ("/" + (props.value.collection) + "/export");
|
|
1339
|
-
|
|
1340
|
-
axiosOniti.axiosClient
|
|
1341
|
-
.get(url, {
|
|
1342
|
-
params: exportParams,
|
|
1343
|
-
responseType: 'blob',
|
|
1344
|
-
})
|
|
1345
|
-
.then(function (response) {
|
|
1346
|
-
var contentDisposition = response.headers['content-disposition'];
|
|
1347
|
-
if (!contentDisposition) {
|
|
1348
|
-
showDlFailure();
|
|
1349
|
-
console.error('No Content-Disposition header found (see exposed_headers in config/cors.php)');
|
|
1350
|
-
return
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
var parts = contentDisposition.split('filename=');
|
|
1354
|
-
if (parts.length !== 2) {
|
|
1355
|
-
showDlFailure();
|
|
1356
|
-
console.error('Invalid content-disposition header (missing filename)');
|
|
1357
|
-
return
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
var filename = parts[1];
|
|
1361
|
-
var mime = response.data.type;
|
|
1362
|
-
|
|
1363
|
-
var status = quasar.exportFile(
|
|
1364
|
-
filename,
|
|
1365
|
-
response.data,
|
|
1366
|
-
mime
|
|
1367
|
-
);
|
|
1368
|
-
|
|
1369
|
-
if (status !== true) {
|
|
1370
|
-
showDlFailure();
|
|
1371
|
-
}
|
|
1372
|
-
})
|
|
1373
|
-
.catch(function () {
|
|
1374
|
-
showDlFailure();
|
|
1375
|
-
});
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
return {
|
|
1379
|
-
doExport: doExport
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
1289
|
var _hoisted_1$2 = { class: "col" };
|
|
1384
1290
|
var _hoisted_2$2 = { key: 1 };
|
|
1385
1291
|
var _hoisted_3$2 = { key: 2 };
|
|
@@ -1457,7 +1363,6 @@
|
|
|
1457
1363
|
type: Function,
|
|
1458
1364
|
default: null
|
|
1459
1365
|
},
|
|
1460
|
-
exportOptions: Object,
|
|
1461
1366
|
},
|
|
1462
1367
|
emits: [
|
|
1463
1368
|
"detailChange",
|
|
@@ -1467,14 +1372,12 @@
|
|
|
1467
1372
|
"onEditCellHandler"
|
|
1468
1373
|
],
|
|
1469
1374
|
setup: function setup(__props, ref$1) {
|
|
1470
|
-
var
|
|
1375
|
+
var __emit = ref$1.emit;
|
|
1471
1376
|
|
|
1472
1377
|
|
|
1473
1378
|
var $attrs = __props;
|
|
1474
1379
|
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1380
|
+
var $emit = __emit;
|
|
1478
1381
|
|
|
1479
1382
|
var ccrudTable = vue.ref(null);
|
|
1480
1383
|
|
|
@@ -1516,7 +1419,6 @@
|
|
|
1516
1419
|
var showBtnEditPage = ref$3.showBtnEditPage;
|
|
1517
1420
|
var showBtnEditModal = ref$3.showBtnEditModal;
|
|
1518
1421
|
var showBtnCreatePage = ref$3.showBtnCreatePage;
|
|
1519
|
-
var showBtnExport = ref$3.showBtnExport;
|
|
1520
1422
|
var editOnTable = ref$3.editOnTable;
|
|
1521
1423
|
|
|
1522
1424
|
var ref$4 = useTable(props, $slots, showBtnEdit, showBtnDelete);
|
|
@@ -1551,6 +1453,8 @@
|
|
|
1551
1453
|
var getList = ref$6.getList;
|
|
1552
1454
|
var asyncRequest = ref$6.asyncRequest;
|
|
1553
1455
|
|
|
1456
|
+
var safeRows = vue.computed(function () { return rows.value || []; });
|
|
1457
|
+
|
|
1554
1458
|
var ref$7 = useHandlers(props, $emit, getList, localDetail, alertDelete, editModal);
|
|
1555
1459
|
var onClickDelete = ref$7.onClickDelete;
|
|
1556
1460
|
var onClickAdd = ref$7.onClickAdd;
|
|
@@ -1663,15 +1567,11 @@
|
|
|
1663
1567
|
filter.value = "";
|
|
1664
1568
|
}
|
|
1665
1569
|
|
|
1666
|
-
var ref$9 = useExportData(props, pagination, filter);
|
|
1667
|
-
var doExport = ref$9.doExport;
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
1570
|
return function (_ctx, _cache) {
|
|
1671
1571
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
1672
1572
|
vue.createVNode(vue.unref(quasar.QTable), vue.mergeProps({
|
|
1673
1573
|
flat: "",
|
|
1674
|
-
rows:
|
|
1574
|
+
rows: safeRows.value
|
|
1675
1575
|
}, vue.unref(table), {
|
|
1676
1576
|
filter: filter.value,
|
|
1677
1577
|
onRequest: vue.unref(asyncRequest),
|
|
@@ -1700,7 +1600,7 @@
|
|
|
1700
1600
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { return ((filter).value = $event); }),
|
|
1701
1601
|
placeholder: "Recherche",
|
|
1702
1602
|
outlined: "",
|
|
1703
|
-
rounded:
|
|
1603
|
+
rounded: isMobile.value,
|
|
1704
1604
|
style: {"width":"180px"}
|
|
1705
1605
|
}, {
|
|
1706
1606
|
append: vue.withCtx(function () { return [
|
|
@@ -1721,26 +1621,9 @@
|
|
|
1721
1621
|
_: 1 /* STABLE */
|
|
1722
1622
|
}, 8 /* PROPS */, ["modelValue", "rounded"]))
|
|
1723
1623
|
: vue.createCommentVNode("v-if", true),
|
|
1724
|
-
(vue.unref(showBtnExport))
|
|
1725
|
-
? (vue.openBlock(), vue.createBlock(vue.unref(quasar.QBtn), {
|
|
1726
|
-
key: 1,
|
|
1727
|
-
onClick: vue.unref(doExport),
|
|
1728
|
-
color: "primary",
|
|
1729
|
-
icon: __props.exportOptions.icon ? __props.exportOptions.icon : 'mdi-file-download',
|
|
1730
|
-
flat: __props.exportOptions.flat !== undefined ? __props.exportOptions.flat : true,
|
|
1731
|
-
label: __props.exportOptions.label ? __props.exportOptions.label : null,
|
|
1732
|
-
style: {"margin-left":"1em"},
|
|
1733
|
-
square: ""
|
|
1734
|
-
}, {
|
|
1735
|
-
default: vue.withCtx(function () { return [
|
|
1736
|
-
vue.renderSlot(_ctx.$slots, "export-btn-tooltip")
|
|
1737
|
-
]; }),
|
|
1738
|
-
_: 3 /* FORWARDED */
|
|
1739
|
-
}, 8 /* PROPS */, ["onClick", "icon", "flat", "label"]))
|
|
1740
|
-
: vue.createCommentVNode("v-if", true),
|
|
1741
1624
|
(vue.unref(showBtnCreatePage))
|
|
1742
1625
|
? (vue.openBlock(), vue.createBlock(vue.unref(quasar.QBtn), {
|
|
1743
|
-
key:
|
|
1626
|
+
key: 1,
|
|
1744
1627
|
type: "a",
|
|
1745
1628
|
to: { name: vue.unref(collectionCreateNamedRoute) },
|
|
1746
1629
|
label: vue.unref(customCreateButtonText) ? vue.unref(customCreateButtonText) : null,
|
|
@@ -1756,7 +1639,7 @@
|
|
|
1756
1639
|
}, 8 /* PROPS */, ["to", "label"]))
|
|
1757
1640
|
: (vue.unref(showBtnCreate))
|
|
1758
1641
|
? (vue.openBlock(), vue.createBlock(vue.unref(quasar.QBtn), {
|
|
1759
|
-
key:
|
|
1642
|
+
key: 2,
|
|
1760
1643
|
label: vue.unref(customCreateButtonText) ? vue.unref(customCreateButtonText) : null,
|
|
1761
1644
|
icon: "add",
|
|
1762
1645
|
color: "primary",
|
|
@@ -1797,7 +1680,7 @@
|
|
|
1797
1680
|
color: "primary",
|
|
1798
1681
|
icon: "edit",
|
|
1799
1682
|
flat: "",
|
|
1800
|
-
round:
|
|
1683
|
+
round: isMobile.value
|
|
1801
1684
|
}, null, 8 /* PROPS */, ["onClick", "round"]))
|
|
1802
1685
|
: (vue.unref(showBtnEditPage) && __props.displayActionCallback(props.row, 'edit'))
|
|
1803
1686
|
? (vue.openBlock(), vue.createBlock(vue.unref(quasar.QBtn), {
|
|
@@ -1807,7 +1690,7 @@
|
|
|
1807
1690
|
color: "primary",
|
|
1808
1691
|
icon: "edit",
|
|
1809
1692
|
flat: "",
|
|
1810
|
-
round:
|
|
1693
|
+
round: isMobile.value
|
|
1811
1694
|
}, null, 8 /* PROPS */, ["to", "round"]))
|
|
1812
1695
|
: vue.createCommentVNode("v-if", true),
|
|
1813
1696
|
(!__props.editablePage && vue.unref(showBtnEditPage) && __props.displayActionCallback(props.row, 'show'))
|
|
@@ -1827,7 +1710,7 @@
|
|
|
1827
1710
|
color: "negative",
|
|
1828
1711
|
icon: "delete",
|
|
1829
1712
|
flat: "",
|
|
1830
|
-
round:
|
|
1713
|
+
round: isMobile.value
|
|
1831
1714
|
}, null, 8 /* PROPS */, ["onClick", "round"]))
|
|
1832
1715
|
: vue.createCommentVNode("v-if", true),
|
|
1833
1716
|
vue.renderSlot(_ctx.$slots, "row-action-after-controllers", {
|
|
@@ -1838,13 +1721,14 @@
|
|
|
1838
1721
|
}),
|
|
1839
1722
|
_: 2 /* DYNAMIC */
|
|
1840
1723
|
}, [
|
|
1841
|
-
(
|
|
1724
|
+
(isMobile.value)
|
|
1842
1725
|
? {
|
|
1843
1726
|
name: "header",
|
|
1844
|
-
fn: vue.withCtx(function (props) { return []; })
|
|
1727
|
+
fn: vue.withCtx(function (props) { return []; }),
|
|
1728
|
+
key: "0"
|
|
1845
1729
|
}
|
|
1846
1730
|
: undefined,
|
|
1847
|
-
(
|
|
1731
|
+
(isMobile.value)
|
|
1848
1732
|
? {
|
|
1849
1733
|
name: "body",
|
|
1850
1734
|
fn: vue.withCtx(function (props) { return [
|
|
@@ -1876,8 +1760,8 @@
|
|
|
1876
1760
|
data: props.row,
|
|
1877
1761
|
class: "body-cell-mobile"
|
|
1878
1762
|
})
|
|
1879
|
-
: (
|
|
1880
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$2, vue.toDisplayString(props.cols.filter(function (col) { return col.name ===
|
|
1763
|
+
: (mobileColumn.value)
|
|
1764
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$2, vue.toDisplayString(props.cols.filter(function (col) { return col.name === mobileColumn.value.name; })[0].value), 1 /* TEXT */))
|
|
1881
1765
|
: (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$2, vue.toDisplayString(props.cols[0].value), 1 /* TEXT */))
|
|
1882
1766
|
]; }),
|
|
1883
1767
|
_: 2 /* DYNAMIC */
|
|
@@ -1910,7 +1794,8 @@
|
|
|
1910
1794
|
}, function () { return [
|
|
1911
1795
|
vue.createVNode(vue.unref(quasar.QIcon), { name: "mdi-pencil" })
|
|
1912
1796
|
]; })
|
|
1913
|
-
]; })
|
|
1797
|
+
]; }),
|
|
1798
|
+
key: "0"
|
|
1914
1799
|
}
|
|
1915
1800
|
: undefined,
|
|
1916
1801
|
(vue.unref(showBtnDelete))
|
|
@@ -1918,11 +1803,13 @@
|
|
|
1918
1803
|
name: "right",
|
|
1919
1804
|
fn: vue.withCtx(function () { return [
|
|
1920
1805
|
vue.createVNode(vue.unref(quasar.QIcon), { name: "mdi-delete" })
|
|
1921
|
-
]; })
|
|
1806
|
+
]; }),
|
|
1807
|
+
key: "1"
|
|
1922
1808
|
}
|
|
1923
1809
|
: undefined
|
|
1924
1810
|
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["onLeft", "onRight"])
|
|
1925
|
-
]; })
|
|
1811
|
+
]; }),
|
|
1812
|
+
key: "1"
|
|
1926
1813
|
}
|
|
1927
1814
|
: undefined,
|
|
1928
1815
|
vue.renderList(vue.unref(customFields), function (options) {
|
|
@@ -2008,7 +1895,7 @@
|
|
|
2008
1895
|
props: vue.unref(props),
|
|
2009
1896
|
alertDelete: alertDelete.value,
|
|
2010
1897
|
onClose: vue.unref(onCloseDeleteModal),
|
|
2011
|
-
isMobile:
|
|
1898
|
+
isMobile: isMobile.value
|
|
2012
1899
|
}, vue.createSlots({ _: 2 /* DYNAMIC */ }, [
|
|
2013
1900
|
vue.renderList(vue.unref($slots), function (_, slot) {
|
|
2014
1901
|
return {
|
|
@@ -2028,7 +1915,7 @@
|
|
|
2028
1915
|
vue.createVNode(script$4, vue.mergeProps({ localDetail: localDetail.value }, vue.unref(props), {
|
|
2029
1916
|
editModal: editModal.value,
|
|
2030
1917
|
onClose: vue.unref(onCloseEditModal),
|
|
2031
|
-
isMobile:
|
|
1918
|
+
isMobile: isMobile.value,
|
|
2032
1919
|
closeModalAfterValidation: __props.closeModalAfterValidation,
|
|
2033
1920
|
propsLibelleTitle: __props.propsLibelleTitle
|
|
2034
1921
|
}), vue.createSlots({ _: 2 /* DYNAMIC */ }, [
|
|
@@ -2037,7 +1924,7 @@
|
|
|
2037
1924
|
name: slot,
|
|
2038
1925
|
fn: vue.withCtx(function (scope) { return [
|
|
2039
1926
|
(vue.openBlock(), vue.createElementBlock("div", {
|
|
2040
|
-
class: vue.normalizeClass(
|
|
1927
|
+
class: vue.normalizeClass(isMobile.value ? 'mobile-content modal-content' : 'modal-content'),
|
|
2041
1928
|
key: slot
|
|
2042
1929
|
}, [
|
|
2043
1930
|
vue.renderSlot(_ctx.$slots, slot, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
@@ -2091,7 +1978,7 @@
|
|
|
2091
1978
|
emits: [
|
|
2092
1979
|
"collectionCrudUpdateLocalDetail" ],
|
|
2093
1980
|
setup: function setup(__props, ref$1) {
|
|
2094
|
-
var
|
|
1981
|
+
var __emit = ref$1.emit;
|
|
2095
1982
|
|
|
2096
1983
|
|
|
2097
1984
|
var route = vueRouter.useRoute();
|
|
@@ -2104,11 +1991,10 @@
|
|
|
2104
1991
|
onClickBack(route, router);
|
|
2105
1992
|
}
|
|
2106
1993
|
|
|
2107
|
-
|
|
1994
|
+
var $emit = __emit;
|
|
2108
1995
|
|
|
2109
1996
|
var localDetail = vue.ref(null);
|
|
2110
1997
|
var containerMode = vue.ref(route.meta.containerMode);
|
|
2111
|
-
var showValidationBtn = vue.ref(route.meta.showValidationBtn);
|
|
2112
1998
|
var extraRequestParams = vue.ref({});
|
|
2113
1999
|
var propsLibelleTitle = vue.ref(route.meta.propsLibelleTitle);
|
|
2114
2000
|
var customTitle = vue.ref(null);
|
|
@@ -2276,32 +2162,29 @@
|
|
|
2276
2162
|
color: "primary",
|
|
2277
2163
|
icon: "arrow_back"
|
|
2278
2164
|
}),
|
|
2279
|
-
vue.createElementVNode("h2", null, vue.toDisplayString(
|
|
2165
|
+
vue.createElementVNode("h2", null, vue.toDisplayString(getTitle.value), 1 /* TEXT */)
|
|
2280
2166
|
]),
|
|
2281
2167
|
(!containerMode.value && editablePage.value)
|
|
2282
2168
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, [
|
|
2283
|
-
(
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
_: 1 /* STABLE */
|
|
2296
|
-
}, 8 /* PROPS */, ["icon", "disable", "color", "loading"]))
|
|
2297
|
-
: vue.createCommentVNode("v-if", true)
|
|
2169
|
+
vue.createVNode(vue.unref(quasar.QBtn), {
|
|
2170
|
+
icon: getSubmitBtn.value.icon,
|
|
2171
|
+
onClick: onClickSubmit,
|
|
2172
|
+
disable: !isLocalDetailUpdated.value,
|
|
2173
|
+
color: isLocalDetailUpdated.value ? 'primary' : 'grey-5',
|
|
2174
|
+
loading: submitLoading.value
|
|
2175
|
+
}, {
|
|
2176
|
+
default: vue.withCtx(function () { return [
|
|
2177
|
+
vue.createTextVNode(vue.toDisplayString(getSubmitBtn.value.label), 1 /* TEXT */)
|
|
2178
|
+
]; }),
|
|
2179
|
+
_: 1 /* STABLE */
|
|
2180
|
+
}, 8 /* PROPS */, ["icon", "disable", "color", "loading"])
|
|
2298
2181
|
]))
|
|
2299
2182
|
: vue.createCommentVNode("v-if", true)
|
|
2300
2183
|
]))
|
|
2301
2184
|
: vue.createCommentVNode("v-if", true),
|
|
2302
2185
|
(localDetail.value)
|
|
2303
2186
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$1, [
|
|
2304
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(Components__default["default"])[
|
|
2187
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(Components__default["default"])[formComponent.value]), {
|
|
2305
2188
|
data: localDetail.value,
|
|
2306
2189
|
submitedData: submitedData.value,
|
|
2307
2190
|
key: localDetail.value[vue.unref(route_parameter_name)],
|
|
@@ -2310,7 +2193,7 @@
|
|
|
2310
2193
|
onCustomSubmitBtn: onCustomSubmitBtn,
|
|
2311
2194
|
onUpdateData: updateData,
|
|
2312
2195
|
onEditablePage: onEditablePage
|
|
2313
|
-
}, null, 40 /* PROPS,
|
|
2196
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["data", "submitedData"]))
|
|
2314
2197
|
]))
|
|
2315
2198
|
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, [
|
|
2316
2199
|
vue.createVNode(vue.unref(quasar.QSpinner), {
|
|
@@ -2353,7 +2236,7 @@
|
|
|
2353
2236
|
emits: [
|
|
2354
2237
|
"collectionCrudUpdateLocalDetail" ],
|
|
2355
2238
|
setup: function setup(__props, ref$1) {
|
|
2356
|
-
var
|
|
2239
|
+
var __emit = ref$1.emit;
|
|
2357
2240
|
|
|
2358
2241
|
|
|
2359
2242
|
var route = vueRouter.useRoute();
|
|
@@ -2365,7 +2248,7 @@
|
|
|
2365
2248
|
}
|
|
2366
2249
|
|
|
2367
2250
|
|
|
2368
|
-
|
|
2251
|
+
var $emit = __emit;
|
|
2369
2252
|
|
|
2370
2253
|
var localDetail = vue.ref(null);
|
|
2371
2254
|
var containerMode = vue.ref(route.meta.containerMode);
|
|
@@ -2466,18 +2349,18 @@
|
|
|
2466
2349
|
color: "primary",
|
|
2467
2350
|
icon: "arrow_back"
|
|
2468
2351
|
}),
|
|
2469
|
-
vue.createElementVNode("h2", null, vue.toDisplayString(
|
|
2352
|
+
vue.createElementVNode("h2", null, vue.toDisplayString(getTitle.value), 1 /* TEXT */)
|
|
2470
2353
|
]),
|
|
2471
2354
|
(!containerMode.value)
|
|
2472
2355
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
2473
2356
|
vue.createVNode(vue.unref(quasar.QBtn), {
|
|
2474
2357
|
color: "primary",
|
|
2475
|
-
icon:
|
|
2358
|
+
icon: getSubmitBtn.value.icon,
|
|
2476
2359
|
onClick: onClickSubmit,
|
|
2477
2360
|
loading: submitLoading.value
|
|
2478
2361
|
}, {
|
|
2479
2362
|
default: vue.withCtx(function () { return [
|
|
2480
|
-
vue.createTextVNode(vue.toDisplayString(
|
|
2363
|
+
vue.createTextVNode(vue.toDisplayString(getSubmitBtn.value.label), 1 /* TEXT */)
|
|
2481
2364
|
]; }),
|
|
2482
2365
|
_: 1 /* STABLE */
|
|
2483
2366
|
}, 8 /* PROPS */, ["icon", "loading"])
|
|
@@ -2487,13 +2370,13 @@
|
|
|
2487
2370
|
: vue.createCommentVNode("v-if", true),
|
|
2488
2371
|
(localDetail.value)
|
|
2489
2372
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
2490
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(Components__default["default"])[
|
|
2373
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(Components__default["default"])[formComponent.value]), {
|
|
2491
2374
|
data: localDetail.value,
|
|
2492
2375
|
submitedData: submitedData.value,
|
|
2493
2376
|
onExtraRequestParams: onExtraRequestParams,
|
|
2494
2377
|
onCustomSubmitBtn: onCustomSubmitBtn,
|
|
2495
2378
|
onUpdateData: updateData
|
|
2496
|
-
}, null, 40 /* PROPS,
|
|
2379
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["data", "submitedData"]))
|
|
2497
2380
|
]))
|
|
2498
2381
|
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
|
2499
2382
|
vue.createVNode(vue.unref(quasar.QSpinner), {
|
|
@@ -2515,7 +2398,7 @@
|
|
|
2515
2398
|
script.__scopeId = "data-v-29e3989a";
|
|
2516
2399
|
script.__file = "src/components/VlankCreatePage.vue";
|
|
2517
2400
|
|
|
2518
|
-
var version = '3.7.
|
|
2401
|
+
var version = '3.7.53';
|
|
2519
2402
|
|
|
2520
2403
|
function install (app) {
|
|
2521
2404
|
app.component(script$2.name, script$2);
|