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.js
CHANGED
|
@@ -70,12 +70,14 @@ var AbortableFetch = class {
|
|
|
70
70
|
response.request = item;
|
|
71
71
|
return response;
|
|
72
72
|
}).catch(
|
|
73
|
-
(response) =>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
(response) => {
|
|
74
|
+
return Promise.resolve({
|
|
75
|
+
ok: false,
|
|
76
|
+
status: 0,
|
|
77
|
+
statusText: response,
|
|
78
|
+
request: item
|
|
79
|
+
});
|
|
80
|
+
}
|
|
79
81
|
);
|
|
80
82
|
if (this.#everyPromiseCallback && !item.isSkipEveryPromiseCallback)
|
|
81
83
|
request = request.then(
|
|
@@ -449,7 +451,7 @@ var AbortableFetch2 = class {
|
|
|
449
451
|
const abortController = new AbortController();
|
|
450
452
|
const addProps = (response, request) => {
|
|
451
453
|
response.request = request;
|
|
452
|
-
if (ABORTABLE_FETCH_CONTEXT.#isResponseAsObject) response.name = request.name;
|
|
454
|
+
if (ABORTABLE_FETCH_CONTEXT.#isResponseAsObject) response.name = getIsOnlyAnObject(request) ? request.name || "" : "";
|
|
453
455
|
return response;
|
|
454
456
|
};
|
|
455
457
|
let externalRequest = Promise.all(
|
|
@@ -771,7 +773,7 @@ async function getInstanceOfFetchSystem(isGetBody) {
|
|
|
771
773
|
everyPromiseCallback: async function everyPromiseCallback(response) {
|
|
772
774
|
const ABORTABLE_FETCH_INSTANCE = this;
|
|
773
775
|
if (!response.status) {
|
|
774
|
-
const request = ABORTABLE_FETCH_INSTANCE.requestInput.find((item) => item
|
|
776
|
+
const request = ABORTABLE_FETCH_INSTANCE.requestInput.find((item) => item?.path === response?.request?.path);
|
|
775
777
|
const isUseErrorToast = request?.mesageOptions?.isUseErrorToast;
|
|
776
778
|
if (isUseErrorToast) {
|
|
777
779
|
API_CONTEXT.sendMessage?.(API_CONTEXT.NO_INET, request.mesageOptions, response);
|
|
@@ -2997,6 +2999,7 @@ function useInputValueProcessing({
|
|
|
2997
2999
|
const { trimStart, trimEnd, characters } = blurTrim || {};
|
|
2998
3000
|
const isUseBitDepthPoints = Boolean(onlyNumbers) && isPriceInput;
|
|
2999
3001
|
const isPseudoPasswordMode = type === "pseudoPassword";
|
|
3002
|
+
const bitDepthSettings = typeof onlyNumbers === "object" && onlyNumbers !== null ? onlyNumbers : void 0;
|
|
3000
3003
|
const correctMinMax = (value2, correctionType) => {
|
|
3001
3004
|
if (!onlyNumbers) return value2;
|
|
3002
3005
|
const { min, max, isOnlyPositive, isNoEmptyValues } = getIsOnlyAnObject2(
|
|
@@ -3008,14 +3011,14 @@ function useInputValueProcessing({
|
|
|
3008
3011
|
let inputValue = getSafelyValue(value2);
|
|
3009
3012
|
const checkMin = () => {
|
|
3010
3013
|
if (!inputValue && isNoEmptyValues) {
|
|
3011
|
-
inputValue = minimum !== void 0 ? minimum : "0";
|
|
3012
|
-
} else if (inputValue && !Number.isNaN(Number(minimum)) && Number(minimum) > Number((minusSymbol ?? "") + inputValue)) {
|
|
3013
|
-
inputValue = minimum;
|
|
3014
|
+
inputValue = minimum !== void 0 ? String(minimum) : "0";
|
|
3015
|
+
} else if (inputValue && minimum !== void 0 && !Number.isNaN(Number(minimum)) && Number(minimum) > Number((minusSymbol ?? "") + inputValue)) {
|
|
3016
|
+
inputValue = String(minimum);
|
|
3014
3017
|
}
|
|
3015
3018
|
};
|
|
3016
3019
|
const checkMax = () => {
|
|
3017
|
-
if (!Number.isNaN(Number(maximum)) && Number(maximum) < Number((minusSymbol ?? "") + inputValue)) {
|
|
3018
|
-
inputValue = maximum;
|
|
3020
|
+
if (maximum !== void 0 && !Number.isNaN(Number(maximum)) && Number(maximum) < Number((minusSymbol ?? "") + inputValue)) {
|
|
3021
|
+
inputValue = String(maximum);
|
|
3019
3022
|
minusSymbol = null;
|
|
3020
3023
|
}
|
|
3021
3024
|
};
|
|
@@ -3024,7 +3027,7 @@ function useInputValueProcessing({
|
|
|
3024
3027
|
minusSymbol = "-";
|
|
3025
3028
|
inputValue = inputValue.slice(1);
|
|
3026
3029
|
}
|
|
3027
|
-
inputValue = filterNumeric(inputValue,
|
|
3030
|
+
inputValue = filterNumeric(inputValue, bitDepthSettings);
|
|
3028
3031
|
switch (correctionType) {
|
|
3029
3032
|
case "min":
|
|
3030
3033
|
checkMin();
|
|
@@ -3122,7 +3125,7 @@ function useInputValueProcessing({
|
|
|
3122
3125
|
if (typeof onlyNumbers === "object" && onlyNumbers?.isNoEmptyValues)
|
|
3123
3126
|
safelyValue = correctMinMax(safelyValue, "min");
|
|
3124
3127
|
if (isUseBitDepthPoints)
|
|
3125
|
-
safelyValue = formatToAddBitDepthPoints(safelyValue,
|
|
3128
|
+
safelyValue = formatToAddBitDepthPoints(safelyValue, bitDepthSettings);
|
|
3126
3129
|
return safelyValue;
|
|
3127
3130
|
})();
|
|
3128
3131
|
return {
|