@ambita/design-system 3.0.24-220.0 → 3.0.24-238.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 +234 -72
- package/dist/aux.common.js.map +1 -1
- package/dist/aux.umd.js +234 -72
- 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 +10 -10
- package/dist/types/components/Upload/File/File.vue.d.ts +1 -1
- package/dist/types/components/Upload/Upload.vue.d.ts +1 -1
- package/dist/types/helpers/formatAmount.d.ts +3 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/aux.umd.js
CHANGED
|
@@ -989,22 +989,6 @@ 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
|
-
|
|
1008
992
|
/***/ }),
|
|
1009
993
|
|
|
1010
994
|
/***/ "3bbe":
|
|
@@ -1791,17 +1775,6 @@ exports.push([module.i, ".aux-pill[data-v-3724349d]{font-size:12px;line-height:1
|
|
|
1791
1775
|
module.exports = exports;
|
|
1792
1776
|
|
|
1793
1777
|
|
|
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
|
-
|
|
1805
1778
|
/***/ }),
|
|
1806
1779
|
|
|
1807
1780
|
/***/ "622f":
|
|
@@ -2013,6 +1986,22 @@ var TEMPLATE = String(String).split('String');
|
|
|
2013
1986
|
});
|
|
2014
1987
|
|
|
2015
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
|
+
|
|
2016
2005
|
/***/ }),
|
|
2017
2006
|
|
|
2018
2007
|
/***/ "7156":
|
|
@@ -4015,6 +4004,20 @@ module.exports = function (key, value) {
|
|
|
4015
4004
|
};
|
|
4016
4005
|
|
|
4017
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
|
+
|
|
4018
4021
|
/***/ }),
|
|
4019
4022
|
|
|
4020
4023
|
/***/ "cffd":
|
|
@@ -4181,20 +4184,6 @@ module.exports = function (it, TAG, STATIC) {
|
|
|
4181
4184
|
};
|
|
4182
4185
|
|
|
4183
4186
|
|
|
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
|
-
|
|
4198
4187
|
/***/ }),
|
|
4199
4188
|
|
|
4200
4189
|
/***/ "d935":
|
|
@@ -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":
|
|
@@ -4812,6 +4812,7 @@ __webpack_require__.d(__webpack_exports__, "AuxCard", function() { return /* ree
|
|
|
4812
4812
|
__webpack_require__.d(__webpack_exports__, "AuxToggle", function() { return /* reexport */ Toggle; });
|
|
4813
4813
|
__webpack_require__.d(__webpack_exports__, "AuxPagination", function() { return /* reexport */ Pagination; });
|
|
4814
4814
|
__webpack_require__.d(__webpack_exports__, "formatDate", function() { return /* reexport */ formatDate; });
|
|
4815
|
+
__webpack_require__.d(__webpack_exports__, "formatPrice", function() { return /* reexport */ formatPrice; });
|
|
4815
4816
|
|
|
4816
4817
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
4817
4818
|
// This file is imported into lib/wc client bundles.
|
|
@@ -7346,44 +7347,71 @@ var Togglevue_type_style_index_0_id_78e59f6f_lang_scss_scoped_true = __webpack_r
|
|
|
7346
7347
|
Togglevue_type_script_setup_true_lang_ts.__scopeId = "data-v-78e59f6f"
|
|
7347
7348
|
|
|
7348
7349
|
/* 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=
|
|
7350
|
+
// 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
7351
|
|
|
7351
7352
|
|
|
7352
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
7353
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-253b38be");
|
|
7353
7354
|
|
|
7354
|
-
var
|
|
7355
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_1 = {
|
|
7355
7356
|
key: 0,
|
|
7356
|
-
class: "aux-pagination
|
|
7357
|
+
class: "aux-pagination",
|
|
7358
|
+
ref: "auxPaginationWrapper"
|
|
7357
7359
|
};
|
|
7358
7360
|
|
|
7359
|
-
var
|
|
7361
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7360
7362
|
class: "aux-sr-only"
|
|
7361
7363
|
}, "Gå til forrige side", -1);
|
|
7362
7364
|
|
|
7363
|
-
var
|
|
7365
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_3 = {
|
|
7366
|
+
key: 0,
|
|
7367
|
+
class: "aux-pagination-small-device",
|
|
7368
|
+
"aria-live": "polite"
|
|
7369
|
+
};
|
|
7370
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_4 = {
|
|
7364
7371
|
key: 0,
|
|
7365
|
-
class: "ellipsis"
|
|
7372
|
+
class: "aux-ellipsis aux-pagination-item"
|
|
7373
|
+
};
|
|
7374
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_5 = {
|
|
7375
|
+
key: 0,
|
|
7376
|
+
class: "aux-sr-only",
|
|
7377
|
+
"aria-live": "polite"
|
|
7378
|
+
};
|
|
7379
|
+
|
|
7380
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_6 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7381
|
+
class: "aux-sr-only"
|
|
7382
|
+
}, "Gå til første side", -1);
|
|
7383
|
+
|
|
7384
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_7 = {
|
|
7385
|
+
"aria-hidden": "true"
|
|
7386
|
+
};
|
|
7387
|
+
|
|
7388
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_8 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7389
|
+
class: "aux-sr-only"
|
|
7390
|
+
}, "Gå til siste side", -1);
|
|
7391
|
+
|
|
7392
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_9 = {
|
|
7393
|
+
"aria-hidden": "true"
|
|
7366
7394
|
};
|
|
7367
7395
|
|
|
7368
|
-
var
|
|
7396
|
+
var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7369
7397
|
class: "aux-sr-only"
|
|
7370
7398
|
}, "Gå til side ", -1);
|
|
7371
7399
|
|
|
7372
|
-
var
|
|
7400
|
+
var _hoisted_11 = {
|
|
7373
7401
|
class: "aux-sr-only"
|
|
7374
7402
|
};
|
|
7375
|
-
var
|
|
7403
|
+
var _hoisted_12 = {
|
|
7376
7404
|
key: 2,
|
|
7377
|
-
class: "ellipsis"
|
|
7405
|
+
class: "aux-ellipsis aux-pagination-item"
|
|
7378
7406
|
};
|
|
7379
7407
|
|
|
7380
|
-
var
|
|
7408
|
+
var _hoisted_13 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7381
7409
|
class: "aux-sr-only"
|
|
7382
7410
|
}, "Gå til neste side", -1);
|
|
7383
7411
|
|
|
7384
7412
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7385
7413
|
|
|
7386
|
-
function
|
|
7414
|
+
function Paginationvue_type_template_id_253b38be_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7387
7415
|
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7388
7416
|
|
|
7389
7417
|
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
@@ -7392,8 +7420,9 @@ function Paginationvue_type_template_id_aa245378_scoped_true_render(_ctx, _cache
|
|
|
7392
7420
|
|
|
7393
7421
|
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7394
7422
|
|
|
7395
|
-
return _ctx.totalPages > 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
7423
|
+
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, {
|
|
7396
7424
|
size: "small",
|
|
7425
|
+
class: "aux-pagination-item",
|
|
7397
7426
|
primary: "",
|
|
7398
7427
|
disabled: _ctx.currentPage === 1,
|
|
7399
7428
|
onClick: _ctx.goToPreviousPage
|
|
@@ -7401,33 +7430,41 @@ function Paginationvue_type_template_id_aa245378_scoped_true_render(_ctx, _cache
|
|
|
7401
7430
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7402
7431
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7403
7432
|
class: "icon"
|
|
7404
|
-
}),
|
|
7433
|
+
}), Paginationvue_type_template_id_253b38be_scoped_true_hoisted_2];
|
|
7405
7434
|
}),
|
|
7406
7435
|
_: 1
|
|
7407
|
-
}, 8, ["disabled", "onClick"]), (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(
|
|
7436
|
+
}, 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"], {
|
|
7437
|
+
key: 1
|
|
7438
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.generateButtons, function (item, index) {
|
|
7408
7439
|
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
7440
|
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",
|
|
7441
|
+
}, [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, {
|
|
7411
7442
|
class: "icon"
|
|
7412
7443
|
})])) : 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
7444
|
key: 1,
|
|
7414
7445
|
size: "small",
|
|
7415
|
-
class:
|
|
7416
|
-
|
|
7417
|
-
}),
|
|
7446
|
+
class: "aux-pagination-item",
|
|
7447
|
+
disabled: _ctx.currentPage === item,
|
|
7418
7448
|
onClick: function onClick($event) {
|
|
7419
7449
|
return _ctx.goToSelectedPage(item);
|
|
7420
7450
|
}
|
|
7421
7451
|
}, {
|
|
7422
7452
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7423
|
-
return [
|
|
7453
|
+
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"], {
|
|
7454
|
+
key: 1
|
|
7455
|
+
}, [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"], {
|
|
7456
|
+
key: 2
|
|
7457
|
+
}, [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"], {
|
|
7458
|
+
key: 3
|
|
7459
|
+
}, [_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)];
|
|
7424
7460
|
}),
|
|
7425
7461
|
_: 2
|
|
7426
|
-
}, 1032, ["
|
|
7462
|
+
}, 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, {
|
|
7427
7463
|
class: "icon"
|
|
7428
7464
|
})])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
7429
|
-
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7465
|
+
}), 128)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7430
7466
|
size: "small",
|
|
7467
|
+
class: "aux-pagination-item",
|
|
7431
7468
|
primary: "",
|
|
7432
7469
|
disabled: _ctx.currentPage === _ctx.totalPages,
|
|
7433
7470
|
onClick: _ctx.goToNextPage
|
|
@@ -7435,13 +7472,78 @@ function Paginationvue_type_template_id_aa245378_scoped_true_render(_ctx, _cache
|
|
|
7435
7472
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7436
7473
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
7437
7474
|
class: "icon"
|
|
7438
|
-
}),
|
|
7475
|
+
}), _hoisted_13];
|
|
7439
7476
|
}),
|
|
7440
7477
|
_: 1
|
|
7441
|
-
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7478
|
+
}, 8, ["disabled", "onClick"])], 512)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7442
7479
|
}
|
|
7443
|
-
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=
|
|
7480
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=253b38be&scoped=true
|
|
7481
|
+
|
|
7482
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
7483
|
+
|
|
7484
|
+
|
|
7485
|
+
|
|
7486
|
+
|
|
7487
|
+
|
|
7488
|
+
|
|
7489
|
+
|
|
7490
|
+
|
|
7491
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
7492
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
7493
|
+
|
|
7494
|
+
if (!it) {
|
|
7495
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
7496
|
+
if (it) o = it;
|
|
7497
|
+
var i = 0;
|
|
7498
|
+
|
|
7499
|
+
var F = function F() {};
|
|
7500
|
+
|
|
7501
|
+
return {
|
|
7502
|
+
s: F,
|
|
7503
|
+
n: function n() {
|
|
7504
|
+
if (i >= o.length) return {
|
|
7505
|
+
done: true
|
|
7506
|
+
};
|
|
7507
|
+
return {
|
|
7508
|
+
done: false,
|
|
7509
|
+
value: o[i++]
|
|
7510
|
+
};
|
|
7511
|
+
},
|
|
7512
|
+
e: function e(_e) {
|
|
7513
|
+
throw _e;
|
|
7514
|
+
},
|
|
7515
|
+
f: F
|
|
7516
|
+
};
|
|
7517
|
+
}
|
|
7518
|
+
|
|
7519
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7520
|
+
}
|
|
7444
7521
|
|
|
7522
|
+
var normalCompletion = true,
|
|
7523
|
+
didErr = false,
|
|
7524
|
+
err;
|
|
7525
|
+
return {
|
|
7526
|
+
s: function s() {
|
|
7527
|
+
it = it.call(o);
|
|
7528
|
+
},
|
|
7529
|
+
n: function n() {
|
|
7530
|
+
var step = it.next();
|
|
7531
|
+
normalCompletion = step.done;
|
|
7532
|
+
return step;
|
|
7533
|
+
},
|
|
7534
|
+
e: function e(_e2) {
|
|
7535
|
+
didErr = true;
|
|
7536
|
+
err = _e2;
|
|
7537
|
+
},
|
|
7538
|
+
f: function f() {
|
|
7539
|
+
try {
|
|
7540
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
7541
|
+
} finally {
|
|
7542
|
+
if (didErr) throw err;
|
|
7543
|
+
}
|
|
7544
|
+
}
|
|
7545
|
+
};
|
|
7546
|
+
}
|
|
7445
7547
|
// 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
|
|
7446
7548
|
|
|
7447
7549
|
var caret_rightvue_type_template_id_ac882894_hoisted_1 = {
|
|
@@ -7514,6 +7616,7 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7514
7616
|
|
|
7515
7617
|
|
|
7516
7618
|
|
|
7619
|
+
|
|
7517
7620
|
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7518
7621
|
name: 'aux-pagination',
|
|
7519
7622
|
emits: ['change'],
|
|
@@ -7544,6 +7647,29 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7544
7647
|
setup: function setup(props, _ref) {
|
|
7545
7648
|
var emit = _ref.emit;
|
|
7546
7649
|
var offset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(0);
|
|
7650
|
+
var isSmallScreen = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(false);
|
|
7651
|
+
var auxPaginationWrapper = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])();
|
|
7652
|
+
var resizeObserver = new ResizeObserver(function (entries) {
|
|
7653
|
+
var maxMobileWidth = 470;
|
|
7654
|
+
|
|
7655
|
+
var _iterator = _createForOfIteratorHelper(entries),
|
|
7656
|
+
_step;
|
|
7657
|
+
|
|
7658
|
+
try {
|
|
7659
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
7660
|
+
var entry = _step.value;
|
|
7661
|
+
var inlineSize = entry.contentBoxSize[0].inlineSize;
|
|
7662
|
+
isSmallScreen.value = inlineSize <= maxMobileWidth;
|
|
7663
|
+
}
|
|
7664
|
+
} catch (err) {
|
|
7665
|
+
_iterator.e(err);
|
|
7666
|
+
} finally {
|
|
7667
|
+
_iterator.f();
|
|
7668
|
+
}
|
|
7669
|
+
});
|
|
7670
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])(function () {
|
|
7671
|
+
resizeObserver.observe(auxPaginationWrapper.value);
|
|
7672
|
+
});
|
|
7547
7673
|
|
|
7548
7674
|
var isNearEnd = function isNearEnd() {
|
|
7549
7675
|
return currentPage.value - buttonRowOffset() <= 1;
|
|
@@ -7667,7 +7793,9 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7667
7793
|
goToNextPage: goToNextPage,
|
|
7668
7794
|
skipBackward: skipBackward,
|
|
7669
7795
|
skipForward: skipForward,
|
|
7670
|
-
currentPage: currentPage
|
|
7796
|
+
currentPage: currentPage,
|
|
7797
|
+
isSmallScreen: isSmallScreen,
|
|
7798
|
+
auxPaginationWrapper: auxPaginationWrapper
|
|
7671
7799
|
};
|
|
7672
7800
|
},
|
|
7673
7801
|
components: {
|
|
@@ -7679,8 +7807,8 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7679
7807
|
}));
|
|
7680
7808
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7681
7809
|
|
|
7682
|
-
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=
|
|
7683
|
-
var
|
|
7810
|
+
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=253b38be&lang=scss&scoped=true
|
|
7811
|
+
var Paginationvue_type_style_index_0_id_253b38be_lang_scss_scoped_true = __webpack_require__("eb71");
|
|
7684
7812
|
|
|
7685
7813
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7686
7814
|
|
|
@@ -7688,8 +7816,8 @@ var Paginationvue_type_style_index_0_id_aa245378_lang_scss_scoped_true = __webpa
|
|
|
7688
7816
|
|
|
7689
7817
|
|
|
7690
7818
|
|
|
7691
|
-
Paginationvue_type_script_lang_ts.render =
|
|
7692
|
-
Paginationvue_type_script_lang_ts.__scopeId = "data-v-
|
|
7819
|
+
Paginationvue_type_script_lang_ts.render = Paginationvue_type_template_id_253b38be_scoped_true_render
|
|
7820
|
+
Paginationvue_type_script_lang_ts.__scopeId = "data-v-253b38be"
|
|
7693
7821
|
|
|
7694
7822
|
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7695
7823
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|
|
@@ -7737,6 +7865,39 @@ function formatDate(date) {
|
|
|
7737
7865
|
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'dateAndTime';
|
|
7738
7866
|
return format === 'dateAndTime' || format === 'dateAndTimeWithSeconds' ? getDateTime(date, format) : getFormatDate(date, format);
|
|
7739
7867
|
}
|
|
7868
|
+
// CONCATENATED MODULE: ./src/helpers/formatAmount.ts
|
|
7869
|
+
var setThousandsSeparators = function setThousandsSeparators(amount, format) {
|
|
7870
|
+
var numberOfDecimals = format === 'decimals' ? 2 : 0;
|
|
7871
|
+
return new Intl.NumberFormat('nb-NB', {
|
|
7872
|
+
minimumFractionDigits: numberOfDecimals,
|
|
7873
|
+
maximumFractionDigits: numberOfDecimals
|
|
7874
|
+
}).format(amount);
|
|
7875
|
+
};
|
|
7876
|
+
|
|
7877
|
+
var addTaxLabel = function addTaxLabel(amount, taxFormat) {
|
|
7878
|
+
switch (taxFormat) {
|
|
7879
|
+
case 'excl':
|
|
7880
|
+
return "".concat(amount, " eks. mva");
|
|
7881
|
+
|
|
7882
|
+
case 'incl':
|
|
7883
|
+
return "".concat(amount, " inkl. mva");
|
|
7884
|
+
|
|
7885
|
+
default:
|
|
7886
|
+
return amount;
|
|
7887
|
+
}
|
|
7888
|
+
};
|
|
7889
|
+
|
|
7890
|
+
var addKrSymbol = function addKrSymbol(amount, format) {
|
|
7891
|
+
return format === 'rounded' ? "".concat(amount, ",-") : amount;
|
|
7892
|
+
};
|
|
7893
|
+
|
|
7894
|
+
function formatPrice(amount) {
|
|
7895
|
+
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'decimals';
|
|
7896
|
+
var taxLabel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'none';
|
|
7897
|
+
var amountThousandsSeparators = setThousandsSeparators(amount, format);
|
|
7898
|
+
var amountKrSymbol = addKrSymbol(amountThousandsSeparators, format);
|
|
7899
|
+
return addTaxLabel(amountKrSymbol, taxLabel);
|
|
7900
|
+
}
|
|
7740
7901
|
// CONCATENATED MODULE: ./src/index.ts
|
|
7741
7902
|
|
|
7742
7903
|
|
|
@@ -7756,6 +7917,7 @@ function formatDate(date) {
|
|
|
7756
7917
|
|
|
7757
7918
|
|
|
7758
7919
|
|
|
7920
|
+
|
|
7759
7921
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
7760
7922
|
|
|
7761
7923
|
|