@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.common.js
CHANGED
|
@@ -1739,22 +1739,6 @@ var update = add("f8aa6856", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1739
1739
|
|
|
1740
1740
|
/***/ }),
|
|
1741
1741
|
|
|
1742
|
-
/***/ "5b9a":
|
|
1743
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1744
|
-
|
|
1745
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1746
|
-
|
|
1747
|
-
// load the styles
|
|
1748
|
-
var content = __webpack_require__("bab1");
|
|
1749
|
-
if(content.__esModule) content = content.default;
|
|
1750
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
1751
|
-
if(content.locals) module.exports = content.locals;
|
|
1752
|
-
// add the styles to the DOM
|
|
1753
|
-
var add = __webpack_require__("499e").default
|
|
1754
|
-
var update = add("4761f93c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1755
|
-
|
|
1756
|
-
/***/ }),
|
|
1757
|
-
|
|
1758
1742
|
/***/ "5c6c":
|
|
1759
1743
|
/***/ (function(module, exports) {
|
|
1760
1744
|
|
|
@@ -1993,6 +1977,22 @@ var TEMPLATE = String(String).split('String');
|
|
|
1993
1977
|
});
|
|
1994
1978
|
|
|
1995
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
|
+
|
|
1996
1996
|
/***/ }),
|
|
1997
1997
|
|
|
1998
1998
|
/***/ "7156":
|
|
@@ -3595,20 +3595,6 @@ exports.push([module.i, ".aux-form-element[data-v-249b3848]{position:relative}.a
|
|
|
3595
3595
|
module.exports = exports;
|
|
3596
3596
|
|
|
3597
3597
|
|
|
3598
|
-
/***/ }),
|
|
3599
|
-
|
|
3600
|
-
/***/ "bab1":
|
|
3601
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3602
|
-
|
|
3603
|
-
// Imports
|
|
3604
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
3605
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
3606
|
-
// Module
|
|
3607
|
-
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}", ""]);
|
|
3608
|
-
// Exports
|
|
3609
|
-
module.exports = exports;
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
3598
|
/***/ }),
|
|
3613
3599
|
|
|
3614
3600
|
/***/ "bf84":
|
|
@@ -4009,6 +3995,20 @@ module.exports = function (key, value) {
|
|
|
4009
3995
|
};
|
|
4010
3996
|
|
|
4011
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
|
+
|
|
4012
4012
|
/***/ }),
|
|
4013
4013
|
|
|
4014
4014
|
/***/ "cffd":
|
|
@@ -4642,17 +4642,6 @@ if(content.locals) module.exports = content.locals;
|
|
|
4642
4642
|
var add = __webpack_require__("499e").default
|
|
4643
4643
|
var update = add("18037f0a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
4644
4644
|
|
|
4645
|
-
/***/ }),
|
|
4646
|
-
|
|
4647
|
-
/***/ "e93e":
|
|
4648
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4649
|
-
|
|
4650
|
-
"use strict";
|
|
4651
|
-
/* 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");
|
|
4652
|
-
/* 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__);
|
|
4653
|
-
/* unused harmony reexport * */
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
4645
|
/***/ }),
|
|
4657
4646
|
|
|
4658
4647
|
/***/ "e95a":
|
|
@@ -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":
|
|
@@ -7337,42 +7337,71 @@ var Togglevue_type_style_index_0_id_78e59f6f_lang_scss_scoped_true = __webpack_r
|
|
|
7337
7337
|
Togglevue_type_script_setup_true_lang_ts.__scopeId = "data-v-78e59f6f"
|
|
7338
7338
|
|
|
7339
7339
|
/* harmony default export */ var Toggle = (Togglevue_type_script_setup_true_lang_ts);
|
|
7340
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/Pagination/Pagination.vue?vue&type=template&id=
|
|
7340
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/Pagination/Pagination.vue?vue&type=template&id=253b38be&scoped=true
|
|
7341
7341
|
|
|
7342
7342
|
|
|
7343
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
7343
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-253b38be");
|
|
7344
7344
|
|
|
7345
|
-
var
|
|
7345
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_1 = {
|
|
7346
7346
|
key: 0,
|
|
7347
|
-
class: "aux-pagination
|
|
7347
|
+
class: "aux-pagination",
|
|
7348
|
+
ref: "auxPaginationWrapper"
|
|
7348
7349
|
};
|
|
7349
7350
|
|
|
7350
|
-
var
|
|
7351
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7351
7352
|
class: "aux-sr-only"
|
|
7352
7353
|
}, "Gå til forrige side", -1);
|
|
7353
7354
|
|
|
7354
|
-
var
|
|
7355
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_3 = {
|
|
7356
|
+
key: 0,
|
|
7357
|
+
class: "aux-pagination-small-device",
|
|
7358
|
+
"aria-live": "polite"
|
|
7359
|
+
};
|
|
7360
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_4 = {
|
|
7361
|
+
key: 0,
|
|
7362
|
+
class: "aux-ellipsis aux-pagination-item"
|
|
7363
|
+
};
|
|
7364
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_5 = {
|
|
7365
|
+
key: 0,
|
|
7366
|
+
class: "aux-sr-only",
|
|
7367
|
+
"aria-live": "polite"
|
|
7368
|
+
};
|
|
7369
|
+
|
|
7370
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_6 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7371
|
+
class: "aux-sr-only"
|
|
7372
|
+
}, "Gå til første side", -1);
|
|
7373
|
+
|
|
7374
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_7 = {
|
|
7375
|
+
"aria-hidden": "true"
|
|
7376
|
+
};
|
|
7377
|
+
|
|
7378
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_8 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7355
7379
|
class: "aux-sr-only"
|
|
7380
|
+
}, "Gå til siste side", -1);
|
|
7381
|
+
|
|
7382
|
+
var Paginationvue_type_template_id_253b38be_scoped_true_hoisted_9 = {
|
|
7383
|
+
"aria-hidden": "true"
|
|
7356
7384
|
};
|
|
7357
7385
|
|
|
7358
|
-
var
|
|
7386
|
+
var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7359
7387
|
class: "aux-sr-only"
|
|
7360
7388
|
}, "Gå til side ", -1);
|
|
7361
7389
|
|
|
7362
|
-
var
|
|
7390
|
+
var _hoisted_11 = {
|
|
7363
7391
|
class: "aux-sr-only"
|
|
7364
7392
|
};
|
|
7365
|
-
var
|
|
7366
|
-
|
|
7393
|
+
var _hoisted_12 = {
|
|
7394
|
+
key: 2,
|
|
7395
|
+
class: "aux-ellipsis aux-pagination-item"
|
|
7367
7396
|
};
|
|
7368
7397
|
|
|
7369
|
-
var
|
|
7398
|
+
var _hoisted_13 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
7370
7399
|
class: "aux-sr-only"
|
|
7371
7400
|
}, "Gå til neste side", -1);
|
|
7372
7401
|
|
|
7373
7402
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
7374
7403
|
|
|
7375
|
-
function
|
|
7404
|
+
function Paginationvue_type_template_id_253b38be_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7376
7405
|
var _component_CaretLeftIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretLeftIcon");
|
|
7377
7406
|
|
|
7378
7407
|
var _component_Button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Button");
|
|
@@ -7381,8 +7410,9 @@ function Paginationvue_type_template_id_0a1bbd5e_scoped_true_render(_ctx, _cache
|
|
|
7381
7410
|
|
|
7382
7411
|
var _component_CaretRightIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightIcon");
|
|
7383
7412
|
|
|
7384
|
-
return _ctx.totalPages > 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
7413
|
+
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, {
|
|
7385
7414
|
size: "small",
|
|
7415
|
+
class: "aux-pagination-item",
|
|
7386
7416
|
primary: "",
|
|
7387
7417
|
disabled: _ctx.currentPage === 1,
|
|
7388
7418
|
onClick: _ctx.goToPreviousPage
|
|
@@ -7390,51 +7420,41 @@ function Paginationvue_type_template_id_0a1bbd5e_scoped_true_render(_ctx, _cache
|
|
|
7390
7420
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7391
7421
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretLeftIcon, {
|
|
7392
7422
|
class: "icon"
|
|
7393
|
-
}),
|
|
7423
|
+
}), Paginationvue_type_template_id_253b38be_scoped_true_hoisted_2];
|
|
7394
7424
|
}),
|
|
7395
7425
|
_: 1
|
|
7396
|
-
}, 8, ["disabled", "onClick"]), (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(
|
|
7426
|
+
}, 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"], {
|
|
7427
|
+
key: 1
|
|
7428
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.generateButtons, function (item, index) {
|
|
7397
7429
|
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"], {
|
|
7398
7430
|
key: index
|
|
7399
|
-
}, [item === 'ellipsis-left' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
onClick: _ctx.skipBackward
|
|
7403
|
-
}, {
|
|
7404
|
-
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7405
|
-
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7406
|
-
class: "icon"
|
|
7407
|
-
}), 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)];
|
|
7408
|
-
}),
|
|
7409
|
-
_: 1
|
|
7410
|
-
}, 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, {
|
|
7431
|
+
}, [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, {
|
|
7432
|
+
class: "icon"
|
|
7433
|
+
})])) : 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, {
|
|
7411
7434
|
key: 1,
|
|
7412
7435
|
size: "small",
|
|
7413
|
-
class:
|
|
7414
|
-
|
|
7415
|
-
}),
|
|
7436
|
+
class: "aux-pagination-item",
|
|
7437
|
+
disabled: _ctx.currentPage === item,
|
|
7416
7438
|
onClick: function onClick($event) {
|
|
7417
7439
|
return _ctx.goToSelectedPage(item);
|
|
7418
7440
|
}
|
|
7419
7441
|
}, {
|
|
7420
7442
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7421
|
-
return [
|
|
7443
|
+
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"], {
|
|
7444
|
+
key: 1
|
|
7445
|
+
}, [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"], {
|
|
7446
|
+
key: 2
|
|
7447
|
+
}, [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"], {
|
|
7448
|
+
key: 3
|
|
7449
|
+
}, [_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)];
|
|
7422
7450
|
}),
|
|
7423
7451
|
_: 2
|
|
7424
|
-
}, 1032, ["
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
}, {
|
|
7429
|
-
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7430
|
-
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EllipsisIcon, {
|
|
7431
|
-
class: "icon"
|
|
7432
|
-
}), 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)];
|
|
7433
|
-
}),
|
|
7434
|
-
_: 1
|
|
7435
|
-
}, 8, ["onClick"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
7436
|
-
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7452
|
+
}, 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, {
|
|
7453
|
+
class: "icon"
|
|
7454
|
+
})])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
7455
|
+
}), 128)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Button, {
|
|
7437
7456
|
size: "small",
|
|
7457
|
+
class: "aux-pagination-item",
|
|
7438
7458
|
primary: "",
|
|
7439
7459
|
disabled: _ctx.currentPage === _ctx.totalPages,
|
|
7440
7460
|
onClick: _ctx.goToNextPage
|
|
@@ -7442,13 +7462,78 @@ function Paginationvue_type_template_id_0a1bbd5e_scoped_true_render(_ctx, _cache
|
|
|
7442
7462
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
7443
7463
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CaretRightIcon, {
|
|
7444
7464
|
class: "icon"
|
|
7445
|
-
}),
|
|
7465
|
+
}), _hoisted_13];
|
|
7446
7466
|
}),
|
|
7447
7467
|
_: 1
|
|
7448
|
-
}, 8, ["disabled", "onClick"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7468
|
+
}, 8, ["disabled", "onClick"])], 512)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
7449
7469
|
}
|
|
7450
|
-
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=
|
|
7470
|
+
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=template&id=253b38be&scoped=true
|
|
7471
|
+
|
|
7472
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
7473
|
+
|
|
7474
|
+
|
|
7475
|
+
|
|
7476
|
+
|
|
7451
7477
|
|
|
7478
|
+
|
|
7479
|
+
|
|
7480
|
+
|
|
7481
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
7482
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
7483
|
+
|
|
7484
|
+
if (!it) {
|
|
7485
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
7486
|
+
if (it) o = it;
|
|
7487
|
+
var i = 0;
|
|
7488
|
+
|
|
7489
|
+
var F = function F() {};
|
|
7490
|
+
|
|
7491
|
+
return {
|
|
7492
|
+
s: F,
|
|
7493
|
+
n: function n() {
|
|
7494
|
+
if (i >= o.length) return {
|
|
7495
|
+
done: true
|
|
7496
|
+
};
|
|
7497
|
+
return {
|
|
7498
|
+
done: false,
|
|
7499
|
+
value: o[i++]
|
|
7500
|
+
};
|
|
7501
|
+
},
|
|
7502
|
+
e: function e(_e) {
|
|
7503
|
+
throw _e;
|
|
7504
|
+
},
|
|
7505
|
+
f: F
|
|
7506
|
+
};
|
|
7507
|
+
}
|
|
7508
|
+
|
|
7509
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7510
|
+
}
|
|
7511
|
+
|
|
7512
|
+
var normalCompletion = true,
|
|
7513
|
+
didErr = false,
|
|
7514
|
+
err;
|
|
7515
|
+
return {
|
|
7516
|
+
s: function s() {
|
|
7517
|
+
it = it.call(o);
|
|
7518
|
+
},
|
|
7519
|
+
n: function n() {
|
|
7520
|
+
var step = it.next();
|
|
7521
|
+
normalCompletion = step.done;
|
|
7522
|
+
return step;
|
|
7523
|
+
},
|
|
7524
|
+
e: function e(_e2) {
|
|
7525
|
+
didErr = true;
|
|
7526
|
+
err = _e2;
|
|
7527
|
+
},
|
|
7528
|
+
f: function f() {
|
|
7529
|
+
try {
|
|
7530
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
7531
|
+
} finally {
|
|
7532
|
+
if (didErr) throw err;
|
|
7533
|
+
}
|
|
7534
|
+
}
|
|
7535
|
+
};
|
|
7536
|
+
}
|
|
7452
7537
|
// 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
|
|
7453
7538
|
|
|
7454
7539
|
var caret_rightvue_type_template_id_ac882894_hoisted_1 = {
|
|
@@ -7521,6 +7606,7 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7521
7606
|
|
|
7522
7607
|
|
|
7523
7608
|
|
|
7609
|
+
|
|
7524
7610
|
/* harmony default export */ var Paginationvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
7525
7611
|
name: 'aux-pagination',
|
|
7526
7612
|
emits: ['change'],
|
|
@@ -7551,6 +7637,29 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7551
7637
|
setup: function setup(props, _ref) {
|
|
7552
7638
|
var emit = _ref.emit;
|
|
7553
7639
|
var offset = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(0);
|
|
7640
|
+
var isSmallScreen = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(false);
|
|
7641
|
+
var auxPaginationWrapper = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])();
|
|
7642
|
+
var resizeObserver = new ResizeObserver(function (entries) {
|
|
7643
|
+
var maxMobileWidth = 470;
|
|
7644
|
+
|
|
7645
|
+
var _iterator = _createForOfIteratorHelper(entries),
|
|
7646
|
+
_step;
|
|
7647
|
+
|
|
7648
|
+
try {
|
|
7649
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
7650
|
+
var entry = _step.value;
|
|
7651
|
+
var inlineSize = entry.contentBoxSize[0].inlineSize;
|
|
7652
|
+
isSmallScreen.value = inlineSize <= maxMobileWidth;
|
|
7653
|
+
}
|
|
7654
|
+
} catch (err) {
|
|
7655
|
+
_iterator.e(err);
|
|
7656
|
+
} finally {
|
|
7657
|
+
_iterator.f();
|
|
7658
|
+
}
|
|
7659
|
+
});
|
|
7660
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])(function () {
|
|
7661
|
+
resizeObserver.observe(auxPaginationWrapper.value);
|
|
7662
|
+
});
|
|
7554
7663
|
|
|
7555
7664
|
var isNearEnd = function isNearEnd() {
|
|
7556
7665
|
return currentPage.value - buttonRowOffset() <= 1;
|
|
@@ -7658,7 +7767,9 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7658
7767
|
});
|
|
7659
7768
|
|
|
7660
7769
|
var init = function init() {
|
|
7661
|
-
|
|
7770
|
+
offset.value = props.config.offset;
|
|
7771
|
+
|
|
7772
|
+
if (!checkIfConfigIsPaginationOffset.value) {
|
|
7662
7773
|
console.warn('Pagination require: offset, limit, and totalCount');
|
|
7663
7774
|
}
|
|
7664
7775
|
};
|
|
@@ -7672,7 +7783,9 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7672
7783
|
goToNextPage: goToNextPage,
|
|
7673
7784
|
skipBackward: skipBackward,
|
|
7674
7785
|
skipForward: skipForward,
|
|
7675
|
-
currentPage: currentPage
|
|
7786
|
+
currentPage: currentPage,
|
|
7787
|
+
isSmallScreen: isSmallScreen,
|
|
7788
|
+
auxPaginationWrapper: auxPaginationWrapper
|
|
7676
7789
|
};
|
|
7677
7790
|
},
|
|
7678
7791
|
components: {
|
|
@@ -7684,8 +7797,8 @@ dots_three_script.render = dots_threevue_type_template_id_e69ce776_render
|
|
|
7684
7797
|
}));
|
|
7685
7798
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue?vue&type=script&lang=ts
|
|
7686
7799
|
|
|
7687
|
-
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=
|
|
7688
|
-
var
|
|
7800
|
+
// EXTERNAL MODULE: ./src/components/Pagination/Pagination.vue?vue&type=style&index=0&id=253b38be&lang=scss&scoped=true
|
|
7801
|
+
var Paginationvue_type_style_index_0_id_253b38be_lang_scss_scoped_true = __webpack_require__("eb71");
|
|
7689
7802
|
|
|
7690
7803
|
// CONCATENATED MODULE: ./src/components/Pagination/Pagination.vue
|
|
7691
7804
|
|
|
@@ -7693,8 +7806,8 @@ var Paginationvue_type_style_index_0_id_0a1bbd5e_lang_scss_scoped_true = __webpa
|
|
|
7693
7806
|
|
|
7694
7807
|
|
|
7695
7808
|
|
|
7696
|
-
Paginationvue_type_script_lang_ts.render =
|
|
7697
|
-
Paginationvue_type_script_lang_ts.__scopeId = "data-v-
|
|
7809
|
+
Paginationvue_type_script_lang_ts.render = Paginationvue_type_template_id_253b38be_scoped_true_render
|
|
7810
|
+
Paginationvue_type_script_lang_ts.__scopeId = "data-v-253b38be"
|
|
7698
7811
|
|
|
7699
7812
|
/* harmony default export */ var Pagination = (Paginationvue_type_script_lang_ts);
|
|
7700
7813
|
// CONCATENATED MODULE: ./src/helpers/formatting.ts
|