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.cjs.js
CHANGED
|
@@ -1007,7 +1007,7 @@ const _hoisted_4$c = {
|
|
|
1007
1007
|
const _hoisted_5$b = { class: "flex items-start justify-between gap-4" };
|
|
1008
1008
|
const _hoisted_6$8 = { class: "m-0 text-base font-main font-bold tracking-wide" };
|
|
1009
1009
|
const _hoisted_7$8 = { class: "flex items-start gap-3" };
|
|
1010
|
-
const _hoisted_8$
|
|
1010
|
+
const _hoisted_8$5 = {
|
|
1011
1011
|
key: 1,
|
|
1012
1012
|
class: "mb-0-last-child"
|
|
1013
1013
|
};
|
|
@@ -1066,7 +1066,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
1066
1066
|
])
|
|
1067
1067
|
])
|
|
1068
1068
|
])) : vue.createCommentVNode("", true),
|
|
1069
|
-
vue.unref(hasSlot) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$
|
|
1069
|
+
vue.unref(hasSlot) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$5, [
|
|
1070
1070
|
vue.renderSlot(_ctx.$slots, "default")
|
|
1071
1071
|
])) : vue.createCommentVNode("", true)
|
|
1072
1072
|
])
|
|
@@ -3002,7 +3002,13 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
3002
3002
|
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
3003
3003
|
function mergeConfig$1(config1, config2) {
|
|
3004
3004
|
config2 = config2 || {};
|
|
3005
|
-
const config =
|
|
3005
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
3006
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
3007
|
+
value: Object.prototype.hasOwnProperty,
|
|
3008
|
+
enumerable: false,
|
|
3009
|
+
writable: true,
|
|
3010
|
+
configurable: true
|
|
3011
|
+
});
|
|
3006
3012
|
function getMergedValue(target, source, prop, caseless) {
|
|
3007
3013
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
3008
3014
|
return utils$1.merge.call({ caseless }, target, source);
|
|
@@ -3066,6 +3072,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
3066
3072
|
httpsAgent: defaultToConfig2,
|
|
3067
3073
|
cancelToken: defaultToConfig2,
|
|
3068
3074
|
socketPath: defaultToConfig2,
|
|
3075
|
+
allowedSocketPaths: defaultToConfig2,
|
|
3069
3076
|
responseEncoding: defaultToConfig2,
|
|
3070
3077
|
validateStatus: mergeDirectKeys,
|
|
3071
3078
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
@@ -3082,10 +3089,19 @@ function mergeConfig$1(config1, config2) {
|
|
|
3082
3089
|
}
|
|
3083
3090
|
const resolveConfig = (config) => {
|
|
3084
3091
|
const newConfig = mergeConfig$1({}, config);
|
|
3085
|
-
|
|
3092
|
+
const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
3093
|
+
const data = own2("data");
|
|
3094
|
+
let withXSRFToken = own2("withXSRFToken");
|
|
3095
|
+
const xsrfHeaderName = own2("xsrfHeaderName");
|
|
3096
|
+
const xsrfCookieName = own2("xsrfCookieName");
|
|
3097
|
+
let headers = own2("headers");
|
|
3098
|
+
const auth = own2("auth");
|
|
3099
|
+
const baseURL = own2("baseURL");
|
|
3100
|
+
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
3101
|
+
const url = own2("url");
|
|
3086
3102
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
3087
3103
|
newConfig.url = buildURL(
|
|
3088
|
-
buildFullPath(
|
|
3104
|
+
buildFullPath(baseURL, url, allowAbsoluteUrls),
|
|
3089
3105
|
config.params,
|
|
3090
3106
|
config.paramsSerializer
|
|
3091
3107
|
);
|
|
@@ -3709,7 +3725,7 @@ function dispatchRequest(config) {
|
|
|
3709
3725
|
}
|
|
3710
3726
|
);
|
|
3711
3727
|
}
|
|
3712
|
-
const VERSION$1 = "1.15.
|
|
3728
|
+
const VERSION$1 = "1.15.2";
|
|
3713
3729
|
const validators$1 = {};
|
|
3714
3730
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
3715
3731
|
validators$1[type] = function validator2(thing) {
|
|
@@ -3754,7 +3770,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
3754
3770
|
let i = keys.length;
|
|
3755
3771
|
while (i-- > 0) {
|
|
3756
3772
|
const opt = keys[i];
|
|
3757
|
-
const validator2 = schema[opt];
|
|
3773
|
+
const validator2 = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
3758
3774
|
if (validator2) {
|
|
3759
3775
|
const value = options[opt];
|
|
3760
3776
|
const result = value === void 0 || validator2(value, opt, options);
|
|
@@ -8971,7 +8987,7 @@ const _hoisted_4$a = { class: "w-full text-left text-xs border-collapse" };
|
|
|
8971
8987
|
const _hoisted_5$a = ["onClick"];
|
|
8972
8988
|
const _hoisted_6$7 = { class: "py-1.5 px-3 font-mono break-all" };
|
|
8973
8989
|
const _hoisted_7$7 = { class: "py-1.5 px-3 font-mono whitespace-pre-wrap break-all" };
|
|
8974
|
-
const _hoisted_8$
|
|
8990
|
+
const _hoisted_8$4 = { class: "mt-4 space-y-2" };
|
|
8975
8991
|
const _hoisted_9$3 = { class: "flex flex-col gap-1" };
|
|
8976
8992
|
const _hoisted_10$2 = { class: "flex flex-col gap-1" };
|
|
8977
8993
|
const _hoisted_11$2 = {
|
|
@@ -9281,7 +9297,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
9281
9297
|
])
|
|
9282
9298
|
])
|
|
9283
9299
|
])),
|
|
9284
|
-
vue.createElementVNode("div", _hoisted_8$
|
|
9300
|
+
vue.createElementVNode("div", _hoisted_8$4, [
|
|
9285
9301
|
vue.createElementVNode("div", _hoisted_9$3, [
|
|
9286
9302
|
_cache[13] || (_cache[13] = vue.createElementVNode("label", { class: "text-xs font-semibold" }, "Nyckel", -1)),
|
|
9287
9303
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -10084,7 +10100,7 @@ const _hoisted_6$5 = {
|
|
|
10084
10100
|
class: "flex justify-center p-4"
|
|
10085
10101
|
};
|
|
10086
10102
|
const _hoisted_7$5 = ["id", "onMouseup"];
|
|
10087
|
-
const _hoisted_8$
|
|
10103
|
+
const _hoisted_8$3 = ["id", "onKeydown"];
|
|
10088
10104
|
const _hoisted_9$2 = ["for", "innerHTML"];
|
|
10089
10105
|
const _hoisted_10$1 = {
|
|
10090
10106
|
key: 2,
|
|
@@ -10576,7 +10592,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
10576
10592
|
vue.withKeys((e) => handleClick(e, item), ["enter"]),
|
|
10577
10593
|
vue.withKeys(vue.withModifiers((e) => handleClick(e, item), ["prevent"]), ["space"])
|
|
10578
10594
|
]
|
|
10579
|
-
}, null, 40, _hoisted_8$
|
|
10595
|
+
}, null, 40, _hoisted_8$3),
|
|
10580
10596
|
vue.createElementVNode("label", {
|
|
10581
10597
|
for: `search-select-radio-${index}`,
|
|
10582
10598
|
class: vue.normalizeClass([labelClasses.value, listItemClasses.value]),
|
|
@@ -11257,7 +11273,7 @@ const _hoisted_4$6 = {
|
|
|
11257
11273
|
const _hoisted_5$6 = ["id", "role", "onMouseup"];
|
|
11258
11274
|
const _hoisted_6$4 = ["innerHTML"];
|
|
11259
11275
|
const _hoisted_7$4 = ["onClick"];
|
|
11260
|
-
const _hoisted_8$
|
|
11276
|
+
const _hoisted_8$2 = ["innerHTML"];
|
|
11261
11277
|
const _hoisted_9$1 = ["innerHTML"];
|
|
11262
11278
|
const _hoisted_10 = {
|
|
11263
11279
|
key: 0,
|
|
@@ -12007,7 +12023,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
12007
12023
|
vue.createElementVNode("span", {
|
|
12008
12024
|
class: "min-w-0 flex-1",
|
|
12009
12025
|
innerHTML: handleMatchingString(item)
|
|
12010
|
-
}, null, 8, _hoisted_8$
|
|
12026
|
+
}, null, 8, _hoisted_8$2)
|
|
12011
12027
|
]),
|
|
12012
12028
|
_: 2
|
|
12013
12029
|
}, 1032, ["id", "name", "checked", "onChange"])) : (vue.openBlock(), vue.createBlock(_sfc_main$i, {
|
|
@@ -12483,7 +12499,7 @@ const _hoisted_6$3 = {
|
|
|
12483
12499
|
class: "items-center max-h-[28px]"
|
|
12484
12500
|
};
|
|
12485
12501
|
const _hoisted_7$3 = { class: "flex flex-col gap-2" };
|
|
12486
|
-
const _hoisted_8$
|
|
12502
|
+
const _hoisted_8$1 = ["onClick"];
|
|
12487
12503
|
const _hoisted_9 = { key: 0 };
|
|
12488
12504
|
const popoverWidth = 327;
|
|
12489
12505
|
const popoverHeight = 80;
|
|
@@ -12780,7 +12796,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
12780
12796
|
onBlur: closePopover,
|
|
12781
12797
|
label: option.label
|
|
12782
12798
|
}, null, 8, ["modelValue", "id", "name", "value", "label"])
|
|
12783
|
-
], 8, _hoisted_8$
|
|
12799
|
+
], 8, _hoisted_8$1);
|
|
12784
12800
|
}), 64))
|
|
12785
12801
|
]),
|
|
12786
12802
|
vue.createVNode(_sfc_main$I, vue.mergeProps({
|
|
@@ -13199,7 +13215,7 @@ function startOfYear(date, options) {
|
|
|
13199
13215
|
date_.setHours(0, 0, 0, 0);
|
|
13200
13216
|
return date_;
|
|
13201
13217
|
}
|
|
13202
|
-
const formatDistanceLocale
|
|
13218
|
+
const formatDistanceLocale = {
|
|
13203
13219
|
lessThanXSeconds: {
|
|
13204
13220
|
one: "less than a second",
|
|
13205
13221
|
other: "less than {{count}} seconds"
|
|
@@ -13262,9 +13278,9 @@ const formatDistanceLocale$1 = {
|
|
|
13262
13278
|
other: "almost {{count}} years"
|
|
13263
13279
|
}
|
|
13264
13280
|
};
|
|
13265
|
-
const formatDistance
|
|
13281
|
+
const formatDistance = (token, count, options) => {
|
|
13266
13282
|
let result;
|
|
13267
|
-
const tokenValue = formatDistanceLocale
|
|
13283
|
+
const tokenValue = formatDistanceLocale[token];
|
|
13268
13284
|
if (typeof tokenValue === "string") {
|
|
13269
13285
|
result = tokenValue;
|
|
13270
13286
|
} else if (count === 1) {
|
|
@@ -13288,39 +13304,39 @@ function buildFormatLongFn(args) {
|
|
|
13288
13304
|
return format2;
|
|
13289
13305
|
};
|
|
13290
13306
|
}
|
|
13291
|
-
const dateFormats
|
|
13307
|
+
const dateFormats = {
|
|
13292
13308
|
full: "EEEE, MMMM do, y",
|
|
13293
13309
|
long: "MMMM do, y",
|
|
13294
13310
|
medium: "MMM d, y",
|
|
13295
13311
|
short: "MM/dd/yyyy"
|
|
13296
13312
|
};
|
|
13297
|
-
const timeFormats
|
|
13313
|
+
const timeFormats = {
|
|
13298
13314
|
full: "h:mm:ss a zzzz",
|
|
13299
13315
|
long: "h:mm:ss a z",
|
|
13300
13316
|
medium: "h:mm:ss a",
|
|
13301
13317
|
short: "h:mm a"
|
|
13302
13318
|
};
|
|
13303
|
-
const dateTimeFormats
|
|
13319
|
+
const dateTimeFormats = {
|
|
13304
13320
|
full: "{{date}} 'at' {{time}}",
|
|
13305
13321
|
long: "{{date}} 'at' {{time}}",
|
|
13306
13322
|
medium: "{{date}}, {{time}}",
|
|
13307
13323
|
short: "{{date}}, {{time}}"
|
|
13308
13324
|
};
|
|
13309
|
-
const formatLong
|
|
13325
|
+
const formatLong = {
|
|
13310
13326
|
date: buildFormatLongFn({
|
|
13311
|
-
formats: dateFormats
|
|
13327
|
+
formats: dateFormats,
|
|
13312
13328
|
defaultWidth: "full"
|
|
13313
13329
|
}),
|
|
13314
13330
|
time: buildFormatLongFn({
|
|
13315
|
-
formats: timeFormats
|
|
13331
|
+
formats: timeFormats,
|
|
13316
13332
|
defaultWidth: "full"
|
|
13317
13333
|
}),
|
|
13318
13334
|
dateTime: buildFormatLongFn({
|
|
13319
|
-
formats: dateTimeFormats
|
|
13335
|
+
formats: dateTimeFormats,
|
|
13320
13336
|
defaultWidth: "full"
|
|
13321
13337
|
})
|
|
13322
13338
|
};
|
|
13323
|
-
const formatRelativeLocale
|
|
13339
|
+
const formatRelativeLocale = {
|
|
13324
13340
|
lastWeek: "'last' eeee 'at' p",
|
|
13325
13341
|
yesterday: "'yesterday at' p",
|
|
13326
13342
|
today: "'today at' p",
|
|
@@ -13328,7 +13344,7 @@ const formatRelativeLocale$1 = {
|
|
|
13328
13344
|
nextWeek: "eeee 'at' p",
|
|
13329
13345
|
other: "P"
|
|
13330
13346
|
};
|
|
13331
|
-
const formatRelative
|
|
13347
|
+
const formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
|
|
13332
13348
|
function buildLocalizeFn(args) {
|
|
13333
13349
|
return (value, options) => {
|
|
13334
13350
|
const context = options?.context ? String(options.context) : "standalone";
|
|
@@ -13346,17 +13362,17 @@ function buildLocalizeFn(args) {
|
|
|
13346
13362
|
return valuesArray[index];
|
|
13347
13363
|
};
|
|
13348
13364
|
}
|
|
13349
|
-
const eraValues
|
|
13365
|
+
const eraValues = {
|
|
13350
13366
|
narrow: ["B", "A"],
|
|
13351
13367
|
abbreviated: ["BC", "AD"],
|
|
13352
13368
|
wide: ["Before Christ", "Anno Domini"]
|
|
13353
13369
|
};
|
|
13354
|
-
const quarterValues
|
|
13370
|
+
const quarterValues = {
|
|
13355
13371
|
narrow: ["1", "2", "3", "4"],
|
|
13356
13372
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
13357
13373
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
13358
13374
|
};
|
|
13359
|
-
const monthValues
|
|
13375
|
+
const monthValues = {
|
|
13360
13376
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
13361
13377
|
abbreviated: [
|
|
13362
13378
|
"Jan",
|
|
@@ -13387,7 +13403,7 @@ const monthValues$1 = {
|
|
|
13387
13403
|
"December"
|
|
13388
13404
|
]
|
|
13389
13405
|
};
|
|
13390
|
-
const dayValues
|
|
13406
|
+
const dayValues = {
|
|
13391
13407
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
13392
13408
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
13393
13409
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -13401,7 +13417,7 @@ const dayValues$1 = {
|
|
|
13401
13417
|
"Saturday"
|
|
13402
13418
|
]
|
|
13403
13419
|
};
|
|
13404
|
-
const dayPeriodValues
|
|
13420
|
+
const dayPeriodValues = {
|
|
13405
13421
|
narrow: {
|
|
13406
13422
|
am: "a",
|
|
13407
13423
|
pm: "p",
|
|
@@ -13433,7 +13449,7 @@ const dayPeriodValues$1 = {
|
|
|
13433
13449
|
night: "night"
|
|
13434
13450
|
}
|
|
13435
13451
|
};
|
|
13436
|
-
const formattingDayPeriodValues
|
|
13452
|
+
const formattingDayPeriodValues = {
|
|
13437
13453
|
narrow: {
|
|
13438
13454
|
am: "a",
|
|
13439
13455
|
pm: "p",
|
|
@@ -13465,7 +13481,7 @@ const formattingDayPeriodValues$1 = {
|
|
|
13465
13481
|
night: "at night"
|
|
13466
13482
|
}
|
|
13467
13483
|
};
|
|
13468
|
-
const ordinalNumber
|
|
13484
|
+
const ordinalNumber = (dirtyNumber, _options) => {
|
|
13469
13485
|
const number = Number(dirtyNumber);
|
|
13470
13486
|
const rem100 = number % 100;
|
|
13471
13487
|
if (rem100 > 20 || rem100 < 10) {
|
|
@@ -13480,29 +13496,29 @@ const ordinalNumber$1 = (dirtyNumber, _options) => {
|
|
|
13480
13496
|
}
|
|
13481
13497
|
return number + "th";
|
|
13482
13498
|
};
|
|
13483
|
-
const localize
|
|
13484
|
-
ordinalNumber
|
|
13499
|
+
const localize = {
|
|
13500
|
+
ordinalNumber,
|
|
13485
13501
|
era: buildLocalizeFn({
|
|
13486
|
-
values: eraValues
|
|
13502
|
+
values: eraValues,
|
|
13487
13503
|
defaultWidth: "wide"
|
|
13488
13504
|
}),
|
|
13489
13505
|
quarter: buildLocalizeFn({
|
|
13490
|
-
values: quarterValues
|
|
13506
|
+
values: quarterValues,
|
|
13491
13507
|
defaultWidth: "wide",
|
|
13492
13508
|
argumentCallback: (quarter) => quarter - 1
|
|
13493
13509
|
}),
|
|
13494
13510
|
month: buildLocalizeFn({
|
|
13495
|
-
values: monthValues
|
|
13511
|
+
values: monthValues,
|
|
13496
13512
|
defaultWidth: "wide"
|
|
13497
13513
|
}),
|
|
13498
13514
|
day: buildLocalizeFn({
|
|
13499
|
-
values: dayValues
|
|
13515
|
+
values: dayValues,
|
|
13500
13516
|
defaultWidth: "wide"
|
|
13501
13517
|
}),
|
|
13502
13518
|
dayPeriod: buildLocalizeFn({
|
|
13503
|
-
values: dayPeriodValues
|
|
13519
|
+
values: dayPeriodValues,
|
|
13504
13520
|
defaultWidth: "wide",
|
|
13505
|
-
formattingValues: formattingDayPeriodValues
|
|
13521
|
+
formattingValues: formattingDayPeriodValues,
|
|
13506
13522
|
defaultFormattingWidth: "wide"
|
|
13507
13523
|
})
|
|
13508
13524
|
};
|
|
@@ -13559,30 +13575,30 @@ function buildMatchPatternFn(args) {
|
|
|
13559
13575
|
return { value, rest };
|
|
13560
13576
|
};
|
|
13561
13577
|
}
|
|
13562
|
-
const matchOrdinalNumberPattern
|
|
13563
|
-
const parseOrdinalNumberPattern
|
|
13564
|
-
const matchEraPatterns
|
|
13578
|
+
const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
|
|
13579
|
+
const parseOrdinalNumberPattern = /\d+/i;
|
|
13580
|
+
const matchEraPatterns = {
|
|
13565
13581
|
narrow: /^(b|a)/i,
|
|
13566
13582
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
13567
13583
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
13568
13584
|
};
|
|
13569
|
-
const parseEraPatterns
|
|
13585
|
+
const parseEraPatterns = {
|
|
13570
13586
|
any: [/^b/i, /^(a|c)/i]
|
|
13571
13587
|
};
|
|
13572
|
-
const matchQuarterPatterns
|
|
13588
|
+
const matchQuarterPatterns = {
|
|
13573
13589
|
narrow: /^[1234]/i,
|
|
13574
13590
|
abbreviated: /^q[1234]/i,
|
|
13575
13591
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
13576
13592
|
};
|
|
13577
|
-
const parseQuarterPatterns
|
|
13593
|
+
const parseQuarterPatterns = {
|
|
13578
13594
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
13579
13595
|
};
|
|
13580
|
-
const matchMonthPatterns
|
|
13596
|
+
const matchMonthPatterns = {
|
|
13581
13597
|
narrow: /^[jfmasond]/i,
|
|
13582
13598
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
13583
13599
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
13584
13600
|
};
|
|
13585
|
-
const parseMonthPatterns
|
|
13601
|
+
const parseMonthPatterns = {
|
|
13586
13602
|
narrow: [
|
|
13587
13603
|
/^j/i,
|
|
13588
13604
|
/^f/i,
|
|
@@ -13612,21 +13628,21 @@ const parseMonthPatterns$1 = {
|
|
|
13612
13628
|
/^d/i
|
|
13613
13629
|
]
|
|
13614
13630
|
};
|
|
13615
|
-
const matchDayPatterns
|
|
13631
|
+
const matchDayPatterns = {
|
|
13616
13632
|
narrow: /^[smtwf]/i,
|
|
13617
13633
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
13618
13634
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
13619
13635
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
13620
13636
|
};
|
|
13621
|
-
const parseDayPatterns
|
|
13637
|
+
const parseDayPatterns = {
|
|
13622
13638
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
13623
13639
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
13624
13640
|
};
|
|
13625
|
-
const matchDayPeriodPatterns
|
|
13641
|
+
const matchDayPeriodPatterns = {
|
|
13626
13642
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
13627
13643
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
13628
13644
|
};
|
|
13629
|
-
const parseDayPeriodPatterns
|
|
13645
|
+
const parseDayPeriodPatterns = {
|
|
13630
13646
|
any: {
|
|
13631
13647
|
am: /^a/i,
|
|
13632
13648
|
pm: /^p/i,
|
|
@@ -13638,51 +13654,51 @@ const parseDayPeriodPatterns$1 = {
|
|
|
13638
13654
|
night: /night/i
|
|
13639
13655
|
}
|
|
13640
13656
|
};
|
|
13641
|
-
const match
|
|
13657
|
+
const match = {
|
|
13642
13658
|
ordinalNumber: buildMatchPatternFn({
|
|
13643
|
-
matchPattern: matchOrdinalNumberPattern
|
|
13644
|
-
parsePattern: parseOrdinalNumberPattern
|
|
13659
|
+
matchPattern: matchOrdinalNumberPattern,
|
|
13660
|
+
parsePattern: parseOrdinalNumberPattern,
|
|
13645
13661
|
valueCallback: (value) => parseInt(value, 10)
|
|
13646
13662
|
}),
|
|
13647
13663
|
era: buildMatchFn({
|
|
13648
|
-
matchPatterns: matchEraPatterns
|
|
13664
|
+
matchPatterns: matchEraPatterns,
|
|
13649
13665
|
defaultMatchWidth: "wide",
|
|
13650
|
-
parsePatterns: parseEraPatterns
|
|
13666
|
+
parsePatterns: parseEraPatterns,
|
|
13651
13667
|
defaultParseWidth: "any"
|
|
13652
13668
|
}),
|
|
13653
13669
|
quarter: buildMatchFn({
|
|
13654
|
-
matchPatterns: matchQuarterPatterns
|
|
13670
|
+
matchPatterns: matchQuarterPatterns,
|
|
13655
13671
|
defaultMatchWidth: "wide",
|
|
13656
|
-
parsePatterns: parseQuarterPatterns
|
|
13672
|
+
parsePatterns: parseQuarterPatterns,
|
|
13657
13673
|
defaultParseWidth: "any",
|
|
13658
13674
|
valueCallback: (index) => index + 1
|
|
13659
13675
|
}),
|
|
13660
13676
|
month: buildMatchFn({
|
|
13661
|
-
matchPatterns: matchMonthPatterns
|
|
13677
|
+
matchPatterns: matchMonthPatterns,
|
|
13662
13678
|
defaultMatchWidth: "wide",
|
|
13663
|
-
parsePatterns: parseMonthPatterns
|
|
13679
|
+
parsePatterns: parseMonthPatterns,
|
|
13664
13680
|
defaultParseWidth: "any"
|
|
13665
13681
|
}),
|
|
13666
13682
|
day: buildMatchFn({
|
|
13667
|
-
matchPatterns: matchDayPatterns
|
|
13683
|
+
matchPatterns: matchDayPatterns,
|
|
13668
13684
|
defaultMatchWidth: "wide",
|
|
13669
|
-
parsePatterns: parseDayPatterns
|
|
13685
|
+
parsePatterns: parseDayPatterns,
|
|
13670
13686
|
defaultParseWidth: "any"
|
|
13671
13687
|
}),
|
|
13672
13688
|
dayPeriod: buildMatchFn({
|
|
13673
|
-
matchPatterns: matchDayPeriodPatterns
|
|
13689
|
+
matchPatterns: matchDayPeriodPatterns,
|
|
13674
13690
|
defaultMatchWidth: "any",
|
|
13675
|
-
parsePatterns: parseDayPeriodPatterns
|
|
13691
|
+
parsePatterns: parseDayPeriodPatterns,
|
|
13676
13692
|
defaultParseWidth: "any"
|
|
13677
13693
|
})
|
|
13678
13694
|
};
|
|
13679
13695
|
const enUS = {
|
|
13680
13696
|
code: "en-US",
|
|
13681
|
-
formatDistance
|
|
13682
|
-
formatLong
|
|
13683
|
-
formatRelative
|
|
13684
|
-
localize
|
|
13685
|
-
match
|
|
13697
|
+
formatDistance,
|
|
13698
|
+
formatLong,
|
|
13699
|
+
formatRelative,
|
|
13700
|
+
localize,
|
|
13701
|
+
match,
|
|
13686
13702
|
options: {
|
|
13687
13703
|
weekStartsOn: 0,
|
|
13688
13704
|
firstWeekContainsDate: 1
|
|
@@ -14609,423 +14625,88 @@ function subDays(date, amount, options) {
|
|
|
14609
14625
|
function subWeeks(date, amount, options) {
|
|
14610
14626
|
return addWeeks(date, -1, options);
|
|
14611
14627
|
}
|
|
14612
|
-
const
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
xSeconds: {
|
|
14618
|
-
one: "en sekund",
|
|
14619
|
-
other: "{{count}} sekunder"
|
|
14620
|
-
},
|
|
14621
|
-
halfAMinute: "en halv minut",
|
|
14622
|
-
lessThanXMinutes: {
|
|
14623
|
-
one: "mindre än en minut",
|
|
14624
|
-
other: "mindre än {{count}} minuter"
|
|
14625
|
-
},
|
|
14626
|
-
xMinutes: {
|
|
14627
|
-
one: "en minut",
|
|
14628
|
-
other: "{{count}} minuter"
|
|
14629
|
-
},
|
|
14630
|
-
aboutXHours: {
|
|
14631
|
-
one: "ungefär en timme",
|
|
14632
|
-
other: "ungefär {{count}} timmar"
|
|
14633
|
-
},
|
|
14634
|
-
xHours: {
|
|
14635
|
-
one: "en timme",
|
|
14636
|
-
other: "{{count}} timmar"
|
|
14637
|
-
},
|
|
14638
|
-
xDays: {
|
|
14639
|
-
one: "en dag",
|
|
14640
|
-
other: "{{count}} dagar"
|
|
14641
|
-
},
|
|
14642
|
-
aboutXWeeks: {
|
|
14643
|
-
one: "ungefär en vecka",
|
|
14644
|
-
other: "ungefär {{count}} veckor"
|
|
14645
|
-
},
|
|
14646
|
-
xWeeks: {
|
|
14647
|
-
one: "en vecka",
|
|
14648
|
-
other: "{{count}} veckor"
|
|
14649
|
-
},
|
|
14650
|
-
aboutXMonths: {
|
|
14651
|
-
one: "ungefär en månad",
|
|
14652
|
-
other: "ungefär {{count}} månader"
|
|
14653
|
-
},
|
|
14654
|
-
xMonths: {
|
|
14655
|
-
one: "en månad",
|
|
14656
|
-
other: "{{count}} månader"
|
|
14657
|
-
},
|
|
14658
|
-
aboutXYears: {
|
|
14659
|
-
one: "ungefär ett år",
|
|
14660
|
-
other: "ungefär {{count}} år"
|
|
14661
|
-
},
|
|
14662
|
-
xYears: {
|
|
14663
|
-
one: "ett år",
|
|
14664
|
-
other: "{{count}} år"
|
|
14665
|
-
},
|
|
14666
|
-
overXYears: {
|
|
14667
|
-
one: "över ett år",
|
|
14668
|
-
other: "över {{count}} år"
|
|
14669
|
-
},
|
|
14670
|
-
almostXYears: {
|
|
14671
|
-
one: "nästan ett år",
|
|
14672
|
-
other: "nästan {{count}} år"
|
|
14673
|
-
}
|
|
14674
|
-
};
|
|
14675
|
-
const wordMapping = [
|
|
14676
|
-
"noll",
|
|
14677
|
-
"en",
|
|
14678
|
-
"två",
|
|
14679
|
-
"tre",
|
|
14680
|
-
"fyra",
|
|
14681
|
-
"fem",
|
|
14682
|
-
"sex",
|
|
14683
|
-
"sju",
|
|
14684
|
-
"åtta",
|
|
14685
|
-
"nio",
|
|
14686
|
-
"tio",
|
|
14687
|
-
"elva",
|
|
14688
|
-
"tolv"
|
|
14689
|
-
];
|
|
14690
|
-
const formatDistance = (token, count, options) => {
|
|
14691
|
-
let result;
|
|
14692
|
-
const tokenValue = formatDistanceLocale[token];
|
|
14693
|
-
if (typeof tokenValue === "string") {
|
|
14694
|
-
result = tokenValue;
|
|
14695
|
-
} else if (count === 1) {
|
|
14696
|
-
result = tokenValue.one;
|
|
14697
|
-
} else {
|
|
14698
|
-
result = tokenValue.other.replace(
|
|
14699
|
-
"{{count}}",
|
|
14700
|
-
count < 13 ? wordMapping[count] : String(count)
|
|
14701
|
-
);
|
|
14702
|
-
}
|
|
14703
|
-
if (options?.addSuffix) {
|
|
14704
|
-
if (options.comparison && options.comparison > 0) {
|
|
14705
|
-
return "om " + result;
|
|
14706
|
-
} else {
|
|
14707
|
-
return result + " sedan";
|
|
14708
|
-
}
|
|
14709
|
-
}
|
|
14710
|
-
return result;
|
|
14711
|
-
};
|
|
14712
|
-
const dateFormats = {
|
|
14713
|
-
full: "EEEE d MMMM y",
|
|
14714
|
-
long: "d MMMM y",
|
|
14715
|
-
medium: "d MMM y",
|
|
14716
|
-
short: "y-MM-dd"
|
|
14717
|
-
};
|
|
14718
|
-
const timeFormats = {
|
|
14719
|
-
full: "'kl'. HH:mm:ss zzzz",
|
|
14720
|
-
long: "HH:mm:ss z",
|
|
14721
|
-
medium: "HH:mm:ss",
|
|
14722
|
-
short: "HH:mm"
|
|
14723
|
-
};
|
|
14724
|
-
const dateTimeFormats = {
|
|
14725
|
-
full: "{{date}} 'kl.' {{time}}",
|
|
14726
|
-
long: "{{date}} 'kl.' {{time}}",
|
|
14727
|
-
medium: "{{date}} {{time}}",
|
|
14728
|
-
short: "{{date}} {{time}}"
|
|
14729
|
-
};
|
|
14730
|
-
const formatLong = {
|
|
14731
|
-
date: buildFormatLongFn({
|
|
14732
|
-
formats: dateFormats,
|
|
14733
|
-
defaultWidth: "full"
|
|
14734
|
-
}),
|
|
14735
|
-
time: buildFormatLongFn({
|
|
14736
|
-
formats: timeFormats,
|
|
14737
|
-
defaultWidth: "full"
|
|
14738
|
-
}),
|
|
14739
|
-
dateTime: buildFormatLongFn({
|
|
14740
|
-
formats: dateTimeFormats,
|
|
14741
|
-
defaultWidth: "full"
|
|
14742
|
-
})
|
|
14743
|
-
};
|
|
14744
|
-
const formatRelativeLocale = {
|
|
14745
|
-
lastWeek: "'i' EEEE's kl.' p",
|
|
14746
|
-
yesterday: "'igår kl.' p",
|
|
14747
|
-
today: "'idag kl.' p",
|
|
14748
|
-
tomorrow: "'imorgon kl.' p",
|
|
14749
|
-
nextWeek: "EEEE 'kl.' p",
|
|
14750
|
-
other: "P"
|
|
14751
|
-
};
|
|
14752
|
-
const formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
|
|
14753
|
-
const eraValues = {
|
|
14754
|
-
narrow: ["f.Kr.", "e.Kr."],
|
|
14755
|
-
abbreviated: ["f.Kr.", "e.Kr."],
|
|
14756
|
-
wide: ["före Kristus", "efter Kristus"]
|
|
14757
|
-
};
|
|
14758
|
-
const quarterValues = {
|
|
14759
|
-
narrow: ["1", "2", "3", "4"],
|
|
14760
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
14761
|
-
wide: ["1:a kvartalet", "2:a kvartalet", "3:e kvartalet", "4:e kvartalet"]
|
|
14628
|
+
const en = {
|
|
14629
|
+
"FdsWeekCalendar.nextWeek": "Next week",
|
|
14630
|
+
"FdsWeekCalendar.previousWeek": "Previous week",
|
|
14631
|
+
"FdsWeekCalendar.today": "Today",
|
|
14632
|
+
"FdsWeekCalendar.week": "week"
|
|
14762
14633
|
};
|
|
14763
|
-
const
|
|
14764
|
-
|
|
14765
|
-
|
|
14766
|
-
|
|
14767
|
-
|
|
14768
|
-
"mars",
|
|
14769
|
-
"apr.",
|
|
14770
|
-
"maj",
|
|
14771
|
-
"juni",
|
|
14772
|
-
"juli",
|
|
14773
|
-
"aug.",
|
|
14774
|
-
"sep.",
|
|
14775
|
-
"okt.",
|
|
14776
|
-
"nov.",
|
|
14777
|
-
"dec."
|
|
14778
|
-
],
|
|
14779
|
-
wide: [
|
|
14780
|
-
"januari",
|
|
14781
|
-
"februari",
|
|
14782
|
-
"mars",
|
|
14783
|
-
"april",
|
|
14784
|
-
"maj",
|
|
14785
|
-
"juni",
|
|
14786
|
-
"juli",
|
|
14787
|
-
"augusti",
|
|
14788
|
-
"september",
|
|
14789
|
-
"oktober",
|
|
14790
|
-
"november",
|
|
14791
|
-
"december"
|
|
14792
|
-
]
|
|
14634
|
+
const sv = {
|
|
14635
|
+
"FdsWeekCalendar.nextWeek": "Nästa vecka",
|
|
14636
|
+
"FdsWeekCalendar.previousWeek": "Föregående vecka",
|
|
14637
|
+
"FdsWeekCalendar.today": "Idag",
|
|
14638
|
+
"FdsWeekCalendar.week": "vecka"
|
|
14793
14639
|
};
|
|
14794
|
-
const
|
|
14795
|
-
|
|
14796
|
-
|
|
14797
|
-
|
|
14798
|
-
wide: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"]
|
|
14640
|
+
const FDS_VUE_CORE_I18N_KEY = /* @__PURE__ */ Symbol("fds-vue-core:i18n");
|
|
14641
|
+
const translations = {
|
|
14642
|
+
en,
|
|
14643
|
+
sv
|
|
14799
14644
|
};
|
|
14800
|
-
const
|
|
14801
|
-
|
|
14802
|
-
|
|
14803
|
-
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
|
|
14808
|
-
|
|
14809
|
-
|
|
14810
|
-
|
|
14811
|
-
|
|
14812
|
-
|
|
14813
|
-
|
|
14814
|
-
|
|
14815
|
-
|
|
14816
|
-
|
|
14817
|
-
|
|
14818
|
-
|
|
14819
|
-
|
|
14820
|
-
|
|
14821
|
-
|
|
14822
|
-
|
|
14823
|
-
|
|
14824
|
-
midnight: "midnatt",
|
|
14825
|
-
noon: "middag",
|
|
14826
|
-
morning: "morgon",
|
|
14827
|
-
afternoon: "eftermiddag",
|
|
14828
|
-
evening: "kväll",
|
|
14829
|
-
night: "natt"
|
|
14830
|
-
}
|
|
14645
|
+
const useFdsI18n = () => {
|
|
14646
|
+
const i18n = vue.inject(FDS_VUE_CORE_I18N_KEY, void 0);
|
|
14647
|
+
const locale = vue.computed(() => {
|
|
14648
|
+
const locale2 = i18n?.global?.locale ?? i18n?.locale;
|
|
14649
|
+
if (typeof locale2 === "string") return locale2;
|
|
14650
|
+
if (locale2 && typeof locale2 === "object" && "value" in locale2 && typeof locale2.value === "string") {
|
|
14651
|
+
return locale2.value;
|
|
14652
|
+
}
|
|
14653
|
+
return "sv-SE";
|
|
14654
|
+
});
|
|
14655
|
+
const activeLanguage = vue.computed(() => locale.value.toLowerCase().split("-")[0]);
|
|
14656
|
+
const dictionary = vue.computed(() => {
|
|
14657
|
+
const currentDictionary = translations[activeLanguage.value];
|
|
14658
|
+
return currentDictionary ?? translations.sv;
|
|
14659
|
+
});
|
|
14660
|
+
const t = (key) => {
|
|
14661
|
+
const value = dictionary.value[key];
|
|
14662
|
+
return typeof value === "string" ? value : "";
|
|
14663
|
+
};
|
|
14664
|
+
return {
|
|
14665
|
+
i18n,
|
|
14666
|
+
locale,
|
|
14667
|
+
t
|
|
14668
|
+
};
|
|
14831
14669
|
};
|
|
14832
|
-
const
|
|
14833
|
-
|
|
14834
|
-
|
|
14835
|
-
pm: "em",
|
|
14836
|
-
midnight: "midnatt",
|
|
14837
|
-
noon: "middag",
|
|
14838
|
-
morning: "på morg.",
|
|
14839
|
-
afternoon: "på efterm.",
|
|
14840
|
-
evening: "på kvällen",
|
|
14841
|
-
night: "på natten"
|
|
14842
|
-
},
|
|
14843
|
-
abbreviated: {
|
|
14844
|
-
am: "fm",
|
|
14845
|
-
pm: "em",
|
|
14846
|
-
midnight: "midnatt",
|
|
14847
|
-
noon: "middag",
|
|
14848
|
-
morning: "på morg.",
|
|
14849
|
-
afternoon: "på efterm.",
|
|
14850
|
-
evening: "på kvällen",
|
|
14851
|
-
night: "på natten"
|
|
14852
|
-
},
|
|
14853
|
-
wide: {
|
|
14854
|
-
am: "fm",
|
|
14855
|
-
pm: "em",
|
|
14856
|
-
midnight: "midnatt",
|
|
14857
|
-
noon: "middag",
|
|
14858
|
-
morning: "på morgonen",
|
|
14859
|
-
afternoon: "på eftermiddagen",
|
|
14860
|
-
evening: "på kvällen",
|
|
14861
|
-
night: "på natten"
|
|
14862
|
-
}
|
|
14670
|
+
const capitalizeFirstLetter$1 = (value) => {
|
|
14671
|
+
if (!value) return value;
|
|
14672
|
+
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
14863
14673
|
};
|
|
14864
|
-
const
|
|
14865
|
-
const
|
|
14866
|
-
const
|
|
14867
|
-
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
|
|
14871
|
-
|
|
14872
|
-
}
|
|
14674
|
+
const getOverlappingMonths = (week, locale = "sv-SE") => {
|
|
14675
|
+
const startDayMonth = startOfISOWeek(week);
|
|
14676
|
+
const endDayMonth = addDays(startDayMonth, 6);
|
|
14677
|
+
const shortMonthFormatter = new Intl.DateTimeFormat(locale, { month: "short" });
|
|
14678
|
+
const longMonthFormatter = new Intl.DateTimeFormat(locale, { month: "long" });
|
|
14679
|
+
if (!isSameMonth(startDayMonth, endDayMonth)) {
|
|
14680
|
+
return `${capitalizeFirstLetter$1(shortMonthFormatter.format(startDayMonth).replace(".", ""))} - ${capitalizeFirstLetter$1(
|
|
14681
|
+
shortMonthFormatter.format(endDayMonth).replace(".", "")
|
|
14682
|
+
)}`;
|
|
14873
14683
|
}
|
|
14874
|
-
return
|
|
14875
|
-
};
|
|
14876
|
-
const localize = {
|
|
14877
|
-
ordinalNumber,
|
|
14878
|
-
era: buildLocalizeFn({
|
|
14879
|
-
values: eraValues,
|
|
14880
|
-
defaultWidth: "wide"
|
|
14881
|
-
}),
|
|
14882
|
-
quarter: buildLocalizeFn({
|
|
14883
|
-
values: quarterValues,
|
|
14884
|
-
defaultWidth: "wide",
|
|
14885
|
-
argumentCallback: (quarter) => quarter - 1
|
|
14886
|
-
}),
|
|
14887
|
-
month: buildLocalizeFn({
|
|
14888
|
-
values: monthValues,
|
|
14889
|
-
defaultWidth: "wide"
|
|
14890
|
-
}),
|
|
14891
|
-
day: buildLocalizeFn({
|
|
14892
|
-
values: dayValues,
|
|
14893
|
-
defaultWidth: "wide"
|
|
14894
|
-
}),
|
|
14895
|
-
dayPeriod: buildLocalizeFn({
|
|
14896
|
-
values: dayPeriodValues,
|
|
14897
|
-
defaultWidth: "wide",
|
|
14898
|
-
formattingValues: formattingDayPeriodValues,
|
|
14899
|
-
defaultFormattingWidth: "wide"
|
|
14900
|
-
})
|
|
14901
|
-
};
|
|
14902
|
-
const matchOrdinalNumberPattern = /^(\d+)(:a|:e)?/i;
|
|
14903
|
-
const parseOrdinalNumberPattern = /\d+/i;
|
|
14904
|
-
const matchEraPatterns = {
|
|
14905
|
-
narrow: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,
|
|
14906
|
-
abbreviated: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,
|
|
14907
|
-
wide: /^(före Kristus|före vår tid|efter Kristus|vår tid)/i
|
|
14908
|
-
};
|
|
14909
|
-
const parseEraPatterns = {
|
|
14910
|
-
any: [/^f/i, /^[ev]/i]
|
|
14911
|
-
};
|
|
14912
|
-
const matchQuarterPatterns = {
|
|
14913
|
-
narrow: /^[1234]/i,
|
|
14914
|
-
abbreviated: /^q[1234]/i,
|
|
14915
|
-
wide: /^[1234](:a|:e)? kvartalet/i
|
|
14916
|
-
};
|
|
14917
|
-
const parseQuarterPatterns = {
|
|
14918
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
14919
|
-
};
|
|
14920
|
-
const matchMonthPatterns = {
|
|
14921
|
-
narrow: /^[jfmasond]/i,
|
|
14922
|
-
abbreviated: /^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,
|
|
14923
|
-
wide: /^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i
|
|
14924
|
-
};
|
|
14925
|
-
const parseMonthPatterns = {
|
|
14926
|
-
narrow: [
|
|
14927
|
-
/^j/i,
|
|
14928
|
-
/^f/i,
|
|
14929
|
-
/^m/i,
|
|
14930
|
-
/^a/i,
|
|
14931
|
-
/^m/i,
|
|
14932
|
-
/^j/i,
|
|
14933
|
-
/^j/i,
|
|
14934
|
-
/^a/i,
|
|
14935
|
-
/^s/i,
|
|
14936
|
-
/^o/i,
|
|
14937
|
-
/^n/i,
|
|
14938
|
-
/^d/i
|
|
14939
|
-
],
|
|
14940
|
-
any: [
|
|
14941
|
-
/^ja/i,
|
|
14942
|
-
/^f/i,
|
|
14943
|
-
/^mar/i,
|
|
14944
|
-
/^ap/i,
|
|
14945
|
-
/^maj/i,
|
|
14946
|
-
/^jun/i,
|
|
14947
|
-
/^jul/i,
|
|
14948
|
-
/^au/i,
|
|
14949
|
-
/^s/i,
|
|
14950
|
-
/^o/i,
|
|
14951
|
-
/^n/i,
|
|
14952
|
-
/^d/i
|
|
14953
|
-
]
|
|
14954
|
-
};
|
|
14955
|
-
const matchDayPatterns = {
|
|
14956
|
-
narrow: /^[smtofl]/i,
|
|
14957
|
-
short: /^(sö|må|ti|on|to|fr|lö)/i,
|
|
14958
|
-
abbreviated: /^(sön|mån|tis|ons|tors|fre|lör)/i,
|
|
14959
|
-
wide: /^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i
|
|
14684
|
+
return capitalizeFirstLetter$1(longMonthFormatter.format(startOfISOWeek(week)));
|
|
14960
14685
|
};
|
|
14961
|
-
const
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
-
const
|
|
14965
|
-
|
|
14966
|
-
|
|
14967
|
-
const parseDayPeriodPatterns = {
|
|
14968
|
-
any: {
|
|
14969
|
-
am: /^f/i,
|
|
14970
|
-
pm: /^e/i,
|
|
14971
|
-
midnight: /^midn/i,
|
|
14972
|
-
noon: /^midd/i,
|
|
14973
|
-
morning: /morgon/i,
|
|
14974
|
-
afternoon: /eftermiddag/i,
|
|
14975
|
-
evening: /kväll/i,
|
|
14976
|
-
night: /natt/i
|
|
14686
|
+
const getDaysInWeek = (weekStart) => {
|
|
14687
|
+
const startOfWeek2 = startOfISOWeek(weekStart);
|
|
14688
|
+
const day = subDays(startOfWeek2);
|
|
14689
|
+
const calendar = [];
|
|
14690
|
+
for (let index = 0; index < 7; index++) {
|
|
14691
|
+
calendar.push(addDays(day, index + 1));
|
|
14977
14692
|
}
|
|
14693
|
+
return calendar;
|
|
14978
14694
|
};
|
|
14979
|
-
const
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
defaultMatchWidth: "wide",
|
|
14988
|
-
parsePatterns: parseEraPatterns,
|
|
14989
|
-
defaultParseWidth: "any"
|
|
14990
|
-
}),
|
|
14991
|
-
quarter: buildMatchFn({
|
|
14992
|
-
matchPatterns: matchQuarterPatterns,
|
|
14993
|
-
defaultMatchWidth: "wide",
|
|
14994
|
-
parsePatterns: parseQuarterPatterns,
|
|
14995
|
-
defaultParseWidth: "any",
|
|
14996
|
-
valueCallback: (index) => index + 1
|
|
14997
|
-
}),
|
|
14998
|
-
month: buildMatchFn({
|
|
14999
|
-
matchPatterns: matchMonthPatterns,
|
|
15000
|
-
defaultMatchWidth: "wide",
|
|
15001
|
-
parsePatterns: parseMonthPatterns,
|
|
15002
|
-
defaultParseWidth: "any"
|
|
15003
|
-
}),
|
|
15004
|
-
day: buildMatchFn({
|
|
15005
|
-
matchPatterns: matchDayPatterns,
|
|
15006
|
-
defaultMatchWidth: "wide",
|
|
15007
|
-
parsePatterns: parseDayPatterns,
|
|
15008
|
-
defaultParseWidth: "any"
|
|
15009
|
-
}),
|
|
15010
|
-
dayPeriod: buildMatchFn({
|
|
15011
|
-
matchPatterns: matchDayPeriodPatterns,
|
|
15012
|
-
defaultMatchWidth: "any",
|
|
15013
|
-
parsePatterns: parseDayPeriodPatterns,
|
|
15014
|
-
defaultParseWidth: "any"
|
|
15015
|
-
})
|
|
14695
|
+
const getDaysOfLastWeek = (week) => getDaysInWeek(week);
|
|
14696
|
+
const getStartAndEndRangeFromWeek = (week) => {
|
|
14697
|
+
const lastDay = week.at(-1);
|
|
14698
|
+
const firstDay = week.at(0);
|
|
14699
|
+
return {
|
|
14700
|
+
endDate: lastDay ? format(lastDay, "yyyy-MM-dd") : void 0,
|
|
14701
|
+
startDate: firstDay ? format(firstDay, "yyyy-MM-dd") : void 0
|
|
14702
|
+
};
|
|
15016
14703
|
};
|
|
15017
|
-
const
|
|
15018
|
-
|
|
15019
|
-
|
|
15020
|
-
|
|
15021
|
-
formatRelative,
|
|
15022
|
-
localize,
|
|
15023
|
-
match,
|
|
15024
|
-
options: {
|
|
15025
|
-
weekStartsOn: 1,
|
|
15026
|
-
firstWeekContainsDate: 4
|
|
15027
|
-
}
|
|
14704
|
+
const checkIfDateIsBeforeToday = (date) => {
|
|
14705
|
+
const startOfDate = startOfDay(date);
|
|
14706
|
+
const startOfToday = startOfDay(/* @__PURE__ */ new Date());
|
|
14707
|
+
return isAfter(startOfToday, startOfDate);
|
|
15028
14708
|
};
|
|
14709
|
+
const checkIfDateIsEnabled = (date, enabledDates) => enabledDates.some((enabledDate) => isSameDay(enabledDate, date));
|
|
15029
14710
|
const _hoisted_1$6 = ["disabled"];
|
|
15030
14711
|
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
15031
14712
|
__name: "WeekDay",
|
|
@@ -15039,6 +14720,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
15039
14720
|
setup(__props, { emit: __emit }) {
|
|
15040
14721
|
const props = __props;
|
|
15041
14722
|
const emit = __emit;
|
|
14723
|
+
const { locale, t } = useFdsI18n();
|
|
15042
14724
|
const classes = vue.computed(() => [
|
|
15043
14725
|
"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",
|
|
15044
14726
|
props.disabled ? "" : "hover:border-2 hover:border-blue-500 border-solid",
|
|
@@ -15060,7 +14742,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
15060
14742
|
emit("select-date", props.selected ? null : props.date);
|
|
15061
14743
|
};
|
|
15062
14744
|
const weekdayLabel = vue.computed(() => {
|
|
15063
|
-
const value =
|
|
14745
|
+
const value = new Intl.DateTimeFormat(locale.value, { weekday: "short" }).format(props.date);
|
|
15064
14746
|
return value.charAt(0).toUpperCase() + value.slice(1).replace(".", "");
|
|
15065
14747
|
});
|
|
15066
14748
|
return (_ctx, _cache) => {
|
|
@@ -15077,9 +14759,9 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
15077
14759
|
class: vue.normalizeClass(weekdayLabelClasses.value)
|
|
15078
14760
|
}, [
|
|
15079
14761
|
__props.isToday ? (vue.openBlock(), vue.createBlock(_sfc_main$t, { key: 0 }, {
|
|
15080
|
-
default: vue.withCtx(() => [
|
|
15081
|
-
vue.createTextVNode("
|
|
15082
|
-
])
|
|
14762
|
+
default: vue.withCtx(() => [
|
|
14763
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(t)("FdsWeekCalendar.today")), 1)
|
|
14764
|
+
]),
|
|
15083
14765
|
_: 1
|
|
15084
14766
|
})) : (vue.openBlock(), vue.createBlock(_sfc_main$t, { key: 1 }, {
|
|
15085
14767
|
default: vue.withCtx(() => [
|
|
@@ -15092,44 +14774,6 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
15092
14774
|
};
|
|
15093
14775
|
}
|
|
15094
14776
|
});
|
|
15095
|
-
const capitalizeFirstLetter$1 = (value) => {
|
|
15096
|
-
if (!value) return value;
|
|
15097
|
-
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
15098
|
-
};
|
|
15099
|
-
const getOverlappingMonths = (week) => {
|
|
15100
|
-
const startDayMonth = startOfISOWeek(week);
|
|
15101
|
-
const endDayMonth = addDays(startDayMonth, 6);
|
|
15102
|
-
if (!isSameMonth(startDayMonth, endDayMonth)) {
|
|
15103
|
-
return `${capitalizeFirstLetter$1(format(startDayMonth, "MMM", { locale: sv }).replace(".", ""))} - ${capitalizeFirstLetter$1(
|
|
15104
|
-
format(endDayMonth, "MMM", { locale: sv }).replace(".", "")
|
|
15105
|
-
)}`;
|
|
15106
|
-
}
|
|
15107
|
-
return capitalizeFirstLetter$1(format(startOfISOWeek(week), "MMMM", { locale: sv }));
|
|
15108
|
-
};
|
|
15109
|
-
const getDaysInWeek = (weekStart) => {
|
|
15110
|
-
const startOfWeek2 = startOfISOWeek(weekStart);
|
|
15111
|
-
const day = subDays(startOfWeek2);
|
|
15112
|
-
const calendar = [];
|
|
15113
|
-
for (let index = 0; index < 7; index++) {
|
|
15114
|
-
calendar.push(addDays(day, index + 1));
|
|
15115
|
-
}
|
|
15116
|
-
return calendar;
|
|
15117
|
-
};
|
|
15118
|
-
const getDaysOfLastWeek = (week) => getDaysInWeek(week);
|
|
15119
|
-
const getStartAndEndRangeFromWeek = (week) => {
|
|
15120
|
-
const lastDay = week.at(-1);
|
|
15121
|
-
const firstDay = week.at(0);
|
|
15122
|
-
return {
|
|
15123
|
-
endDate: lastDay ? format(lastDay, "yyyy-MM-dd") : void 0,
|
|
15124
|
-
startDate: firstDay ? format(firstDay, "yyyy-MM-dd") : void 0
|
|
15125
|
-
};
|
|
15126
|
-
};
|
|
15127
|
-
const checkIfDateIsBeforeToday = (date) => {
|
|
15128
|
-
const startOfDate = startOfDay(date);
|
|
15129
|
-
const startOfToday = startOfDay(/* @__PURE__ */ new Date());
|
|
15130
|
-
return isAfter(startOfToday, startOfDate);
|
|
15131
|
-
};
|
|
15132
|
-
const checkIfDateIsEnabled = (date, enabledDates) => enabledDates.some((enabledDate) => isSameDay(enabledDate, date));
|
|
15133
14777
|
const _hoisted_1$5 = { class: "mb-6" };
|
|
15134
14778
|
const _hoisted_2$4 = { class: "max-w-[487px]" };
|
|
15135
14779
|
const _hoisted_3$4 = { class: "mb-3 flex w-full flex-row items-center" };
|
|
@@ -15140,7 +14784,7 @@ const _hoisted_7$2 = {
|
|
|
15140
14784
|
key: 0,
|
|
15141
14785
|
class: "mt-6 flex w-full flex-row items-center gap-2"
|
|
15142
14786
|
};
|
|
15143
|
-
const _hoisted_8
|
|
14787
|
+
const _hoisted_8 = { class: "m-0 font-bold text-blue-700" };
|
|
15144
14788
|
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
15145
14789
|
__name: "FdsWeekCalendar",
|
|
15146
14790
|
props: {
|
|
@@ -15164,13 +14808,16 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
15164
14808
|
setup(__props, { emit: __emit }) {
|
|
15165
14809
|
const props = __props;
|
|
15166
14810
|
const emit = __emit;
|
|
14811
|
+
const { locale, t } = useFdsI18n();
|
|
15167
14812
|
const currentWeek = vue.ref(props.minWeek ?? startOfISOWeek(/* @__PURE__ */ new Date()));
|
|
15168
14813
|
const selectedDay = vue.ref(props.selected ?? null);
|
|
15169
14814
|
const slideDirection = vue.ref("left");
|
|
15170
14815
|
const weekToRender = vue.computed(() => getDaysInWeek(currentWeek.value));
|
|
15171
14816
|
const visibleWeekDays = vue.computed(() => weekToRender.value.filter((day) => getISODay(day) <= 5));
|
|
15172
14817
|
const lastWeek = vue.computed(() => getDaysOfLastWeek(subWeeks(currentWeek.value)));
|
|
15173
|
-
const weekText = vue.computed(
|
|
14818
|
+
const weekText = vue.computed(
|
|
14819
|
+
() => `${getOverlappingMonths(currentWeek.value, locale.value)} (${t("FdsWeekCalendar.week")} ${getISOWeek(currentWeek.value)})`
|
|
14820
|
+
);
|
|
15174
14821
|
const lastDayOfPreviousWeek = vue.computed(() => lastWeek.value[lastWeek.value.length - 1]);
|
|
15175
14822
|
const disableLastWeekInteraction = vue.computed(
|
|
15176
14823
|
() => !!props.disablePreviousWeek || !!lastDayOfPreviousWeek.value && checkIfDateIsBeforeToday(lastDayOfPreviousWeek.value) || !!props.minWeek && isBefore(subWeeks(currentWeek.value), startOfISOWeek(props.minWeek))
|
|
@@ -15279,15 +14926,15 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
15279
14926
|
vue.createVNode(_sfc_main$I, {
|
|
15280
14927
|
icon: "arrowLeft",
|
|
15281
14928
|
disabled: disableLastWeekInteraction.value,
|
|
15282
|
-
"aria-label": "
|
|
14929
|
+
"aria-label": vue.unref(t)("FdsWeekCalendar.previousWeek"),
|
|
15283
14930
|
onClick: decrementWeek
|
|
15284
|
-
}, null, 8, ["disabled"]),
|
|
14931
|
+
}, null, 8, ["disabled", "aria-label"]),
|
|
15285
14932
|
vue.createVNode(_sfc_main$I, {
|
|
15286
14933
|
icon: "arrowRight",
|
|
15287
14934
|
disabled: disableNextWeekInteraction.value,
|
|
15288
|
-
"aria-label": "
|
|
14935
|
+
"aria-label": vue.unref(t)("FdsWeekCalendar.nextWeek"),
|
|
15289
14936
|
onClick: incrementWeek
|
|
15290
|
-
}, null, 8, ["disabled"])
|
|
14937
|
+
}, null, 8, ["disabled", "aria-label"])
|
|
15291
14938
|
])
|
|
15292
14939
|
]),
|
|
15293
14940
|
vue.createElementVNode("div", _hoisted_6$2, [
|
|
@@ -15319,7 +14966,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
15319
14966
|
]),
|
|
15320
14967
|
__props.loading?.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$2, [
|
|
15321
14968
|
vue.createVNode(_sfc_main$B),
|
|
15322
|
-
vue.createElementVNode("p", _hoisted_8
|
|
14969
|
+
vue.createElementVNode("p", _hoisted_8, vue.toDisplayString(__props.loading.label), 1)
|
|
15323
14970
|
])) : vue.createCommentVNode("", true)
|
|
15324
14971
|
])
|
|
15325
14972
|
]);
|
|
@@ -15372,20 +15019,19 @@ const hasStepLabelOverlap = (labels, minGapBeforeHidePx = STEP_LABEL_MIN_GAP_BEF
|
|
|
15372
15019
|
}
|
|
15373
15020
|
return false;
|
|
15374
15021
|
};
|
|
15375
|
-
const _hoisted_1$4 = { class: "
|
|
15376
|
-
const _hoisted_2$3 = {
|
|
15377
|
-
const _hoisted_3$3 = {
|
|
15022
|
+
const _hoisted_1$4 = { class: "mb-6" };
|
|
15023
|
+
const _hoisted_2$3 = {
|
|
15378
15024
|
key: 0,
|
|
15379
15025
|
class: "mb-0"
|
|
15380
15026
|
};
|
|
15381
|
-
const
|
|
15027
|
+
const _hoisted_3$3 = {
|
|
15382
15028
|
key: 1,
|
|
15383
15029
|
class: "mt-2 mb-0"
|
|
15384
15030
|
};
|
|
15385
|
-
const
|
|
15386
|
-
const
|
|
15387
|
-
const
|
|
15388
|
-
const
|
|
15031
|
+
const _hoisted_4$3 = { class: "h-[2px] absolute top-[22px] left-[50%] bg-white-solid transform -translate-x-1/2 w-[calc(100%-50px)]" };
|
|
15032
|
+
const _hoisted_5$3 = { class: "flex justify-between list-none mb-8 p-0" };
|
|
15033
|
+
const _hoisted_6$1 = ["onClick", "disabled"];
|
|
15034
|
+
const _hoisted_7$1 = { key: 0 };
|
|
15389
15035
|
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
15390
15036
|
__name: "FdsWizard",
|
|
15391
15037
|
props: {
|
|
@@ -15396,6 +15042,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
15396
15042
|
disableStepJump: { type: Boolean, default: false },
|
|
15397
15043
|
activeRouteName: { default: void 0 },
|
|
15398
15044
|
dataTestid: { default: void 0 },
|
|
15045
|
+
wizardClass: { default: "max-w-[480px]" },
|
|
15399
15046
|
onGo: {}
|
|
15400
15047
|
},
|
|
15401
15048
|
emits: ["go"],
|
|
@@ -15738,16 +15385,18 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
15738
15385
|
});
|
|
15739
15386
|
return (_ctx, _cache) => {
|
|
15740
15387
|
return vue.openBlock(), vue.createElementBlock("div", vue.normalizeProps(vue.guardReactiveProps(rootAttrs.value)), [
|
|
15741
|
-
vue.createElementVNode("nav",
|
|
15742
|
-
vue.
|
|
15388
|
+
vue.createElementVNode("nav", {
|
|
15389
|
+
class: vue.normalizeClass([__props.wizardClass, "mx-auto"])
|
|
15390
|
+
}, [
|
|
15391
|
+
vue.createElementVNode("header", _hoisted_1$4, [
|
|
15743
15392
|
vue.createElementVNode("h1", {
|
|
15744
15393
|
ref: "mainHeader",
|
|
15745
15394
|
tabindex: "-1"
|
|
15746
15395
|
}, vue.toDisplayString(mainHeading.value), 513),
|
|
15747
15396
|
mainLead.value || subCategories.value.length > 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$b, { key: 0 }, {
|
|
15748
15397
|
default: vue.withCtx(() => [
|
|
15749
|
-
mainLead.value ? (vue.openBlock(), vue.createElementBlock("p",
|
|
15750
|
-
subCategories.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("ul",
|
|
15398
|
+
mainLead.value ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2$3, vue.toDisplayString(mainLead.value), 1)) : vue.createCommentVNode("", true),
|
|
15399
|
+
subCategories.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("ul", _hoisted_3$3, [
|
|
15751
15400
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(subCategories.value, (subCat) => {
|
|
15752
15401
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
15753
15402
|
key: subCat.id,
|
|
@@ -15771,13 +15420,13 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
15771
15420
|
style: vue.normalizeStyle(stepWidthStyle.value),
|
|
15772
15421
|
class: "relative"
|
|
15773
15422
|
}, [
|
|
15774
|
-
vue.createElementVNode("span",
|
|
15423
|
+
vue.createElementVNode("span", _hoisted_4$3, [
|
|
15775
15424
|
vue.createElementVNode("span", {
|
|
15776
15425
|
class: "block h-full max-w-full bg-blue-600",
|
|
15777
15426
|
style: vue.normalizeStyle({ width: progressWidth.value })
|
|
15778
15427
|
}, null, 4)
|
|
15779
15428
|
]),
|
|
15780
|
-
vue.createElementVNode("div",
|
|
15429
|
+
vue.createElementVNode("div", _hoisted_5$3, [
|
|
15781
15430
|
vue.createElementVNode("ol", {
|
|
15782
15431
|
ref_key: "stepperListRef",
|
|
15783
15432
|
ref: stepperListRef,
|
|
@@ -15797,7 +15446,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
15797
15446
|
vue.createElementVNode("span", {
|
|
15798
15447
|
class: vue.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)])
|
|
15799
15448
|
}, [
|
|
15800
|
-
entry.index >= internalCompletedTo.value + 1 ? (vue.openBlock(), vue.createElementBlock("span",
|
|
15449
|
+
entry.index >= internalCompletedTo.value + 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$1, vue.toDisplayString(entry.index + 1), 1)) : (vue.openBlock(), vue.createBlock(_sfc_main$J, {
|
|
15801
15450
|
key: 1,
|
|
15802
15451
|
name: "checkmark",
|
|
15803
15452
|
size: 24
|
|
@@ -15808,13 +15457,13 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
15808
15457
|
ref: (el) => setStepLabelRef(el, visibleIndex),
|
|
15809
15458
|
class: vue.normalizeClass(["absolute bottom-0 text-blue-600 font-bold text-sm", { invisible: !showStepLabels.value }])
|
|
15810
15459
|
}, vue.toDisplayString(entry.route.meta.wizard.name), 3)
|
|
15811
|
-
], 10,
|
|
15460
|
+
], 10, _hoisted_6$1)
|
|
15812
15461
|
]);
|
|
15813
15462
|
}), 128))
|
|
15814
15463
|
], 512)
|
|
15815
15464
|
])
|
|
15816
15465
|
], 4)) : vue.createCommentVNode("", true)
|
|
15817
|
-
]),
|
|
15466
|
+
], 2),
|
|
15818
15467
|
vue.createElementVNode("div", {
|
|
15819
15468
|
class: vue.normalizeClass([contentClass.value, "mx-auto"])
|
|
15820
15469
|
}, [
|
|
@@ -16686,7 +16335,10 @@ const logoFeelgoodColored = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.or
|
|
|
16686
16335
|
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";
|
|
16687
16336
|
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";
|
|
16688
16337
|
const FdsVueCorePlugin = {
|
|
16689
|
-
install(app) {
|
|
16338
|
+
install(app, options) {
|
|
16339
|
+
if (options?.i18n) {
|
|
16340
|
+
app.provide(FDS_VUE_CORE_I18N_KEY, options.i18n);
|
|
16341
|
+
}
|
|
16690
16342
|
app.component("FdsTreeView", _sfc_main$f);
|
|
16691
16343
|
app.component("FdsButtonPrimary", _sfc_main$x);
|
|
16692
16344
|
app.component("FdsButtonSecondary", _sfc_main$w);
|
|
@@ -16730,6 +16382,7 @@ const FdsVueCorePlugin = {
|
|
|
16730
16382
|
app.component("FdsListHeading", _sfc_main);
|
|
16731
16383
|
}
|
|
16732
16384
|
};
|
|
16385
|
+
exports.FDS_VUE_CORE_I18N_KEY = FDS_VUE_CORE_I18N_KEY;
|
|
16733
16386
|
exports.FdsBlockAlert = _sfc_main$H;
|
|
16734
16387
|
exports.FdsBlockContent = _sfc_main$G;
|
|
16735
16388
|
exports.FdsBlockExpander = _sfc_main$E;
|