@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.common.js
CHANGED
|
@@ -1739,6 +1739,22 @@ var update = add("f8aa6856", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1739
1739
|
|
|
1740
1740
|
/***/ }),
|
|
1741
1741
|
|
|
1742
|
+
/***/ "5b9a":
|
|
1743
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1744
|
+
|
|
1745
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1746
|
+
|
|
1747
|
+
// load the styles
|
|
1748
|
+
var content = __webpack_require__("bab1");
|
|
1749
|
+
if(content.__esModule) content = content.default;
|
|
1750
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
1751
|
+
if(content.locals) module.exports = content.locals;
|
|
1752
|
+
// add the styles to the DOM
|
|
1753
|
+
var add = __webpack_require__("499e").default
|
|
1754
|
+
var update = add("4761f93c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1755
|
+
|
|
1756
|
+
/***/ }),
|
|
1757
|
+
|
|
1742
1758
|
/***/ "5c6c":
|
|
1743
1759
|
/***/ (function(module, exports) {
|
|
1744
1760
|
|
|
@@ -2485,17 +2501,6 @@ if (typeof store.inspectSource != 'function') {
|
|
|
2485
2501
|
module.exports = store.inspectSource;
|
|
2486
2502
|
|
|
2487
2503
|
|
|
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
|
-
|
|
2499
2504
|
/***/ }),
|
|
2500
2505
|
|
|
2501
2506
|
/***/ "8bbf":
|
|
@@ -3590,6 +3595,20 @@ exports.push([module.i, ".aux-form-element[data-v-249b3848]{position:relative}.a
|
|
|
3590
3595
|
module.exports = exports;
|
|
3591
3596
|
|
|
3592
3597
|
|
|
3598
|
+
/***/ }),
|
|
3599
|
+
|
|
3600
|
+
/***/ "bab1":
|
|
3601
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3602
|
+
|
|
3603
|
+
// Imports
|
|
3604
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
3605
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
3606
|
+
// Module
|
|
3607
|
+
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}", ""]);
|
|
3608
|
+
// Exports
|
|
3609
|
+
module.exports = exports;
|
|
3610
|
+
|
|
3611
|
+
|
|
3593
3612
|
/***/ }),
|
|
3594
3613
|
|
|
3595
3614
|
/***/ "bf84":
|
|
@@ -3895,22 +3914,6 @@ try {
|
|
|
3895
3914
|
module.exports = g;
|
|
3896
3915
|
|
|
3897
3916
|
|
|
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
|
-
|
|
3914
3917
|
/***/ }),
|
|
3915
3918
|
|
|
3916
3919
|
/***/ "c96c":
|
|
@@ -4554,20 +4557,6 @@ addToUnscopables('values');
|
|
|
4554
4557
|
addToUnscopables('entries');
|
|
4555
4558
|
|
|
4556
4559
|
|
|
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
4560
|
/***/ }),
|
|
4572
4561
|
|
|
4573
4562
|
/***/ "e439":
|
|
@@ -4653,6 +4642,17 @@ if(content.locals) module.exports = content.locals;
|
|
|
4653
4642
|
var add = __webpack_require__("499e").default
|
|
4654
4643
|
var update = add("18037f0a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
4655
4644
|
|
|
4645
|
+
/***/ }),
|
|
4646
|
+
|
|
4647
|
+
/***/ "e93e":
|
|
4648
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4649
|
+
|
|
4650
|
+
"use strict";
|
|
4651
|
+
/* 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");
|
|
4652
|
+
/* 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__);
|
|
4653
|
+
/* unused harmony reexport * */
|
|
4654
|
+
|
|
4655
|
+
|
|
4656
4656
|
/***/ }),
|
|
4657
4657
|
|
|
4658
4658
|
/***/ "e95a":
|
|
@@ -7337,86 +7337,78 @@ 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=0a1bbd5e&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-0a1bbd5e");
|
|
7344
7344
|
|
|
7345
|
-
var
|
|
7345
|
+
var Paginationvue_type_template_id_0a1bbd5e_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_0a1bbd5e_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
|
|
7355
|
-
|
|
7356
|
-
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7354
|
+
var Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_3 = {
|
|
7357
7355
|
class: "aux-sr-only"
|
|
7358
|
-
}, " Gå til første siden ", -1);
|
|
7359
|
-
|
|
7360
|
-
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_5 = {
|
|
7361
|
-
key: 0,
|
|
7362
|
-
class: "aux-ellipsis"
|
|
7363
7356
|
};
|
|
7364
7357
|
|
|
7365
|
-
var
|
|
7358
|
+
var Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7366
7359
|
class: "aux-sr-only"
|
|
7367
7360
|
}, "Gå til side ", -1);
|
|
7368
7361
|
|
|
7369
|
-
var
|
|
7362
|
+
var Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_5 = {
|
|
7370
7363
|
class: "aux-sr-only"
|
|
7371
7364
|
};
|
|
7372
|
-
var
|
|
7373
|
-
key: 1,
|
|
7374
|
-
class: "aux-ellipsis"
|
|
7375
|
-
};
|
|
7376
|
-
|
|
7377
|
-
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_9 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7365
|
+
var Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_6 = {
|
|
7378
7366
|
class: "aux-sr-only"
|
|
7379
|
-
}
|
|
7367
|
+
};
|
|
7380
7368
|
|
|
7381
|
-
var
|
|
7369
|
+
var Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_7 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7382
7370
|
class: "aux-sr-only"
|
|
7383
7371
|
}, "Gå til neste side", -1);
|
|
7384
7372
|
|
|
7385
7373
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7386
7374
|
|
|
7387
|
-
function
|
|
7375
|
+
function Paginationvue_type_template_id_0a1bbd5e_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7388
7376
|
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7389
7377
|
|
|
7390
7378
|
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
7391
7379
|
|
|
7380
|
+
var _component_EllipsisIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("EllipsisIcon");
|
|
7381
|
+
|
|
7392
7382
|
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7393
7383
|
|
|
7394
|
-
return _ctx.
|
|
7384
|
+
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, {
|
|
7395
7385
|
size: "small",
|
|
7396
7386
|
primary: "",
|
|
7397
|
-
disabled: _ctx.
|
|
7387
|
+
disabled: _ctx.currentPage === 1,
|
|
7398
7388
|
onClick: _ctx.goToPreviousPage
|
|
7399
7389
|
}, {
|
|
7400
7390
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7401
7391
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7402
7392
|
class: "icon"
|
|
7403
|
-
}),
|
|
7404
|
-
}),
|
|
7405
|
-
_: 1
|
|
7406
|
-
}, 8, ["disabled", "onClick"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7407
|
-
onClick: _ctx.goToFirstPage,
|
|
7408
|
-
size: "small",
|
|
7409
|
-
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7410
|
-
'aux-active-button': _ctx.isFirstPage
|
|
7411
|
-
})
|
|
7412
|
-
}, {
|
|
7413
|
-
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7414
|
-
return [Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_3, Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_4];
|
|
7393
|
+
}), Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_2];
|
|
7415
7394
|
}),
|
|
7416
7395
|
_: 1
|
|
7417
|
-
}, 8, ["
|
|
7418
|
-
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["
|
|
7419
|
-
key: index
|
|
7396
|
+
}, 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) {
|
|
7397
|
+
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"], {
|
|
7398
|
+
key: index
|
|
7399
|
+
}, [item === 'ellipsis-left' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_Button, {
|
|
7400
|
+
key: 0,
|
|
7401
|
+
size: "small",
|
|
7402
|
+
onClick: _ctx.skipBackward
|
|
7403
|
+
}, {
|
|
7404
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7405
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7406
|
+
class: "icon"
|
|
7407
|
+
}), 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)];
|
|
7408
|
+
}),
|
|
7409
|
+
_: 1
|
|
7410
|
+
}, 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, {
|
|
7411
|
+
key: 1,
|
|
7420
7412
|
size: "small",
|
|
7421
7413
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7422
7414
|
'aux-active-button': _ctx.currentPage === item
|
|
@@ -7426,36 +7418,36 @@ function Paginationvue_type_template_id_6a6dd830_scoped_true_render(_ctx, _cache
|
|
|
7426
7418
|
}
|
|
7427
7419
|
}, {
|
|
7428
7420
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7429
|
-
return [
|
|
7421
|
+
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)];
|
|
7430
7422
|
}),
|
|
7431
7423
|
_: 2
|
|
7432
|
-
}, 1032, ["class", "onClick"])
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
},
|
|
7424
|
+
}, 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, {
|
|
7425
|
+
key: 2,
|
|
7426
|
+
size: "small",
|
|
7427
|
+
onClick: _ctx.skipForward
|
|
7428
|
+
}, {
|
|
7429
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7430
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7431
|
+
class: "icon"
|
|
7432
|
+
}), 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)];
|
|
7433
|
+
}),
|
|
7434
|
+
_: 1
|
|
7435
|
+
}, 8, ["onClick"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
7436
|
+
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7445
7437
|
size: "small",
|
|
7446
7438
|
primary: "",
|
|
7447
|
-
disabled: _ctx.
|
|
7439
|
+
disabled: _ctx.currentPage === _ctx.totalPages,
|
|
7448
7440
|
onClick: _ctx.goToNextPage
|
|
7449
7441
|
}, {
|
|
7450
7442
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7451
7443
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
7452
7444
|
class: "icon"
|
|
7453
|
-
}),
|
|
7445
|
+
}), Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_7];
|
|
7454
7446
|
}),
|
|
7455
7447
|
_: 1
|
|
7456
7448
|
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7457
7449
|
}
|
|
7458
|
-
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=
|
|
7450
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=0a1bbd5e&scoped=true
|
|
7459
7451
|
|
|
7460
7452
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/vue-loader-v16/dist!./node_modules/vue-svg-loader!./src/assets/icons/regular/caret-right.svg?vue&type=template&id=ac882894
|
|
7461
7453
|
|
|
@@ -7499,6 +7491,27 @@ const caret_left_script = {}
|
|
|
7499
7491
|
caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
7500
7492
|
|
|
7501
7493
|
/* harmony default export */ var caret_left = (caret_left_script);
|
|
7494
|
+
// 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
|
|
7495
|
+
|
|
7496
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_1 = {
|
|
7497
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7498
|
+
viewBox: "0 0 256 256"
|
|
7499
|
+
};
|
|
7500
|
+
|
|
7501
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("path", {
|
|
7502
|
+
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"
|
|
7503
|
+
}, null, -1);
|
|
7504
|
+
|
|
7505
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_3 = [dots_threevue_type_template_id_e69ce776_hoisted_2];
|
|
7506
|
+
function dots_threevue_type_template_id_e69ce776_render(_ctx, _cache) {
|
|
7507
|
+
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);
|
|
7508
|
+
}
|
|
7509
|
+
// CONCATENATED MODULE: ./src/assets/icons/regular/dots-three.svg
|
|
7510
|
+
|
|
7511
|
+
const dots_three_script = {}
|
|
7512
|
+
dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
7513
|
+
|
|
7514
|
+
/* harmony default export */ var dots_three = (dots_three_script);
|
|
7502
7515
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--14-1!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7503
7516
|
|
|
7504
7517
|
|
|
@@ -7506,6 +7519,8 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7506
7519
|
|
|
7507
7520
|
|
|
7508
7521
|
|
|
7522
|
+
|
|
7523
|
+
|
|
7509
7524
|
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7510
7525
|
name: 'aux-pagination',
|
|
7511
7526
|
emits: ['change'],
|
|
@@ -7517,7 +7532,16 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7517
7532
|
width: {
|
|
7518
7533
|
type: Number,
|
|
7519
7534
|
required: false,
|
|
7520
|
-
default: 5
|
|
7535
|
+
default: 5,
|
|
7536
|
+
validator: function validator(width) {
|
|
7537
|
+
var isEven = width % 2 !== 1;
|
|
7538
|
+
|
|
7539
|
+
if (isEven) {
|
|
7540
|
+
console.error('Width need to be an odd number');
|
|
7541
|
+
}
|
|
7542
|
+
|
|
7543
|
+
return !isEven;
|
|
7544
|
+
}
|
|
7521
7545
|
},
|
|
7522
7546
|
dataTestId: {
|
|
7523
7547
|
type: String,
|
|
@@ -7526,55 +7550,62 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7526
7550
|
},
|
|
7527
7551
|
setup: function setup(props, _ref) {
|
|
7528
7552
|
var emit = _ref.emit;
|
|
7529
|
-
var
|
|
7530
|
-
totalPages: 0,
|
|
7531
|
-
offset: 0,
|
|
7532
|
-
limit: 0,
|
|
7533
|
-
totalCount: 0
|
|
7534
|
-
});
|
|
7553
|
+
var offset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(0);
|
|
7535
7554
|
|
|
7536
|
-
var
|
|
7537
|
-
|
|
7555
|
+
var isNearEnd = function isNearEnd() {
|
|
7556
|
+
return currentPage.value - buttonRowOffset() <= 1;
|
|
7538
7557
|
};
|
|
7539
7558
|
|
|
7540
|
-
var
|
|
7541
|
-
|
|
7559
|
+
var isNearStart = function isNearStart() {
|
|
7560
|
+
return currentPage.value + buttonRowOffset() >= totalPages.value;
|
|
7561
|
+
};
|
|
7562
|
+
|
|
7563
|
+
var getEndPageIndex = function getEndPageIndex() {
|
|
7564
|
+
var endButton = currentPage.value + buttonRowOffset();
|
|
7542
7565
|
|
|
7543
|
-
if (
|
|
7544
|
-
|
|
7566
|
+
if (isNearEnd()) {
|
|
7567
|
+
endButton = props.width + 1;
|
|
7545
7568
|
}
|
|
7546
7569
|
|
|
7547
|
-
return
|
|
7570
|
+
return endButton;
|
|
7548
7571
|
};
|
|
7549
7572
|
|
|
7550
|
-
var
|
|
7551
|
-
var
|
|
7573
|
+
var getStartPageIndex = function getStartPageIndex() {
|
|
7574
|
+
var startButton = currentPage.value - buttonRowOffset();
|
|
7552
7575
|
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7576
|
+
if (startButton <= 1) {
|
|
7577
|
+
startButton = 2;
|
|
7578
|
+
} else if (isNearStart()) {
|
|
7579
|
+
startButton = totalPages.value - props.width;
|
|
7580
|
+
} // subtract 1 to adjust for array index
|
|
7557
7581
|
|
|
7558
|
-
case 2:
|
|
7559
|
-
endPage = currentPage.value + props.width;
|
|
7560
|
-
break;
|
|
7561
7582
|
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7583
|
+
return startButton - 1;
|
|
7584
|
+
};
|
|
7585
|
+
|
|
7586
|
+
var fillPagesArray = function fillPagesArray() {
|
|
7587
|
+
var pagesArray = []; // fills a array with numbers (pages) minus page 1 and last page
|
|
7565
7588
|
|
|
7566
|
-
|
|
7567
|
-
|
|
7589
|
+
for (var pageNumber = 1; pageNumber < totalPages.value; pageNumber++) {
|
|
7590
|
+
pagesArray.push(pageNumber);
|
|
7568
7591
|
}
|
|
7569
7592
|
|
|
7570
|
-
return
|
|
7593
|
+
return pagesArray;
|
|
7594
|
+
};
|
|
7595
|
+
|
|
7596
|
+
var buttonRowOffset = function buttonRowOffset() {
|
|
7597
|
+
// calculates how many buttons that is to the side of the center button: width: 5 => 2 buttons on the sides
|
|
7598
|
+
return Math.floor(props.width / 2);
|
|
7571
7599
|
};
|
|
7572
7600
|
|
|
7573
7601
|
var goToPage = function goToPage(page) {
|
|
7574
|
-
|
|
7575
|
-
emit('change',
|
|
7576
|
-
|
|
7577
|
-
|
|
7602
|
+
offset.value = (page - 1) * props.config.limit;
|
|
7603
|
+
emit('change', {
|
|
7604
|
+
offset: offset.value,
|
|
7605
|
+
currentPage: currentPage.value,
|
|
7606
|
+
width: props.width,
|
|
7607
|
+
config: props.config
|
|
7608
|
+
});
|
|
7578
7609
|
};
|
|
7579
7610
|
|
|
7580
7611
|
var goToNextPage = function goToNextPage() {
|
|
@@ -7585,49 +7616,42 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7585
7616
|
goToPage(currentPage.value - 1);
|
|
7586
7617
|
};
|
|
7587
7618
|
|
|
7588
|
-
var
|
|
7589
|
-
goToPage(
|
|
7619
|
+
var goToSelectedPage = function goToSelectedPage(selectedPage) {
|
|
7620
|
+
goToPage(selectedPage);
|
|
7590
7621
|
};
|
|
7591
7622
|
|
|
7592
|
-
var
|
|
7593
|
-
goToPage(
|
|
7623
|
+
var skipBackward = function skipBackward() {
|
|
7624
|
+
goToPage(currentPage.value - props.width);
|
|
7594
7625
|
};
|
|
7595
7626
|
|
|
7596
|
-
var
|
|
7597
|
-
goToPage(
|
|
7627
|
+
var skipForward = function skipForward() {
|
|
7628
|
+
goToPage(currentPage.value + props.width);
|
|
7598
7629
|
};
|
|
7599
7630
|
|
|
7600
|
-
var
|
|
7601
|
-
return
|
|
7602
|
-
});
|
|
7603
|
-
var hideEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7604
|
-
return state.totalPages - 2 > props.width + 1;
|
|
7605
|
-
});
|
|
7606
|
-
var showRightEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7607
|
-
return hideEllipsis.value && currentPage.value < state.totalPages - props.width - 1;
|
|
7631
|
+
var totalPages = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7632
|
+
return Math.ceil(props.config.totalCount / props.config.limit);
|
|
7608
7633
|
});
|
|
7609
|
-
var
|
|
7610
|
-
return
|
|
7634
|
+
var currentPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7635
|
+
return offset.value / props.config.limit + 1;
|
|
7611
7636
|
});
|
|
7612
|
-
var
|
|
7613
|
-
var
|
|
7614
|
-
|
|
7615
|
-
var
|
|
7637
|
+
var generateButtons = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7638
|
+
var pages = fillPagesArray();
|
|
7639
|
+
|
|
7640
|
+
var buttons = _toConsumableArray(pages.slice(getStartPageIndex(), getEndPageIndex()));
|
|
7616
7641
|
|
|
7617
|
-
|
|
7618
|
-
|
|
7642
|
+
if (currentPage.value - buttonRowOffset() > 2) {
|
|
7643
|
+
buttons.shift();
|
|
7644
|
+
buttons.unshift('ellipsis-left');
|
|
7619
7645
|
}
|
|
7620
7646
|
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
var isNearLastPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7630
|
-
return currentPage.value >= state.totalPages - (props.width + 1);
|
|
7647
|
+
if (currentPage.value + buttonRowOffset() < pages.length) {
|
|
7648
|
+
buttons.pop();
|
|
7649
|
+
buttons.push('ellipsis-right');
|
|
7650
|
+
}
|
|
7651
|
+
|
|
7652
|
+
buttons.unshift(1);
|
|
7653
|
+
buttons.push(totalPages.value);
|
|
7654
|
+
return buttons;
|
|
7631
7655
|
});
|
|
7632
7656
|
var checkIfConfigIsPaginationOffset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7633
7657
|
return Object.prototype.hasOwnProperty.call(props.config, 'offset') && Object.prototype.hasOwnProperty.call(props.config, 'limit') && Object.prototype.hasOwnProperty.call(props.config, 'totalCount');
|
|
@@ -7635,40 +7659,33 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7635
7659
|
|
|
7636
7660
|
var init = function init() {
|
|
7637
7661
|
if (checkIfConfigIsPaginationOffset.value) {
|
|
7638
|
-
calculateTotalAmoutOfPages();
|
|
7639
|
-
state.limit = props.config.limit;
|
|
7640
|
-
state.totalCount = props.config.totalCount;
|
|
7641
|
-
} else {
|
|
7642
7662
|
console.warn('Pagination require: offset, limit, and totalCount');
|
|
7643
7663
|
}
|
|
7644
7664
|
};
|
|
7645
7665
|
|
|
7646
7666
|
init();
|
|
7647
7667
|
return {
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
showLeftEllipsis: showLeftEllipsis,
|
|
7651
|
-
goToNextPage: goToNextPage,
|
|
7652
|
-
goToPreviousPage: goToPreviousPage,
|
|
7653
|
-
goToFirstPage: goToFirstPage,
|
|
7654
|
-
goToLastPage: goToLastPage,
|
|
7655
|
-
generateCenterButtonRow: generateCenterButtonRow,
|
|
7668
|
+
totalPages: totalPages,
|
|
7669
|
+
generateButtons: generateButtons,
|
|
7656
7670
|
goToSelectedPage: goToSelectedPage,
|
|
7657
|
-
|
|
7658
|
-
|
|
7671
|
+
goToPreviousPage: goToPreviousPage,
|
|
7672
|
+
goToNextPage: goToNextPage,
|
|
7673
|
+
skipBackward: skipBackward,
|
|
7674
|
+
skipForward: skipForward,
|
|
7659
7675
|
currentPage: currentPage
|
|
7660
7676
|
};
|
|
7661
7677
|
},
|
|
7662
7678
|
components: {
|
|
7663
7679
|
CaretRightIcon: caret_right,
|
|
7664
7680
|
CaretLeftIcon: caret_left,
|
|
7665
|
-
Button: Button
|
|
7681
|
+
Button: Button,
|
|
7682
|
+
EllipsisIcon: dots_three
|
|
7666
7683
|
}
|
|
7667
7684
|
}));
|
|
7668
7685
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7669
7686
|
|
|
7670
|
-
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=
|
|
7671
|
-
var
|
|
7687
|
+
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=0a1bbd5e&lang=scss&scoped=true
|
|
7688
|
+
var Paginationvue_type_style_index_0_id_0a1bbd5e_lang_scss_scoped_true = __webpack_require__("e93e");
|
|
7672
7689
|
|
|
7673
7690
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7674
7691
|
|
|
@@ -7676,8 +7693,8 @@ var Paginationvue_type_style_index_0_id_6a6dd830_lang_scss_scoped_true = __webpa
|
|
|
7676
7693
|
|
|
7677
7694
|
|
|
7678
7695
|
|
|
7679
|
-
Paginationvue_type_script_lang_ts.render =
|
|
7680
|
-
Paginationvue_type_script_lang_ts.__scopeId = "data-v-
|
|
7696
|
+
Paginationvue_type_script_lang_ts.render = Paginationvue_type_template_id_0a1bbd5e_scoped_true_render
|
|
7697
|
+
Paginationvue_type_script_lang_ts.__scopeId = "data-v-0a1bbd5e"
|
|
7681
7698
|
|
|
7682
7699
|
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7683
7700
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|