@ouestfrance/sipa-bms-ui 8.25.0 → 8.25.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/components/form/BmsCombobox.vue.d.ts +3 -1
- package/dist/mockServiceWorker.js +1 -1
- package/dist/sipa-bms-ui.css +14 -14
- package/dist/sipa-bms-ui.es.js +240 -146
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +240 -146
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +12 -12
- package/src/components/form/BmsCombobox.vue +18 -14
- package/src/showroom/pages/combobox.vue +2 -2
package/dist/sipa-bms-ui.umd.js
CHANGED
|
@@ -87840,7 +87840,7 @@
|
|
|
87840
87840
|
"modelModifiers": {}
|
|
87841
87841
|
}),
|
|
87842
87842
|
emits: /* @__PURE__ */ vue.mergeModels(["addNewOption", "select"], ["update:modelValue"]),
|
|
87843
|
-
setup(__props, { emit: __emit }) {
|
|
87843
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
87844
87844
|
const props = __props;
|
|
87845
87845
|
const emits = __emit;
|
|
87846
87846
|
const modelValue = vue.useModel(__props, "modelValue");
|
|
@@ -87891,6 +87891,7 @@
|
|
|
87891
87891
|
allServerLoadedOptions.value.push(element);
|
|
87892
87892
|
}
|
|
87893
87893
|
});
|
|
87894
|
+
synchronizeSearchWithValue(modelValue.value);
|
|
87894
87895
|
}
|
|
87895
87896
|
} catch (e) {
|
|
87896
87897
|
console.error(e);
|
|
@@ -87944,20 +87945,19 @@
|
|
|
87944
87945
|
return localOptions.value;
|
|
87945
87946
|
});
|
|
87946
87947
|
const localOptions = vue.computed(() => {
|
|
87947
|
-
|
|
87948
|
+
const options = props.request ? allServerLoadedOptions.value : props.options;
|
|
87949
|
+
return Array.isArray(options) && !!options.length && typeof options[0] === "string" ? options.map((o) => ({ label: o, value: o })) : options;
|
|
87948
87950
|
});
|
|
87949
87951
|
const selectedItems = vue.computed(() => {
|
|
87950
87952
|
if (!modelValue.value || !Array.isArray(modelValue.value)) return [];
|
|
87951
87953
|
const items = [];
|
|
87952
|
-
|
|
87953
|
-
(option)
|
|
87954
|
-
|
|
87955
|
-
|
|
87956
|
-
|
|
87957
|
-
items.push(option);
|
|
87958
|
-
}
|
|
87954
|
+
localOptions.value.forEach((option) => {
|
|
87955
|
+
if (modelValue.value === option.value) {
|
|
87956
|
+
items.push(option);
|
|
87957
|
+
} else if (modelValue.value?.includes(option.value)) {
|
|
87958
|
+
items.push(option);
|
|
87959
87959
|
}
|
|
87960
|
-
);
|
|
87960
|
+
});
|
|
87961
87961
|
return items;
|
|
87962
87962
|
});
|
|
87963
87963
|
const isOptionSelected = (option) => {
|
|
@@ -88029,6 +88029,9 @@
|
|
|
88029
88029
|
closeDatalist();
|
|
88030
88030
|
}
|
|
88031
88031
|
};
|
|
88032
|
+
__expose({
|
|
88033
|
+
setFocus
|
|
88034
|
+
});
|
|
88032
88035
|
return (_ctx, _cache) => {
|
|
88033
88036
|
const _component_field = vue.resolveComponent("field");
|
|
88034
88037
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
|
|
@@ -88134,7 +88137,7 @@
|
|
|
88134
88137
|
}
|
|
88135
88138
|
});
|
|
88136
88139
|
|
|
88137
|
-
const BmsCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-
|
|
88140
|
+
const BmsCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-acd40993"]]);
|
|
88138
88141
|
|
|
88139
88142
|
const _hoisted_1$F = ["value", "required", "placeholder", "disabled"];
|
|
88140
88143
|
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -100103,30 +100106,30 @@
|
|
|
100103
100106
|
|
|
100104
100107
|
// utils is a library of generic helper functions non-specific to axios
|
|
100105
100108
|
|
|
100106
|
-
const {toString} = Object.prototype;
|
|
100107
|
-
const {getPrototypeOf} = Object;
|
|
100108
|
-
const {iterator, toStringTag} = Symbol;
|
|
100109
|
+
const { toString } = Object.prototype;
|
|
100110
|
+
const { getPrototypeOf } = Object;
|
|
100111
|
+
const { iterator, toStringTag } = Symbol;
|
|
100109
100112
|
|
|
100110
|
-
const kindOf = (cache => thing => {
|
|
100111
|
-
|
|
100112
|
-
|
|
100113
|
+
const kindOf = ((cache) => (thing) => {
|
|
100114
|
+
const str = toString.call(thing);
|
|
100115
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
100113
100116
|
})(Object.create(null));
|
|
100114
100117
|
|
|
100115
100118
|
const kindOfTest = (type) => {
|
|
100116
100119
|
type = type.toLowerCase();
|
|
100117
|
-
return (thing) => kindOf(thing) === type
|
|
100120
|
+
return (thing) => kindOf(thing) === type;
|
|
100118
100121
|
};
|
|
100119
100122
|
|
|
100120
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
100123
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
100121
100124
|
|
|
100122
100125
|
/**
|
|
100123
|
-
* Determine if a value is
|
|
100126
|
+
* Determine if a value is a non-null object
|
|
100124
100127
|
*
|
|
100125
100128
|
* @param {Object} val The value to test
|
|
100126
100129
|
*
|
|
100127
100130
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
100128
100131
|
*/
|
|
100129
|
-
const {isArray} = Array;
|
|
100132
|
+
const { isArray } = Array;
|
|
100130
100133
|
|
|
100131
100134
|
/**
|
|
100132
100135
|
* Determine if a value is undefined
|
|
@@ -100135,7 +100138,7 @@
|
|
|
100135
100138
|
*
|
|
100136
100139
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
100137
100140
|
*/
|
|
100138
|
-
const isUndefined = typeOfTest(
|
|
100141
|
+
const isUndefined = typeOfTest("undefined");
|
|
100139
100142
|
|
|
100140
100143
|
/**
|
|
100141
100144
|
* Determine if a value is a Buffer
|
|
@@ -100145,8 +100148,14 @@
|
|
|
100145
100148
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
100146
100149
|
*/
|
|
100147
100150
|
function isBuffer(val) {
|
|
100148
|
-
return
|
|
100149
|
-
|
|
100151
|
+
return (
|
|
100152
|
+
val !== null &&
|
|
100153
|
+
!isUndefined(val) &&
|
|
100154
|
+
val.constructor !== null &&
|
|
100155
|
+
!isUndefined(val.constructor) &&
|
|
100156
|
+
isFunction$1(val.constructor.isBuffer) &&
|
|
100157
|
+
val.constructor.isBuffer(val)
|
|
100158
|
+
);
|
|
100150
100159
|
}
|
|
100151
100160
|
|
|
100152
100161
|
/**
|
|
@@ -100156,8 +100165,7 @@
|
|
|
100156
100165
|
*
|
|
100157
100166
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
100158
100167
|
*/
|
|
100159
|
-
const isArrayBuffer = kindOfTest(
|
|
100160
|
-
|
|
100168
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
100161
100169
|
|
|
100162
100170
|
/**
|
|
100163
100171
|
* Determine if a value is a view on an ArrayBuffer
|
|
@@ -100168,10 +100176,10 @@
|
|
|
100168
100176
|
*/
|
|
100169
100177
|
function isArrayBufferView(val) {
|
|
100170
100178
|
let result;
|
|
100171
|
-
if (
|
|
100179
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
100172
100180
|
result = ArrayBuffer.isView(val);
|
|
100173
100181
|
} else {
|
|
100174
|
-
result =
|
|
100182
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
100175
100183
|
}
|
|
100176
100184
|
return result;
|
|
100177
100185
|
}
|
|
@@ -100183,7 +100191,7 @@
|
|
|
100183
100191
|
*
|
|
100184
100192
|
* @returns {boolean} True if value is a String, otherwise false
|
|
100185
100193
|
*/
|
|
100186
|
-
const isString = typeOfTest(
|
|
100194
|
+
const isString = typeOfTest("string");
|
|
100187
100195
|
|
|
100188
100196
|
/**
|
|
100189
100197
|
* Determine if a value is a Function
|
|
@@ -100191,7 +100199,7 @@
|
|
|
100191
100199
|
* @param {*} val The value to test
|
|
100192
100200
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
100193
100201
|
*/
|
|
100194
|
-
const isFunction$1 = typeOfTest(
|
|
100202
|
+
const isFunction$1 = typeOfTest("function");
|
|
100195
100203
|
|
|
100196
100204
|
/**
|
|
100197
100205
|
* Determine if a value is a Number
|
|
@@ -100200,7 +100208,7 @@
|
|
|
100200
100208
|
*
|
|
100201
100209
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
100202
100210
|
*/
|
|
100203
|
-
const isNumber = typeOfTest(
|
|
100211
|
+
const isNumber = typeOfTest("number");
|
|
100204
100212
|
|
|
100205
100213
|
/**
|
|
100206
100214
|
* Determine if a value is an Object
|
|
@@ -100209,7 +100217,7 @@
|
|
|
100209
100217
|
*
|
|
100210
100218
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
100211
100219
|
*/
|
|
100212
|
-
const isObject$1 = (thing) => thing !== null && typeof thing ===
|
|
100220
|
+
const isObject$1 = (thing) => thing !== null && typeof thing === "object";
|
|
100213
100221
|
|
|
100214
100222
|
/**
|
|
100215
100223
|
* Determine if a value is a Boolean
|
|
@@ -100217,7 +100225,7 @@
|
|
|
100217
100225
|
* @param {*} thing The value to test
|
|
100218
100226
|
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
100219
100227
|
*/
|
|
100220
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
100228
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
100221
100229
|
|
|
100222
100230
|
/**
|
|
100223
100231
|
* Determine if a value is a plain Object
|
|
@@ -100227,12 +100235,18 @@
|
|
|
100227
100235
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
100228
100236
|
*/
|
|
100229
100237
|
const isPlainObject = (val) => {
|
|
100230
|
-
if (kindOf(val) !==
|
|
100238
|
+
if (kindOf(val) !== "object") {
|
|
100231
100239
|
return false;
|
|
100232
100240
|
}
|
|
100233
100241
|
|
|
100234
100242
|
const prototype = getPrototypeOf(val);
|
|
100235
|
-
return (
|
|
100243
|
+
return (
|
|
100244
|
+
(prototype === null ||
|
|
100245
|
+
prototype === Object.prototype ||
|
|
100246
|
+
Object.getPrototypeOf(prototype) === null) &&
|
|
100247
|
+
!(toStringTag in val) &&
|
|
100248
|
+
!(iterator in val)
|
|
100249
|
+
);
|
|
100236
100250
|
};
|
|
100237
100251
|
|
|
100238
100252
|
/**
|
|
@@ -100249,7 +100263,10 @@
|
|
|
100249
100263
|
}
|
|
100250
100264
|
|
|
100251
100265
|
try {
|
|
100252
|
-
return
|
|
100266
|
+
return (
|
|
100267
|
+
Object.keys(val).length === 0 &&
|
|
100268
|
+
Object.getPrototypeOf(val) === Object.prototype
|
|
100269
|
+
);
|
|
100253
100270
|
} catch (e) {
|
|
100254
100271
|
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
100255
100272
|
return false;
|
|
@@ -100263,7 +100280,7 @@
|
|
|
100263
100280
|
*
|
|
100264
100281
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
100265
100282
|
*/
|
|
100266
|
-
const isDate = kindOfTest(
|
|
100283
|
+
const isDate = kindOfTest("Date");
|
|
100267
100284
|
|
|
100268
100285
|
/**
|
|
100269
100286
|
* Determine if a value is a File
|
|
@@ -100272,7 +100289,7 @@
|
|
|
100272
100289
|
*
|
|
100273
100290
|
* @returns {boolean} True if value is a File, otherwise false
|
|
100274
100291
|
*/
|
|
100275
|
-
const isFile = kindOfTest(
|
|
100292
|
+
const isFile = kindOfTest("File");
|
|
100276
100293
|
|
|
100277
100294
|
/**
|
|
100278
100295
|
* Determine if a value is a Blob
|
|
@@ -100281,7 +100298,7 @@
|
|
|
100281
100298
|
*
|
|
100282
100299
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
100283
100300
|
*/
|
|
100284
|
-
const isBlob = kindOfTest(
|
|
100301
|
+
const isBlob = kindOfTest("Blob");
|
|
100285
100302
|
|
|
100286
100303
|
/**
|
|
100287
100304
|
* Determine if a value is a FileList
|
|
@@ -100290,7 +100307,7 @@
|
|
|
100290
100307
|
*
|
|
100291
100308
|
* @returns {boolean} True if value is a File, otherwise false
|
|
100292
100309
|
*/
|
|
100293
|
-
const isFileList = kindOfTest(
|
|
100310
|
+
const isFileList = kindOfTest("FileList");
|
|
100294
100311
|
|
|
100295
100312
|
/**
|
|
100296
100313
|
* Determine if a value is a Stream
|
|
@@ -100310,15 +100327,16 @@
|
|
|
100310
100327
|
*/
|
|
100311
100328
|
const isFormData = (thing) => {
|
|
100312
100329
|
let kind;
|
|
100313
|
-
return
|
|
100314
|
-
|
|
100315
|
-
|
|
100316
|
-
|
|
100317
|
-
|
|
100318
|
-
|
|
100319
|
-
|
|
100320
|
-
|
|
100321
|
-
|
|
100330
|
+
return (
|
|
100331
|
+
thing &&
|
|
100332
|
+
((typeof FormData === "function" && thing instanceof FormData) ||
|
|
100333
|
+
(isFunction$1(thing.append) &&
|
|
100334
|
+
((kind = kindOf(thing)) === "formdata" ||
|
|
100335
|
+
// detect form-data instance
|
|
100336
|
+
(kind === "object" &&
|
|
100337
|
+
isFunction$1(thing.toString) &&
|
|
100338
|
+
thing.toString() === "[object FormData]"))))
|
|
100339
|
+
);
|
|
100322
100340
|
};
|
|
100323
100341
|
|
|
100324
100342
|
/**
|
|
@@ -100328,9 +100346,14 @@
|
|
|
100328
100346
|
*
|
|
100329
100347
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
100330
100348
|
*/
|
|
100331
|
-
const isURLSearchParams = kindOfTest(
|
|
100349
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
100332
100350
|
|
|
100333
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
100351
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
100352
|
+
"ReadableStream",
|
|
100353
|
+
"Request",
|
|
100354
|
+
"Response",
|
|
100355
|
+
"Headers",
|
|
100356
|
+
].map(kindOfTest);
|
|
100334
100357
|
|
|
100335
100358
|
/**
|
|
100336
100359
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -100339,8 +100362,8 @@
|
|
|
100339
100362
|
*
|
|
100340
100363
|
* @returns {String} The String freed of excess whitespace
|
|
100341
100364
|
*/
|
|
100342
|
-
const trim = (str) =>
|
|
100343
|
-
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
100365
|
+
const trim = (str) =>
|
|
100366
|
+
str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
100344
100367
|
|
|
100345
100368
|
/**
|
|
100346
100369
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
@@ -100358,9 +100381,9 @@
|
|
|
100358
100381
|
* @param {Boolean} [options.allOwnKeys = false]
|
|
100359
100382
|
* @returns {any}
|
|
100360
100383
|
*/
|
|
100361
|
-
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
100384
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
100362
100385
|
// Don't bother if no value provided
|
|
100363
|
-
if (obj === null || typeof obj ===
|
|
100386
|
+
if (obj === null || typeof obj === "undefined") {
|
|
100364
100387
|
return;
|
|
100365
100388
|
}
|
|
100366
100389
|
|
|
@@ -100368,7 +100391,7 @@
|
|
|
100368
100391
|
let l;
|
|
100369
100392
|
|
|
100370
100393
|
// Force an array if not already something iterable
|
|
100371
|
-
if (typeof obj !==
|
|
100394
|
+
if (typeof obj !== "object") {
|
|
100372
100395
|
/*eslint no-param-reassign:0*/
|
|
100373
100396
|
obj = [obj];
|
|
100374
100397
|
}
|
|
@@ -100385,7 +100408,9 @@
|
|
|
100385
100408
|
}
|
|
100386
100409
|
|
|
100387
100410
|
// Iterate over object keys
|
|
100388
|
-
const keys = allOwnKeys
|
|
100411
|
+
const keys = allOwnKeys
|
|
100412
|
+
? Object.getOwnPropertyNames(obj)
|
|
100413
|
+
: Object.keys(obj);
|
|
100389
100414
|
const len = keys.length;
|
|
100390
100415
|
let key;
|
|
100391
100416
|
|
|
@@ -100397,7 +100422,7 @@
|
|
|
100397
100422
|
}
|
|
100398
100423
|
|
|
100399
100424
|
function findKey(obj, key) {
|
|
100400
|
-
if (isBuffer(obj)){
|
|
100425
|
+
if (isBuffer(obj)) {
|
|
100401
100426
|
return null;
|
|
100402
100427
|
}
|
|
100403
100428
|
|
|
@@ -100417,10 +100442,15 @@
|
|
|
100417
100442
|
const _global = (() => {
|
|
100418
100443
|
/*eslint no-undef:0*/
|
|
100419
100444
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
100420
|
-
return typeof self !== "undefined"
|
|
100445
|
+
return typeof self !== "undefined"
|
|
100446
|
+
? self
|
|
100447
|
+
: typeof window !== "undefined"
|
|
100448
|
+
? window
|
|
100449
|
+
: global;
|
|
100421
100450
|
})();
|
|
100422
100451
|
|
|
100423
|
-
const isContextDefined = (context) =>
|
|
100452
|
+
const isContextDefined = (context) =>
|
|
100453
|
+
!isUndefined(context) && context !== _global;
|
|
100424
100454
|
|
|
100425
100455
|
/**
|
|
100426
100456
|
* Accepts varargs expecting each argument to be an object, then
|
|
@@ -100441,10 +100471,15 @@
|
|
|
100441
100471
|
* @returns {Object} Result of all merge properties
|
|
100442
100472
|
*/
|
|
100443
100473
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
100444
|
-
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
100474
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
100445
100475
|
const result = {};
|
|
100446
100476
|
const assignValue = (val, key) => {
|
|
100447
|
-
|
|
100477
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
100478
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
100479
|
+
return;
|
|
100480
|
+
}
|
|
100481
|
+
|
|
100482
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
100448
100483
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
100449
100484
|
result[targetKey] = merge(result[targetKey], val);
|
|
100450
100485
|
} else if (isPlainObject(val)) {
|
|
@@ -100473,24 +100508,28 @@
|
|
|
100473
100508
|
* @param {Boolean} [options.allOwnKeys]
|
|
100474
100509
|
* @returns {Object} The resulting value of object a
|
|
100475
100510
|
*/
|
|
100476
|
-
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
100477
|
-
forEach(
|
|
100478
|
-
|
|
100479
|
-
|
|
100480
|
-
|
|
100481
|
-
|
|
100482
|
-
|
|
100483
|
-
|
|
100484
|
-
|
|
100485
|
-
|
|
100486
|
-
|
|
100487
|
-
|
|
100488
|
-
|
|
100489
|
-
|
|
100490
|
-
|
|
100491
|
-
|
|
100492
|
-
|
|
100493
|
-
|
|
100511
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
100512
|
+
forEach(
|
|
100513
|
+
b,
|
|
100514
|
+
(val, key) => {
|
|
100515
|
+
if (thisArg && isFunction$1(val)) {
|
|
100516
|
+
Object.defineProperty(a, key, {
|
|
100517
|
+
value: bind(val, thisArg),
|
|
100518
|
+
writable: true,
|
|
100519
|
+
enumerable: true,
|
|
100520
|
+
configurable: true,
|
|
100521
|
+
});
|
|
100522
|
+
} else {
|
|
100523
|
+
Object.defineProperty(a, key, {
|
|
100524
|
+
value: val,
|
|
100525
|
+
writable: true,
|
|
100526
|
+
enumerable: true,
|
|
100527
|
+
configurable: true,
|
|
100528
|
+
});
|
|
100529
|
+
}
|
|
100530
|
+
},
|
|
100531
|
+
{ allOwnKeys },
|
|
100532
|
+
);
|
|
100494
100533
|
return a;
|
|
100495
100534
|
};
|
|
100496
100535
|
|
|
@@ -100502,7 +100541,7 @@
|
|
|
100502
100541
|
* @returns {string} content value without BOM
|
|
100503
100542
|
*/
|
|
100504
100543
|
const stripBOM = (content) => {
|
|
100505
|
-
if (content.charCodeAt(0) ===
|
|
100544
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
100506
100545
|
content = content.slice(1);
|
|
100507
100546
|
}
|
|
100508
100547
|
return content;
|
|
@@ -100518,15 +100557,18 @@
|
|
|
100518
100557
|
* @returns {void}
|
|
100519
100558
|
*/
|
|
100520
100559
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
100521
|
-
constructor.prototype = Object.create(
|
|
100522
|
-
|
|
100560
|
+
constructor.prototype = Object.create(
|
|
100561
|
+
superConstructor.prototype,
|
|
100562
|
+
descriptors,
|
|
100563
|
+
);
|
|
100564
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
100523
100565
|
value: constructor,
|
|
100524
100566
|
writable: true,
|
|
100525
100567
|
enumerable: false,
|
|
100526
|
-
configurable: true
|
|
100568
|
+
configurable: true,
|
|
100527
100569
|
});
|
|
100528
|
-
Object.defineProperty(constructor,
|
|
100529
|
-
value: superConstructor.prototype
|
|
100570
|
+
Object.defineProperty(constructor, "super", {
|
|
100571
|
+
value: superConstructor.prototype,
|
|
100530
100572
|
});
|
|
100531
100573
|
props && Object.assign(constructor.prototype, props);
|
|
100532
100574
|
};
|
|
@@ -100555,13 +100597,20 @@
|
|
|
100555
100597
|
i = props.length;
|
|
100556
100598
|
while (i-- > 0) {
|
|
100557
100599
|
prop = props[i];
|
|
100558
|
-
if (
|
|
100600
|
+
if (
|
|
100601
|
+
(!propFilter || propFilter(prop, sourceObj, destObj)) &&
|
|
100602
|
+
!merged[prop]
|
|
100603
|
+
) {
|
|
100559
100604
|
destObj[prop] = sourceObj[prop];
|
|
100560
100605
|
merged[prop] = true;
|
|
100561
100606
|
}
|
|
100562
100607
|
}
|
|
100563
100608
|
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
100564
|
-
} while (
|
|
100609
|
+
} while (
|
|
100610
|
+
sourceObj &&
|
|
100611
|
+
(!filter || filter(sourceObj, destObj)) &&
|
|
100612
|
+
sourceObj !== Object.prototype
|
|
100613
|
+
);
|
|
100565
100614
|
|
|
100566
100615
|
return destObj;
|
|
100567
100616
|
};
|
|
@@ -100585,7 +100634,6 @@
|
|
|
100585
100634
|
return lastIndex !== -1 && lastIndex === position;
|
|
100586
100635
|
};
|
|
100587
100636
|
|
|
100588
|
-
|
|
100589
100637
|
/**
|
|
100590
100638
|
* Returns new array from array like object or null if failed
|
|
100591
100639
|
*
|
|
@@ -100614,12 +100662,12 @@
|
|
|
100614
100662
|
* @returns {Array}
|
|
100615
100663
|
*/
|
|
100616
100664
|
// eslint-disable-next-line func-names
|
|
100617
|
-
const isTypedArray = (TypedArray => {
|
|
100665
|
+
const isTypedArray = ((TypedArray) => {
|
|
100618
100666
|
// eslint-disable-next-line func-names
|
|
100619
|
-
return thing => {
|
|
100667
|
+
return (thing) => {
|
|
100620
100668
|
return TypedArray && thing instanceof TypedArray;
|
|
100621
100669
|
};
|
|
100622
|
-
})(typeof Uint8Array !==
|
|
100670
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
100623
100671
|
|
|
100624
100672
|
/**
|
|
100625
100673
|
* For each entry in the object, call the function with the key and value.
|
|
@@ -100662,18 +100710,22 @@
|
|
|
100662
100710
|
};
|
|
100663
100711
|
|
|
100664
100712
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
100665
|
-
const isHTMLForm = kindOfTest(
|
|
100713
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
100666
100714
|
|
|
100667
|
-
const toCamelCase = str => {
|
|
100668
|
-
return str
|
|
100669
|
-
|
|
100715
|
+
const toCamelCase = (str) => {
|
|
100716
|
+
return str
|
|
100717
|
+
.toLowerCase()
|
|
100718
|
+
.replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
100670
100719
|
return p1.toUpperCase() + p2;
|
|
100671
|
-
}
|
|
100672
|
-
);
|
|
100720
|
+
});
|
|
100673
100721
|
};
|
|
100674
100722
|
|
|
100675
100723
|
/* Creating a function that will check if an object has a property. */
|
|
100676
|
-
const hasOwnProperty = (
|
|
100724
|
+
const hasOwnProperty = (
|
|
100725
|
+
({ hasOwnProperty }) =>
|
|
100726
|
+
(obj, prop) =>
|
|
100727
|
+
hasOwnProperty.call(obj, prop)
|
|
100728
|
+
)(Object.prototype);
|
|
100677
100729
|
|
|
100678
100730
|
/**
|
|
100679
100731
|
* Determine if a value is a RegExp object
|
|
@@ -100682,7 +100734,7 @@
|
|
|
100682
100734
|
*
|
|
100683
100735
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
100684
100736
|
*/
|
|
100685
|
-
const isRegExp = kindOfTest(
|
|
100737
|
+
const isRegExp = kindOfTest("RegExp");
|
|
100686
100738
|
|
|
100687
100739
|
const reduceDescriptors = (obj, reducer) => {
|
|
100688
100740
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -100706,7 +100758,10 @@
|
|
|
100706
100758
|
const freezeMethods = (obj) => {
|
|
100707
100759
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
100708
100760
|
// skip restricted props in strict mode
|
|
100709
|
-
if (
|
|
100761
|
+
if (
|
|
100762
|
+
isFunction$1(obj) &&
|
|
100763
|
+
["arguments", "caller", "callee"].indexOf(name) !== -1
|
|
100764
|
+
) {
|
|
100710
100765
|
return false;
|
|
100711
100766
|
}
|
|
100712
100767
|
|
|
@@ -100716,14 +100771,14 @@
|
|
|
100716
100771
|
|
|
100717
100772
|
descriptor.enumerable = false;
|
|
100718
100773
|
|
|
100719
|
-
if (
|
|
100774
|
+
if ("writable" in descriptor) {
|
|
100720
100775
|
descriptor.writable = false;
|
|
100721
100776
|
return;
|
|
100722
100777
|
}
|
|
100723
100778
|
|
|
100724
100779
|
if (!descriptor.set) {
|
|
100725
100780
|
descriptor.set = () => {
|
|
100726
|
-
throw Error(
|
|
100781
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
100727
100782
|
};
|
|
100728
100783
|
}
|
|
100729
100784
|
});
|
|
@@ -100733,12 +100788,14 @@
|
|
|
100733
100788
|
const obj = {};
|
|
100734
100789
|
|
|
100735
100790
|
const define = (arr) => {
|
|
100736
|
-
arr.forEach(value => {
|
|
100791
|
+
arr.forEach((value) => {
|
|
100737
100792
|
obj[value] = true;
|
|
100738
100793
|
});
|
|
100739
100794
|
};
|
|
100740
100795
|
|
|
100741
|
-
isArray(arrayOrString)
|
|
100796
|
+
isArray(arrayOrString)
|
|
100797
|
+
? define(arrayOrString)
|
|
100798
|
+
: define(String(arrayOrString).split(delimiter));
|
|
100742
100799
|
|
|
100743
100800
|
return obj;
|
|
100744
100801
|
};
|
|
@@ -100746,11 +100803,11 @@
|
|
|
100746
100803
|
const noop = () => {};
|
|
100747
100804
|
|
|
100748
100805
|
const toFiniteNumber = (value, defaultValue) => {
|
|
100749
|
-
return value != null && Number.isFinite(value = +value)
|
|
100806
|
+
return value != null && Number.isFinite((value = +value))
|
|
100807
|
+
? value
|
|
100808
|
+
: defaultValue;
|
|
100750
100809
|
};
|
|
100751
100810
|
|
|
100752
|
-
|
|
100753
|
-
|
|
100754
100811
|
/**
|
|
100755
100812
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
100756
100813
|
*
|
|
@@ -100759,14 +100816,18 @@
|
|
|
100759
100816
|
* @returns {boolean}
|
|
100760
100817
|
*/
|
|
100761
100818
|
function isSpecCompliantForm(thing) {
|
|
100762
|
-
return !!(
|
|
100819
|
+
return !!(
|
|
100820
|
+
thing &&
|
|
100821
|
+
isFunction$1(thing.append) &&
|
|
100822
|
+
thing[toStringTag] === "FormData" &&
|
|
100823
|
+
thing[iterator]
|
|
100824
|
+
);
|
|
100763
100825
|
}
|
|
100764
100826
|
|
|
100765
100827
|
const toJSONObject = (obj) => {
|
|
100766
100828
|
const stack = new Array(10);
|
|
100767
100829
|
|
|
100768
100830
|
const visit = (source, i) => {
|
|
100769
|
-
|
|
100770
100831
|
if (isObject$1(source)) {
|
|
100771
100832
|
if (stack.indexOf(source) >= 0) {
|
|
100772
100833
|
return;
|
|
@@ -100777,7 +100838,7 @@
|
|
|
100777
100838
|
return source;
|
|
100778
100839
|
}
|
|
100779
100840
|
|
|
100780
|
-
if(!(
|
|
100841
|
+
if (!("toJSON" in source)) {
|
|
100781
100842
|
stack[i] = source;
|
|
100782
100843
|
const target = isArray(source) ? [] : {};
|
|
100783
100844
|
|
|
@@ -100798,10 +100859,13 @@
|
|
|
100798
100859
|
return visit(obj, 0);
|
|
100799
100860
|
};
|
|
100800
100861
|
|
|
100801
|
-
const isAsyncFn = kindOfTest(
|
|
100862
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
100802
100863
|
|
|
100803
100864
|
const isThenable = (thing) =>
|
|
100804
|
-
thing &&
|
|
100865
|
+
thing &&
|
|
100866
|
+
(isObject$1(thing) || isFunction$1(thing)) &&
|
|
100867
|
+
isFunction$1(thing.then) &&
|
|
100868
|
+
isFunction$1(thing.catch);
|
|
100805
100869
|
|
|
100806
100870
|
// original code
|
|
100807
100871
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -100811,32 +100875,35 @@
|
|
|
100811
100875
|
return setImmediate;
|
|
100812
100876
|
}
|
|
100813
100877
|
|
|
100814
|
-
return postMessageSupported
|
|
100815
|
-
|
|
100816
|
-
|
|
100817
|
-
|
|
100818
|
-
|
|
100819
|
-
|
|
100878
|
+
return postMessageSupported
|
|
100879
|
+
? ((token, callbacks) => {
|
|
100880
|
+
_global.addEventListener(
|
|
100881
|
+
"message",
|
|
100882
|
+
({ source, data }) => {
|
|
100883
|
+
if (source === _global && data === token) {
|
|
100884
|
+
callbacks.length && callbacks.shift()();
|
|
100885
|
+
}
|
|
100886
|
+
},
|
|
100887
|
+
false,
|
|
100888
|
+
);
|
|
100820
100889
|
|
|
100821
|
-
|
|
100822
|
-
|
|
100823
|
-
|
|
100824
|
-
|
|
100825
|
-
|
|
100826
|
-
|
|
100827
|
-
|
|
100828
|
-
isFunction$1(_global.postMessage)
|
|
100829
|
-
);
|
|
100890
|
+
return (cb) => {
|
|
100891
|
+
callbacks.push(cb);
|
|
100892
|
+
_global.postMessage(token, "*");
|
|
100893
|
+
};
|
|
100894
|
+
})(`axios@${Math.random()}`, [])
|
|
100895
|
+
: (cb) => setTimeout(cb);
|
|
100896
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
100830
100897
|
|
|
100831
|
-
const asap =
|
|
100832
|
-
|
|
100898
|
+
const asap =
|
|
100899
|
+
typeof queueMicrotask !== "undefined"
|
|
100900
|
+
? queueMicrotask.bind(_global)
|
|
100901
|
+
: (typeof process !== "undefined" && process.nextTick) || _setImmediate;
|
|
100833
100902
|
|
|
100834
100903
|
// *********************
|
|
100835
100904
|
|
|
100836
|
-
|
|
100837
100905
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
100838
100906
|
|
|
100839
|
-
|
|
100840
100907
|
const utils$1 = {
|
|
100841
100908
|
isArray,
|
|
100842
100909
|
isArrayBuffer,
|
|
@@ -100894,7 +100961,7 @@
|
|
|
100894
100961
|
isThenable,
|
|
100895
100962
|
setImmediate: _setImmediate,
|
|
100896
100963
|
asap,
|
|
100897
|
-
isIterable
|
|
100964
|
+
isIterable,
|
|
100898
100965
|
};
|
|
100899
100966
|
|
|
100900
100967
|
let AxiosError$1 = class AxiosError extends Error {
|
|
@@ -101366,7 +101433,8 @@
|
|
|
101366
101433
|
const transitionalDefaults = {
|
|
101367
101434
|
silentJSONParsing: true,
|
|
101368
101435
|
forcedJSONParsing: true,
|
|
101369
|
-
clarifyTimeoutError: false
|
|
101436
|
+
clarifyTimeoutError: false,
|
|
101437
|
+
legacyInterceptorReqResOrdering: true
|
|
101370
101438
|
};
|
|
101371
101439
|
|
|
101372
101440
|
const URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
@@ -102340,6 +102408,10 @@
|
|
|
102340
102408
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
102341
102409
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
102342
102410
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
102411
|
+
if (typeof url !== 'string') {
|
|
102412
|
+
return false;
|
|
102413
|
+
}
|
|
102414
|
+
|
|
102343
102415
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
102344
102416
|
}
|
|
102345
102417
|
|
|
@@ -102375,7 +102447,8 @@
|
|
|
102375
102447
|
return requestedURL;
|
|
102376
102448
|
}
|
|
102377
102449
|
|
|
102378
|
-
const headersToObject = (thing) =>
|
|
102450
|
+
const headersToObject = (thing) =>
|
|
102451
|
+
thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
102379
102452
|
|
|
102380
102453
|
/**
|
|
102381
102454
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -102464,14 +102537,27 @@
|
|
|
102464
102537
|
socketPath: defaultToConfig2,
|
|
102465
102538
|
responseEncoding: defaultToConfig2,
|
|
102466
102539
|
validateStatus: mergeDirectKeys,
|
|
102467
|
-
headers: (a, b, prop) =>
|
|
102540
|
+
headers: (a, b, prop) =>
|
|
102541
|
+
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
102468
102542
|
};
|
|
102469
102543
|
|
|
102470
|
-
utils$1.forEach(
|
|
102471
|
-
|
|
102472
|
-
|
|
102473
|
-
|
|
102474
|
-
|
|
102544
|
+
utils$1.forEach(
|
|
102545
|
+
Object.keys({ ...config1, ...config2 }),
|
|
102546
|
+
function computeConfigValue(prop) {
|
|
102547
|
+
if (
|
|
102548
|
+
prop === "__proto__" ||
|
|
102549
|
+
prop === "constructor" ||
|
|
102550
|
+
prop === "prototype"
|
|
102551
|
+
)
|
|
102552
|
+
return;
|
|
102553
|
+
const merge = utils$1.hasOwnProp(mergeMap, prop)
|
|
102554
|
+
? mergeMap[prop]
|
|
102555
|
+
: mergeDeepProperties;
|
|
102556
|
+
const configValue = merge(config1[prop], config2[prop], prop);
|
|
102557
|
+
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
|
|
102558
|
+
(config[prop] = configValue);
|
|
102559
|
+
},
|
|
102560
|
+
);
|
|
102475
102561
|
|
|
102476
102562
|
return config;
|
|
102477
102563
|
}
|
|
@@ -103087,14 +103173,14 @@
|
|
|
103087
103173
|
|
|
103088
103174
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
103089
103175
|
throw Object.assign(
|
|
103090
|
-
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
|
|
103176
|
+
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request, err && err.response),
|
|
103091
103177
|
{
|
|
103092
103178
|
cause: err.cause || err
|
|
103093
103179
|
}
|
|
103094
103180
|
)
|
|
103095
103181
|
}
|
|
103096
103182
|
|
|
103097
|
-
throw AxiosError$1.from(err, err && err.code, config, request);
|
|
103183
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
103098
103184
|
}
|
|
103099
103185
|
}
|
|
103100
103186
|
};
|
|
@@ -103319,7 +103405,7 @@
|
|
|
103319
103405
|
});
|
|
103320
103406
|
}
|
|
103321
103407
|
|
|
103322
|
-
const VERSION$1 = "1.13.
|
|
103408
|
+
const VERSION$1 = "1.13.5";
|
|
103323
103409
|
|
|
103324
103410
|
const validators$1 = {};
|
|
103325
103411
|
|
|
@@ -103487,7 +103573,8 @@
|
|
|
103487
103573
|
validator.assertOptions(transitional, {
|
|
103488
103574
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
103489
103575
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
103490
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
103576
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
103577
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
103491
103578
|
}, false);
|
|
103492
103579
|
}
|
|
103493
103580
|
|
|
@@ -103544,7 +103631,14 @@
|
|
|
103544
103631
|
|
|
103545
103632
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
103546
103633
|
|
|
103547
|
-
|
|
103634
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
103635
|
+
const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
|
|
103636
|
+
|
|
103637
|
+
if (legacyInterceptorReqResOrdering) {
|
|
103638
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
103639
|
+
} else {
|
|
103640
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
103641
|
+
}
|
|
103548
103642
|
});
|
|
103549
103643
|
|
|
103550
103644
|
const responseInterceptorChain = [];
|