@ambita/design-system 3.0.23-201.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 +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/Definition/Definition.vue.d.ts +2 -2
- 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 +6 -6
- package/package.json +1 -1
package/dist/aux.common.js
CHANGED
|
@@ -375,22 +375,6 @@ 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
|
-
|
|
394
378
|
/***/ }),
|
|
395
379
|
|
|
396
380
|
/***/ "1be4":
|
|
@@ -972,17 +956,6 @@ module.exports = function (it) {
|
|
|
972
956
|
};
|
|
973
957
|
|
|
974
958
|
|
|
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
|
-
|
|
986
959
|
/***/ }),
|
|
987
960
|
|
|
988
961
|
/***/ "37e8":
|
|
@@ -2512,6 +2485,17 @@ if (typeof store.inspectSource != 'function') {
|
|
|
2512
2485
|
module.exports = store.inspectSource;
|
|
2513
2486
|
|
|
2514
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
|
+
|
|
2515
2499
|
/***/ }),
|
|
2516
2500
|
|
|
2517
2501
|
/***/ "8bbf":
|
|
@@ -3330,20 +3314,6 @@ module.exports = function (METHOD_NAME) {
|
|
|
3330
3314
|
};
|
|
3331
3315
|
|
|
3332
3316
|
|
|
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
|
-
|
|
3347
3317
|
/***/ }),
|
|
3348
3318
|
|
|
3349
3319
|
/***/ "ad6d":
|
|
@@ -3925,6 +3895,22 @@ try {
|
|
|
3925
3895
|
module.exports = g;
|
|
3926
3896
|
|
|
3927
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
|
+
|
|
3928
3914
|
/***/ }),
|
|
3929
3915
|
|
|
3930
3916
|
/***/ "c96c":
|
|
@@ -4568,6 +4554,20 @@ addToUnscopables('values');
|
|
|
4568
4554
|
addToUnscopables('entries');
|
|
4569
4555
|
|
|
4570
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
|
+
|
|
4571
4571
|
/***/ }),
|
|
4572
4572
|
|
|
4573
4573
|
/***/ "e439":
|
|
@@ -7337,47 +7337,46 @@ var Togglevue_type_style_index_0_id_78e59f6f_lang_scss_scoped_true = __webpack_r
|
|
|
7337
7337
|
Togglevue_type_script_setup_true_lang_ts.__scopeId = "data-v-78e59f6f"
|
|
7338
7338
|
|
|
7339
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=
|
|
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
7341
|
|
|
7342
7342
|
|
|
7343
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
7343
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-6a6dd830");
|
|
7344
7344
|
|
|
7345
|
-
var
|
|
7345
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_1 = {
|
|
7346
7346
|
key: 0,
|
|
7347
7347
|
class: "aux-pagination-row"
|
|
7348
7348
|
};
|
|
7349
7349
|
|
|
7350
|
-
var
|
|
7350
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7351
7351
|
class: "aux-sr-only"
|
|
7352
7352
|
}, "Gå til forrige side", -1);
|
|
7353
7353
|
|
|
7354
|
-
var
|
|
7354
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" 1 ");
|
|
7355
7355
|
|
|
7356
|
-
var
|
|
7356
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7357
7357
|
class: "aux-sr-only"
|
|
7358
|
-
}, "Gå til første siden", -1);
|
|
7358
|
+
}, " Gå til første siden ", -1);
|
|
7359
7359
|
|
|
7360
|
-
var
|
|
7360
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_5 = {
|
|
7361
7361
|
key: 0,
|
|
7362
7362
|
class: "aux-ellipsis"
|
|
7363
7363
|
};
|
|
7364
7364
|
|
|
7365
|
-
var
|
|
7365
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_6 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7366
7366
|
class: "aux-sr-only"
|
|
7367
|
-
}, "
|
|
7367
|
+
}, "Gå til side ", -1);
|
|
7368
7368
|
|
|
7369
|
-
var
|
|
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 = {
|
|
7370
7373
|
key: 1,
|
|
7371
7374
|
class: "aux-ellipsis"
|
|
7372
7375
|
};
|
|
7373
7376
|
|
|
7374
|
-
var
|
|
7377
|
+
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_9 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7375
7378
|
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
|
-
};
|
|
7379
|
+
}, " Gå til siste side, side ", -1);
|
|
7381
7380
|
|
|
7382
7381
|
var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7383
7382
|
class: "aux-sr-only"
|
|
@@ -7385,72 +7384,68 @@ var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_V
|
|
|
7385
7384
|
|
|
7386
7385
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7387
7386
|
|
|
7388
|
-
function
|
|
7387
|
+
function Paginationvue_type_template_id_6a6dd830_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7389
7388
|
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7390
7389
|
|
|
7391
7390
|
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
7392
7391
|
|
|
7393
7392
|
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7394
7393
|
|
|
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",
|
|
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, {
|
|
7396
7395
|
size: "small",
|
|
7397
7396
|
primary: "",
|
|
7398
|
-
key: "navPrevious",
|
|
7399
7397
|
disabled: _ctx.isFirstPage,
|
|
7400
7398
|
onClick: _ctx.goToPreviousPage
|
|
7401
7399
|
}, {
|
|
7402
7400
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7403
7401
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7404
7402
|
class: "icon"
|
|
7405
|
-
}),
|
|
7403
|
+
}), Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_2];
|
|
7406
7404
|
}),
|
|
7407
7405
|
_: 1
|
|
7408
7406
|
}, 8, ["disabled", "onClick"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7409
7407
|
onClick: _ctx.goToFirstPage,
|
|
7410
7408
|
size: "small",
|
|
7411
|
-
key: "firstPage",
|
|
7412
7409
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7413
7410
|
'aux-active-button': _ctx.isFirstPage
|
|
7414
7411
|
})
|
|
7415
7412
|
}, {
|
|
7416
7413
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7417
|
-
return [
|
|
7414
|
+
return [Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_3, Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_4];
|
|
7418
7415
|
}),
|
|
7419
7416
|
_: 1
|
|
7420
|
-
}, 8, ["onClick", "class"]), _ctx.
|
|
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) {
|
|
7421
7418
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_Button, {
|
|
7422
7419
|
key: index,
|
|
7423
7420
|
size: "small",
|
|
7424
7421
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7425
|
-
'aux-active-button': _ctx.
|
|
7422
|
+
'aux-active-button': _ctx.currentPage === item
|
|
7426
7423
|
}),
|
|
7427
7424
|
onClick: function onClick($event) {
|
|
7428
7425
|
return _ctx.goToSelectedPage(item);
|
|
7429
7426
|
}
|
|
7430
7427
|
}, {
|
|
7431
7428
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7432
|
-
return [
|
|
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)];
|
|
7433
7430
|
}),
|
|
7434
7431
|
_: 2
|
|
7435
7432
|
}, 1032, ["class", "onClick"]);
|
|
7436
|
-
}), 128)), _ctx.
|
|
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, {
|
|
7437
7434
|
onClick: _ctx.goToLastPage,
|
|
7438
7435
|
size: "small",
|
|
7439
|
-
key: "lastPage",
|
|
7440
7436
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7441
7437
|
'aux-active-button': _ctx.isLastPage
|
|
7442
7438
|
})
|
|
7443
7439
|
}, {
|
|
7444
7440
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7445
|
-
return [
|
|
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)];
|
|
7446
7442
|
}),
|
|
7447
7443
|
_: 1
|
|
7448
7444
|
}, 8, ["onClick", "class"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7449
7445
|
size: "small",
|
|
7450
7446
|
primary: "",
|
|
7451
7447
|
disabled: _ctx.isLastPage,
|
|
7452
|
-
onClick: _ctx.goToNextPage
|
|
7453
|
-
key: "navNext"
|
|
7448
|
+
onClick: _ctx.goToNextPage
|
|
7454
7449
|
}, {
|
|
7455
7450
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7456
7451
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
@@ -7460,7 +7455,7 @@ function Paginationvue_type_template_id_0b7897c2_scoped_true_render(_ctx, _cache
|
|
|
7460
7455
|
_: 1
|
|
7461
7456
|
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7462
7457
|
}
|
|
7463
|
-
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=
|
|
7458
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=6a6dd830&scoped=true
|
|
7464
7459
|
|
|
7465
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
|
|
7466
7461
|
|
|
@@ -7509,6 +7504,8 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7509
7504
|
|
|
7510
7505
|
|
|
7511
7506
|
|
|
7507
|
+
|
|
7508
|
+
|
|
7512
7509
|
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7513
7510
|
name: 'aux-pagination',
|
|
7514
7511
|
emits: ['change'],
|
|
@@ -7517,6 +7514,11 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7517
7514
|
type: Object,
|
|
7518
7515
|
required: true
|
|
7519
7516
|
},
|
|
7517
|
+
width: {
|
|
7518
|
+
type: Number,
|
|
7519
|
+
required: false,
|
|
7520
|
+
default: 5
|
|
7521
|
+
},
|
|
7520
7522
|
dataTestId: {
|
|
7521
7523
|
type: String,
|
|
7522
7524
|
required: false
|
|
@@ -7527,29 +7529,19 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7527
7529
|
var state = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
7528
7530
|
totalPages: 0,
|
|
7529
7531
|
offset: 0,
|
|
7530
|
-
currentPage: 1,
|
|
7531
7532
|
limit: 0,
|
|
7532
7533
|
totalCount: 0
|
|
7533
7534
|
});
|
|
7534
7535
|
|
|
7535
|
-
var calculatePageOffset = function calculatePageOffset() {
|
|
7536
|
-
state.offset = (state.currentPage - 1) * props.config.limit;
|
|
7537
|
-
};
|
|
7538
|
-
|
|
7539
7536
|
var calculateTotalAmoutOfPages = function calculateTotalAmoutOfPages() {
|
|
7540
7537
|
state.totalPages = Math.ceil(props.config.totalCount / props.config.limit);
|
|
7541
7538
|
};
|
|
7542
7539
|
|
|
7543
|
-
var calculateCurrentPageFromOffset = function calculateCurrentPageFromOffset() {
|
|
7544
|
-
state.offset = props.config.offset;
|
|
7545
|
-
state.currentPage = state.offset / props.config.limit + 1;
|
|
7546
|
-
};
|
|
7547
|
-
|
|
7548
7540
|
var calculateStartPageForCenterButtons = function calculateStartPageForCenterButtons() {
|
|
7549
|
-
var startPage = isFirstPage.value ?
|
|
7541
|
+
var startPage = isFirstPage.value ? currentPage.value + 1 : currentPage.value;
|
|
7550
7542
|
|
|
7551
|
-
if (isNearLastPage.value &&
|
|
7552
|
-
startPage = state.totalPages - props.
|
|
7543
|
+
if (isNearLastPage.value && currentPage.value != 1) {
|
|
7544
|
+
startPage = state.totalPages - props.width - 1;
|
|
7553
7545
|
}
|
|
7554
7546
|
|
|
7555
7547
|
return startPage;
|
|
@@ -7558,17 +7550,17 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7558
7550
|
var calculateEndPageForCenterButtons = function calculateEndPageForCenterButtons() {
|
|
7559
7551
|
var endPage;
|
|
7560
7552
|
|
|
7561
|
-
switch (
|
|
7553
|
+
switch (currentPage.value) {
|
|
7562
7554
|
case 1:
|
|
7563
|
-
endPage =
|
|
7555
|
+
endPage = currentPage.value + props.width + 1;
|
|
7564
7556
|
break;
|
|
7565
7557
|
|
|
7566
7558
|
case 2:
|
|
7567
|
-
endPage =
|
|
7559
|
+
endPage = currentPage.value + props.width;
|
|
7568
7560
|
break;
|
|
7569
7561
|
|
|
7570
7562
|
default:
|
|
7571
|
-
endPage =
|
|
7563
|
+
endPage = currentPage.value + props.width - 1;
|
|
7572
7564
|
}
|
|
7573
7565
|
|
|
7574
7566
|
if (isNearLastPage.value) {
|
|
@@ -7579,22 +7571,18 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7579
7571
|
};
|
|
7580
7572
|
|
|
7581
7573
|
var goToPage = function goToPage(page) {
|
|
7582
|
-
state.
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
offset: state.offset,
|
|
7587
|
-
limit: state.limit,
|
|
7588
|
-
totalItems: state.totalCount
|
|
7589
|
-
});
|
|
7574
|
+
state.offset = (page - 1) * props.config.limit;
|
|
7575
|
+
emit('change', _objectSpread2(_objectSpread2({}, state), {}, {
|
|
7576
|
+
currentage: currentPage.value
|
|
7577
|
+
}));
|
|
7590
7578
|
};
|
|
7591
7579
|
|
|
7592
7580
|
var goToNextPage = function goToNextPage() {
|
|
7593
|
-
goToPage(
|
|
7581
|
+
goToPage(currentPage.value + 1);
|
|
7594
7582
|
};
|
|
7595
7583
|
|
|
7596
7584
|
var goToPreviousPage = function goToPreviousPage() {
|
|
7597
|
-
goToPage(
|
|
7585
|
+
goToPage(currentPage.value - 1);
|
|
7598
7586
|
};
|
|
7599
7587
|
|
|
7600
7588
|
var goToFirstPage = function goToFirstPage() {
|
|
@@ -7609,14 +7597,17 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7609
7597
|
goToPage(selectedPage);
|
|
7610
7598
|
};
|
|
7611
7599
|
|
|
7600
|
+
var currentPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7601
|
+
return state.offset / props.config.limit + 1;
|
|
7602
|
+
});
|
|
7612
7603
|
var hideEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7613
|
-
return state.totalPages - 2 > props.
|
|
7604
|
+
return state.totalPages - 2 > props.width + 1;
|
|
7614
7605
|
});
|
|
7615
7606
|
var showRightEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7616
|
-
return hideEllipsis.value &&
|
|
7607
|
+
return hideEllipsis.value && currentPage.value < state.totalPages - props.width - 1;
|
|
7617
7608
|
});
|
|
7618
7609
|
var showLeftEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7619
|
-
return hideEllipsis.value &&
|
|
7610
|
+
return hideEllipsis.value && currentPage.value > 2;
|
|
7620
7611
|
});
|
|
7621
7612
|
var generateCenterButtonRow = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7622
7613
|
var arrayOfPageNumbers = [];
|
|
@@ -7630,24 +7621,25 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7630
7621
|
return arrayOfPageNumbers;
|
|
7631
7622
|
});
|
|
7632
7623
|
var isFirstPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7633
|
-
return
|
|
7624
|
+
return currentPage.value === 1;
|
|
7634
7625
|
});
|
|
7635
7626
|
var isLastPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7636
|
-
return
|
|
7627
|
+
return currentPage.value === state.totalPages;
|
|
7637
7628
|
});
|
|
7638
7629
|
var isNearLastPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7639
|
-
return
|
|
7630
|
+
return currentPage.value >= state.totalPages - (props.width + 1);
|
|
7640
7631
|
});
|
|
7641
7632
|
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')
|
|
7633
|
+
return Object.prototype.hasOwnProperty.call(props.config, 'offset') && Object.prototype.hasOwnProperty.call(props.config, 'limit') && Object.prototype.hasOwnProperty.call(props.config, 'totalCount');
|
|
7643
7634
|
});
|
|
7644
7635
|
|
|
7645
7636
|
var init = function init() {
|
|
7646
7637
|
if (checkIfConfigIsPaginationOffset.value) {
|
|
7647
|
-
calculateCurrentPageFromOffset();
|
|
7648
7638
|
calculateTotalAmoutOfPages();
|
|
7649
7639
|
state.limit = props.config.limit;
|
|
7650
7640
|
state.totalCount = props.config.totalCount;
|
|
7641
|
+
} else {
|
|
7642
|
+
console.warn('Pagination require: offset, limit, and totalCount');
|
|
7651
7643
|
}
|
|
7652
7644
|
};
|
|
7653
7645
|
|
|
@@ -7663,7 +7655,8 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7663
7655
|
generateCenterButtonRow: generateCenterButtonRow,
|
|
7664
7656
|
goToSelectedPage: goToSelectedPage,
|
|
7665
7657
|
isFirstPage: isFirstPage,
|
|
7666
|
-
isLastPage: isLastPage
|
|
7658
|
+
isLastPage: isLastPage,
|
|
7659
|
+
currentPage: currentPage
|
|
7667
7660
|
};
|
|
7668
7661
|
},
|
|
7669
7662
|
components: {
|
|
@@ -7674,8 +7667,8 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7674
7667
|
}));
|
|
7675
7668
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7676
7669
|
|
|
7677
|
-
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=
|
|
7678
|
-
var
|
|
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");
|
|
7679
7672
|
|
|
7680
7673
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7681
7674
|
|
|
@@ -7683,8 +7676,8 @@ var Paginationvue_type_style_index_0_id_0b7897c2_lang_scss_scoped_true = __webpa
|
|
|
7683
7676
|
|
|
7684
7677
|
|
|
7685
7678
|
|
|
7686
|
-
Paginationvue_type_script_lang_ts.render =
|
|
7687
|
-
Paginationvue_type_script_lang_ts.__scopeId = "data-v-
|
|
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"
|
|
7688
7681
|
|
|
7689
7682
|
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7690
7683
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|