@ambita/design-system 3.0.23-201.0 → 3.0.23
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 +106 -113
- package/dist/aux.common.js.map +1 -1
- package/dist/aux.umd.js +106 -113
- 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/Pagination/Pagination.vue.d.ts +11 -2
- package/dist/types/components/Pagination/types.d.ts +0 -1
- package/dist/types/components/TextArea/TextArea.vue.d.ts +2 -2
- package/package.json +1 -1
package/dist/aux.umd.js
CHANGED
|
@@ -384,22 +384,6 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
384
384
|
} : [].forEach;
|
|
385
385
|
|
|
386
386
|
|
|
387
|
-
/***/ }),
|
|
388
|
-
|
|
389
|
-
/***/ "1b20":
|
|
390
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
391
|
-
|
|
392
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
393
|
-
|
|
394
|
-
// load the styles
|
|
395
|
-
var content = __webpack_require__("acd3");
|
|
396
|
-
if(content.__esModule) content = content.default;
|
|
397
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
398
|
-
if(content.locals) module.exports = content.locals;
|
|
399
|
-
// add the styles to the DOM
|
|
400
|
-
var add = __webpack_require__("499e").default
|
|
401
|
-
var update = add("99e10454", content, true, {"sourceMap":false,"shadowMode":false});
|
|
402
|
-
|
|
403
387
|
/***/ }),
|
|
404
388
|
|
|
405
389
|
/***/ "1be4":
|
|
@@ -981,17 +965,6 @@ module.exports = function (it) {
|
|
|
981
965
|
};
|
|
982
966
|
|
|
983
967
|
|
|
984
|
-
/***/ }),
|
|
985
|
-
|
|
986
|
-
/***/ "3635":
|
|
987
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
988
|
-
|
|
989
|
-
"use strict";
|
|
990
|
-
/* 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");
|
|
991
|
-
/* 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__);
|
|
992
|
-
/* unused harmony reexport * */
|
|
993
|
-
|
|
994
|
-
|
|
995
968
|
/***/ }),
|
|
996
969
|
|
|
997
970
|
/***/ "37e8":
|
|
@@ -2521,6 +2494,17 @@ if (typeof store.inspectSource != 'function') {
|
|
|
2521
2494
|
module.exports = store.inspectSource;
|
|
2522
2495
|
|
|
2523
2496
|
|
|
2497
|
+
/***/ }),
|
|
2498
|
+
|
|
2499
|
+
/***/ "8b7d":
|
|
2500
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2501
|
+
|
|
2502
|
+
"use strict";
|
|
2503
|
+
/* 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");
|
|
2504
|
+
/* 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__);
|
|
2505
|
+
/* unused harmony reexport * */
|
|
2506
|
+
|
|
2507
|
+
|
|
2524
2508
|
/***/ }),
|
|
2525
2509
|
|
|
2526
2510
|
/***/ "8bbf":
|
|
@@ -3339,20 +3323,6 @@ module.exports = function (METHOD_NAME) {
|
|
|
3339
3323
|
};
|
|
3340
3324
|
|
|
3341
3325
|
|
|
3342
|
-
/***/ }),
|
|
3343
|
-
|
|
3344
|
-
/***/ "acd3":
|
|
3345
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3346
|
-
|
|
3347
|
-
// Imports
|
|
3348
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
3349
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
3350
|
-
// Module
|
|
3351
|
-
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}", ""]);
|
|
3352
|
-
// Exports
|
|
3353
|
-
module.exports = exports;
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
3326
|
/***/ }),
|
|
3357
3327
|
|
|
3358
3328
|
/***/ "ad6d":
|
|
@@ -3934,6 +3904,22 @@ try {
|
|
|
3934
3904
|
module.exports = g;
|
|
3935
3905
|
|
|
3936
3906
|
|
|
3907
|
+
/***/ }),
|
|
3908
|
+
|
|
3909
|
+
/***/ "c901":
|
|
3910
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3911
|
+
|
|
3912
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
3913
|
+
|
|
3914
|
+
// load the styles
|
|
3915
|
+
var content = __webpack_require__("e312");
|
|
3916
|
+
if(content.__esModule) content = content.default;
|
|
3917
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
3918
|
+
if(content.locals) module.exports = content.locals;
|
|
3919
|
+
// add the styles to the DOM
|
|
3920
|
+
var add = __webpack_require__("499e").default
|
|
3921
|
+
var update = add("9637daa8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
3922
|
+
|
|
3937
3923
|
/***/ }),
|
|
3938
3924
|
|
|
3939
3925
|
/***/ "c96c":
|
|
@@ -4577,6 +4563,20 @@ addToUnscopables('values');
|
|
|
4577
4563
|
addToUnscopables('entries');
|
|
4578
4564
|
|
|
4579
4565
|
|
|
4566
|
+
/***/ }),
|
|
4567
|
+
|
|
4568
|
+
/***/ "e312":
|
|
4569
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4570
|
+
|
|
4571
|
+
// Imports
|
|
4572
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
4573
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
4574
|
+
// Module
|
|
4575
|
+
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}", ""]);
|
|
4576
|
+
// Exports
|
|
4577
|
+
module.exports = exports;
|
|
4578
|
+
|
|
4579
|
+
|
|
4580
4580
|
/***/ }),
|
|
4581
4581
|
|
|
4582
4582
|
/***/ "e439":
|
|
@@ -7346,47 +7346,46 @@ var Togglevue_type_style_index_0_id_78e59f6f_lang_scss_scoped_true = __webpack_r
|
|
|
7346
7346
|
Togglevue_type_script_setup_true_lang_ts.__scopeId = "data-v-78e59f6f"
|
|
7347
7347
|
|
|
7348
7348
|
/* harmony default export */ var Toggle = (Togglevue_type_script_setup_true_lang_ts);
|
|
7349
|
-
// 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=
|
|
7349
|
+
// 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
|
|
7350
7350
|
|
|
7351
7351
|
|
|
7352
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
7352
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-6a6dd830");
|
|
7353
7353
|
|
|
7354
|
-
var
|
|
7354
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_1 = {
|
|
7355
7355
|
key: 0,
|
|
7356
7356
|
class: "aux-pagination-row"
|
|
7357
7357
|
};
|
|
7358
7358
|
|
|
7359
|
-
var
|
|
7359
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7360
7360
|
class: "aux-sr-only"
|
|
7361
7361
|
}, "Gå til forrige side", -1);
|
|
7362
7362
|
|
|
7363
|
-
var
|
|
7363
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" 1 ");
|
|
7364
7364
|
|
|
7365
|
-
var
|
|
7365
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7366
7366
|
class: "aux-sr-only"
|
|
7367
|
-
}, "Gå til første siden", -1);
|
|
7367
|
+
}, " Gå til første siden ", -1);
|
|
7368
7368
|
|
|
7369
|
-
var
|
|
7369
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_5 = {
|
|
7370
7370
|
key: 0,
|
|
7371
7371
|
class: "aux-ellipsis"
|
|
7372
7372
|
};
|
|
7373
7373
|
|
|
7374
|
-
var
|
|
7374
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_6 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7375
7375
|
class: "aux-sr-only"
|
|
7376
|
-
}, "
|
|
7376
|
+
}, "Gå til side ", -1);
|
|
7377
7377
|
|
|
7378
|
-
var
|
|
7378
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_7 = {
|
|
7379
|
+
class: "aux-sr-only"
|
|
7380
|
+
};
|
|
7381
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_8 = {
|
|
7379
7382
|
key: 1,
|
|
7380
7383
|
class: "aux-ellipsis"
|
|
7381
7384
|
};
|
|
7382
7385
|
|
|
7383
|
-
var
|
|
7386
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_9 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7384
7387
|
class: "aux-sr-only"
|
|
7385
|
-
}, "Gå til siste side", -1);
|
|
7386
|
-
|
|
7387
|
-
var Paginationvue_type_template_id_0b7897c2_scoped_true_hoisted_9 = {
|
|
7388
|
-
"aria-hidden": "true"
|
|
7389
|
-
};
|
|
7388
|
+
}, " Gå til siste side, side ", -1);
|
|
7390
7389
|
|
|
7391
7390
|
var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7392
7391
|
class: "aux-sr-only"
|
|
@@ -7394,72 +7393,68 @@ var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_V
|
|
|
7394
7393
|
|
|
7395
7394
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7396
7395
|
|
|
7397
|
-
function
|
|
7396
|
+
function Paginationvue_type_template_id_6a6dd830_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7398
7397
|
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7399
7398
|
|
|
7400
7399
|
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
7401
7400
|
|
|
7402
7401
|
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7403
7402
|
|
|
7404
|
-
return _ctx.state.totalPages > 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
7403
|
+
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, {
|
|
7405
7404
|
size: "small",
|
|
7406
7405
|
primary: "",
|
|
7407
|
-
key: "navPrevious",
|
|
7408
7406
|
disabled: _ctx.isFirstPage,
|
|
7409
7407
|
onClick: _ctx.goToPreviousPage
|
|
7410
7408
|
}, {
|
|
7411
7409
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7412
7410
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7413
7411
|
class: "icon"
|
|
7414
|
-
}),
|
|
7412
|
+
}), Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_2];
|
|
7415
7413
|
}),
|
|
7416
7414
|
_: 1
|
|
7417
7415
|
}, 8, ["disabled", "onClick"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7418
7416
|
onClick: _ctx.goToFirstPage,
|
|
7419
7417
|
size: "small",
|
|
7420
|
-
key: "firstPage",
|
|
7421
7418
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7422
7419
|
'aux-active-button': _ctx.isFirstPage
|
|
7423
7420
|
})
|
|
7424
7421
|
}, {
|
|
7425
7422
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7426
|
-
return [
|
|
7423
|
+
return [Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_3, Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_4];
|
|
7427
7424
|
}),
|
|
7428
7425
|
_: 1
|
|
7429
|
-
}, 8, ["onClick", "class"]), _ctx.
|
|
7426
|
+
}, 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) {
|
|
7430
7427
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_Button, {
|
|
7431
7428
|
key: index,
|
|
7432
7429
|
size: "small",
|
|
7433
7430
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7434
|
-
'aux-active-button': _ctx.
|
|
7431
|
+
'aux-active-button': _ctx.currentPage === item
|
|
7435
7432
|
}),
|
|
7436
7433
|
onClick: function onClick($event) {
|
|
7437
7434
|
return _ctx.goToSelectedPage(item);
|
|
7438
7435
|
}
|
|
7439
7436
|
}, {
|
|
7440
7437
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7441
|
-
return [
|
|
7438
|
+
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)];
|
|
7442
7439
|
}),
|
|
7443
7440
|
_: 2
|
|
7444
7441
|
}, 1032, ["class", "onClick"]);
|
|
7445
|
-
}), 128)), _ctx.
|
|
7442
|
+
}), 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, {
|
|
7446
7443
|
onClick: _ctx.goToLastPage,
|
|
7447
7444
|
size: "small",
|
|
7448
|
-
key: "lastPage",
|
|
7449
7445
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7450
7446
|
'aux-active-button': _ctx.isLastPage
|
|
7451
7447
|
})
|
|
7452
7448
|
}, {
|
|
7453
7449
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7454
|
-
return [
|
|
7450
|
+
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)];
|
|
7455
7451
|
}),
|
|
7456
7452
|
_: 1
|
|
7457
7453
|
}, 8, ["onClick", "class"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7458
7454
|
size: "small",
|
|
7459
7455
|
primary: "",
|
|
7460
7456
|
disabled: _ctx.isLastPage,
|
|
7461
|
-
onClick: _ctx.goToNextPage
|
|
7462
|
-
key: "navNext"
|
|
7457
|
+
onClick: _ctx.goToNextPage
|
|
7463
7458
|
}, {
|
|
7464
7459
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7465
7460
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
@@ -7469,7 +7464,7 @@ function Paginationvue_type_template_id_0b7897c2_scoped_true_render(_ctx, _cache
|
|
|
7469
7464
|
_: 1
|
|
7470
7465
|
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7471
7466
|
}
|
|
7472
|
-
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=
|
|
7467
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=6a6dd830&scoped=true
|
|
7473
7468
|
|
|
7474
7469
|
// 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
|
|
7475
7470
|
|
|
@@ -7518,6 +7513,8 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7518
7513
|
|
|
7519
7514
|
|
|
7520
7515
|
|
|
7516
|
+
|
|
7517
|
+
|
|
7521
7518
|
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7522
7519
|
name: 'aux-pagination',
|
|
7523
7520
|
emits: ['change'],
|
|
@@ -7526,6 +7523,11 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7526
7523
|
type: Object,
|
|
7527
7524
|
required: true
|
|
7528
7525
|
},
|
|
7526
|
+
width: {
|
|
7527
|
+
type: Number,
|
|
7528
|
+
required: false,
|
|
7529
|
+
default: 5
|
|
7530
|
+
},
|
|
7529
7531
|
dataTestId: {
|
|
7530
7532
|
type: String,
|
|
7531
7533
|
required: false
|
|
@@ -7536,29 +7538,19 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7536
7538
|
var state = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
7537
7539
|
totalPages: 0,
|
|
7538
7540
|
offset: 0,
|
|
7539
|
-
currentPage: 1,
|
|
7540
7541
|
limit: 0,
|
|
7541
7542
|
totalCount: 0
|
|
7542
7543
|
});
|
|
7543
7544
|
|
|
7544
|
-
var calculatePageOffset = function calculatePageOffset() {
|
|
7545
|
-
state.offset = (state.currentPage - 1) * props.config.limit;
|
|
7546
|
-
};
|
|
7547
|
-
|
|
7548
7545
|
var calculateTotalAmoutOfPages = function calculateTotalAmoutOfPages() {
|
|
7549
7546
|
state.totalPages = Math.ceil(props.config.totalCount / props.config.limit);
|
|
7550
7547
|
};
|
|
7551
7548
|
|
|
7552
|
-
var calculateCurrentPageFromOffset = function calculateCurrentPageFromOffset() {
|
|
7553
|
-
state.offset = props.config.offset;
|
|
7554
|
-
state.currentPage = state.offset / props.config.limit + 1;
|
|
7555
|
-
};
|
|
7556
|
-
|
|
7557
7549
|
var calculateStartPageForCenterButtons = function calculateStartPageForCenterButtons() {
|
|
7558
|
-
var startPage = isFirstPage.value ?
|
|
7550
|
+
var startPage = isFirstPage.value ? currentPage.value + 1 : currentPage.value;
|
|
7559
7551
|
|
|
7560
|
-
if (isNearLastPage.value &&
|
|
7561
|
-
startPage = state.totalPages - props.
|
|
7552
|
+
if (isNearLastPage.value && currentPage.value != 1) {
|
|
7553
|
+
startPage = state.totalPages - props.width - 1;
|
|
7562
7554
|
}
|
|
7563
7555
|
|
|
7564
7556
|
return startPage;
|
|
@@ -7567,17 +7559,17 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7567
7559
|
var calculateEndPageForCenterButtons = function calculateEndPageForCenterButtons() {
|
|
7568
7560
|
var endPage;
|
|
7569
7561
|
|
|
7570
|
-
switch (
|
|
7562
|
+
switch (currentPage.value) {
|
|
7571
7563
|
case 1:
|
|
7572
|
-
endPage =
|
|
7564
|
+
endPage = currentPage.value + props.width + 1;
|
|
7573
7565
|
break;
|
|
7574
7566
|
|
|
7575
7567
|
case 2:
|
|
7576
|
-
endPage =
|
|
7568
|
+
endPage = currentPage.value + props.width;
|
|
7577
7569
|
break;
|
|
7578
7570
|
|
|
7579
7571
|
default:
|
|
7580
|
-
endPage =
|
|
7572
|
+
endPage = currentPage.value + props.width - 1;
|
|
7581
7573
|
}
|
|
7582
7574
|
|
|
7583
7575
|
if (isNearLastPage.value) {
|
|
@@ -7588,22 +7580,18 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7588
7580
|
};
|
|
7589
7581
|
|
|
7590
7582
|
var goToPage = function goToPage(page) {
|
|
7591
|
-
state.
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
offset: state.offset,
|
|
7596
|
-
limit: state.limit,
|
|
7597
|
-
totalItems: state.totalCount
|
|
7598
|
-
});
|
|
7583
|
+
state.offset = (page - 1) * props.config.limit;
|
|
7584
|
+
emit('change', _objectSpread2(_objectSpread2({}, state), {}, {
|
|
7585
|
+
currentage: currentPage.value
|
|
7586
|
+
}));
|
|
7599
7587
|
};
|
|
7600
7588
|
|
|
7601
7589
|
var goToNextPage = function goToNextPage() {
|
|
7602
|
-
goToPage(
|
|
7590
|
+
goToPage(currentPage.value + 1);
|
|
7603
7591
|
};
|
|
7604
7592
|
|
|
7605
7593
|
var goToPreviousPage = function goToPreviousPage() {
|
|
7606
|
-
goToPage(
|
|
7594
|
+
goToPage(currentPage.value - 1);
|
|
7607
7595
|
};
|
|
7608
7596
|
|
|
7609
7597
|
var goToFirstPage = function goToFirstPage() {
|
|
@@ -7618,14 +7606,17 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7618
7606
|
goToPage(selectedPage);
|
|
7619
7607
|
};
|
|
7620
7608
|
|
|
7609
|
+
var currentPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7610
|
+
return state.offset / props.config.limit + 1;
|
|
7611
|
+
});
|
|
7621
7612
|
var hideEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7622
|
-
return state.totalPages - 2 > props.
|
|
7613
|
+
return state.totalPages - 2 > props.width + 1;
|
|
7623
7614
|
});
|
|
7624
7615
|
var showRightEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7625
|
-
return hideEllipsis.value &&
|
|
7616
|
+
return hideEllipsis.value && currentPage.value < state.totalPages - props.width - 1;
|
|
7626
7617
|
});
|
|
7627
7618
|
var showLeftEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7628
|
-
return hideEllipsis.value &&
|
|
7619
|
+
return hideEllipsis.value && currentPage.value > 2;
|
|
7629
7620
|
});
|
|
7630
7621
|
var generateCenterButtonRow = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7631
7622
|
var arrayOfPageNumbers = [];
|
|
@@ -7639,24 +7630,25 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7639
7630
|
return arrayOfPageNumbers;
|
|
7640
7631
|
});
|
|
7641
7632
|
var isFirstPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7642
|
-
return
|
|
7633
|
+
return currentPage.value === 1;
|
|
7643
7634
|
});
|
|
7644
7635
|
var isLastPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7645
|
-
return
|
|
7636
|
+
return currentPage.value === state.totalPages;
|
|
7646
7637
|
});
|
|
7647
7638
|
var isNearLastPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7648
|
-
return
|
|
7639
|
+
return currentPage.value >= state.totalPages - (props.width + 1);
|
|
7649
7640
|
});
|
|
7650
7641
|
var checkIfConfigIsPaginationOffset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7651
|
-
return Object.prototype.hasOwnProperty.call(props.config, 'offset') && Object.prototype.hasOwnProperty.call(props.config, 'limit') && Object.prototype.hasOwnProperty.call(props.config, 'totalCount')
|
|
7642
|
+
return Object.prototype.hasOwnProperty.call(props.config, 'offset') && Object.prototype.hasOwnProperty.call(props.config, 'limit') && Object.prototype.hasOwnProperty.call(props.config, 'totalCount');
|
|
7652
7643
|
});
|
|
7653
7644
|
|
|
7654
7645
|
var init = function init() {
|
|
7655
7646
|
if (checkIfConfigIsPaginationOffset.value) {
|
|
7656
|
-
calculateCurrentPageFromOffset();
|
|
7657
7647
|
calculateTotalAmoutOfPages();
|
|
7658
7648
|
state.limit = props.config.limit;
|
|
7659
7649
|
state.totalCount = props.config.totalCount;
|
|
7650
|
+
} else {
|
|
7651
|
+
console.warn('Pagination require: offset, limit, and totalCount');
|
|
7660
7652
|
}
|
|
7661
7653
|
};
|
|
7662
7654
|
|
|
@@ -7672,7 +7664,8 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7672
7664
|
generateCenterButtonRow: generateCenterButtonRow,
|
|
7673
7665
|
goToSelectedPage: goToSelectedPage,
|
|
7674
7666
|
isFirstPage: isFirstPage,
|
|
7675
|
-
isLastPage: isLastPage
|
|
7667
|
+
isLastPage: isLastPage,
|
|
7668
|
+
currentPage: currentPage
|
|
7676
7669
|
};
|
|
7677
7670
|
},
|
|
7678
7671
|
components: {
|
|
@@ -7683,8 +7676,8 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7683
7676
|
}));
|
|
7684
7677
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7685
7678
|
|
|
7686
|
-
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=
|
|
7687
|
-
var
|
|
7679
|
+
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=6a6dd830&lang=scss&scoped=true
|
|
7680
|
+
var Paginationvue_type_style_index_0_id_6a6dd830_lang_scss_scoped_true = __webpack_require__("8b7d");
|
|
7688
7681
|
|
|
7689
7682
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7690
7683
|
|
|
@@ -7692,8 +7685,8 @@ var Paginationvue_type_style_index_0_id_0b7897c2_lang_scss_scoped_true = __webpa
|
|
|
7692
7685
|
|
|
7693
7686
|
|
|
7694
7687
|
|
|
7695
|
-
Paginationvue_type_script_lang_ts.render =
|
|
7696
|
-
Paginationvue_type_script_lang_ts.__scopeId = "data-v-
|
|
7688
|
+
Paginationvue_type_script_lang_ts.render = Paginationvue_type_template_id_6a6dd830_scoped_true_render
|
|
7689
|
+
Paginationvue_type_script_lang_ts.__scopeId = "data-v-6a6dd830"
|
|
7697
7690
|
|
|
7698
7691
|
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7699
7692
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|