x25 17.4.40 → 17.4.42
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/Inputs/NumericInput.d.ts +1 -0
- package/Inputs/NumericInput.js +2 -2
- package/Inputs/NumericInput.js.map +1 -1
- package/Inputs/NumericTemplate.d.ts +1 -0
- package/Inputs/NumericTemplate.js +2 -2
- package/Inputs/NumericTemplate.js.map +1 -1
- package/Inputs/SimpleInput.d.ts +2 -1
- package/Inputs/SimpleInput.js +3 -3
- package/Inputs/SimpleInput.js.map +1 -1
- package/Inputs/SimpleTextarea.d.ts +3 -3
- package/Inputs/SimpleTextarea.js.map +1 -1
- package/Inputs/TextareaTemplate.d.ts +1 -1
- package/package.json +1 -1
- package/utility/index.d.ts +1 -2
- package/utility/index.js +1 -2
- package/utility/index.js.map +1 -1
- package/utility/mql.d.ts +0 -1
- package/utility/mql.js +1 -3
- package/utility/mql.js.map +1 -1
package/Inputs/NumericInput.d.ts
CHANGED
package/Inputs/NumericInput.js
CHANGED
|
@@ -9,7 +9,7 @@ var react_1 = __importDefault(require("react"));
|
|
|
9
9
|
var utility_1 = require("../utility");
|
|
10
10
|
var common_1 = require("./common");
|
|
11
11
|
var NumericInput = function (props) {
|
|
12
|
-
var _a = props.precision, precision = _a === void 0 ? 2 : _a, customClass = props.customClass, input = props.input, label = props.label, currency = props.currency, tabIndex = props.tabIndex, onRegisterRef = props.onRegisterRef, _b = props.formatValue, formatValue = _b === void 0 ? utility_1.formatZeroValue : _b, size = props.size, placeholder = props.placeholder, _c = props.meta, submitting = _c.submitting, touched = _c.touched, error = _c.error, _d = react_1.default.useState(props.input.value), value = _d[0], setValue = _d[1], noCurrency = (typeof currency === "undefined" || currency === false), valueToShow = formatValue(value, props.optional), updateValue = function (targetValue) {
|
|
12
|
+
var _a = props.precision, precision = _a === void 0 ? 2 : _a, customClass = props.customClass, input = props.input, label = props.label, disabled = props.disabled, currency = props.currency, tabIndex = props.tabIndex, onRegisterRef = props.onRegisterRef, _b = props.formatValue, formatValue = _b === void 0 ? utility_1.formatZeroValue : _b, size = props.size, placeholder = props.placeholder, _c = props.meta, submitting = _c.submitting, touched = _c.touched, error = _c.error, _d = react_1.default.useState(props.input.value), value = _d[0], setValue = _d[1], noCurrency = (typeof currency === "undefined" || currency === false), valueToShow = formatValue(value, props.optional), updateValue = function (targetValue) {
|
|
13
13
|
setValue(targetValue);
|
|
14
14
|
var valueToStore = targetValue;
|
|
15
15
|
if ((0, common_1.isFloat)((0, common_1.floatToEnglishComma)(targetValue))) {
|
|
@@ -27,7 +27,7 @@ var NumericInput = function (props) {
|
|
|
27
27
|
updateValue(targetValue);
|
|
28
28
|
}, inputComponent = (react_1.default.createElement("input", { "aria-label": label, autoFocus: props.autoFocus, className: (0, classnames_1.default)("form-control ".concat(customClass || ""), {
|
|
29
29
|
"is-invalid": touched && error,
|
|
30
|
-
}), disabled: submitting, id: input.name, inputMode: "decimal", maxLength: size, onBlur: handleBlur, onChange: handleChange, onKeyDown: props.onKeyDown, placeholder: placeholder || label, ref: onRegisterRef, tabIndex: tabIndex, type: "text", value: valueToShow }));
|
|
30
|
+
}), disabled: submitting || disabled, id: input.name, inputMode: "decimal", maxLength: size, onBlur: handleBlur, onChange: handleChange, onKeyDown: props.onKeyDown, placeholder: placeholder || label, ref: onRegisterRef, tabIndex: tabIndex, type: "text", value: valueToShow }));
|
|
31
31
|
react_1.default.useEffect(function () {
|
|
32
32
|
if ((0, common_1.isFloat)(input.value) || input.value === "") {
|
|
33
33
|
updateValue(input.value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumericInput.js","sourceRoot":"","sources":["../../src/Inputs/NumericInput.tsx"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"NumericInput.js","sourceRoot":"","sources":["../../src/Inputs/NumericInput.tsx"],"names":[],"mappings":";;;;;;AA2BA,0DAAoC;AACpC,gDAA0B;AAC1B,sCAA6C;AAE7C,mCAAgG;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AC;AACJ,CAAC,CAAC;AAnFF,QAAA,YAAY,gBAmFV"}
|
|
@@ -9,7 +9,7 @@ var react_1 = __importDefault(require("react"));
|
|
|
9
9
|
var utility_1 = require("../utility");
|
|
10
10
|
var common_1 = require("./common");
|
|
11
11
|
var NumericTemplate = function (props) {
|
|
12
|
-
var _a = props.precision, precision = _a === void 0 ? 2 : _a, input = props.input, right = props.right, tabIndex = props.tabIndex, divClass = props.divClass, label = props.label, onRegisterRef = props.onRegisterRef, _b = props.meta, submitting = _b.submitting, touched = _b.touched, error = _b.error, _c = props.formatValue, formatValue = _c === void 0 ? utility_1.formatZeroValue : _c, type = props.type, autoFocus = props.autoFocus, inputClass = props.inputClass, placeholder = props.placeholder, left = props.left, size = props.size, _d = react_1.default.useState(props.input.value), value = _d[0], setValue = _d[1], valueToShow = formatValue(value, props.optional), updateValue = function (targetValue) {
|
|
12
|
+
var _a = props.precision, precision = _a === void 0 ? 2 : _a, input = props.input, right = props.right, tabIndex = props.tabIndex, divClass = props.divClass, label = props.label, onRegisterRef = props.onRegisterRef, _b = props.meta, submitting = _b.submitting, touched = _b.touched, error = _b.error, _c = props.formatValue, formatValue = _c === void 0 ? utility_1.formatZeroValue : _c, type = props.type, autoFocus = props.autoFocus, inputClass = props.inputClass, placeholder = props.placeholder, left = props.left, size = props.size, disabled = props.disabled, _d = react_1.default.useState(props.input.value), value = _d[0], setValue = _d[1], valueToShow = formatValue(value, props.optional), updateValue = function (targetValue) {
|
|
13
13
|
setValue(targetValue);
|
|
14
14
|
var valueToStore = targetValue;
|
|
15
15
|
if ((0, common_1.isFloat)((0, common_1.floatToEnglishComma)(targetValue))) {
|
|
@@ -36,7 +36,7 @@ var NumericTemplate = function (props) {
|
|
|
36
36
|
}) },
|
|
37
37
|
react_1.default.createElement("label", { className: "".concat(left ? "".concat(left, " align-self-center") : "col-md-4 text-md-end", " form-control-label align-self-center"), htmlFor: input.name }, label),
|
|
38
38
|
react_1.default.createElement("div", { className: right ? "".concat(right, " align-self-center") : "col-md-8 align-self-center" },
|
|
39
|
-
react_1.default.createElement("input", { "aria-label": label, autoFocus: autoFocus, className: classForInput, disabled: submitting, id: input.name, inputMode: "decimal", maxLength: size, onBlur: handleBlur, onChange: handleChange, onKeyDown: props.onKeyDown, placeholder: placeholder, ref: onRegisterRef, tabIndex: tabIndex, type: type, value: valueToShow }),
|
|
39
|
+
react_1.default.createElement("input", { "aria-label": label, autoFocus: autoFocus, className: classForInput, disabled: submitting || disabled, id: input.name, inputMode: "decimal", maxLength: size, onBlur: handleBlur, onChange: handleChange, onKeyDown: props.onKeyDown, placeholder: placeholder, ref: onRegisterRef, tabIndex: tabIndex, type: type, value: valueToShow }),
|
|
40
40
|
react_1.default.createElement("div", { className: "invalid-feedback" }, touched && error ? (react_1.default.createElement("span", null, error)) : null))));
|
|
41
41
|
};
|
|
42
42
|
exports.NumericTemplate = NumericTemplate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumericTemplate.js","sourceRoot":"","sources":["../../src/Inputs/NumericTemplate.tsx"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"NumericTemplate.js","sourceRoot":"","sources":["../../src/Inputs/NumericTemplate.tsx"],"names":[],"mappings":";;;;;;AA+BA,0DAAoC;AACpC,gDAA0B;AAC1B,sCAA6C;AAG7C,mCAAgG;AAEzF,IACL,eAAe,GAAG,UAAC,KAAwB;IAGrC,IAAA,KAKE,KAAK,UALM,EAAb,SAAS,mBAAG,CAAC,KAAA,EACb,KAAK,GAIH,KAAK,MAJF,EAAE,KAAK,GAIV,KAAK,MAJK,EAAE,QAAQ,GAIpB,KAAK,SAJe,EAAE,QAAQ,GAI9B,KAAK,SAJyB,EAAE,KAAK,GAIrC,KAAK,MAJgC,EACvC,aAAa,GAGX,KAAK,cAHM,EACb,KAEE,KAAK,KAF6B,EAA5B,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,KAAK,WAAA,EAAI,KAEpC,KAAK,YAF4D,EAA7B,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YACF,uCAAK,SAAS,EAAC,kBAAkB,IAC9B,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,CAClB,4CACG,KAAK,CACD,CACR,CAAC,CAAC,CAAC,IAAI,CACJ,CACF,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AA1FF,QAAA,eAAe,mBA0Fb"}
|
package/Inputs/SimpleInput.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare type SimpleInputPropTypes = {
|
|
3
|
+
readonly disabled?: boolean;
|
|
3
4
|
readonly autoFocus?: boolean;
|
|
4
5
|
readonly customClass?: any;
|
|
5
6
|
readonly input: any;
|
|
@@ -15,4 +16,4 @@ export declare type SimpleInputPropTypes = {
|
|
|
15
16
|
};
|
|
16
17
|
readonly placeholder?: string;
|
|
17
18
|
};
|
|
18
|
-
export declare const SimpleInput: ({ customClass, input, label, autoFocus, tabIndex, placeholder, theType, inputRef, autoComplete, meta: { submitting, touched, error }, }: SimpleInputPropTypes) => JSX.Element;
|
|
19
|
+
export declare const SimpleInput: ({ customClass, input, label, autoFocus, tabIndex, placeholder, theType, inputRef, autoComplete, disabled, meta: { submitting, touched, error }, }: SimpleInputPropTypes) => JSX.Element;
|
package/Inputs/SimpleInput.js
CHANGED
|
@@ -15,13 +15,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.SimpleInput = void 0;
|
|
18
|
-
var react_1 = __importDefault(require("react"));
|
|
19
18
|
var classnames_1 = __importDefault(require("classnames"));
|
|
19
|
+
var react_1 = __importDefault(require("react"));
|
|
20
20
|
var SimpleInput = function (_a) {
|
|
21
|
-
var customClass = _a.customClass, input = _a.input, label = _a.label, autoFocus = _a.autoFocus, tabIndex = _a.tabIndex, placeholder = _a.placeholder, theType = _a.theType, inputRef = _a.inputRef, autoComplete = _a.autoComplete, _b = _a.meta, submitting = _b.submitting, touched = _b.touched, error = _b.error;
|
|
21
|
+
var customClass = _a.customClass, input = _a.input, label = _a.label, autoFocus = _a.autoFocus, tabIndex = _a.tabIndex, placeholder = _a.placeholder, theType = _a.theType, inputRef = _a.inputRef, autoComplete = _a.autoComplete, disabled = _a.disabled, _b = _a.meta, submitting = _b.submitting, touched = _b.touched, error = _b.error;
|
|
22
22
|
return (react_1.default.createElement("input", __assign({}, input, { "aria-label": label, autoComplete: autoComplete, autoFocus: autoFocus, className: (0, classnames_1.default)("form-control ".concat(customClass || ""), {
|
|
23
23
|
"is-invalid": touched && error,
|
|
24
|
-
}), disabled: submitting, id: input.name, placeholder: placeholder || label, ref: inputRef ? inputRef : null, tabIndex: tabIndex, type: theType })));
|
|
24
|
+
}), disabled: submitting || disabled, id: input.name, placeholder: placeholder || label, ref: inputRef ? inputRef : null, tabIndex: tabIndex, type: theType })));
|
|
25
25
|
};
|
|
26
26
|
exports.SimpleInput = SimpleInput;
|
|
27
27
|
//# sourceMappingURL=SimpleInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleInput.js","sourceRoot":"","sources":["../../src/Inputs/SimpleInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SimpleInput.js","sourceRoot":"","sources":["../../src/Inputs/SimpleInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAkBA,0DAAoC;AACpC,gDAA0B;AAEnB,IAAM,WAAW,GAAG,UAAC,EAIL;QAHrB,WAAW,iBAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,SAAS,eAAA,EAAE,QAAQ,cAAA,EAAE,WAAW,iBAAA,EAAE,OAAO,aAAA,EAAE,QAAQ,cAAA,EAC9E,YAAY,kBAAA,EAAE,QAAQ,cAAA,EACtB,YAAoC,EAA5B,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,KAAK,WAAA;IACR,OAAA,CAC1B,oDACM,KAAK,kBACG,KAAK,EACjB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,IAAA,oBAAU,EAAC,uBAAgB,WAAW,IAAI,EAAE,CAAE,EAAE;YACzD,YAAY,EAAE,OAAO,IAAI,KAAK;SAC/B,CAAC,EAAE,QAAQ,EAAE,UAAU,IAAI,QAAQ,EACpC,EAAE,EAAE,KAAK,CAAC,IAAI,EACd,WAAW,EAAE,WAAW,IAAI,KAAK,EACjC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAC/B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,OAAO,IAAI,CACpB;AAd2B,CAc3B,CAAC;AAlBW,QAAA,WAAW,eAkBtB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare type
|
|
2
|
+
declare type TextareaPropTypes = {
|
|
3
3
|
readonly autoFocus?: boolean;
|
|
4
|
+
readonly disabled?: boolean;
|
|
4
5
|
readonly input: any;
|
|
5
6
|
readonly label: string;
|
|
6
7
|
readonly placeholder: string;
|
|
7
8
|
readonly inputClass?: string;
|
|
8
9
|
readonly tabIndex?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
10
|
readonly rows?: string;
|
|
11
11
|
readonly meta: {
|
|
12
12
|
touched: boolean;
|
|
@@ -15,5 +15,5 @@ declare type InputTemplatePropTypes = {
|
|
|
15
15
|
};
|
|
16
16
|
readonly onRegisterRef?: (callback: (node: any) => void) => void;
|
|
17
17
|
};
|
|
18
|
-
export declare const SimpleTextarea: ({ disabled, input, label, onRegisterRef, autoFocus, inputClass, placeholder, tabIndex, rows, meta: { submitting, touched, error }, }:
|
|
18
|
+
export declare const SimpleTextarea: ({ disabled, input, label, onRegisterRef, autoFocus, inputClass, placeholder, tabIndex, rows, meta: { submitting, touched, error }, }: TextareaPropTypes) => JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleTextarea.js","sourceRoot":"","sources":["../../src/Inputs/SimpleTextarea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAgBA,gDAA0B;AAEnB,IAAM,cAAc,GAAG,UAAC,
|
|
1
|
+
{"version":3,"file":"SimpleTextarea.js","sourceRoot":"","sources":["../../src/Inputs/SimpleTextarea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAgBA,gDAA0B;AAEnB,IAAM,cAAc,GAAG,UAAC,EAIX;QAHlB,QAAQ,cAAA,EACR,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,aAAa,mBAAA,EAAE,SAAS,eAAA,EAAE,UAAU,gBAAA,EAAE,WAAW,iBAAA,EAAE,QAAQ,cAAA,EAAE,IAAI,UAAA,EAC/E,YAAoC,EAA5B,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,KAAK,WAAA;IAElC,IACE,YAAY,GAAG,UAAG,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAE,EACzD,WAAW,GAAG,UAAG,UAAU,CAAC,CAAC,CAAC,WAAI,UAAU,CAAE,CAAC,CAAC,CAAC,EAAE,CAAE,EACrD,aAAa,GAAG,uBAAgB,YAAY,SAAG,WAAW,CAAE,CAAC;IAE/D,OAAO,CACL,uDACM,KAAK,kBACG,KAAK,EACjB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,QAAQ,IAAI,UAAU,EAChC,EAAE,EAAE,KAAK,CAAC,IAAI,EACd,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,EACzC,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,IAClB,CACH,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,cAAc,kBAwBzB"}
|
package/package.json
CHANGED
package/utility/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
export * from "./calendar";
|
|
2
2
|
export * from "./date";
|
|
3
|
+
export * from "./hooks";
|
|
3
4
|
export * from "./normalize";
|
|
4
5
|
export * from "./numbers";
|
|
5
6
|
export * from "./numeric";
|
|
6
7
|
export * from "./others";
|
|
7
8
|
export * from "./strings";
|
|
8
|
-
export * from "./mql";
|
|
9
9
|
export * from "./validation";
|
|
10
10
|
export * from "./words";
|
|
11
|
-
export * from "./hooks";
|
|
12
11
|
export declare const formError: (message: string) => {
|
|
13
12
|
"FINAL_FORM/form-error": string;
|
|
14
13
|
}, toNumeric: (raw: any) => number;
|
package/utility/index.js
CHANGED
|
@@ -17,15 +17,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.toNumeric = exports.formError = void 0;
|
|
18
18
|
__exportStar(require("./calendar"), exports);
|
|
19
19
|
__exportStar(require("./date"), exports);
|
|
20
|
+
__exportStar(require("./hooks"), exports);
|
|
20
21
|
__exportStar(require("./normalize"), exports);
|
|
21
22
|
__exportStar(require("./numbers"), exports);
|
|
22
23
|
__exportStar(require("./numeric"), exports);
|
|
23
24
|
__exportStar(require("./others"), exports);
|
|
24
25
|
__exportStar(require("./strings"), exports);
|
|
25
|
-
__exportStar(require("./mql"), exports);
|
|
26
26
|
__exportStar(require("./validation"), exports);
|
|
27
27
|
__exportStar(require("./words"), exports);
|
|
28
|
-
__exportStar(require("./hooks"), exports);
|
|
29
28
|
var final_form_1 = require("final-form");
|
|
30
29
|
var formError = function (message) {
|
|
31
30
|
var _a;
|
package/utility/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utility/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B;AAC1B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utility/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,0CAAwB;AAExB,yCAAwC;AAEjC,IACL,SAAS,GAAG,UAAC,OAAgB;;IAAK,OAAA;QAChC,GAAC,uBAAU,IAAG,OAAO;WACrB;AAFgC,CAEhC,EACF,SAAS,GAAG,UAAC,GAAS,IAAK,OAAA,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAnB,CAAmB,CAAC;AAH/C,QAAA,SAAS,cAGT,QAAA,SAAS,aAAsC"}
|
package/utility/mql.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mql: any;
|
package/utility/mql.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.mql = void 0;
|
|
4
|
-
exports.mql = window ? window.matchMedia("(min-width: 800px)") : null;
|
|
2
|
+
// export const mql: any = window ? window.matchMedia("(min-width: 800px)") : null;
|
|
5
3
|
//# sourceMappingURL=mql.js.map
|
package/utility/mql.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mql.js","sourceRoot":"","sources":["../../src/utility/mql.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mql.js","sourceRoot":"","sources":["../../src/utility/mql.ts"],"names":[],"mappings":";AAAA,mFAAmF"}
|