@mcurros2/microm 1.1.237-0 → 1.1.238-0
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/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3331,7 +3331,6 @@ function $6d150b07756690a5$export$6d892edbc3527d79(props) {
|
|
|
3331
3331
|
})
|
|
3332
3332
|
}),
|
|
3333
3333
|
/*#__PURE__*/ (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.FocusTrap), {
|
|
3334
|
-
active: status.loading === false,
|
|
3335
3334
|
children: /*#__PURE__*/ (0, $b4te3$reactjsxruntime.jsxs)("form", {
|
|
3336
3335
|
onSubmit: handleSubmit,
|
|
3337
3336
|
onKeyDown: preventEnterSubmission ? handleKeyDown : undefined,
|
|
@@ -4590,10 +4589,14 @@ var $hAMyt = parcelRequire("hAMyt");
|
|
|
4590
4589
|
var $OciKL = parcelRequire("OciKL");
|
|
4591
4590
|
const $95e2e1bafd0c20d6$var$defaultProps = {
|
|
4592
4591
|
validationContainer: (0, $b4te3$mantinecore.Group),
|
|
4593
|
-
autoTrim: true
|
|
4592
|
+
autoTrim: true,
|
|
4593
|
+
autoMaxWidth: {
|
|
4594
|
+
columnLenghtLessThanOrEqual: 20,
|
|
4595
|
+
maxWidth: '20rem'
|
|
4596
|
+
}
|
|
4594
4597
|
};
|
|
4595
4598
|
const $95e2e1bafd0c20d6$export$2c73285ae9390cec = /*#__PURE__*/ (0, $b4te3$react.forwardRef)(function TextField(props, ref) {
|
|
4596
|
-
const { column: column, entityForm: entityForm, validate: validate, validationContainer: validationContainer, maw: maw, required: required, requiredMessage: requiredMessage, maxLength: maxLength, readOnly: readOnly, label: label, placeholder: placeholder, description: description, withAsterisk: withAsterisk, autoFocus: autoFocus, onBlur: onBlur, onChange: onChange, onFocus: onFocus, transform: transform, autoTrim: autoTrim, iconWidth: iconWidth, ...others } = (0, $b4te3$mantinecore.useComponentDefaultProps)('TextField', $95e2e1bafd0c20d6$var$defaultProps, props);
|
|
4599
|
+
const { column: column, entityForm: entityForm, validate: validate, validationContainer: validationContainer, maw: maw, required: required, requiredMessage: requiredMessage, maxLength: maxLength, readOnly: readOnly, label: label, placeholder: placeholder, description: description, withAsterisk: withAsterisk, autoFocus: autoFocus, onBlur: onBlur, onChange: onChange, onFocus: onFocus, transform: transform, autoTrim: autoTrim, iconWidth: iconWidth, autoMaxWidth: autoMaxWidth, ...others } = (0, $b4te3$mantinecore.useComponentDefaultProps)('TextField', $95e2e1bafd0c20d6$var$defaultProps, props);
|
|
4597
4600
|
(0, $hAMyt.useFieldConfiguration)({
|
|
4598
4601
|
entityForm: entityForm,
|
|
4599
4602
|
column: column,
|
|
@@ -4643,7 +4646,7 @@ const $95e2e1bafd0c20d6$export$2c73285ae9390cec = /*#__PURE__*/ (0, $b4te3$react
|
|
|
4643
4646
|
label: label ?? column.prompt,
|
|
4644
4647
|
placeholder: placeholder ?? column.placeholder,
|
|
4645
4648
|
description: showDescription ? description ?? column.description : '',
|
|
4646
|
-
maw: maw ?? (column.length <=
|
|
4649
|
+
maw: maw ?? (column.length <= autoMaxWidth.columnLenghtLessThanOrEqual ? autoMaxWidth.maxWidth : undefined),
|
|
4647
4650
|
maxLength: maxLength ?? (column.length || undefined),
|
|
4648
4651
|
readOnly: entityForm.formMode === 'view' ? true : readOnly,
|
|
4649
4652
|
"data-autofocus": autoFocus,
|
|
@@ -4779,10 +4782,14 @@ var $4H7ea = parcelRequire("4H7ea");
|
|
|
4779
4782
|
parcelRequire("dC9fs");
|
|
4780
4783
|
var $hAMyt = parcelRequire("hAMyt");
|
|
4781
4784
|
const $9dfe1d3e4dcf7b26$var$defaultProps = {
|
|
4782
|
-
validationContainer: (0, $b4te3$mantinecore.Group)
|
|
4785
|
+
validationContainer: (0, $b4te3$mantinecore.Group),
|
|
4786
|
+
autoMaxWidth: {
|
|
4787
|
+
columnLenghtLessThanOrEqual: 20,
|
|
4788
|
+
maxWidth: '20rem'
|
|
4789
|
+
}
|
|
4783
4790
|
};
|
|
4784
4791
|
function $9dfe1d3e4dcf7b26$export$65ed9482db2257fa(props) {
|
|
4785
|
-
const { column: column, loading: loading, entityForm: entityForm, maw: maw, required: required, maxLength: maxLength, disabled: disabled, disableOnLoading: disableOnLoading, label: label, validationContainer: validationContainer, validate: validate, requiredMessage: requiredMessage, description: description, readOnly: readOnly, withAsterisk: withAsterisk, ...others } = (0, $b4te3$mantinecore.useComponentDefaultProps)('PasswordField', $9dfe1d3e4dcf7b26$var$defaultProps, props);
|
|
4792
|
+
const { column: column, loading: loading, entityForm: entityForm, maw: maw, required: required, maxLength: maxLength, disabled: disabled, disableOnLoading: disableOnLoading, label: label, validationContainer: validationContainer, validate: validate, requiredMessage: requiredMessage, description: description, readOnly: readOnly, withAsterisk: withAsterisk, autoMaxWidth: autoMaxWidth, ...others } = (0, $b4te3$mantinecore.useComponentDefaultProps)('PasswordField', $9dfe1d3e4dcf7b26$var$defaultProps, props);
|
|
4786
4793
|
(0, $hAMyt.useFieldConfiguration)({
|
|
4787
4794
|
entityForm: entityForm,
|
|
4788
4795
|
column: column,
|
|
@@ -4798,7 +4805,7 @@ function $9dfe1d3e4dcf7b26$export$65ed9482db2257fa(props) {
|
|
|
4798
4805
|
withAsterisk: withAsterisk ?? (!readOnly && !(entityForm.formMode === 'view') && (required ?? !column.hasFlag((0, $4H7ea.EntityColumnFlags).nullable))),
|
|
4799
4806
|
label: label ?? column.prompt,
|
|
4800
4807
|
description: showDescription ? description ?? column.description : '',
|
|
4801
|
-
maw: maw ?? (column.length <=
|
|
4808
|
+
maw: maw ?? (column.length <= autoMaxWidth.columnLenghtLessThanOrEqual ? autoMaxWidth.maxWidth : undefined),
|
|
4802
4809
|
maxLength: maxLength ?? column.length,
|
|
4803
4810
|
readOnly: entityForm.formMode === 'view' ? true : readOnly,
|
|
4804
4811
|
disabled: disableOnLoading ? loading : disabled,
|