@ambita/design-system 3.0.23 → 3.0.24-217.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 +199 -182
- package/dist/aux.common.js.map +1 -1
- package/dist/aux.umd.js +199 -182
- 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 +3 -3
- package/dist/types/components/Definition/Definition.vue.d.ts +1 -1
- package/dist/types/components/Input/Input.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 +7 -15
- package/dist/types/components/Radio/Radio.vue.d.ts +2 -2
- package/dist/types/components/Select/Select.vue.d.ts +4 -4
- package/dist/types/components/TextArea/TextArea.vue.d.ts +5 -5
- package/dist/types/components/Upload/Upload.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/aux.umd.js
CHANGED
|
@@ -1748,6 +1748,22 @@ var update = add("f8aa6856", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1748
1748
|
|
|
1749
1749
|
/***/ }),
|
|
1750
1750
|
|
|
1751
|
+
/***/ "5b9a":
|
|
1752
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1753
|
+
|
|
1754
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1755
|
+
|
|
1756
|
+
// load the styles
|
|
1757
|
+
var content = __webpack_require__("bab1");
|
|
1758
|
+
if(content.__esModule) content = content.default;
|
|
1759
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
1760
|
+
if(content.locals) module.exports = content.locals;
|
|
1761
|
+
// add the styles to the DOM
|
|
1762
|
+
var add = __webpack_require__("499e").default
|
|
1763
|
+
var update = add("4761f93c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1764
|
+
|
|
1765
|
+
/***/ }),
|
|
1766
|
+
|
|
1751
1767
|
/***/ "5c6c":
|
|
1752
1768
|
/***/ (function(module, exports) {
|
|
1753
1769
|
|
|
@@ -2494,17 +2510,6 @@ if (typeof store.inspectSource != 'function') {
|
|
|
2494
2510
|
module.exports = store.inspectSource;
|
|
2495
2511
|
|
|
2496
2512
|
|
|
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
|
-
|
|
2508
2513
|
/***/ }),
|
|
2509
2514
|
|
|
2510
2515
|
/***/ "8bbf":
|
|
@@ -3599,6 +3604,20 @@ exports.push([module.i, ".aux-form-element[data-v-249b3848]{position:relative}.a
|
|
|
3599
3604
|
module.exports = exports;
|
|
3600
3605
|
|
|
3601
3606
|
|
|
3607
|
+
/***/ }),
|
|
3608
|
+
|
|
3609
|
+
/***/ "bab1":
|
|
3610
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3611
|
+
|
|
3612
|
+
// Imports
|
|
3613
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
3614
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
3615
|
+
// Module
|
|
3616
|
+
exports.push([module.i, ".aux-pagination-row[data-v-0a1bbd5e]{display:flex;justify-content:center}.aux-button[data-v-0a1bbd5e]{min-width:40px;padding:10px;height:40px;margin:0 5px;border:none}.aux-button[data-v-0a1bbd5e]:hover{background-color:#8666ac;color:#fff}.aux-button+.aux-button[data-v-0a1bbd5e]{margin-left:0}.aux-ellipsis[data-v-0a1bbd5e]{color:#333;line-height:34px;width:40px;font-weight:500;text-align:center}.aux-active-button[data-v-0a1bbd5e]{background-color:#fff;border:1px solid #360076;color:#360076}.aux-sr-only[data-v-0a1bbd5e]: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}", ""]);
|
|
3617
|
+
// Exports
|
|
3618
|
+
module.exports = exports;
|
|
3619
|
+
|
|
3620
|
+
|
|
3602
3621
|
/***/ }),
|
|
3603
3622
|
|
|
3604
3623
|
/***/ "bf84":
|
|
@@ -3904,22 +3923,6 @@ try {
|
|
|
3904
3923
|
module.exports = g;
|
|
3905
3924
|
|
|
3906
3925
|
|
|
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
|
-
|
|
3923
3926
|
/***/ }),
|
|
3924
3927
|
|
|
3925
3928
|
/***/ "c96c":
|
|
@@ -4563,20 +4566,6 @@ addToUnscopables('values');
|
|
|
4563
4566
|
addToUnscopables('entries');
|
|
4564
4567
|
|
|
4565
4568
|
|
|
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
4569
|
/***/ }),
|
|
4581
4570
|
|
|
4582
4571
|
/***/ "e439":
|
|
@@ -4662,6 +4651,17 @@ if(content.locals) module.exports = content.locals;
|
|
|
4662
4651
|
var add = __webpack_require__("499e").default
|
|
4663
4652
|
var update = add("18037f0a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
4664
4653
|
|
|
4654
|
+
/***/ }),
|
|
4655
|
+
|
|
4656
|
+
/***/ "e93e":
|
|
4657
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4658
|
+
|
|
4659
|
+
"use strict";
|
|
4660
|
+
/* 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_0a1bbd5e_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5b9a");
|
|
4661
|
+
/* 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_0a1bbd5e_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_0a1bbd5e_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
4662
|
+
/* unused harmony reexport * */
|
|
4663
|
+
|
|
4664
|
+
|
|
4665
4665
|
/***/ }),
|
|
4666
4666
|
|
|
4667
4667
|
/***/ "e95a":
|
|
@@ -7346,86 +7346,78 @@ 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=0a1bbd5e&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-0a1bbd5e");
|
|
7353
7353
|
|
|
7354
|
-
var
|
|
7354
|
+
var Paginationvue_type_template_id_0a1bbd5e_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_0a1bbd5e_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
|
|
7364
|
-
|
|
7365
|
-
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7363
|
+
var Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_3 = {
|
|
7366
7364
|
class: "aux-sr-only"
|
|
7367
|
-
}, " Gå til første siden ", -1);
|
|
7368
|
-
|
|
7369
|
-
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_5 = {
|
|
7370
|
-
key: 0,
|
|
7371
|
-
class: "aux-ellipsis"
|
|
7372
7365
|
};
|
|
7373
7366
|
|
|
7374
|
-
var
|
|
7367
|
+
var Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7375
7368
|
class: "aux-sr-only"
|
|
7376
7369
|
}, "Gå til side ", -1);
|
|
7377
7370
|
|
|
7378
|
-
var
|
|
7371
|
+
var Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_5 = {
|
|
7379
7372
|
class: "aux-sr-only"
|
|
7380
7373
|
};
|
|
7381
|
-
var
|
|
7382
|
-
key: 1,
|
|
7383
|
-
class: "aux-ellipsis"
|
|
7384
|
-
};
|
|
7385
|
-
|
|
7386
|
-
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_9 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7374
|
+
var Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_6 = {
|
|
7387
7375
|
class: "aux-sr-only"
|
|
7388
|
-
}
|
|
7376
|
+
};
|
|
7389
7377
|
|
|
7390
|
-
var
|
|
7378
|
+
var Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_7 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7391
7379
|
class: "aux-sr-only"
|
|
7392
7380
|
}, "Gå til neste side", -1);
|
|
7393
7381
|
|
|
7394
7382
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7395
7383
|
|
|
7396
|
-
function
|
|
7384
|
+
function Paginationvue_type_template_id_0a1bbd5e_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7397
7385
|
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7398
7386
|
|
|
7399
7387
|
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
7400
7388
|
|
|
7389
|
+
var _component_EllipsisIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("EllipsisIcon");
|
|
7390
|
+
|
|
7401
7391
|
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7402
7392
|
|
|
7403
|
-
return _ctx.
|
|
7393
|
+
return _ctx.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_0a1bbd5e_scoped_true_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7404
7394
|
size: "small",
|
|
7405
7395
|
primary: "",
|
|
7406
|
-
disabled: _ctx.
|
|
7396
|
+
disabled: _ctx.currentPage === 1,
|
|
7407
7397
|
onClick: _ctx.goToPreviousPage
|
|
7408
7398
|
}, {
|
|
7409
7399
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7410
7400
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7411
7401
|
class: "icon"
|
|
7412
|
-
}),
|
|
7413
|
-
}),
|
|
7414
|
-
_: 1
|
|
7415
|
-
}, 8, ["disabled", "onClick"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7416
|
-
onClick: _ctx.goToFirstPage,
|
|
7417
|
-
size: "small",
|
|
7418
|
-
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7419
|
-
'aux-active-button': _ctx.isFirstPage
|
|
7420
|
-
})
|
|
7421
|
-
}, {
|
|
7422
|
-
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7423
|
-
return [Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_3, Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_4];
|
|
7402
|
+
}), Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_2];
|
|
7424
7403
|
}),
|
|
7425
7404
|
_: 1
|
|
7426
|
-
}, 8, ["
|
|
7427
|
-
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["
|
|
7428
|
-
key: index
|
|
7405
|
+
}, 8, ["disabled", "onClick"]), (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.generateButtons, function (item, index) {
|
|
7406
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
|
|
7407
|
+
key: index
|
|
7408
|
+
}, [item === 'ellipsis-left' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_Button, {
|
|
7409
|
+
key: 0,
|
|
7410
|
+
size: "small",
|
|
7411
|
+
onClick: _ctx.skipBackward
|
|
7412
|
+
}, {
|
|
7413
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7414
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7415
|
+
class: "icon"
|
|
7416
|
+
}), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_3, "Hopp " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.width) + " sider tilbake", 1)];
|
|
7417
|
+
}),
|
|
7418
|
+
_: 1
|
|
7419
|
+
}, 8, ["onClick"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), typeof item === 'number' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_Button, {
|
|
7420
|
+
key: 1,
|
|
7429
7421
|
size: "small",
|
|
7430
7422
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7431
7423
|
'aux-active-button': _ctx.currentPage === item
|
|
@@ -7435,36 +7427,36 @@ function Paginationvue_type_template_id_6a6dd830_scoped_true_render(_ctx, _cache
|
|
|
7435
7427
|
}
|
|
7436
7428
|
}, {
|
|
7437
7429
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7438
|
-
return [
|
|
7430
|
+
return [Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_4, 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_0a1bbd5e_scoped_true_hoisted_5, " av totalt " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.totalPages), 1)];
|
|
7439
7431
|
}),
|
|
7440
7432
|
_: 2
|
|
7441
|
-
}, 1032, ["class", "onClick"])
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
},
|
|
7433
|
+
}, 1032, ["class", "onClick"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), item === 'ellipsis-right' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_Button, {
|
|
7434
|
+
key: 2,
|
|
7435
|
+
size: "small",
|
|
7436
|
+
onClick: _ctx.skipForward
|
|
7437
|
+
}, {
|
|
7438
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7439
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7440
|
+
class: "icon"
|
|
7441
|
+
}), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_6, "Hopp " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.width) + " sider fremover", 1)];
|
|
7442
|
+
}),
|
|
7443
|
+
_: 1
|
|
7444
|
+
}, 8, ["onClick"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
7445
|
+
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7454
7446
|
size: "small",
|
|
7455
7447
|
primary: "",
|
|
7456
|
-
disabled: _ctx.
|
|
7448
|
+
disabled: _ctx.currentPage === _ctx.totalPages,
|
|
7457
7449
|
onClick: _ctx.goToNextPage
|
|
7458
7450
|
}, {
|
|
7459
7451
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7460
7452
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
7461
7453
|
class: "icon"
|
|
7462
|
-
}),
|
|
7454
|
+
}), Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_7];
|
|
7463
7455
|
}),
|
|
7464
7456
|
_: 1
|
|
7465
7457
|
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7466
7458
|
}
|
|
7467
|
-
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=
|
|
7459
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=0a1bbd5e&scoped=true
|
|
7468
7460
|
|
|
7469
7461
|
// 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
|
|
7470
7462
|
|
|
@@ -7508,6 +7500,27 @@ const caret_left_script = {}
|
|
|
7508
7500
|
caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
7509
7501
|
|
|
7510
7502
|
/* harmony default export */ var caret_left = (caret_left_script);
|
|
7503
|
+
// 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/dots-three.svg?vue&type=template&id=e69ce776
|
|
7504
|
+
|
|
7505
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_1 = {
|
|
7506
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7507
|
+
viewBox: "0 0 256 256"
|
|
7508
|
+
};
|
|
7509
|
+
|
|
7510
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("path", {
|
|
7511
|
+
d: "M140.001 128a12 12 0 11-12-12 12 12 0 0112 12zm-76-12a12 12 0 1012 12 12 12 0 00-12-12zm128 0a12 12 0 1012 12 12 12 0 00-12-12z"
|
|
7512
|
+
}, null, -1);
|
|
7513
|
+
|
|
7514
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_3 = [dots_threevue_type_template_id_e69ce776_hoisted_2];
|
|
7515
|
+
function dots_threevue_type_template_id_e69ce776_render(_ctx, _cache) {
|
|
7516
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("svg", dots_threevue_type_template_id_e69ce776_hoisted_1, dots_threevue_type_template_id_e69ce776_hoisted_3);
|
|
7517
|
+
}
|
|
7518
|
+
// CONCATENATED MODULE: ./src/assets/icons/regular/dots-three.svg
|
|
7519
|
+
|
|
7520
|
+
const dots_three_script = {}
|
|
7521
|
+
dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
7522
|
+
|
|
7523
|
+
/* harmony default export */ var dots_three = (dots_three_script);
|
|
7511
7524
|
// 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
|
|
7512
7525
|
|
|
7513
7526
|
|
|
@@ -7515,6 +7528,8 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7515
7528
|
|
|
7516
7529
|
|
|
7517
7530
|
|
|
7531
|
+
|
|
7532
|
+
|
|
7518
7533
|
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7519
7534
|
name: 'aux-pagination',
|
|
7520
7535
|
emits: ['change'],
|
|
@@ -7526,7 +7541,16 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7526
7541
|
width: {
|
|
7527
7542
|
type: Number,
|
|
7528
7543
|
required: false,
|
|
7529
|
-
default: 5
|
|
7544
|
+
default: 5,
|
|
7545
|
+
validator: function validator(width) {
|
|
7546
|
+
var isEven = width % 2 !== 1;
|
|
7547
|
+
|
|
7548
|
+
if (isEven) {
|
|
7549
|
+
console.error('Width need to be an odd number');
|
|
7550
|
+
}
|
|
7551
|
+
|
|
7552
|
+
return !isEven;
|
|
7553
|
+
}
|
|
7530
7554
|
},
|
|
7531
7555
|
dataTestId: {
|
|
7532
7556
|
type: String,
|
|
@@ -7535,55 +7559,62 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7535
7559
|
},
|
|
7536
7560
|
setup: function setup(props, _ref) {
|
|
7537
7561
|
var emit = _ref.emit;
|
|
7538
|
-
var
|
|
7539
|
-
totalPages: 0,
|
|
7540
|
-
offset: 0,
|
|
7541
|
-
limit: 0,
|
|
7542
|
-
totalCount: 0
|
|
7543
|
-
});
|
|
7562
|
+
var offset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(0);
|
|
7544
7563
|
|
|
7545
|
-
var
|
|
7546
|
-
|
|
7564
|
+
var isNearEnd = function isNearEnd() {
|
|
7565
|
+
return currentPage.value - buttonRowOffset() <= 1;
|
|
7547
7566
|
};
|
|
7548
7567
|
|
|
7549
|
-
var
|
|
7550
|
-
|
|
7568
|
+
var isNearStart = function isNearStart() {
|
|
7569
|
+
return currentPage.value + buttonRowOffset() >= totalPages.value;
|
|
7570
|
+
};
|
|
7571
|
+
|
|
7572
|
+
var getEndPageIndex = function getEndPageIndex() {
|
|
7573
|
+
var endButton = currentPage.value + buttonRowOffset();
|
|
7551
7574
|
|
|
7552
|
-
if (
|
|
7553
|
-
|
|
7575
|
+
if (isNearEnd()) {
|
|
7576
|
+
endButton = props.width + 1;
|
|
7554
7577
|
}
|
|
7555
7578
|
|
|
7556
|
-
return
|
|
7579
|
+
return endButton;
|
|
7557
7580
|
};
|
|
7558
7581
|
|
|
7559
|
-
var
|
|
7560
|
-
var
|
|
7582
|
+
var getStartPageIndex = function getStartPageIndex() {
|
|
7583
|
+
var startButton = currentPage.value - buttonRowOffset();
|
|
7561
7584
|
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7585
|
+
if (startButton <= 1) {
|
|
7586
|
+
startButton = 2;
|
|
7587
|
+
} else if (isNearStart()) {
|
|
7588
|
+
startButton = totalPages.value - props.width;
|
|
7589
|
+
} // subtract 1 to adjust for array index
|
|
7566
7590
|
|
|
7567
|
-
case 2:
|
|
7568
|
-
endPage = currentPage.value + props.width;
|
|
7569
|
-
break;
|
|
7570
7591
|
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7592
|
+
return startButton - 1;
|
|
7593
|
+
};
|
|
7594
|
+
|
|
7595
|
+
var fillPagesArray = function fillPagesArray() {
|
|
7596
|
+
var pagesArray = []; // fills a array with numbers (pages) minus page 1 and last page
|
|
7574
7597
|
|
|
7575
|
-
|
|
7576
|
-
|
|
7598
|
+
for (var pageNumber = 1; pageNumber < totalPages.value; pageNumber++) {
|
|
7599
|
+
pagesArray.push(pageNumber);
|
|
7577
7600
|
}
|
|
7578
7601
|
|
|
7579
|
-
return
|
|
7602
|
+
return pagesArray;
|
|
7603
|
+
};
|
|
7604
|
+
|
|
7605
|
+
var buttonRowOffset = function buttonRowOffset() {
|
|
7606
|
+
// calculates how many buttons that is to the side of the center button: width: 5 => 2 buttons on the sides
|
|
7607
|
+
return Math.floor(props.width / 2);
|
|
7580
7608
|
};
|
|
7581
7609
|
|
|
7582
7610
|
var goToPage = function goToPage(page) {
|
|
7583
|
-
|
|
7584
|
-
emit('change',
|
|
7585
|
-
|
|
7586
|
-
|
|
7611
|
+
offset.value = (page - 1) * props.config.limit;
|
|
7612
|
+
emit('change', {
|
|
7613
|
+
offset: offset.value,
|
|
7614
|
+
currentPage: currentPage.value,
|
|
7615
|
+
width: props.width,
|
|
7616
|
+
config: props.config
|
|
7617
|
+
});
|
|
7587
7618
|
};
|
|
7588
7619
|
|
|
7589
7620
|
var goToNextPage = function goToNextPage() {
|
|
@@ -7594,49 +7625,42 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7594
7625
|
goToPage(currentPage.value - 1);
|
|
7595
7626
|
};
|
|
7596
7627
|
|
|
7597
|
-
var
|
|
7598
|
-
goToPage(
|
|
7628
|
+
var goToSelectedPage = function goToSelectedPage(selectedPage) {
|
|
7629
|
+
goToPage(selectedPage);
|
|
7599
7630
|
};
|
|
7600
7631
|
|
|
7601
|
-
var
|
|
7602
|
-
goToPage(
|
|
7632
|
+
var skipBackward = function skipBackward() {
|
|
7633
|
+
goToPage(currentPage.value - props.width);
|
|
7603
7634
|
};
|
|
7604
7635
|
|
|
7605
|
-
var
|
|
7606
|
-
goToPage(
|
|
7636
|
+
var skipForward = function skipForward() {
|
|
7637
|
+
goToPage(currentPage.value + props.width);
|
|
7607
7638
|
};
|
|
7608
7639
|
|
|
7609
|
-
var
|
|
7610
|
-
return
|
|
7611
|
-
});
|
|
7612
|
-
var hideEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7613
|
-
return state.totalPages - 2 > props.width + 1;
|
|
7614
|
-
});
|
|
7615
|
-
var showRightEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7616
|
-
return hideEllipsis.value && currentPage.value < state.totalPages - props.width - 1;
|
|
7640
|
+
var totalPages = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7641
|
+
return Math.ceil(props.config.totalCount / props.config.limit);
|
|
7617
7642
|
});
|
|
7618
|
-
var
|
|
7619
|
-
return
|
|
7643
|
+
var currentPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7644
|
+
return offset.value / props.config.limit + 1;
|
|
7620
7645
|
});
|
|
7621
|
-
var
|
|
7622
|
-
var
|
|
7623
|
-
|
|
7624
|
-
var
|
|
7646
|
+
var generateButtons = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7647
|
+
var pages = fillPagesArray();
|
|
7648
|
+
|
|
7649
|
+
var buttons = _toConsumableArray(pages.slice(getStartPageIndex(), getEndPageIndex()));
|
|
7625
7650
|
|
|
7626
|
-
|
|
7627
|
-
|
|
7651
|
+
if (currentPage.value - buttonRowOffset() > 2) {
|
|
7652
|
+
buttons.shift();
|
|
7653
|
+
buttons.unshift('ellipsis-left');
|
|
7628
7654
|
}
|
|
7629
7655
|
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
var isNearLastPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7639
|
-
return currentPage.value >= state.totalPages - (props.width + 1);
|
|
7656
|
+
if (currentPage.value + buttonRowOffset() < pages.length) {
|
|
7657
|
+
buttons.pop();
|
|
7658
|
+
buttons.push('ellipsis-right');
|
|
7659
|
+
}
|
|
7660
|
+
|
|
7661
|
+
buttons.unshift(1);
|
|
7662
|
+
buttons.push(totalPages.value);
|
|
7663
|
+
return buttons;
|
|
7640
7664
|
});
|
|
7641
7665
|
var checkIfConfigIsPaginationOffset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7642
7666
|
return Object.prototype.hasOwnProperty.call(props.config, 'offset') && Object.prototype.hasOwnProperty.call(props.config, 'limit') && Object.prototype.hasOwnProperty.call(props.config, 'totalCount');
|
|
@@ -7644,40 +7668,33 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7644
7668
|
|
|
7645
7669
|
var init = function init() {
|
|
7646
7670
|
if (checkIfConfigIsPaginationOffset.value) {
|
|
7647
|
-
calculateTotalAmoutOfPages();
|
|
7648
|
-
state.limit = props.config.limit;
|
|
7649
|
-
state.totalCount = props.config.totalCount;
|
|
7650
|
-
} else {
|
|
7651
7671
|
console.warn('Pagination require: offset, limit, and totalCount');
|
|
7652
7672
|
}
|
|
7653
7673
|
};
|
|
7654
7674
|
|
|
7655
7675
|
init();
|
|
7656
7676
|
return {
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
showLeftEllipsis: showLeftEllipsis,
|
|
7660
|
-
goToNextPage: goToNextPage,
|
|
7661
|
-
goToPreviousPage: goToPreviousPage,
|
|
7662
|
-
goToFirstPage: goToFirstPage,
|
|
7663
|
-
goToLastPage: goToLastPage,
|
|
7664
|
-
generateCenterButtonRow: generateCenterButtonRow,
|
|
7677
|
+
totalPages: totalPages,
|
|
7678
|
+
generateButtons: generateButtons,
|
|
7665
7679
|
goToSelectedPage: goToSelectedPage,
|
|
7666
|
-
|
|
7667
|
-
|
|
7680
|
+
goToPreviousPage: goToPreviousPage,
|
|
7681
|
+
goToNextPage: goToNextPage,
|
|
7682
|
+
skipBackward: skipBackward,
|
|
7683
|
+
skipForward: skipForward,
|
|
7668
7684
|
currentPage: currentPage
|
|
7669
7685
|
};
|
|
7670
7686
|
},
|
|
7671
7687
|
components: {
|
|
7672
7688
|
CaretRightIcon: caret_right,
|
|
7673
7689
|
CaretLeftIcon: caret_left,
|
|
7674
|
-
Button: Button
|
|
7690
|
+
Button: Button,
|
|
7691
|
+
EllipsisIcon: dots_three
|
|
7675
7692
|
}
|
|
7676
7693
|
}));
|
|
7677
7694
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7678
7695
|
|
|
7679
|
-
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=
|
|
7680
|
-
var
|
|
7696
|
+
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=0a1bbd5e&lang=scss&scoped=true
|
|
7697
|
+
var Paginationvue_type_style_index_0_id_0a1bbd5e_lang_scss_scoped_true = __webpack_require__("e93e");
|
|
7681
7698
|
|
|
7682
7699
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7683
7700
|
|
|
@@ -7685,8 +7702,8 @@ var Paginationvue_type_style_index_0_id_6a6dd830_lang_scss_scoped_true = __webpa
|
|
|
7685
7702
|
|
|
7686
7703
|
|
|
7687
7704
|
|
|
7688
|
-
Paginationvue_type_script_lang_ts.render =
|
|
7689
|
-
Paginationvue_type_script_lang_ts.__scopeId = "data-v-
|
|
7705
|
+
Paginationvue_type_script_lang_ts.render = Paginationvue_type_template_id_0a1bbd5e_scoped_true_render
|
|
7706
|
+
Paginationvue_type_script_lang_ts.__scopeId = "data-v-0a1bbd5e"
|
|
7690
7707
|
|
|
7691
7708
|
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7692
7709
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|