mcdis-vue-ui-library 1.1.194 → 1.1.204
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-ui-lib.umd.js
CHANGED
@@ -170,6 +170,18 @@ module.exports = function (fn, that, length) {
|
|
170
170
|
};
|
171
171
|
|
172
172
|
|
173
|
+
/***/ }),
|
174
|
+
|
175
|
+
/***/ "04d1":
|
176
|
+
/***/ (function(module, exports, __webpack_require__) {
|
177
|
+
|
178
|
+
var userAgent = __webpack_require__("342f");
|
179
|
+
|
180
|
+
var firefox = userAgent.match(/firefox\/(\d+)/i);
|
181
|
+
|
182
|
+
module.exports = !!firefox && +firefox[1];
|
183
|
+
|
184
|
+
|
173
185
|
/***/ }),
|
174
186
|
|
175
187
|
/***/ "057f":
|
@@ -1252,6 +1264,20 @@ module.exports = function (CONSTRUCTOR_NAME) {
|
|
1252
1264
|
};
|
1253
1265
|
|
1254
1266
|
|
1267
|
+
/***/ }),
|
1268
|
+
|
1269
|
+
/***/ "27b4":
|
1270
|
+
/***/ (function(module, exports, __webpack_require__) {
|
1271
|
+
|
1272
|
+
// Imports
|
1273
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
1274
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
1275
|
+
// Module
|
1276
|
+
exports.push([module.i, ".datagrid[data-v-ec71aef6]{font-family:Roboto,sans-serif;box-sizing:border-box;border-radius:5px;width:100%;overflow-x:auto;max-width:100vw;background-color:var(--back100)}.datagrid__body[data-v-ec71aef6]{background-color:var(--back90)}.datagrid--hover[data-v-ec71aef6]{border-collapse:collapse}.datagrid__col-name[data-v-ec71aef6]{padding-bottom:20px}.datagrid__col-name[data-v-ec71aef6]:first-child{padding-left:10px}.datagrid__col-name[data-v-ec71aef6]:last-child{padding-right:10px}.datagrid__menu-label[data-v-ec71aef6]{font-size:14px;color:var(--text100);font-weight:400}.datagrid__header[data-v-ec71aef6]{text-align:left;font-weight:700;color:var(--text100)}.datagrid__row[data-v-ec71aef6]{border-bottom:solid 5px var(--back100);border-radius:5px}.datagrid__row>td[data-v-ec71aef6]{padding:10px 0;width:170.5px;max-width:170.5px;overflow-x:hidden;padding-right:5px}.datagrid__row>td[data-v-ec71aef6]:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px;padding-left:10px;overflow-x:visible}.datagrid__row>td[data-v-ec71aef6]:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px;padding-right:10px;overflow-x:visible}.datagrid__row--hover[data-v-ec71aef6]{cursor:pointer}.datagrid__row--hover[data-v-ec71aef6]:hover{background-color:rgba(61,155,232,.1)}", ""]);
|
1277
|
+
// Exports
|
1278
|
+
module.exports = exports;
|
1279
|
+
|
1280
|
+
|
1255
1281
|
/***/ }),
|
1256
1282
|
|
1257
1283
|
/***/ "287b":
|
@@ -1481,6 +1507,22 @@ exports.push([module.i, ".pulse[data-v-7af9d562]{background-color:var(--primary1
|
|
1481
1507
|
module.exports = exports;
|
1482
1508
|
|
1483
1509
|
|
1510
|
+
/***/ }),
|
1511
|
+
|
1512
|
+
/***/ "3b2f":
|
1513
|
+
/***/ (function(module, exports, __webpack_require__) {
|
1514
|
+
|
1515
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
1516
|
+
|
1517
|
+
// load the styles
|
1518
|
+
var content = __webpack_require__("27b4");
|
1519
|
+
if(content.__esModule) content = content.default;
|
1520
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
1521
|
+
if(content.locals) module.exports = content.locals;
|
1522
|
+
// add the styles to the DOM
|
1523
|
+
var add = __webpack_require__("499e").default
|
1524
|
+
var update = add("723131d4", content, true, {"sourceMap":false,"shadowMode":false});
|
1525
|
+
|
1484
1526
|
/***/ }),
|
1485
1527
|
|
1486
1528
|
/***/ "3bbe":
|
@@ -2288,6 +2330,20 @@ module.exports = {
|
|
2288
2330
|
};
|
2289
2331
|
|
2290
2332
|
|
2333
|
+
/***/ }),
|
2334
|
+
|
2335
|
+
/***/ "4dad":
|
2336
|
+
/***/ (function(module, exports, __webpack_require__) {
|
2337
|
+
|
2338
|
+
// Imports
|
2339
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
2340
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
2341
|
+
// Module
|
2342
|
+
exports.push([module.i, "*[data-v-281ff745]{box-sizing:border-box}.data-grid[data-v-281ff745]{width:100%;text-align:left;background-color:var(--back90);border-collapse:collapse}.data-grid__wrapper[data-v-281ff745]{background-color:var(--back90);padding:20px 10px;border-radius:5px}.data-grid__head[data-v-281ff745]{color:var(--text100);font-size:16px}.data-grid__head-title[data-v-281ff745]{padding-bottom:20px}.data-grid__head-title[data-v-281ff745]:first-child{padding-left:5px}.data-grid__head-title[data-v-281ff745]:last-child{text-align:center}.data-grid__body[data-v-281ff745],.data-grid__row[data-v-281ff745]{background-color:var(--back100)}.data-grid__row[data-v-281ff745]{border-bottom:5px solid var(--back90);border-radius:5px;color:var(--text80)}.data-grid__row>td[data-v-281ff745]{padding:10px 0;word-break:break-word}.data-grid__row>td[data-v-281ff745]:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px;padding-left:5px}.data-grid__row>td[data-v-281ff745]:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.data-grid__row[data-v-281ff745]:hover{background-color:var(--hoverTable);cursor:pointer}", ""]);
|
2343
|
+
// Exports
|
2344
|
+
module.exports = exports;
|
2345
|
+
|
2346
|
+
|
2291
2347
|
/***/ }),
|
2292
2348
|
|
2293
2349
|
/***/ "4de4":
|
@@ -2362,6 +2418,116 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef
|
|
2362
2418
|
};
|
2363
2419
|
|
2364
2420
|
|
2421
|
+
/***/ }),
|
2422
|
+
|
2423
|
+
/***/ "4e82":
|
2424
|
+
/***/ (function(module, exports, __webpack_require__) {
|
2425
|
+
|
2426
|
+
"use strict";
|
2427
|
+
|
2428
|
+
var $ = __webpack_require__("23e7");
|
2429
|
+
var aCallable = __webpack_require__("59ed");
|
2430
|
+
var toObject = __webpack_require__("7b0b");
|
2431
|
+
var lengthOfArrayLike = __webpack_require__("07fa");
|
2432
|
+
var toString = __webpack_require__("577e");
|
2433
|
+
var fails = __webpack_require__("d039");
|
2434
|
+
var internalSort = __webpack_require__("addb");
|
2435
|
+
var arrayMethodIsStrict = __webpack_require__("a640");
|
2436
|
+
var FF = __webpack_require__("04d1");
|
2437
|
+
var IE_OR_EDGE = __webpack_require__("d998");
|
2438
|
+
var V8 = __webpack_require__("2d00");
|
2439
|
+
var WEBKIT = __webpack_require__("512c");
|
2440
|
+
|
2441
|
+
var test = [];
|
2442
|
+
var nativeSort = test.sort;
|
2443
|
+
|
2444
|
+
// IE8-
|
2445
|
+
var FAILS_ON_UNDEFINED = fails(function () {
|
2446
|
+
test.sort(undefined);
|
2447
|
+
});
|
2448
|
+
// V8 bug
|
2449
|
+
var FAILS_ON_NULL = fails(function () {
|
2450
|
+
test.sort(null);
|
2451
|
+
});
|
2452
|
+
// Old WebKit
|
2453
|
+
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
2454
|
+
|
2455
|
+
var STABLE_SORT = !fails(function () {
|
2456
|
+
// feature detection can be too slow, so check engines versions
|
2457
|
+
if (V8) return V8 < 70;
|
2458
|
+
if (FF && FF > 3) return;
|
2459
|
+
if (IE_OR_EDGE) return true;
|
2460
|
+
if (WEBKIT) return WEBKIT < 603;
|
2461
|
+
|
2462
|
+
var result = '';
|
2463
|
+
var code, chr, value, index;
|
2464
|
+
|
2465
|
+
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
|
2466
|
+
for (code = 65; code < 76; code++) {
|
2467
|
+
chr = String.fromCharCode(code);
|
2468
|
+
|
2469
|
+
switch (code) {
|
2470
|
+
case 66: case 69: case 70: case 72: value = 3; break;
|
2471
|
+
case 68: case 71: value = 4; break;
|
2472
|
+
default: value = 2;
|
2473
|
+
}
|
2474
|
+
|
2475
|
+
for (index = 0; index < 47; index++) {
|
2476
|
+
test.push({ k: chr + index, v: value });
|
2477
|
+
}
|
2478
|
+
}
|
2479
|
+
|
2480
|
+
test.sort(function (a, b) { return b.v - a.v; });
|
2481
|
+
|
2482
|
+
for (index = 0; index < test.length; index++) {
|
2483
|
+
chr = test[index].k.charAt(0);
|
2484
|
+
if (result.charAt(result.length - 1) !== chr) result += chr;
|
2485
|
+
}
|
2486
|
+
|
2487
|
+
return result !== 'DGBEFHACIJK';
|
2488
|
+
});
|
2489
|
+
|
2490
|
+
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
2491
|
+
|
2492
|
+
var getSortCompare = function (comparefn) {
|
2493
|
+
return function (x, y) {
|
2494
|
+
if (y === undefined) return -1;
|
2495
|
+
if (x === undefined) return 1;
|
2496
|
+
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
2497
|
+
return toString(x) > toString(y) ? 1 : -1;
|
2498
|
+
};
|
2499
|
+
};
|
2500
|
+
|
2501
|
+
// `Array.prototype.sort` method
|
2502
|
+
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
2503
|
+
$({ target: 'Array', proto: true, forced: FORCED }, {
|
2504
|
+
sort: function sort(comparefn) {
|
2505
|
+
if (comparefn !== undefined) aCallable(comparefn);
|
2506
|
+
|
2507
|
+
var array = toObject(this);
|
2508
|
+
|
2509
|
+
if (STABLE_SORT) return comparefn === undefined ? nativeSort.call(array) : nativeSort.call(array, comparefn);
|
2510
|
+
|
2511
|
+
var items = [];
|
2512
|
+
var arrayLength = lengthOfArrayLike(array);
|
2513
|
+
var itemsLength, index;
|
2514
|
+
|
2515
|
+
for (index = 0; index < arrayLength; index++) {
|
2516
|
+
if (index in array) items.push(array[index]);
|
2517
|
+
}
|
2518
|
+
|
2519
|
+
items = internalSort(items, getSortCompare(comparefn));
|
2520
|
+
itemsLength = items.length;
|
2521
|
+
index = 0;
|
2522
|
+
|
2523
|
+
while (index < itemsLength) array[index] = items[index++];
|
2524
|
+
while (index < arrayLength) delete array[index++];
|
2525
|
+
|
2526
|
+
return array;
|
2527
|
+
}
|
2528
|
+
});
|
2529
|
+
|
2530
|
+
|
2365
2531
|
/***/ }),
|
2366
2532
|
|
2367
2533
|
/***/ "4f04":
|
@@ -2418,6 +2584,18 @@ module.exports = function (argument) {
|
|
2418
2584
|
};
|
2419
2585
|
|
2420
2586
|
|
2587
|
+
/***/ }),
|
2588
|
+
|
2589
|
+
/***/ "512c":
|
2590
|
+
/***/ (function(module, exports, __webpack_require__) {
|
2591
|
+
|
2592
|
+
var userAgent = __webpack_require__("342f");
|
2593
|
+
|
2594
|
+
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
2595
|
+
|
2596
|
+
module.exports = !!webkit && +webkit[1];
|
2597
|
+
|
2598
|
+
|
2421
2599
|
/***/ }),
|
2422
2600
|
|
2423
2601
|
/***/ "52b3":
|
@@ -3000,6 +3178,22 @@ module.exports = !construct || fails(function () {
|
|
3000
3178
|
}) ? isConstructorLegacy : isConstructorModern;
|
3001
3179
|
|
3002
3180
|
|
3181
|
+
/***/ }),
|
3182
|
+
|
3183
|
+
/***/ "6955":
|
3184
|
+
/***/ (function(module, exports, __webpack_require__) {
|
3185
|
+
|
3186
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
3187
|
+
|
3188
|
+
// load the styles
|
3189
|
+
var content = __webpack_require__("4dad");
|
3190
|
+
if(content.__esModule) content = content.default;
|
3191
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
3192
|
+
if(content.locals) module.exports = content.locals;
|
3193
|
+
// add the styles to the DOM
|
3194
|
+
var add = __webpack_require__("499e").default
|
3195
|
+
var update = add("6d69f307", content, true, {"sourceMap":false,"shadowMode":false});
|
3196
|
+
|
3003
3197
|
/***/ }),
|
3004
3198
|
|
3005
3199
|
/***/ "69f3":
|
@@ -5191,6 +5385,58 @@ module.exports = function () {
|
|
5191
5385
|
};
|
5192
5386
|
|
5193
5387
|
|
5388
|
+
/***/ }),
|
5389
|
+
|
5390
|
+
/***/ "addb":
|
5391
|
+
/***/ (function(module, exports) {
|
5392
|
+
|
5393
|
+
// TODO: use something more complex like timsort?
|
5394
|
+
var floor = Math.floor;
|
5395
|
+
|
5396
|
+
var mergeSort = function (array, comparefn) {
|
5397
|
+
var length = array.length;
|
5398
|
+
var middle = floor(length / 2);
|
5399
|
+
return length < 8 ? insertionSort(array, comparefn) : merge(
|
5400
|
+
mergeSort(array.slice(0, middle), comparefn),
|
5401
|
+
mergeSort(array.slice(middle), comparefn),
|
5402
|
+
comparefn
|
5403
|
+
);
|
5404
|
+
};
|
5405
|
+
|
5406
|
+
var insertionSort = function (array, comparefn) {
|
5407
|
+
var length = array.length;
|
5408
|
+
var i = 1;
|
5409
|
+
var element, j;
|
5410
|
+
|
5411
|
+
while (i < length) {
|
5412
|
+
j = i;
|
5413
|
+
element = array[i];
|
5414
|
+
while (j && comparefn(array[j - 1], element) > 0) {
|
5415
|
+
array[j] = array[--j];
|
5416
|
+
}
|
5417
|
+
if (j !== i++) array[j] = element;
|
5418
|
+
} return array;
|
5419
|
+
};
|
5420
|
+
|
5421
|
+
var merge = function (left, right, comparefn) {
|
5422
|
+
var llength = left.length;
|
5423
|
+
var rlength = right.length;
|
5424
|
+
var lindex = 0;
|
5425
|
+
var rindex = 0;
|
5426
|
+
var result = [];
|
5427
|
+
|
5428
|
+
while (lindex < llength || rindex < rlength) {
|
5429
|
+
if (lindex < llength && rindex < rlength) {
|
5430
|
+
result.push(comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]);
|
5431
|
+
} else {
|
5432
|
+
result.push(lindex < llength ? left[lindex++] : right[rindex++]);
|
5433
|
+
}
|
5434
|
+
} return result;
|
5435
|
+
};
|
5436
|
+
|
5437
|
+
module.exports = mergeSort;
|
5438
|
+
|
5439
|
+
|
5194
5440
|
/***/ }),
|
5195
5441
|
|
5196
5442
|
/***/ "adee":
|
@@ -5613,6 +5859,17 @@ module.exports = function (input, pref) {
|
|
5613
5859
|
};
|
5614
5860
|
|
5615
5861
|
|
5862
|
+
/***/ }),
|
5863
|
+
|
5864
|
+
/***/ "c40d":
|
5865
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5866
|
+
|
5867
|
+
"use strict";
|
5868
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_index_js_ref_0_1_SimpleDataGrid_vue_vue_type_style_index_0_id_281ff745_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6955");
|
5869
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_index_js_ref_0_1_SimpleDataGrid_vue_vue_type_style_index_0_id_281ff745_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_index_js_ref_0_1_SimpleDataGrid_vue_vue_type_style_index_0_id_281ff745_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
5870
|
+
/* unused harmony reexport * */
|
5871
|
+
|
5872
|
+
|
5616
5873
|
/***/ }),
|
5617
5874
|
|
5618
5875
|
/***/ "c430":
|
@@ -6201,6 +6458,16 @@ exports.default = (sfc, props) => {
|
|
6201
6458
|
};
|
6202
6459
|
|
6203
6460
|
|
6461
|
+
/***/ }),
|
6462
|
+
|
6463
|
+
/***/ "d998":
|
6464
|
+
/***/ (function(module, exports, __webpack_require__) {
|
6465
|
+
|
6466
|
+
var UA = __webpack_require__("342f");
|
6467
|
+
|
6468
|
+
module.exports = /MSIE|Trident/.test(UA);
|
6469
|
+
|
6470
|
+
|
6204
6471
|
/***/ }),
|
6205
6472
|
|
6206
6473
|
/***/ "d9b5":
|
@@ -6881,6 +7148,8 @@ __webpack_require__.d(components_namespaceObject, "BlockSwitcher", function() {
|
|
6881
7148
|
__webpack_require__.d(components_namespaceObject, "DenyBlockSwitcher", function() { return DenyBlockSwithcer; });
|
6882
7149
|
__webpack_require__.d(components_namespaceObject, "HorizontalProgressBar", function() { return components_HorizontalProgressBar; });
|
6883
7150
|
__webpack_require__.d(components_namespaceObject, "Combobox", function() { return components_Combobox; });
|
7151
|
+
__webpack_require__.d(components_namespaceObject, "DataGrid", function() { return components_DataGrid; });
|
7152
|
+
__webpack_require__.d(components_namespaceObject, "SimpleDataGrid", function() { return components_SimpleDataGrid; });
|
6884
7153
|
|
6885
7154
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
6886
7155
|
// This file is imported into lib/wc client bundles.
|
@@ -12024,6 +12293,466 @@ const Combobox_exports_ = /*#__PURE__*/exportHelper_default()(Comboboxvue_type_s
|
|
12024
12293
|
// CONCATENATED MODULE: ./src/components/Combobox/index.js
|
12025
12294
|
|
12026
12295
|
/* harmony default export */ var components_Combobox = (Combobox);
|
12296
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./src/components/DataGrid/DataGrid.vue?vue&type=script&setup=true&lang=js
|
12297
|
+
|
12298
|
+
|
12299
|
+
|
12300
|
+
|
12301
|
+
var DataGridvue_type_script_setup_true_lang_js_withScopeId = function _withScopeId(n) {
|
12302
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-ec71aef6"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n;
|
12303
|
+
};
|
12304
|
+
|
12305
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_1 = {
|
12306
|
+
class: "datagrid__header"
|
12307
|
+
};
|
12308
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_2 = {
|
12309
|
+
class: "datagrid__body"
|
12310
|
+
};
|
12311
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_3 = ["onClick"];
|
12312
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_4 = ["onUpdate:modelValue"];
|
12313
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_5 = ["onClick", "onDblclick"];
|
12314
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_6 = {
|
12315
|
+
style: {
|
12316
|
+
"display": "flex",
|
12317
|
+
"flex-direction": "column"
|
12318
|
+
}
|
12319
|
+
};
|
12320
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_7 = ["onUpdate:modelValue"];
|
12321
|
+
|
12322
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_8 = /*#__PURE__*/DataGridvue_type_script_setup_true_lang_js_withScopeId(function () {
|
12323
|
+
return /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, "Save", -1);
|
12324
|
+
});
|
12325
|
+
|
12326
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_9 = {
|
12327
|
+
class: "datagrid__menu-label"
|
12328
|
+
};
|
12329
|
+
|
12330
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_10 = /*#__PURE__*/DataGridvue_type_script_setup_true_lang_js_withScopeId(function () {
|
12331
|
+
return /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, "Remove", -1);
|
12332
|
+
});
|
12333
|
+
|
12334
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_11 = /*#__PURE__*/DataGridvue_type_script_setup_true_lang_js_withScopeId(function () {
|
12335
|
+
return /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, "Save", -1);
|
12336
|
+
});
|
12337
|
+
|
12338
|
+
var DataGridvue_type_script_setup_true_lang_js_hoisted_12 = /*#__PURE__*/DataGridvue_type_script_setup_true_lang_js_withScopeId(function () {
|
12339
|
+
return /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, "Edit", -1);
|
12340
|
+
});
|
12341
|
+
|
12342
|
+
|
12343
|
+
|
12344
|
+
var DataGridvue_type_script_setup_true_lang_js_default_ = {
|
12345
|
+
name: "DataGrid"
|
12346
|
+
};
|
12347
|
+
|
12348
|
+
function DataGridvue_type_script_setup_true_lang_js_setup(__props) {
|
12349
|
+
var _this = this;
|
12350
|
+
|
12351
|
+
var props = __props; //const isShow = ref(false);
|
12352
|
+
|
12353
|
+
var rowsData = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(props.rows); // const isSortable = (_el) => {
|
12354
|
+
// if(typeof _el === 'object') {
|
12355
|
+
// if(_el.sortable) {
|
12356
|
+
// return true;
|
12357
|
+
// }
|
12358
|
+
// }
|
12359
|
+
// return false;
|
12360
|
+
// };
|
12361
|
+
|
12362
|
+
var isSmall = window.innerWidth < 500 ? true : false;
|
12363
|
+
console.log(isSmall);
|
12364
|
+
|
12365
|
+
var removeRow = function removeRow(idx) {
|
12366
|
+
//заглушка
|
12367
|
+
rowsData.value.splice(idx, 1);
|
12368
|
+
};
|
12369
|
+
|
12370
|
+
var isEdit = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(false);
|
12371
|
+
var editRowIndex = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(null);
|
12372
|
+
|
12373
|
+
var editRow = function editRow(_row, _idx) {
|
12374
|
+
isEdit.value = true;
|
12375
|
+
editRowIndex.value = _idx;
|
12376
|
+
};
|
12377
|
+
|
12378
|
+
var saveRow = function saveRow() {
|
12379
|
+
console.log("saved");
|
12380
|
+
isEdit.value = false;
|
12381
|
+
editRowIndex.value = null;
|
12382
|
+
}; // const updateValue = (_x,_y,_z, evt) => {
|
12383
|
+
// console.log(_x,_y,_z,evt);
|
12384
|
+
// };
|
12385
|
+
|
12386
|
+
|
12387
|
+
return function (_ctx, _cache) {
|
12388
|
+
var _component_popup_modal = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("popup-modal");
|
12389
|
+
|
12390
|
+
var _component_context_menu = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("context-menu");
|
12391
|
+
|
12392
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("table", {
|
12393
|
+
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["datagrid", {
|
12394
|
+
'datagrid--hover': __props.allowRowSelect
|
12395
|
+
}])
|
12396
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("thead", DataGridvue_type_script_setup_true_lang_js_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("tr", null, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(props.columns, function (col) {
|
12397
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("th", {
|
12398
|
+
class: "datagrid__col-name",
|
12399
|
+
key: col
|
12400
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(col), 1);
|
12401
|
+
}), 128))])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("tbody", DataGridvue_type_script_setup_true_lang_js_hoisted_2, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(rowsData.value, function (row, idx) {
|
12402
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("tr", {
|
12403
|
+
onClick: function onClick($event) {
|
12404
|
+
return props.rowClickHandler.call(_this, row);
|
12405
|
+
},
|
12406
|
+
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["datagrid__row", {
|
12407
|
+
'datagrid__row--hover': __props.allowRowSelect
|
12408
|
+
}]),
|
12409
|
+
key: idx
|
12410
|
+
}, [isEdit.value && idx === editRowIndex.value && !Object(external_commonjs_vue_commonjs2_vue_root_Vue_["unref"])(isSmall) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
|
12411
|
+
key: 0
|
12412
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(row, function (el, index) {
|
12413
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("td", {
|
12414
|
+
key: index
|
12415
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", {
|
12416
|
+
type: "text",
|
12417
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
12418
|
+
return rowsData.value[idx][index] = $event;
|
12419
|
+
}
|
12420
|
+
}, null, 8, DataGridvue_type_script_setup_true_lang_js_hoisted_4), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vModelText"], rowsData.value[idx][index]]])]);
|
12421
|
+
}), 128)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
|
12422
|
+
key: 1
|
12423
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(row, function (el, index) {
|
12424
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("td", {
|
12425
|
+
onClick: function onClick($event) {
|
12426
|
+
return props.cellClickHandler.call(_this, el);
|
12427
|
+
},
|
12428
|
+
onDblclick: function onDblclick($event) {
|
12429
|
+
return editRow(row, idx);
|
12430
|
+
},
|
12431
|
+
key: index
|
12432
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(el), 41, DataGridvue_type_script_setup_true_lang_js_hoisted_5);
|
12433
|
+
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["unref"])(isSmall) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_popup_modal, {
|
12434
|
+
key: 2,
|
12435
|
+
"min-width": '100px',
|
12436
|
+
"max-width": '100vw',
|
12437
|
+
"is-show-popup": isEdit.value,
|
12438
|
+
"closing-esc": true
|
12439
|
+
}, {
|
12440
|
+
content: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
12441
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", DataGridvue_type_script_setup_true_lang_js_hoisted_6, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(row, function (el, index) {
|
12442
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("input", {
|
12443
|
+
key: index,
|
12444
|
+
type: "text",
|
12445
|
+
style: {
|
12446
|
+
"margin-bottom": "20px",
|
12447
|
+
"width": "100px"
|
12448
|
+
},
|
12449
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
12450
|
+
return rowsData.value[idx][index] = $event;
|
12451
|
+
}
|
12452
|
+
}, null, 8, DataGridvue_type_script_setup_true_lang_js_hoisted_7)), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vModelText"], rowsData.value[idx][index]]]);
|
12453
|
+
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["unref"])(FlatButton), {
|
12454
|
+
onClick: saveRow
|
12455
|
+
}, {
|
12456
|
+
label: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
12457
|
+
return [DataGridvue_type_script_setup_true_lang_js_hoisted_8];
|
12458
|
+
}),
|
12459
|
+
_: 1
|
12460
|
+
})])];
|
12461
|
+
}),
|
12462
|
+
_: 2
|
12463
|
+
}, 1032, ["is-show-popup"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("td", null, [props.contextMenu ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_context_menu, {
|
12464
|
+
key: 0,
|
12465
|
+
direction: "vertical",
|
12466
|
+
style: {
|
12467
|
+
"justify-content": "left"
|
12468
|
+
}
|
12469
|
+
}, {
|
12470
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
12471
|
+
return [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(props.contextMenuHandlers, function (handler) {
|
12472
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["unref"])(FlatButton), {
|
12473
|
+
onClick: function onClick($event) {
|
12474
|
+
return handler.fn.call(_this, row);
|
12475
|
+
},
|
12476
|
+
key: handler.title
|
12477
|
+
}, {
|
12478
|
+
label: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
12479
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", DataGridvue_type_script_setup_true_lang_js_hoisted_9, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(handler.title), 1)];
|
12480
|
+
}),
|
12481
|
+
_: 2
|
12482
|
+
}, 1032, ["onClick"]);
|
12483
|
+
}), 128)), props.allowRemoveRow ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["unref"])(FlatButton), {
|
12484
|
+
key: 0,
|
12485
|
+
onClick: function onClick($event) {
|
12486
|
+
return removeRow(idx);
|
12487
|
+
}
|
12488
|
+
}, {
|
12489
|
+
label: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
12490
|
+
return [DataGridvue_type_script_setup_true_lang_js_hoisted_10];
|
12491
|
+
}),
|
12492
|
+
_: 2
|
12493
|
+
}, 1032, ["onClick"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), isEdit.value && editRowIndex.value === idx ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["unref"])(FlatButton), {
|
12494
|
+
key: 1,
|
12495
|
+
onClick: saveRow
|
12496
|
+
}, {
|
12497
|
+
label: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
12498
|
+
return [DataGridvue_type_script_setup_true_lang_js_hoisted_11];
|
12499
|
+
}),
|
12500
|
+
_: 1
|
12501
|
+
})) : props.allowEditRow ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["unref"])(FlatButton), {
|
12502
|
+
key: 2,
|
12503
|
+
onClick: function onClick($event) {
|
12504
|
+
return editRow(row, idx);
|
12505
|
+
}
|
12506
|
+
}, {
|
12507
|
+
label: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
12508
|
+
return [DataGridvue_type_script_setup_true_lang_js_hoisted_12];
|
12509
|
+
}),
|
12510
|
+
_: 2
|
12511
|
+
}, 1032, ["onClick"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)];
|
12512
|
+
}),
|
12513
|
+
_: 2
|
12514
|
+
}, 1024)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])], 10, DataGridvue_type_script_setup_true_lang_js_hoisted_3);
|
12515
|
+
}), 128))])], 2);
|
12516
|
+
};
|
12517
|
+
}
|
12518
|
+
|
12519
|
+
/* harmony default export */ var DataGridvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(DataGridvue_type_script_setup_true_lang_js_default_, {
|
12520
|
+
props: {
|
12521
|
+
columns: {
|
12522
|
+
required: false,
|
12523
|
+
type: Array
|
12524
|
+
},
|
12525
|
+
rows: {
|
12526
|
+
required: false,
|
12527
|
+
type: Array
|
12528
|
+
},
|
12529
|
+
allowRowSelect: {
|
12530
|
+
required: false,
|
12531
|
+
default: true
|
12532
|
+
},
|
12533
|
+
rowClickHandler: {
|
12534
|
+
required: false
|
12535
|
+
},
|
12536
|
+
cellClickHandler: {
|
12537
|
+
required: false
|
12538
|
+
},
|
12539
|
+
contextMenu: {
|
12540
|
+
required: false,
|
12541
|
+
default: false
|
12542
|
+
},
|
12543
|
+
contextMenuHandlers: {
|
12544
|
+
type: Array
|
12545
|
+
},
|
12546
|
+
allowRemoveRow: {
|
12547
|
+
required: false,
|
12548
|
+
default: false
|
12549
|
+
},
|
12550
|
+
allowEditRow: {
|
12551
|
+
required: false,
|
12552
|
+
default: false
|
12553
|
+
},
|
12554
|
+
allowSelectRows: {
|
12555
|
+
required: false,
|
12556
|
+
default: false
|
12557
|
+
}
|
12558
|
+
},
|
12559
|
+
setup: DataGridvue_type_script_setup_true_lang_js_setup
|
12560
|
+
}));
|
12561
|
+
// CONCATENATED MODULE: ./src/components/DataGrid/DataGrid.vue?vue&type=script&setup=true&lang=js
|
12562
|
+
|
12563
|
+
// EXTERNAL MODULE: ./src/components/DataGrid/DataGrid.vue?vue&type=style&index=0&id=ec71aef6&lang=scss&scoped=true
|
12564
|
+
var DataGridvue_type_style_index_0_id_ec71aef6_lang_scss_scoped_true = __webpack_require__("fd54");
|
12565
|
+
|
12566
|
+
// CONCATENATED MODULE: ./src/components/DataGrid/DataGrid.vue
|
12567
|
+
|
12568
|
+
|
12569
|
+
|
12570
|
+
|
12571
|
+
|
12572
|
+
|
12573
|
+
const DataGrid_exports_ = /*#__PURE__*/exportHelper_default()(DataGridvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-ec71aef6"]])
|
12574
|
+
|
12575
|
+
/* harmony default export */ var DataGrid = (DataGrid_exports_);
|
12576
|
+
// CONCATENATED MODULE: ./src/components/DataGrid/index.js
|
12577
|
+
|
12578
|
+
/* harmony default export */ var components_DataGrid = (DataGrid);
|
12579
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
12580
|
+
var es_array_sort = __webpack_require__("4e82");
|
12581
|
+
|
12582
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./src/components/SimpleDataGrid/SimpleDataGrid.vue?vue&type=script&setup=true&lang=js
|
12583
|
+
|
12584
|
+
|
12585
|
+
|
12586
|
+
|
12587
|
+
|
12588
|
+
var SimpleDataGridvue_type_script_setup_true_lang_js_withScopeId = function _withScopeId(n) {
|
12589
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-281ff745"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n;
|
12590
|
+
};
|
12591
|
+
|
12592
|
+
var SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_1 = {
|
12593
|
+
class: "data-grid__wrapper"
|
12594
|
+
};
|
12595
|
+
var SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_2 = {
|
12596
|
+
class: "data-grid"
|
12597
|
+
};
|
12598
|
+
var SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_3 = {
|
12599
|
+
class: "data-grid__head"
|
12600
|
+
};
|
12601
|
+
var SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_4 = ["onClick"];
|
12602
|
+
var SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_5 = {
|
12603
|
+
class: "data-grid__body"
|
12604
|
+
};
|
12605
|
+
var SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_6 = ["onClick"];
|
12606
|
+
var SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_7 = ["onClick"];
|
12607
|
+
|
12608
|
+
|
12609
|
+
|
12610
|
+
var SimpleDataGridvue_type_script_setup_true_lang_js_default_ = {
|
12611
|
+
name: "SimpleDataGrid"
|
12612
|
+
};
|
12613
|
+
var ASC = "ASC";
|
12614
|
+
var DESC = "DESC";
|
12615
|
+
|
12616
|
+
function SimpleDataGridvue_type_script_setup_true_lang_js_setup(__props, _ref) {
|
12617
|
+
var emits = _ref.emit;
|
12618
|
+
var props = __props;
|
12619
|
+
var sortedRows = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(props.rows);
|
12620
|
+
|
12621
|
+
var sortRows = function sortRows(idx) {
|
12622
|
+
if (sortType === null || sortType === ASC) {
|
12623
|
+
sortType = DESC;
|
12624
|
+
sortedRows.value.sort(function (_x, _y) {
|
12625
|
+
return props.sortHandler(_x[idx], _y[idx]);
|
12626
|
+
});
|
12627
|
+
return;
|
12628
|
+
}
|
12629
|
+
|
12630
|
+
if (sortType === DESC) {
|
12631
|
+
sortType = ASC;
|
12632
|
+
sortedRows.value.sort(function (_x, _y) {
|
12633
|
+
return props.sortHandler(_y[idx], _x[idx]);
|
12634
|
+
});
|
12635
|
+
return;
|
12636
|
+
}
|
12637
|
+
};
|
12638
|
+
|
12639
|
+
var sortType = null;
|
12640
|
+
|
12641
|
+
var emitCellClick = function emitCellClick(_cell, _idx) {
|
12642
|
+
if (props.cellClickHandler) {
|
12643
|
+
emits(props.cellClickHandler, _cell, _idx, props.columns[_idx]);
|
12644
|
+
} else {
|
12645
|
+
return;
|
12646
|
+
}
|
12647
|
+
};
|
12648
|
+
|
12649
|
+
var emitRowClick = function emitRowClick(_row, _idx) {
|
12650
|
+
if (props.rowClickHandler) {
|
12651
|
+
emits(props.rowClickHandler, _row, _idx);
|
12652
|
+
} else {
|
12653
|
+
return;
|
12654
|
+
}
|
12655
|
+
};
|
12656
|
+
|
12657
|
+
return function (_ctx, _cache) {
|
12658
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("table", SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("thead", SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("tr", null, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(props.columns, function (col, colIdx) {
|
12659
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("th", {
|
12660
|
+
onClick: function onClick($event) {
|
12661
|
+
return sortRows(colIdx);
|
12662
|
+
},
|
12663
|
+
class: "data-grid__head-title",
|
12664
|
+
key: col
|
12665
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(col), 9, SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_4);
|
12666
|
+
}), 128))])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("tbody", SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_5, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(sortedRows.value, function (row, rowIdx) {
|
12667
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("tr", {
|
12668
|
+
onClick: function onClick($event) {
|
12669
|
+
return emitRowClick(row, rowIdx);
|
12670
|
+
},
|
12671
|
+
class: "data-grid__row",
|
12672
|
+
key: rowIdx
|
12673
|
+
}, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(row, function (cell, cellIdx) {
|
12674
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("td", {
|
12675
|
+
onClick: function onClick($event) {
|
12676
|
+
return emitCellClick(cell, cellIdx);
|
12677
|
+
},
|
12678
|
+
key: cellIdx
|
12679
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(cell), 9, SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_7);
|
12680
|
+
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("td", null, [props.contextMenu ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["unref"])(ContextMenu), {
|
12681
|
+
key: 0,
|
12682
|
+
direction: "vertical"
|
12683
|
+
}, {
|
12684
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
12685
|
+
return [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(props.contextMenuHandlers, function (handler, idx) {
|
12686
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["unref"])(Buttons_FlatButton), {
|
12687
|
+
onClick: function onClick($event) {
|
12688
|
+
return _ctx.$emit(handler.eventName, row);
|
12689
|
+
},
|
12690
|
+
key: idx
|
12691
|
+
}, {
|
12692
|
+
label: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
12693
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(handler.name), 1)];
|
12694
|
+
}),
|
12695
|
+
_: 2
|
12696
|
+
}, 1032, ["onClick"]);
|
12697
|
+
}), 128))];
|
12698
|
+
}),
|
12699
|
+
_: 2
|
12700
|
+
}, 1024)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])], 8, SimpleDataGridvue_type_script_setup_true_lang_js_hoisted_6);
|
12701
|
+
}), 128))])])]);
|
12702
|
+
};
|
12703
|
+
}
|
12704
|
+
|
12705
|
+
/* harmony default export */ var SimpleDataGridvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(SimpleDataGridvue_type_script_setup_true_lang_js_default_, {
|
12706
|
+
props: {
|
12707
|
+
columns: {
|
12708
|
+
required: false,
|
12709
|
+
type: Array
|
12710
|
+
},
|
12711
|
+
rows: {
|
12712
|
+
required: true,
|
12713
|
+
type: Array
|
12714
|
+
},
|
12715
|
+
contextMenu: {
|
12716
|
+
required: false,
|
12717
|
+
type: Boolean,
|
12718
|
+
default: false
|
12719
|
+
},
|
12720
|
+
contextMenuHandlers: {
|
12721
|
+
required: false,
|
12722
|
+
type: Array
|
12723
|
+
},
|
12724
|
+
rowClickHandler: {
|
12725
|
+
required: false,
|
12726
|
+
type: String
|
12727
|
+
},
|
12728
|
+
cellClickHandler: {
|
12729
|
+
required: false,
|
12730
|
+
type: String
|
12731
|
+
},
|
12732
|
+
sortHandler: {
|
12733
|
+
required: false
|
12734
|
+
}
|
12735
|
+
},
|
12736
|
+
setup: SimpleDataGridvue_type_script_setup_true_lang_js_setup
|
12737
|
+
}));
|
12738
|
+
// CONCATENATED MODULE: ./src/components/SimpleDataGrid/SimpleDataGrid.vue?vue&type=script&setup=true&lang=js
|
12739
|
+
|
12740
|
+
// EXTERNAL MODULE: ./src/components/SimpleDataGrid/SimpleDataGrid.vue?vue&type=style&index=0&id=281ff745&lang=scss&scoped=true
|
12741
|
+
var SimpleDataGridvue_type_style_index_0_id_281ff745_lang_scss_scoped_true = __webpack_require__("c40d");
|
12742
|
+
|
12743
|
+
// CONCATENATED MODULE: ./src/components/SimpleDataGrid/SimpleDataGrid.vue
|
12744
|
+
|
12745
|
+
|
12746
|
+
|
12747
|
+
|
12748
|
+
|
12749
|
+
|
12750
|
+
const SimpleDataGrid_exports_ = /*#__PURE__*/exportHelper_default()(SimpleDataGridvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-281ff745"]])
|
12751
|
+
|
12752
|
+
/* harmony default export */ var SimpleDataGrid = (SimpleDataGrid_exports_);
|
12753
|
+
// CONCATENATED MODULE: ./src/components/SimpleDataGrid/index.js
|
12754
|
+
|
12755
|
+
/* harmony default export */ var components_SimpleDataGrid = (SimpleDataGrid);
|
12027
12756
|
// CONCATENATED MODULE: ./src/components/index.js
|
12028
12757
|
|
12029
12758
|
|
@@ -12047,6 +12776,8 @@ const Combobox_exports_ = /*#__PURE__*/exportHelper_default()(Comboboxvue_type_s
|
|
12047
12776
|
|
12048
12777
|
|
12049
12778
|
|
12779
|
+
|
12780
|
+
|
12050
12781
|
|
12051
12782
|
|
12052
12783
|
|
@@ -12205,6 +12936,17 @@ module.exports = fails(function () {
|
|
12205
12936
|
/* unused harmony reexport * */
|
12206
12937
|
|
12207
12938
|
|
12939
|
+
/***/ }),
|
12940
|
+
|
12941
|
+
/***/ "fd54":
|
12942
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
12943
|
+
|
12944
|
+
"use strict";
|
12945
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_index_js_ref_0_1_DataGrid_vue_vue_type_style_index_0_id_ec71aef6_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3b2f");
|
12946
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_index_js_ref_0_1_DataGrid_vue_vue_type_style_index_0_id_ec71aef6_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_v16_dist_index_js_ref_0_1_DataGrid_vue_vue_type_style_index_0_id_ec71aef6_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
12947
|
+
/* unused harmony reexport * */
|
12948
|
+
|
12949
|
+
|
12208
12950
|
/***/ }),
|
12209
12951
|
|
12210
12952
|
/***/ "fdbc":
|