@ambita/design-system 3.0.23-200.0 → 3.0.23-201.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 +393 -0
- package/dist/aux.common.js.map +1 -1
- package/dist/aux.umd.js +393 -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/Modal/Modal.vue.d.ts +2 -2
- package/dist/types/components/Pagination/Pagination.vue.d.ts +40 -0
- package/dist/types/components/Pagination/types.d.ts +6 -0
- package/dist/types/components/Select/Select.vue.d.ts +1 -1
- package/dist/types/components/TextArea/TextArea.vue.d.ts +2 -2
- 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
|
@@ -375,6 +375,22 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
375
375
|
} : [].forEach;
|
|
376
376
|
|
|
377
377
|
|
|
378
|
+
/***/ }),
|
|
379
|
+
|
|
380
|
+
/***/ "1b20":
|
|
381
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
382
|
+
|
|
383
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
384
|
+
|
|
385
|
+
// load the styles
|
|
386
|
+
var content = __webpack_require__("acd3");
|
|
387
|
+
if(content.__esModule) content = content.default;
|
|
388
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
389
|
+
if(content.locals) module.exports = content.locals;
|
|
390
|
+
// add the styles to the DOM
|
|
391
|
+
var add = __webpack_require__("499e").default
|
|
392
|
+
var update = add("99e10454", content, true, {"sourceMap":false,"shadowMode":false});
|
|
393
|
+
|
|
378
394
|
/***/ }),
|
|
379
395
|
|
|
380
396
|
/***/ "1be4":
|
|
@@ -956,6 +972,17 @@ module.exports = function (it) {
|
|
|
956
972
|
};
|
|
957
973
|
|
|
958
974
|
|
|
975
|
+
/***/ }),
|
|
976
|
+
|
|
977
|
+
/***/ "3635":
|
|
978
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
979
|
+
|
|
980
|
+
"use strict";
|
|
981
|
+
/* 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_0b7897c2_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1b20");
|
|
982
|
+
/* 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_0b7897c2_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_0b7897c2_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
983
|
+
/* unused harmony reexport * */
|
|
984
|
+
|
|
985
|
+
|
|
959
986
|
/***/ }),
|
|
960
987
|
|
|
961
988
|
/***/ "37e8":
|
|
@@ -3303,6 +3330,20 @@ module.exports = function (METHOD_NAME) {
|
|
|
3303
3330
|
};
|
|
3304
3331
|
|
|
3305
3332
|
|
|
3333
|
+
/***/ }),
|
|
3334
|
+
|
|
3335
|
+
/***/ "acd3":
|
|
3336
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3337
|
+
|
|
3338
|
+
// Imports
|
|
3339
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
3340
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
3341
|
+
// Module
|
|
3342
|
+
exports.push([module.i, ".aux-pagination-row[data-v-0b7897c2]{display:flex;justify-content:center}.aux-button[data-v-0b7897c2]{min-width:40px;padding:10px;height:40px;margin:0 5px;border:none}.aux-button+.aux-button[data-v-0b7897c2]{margin-left:0}.aux-button[data-v-0b7897c2]:hover{background-color:#8666ac;color:#fff}.aux-ellipsis[data-v-0b7897c2]{color:#333;line-height:34px;width:40px;font-weight:500;text-align:center}.aux-active-button[data-v-0b7897c2]{background-color:#fff;border:1px solid #360076;color:#360076}.aux-sr-only[data-v-0b7897c2]: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}", ""]);
|
|
3343
|
+
// Exports
|
|
3344
|
+
module.exports = exports;
|
|
3345
|
+
|
|
3346
|
+
|
|
3306
3347
|
/***/ }),
|
|
3307
3348
|
|
|
3308
3349
|
/***/ "ad6d":
|
|
@@ -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,356 @@ 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=0b7897c2&scoped=true
|
|
7341
|
+
|
|
7342
|
+
|
|
7343
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-0b7897c2");
|
|
7344
|
+
|
|
7345
|
+
var Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_1 = {
|
|
7346
|
+
key: 0,
|
|
7347
|
+
class: "aux-pagination-row"
|
|
7348
|
+
};
|
|
7349
|
+
|
|
7350
|
+
var Paginationvue_type_template_id_0b7897c2_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_0b7897c2_scoped_true_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" 1 ");
|
|
7355
|
+
|
|
7356
|
+
var Paginationvue_type_template_id_0b7897c2_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_0b7897c2_scoped_true_hoisted_5 = {
|
|
7361
|
+
key: 0,
|
|
7362
|
+
class: "aux-ellipsis"
|
|
7363
|
+
};
|
|
7364
|
+
|
|
7365
|
+
var Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_6 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7366
|
+
class: "aux-sr-only"
|
|
7367
|
+
}, "Du er på side ", -1);
|
|
7368
|
+
|
|
7369
|
+
var Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_7 = {
|
|
7370
|
+
key: 1,
|
|
7371
|
+
class: "aux-ellipsis"
|
|
7372
|
+
};
|
|
7373
|
+
|
|
7374
|
+
var Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_8 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7375
|
+
class: "aux-sr-only"
|
|
7376
|
+
}, "Gå til siste side", -1);
|
|
7377
|
+
|
|
7378
|
+
var Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_9 = {
|
|
7379
|
+
"aria-hidden": "true"
|
|
7380
|
+
};
|
|
7381
|
+
|
|
7382
|
+
var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7383
|
+
class: "aux-sr-only"
|
|
7384
|
+
}, "Gå til neste side", -1);
|
|
7385
|
+
|
|
7386
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7387
|
+
|
|
7388
|
+
function Paginationvue_type_template_id_0b7897c2_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7389
|
+
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7390
|
+
|
|
7391
|
+
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
7392
|
+
|
|
7393
|
+
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7394
|
+
|
|
7395
|
+
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_0b7897c2_scoped_true_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7396
|
+
size: "small",
|
|
7397
|
+
primary: "",
|
|
7398
|
+
key: "navPrevious",
|
|
7399
|
+
disabled: _ctx.isFirstPage,
|
|
7400
|
+
onClick: _ctx.goToPreviousPage
|
|
7401
|
+
}, {
|
|
7402
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7403
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7404
|
+
class: "icon"
|
|
7405
|
+
}), Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_2];
|
|
7406
|
+
}),
|
|
7407
|
+
_: 1
|
|
7408
|
+
}, 8, ["disabled", "onClick"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7409
|
+
onClick: _ctx.goToFirstPage,
|
|
7410
|
+
size: "small",
|
|
7411
|
+
key: "firstPage",
|
|
7412
|
+
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7413
|
+
'aux-active-button': _ctx.isFirstPage
|
|
7414
|
+
})
|
|
7415
|
+
}, {
|
|
7416
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7417
|
+
return [Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_3, Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_4];
|
|
7418
|
+
}),
|
|
7419
|
+
_: 1
|
|
7420
|
+
}, 8, ["onClick", "class"]), _ctx.showLeftEllipse ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", Paginationvue_type_template_id_0b7897c2_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) {
|
|
7421
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_Button, {
|
|
7422
|
+
key: index,
|
|
7423
|
+
size: "small",
|
|
7424
|
+
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7425
|
+
'aux-active-button': _ctx.state.currentPage === item
|
|
7426
|
+
}),
|
|
7427
|
+
onClick: function onClick($event) {
|
|
7428
|
+
return _ctx.goToSelectedPage(item);
|
|
7429
|
+
}
|
|
7430
|
+
}, {
|
|
7431
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7432
|
+
return [Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_6, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(item), 1)];
|
|
7433
|
+
}),
|
|
7434
|
+
_: 2
|
|
7435
|
+
}, 1032, ["class", "onClick"]);
|
|
7436
|
+
}), 128)), _ctx.showRightEllipse ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_7, "…")) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7437
|
+
onClick: _ctx.goToLastPage,
|
|
7438
|
+
size: "small",
|
|
7439
|
+
key: "lastPage",
|
|
7440
|
+
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7441
|
+
'aux-active-button': _ctx.isLastPage
|
|
7442
|
+
})
|
|
7443
|
+
}, {
|
|
7444
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7445
|
+
return [Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_8, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_9, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.state.totalPages), 1)];
|
|
7446
|
+
}),
|
|
7447
|
+
_: 1
|
|
7448
|
+
}, 8, ["onClick", "class"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7449
|
+
size: "small",
|
|
7450
|
+
primary: "",
|
|
7451
|
+
disabled: _ctx.isLastPage,
|
|
7452
|
+
onClick: _ctx.goToNextPage,
|
|
7453
|
+
key: "navNext"
|
|
7454
|
+
}, {
|
|
7455
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7456
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
7457
|
+
class: "icon"
|
|
7458
|
+
}), _hoisted_10];
|
|
7459
|
+
}),
|
|
7460
|
+
_: 1
|
|
7461
|
+
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7462
|
+
}
|
|
7463
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=0b7897c2&scoped=true
|
|
7464
|
+
|
|
7465
|
+
// 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
|
|
7466
|
+
|
|
7467
|
+
var caret_rightvue_type_template_id_ac882894_hoisted_1 = {
|
|
7468
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7469
|
+
viewBox: "0 0 256 256"
|
|
7470
|
+
};
|
|
7471
|
+
|
|
7472
|
+
var caret_rightvue_type_template_id_ac882894_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("path", {
|
|
7473
|
+
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"
|
|
7474
|
+
}, null, -1);
|
|
7475
|
+
|
|
7476
|
+
var caret_rightvue_type_template_id_ac882894_hoisted_3 = [caret_rightvue_type_template_id_ac882894_hoisted_2];
|
|
7477
|
+
function caret_rightvue_type_template_id_ac882894_render(_ctx, _cache) {
|
|
7478
|
+
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);
|
|
7479
|
+
}
|
|
7480
|
+
// CONCATENATED MODULE: ./src/assets/icons/regular/caret-right.svg
|
|
7481
|
+
|
|
7482
|
+
const caret_right_script = {}
|
|
7483
|
+
caret_right_script.render = caret_rightvue_type_template_id_ac882894_render
|
|
7484
|
+
|
|
7485
|
+
/* harmony default export */ var caret_right = (caret_right_script);
|
|
7486
|
+
// 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
|
|
7487
|
+
|
|
7488
|
+
var caret_leftvue_type_template_id_cdc1e94a_hoisted_1 = {
|
|
7489
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7490
|
+
viewBox: "0 0 256 256"
|
|
7491
|
+
};
|
|
7492
|
+
|
|
7493
|
+
var caret_leftvue_type_template_id_cdc1e94a_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("path", {
|
|
7494
|
+
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"
|
|
7495
|
+
}, null, -1);
|
|
7496
|
+
|
|
7497
|
+
var caret_leftvue_type_template_id_cdc1e94a_hoisted_3 = [caret_leftvue_type_template_id_cdc1e94a_hoisted_2];
|
|
7498
|
+
function caret_leftvue_type_template_id_cdc1e94a_render(_ctx, _cache) {
|
|
7499
|
+
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);
|
|
7500
|
+
}
|
|
7501
|
+
// CONCATENATED MODULE: ./src/assets/icons/regular/caret-left.svg
|
|
7502
|
+
|
|
7503
|
+
const caret_left_script = {}
|
|
7504
|
+
caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
7505
|
+
|
|
7506
|
+
/* harmony default export */ var caret_left = (caret_left_script);
|
|
7507
|
+
// 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
|
|
7508
|
+
|
|
7509
|
+
|
|
7510
|
+
|
|
7511
|
+
|
|
7512
|
+
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7513
|
+
name: 'aux-pagination',
|
|
7514
|
+
emits: ['change'],
|
|
7515
|
+
props: {
|
|
7516
|
+
config: {
|
|
7517
|
+
type: Object,
|
|
7518
|
+
required: true
|
|
7519
|
+
},
|
|
7520
|
+
dataTestId: {
|
|
7521
|
+
type: String,
|
|
7522
|
+
required: false
|
|
7523
|
+
}
|
|
7524
|
+
},
|
|
7525
|
+
setup: function setup(props, _ref) {
|
|
7526
|
+
var emit = _ref.emit;
|
|
7527
|
+
var state = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
7528
|
+
totalPages: 0,
|
|
7529
|
+
offset: 0,
|
|
7530
|
+
currentPage: 1,
|
|
7531
|
+
limit: 0,
|
|
7532
|
+
totalCount: 0
|
|
7533
|
+
});
|
|
7534
|
+
|
|
7535
|
+
var calculatePageOffset = function calculatePageOffset() {
|
|
7536
|
+
state.offset = (state.currentPage - 1) * props.config.limit;
|
|
7537
|
+
};
|
|
7538
|
+
|
|
7539
|
+
var calculateTotalAmoutOfPages = function calculateTotalAmoutOfPages() {
|
|
7540
|
+
state.totalPages = Math.ceil(props.config.totalCount / props.config.limit);
|
|
7541
|
+
};
|
|
7542
|
+
|
|
7543
|
+
var calculateCurrentPageFromOffset = function calculateCurrentPageFromOffset() {
|
|
7544
|
+
state.offset = props.config.offset;
|
|
7545
|
+
state.currentPage = state.offset / props.config.limit + 1;
|
|
7546
|
+
};
|
|
7547
|
+
|
|
7548
|
+
var calculateStartPageForCenterButtons = function calculateStartPageForCenterButtons() {
|
|
7549
|
+
var startPage = isFirstPage.value ? state.currentPage + 1 : state.currentPage;
|
|
7550
|
+
|
|
7551
|
+
if (isNearLastPage.value && state.currentPage != 1) {
|
|
7552
|
+
startPage = state.totalPages - props.config.width - 1;
|
|
7553
|
+
}
|
|
7554
|
+
|
|
7555
|
+
return startPage;
|
|
7556
|
+
};
|
|
7557
|
+
|
|
7558
|
+
var calculateEndPageForCenterButtons = function calculateEndPageForCenterButtons() {
|
|
7559
|
+
var endPage;
|
|
7560
|
+
|
|
7561
|
+
switch (state.currentPage) {
|
|
7562
|
+
case 1:
|
|
7563
|
+
endPage = state.currentPage + props.config.width + 1;
|
|
7564
|
+
break;
|
|
7565
|
+
|
|
7566
|
+
case 2:
|
|
7567
|
+
endPage = state.currentPage + props.config.width;
|
|
7568
|
+
break;
|
|
7569
|
+
|
|
7570
|
+
default:
|
|
7571
|
+
endPage = state.currentPage + props.config.width - 1;
|
|
7572
|
+
}
|
|
7573
|
+
|
|
7574
|
+
if (isNearLastPage.value) {
|
|
7575
|
+
endPage = state.totalPages - 1;
|
|
7576
|
+
}
|
|
7577
|
+
|
|
7578
|
+
return endPage;
|
|
7579
|
+
};
|
|
7580
|
+
|
|
7581
|
+
var goToPage = function goToPage(page) {
|
|
7582
|
+
state.currentPage = page;
|
|
7583
|
+
calculatePageOffset();
|
|
7584
|
+
emit('change', {
|
|
7585
|
+
page: state.currentPage,
|
|
7586
|
+
offset: state.offset,
|
|
7587
|
+
limit: state.limit,
|
|
7588
|
+
totalItems: state.totalCount
|
|
7589
|
+
});
|
|
7590
|
+
};
|
|
7591
|
+
|
|
7592
|
+
var goToNextPage = function goToNextPage() {
|
|
7593
|
+
goToPage(state.currentPage + 1);
|
|
7594
|
+
};
|
|
7595
|
+
|
|
7596
|
+
var goToPreviousPage = function goToPreviousPage() {
|
|
7597
|
+
goToPage(state.currentPage - 1);
|
|
7598
|
+
};
|
|
7599
|
+
|
|
7600
|
+
var goToFirstPage = function goToFirstPage() {
|
|
7601
|
+
goToPage(1);
|
|
7602
|
+
};
|
|
7603
|
+
|
|
7604
|
+
var goToLastPage = function goToLastPage() {
|
|
7605
|
+
goToPage(state.totalPages);
|
|
7606
|
+
};
|
|
7607
|
+
|
|
7608
|
+
var goToSelectedPage = function goToSelectedPage(selectedPage) {
|
|
7609
|
+
goToPage(selectedPage);
|
|
7610
|
+
};
|
|
7611
|
+
|
|
7612
|
+
var hideEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7613
|
+
return state.totalPages - 2 > props.config.width + 1;
|
|
7614
|
+
});
|
|
7615
|
+
var showRightEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7616
|
+
return hideEllipsis.value && state.currentPage < state.totalPages - props.config.width - 1;
|
|
7617
|
+
});
|
|
7618
|
+
var showLeftEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7619
|
+
return hideEllipsis.value && state.currentPage > 2;
|
|
7620
|
+
});
|
|
7621
|
+
var generateCenterButtonRow = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7622
|
+
var arrayOfPageNumbers = [];
|
|
7623
|
+
var startPage = calculateStartPageForCenterButtons();
|
|
7624
|
+
var endPage = calculateEndPageForCenterButtons();
|
|
7625
|
+
|
|
7626
|
+
for (var i = startPage; i > 1 && i <= endPage; i++) {
|
|
7627
|
+
arrayOfPageNumbers.push(i);
|
|
7628
|
+
}
|
|
7629
|
+
|
|
7630
|
+
return arrayOfPageNumbers;
|
|
7631
|
+
});
|
|
7632
|
+
var isFirstPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7633
|
+
return state.currentPage === 1;
|
|
7634
|
+
});
|
|
7635
|
+
var isLastPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7636
|
+
return state.currentPage === state.totalPages;
|
|
7637
|
+
});
|
|
7638
|
+
var isNearLastPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7639
|
+
return state.currentPage >= state.totalPages - (props.config.width + 1);
|
|
7640
|
+
});
|
|
7641
|
+
var checkIfConfigIsPaginationOffset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7642
|
+
return Object.prototype.hasOwnProperty.call(props.config, 'offset') && Object.prototype.hasOwnProperty.call(props.config, 'limit') && Object.prototype.hasOwnProperty.call(props.config, 'totalCount') && Object.prototype.hasOwnProperty.call(props.config, 'width');
|
|
7643
|
+
});
|
|
7644
|
+
|
|
7645
|
+
var init = function init() {
|
|
7646
|
+
if (checkIfConfigIsPaginationOffset.value) {
|
|
7647
|
+
calculateCurrentPageFromOffset();
|
|
7648
|
+
calculateTotalAmoutOfPages();
|
|
7649
|
+
state.limit = props.config.limit;
|
|
7650
|
+
state.totalCount = props.config.totalCount;
|
|
7651
|
+
}
|
|
7652
|
+
};
|
|
7653
|
+
|
|
7654
|
+
init();
|
|
7655
|
+
return {
|
|
7656
|
+
state: state,
|
|
7657
|
+
showRightEllipsis: showRightEllipsis,
|
|
7658
|
+
showLeftEllipsis: showLeftEllipsis,
|
|
7659
|
+
goToNextPage: goToNextPage,
|
|
7660
|
+
goToPreviousPage: goToPreviousPage,
|
|
7661
|
+
goToFirstPage: goToFirstPage,
|
|
7662
|
+
goToLastPage: goToLastPage,
|
|
7663
|
+
generateCenterButtonRow: generateCenterButtonRow,
|
|
7664
|
+
goToSelectedPage: goToSelectedPage,
|
|
7665
|
+
isFirstPage: isFirstPage,
|
|
7666
|
+
isLastPage: isLastPage
|
|
7667
|
+
};
|
|
7668
|
+
},
|
|
7669
|
+
components: {
|
|
7670
|
+
CaretRightIcon: caret_right,
|
|
7671
|
+
CaretLeftIcon: caret_left,
|
|
7672
|
+
Button: Button
|
|
7673
|
+
}
|
|
7674
|
+
}));
|
|
7675
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7676
|
+
|
|
7677
|
+
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=0b7897c2&lang=scss&scoped=true
|
|
7678
|
+
var Paginationvue_type_style_index_0_id_0b7897c2_lang_scss_scoped_true = __webpack_require__("3635");
|
|
7679
|
+
|
|
7680
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7681
|
+
|
|
7682
|
+
|
|
7683
|
+
|
|
7684
|
+
|
|
7685
|
+
|
|
7686
|
+
Paginationvue_type_script_lang_ts.render = Paginationvue_type_template_id_0b7897c2_scoped_true_render
|
|
7687
|
+
Paginationvue_type_script_lang_ts.__scopeId = "data-v-0b7897c2"
|
|
7688
|
+
|
|
7689
|
+
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7298
7690
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|
|
7299
7691
|
|
|
7300
7692
|
var dateAndTime = {};
|
|
@@ -7358,6 +7750,7 @@ function formatDate(date) {
|
|
|
7358
7750
|
|
|
7359
7751
|
|
|
7360
7752
|
|
|
7753
|
+
|
|
7361
7754
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
7362
7755
|
|
|
7363
7756
|
|