@ambita/design-system 3.0.23 → 3.0.24-220.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 +186 -183
- package/dist/aux.common.js.map +1 -1
- package/dist/aux.umd.js +186 -183
- 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 +8 -16
- 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 +7 -7
- package/dist/types/components/Upload/Upload.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/aux.umd.js
CHANGED
|
@@ -989,6 +989,22 @@ module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperti
|
|
|
989
989
|
};
|
|
990
990
|
|
|
991
991
|
|
|
992
|
+
/***/ }),
|
|
993
|
+
|
|
994
|
+
/***/ "3904":
|
|
995
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
996
|
+
|
|
997
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
998
|
+
|
|
999
|
+
// load the styles
|
|
1000
|
+
var content = __webpack_require__("d699");
|
|
1001
|
+
if(content.__esModule) content = content.default;
|
|
1002
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
1003
|
+
if(content.locals) module.exports = content.locals;
|
|
1004
|
+
// add the styles to the DOM
|
|
1005
|
+
var add = __webpack_require__("499e").default
|
|
1006
|
+
var update = add("50b8d1f5", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1007
|
+
|
|
992
1008
|
/***/ }),
|
|
993
1009
|
|
|
994
1010
|
/***/ "3bbe":
|
|
@@ -1775,6 +1791,17 @@ exports.push([module.i, ".aux-pill[data-v-3724349d]{font-size:12px;line-height:1
|
|
|
1775
1791
|
module.exports = exports;
|
|
1776
1792
|
|
|
1777
1793
|
|
|
1794
|
+
/***/ }),
|
|
1795
|
+
|
|
1796
|
+
/***/ "6226":
|
|
1797
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1798
|
+
|
|
1799
|
+
"use strict";
|
|
1800
|
+
/* 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_aa245378_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3904");
|
|
1801
|
+
/* 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_aa245378_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_aa245378_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
1802
|
+
/* unused harmony reexport * */
|
|
1803
|
+
|
|
1804
|
+
|
|
1778
1805
|
/***/ }),
|
|
1779
1806
|
|
|
1780
1807
|
/***/ "622f":
|
|
@@ -2494,17 +2521,6 @@ if (typeof store.inspectSource != 'function') {
|
|
|
2494
2521
|
module.exports = store.inspectSource;
|
|
2495
2522
|
|
|
2496
2523
|
|
|
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
2524
|
/***/ }),
|
|
2509
2525
|
|
|
2510
2526
|
/***/ "8bbf":
|
|
@@ -3904,22 +3920,6 @@ try {
|
|
|
3904
3920
|
module.exports = g;
|
|
3905
3921
|
|
|
3906
3922
|
|
|
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
3923
|
/***/ }),
|
|
3924
3924
|
|
|
3925
3925
|
/***/ "c96c":
|
|
@@ -4181,6 +4181,20 @@ module.exports = function (it, TAG, STATIC) {
|
|
|
4181
4181
|
};
|
|
4182
4182
|
|
|
4183
4183
|
|
|
4184
|
+
/***/ }),
|
|
4185
|
+
|
|
4186
|
+
/***/ "d699":
|
|
4187
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4188
|
+
|
|
4189
|
+
// Imports
|
|
4190
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
4191
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
4192
|
+
// Module
|
|
4193
|
+
exports.push([module.i, ".ellipsis[data-v-aa245378]{width:30px;height:40px;margin:0 5px;padding-top:4px;background-color:#fff}.aux-pagination-row[data-v-aa245378]{display:flex;justify-content:center}.aux-button[data-v-aa245378]{min-width:40px;padding:10px;height:40px;margin:0 5px;border:none}.aux-button[data-v-aa245378]:hover{background-color:#8666ac;color:#fff}.aux-button+.aux-button[data-v-aa245378]{margin-left:0}.aux-ellipsis[data-v-aa245378]{color:#333;line-height:34px;width:40px;font-weight:500;text-align:center}.aux-active-button[data-v-aa245378]{background-color:#fff;border:1px solid #360076;color:#360076}.aux-sr-only[data-v-aa245378]: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}", ""]);
|
|
4194
|
+
// Exports
|
|
4195
|
+
module.exports = exports;
|
|
4196
|
+
|
|
4197
|
+
|
|
4184
4198
|
/***/ }),
|
|
4185
4199
|
|
|
4186
4200
|
/***/ "d935":
|
|
@@ -4563,20 +4577,6 @@ addToUnscopables('values');
|
|
|
4563
4577
|
addToUnscopables('entries');
|
|
4564
4578
|
|
|
4565
4579
|
|
|
4566
|
-
/***/ }),
|
|
4567
|
-
|
|
4568
|
-
/***/ "e312":
|
|
4569
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4570
|
-
|
|
4571
|
-
// Imports
|
|
4572
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
4573
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
4574
|
-
// Module
|
|
4575
|
-
exports.push([module.i, ".aux-pagination-row[data-v-6a6dd830]{display:flex;justify-content:center}.aux-button[data-v-6a6dd830]{min-width:40px;padding:10px;height:40px;margin:0 5px;border:none}.aux-button[data-v-6a6dd830]:hover{background-color:#8666ac;color:#fff}.aux-button+.aux-button[data-v-6a6dd830]{margin-left:0}.aux-ellipsis[data-v-6a6dd830]{color:#333;line-height:34px;width:40px;font-weight:500;text-align:center}.aux-active-button[data-v-6a6dd830]{background-color:#fff;border:1px solid #360076;color:#360076}.aux-sr-only[data-v-6a6dd830]:not(:focus):not(:active){clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}", ""]);
|
|
4576
|
-
// Exports
|
|
4577
|
-
module.exports = exports;
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
4580
|
/***/ }),
|
|
4581
4581
|
|
|
4582
4582
|
/***/ "e439":
|
|
@@ -7346,86 +7346,71 @@ 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=aa245378&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-aa245378");
|
|
7353
7353
|
|
|
7354
|
-
var
|
|
7354
|
+
var Paginationvue_type_template_id_aa245378_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_aa245378_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", {
|
|
7366
|
-
class: "aux-sr-only"
|
|
7367
|
-
}, " Gå til første siden ", -1);
|
|
7368
|
-
|
|
7369
|
-
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_5 = {
|
|
7363
|
+
var Paginationvue_type_template_id_aa245378_scoped_true_hoisted_3 = {
|
|
7370
7364
|
key: 0,
|
|
7371
|
-
class: "
|
|
7365
|
+
class: "ellipsis"
|
|
7372
7366
|
};
|
|
7373
7367
|
|
|
7374
|
-
var
|
|
7368
|
+
var Paginationvue_type_template_id_aa245378_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7375
7369
|
class: "aux-sr-only"
|
|
7376
7370
|
}, "Gå til side ", -1);
|
|
7377
7371
|
|
|
7378
|
-
var
|
|
7372
|
+
var Paginationvue_type_template_id_aa245378_scoped_true_hoisted_5 = {
|
|
7379
7373
|
class: "aux-sr-only"
|
|
7380
7374
|
};
|
|
7381
|
-
var
|
|
7382
|
-
key:
|
|
7383
|
-
class: "
|
|
7375
|
+
var Paginationvue_type_template_id_aa245378_scoped_true_hoisted_6 = {
|
|
7376
|
+
key: 2,
|
|
7377
|
+
class: "ellipsis"
|
|
7384
7378
|
};
|
|
7385
7379
|
|
|
7386
|
-
var
|
|
7387
|
-
class: "aux-sr-only"
|
|
7388
|
-
}, " Gå til siste side, side ", -1);
|
|
7389
|
-
|
|
7390
|
-
var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7380
|
+
var Paginationvue_type_template_id_aa245378_scoped_true_hoisted_7 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7391
7381
|
class: "aux-sr-only"
|
|
7392
7382
|
}, "Gå til neste side", -1);
|
|
7393
7383
|
|
|
7394
7384
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7395
7385
|
|
|
7396
|
-
function
|
|
7386
|
+
function Paginationvue_type_template_id_aa245378_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7397
7387
|
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7398
7388
|
|
|
7399
7389
|
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
7400
7390
|
|
|
7391
|
+
var _component_EllipsisIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("EllipsisIcon");
|
|
7392
|
+
|
|
7401
7393
|
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7402
7394
|
|
|
7403
|
-
return _ctx.
|
|
7395
|
+
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_aa245378_scoped_true_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7404
7396
|
size: "small",
|
|
7405
7397
|
primary: "",
|
|
7406
|
-
disabled: _ctx.
|
|
7398
|
+
disabled: _ctx.currentPage === 1,
|
|
7407
7399
|
onClick: _ctx.goToPreviousPage
|
|
7408
7400
|
}, {
|
|
7409
7401
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7410
7402
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7411
7403
|
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];
|
|
7404
|
+
}), Paginationvue_type_template_id_aa245378_scoped_true_hoisted_2];
|
|
7424
7405
|
}),
|
|
7425
7406
|
_: 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
|
|
7407
|
+
}, 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) {
|
|
7408
|
+
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"], {
|
|
7409
|
+
key: index
|
|
7410
|
+
}, [item === 'ellipsis-left' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", Paginationvue_type_template_id_aa245378_scoped_true_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7411
|
+
class: "icon"
|
|
7412
|
+
})])) : 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, {
|
|
7413
|
+
key: 1,
|
|
7429
7414
|
size: "small",
|
|
7430
7415
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7431
7416
|
'aux-active-button': _ctx.currentPage === item
|
|
@@ -7435,36 +7420,27 @@ function Paginationvue_type_template_id_6a6dd830_scoped_true_render(_ctx, _cache
|
|
|
7435
7420
|
}
|
|
7436
7421
|
}, {
|
|
7437
7422
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7438
|
-
return [
|
|
7423
|
+
return [Paginationvue_type_template_id_aa245378_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_aa245378_scoped_true_hoisted_5, " av totalt " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.totalPages), 1)];
|
|
7439
7424
|
}),
|
|
7440
7425
|
_: 2
|
|
7441
|
-
}, 1032, ["class", "onClick"])
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7446
|
-
'aux-active-button': _ctx.isLastPage
|
|
7447
|
-
})
|
|
7448
|
-
}, {
|
|
7449
|
-
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7450
|
-
return [Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_9, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.state.totalPages), 1)];
|
|
7451
|
-
}),
|
|
7452
|
-
_: 1
|
|
7453
|
-
}, 8, ["onClick", "class"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7426
|
+
}, 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_["createElementBlock"])("div", Paginationvue_type_template_id_aa245378_scoped_true_hoisted_6, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7427
|
+
class: "icon"
|
|
7428
|
+
})])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
7429
|
+
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7454
7430
|
size: "small",
|
|
7455
7431
|
primary: "",
|
|
7456
|
-
disabled: _ctx.
|
|
7432
|
+
disabled: _ctx.currentPage === _ctx.totalPages,
|
|
7457
7433
|
onClick: _ctx.goToNextPage
|
|
7458
7434
|
}, {
|
|
7459
7435
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7460
7436
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
7461
7437
|
class: "icon"
|
|
7462
|
-
}),
|
|
7438
|
+
}), Paginationvue_type_template_id_aa245378_scoped_true_hoisted_7];
|
|
7463
7439
|
}),
|
|
7464
7440
|
_: 1
|
|
7465
7441
|
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7466
7442
|
}
|
|
7467
|
-
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=
|
|
7443
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=aa245378&scoped=true
|
|
7468
7444
|
|
|
7469
7445
|
// 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
7446
|
|
|
@@ -7508,6 +7484,27 @@ const caret_left_script = {}
|
|
|
7508
7484
|
caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
7509
7485
|
|
|
7510
7486
|
/* harmony default export */ var caret_left = (caret_left_script);
|
|
7487
|
+
// 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
|
|
7488
|
+
|
|
7489
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_1 = {
|
|
7490
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7491
|
+
viewBox: "0 0 256 256"
|
|
7492
|
+
};
|
|
7493
|
+
|
|
7494
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("path", {
|
|
7495
|
+
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"
|
|
7496
|
+
}, null, -1);
|
|
7497
|
+
|
|
7498
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_3 = [dots_threevue_type_template_id_e69ce776_hoisted_2];
|
|
7499
|
+
function dots_threevue_type_template_id_e69ce776_render(_ctx, _cache) {
|
|
7500
|
+
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);
|
|
7501
|
+
}
|
|
7502
|
+
// CONCATENATED MODULE: ./src/assets/icons/regular/dots-three.svg
|
|
7503
|
+
|
|
7504
|
+
const dots_three_script = {}
|
|
7505
|
+
dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
7506
|
+
|
|
7507
|
+
/* harmony default export */ var dots_three = (dots_three_script);
|
|
7511
7508
|
// 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
7509
|
|
|
7513
7510
|
|
|
@@ -7515,6 +7512,8 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7515
7512
|
|
|
7516
7513
|
|
|
7517
7514
|
|
|
7515
|
+
|
|
7516
|
+
|
|
7518
7517
|
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7519
7518
|
name: 'aux-pagination',
|
|
7520
7519
|
emits: ['change'],
|
|
@@ -7526,7 +7525,16 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7526
7525
|
width: {
|
|
7527
7526
|
type: Number,
|
|
7528
7527
|
required: false,
|
|
7529
|
-
default: 5
|
|
7528
|
+
default: 5,
|
|
7529
|
+
validator: function validator(width) {
|
|
7530
|
+
var isEven = width % 2 !== 1;
|
|
7531
|
+
|
|
7532
|
+
if (isEven) {
|
|
7533
|
+
console.error('Width need to be an odd number');
|
|
7534
|
+
}
|
|
7535
|
+
|
|
7536
|
+
return !isEven;
|
|
7537
|
+
}
|
|
7530
7538
|
},
|
|
7531
7539
|
dataTestId: {
|
|
7532
7540
|
type: String,
|
|
@@ -7535,55 +7543,62 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7535
7543
|
},
|
|
7536
7544
|
setup: function setup(props, _ref) {
|
|
7537
7545
|
var emit = _ref.emit;
|
|
7538
|
-
var
|
|
7539
|
-
totalPages: 0,
|
|
7540
|
-
offset: 0,
|
|
7541
|
-
limit: 0,
|
|
7542
|
-
totalCount: 0
|
|
7543
|
-
});
|
|
7546
|
+
var offset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(0);
|
|
7544
7547
|
|
|
7545
|
-
var
|
|
7546
|
-
|
|
7548
|
+
var isNearEnd = function isNearEnd() {
|
|
7549
|
+
return currentPage.value - buttonRowOffset() <= 1;
|
|
7547
7550
|
};
|
|
7548
7551
|
|
|
7549
|
-
var
|
|
7550
|
-
|
|
7552
|
+
var isNearStart = function isNearStart() {
|
|
7553
|
+
return currentPage.value + buttonRowOffset() >= totalPages.value;
|
|
7554
|
+
};
|
|
7551
7555
|
|
|
7552
|
-
|
|
7553
|
-
|
|
7556
|
+
var getEndPageIndex = function getEndPageIndex() {
|
|
7557
|
+
var endButton = currentPage.value + buttonRowOffset();
|
|
7558
|
+
|
|
7559
|
+
if (isNearEnd()) {
|
|
7560
|
+
endButton = props.width + 1;
|
|
7554
7561
|
}
|
|
7555
7562
|
|
|
7556
|
-
return
|
|
7563
|
+
return endButton;
|
|
7557
7564
|
};
|
|
7558
7565
|
|
|
7559
|
-
var
|
|
7560
|
-
var
|
|
7566
|
+
var getStartPageIndex = function getStartPageIndex() {
|
|
7567
|
+
var startButton = currentPage.value - buttonRowOffset();
|
|
7561
7568
|
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7569
|
+
if (startButton <= 1) {
|
|
7570
|
+
startButton = 2;
|
|
7571
|
+
} else if (isNearStart()) {
|
|
7572
|
+
startButton = totalPages.value - props.width;
|
|
7573
|
+
} // subtract 1 to adjust for array index
|
|
7566
7574
|
|
|
7567
|
-
case 2:
|
|
7568
|
-
endPage = currentPage.value + props.width;
|
|
7569
|
-
break;
|
|
7570
7575
|
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
}
|
|
7576
|
+
return startButton - 1;
|
|
7577
|
+
};
|
|
7574
7578
|
|
|
7575
|
-
|
|
7576
|
-
|
|
7579
|
+
var fillPagesArray = function fillPagesArray() {
|
|
7580
|
+
var pagesArray = []; // fills a array with numbers (pages) minus page 1 and last page
|
|
7581
|
+
|
|
7582
|
+
for (var pageNumber = 1; pageNumber < totalPages.value; pageNumber++) {
|
|
7583
|
+
pagesArray.push(pageNumber);
|
|
7577
7584
|
}
|
|
7578
7585
|
|
|
7579
|
-
return
|
|
7586
|
+
return pagesArray;
|
|
7587
|
+
};
|
|
7588
|
+
|
|
7589
|
+
var buttonRowOffset = function buttonRowOffset() {
|
|
7590
|
+
// calculates how many buttons that is to the side of the center button: width: 5 => 2 buttons on the sides
|
|
7591
|
+
return Math.floor(props.width / 2);
|
|
7580
7592
|
};
|
|
7581
7593
|
|
|
7582
7594
|
var goToPage = function goToPage(page) {
|
|
7583
|
-
|
|
7584
|
-
emit('change',
|
|
7585
|
-
|
|
7586
|
-
|
|
7595
|
+
offset.value = (page - 1) * props.config.limit;
|
|
7596
|
+
emit('change', {
|
|
7597
|
+
offset: offset.value,
|
|
7598
|
+
currentPage: currentPage.value,
|
|
7599
|
+
width: props.width,
|
|
7600
|
+
config: props.config
|
|
7601
|
+
});
|
|
7587
7602
|
};
|
|
7588
7603
|
|
|
7589
7604
|
var goToNextPage = function goToNextPage() {
|
|
@@ -7594,90 +7609,78 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7594
7609
|
goToPage(currentPage.value - 1);
|
|
7595
7610
|
};
|
|
7596
7611
|
|
|
7597
|
-
var
|
|
7598
|
-
goToPage(
|
|
7612
|
+
var goToSelectedPage = function goToSelectedPage(selectedPage) {
|
|
7613
|
+
goToPage(selectedPage);
|
|
7599
7614
|
};
|
|
7600
7615
|
|
|
7601
|
-
var
|
|
7602
|
-
goToPage(
|
|
7616
|
+
var skipBackward = function skipBackward() {
|
|
7617
|
+
goToPage(currentPage.value - props.width);
|
|
7603
7618
|
};
|
|
7604
7619
|
|
|
7605
|
-
var
|
|
7606
|
-
goToPage(
|
|
7620
|
+
var skipForward = function skipForward() {
|
|
7621
|
+
goToPage(currentPage.value + props.width);
|
|
7607
7622
|
};
|
|
7608
7623
|
|
|
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;
|
|
7624
|
+
var totalPages = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7625
|
+
return Math.ceil(props.config.totalCount / props.config.limit);
|
|
7614
7626
|
});
|
|
7615
|
-
var
|
|
7616
|
-
return
|
|
7617
|
-
});
|
|
7618
|
-
var showLeftEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7619
|
-
return hideEllipsis.value && currentPage.value > 2;
|
|
7627
|
+
var currentPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7628
|
+
return offset.value / props.config.limit + 1;
|
|
7620
7629
|
});
|
|
7621
|
-
var
|
|
7622
|
-
var
|
|
7623
|
-
|
|
7624
|
-
var
|
|
7630
|
+
var generateButtons = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7631
|
+
var pages = fillPagesArray();
|
|
7632
|
+
|
|
7633
|
+
var buttons = _toConsumableArray(pages.slice(getStartPageIndex(), getEndPageIndex()));
|
|
7625
7634
|
|
|
7626
|
-
|
|
7627
|
-
|
|
7635
|
+
if (currentPage.value - buttonRowOffset() > 2) {
|
|
7636
|
+
buttons.shift();
|
|
7637
|
+
buttons.unshift('ellipsis-left');
|
|
7628
7638
|
}
|
|
7629
7639
|
|
|
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);
|
|
7640
|
+
if (currentPage.value + buttonRowOffset() < pages.length) {
|
|
7641
|
+
buttons.pop();
|
|
7642
|
+
buttons.push('ellipsis-right');
|
|
7643
|
+
}
|
|
7644
|
+
|
|
7645
|
+
buttons.unshift(1);
|
|
7646
|
+
buttons.push(totalPages.value);
|
|
7647
|
+
return buttons;
|
|
7640
7648
|
});
|
|
7641
7649
|
var checkIfConfigIsPaginationOffset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7642
7650
|
return Object.prototype.hasOwnProperty.call(props.config, 'offset') && Object.prototype.hasOwnProperty.call(props.config, 'limit') && Object.prototype.hasOwnProperty.call(props.config, 'totalCount');
|
|
7643
7651
|
});
|
|
7644
7652
|
|
|
7645
7653
|
var init = function init() {
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
state.totalCount = props.config.totalCount;
|
|
7650
|
-
} else {
|
|
7654
|
+
offset.value = props.config.offset;
|
|
7655
|
+
|
|
7656
|
+
if (!checkIfConfigIsPaginationOffset.value) {
|
|
7651
7657
|
console.warn('Pagination require: offset, limit, and totalCount');
|
|
7652
7658
|
}
|
|
7653
7659
|
};
|
|
7654
7660
|
|
|
7655
7661
|
init();
|
|
7656
7662
|
return {
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
showLeftEllipsis: showLeftEllipsis,
|
|
7660
|
-
goToNextPage: goToNextPage,
|
|
7661
|
-
goToPreviousPage: goToPreviousPage,
|
|
7662
|
-
goToFirstPage: goToFirstPage,
|
|
7663
|
-
goToLastPage: goToLastPage,
|
|
7664
|
-
generateCenterButtonRow: generateCenterButtonRow,
|
|
7663
|
+
totalPages: totalPages,
|
|
7664
|
+
generateButtons: generateButtons,
|
|
7665
7665
|
goToSelectedPage: goToSelectedPage,
|
|
7666
|
-
|
|
7667
|
-
|
|
7666
|
+
goToPreviousPage: goToPreviousPage,
|
|
7667
|
+
goToNextPage: goToNextPage,
|
|
7668
|
+
skipBackward: skipBackward,
|
|
7669
|
+
skipForward: skipForward,
|
|
7668
7670
|
currentPage: currentPage
|
|
7669
7671
|
};
|
|
7670
7672
|
},
|
|
7671
7673
|
components: {
|
|
7672
7674
|
CaretRightIcon: caret_right,
|
|
7673
7675
|
CaretLeftIcon: caret_left,
|
|
7674
|
-
Button: Button
|
|
7676
|
+
Button: Button,
|
|
7677
|
+
EllipsisIcon: dots_three
|
|
7675
7678
|
}
|
|
7676
7679
|
}));
|
|
7677
7680
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7678
7681
|
|
|
7679
|
-
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=
|
|
7680
|
-
var
|
|
7682
|
+
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=aa245378&lang=scss&scoped=true
|
|
7683
|
+
var Paginationvue_type_style_index_0_id_aa245378_lang_scss_scoped_true = __webpack_require__("6226");
|
|
7681
7684
|
|
|
7682
7685
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7683
7686
|
|
|
@@ -7685,8 +7688,8 @@ var Paginationvue_type_style_index_0_id_6a6dd830_lang_scss_scoped_true = __webpa
|
|
|
7685
7688
|
|
|
7686
7689
|
|
|
7687
7690
|
|
|
7688
|
-
Paginationvue_type_script_lang_ts.render =
|
|
7689
|
-
Paginationvue_type_script_lang_ts.__scopeId = "data-v-
|
|
7691
|
+
Paginationvue_type_script_lang_ts.render = Paginationvue_type_template_id_aa245378_scoped_true_render
|
|
7692
|
+
Paginationvue_type_script_lang_ts.__scopeId = "data-v-aa245378"
|
|
7690
7693
|
|
|
7691
7694
|
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7692
7695
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|