tuain-ng-forms-lib 15.2.4 → 15.2.6
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/esm2020/lib/classes/forms/field.mjs +6 -3
- package/fesm2015/tuain-ng-forms-lib.mjs +5 -2
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +5 -2
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/classes/forms/field.d.ts +3 -1
- package/package.json +1 -1
|
@@ -783,7 +783,7 @@ const directChanges = [
|
|
|
783
783
|
'defaultEditable', 'defaultValue', 'alignment', 'required', 'errorCode', 'errorMessage', 'errorType',
|
|
784
784
|
'tooltip', 'info', 'format', 'intrinsicErrorMessage', 'outputOnly', 'captureType', 'title', 'type',
|
|
785
785
|
'maxLength', 'maxValue', 'minLength', 'minValue', 'validateOnServer', 'serverAction', 'visibleLabel',
|
|
786
|
-
'options', 'placeholder'
|
|
786
|
+
'options', 'placeholder',
|
|
787
787
|
];
|
|
788
788
|
const attrs$1 = {
|
|
789
789
|
_captureType: { name: '_captureType', propagate: 'captureType' },
|
|
@@ -809,6 +809,7 @@ const attrs$1 = {
|
|
|
809
809
|
_minValue: { name: '_minValue', propagate: 'minValue' },
|
|
810
810
|
_onValidation: { name: '_onValidation', propagate: 'onValidation' },
|
|
811
811
|
_outputOnly: { name: '_outputOnly', propagate: 'outputOnly' },
|
|
812
|
+
_placeholder: { name: '_placeholder', propagate: 'placeholder' },
|
|
812
813
|
_tooltipText: { name: '_tooltipText', propagate: 'tooltip' },
|
|
813
814
|
_validateOnServer: { name: '_validateOnServer', propagate: 'validateOnServer' },
|
|
814
815
|
_value: { name: '_value', propagate: 'value' },
|
|
@@ -842,9 +843,9 @@ class FieldDescriptor extends FormElement {
|
|
|
842
843
|
this._hasChanged = false;
|
|
843
844
|
this._outputOnly = false;
|
|
844
845
|
this._tooltipText = '';
|
|
846
|
+
this._placeholder = '';
|
|
845
847
|
this.fieldCode = '';
|
|
846
848
|
this.fieldOptions = null;
|
|
847
|
-
this.placeholder = '';
|
|
848
849
|
this.propagationCustomAttributes = this._formConfig?.propagationCustomAttributes?.fields ?? [];
|
|
849
850
|
this.elementType = elementTypes.field;
|
|
850
851
|
const fld = (inputFieldReceived) ? inputFieldReceived : {};
|
|
@@ -894,6 +895,8 @@ class FieldDescriptor extends FormElement {
|
|
|
894
895
|
get backend() { return this._validateOnServer; }
|
|
895
896
|
get captureType() { return this._captureType; }
|
|
896
897
|
set captureType(captureType) { this.setAttr(attrs$1._captureType, captureType); }
|
|
898
|
+
get placeholder() { return this._captureType; }
|
|
899
|
+
set placeholder(placeholder) { this.setAttr(attrs$1._placeholder, placeholder); }
|
|
897
900
|
get code() { return this.fieldCode; }
|
|
898
901
|
get defaultValue() { return this._defaultValue; }
|
|
899
902
|
set defaultValue(defaultValue) { this.setAttr(attrs$1._defaultValue, defaultValue); }
|