intelicoreact 2.0.5 → 2.0.7
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/Atomic/FormElements/CheckboxInput/CheckboxInput.interface.d.ts +2 -1
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.interface.d.ts +26 -6
- package/dist/Atomic/FormElements/Switcher/Switcher.interface.d.ts +2 -1
- package/dist/Atomic/UI/AccordionText/AccordionText.interface.d.ts +13 -0
- package/dist/Atomic/UI/Alert/Alert.interface.d.ts +1 -1
- package/dist/Functions/sdk/runtime-sdk/client.d.ts +19 -0
- package/dist/Functions/sdk/runtime-sdk/config.d.ts +32 -0
- package/dist/Functions/sdk/runtime-sdk/index.d.ts +3 -0
- package/dist/Functions/sdk/runtime-sdk/queue.d.ts +70 -0
- package/dist/Functions/sdk/runtime-sdk/transport.d.ts +41 -0
- package/dist/Functions/sdk/runtime-sdk/types.d.ts +84 -0
- package/dist/Molecular/FormElement/FormElement.interface.d.ts +1 -1
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.interface.d.ts +99 -0
- package/dist/classes.cjs +10 -8
- package/dist/classes.cjs.map +2 -2
- package/dist/classes.js +10 -8
- package/dist/classes.js.map +2 -2
- package/dist/form.cjs +8 -7
- package/dist/form.cjs.map +2 -2
- package/dist/form.js +8 -7
- package/dist/form.js.map +2 -2
- package/dist/index.cjs +18 -15
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +18 -15
- package/dist/index.js.map +2 -2
- package/dist/sdk.cjs +451 -0
- package/dist/sdk.cjs.map +7 -0
- package/dist/sdk.d.ts +5 -0
- package/dist/sdk.js +429 -0
- package/dist/sdk.js.map +7 -0
- package/package.json +11 -1
- package/sdk/package.json +5 -0
package/dist/index.cjs
CHANGED
|
@@ -336,12 +336,14 @@ var AbortableFetch = class {
|
|
|
336
336
|
response.request = item;
|
|
337
337
|
return response;
|
|
338
338
|
}).catch(
|
|
339
|
-
(response) =>
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
339
|
+
(response) => {
|
|
340
|
+
return Promise.resolve({
|
|
341
|
+
ok: false,
|
|
342
|
+
status: 0,
|
|
343
|
+
statusText: response,
|
|
344
|
+
request: item
|
|
345
|
+
});
|
|
346
|
+
}
|
|
345
347
|
);
|
|
346
348
|
if (this.#everyPromiseCallback && !item.isSkipEveryPromiseCallback)
|
|
347
349
|
request = request.then(
|
|
@@ -715,7 +717,7 @@ var AbortableFetch2 = class {
|
|
|
715
717
|
const abortController = new AbortController();
|
|
716
718
|
const addProps = (response, request) => {
|
|
717
719
|
response.request = request;
|
|
718
|
-
if (ABORTABLE_FETCH_CONTEXT.#isResponseAsObject) response.name = request.name;
|
|
720
|
+
if (ABORTABLE_FETCH_CONTEXT.#isResponseAsObject) response.name = getIsOnlyAnObject(request) ? request.name || "" : "";
|
|
719
721
|
return response;
|
|
720
722
|
};
|
|
721
723
|
let externalRequest = Promise.all(
|
|
@@ -1037,7 +1039,7 @@ async function getInstanceOfFetchSystem(isGetBody) {
|
|
|
1037
1039
|
everyPromiseCallback: async function everyPromiseCallback(response) {
|
|
1038
1040
|
const ABORTABLE_FETCH_INSTANCE = this;
|
|
1039
1041
|
if (!response.status) {
|
|
1040
|
-
const request = ABORTABLE_FETCH_INSTANCE.requestInput.find((item) => item
|
|
1042
|
+
const request = ABORTABLE_FETCH_INSTANCE.requestInput.find((item) => item?.path === response?.request?.path);
|
|
1041
1043
|
const isUseErrorToast = request?.mesageOptions?.isUseErrorToast;
|
|
1042
1044
|
if (isUseErrorToast) {
|
|
1043
1045
|
API_CONTEXT.sendMessage?.(API_CONTEXT.NO_INET, request.mesageOptions, response);
|
|
@@ -3263,6 +3265,7 @@ function useInputValueProcessing({
|
|
|
3263
3265
|
const { trimStart, trimEnd, characters } = blurTrim || {};
|
|
3264
3266
|
const isUseBitDepthPoints = Boolean(onlyNumbers) && isPriceInput;
|
|
3265
3267
|
const isPseudoPasswordMode = type === "pseudoPassword";
|
|
3268
|
+
const bitDepthSettings = typeof onlyNumbers === "object" && onlyNumbers !== null ? onlyNumbers : void 0;
|
|
3266
3269
|
const correctMinMax = (value2, correctionType) => {
|
|
3267
3270
|
if (!onlyNumbers) return value2;
|
|
3268
3271
|
const { min, max, isOnlyPositive, isNoEmptyValues } = getIsOnlyAnObject2(
|
|
@@ -3274,14 +3277,14 @@ function useInputValueProcessing({
|
|
|
3274
3277
|
let inputValue = getSafelyValue(value2);
|
|
3275
3278
|
const checkMin = () => {
|
|
3276
3279
|
if (!inputValue && isNoEmptyValues) {
|
|
3277
|
-
inputValue = minimum !== void 0 ? minimum : "0";
|
|
3278
|
-
} else if (inputValue && !Number.isNaN(Number(minimum)) && Number(minimum) > Number((minusSymbol ?? "") + inputValue)) {
|
|
3279
|
-
inputValue = minimum;
|
|
3280
|
+
inputValue = minimum !== void 0 ? String(minimum) : "0";
|
|
3281
|
+
} else if (inputValue && minimum !== void 0 && !Number.isNaN(Number(minimum)) && Number(minimum) > Number((minusSymbol ?? "") + inputValue)) {
|
|
3282
|
+
inputValue = String(minimum);
|
|
3280
3283
|
}
|
|
3281
3284
|
};
|
|
3282
3285
|
const checkMax = () => {
|
|
3283
|
-
if (!Number.isNaN(Number(maximum)) && Number(maximum) < Number((minusSymbol ?? "") + inputValue)) {
|
|
3284
|
-
inputValue = maximum;
|
|
3286
|
+
if (maximum !== void 0 && !Number.isNaN(Number(maximum)) && Number(maximum) < Number((minusSymbol ?? "") + inputValue)) {
|
|
3287
|
+
inputValue = String(maximum);
|
|
3285
3288
|
minusSymbol = null;
|
|
3286
3289
|
}
|
|
3287
3290
|
};
|
|
@@ -3290,7 +3293,7 @@ function useInputValueProcessing({
|
|
|
3290
3293
|
minusSymbol = "-";
|
|
3291
3294
|
inputValue = inputValue.slice(1);
|
|
3292
3295
|
}
|
|
3293
|
-
inputValue = filterNumeric(inputValue,
|
|
3296
|
+
inputValue = filterNumeric(inputValue, bitDepthSettings);
|
|
3294
3297
|
switch (correctionType) {
|
|
3295
3298
|
case "min":
|
|
3296
3299
|
checkMin();
|
|
@@ -3388,7 +3391,7 @@ function useInputValueProcessing({
|
|
|
3388
3391
|
if (typeof onlyNumbers === "object" && onlyNumbers?.isNoEmptyValues)
|
|
3389
3392
|
safelyValue = correctMinMax(safelyValue, "min");
|
|
3390
3393
|
if (isUseBitDepthPoints)
|
|
3391
|
-
safelyValue = formatToAddBitDepthPoints(safelyValue,
|
|
3394
|
+
safelyValue = formatToAddBitDepthPoints(safelyValue, bitDepthSettings);
|
|
3392
3395
|
return safelyValue;
|
|
3393
3396
|
})();
|
|
3394
3397
|
return {
|