fds-vue-core 6.2.8 → 6.2.11
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/README.md +6 -7
- package/dist/fds-vue-core.cjs.js +198 -545
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +198 -545
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -2
- package/src/components/FdsWeekCalendar/FdsWeekCalendar.vue +11 -4
- package/src/components/FdsWeekCalendar/WeekDay.vue +5 -3
- package/src/components/FdsWeekCalendar/weekCalendar.utils.ts +7 -15
- package/src/components/FdsWizard/FdsWizard.vue +2 -1
- package/src/components/FdsWizard/types.ts +1 -0
- package/src/index.ts +12 -1
- package/src/lang/en.json +6 -0
- package/src/lang/sv.json +6 -0
- package/src/plugin/i18n.ts +15 -0
- package/src/plugin/useFdsI18n.ts +40 -0
package/dist/fds-vue-core.es.js
CHANGED
|
@@ -1005,7 +1005,7 @@ const _hoisted_4$c = {
|
|
|
1005
1005
|
const _hoisted_5$b = { class: "flex items-start justify-between gap-4" };
|
|
1006
1006
|
const _hoisted_6$8 = { class: "m-0 text-base font-main font-bold tracking-wide" };
|
|
1007
1007
|
const _hoisted_7$8 = { class: "flex items-start gap-3" };
|
|
1008
|
-
const _hoisted_8$
|
|
1008
|
+
const _hoisted_8$5 = {
|
|
1009
1009
|
key: 1,
|
|
1010
1010
|
class: "mb-0-last-child"
|
|
1011
1011
|
};
|
|
@@ -1064,7 +1064,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1064
1064
|
])
|
|
1065
1065
|
])
|
|
1066
1066
|
])) : createCommentVNode("", true),
|
|
1067
|
-
unref(hasSlot) ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
1067
|
+
unref(hasSlot) ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
1068
1068
|
renderSlot(_ctx.$slots, "default")
|
|
1069
1069
|
])) : createCommentVNode("", true)
|
|
1070
1070
|
])
|
|
@@ -3000,7 +3000,13 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
3000
3000
|
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
3001
3001
|
function mergeConfig$1(config1, config2) {
|
|
3002
3002
|
config2 = config2 || {};
|
|
3003
|
-
const config =
|
|
3003
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
3004
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
3005
|
+
value: Object.prototype.hasOwnProperty,
|
|
3006
|
+
enumerable: false,
|
|
3007
|
+
writable: true,
|
|
3008
|
+
configurable: true
|
|
3009
|
+
});
|
|
3004
3010
|
function getMergedValue(target, source, prop, caseless) {
|
|
3005
3011
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
3006
3012
|
return utils$1.merge.call({ caseless }, target, source);
|
|
@@ -3064,6 +3070,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
3064
3070
|
httpsAgent: defaultToConfig2,
|
|
3065
3071
|
cancelToken: defaultToConfig2,
|
|
3066
3072
|
socketPath: defaultToConfig2,
|
|
3073
|
+
allowedSocketPaths: defaultToConfig2,
|
|
3067
3074
|
responseEncoding: defaultToConfig2,
|
|
3068
3075
|
validateStatus: mergeDirectKeys,
|
|
3069
3076
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
@@ -3080,10 +3087,19 @@ function mergeConfig$1(config1, config2) {
|
|
|
3080
3087
|
}
|
|
3081
3088
|
const resolveConfig = (config) => {
|
|
3082
3089
|
const newConfig = mergeConfig$1({}, config);
|
|
3083
|
-
|
|
3090
|
+
const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
3091
|
+
const data = own2("data");
|
|
3092
|
+
let withXSRFToken = own2("withXSRFToken");
|
|
3093
|
+
const xsrfHeaderName = own2("xsrfHeaderName");
|
|
3094
|
+
const xsrfCookieName = own2("xsrfCookieName");
|
|
3095
|
+
let headers = own2("headers");
|
|
3096
|
+
const auth = own2("auth");
|
|
3097
|
+
const baseURL = own2("baseURL");
|
|
3098
|
+
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
3099
|
+
const url = own2("url");
|
|
3084
3100
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
3085
3101
|
newConfig.url = buildURL(
|
|
3086
|
-
buildFullPath(
|
|
3102
|
+
buildFullPath(baseURL, url, allowAbsoluteUrls),
|
|
3087
3103
|
config.params,
|
|
3088
3104
|
config.paramsSerializer
|
|
3089
3105
|
);
|
|
@@ -3707,7 +3723,7 @@ function dispatchRequest(config) {
|
|
|
3707
3723
|
}
|
|
3708
3724
|
);
|
|
3709
3725
|
}
|
|
3710
|
-
const VERSION$1 = "1.15.
|
|
3726
|
+
const VERSION$1 = "1.15.2";
|
|
3711
3727
|
const validators$1 = {};
|
|
3712
3728
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
3713
3729
|
validators$1[type] = function validator2(thing) {
|
|
@@ -3752,7 +3768,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
3752
3768
|
let i = keys.length;
|
|
3753
3769
|
while (i-- > 0) {
|
|
3754
3770
|
const opt = keys[i];
|
|
3755
|
-
const validator2 = schema[opt];
|
|
3771
|
+
const validator2 = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
3756
3772
|
if (validator2) {
|
|
3757
3773
|
const value = options[opt];
|
|
3758
3774
|
const result = value === void 0 || validator2(value, opt, options);
|
|
@@ -8969,7 +8985,7 @@ const _hoisted_4$a = { class: "w-full text-left text-xs border-collapse" };
|
|
|
8969
8985
|
const _hoisted_5$a = ["onClick"];
|
|
8970
8986
|
const _hoisted_6$7 = { class: "py-1.5 px-3 font-mono break-all" };
|
|
8971
8987
|
const _hoisted_7$7 = { class: "py-1.5 px-3 font-mono whitespace-pre-wrap break-all" };
|
|
8972
|
-
const _hoisted_8$
|
|
8988
|
+
const _hoisted_8$4 = { class: "mt-4 space-y-2" };
|
|
8973
8989
|
const _hoisted_9$3 = { class: "flex flex-col gap-1" };
|
|
8974
8990
|
const _hoisted_10$2 = { class: "flex flex-col gap-1" };
|
|
8975
8991
|
const _hoisted_11$2 = {
|
|
@@ -9279,7 +9295,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
9279
9295
|
])
|
|
9280
9296
|
])
|
|
9281
9297
|
])),
|
|
9282
|
-
createElementVNode("div", _hoisted_8$
|
|
9298
|
+
createElementVNode("div", _hoisted_8$4, [
|
|
9283
9299
|
createElementVNode("div", _hoisted_9$3, [
|
|
9284
9300
|
_cache[13] || (_cache[13] = createElementVNode("label", { class: "text-xs font-semibold" }, "Nyckel", -1)),
|
|
9285
9301
|
withDirectives(createElementVNode("input", {
|
|
@@ -10082,7 +10098,7 @@ const _hoisted_6$5 = {
|
|
|
10082
10098
|
class: "flex justify-center p-4"
|
|
10083
10099
|
};
|
|
10084
10100
|
const _hoisted_7$5 = ["id", "onMouseup"];
|
|
10085
|
-
const _hoisted_8$
|
|
10101
|
+
const _hoisted_8$3 = ["id", "onKeydown"];
|
|
10086
10102
|
const _hoisted_9$2 = ["for", "innerHTML"];
|
|
10087
10103
|
const _hoisted_10$1 = {
|
|
10088
10104
|
key: 2,
|
|
@@ -10574,7 +10590,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
10574
10590
|
withKeys((e) => handleClick(e, item), ["enter"]),
|
|
10575
10591
|
withKeys(withModifiers((e) => handleClick(e, item), ["prevent"]), ["space"])
|
|
10576
10592
|
]
|
|
10577
|
-
}, null, 40, _hoisted_8$
|
|
10593
|
+
}, null, 40, _hoisted_8$3),
|
|
10578
10594
|
createElementVNode("label", {
|
|
10579
10595
|
for: `search-select-radio-${index}`,
|
|
10580
10596
|
class: normalizeClass([labelClasses.value, listItemClasses.value]),
|
|
@@ -11255,7 +11271,7 @@ const _hoisted_4$6 = {
|
|
|
11255
11271
|
const _hoisted_5$6 = ["id", "role", "onMouseup"];
|
|
11256
11272
|
const _hoisted_6$4 = ["innerHTML"];
|
|
11257
11273
|
const _hoisted_7$4 = ["onClick"];
|
|
11258
|
-
const _hoisted_8$
|
|
11274
|
+
const _hoisted_8$2 = ["innerHTML"];
|
|
11259
11275
|
const _hoisted_9$1 = ["innerHTML"];
|
|
11260
11276
|
const _hoisted_10 = {
|
|
11261
11277
|
key: 0,
|
|
@@ -12005,7 +12021,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
12005
12021
|
createElementVNode("span", {
|
|
12006
12022
|
class: "min-w-0 flex-1",
|
|
12007
12023
|
innerHTML: handleMatchingString(item)
|
|
12008
|
-
}, null, 8, _hoisted_8$
|
|
12024
|
+
}, null, 8, _hoisted_8$2)
|
|
12009
12025
|
]),
|
|
12010
12026
|
_: 2
|
|
12011
12027
|
}, 1032, ["id", "name", "checked", "onChange"])) : (openBlock(), createBlock(_sfc_main$i, {
|
|
@@ -12481,7 +12497,7 @@ const _hoisted_6$3 = {
|
|
|
12481
12497
|
class: "items-center max-h-[28px]"
|
|
12482
12498
|
};
|
|
12483
12499
|
const _hoisted_7$3 = { class: "flex flex-col gap-2" };
|
|
12484
|
-
const _hoisted_8$
|
|
12500
|
+
const _hoisted_8$1 = ["onClick"];
|
|
12485
12501
|
const _hoisted_9 = { key: 0 };
|
|
12486
12502
|
const popoverWidth = 327;
|
|
12487
12503
|
const popoverHeight = 80;
|
|
@@ -12778,7 +12794,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
12778
12794
|
onBlur: closePopover,
|
|
12779
12795
|
label: option.label
|
|
12780
12796
|
}, null, 8, ["modelValue", "id", "name", "value", "label"])
|
|
12781
|
-
], 8, _hoisted_8$
|
|
12797
|
+
], 8, _hoisted_8$1);
|
|
12782
12798
|
}), 64))
|
|
12783
12799
|
]),
|
|
12784
12800
|
createVNode(_sfc_main$I, mergeProps({
|
|
@@ -13197,7 +13213,7 @@ function startOfYear(date, options) {
|
|
|
13197
13213
|
date_.setHours(0, 0, 0, 0);
|
|
13198
13214
|
return date_;
|
|
13199
13215
|
}
|
|
13200
|
-
const formatDistanceLocale
|
|
13216
|
+
const formatDistanceLocale = {
|
|
13201
13217
|
lessThanXSeconds: {
|
|
13202
13218
|
one: "less than a second",
|
|
13203
13219
|
other: "less than {{count}} seconds"
|
|
@@ -13260,9 +13276,9 @@ const formatDistanceLocale$1 = {
|
|
|
13260
13276
|
other: "almost {{count}} years"
|
|
13261
13277
|
}
|
|
13262
13278
|
};
|
|
13263
|
-
const formatDistance
|
|
13279
|
+
const formatDistance = (token, count, options) => {
|
|
13264
13280
|
let result;
|
|
13265
|
-
const tokenValue = formatDistanceLocale
|
|
13281
|
+
const tokenValue = formatDistanceLocale[token];
|
|
13266
13282
|
if (typeof tokenValue === "string") {
|
|
13267
13283
|
result = tokenValue;
|
|
13268
13284
|
} else if (count === 1) {
|
|
@@ -13286,39 +13302,39 @@ function buildFormatLongFn(args) {
|
|
|
13286
13302
|
return format2;
|
|
13287
13303
|
};
|
|
13288
13304
|
}
|
|
13289
|
-
const dateFormats
|
|
13305
|
+
const dateFormats = {
|
|
13290
13306
|
full: "EEEE, MMMM do, y",
|
|
13291
13307
|
long: "MMMM do, y",
|
|
13292
13308
|
medium: "MMM d, y",
|
|
13293
13309
|
short: "MM/dd/yyyy"
|
|
13294
13310
|
};
|
|
13295
|
-
const timeFormats
|
|
13311
|
+
const timeFormats = {
|
|
13296
13312
|
full: "h:mm:ss a zzzz",
|
|
13297
13313
|
long: "h:mm:ss a z",
|
|
13298
13314
|
medium: "h:mm:ss a",
|
|
13299
13315
|
short: "h:mm a"
|
|
13300
13316
|
};
|
|
13301
|
-
const dateTimeFormats
|
|
13317
|
+
const dateTimeFormats = {
|
|
13302
13318
|
full: "{{date}} 'at' {{time}}",
|
|
13303
13319
|
long: "{{date}} 'at' {{time}}",
|
|
13304
13320
|
medium: "{{date}}, {{time}}",
|
|
13305
13321
|
short: "{{date}}, {{time}}"
|
|
13306
13322
|
};
|
|
13307
|
-
const formatLong
|
|
13323
|
+
const formatLong = {
|
|
13308
13324
|
date: buildFormatLongFn({
|
|
13309
|
-
formats: dateFormats
|
|
13325
|
+
formats: dateFormats,
|
|
13310
13326
|
defaultWidth: "full"
|
|
13311
13327
|
}),
|
|
13312
13328
|
time: buildFormatLongFn({
|
|
13313
|
-
formats: timeFormats
|
|
13329
|
+
formats: timeFormats,
|
|
13314
13330
|
defaultWidth: "full"
|
|
13315
13331
|
}),
|
|
13316
13332
|
dateTime: buildFormatLongFn({
|
|
13317
|
-
formats: dateTimeFormats
|
|
13333
|
+
formats: dateTimeFormats,
|
|
13318
13334
|
defaultWidth: "full"
|
|
13319
13335
|
})
|
|
13320
13336
|
};
|
|
13321
|
-
const formatRelativeLocale
|
|
13337
|
+
const formatRelativeLocale = {
|
|
13322
13338
|
lastWeek: "'last' eeee 'at' p",
|
|
13323
13339
|
yesterday: "'yesterday at' p",
|
|
13324
13340
|
today: "'today at' p",
|
|
@@ -13326,7 +13342,7 @@ const formatRelativeLocale$1 = {
|
|
|
13326
13342
|
nextWeek: "eeee 'at' p",
|
|
13327
13343
|
other: "P"
|
|
13328
13344
|
};
|
|
13329
|
-
const formatRelative
|
|
13345
|
+
const formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
|
|
13330
13346
|
function buildLocalizeFn(args) {
|
|
13331
13347
|
return (value, options) => {
|
|
13332
13348
|
const context = options?.context ? String(options.context) : "standalone";
|
|
@@ -13344,17 +13360,17 @@ function buildLocalizeFn(args) {
|
|
|
13344
13360
|
return valuesArray[index];
|
|
13345
13361
|
};
|
|
13346
13362
|
}
|
|
13347
|
-
const eraValues
|
|
13363
|
+
const eraValues = {
|
|
13348
13364
|
narrow: ["B", "A"],
|
|
13349
13365
|
abbreviated: ["BC", "AD"],
|
|
13350
13366
|
wide: ["Before Christ", "Anno Domini"]
|
|
13351
13367
|
};
|
|
13352
|
-
const quarterValues
|
|
13368
|
+
const quarterValues = {
|
|
13353
13369
|
narrow: ["1", "2", "3", "4"],
|
|
13354
13370
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
13355
13371
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
13356
13372
|
};
|
|
13357
|
-
const monthValues
|
|
13373
|
+
const monthValues = {
|
|
13358
13374
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
13359
13375
|
abbreviated: [
|
|
13360
13376
|
"Jan",
|
|
@@ -13385,7 +13401,7 @@ const monthValues$1 = {
|
|
|
13385
13401
|
"December"
|
|
13386
13402
|
]
|
|
13387
13403
|
};
|
|
13388
|
-
const dayValues
|
|
13404
|
+
const dayValues = {
|
|
13389
13405
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
13390
13406
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
13391
13407
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -13399,7 +13415,7 @@ const dayValues$1 = {
|
|
|
13399
13415
|
"Saturday"
|
|
13400
13416
|
]
|
|
13401
13417
|
};
|
|
13402
|
-
const dayPeriodValues
|
|
13418
|
+
const dayPeriodValues = {
|
|
13403
13419
|
narrow: {
|
|
13404
13420
|
am: "a",
|
|
13405
13421
|
pm: "p",
|
|
@@ -13431,7 +13447,7 @@ const dayPeriodValues$1 = {
|
|
|
13431
13447
|
night: "night"
|
|
13432
13448
|
}
|
|
13433
13449
|
};
|
|
13434
|
-
const formattingDayPeriodValues
|
|
13450
|
+
const formattingDayPeriodValues = {
|
|
13435
13451
|
narrow: {
|
|
13436
13452
|
am: "a",
|
|
13437
13453
|
pm: "p",
|
|
@@ -13463,7 +13479,7 @@ const formattingDayPeriodValues$1 = {
|
|
|
13463
13479
|
night: "at night"
|
|
13464
13480
|
}
|
|
13465
13481
|
};
|
|
13466
|
-
const ordinalNumber
|
|
13482
|
+
const ordinalNumber = (dirtyNumber, _options) => {
|
|
13467
13483
|
const number = Number(dirtyNumber);
|
|
13468
13484
|
const rem100 = number % 100;
|
|
13469
13485
|
if (rem100 > 20 || rem100 < 10) {
|
|
@@ -13478,29 +13494,29 @@ const ordinalNumber$1 = (dirtyNumber, _options) => {
|
|
|
13478
13494
|
}
|
|
13479
13495
|
return number + "th";
|
|
13480
13496
|
};
|
|
13481
|
-
const localize
|
|
13482
|
-
ordinalNumber
|
|
13497
|
+
const localize = {
|
|
13498
|
+
ordinalNumber,
|
|
13483
13499
|
era: buildLocalizeFn({
|
|
13484
|
-
values: eraValues
|
|
13500
|
+
values: eraValues,
|
|
13485
13501
|
defaultWidth: "wide"
|
|
13486
13502
|
}),
|
|
13487
13503
|
quarter: buildLocalizeFn({
|
|
13488
|
-
values: quarterValues
|
|
13504
|
+
values: quarterValues,
|
|
13489
13505
|
defaultWidth: "wide",
|
|
13490
13506
|
argumentCallback: (quarter) => quarter - 1
|
|
13491
13507
|
}),
|
|
13492
13508
|
month: buildLocalizeFn({
|
|
13493
|
-
values: monthValues
|
|
13509
|
+
values: monthValues,
|
|
13494
13510
|
defaultWidth: "wide"
|
|
13495
13511
|
}),
|
|
13496
13512
|
day: buildLocalizeFn({
|
|
13497
|
-
values: dayValues
|
|
13513
|
+
values: dayValues,
|
|
13498
13514
|
defaultWidth: "wide"
|
|
13499
13515
|
}),
|
|
13500
13516
|
dayPeriod: buildLocalizeFn({
|
|
13501
|
-
values: dayPeriodValues
|
|
13517
|
+
values: dayPeriodValues,
|
|
13502
13518
|
defaultWidth: "wide",
|
|
13503
|
-
formattingValues: formattingDayPeriodValues
|
|
13519
|
+
formattingValues: formattingDayPeriodValues,
|
|
13504
13520
|
defaultFormattingWidth: "wide"
|
|
13505
13521
|
})
|
|
13506
13522
|
};
|
|
@@ -13557,30 +13573,30 @@ function buildMatchPatternFn(args) {
|
|
|
13557
13573
|
return { value, rest };
|
|
13558
13574
|
};
|
|
13559
13575
|
}
|
|
13560
|
-
const matchOrdinalNumberPattern
|
|
13561
|
-
const parseOrdinalNumberPattern
|
|
13562
|
-
const matchEraPatterns
|
|
13576
|
+
const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
|
|
13577
|
+
const parseOrdinalNumberPattern = /\d+/i;
|
|
13578
|
+
const matchEraPatterns = {
|
|
13563
13579
|
narrow: /^(b|a)/i,
|
|
13564
13580
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
13565
13581
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
13566
13582
|
};
|
|
13567
|
-
const parseEraPatterns
|
|
13583
|
+
const parseEraPatterns = {
|
|
13568
13584
|
any: [/^b/i, /^(a|c)/i]
|
|
13569
13585
|
};
|
|
13570
|
-
const matchQuarterPatterns
|
|
13586
|
+
const matchQuarterPatterns = {
|
|
13571
13587
|
narrow: /^[1234]/i,
|
|
13572
13588
|
abbreviated: /^q[1234]/i,
|
|
13573
13589
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
13574
13590
|
};
|
|
13575
|
-
const parseQuarterPatterns
|
|
13591
|
+
const parseQuarterPatterns = {
|
|
13576
13592
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
13577
13593
|
};
|
|
13578
|
-
const matchMonthPatterns
|
|
13594
|
+
const matchMonthPatterns = {
|
|
13579
13595
|
narrow: /^[jfmasond]/i,
|
|
13580
13596
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
13581
13597
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
13582
13598
|
};
|
|
13583
|
-
const parseMonthPatterns
|
|
13599
|
+
const parseMonthPatterns = {
|
|
13584
13600
|
narrow: [
|
|
13585
13601
|
/^j/i,
|
|
13586
13602
|
/^f/i,
|
|
@@ -13610,21 +13626,21 @@ const parseMonthPatterns$1 = {
|
|
|
13610
13626
|
/^d/i
|
|
13611
13627
|
]
|
|
13612
13628
|
};
|
|
13613
|
-
const matchDayPatterns
|
|
13629
|
+
const matchDayPatterns = {
|
|
13614
13630
|
narrow: /^[smtwf]/i,
|
|
13615
13631
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
13616
13632
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
13617
13633
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
13618
13634
|
};
|
|
13619
|
-
const parseDayPatterns
|
|
13635
|
+
const parseDayPatterns = {
|
|
13620
13636
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
13621
13637
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
13622
13638
|
};
|
|
13623
|
-
const matchDayPeriodPatterns
|
|
13639
|
+
const matchDayPeriodPatterns = {
|
|
13624
13640
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
13625
13641
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
13626
13642
|
};
|
|
13627
|
-
const parseDayPeriodPatterns
|
|
13643
|
+
const parseDayPeriodPatterns = {
|
|
13628
13644
|
any: {
|
|
13629
13645
|
am: /^a/i,
|
|
13630
13646
|
pm: /^p/i,
|
|
@@ -13636,51 +13652,51 @@ const parseDayPeriodPatterns$1 = {
|
|
|
13636
13652
|
night: /night/i
|
|
13637
13653
|
}
|
|
13638
13654
|
};
|
|
13639
|
-
const match
|
|
13655
|
+
const match = {
|
|
13640
13656
|
ordinalNumber: buildMatchPatternFn({
|
|
13641
|
-
matchPattern: matchOrdinalNumberPattern
|
|
13642
|
-
parsePattern: parseOrdinalNumberPattern
|
|
13657
|
+
matchPattern: matchOrdinalNumberPattern,
|
|
13658
|
+
parsePattern: parseOrdinalNumberPattern,
|
|
13643
13659
|
valueCallback: (value) => parseInt(value, 10)
|
|
13644
13660
|
}),
|
|
13645
13661
|
era: buildMatchFn({
|
|
13646
|
-
matchPatterns: matchEraPatterns
|
|
13662
|
+
matchPatterns: matchEraPatterns,
|
|
13647
13663
|
defaultMatchWidth: "wide",
|
|
13648
|
-
parsePatterns: parseEraPatterns
|
|
13664
|
+
parsePatterns: parseEraPatterns,
|
|
13649
13665
|
defaultParseWidth: "any"
|
|
13650
13666
|
}),
|
|
13651
13667
|
quarter: buildMatchFn({
|
|
13652
|
-
matchPatterns: matchQuarterPatterns
|
|
13668
|
+
matchPatterns: matchQuarterPatterns,
|
|
13653
13669
|
defaultMatchWidth: "wide",
|
|
13654
|
-
parsePatterns: parseQuarterPatterns
|
|
13670
|
+
parsePatterns: parseQuarterPatterns,
|
|
13655
13671
|
defaultParseWidth: "any",
|
|
13656
13672
|
valueCallback: (index) => index + 1
|
|
13657
13673
|
}),
|
|
13658
13674
|
month: buildMatchFn({
|
|
13659
|
-
matchPatterns: matchMonthPatterns
|
|
13675
|
+
matchPatterns: matchMonthPatterns,
|
|
13660
13676
|
defaultMatchWidth: "wide",
|
|
13661
|
-
parsePatterns: parseMonthPatterns
|
|
13677
|
+
parsePatterns: parseMonthPatterns,
|
|
13662
13678
|
defaultParseWidth: "any"
|
|
13663
13679
|
}),
|
|
13664
13680
|
day: buildMatchFn({
|
|
13665
|
-
matchPatterns: matchDayPatterns
|
|
13681
|
+
matchPatterns: matchDayPatterns,
|
|
13666
13682
|
defaultMatchWidth: "wide",
|
|
13667
|
-
parsePatterns: parseDayPatterns
|
|
13683
|
+
parsePatterns: parseDayPatterns,
|
|
13668
13684
|
defaultParseWidth: "any"
|
|
13669
13685
|
}),
|
|
13670
13686
|
dayPeriod: buildMatchFn({
|
|
13671
|
-
matchPatterns: matchDayPeriodPatterns
|
|
13687
|
+
matchPatterns: matchDayPeriodPatterns,
|
|
13672
13688
|
defaultMatchWidth: "any",
|
|
13673
|
-
parsePatterns: parseDayPeriodPatterns
|
|
13689
|
+
parsePatterns: parseDayPeriodPatterns,
|
|
13674
13690
|
defaultParseWidth: "any"
|
|
13675
13691
|
})
|
|
13676
13692
|
};
|
|
13677
13693
|
const enUS = {
|
|
13678
13694
|
code: "en-US",
|
|
13679
|
-
formatDistance
|
|
13680
|
-
formatLong
|
|
13681
|
-
formatRelative
|
|
13682
|
-
localize
|
|
13683
|
-
match
|
|
13695
|
+
formatDistance,
|
|
13696
|
+
formatLong,
|
|
13697
|
+
formatRelative,
|
|
13698
|
+
localize,
|
|
13699
|
+
match,
|
|
13684
13700
|
options: {
|
|
13685
13701
|
weekStartsOn: 0,
|
|
13686
13702
|
firstWeekContainsDate: 1
|
|
@@ -14607,423 +14623,88 @@ function subDays(date, amount, options) {
|
|
|
14607
14623
|
function subWeeks(date, amount, options) {
|
|
14608
14624
|
return addWeeks(date, -1, options);
|
|
14609
14625
|
}
|
|
14610
|
-
const
|
|
14611
|
-
|
|
14612
|
-
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
xSeconds: {
|
|
14616
|
-
one: "en sekund",
|
|
14617
|
-
other: "{{count}} sekunder"
|
|
14618
|
-
},
|
|
14619
|
-
halfAMinute: "en halv minut",
|
|
14620
|
-
lessThanXMinutes: {
|
|
14621
|
-
one: "mindre än en minut",
|
|
14622
|
-
other: "mindre än {{count}} minuter"
|
|
14623
|
-
},
|
|
14624
|
-
xMinutes: {
|
|
14625
|
-
one: "en minut",
|
|
14626
|
-
other: "{{count}} minuter"
|
|
14627
|
-
},
|
|
14628
|
-
aboutXHours: {
|
|
14629
|
-
one: "ungefär en timme",
|
|
14630
|
-
other: "ungefär {{count}} timmar"
|
|
14631
|
-
},
|
|
14632
|
-
xHours: {
|
|
14633
|
-
one: "en timme",
|
|
14634
|
-
other: "{{count}} timmar"
|
|
14635
|
-
},
|
|
14636
|
-
xDays: {
|
|
14637
|
-
one: "en dag",
|
|
14638
|
-
other: "{{count}} dagar"
|
|
14639
|
-
},
|
|
14640
|
-
aboutXWeeks: {
|
|
14641
|
-
one: "ungefär en vecka",
|
|
14642
|
-
other: "ungefär {{count}} veckor"
|
|
14643
|
-
},
|
|
14644
|
-
xWeeks: {
|
|
14645
|
-
one: "en vecka",
|
|
14646
|
-
other: "{{count}} veckor"
|
|
14647
|
-
},
|
|
14648
|
-
aboutXMonths: {
|
|
14649
|
-
one: "ungefär en månad",
|
|
14650
|
-
other: "ungefär {{count}} månader"
|
|
14651
|
-
},
|
|
14652
|
-
xMonths: {
|
|
14653
|
-
one: "en månad",
|
|
14654
|
-
other: "{{count}} månader"
|
|
14655
|
-
},
|
|
14656
|
-
aboutXYears: {
|
|
14657
|
-
one: "ungefär ett år",
|
|
14658
|
-
other: "ungefär {{count}} år"
|
|
14659
|
-
},
|
|
14660
|
-
xYears: {
|
|
14661
|
-
one: "ett år",
|
|
14662
|
-
other: "{{count}} år"
|
|
14663
|
-
},
|
|
14664
|
-
overXYears: {
|
|
14665
|
-
one: "över ett år",
|
|
14666
|
-
other: "över {{count}} år"
|
|
14667
|
-
},
|
|
14668
|
-
almostXYears: {
|
|
14669
|
-
one: "nästan ett år",
|
|
14670
|
-
other: "nästan {{count}} år"
|
|
14671
|
-
}
|
|
14672
|
-
};
|
|
14673
|
-
const wordMapping = [
|
|
14674
|
-
"noll",
|
|
14675
|
-
"en",
|
|
14676
|
-
"två",
|
|
14677
|
-
"tre",
|
|
14678
|
-
"fyra",
|
|
14679
|
-
"fem",
|
|
14680
|
-
"sex",
|
|
14681
|
-
"sju",
|
|
14682
|
-
"åtta",
|
|
14683
|
-
"nio",
|
|
14684
|
-
"tio",
|
|
14685
|
-
"elva",
|
|
14686
|
-
"tolv"
|
|
14687
|
-
];
|
|
14688
|
-
const formatDistance = (token, count, options) => {
|
|
14689
|
-
let result;
|
|
14690
|
-
const tokenValue = formatDistanceLocale[token];
|
|
14691
|
-
if (typeof tokenValue === "string") {
|
|
14692
|
-
result = tokenValue;
|
|
14693
|
-
} else if (count === 1) {
|
|
14694
|
-
result = tokenValue.one;
|
|
14695
|
-
} else {
|
|
14696
|
-
result = tokenValue.other.replace(
|
|
14697
|
-
"{{count}}",
|
|
14698
|
-
count < 13 ? wordMapping[count] : String(count)
|
|
14699
|
-
);
|
|
14700
|
-
}
|
|
14701
|
-
if (options?.addSuffix) {
|
|
14702
|
-
if (options.comparison && options.comparison > 0) {
|
|
14703
|
-
return "om " + result;
|
|
14704
|
-
} else {
|
|
14705
|
-
return result + " sedan";
|
|
14706
|
-
}
|
|
14707
|
-
}
|
|
14708
|
-
return result;
|
|
14709
|
-
};
|
|
14710
|
-
const dateFormats = {
|
|
14711
|
-
full: "EEEE d MMMM y",
|
|
14712
|
-
long: "d MMMM y",
|
|
14713
|
-
medium: "d MMM y",
|
|
14714
|
-
short: "y-MM-dd"
|
|
14715
|
-
};
|
|
14716
|
-
const timeFormats = {
|
|
14717
|
-
full: "'kl'. HH:mm:ss zzzz",
|
|
14718
|
-
long: "HH:mm:ss z",
|
|
14719
|
-
medium: "HH:mm:ss",
|
|
14720
|
-
short: "HH:mm"
|
|
14721
|
-
};
|
|
14722
|
-
const dateTimeFormats = {
|
|
14723
|
-
full: "{{date}} 'kl.' {{time}}",
|
|
14724
|
-
long: "{{date}} 'kl.' {{time}}",
|
|
14725
|
-
medium: "{{date}} {{time}}",
|
|
14726
|
-
short: "{{date}} {{time}}"
|
|
14727
|
-
};
|
|
14728
|
-
const formatLong = {
|
|
14729
|
-
date: buildFormatLongFn({
|
|
14730
|
-
formats: dateFormats,
|
|
14731
|
-
defaultWidth: "full"
|
|
14732
|
-
}),
|
|
14733
|
-
time: buildFormatLongFn({
|
|
14734
|
-
formats: timeFormats,
|
|
14735
|
-
defaultWidth: "full"
|
|
14736
|
-
}),
|
|
14737
|
-
dateTime: buildFormatLongFn({
|
|
14738
|
-
formats: dateTimeFormats,
|
|
14739
|
-
defaultWidth: "full"
|
|
14740
|
-
})
|
|
14741
|
-
};
|
|
14742
|
-
const formatRelativeLocale = {
|
|
14743
|
-
lastWeek: "'i' EEEE's kl.' p",
|
|
14744
|
-
yesterday: "'igår kl.' p",
|
|
14745
|
-
today: "'idag kl.' p",
|
|
14746
|
-
tomorrow: "'imorgon kl.' p",
|
|
14747
|
-
nextWeek: "EEEE 'kl.' p",
|
|
14748
|
-
other: "P"
|
|
14749
|
-
};
|
|
14750
|
-
const formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
|
|
14751
|
-
const eraValues = {
|
|
14752
|
-
narrow: ["f.Kr.", "e.Kr."],
|
|
14753
|
-
abbreviated: ["f.Kr.", "e.Kr."],
|
|
14754
|
-
wide: ["före Kristus", "efter Kristus"]
|
|
14755
|
-
};
|
|
14756
|
-
const quarterValues = {
|
|
14757
|
-
narrow: ["1", "2", "3", "4"],
|
|
14758
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
14759
|
-
wide: ["1:a kvartalet", "2:a kvartalet", "3:e kvartalet", "4:e kvartalet"]
|
|
14626
|
+
const en = {
|
|
14627
|
+
"FdsWeekCalendar.nextWeek": "Next week",
|
|
14628
|
+
"FdsWeekCalendar.previousWeek": "Previous week",
|
|
14629
|
+
"FdsWeekCalendar.today": "Today",
|
|
14630
|
+
"FdsWeekCalendar.week": "week"
|
|
14760
14631
|
};
|
|
14761
|
-
const
|
|
14762
|
-
|
|
14763
|
-
|
|
14764
|
-
|
|
14765
|
-
|
|
14766
|
-
"mars",
|
|
14767
|
-
"apr.",
|
|
14768
|
-
"maj",
|
|
14769
|
-
"juni",
|
|
14770
|
-
"juli",
|
|
14771
|
-
"aug.",
|
|
14772
|
-
"sep.",
|
|
14773
|
-
"okt.",
|
|
14774
|
-
"nov.",
|
|
14775
|
-
"dec."
|
|
14776
|
-
],
|
|
14777
|
-
wide: [
|
|
14778
|
-
"januari",
|
|
14779
|
-
"februari",
|
|
14780
|
-
"mars",
|
|
14781
|
-
"april",
|
|
14782
|
-
"maj",
|
|
14783
|
-
"juni",
|
|
14784
|
-
"juli",
|
|
14785
|
-
"augusti",
|
|
14786
|
-
"september",
|
|
14787
|
-
"oktober",
|
|
14788
|
-
"november",
|
|
14789
|
-
"december"
|
|
14790
|
-
]
|
|
14632
|
+
const sv = {
|
|
14633
|
+
"FdsWeekCalendar.nextWeek": "Nästa vecka",
|
|
14634
|
+
"FdsWeekCalendar.previousWeek": "Föregående vecka",
|
|
14635
|
+
"FdsWeekCalendar.today": "Idag",
|
|
14636
|
+
"FdsWeekCalendar.week": "vecka"
|
|
14791
14637
|
};
|
|
14792
|
-
const
|
|
14793
|
-
|
|
14794
|
-
|
|
14795
|
-
|
|
14796
|
-
wide: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"]
|
|
14638
|
+
const FDS_VUE_CORE_I18N_KEY = /* @__PURE__ */ Symbol("fds-vue-core:i18n");
|
|
14639
|
+
const translations = {
|
|
14640
|
+
en,
|
|
14641
|
+
sv
|
|
14797
14642
|
};
|
|
14798
|
-
const
|
|
14799
|
-
|
|
14800
|
-
|
|
14801
|
-
|
|
14802
|
-
|
|
14803
|
-
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
|
|
14808
|
-
|
|
14809
|
-
|
|
14810
|
-
|
|
14811
|
-
|
|
14812
|
-
|
|
14813
|
-
|
|
14814
|
-
|
|
14815
|
-
|
|
14816
|
-
|
|
14817
|
-
|
|
14818
|
-
|
|
14819
|
-
|
|
14820
|
-
|
|
14821
|
-
|
|
14822
|
-
midnight: "midnatt",
|
|
14823
|
-
noon: "middag",
|
|
14824
|
-
morning: "morgon",
|
|
14825
|
-
afternoon: "eftermiddag",
|
|
14826
|
-
evening: "kväll",
|
|
14827
|
-
night: "natt"
|
|
14828
|
-
}
|
|
14643
|
+
const useFdsI18n = () => {
|
|
14644
|
+
const i18n = inject(FDS_VUE_CORE_I18N_KEY, void 0);
|
|
14645
|
+
const locale = computed(() => {
|
|
14646
|
+
const locale2 = i18n?.global?.locale ?? i18n?.locale;
|
|
14647
|
+
if (typeof locale2 === "string") return locale2;
|
|
14648
|
+
if (locale2 && typeof locale2 === "object" && "value" in locale2 && typeof locale2.value === "string") {
|
|
14649
|
+
return locale2.value;
|
|
14650
|
+
}
|
|
14651
|
+
return "sv-SE";
|
|
14652
|
+
});
|
|
14653
|
+
const activeLanguage = computed(() => locale.value.toLowerCase().split("-")[0]);
|
|
14654
|
+
const dictionary = computed(() => {
|
|
14655
|
+
const currentDictionary = translations[activeLanguage.value];
|
|
14656
|
+
return currentDictionary ?? translations.sv;
|
|
14657
|
+
});
|
|
14658
|
+
const t = (key) => {
|
|
14659
|
+
const value = dictionary.value[key];
|
|
14660
|
+
return typeof value === "string" ? value : "";
|
|
14661
|
+
};
|
|
14662
|
+
return {
|
|
14663
|
+
i18n,
|
|
14664
|
+
locale,
|
|
14665
|
+
t
|
|
14666
|
+
};
|
|
14829
14667
|
};
|
|
14830
|
-
const
|
|
14831
|
-
|
|
14832
|
-
|
|
14833
|
-
pm: "em",
|
|
14834
|
-
midnight: "midnatt",
|
|
14835
|
-
noon: "middag",
|
|
14836
|
-
morning: "på morg.",
|
|
14837
|
-
afternoon: "på efterm.",
|
|
14838
|
-
evening: "på kvällen",
|
|
14839
|
-
night: "på natten"
|
|
14840
|
-
},
|
|
14841
|
-
abbreviated: {
|
|
14842
|
-
am: "fm",
|
|
14843
|
-
pm: "em",
|
|
14844
|
-
midnight: "midnatt",
|
|
14845
|
-
noon: "middag",
|
|
14846
|
-
morning: "på morg.",
|
|
14847
|
-
afternoon: "på efterm.",
|
|
14848
|
-
evening: "på kvällen",
|
|
14849
|
-
night: "på natten"
|
|
14850
|
-
},
|
|
14851
|
-
wide: {
|
|
14852
|
-
am: "fm",
|
|
14853
|
-
pm: "em",
|
|
14854
|
-
midnight: "midnatt",
|
|
14855
|
-
noon: "middag",
|
|
14856
|
-
morning: "på morgonen",
|
|
14857
|
-
afternoon: "på eftermiddagen",
|
|
14858
|
-
evening: "på kvällen",
|
|
14859
|
-
night: "på natten"
|
|
14860
|
-
}
|
|
14668
|
+
const capitalizeFirstLetter$1 = (value) => {
|
|
14669
|
+
if (!value) return value;
|
|
14670
|
+
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
14861
14671
|
};
|
|
14862
|
-
const
|
|
14863
|
-
const
|
|
14864
|
-
const
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
}
|
|
14672
|
+
const getOverlappingMonths = (week, locale = "sv-SE") => {
|
|
14673
|
+
const startDayMonth = startOfISOWeek(week);
|
|
14674
|
+
const endDayMonth = addDays(startDayMonth, 6);
|
|
14675
|
+
const shortMonthFormatter = new Intl.DateTimeFormat(locale, { month: "short" });
|
|
14676
|
+
const longMonthFormatter = new Intl.DateTimeFormat(locale, { month: "long" });
|
|
14677
|
+
if (!isSameMonth(startDayMonth, endDayMonth)) {
|
|
14678
|
+
return `${capitalizeFirstLetter$1(shortMonthFormatter.format(startDayMonth).replace(".", ""))} - ${capitalizeFirstLetter$1(
|
|
14679
|
+
shortMonthFormatter.format(endDayMonth).replace(".", "")
|
|
14680
|
+
)}`;
|
|
14871
14681
|
}
|
|
14872
|
-
return
|
|
14873
|
-
};
|
|
14874
|
-
const localize = {
|
|
14875
|
-
ordinalNumber,
|
|
14876
|
-
era: buildLocalizeFn({
|
|
14877
|
-
values: eraValues,
|
|
14878
|
-
defaultWidth: "wide"
|
|
14879
|
-
}),
|
|
14880
|
-
quarter: buildLocalizeFn({
|
|
14881
|
-
values: quarterValues,
|
|
14882
|
-
defaultWidth: "wide",
|
|
14883
|
-
argumentCallback: (quarter) => quarter - 1
|
|
14884
|
-
}),
|
|
14885
|
-
month: buildLocalizeFn({
|
|
14886
|
-
values: monthValues,
|
|
14887
|
-
defaultWidth: "wide"
|
|
14888
|
-
}),
|
|
14889
|
-
day: buildLocalizeFn({
|
|
14890
|
-
values: dayValues,
|
|
14891
|
-
defaultWidth: "wide"
|
|
14892
|
-
}),
|
|
14893
|
-
dayPeriod: buildLocalizeFn({
|
|
14894
|
-
values: dayPeriodValues,
|
|
14895
|
-
defaultWidth: "wide",
|
|
14896
|
-
formattingValues: formattingDayPeriodValues,
|
|
14897
|
-
defaultFormattingWidth: "wide"
|
|
14898
|
-
})
|
|
14899
|
-
};
|
|
14900
|
-
const matchOrdinalNumberPattern = /^(\d+)(:a|:e)?/i;
|
|
14901
|
-
const parseOrdinalNumberPattern = /\d+/i;
|
|
14902
|
-
const matchEraPatterns = {
|
|
14903
|
-
narrow: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,
|
|
14904
|
-
abbreviated: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,
|
|
14905
|
-
wide: /^(före Kristus|före vår tid|efter Kristus|vår tid)/i
|
|
14906
|
-
};
|
|
14907
|
-
const parseEraPatterns = {
|
|
14908
|
-
any: [/^f/i, /^[ev]/i]
|
|
14909
|
-
};
|
|
14910
|
-
const matchQuarterPatterns = {
|
|
14911
|
-
narrow: /^[1234]/i,
|
|
14912
|
-
abbreviated: /^q[1234]/i,
|
|
14913
|
-
wide: /^[1234](:a|:e)? kvartalet/i
|
|
14914
|
-
};
|
|
14915
|
-
const parseQuarterPatterns = {
|
|
14916
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
14917
|
-
};
|
|
14918
|
-
const matchMonthPatterns = {
|
|
14919
|
-
narrow: /^[jfmasond]/i,
|
|
14920
|
-
abbreviated: /^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,
|
|
14921
|
-
wide: /^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i
|
|
14922
|
-
};
|
|
14923
|
-
const parseMonthPatterns = {
|
|
14924
|
-
narrow: [
|
|
14925
|
-
/^j/i,
|
|
14926
|
-
/^f/i,
|
|
14927
|
-
/^m/i,
|
|
14928
|
-
/^a/i,
|
|
14929
|
-
/^m/i,
|
|
14930
|
-
/^j/i,
|
|
14931
|
-
/^j/i,
|
|
14932
|
-
/^a/i,
|
|
14933
|
-
/^s/i,
|
|
14934
|
-
/^o/i,
|
|
14935
|
-
/^n/i,
|
|
14936
|
-
/^d/i
|
|
14937
|
-
],
|
|
14938
|
-
any: [
|
|
14939
|
-
/^ja/i,
|
|
14940
|
-
/^f/i,
|
|
14941
|
-
/^mar/i,
|
|
14942
|
-
/^ap/i,
|
|
14943
|
-
/^maj/i,
|
|
14944
|
-
/^jun/i,
|
|
14945
|
-
/^jul/i,
|
|
14946
|
-
/^au/i,
|
|
14947
|
-
/^s/i,
|
|
14948
|
-
/^o/i,
|
|
14949
|
-
/^n/i,
|
|
14950
|
-
/^d/i
|
|
14951
|
-
]
|
|
14952
|
-
};
|
|
14953
|
-
const matchDayPatterns = {
|
|
14954
|
-
narrow: /^[smtofl]/i,
|
|
14955
|
-
short: /^(sö|må|ti|on|to|fr|lö)/i,
|
|
14956
|
-
abbreviated: /^(sön|mån|tis|ons|tors|fre|lör)/i,
|
|
14957
|
-
wide: /^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i
|
|
14682
|
+
return capitalizeFirstLetter$1(longMonthFormatter.format(startOfISOWeek(week)));
|
|
14958
14683
|
};
|
|
14959
|
-
const
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
const
|
|
14963
|
-
|
|
14964
|
-
|
|
14965
|
-
const parseDayPeriodPatterns = {
|
|
14966
|
-
any: {
|
|
14967
|
-
am: /^f/i,
|
|
14968
|
-
pm: /^e/i,
|
|
14969
|
-
midnight: /^midn/i,
|
|
14970
|
-
noon: /^midd/i,
|
|
14971
|
-
morning: /morgon/i,
|
|
14972
|
-
afternoon: /eftermiddag/i,
|
|
14973
|
-
evening: /kväll/i,
|
|
14974
|
-
night: /natt/i
|
|
14684
|
+
const getDaysInWeek = (weekStart) => {
|
|
14685
|
+
const startOfWeek2 = startOfISOWeek(weekStart);
|
|
14686
|
+
const day = subDays(startOfWeek2);
|
|
14687
|
+
const calendar = [];
|
|
14688
|
+
for (let index = 0; index < 7; index++) {
|
|
14689
|
+
calendar.push(addDays(day, index + 1));
|
|
14975
14690
|
}
|
|
14691
|
+
return calendar;
|
|
14976
14692
|
};
|
|
14977
|
-
const
|
|
14978
|
-
|
|
14979
|
-
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
defaultMatchWidth: "wide",
|
|
14986
|
-
parsePatterns: parseEraPatterns,
|
|
14987
|
-
defaultParseWidth: "any"
|
|
14988
|
-
}),
|
|
14989
|
-
quarter: buildMatchFn({
|
|
14990
|
-
matchPatterns: matchQuarterPatterns,
|
|
14991
|
-
defaultMatchWidth: "wide",
|
|
14992
|
-
parsePatterns: parseQuarterPatterns,
|
|
14993
|
-
defaultParseWidth: "any",
|
|
14994
|
-
valueCallback: (index) => index + 1
|
|
14995
|
-
}),
|
|
14996
|
-
month: buildMatchFn({
|
|
14997
|
-
matchPatterns: matchMonthPatterns,
|
|
14998
|
-
defaultMatchWidth: "wide",
|
|
14999
|
-
parsePatterns: parseMonthPatterns,
|
|
15000
|
-
defaultParseWidth: "any"
|
|
15001
|
-
}),
|
|
15002
|
-
day: buildMatchFn({
|
|
15003
|
-
matchPatterns: matchDayPatterns,
|
|
15004
|
-
defaultMatchWidth: "wide",
|
|
15005
|
-
parsePatterns: parseDayPatterns,
|
|
15006
|
-
defaultParseWidth: "any"
|
|
15007
|
-
}),
|
|
15008
|
-
dayPeriod: buildMatchFn({
|
|
15009
|
-
matchPatterns: matchDayPeriodPatterns,
|
|
15010
|
-
defaultMatchWidth: "any",
|
|
15011
|
-
parsePatterns: parseDayPeriodPatterns,
|
|
15012
|
-
defaultParseWidth: "any"
|
|
15013
|
-
})
|
|
14693
|
+
const getDaysOfLastWeek = (week) => getDaysInWeek(week);
|
|
14694
|
+
const getStartAndEndRangeFromWeek = (week) => {
|
|
14695
|
+
const lastDay = week.at(-1);
|
|
14696
|
+
const firstDay = week.at(0);
|
|
14697
|
+
return {
|
|
14698
|
+
endDate: lastDay ? format(lastDay, "yyyy-MM-dd") : void 0,
|
|
14699
|
+
startDate: firstDay ? format(firstDay, "yyyy-MM-dd") : void 0
|
|
14700
|
+
};
|
|
15014
14701
|
};
|
|
15015
|
-
const
|
|
15016
|
-
|
|
15017
|
-
|
|
15018
|
-
|
|
15019
|
-
formatRelative,
|
|
15020
|
-
localize,
|
|
15021
|
-
match,
|
|
15022
|
-
options: {
|
|
15023
|
-
weekStartsOn: 1,
|
|
15024
|
-
firstWeekContainsDate: 4
|
|
15025
|
-
}
|
|
14702
|
+
const checkIfDateIsBeforeToday = (date) => {
|
|
14703
|
+
const startOfDate = startOfDay(date);
|
|
14704
|
+
const startOfToday = startOfDay(/* @__PURE__ */ new Date());
|
|
14705
|
+
return isAfter(startOfToday, startOfDate);
|
|
15026
14706
|
};
|
|
14707
|
+
const checkIfDateIsEnabled = (date, enabledDates) => enabledDates.some((enabledDate) => isSameDay(enabledDate, date));
|
|
15027
14708
|
const _hoisted_1$6 = ["disabled"];
|
|
15028
14709
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
15029
14710
|
__name: "WeekDay",
|
|
@@ -15037,6 +14718,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15037
14718
|
setup(__props, { emit: __emit }) {
|
|
15038
14719
|
const props = __props;
|
|
15039
14720
|
const emit = __emit;
|
|
14721
|
+
const { locale, t } = useFdsI18n();
|
|
15040
14722
|
const classes = computed(() => [
|
|
15041
14723
|
"box-border flex h-[64px] w-full max-w-[100px] flex-1 basis-0 flex-col items-center justify-center border-2 border-transparent px-1 py-1 transition-colors cursor-pointer",
|
|
15042
14724
|
props.disabled ? "" : "hover:border-2 hover:border-blue-500 border-solid",
|
|
@@ -15058,7 +14740,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15058
14740
|
emit("select-date", props.selected ? null : props.date);
|
|
15059
14741
|
};
|
|
15060
14742
|
const weekdayLabel = computed(() => {
|
|
15061
|
-
const value =
|
|
14743
|
+
const value = new Intl.DateTimeFormat(locale.value, { weekday: "short" }).format(props.date);
|
|
15062
14744
|
return value.charAt(0).toUpperCase() + value.slice(1).replace(".", "");
|
|
15063
14745
|
});
|
|
15064
14746
|
return (_ctx, _cache) => {
|
|
@@ -15075,9 +14757,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15075
14757
|
class: normalizeClass(weekdayLabelClasses.value)
|
|
15076
14758
|
}, [
|
|
15077
14759
|
__props.isToday ? (openBlock(), createBlock(_sfc_main$t, { key: 0 }, {
|
|
15078
|
-
default: withCtx(() => [
|
|
15079
|
-
createTextVNode("
|
|
15080
|
-
])
|
|
14760
|
+
default: withCtx(() => [
|
|
14761
|
+
createTextVNode(toDisplayString(unref(t)("FdsWeekCalendar.today")), 1)
|
|
14762
|
+
]),
|
|
15081
14763
|
_: 1
|
|
15082
14764
|
})) : (openBlock(), createBlock(_sfc_main$t, { key: 1 }, {
|
|
15083
14765
|
default: withCtx(() => [
|
|
@@ -15090,44 +14772,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15090
14772
|
};
|
|
15091
14773
|
}
|
|
15092
14774
|
});
|
|
15093
|
-
const capitalizeFirstLetter$1 = (value) => {
|
|
15094
|
-
if (!value) return value;
|
|
15095
|
-
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
15096
|
-
};
|
|
15097
|
-
const getOverlappingMonths = (week) => {
|
|
15098
|
-
const startDayMonth = startOfISOWeek(week);
|
|
15099
|
-
const endDayMonth = addDays(startDayMonth, 6);
|
|
15100
|
-
if (!isSameMonth(startDayMonth, endDayMonth)) {
|
|
15101
|
-
return `${capitalizeFirstLetter$1(format(startDayMonth, "MMM", { locale: sv }).replace(".", ""))} - ${capitalizeFirstLetter$1(
|
|
15102
|
-
format(endDayMonth, "MMM", { locale: sv }).replace(".", "")
|
|
15103
|
-
)}`;
|
|
15104
|
-
}
|
|
15105
|
-
return capitalizeFirstLetter$1(format(startOfISOWeek(week), "MMMM", { locale: sv }));
|
|
15106
|
-
};
|
|
15107
|
-
const getDaysInWeek = (weekStart) => {
|
|
15108
|
-
const startOfWeek2 = startOfISOWeek(weekStart);
|
|
15109
|
-
const day = subDays(startOfWeek2);
|
|
15110
|
-
const calendar = [];
|
|
15111
|
-
for (let index = 0; index < 7; index++) {
|
|
15112
|
-
calendar.push(addDays(day, index + 1));
|
|
15113
|
-
}
|
|
15114
|
-
return calendar;
|
|
15115
|
-
};
|
|
15116
|
-
const getDaysOfLastWeek = (week) => getDaysInWeek(week);
|
|
15117
|
-
const getStartAndEndRangeFromWeek = (week) => {
|
|
15118
|
-
const lastDay = week.at(-1);
|
|
15119
|
-
const firstDay = week.at(0);
|
|
15120
|
-
return {
|
|
15121
|
-
endDate: lastDay ? format(lastDay, "yyyy-MM-dd") : void 0,
|
|
15122
|
-
startDate: firstDay ? format(firstDay, "yyyy-MM-dd") : void 0
|
|
15123
|
-
};
|
|
15124
|
-
};
|
|
15125
|
-
const checkIfDateIsBeforeToday = (date) => {
|
|
15126
|
-
const startOfDate = startOfDay(date);
|
|
15127
|
-
const startOfToday = startOfDay(/* @__PURE__ */ new Date());
|
|
15128
|
-
return isAfter(startOfToday, startOfDate);
|
|
15129
|
-
};
|
|
15130
|
-
const checkIfDateIsEnabled = (date, enabledDates) => enabledDates.some((enabledDate) => isSameDay(enabledDate, date));
|
|
15131
14775
|
const _hoisted_1$5 = { class: "mb-6" };
|
|
15132
14776
|
const _hoisted_2$4 = { class: "max-w-[487px]" };
|
|
15133
14777
|
const _hoisted_3$4 = { class: "mb-3 flex w-full flex-row items-center" };
|
|
@@ -15138,7 +14782,7 @@ const _hoisted_7$2 = {
|
|
|
15138
14782
|
key: 0,
|
|
15139
14783
|
class: "mt-6 flex w-full flex-row items-center gap-2"
|
|
15140
14784
|
};
|
|
15141
|
-
const _hoisted_8
|
|
14785
|
+
const _hoisted_8 = { class: "m-0 font-bold text-blue-700" };
|
|
15142
14786
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
15143
14787
|
__name: "FdsWeekCalendar",
|
|
15144
14788
|
props: {
|
|
@@ -15162,13 +14806,16 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
15162
14806
|
setup(__props, { emit: __emit }) {
|
|
15163
14807
|
const props = __props;
|
|
15164
14808
|
const emit = __emit;
|
|
14809
|
+
const { locale, t } = useFdsI18n();
|
|
15165
14810
|
const currentWeek = ref(props.minWeek ?? startOfISOWeek(/* @__PURE__ */ new Date()));
|
|
15166
14811
|
const selectedDay = ref(props.selected ?? null);
|
|
15167
14812
|
const slideDirection = ref("left");
|
|
15168
14813
|
const weekToRender = computed(() => getDaysInWeek(currentWeek.value));
|
|
15169
14814
|
const visibleWeekDays = computed(() => weekToRender.value.filter((day) => getISODay(day) <= 5));
|
|
15170
14815
|
const lastWeek = computed(() => getDaysOfLastWeek(subWeeks(currentWeek.value)));
|
|
15171
|
-
const weekText = computed(
|
|
14816
|
+
const weekText = computed(
|
|
14817
|
+
() => `${getOverlappingMonths(currentWeek.value, locale.value)} (${t("FdsWeekCalendar.week")} ${getISOWeek(currentWeek.value)})`
|
|
14818
|
+
);
|
|
15172
14819
|
const lastDayOfPreviousWeek = computed(() => lastWeek.value[lastWeek.value.length - 1]);
|
|
15173
14820
|
const disableLastWeekInteraction = computed(
|
|
15174
14821
|
() => !!props.disablePreviousWeek || !!lastDayOfPreviousWeek.value && checkIfDateIsBeforeToday(lastDayOfPreviousWeek.value) || !!props.minWeek && isBefore(subWeeks(currentWeek.value), startOfISOWeek(props.minWeek))
|
|
@@ -15277,15 +14924,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
15277
14924
|
createVNode(_sfc_main$I, {
|
|
15278
14925
|
icon: "arrowLeft",
|
|
15279
14926
|
disabled: disableLastWeekInteraction.value,
|
|
15280
|
-
"aria-label": "
|
|
14927
|
+
"aria-label": unref(t)("FdsWeekCalendar.previousWeek"),
|
|
15281
14928
|
onClick: decrementWeek
|
|
15282
|
-
}, null, 8, ["disabled"]),
|
|
14929
|
+
}, null, 8, ["disabled", "aria-label"]),
|
|
15283
14930
|
createVNode(_sfc_main$I, {
|
|
15284
14931
|
icon: "arrowRight",
|
|
15285
14932
|
disabled: disableNextWeekInteraction.value,
|
|
15286
|
-
"aria-label": "
|
|
14933
|
+
"aria-label": unref(t)("FdsWeekCalendar.nextWeek"),
|
|
15287
14934
|
onClick: incrementWeek
|
|
15288
|
-
}, null, 8, ["disabled"])
|
|
14935
|
+
}, null, 8, ["disabled", "aria-label"])
|
|
15289
14936
|
])
|
|
15290
14937
|
]),
|
|
15291
14938
|
createElementVNode("div", _hoisted_6$2, [
|
|
@@ -15317,7 +14964,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
15317
14964
|
]),
|
|
15318
14965
|
__props.loading?.loading ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
|
|
15319
14966
|
createVNode(_sfc_main$B),
|
|
15320
|
-
createElementVNode("p", _hoisted_8
|
|
14967
|
+
createElementVNode("p", _hoisted_8, toDisplayString(__props.loading.label), 1)
|
|
15321
14968
|
])) : createCommentVNode("", true)
|
|
15322
14969
|
])
|
|
15323
14970
|
]);
|
|
@@ -15370,20 +15017,19 @@ const hasStepLabelOverlap = (labels, minGapBeforeHidePx = STEP_LABEL_MIN_GAP_BEF
|
|
|
15370
15017
|
}
|
|
15371
15018
|
return false;
|
|
15372
15019
|
};
|
|
15373
|
-
const _hoisted_1$4 = { class: "
|
|
15374
|
-
const _hoisted_2$3 = {
|
|
15375
|
-
const _hoisted_3$3 = {
|
|
15020
|
+
const _hoisted_1$4 = { class: "mb-6" };
|
|
15021
|
+
const _hoisted_2$3 = {
|
|
15376
15022
|
key: 0,
|
|
15377
15023
|
class: "mb-0"
|
|
15378
15024
|
};
|
|
15379
|
-
const
|
|
15025
|
+
const _hoisted_3$3 = {
|
|
15380
15026
|
key: 1,
|
|
15381
15027
|
class: "mt-2 mb-0"
|
|
15382
15028
|
};
|
|
15383
|
-
const
|
|
15384
|
-
const
|
|
15385
|
-
const
|
|
15386
|
-
const
|
|
15029
|
+
const _hoisted_4$3 = { class: "h-[2px] absolute top-[22px] left-[50%] bg-white-solid transform -translate-x-1/2 w-[calc(100%-50px)]" };
|
|
15030
|
+
const _hoisted_5$3 = { class: "flex justify-between list-none mb-8 p-0" };
|
|
15031
|
+
const _hoisted_6$1 = ["onClick", "disabled"];
|
|
15032
|
+
const _hoisted_7$1 = { key: 0 };
|
|
15387
15033
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
15388
15034
|
__name: "FdsWizard",
|
|
15389
15035
|
props: {
|
|
@@ -15394,6 +15040,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
15394
15040
|
disableStepJump: { type: Boolean, default: false },
|
|
15395
15041
|
activeRouteName: { default: void 0 },
|
|
15396
15042
|
dataTestid: { default: void 0 },
|
|
15043
|
+
wizardClass: { default: "max-w-[480px]" },
|
|
15397
15044
|
onGo: {}
|
|
15398
15045
|
},
|
|
15399
15046
|
emits: ["go"],
|
|
@@ -15736,16 +15383,18 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
15736
15383
|
});
|
|
15737
15384
|
return (_ctx, _cache) => {
|
|
15738
15385
|
return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(rootAttrs.value)), [
|
|
15739
|
-
createElementVNode("nav",
|
|
15740
|
-
|
|
15386
|
+
createElementVNode("nav", {
|
|
15387
|
+
class: normalizeClass([__props.wizardClass, "mx-auto"])
|
|
15388
|
+
}, [
|
|
15389
|
+
createElementVNode("header", _hoisted_1$4, [
|
|
15741
15390
|
createElementVNode("h1", {
|
|
15742
15391
|
ref: "mainHeader",
|
|
15743
15392
|
tabindex: "-1"
|
|
15744
15393
|
}, toDisplayString(mainHeading.value), 513),
|
|
15745
15394
|
mainLead.value || subCategories.value.length > 0 ? (openBlock(), createBlock(_sfc_main$b, { key: 0 }, {
|
|
15746
15395
|
default: withCtx(() => [
|
|
15747
|
-
mainLead.value ? (openBlock(), createElementBlock("p",
|
|
15748
|
-
subCategories.value.length > 0 ? (openBlock(), createElementBlock("ul",
|
|
15396
|
+
mainLead.value ? (openBlock(), createElementBlock("p", _hoisted_2$3, toDisplayString(mainLead.value), 1)) : createCommentVNode("", true),
|
|
15397
|
+
subCategories.value.length > 0 ? (openBlock(), createElementBlock("ul", _hoisted_3$3, [
|
|
15749
15398
|
(openBlock(true), createElementBlock(Fragment, null, renderList(subCategories.value, (subCat) => {
|
|
15750
15399
|
return openBlock(), createElementBlock("li", {
|
|
15751
15400
|
key: subCat.id,
|
|
@@ -15769,13 +15418,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
15769
15418
|
style: normalizeStyle(stepWidthStyle.value),
|
|
15770
15419
|
class: "relative"
|
|
15771
15420
|
}, [
|
|
15772
|
-
createElementVNode("span",
|
|
15421
|
+
createElementVNode("span", _hoisted_4$3, [
|
|
15773
15422
|
createElementVNode("span", {
|
|
15774
15423
|
class: "block h-full max-w-full bg-blue-600",
|
|
15775
15424
|
style: normalizeStyle({ width: progressWidth.value })
|
|
15776
15425
|
}, null, 4)
|
|
15777
15426
|
]),
|
|
15778
|
-
createElementVNode("div",
|
|
15427
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
15779
15428
|
createElementVNode("ol", {
|
|
15780
15429
|
ref_key: "stepperListRef",
|
|
15781
15430
|
ref: stepperListRef,
|
|
@@ -15795,7 +15444,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
15795
15444
|
createElementVNode("span", {
|
|
15796
15445
|
class: normalizeClass(["relative mb-6 flex flex-col items-center text-blue-600 font-bold justify-center transition-all duration-200 ease-in-out rounded-full w-[44px] h-[44px] bg-white-solid", setStepClasses(entry.index)])
|
|
15797
15446
|
}, [
|
|
15798
|
-
entry.index >= internalCompletedTo.value + 1 ? (openBlock(), createElementBlock("span",
|
|
15447
|
+
entry.index >= internalCompletedTo.value + 1 ? (openBlock(), createElementBlock("span", _hoisted_7$1, toDisplayString(entry.index + 1), 1)) : (openBlock(), createBlock(_sfc_main$J, {
|
|
15799
15448
|
key: 1,
|
|
15800
15449
|
name: "checkmark",
|
|
15801
15450
|
size: 24
|
|
@@ -15806,13 +15455,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
15806
15455
|
ref: (el) => setStepLabelRef(el, visibleIndex),
|
|
15807
15456
|
class: normalizeClass(["absolute bottom-0 text-blue-600 font-bold text-sm", { invisible: !showStepLabels.value }])
|
|
15808
15457
|
}, toDisplayString(entry.route.meta.wizard.name), 3)
|
|
15809
|
-
], 10,
|
|
15458
|
+
], 10, _hoisted_6$1)
|
|
15810
15459
|
]);
|
|
15811
15460
|
}), 128))
|
|
15812
15461
|
], 512)
|
|
15813
15462
|
])
|
|
15814
15463
|
], 4)) : createCommentVNode("", true)
|
|
15815
|
-
]),
|
|
15464
|
+
], 2),
|
|
15816
15465
|
createElementVNode("div", {
|
|
15817
15466
|
class: normalizeClass([contentClass.value, "mx-auto"])
|
|
15818
15467
|
}, [
|
|
@@ -16684,7 +16333,10 @@ const logoFeelgoodColored = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.or
|
|
|
16684
16333
|
const logoFeelgoodLight = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='83'%20xmlns:v='https://vecta.io/nano'%3e%3cpath%20fill='%23fff'%20d='M39.389%2011.947L36.139%2026h.001%208.038v3H35.55l-2.575%2012.093c-.813%203.982-1.716%207.964-2.711%2011.857-1.625%206.336-5.781%2017.378-9.576%2022.628C16.804%2081.009%2013.641%2083%206.866%2083%203.433%2083%200%2080.375%200%2076.845c0-2.353%201.806-4.344%204.246-4.344%202.078%200%204.246%201.266%204.246%203.62%200%201.086-.361%201.72-.723%202.172s-.722.724-.722%201.267c0%201.177%201.535%201.177%202.348%201.177%202.982%200%205.692-2.263%207.77-9.052%201.445-4.706%202.259-9.684%203.162-14.481L25.948%2029h-8.421l-.001-3h9.258s-.076.268%200%200c2.628-9.359%206.73-20.689%2016.038-24.824C44.268.543%2045.984%200%2048.514%200%2052.85%200%2058%202.262%2058%207.241c0%203.077-1.897%204.706-4.879%204.706-2.62%200-3.975-1.629-4.246-4.163-.18-1.448.813-2.897%201.626-3.62%201.988-1.72-1.626-1.902-2.529-1.902-4.427%200-7.318%204.254-8.583%209.685zm9.227%2028.868h8.559v-4.608c0-5.186-2.222-5.432-4.279-5.432-2.881%200-4.28%201.727-4.28%205.679v4.361zm17.53%201.976h-17.53v7.571c0%205.926%202.222%208.807%205.926%208.807%204.938%200%208.888-2.634%209.958-8.231h1.975c-1.317%206.337-5.843%2010.452-12.427%2010.452-9.547%200-14.978-7.242-14.978-16.295%200-8.148%205.596-16.049%2014.319-16.049%207.654%200%2012.757%206.584%2012.757%2013.745zm12.403-1.976h8.559v-4.608c0-5.186-2.222-5.432-4.279-5.432-2.881%200-4.28%201.727-4.28%205.679v4.361zm17.53%201.976h-17.53v7.571c0%205.926%202.222%208.807%205.926%208.807%204.938%200%208.888-2.634%209.958-8.231h1.975c-1.317%206.337-5.843%2010.452-12.427%2010.452-9.547%200-14.979-7.242-14.979-16.295%200-8.148%205.597-16.049%2014.32-16.049%207.654%200%2012.757%206.584%2012.757%2013.745zM101.159%209h-3.457V7h12.181v52h3.456v2H98v-2h3.159V9zm25.733%2041.691h-2.469c-4.115%200-5.679%201.646-5.679%203.539%200%201.482.905%202.716%204.773%202.716%203.21%200%206.42-.082%209.547-.164%206.749-.165%209.959%203.209%209.959%208.394%200%206.584-4.527%2014.156-15.308%2014.156-10.287%200-12.098-5.761-12.098-7.655%200-3.867%201.811-5.348%206.007-7.653-4.032-1.152-6.089-3.703-6.089-7.983%200-3.704%203.456-6.172%206.584-6.749v-.164c-3.869-1.4-6.502-5.103-6.502-9.547%200-2.716%202.387-10.535%2012.344-10.535%202.799%200%205.515%201.071%207.82%202.634.822-1.728%202.632-3.704%204.69-3.704%201.811%200%203.374.905%203.374%202.881%200%201.563-.987%202.469-2.551%202.469-1.316%200-2.221-.493-2.798-1.728a5.2%205.2%200%200%200-1.81%201.152c2.14%201.81%203.127%204.526%203.127%207.325%200%204.937-2.881%2010.616-12.921%2010.616zm-3.292-9.958c0%206.502.823%208.23%204.279%208.23%203.21%200%203.704-1.399%203.704-10.699%200-6.749-1.07-7.489-3.622-7.489-3.949%200-4.361%201.893-4.361%209.958zm10.369%2023.62h-11.11c-.988%201.729-1.564%202.634-1.564%204.774%200%205.267%203.128%207.9%208.231%207.9%205.513%200%2010.863-3.868%2010.863-8.888%200-2.386-.658-3.786-6.42-3.786zm19.418-26.912v14.814c0%205.349%201.234%207.572%204.773%207.572%203.951%200%204.774-2.223%204.774-7.49V37.441c0-6.09-2.305-6.831-4.774-6.831s-4.773.741-4.773%206.831zm4.773%2023.949c-9.628%200-14.237-8.065-14.237-16.131%200-8.147%204.609-16.213%2014.237-16.213s14.239%208.066%2014.239%2016.213c0%208.066-4.61%2016.131-14.239%2016.131zm27.217-23.949v14.814c0%205.349%201.234%207.572%204.773%207.572%203.951%200%204.774-2.223%204.774-7.49V37.441c0-6.09-2.305-6.831-4.774-6.831s-4.773.741-4.773%206.831zm4.773%2023.949c-9.628%200-14.238-8.065-14.238-16.131%200-8.147%204.61-16.213%2014.238-16.213s14.239%208.066%2014.239%2016.213c0%208.066-4.61%2016.131-14.239%2016.131zm37.505-12.592v-5.103c0-5.678-1.234-12.674-7.078-12.674-3.539%200-3.621%205.349-3.621%208.724v12.839c0%202.963.247%206.83%203.786%206.83%203.292%200%206.831-2.88%206.913-10.616zM236.379%2059H240v2h-12.263v-4.301h-.164c-1.317%202.881-4.444%204.692-7.819%204.692-8.806%200-12.098-8.23-12.098-15.802%200-10.287%204.855-16.542%2012.427-16.542%203.292%200%206.009%202.222%207.407%204.773h.165V8.883h-3.95V7h12.674v52z'/%3e%3c/svg%3e";
|
|
16685
16334
|
const bankid = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='85'%20height='80'%20fill='%23193e4f'%20xmlns:v='https://vecta.io/nano'%3e%3cpath%20d='M26.693%2041.74l3.534-22.276h-3.775c-1.767%200-4.043-.991-4.712-2.811-.214-.616-.723-2.731%202.195-4.793%201.044-.723%201.714-1.526%201.847-2.142.134-.643-.027-1.205-.482-1.633-.643-.616-1.901-.964-3.507-.964-2.704%200-4.605%201.553-4.792%202.677-.134.83.509%201.499%201.071%201.928%201.687%201.258%202.088%203.079%201.044%204.793-1.071%201.767-3.4%202.918-5.89%202.945H9.371L3.4%2057.51h20.83l2.463-15.77zM2.276%2065.221h8.541c3.641%200%204.525%201.847%204.257%203.534-.214%201.366-1.151%202.383-2.758%203.052%202.035.776%202.838%201.981%202.544%203.882-.375%202.383-2.436%204.15-5.141%204.15H0l2.276-14.618zm5.649%206.051c1.66%200%202.436-.884%202.597-1.928.161-1.124-.348-1.901-2.008-1.901H7.042l-.589%203.829h1.473zm-.91%206.292c1.714%200%202.704-.696%202.945-2.115.187-1.232-.509-1.954-2.169-1.954h-1.66l-.643%204.096h1.526v-.027zm19.812%202.383c-2.222.161-3.293-.08-3.829-1.044-1.178.723-2.49%201.098-3.882%201.098-2.517%200-3.4-1.312-3.159-2.758.107-.696.509-1.365%201.151-1.928%201.392-1.205%204.819-1.365%206.158-2.276.107-1.017-.294-1.392-1.553-1.392-1.473%200-2.704.482-4.819%201.928l.509-3.32c1.821-1.312%203.588-1.928%205.623-1.928%202.597%200%204.9%201.071%204.471%203.909l-.509%203.213c-.187%201.124-.134%201.473%201.125%201.499l-1.285%202.999zm-3.855-5.06c-1.178.75-3.373.616-3.615%202.169-.107.723.348%201.258%201.071%201.258.696%200%201.553-.294%202.249-.776-.054-.268-.027-.535.053-1.044l.241-1.606zm8.005-6.373h4.445l-.241%201.472c1.419-1.205%202.49-1.66%203.882-1.66%202.49%200%203.641%201.526%203.24%204.016l-1.151%207.47h-4.444l.964-6.185c.187-1.124-.161-1.66-1.017-1.66-.696%200-1.339.375-1.955%201.205l-1.017%206.613h-4.444l1.74-11.272zm14.806-3.293h4.445l-1.125%207.175%204.257-3.882h5.489l-5.462%204.819%204.391%206.479h-5.596l-3.373-5.248h-.054l-.803%205.221h-4.444l2.276-14.565zm15.716%200h5.114l-2.249%2014.592H59.25l2.249-14.592zm7.604%200h7.309c5.649%200%207.282%204.096%206.747%207.497-.509%203.32-3.133%207.095-8.086%207.095h-8.246l2.276-14.592zm4.739%2011.111c2.49%200%203.855-1.232%204.257-3.829.294-1.928-.295-3.829-3.052-3.829h-1.365l-1.178%207.657h1.339zM54.699%200H33.414l-2.838%2018.019h3.614c1.981%200%203.855-.91%204.659-2.222.268-.428.375-.803.375-1.151%200-.75-.509-1.312-1.017-1.687-1.392-1.044-1.687-2.142-1.687-2.918%200-.161%200-.295.027-.428.294-1.901%202.865-3.963%206.265-3.963%202.035%200%203.588.482%204.525%201.365.83.776%201.151%201.874.91%203.025-.294%201.365-1.66%202.49-2.436%203.052-2.062%201.446-1.794%202.704-1.66%203.079.428%201.124%202.062%201.847%203.32%201.847h5.515v.027c7.497.054%2011.513%203.507%2010.254%2011.54-1.178%207.47-6.908%2010.683-13.735%2010.736l-2.704%2017.242h3.989c16.841%200%2030.602-10.817%2033.307-27.898C87.443%208.461%2073.976%200%2054.699%200z'/%3e%3c/svg%3e";
|
|
16686
16335
|
const FdsVueCorePlugin = {
|
|
16687
|
-
install(app) {
|
|
16336
|
+
install(app, options) {
|
|
16337
|
+
if (options?.i18n) {
|
|
16338
|
+
app.provide(FDS_VUE_CORE_I18N_KEY, options.i18n);
|
|
16339
|
+
}
|
|
16688
16340
|
app.component("FdsTreeView", _sfc_main$f);
|
|
16689
16341
|
app.component("FdsButtonPrimary", _sfc_main$x);
|
|
16690
16342
|
app.component("FdsButtonSecondary", _sfc_main$w);
|
|
@@ -16729,6 +16381,7 @@ const FdsVueCorePlugin = {
|
|
|
16729
16381
|
}
|
|
16730
16382
|
};
|
|
16731
16383
|
export {
|
|
16384
|
+
FDS_VUE_CORE_I18N_KEY,
|
|
16732
16385
|
_sfc_main$H as FdsBlockAlert,
|
|
16733
16386
|
_sfc_main$G as FdsBlockContent,
|
|
16734
16387
|
_sfc_main$E as FdsBlockExpander,
|