@ambita/design-system 3.0.24-217.0 → 3.0.24-227.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 +207 -94
- package/dist/aux.common.js.map +1 -1
- package/dist/aux.umd.js +207 -94
- 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 +3 -1
- package/dist/types/components/Radio/Radio.vue.d.ts +2 -2
- package/dist/types/components/Select/Select.vue.d.ts +3 -3
- package/dist/types/components/TextArea/TextArea.vue.d.ts +7 -7
- package/dist/types/components/Upload/File/File.vue.d.ts +1 -1
- package/dist/types/components/Upload/Upload.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/aux.umd.js
CHANGED
|
@@ -1748,22 +1748,6 @@ var update = add("f8aa6856", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1748
1748
|
|
|
1749
1749
|
/***/ }),
|
|
1750
1750
|
|
|
1751
|
-
/***/ "5b9a":
|
|
1752
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1753
|
-
|
|
1754
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1755
|
-
|
|
1756
|
-
// load the styles
|
|
1757
|
-
var content = __webpack_require__("bab1");
|
|
1758
|
-
if(content.__esModule) content = content.default;
|
|
1759
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
1760
|
-
if(content.locals) module.exports = content.locals;
|
|
1761
|
-
// add the styles to the DOM
|
|
1762
|
-
var add = __webpack_require__("499e").default
|
|
1763
|
-
var update = add("4761f93c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1764
|
-
|
|
1765
|
-
/***/ }),
|
|
1766
|
-
|
|
1767
1751
|
/***/ "5c6c":
|
|
1768
1752
|
/***/ (function(module, exports) {
|
|
1769
1753
|
|
|
@@ -2002,6 +1986,22 @@ var TEMPLATE = String(String).split('String');
|
|
|
2002
1986
|
});
|
|
2003
1987
|
|
|
2004
1988
|
|
|
1989
|
+
/***/ }),
|
|
1990
|
+
|
|
1991
|
+
/***/ "7005":
|
|
1992
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1993
|
+
|
|
1994
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1995
|
+
|
|
1996
|
+
// load the styles
|
|
1997
|
+
var content = __webpack_require__("cee5");
|
|
1998
|
+
if(content.__esModule) content = content.default;
|
|
1999
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
2000
|
+
if(content.locals) module.exports = content.locals;
|
|
2001
|
+
// add the styles to the DOM
|
|
2002
|
+
var add = __webpack_require__("499e").default
|
|
2003
|
+
var update = add("3016e708", content, true, {"sourceMap":false,"shadowMode":false});
|
|
2004
|
+
|
|
2005
2005
|
/***/ }),
|
|
2006
2006
|
|
|
2007
2007
|
/***/ "7156":
|
|
@@ -3604,20 +3604,6 @@ exports.push([module.i, ".aux-form-element[data-v-249b3848]{position:relative}.a
|
|
|
3604
3604
|
module.exports = exports;
|
|
3605
3605
|
|
|
3606
3606
|
|
|
3607
|
-
/***/ }),
|
|
3608
|
-
|
|
3609
|
-
/***/ "bab1":
|
|
3610
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3611
|
-
|
|
3612
|
-
// Imports
|
|
3613
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
3614
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
3615
|
-
// Module
|
|
3616
|
-
exports.push([module.i, ".aux-pagination-row[data-v-0a1bbd5e]{display:flex;justify-content:center}.aux-button[data-v-0a1bbd5e]{min-width:40px;padding:10px;height:40px;margin:0 5px;border:none}.aux-button[data-v-0a1bbd5e]:hover{background-color:#8666ac;color:#fff}.aux-button+.aux-button[data-v-0a1bbd5e]{margin-left:0}.aux-ellipsis[data-v-0a1bbd5e]{color:#333;line-height:34px;width:40px;font-weight:500;text-align:center}.aux-active-button[data-v-0a1bbd5e]{background-color:#fff;border:1px solid #360076;color:#360076}.aux-sr-only[data-v-0a1bbd5e]:not(:focus):not(:active){clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}", ""]);
|
|
3617
|
-
// Exports
|
|
3618
|
-
module.exports = exports;
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
3607
|
/***/ }),
|
|
3622
3608
|
|
|
3623
3609
|
/***/ "bf84":
|
|
@@ -4018,6 +4004,20 @@ module.exports = function (key, value) {
|
|
|
4018
4004
|
};
|
|
4019
4005
|
|
|
4020
4006
|
|
|
4007
|
+
/***/ }),
|
|
4008
|
+
|
|
4009
|
+
/***/ "cee5":
|
|
4010
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4011
|
+
|
|
4012
|
+
// Imports
|
|
4013
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
4014
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
4015
|
+
// Module
|
|
4016
|
+
exports.push([module.i, ".aux-pagination[data-v-253b38be]{display:flex;justify-content:center}.aux-ellipsis[data-v-253b38be]{width:45px;height:45px;color:#333;background:#fff}.aux-pagination-small-device[data-v-253b38be]{margin:0 20px;padding-top:12px;font-weight:500}.aux-button[data-v-253b38be]{min-width:45px;height:45px;border:none;padding:0}.aux-button[data-v-253b38be]:hover{background-color:#8666ac;color:#fff}.aux-button--secondary[data-v-253b38be]:disabled{background:#fff;border:1px solid #360076;color:#360076}.aux-pagination-item+.aux-pagination-item[data-v-253b38be]{margin-left:8px}.aux-sr-only[data-v-253b38be]: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}", ""]);
|
|
4017
|
+
// Exports
|
|
4018
|
+
module.exports = exports;
|
|
4019
|
+
|
|
4020
|
+
|
|
4021
4021
|
/***/ }),
|
|
4022
4022
|
|
|
4023
4023
|
/***/ "cffd":
|
|
@@ -4651,17 +4651,6 @@ if(content.locals) module.exports = content.locals;
|
|
|
4651
4651
|
var add = __webpack_require__("499e").default
|
|
4652
4652
|
var update = add("18037f0a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
4653
4653
|
|
|
4654
|
-
/***/ }),
|
|
4655
|
-
|
|
4656
|
-
/***/ "e93e":
|
|
4657
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4658
|
-
|
|
4659
|
-
"use strict";
|
|
4660
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Pagination_vue_vue_type_style_index_0_id_0a1bbd5e_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5b9a");
|
|
4661
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Pagination_vue_vue_type_style_index_0_id_0a1bbd5e_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Pagination_vue_vue_type_style_index_0_id_0a1bbd5e_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
4662
|
-
/* unused harmony reexport * */
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
4654
|
/***/ }),
|
|
4666
4655
|
|
|
4667
4656
|
/***/ "e95a":
|
|
@@ -4679,6 +4668,17 @@ module.exports = function (it) {
|
|
|
4679
4668
|
};
|
|
4680
4669
|
|
|
4681
4670
|
|
|
4671
|
+
/***/ }),
|
|
4672
|
+
|
|
4673
|
+
/***/ "eb71":
|
|
4674
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4675
|
+
|
|
4676
|
+
"use strict";
|
|
4677
|
+
/* 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_253b38be_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7005");
|
|
4678
|
+
/* 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_253b38be_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_253b38be_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
4679
|
+
/* unused harmony reexport * */
|
|
4680
|
+
|
|
4681
|
+
|
|
4682
4682
|
/***/ }),
|
|
4683
4683
|
|
|
4684
4684
|
/***/ "eefb":
|
|
@@ -7346,42 +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=253b38be&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-253b38be");
|
|
7353
7353
|
|
|
7354
|
-
var
|
|
7354
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_1 = {
|
|
7355
7355
|
key: 0,
|
|
7356
|
-
class: "aux-pagination
|
|
7356
|
+
class: "aux-pagination",
|
|
7357
|
+
ref: "auxPaginationWrapper"
|
|
7357
7358
|
};
|
|
7358
7359
|
|
|
7359
|
-
var
|
|
7360
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7360
7361
|
class: "aux-sr-only"
|
|
7361
7362
|
}, "Gå til forrige side", -1);
|
|
7362
7363
|
|
|
7363
|
-
var
|
|
7364
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_3 = {
|
|
7365
|
+
key: 0,
|
|
7366
|
+
class: "aux-pagination-small-device",
|
|
7367
|
+
"aria-live": "polite"
|
|
7368
|
+
};
|
|
7369
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_4 = {
|
|
7370
|
+
key: 0,
|
|
7371
|
+
class: "aux-ellipsis aux-pagination-item"
|
|
7372
|
+
};
|
|
7373
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_5 = {
|
|
7374
|
+
key: 0,
|
|
7375
|
+
class: "aux-sr-only",
|
|
7376
|
+
"aria-live": "polite"
|
|
7377
|
+
};
|
|
7378
|
+
|
|
7379
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_6 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7380
|
+
class: "aux-sr-only"
|
|
7381
|
+
}, "Gå til første side", -1);
|
|
7382
|
+
|
|
7383
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_7 = {
|
|
7384
|
+
"aria-hidden": "true"
|
|
7385
|
+
};
|
|
7386
|
+
|
|
7387
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_8 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7364
7388
|
class: "aux-sr-only"
|
|
7389
|
+
}, "Gå til siste side", -1);
|
|
7390
|
+
|
|
7391
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_9 = {
|
|
7392
|
+
"aria-hidden": "true"
|
|
7365
7393
|
};
|
|
7366
7394
|
|
|
7367
|
-
var
|
|
7395
|
+
var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7368
7396
|
class: "aux-sr-only"
|
|
7369
7397
|
}, "Gå til side ", -1);
|
|
7370
7398
|
|
|
7371
|
-
var
|
|
7399
|
+
var _hoisted_11 = {
|
|
7372
7400
|
class: "aux-sr-only"
|
|
7373
7401
|
};
|
|
7374
|
-
var
|
|
7375
|
-
|
|
7402
|
+
var _hoisted_12 = {
|
|
7403
|
+
key: 2,
|
|
7404
|
+
class: "aux-ellipsis aux-pagination-item"
|
|
7376
7405
|
};
|
|
7377
7406
|
|
|
7378
|
-
var
|
|
7407
|
+
var _hoisted_13 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7379
7408
|
class: "aux-sr-only"
|
|
7380
7409
|
}, "Gå til neste side", -1);
|
|
7381
7410
|
|
|
7382
7411
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7383
7412
|
|
|
7384
|
-
function
|
|
7413
|
+
function Paginationvue_type_template_id_253b38be_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7385
7414
|
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7386
7415
|
|
|
7387
7416
|
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
@@ -7390,8 +7419,9 @@ function Paginationvue_type_template_id_0a1bbd5e_scoped_true_render(_ctx, _cache
|
|
|
7390
7419
|
|
|
7391
7420
|
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7392
7421
|
|
|
7393
|
-
return _ctx.totalPages > 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
7422
|
+
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_253b38be_scoped_true_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7394
7423
|
size: "small",
|
|
7424
|
+
class: "aux-pagination-item",
|
|
7395
7425
|
primary: "",
|
|
7396
7426
|
disabled: _ctx.currentPage === 1,
|
|
7397
7427
|
onClick: _ctx.goToPreviousPage
|
|
@@ -7399,51 +7429,41 @@ function Paginationvue_type_template_id_0a1bbd5e_scoped_true_render(_ctx, _cache
|
|
|
7399
7429
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7400
7430
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7401
7431
|
class: "icon"
|
|
7402
|
-
}),
|
|
7432
|
+
}), Paginationvue_type_template_id_253b38be_scoped_true_hoisted_2];
|
|
7403
7433
|
}),
|
|
7404
7434
|
_: 1
|
|
7405
|
-
}, 8, ["disabled", "onClick"]), (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(
|
|
7435
|
+
}, 8, ["disabled", "onClick"]), _ctx.isSmallScreen ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", Paginationvue_type_template_id_253b38be_scoped_true_hoisted_3, " Side " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.currentPage) + " av " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.totalPages), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), !_ctx.isSmallScreen ? (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"], {
|
|
7436
|
+
key: 1
|
|
7437
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.generateButtons, function (item, index) {
|
|
7406
7438
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
|
|
7407
7439
|
key: index
|
|
7408
|
-
}, [item === 'ellipsis-left' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
onClick: _ctx.skipBackward
|
|
7412
|
-
}, {
|
|
7413
|
-
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7414
|
-
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7415
|
-
class: "icon"
|
|
7416
|
-
}), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_3, "Hopp " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.width) + " sider tilbake", 1)];
|
|
7417
|
-
}),
|
|
7418
|
-
_: 1
|
|
7419
|
-
}, 8, ["onClick"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), typeof item === 'number' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_Button, {
|
|
7440
|
+
}, [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_253b38be_scoped_true_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7441
|
+
class: "icon"
|
|
7442
|
+
})])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), typeof item === 'number' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_Button, {
|
|
7420
7443
|
key: 1,
|
|
7421
7444
|
size: "small",
|
|
7422
|
-
class:
|
|
7423
|
-
|
|
7424
|
-
}),
|
|
7445
|
+
class: "aux-pagination-item",
|
|
7446
|
+
disabled: _ctx.currentPage === item,
|
|
7425
7447
|
onClick: function onClick($event) {
|
|
7426
7448
|
return _ctx.goToSelectedPage(item);
|
|
7427
7449
|
}
|
|
7428
7450
|
}, {
|
|
7429
7451
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7430
|
-
return [
|
|
7452
|
+
return [_ctx.currentPage === item ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", Paginationvue_type_template_id_253b38be_scoped_true_hoisted_5, " Du er på side " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(item), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), item === 1 ? (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"], {
|
|
7453
|
+
key: 1
|
|
7454
|
+
}, [Paginationvue_type_template_id_253b38be_scoped_true_hoisted_6, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", Paginationvue_type_template_id_253b38be_scoped_true_hoisted_7, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(item), 1)], 64)) : item === _ctx.totalPages ? (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"], {
|
|
7455
|
+
key: 2
|
|
7456
|
+
}, [Paginationvue_type_template_id_253b38be_scoped_true_hoisted_8, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", Paginationvue_type_template_id_253b38be_scoped_true_hoisted_9, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(item), 1)], 64)) : item !== 1 && item !== _ctx.totalPages ? (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"], {
|
|
7457
|
+
key: 3
|
|
7458
|
+
}, [_hoisted_10, 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", _hoisted_11, " av totalt " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.totalPages), 1)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)];
|
|
7431
7459
|
}),
|
|
7432
7460
|
_: 2
|
|
7433
|
-
}, 1032, ["
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
}, {
|
|
7438
|
-
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7439
|
-
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7440
|
-
class: "icon"
|
|
7441
|
-
}), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", Paginationvue_type_template_id_0a1bbd5e_scoped_true_hoisted_6, "Hopp " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.width) + " sider fremover", 1)];
|
|
7442
|
-
}),
|
|
7443
|
-
_: 1
|
|
7444
|
-
}, 8, ["onClick"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
7445
|
-
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7461
|
+
}, 1032, ["disabled", "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", _hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7462
|
+
class: "icon"
|
|
7463
|
+
})])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
7464
|
+
}), 128)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7446
7465
|
size: "small",
|
|
7466
|
+
class: "aux-pagination-item",
|
|
7447
7467
|
primary: "",
|
|
7448
7468
|
disabled: _ctx.currentPage === _ctx.totalPages,
|
|
7449
7469
|
onClick: _ctx.goToNextPage
|
|
@@ -7451,13 +7471,78 @@ function Paginationvue_type_template_id_0a1bbd5e_scoped_true_render(_ctx, _cache
|
|
|
7451
7471
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7452
7472
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
7453
7473
|
class: "icon"
|
|
7454
|
-
}),
|
|
7474
|
+
}), _hoisted_13];
|
|
7455
7475
|
}),
|
|
7456
7476
|
_: 1
|
|
7457
|
-
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7477
|
+
}, 8, ["disabled", "onClick"])], 512)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7458
7478
|
}
|
|
7459
|
-
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=
|
|
7479
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=253b38be&scoped=true
|
|
7480
|
+
|
|
7481
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
7482
|
+
|
|
7483
|
+
|
|
7484
|
+
|
|
7485
|
+
|
|
7460
7486
|
|
|
7487
|
+
|
|
7488
|
+
|
|
7489
|
+
|
|
7490
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
7491
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
7492
|
+
|
|
7493
|
+
if (!it) {
|
|
7494
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
7495
|
+
if (it) o = it;
|
|
7496
|
+
var i = 0;
|
|
7497
|
+
|
|
7498
|
+
var F = function F() {};
|
|
7499
|
+
|
|
7500
|
+
return {
|
|
7501
|
+
s: F,
|
|
7502
|
+
n: function n() {
|
|
7503
|
+
if (i >= o.length) return {
|
|
7504
|
+
done: true
|
|
7505
|
+
};
|
|
7506
|
+
return {
|
|
7507
|
+
done: false,
|
|
7508
|
+
value: o[i++]
|
|
7509
|
+
};
|
|
7510
|
+
},
|
|
7511
|
+
e: function e(_e) {
|
|
7512
|
+
throw _e;
|
|
7513
|
+
},
|
|
7514
|
+
f: F
|
|
7515
|
+
};
|
|
7516
|
+
}
|
|
7517
|
+
|
|
7518
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7519
|
+
}
|
|
7520
|
+
|
|
7521
|
+
var normalCompletion = true,
|
|
7522
|
+
didErr = false,
|
|
7523
|
+
err;
|
|
7524
|
+
return {
|
|
7525
|
+
s: function s() {
|
|
7526
|
+
it = it.call(o);
|
|
7527
|
+
},
|
|
7528
|
+
n: function n() {
|
|
7529
|
+
var step = it.next();
|
|
7530
|
+
normalCompletion = step.done;
|
|
7531
|
+
return step;
|
|
7532
|
+
},
|
|
7533
|
+
e: function e(_e2) {
|
|
7534
|
+
didErr = true;
|
|
7535
|
+
err = _e2;
|
|
7536
|
+
},
|
|
7537
|
+
f: function f() {
|
|
7538
|
+
try {
|
|
7539
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
7540
|
+
} finally {
|
|
7541
|
+
if (didErr) throw err;
|
|
7542
|
+
}
|
|
7543
|
+
}
|
|
7544
|
+
};
|
|
7545
|
+
}
|
|
7461
7546
|
// 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
|
|
7462
7547
|
|
|
7463
7548
|
var caret_rightvue_type_template_id_ac882894_hoisted_1 = {
|
|
@@ -7530,6 +7615,7 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7530
7615
|
|
|
7531
7616
|
|
|
7532
7617
|
|
|
7618
|
+
|
|
7533
7619
|
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7534
7620
|
name: 'aux-pagination',
|
|
7535
7621
|
emits: ['change'],
|
|
@@ -7560,6 +7646,29 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7560
7646
|
setup: function setup(props, _ref) {
|
|
7561
7647
|
var emit = _ref.emit;
|
|
7562
7648
|
var offset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(0);
|
|
7649
|
+
var isSmallScreen = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(false);
|
|
7650
|
+
var auxPaginationWrapper = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])();
|
|
7651
|
+
var resizeObserver = new ResizeObserver(function (entries) {
|
|
7652
|
+
var maxMobileWidth = 470;
|
|
7653
|
+
|
|
7654
|
+
var _iterator = _createForOfIteratorHelper(entries),
|
|
7655
|
+
_step;
|
|
7656
|
+
|
|
7657
|
+
try {
|
|
7658
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
7659
|
+
var entry = _step.value;
|
|
7660
|
+
var inlineSize = entry.contentBoxSize[0].inlineSize;
|
|
7661
|
+
isSmallScreen.value = inlineSize <= maxMobileWidth;
|
|
7662
|
+
}
|
|
7663
|
+
} catch (err) {
|
|
7664
|
+
_iterator.e(err);
|
|
7665
|
+
} finally {
|
|
7666
|
+
_iterator.f();
|
|
7667
|
+
}
|
|
7668
|
+
});
|
|
7669
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])(function () {
|
|
7670
|
+
resizeObserver.observe(auxPaginationWrapper.value);
|
|
7671
|
+
});
|
|
7563
7672
|
|
|
7564
7673
|
var isNearEnd = function isNearEnd() {
|
|
7565
7674
|
return currentPage.value - buttonRowOffset() <= 1;
|
|
@@ -7667,7 +7776,9 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7667
7776
|
});
|
|
7668
7777
|
|
|
7669
7778
|
var init = function init() {
|
|
7670
|
-
|
|
7779
|
+
offset.value = props.config.offset;
|
|
7780
|
+
|
|
7781
|
+
if (!checkIfConfigIsPaginationOffset.value) {
|
|
7671
7782
|
console.warn('Pagination require: offset, limit, and totalCount');
|
|
7672
7783
|
}
|
|
7673
7784
|
};
|
|
@@ -7681,7 +7792,9 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7681
7792
|
goToNextPage: goToNextPage,
|
|
7682
7793
|
skipBackward: skipBackward,
|
|
7683
7794
|
skipForward: skipForward,
|
|
7684
|
-
currentPage: currentPage
|
|
7795
|
+
currentPage: currentPage,
|
|
7796
|
+
isSmallScreen: isSmallScreen,
|
|
7797
|
+
auxPaginationWrapper: auxPaginationWrapper
|
|
7685
7798
|
};
|
|
7686
7799
|
},
|
|
7687
7800
|
components: {
|
|
@@ -7693,8 +7806,8 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7693
7806
|
}));
|
|
7694
7807
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7695
7808
|
|
|
7696
|
-
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=
|
|
7697
|
-
var
|
|
7809
|
+
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=253b38be&lang=scss&scoped=true
|
|
7810
|
+
var Paginationvue_type_style_index_0_id_253b38be_lang_scss_scoped_true = __webpack_require__("eb71");
|
|
7698
7811
|
|
|
7699
7812
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7700
7813
|
|
|
@@ -7702,8 +7815,8 @@ var Paginationvue_type_style_index_0_id_0a1bbd5e_lang_scss_scoped_true = __webpa
|
|
|
7702
7815
|
|
|
7703
7816
|
|
|
7704
7817
|
|
|
7705
|
-
Paginationvue_type_script_lang_ts.render =
|
|
7706
|
-
Paginationvue_type_script_lang_ts.__scopeId = "data-v-
|
|
7818
|
+
Paginationvue_type_script_lang_ts.render = Paginationvue_type_template_id_253b38be_scoped_true_render
|
|
7819
|
+
Paginationvue_type_script_lang_ts.__scopeId = "data-v-253b38be"
|
|
7707
7820
|
|
|
7708
7821
|
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7709
7822
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|