fds-vue-core 5.0.0 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fds-vue-core.cjs.js +351 -226
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.css +1 -1
- package/dist/fds-vue-core.es.js +351 -226
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/tokens.css +20 -0
- package/package.json +20 -34
- package/src/components/Typography/FdsH1/FdsH1.vue +5 -1
- package/src/components/Typography/FdsH2/FdsH2.vue +7 -1
- package/src/components/Typography/FdsH3/FdsH3.vue +5 -1
- package/src/components/Typography/FdsLabel/FdsLabel.vue +10 -1
- package/src/components/Typography/FdsLead/FdsLead.vue +10 -1
- package/src/components/Typography/FdsListHeading/FdsListHeading.vue +10 -1
- package/src/components/Typography/FdsMeta/FdsMeta.vue +10 -1
- package/src/helpers/classValueToString.ts +27 -0
- package/src/tokens.css +20 -0
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -1574,12 +1574,25 @@ const isEmptyObject = (val) => {
|
|
|
1574
1574
|
};
|
|
1575
1575
|
const isDate = kindOfTest("Date");
|
|
1576
1576
|
const isFile = kindOfTest("File");
|
|
1577
|
+
const isReactNativeBlob = (value) => {
|
|
1578
|
+
return !!(value && typeof value.uri !== "undefined");
|
|
1579
|
+
};
|
|
1580
|
+
const isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
1577
1581
|
const isBlob = kindOfTest("Blob");
|
|
1578
1582
|
const isFileList = kindOfTest("FileList");
|
|
1579
1583
|
const isStream = (val) => isObject$1(val) && isFunction$1(val.pipe);
|
|
1584
|
+
function getGlobal() {
|
|
1585
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
1586
|
+
if (typeof self !== "undefined") return self;
|
|
1587
|
+
if (typeof window !== "undefined") return window;
|
|
1588
|
+
if (typeof global !== "undefined") return global;
|
|
1589
|
+
return {};
|
|
1590
|
+
}
|
|
1591
|
+
const G = getGlobal();
|
|
1592
|
+
const FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
1580
1593
|
const isFormData = (thing) => {
|
|
1581
1594
|
let kind;
|
|
1582
|
-
return thing && (
|
|
1595
|
+
return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
1583
1596
|
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
1584
1597
|
};
|
|
1585
1598
|
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
@@ -1589,7 +1602,9 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
|
1589
1602
|
"Response",
|
|
1590
1603
|
"Headers"
|
|
1591
1604
|
].map(kindOfTest);
|
|
1592
|
-
const trim = (str) =>
|
|
1605
|
+
const trim = (str) => {
|
|
1606
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1607
|
+
};
|
|
1593
1608
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
1594
1609
|
if (obj === null || typeof obj === "undefined") {
|
|
1595
1610
|
return;
|
|
@@ -1691,10 +1706,7 @@ const stripBOM = (content) => {
|
|
|
1691
1706
|
return content;
|
|
1692
1707
|
};
|
|
1693
1708
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
1694
|
-
constructor.prototype = Object.create(
|
|
1695
|
-
superConstructor.prototype,
|
|
1696
|
-
descriptors
|
|
1697
|
-
);
|
|
1709
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
1698
1710
|
Object.defineProperty(constructor.prototype, "constructor", {
|
|
1699
1711
|
value: constructor,
|
|
1700
1712
|
writable: true,
|
|
@@ -1893,6 +1905,8 @@ const utils$1 = {
|
|
|
1893
1905
|
isUndefined,
|
|
1894
1906
|
isDate,
|
|
1895
1907
|
isFile,
|
|
1908
|
+
isReactNativeBlob,
|
|
1909
|
+
isReactNative,
|
|
1896
1910
|
isBlob,
|
|
1897
1911
|
isRegExp,
|
|
1898
1912
|
isFunction: isFunction$1,
|
|
@@ -1939,6 +1953,9 @@ let AxiosError$1 = class AxiosError extends Error {
|
|
|
1939
1953
|
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
1940
1954
|
axiosError.cause = error;
|
|
1941
1955
|
axiosError.name = error.name;
|
|
1956
|
+
if (error.status != null && axiosError.status == null) {
|
|
1957
|
+
axiosError.status = error.status;
|
|
1958
|
+
}
|
|
1942
1959
|
customProps && Object.assign(axiosError, customProps);
|
|
1943
1960
|
return axiosError;
|
|
1944
1961
|
}
|
|
@@ -1955,6 +1972,12 @@ let AxiosError$1 = class AxiosError extends Error {
|
|
|
1955
1972
|
*/
|
|
1956
1973
|
constructor(message, code, config, request, response) {
|
|
1957
1974
|
super(message);
|
|
1975
|
+
Object.defineProperty(this, "message", {
|
|
1976
|
+
value: message,
|
|
1977
|
+
enumerable: true,
|
|
1978
|
+
writable: true,
|
|
1979
|
+
configurable: true
|
|
1980
|
+
});
|
|
1958
1981
|
this.name = "AxiosError";
|
|
1959
1982
|
this.isAxiosError = true;
|
|
1960
1983
|
code && (this.code = code);
|
|
@@ -2022,13 +2045,18 @@ function toFormData$1(obj, formData, options) {
|
|
|
2022
2045
|
throw new TypeError("target must be an object");
|
|
2023
2046
|
}
|
|
2024
2047
|
formData = formData || new FormData();
|
|
2025
|
-
options = utils$1.toFlatObject(
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2048
|
+
options = utils$1.toFlatObject(
|
|
2049
|
+
options,
|
|
2050
|
+
{
|
|
2051
|
+
metaTokens: true,
|
|
2052
|
+
dots: false,
|
|
2053
|
+
indexes: false
|
|
2054
|
+
},
|
|
2055
|
+
false,
|
|
2056
|
+
function defined(option, source) {
|
|
2057
|
+
return !utils$1.isUndefined(source[option]);
|
|
2058
|
+
}
|
|
2059
|
+
);
|
|
2032
2060
|
const metaTokens = options.metaTokens;
|
|
2033
2061
|
const visitor = options.visitor || defaultVisitor;
|
|
2034
2062
|
const dots = options.dots;
|
|
@@ -2056,6 +2084,10 @@ function toFormData$1(obj, formData, options) {
|
|
|
2056
2084
|
}
|
|
2057
2085
|
function defaultVisitor(value, key, path) {
|
|
2058
2086
|
let arr = value;
|
|
2087
|
+
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
2088
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
2089
|
+
return false;
|
|
2090
|
+
}
|
|
2059
2091
|
if (value && !path && typeof value === "object") {
|
|
2060
2092
|
if (utils$1.endsWith(key, "{}")) {
|
|
2061
2093
|
key = metaTokens ? key : key.slice(0, -2);
|
|
@@ -2091,13 +2123,7 @@ function toFormData$1(obj, formData, options) {
|
|
|
2091
2123
|
}
|
|
2092
2124
|
stack.push(value);
|
|
2093
2125
|
utils$1.forEach(value, function each(el, key) {
|
|
2094
|
-
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
|
|
2095
|
-
formData,
|
|
2096
|
-
el,
|
|
2097
|
-
utils$1.isString(key) ? key.trim() : key,
|
|
2098
|
-
path,
|
|
2099
|
-
exposedHelpers
|
|
2100
|
-
);
|
|
2126
|
+
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
2101
2127
|
if (result === true) {
|
|
2102
2128
|
build(el, path ? path.concat(key) : [key]);
|
|
2103
2129
|
}
|
|
@@ -2345,70 +2371,74 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
2345
2371
|
const defaults = {
|
|
2346
2372
|
transitional: transitionalDefaults,
|
|
2347
2373
|
adapter: ["xhr", "http", "fetch"],
|
|
2348
|
-
transformRequest: [
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
if (
|
|
2372
|
-
|
|
2374
|
+
transformRequest: [
|
|
2375
|
+
function transformRequest(data, headers) {
|
|
2376
|
+
const contentType = headers.getContentType() || "";
|
|
2377
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
2378
|
+
const isObjectPayload = utils$1.isObject(data);
|
|
2379
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
2380
|
+
data = new FormData(data);
|
|
2381
|
+
}
|
|
2382
|
+
const isFormData2 = utils$1.isFormData(data);
|
|
2383
|
+
if (isFormData2) {
|
|
2384
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
2385
|
+
}
|
|
2386
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
|
|
2387
|
+
return data;
|
|
2388
|
+
}
|
|
2389
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
2390
|
+
return data.buffer;
|
|
2391
|
+
}
|
|
2392
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
2393
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
2394
|
+
return data.toString();
|
|
2395
|
+
}
|
|
2396
|
+
let isFileList2;
|
|
2397
|
+
if (isObjectPayload) {
|
|
2398
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
2399
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
2400
|
+
}
|
|
2401
|
+
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
2402
|
+
const _FormData = this.env && this.env.FormData;
|
|
2403
|
+
return toFormData$1(
|
|
2404
|
+
isFileList2 ? { "files[]": data } : data,
|
|
2405
|
+
_FormData && new _FormData(),
|
|
2406
|
+
this.formSerializer
|
|
2407
|
+
);
|
|
2408
|
+
}
|
|
2373
2409
|
}
|
|
2374
|
-
if (
|
|
2375
|
-
|
|
2376
|
-
return
|
|
2377
|
-
isFileList2 ? { "files[]": data } : data,
|
|
2378
|
-
_FormData && new _FormData(),
|
|
2379
|
-
this.formSerializer
|
|
2380
|
-
);
|
|
2410
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
2411
|
+
headers.setContentType("application/json", false);
|
|
2412
|
+
return stringifySafely(data);
|
|
2381
2413
|
}
|
|
2382
|
-
}
|
|
2383
|
-
if (isObjectPayload || hasJSONContentType) {
|
|
2384
|
-
headers.setContentType("application/json", false);
|
|
2385
|
-
return stringifySafely(data);
|
|
2386
|
-
}
|
|
2387
|
-
return data;
|
|
2388
|
-
}],
|
|
2389
|
-
transformResponse: [function transformResponse(data) {
|
|
2390
|
-
const transitional2 = this.transitional || defaults.transitional;
|
|
2391
|
-
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
2392
|
-
const JSONRequested = this.responseType === "json";
|
|
2393
|
-
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
2394
2414
|
return data;
|
|
2395
2415
|
}
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2416
|
+
],
|
|
2417
|
+
transformResponse: [
|
|
2418
|
+
function transformResponse(data) {
|
|
2419
|
+
const transitional2 = this.transitional || defaults.transitional;
|
|
2420
|
+
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
2421
|
+
const JSONRequested = this.responseType === "json";
|
|
2422
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
2423
|
+
return data;
|
|
2424
|
+
}
|
|
2425
|
+
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
2426
|
+
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
2427
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
2428
|
+
try {
|
|
2429
|
+
return JSON.parse(data, this.parseReviver);
|
|
2430
|
+
} catch (e) {
|
|
2431
|
+
if (strictJSONParsing) {
|
|
2432
|
+
if (e.name === "SyntaxError") {
|
|
2433
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
2434
|
+
}
|
|
2435
|
+
throw e;
|
|
2405
2436
|
}
|
|
2406
|
-
throw e;
|
|
2407
2437
|
}
|
|
2408
2438
|
}
|
|
2439
|
+
return data;
|
|
2409
2440
|
}
|
|
2410
|
-
|
|
2411
|
-
}],
|
|
2441
|
+
],
|
|
2412
2442
|
/**
|
|
2413
2443
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
2414
2444
|
* timeout is not created.
|
|
@@ -2427,7 +2457,7 @@ const defaults = {
|
|
|
2427
2457
|
},
|
|
2428
2458
|
headers: {
|
|
2429
2459
|
common: {
|
|
2430
|
-
|
|
2460
|
+
Accept: "application/json, text/plain, */*",
|
|
2431
2461
|
"Content-Type": void 0
|
|
2432
2462
|
}
|
|
2433
2463
|
}
|
|
@@ -2693,7 +2723,14 @@ let AxiosHeaders$1 = class AxiosHeaders {
|
|
|
2693
2723
|
return this;
|
|
2694
2724
|
}
|
|
2695
2725
|
};
|
|
2696
|
-
AxiosHeaders$1.accessor([
|
|
2726
|
+
AxiosHeaders$1.accessor([
|
|
2727
|
+
"Content-Type",
|
|
2728
|
+
"Content-Length",
|
|
2729
|
+
"Accept",
|
|
2730
|
+
"Accept-Encoding",
|
|
2731
|
+
"User-Agent",
|
|
2732
|
+
"Authorization"
|
|
2733
|
+
]);
|
|
2697
2734
|
utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
|
|
2698
2735
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
2699
2736
|
return {
|
|
@@ -2739,13 +2776,15 @@ function settle(resolve, reject, response) {
|
|
|
2739
2776
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
2740
2777
|
resolve(response);
|
|
2741
2778
|
} else {
|
|
2742
|
-
reject(
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2779
|
+
reject(
|
|
2780
|
+
new AxiosError$1(
|
|
2781
|
+
"Request failed with status code " + response.status,
|
|
2782
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
2783
|
+
response.config,
|
|
2784
|
+
response.request,
|
|
2785
|
+
response
|
|
2786
|
+
)
|
|
2787
|
+
);
|
|
2749
2788
|
}
|
|
2750
2789
|
}
|
|
2751
2790
|
function parseProtocol(url) {
|
|
@@ -2843,11 +2882,14 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
2843
2882
|
};
|
|
2844
2883
|
const progressEventDecorator = (total, throttled) => {
|
|
2845
2884
|
const lengthComputable = total != null;
|
|
2846
|
-
return [
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2885
|
+
return [
|
|
2886
|
+
(loaded) => throttled[0]({
|
|
2887
|
+
lengthComputable,
|
|
2888
|
+
total,
|
|
2889
|
+
loaded
|
|
2890
|
+
}),
|
|
2891
|
+
throttled[1]
|
|
2892
|
+
];
|
|
2851
2893
|
};
|
|
2852
2894
|
const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
2853
2895
|
const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => {
|
|
@@ -2988,27 +3030,29 @@ function mergeConfig$1(config1, config2) {
|
|
|
2988
3030
|
validateStatus: mergeDirectKeys,
|
|
2989
3031
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
2990
3032
|
};
|
|
2991
|
-
utils$1.forEach(
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
2998
|
-
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
2999
|
-
}
|
|
3000
|
-
);
|
|
3033
|
+
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
3034
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
3035
|
+
const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
3036
|
+
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
3037
|
+
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
3038
|
+
});
|
|
3001
3039
|
return config;
|
|
3002
3040
|
}
|
|
3003
3041
|
const resolveConfig = (config) => {
|
|
3004
3042
|
const newConfig = mergeConfig$1({}, config);
|
|
3005
3043
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
3006
3044
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
3007
|
-
newConfig.url = buildURL(
|
|
3045
|
+
newConfig.url = buildURL(
|
|
3046
|
+
buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
|
|
3047
|
+
config.params,
|
|
3048
|
+
config.paramsSerializer
|
|
3049
|
+
);
|
|
3008
3050
|
if (auth) {
|
|
3009
3051
|
headers.set(
|
|
3010
3052
|
"Authorization",
|
|
3011
|
-
"Basic " + btoa(
|
|
3053
|
+
"Basic " + btoa(
|
|
3054
|
+
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
3055
|
+
)
|
|
3012
3056
|
);
|
|
3013
3057
|
}
|
|
3014
3058
|
if (utils$1.isFormData(data)) {
|
|
@@ -3070,13 +3114,17 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
3070
3114
|
config,
|
|
3071
3115
|
request
|
|
3072
3116
|
};
|
|
3073
|
-
settle(
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3117
|
+
settle(
|
|
3118
|
+
function _resolve(value) {
|
|
3119
|
+
resolve(value);
|
|
3120
|
+
done();
|
|
3121
|
+
},
|
|
3122
|
+
function _reject(err) {
|
|
3123
|
+
reject(err);
|
|
3124
|
+
done();
|
|
3125
|
+
},
|
|
3126
|
+
response
|
|
3127
|
+
);
|
|
3080
3128
|
request = null;
|
|
3081
3129
|
}
|
|
3082
3130
|
if ("onloadend" in request) {
|
|
@@ -3112,12 +3160,14 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
3112
3160
|
if (_config.timeoutErrorMessage) {
|
|
3113
3161
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
3114
3162
|
}
|
|
3115
|
-
reject(
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3163
|
+
reject(
|
|
3164
|
+
new AxiosError$1(
|
|
3165
|
+
timeoutErrorMessage,
|
|
3166
|
+
transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
3167
|
+
config,
|
|
3168
|
+
request
|
|
3169
|
+
)
|
|
3170
|
+
);
|
|
3121
3171
|
request = null;
|
|
3122
3172
|
};
|
|
3123
3173
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -3157,7 +3207,13 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
3157
3207
|
}
|
|
3158
3208
|
const protocol = parseProtocol(_config.url);
|
|
3159
3209
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
3160
|
-
reject(
|
|
3210
|
+
reject(
|
|
3211
|
+
new AxiosError$1(
|
|
3212
|
+
"Unsupported protocol " + protocol + ":",
|
|
3213
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
3214
|
+
config
|
|
3215
|
+
)
|
|
3216
|
+
);
|
|
3161
3217
|
return;
|
|
3162
3218
|
}
|
|
3163
3219
|
request.send(requestData || null);
|
|
@@ -3173,7 +3229,9 @@ const composeSignals = (signals, timeout) => {
|
|
|
3173
3229
|
aborted = true;
|
|
3174
3230
|
unsubscribe();
|
|
3175
3231
|
const err = reason instanceof Error ? reason : this.reason;
|
|
3176
|
-
controller.abort(
|
|
3232
|
+
controller.abort(
|
|
3233
|
+
err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err)
|
|
3234
|
+
);
|
|
3177
3235
|
}
|
|
3178
3236
|
};
|
|
3179
3237
|
let timer = timeout && setTimeout(() => {
|
|
@@ -3243,33 +3301,36 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
3243
3301
|
onFinish && onFinish(e);
|
|
3244
3302
|
}
|
|
3245
3303
|
};
|
|
3246
|
-
return new ReadableStream(
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3304
|
+
return new ReadableStream(
|
|
3305
|
+
{
|
|
3306
|
+
async pull(controller) {
|
|
3307
|
+
try {
|
|
3308
|
+
const { done: done2, value } = await iterator2.next();
|
|
3309
|
+
if (done2) {
|
|
3310
|
+
_onFinish();
|
|
3311
|
+
controller.close();
|
|
3312
|
+
return;
|
|
3313
|
+
}
|
|
3314
|
+
let len = value.byteLength;
|
|
3315
|
+
if (onProgress) {
|
|
3316
|
+
let loadedBytes = bytes += len;
|
|
3317
|
+
onProgress(loadedBytes);
|
|
3318
|
+
}
|
|
3319
|
+
controller.enqueue(new Uint8Array(value));
|
|
3320
|
+
} catch (err) {
|
|
3321
|
+
_onFinish(err);
|
|
3322
|
+
throw err;
|
|
3259
3323
|
}
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
_onFinish(
|
|
3263
|
-
|
|
3324
|
+
},
|
|
3325
|
+
cancel(reason) {
|
|
3326
|
+
_onFinish(reason);
|
|
3327
|
+
return iterator2.return();
|
|
3264
3328
|
}
|
|
3265
3329
|
},
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
return iterator2.return();
|
|
3330
|
+
{
|
|
3331
|
+
highWaterMark: 2
|
|
3269
3332
|
}
|
|
3270
|
-
|
|
3271
|
-
highWaterMark: 2
|
|
3272
|
-
});
|
|
3333
|
+
);
|
|
3273
3334
|
};
|
|
3274
3335
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3275
3336
|
const { isFunction } = utils$1;
|
|
@@ -3277,10 +3338,7 @@ const globalFetchAPI = (({ Request, Response }) => ({
|
|
|
3277
3338
|
Request,
|
|
3278
3339
|
Response
|
|
3279
3340
|
}))(utils$1.global);
|
|
3280
|
-
const {
|
|
3281
|
-
ReadableStream: ReadableStream$1,
|
|
3282
|
-
TextEncoder
|
|
3283
|
-
} = utils$1.global;
|
|
3341
|
+
const { ReadableStream: ReadableStream$1, TextEncoder } = utils$1.global;
|
|
3284
3342
|
const test = (fn, ...args) => {
|
|
3285
3343
|
try {
|
|
3286
3344
|
return !!fn(...args);
|
|
@@ -3289,9 +3347,13 @@ const test = (fn, ...args) => {
|
|
|
3289
3347
|
}
|
|
3290
3348
|
};
|
|
3291
3349
|
const factory = (env) => {
|
|
3292
|
-
env = utils$1.merge.call(
|
|
3293
|
-
|
|
3294
|
-
|
|
3350
|
+
env = utils$1.merge.call(
|
|
3351
|
+
{
|
|
3352
|
+
skipUndefined: true
|
|
3353
|
+
},
|
|
3354
|
+
globalFetchAPI,
|
|
3355
|
+
env
|
|
3356
|
+
);
|
|
3295
3357
|
const { fetch: envFetch, Request, Response } = env;
|
|
3296
3358
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
3297
3359
|
const isRequestSupported = isFunction(Request);
|
|
@@ -3324,7 +3386,11 @@ const factory = (env) => {
|
|
|
3324
3386
|
if (method) {
|
|
3325
3387
|
return method.call(res);
|
|
3326
3388
|
}
|
|
3327
|
-
throw new AxiosError$1(
|
|
3389
|
+
throw new AxiosError$1(
|
|
3390
|
+
`Response type '${type}' is not supported`,
|
|
3391
|
+
AxiosError$1.ERR_NOT_SUPPORT,
|
|
3392
|
+
config
|
|
3393
|
+
);
|
|
3328
3394
|
});
|
|
3329
3395
|
});
|
|
3330
3396
|
})();
|
|
@@ -3373,7 +3439,10 @@ const factory = (env) => {
|
|
|
3373
3439
|
} = resolveConfig(config);
|
|
3374
3440
|
let _fetch = envFetch || fetch;
|
|
3375
3441
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
3376
|
-
let composedSignal = composeSignals(
|
|
3442
|
+
let composedSignal = composeSignals(
|
|
3443
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
3444
|
+
timeout
|
|
3445
|
+
);
|
|
3377
3446
|
let request = null;
|
|
3378
3447
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
3379
3448
|
composedSignal.unsubscribe();
|
|
@@ -3433,7 +3502,10 @@ const factory = (env) => {
|
|
|
3433
3502
|
);
|
|
3434
3503
|
}
|
|
3435
3504
|
responseType = responseType || "text";
|
|
3436
|
-
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
3505
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
3506
|
+
response,
|
|
3507
|
+
config
|
|
3508
|
+
);
|
|
3437
3509
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
3438
3510
|
return await new Promise((resolve, reject) => {
|
|
3439
3511
|
settle(resolve, reject, {
|
|
@@ -3449,7 +3521,13 @@ const factory = (env) => {
|
|
|
3449
3521
|
unsubscribe && unsubscribe();
|
|
3450
3522
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
3451
3523
|
throw Object.assign(
|
|
3452
|
-
new AxiosError$1(
|
|
3524
|
+
new AxiosError$1(
|
|
3525
|
+
"Network Error",
|
|
3526
|
+
AxiosError$1.ERR_NETWORK,
|
|
3527
|
+
config,
|
|
3528
|
+
request,
|
|
3529
|
+
err && err.response
|
|
3530
|
+
),
|
|
3453
3531
|
{
|
|
3454
3532
|
cause: err.cause || err
|
|
3455
3533
|
}
|
|
@@ -3463,11 +3541,7 @@ const seedCache = /* @__PURE__ */ new Map();
|
|
|
3463
3541
|
const getFetch = (config) => {
|
|
3464
3542
|
let env = config && config.env || {};
|
|
3465
3543
|
const { fetch: fetch2, Request, Response } = env;
|
|
3466
|
-
const seeds = [
|
|
3467
|
-
Request,
|
|
3468
|
-
Response,
|
|
3469
|
-
fetch2
|
|
3470
|
-
];
|
|
3544
|
+
const seeds = [Request, Response, fetch2];
|
|
3471
3545
|
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
3472
3546
|
while (i--) {
|
|
3473
3547
|
seed = seeds[i];
|
|
@@ -3552,39 +3626,35 @@ function throwIfCancellationRequested(config) {
|
|
|
3552
3626
|
function dispatchRequest(config) {
|
|
3553
3627
|
throwIfCancellationRequested(config);
|
|
3554
3628
|
config.headers = AxiosHeaders$1.from(config.headers);
|
|
3555
|
-
config.data = transformData.call(
|
|
3556
|
-
config,
|
|
3557
|
-
config.transformRequest
|
|
3558
|
-
);
|
|
3629
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
3559
3630
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
3560
3631
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
3561
3632
|
}
|
|
3562
3633
|
const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
|
|
3563
|
-
return adapter(config).then(
|
|
3564
|
-
|
|
3565
|
-
response.data = transformData.call(
|
|
3566
|
-
config,
|
|
3567
|
-
config.transformResponse,
|
|
3568
|
-
response
|
|
3569
|
-
);
|
|
3570
|
-
response.headers = AxiosHeaders$1.from(response.headers);
|
|
3571
|
-
return response;
|
|
3572
|
-
}, function onAdapterRejection(reason) {
|
|
3573
|
-
if (!isCancel$1(reason)) {
|
|
3634
|
+
return adapter(config).then(
|
|
3635
|
+
function onAdapterResolution(response) {
|
|
3574
3636
|
throwIfCancellationRequested(config);
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3637
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
3638
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
3639
|
+
return response;
|
|
3640
|
+
},
|
|
3641
|
+
function onAdapterRejection(reason) {
|
|
3642
|
+
if (!isCancel$1(reason)) {
|
|
3643
|
+
throwIfCancellationRequested(config);
|
|
3644
|
+
if (reason && reason.response) {
|
|
3645
|
+
reason.response.data = transformData.call(
|
|
3646
|
+
config,
|
|
3647
|
+
config.transformResponse,
|
|
3648
|
+
reason.response
|
|
3649
|
+
);
|
|
3650
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
3651
|
+
}
|
|
3582
3652
|
}
|
|
3653
|
+
return Promise.reject(reason);
|
|
3583
3654
|
}
|
|
3584
|
-
|
|
3585
|
-
});
|
|
3655
|
+
);
|
|
3586
3656
|
}
|
|
3587
|
-
const VERSION$1 = "1.13.
|
|
3657
|
+
const VERSION$1 = "1.13.6";
|
|
3588
3658
|
const validators$1 = {};
|
|
3589
3659
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
3590
3660
|
validators$1[type] = function validator2(thing) {
|
|
@@ -3634,7 +3704,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
3634
3704
|
const value = options[opt];
|
|
3635
3705
|
const result = value === void 0 || validator2(value, opt, options);
|
|
3636
3706
|
if (result !== true) {
|
|
3637
|
-
throw new AxiosError$1(
|
|
3707
|
+
throw new AxiosError$1(
|
|
3708
|
+
"option " + opt + " must be " + result,
|
|
3709
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
3710
|
+
);
|
|
3638
3711
|
}
|
|
3639
3712
|
continue;
|
|
3640
3713
|
}
|
|
@@ -3694,12 +3767,16 @@ let Axios$1 = class Axios {
|
|
|
3694
3767
|
config = mergeConfig$1(this.defaults, config);
|
|
3695
3768
|
const { transitional: transitional2, paramsSerializer, headers } = config;
|
|
3696
3769
|
if (transitional2 !== void 0) {
|
|
3697
|
-
validator.assertOptions(
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3770
|
+
validator.assertOptions(
|
|
3771
|
+
transitional2,
|
|
3772
|
+
{
|
|
3773
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
3774
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
3775
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
3776
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
3777
|
+
},
|
|
3778
|
+
false
|
|
3779
|
+
);
|
|
3703
3780
|
}
|
|
3704
3781
|
if (paramsSerializer != null) {
|
|
3705
3782
|
if (utils$1.isFunction(paramsSerializer)) {
|
|
@@ -3707,10 +3784,14 @@ let Axios$1 = class Axios {
|
|
|
3707
3784
|
serialize: paramsSerializer
|
|
3708
3785
|
};
|
|
3709
3786
|
} else {
|
|
3710
|
-
validator.assertOptions(
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3787
|
+
validator.assertOptions(
|
|
3788
|
+
paramsSerializer,
|
|
3789
|
+
{
|
|
3790
|
+
encode: validators.function,
|
|
3791
|
+
serialize: validators.function
|
|
3792
|
+
},
|
|
3793
|
+
true
|
|
3794
|
+
);
|
|
3714
3795
|
}
|
|
3715
3796
|
}
|
|
3716
3797
|
if (config.allowAbsoluteUrls !== void 0) ;
|
|
@@ -3719,21 +3800,19 @@ let Axios$1 = class Axios {
|
|
|
3719
3800
|
} else {
|
|
3720
3801
|
config.allowAbsoluteUrls = true;
|
|
3721
3802
|
}
|
|
3722
|
-
validator.assertOptions(
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
headers[config.method]
|
|
3730
|
-
);
|
|
3731
|
-
headers && utils$1.forEach(
|
|
3732
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
3733
|
-
(method) => {
|
|
3734
|
-
delete headers[method];
|
|
3735
|
-
}
|
|
3803
|
+
validator.assertOptions(
|
|
3804
|
+
config,
|
|
3805
|
+
{
|
|
3806
|
+
baseUrl: validators.spelling("baseURL"),
|
|
3807
|
+
withXsrfToken: validators.spelling("withXSRFToken")
|
|
3808
|
+
},
|
|
3809
|
+
true
|
|
3736
3810
|
);
|
|
3811
|
+
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
3812
|
+
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
3813
|
+
headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
3814
|
+
delete headers[method];
|
|
3815
|
+
});
|
|
3737
3816
|
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
3738
3817
|
const requestInterceptorChain = [];
|
|
3739
3818
|
let synchronousRequestInterceptors = true;
|
|
@@ -3800,24 +3879,28 @@ let Axios$1 = class Axios {
|
|
|
3800
3879
|
};
|
|
3801
3880
|
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
3802
3881
|
Axios$1.prototype[method] = function(url, config) {
|
|
3803
|
-
return this.request(
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3882
|
+
return this.request(
|
|
3883
|
+
mergeConfig$1(config || {}, {
|
|
3884
|
+
method,
|
|
3885
|
+
url,
|
|
3886
|
+
data: (config || {}).data
|
|
3887
|
+
})
|
|
3888
|
+
);
|
|
3808
3889
|
};
|
|
3809
3890
|
});
|
|
3810
3891
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
3811
3892
|
function generateHTTPMethod(isForm) {
|
|
3812
3893
|
return function httpMethod(url, data, config) {
|
|
3813
|
-
return this.request(
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3894
|
+
return this.request(
|
|
3895
|
+
mergeConfig$1(config || {}, {
|
|
3896
|
+
method,
|
|
3897
|
+
headers: isForm ? {
|
|
3898
|
+
"Content-Type": "multipart/form-data"
|
|
3899
|
+
} : {},
|
|
3900
|
+
url,
|
|
3901
|
+
data
|
|
3902
|
+
})
|
|
3903
|
+
);
|
|
3821
3904
|
};
|
|
3822
3905
|
}
|
|
3823
3906
|
Axios$1.prototype[method] = generateHTTPMethod();
|
|
@@ -12482,6 +12565,18 @@ function useElementFinalSize(elementRef, onFinalSize, delay = 100) {
|
|
|
12482
12565
|
onCleanup(() => clearTimeout(timeoutId));
|
|
12483
12566
|
});
|
|
12484
12567
|
}
|
|
12568
|
+
function classValueToString(value) {
|
|
12569
|
+
if (!value) return "";
|
|
12570
|
+
if (typeof value === "string") return value;
|
|
12571
|
+
if (Array.isArray(value)) {
|
|
12572
|
+
return value.filter(Boolean).join(" ");
|
|
12573
|
+
}
|
|
12574
|
+
if (typeof value === "object") {
|
|
12575
|
+
const entries = Object.entries(value);
|
|
12576
|
+
return entries.filter(([, enabled]) => Boolean(enabled)).map(([className]) => className).join(" ");
|
|
12577
|
+
}
|
|
12578
|
+
return String(value);
|
|
12579
|
+
}
|
|
12485
12580
|
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
12486
12581
|
...{
|
|
12487
12582
|
inheritAttrs: false
|
|
@@ -12493,15 +12588,21 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
12493
12588
|
setup(__props) {
|
|
12494
12589
|
const props = __props;
|
|
12495
12590
|
const attrs = vue.useAttrs();
|
|
12591
|
+
const consumerClass = vue.computed(() => classValueToString(attrs.class));
|
|
12496
12592
|
const rootAttrs = vue.computed(() => {
|
|
12497
12593
|
const result = { ...attrs };
|
|
12594
|
+
delete result.class;
|
|
12498
12595
|
if (props.dataTestid) {
|
|
12499
12596
|
result["data-testid"] = props.dataTestid;
|
|
12500
12597
|
}
|
|
12501
12598
|
return result;
|
|
12502
12599
|
});
|
|
12600
|
+
const spanClasses = vue.computed(() => {
|
|
12601
|
+
const baseClasses = "inline-block font-light";
|
|
12602
|
+
return [baseClasses, consumerClass.value].filter(Boolean).join(" ");
|
|
12603
|
+
});
|
|
12503
12604
|
return (_ctx, _cache) => {
|
|
12504
|
-
return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class:
|
|
12605
|
+
return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class: spanClasses.value }, rootAttrs.value), [
|
|
12505
12606
|
vue.renderSlot(_ctx.$slots, "default")
|
|
12506
12607
|
], 16);
|
|
12507
12608
|
};
|
|
@@ -12746,15 +12847,21 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
12746
12847
|
setup(__props) {
|
|
12747
12848
|
const props = __props;
|
|
12748
12849
|
const attrs = vue.useAttrs();
|
|
12850
|
+
const consumerClass = vue.computed(() => classValueToString(attrs.class));
|
|
12749
12851
|
const rootAttrs = vue.computed(() => {
|
|
12750
12852
|
const result = { ...attrs };
|
|
12853
|
+
delete result.class;
|
|
12751
12854
|
if (props.dataTestid) {
|
|
12752
12855
|
result["data-testid"] = props.dataTestid;
|
|
12753
12856
|
}
|
|
12754
12857
|
return result;
|
|
12755
12858
|
});
|
|
12859
|
+
const spanClasses = vue.computed(() => {
|
|
12860
|
+
const baseClasses = "inline-block font-light text-lg";
|
|
12861
|
+
return [baseClasses, consumerClass.value].filter(Boolean).join(" ");
|
|
12862
|
+
});
|
|
12756
12863
|
return (_ctx, _cache) => {
|
|
12757
|
-
return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class:
|
|
12864
|
+
return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class: spanClasses.value }, rootAttrs.value), [
|
|
12758
12865
|
vue.renderSlot(_ctx.$slots, "default")
|
|
12759
12866
|
], 16);
|
|
12760
12867
|
};
|
|
@@ -13540,8 +13647,10 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
13540
13647
|
setup(__props) {
|
|
13541
13648
|
const props = __props;
|
|
13542
13649
|
const attrs = vue.useAttrs();
|
|
13650
|
+
const consumerClass = vue.computed(() => classValueToString(attrs.class));
|
|
13543
13651
|
const rootAttrs = vue.computed(() => {
|
|
13544
13652
|
const result = { ...attrs };
|
|
13653
|
+
delete result.class;
|
|
13545
13654
|
if (props.dataTestid) {
|
|
13546
13655
|
result["data-testid"] = props.dataTestid;
|
|
13547
13656
|
}
|
|
@@ -13550,7 +13659,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
13550
13659
|
const headingClasses = vue.computed(() => {
|
|
13551
13660
|
const baseClasses = "font-raleway leading-tight m-0 mb-3";
|
|
13552
13661
|
const sizeClass = getResponsiveSize(props.size);
|
|
13553
|
-
return [baseClasses, sizeClass].filter(Boolean).join(" ");
|
|
13662
|
+
return [baseClasses, sizeClass, consumerClass.value].filter(Boolean).join(" ");
|
|
13554
13663
|
});
|
|
13555
13664
|
function getResponsiveSize(size) {
|
|
13556
13665
|
if (size !== "responsive") {
|
|
@@ -13582,8 +13691,10 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
13582
13691
|
setup(__props) {
|
|
13583
13692
|
const props = __props;
|
|
13584
13693
|
const attrs = vue.useAttrs();
|
|
13694
|
+
const consumerClass = vue.computed(() => classValueToString(attrs.class));
|
|
13585
13695
|
const rootAttrs = vue.computed(() => {
|
|
13586
13696
|
const result = { ...attrs };
|
|
13697
|
+
delete result.class;
|
|
13587
13698
|
if (props.dataTestid) {
|
|
13588
13699
|
result["data-testid"] = props.dataTestid;
|
|
13589
13700
|
}
|
|
@@ -13592,7 +13703,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
13592
13703
|
const headingClasses = vue.computed(() => {
|
|
13593
13704
|
const baseClasses = "font-raleway leading-tight m-0 mt-4 mb-2";
|
|
13594
13705
|
const sizeClass = getResponsiveSize(props.size);
|
|
13595
|
-
return [baseClasses, sizeClass].filter(Boolean).join(" ");
|
|
13706
|
+
return [baseClasses, sizeClass, consumerClass.value].filter(Boolean).join(" ");
|
|
13596
13707
|
});
|
|
13597
13708
|
function getResponsiveSize(size) {
|
|
13598
13709
|
if (size !== "responsive") {
|
|
@@ -13624,8 +13735,10 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
13624
13735
|
setup(__props) {
|
|
13625
13736
|
const props = __props;
|
|
13626
13737
|
const attrs = vue.useAttrs();
|
|
13738
|
+
const consumerClass = vue.computed(() => classValueToString(attrs.class));
|
|
13627
13739
|
const rootAttrs = vue.computed(() => {
|
|
13628
13740
|
const result = { ...attrs };
|
|
13741
|
+
delete result.class;
|
|
13629
13742
|
if (props.dataTestid) {
|
|
13630
13743
|
result["data-testid"] = props.dataTestid;
|
|
13631
13744
|
}
|
|
@@ -13634,7 +13747,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
13634
13747
|
const headingClasses = vue.computed(() => {
|
|
13635
13748
|
const baseClasses = "font-raleway leading-tight m-0 mt-4 mb-2";
|
|
13636
13749
|
const sizeClass = getResponsiveSize(props.size);
|
|
13637
|
-
return [baseClasses, sizeClass].filter(Boolean).join(" ");
|
|
13750
|
+
return [baseClasses, sizeClass, consumerClass.value].filter(Boolean).join(" ");
|
|
13638
13751
|
});
|
|
13639
13752
|
function getResponsiveSize(size) {
|
|
13640
13753
|
if (size !== "responsive") {
|
|
@@ -13687,15 +13800,21 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
13687
13800
|
setup(__props) {
|
|
13688
13801
|
const props = __props;
|
|
13689
13802
|
const attrs = vue.useAttrs();
|
|
13803
|
+
const consumerClass = vue.computed(() => classValueToString(attrs.class));
|
|
13690
13804
|
const rootAttrs = vue.computed(() => {
|
|
13691
13805
|
const result = { ...attrs };
|
|
13806
|
+
delete result.class;
|
|
13692
13807
|
if (props.dataTestid) {
|
|
13693
13808
|
result["data-testid"] = props.dataTestid;
|
|
13694
13809
|
}
|
|
13695
13810
|
return result;
|
|
13696
13811
|
});
|
|
13812
|
+
const spanClasses = vue.computed(() => {
|
|
13813
|
+
const baseClasses = "font-bold inline-block mb-2 tracking-wide";
|
|
13814
|
+
return [baseClasses, consumerClass.value].filter(Boolean).join(" ");
|
|
13815
|
+
});
|
|
13697
13816
|
return (_ctx, _cache) => {
|
|
13698
|
-
return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class:
|
|
13817
|
+
return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class: spanClasses.value }, rootAttrs.value), [
|
|
13699
13818
|
vue.renderSlot(_ctx.$slots, "default")
|
|
13700
13819
|
], 16);
|
|
13701
13820
|
};
|
|
@@ -13722,8 +13841,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
13722
13841
|
setup(__props) {
|
|
13723
13842
|
const props = __props;
|
|
13724
13843
|
const attrs = vue.useAttrs();
|
|
13844
|
+
const consumerClass = vue.computed(() => classValueToString(attrs.class));
|
|
13725
13845
|
const rootAttrs = vue.computed(() => {
|
|
13726
13846
|
const result = { ...attrs };
|
|
13847
|
+
delete result.class;
|
|
13727
13848
|
if (props.dataTestid) {
|
|
13728
13849
|
result["data-testid"] = props.dataTestid;
|
|
13729
13850
|
}
|
|
@@ -13753,8 +13874,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
13753
13874
|
}
|
|
13754
13875
|
return props.language === "sv" ? "Laddar..." : "Loading...";
|
|
13755
13876
|
};
|
|
13877
|
+
const wrapperClasses = vue.computed(() => {
|
|
13878
|
+
const baseClasses = "inline-block mb-3 h-7 font-bold text-xl";
|
|
13879
|
+
return [baseClasses, consumerClass.value].filter(Boolean).join(" ");
|
|
13880
|
+
});
|
|
13756
13881
|
return (_ctx, _cache) => {
|
|
13757
|
-
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class:
|
|
13882
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: wrapperClasses.value }, rootAttrs.value), [
|
|
13758
13883
|
__props.loading ? (vue.openBlock(), vue.createBlock(_sfc_main$z, {
|
|
13759
13884
|
key: 0,
|
|
13760
13885
|
size: "24px",
|