@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.common.js
CHANGED
|
@@ -980,6 +980,22 @@ module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperti
|
|
|
980
980
|
};
|
|
981
981
|
|
|
982
982
|
|
|
983
|
+
/***/ }),
|
|
984
|
+
|
|
985
|
+
/***/ "3904":
|
|
986
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
987
|
+
|
|
988
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
989
|
+
|
|
990
|
+
// load the styles
|
|
991
|
+
var content = __webpack_require__("d699");
|
|
992
|
+
if(content.__esModule) content = content.default;
|
|
993
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
994
|
+
if(content.locals) module.exports = content.locals;
|
|
995
|
+
// add the styles to the DOM
|
|
996
|
+
var add = __webpack_require__("499e").default
|
|
997
|
+
var update = add("50b8d1f5", content, true, {"sourceMap":false,"shadowMode":false});
|
|
998
|
+
|
|
983
999
|
/***/ }),
|
|
984
1000
|
|
|
985
1001
|
/***/ "3bbe":
|
|
@@ -1766,6 +1782,17 @@ exports.push([module.i, ".aux-pill[data-v-3724349d]{font-size:12px;line-height:1
|
|
|
1766
1782
|
module.exports = exports;
|
|
1767
1783
|
|
|
1768
1784
|
|
|
1785
|
+
/***/ }),
|
|
1786
|
+
|
|
1787
|
+
/***/ "6226":
|
|
1788
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1789
|
+
|
|
1790
|
+
"use strict";
|
|
1791
|
+
/* 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");
|
|
1792
|
+
/* 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__);
|
|
1793
|
+
/* unused harmony reexport * */
|
|
1794
|
+
|
|
1795
|
+
|
|
1769
1796
|
/***/ }),
|
|
1770
1797
|
|
|
1771
1798
|
/***/ "622f":
|
|
@@ -2485,17 +2512,6 @@ if (typeof store.inspectSource != 'function') {
|
|
|
2485
2512
|
module.exports = store.inspectSource;
|
|
2486
2513
|
|
|
2487
2514
|
|
|
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
2515
|
/***/ }),
|
|
2500
2516
|
|
|
2501
2517
|
/***/ "8bbf":
|
|
@@ -3895,22 +3911,6 @@ try {
|
|
|
3895
3911
|
module.exports = g;
|
|
3896
3912
|
|
|
3897
3913
|
|
|
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
3914
|
/***/ }),
|
|
3915
3915
|
|
|
3916
3916
|
/***/ "c96c":
|
|
@@ -4172,6 +4172,20 @@ module.exports = function (it, TAG, STATIC) {
|
|
|
4172
4172
|
};
|
|
4173
4173
|
|
|
4174
4174
|
|
|
4175
|
+
/***/ }),
|
|
4176
|
+
|
|
4177
|
+
/***/ "d699":
|
|
4178
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4179
|
+
|
|
4180
|
+
// Imports
|
|
4181
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
4182
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
4183
|
+
// Module
|
|
4184
|
+
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}", ""]);
|
|
4185
|
+
// Exports
|
|
4186
|
+
module.exports = exports;
|
|
4187
|
+
|
|
4188
|
+
|
|
4175
4189
|
/***/ }),
|
|
4176
4190
|
|
|
4177
4191
|
/***/ "d935":
|
|
@@ -4554,20 +4568,6 @@ addToUnscopables('values');
|
|
|
4554
4568
|
addToUnscopables('entries');
|
|
4555
4569
|
|
|
4556
4570
|
|
|
4557
|
-
/***/ }),
|
|
4558
|
-
|
|
4559
|
-
/***/ "e312":
|
|
4560
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4561
|
-
|
|
4562
|
-
// Imports
|
|
4563
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
4564
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
4565
|
-
// Module
|
|
4566
|
-
exports.push([module.i, ".aux-pagination-row[data-v-6a6dd830]{display:flex;justify-content:center}.aux-button[data-v-6a6dd830]{min-width:40px;padding:10px;height:40px;margin:0 5px;border:none}.aux-button[data-v-6a6dd830]:hover{background-color:#8666ac;color:#fff}.aux-button+.aux-button[data-v-6a6dd830]{margin-left:0}.aux-ellipsis[data-v-6a6dd830]{color:#333;line-height:34px;width:40px;font-weight:500;text-align:center}.aux-active-button[data-v-6a6dd830]{background-color:#fff;border:1px solid #360076;color:#360076}.aux-sr-only[data-v-6a6dd830]:not(:focus):not(:active){clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}", ""]);
|
|
4567
|
-
// Exports
|
|
4568
|
-
module.exports = exports;
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
4571
|
/***/ }),
|
|
4572
4572
|
|
|
4573
4573
|
/***/ "e439":
|
|
@@ -7337,86 +7337,71 @@ 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=aa245378&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-aa245378");
|
|
7344
7344
|
|
|
7345
|
-
var
|
|
7345
|
+
var Paginationvue_type_template_id_aa245378_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_aa245378_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", {
|
|
7357
|
-
class: "aux-sr-only"
|
|
7358
|
-
}, " Gå til første siden ", -1);
|
|
7359
|
-
|
|
7360
|
-
var Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_5 = {
|
|
7354
|
+
var Paginationvue_type_template_id_aa245378_scoped_true_hoisted_3 = {
|
|
7361
7355
|
key: 0,
|
|
7362
|
-
class: "
|
|
7356
|
+
class: "ellipsis"
|
|
7363
7357
|
};
|
|
7364
7358
|
|
|
7365
|
-
var
|
|
7359
|
+
var Paginationvue_type_template_id_aa245378_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7366
7360
|
class: "aux-sr-only"
|
|
7367
7361
|
}, "Gå til side ", -1);
|
|
7368
7362
|
|
|
7369
|
-
var
|
|
7363
|
+
var Paginationvue_type_template_id_aa245378_scoped_true_hoisted_5 = {
|
|
7370
7364
|
class: "aux-sr-only"
|
|
7371
7365
|
};
|
|
7372
|
-
var
|
|
7373
|
-
key:
|
|
7374
|
-
class: "
|
|
7366
|
+
var Paginationvue_type_template_id_aa245378_scoped_true_hoisted_6 = {
|
|
7367
|
+
key: 2,
|
|
7368
|
+
class: "ellipsis"
|
|
7375
7369
|
};
|
|
7376
7370
|
|
|
7377
|
-
var
|
|
7378
|
-
class: "aux-sr-only"
|
|
7379
|
-
}, " Gå til siste side, side ", -1);
|
|
7380
|
-
|
|
7381
|
-
var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7371
|
+
var Paginationvue_type_template_id_aa245378_scoped_true_hoisted_7 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7382
7372
|
class: "aux-sr-only"
|
|
7383
7373
|
}, "Gå til neste side", -1);
|
|
7384
7374
|
|
|
7385
7375
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7386
7376
|
|
|
7387
|
-
function
|
|
7377
|
+
function Paginationvue_type_template_id_aa245378_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7388
7378
|
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7389
7379
|
|
|
7390
7380
|
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
7391
7381
|
|
|
7382
|
+
var _component_EllipsisIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("EllipsisIcon");
|
|
7383
|
+
|
|
7392
7384
|
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7393
7385
|
|
|
7394
|
-
return _ctx.
|
|
7386
|
+
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, {
|
|
7395
7387
|
size: "small",
|
|
7396
7388
|
primary: "",
|
|
7397
|
-
disabled: _ctx.
|
|
7389
|
+
disabled: _ctx.currentPage === 1,
|
|
7398
7390
|
onClick: _ctx.goToPreviousPage
|
|
7399
7391
|
}, {
|
|
7400
7392
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7401
7393
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7402
7394
|
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];
|
|
7395
|
+
}), Paginationvue_type_template_id_aa245378_scoped_true_hoisted_2];
|
|
7415
7396
|
}),
|
|
7416
7397
|
_: 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
|
|
7398
|
+
}, 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) {
|
|
7399
|
+
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"], {
|
|
7400
|
+
key: index
|
|
7401
|
+
}, [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, {
|
|
7402
|
+
class: "icon"
|
|
7403
|
+
})])) : 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, {
|
|
7404
|
+
key: 1,
|
|
7420
7405
|
size: "small",
|
|
7421
7406
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7422
7407
|
'aux-active-button': _ctx.currentPage === item
|
|
@@ -7426,36 +7411,27 @@ function Paginationvue_type_template_id_6a6dd830_scoped_true_render(_ctx, _cache
|
|
|
7426
7411
|
}
|
|
7427
7412
|
}, {
|
|
7428
7413
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7429
|
-
return [
|
|
7414
|
+
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)];
|
|
7430
7415
|
}),
|
|
7431
7416
|
_: 2
|
|
7432
|
-
}, 1032, ["class", "onClick"])
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
|
|
7437
|
-
'aux-active-button': _ctx.isLastPage
|
|
7438
|
-
})
|
|
7439
|
-
}, {
|
|
7440
|
-
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7441
|
-
return [Paginationvue_type_template_id_6a6dd830_scoped_true_hoisted_9, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.state.totalPages), 1)];
|
|
7442
|
-
}),
|
|
7443
|
-
_: 1
|
|
7444
|
-
}, 8, ["onClick", "class"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7417
|
+
}, 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, {
|
|
7418
|
+
class: "icon"
|
|
7419
|
+
})])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
7420
|
+
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7445
7421
|
size: "small",
|
|
7446
7422
|
primary: "",
|
|
7447
|
-
disabled: _ctx.
|
|
7423
|
+
disabled: _ctx.currentPage === _ctx.totalPages,
|
|
7448
7424
|
onClick: _ctx.goToNextPage
|
|
7449
7425
|
}, {
|
|
7450
7426
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7451
7427
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
7452
7428
|
class: "icon"
|
|
7453
|
-
}),
|
|
7429
|
+
}), Paginationvue_type_template_id_aa245378_scoped_true_hoisted_7];
|
|
7454
7430
|
}),
|
|
7455
7431
|
_: 1
|
|
7456
7432
|
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7457
7433
|
}
|
|
7458
|
-
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=
|
|
7434
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=aa245378&scoped=true
|
|
7459
7435
|
|
|
7460
7436
|
// 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
7437
|
|
|
@@ -7499,6 +7475,27 @@ const caret_left_script = {}
|
|
|
7499
7475
|
caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
7500
7476
|
|
|
7501
7477
|
/* harmony default export */ var caret_left = (caret_left_script);
|
|
7478
|
+
// 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
|
|
7479
|
+
|
|
7480
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_1 = {
|
|
7481
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7482
|
+
viewBox: "0 0 256 256"
|
|
7483
|
+
};
|
|
7484
|
+
|
|
7485
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("path", {
|
|
7486
|
+
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"
|
|
7487
|
+
}, null, -1);
|
|
7488
|
+
|
|
7489
|
+
var dots_threevue_type_template_id_e69ce776_hoisted_3 = [dots_threevue_type_template_id_e69ce776_hoisted_2];
|
|
7490
|
+
function dots_threevue_type_template_id_e69ce776_render(_ctx, _cache) {
|
|
7491
|
+
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);
|
|
7492
|
+
}
|
|
7493
|
+
// CONCATENATED MODULE: ./src/assets/icons/regular/dots-three.svg
|
|
7494
|
+
|
|
7495
|
+
const dots_three_script = {}
|
|
7496
|
+
dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
7497
|
+
|
|
7498
|
+
/* harmony default export */ var dots_three = (dots_three_script);
|
|
7502
7499
|
// 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
7500
|
|
|
7504
7501
|
|
|
@@ -7506,6 +7503,8 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7506
7503
|
|
|
7507
7504
|
|
|
7508
7505
|
|
|
7506
|
+
|
|
7507
|
+
|
|
7509
7508
|
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7510
7509
|
name: 'aux-pagination',
|
|
7511
7510
|
emits: ['change'],
|
|
@@ -7517,7 +7516,16 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7517
7516
|
width: {
|
|
7518
7517
|
type: Number,
|
|
7519
7518
|
required: false,
|
|
7520
|
-
default: 5
|
|
7519
|
+
default: 5,
|
|
7520
|
+
validator: function validator(width) {
|
|
7521
|
+
var isEven = width % 2 !== 1;
|
|
7522
|
+
|
|
7523
|
+
if (isEven) {
|
|
7524
|
+
console.error('Width need to be an odd number');
|
|
7525
|
+
}
|
|
7526
|
+
|
|
7527
|
+
return !isEven;
|
|
7528
|
+
}
|
|
7521
7529
|
},
|
|
7522
7530
|
dataTestId: {
|
|
7523
7531
|
type: String,
|
|
@@ -7526,55 +7534,62 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7526
7534
|
},
|
|
7527
7535
|
setup: function setup(props, _ref) {
|
|
7528
7536
|
var emit = _ref.emit;
|
|
7529
|
-
var
|
|
7530
|
-
totalPages: 0,
|
|
7531
|
-
offset: 0,
|
|
7532
|
-
limit: 0,
|
|
7533
|
-
totalCount: 0
|
|
7534
|
-
});
|
|
7537
|
+
var offset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(0);
|
|
7535
7538
|
|
|
7536
|
-
var
|
|
7537
|
-
|
|
7539
|
+
var isNearEnd = function isNearEnd() {
|
|
7540
|
+
return currentPage.value - buttonRowOffset() <= 1;
|
|
7538
7541
|
};
|
|
7539
7542
|
|
|
7540
|
-
var
|
|
7541
|
-
|
|
7543
|
+
var isNearStart = function isNearStart() {
|
|
7544
|
+
return currentPage.value + buttonRowOffset() >= totalPages.value;
|
|
7545
|
+
};
|
|
7542
7546
|
|
|
7543
|
-
|
|
7544
|
-
|
|
7547
|
+
var getEndPageIndex = function getEndPageIndex() {
|
|
7548
|
+
var endButton = currentPage.value + buttonRowOffset();
|
|
7549
|
+
|
|
7550
|
+
if (isNearEnd()) {
|
|
7551
|
+
endButton = props.width + 1;
|
|
7545
7552
|
}
|
|
7546
7553
|
|
|
7547
|
-
return
|
|
7554
|
+
return endButton;
|
|
7548
7555
|
};
|
|
7549
7556
|
|
|
7550
|
-
var
|
|
7551
|
-
var
|
|
7557
|
+
var getStartPageIndex = function getStartPageIndex() {
|
|
7558
|
+
var startButton = currentPage.value - buttonRowOffset();
|
|
7552
7559
|
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7560
|
+
if (startButton <= 1) {
|
|
7561
|
+
startButton = 2;
|
|
7562
|
+
} else if (isNearStart()) {
|
|
7563
|
+
startButton = totalPages.value - props.width;
|
|
7564
|
+
} // subtract 1 to adjust for array index
|
|
7557
7565
|
|
|
7558
|
-
case 2:
|
|
7559
|
-
endPage = currentPage.value + props.width;
|
|
7560
|
-
break;
|
|
7561
7566
|
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
}
|
|
7567
|
+
return startButton - 1;
|
|
7568
|
+
};
|
|
7565
7569
|
|
|
7566
|
-
|
|
7567
|
-
|
|
7570
|
+
var fillPagesArray = function fillPagesArray() {
|
|
7571
|
+
var pagesArray = []; // fills a array with numbers (pages) minus page 1 and last page
|
|
7572
|
+
|
|
7573
|
+
for (var pageNumber = 1; pageNumber < totalPages.value; pageNumber++) {
|
|
7574
|
+
pagesArray.push(pageNumber);
|
|
7568
7575
|
}
|
|
7569
7576
|
|
|
7570
|
-
return
|
|
7577
|
+
return pagesArray;
|
|
7578
|
+
};
|
|
7579
|
+
|
|
7580
|
+
var buttonRowOffset = function buttonRowOffset() {
|
|
7581
|
+
// calculates how many buttons that is to the side of the center button: width: 5 => 2 buttons on the sides
|
|
7582
|
+
return Math.floor(props.width / 2);
|
|
7571
7583
|
};
|
|
7572
7584
|
|
|
7573
7585
|
var goToPage = function goToPage(page) {
|
|
7574
|
-
|
|
7575
|
-
emit('change',
|
|
7576
|
-
|
|
7577
|
-
|
|
7586
|
+
offset.value = (page - 1) * props.config.limit;
|
|
7587
|
+
emit('change', {
|
|
7588
|
+
offset: offset.value,
|
|
7589
|
+
currentPage: currentPage.value,
|
|
7590
|
+
width: props.width,
|
|
7591
|
+
config: props.config
|
|
7592
|
+
});
|
|
7578
7593
|
};
|
|
7579
7594
|
|
|
7580
7595
|
var goToNextPage = function goToNextPage() {
|
|
@@ -7585,90 +7600,78 @@ caret_left_script.render = caret_leftvue_type_template_id_cdc1e94a_render
|
|
|
7585
7600
|
goToPage(currentPage.value - 1);
|
|
7586
7601
|
};
|
|
7587
7602
|
|
|
7588
|
-
var
|
|
7589
|
-
goToPage(
|
|
7603
|
+
var goToSelectedPage = function goToSelectedPage(selectedPage) {
|
|
7604
|
+
goToPage(selectedPage);
|
|
7590
7605
|
};
|
|
7591
7606
|
|
|
7592
|
-
var
|
|
7593
|
-
goToPage(
|
|
7607
|
+
var skipBackward = function skipBackward() {
|
|
7608
|
+
goToPage(currentPage.value - props.width);
|
|
7594
7609
|
};
|
|
7595
7610
|
|
|
7596
|
-
var
|
|
7597
|
-
goToPage(
|
|
7611
|
+
var skipForward = function skipForward() {
|
|
7612
|
+
goToPage(currentPage.value + props.width);
|
|
7598
7613
|
};
|
|
7599
7614
|
|
|
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;
|
|
7615
|
+
var totalPages = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7616
|
+
return Math.ceil(props.config.totalCount / props.config.limit);
|
|
7605
7617
|
});
|
|
7606
|
-
var
|
|
7607
|
-
return
|
|
7608
|
-
});
|
|
7609
|
-
var showLeftEllipsis = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7610
|
-
return hideEllipsis.value && currentPage.value > 2;
|
|
7618
|
+
var currentPage = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7619
|
+
return offset.value / props.config.limit + 1;
|
|
7611
7620
|
});
|
|
7612
|
-
var
|
|
7613
|
-
var
|
|
7614
|
-
|
|
7615
|
-
var
|
|
7621
|
+
var generateButtons = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7622
|
+
var pages = fillPagesArray();
|
|
7623
|
+
|
|
7624
|
+
var buttons = _toConsumableArray(pages.slice(getStartPageIndex(), getEndPageIndex()));
|
|
7616
7625
|
|
|
7617
|
-
|
|
7618
|
-
|
|
7626
|
+
if (currentPage.value - buttonRowOffset() > 2) {
|
|
7627
|
+
buttons.shift();
|
|
7628
|
+
buttons.unshift('ellipsis-left');
|
|
7619
7629
|
}
|
|
7620
7630
|
|
|
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);
|
|
7631
|
+
if (currentPage.value + buttonRowOffset() < pages.length) {
|
|
7632
|
+
buttons.pop();
|
|
7633
|
+
buttons.push('ellipsis-right');
|
|
7634
|
+
}
|
|
7635
|
+
|
|
7636
|
+
buttons.unshift(1);
|
|
7637
|
+
buttons.push(totalPages.value);
|
|
7638
|
+
return buttons;
|
|
7631
7639
|
});
|
|
7632
7640
|
var checkIfConfigIsPaginationOffset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
7633
7641
|
return Object.prototype.hasOwnProperty.call(props.config, 'offset') && Object.prototype.hasOwnProperty.call(props.config, 'limit') && Object.prototype.hasOwnProperty.call(props.config, 'totalCount');
|
|
7634
7642
|
});
|
|
7635
7643
|
|
|
7636
7644
|
var init = function init() {
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
state.totalCount = props.config.totalCount;
|
|
7641
|
-
} else {
|
|
7645
|
+
offset.value = props.config.offset;
|
|
7646
|
+
|
|
7647
|
+
if (!checkIfConfigIsPaginationOffset.value) {
|
|
7642
7648
|
console.warn('Pagination require: offset, limit, and totalCount');
|
|
7643
7649
|
}
|
|
7644
7650
|
};
|
|
7645
7651
|
|
|
7646
7652
|
init();
|
|
7647
7653
|
return {
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
showLeftEllipsis: showLeftEllipsis,
|
|
7651
|
-
goToNextPage: goToNextPage,
|
|
7652
|
-
goToPreviousPage: goToPreviousPage,
|
|
7653
|
-
goToFirstPage: goToFirstPage,
|
|
7654
|
-
goToLastPage: goToLastPage,
|
|
7655
|
-
generateCenterButtonRow: generateCenterButtonRow,
|
|
7654
|
+
totalPages: totalPages,
|
|
7655
|
+
generateButtons: generateButtons,
|
|
7656
7656
|
goToSelectedPage: goToSelectedPage,
|
|
7657
|
-
|
|
7658
|
-
|
|
7657
|
+
goToPreviousPage: goToPreviousPage,
|
|
7658
|
+
goToNextPage: goToNextPage,
|
|
7659
|
+
skipBackward: skipBackward,
|
|
7660
|
+
skipForward: skipForward,
|
|
7659
7661
|
currentPage: currentPage
|
|
7660
7662
|
};
|
|
7661
7663
|
},
|
|
7662
7664
|
components: {
|
|
7663
7665
|
CaretRightIcon: caret_right,
|
|
7664
7666
|
CaretLeftIcon: caret_left,
|
|
7665
|
-
Button: Button
|
|
7667
|
+
Button: Button,
|
|
7668
|
+
EllipsisIcon: dots_three
|
|
7666
7669
|
}
|
|
7667
7670
|
}));
|
|
7668
7671
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7669
7672
|
|
|
7670
|
-
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=
|
|
7671
|
-
var
|
|
7673
|
+
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=aa245378&lang=scss&scoped=true
|
|
7674
|
+
var Paginationvue_type_style_index_0_id_aa245378_lang_scss_scoped_true = __webpack_require__("6226");
|
|
7672
7675
|
|
|
7673
7676
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7674
7677
|
|
|
@@ -7676,8 +7679,8 @@ var Paginationvue_type_style_index_0_id_6a6dd830_lang_scss_scoped_true = __webpa
|
|
|
7676
7679
|
|
|
7677
7680
|
|
|
7678
7681
|
|
|
7679
|
-
Paginationvue_type_script_lang_ts.render =
|
|
7680
|
-
Paginationvue_type_script_lang_ts.__scopeId = "data-v-
|
|
7682
|
+
Paginationvue_type_script_lang_ts.render = Paginationvue_type_template_id_aa245378_scoped_true_render
|
|
7683
|
+
Paginationvue_type_script_lang_ts.__scopeId = "data-v-aa245378"
|
|
7681
7684
|
|
|
7682
7685
|
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7683
7686
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|