@ambita/design-system 3.0.23-200.0 → 3.0.23-206.0
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/aux.common.js +386 -0
- package/dist/aux.common.js.map +1 -1
- package/dist/aux.umd.js +386 -0
- package/dist/aux.umd.js.map +1 -1
- package/dist/aux.umd.min.js +1 -1
- package/dist/aux.umd.min.js.map +1 -1
- package/dist/types/components/Checkbox/Checkbox.vue.d.ts +1 -1
- package/dist/types/components/Definition/Definition.vue.d.ts +2 -2
- package/dist/types/components/Modal/Modal.vue.d.ts +2 -2
- package/dist/types/components/Pagination/Pagination.vue.d.ts +49 -0
- package/dist/types/components/Pagination/types.d.ts +5 -0
- package/dist/types/components/Select/Select.vue.d.ts +1 -1
- package/dist/types/components/TextArea/TextArea.vue.d.ts +4 -4
- package/dist/types/components/Upload/File/File.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/aux.common.js
CHANGED
|
@@ -2485,6 +2485,17 @@ if (typeof store.inspectSource != 'function') {
|
|
|
2485
2485
|
module.exports = store.inspectSource;
|
|
2486
2486
|
|
|
2487
2487
|
|
|
2488
|
+
/***/ }),
|
|
2489
|
+
|
|
2490
|
+
/***/ "8b7d":
|
|
2491
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2492
|
+
|
|
2493
|
+
"use strict";
|
|
2494
|
+
/* 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_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_loader_v16_dist_index_js_ref_0_1_Pagination_vue_vue_type_style_index_0_id_6a6dd830_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c901");
|
|
2495
|
+
/* 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_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_loader_v16_dist_index_js_ref_0_1_Pagination_vue_vue_type_style_index_0_id_6a6dd830_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_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_loader_v16_dist_index_js_ref_0_1_Pagination_vue_vue_type_style_index_0_id_6a6dd830_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
2496
|
+
/* unused harmony reexport * */
|
|
2497
|
+
|
|
2498
|
+
|
|
2488
2499
|
/***/ }),
|
|
2489
2500
|
|
|
2490
2501
|
/***/ "8bbf":
|
|
@@ -3884,6 +3895,22 @@ try {
|
|
|
3884
3895
|
module.exports = g;
|
|
3885
3896
|
|
|
3886
3897
|
|
|
3898
|
+
/***/ }),
|
|
3899
|
+
|
|
3900
|
+
/***/ "c901":
|
|
3901
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3902
|
+
|
|
3903
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
3904
|
+
|
|
3905
|
+
// load the styles
|
|
3906
|
+
var content = __webpack_require__("e312");
|
|
3907
|
+
if(content.__esModule) content = content.default;
|
|
3908
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
3909
|
+
if(content.locals) module.exports = content.locals;
|
|
3910
|
+
// add the styles to the DOM
|
|
3911
|
+
var add = __webpack_require__("499e").default
|
|
3912
|
+
var update = add("9637daa8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
3913
|
+
|
|
3887
3914
|
/***/ }),
|
|
3888
3915
|
|
|
3889
3916
|
/***/ "c96c":
|
|
@@ -4527,6 +4554,20 @@ addToUnscopables('values');
|
|
|
4527
4554
|
addToUnscopables('entries');
|
|
4528
4555
|
|
|
4529
4556
|
|
|
4557
|
+
/***/ }),
|
|
4558
|
+
|
|
4559
|
+
/***/ "e312":
|
|
4560
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4561
|
+
|
|
4562
|
+
// Imports
|
|
4563
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
4564
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
4565
|
+
// Module
|
|
4566
|
+
exports.push([module.i, ".aux-pagination-row[data-v-6a6dd830]{display:flex;justify-content:center}.aux-button[data-v-6a6dd830]{min-width:40px;padding:10px;height:40px;margin:0 5px;border:none}.aux-button[data-v-6a6dd830]:hover{background-color:#8666ac;color:#fff}.aux-button+.aux-button[data-v-6a6dd830]{margin-left:0}.aux-ellipsis[data-v-6a6dd830]{color:#333;line-height:34px;width:40px;font-weight:500;text-align:center}.aux-active-button[data-v-6a6dd830]{background-color:#fff;border:1px solid #360076;color:#360076}.aux-sr-only[data-v-6a6dd830]:not(:focus):not(:active){clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}", ""]);
|
|
4567
|
+
// Exports
|
|
4568
|
+
module.exports = exports;
|
|
4569
|
+
|
|
4570
|
+
|
|
4530
4571
|
/***/ }),
|
|
4531
4572
|
|
|
4532
4573
|
/***/ "e439":
|
|
@@ -4760,6 +4801,7 @@ __webpack_require__.d(__webpack_exports__, "AuxTextArea", function() { return /*
|
|
|
4760
4801
|
__webpack_require__.d(__webpack_exports__, "AuxUpload", function() { return /* reexport */ Upload; });
|
|
4761
4802
|
__webpack_require__.d(__webpack_exports__, "AuxCard", function() { return /* reexport */ Card; });
|
|
4762
4803
|
__webpack_require__.d(__webpack_exports__, "AuxToggle", function() { return /* reexport */ Toggle; });
|
|
4804
|
+
__webpack_require__.d(__webpack_exports__, "AuxPagination", function() { return /* reexport */ Pagination; });
|
|
4763
4805
|
__webpack_require__.d(__webpack_exports__, "formatDate", function() { return /* reexport */ formatDate; });
|
|
4764
4806
|
|
|
4765
4807
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
@@ -7295,6 +7337,349 @@ var Togglevue_type_style_index_0_id_78e59f6f_lang_scss_scoped_true = __webpack_r
|
|
|
7295
7337
|
Togglevue_type_script_setup_true_lang_ts.__scopeId = "data-v-78e59f6f"
|
|
7296
7338
|
|
|
7297
7339
|
/* harmony default export */ var Toggle = (Togglevue_type_script_setup_true_lang_ts);
|
|
7340
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/Pagination/Pagination.vue?vue&type=template&id=6a6dd830&scoped=true
|
|
7341
|
+
|
|
7342
|
+
|
|
7343
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-6a6dd830");
|
|
7344
|
+
|
|
7345
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_1 = {
|
|
7346
|
+
key: 0,
|
|
7347
|
+
class: "aux-pagination-row"
|
|
7348
|
+
};
|
|
7349
|
+
|
|
7350
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7351
|
+
class: "aux-sr-only"
|
|
7352
|
+
}, "Gå til forrige side", -1);
|
|
7353
|
+
|
|
7354
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" 1 ");
|
|
7355
|
+
|
|
7356
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7357
|
+
class: "aux-sr-only"
|
|
7358
|
+
}, " Gå til første siden ", -1);
|
|
7359
|
+
|
|
7360
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_5 = {
|
|
7361
|
+
key: 0,
|
|
7362
|
+
class: "aux-ellipsis"
|
|
7363
|
+
};
|
|
7364
|
+
|
|
7365
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_6 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7366
|
+
class: "aux-sr-only"
|
|
7367
|
+
}, "Gå til side ", -1);
|
|
7368
|
+
|
|
7369
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_7 = {
|
|
7370
|
+
class: "aux-sr-only"
|
|
7371
|
+
};
|
|
7372
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_8 = {
|
|
7373
|
+
key: 1,
|
|
7374
|
+
class: "aux-ellipsis"
|
|
7375
|
+
};
|
|
7376
|
+
|
|
7377
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_9 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7378
|
+
class: "aux-sr-only"
|
|
7379
|
+
}, " Gå til siste side, side ", -1);
|
|
7380
|
+
|
|
7381
|
+
var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7382
|
+
class: "aux-sr-only"
|
|
7383
|
+
}, "Gå til neste side", -1);
|
|
7384
|
+
|
|
7385
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7386
|
+
|
|
7387
|
+
function Paginationvue_type_template_id_6a6dd830_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7388
|
+
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7389
|
+
|
|
7390
|
+
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
7391
|
+
|
|
7392
|
+
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7393
|
+
|
|
7394
|
+
return _ctx.state.totalPages > 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7395
|
+
size: "small",
|
|
7396
|
+
primary: "",
|
|
7397
|
+
disabled: _ctx.isFirstPage,
|
|
7398
|
+
onClick: _ctx.goToPreviousPage
|
|
7399
|
+
}, {
|
|
7400
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7401
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7402
|
+
class: "icon"
|
|
7403
|
+
}), Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_2];
|
|
7404
|
+
}),
|
|
7405
|
+
_: 1
|
|
7406
|
+
}, 8, ["disabled", "onClick"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7407
|
+
onClick: _ctx.goToFirstPage,
|
|
7408
|
+
size: "small",
|
|
7409
|
+
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7410
|
+
'aux-active-button': _ctx.isFirstPage
|
|
7411
|
+
})
|
|
7412
|
+
}, {
|
|
7413
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7414
|
+
return [Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_3, Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_4];
|
|
7415
|
+
}),
|
|
7416
|
+
_: 1
|
|
7417
|
+
}, 8, ["onClick", "class"]), _ctx.showLeftEllipsis ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_5, "…")) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), (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"])(_ctx.generateCenterButtonRow, function (item, index) {
|
|
7418
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_Button, {
|
|
7419
|
+
key: index,
|
|
7420
|
+
size: "small",
|
|
7421
|
+
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7422
|
+
'aux-active-button': _ctx.currentPage === item
|
|
7423
|
+
}),
|
|
7424
|
+
onClick: function onClick($event) {
|
|
7425
|
+
return _ctx.goToSelectedPage(item);
|
|
7426
|
+
}
|
|
7427
|
+
}, {
|
|
7428
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7429
|
+
return [Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_6, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(item) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_7, " av totalt " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.state.totalPages), 1)];
|
|
7430
|
+
}),
|
|
7431
|
+
_: 2
|
|
7432
|
+
}, 1032, ["class", "onClick"]);
|
|
7433
|
+
}), 128)), _ctx.showRightEllipsis ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_8, "…")) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7434
|
+
onClick: _ctx.goToLastPage,
|
|
7435
|
+
size: "small",
|
|
7436
|
+
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7437
|
+
'aux-active-button': _ctx.isLastPage
|
|
7438
|
+
})
|
|
7439
|
+
}, {
|
|
7440
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7441
|
+
return [Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_9, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.state.totalPages), 1)];
|
|
7442
|
+
}),
|
|
7443
|
+
_: 1
|
|
7444
|
+
}, 8, ["onClick", "class"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7445
|
+
size: "small",
|
|
7446
|
+
primary: "",
|
|
7447
|
+
disabled: _ctx.isLastPage,
|
|
7448
|
+
onClick: _ctx.goToNextPage
|
|
7449
|
+
}, {
|
|
7450
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7451
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
7452
|
+
class: "icon"
|
|
7453
|
+
}), _hoisted_10];
|
|
7454
|
+
}),
|
|
7455
|
+
_: 1
|
|
7456
|
+
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7457
|
+
}
|
|
7458
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=6a6dd830&scoped=true
|
|
7459
|
+
|
|
7460
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/vue-loader-v16/dist!./node_modules/vue-svg-loader!./src/assets/icons/regular/caret-right.svg?vue&type=template&id=ac882894
|
|
7461
|
+
|
|
7462
|
+
var caret_rightvue_type_template_id_ac882894_hoisted_1 = {
|
|
7463
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7464
|
+
viewBox: "0 0 256 256"
|
|
7465
|
+
};
|
|
7466
|
+
|
|
7467
|
+
var caret_rightvue_type_template_id_ac882894_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("path", {
|
|
7468
|
+
d: "M96 216a8 8 0 01-5.657-13.657L164.686 128 90.343 53.657a8 8 0 0111.314-11.314l80 80a8 8 0 010 11.314l-80 80A7.975 7.975 0 0196 216z"
|
|
7469
|
+
}, null, -1);
|
|
7470
|
+
|
|
7471
|
+
var caret_rightvue_type_template_id_ac882894_hoisted_3 = [caret_rightvue_type_template_id_ac882894_hoisted_2];
|
|
7472
|
+
function caret_rightvue_type_template_id_ac882894_render(_ctx, _cache) {
|
|
7473
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("svg", caret_rightvue_type_template_id_ac882894_hoisted_1, caret_rightvue_type_template_id_ac882894_hoisted_3);
|
|
7474
|
+
}
|
|
7475
|
+
// CONCATENATED MODULE: ./src/assets/icons/regular/caret-right.svg
|
|
7476
|
+
|
|
7477
|
+
const caret_right_script = {}
|
|
7478
|
+
caret_right_script.render = caret_rightvue_type_template_id_ac882894_render
|
|
7479
|
+
|
|
7480
|
+
/* harmony default export */ var caret_right = (caret_right_script);
|
|
7481
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/vue-loader-v16/dist!./node_modules/vue-svg-loader!./src/assets/icons/regular/caret-left.svg?vue&type=template&id=cdc1e94a
|
|
7482
|
+
|
|
7483
|
+
var caret_leftvue_type_template_id_cdc1e94a_hoisted_1 = {
|
|
7484
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7485
|
+
viewBox: "0 0 256 256"
|
|
7486
|
+
};
|
|
7487
|
+
|
|
7488
|
+
var caret_leftvue_type_template_id_cdc1e94a_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("path", {
|
|
7489
|
+
d: "M160 216a7.975 7.975 0 01-5.657-2.343l-80-80a8 8 0 010-11.314l80-80a8 8 0 0111.314 11.314L91.314 128l74.343 74.343A8 8 0 01160 216z"
|
|
7490
|
+
}, null, -1);
|
|
7491
|
+
|
|
7492
|
+
var caret_leftvue_type_template_id_cdc1e94a_hoisted_3 = [caret_leftvue_type_template_id_cdc1e94a_hoisted_2];
|
|
7493
|
+
function caret_leftvue_type_template_id_cdc1e94a_render(_ctx, _cache) {
|
|
7494
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("svg", caret_leftvue_type_template_id_cdc1e94a_hoisted_1, caret_leftvue_type_template_id_cdc1e94a_hoisted_3);
|
|
7495
|
+
}
|
|
7496
|
+
// CONCATENATED MODULE: ./src/assets/icons/regular/caret-left.svg
|
|
7497
|
+
|
|
7498
|
+
const caret_left_script = {}
|
|
7499
|
+
caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
7500
|
+
|
|
7501
|
+
/* harmony default export */ var caret_left = (caret_left_script);
|
|
7502
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--14-1!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7503
|
+
|
|
7504
|
+
|
|
7505
|
+
|
|
7506
|
+
|
|
7507
|
+
|
|
7508
|
+
|
|
7509
|
+
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7510
|
+
name: 'aux-pagination',
|
|
7511
|
+
emits: ['change'],
|
|
7512
|
+
props: {
|
|
7513
|
+
config: {
|
|
7514
|
+
type: Object,
|
|
7515
|
+
required: true
|
|
7516
|
+
},
|
|
7517
|
+
width: {
|
|
7518
|
+
type: Number,
|
|
7519
|
+
required: false,
|
|
7520
|
+
default: 5
|
|
7521
|
+
},
|
|
7522
|
+
dataTestId: {
|
|
7523
|
+
type: String,
|
|
7524
|
+
required: false
|
|
7525
|
+
}
|
|
7526
|
+
},
|
|
7527
|
+
setup: function setup(props, _ref) {
|
|
7528
|
+
var emit = _ref.emit;
|
|
7529
|
+
var state = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
7530
|
+
totalPages: 0,
|
|
7531
|
+
offset: 0,
|
|
7532
|
+
limit: 0,
|
|
7533
|
+
totalCount: 0
|
|
7534
|
+
});
|
|
7535
|
+
|
|
7536
|
+
var calculateTotalAmoutOfPages = function calculateTotalAmoutOfPages() {
|
|
7537
|
+
state.totalPages = Math.ceil(props.config.totalCount / props.config.limit);
|
|
7538
|
+
};
|
|
7539
|
+
|
|
7540
|
+
var calculateStartPageForCenterButtons = function calculateStartPageForCenterButtons() {
|
|
7541
|
+
var startPage = isFirstPage.value ? currentPage.value + 1 : currentPage.value;
|
|
7542
|
+
|
|
7543
|
+
if (isNearLastPage.value && currentPage.value != 1) {
|
|
7544
|
+
startPage = state.totalPages - props.width - 1;
|
|
7545
|
+
}
|
|
7546
|
+
|
|
7547
|
+
return startPage;
|
|
7548
|
+
};
|
|
7549
|
+
|
|
7550
|
+
var calculateEndPageForCenterButtons = function calculateEndPageForCenterButtons() {
|
|
7551
|
+
var endPage;
|
|
7552
|
+
|
|
7553
|
+
switch (currentPage.value) {
|
|
7554
|
+
case 1:
|
|
7555
|
+
endPage = currentPage.value + props.width + 1;
|
|
7556
|
+
break;
|
|
7557
|
+
|
|
7558
|
+
case 2:
|
|
7559
|
+
endPage = currentPage.value + props.width;
|
|
7560
|
+
break;
|
|
7561
|
+
|
|
7562
|
+
default:
|
|
7563
|
+
endPage = currentPage.value + props.width - 1;
|
|
7564
|
+
}
|
|
7565
|
+
|
|
7566
|
+
if (isNearLastPage.value) {
|
|
7567
|
+
endPage = state.totalPages - 1;
|
|
7568
|
+
}
|
|
7569
|
+
|
|
7570
|
+
return endPage;
|
|
7571
|
+
};
|
|
7572
|
+
|
|
7573
|
+
var goToPage = function goToPage(page) {
|
|
7574
|
+
state.offset = (page - 1) * props.config.limit;
|
|
7575
|
+
emit('change', _objectSpread2(_objectSpread2({}, state), {}, {
|
|
7576
|
+
currentage: currentPage.value
|
|
7577
|
+
}));
|
|
7578
|
+
};
|
|
7579
|
+
|
|
7580
|
+
var goToNextPage = function goToNextPage() {
|
|
7581
|
+
goToPage(currentPage.value + 1);
|
|
7582
|
+
};
|
|
7583
|
+
|
|
7584
|
+
var goToPreviousPage = function goToPreviousPage() {
|
|
7585
|
+
goToPage(currentPage.value - 1);
|
|
7586
|
+
};
|
|
7587
|
+
|
|
7588
|
+
var goToFirstPage = function goToFirstPage() {
|
|
7589
|
+
goToPage(1);
|
|
7590
|
+
};
|
|
7591
|
+
|
|
7592
|
+
var goToLastPage = function goToLastPage() {
|
|
7593
|
+
goToPage(state.totalPages);
|
|
7594
|
+
};
|
|
7595
|
+
|
|
7596
|
+
var goToSelectedPage = function goToSelectedPage(selectedPage) {
|
|
7597
|
+
goToPage(selectedPage);
|
|
7598
|
+
};
|
|
7599
|
+
|
|
7600
|
+
var currentPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7601
|
+
return state.offset / props.config.limit + 1;
|
|
7602
|
+
});
|
|
7603
|
+
var hideEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7604
|
+
return state.totalPages - 2 > props.width + 1;
|
|
7605
|
+
});
|
|
7606
|
+
var showRightEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7607
|
+
return hideEllipsis.value && currentPage.value < state.totalPages - props.width - 1;
|
|
7608
|
+
});
|
|
7609
|
+
var showLeftEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7610
|
+
return hideEllipsis.value && currentPage.value > 2;
|
|
7611
|
+
});
|
|
7612
|
+
var generateCenterButtonRow = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7613
|
+
var arrayOfPageNumbers = [];
|
|
7614
|
+
var startPage = calculateStartPageForCenterButtons();
|
|
7615
|
+
var endPage = calculateEndPageForCenterButtons();
|
|
7616
|
+
|
|
7617
|
+
for (var i = startPage; i > 1 && i <= endPage; i++) {
|
|
7618
|
+
arrayOfPageNumbers.push(i);
|
|
7619
|
+
}
|
|
7620
|
+
|
|
7621
|
+
return arrayOfPageNumbers;
|
|
7622
|
+
});
|
|
7623
|
+
var isFirstPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7624
|
+
return currentPage.value === 1;
|
|
7625
|
+
});
|
|
7626
|
+
var isLastPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7627
|
+
return currentPage.value === state.totalPages;
|
|
7628
|
+
});
|
|
7629
|
+
var isNearLastPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7630
|
+
return currentPage.value >= state.totalPages - (props.width + 1);
|
|
7631
|
+
});
|
|
7632
|
+
var checkIfConfigIsPaginationOffset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7633
|
+
return Object.prototype.hasOwnProperty.call(props.config, 'offset') && Object.prototype.hasOwnProperty.call(props.config, 'limit') && Object.prototype.hasOwnProperty.call(props.config, 'totalCount');
|
|
7634
|
+
});
|
|
7635
|
+
|
|
7636
|
+
var init = function init() {
|
|
7637
|
+
if (checkIfConfigIsPaginationOffset.value) {
|
|
7638
|
+
calculateTotalAmoutOfPages();
|
|
7639
|
+
state.limit = props.config.limit;
|
|
7640
|
+
state.totalCount = props.config.totalCount;
|
|
7641
|
+
} else {
|
|
7642
|
+
console.warn('Pagination require: offset, limit, and totalCount');
|
|
7643
|
+
}
|
|
7644
|
+
};
|
|
7645
|
+
|
|
7646
|
+
init();
|
|
7647
|
+
return {
|
|
7648
|
+
state: state,
|
|
7649
|
+
showRightEllipsis: showRightEllipsis,
|
|
7650
|
+
showLeftEllipsis: showLeftEllipsis,
|
|
7651
|
+
goToNextPage: goToNextPage,
|
|
7652
|
+
goToPreviousPage: goToPreviousPage,
|
|
7653
|
+
goToFirstPage: goToFirstPage,
|
|
7654
|
+
goToLastPage: goToLastPage,
|
|
7655
|
+
generateCenterButtonRow: generateCenterButtonRow,
|
|
7656
|
+
goToSelectedPage: goToSelectedPage,
|
|
7657
|
+
isFirstPage: isFirstPage,
|
|
7658
|
+
isLastPage: isLastPage,
|
|
7659
|
+
currentPage: currentPage
|
|
7660
|
+
};
|
|
7661
|
+
},
|
|
7662
|
+
components: {
|
|
7663
|
+
CaretRightIcon: caret_right,
|
|
7664
|
+
CaretLeftIcon: caret_left,
|
|
7665
|
+
Button: Button
|
|
7666
|
+
}
|
|
7667
|
+
}));
|
|
7668
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7669
|
+
|
|
7670
|
+
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=6a6dd830&lang=scss&scoped=true
|
|
7671
|
+
var Paginationvue_type_style_index_0_id_6a6dd830_lang_scss_scoped_true = __webpack_require__("8b7d");
|
|
7672
|
+
|
|
7673
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7674
|
+
|
|
7675
|
+
|
|
7676
|
+
|
|
7677
|
+
|
|
7678
|
+
|
|
7679
|
+
Paginationvue_type_script_lang_ts.render = Paginationvue_type_template_id_6a6dd830_scoped_true_render
|
|
7680
|
+
Paginationvue_type_script_lang_ts.__scopeId = "data-v-6a6dd830"
|
|
7681
|
+
|
|
7682
|
+
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7298
7683
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|
|
7299
7684
|
|
|
7300
7685
|
var dateAndTime = {};
|
|
@@ -7358,6 +7743,7 @@ function formatDate(date) {
|
|
|
7358
7743
|
|
|
7359
7744
|
|
|
7360
7745
|
|
|
7746
|
+
|
|
7361
7747
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
7362
7748
|
|
|
7363
7749
|
|