@fkui/vue 6.1.0 → 6.2.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/cjs/{cypress.js → cypress.cjs.js} +2 -56
- package/dist/cjs/{cypress.js.map → cypress.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +563 -256
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/cypress.esm.js +1516 -0
- package/dist/esm/cypress.esm.js.map +7 -0
- package/dist/esm/index.esm.js +563 -256
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/index.d.ts +85 -4
- package/dist/types/tsdoc-metadata.json +1 -1
- package/htmlvalidate/elements/components.js +9 -0
- package/package.json +8 -7
package/dist/esm/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent, computed, createElementBlock, openBlock, normalizeClas
|
|
|
2
2
|
import { TranslationService, isSet, configLogic, focus as focus$1, ElementIdService, findTabbableElements, popFocus, pushFocus, scrollTo, documentOrderComparator, ValidationService, isValidatableHTMLElement, alertScreenReader, debounce, handleTab, isEmpty, deepClone, parseNumber, formatNumber, parseBankAccountNumber, parseBankgiro, parseClearingNumber, parsePersonnummer, formatPersonnummer, parsePlusgiro, formatPostalCode, parsePercent, formatPercent, parseOrganisationsnummer, isInvalidDatesConfig, isInvalidWeekdaysConfig, parseDate, waitForScreenReader, focusFirst, removeFocusListener, restoreFocus, saveFocus, addFocusListener, DomUtils } from "@fkui/logic";
|
|
3
3
|
import { groupByWeek, getWeekdayNamings, FDate, DateFormat } from "@fkui/date";
|
|
4
4
|
const statuses = ["default", "warning", "error", "success", "info"];
|
|
5
|
-
const _sfc_main$
|
|
5
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "FBadge",
|
|
7
7
|
props: {
|
|
8
8
|
/**
|
|
@@ -764,8 +764,8 @@ function requireWeakMapBasicDetection() {
|
|
|
764
764
|
hasRequiredWeakMapBasicDetection = 1;
|
|
765
765
|
var globalThis2 = requireGlobalThis();
|
|
766
766
|
var isCallable2 = requireIsCallable();
|
|
767
|
-
var
|
|
768
|
-
weakMapBasicDetection = isCallable2(
|
|
767
|
+
var WeakMap2 = globalThis2.WeakMap;
|
|
768
|
+
weakMapBasicDetection = isCallable2(WeakMap2) && /native code/.test(String(WeakMap2));
|
|
769
769
|
return weakMapBasicDetection;
|
|
770
770
|
}
|
|
771
771
|
var sharedKey;
|
|
@@ -804,7 +804,7 @@ function requireInternalState() {
|
|
|
804
804
|
var hiddenKeys2 = requireHiddenKeys();
|
|
805
805
|
var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
|
|
806
806
|
var TypeError2 = globalThis2.TypeError;
|
|
807
|
-
var
|
|
807
|
+
var WeakMap2 = globalThis2.WeakMap;
|
|
808
808
|
var set, get, has;
|
|
809
809
|
var enforce = function(it) {
|
|
810
810
|
return has(it) ? get(it) : set(it, {});
|
|
@@ -819,7 +819,7 @@ function requireInternalState() {
|
|
|
819
819
|
};
|
|
820
820
|
};
|
|
821
821
|
if (NATIVE_WEAK_MAP || shared2.state) {
|
|
822
|
-
var store = shared2.state || (shared2.state = new
|
|
822
|
+
var store = shared2.state || (shared2.state = new WeakMap2());
|
|
823
823
|
store.get = store.get;
|
|
824
824
|
store.has = store.has;
|
|
825
825
|
store.set = store.set;
|
|
@@ -1881,7 +1881,7 @@ function requireEs_array_push() {
|
|
|
1881
1881
|
requireEs_array_push();
|
|
1882
1882
|
const Flip = ["horizontal", "vertical"];
|
|
1883
1883
|
const Rotate = ["90", "180", "270"];
|
|
1884
|
-
const _sfc_main$
|
|
1884
|
+
const _sfc_main$1b = defineComponent({
|
|
1885
1885
|
name: "FIcon",
|
|
1886
1886
|
inheritAttrs: false,
|
|
1887
1887
|
props: {
|
|
@@ -1969,7 +1969,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
return target;
|
|
1971
1971
|
};
|
|
1972
|
-
const _hoisted_1$
|
|
1972
|
+
const _hoisted_1$V = ["aria-hidden"];
|
|
1973
1973
|
const _hoisted_2$F = ["xlink:href"];
|
|
1974
1974
|
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1975
1975
|
return openBlock(), createElementBlock("svg", mergeProps(_ctx.$attrs, {
|
|
@@ -1978,9 +1978,9 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1978
1978
|
"aria-hidden": _ctx.ariaHidden
|
|
1979
1979
|
}), [renderSlot(_ctx.$slots, "default"), _cache[0] || (_cache[0] = createTextVNode()), createElementVNode("use", {
|
|
1980
1980
|
"xlink:href": _ctx.spriteId
|
|
1981
|
-
}, null, 8, _hoisted_2$F)], 16, _hoisted_1$
|
|
1981
|
+
}, null, 8, _hoisted_2$F)], 16, _hoisted_1$V);
|
|
1982
1982
|
}
|
|
1983
|
-
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1983
|
+
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$R]]);
|
|
1984
1984
|
const DATA_TEST_ATTRIBUTE_NAME = "data-test";
|
|
1985
1985
|
function throwErrorIfEmpty(value) {
|
|
1986
1986
|
if (!value) {
|
|
@@ -3871,8 +3871,8 @@ function require_WeakMap() {
|
|
|
3871
3871
|
if (hasRequired_WeakMap) return _WeakMap;
|
|
3872
3872
|
hasRequired_WeakMap = 1;
|
|
3873
3873
|
var getNative = require_getNative(), root = require_root();
|
|
3874
|
-
var
|
|
3875
|
-
_WeakMap =
|
|
3874
|
+
var WeakMap2 = getNative(root, "WeakMap");
|
|
3875
|
+
_WeakMap = WeakMap2;
|
|
3876
3876
|
return _WeakMap;
|
|
3877
3877
|
}
|
|
3878
3878
|
var _getTag;
|
|
@@ -3880,12 +3880,12 @@ var hasRequired_getTag;
|
|
|
3880
3880
|
function require_getTag() {
|
|
3881
3881
|
if (hasRequired_getTag) return _getTag;
|
|
3882
3882
|
hasRequired_getTag = 1;
|
|
3883
|
-
var DataView2 = require_DataView(), Map2 = require_Map(), Promise2 = require_Promise(), Set = require_Set(),
|
|
3883
|
+
var DataView2 = require_DataView(), Map2 = require_Map(), Promise2 = require_Promise(), Set = require_Set(), WeakMap2 = require_WeakMap(), baseGetTag = require_baseGetTag(), toSource = require_toSource();
|
|
3884
3884
|
var mapTag = "[object Map]", objectTag = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
|
|
3885
3885
|
var dataViewTag = "[object DataView]";
|
|
3886
|
-
var dataViewCtorString = toSource(DataView2), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(
|
|
3886
|
+
var dataViewCtorString = toSource(DataView2), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap2);
|
|
3887
3887
|
var getTag = baseGetTag;
|
|
3888
|
-
if (DataView2 && getTag(new DataView2(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag ||
|
|
3888
|
+
if (DataView2 && getTag(new DataView2(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
|
|
3889
3889
|
getTag = function(value) {
|
|
3890
3890
|
var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3891
3891
|
if (ctorString) {
|
|
@@ -4418,7 +4418,7 @@ function elementIsRadioButton(element) {
|
|
|
4418
4418
|
function isHTMLInputElement(element) {
|
|
4419
4419
|
return element instanceof HTMLInputElement;
|
|
4420
4420
|
}
|
|
4421
|
-
const _sfc_main$
|
|
4421
|
+
const _sfc_main$1a = defineComponent({
|
|
4422
4422
|
name: "FModal",
|
|
4423
4423
|
components: {
|
|
4424
4424
|
FIcon
|
|
@@ -4598,7 +4598,7 @@ const _sfc_main$19 = defineComponent({
|
|
|
4598
4598
|
}
|
|
4599
4599
|
}
|
|
4600
4600
|
});
|
|
4601
|
-
const _hoisted_1$
|
|
4601
|
+
const _hoisted_1$U = ["id"];
|
|
4602
4602
|
const _hoisted_2$E = {
|
|
4603
4603
|
class: "modal__backdrop"
|
|
4604
4604
|
};
|
|
@@ -4660,9 +4660,9 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4660
4660
|
})], 8, _hoisted_11$3), _cache[8] || (_cache[8] = createTextVNode()), createElementVNode("div", {
|
|
4661
4661
|
tabindex: "0",
|
|
4662
4662
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.onFocusLast && _ctx.onFocusLast(...args))
|
|
4663
|
-
}, null, 32)])])], 2)])], 32)])], 10, _hoisted_1$
|
|
4663
|
+
}, null, 32)])])], 2)])], 32)])], 10, _hoisted_1$U)) : createCommentVNode("", true);
|
|
4664
4664
|
}
|
|
4665
|
-
const FModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4665
|
+
const FModal = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$Q]]);
|
|
4666
4666
|
function prepareButtonList(src, buttonOrder = config.buttonOrder) {
|
|
4667
4667
|
const list = src.map((it) => {
|
|
4668
4668
|
var _it$event, _ref, _it$reason, _it$type;
|
|
@@ -4691,7 +4691,7 @@ const defaultButtons = [{
|
|
|
4691
4691
|
event: "dismiss",
|
|
4692
4692
|
type: "secondary"
|
|
4693
4693
|
}];
|
|
4694
|
-
const _sfc_main$
|
|
4694
|
+
const _sfc_main$19 = defineComponent({
|
|
4695
4695
|
name: "FConfirmModal",
|
|
4696
4696
|
components: {
|
|
4697
4697
|
FModal
|
|
@@ -4795,7 +4795,7 @@ const _sfc_main$18 = defineComponent({
|
|
|
4795
4795
|
}
|
|
4796
4796
|
}
|
|
4797
4797
|
});
|
|
4798
|
-
const _hoisted_1$
|
|
4798
|
+
const _hoisted_1$T = {
|
|
4799
4799
|
class: "button-group"
|
|
4800
4800
|
};
|
|
4801
4801
|
const _hoisted_2$D = ["onClick"];
|
|
@@ -4816,7 +4816,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4816
4816
|
}, {
|
|
4817
4817
|
header: withCtx(() => [renderSlot(_ctx.$slots, "heading", {}, () => [createTextVNode(toDisplayString(_ctx.heading), 1)])]),
|
|
4818
4818
|
content: withCtx(() => [renderSlot(_ctx.$slots, "content", {}, () => [createTextVNode(toDisplayString(_ctx.content), 1)])]),
|
|
4819
|
-
footer: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
4819
|
+
footer: withCtx(() => [createElementVNode("div", _hoisted_1$T, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.preparedButtons, (button) => {
|
|
4820
4820
|
return openBlock(), createElementBlock("button", {
|
|
4821
4821
|
key: button.label,
|
|
4822
4822
|
type: "button",
|
|
@@ -4827,11 +4827,11 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4827
4827
|
_: 3
|
|
4828
4828
|
}, 8, ["fullscreen", "is-open", "aria-close-text", "size", "focus", "onClose"]);
|
|
4829
4829
|
}
|
|
4830
|
-
const FConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4830
|
+
const FConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$P]]);
|
|
4831
4831
|
const GAP = ["1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x"];
|
|
4832
4832
|
const ALIGNMENT = ["top", "center", "bottom"];
|
|
4833
4833
|
const FLOAT = ["left", "center", "right"];
|
|
4834
|
-
const _sfc_main$
|
|
4834
|
+
const _sfc_main$18 = defineComponent({
|
|
4835
4835
|
name: "IFlex",
|
|
4836
4836
|
inheritAttrs: true,
|
|
4837
4837
|
props: {
|
|
@@ -4911,8 +4911,8 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4911
4911
|
class: normalizeClass(["iflex", _ctx.classList])
|
|
4912
4912
|
}, [renderSlot(_ctx.$slots, "default")], 2);
|
|
4913
4913
|
}
|
|
4914
|
-
const IFlex = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4915
|
-
const _sfc_main$
|
|
4914
|
+
const IFlex = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$O]]);
|
|
4915
|
+
const _sfc_main$17 = defineComponent({
|
|
4916
4916
|
name: "IFlexItem",
|
|
4917
4917
|
inheritAttrs: true,
|
|
4918
4918
|
props: {
|
|
@@ -4964,7 +4964,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4964
4964
|
class: normalizeClass(["iflex__item", _ctx.classList])
|
|
4965
4965
|
}, [renderSlot(_ctx.$slots, "default")], 2);
|
|
4966
4966
|
}
|
|
4967
|
-
const IFlexItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4967
|
+
const IFlexItem = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$N]]);
|
|
4968
4968
|
function focusError(item) {
|
|
4969
4969
|
const element = document.querySelector(`#${item.id}`);
|
|
4970
4970
|
if (!element) {
|
|
@@ -4974,7 +4974,7 @@ function focusError(item) {
|
|
|
4974
4974
|
scrollTo(element, window.innerHeight * 0.25);
|
|
4975
4975
|
focus$1(focusElement2 ? focusElement2 : element);
|
|
4976
4976
|
}
|
|
4977
|
-
const _sfc_main$
|
|
4977
|
+
const _sfc_main$16 = defineComponent({
|
|
4978
4978
|
name: "FErrorList",
|
|
4979
4979
|
components: {
|
|
4980
4980
|
FIcon,
|
|
@@ -5030,7 +5030,7 @@ const _sfc_main$15 = defineComponent({
|
|
|
5030
5030
|
}
|
|
5031
5031
|
}
|
|
5032
5032
|
});
|
|
5033
|
-
const _hoisted_1$
|
|
5033
|
+
const _hoisted_1$S = {
|
|
5034
5034
|
class: "error-list"
|
|
5035
5035
|
};
|
|
5036
5036
|
const _hoisted_2$C = {
|
|
@@ -5047,7 +5047,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5047
5047
|
const _component_f_icon = resolveComponent("f-icon");
|
|
5048
5048
|
const _component_i_flex_item = resolveComponent("i-flex-item");
|
|
5049
5049
|
const _component_i_flex = resolveComponent("i-flex");
|
|
5050
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5050
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [createVNode(_component_i_flex, null, {
|
|
5051
5051
|
default: withCtx(() => [_ctx.hasTitleSlot ? (openBlock(), createBlock(_component_i_flex_item, {
|
|
5052
5052
|
key: 0,
|
|
5053
5053
|
shrink: ""
|
|
@@ -5097,7 +5097,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5097
5097
|
_: 3
|
|
5098
5098
|
})]);
|
|
5099
5099
|
}
|
|
5100
|
-
const FErrorList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5100
|
+
const FErrorList = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$M]]);
|
|
5101
5101
|
var es_iterator_every = {};
|
|
5102
5102
|
var hasRequiredEs_iterator_every;
|
|
5103
5103
|
function requireEs_iterator_every() {
|
|
@@ -5185,7 +5185,7 @@ function cleanUpElements(vm) {
|
|
|
5185
5185
|
}, 0);
|
|
5186
5186
|
});
|
|
5187
5187
|
}
|
|
5188
|
-
const _sfc_main$
|
|
5188
|
+
const _sfc_main$15 = defineComponent({
|
|
5189
5189
|
name: "FValidationGroup",
|
|
5190
5190
|
props: {
|
|
5191
5191
|
/**
|
|
@@ -5261,13 +5261,13 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5261
5261
|
onComponentUnmount: _cache[1] || (_cache[1] = (...args) => _ctx.onComponentUnmount && _ctx.onComponentUnmount(...args))
|
|
5262
5262
|
}, [renderSlot(_ctx.$slots, "default")], 32);
|
|
5263
5263
|
}
|
|
5264
|
-
const FValidationGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5264
|
+
const FValidationGroup = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$L]]);
|
|
5265
5265
|
var FValidationFormAction = /* @__PURE__ */ ((FValidationFormAction2) => {
|
|
5266
5266
|
FValidationFormAction2[FValidationFormAction2["CONTINUE"] = 0] = "CONTINUE";
|
|
5267
5267
|
FValidationFormAction2[FValidationFormAction2["CANCEL"] = 1] = "CANCEL";
|
|
5268
5268
|
return FValidationFormAction2;
|
|
5269
5269
|
})(FValidationFormAction || {});
|
|
5270
|
-
const _sfc_main$
|
|
5270
|
+
const _sfc_main$14 = defineComponent({
|
|
5271
5271
|
name: "FValidationForm",
|
|
5272
5272
|
components: {
|
|
5273
5273
|
FValidationGroup,
|
|
@@ -5406,7 +5406,7 @@ const _sfc_main$13 = defineComponent({
|
|
|
5406
5406
|
}
|
|
5407
5407
|
}
|
|
5408
5408
|
});
|
|
5409
|
-
const _hoisted_1$
|
|
5409
|
+
const _hoisted_1$R = ["id"];
|
|
5410
5410
|
const _hoisted_2$B = {
|
|
5411
5411
|
key: 0,
|
|
5412
5412
|
ref: "errors",
|
|
@@ -5435,12 +5435,12 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5435
5435
|
}, {
|
|
5436
5436
|
title: withCtx(() => [renderSlot(_ctx.$slots, "error-message")]),
|
|
5437
5437
|
_: 3
|
|
5438
|
-
}, 8, ["items", "bullets", "before-navigate"])], 512)) : createCommentVNode("", true), _cache[2] || (_cache[2] = createTextVNode()), renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$
|
|
5438
|
+
}, 8, ["items", "bullets", "before-navigate"])], 512)) : createCommentVNode("", true), _cache[2] || (_cache[2] = createTextVNode()), renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$R)]),
|
|
5439
5439
|
_: 3
|
|
5440
5440
|
}, 8, ["modelValue"]);
|
|
5441
5441
|
}
|
|
5442
|
-
const FValidationForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5443
|
-
const _sfc_main$
|
|
5442
|
+
const FValidationForm = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$K]]);
|
|
5443
|
+
const _sfc_main$13 = defineComponent({
|
|
5444
5444
|
name: "FFormModal",
|
|
5445
5445
|
components: {
|
|
5446
5446
|
FModal,
|
|
@@ -5589,7 +5589,7 @@ const _sfc_main$12 = defineComponent({
|
|
|
5589
5589
|
}
|
|
5590
5590
|
}
|
|
5591
5591
|
});
|
|
5592
|
-
const _hoisted_1$
|
|
5592
|
+
const _hoisted_1$Q = {
|
|
5593
5593
|
class: "button-group"
|
|
5594
5594
|
};
|
|
5595
5595
|
const _hoisted_2$A = ["type", "form", "onClick"];
|
|
@@ -5621,7 +5621,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5621
5621
|
default: withCtx(() => [_cache[0] || (_cache[0] = createTextVNode()), renderSlot(_ctx.$slots, "input-text-fields")]),
|
|
5622
5622
|
_: 3
|
|
5623
5623
|
}, 8, ["id", "before-submit", "before-validation", "use-error-list", "onSubmit", "onCancel"])]),
|
|
5624
|
-
footer: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
5624
|
+
footer: withCtx(() => [createElementVNode("div", _hoisted_1$Q, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.preparedButtons, (button) => {
|
|
5625
5625
|
return openBlock(), createElementBlock("button", {
|
|
5626
5626
|
key: button.label,
|
|
5627
5627
|
type: button.buttonType,
|
|
@@ -5633,7 +5633,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5633
5633
|
_: 3
|
|
5634
5634
|
}, 8, ["data-test", "fullscreen", "is-open", "size", "aria-close-text", "onClose"]);
|
|
5635
5635
|
}
|
|
5636
|
-
const FFormModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5636
|
+
const FFormModal = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$J]]);
|
|
5637
5637
|
async function confirmModal(callingInstance, texts) {
|
|
5638
5638
|
const buttons = [{
|
|
5639
5639
|
label: texts.confirm,
|
|
@@ -5993,7 +5993,7 @@ const ErrorPlugin = {
|
|
|
5993
5993
|
}
|
|
5994
5994
|
}
|
|
5995
5995
|
};
|
|
5996
|
-
const _sfc_main$
|
|
5996
|
+
const _sfc_main$12 = defineComponent({
|
|
5997
5997
|
name: "FErrorPage",
|
|
5998
5998
|
props: {
|
|
5999
5999
|
payload: {
|
|
@@ -6003,16 +6003,16 @@ const _sfc_main$11 = defineComponent({
|
|
|
6003
6003
|
}
|
|
6004
6004
|
}
|
|
6005
6005
|
});
|
|
6006
|
-
const _hoisted_1$
|
|
6006
|
+
const _hoisted_1$P = {
|
|
6007
6007
|
"data-test": "f-error-page"
|
|
6008
6008
|
};
|
|
6009
6009
|
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6010
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6010
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, _cache[0] || (_cache[0] = [createElementVNode("h1", null, "Fel", -1), createTextVNode(), createElementVNode("p", null, "Ett fel har uppstått.", -1), createTextVNode(), createElementVNode("a", {
|
|
6011
6011
|
href: "/"
|
|
6012
6012
|
}, "Gå till startsidan", -1)]));
|
|
6013
6013
|
}
|
|
6014
|
-
const FErrorPage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6015
|
-
const _sfc_main$
|
|
6014
|
+
const FErrorPage = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$I]]);
|
|
6015
|
+
const _sfc_main$11 = defineComponent({
|
|
6016
6016
|
name: "FErrorHandlingApp",
|
|
6017
6017
|
props: {
|
|
6018
6018
|
defaultComponent: {
|
|
@@ -6051,7 +6051,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6051
6051
|
key: 2
|
|
6052
6052
|
})]);
|
|
6053
6053
|
}
|
|
6054
|
-
const FErrorHandlingApp = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6054
|
+
const FErrorHandlingApp = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$H]]);
|
|
6055
6055
|
function isMonthBefore(date, minDate) {
|
|
6056
6056
|
return Boolean(minDate && date.isBefore(minDate.startOfMonth()));
|
|
6057
6057
|
}
|
|
@@ -6092,7 +6092,7 @@ function getMessage($t2, date, minDate, maxDate) {
|
|
|
6092
6092
|
});
|
|
6093
6093
|
}
|
|
6094
6094
|
}
|
|
6095
|
-
const _sfc_main
|
|
6095
|
+
const _sfc_main$10 = defineComponent({
|
|
6096
6096
|
name: "ICalendarNavbar",
|
|
6097
6097
|
components: {
|
|
6098
6098
|
FIcon
|
|
@@ -6205,7 +6205,7 @@ const _sfc_main$$ = defineComponent({
|
|
|
6205
6205
|
}
|
|
6206
6206
|
}
|
|
6207
6207
|
});
|
|
6208
|
-
const _hoisted_1$
|
|
6208
|
+
const _hoisted_1$O = {
|
|
6209
6209
|
class: "calendar-navbar"
|
|
6210
6210
|
};
|
|
6211
6211
|
const _hoisted_2$z = {
|
|
@@ -6222,7 +6222,7 @@ const _hoisted_6$f = {
|
|
|
6222
6222
|
};
|
|
6223
6223
|
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6224
6224
|
const _component_f_icon = resolveComponent("f-icon");
|
|
6225
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6225
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [createElementVNode("div", _hoisted_2$z, toDisplayString(_ctx.currentText), 1), _cache[4] || (_cache[4] = createTextVNode()), createElementVNode("button", {
|
|
6226
6226
|
ref: "previousButton",
|
|
6227
6227
|
class: "calendar-navbar__arrow calendar-navbar__arrow--previous",
|
|
6228
6228
|
type: "button",
|
|
@@ -6244,14 +6244,14 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6244
6244
|
name: "arrow-right"
|
|
6245
6245
|
}, null, 8, ["class"])], 8, _hoisted_5$j)]);
|
|
6246
6246
|
}
|
|
6247
|
-
const ICalendarNavbar = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
6247
|
+
const ICalendarNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$G]]);
|
|
6248
6248
|
function getDayStartOffset(days) {
|
|
6249
6249
|
return days[0].weekDay - 1;
|
|
6250
6250
|
}
|
|
6251
6251
|
function getDayEndOffset(days) {
|
|
6252
6252
|
return 7 - days[days.length - 1].weekDay;
|
|
6253
6253
|
}
|
|
6254
|
-
const _sfc_main
|
|
6254
|
+
const _sfc_main$$ = defineComponent({
|
|
6255
6255
|
name: "ICalendarMonthGrid",
|
|
6256
6256
|
props: {
|
|
6257
6257
|
/**
|
|
@@ -6325,7 +6325,7 @@ const _sfc_main$_ = defineComponent({
|
|
|
6325
6325
|
}
|
|
6326
6326
|
}
|
|
6327
6327
|
});
|
|
6328
|
-
const _hoisted_1$
|
|
6328
|
+
const _hoisted_1$N = ["aria-label"];
|
|
6329
6329
|
const _hoisted_2$y = {
|
|
6330
6330
|
key: 0,
|
|
6331
6331
|
class: "calendar-month__col--week"
|
|
@@ -6418,9 +6418,9 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6418
6418
|
class: "calendar-month__cell",
|
|
6419
6419
|
colspan: _ctx.totalCols,
|
|
6420
6420
|
"aria-hidden": "true"
|
|
6421
|
-
}, null, 8, _hoisted_12$2)])) : createCommentVNode("", true)])], 40, _hoisted_1$
|
|
6421
|
+
}, null, 8, _hoisted_12$2)])) : createCommentVNode("", true)])], 40, _hoisted_1$N);
|
|
6422
6422
|
}
|
|
6423
|
-
const ICalendarMonthGrid = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
6423
|
+
const ICalendarMonthGrid = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$F]]);
|
|
6424
6424
|
const DayStep = {
|
|
6425
6425
|
ArrowRight: 1,
|
|
6426
6426
|
ArrowLeft: -1,
|
|
@@ -6444,7 +6444,7 @@ function getDayTabindex(date, active, entry) {
|
|
|
6444
6444
|
return date.day === 1 ? 0 : -1;
|
|
6445
6445
|
}
|
|
6446
6446
|
}
|
|
6447
|
-
const _sfc_main$
|
|
6447
|
+
const _sfc_main$_ = defineComponent({
|
|
6448
6448
|
name: "ICalendarMonth",
|
|
6449
6449
|
components: {
|
|
6450
6450
|
ICalendarMonthGrid
|
|
@@ -6534,7 +6534,7 @@ const _sfc_main$Z = defineComponent({
|
|
|
6534
6534
|
}
|
|
6535
6535
|
}
|
|
6536
6536
|
});
|
|
6537
|
-
const _hoisted_1$
|
|
6537
|
+
const _hoisted_1$M = ["data-date", "tabindex", "onClick", "onKeydown"];
|
|
6538
6538
|
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6539
6539
|
const _component_i_calendar_month_grid = resolveComponent("i-calendar-month-grid");
|
|
6540
6540
|
return openBlock(), createBlock(_component_i_calendar_month_grid, {
|
|
@@ -6554,12 +6554,12 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6554
6554
|
}, [renderSlot(_ctx.$slots, "default", {
|
|
6555
6555
|
date,
|
|
6556
6556
|
isFocused: _ctx.isDayFocused(date)
|
|
6557
|
-
})], 40, _hoisted_1$
|
|
6557
|
+
})], 40, _hoisted_1$M)]),
|
|
6558
6558
|
_: 3
|
|
6559
6559
|
}, 8, ["value"]);
|
|
6560
6560
|
}
|
|
6561
|
-
const ICalendarMonth = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6562
|
-
const _sfc_main$
|
|
6561
|
+
const ICalendarMonth = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$E]]);
|
|
6562
|
+
const _sfc_main$Z = defineComponent({
|
|
6563
6563
|
name: "FCalendar",
|
|
6564
6564
|
components: {
|
|
6565
6565
|
ICalendarNavbar,
|
|
@@ -6610,13 +6610,13 @@ const _sfc_main$Y = defineComponent({
|
|
|
6610
6610
|
}
|
|
6611
6611
|
}
|
|
6612
6612
|
});
|
|
6613
|
-
const _hoisted_1$
|
|
6613
|
+
const _hoisted_1$L = {
|
|
6614
6614
|
class: "calendar__wrapper"
|
|
6615
6615
|
};
|
|
6616
6616
|
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6617
6617
|
const _component_i_calendar_navbar = resolveComponent("i-calendar-navbar");
|
|
6618
6618
|
const _component_i_calendar_month = resolveComponent("i-calendar-month");
|
|
6619
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6619
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [createVNode(_component_i_calendar_navbar, {
|
|
6620
6620
|
"model-value": _ctx.modelValue,
|
|
6621
6621
|
"min-date": _ctx.minDate,
|
|
6622
6622
|
"max-date": _ctx.maxDate,
|
|
@@ -6639,7 +6639,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6639
6639
|
_: 3
|
|
6640
6640
|
}, 8, ["model-value", "min-date", "max-date", "tab-date", "onClick", "onUpdate:modelValue"])]);
|
|
6641
6641
|
}
|
|
6642
|
-
const FCalendar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6642
|
+
const FCalendar = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$D]]);
|
|
6643
6643
|
function getCalendarDaySrText(day, enabled, selected, t) {
|
|
6644
6644
|
const parts = [];
|
|
6645
6645
|
if (!enabled) {
|
|
@@ -6658,7 +6658,7 @@ function getCalendarDaySrText(day, enabled, selected, t) {
|
|
|
6658
6658
|
parts.push(day.toString(DateFormat.FULL));
|
|
6659
6659
|
return parts.join(" ");
|
|
6660
6660
|
}
|
|
6661
|
-
const _sfc_main$
|
|
6661
|
+
const _sfc_main$Y = defineComponent({
|
|
6662
6662
|
name: "FCalendarDay",
|
|
6663
6663
|
mixins: [TranslationMixin],
|
|
6664
6664
|
props: {
|
|
@@ -6723,7 +6723,7 @@ const _sfc_main$X = defineComponent({
|
|
|
6723
6723
|
}
|
|
6724
6724
|
}
|
|
6725
6725
|
});
|
|
6726
|
-
const _hoisted_1$
|
|
6726
|
+
const _hoisted_1$K = {
|
|
6727
6727
|
"aria-hidden": "true"
|
|
6728
6728
|
};
|
|
6729
6729
|
const _hoisted_2$x = {
|
|
@@ -6732,9 +6732,9 @@ const _hoisted_2$x = {
|
|
|
6732
6732
|
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6733
6733
|
return openBlock(), createElementBlock("span", {
|
|
6734
6734
|
class: normalizeClass(_ctx.dayClasses)
|
|
6735
|
-
}, [createElementVNode("span", _hoisted_1$
|
|
6735
|
+
}, [createElementVNode("span", _hoisted_1$K, toDisplayString(_ctx.day.day), 1), _cache[0] || (_cache[0] = createTextVNode()), createElementVNode("span", _hoisted_2$x, toDisplayString(_ctx.srText), 1)], 2);
|
|
6736
6736
|
}
|
|
6737
|
-
const FCalendarDay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6737
|
+
const FCalendarDay = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$C]]);
|
|
6738
6738
|
function useEventListener(target, event, callback) {
|
|
6739
6739
|
onMounted(() => {
|
|
6740
6740
|
var _a;
|
|
@@ -6755,7 +6755,7 @@ function useSlotUtils() {
|
|
|
6755
6755
|
}
|
|
6756
6756
|
};
|
|
6757
6757
|
}
|
|
6758
|
-
const _hoisted_1$
|
|
6758
|
+
const _hoisted_1$J = ["id"];
|
|
6759
6759
|
const _hoisted_2$w = {
|
|
6760
6760
|
key: 0,
|
|
6761
6761
|
class: "card__header"
|
|
@@ -6767,7 +6767,7 @@ const _hoisted_4$m = {
|
|
|
6767
6767
|
key: 1,
|
|
6768
6768
|
class: "card__footer"
|
|
6769
6769
|
};
|
|
6770
|
-
const _sfc_main$
|
|
6770
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
6771
6771
|
__name: "FCard",
|
|
6772
6772
|
props: {
|
|
6773
6773
|
/**
|
|
@@ -6853,11 +6853,11 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
6853
6853
|
})) : createCommentVNode("", true)]), _cache[2] || (_cache[2] = createTextVNode()), createElementVNode("div", _hoisted_3$q, [renderSlot(_ctx.$slots, "default")]), _cache[3] || (_cache[3] = createTextVNode()), hasFooterSlot.value ? (openBlock(), createElementBlock("div", _hoisted_4$m, [renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps({
|
|
6854
6854
|
hasError: hasError.value,
|
|
6855
6855
|
validationMessage: validationMessage.value
|
|
6856
|
-
})))])) : createCommentVNode("", true)], 42, _hoisted_1$
|
|
6856
|
+
})))])) : createCommentVNode("", true)], 42, _hoisted_1$J);
|
|
6857
6857
|
};
|
|
6858
6858
|
}
|
|
6859
6859
|
});
|
|
6860
|
-
const _sfc_main$
|
|
6860
|
+
const _sfc_main$W = defineComponent({
|
|
6861
6861
|
name: "FExpand",
|
|
6862
6862
|
data() {
|
|
6863
6863
|
return {
|
|
@@ -6923,7 +6923,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6923
6923
|
_: 3
|
|
6924
6924
|
}, 8, ["onEnter", "onAfterEnter", "onLeave"]);
|
|
6925
6925
|
}
|
|
6926
|
-
const FExpand = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6926
|
+
const FExpand = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$B]]);
|
|
6927
6927
|
function offset(page, el) {
|
|
6928
6928
|
const rect = el.getBoundingClientRect();
|
|
6929
6929
|
return {
|
|
@@ -7208,7 +7208,7 @@ function isTeleportDisabled(options) {
|
|
|
7208
7208
|
}
|
|
7209
7209
|
return disableTeleport;
|
|
7210
7210
|
}
|
|
7211
|
-
const _sfc_main$
|
|
7211
|
+
const _sfc_main$V = defineComponent({
|
|
7212
7212
|
name: "IPopup",
|
|
7213
7213
|
inheritAttrs: false,
|
|
7214
7214
|
props: {
|
|
@@ -7510,7 +7510,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7510
7510
|
placement: _ctx.placement
|
|
7511
7511
|
})))], 544)], 16)], 8, ["to", "disabled"])) : createCommentVNode("", true);
|
|
7512
7512
|
}
|
|
7513
|
-
const IPopup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7513
|
+
const IPopup = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$A]]);
|
|
7514
7514
|
function computeArrowOffset(placement, inputIconRect, wrapperRect) {
|
|
7515
7515
|
switch (placement) {
|
|
7516
7516
|
case Placement.A: {
|
|
@@ -7574,7 +7574,7 @@ function computeArrowOffset(placement, inputIconRect, wrapperRect) {
|
|
|
7574
7574
|
}
|
|
7575
7575
|
}
|
|
7576
7576
|
const POPUP_SPACING = 10;
|
|
7577
|
-
const _sfc_main$
|
|
7577
|
+
const _sfc_main$U = defineComponent({
|
|
7578
7578
|
name: "IPopupError",
|
|
7579
7579
|
components: {
|
|
7580
7580
|
FIcon
|
|
@@ -7712,7 +7712,7 @@ const _sfc_main$T = defineComponent({
|
|
|
7712
7712
|
}
|
|
7713
7713
|
}
|
|
7714
7714
|
});
|
|
7715
|
-
const _hoisted_1$
|
|
7715
|
+
const _hoisted_1$I = {
|
|
7716
7716
|
ref: "wrapper",
|
|
7717
7717
|
class: "popup-error__wrapper"
|
|
7718
7718
|
};
|
|
@@ -7726,7 +7726,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7726
7726
|
ref: "popup",
|
|
7727
7727
|
class: normalizeClass(_ctx.popupClasses),
|
|
7728
7728
|
"aria-hidden": "true"
|
|
7729
|
-
}, [createElementVNode("div", _hoisted_1$
|
|
7729
|
+
}, [createElementVNode("div", _hoisted_1$I, [createElementVNode("div", {
|
|
7730
7730
|
class: normalizeClass(_ctx.arrowClass),
|
|
7731
7731
|
style: normalizeStyle(_ctx.errorStyle)
|
|
7732
7732
|
}, [createElementVNode("span", null, toDisplayString(_ctx.errorMessage), 1), _cache[1] || (_cache[1] = createTextVNode()), createElementVNode("button", {
|
|
@@ -7740,7 +7740,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7740
7740
|
class: "button__icon"
|
|
7741
7741
|
})])], 6)], 512)], 2)], 8, ["to", "disabled"])) : createCommentVNode("", true);
|
|
7742
7742
|
}
|
|
7743
|
-
const IPopupError = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7743
|
+
const IPopupError = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$z]]);
|
|
7744
7744
|
function numItems(itemHeight, availableHeight, verticalSpacing) {
|
|
7745
7745
|
const itemsFit = Math.floor((availableHeight - verticalSpacing) / itemHeight);
|
|
7746
7746
|
return Math.min(itemsFit, 7);
|
|
@@ -7807,12 +7807,12 @@ function computeListboxRect(anchor, options, root = document.documentElement, {
|
|
|
7807
7807
|
}
|
|
7808
7808
|
return void 0;
|
|
7809
7809
|
}
|
|
7810
|
-
const _hoisted_1$
|
|
7810
|
+
const _hoisted_1$H = ["onKeyup"];
|
|
7811
7811
|
const _hoisted_2$v = {
|
|
7812
7812
|
ref: "content"
|
|
7813
7813
|
};
|
|
7814
7814
|
const teleportDisabled = false;
|
|
7815
|
-
const _sfc_main$
|
|
7815
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
7816
7816
|
__name: "IPopupListbox",
|
|
7817
7817
|
props: {
|
|
7818
7818
|
isOpen: {
|
|
@@ -7917,7 +7917,11 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
7917
7917
|
}
|
|
7918
7918
|
if (verticalSpacing === void 0) {
|
|
7919
7919
|
const absWrapper = getAbsolutePosition(wrapperElement);
|
|
7920
|
-
const
|
|
7920
|
+
const {
|
|
7921
|
+
marginTop,
|
|
7922
|
+
marginBottom
|
|
7923
|
+
} = getComputedStyle(wrapperElement);
|
|
7924
|
+
const marginTotal = parseInt(marginTop, 10) + parseInt(marginBottom, 10);
|
|
7921
7925
|
verticalSpacing = Math.ceil(absWrapper.height - contentItemHeigth * __props.numOfItems) + marginTotal;
|
|
7922
7926
|
}
|
|
7923
7927
|
wrapperElement.style.overflowY = "auto";
|
|
@@ -7929,7 +7933,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
7929
7933
|
verticalSpacing
|
|
7930
7934
|
});
|
|
7931
7935
|
if (rect) {
|
|
7932
|
-
var _offsetRect$x;
|
|
7936
|
+
var _offsetRect$x, _offsetRect$top;
|
|
7933
7937
|
const {
|
|
7934
7938
|
top,
|
|
7935
7939
|
left,
|
|
@@ -7938,7 +7942,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
7938
7942
|
} = rect;
|
|
7939
7943
|
const offsetRect = (_a = wrapperElement == null ? void 0 : wrapperElement.offsetParent) == null ? void 0 : _a.getBoundingClientRect();
|
|
7940
7944
|
const offsetLeft = (_offsetRect$x = offsetRect == null ? void 0 : offsetRect.x) !== null && _offsetRect$x !== void 0 ? _offsetRect$x : 0;
|
|
7941
|
-
|
|
7945
|
+
const offSetTop = Math.floor(((_offsetRect$top = offsetRect == null ? void 0 : offsetRect.top) !== null && _offsetRect$top !== void 0 ? _offsetRect$top : 0) + window.scrollY);
|
|
7946
|
+
wrapperElement.style.top = `${top - offSetTop}px`;
|
|
7942
7947
|
wrapperElement.style.left = `${left - offsetLeft}px`;
|
|
7943
7948
|
wrapperElement.style.width = `${width}px`;
|
|
7944
7949
|
contentWrapper.style.maxHeight = `${height}px`;
|
|
@@ -7961,7 +7966,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
7961
7966
|
onKeyup: withKeys(withModifiers(onKeyEsc, ["stop"]), ["esc"]),
|
|
7962
7967
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
7963
7968
|
}, ["stop"]))
|
|
7964
|
-
}), [createElementVNode("div", _hoisted_2$v, [renderSlot(_ctx.$slots, "default")], 512)], 16, _hoisted_1$
|
|
7969
|
+
}), [createElementVNode("div", _hoisted_2$v, [renderSlot(_ctx.$slots, "default")], 512)], 16, _hoisted_1$H)], 512)], 8, ["to"])) : createCommentVNode("", true);
|
|
7965
7970
|
};
|
|
7966
7971
|
}
|
|
7967
7972
|
});
|
|
@@ -8005,7 +8010,7 @@ async function doMenuAction$2(action, target) {
|
|
|
8005
8010
|
}
|
|
8006
8011
|
}
|
|
8007
8012
|
const preventKeys$2 = ["Tab", "Up", "Down", "ArrowUp", "ArrowDown", "Home", "End", " ", "Spacebar", "Enter"];
|
|
8008
|
-
const _sfc_main$
|
|
8013
|
+
const _sfc_main$S = defineComponent({
|
|
8009
8014
|
name: "IPopupMenu",
|
|
8010
8015
|
components: {
|
|
8011
8016
|
IPopup
|
|
@@ -8260,7 +8265,7 @@ const _sfc_main$R = defineComponent({
|
|
|
8260
8265
|
}
|
|
8261
8266
|
}
|
|
8262
8267
|
});
|
|
8263
|
-
const _hoisted_1$
|
|
8268
|
+
const _hoisted_1$G = ["aria-label"];
|
|
8264
8269
|
const _hoisted_2$u = {
|
|
8265
8270
|
role: "menu",
|
|
8266
8271
|
class: "ipopupmenu__list"
|
|
@@ -8303,17 +8308,17 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8303
8308
|
target: item.target,
|
|
8304
8309
|
tabindex: "0"
|
|
8305
8310
|
}, [_ctx.isSelected(index) ? (openBlock(), createElementBlock("span", _hoisted_5$h, [createElementVNode("span", null, toDisplayString(_ctx.selectedMenuItemScreenReaderText) + " ", 1)])) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(item.label), 1)], 8, _hoisted_4$l)], 10, _hoisted_3$p);
|
|
8306
|
-
}), 128))])], 8, _hoisted_1$
|
|
8311
|
+
}), 128))])], 8, _hoisted_1$G)]),
|
|
8307
8312
|
_: 1
|
|
8308
8313
|
}, 8, ["is-open", "anchor", "focus-element", "onKeyup", "onKeydown"]);
|
|
8309
8314
|
}
|
|
8310
|
-
const IPopupMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8315
|
+
const IPopupMenu = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$y]]);
|
|
8311
8316
|
const ANIMATION_DURATION = 500;
|
|
8312
8317
|
const NO_CSS_CLASSES = "";
|
|
8313
8318
|
const CLOSED_CSS_CLASS_OPACITY = "animate-expand animate-expand--opacity";
|
|
8314
8319
|
const CLOSED_CSS_CLASS = "animate-expand";
|
|
8315
8320
|
const ANIMATION_CSS_CLASSES = "animate-expand animate-expand--expanded";
|
|
8316
|
-
const _sfc_main$
|
|
8321
|
+
const _sfc_main$R = defineComponent({
|
|
8317
8322
|
name: "IAnimateExpand",
|
|
8318
8323
|
props: {
|
|
8319
8324
|
/**
|
|
@@ -8505,7 +8510,7 @@ const _sfc_main$Q = defineComponent({
|
|
|
8505
8510
|
}
|
|
8506
8511
|
}
|
|
8507
8512
|
});
|
|
8508
|
-
const _hoisted_1$
|
|
8513
|
+
const _hoisted_1$F = {
|
|
8509
8514
|
key: 0,
|
|
8510
8515
|
ref: "content",
|
|
8511
8516
|
"data-test": "animation-content"
|
|
@@ -8514,10 +8519,10 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8514
8519
|
return openBlock(), createElementBlock("div", {
|
|
8515
8520
|
class: normalizeClass(_ctx.animationClasses),
|
|
8516
8521
|
style: normalizeStyle(_ctx.heightStyle)
|
|
8517
|
-
}, [_ctx.shouldVIf ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
8522
|
+
}, [_ctx.shouldVIf ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$F, [renderSlot(_ctx.$slots, "default")], 512)), [[vShow, _ctx.shouldVShow]]) : createCommentVNode("", true)], 6);
|
|
8518
8523
|
}
|
|
8519
|
-
const IAnimateExpand = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8520
|
-
const _sfc_main$
|
|
8524
|
+
const IAnimateExpand = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$x]]);
|
|
8525
|
+
const _sfc_main$Q = defineComponent({
|
|
8521
8526
|
name: "ISkipLink",
|
|
8522
8527
|
mixins: [TranslationMixin],
|
|
8523
8528
|
props: {
|
|
@@ -8531,14 +8536,14 @@ const _sfc_main$P = defineComponent({
|
|
|
8531
8536
|
}
|
|
8532
8537
|
}
|
|
8533
8538
|
});
|
|
8534
|
-
const _hoisted_1$
|
|
8539
|
+
const _hoisted_1$E = ["href"];
|
|
8535
8540
|
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8536
8541
|
return openBlock(), createElementBlock("a", {
|
|
8537
8542
|
class: "iskiplink",
|
|
8538
8543
|
href: _ctx.href
|
|
8539
|
-
}, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.$t("fkui.skip-link.text", "Gå direkt till innehåll")), 1)])], 8, _hoisted_1$
|
|
8544
|
+
}, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.$t("fkui.skip-link.text", "Gå direkt till innehåll")), 1)])], 8, _hoisted_1$E);
|
|
8540
8545
|
}
|
|
8541
|
-
const ISkipLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8546
|
+
const ISkipLink = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$w]]);
|
|
8542
8547
|
function filterOptions(options, filter2, selectMode) {
|
|
8543
8548
|
if (isEmpty(filter2) || selectMode) {
|
|
8544
8549
|
return options;
|
|
@@ -8784,12 +8789,12 @@ function useCombobox(inputRef, options, onOptionSelected) {
|
|
|
8784
8789
|
}
|
|
8785
8790
|
}
|
|
8786
8791
|
}
|
|
8787
|
-
const _hoisted_1$
|
|
8792
|
+
const _hoisted_1$D = {
|
|
8788
8793
|
class: "combobox"
|
|
8789
8794
|
};
|
|
8790
8795
|
const _hoisted_2$t = ["id"];
|
|
8791
8796
|
const _hoisted_3$o = ["id", "aria-selected", "onClick"];
|
|
8792
|
-
const _sfc_main$
|
|
8797
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
8793
8798
|
__name: "IComboboxDropdown",
|
|
8794
8799
|
props: {
|
|
8795
8800
|
id: {},
|
|
@@ -8826,7 +8831,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8826
8831
|
}
|
|
8827
8832
|
});
|
|
8828
8833
|
return (_ctx, _cache) => {
|
|
8829
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8834
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [createVNode(unref(_sfc_main$T), {
|
|
8830
8835
|
"is-open": _ctx.isOpen,
|
|
8831
8836
|
anchor: _ctx.inputNode,
|
|
8832
8837
|
"num-of-items": _ctx.options.length,
|
|
@@ -8857,8 +8862,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8857
8862
|
};
|
|
8858
8863
|
}
|
|
8859
8864
|
});
|
|
8860
|
-
const _hoisted_1$
|
|
8861
|
-
const _sfc_main$
|
|
8865
|
+
const _hoisted_1$C = ["aria-label"];
|
|
8866
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
8862
8867
|
__name: "IComboboxToggleButton",
|
|
8863
8868
|
emits: ["toggle"],
|
|
8864
8869
|
setup(__props, {
|
|
@@ -8877,7 +8882,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
8877
8882
|
}, [createVNode(unref(FIcon), {
|
|
8878
8883
|
name: "arrow-down",
|
|
8879
8884
|
class: "text-field__icon"
|
|
8880
|
-
})], 8, _hoisted_1$
|
|
8885
|
+
})], 8, _hoisted_1$C);
|
|
8881
8886
|
};
|
|
8882
8887
|
}
|
|
8883
8888
|
});
|
|
@@ -8979,7 +8984,7 @@ function useHorizontalOffset(options) {
|
|
|
8979
8984
|
}, 0);
|
|
8980
8985
|
}
|
|
8981
8986
|
}
|
|
8982
|
-
const _sfc_main$
|
|
8987
|
+
const _sfc_main$N = defineComponent({
|
|
8983
8988
|
name: "FTooltip",
|
|
8984
8989
|
components: {
|
|
8985
8990
|
FExpand,
|
|
@@ -9138,7 +9143,7 @@ const _sfc_main$M = defineComponent({
|
|
|
9138
9143
|
}
|
|
9139
9144
|
}
|
|
9140
9145
|
});
|
|
9141
|
-
const _hoisted_1$
|
|
9146
|
+
const _hoisted_1$B = ["aria-expanded"];
|
|
9142
9147
|
const _hoisted_2$s = {
|
|
9143
9148
|
class: "icon-stack icon-stack--tooltip"
|
|
9144
9149
|
};
|
|
@@ -9171,7 +9176,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9171
9176
|
name: "circle"
|
|
9172
9177
|
}), _cache[2] || (_cache[2] = createTextVNode()), createVNode(_component_f_icon, {
|
|
9173
9178
|
name: "i"
|
|
9174
|
-
}), _cache[3] || (_cache[3] = createTextVNode()), createElementVNode("span", _hoisted_3$n, toDisplayString(_ctx.screenReaderText), 1)])], 8, _hoisted_1$
|
|
9179
|
+
}), _cache[3] || (_cache[3] = createTextVNode()), createElementVNode("span", _hoisted_3$n, toDisplayString(_ctx.screenReaderText), 1)])], 8, _hoisted_1$B)], 8, ["disabled", "to"])), _cache[7] || (_cache[7] = createTextVNode()), createElementVNode("div", mergeProps({
|
|
9175
9180
|
ref: "wrapper",
|
|
9176
9181
|
class: "tooltip"
|
|
9177
9182
|
}, _ctx.$attrs), [_ctx.ready ? (openBlock(), createElementBlock("div", _hoisted_4$k, [_ctx.hasHeader ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.headerTag), {
|
|
@@ -9189,7 +9194,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9189
9194
|
name: "close"
|
|
9190
9195
|
})])])])) : createCommentVNode("", true)], 16)], 64);
|
|
9191
9196
|
}
|
|
9192
|
-
const FTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9197
|
+
const FTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$v]]);
|
|
9193
9198
|
function* labelClasses(options) {
|
|
9194
9199
|
const {
|
|
9195
9200
|
labelClass
|
|
@@ -9230,7 +9235,7 @@ function isEqual(a, b) {
|
|
|
9230
9235
|
}
|
|
9231
9236
|
return a.every((_, i) => a[i] === b[i]);
|
|
9232
9237
|
}
|
|
9233
|
-
const _sfc_main$
|
|
9238
|
+
const _sfc_main$M = defineComponent({
|
|
9234
9239
|
name: "FFieldset",
|
|
9235
9240
|
components: {
|
|
9236
9241
|
FIcon
|
|
@@ -9458,7 +9463,7 @@ const _sfc_main$L = defineComponent({
|
|
|
9458
9463
|
}
|
|
9459
9464
|
}
|
|
9460
9465
|
});
|
|
9461
|
-
const _hoisted_1$
|
|
9466
|
+
const _hoisted_1$A = ["id"];
|
|
9462
9467
|
const _hoisted_2$r = {
|
|
9463
9468
|
key: 0,
|
|
9464
9469
|
class: "sr-only"
|
|
@@ -9525,11 +9530,11 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9525
9530
|
name: "error"
|
|
9526
9531
|
}), createTextVNode(" " + toDisplayString(_ctx.validity.validationMessage), 1)])) : createCommentVNode("", true)])], 2)) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), _cache[9] || (_cache[9] = createTextVNode()), createElementVNode("div", {
|
|
9527
9532
|
class: normalizeClass(_ctx.groupContentClass)
|
|
9528
|
-
}, [renderSlot(_ctx.$slots, "default")], 2)], 42, _hoisted_1$
|
|
9533
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)], 42, _hoisted_1$A);
|
|
9529
9534
|
}
|
|
9530
|
-
const FFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9535
|
+
const FFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$u]]);
|
|
9531
9536
|
const anyType$1 = [String, Object, Array, Number, Date, Boolean];
|
|
9532
|
-
const _sfc_main$
|
|
9537
|
+
const _sfc_main$L = defineComponent({
|
|
9533
9538
|
name: "FCheckboxField",
|
|
9534
9539
|
inheritAttrs: false,
|
|
9535
9540
|
props: {
|
|
@@ -9715,7 +9720,7 @@ const _sfc_main$K = defineComponent({
|
|
|
9715
9720
|
}
|
|
9716
9721
|
}
|
|
9717
9722
|
});
|
|
9718
|
-
const _hoisted_1$
|
|
9723
|
+
const _hoisted_1$z = ["id", "disabled"];
|
|
9719
9724
|
const _hoisted_2$q = ["for"];
|
|
9720
9725
|
const _hoisted_3$l = {
|
|
9721
9726
|
key: 0,
|
|
@@ -9738,7 +9743,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9738
9743
|
disabled: _ctx.disabled,
|
|
9739
9744
|
onKeydown: _cache[0] || (_cache[0] = withKeys((...args) => _ctx.onKeydown && _ctx.onKeydown(...args), ["space"])),
|
|
9740
9745
|
onChange: _cache[1] || (_cache[1] = ($event) => _ctx.updateExpandedFlag())
|
|
9741
|
-
}), null, 16, _hoisted_1$
|
|
9746
|
+
}), null, 16, _hoisted_1$z), _cache[9] || (_cache[9] = createTextVNode()), createElementVNode("label", {
|
|
9742
9747
|
class: normalizeClass(_ctx.$slots.details ? "checkbox__label checkbox__width" : "checkbox__label"),
|
|
9743
9748
|
for: _ctx.id
|
|
9744
9749
|
}, [renderSlot(_ctx.$slots, "default"), _cache[8] || (_cache[8] = createTextVNode()), _ctx.$slots.details ? (openBlock(), createElementBlock(Fragment, {
|
|
@@ -9755,7 +9760,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9755
9760
|
_: 3
|
|
9756
9761
|
}, 8, ["onEnter", "onAfterEnter", "onLeave"])) : createCommentVNode("", true)], 64)) : createCommentVNode("", true)], 10, _hoisted_2$q)], 34);
|
|
9757
9762
|
}
|
|
9758
|
-
const FCheckboxField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9763
|
+
const FCheckboxField = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$t]]);
|
|
9759
9764
|
var es_iterator_some = {};
|
|
9760
9765
|
var hasRequiredEs_iterator_some;
|
|
9761
9766
|
function requireEs_iterator_some() {
|
|
@@ -9834,7 +9839,7 @@ async function doMenuAction$1(action, target) {
|
|
|
9834
9839
|
}
|
|
9835
9840
|
const preventKeys$1 = ["Tab", "Up", "Down", "ArrowUp", "ArrowDown", "Home", "End", " ", "Spacebar", "Enter", "Escape"];
|
|
9836
9841
|
const keyUp = ["ArrowUp", "Up"];
|
|
9837
|
-
const _sfc_main$
|
|
9842
|
+
const _sfc_main$K = defineComponent({
|
|
9838
9843
|
name: "FContextMenu",
|
|
9839
9844
|
components: {
|
|
9840
9845
|
IPopup,
|
|
@@ -9998,7 +10003,7 @@ const _sfc_main$J = defineComponent({
|
|
|
9998
10003
|
}
|
|
9999
10004
|
}
|
|
10000
10005
|
});
|
|
10001
|
-
const _hoisted_1$
|
|
10006
|
+
const _hoisted_1$y = ["aria-label"];
|
|
10002
10007
|
const _hoisted_2$p = {
|
|
10003
10008
|
ref: "contextmenu",
|
|
10004
10009
|
role: "menu",
|
|
@@ -10047,11 +10052,11 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10047
10052
|
ref_for: true,
|
|
10048
10053
|
ref: "anchors"
|
|
10049
10054
|
}, toDisplayString(item.label), 513)], 8, _hoisted_4$h), _cache[4] || (_cache[4] = createTextVNode()), _ctx.hasSeparatorAfterItemAt(index) ? (openBlock(), createElementBlock("hr", _hoisted_5$e)) : createCommentVNode("", true)], 8, _hoisted_3$k);
|
|
10050
|
-
}), 128))], 512)], 40, _hoisted_1$
|
|
10055
|
+
}), 128))], 512)], 40, _hoisted_1$y)]),
|
|
10051
10056
|
_: 1
|
|
10052
10057
|
}, 8, ["is-open", "anchor", "focus-element"]);
|
|
10053
10058
|
}
|
|
10054
|
-
const FContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10059
|
+
const FContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$s]]);
|
|
10055
10060
|
var Operation = /* @__PURE__ */ ((Operation2) => {
|
|
10056
10061
|
Operation2[Operation2["ADD"] = 0] = "ADD";
|
|
10057
10062
|
Operation2[Operation2["DELETE"] = 1] = "DELETE";
|
|
@@ -10059,13 +10064,13 @@ var Operation = /* @__PURE__ */ ((Operation2) => {
|
|
|
10059
10064
|
Operation2[Operation2["NONE"] = 3] = "NONE";
|
|
10060
10065
|
return Operation2;
|
|
10061
10066
|
})(Operation || {});
|
|
10062
|
-
const _hoisted_1$
|
|
10067
|
+
const _hoisted_1$x = {
|
|
10063
10068
|
class: "crud-dataset"
|
|
10064
10069
|
};
|
|
10065
10070
|
const _hoisted_2$o = {
|
|
10066
10071
|
key: 0
|
|
10067
10072
|
};
|
|
10068
|
-
const _sfc_main$
|
|
10073
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
10069
10074
|
__name: "FCrudDataset",
|
|
10070
10075
|
props: {
|
|
10071
10076
|
/**
|
|
@@ -10295,7 +10300,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
10295
10300
|
isFormModalOpen.value = true;
|
|
10296
10301
|
}
|
|
10297
10302
|
return (_ctx, _cache) => {
|
|
10298
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10303
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [renderSlot(_ctx.$slots, "default"), _cache[5] || (_cache[5] = createTextVNode()), hasAddSlot.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, [createElementVNode("button", {
|
|
10299
10304
|
"data-test": "f-crud-dataset-add-button",
|
|
10300
10305
|
type: "button",
|
|
10301
10306
|
class: "button button--tertiary crud-dataset__add-button",
|
|
@@ -10347,7 +10352,7 @@ function FCrudDatasetInjected() {
|
|
|
10347
10352
|
modify: inject("modify")
|
|
10348
10353
|
};
|
|
10349
10354
|
}
|
|
10350
|
-
const _sfc_main$
|
|
10355
|
+
const _sfc_main$I = defineComponent({
|
|
10351
10356
|
name: "FCrudButton",
|
|
10352
10357
|
components: {
|
|
10353
10358
|
FIcon
|
|
@@ -10403,7 +10408,7 @@ const _sfc_main$H = defineComponent({
|
|
|
10403
10408
|
}
|
|
10404
10409
|
}
|
|
10405
10410
|
});
|
|
10406
|
-
const _hoisted_1$
|
|
10411
|
+
const _hoisted_1$w = {
|
|
10407
10412
|
key: 1,
|
|
10408
10413
|
class: "sr-only"
|
|
10409
10414
|
};
|
|
@@ -10417,11 +10422,11 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10417
10422
|
key: 0,
|
|
10418
10423
|
class: "button__icon",
|
|
10419
10424
|
name: _ctx.iconName
|
|
10420
|
-
}, null, 8, ["name"])) : createCommentVNode("", true), _cache[1] || (_cache[1] = createTextVNode()), !_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
10425
|
+
}, null, 8, ["name"])) : createCommentVNode("", true), _cache[1] || (_cache[1] = createTextVNode()), !_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$w, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.buttonText), 1)])])) : createCommentVNode("", true), _cache[2] || (_cache[2] = createTextVNode()), _ctx.label ? renderSlot(_ctx.$slots, "default", {
|
|
10421
10426
|
key: 2
|
|
10422
10427
|
}, () => [createTextVNode(toDisplayString(_ctx.buttonText), 1)]) : createCommentVNode("", true)]);
|
|
10423
10428
|
}
|
|
10424
|
-
const FCrudButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10429
|
+
const FCrudButton = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$r]]);
|
|
10425
10430
|
function ActivateItemInjected() {
|
|
10426
10431
|
return {
|
|
10427
10432
|
registerCallbackAfterItemAdd: inject("registerCallbackAfterItemAdd", () => void 0),
|
|
@@ -10505,7 +10510,7 @@ function FTableInjected() {
|
|
|
10505
10510
|
renderColumns: inject("renderColumns", false)
|
|
10506
10511
|
};
|
|
10507
10512
|
}
|
|
10508
|
-
const _sfc_main$
|
|
10513
|
+
const _sfc_main$H = defineComponent({
|
|
10509
10514
|
name: "FTableColumn",
|
|
10510
10515
|
inheritAttrs: false,
|
|
10511
10516
|
props: {
|
|
@@ -10658,7 +10663,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10658
10663
|
_: 3
|
|
10659
10664
|
}, 16, ["class", "scope"])) : createCommentVNode("", true);
|
|
10660
10665
|
}
|
|
10661
|
-
const FTableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10666
|
+
const FTableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$q]]);
|
|
10662
10667
|
function FSortFilterDatasetInjected() {
|
|
10663
10668
|
return {
|
|
10664
10669
|
sort: inject("sort", () => void 0),
|
|
@@ -10666,7 +10671,7 @@ function FSortFilterDatasetInjected() {
|
|
|
10666
10671
|
registerCallbackOnMount: inject("registerCallbackOnMount", () => void 0)
|
|
10667
10672
|
};
|
|
10668
10673
|
}
|
|
10669
|
-
const _sfc_main$
|
|
10674
|
+
const _sfc_main$G = defineComponent({
|
|
10670
10675
|
name: "FLabel",
|
|
10671
10676
|
components: {
|
|
10672
10677
|
FIcon
|
|
@@ -10705,7 +10710,7 @@ const _sfc_main$F = defineComponent({
|
|
|
10705
10710
|
}
|
|
10706
10711
|
}
|
|
10707
10712
|
});
|
|
10708
|
-
const _hoisted_1$
|
|
10713
|
+
const _hoisted_1$v = {
|
|
10709
10714
|
key: 0
|
|
10710
10715
|
};
|
|
10711
10716
|
const _hoisted_2$n = {
|
|
@@ -10725,7 +10730,7 @@ const _hoisted_7$a = {
|
|
|
10725
10730
|
};
|
|
10726
10731
|
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10727
10732
|
const _component_f_icon = resolveComponent("f-icon");
|
|
10728
|
-
return _ctx.$slots.tooltip ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
10733
|
+
return _ctx.$slots.tooltip ? (openBlock(), createElementBlock("div", _hoisted_1$v, [_ctx.hasDefaultSlot ? (openBlock(), createElementBlock("div", _hoisted_2$n, [createElementVNode("label", {
|
|
10729
10734
|
class: "label",
|
|
10730
10735
|
for: _ctx.forProperty
|
|
10731
10736
|
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_3$j)], 512)) : createCommentVNode("", true), _cache[2] || (_cache[2] = createTextVNode()), renderSlot(_ctx.$slots, "tooltip"), _cache[3] || (_cache[3] = createTextVNode()), _ctx.hasDescriptionSlot || _ctx.hasErrorMessageSlot ? (openBlock(), createElementBlock("label", {
|
|
@@ -10750,11 +10755,11 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10750
10755
|
name: "error"
|
|
10751
10756
|
}), _cache[4] || (_cache[4] = createTextVNode()), renderSlot(_ctx.$slots, "error-message")])) : createCommentVNode("", true)], 8, _hoisted_6$b));
|
|
10752
10757
|
}
|
|
10753
|
-
const FLabel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10758
|
+
const FLabel = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$p]]);
|
|
10754
10759
|
function resolveWidthClass$1(words, inline) {
|
|
10755
10760
|
return inline ? void 0 : words.split(" ").map((word) => `i-width-${word}`).join(" ");
|
|
10756
10761
|
}
|
|
10757
|
-
const _sfc_main$
|
|
10762
|
+
const _sfc_main$F = defineComponent({
|
|
10758
10763
|
name: "FSelectField",
|
|
10759
10764
|
components: {
|
|
10760
10765
|
FIcon,
|
|
@@ -10885,7 +10890,7 @@ const _sfc_main$E = defineComponent({
|
|
|
10885
10890
|
}
|
|
10886
10891
|
}
|
|
10887
10892
|
});
|
|
10888
|
-
const _hoisted_1$
|
|
10893
|
+
const _hoisted_1$u = ["id"];
|
|
10889
10894
|
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10890
10895
|
const _component_f_label = resolveComponent("f-label");
|
|
10891
10896
|
const _component_f_icon = resolveComponent("f-icon");
|
|
@@ -10923,7 +10928,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10923
10928
|
id: _ctx.id,
|
|
10924
10929
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.vModel = $event),
|
|
10925
10930
|
class: "select-field__select"
|
|
10926
|
-
}, _ctx.attrs), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$
|
|
10931
|
+
}, _ctx.attrs), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$u), [[vModelSelect, _ctx.vModel]]), _cache[5] || (_cache[5] = createTextVNode()), _ctx.hasError && _ctx.textFieldTableMode ? (openBlock(), createBlock(_component_f_icon, {
|
|
10927
10932
|
key: 0,
|
|
10928
10933
|
ref: "icon",
|
|
10929
10934
|
class: "text-field__icon input-icon select-field__error-popup-icon",
|
|
@@ -10933,7 +10938,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10933
10938
|
name: "arrow-down"
|
|
10934
10939
|
})], 2)], 34);
|
|
10935
10940
|
}
|
|
10936
|
-
const FSelectField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10941
|
+
const FSelectField = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$o]]);
|
|
10937
10942
|
function resolveWidthClass(words, inline) {
|
|
10938
10943
|
return inline ? void 0 : words.split(" ").map((word) => `i-width-${word}`).join(" ");
|
|
10939
10944
|
}
|
|
@@ -10977,14 +10982,14 @@ function useTextFieldSetup(props) {
|
|
|
10977
10982
|
closeDropdown
|
|
10978
10983
|
};
|
|
10979
10984
|
}
|
|
10980
|
-
const _sfc_main$
|
|
10985
|
+
const _sfc_main$E = defineComponent({
|
|
10981
10986
|
name: "FTextField",
|
|
10982
10987
|
components: {
|
|
10983
10988
|
FLabel,
|
|
10984
10989
|
FIcon,
|
|
10985
10990
|
IPopupError,
|
|
10986
|
-
IComboboxDropdown: _sfc_main$
|
|
10987
|
-
IComboboxToggleButton: _sfc_main$
|
|
10991
|
+
IComboboxDropdown: _sfc_main$P,
|
|
10992
|
+
IComboboxToggleButton: _sfc_main$O
|
|
10988
10993
|
},
|
|
10989
10994
|
inheritAttrs: false,
|
|
10990
10995
|
props: {
|
|
@@ -11315,7 +11320,7 @@ const _sfc_main$D = defineComponent({
|
|
|
11315
11320
|
}
|
|
11316
11321
|
}
|
|
11317
11322
|
});
|
|
11318
|
-
const _hoisted_1$
|
|
11323
|
+
const _hoisted_1$t = {
|
|
11319
11324
|
key: 0
|
|
11320
11325
|
};
|
|
11321
11326
|
const _hoisted_2$m = {
|
|
@@ -11352,7 +11357,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11352
11357
|
for: _ctx.id,
|
|
11353
11358
|
class: normalizeClass(_ctx.labelClass)
|
|
11354
11359
|
}, createSlots({
|
|
11355
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [_ctx.defaultText !== "" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
11360
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [_ctx.defaultText !== "" ? (openBlock(), createElementBlock("span", _hoisted_1$t, toDisplayString(_ctx.defaultText), 1)) : createCommentVNode("", true)])]),
|
|
11356
11361
|
description: withCtx(({
|
|
11357
11362
|
descriptionClass,
|
|
11358
11363
|
formatDescriptionClass
|
|
@@ -11421,8 +11426,8 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11421
11426
|
onClose: _ctx.onDropdownClose
|
|
11422
11427
|
}, null, 8, ["id", "is-open", "options", "active-option", "active-option-id", "input-node", "onSelect", "onClose"])) : createCommentVNode("", true)], 2);
|
|
11423
11428
|
}
|
|
11424
|
-
const FTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11425
|
-
const _sfc_main$
|
|
11429
|
+
const FTextField = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$n]]);
|
|
11430
|
+
const _sfc_main$D = defineComponent({
|
|
11426
11431
|
name: "FEmailTextField",
|
|
11427
11432
|
components: {
|
|
11428
11433
|
FTextField
|
|
@@ -11538,7 +11543,7 @@ const _sfc_main$C = defineComponent({
|
|
|
11538
11543
|
}
|
|
11539
11544
|
}
|
|
11540
11545
|
});
|
|
11541
|
-
const _hoisted_1$
|
|
11546
|
+
const _hoisted_1$s = {
|
|
11542
11547
|
key: 0
|
|
11543
11548
|
};
|
|
11544
11549
|
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -11555,7 +11560,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11555
11560
|
onValidity: _ctx.onValidity,
|
|
11556
11561
|
onPendingValidity: _ctx.onPendingValidity
|
|
11557
11562
|
}), {
|
|
11558
|
-
"error-message": withCtx(() => [_ctx.showPasteErrorMessage ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
11563
|
+
"error-message": withCtx(() => [_ctx.showPasteErrorMessage ? (openBlock(), createElementBlock("span", _hoisted_1$s, toDisplayString(_ctx.pasteErrorText), 1)) : createCommentVNode("", true)]),
|
|
11559
11564
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.defaultText), 1)]), _cache[2] || (_cache[2] = createTextVNode())]),
|
|
11560
11565
|
_: 3
|
|
11561
11566
|
}, 16, ["id", "maxlength", "model-value", "onChange", "onBlur", "onUpdate:modelValue", "onValidity", "onPendingValidity"]), _cache[3] || (_cache[3] = createTextVNode()), _ctx.extendedValidation ? (openBlock(), createBlock(_component_f_text_field, {
|
|
@@ -11571,8 +11576,8 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11571
11576
|
_: 3
|
|
11572
11577
|
}, 8, ["modelValue", "maxlength", "onPaste"])) : createCommentVNode("", true)]);
|
|
11573
11578
|
}
|
|
11574
|
-
const FEmailTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11575
|
-
const _sfc_main$
|
|
11579
|
+
const FEmailTextField = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$m]]);
|
|
11580
|
+
const _sfc_main$C = defineComponent({
|
|
11576
11581
|
name: "FPhoneTextField",
|
|
11577
11582
|
components: {
|
|
11578
11583
|
FTextField
|
|
@@ -11699,8 +11704,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11699
11704
|
_: 3
|
|
11700
11705
|
}, 8, ["modelValue", "maxlength"])) : createCommentVNode("", true)]);
|
|
11701
11706
|
}
|
|
11702
|
-
const FPhoneTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11703
|
-
const _sfc_main$
|
|
11707
|
+
const FPhoneTextField = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$l]]);
|
|
11708
|
+
const _sfc_main$B = defineComponent({
|
|
11704
11709
|
name: "FCurrencyTextField",
|
|
11705
11710
|
extends: FTextField,
|
|
11706
11711
|
mixins: [TranslationMixin],
|
|
@@ -11735,7 +11740,7 @@ const _sfc_main$A = defineComponent({
|
|
|
11735
11740
|
ValidationService.validateElement(inputElement);
|
|
11736
11741
|
}
|
|
11737
11742
|
});
|
|
11738
|
-
const _sfc_main$
|
|
11743
|
+
const _sfc_main$A = defineComponent({
|
|
11739
11744
|
name: "FSearchTextField",
|
|
11740
11745
|
components: {
|
|
11741
11746
|
FTextField,
|
|
@@ -11795,7 +11800,7 @@ const _sfc_main$z = defineComponent({
|
|
|
11795
11800
|
}
|
|
11796
11801
|
}
|
|
11797
11802
|
});
|
|
11798
|
-
const _hoisted_1$
|
|
11803
|
+
const _hoisted_1$r = {
|
|
11799
11804
|
class: "sr-only"
|
|
11800
11805
|
};
|
|
11801
11806
|
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -11844,12 +11849,12 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11844
11849
|
}, [createVNode(_component_f_icon, {
|
|
11845
11850
|
name: "cross",
|
|
11846
11851
|
class: "clear-button__icon"
|
|
11847
|
-
}), _cache[1] || (_cache[1] = createTextVNode()), createElementVNode("span", _hoisted_1$
|
|
11852
|
+
}), _cache[1] || (_cache[1] = createTextVNode()), createElementVNode("span", _hoisted_1$r, toDisplayString(_ctx.clearableScreenReaderText), 1)])]),
|
|
11848
11853
|
key: "1"
|
|
11849
11854
|
} : void 0]), 1040, ["id", "maxlength", "model-value", "onChange", "onInput", "onBlur", "onUpdate"])]);
|
|
11850
11855
|
}
|
|
11851
|
-
const FSearchTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11852
|
-
const _sfc_main$
|
|
11856
|
+
const FSearchTextField = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$k]]);
|
|
11857
|
+
const _sfc_main$z = defineComponent({
|
|
11853
11858
|
name: "FBankAccountNumberTextField",
|
|
11854
11859
|
extends: FTextField,
|
|
11855
11860
|
mixins: [TranslationMixin],
|
|
@@ -11878,7 +11883,7 @@ const _sfc_main$y = defineComponent({
|
|
|
11878
11883
|
ValidationService.validateElement(inputElement);
|
|
11879
11884
|
}
|
|
11880
11885
|
});
|
|
11881
|
-
const _sfc_main$
|
|
11886
|
+
const _sfc_main$y = defineComponent({
|
|
11882
11887
|
name: "FBankgiroTextField",
|
|
11883
11888
|
extends: FTextField,
|
|
11884
11889
|
mixins: [TranslationMixin],
|
|
@@ -11910,7 +11915,7 @@ const _sfc_main$x = defineComponent({
|
|
|
11910
11915
|
ValidationService.validateElement(inputElement);
|
|
11911
11916
|
}
|
|
11912
11917
|
});
|
|
11913
|
-
const _sfc_main$
|
|
11918
|
+
const _sfc_main$x = defineComponent({
|
|
11914
11919
|
name: "FClearingnumberTextField",
|
|
11915
11920
|
extends: FTextField,
|
|
11916
11921
|
mixins: [TranslationMixin],
|
|
@@ -11942,7 +11947,7 @@ const _sfc_main$w = defineComponent({
|
|
|
11942
11947
|
function defaultFormatter$1(modelValue) {
|
|
11943
11948
|
return formatNumber(modelValue, this.decimals);
|
|
11944
11949
|
}
|
|
11945
|
-
const _sfc_main$
|
|
11950
|
+
const _sfc_main$w = defineComponent({
|
|
11946
11951
|
name: "FNumericTextField",
|
|
11947
11952
|
extends: FTextField,
|
|
11948
11953
|
props: {
|
|
@@ -11979,7 +11984,7 @@ const _sfc_main$v = defineComponent({
|
|
|
11979
11984
|
ValidationService.validateElement(inputElement);
|
|
11980
11985
|
}
|
|
11981
11986
|
});
|
|
11982
|
-
const _sfc_main$
|
|
11987
|
+
const _sfc_main$v = defineComponent({
|
|
11983
11988
|
name: "FPersonnummerTextField",
|
|
11984
11989
|
extends: FTextField,
|
|
11985
11990
|
mixins: [TranslationMixin],
|
|
@@ -12019,7 +12024,7 @@ const _sfc_main$u = defineComponent({
|
|
|
12019
12024
|
ValidationService.validateElement(inputElement);
|
|
12020
12025
|
}
|
|
12021
12026
|
});
|
|
12022
|
-
const _sfc_main$
|
|
12027
|
+
const _sfc_main$u = defineComponent({
|
|
12023
12028
|
name: "FPlusgiroTextField",
|
|
12024
12029
|
extends: FTextField,
|
|
12025
12030
|
mixins: [TranslationMixin],
|
|
@@ -12051,7 +12056,7 @@ const _sfc_main$t = defineComponent({
|
|
|
12051
12056
|
ValidationService.validateElement(inputElement);
|
|
12052
12057
|
}
|
|
12053
12058
|
});
|
|
12054
|
-
const _sfc_main$
|
|
12059
|
+
const _sfc_main$t = defineComponent({
|
|
12055
12060
|
name: "FPostalCodeTextField",
|
|
12056
12061
|
extends: FTextField,
|
|
12057
12062
|
mixins: [TranslationMixin],
|
|
@@ -12088,7 +12093,7 @@ const _sfc_main$s = defineComponent({
|
|
|
12088
12093
|
function defaultFormatter(modelValue) {
|
|
12089
12094
|
return formatPercent(modelValue, this.decimals);
|
|
12090
12095
|
}
|
|
12091
|
-
const _sfc_main$
|
|
12096
|
+
const _sfc_main$s = defineComponent({
|
|
12092
12097
|
name: "FPercentTextField",
|
|
12093
12098
|
extends: FTextField,
|
|
12094
12099
|
mixins: [TranslationMixin],
|
|
@@ -12136,7 +12141,7 @@ const _sfc_main$r = defineComponent({
|
|
|
12136
12141
|
ValidationService.validateElement(inputElement);
|
|
12137
12142
|
}
|
|
12138
12143
|
});
|
|
12139
|
-
const _sfc_main$
|
|
12144
|
+
const _sfc_main$r = defineComponent({
|
|
12140
12145
|
name: "FOrganisationsnummerTextField",
|
|
12141
12146
|
extends: FTextField,
|
|
12142
12147
|
mixins: [TranslationMixin],
|
|
@@ -12244,7 +12249,7 @@ function filter(list, filterAttributes, searchString) {
|
|
|
12244
12249
|
const searchTerms = searchString.split(/\s+/).map((word) => word.toLocaleLowerCase());
|
|
12245
12250
|
return list.filter((item) => includesAllSearchTerms(item, filterAttributes, searchTerms));
|
|
12246
12251
|
}
|
|
12247
|
-
const _hoisted_1$
|
|
12252
|
+
const _hoisted_1$q = {
|
|
12248
12253
|
class: "sort-filter-dataset"
|
|
12249
12254
|
};
|
|
12250
12255
|
const _hoisted_2$l = {
|
|
@@ -12264,7 +12269,7 @@ const _hoisted_6$9 = {
|
|
|
12264
12269
|
}
|
|
12265
12270
|
};
|
|
12266
12271
|
const _hoisted_7$8 = ["value"];
|
|
12267
|
-
const _sfc_main$
|
|
12272
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
12268
12273
|
__name: "FSortFilterDataset",
|
|
12269
12274
|
props: {
|
|
12270
12275
|
/**
|
|
@@ -12450,7 +12455,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
12450
12455
|
}
|
|
12451
12456
|
}
|
|
12452
12457
|
return (_ctx, _cache) => {
|
|
12453
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12458
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [createVNode(unref(IFlex), {
|
|
12454
12459
|
collapse: "",
|
|
12455
12460
|
gap: "3x",
|
|
12456
12461
|
wrap: ""
|
|
@@ -12533,7 +12538,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
12533
12538
|
};
|
|
12534
12539
|
}
|
|
12535
12540
|
});
|
|
12536
|
-
const _hoisted_1$
|
|
12541
|
+
const _hoisted_1$p = ["tabindex"];
|
|
12537
12542
|
const _hoisted_2$k = {
|
|
12538
12543
|
key: 0
|
|
12539
12544
|
};
|
|
@@ -12552,7 +12557,7 @@ const _hoisted_7$7 = {
|
|
|
12552
12557
|
key: 1
|
|
12553
12558
|
};
|
|
12554
12559
|
const _hoisted_8$5 = ["colspan"];
|
|
12555
|
-
const _sfc_main$
|
|
12560
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
12556
12561
|
...{
|
|
12557
12562
|
inheritAttrs: false
|
|
12558
12563
|
},
|
|
@@ -12731,7 +12736,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
12731
12736
|
}, {
|
|
12732
12737
|
row
|
|
12733
12738
|
}))]);
|
|
12734
|
-
}), 128))])], 16, _hoisted_1$
|
|
12739
|
+
}), 128))])], 16, _hoisted_1$p)], 2);
|
|
12735
12740
|
};
|
|
12736
12741
|
}
|
|
12737
12742
|
});
|
|
@@ -12810,7 +12815,7 @@ function getDisplayMonth(minDate, maxDate, selectedDate, initialMonth) {
|
|
|
12810
12815
|
}
|
|
12811
12816
|
return month || FDate.now().startOfMonth();
|
|
12812
12817
|
}
|
|
12813
|
-
const _sfc_main$
|
|
12818
|
+
const _sfc_main$o = defineComponent({
|
|
12814
12819
|
name: "FDatepickerField",
|
|
12815
12820
|
components: {
|
|
12816
12821
|
FCalendar,
|
|
@@ -13068,7 +13073,7 @@ const _sfc_main$n = defineComponent({
|
|
|
13068
13073
|
}
|
|
13069
13074
|
}
|
|
13070
13075
|
});
|
|
13071
|
-
const _hoisted_1$
|
|
13076
|
+
const _hoisted_1$o = {
|
|
13072
13077
|
ref: "component",
|
|
13073
13078
|
class: "datepicker-field"
|
|
13074
13079
|
};
|
|
@@ -13085,7 +13090,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13085
13090
|
const _component_f_calendar_day = resolveComponent("f-calendar-day");
|
|
13086
13091
|
const _component_f_calendar = resolveComponent("f-calendar");
|
|
13087
13092
|
const _component_i_popup = resolveComponent("i-popup");
|
|
13088
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13093
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [createElementVNode("div", {
|
|
13089
13094
|
ref: "calendarInputs",
|
|
13090
13095
|
onFocusout: _cache[2] || (_cache[2] = (...args) => _ctx.onFocusoutTextFieldButton && _ctx.onFocusoutTextFieldButton(...args))
|
|
13091
13096
|
}, [createVNode(_component_f_text_field, mergeProps(_ctx.$attrs, {
|
|
@@ -13175,11 +13180,11 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13175
13180
|
_: 1
|
|
13176
13181
|
}, 8, ["is-open", "anchor", "inline", "onOpen", "onClose"])], 512);
|
|
13177
13182
|
}
|
|
13178
|
-
const FDatepickerField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13183
|
+
const FDatepickerField = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$j]]);
|
|
13179
13184
|
function isDialogueTreeEndQuestion(value) {
|
|
13180
13185
|
return Boolean(value.userData);
|
|
13181
13186
|
}
|
|
13182
|
-
const _sfc_main$
|
|
13187
|
+
const _sfc_main$n = defineComponent({
|
|
13183
13188
|
name: "FDialogueTree",
|
|
13184
13189
|
components: {
|
|
13185
13190
|
FIcon
|
|
@@ -13257,7 +13262,7 @@ const _sfc_main$m = defineComponent({
|
|
|
13257
13262
|
}
|
|
13258
13263
|
}
|
|
13259
13264
|
});
|
|
13260
|
-
const _hoisted_1$
|
|
13265
|
+
const _hoisted_1$n = {
|
|
13261
13266
|
class: "dialogue-tree"
|
|
13262
13267
|
};
|
|
13263
13268
|
const _hoisted_2$i = {
|
|
@@ -13267,7 +13272,7 @@ const _hoisted_2$i = {
|
|
|
13267
13272
|
const _hoisted_3$e = ["onClick"];
|
|
13268
13273
|
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13269
13274
|
const _component_f_icon = resolveComponent("f-icon");
|
|
13270
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13275
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [_ctx.options.length > 0 ? (openBlock(), createElementBlock("ul", _hoisted_2$i, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
|
|
13271
13276
|
return openBlock(), createElementBlock("li", {
|
|
13272
13277
|
key: option.label,
|
|
13273
13278
|
class: "dialogue-tree__list-item"
|
|
@@ -13285,8 +13290,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13285
13290
|
userData: _ctx.userData
|
|
13286
13291
|
})))]);
|
|
13287
13292
|
}
|
|
13288
|
-
const FDialogueTree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13289
|
-
const _sfc_main$
|
|
13293
|
+
const FDialogueTree = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$i]]);
|
|
13294
|
+
const _sfc_main$m = defineComponent({
|
|
13290
13295
|
name: "FExpandablePanel",
|
|
13291
13296
|
components: {
|
|
13292
13297
|
FIcon,
|
|
@@ -13360,7 +13365,7 @@ const _sfc_main$l = defineComponent({
|
|
|
13360
13365
|
}
|
|
13361
13366
|
}
|
|
13362
13367
|
});
|
|
13363
|
-
const _hoisted_1$
|
|
13368
|
+
const _hoisted_1$m = ["aria-expanded", "aria-controls"];
|
|
13364
13369
|
const _hoisted_2$h = {
|
|
13365
13370
|
class: "expandable-panel__icon"
|
|
13366
13371
|
};
|
|
@@ -13406,7 +13411,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13406
13411
|
})
|
|
13407
13412
|
}, [createElementVNode("span", _hoisted_5$9, toDisplayString(_ctx.screenReaderNotificationText), 1), _cache[2] || (_cache[2] = createTextVNode()), createVNode(_component_f_icon, {
|
|
13408
13413
|
name: "bell"
|
|
13409
|
-
})], 8, _hoisted_4$b)) : createCommentVNode("", true)], 16, _hoisted_1$
|
|
13414
|
+
})], 8, _hoisted_4$b)) : createCommentVNode("", true)], 16, _hoisted_1$m)]),
|
|
13410
13415
|
_: 3
|
|
13411
13416
|
})), _cache[6] || (_cache[6] = createTextVNode()), createVNode(_component_f_expand, null, {
|
|
13412
13417
|
default: withCtx(() => [withDirectives(createElementVNode("div", {
|
|
@@ -13416,8 +13421,8 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13416
13421
|
_: 3
|
|
13417
13422
|
})], 2);
|
|
13418
13423
|
}
|
|
13419
|
-
const FExpandablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13420
|
-
const _sfc_main$
|
|
13424
|
+
const FExpandablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$h]]);
|
|
13425
|
+
const _sfc_main$l = defineComponent({
|
|
13421
13426
|
name: "FExpandableParagraph",
|
|
13422
13427
|
components: {
|
|
13423
13428
|
FIcon,
|
|
@@ -13499,7 +13504,7 @@ const _sfc_main$k = defineComponent({
|
|
|
13499
13504
|
}
|
|
13500
13505
|
}
|
|
13501
13506
|
});
|
|
13502
|
-
const _hoisted_1$
|
|
13507
|
+
const _hoisted_1$l = ["aria-expanded", "aria-controls"];
|
|
13503
13508
|
const _hoisted_2$g = {
|
|
13504
13509
|
class: "expandable-paragraph__icon"
|
|
13505
13510
|
};
|
|
@@ -13539,7 +13544,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13539
13544
|
name: "dash"
|
|
13540
13545
|
}), _cache[1] || (_cache[1] = createTextVNode()), createVNode(_component_f_icon, {
|
|
13541
13546
|
name: "dash"
|
|
13542
|
-
})])]), _cache[2] || (_cache[2] = createTextVNode()), renderSlot(_ctx.$slots, "title")], 16, _hoisted_1$
|
|
13547
|
+
})])]), _cache[2] || (_cache[2] = createTextVNode()), renderSlot(_ctx.$slots, "title")], 16, _hoisted_1$l)]),
|
|
13543
13548
|
_: 3
|
|
13544
13549
|
}, 8, ["class"])), _cache[3] || (_cache[3] = createTextVNode()), _ctx.hasRelatedSlot ? (openBlock(), createElementBlock("div", _hoisted_4$a, [renderSlot(_ctx.$slots, "related")])) : createCommentVNode("", true)], 2), _cache[5] || (_cache[5] = createTextVNode()), createVNode(_component_f_expand, null, {
|
|
13545
13550
|
default: withCtx(() => [withDirectives(createElementVNode("div", {
|
|
@@ -13549,7 +13554,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13549
13554
|
_: 3
|
|
13550
13555
|
})], 2);
|
|
13551
13556
|
}
|
|
13552
|
-
const FExpandableParagraph = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13557
|
+
const FExpandableParagraph = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$g]]);
|
|
13553
13558
|
const DEFAULT_ICON = "file";
|
|
13554
13559
|
const iconMap = {
|
|
13555
13560
|
"image/*": "pic",
|
|
@@ -13558,7 +13563,7 @@ const iconMap = {
|
|
|
13558
13563
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "doc",
|
|
13559
13564
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.template": "doc"
|
|
13560
13565
|
};
|
|
13561
|
-
const _sfc_main$
|
|
13566
|
+
const _sfc_main$k = defineComponent({
|
|
13562
13567
|
name: "FFileItem",
|
|
13563
13568
|
components: {
|
|
13564
13569
|
FIcon
|
|
@@ -13637,7 +13642,7 @@ const _sfc_main$j = defineComponent({
|
|
|
13637
13642
|
}
|
|
13638
13643
|
}
|
|
13639
13644
|
});
|
|
13640
|
-
const _hoisted_1$
|
|
13645
|
+
const _hoisted_1$k = {
|
|
13641
13646
|
class: "file-item"
|
|
13642
13647
|
};
|
|
13643
13648
|
const _hoisted_2$f = {
|
|
@@ -13659,7 +13664,7 @@ const _hoisted_7$4 = {
|
|
|
13659
13664
|
};
|
|
13660
13665
|
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13661
13666
|
const _component_f_icon = resolveComponent("f-icon");
|
|
13662
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13667
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [createElementVNode("div", _hoisted_2$f, [createElementVNode("a", mergeProps({
|
|
13663
13668
|
id: _ctx.id,
|
|
13664
13669
|
class: "file-item__file-open"
|
|
13665
13670
|
}, _ctx.$attrs), [createElementVNode("div", _hoisted_4$9, [createVNode(_component_f_icon, {
|
|
@@ -13670,8 +13675,8 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13670
13675
|
class: "file-item__separator"
|
|
13671
13676
|
}, null, -1))]);
|
|
13672
13677
|
}
|
|
13673
|
-
const FFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13674
|
-
const _sfc_main$
|
|
13678
|
+
const FFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$f]]);
|
|
13679
|
+
const _sfc_main$j = defineComponent({
|
|
13675
13680
|
name: "FFileSelector",
|
|
13676
13681
|
components: {
|
|
13677
13682
|
FIcon
|
|
@@ -13732,14 +13737,14 @@ const _sfc_main$i = defineComponent({
|
|
|
13732
13737
|
}
|
|
13733
13738
|
}
|
|
13734
13739
|
});
|
|
13735
|
-
const _hoisted_1$
|
|
13740
|
+
const _hoisted_1$j = {
|
|
13736
13741
|
class: "file-selector"
|
|
13737
13742
|
};
|
|
13738
13743
|
const _hoisted_2$e = ["id", "aria-labelledby", "aria-disabled"];
|
|
13739
13744
|
const _hoisted_3$a = ["id", "for"];
|
|
13740
13745
|
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13741
13746
|
const _component_f_icon = resolveComponent("f-icon");
|
|
13742
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13747
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [createElementVNode("input", mergeProps({
|
|
13743
13748
|
id: _ctx.id,
|
|
13744
13749
|
ref: "file-selector",
|
|
13745
13750
|
type: "file",
|
|
@@ -13758,7 +13763,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13758
13763
|
name: "paper-clip"
|
|
13759
13764
|
}), _cache[1] || (_cache[1] = createTextVNode()), renderSlot(_ctx.$slots, "default")], 10, _hoisted_3$a)]);
|
|
13760
13765
|
}
|
|
13761
|
-
const FFileSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13766
|
+
const FFileSelector = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$e]]);
|
|
13762
13767
|
const keybindings = {
|
|
13763
13768
|
Up: focusTrAbove,
|
|
13764
13769
|
Down: focusTrBelow,
|
|
@@ -13867,7 +13872,7 @@ function useExpandableTable(expandableAttribute, keyAttribute, describedby, emit
|
|
|
13867
13872
|
hasExpandableContent
|
|
13868
13873
|
};
|
|
13869
13874
|
}
|
|
13870
|
-
const _hoisted_1$
|
|
13875
|
+
const _hoisted_1$i = ["role"];
|
|
13871
13876
|
const _hoisted_2$d = {
|
|
13872
13877
|
key: 0
|
|
13873
13878
|
};
|
|
@@ -13932,7 +13937,7 @@ const _hoisted_21 = {
|
|
|
13932
13937
|
key: 1
|
|
13933
13938
|
};
|
|
13934
13939
|
const _hoisted_22 = ["colspan"];
|
|
13935
|
-
const _sfc_main$
|
|
13940
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
13936
13941
|
...{
|
|
13937
13942
|
inheritAttrs: false
|
|
13938
13943
|
},
|
|
@@ -14399,11 +14404,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14399
14404
|
colspan: nbOfColumns.value
|
|
14400
14405
|
}, [renderSlot(_ctx.$slots, "empty", {}, () => [createTextVNode(toDisplayString(unref($t2)("fkui.interactive-table.empty", "Tabellen är tom")), 1)])], 8, _hoisted_22), _cache[12] || (_cache[12] = createTextVNode()), renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({
|
|
14401
14406
|
row: {}
|
|
14402
|
-
})))])) : createCommentVNode("", true)]))], 16, _hoisted_1$
|
|
14407
|
+
})))])) : createCommentVNode("", true)]))], 16, _hoisted_1$i)], 2);
|
|
14403
14408
|
};
|
|
14404
14409
|
}
|
|
14405
14410
|
});
|
|
14406
|
-
const _sfc_main$
|
|
14411
|
+
const _sfc_main$h = defineComponent({
|
|
14407
14412
|
name: "FLayoutApplicationTemplate",
|
|
14408
14413
|
computed: {
|
|
14409
14414
|
showHeader() {
|
|
@@ -14428,7 +14433,7 @@ const _sfc_main$g = defineComponent({
|
|
|
14428
14433
|
}
|
|
14429
14434
|
}
|
|
14430
14435
|
});
|
|
14431
|
-
const _hoisted_1$
|
|
14436
|
+
const _hoisted_1$h = {
|
|
14432
14437
|
class: "layout-application-template"
|
|
14433
14438
|
};
|
|
14434
14439
|
const _hoisted_2$c = {
|
|
@@ -14448,11 +14453,11 @@ const _hoisted_5$5 = {
|
|
|
14448
14453
|
class: "layout-application-template__footer"
|
|
14449
14454
|
};
|
|
14450
14455
|
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14451
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14456
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [_ctx.showHeader || _ctx.showTopNavigation ? (openBlock(), createElementBlock("header", _hoisted_2$c, [_ctx.showHeader ? renderSlot(_ctx.$slots, "header", {
|
|
14452
14457
|
key: 0
|
|
14453
14458
|
}) : createCommentVNode("", true), _cache[0] || (_cache[0] = createTextVNode()), _ctx.showTopNavigation ? (openBlock(), createElementBlock("nav", _hoisted_3$8, [renderSlot(_ctx.$slots, "top-navigation")])) : createCommentVNode("", true)], 512)) : createCommentVNode("", true), _cache[2] || (_cache[2] = createTextVNode()), createElementVNode("main", _hoisted_4$7, [renderSlot(_ctx.$slots, "default"), _cache[1] || (_cache[1] = createTextVNode()), _ctx.showFooter ? (openBlock(), createElementBlock("footer", _hoisted_5$5, [renderSlot(_ctx.$slots, "footer")])) : createCommentVNode("", true)], 512)]);
|
|
14454
14459
|
}
|
|
14455
|
-
const FLayoutApplicationTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14460
|
+
const FLayoutApplicationTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$d]]);
|
|
14456
14461
|
function getGridClasses(target) {
|
|
14457
14462
|
if (target === null) {
|
|
14458
14463
|
return {};
|
|
@@ -14553,7 +14558,7 @@ function useLayoutPanel(options) {
|
|
|
14553
14558
|
rightPrimaryClasses
|
|
14554
14559
|
};
|
|
14555
14560
|
}
|
|
14556
|
-
const _sfc_main$
|
|
14561
|
+
const _sfc_main$g = defineComponent({
|
|
14557
14562
|
name: "FLayoutLeftPanel",
|
|
14558
14563
|
components: {
|
|
14559
14564
|
FIcon
|
|
@@ -14638,7 +14643,7 @@ const _sfc_main$f = defineComponent({
|
|
|
14638
14643
|
}
|
|
14639
14644
|
}
|
|
14640
14645
|
});
|
|
14641
|
-
const _hoisted_1$
|
|
14646
|
+
const _hoisted_1$g = {
|
|
14642
14647
|
class: "layout-navigation"
|
|
14643
14648
|
};
|
|
14644
14649
|
const _hoisted_2$b = ["aria-expanded"];
|
|
@@ -14651,7 +14656,7 @@ const _hoisted_4$6 = {
|
|
|
14651
14656
|
};
|
|
14652
14657
|
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14653
14658
|
const _component_f_icon = resolveComponent("f-icon");
|
|
14654
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14659
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [createElementVNode("nav", {
|
|
14655
14660
|
id: "layout-navigation__navigation",
|
|
14656
14661
|
class: "layout-navigation__navigation",
|
|
14657
14662
|
style: normalizeStyle(_ctx.navigationStyle),
|
|
@@ -14700,7 +14705,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14700
14705
|
style: normalizeStyle(_ctx.primaryStyle)
|
|
14701
14706
|
}, [renderSlot(_ctx.$slots, "default")], 6)]);
|
|
14702
14707
|
}
|
|
14703
|
-
const FLayoutLeftPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14708
|
+
const FLayoutLeftPanel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$c]]);
|
|
14704
14709
|
class FRightPanelServiceImpl {
|
|
14705
14710
|
constructor() {
|
|
14706
14711
|
_defineProperty(this, "focusedElementBeforeOpenining", null);
|
|
@@ -14730,7 +14735,7 @@ class FRightPanelServiceImpl {
|
|
|
14730
14735
|
}
|
|
14731
14736
|
}
|
|
14732
14737
|
const FLayoutRightPanelService = new FRightPanelServiceImpl();
|
|
14733
|
-
const _sfc_main$
|
|
14738
|
+
const _sfc_main$f = defineComponent({
|
|
14734
14739
|
name: "FLayoutRightPanel",
|
|
14735
14740
|
components: {
|
|
14736
14741
|
FIcon
|
|
@@ -14847,7 +14852,7 @@ const _sfc_main$e = defineComponent({
|
|
|
14847
14852
|
}
|
|
14848
14853
|
}
|
|
14849
14854
|
});
|
|
14850
|
-
const _hoisted_1$
|
|
14855
|
+
const _hoisted_1$f = {
|
|
14851
14856
|
class: "layout-secondary"
|
|
14852
14857
|
};
|
|
14853
14858
|
const _hoisted_2$a = {
|
|
@@ -14855,7 +14860,7 @@ const _hoisted_2$a = {
|
|
|
14855
14860
|
};
|
|
14856
14861
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14857
14862
|
const _component_f_icon = resolveComponent("f-icon");
|
|
14858
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14863
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [createElementVNode("div", {
|
|
14859
14864
|
id: "layout-secondary__primary",
|
|
14860
14865
|
class: normalizeClass(["layout-secondary__primary", _ctx.rightPrimaryClasses]),
|
|
14861
14866
|
style: normalizeStyle(_ctx.primaryStyle)
|
|
@@ -14892,8 +14897,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14892
14897
|
name: "close"
|
|
14893
14898
|
})])], 6)])], 4)) : createCommentVNode("", true)]);
|
|
14894
14899
|
}
|
|
14895
|
-
const FLayoutRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14896
|
-
const _hoisted_1$
|
|
14900
|
+
const FLayoutRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$b]]);
|
|
14901
|
+
const _hoisted_1$e = {
|
|
14897
14902
|
key: 0,
|
|
14898
14903
|
class: "list"
|
|
14899
14904
|
};
|
|
@@ -14918,7 +14923,7 @@ const _hoisted_9$2 = {
|
|
|
14918
14923
|
const _hoisted_10$1 = {
|
|
14919
14924
|
class: "list__item__itempane"
|
|
14920
14925
|
};
|
|
14921
|
-
const _sfc_main$
|
|
14926
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
14922
14927
|
__name: "FList",
|
|
14923
14928
|
props: {
|
|
14924
14929
|
/**
|
|
@@ -15142,7 +15147,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15142
15147
|
return props.checkbox && itemEquals(activeItem.value, item, props.keyAttribute);
|
|
15143
15148
|
}
|
|
15144
15149
|
return (_ctx, _cache) => {
|
|
15145
|
-
return !__props.selectable ? (openBlock(), createElementBlock("ul", _hoisted_1$
|
|
15150
|
+
return !__props.selectable ? (openBlock(), createElementBlock("ul", _hoisted_1$e, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
15146
15151
|
return openBlock(), createElementBlock("li", {
|
|
15147
15152
|
key: itemKey(item),
|
|
15148
15153
|
class: "list__item"
|
|
@@ -15207,7 +15212,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15207
15212
|
};
|
|
15208
15213
|
}
|
|
15209
15214
|
});
|
|
15210
|
-
const _sfc_main$
|
|
15215
|
+
const _sfc_main$d = defineComponent({
|
|
15211
15216
|
name: "FLoader",
|
|
15212
15217
|
mixins: [TranslationMixin],
|
|
15213
15218
|
inheritAttrs: false,
|
|
@@ -15319,7 +15324,7 @@ const _sfc_main$c = defineComponent({
|
|
|
15319
15324
|
}
|
|
15320
15325
|
}
|
|
15321
15326
|
});
|
|
15322
|
-
const _hoisted_1$
|
|
15327
|
+
const _hoisted_1$d = {
|
|
15323
15328
|
class: "loader__backdrop"
|
|
15324
15329
|
};
|
|
15325
15330
|
const _hoisted_2$8 = {
|
|
@@ -15331,7 +15336,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15331
15336
|
disabled: _ctx.teleportDisabled
|
|
15332
15337
|
}, [withDirectives(createElementVNode("div", mergeProps(_ctx.$attrs, {
|
|
15333
15338
|
class: ["loader", _ctx.classes]
|
|
15334
|
-
}), [createElementVNode("div", _hoisted_1$
|
|
15339
|
+
}), [createElementVNode("div", _hoisted_1$d, [_cache[0] || (_cache[0] = createElementVNode("div", {
|
|
15335
15340
|
class: "loader__wrapper"
|
|
15336
15341
|
}, [createElementVNode("div", {
|
|
15337
15342
|
class: "loader__spinner-1 loader__spinner"
|
|
@@ -15371,8 +15376,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15371
15376
|
tabindex: "-1"
|
|
15372
15377
|
}, [createElementVNode("span", _hoisted_2$8, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.$t("fkui.loader.wait.text", _ctx.defaultLoadingText)), 1)])])], 2)])], 16), [[vShow, _ctx.show]])], 8, ["to", "disabled"]);
|
|
15373
15378
|
}
|
|
15374
|
-
const FLoader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15375
|
-
const _hoisted_1$
|
|
15379
|
+
const FLoader = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$a]]);
|
|
15380
|
+
const _hoisted_1$c = ["aria-label"];
|
|
15376
15381
|
const __default__ = defineComponent({
|
|
15377
15382
|
computed: {
|
|
15378
15383
|
ariaLabel() {
|
|
@@ -15384,7 +15389,7 @@ const __default__ = defineComponent({
|
|
|
15384
15389
|
}
|
|
15385
15390
|
}
|
|
15386
15391
|
});
|
|
15387
|
-
const _sfc_main$
|
|
15392
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
15388
15393
|
...__default__,
|
|
15389
15394
|
__name: "FLogo",
|
|
15390
15395
|
props: {
|
|
@@ -15408,7 +15413,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
15408
15413
|
class: normalizeClass(`logo logo--${props.size}`),
|
|
15409
15414
|
"aria-label": _ctx.ariaLabel,
|
|
15410
15415
|
role: "img"
|
|
15411
|
-
}, null, 10, _hoisted_1$
|
|
15416
|
+
}, null, 10, _hoisted_1$c);
|
|
15412
15417
|
};
|
|
15413
15418
|
}
|
|
15414
15419
|
});
|
|
@@ -15438,7 +15443,7 @@ const iconClasses = {
|
|
|
15438
15443
|
screenReaderContextDefault: "Informationsmeddelande"
|
|
15439
15444
|
}
|
|
15440
15445
|
};
|
|
15441
|
-
const _sfc_main$
|
|
15446
|
+
const _sfc_main$b = defineComponent({
|
|
15442
15447
|
name: "FMessageBox",
|
|
15443
15448
|
components: {
|
|
15444
15449
|
FIcon,
|
|
@@ -15528,7 +15533,7 @@ const _sfc_main$a = defineComponent({
|
|
|
15528
15533
|
}
|
|
15529
15534
|
}
|
|
15530
15535
|
});
|
|
15531
|
-
const _hoisted_1$
|
|
15536
|
+
const _hoisted_1$b = {
|
|
15532
15537
|
key: 0,
|
|
15533
15538
|
class: "sr-only"
|
|
15534
15539
|
};
|
|
@@ -15538,7 +15543,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15538
15543
|
const _component_i_flex = resolveComponent("i-flex");
|
|
15539
15544
|
return openBlock(), createElementBlock("div", {
|
|
15540
15545
|
class: normalizeClass(["message-box", [_ctx.messageBoxType, _ctx.bannerType]])
|
|
15541
|
-
}, [_ctx.provideScreenReaderContext ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
15546
|
+
}, [_ctx.provideScreenReaderContext ? (openBlock(), createElementBlock("span", _hoisted_1$b, toDisplayString(_ctx.screenReaderContext()), 1)) : createCommentVNode("", true), _cache[2] || (_cache[2] = createTextVNode()), createVNode(_component_i_flex, {
|
|
15542
15547
|
gap: "2x"
|
|
15543
15548
|
}, {
|
|
15544
15549
|
default: withCtx(() => [_ctx.layout === "short" ? (openBlock(), createBlock(_component_i_flex_item, {
|
|
@@ -15570,7 +15575,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15570
15575
|
_: 3
|
|
15571
15576
|
})], 2);
|
|
15572
15577
|
}
|
|
15573
|
-
const FMessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15578
|
+
const FMessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$9]]);
|
|
15574
15579
|
function findOverflowIndex(totalWidth, elements) {
|
|
15575
15580
|
let sum = 0;
|
|
15576
15581
|
const index = elements.findIndex((element) => {
|
|
@@ -15620,7 +15625,7 @@ const upKeys = ["Up", "ArrowUp"];
|
|
|
15620
15625
|
const downKeys = ["Down", "ArrowDown"];
|
|
15621
15626
|
const verticalKeys = [...upKeys, ...downKeys];
|
|
15622
15627
|
const preventKeys = ["Tab", "Left", "Right", "ArrowLeft", "ArrowRight", "Home", "End", " ", "Spacebar", "Enter", ...verticalKeys];
|
|
15623
|
-
const _sfc_main$
|
|
15628
|
+
const _sfc_main$a = defineComponent({
|
|
15624
15629
|
name: "FNavigationMenu",
|
|
15625
15630
|
components: {
|
|
15626
15631
|
FIcon,
|
|
@@ -15953,7 +15958,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
15953
15958
|
}
|
|
15954
15959
|
}
|
|
15955
15960
|
});
|
|
15956
|
-
const _hoisted_1$
|
|
15961
|
+
const _hoisted_1$a = ["aria-label"];
|
|
15957
15962
|
const _hoisted_2$7 = ["data-ref-index", "onClick"];
|
|
15958
15963
|
const _hoisted_3$5 = {
|
|
15959
15964
|
class: "imenu__list__anchor-container"
|
|
@@ -16034,11 +16039,11 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16034
16039
|
"enable-keyboard-navigation": "",
|
|
16035
16040
|
onSelect: _ctx.onPopupMenuItemSelected,
|
|
16036
16041
|
onClose: _cache[5] || (_cache[5] = ($event) => _ctx.togglePopup(false))
|
|
16037
|
-
}, null, 8, ["modelValue", "focused-item", "items", "is-open", "anchor", "selected-menu-item-screen-reader-text", "aria-label", "onSelect"])], 10, _hoisted_1$
|
|
16042
|
+
}, null, 8, ["modelValue", "focused-item", "items", "is-open", "anchor", "selected-menu-item-screen-reader-text", "aria-label", "onSelect"])], 10, _hoisted_1$a);
|
|
16038
16043
|
}
|
|
16039
|
-
const FNavigationMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16044
|
+
const FNavigationMenu = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$8]]);
|
|
16040
16045
|
const EVENTS = ["online", "offline"];
|
|
16041
|
-
const _sfc_main$
|
|
16046
|
+
const _sfc_main$9 = defineComponent({
|
|
16042
16047
|
name: "FOffline",
|
|
16043
16048
|
components: {
|
|
16044
16049
|
FIcon,
|
|
@@ -16086,7 +16091,7 @@ const _sfc_main$8 = defineComponent({
|
|
|
16086
16091
|
}
|
|
16087
16092
|
}
|
|
16088
16093
|
});
|
|
16089
|
-
const _hoisted_1$
|
|
16094
|
+
const _hoisted_1$9 = ["role"];
|
|
16090
16095
|
const _hoisted_2$6 = {
|
|
16091
16096
|
key: 0,
|
|
16092
16097
|
class: "offline"
|
|
@@ -16132,10 +16137,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16132
16137
|
})])) : createCommentVNode("", true), _cache[3] || (_cache[3] = createTextVNode()), withDirectives(createElementVNode("span", {
|
|
16133
16138
|
class: "sr-only",
|
|
16134
16139
|
"aria-hidden": _ctx.shouldNotRead ? "true" : void 0
|
|
16135
|
-
}, "\n Din internetuppkoppling fungerar igen\n ", 8, _hoisted_5$2), [[vShow, _ctx.isOnline]])], 8, _hoisted_1$
|
|
16140
|
+
}, "\n Din internetuppkoppling fungerar igen\n ", 8, _hoisted_5$2), [[vShow, _ctx.isOnline]])], 8, _hoisted_1$9);
|
|
16136
16141
|
}
|
|
16137
|
-
const FOffline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16138
|
-
const _sfc_main$
|
|
16142
|
+
const FOffline = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$7]]);
|
|
16143
|
+
const _sfc_main$8 = defineComponent({
|
|
16139
16144
|
name: "FOutputField",
|
|
16140
16145
|
components: {
|
|
16141
16146
|
FLabel
|
|
@@ -16168,13 +16173,13 @@ const _sfc_main$7 = defineComponent({
|
|
|
16168
16173
|
}
|
|
16169
16174
|
}
|
|
16170
16175
|
});
|
|
16171
|
-
const _hoisted_1$
|
|
16176
|
+
const _hoisted_1$8 = {
|
|
16172
16177
|
class: "output-field"
|
|
16173
16178
|
};
|
|
16174
16179
|
const _hoisted_2$5 = ["id", "for"];
|
|
16175
16180
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16176
16181
|
const _component_f_label = resolveComponent("f-label");
|
|
16177
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16182
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [createVNode(_component_f_label, {
|
|
16178
16183
|
for: _ctx.id
|
|
16179
16184
|
}, createSlots({
|
|
16180
16185
|
default: withCtx(() => [renderSlot(_ctx.$slots, "label")]),
|
|
@@ -16189,8 +16194,8 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16189
16194
|
class: "output-field__output"
|
|
16190
16195
|
}, _ctx.$attrs), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_2$5)]);
|
|
16191
16196
|
}
|
|
16192
|
-
const FOutputField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16193
|
-
const _sfc_main$
|
|
16197
|
+
const FOutputField = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$6]]);
|
|
16198
|
+
const _sfc_main$7 = defineComponent({
|
|
16194
16199
|
name: "FPageHeader",
|
|
16195
16200
|
components: {
|
|
16196
16201
|
ISkipLink
|
|
@@ -16237,7 +16242,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
16237
16242
|
}
|
|
16238
16243
|
}
|
|
16239
16244
|
});
|
|
16240
|
-
const _hoisted_1$
|
|
16245
|
+
const _hoisted_1$7 = {
|
|
16241
16246
|
class: "page-header__root"
|
|
16242
16247
|
};
|
|
16243
16248
|
const _hoisted_2$4 = {
|
|
@@ -16259,7 +16264,7 @@ const _hoisted_6$1 = {
|
|
|
16259
16264
|
};
|
|
16260
16265
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16261
16266
|
const _component_i_skip_link = resolveComponent("i-skip-link");
|
|
16262
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16267
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [_ctx.skipLinkAnchor ? (openBlock(), createElementBlock("nav", _hoisted_2$4, [createVNode(_component_i_skip_link, {
|
|
16263
16268
|
href: _ctx.skipLinkAnchor
|
|
16264
16269
|
}, {
|
|
16265
16270
|
default: withCtx(() => [renderSlot(_ctx.$slots, "skip-link-text")]),
|
|
@@ -16271,7 +16276,306 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16271
16276
|
_: 3
|
|
16272
16277
|
})), _cache[1] || (_cache[1] = createTextVNode()), createElementVNode("div", _hoisted_5$1, [createElementVNode("div", _hoisted_6$1, [renderSlot(_ctx.$slots, "right")])])], 512)]);
|
|
16273
16278
|
}
|
|
16274
|
-
const FPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16279
|
+
const FPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$5]]);
|
|
16280
|
+
const layoutRegister = {};
|
|
16281
|
+
function getLayout(name) {
|
|
16282
|
+
var _layoutRegister$name;
|
|
16283
|
+
return (_layoutRegister$name = layoutRegister[name]) !== null && _layoutRegister$name !== void 0 ? _layoutRegister$name : null;
|
|
16284
|
+
}
|
|
16285
|
+
function setLayout(name, layout) {
|
|
16286
|
+
layoutRegister[name] = layout;
|
|
16287
|
+
}
|
|
16288
|
+
function defineLayout(definition) {
|
|
16289
|
+
return normalizeDefinition(definition);
|
|
16290
|
+
}
|
|
16291
|
+
function registerLayout(definition) {
|
|
16292
|
+
setLayout(definition.name, normalizeDefinition(definition));
|
|
16293
|
+
}
|
|
16294
|
+
function normalizeDefinition(definition) {
|
|
16295
|
+
return {
|
|
16296
|
+
name: definition.name,
|
|
16297
|
+
areas: normalizeAreasDefinition(definition.areas)
|
|
16298
|
+
};
|
|
16299
|
+
}
|
|
16300
|
+
function normalizeAreasDefinition(areas) {
|
|
16301
|
+
return Object.fromEntries(Object.entries(areas).map(([key, area]) => {
|
|
16302
|
+
var _area$scroll;
|
|
16303
|
+
return [key, {
|
|
16304
|
+
attachPanel: area.attachPanel,
|
|
16305
|
+
direction: area.direction,
|
|
16306
|
+
scroll: (_area$scroll = area.scroll) !== null && _area$scroll !== void 0 ? _area$scroll : false
|
|
16307
|
+
}];
|
|
16308
|
+
}));
|
|
16309
|
+
}
|
|
16310
|
+
function _checkPrivateRedeclaration(e, t) {
|
|
16311
|
+
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
16312
|
+
}
|
|
16313
|
+
function _classPrivateFieldInitSpec(e, t, a) {
|
|
16314
|
+
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
16315
|
+
}
|
|
16316
|
+
function _assertClassBrand(e, t, n) {
|
|
16317
|
+
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
16318
|
+
throw new TypeError("Private element is not present on this object");
|
|
16319
|
+
}
|
|
16320
|
+
function _classPrivateFieldGet2(s, a) {
|
|
16321
|
+
return s.get(_assertClassBrand(s, a));
|
|
16322
|
+
}
|
|
16323
|
+
function _classPrivateFieldSet2(s, a, r) {
|
|
16324
|
+
return s.set(_assertClassBrand(s, a), r), r;
|
|
16325
|
+
}
|
|
16326
|
+
const VAR_NAME_AREA = "--f-layout-area";
|
|
16327
|
+
const VAR_NAME_ATTACH_PANEL = "--f-layout-panel";
|
|
16328
|
+
const VAR_NAME_DIRECTION = "--f-layout-direction";
|
|
16329
|
+
registerLayout({
|
|
16330
|
+
name: "simple",
|
|
16331
|
+
areas: {
|
|
16332
|
+
header: {
|
|
16333
|
+
attachPanel: "none",
|
|
16334
|
+
direction: "column"
|
|
16335
|
+
},
|
|
16336
|
+
content: {
|
|
16337
|
+
attachPanel: "none",
|
|
16338
|
+
direction: "column",
|
|
16339
|
+
scroll: true
|
|
16340
|
+
},
|
|
16341
|
+
footer: {
|
|
16342
|
+
attachPanel: "none",
|
|
16343
|
+
direction: "column"
|
|
16344
|
+
}
|
|
16345
|
+
}
|
|
16346
|
+
});
|
|
16347
|
+
registerLayout({
|
|
16348
|
+
name: "left-panel",
|
|
16349
|
+
areas: {
|
|
16350
|
+
header: {
|
|
16351
|
+
attachPanel: "none",
|
|
16352
|
+
direction: "column"
|
|
16353
|
+
},
|
|
16354
|
+
left: {
|
|
16355
|
+
attachPanel: "left",
|
|
16356
|
+
direction: "column"
|
|
16357
|
+
},
|
|
16358
|
+
content: {
|
|
16359
|
+
attachPanel: "none",
|
|
16360
|
+
direction: "column",
|
|
16361
|
+
scroll: true
|
|
16362
|
+
},
|
|
16363
|
+
footer: {
|
|
16364
|
+
attachPanel: "none",
|
|
16365
|
+
direction: "column"
|
|
16366
|
+
}
|
|
16367
|
+
}
|
|
16368
|
+
});
|
|
16369
|
+
registerLayout({
|
|
16370
|
+
name: "right-panel",
|
|
16371
|
+
areas: {
|
|
16372
|
+
header: {
|
|
16373
|
+
attachPanel: "none",
|
|
16374
|
+
direction: "column"
|
|
16375
|
+
},
|
|
16376
|
+
right: {
|
|
16377
|
+
attachPanel: "right",
|
|
16378
|
+
direction: "column"
|
|
16379
|
+
},
|
|
16380
|
+
content: {
|
|
16381
|
+
attachPanel: "none",
|
|
16382
|
+
direction: "column",
|
|
16383
|
+
scroll: true
|
|
16384
|
+
},
|
|
16385
|
+
footer: {
|
|
16386
|
+
attachPanel: "none",
|
|
16387
|
+
direction: "column"
|
|
16388
|
+
}
|
|
16389
|
+
}
|
|
16390
|
+
});
|
|
16391
|
+
registerLayout({
|
|
16392
|
+
name: "three-column",
|
|
16393
|
+
areas: {
|
|
16394
|
+
header: {
|
|
16395
|
+
attachPanel: "top",
|
|
16396
|
+
direction: "column"
|
|
16397
|
+
},
|
|
16398
|
+
left: {
|
|
16399
|
+
attachPanel: "left",
|
|
16400
|
+
direction: "column"
|
|
16401
|
+
},
|
|
16402
|
+
right: {
|
|
16403
|
+
attachPanel: "right",
|
|
16404
|
+
direction: "column"
|
|
16405
|
+
},
|
|
16406
|
+
content: {
|
|
16407
|
+
attachPanel: "none",
|
|
16408
|
+
direction: "column",
|
|
16409
|
+
scroll: true
|
|
16410
|
+
},
|
|
16411
|
+
footer: {
|
|
16412
|
+
attachPanel: "bottom",
|
|
16413
|
+
direction: "column"
|
|
16414
|
+
}
|
|
16415
|
+
}
|
|
16416
|
+
});
|
|
16417
|
+
const styleContent = '.page-layout {\n display: grid;\n height: 100cqh;\n width: min(100%, 100cqw);\n\n &[part~="simple"] {\n grid-template:\n "header" min-content\n "content" 1fr\n "footer" min-content\n / 1fr;\n }\n\n &[part~="left-panel"] {\n grid-template:\n "header header" min-content\n "left content" 1fr\n "footer footer" min-content\n / min-content 1fr;\n }\n\n &[part~="right-panel"] {\n grid-template:\n "header header" min-content\n "content right" 1fr\n "footer footer" min-content\n / 1fr min-content;\n }\n\n &[part~="three-column"] {\n grid-template:\n "header header header" min-content\n "left content right" 1fr\n "footer footer footer" min-content\n / min-content 1fr min-content;\n }\n}\n\n.page-layout__area {\n display: flex;\n position: relative;\n\n &[data-direction="column"] {\n flex-direction: column;\n }\n\n &[data-direction="row"] {\n flex-direction: row;\n }\n\n &[data-scroll] {\n overflow-y: auto;\n }\n\n &:empty {\n display: none;\n }\n}\n\n:host ::slotted(*) {\n display: contents;\n}\n';
|
|
16418
|
+
const stubLayout = defineLayout({
|
|
16419
|
+
name: "",
|
|
16420
|
+
areas: {}
|
|
16421
|
+
});
|
|
16422
|
+
function getSlotNames(element) {
|
|
16423
|
+
return Array.from(element.querySelectorAll(":scope > [slot]"), (it) => it.slot);
|
|
16424
|
+
}
|
|
16425
|
+
var _wrapper = /* @__PURE__ */ new WeakMap();
|
|
16426
|
+
var _elements = /* @__PURE__ */ new WeakMap();
|
|
16427
|
+
var _layout = /* @__PURE__ */ new WeakMap();
|
|
16428
|
+
var _observer = /* @__PURE__ */ new WeakMap();
|
|
16429
|
+
var _slotNames = /* @__PURE__ */ new WeakMap();
|
|
16430
|
+
class PageLayout extends HTMLElement {
|
|
16431
|
+
constructor() {
|
|
16432
|
+
super();
|
|
16433
|
+
_classPrivateFieldInitSpec(this, _wrapper, void 0);
|
|
16434
|
+
_classPrivateFieldInitSpec(this, _elements, {});
|
|
16435
|
+
_classPrivateFieldInitSpec(this, _layout, stubLayout);
|
|
16436
|
+
_classPrivateFieldInitSpec(this, _observer, void 0);
|
|
16437
|
+
_classPrivateFieldInitSpec(this, _slotNames, []);
|
|
16438
|
+
_classPrivateFieldSet2(_wrapper, this, document.createElement("div"));
|
|
16439
|
+
_classPrivateFieldSet2(_observer, this, new MutationObserver(() => {
|
|
16440
|
+
this.slotNames = getSlotNames(this);
|
|
16441
|
+
}));
|
|
16442
|
+
}
|
|
16443
|
+
/* eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- this one is better to infer or each attribute would have to be duplicated */
|
|
16444
|
+
static get observedAttributes() {
|
|
16445
|
+
return ["layout"];
|
|
16446
|
+
}
|
|
16447
|
+
connectedCallback() {
|
|
16448
|
+
this.slotNames = getSlotNames(this);
|
|
16449
|
+
_classPrivateFieldGet2(_observer, this).observe(this, {
|
|
16450
|
+
childList: true
|
|
16451
|
+
});
|
|
16452
|
+
const shadow = this.attachShadow({
|
|
16453
|
+
mode: "open"
|
|
16454
|
+
});
|
|
16455
|
+
const style = document.createElement("style");
|
|
16456
|
+
style.textContent = styleContent;
|
|
16457
|
+
shadow.append(style);
|
|
16458
|
+
shadow.append(_classPrivateFieldGet2(_wrapper, this));
|
|
16459
|
+
}
|
|
16460
|
+
disconnectedCallback() {
|
|
16461
|
+
_classPrivateFieldGet2(_observer, this).disconnect();
|
|
16462
|
+
}
|
|
16463
|
+
attributeChangedCallback(name, _oldValue, value) {
|
|
16464
|
+
switch (name) {
|
|
16465
|
+
case "layout": {
|
|
16466
|
+
var _getLayout;
|
|
16467
|
+
const part = ["grid", value].filter(Boolean).join(" ");
|
|
16468
|
+
_classPrivateFieldGet2(_wrapper, this).className = "page-layout";
|
|
16469
|
+
_classPrivateFieldGet2(_wrapper, this).setAttribute("part", part);
|
|
16470
|
+
_classPrivateFieldSet2(_layout, this, (_getLayout = getLayout(value)) !== null && _getLayout !== void 0 ? _getLayout : stubLayout);
|
|
16471
|
+
this.updateSlotElements();
|
|
16472
|
+
break;
|
|
16473
|
+
}
|
|
16474
|
+
}
|
|
16475
|
+
}
|
|
16476
|
+
get slotNames() {
|
|
16477
|
+
return _classPrivateFieldGet2(_slotNames, this);
|
|
16478
|
+
}
|
|
16479
|
+
set slotNames(slots) {
|
|
16480
|
+
_classPrivateFieldSet2(_slotNames, this, slots);
|
|
16481
|
+
this.updateSlotElements();
|
|
16482
|
+
}
|
|
16483
|
+
updateSlotElements() {
|
|
16484
|
+
const wrapper = _classPrivateFieldGet2(_wrapper, this);
|
|
16485
|
+
const layout = _classPrivateFieldGet2(_layout, this);
|
|
16486
|
+
for (const slot of _classPrivateFieldGet2(_slotNames, this)) {
|
|
16487
|
+
const existing = _classPrivateFieldGet2(_elements, this)[slot];
|
|
16488
|
+
const element = existing !== null && existing !== void 0 ? existing : document.createElement("div");
|
|
16489
|
+
const area = layout.areas[slot];
|
|
16490
|
+
if (!area) {
|
|
16491
|
+
continue;
|
|
16492
|
+
}
|
|
16493
|
+
const {
|
|
16494
|
+
attachPanel: attach,
|
|
16495
|
+
direction,
|
|
16496
|
+
scroll
|
|
16497
|
+
} = area;
|
|
16498
|
+
element.className = "";
|
|
16499
|
+
element.classList.add("page-layout__area");
|
|
16500
|
+
element.setAttribute("part", ["area", slot].join(" "));
|
|
16501
|
+
element.setAttribute("data-direction", direction);
|
|
16502
|
+
if (scroll) {
|
|
16503
|
+
element.setAttribute("data-scroll", "true");
|
|
16504
|
+
} else {
|
|
16505
|
+
element.removeAttribute("data-scroll");
|
|
16506
|
+
}
|
|
16507
|
+
element.style.setProperty("grid-area", slot);
|
|
16508
|
+
element.style.setProperty(VAR_NAME_AREA, `"${slot}"`);
|
|
16509
|
+
element.style.setProperty(VAR_NAME_ATTACH_PANEL, `"${attach}"`);
|
|
16510
|
+
element.style.setProperty(VAR_NAME_DIRECTION, `"${direction}"`);
|
|
16511
|
+
if (!existing) {
|
|
16512
|
+
const slotElement = document.createElement("slot");
|
|
16513
|
+
slotElement.name = slot;
|
|
16514
|
+
element.append(slotElement);
|
|
16515
|
+
wrapper.append(element);
|
|
16516
|
+
_classPrivateFieldGet2(_elements, this)[slot] = element;
|
|
16517
|
+
}
|
|
16518
|
+
}
|
|
16519
|
+
}
|
|
16520
|
+
}
|
|
16521
|
+
const _hoisted_1$6 = ["slot"];
|
|
16522
|
+
const tagName = `ce-page-layout`;
|
|
16523
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
16524
|
+
__name: "FPageLayout",
|
|
16525
|
+
props: {
|
|
16526
|
+
layout: {}
|
|
16527
|
+
},
|
|
16528
|
+
setup(__props) {
|
|
16529
|
+
const slots = useSlots();
|
|
16530
|
+
const slotNames = computed(() => {
|
|
16531
|
+
return Object.keys(slots);
|
|
16532
|
+
});
|
|
16533
|
+
onMounted(() => {
|
|
16534
|
+
if (!customElements.get(tagName)) {
|
|
16535
|
+
customElements.define(tagName, PageLayout);
|
|
16536
|
+
}
|
|
16537
|
+
});
|
|
16538
|
+
return (_ctx, _cache) => {
|
|
16539
|
+
return openBlock(), createBlock(resolveDynamicComponent(tagName), {
|
|
16540
|
+
layout: _ctx.layout
|
|
16541
|
+
}, {
|
|
16542
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(slotNames.value, (slot) => {
|
|
16543
|
+
return openBlock(), createElementBlock("div", {
|
|
16544
|
+
key: slot,
|
|
16545
|
+
slot
|
|
16546
|
+
}, [renderSlot(_ctx.$slots, slot)], 8, _hoisted_1$6);
|
|
16547
|
+
}), 128))]),
|
|
16548
|
+
_: 3
|
|
16549
|
+
}, 8, ["layout"]);
|
|
16550
|
+
};
|
|
16551
|
+
}
|
|
16552
|
+
});
|
|
16553
|
+
function getProperty(style, key) {
|
|
16554
|
+
const value = style.getPropertyValue(key);
|
|
16555
|
+
if (value === "") {
|
|
16556
|
+
return null;
|
|
16557
|
+
} else {
|
|
16558
|
+
return JSON.parse(value);
|
|
16559
|
+
}
|
|
16560
|
+
}
|
|
16561
|
+
function useAreaData(element) {
|
|
16562
|
+
const area = ref(null);
|
|
16563
|
+
const attachPanel = ref(null);
|
|
16564
|
+
const direction = ref(null);
|
|
16565
|
+
watchEffect(() => {
|
|
16566
|
+
if (element.value) {
|
|
16567
|
+
const style = getComputedStyle(element.value);
|
|
16568
|
+
area.value = getProperty(style, VAR_NAME_AREA);
|
|
16569
|
+
attachPanel.value = getProperty(style, VAR_NAME_ATTACH_PANEL);
|
|
16570
|
+
direction.value = getProperty(style, VAR_NAME_DIRECTION);
|
|
16571
|
+
}
|
|
16572
|
+
});
|
|
16573
|
+
return {
|
|
16574
|
+
area,
|
|
16575
|
+
attachPanel,
|
|
16576
|
+
direction
|
|
16577
|
+
};
|
|
16578
|
+
}
|
|
16275
16579
|
const _hoisted_1$5 = {
|
|
16276
16580
|
class: "progress"
|
|
16277
16581
|
};
|
|
@@ -17317,20 +17621,20 @@ export {
|
|
|
17317
17621
|
ErrorPlugin,
|
|
17318
17622
|
ErrorViewData,
|
|
17319
17623
|
EventBus,
|
|
17320
|
-
_sfc_main$
|
|
17321
|
-
_sfc_main$
|
|
17322
|
-
_sfc_main$
|
|
17624
|
+
_sfc_main$1c as FBadge,
|
|
17625
|
+
_sfc_main$z as FBankAccountNumberTextField,
|
|
17626
|
+
_sfc_main$y as FBankgiroTextField,
|
|
17323
17627
|
FCalendar,
|
|
17324
17628
|
FCalendarDay,
|
|
17325
|
-
_sfc_main$
|
|
17629
|
+
_sfc_main$X as FCard,
|
|
17326
17630
|
FCheckboxField,
|
|
17327
|
-
_sfc_main$
|
|
17631
|
+
_sfc_main$x as FClearingnumberTextField,
|
|
17328
17632
|
FConfirmModal,
|
|
17329
17633
|
FContextMenu,
|
|
17330
17634
|
FCrudButton,
|
|
17331
|
-
_sfc_main$
|
|
17332
|
-
_sfc_main$
|
|
17333
|
-
_sfc_main$
|
|
17635
|
+
_sfc_main$J as FCrudDataset,
|
|
17636
|
+
_sfc_main$B as FCurrencyTextField,
|
|
17637
|
+
_sfc_main$p as FDataTable,
|
|
17334
17638
|
FDatepickerField,
|
|
17335
17639
|
FDialogueTree,
|
|
17336
17640
|
FEmailTextField,
|
|
@@ -17345,34 +17649,35 @@ export {
|
|
|
17345
17649
|
FFormModal,
|
|
17346
17650
|
FValidationFormAction as FFormModalAction,
|
|
17347
17651
|
FIcon,
|
|
17348
|
-
_sfc_main$
|
|
17652
|
+
_sfc_main$i as FInteractiveTable,
|
|
17349
17653
|
FKUIConfigButtonOrder,
|
|
17350
17654
|
FLabel,
|
|
17351
17655
|
FLayoutApplicationTemplate,
|
|
17352
17656
|
FLayoutLeftPanel,
|
|
17353
17657
|
FLayoutRightPanel,
|
|
17354
17658
|
FLayoutRightPanelService,
|
|
17355
|
-
_sfc_main$
|
|
17659
|
+
_sfc_main$e as FList,
|
|
17356
17660
|
FLoader,
|
|
17357
|
-
_sfc_main$
|
|
17661
|
+
_sfc_main$c as FLogo,
|
|
17358
17662
|
FMessageBox,
|
|
17359
17663
|
FModal,
|
|
17360
17664
|
FNavigationMenu,
|
|
17361
|
-
_sfc_main$
|
|
17665
|
+
_sfc_main$w as FNumericTextField,
|
|
17362
17666
|
FOffline,
|
|
17363
|
-
_sfc_main$
|
|
17667
|
+
_sfc_main$r as FOrganisationsnummerTextField,
|
|
17364
17668
|
FOutputField,
|
|
17365
17669
|
FPageHeader,
|
|
17366
|
-
_sfc_main$
|
|
17367
|
-
_sfc_main$
|
|
17670
|
+
_sfc_main$6 as FPageLayout,
|
|
17671
|
+
_sfc_main$s as FPercentTextField,
|
|
17672
|
+
_sfc_main$v as FPersonnummerTextField,
|
|
17368
17673
|
FPhoneTextField,
|
|
17369
|
-
_sfc_main$
|
|
17370
|
-
_sfc_main$
|
|
17674
|
+
_sfc_main$u as FPlusgiroTextField,
|
|
17675
|
+
_sfc_main$t as FPostalCodeTextField,
|
|
17371
17676
|
_sfc_main$5 as FProgressbar,
|
|
17372
17677
|
FRadioField,
|
|
17373
17678
|
FSearchTextField,
|
|
17374
17679
|
FSelectField,
|
|
17375
|
-
_sfc_main$
|
|
17680
|
+
_sfc_main$q as FSortFilterDataset,
|
|
17376
17681
|
FSortFilterDatasetInjected,
|
|
17377
17682
|
FStaticField,
|
|
17378
17683
|
FTableColumn,
|
|
@@ -17393,13 +17698,13 @@ export {
|
|
|
17393
17698
|
ICalendarMonth,
|
|
17394
17699
|
ICalendarMonthGrid,
|
|
17395
17700
|
ICalendarNavbar,
|
|
17396
|
-
_sfc_main$
|
|
17397
|
-
_sfc_main$
|
|
17701
|
+
_sfc_main$P as IComboboxDropdown,
|
|
17702
|
+
_sfc_main$O as IComboboxToggleButton,
|
|
17398
17703
|
IFlex,
|
|
17399
17704
|
IFlexItem,
|
|
17400
17705
|
IPopup,
|
|
17401
17706
|
IPopupError,
|
|
17402
|
-
_sfc_main$
|
|
17707
|
+
_sfc_main$T as IPopupListbox,
|
|
17403
17708
|
IPopupMenu,
|
|
17404
17709
|
ISkipLink,
|
|
17405
17710
|
FValidationForm as IValidationForm,
|
|
@@ -17448,10 +17753,12 @@ export {
|
|
|
17448
17753
|
refIsHTMLElementArray,
|
|
17449
17754
|
refIsVue,
|
|
17450
17755
|
refIsVueArray,
|
|
17756
|
+
registerLayout,
|
|
17451
17757
|
renderSlotText,
|
|
17452
17758
|
setRunningContext,
|
|
17453
17759
|
tableScrollClasses,
|
|
17454
17760
|
tooltipAttachTo,
|
|
17761
|
+
useAreaData,
|
|
17455
17762
|
useCombobox,
|
|
17456
17763
|
useModal,
|
|
17457
17764
|
useSlotUtils,
|