tuain-ng-forms-lib 15.2.5 → 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.
@@ -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); }
@@ -1172,7 +1175,6 @@ class FieldDescriptor extends FormElement {
1172
1175
  (attrName === 'visible') && this.setVisibility(attrValue);
1173
1176
  (attrName === 'value') && (this._setValue(attrValue) && (this.hasChanged = false));
1174
1177
  (attrName === 'fieldValue') && (this._setValue(attrValue) && (this.hasChanged = false));
1175
- (attrName === 'placeholder') && (this.placeholder = attrValue);
1176
1178
  (attrName === 'fieldOptions') && (this.options = attrValue);
1177
1179
  (attrName === 'fieldTitle') && (this.title = attrValue);
1178
1180
  (attrName === 'fieldTypeCode') && (this.type = attrValue);