@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.common.js
CHANGED
|
@@ -980,22 +980,6 @@ 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
|
-
|
|
999
983
|
/***/ }),
|
|
1000
984
|
|
|
1001
985
|
/***/ "3bbe":
|
|
@@ -1782,17 +1766,6 @@ exports.push([module.i, ".aux-pill[data-v-3724349d]{font-size:12px;line-height:1
|
|
|
1782
1766
|
module.exports = exports;
|
|
1783
1767
|
|
|
1784
1768
|
|
|
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
|
-
|
|
1796
1769
|
/***/ }),
|
|
1797
1770
|
|
|
1798
1771
|
/***/ "622f":
|
|
@@ -2004,6 +1977,22 @@ var TEMPLATE = String(String).split('String');
|
|
|
2004
1977
|
});
|
|
2005
1978
|
|
|
2006
1979
|
|
|
1980
|
+
/***/ }),
|
|
1981
|
+
|
|
1982
|
+
/***/ "7005":
|
|
1983
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1984
|
+
|
|
1985
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1986
|
+
|
|
1987
|
+
// load the styles
|
|
1988
|
+
var content = __webpack_require__("cee5");
|
|
1989
|
+
if(content.__esModule) content = content.default;
|
|
1990
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
1991
|
+
if(content.locals) module.exports = content.locals;
|
|
1992
|
+
// add the styles to the DOM
|
|
1993
|
+
var add = __webpack_require__("499e").default
|
|
1994
|
+
var update = add("3016e708", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1995
|
+
|
|
2007
1996
|
/***/ }),
|
|
2008
1997
|
|
|
2009
1998
|
/***/ "7156":
|
|
@@ -4006,6 +3995,20 @@ module.exports = function (key, value) {
|
|
|
4006
3995
|
};
|
|
4007
3996
|
|
|
4008
3997
|
|
|
3998
|
+
/***/ }),
|
|
3999
|
+
|
|
4000
|
+
/***/ "cee5":
|
|
4001
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4002
|
+
|
|
4003
|
+
// Imports
|
|
4004
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
4005
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
4006
|
+
// Module
|
|
4007
|
+
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}", ""]);
|
|
4008
|
+
// Exports
|
|
4009
|
+
module.exports = exports;
|
|
4010
|
+
|
|
4011
|
+
|
|
4009
4012
|
/***/ }),
|
|
4010
4013
|
|
|
4011
4014
|
/***/ "cffd":
|
|
@@ -4172,20 +4175,6 @@ module.exports = function (it, TAG, STATIC) {
|
|
|
4172
4175
|
};
|
|
4173
4176
|
|
|
4174
4177
|
|
|
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
|
-
|
|
4189
4178
|
/***/ }),
|
|
4190
4179
|
|
|
4191
4180
|
/***/ "d935":
|
|
@@ -4670,6 +4659,17 @@ module.exports = function (it) {
|
|
|
4670
4659
|
};
|
|
4671
4660
|
|
|
4672
4661
|
|
|
4662
|
+
/***/ }),
|
|
4663
|
+
|
|
4664
|
+
/***/ "eb71":
|
|
4665
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4666
|
+
|
|
4667
|
+
"use strict";
|
|
4668
|
+
/* 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");
|
|
4669
|
+
/* 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__);
|
|
4670
|
+
/* unused harmony reexport * */
|
|
4671
|
+
|
|
4672
|
+
|
|
4673
4673
|
/***/ }),
|
|
4674
4674
|
|
|
4675
4675
|
/***/ "eefb":
|
|
@@ -4803,6 +4803,7 @@ __webpack_require__.d(__webpack_exports__, "AuxCard", function() { return /* ree
|
|
|
4803
4803
|
__webpack_require__.d(__webpack_exports__, "AuxToggle", function() { return /* reexport */ Toggle; });
|
|
4804
4804
|
__webpack_require__.d(__webpack_exports__, "AuxPagination", function() { return /* reexport */ Pagination; });
|
|
4805
4805
|
__webpack_require__.d(__webpack_exports__, "formatDate", function() { return /* reexport */ formatDate; });
|
|
4806
|
+
__webpack_require__.d(__webpack_exports__, "formatPrice", function() { return /* reexport */ formatPrice; });
|
|
4806
4807
|
|
|
4807
4808
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
4808
4809
|
// This file is imported into lib/wc client bundles.
|
|
@@ -7337,44 +7338,71 @@ var Togglevue_type_style_index_0_id_78e59f6f_lang_scss_scoped_true = __webpack_r
|
|
|
7337
7338
|
Togglevue_type_script_setup_true_lang_ts.__scopeId = "data-v-78e59f6f"
|
|
7338
7339
|
|
|
7339
7340
|
/* 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=
|
|
7341
|
+
// 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
|
|
7341
7342
|
|
|
7342
7343
|
|
|
7343
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
7344
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-253b38be");
|
|
7344
7345
|
|
|
7345
|
-
var
|
|
7346
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_1 = {
|
|
7346
7347
|
key: 0,
|
|
7347
|
-
class: "aux-pagination
|
|
7348
|
+
class: "aux-pagination",
|
|
7349
|
+
ref: "auxPaginationWrapper"
|
|
7348
7350
|
};
|
|
7349
7351
|
|
|
7350
|
-
var
|
|
7352
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7351
7353
|
class: "aux-sr-only"
|
|
7352
7354
|
}, "Gå til forrige side", -1);
|
|
7353
7355
|
|
|
7354
|
-
var
|
|
7356
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_3 = {
|
|
7357
|
+
key: 0,
|
|
7358
|
+
class: "aux-pagination-small-device",
|
|
7359
|
+
"aria-live": "polite"
|
|
7360
|
+
};
|
|
7361
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_4 = {
|
|
7355
7362
|
key: 0,
|
|
7356
|
-
class: "ellipsis"
|
|
7363
|
+
class: "aux-ellipsis aux-pagination-item"
|
|
7364
|
+
};
|
|
7365
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_5 = {
|
|
7366
|
+
key: 0,
|
|
7367
|
+
class: "aux-sr-only",
|
|
7368
|
+
"aria-live": "polite"
|
|
7369
|
+
};
|
|
7370
|
+
|
|
7371
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_6 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7372
|
+
class: "aux-sr-only"
|
|
7373
|
+
}, "Gå til første side", -1);
|
|
7374
|
+
|
|
7375
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_7 = {
|
|
7376
|
+
"aria-hidden": "true"
|
|
7377
|
+
};
|
|
7378
|
+
|
|
7379
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_8 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7380
|
+
class: "aux-sr-only"
|
|
7381
|
+
}, "Gå til siste side", -1);
|
|
7382
|
+
|
|
7383
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_9 = {
|
|
7384
|
+
"aria-hidden": "true"
|
|
7357
7385
|
};
|
|
7358
7386
|
|
|
7359
|
-
var
|
|
7387
|
+
var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7360
7388
|
class: "aux-sr-only"
|
|
7361
7389
|
}, "Gå til side ", -1);
|
|
7362
7390
|
|
|
7363
|
-
var
|
|
7391
|
+
var _hoisted_11 = {
|
|
7364
7392
|
class: "aux-sr-only"
|
|
7365
7393
|
};
|
|
7366
|
-
var
|
|
7394
|
+
var _hoisted_12 = {
|
|
7367
7395
|
key: 2,
|
|
7368
|
-
class: "ellipsis"
|
|
7396
|
+
class: "aux-ellipsis aux-pagination-item"
|
|
7369
7397
|
};
|
|
7370
7398
|
|
|
7371
|
-
var
|
|
7399
|
+
var _hoisted_13 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7372
7400
|
class: "aux-sr-only"
|
|
7373
7401
|
}, "Gå til neste side", -1);
|
|
7374
7402
|
|
|
7375
7403
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7376
7404
|
|
|
7377
|
-
function
|
|
7405
|
+
function Paginationvue_type_template_id_253b38be_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7378
7406
|
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7379
7407
|
|
|
7380
7408
|
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
@@ -7383,8 +7411,9 @@ function Paginationvue_type_template_id_aa245378_scoped_true_render(_ctx, _cache
|
|
|
7383
7411
|
|
|
7384
7412
|
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7385
7413
|
|
|
7386
|
-
return _ctx.totalPages > 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
7414
|
+
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, {
|
|
7387
7415
|
size: "small",
|
|
7416
|
+
class: "aux-pagination-item",
|
|
7388
7417
|
primary: "",
|
|
7389
7418
|
disabled: _ctx.currentPage === 1,
|
|
7390
7419
|
onClick: _ctx.goToPreviousPage
|
|
@@ -7392,33 +7421,41 @@ function Paginationvue_type_template_id_aa245378_scoped_true_render(_ctx, _cache
|
|
|
7392
7421
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7393
7422
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7394
7423
|
class: "icon"
|
|
7395
|
-
}),
|
|
7424
|
+
}), Paginationvue_type_template_id_253b38be_scoped_true_hoisted_2];
|
|
7396
7425
|
}),
|
|
7397
7426
|
_: 1
|
|
7398
|
-
}, 8, ["disabled", "onClick"]), (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(
|
|
7427
|
+
}, 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"], {
|
|
7428
|
+
key: 1
|
|
7429
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.generateButtons, function (item, index) {
|
|
7399
7430
|
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
7431
|
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",
|
|
7432
|
+
}, [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, {
|
|
7402
7433
|
class: "icon"
|
|
7403
7434
|
})])) : 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
7435
|
key: 1,
|
|
7405
7436
|
size: "small",
|
|
7406
|
-
class:
|
|
7407
|
-
|
|
7408
|
-
}),
|
|
7437
|
+
class: "aux-pagination-item",
|
|
7438
|
+
disabled: _ctx.currentPage === item,
|
|
7409
7439
|
onClick: function onClick($event) {
|
|
7410
7440
|
return _ctx.goToSelectedPage(item);
|
|
7411
7441
|
}
|
|
7412
7442
|
}, {
|
|
7413
7443
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7414
|
-
return [
|
|
7444
|
+
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"], {
|
|
7445
|
+
key: 1
|
|
7446
|
+
}, [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"], {
|
|
7447
|
+
key: 2
|
|
7448
|
+
}, [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"], {
|
|
7449
|
+
key: 3
|
|
7450
|
+
}, [_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)];
|
|
7415
7451
|
}),
|
|
7416
7452
|
_: 2
|
|
7417
|
-
}, 1032, ["
|
|
7453
|
+
}, 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, {
|
|
7418
7454
|
class: "icon"
|
|
7419
7455
|
})])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
7420
|
-
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7456
|
+
}), 128)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7421
7457
|
size: "small",
|
|
7458
|
+
class: "aux-pagination-item",
|
|
7422
7459
|
primary: "",
|
|
7423
7460
|
disabled: _ctx.currentPage === _ctx.totalPages,
|
|
7424
7461
|
onClick: _ctx.goToNextPage
|
|
@@ -7426,13 +7463,78 @@ function Paginationvue_type_template_id_aa245378_scoped_true_render(_ctx, _cache
|
|
|
7426
7463
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7427
7464
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
7428
7465
|
class: "icon"
|
|
7429
|
-
}),
|
|
7466
|
+
}), _hoisted_13];
|
|
7430
7467
|
}),
|
|
7431
7468
|
_: 1
|
|
7432
|
-
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7469
|
+
}, 8, ["disabled", "onClick"])], 512)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7433
7470
|
}
|
|
7434
|
-
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=
|
|
7471
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=253b38be&scoped=true
|
|
7472
|
+
|
|
7473
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
7474
|
+
|
|
7475
|
+
|
|
7476
|
+
|
|
7477
|
+
|
|
7478
|
+
|
|
7479
|
+
|
|
7480
|
+
|
|
7481
|
+
|
|
7482
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
7483
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
7484
|
+
|
|
7485
|
+
if (!it) {
|
|
7486
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
7487
|
+
if (it) o = it;
|
|
7488
|
+
var i = 0;
|
|
7489
|
+
|
|
7490
|
+
var F = function F() {};
|
|
7491
|
+
|
|
7492
|
+
return {
|
|
7493
|
+
s: F,
|
|
7494
|
+
n: function n() {
|
|
7495
|
+
if (i >= o.length) return {
|
|
7496
|
+
done: true
|
|
7497
|
+
};
|
|
7498
|
+
return {
|
|
7499
|
+
done: false,
|
|
7500
|
+
value: o[i++]
|
|
7501
|
+
};
|
|
7502
|
+
},
|
|
7503
|
+
e: function e(_e) {
|
|
7504
|
+
throw _e;
|
|
7505
|
+
},
|
|
7506
|
+
f: F
|
|
7507
|
+
};
|
|
7508
|
+
}
|
|
7509
|
+
|
|
7510
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7511
|
+
}
|
|
7435
7512
|
|
|
7513
|
+
var normalCompletion = true,
|
|
7514
|
+
didErr = false,
|
|
7515
|
+
err;
|
|
7516
|
+
return {
|
|
7517
|
+
s: function s() {
|
|
7518
|
+
it = it.call(o);
|
|
7519
|
+
},
|
|
7520
|
+
n: function n() {
|
|
7521
|
+
var step = it.next();
|
|
7522
|
+
normalCompletion = step.done;
|
|
7523
|
+
return step;
|
|
7524
|
+
},
|
|
7525
|
+
e: function e(_e2) {
|
|
7526
|
+
didErr = true;
|
|
7527
|
+
err = _e2;
|
|
7528
|
+
},
|
|
7529
|
+
f: function f() {
|
|
7530
|
+
try {
|
|
7531
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
7532
|
+
} finally {
|
|
7533
|
+
if (didErr) throw err;
|
|
7534
|
+
}
|
|
7535
|
+
}
|
|
7536
|
+
};
|
|
7537
|
+
}
|
|
7436
7538
|
// 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
|
|
7437
7539
|
|
|
7438
7540
|
var caret_rightvue_type_template_id_ac882894_hoisted_1 = {
|
|
@@ -7505,6 +7607,7 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7505
7607
|
|
|
7506
7608
|
|
|
7507
7609
|
|
|
7610
|
+
|
|
7508
7611
|
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7509
7612
|
name: 'aux-pagination',
|
|
7510
7613
|
emits: ['change'],
|
|
@@ -7535,6 +7638,29 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7535
7638
|
setup: function setup(props, _ref) {
|
|
7536
7639
|
var emit = _ref.emit;
|
|
7537
7640
|
var offset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(0);
|
|
7641
|
+
var isSmallScreen = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(false);
|
|
7642
|
+
var auxPaginationWrapper = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])();
|
|
7643
|
+
var resizeObserver = new ResizeObserver(function (entries) {
|
|
7644
|
+
var maxMobileWidth = 470;
|
|
7645
|
+
|
|
7646
|
+
var _iterator = _createForOfIteratorHelper(entries),
|
|
7647
|
+
_step;
|
|
7648
|
+
|
|
7649
|
+
try {
|
|
7650
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
7651
|
+
var entry = _step.value;
|
|
7652
|
+
var inlineSize = entry.contentBoxSize[0].inlineSize;
|
|
7653
|
+
isSmallScreen.value = inlineSize <= maxMobileWidth;
|
|
7654
|
+
}
|
|
7655
|
+
} catch (err) {
|
|
7656
|
+
_iterator.e(err);
|
|
7657
|
+
} finally {
|
|
7658
|
+
_iterator.f();
|
|
7659
|
+
}
|
|
7660
|
+
});
|
|
7661
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])(function () {
|
|
7662
|
+
resizeObserver.observe(auxPaginationWrapper.value);
|
|
7663
|
+
});
|
|
7538
7664
|
|
|
7539
7665
|
var isNearEnd = function isNearEnd() {
|
|
7540
7666
|
return currentPage.value - buttonRowOffset() <= 1;
|
|
@@ -7658,7 +7784,9 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7658
7784
|
goToNextPage: goToNextPage,
|
|
7659
7785
|
skipBackward: skipBackward,
|
|
7660
7786
|
skipForward: skipForward,
|
|
7661
|
-
currentPage: currentPage
|
|
7787
|
+
currentPage: currentPage,
|
|
7788
|
+
isSmallScreen: isSmallScreen,
|
|
7789
|
+
auxPaginationWrapper: auxPaginationWrapper
|
|
7662
7790
|
};
|
|
7663
7791
|
},
|
|
7664
7792
|
components: {
|
|
@@ -7670,8 +7798,8 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7670
7798
|
}));
|
|
7671
7799
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7672
7800
|
|
|
7673
|
-
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=
|
|
7674
|
-
var
|
|
7801
|
+
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=253b38be&lang=scss&scoped=true
|
|
7802
|
+
var Paginationvue_type_style_index_0_id_253b38be_lang_scss_scoped_true = __webpack_require__("eb71");
|
|
7675
7803
|
|
|
7676
7804
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7677
7805
|
|
|
@@ -7679,8 +7807,8 @@ var Paginationvue_type_style_index_0_id_aa245378_lang_scss_scoped_true = __webpa
|
|
|
7679
7807
|
|
|
7680
7808
|
|
|
7681
7809
|
|
|
7682
|
-
Paginationvue_type_script_lang_ts.render =
|
|
7683
|
-
Paginationvue_type_script_lang_ts.__scopeId = "data-v-
|
|
7810
|
+
Paginationvue_type_script_lang_ts.render = Paginationvue_type_template_id_253b38be_scoped_true_render
|
|
7811
|
+
Paginationvue_type_script_lang_ts.__scopeId = "data-v-253b38be"
|
|
7684
7812
|
|
|
7685
7813
|
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7686
7814
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|
|
@@ -7728,6 +7856,39 @@ function formatDate(date) {
|
|
|
7728
7856
|
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'dateAndTime';
|
|
7729
7857
|
return format === 'dateAndTime' || format === 'dateAndTimeWithSeconds' ? getDateTime(date, format) : getFormatDate(date, format);
|
|
7730
7858
|
}
|
|
7859
|
+
// CONCATENATED MODULE: ./src/helpers/formatAmount.ts
|
|
7860
|
+
var setThousandsSeparators = function setThousandsSeparators(amount, format) {
|
|
7861
|
+
var numberOfDecimals = format === 'decimals' ? 2 : 0;
|
|
7862
|
+
return new Intl.NumberFormat('nb-NB', {
|
|
7863
|
+
minimumFractionDigits: numberOfDecimals,
|
|
7864
|
+
maximumFractionDigits: numberOfDecimals
|
|
7865
|
+
}).format(amount);
|
|
7866
|
+
};
|
|
7867
|
+
|
|
7868
|
+
var addTaxLabel = function addTaxLabel(amount, taxFormat) {
|
|
7869
|
+
switch (taxFormat) {
|
|
7870
|
+
case 'excl':
|
|
7871
|
+
return "".concat(amount, " eks. mva");
|
|
7872
|
+
|
|
7873
|
+
case 'incl':
|
|
7874
|
+
return "".concat(amount, " inkl. mva");
|
|
7875
|
+
|
|
7876
|
+
default:
|
|
7877
|
+
return amount;
|
|
7878
|
+
}
|
|
7879
|
+
};
|
|
7880
|
+
|
|
7881
|
+
var addKrSymbol = function addKrSymbol(amount, format) {
|
|
7882
|
+
return format === 'rounded' ? "".concat(amount, ",-") : amount;
|
|
7883
|
+
};
|
|
7884
|
+
|
|
7885
|
+
function formatPrice(amount) {
|
|
7886
|
+
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'decimals';
|
|
7887
|
+
var taxLabel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'none';
|
|
7888
|
+
var amountThousandsSeparators = setThousandsSeparators(amount, format);
|
|
7889
|
+
var amountKrSymbol = addKrSymbol(amountThousandsSeparators, format);
|
|
7890
|
+
return addTaxLabel(amountKrSymbol, taxLabel);
|
|
7891
|
+
}
|
|
7731
7892
|
// CONCATENATED MODULE: ./src/index.ts
|
|
7732
7893
|
|
|
7733
7894
|
|
|
@@ -7747,6 +7908,7 @@ function formatDate(date) {
|
|
|
7747
7908
|
|
|
7748
7909
|
|
|
7749
7910
|
|
|
7911
|
+
|
|
7750
7912
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
7751
7913
|
|
|
7752
7914
|
|